package com.vinfast.companion.notification.ui.theftalert.images;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
@dagger.hilt.android.lifecycle.HiltViewModel
@kotlin.Metadata(d1 = {"\u0000v\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\b\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0012\b\u0017\u0018\u00002\u00020\u0001B\u0011\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u0002¢\u0006\u0004\b\u0004\u0010\u0005J\u0017\u0010\t\u001a\u00020\b2\u0006\u0010\u0007\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\t\u0010\nJ\u0017\u0010\u000b\u001a\u00020\b2\u0006\u0010\u0007\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\u000b\u0010\nJ\u0017\u0010\u000e\u001a\u00020\b2\b\u0010\r\u001a\u0004\u0018\u00010\f¢\u0006\u0004\b\u000e\u0010\u000fJ\u000f\u0010\u0010\u001a\u00020\bH\u0014¢\u0006\u0004\b\u0010\u0010\u0011J\u000f\u0010\u0012\u001a\u00020\bH\u0014¢\u0006\u0004\b\u0012\u0010\u0011J\r\u0010\u0013\u001a\u00020\b¢\u0006\u0004\b\u0013\u0010\u0011J\u001d\u0010\u0017\u001a\u00020\b2\u0006\u0010\u0015\u001a\u00020\u00142\u0006\u0010\u0016\u001a\u00020\u0014¢\u0006\u0004\b\u0017\u0010\u0018J\u0015\u0010\u0019\u001a\u00020\b2\u0006\u0010\u0015\u001a\u00020\u0014¢\u0006\u0004\b\u0019\u0010\u001aJ\u0015\u0010\u001d\u001a\u00020\b2\u0006\u0010\u001c\u001a\u00020\u001b¢\u0006\u0004\b\u001d\u0010\u001eJ\r\u0010\u001f\u001a\u00020\b¢\u0006\u0004\b\u001f\u0010\u0011J\r\u0010 \u001a\u00020\b¢\u0006\u0004\b \u0010\u0011J\u000f\u0010!\u001a\u0004\u0018\u00010\u0006¢\u0006\u0004\b!\u0010\"R\u001a\u0010\u0003\u001a\u00020\u00028\u0004X\u0084\u0004¢\u0006\f\n\u0004\b#\u0010$\u001a\u0004\b%\u0010&R\"\u0010.\u001a\u00020'8\u0004@\u0004X\u0084.¢\u0006\u0012\n\u0004\b(\u0010)\u001a\u0004\b*\u0010+\"\u0004\b,\u0010-R\u001a\u00103\u001a\b\u0012\u0004\u0012\u0002000/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b1\u00102R&\u00109\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u000205040/8\u0004X\u0084\u0004¢\u0006\f\n\u0004\b6\u00102\u001a\u0004\b7\u00108R\u001a\u0010;\u001a\b\u0012\u0004\u0012\u00020\u001b0/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b:\u00102R \u0010>\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00060<0/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b=\u00102R\u001a\u0010@\u001a\b\u0012\u0004\u0012\u00020\u001b0/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b?\u00102R,\u0010C\u001a\u001a\u0012\u0016\u0012\u0014\u0012\u0004\u0012\u00020\u0014\u0012\u0004\u0012\u000205\u0012\u0004\u0012\u00020\u00140A0/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bB\u00102R \u0010E\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u0006040/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bD\u00102R \u0010H\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020F040/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bG\u00102R\u0017\u0010L\u001a\b\u0012\u0004\u0012\u0002000I8F¢\u0006\u0006\u001a\u0004\bJ\u0010KR\u001d\u0010N\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u000205040I8F¢\u0006\u0006\u001a\u0004\bM\u0010KR\u0017\u0010P\u001a\b\u0012\u0004\u0012\u00020\u001b0I8F¢\u0006\u0006\u001a\u0004\bO\u0010KR\u001d\u0010R\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00060<0I8F¢\u0006\u0006\u001a\u0004\bQ\u0010KR\u0017\u0010T\u001a\b\u0012\u0004\u0012\u00020\u001b0I8F¢\u0006\u0006\u001a\u0004\bS\u0010KR)\u0010V\u001a\u001a\u0012\u0016\u0012\u0014\u0012\u0004\u0012\u00020\u0014\u0012\u0004\u0012\u000205\u0012\u0004\u0012\u00020\u00140A0I8F¢\u0006\u0006\u001a\u0004\bU\u0010KR\u001d\u0010X\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u0006040I8F¢\u0006\u0006\u001a\u0004\bW\u0010KR\u001d\u0010Z\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020F040I8F¢\u0006\u0006\u001a\u0004\bY\u0010K¨\u0006["}, d2 = {"Lcom/vinfast/companion/notification/ui/theftalert/images/TheftAlertImagesViewModel;", "Lcom/vinfast/companion/core/base/BaseViewModel;", "Lcom/vinfast/companion/notificationkit/manager/INotificationManager;", "notificationManager", "<init>", "(Lcom/vinfast/companion/notificationkit/manager/INotificationManager;)V", "", "subId", "", "Z", "(Ljava/lang/String;)V", "Y", "Landroid/os/Bundle;", "arguments", "X", "(Landroid/os/Bundle;)V", "a0", "()V", "b0", "d0", "", "position", "imagePosition", "c0", "(II)V", "f0", "(I)V", "", "selectMode", "K", "(Z)V", "g0", "e0", "O", "()Ljava/lang/String;", "m", "Lcom/vinfast/companion/notificationkit/manager/INotificationManager;", "N", "()Lcom/vinfast/companion/notificationkit/manager/INotificationManager;", "Lcom/vinfast/companion/core/utils/notification/Notification;", "n", "Lcom/vinfast/companion/core/utils/notification/Notification;", "M", "()Lcom/vinfast/companion/core/utils/notification/Notification;", "h0", "(Lcom/vinfast/companion/core/utils/notification/Notification;)V", "mNotification", "Landroidx/lifecycle/MutableLiveData;", "Lcom/vinfast/companion/core/utils/notification/TheftAlertState;", "o", "Landroidx/lifecycle/MutableLiveData;", "_theftAlertStateLiveData", "", "Lcom/vinfast/companion/notificationkit/domain/model/TheftAlertImageBundle;", "p", "W", "()Landroidx/lifecycle/MutableLiveData;", "_theftImageBundlesLiveData", "q", "_selectModeLiveData", "Landroidx/collection/ArraySet;", "r", "_selectedItemLiveData", "s", "_selectAllButtonLiveData", "Lkotlin/Triple;", "t", "_goToGalleryLiveData", "u", "_shareImagesLiveData", "Lcom/vinfast/companion/core/utils/imagedowloader/ImageDownloadMetadata;", "v", "_saveImagesLiveData", "Landroidx/lifecycle/LiveData;", "U", "()Landroidx/lifecycle/LiveData;", "theftAlertStateLiveData", "V", "theftImageBundlesLiveData", "R", "selectModeLiveData", "S", "selectedItemLiveData", "Q", "selectAllButtonLiveData", "L", "goToGalleryLiveData", "T", "shareImagesLiveData", "P", "saveImagesLiveData", "notification_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
@kotlin.jvm.internal.SourceDebugExtension
public class TheftAlertImagesViewModel extends com.vinfast.companion.core.base.BaseViewModel {

    /* JADX INFO: renamed from: m, reason: from kotlin metadata */
    private final com.vinfast.companion.notificationkit.manager.INotificationManager notificationManager;

    /* JADX INFO: renamed from: n, reason: from kotlin metadata */
    protected com.vinfast.companion.core.utils.notification.Notification mNotification;

    /* JADX INFO: renamed from: o, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _theftAlertStateLiveData;

    /* JADX INFO: renamed from: p, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _theftImageBundlesLiveData;

    /* JADX INFO: renamed from: q, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _selectModeLiveData;

    /* JADX INFO: renamed from: r, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _selectedItemLiveData;

    /* JADX INFO: renamed from: s, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _selectAllButtonLiveData;

    /* JADX INFO: renamed from: t, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _goToGalleryLiveData;

    /* JADX INFO: renamed from: u, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _shareImagesLiveData;

    /* JADX INFO: renamed from: v, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _saveImagesLiveData;

    public TheftAlertImagesViewModel(com.vinfast.companion.notificationkit.manager.INotificationManager iNotificationManager) {
        kotlin.jvm.internal.Intrinsics.l(iNotificationManager, "notificationManager");
        this.notificationManager = iNotificationManager;
        this._theftAlertStateLiveData = new androidx.lifecycle.MutableLiveData();
        this._theftImageBundlesLiveData = new androidx.lifecycle.MutableLiveData();
        this._selectModeLiveData = new androidx.lifecycle.MutableLiveData();
        this._selectedItemLiveData = new androidx.lifecycle.MutableLiveData();
        this._selectAllButtonLiveData = new androidx.lifecycle.MutableLiveData();
        this._goToGalleryLiveData = new androidx.lifecycle.MutableLiveData();
        this._shareImagesLiveData = new androidx.lifecycle.MutableLiveData();
        this._saveImagesLiveData = new androidx.lifecycle.MutableLiveData();
    }

    private final void Y(java.lang.String subId) {
        io.reactivex.rxjava3.disposables.Disposable disposableSubscribe = com.vinfast.companion.core.extensions.RxExtensionKt.B(this.notificationManager.f(subId)).subscribe(new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.notification.ui.theftalert.images.TheftAlertImagesViewModel$listenFcmNotification$1
            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final void accept(com.vinfast.companion.core.utils.notification.Notification notification) {
                kotlin.jvm.internal.Intrinsics.l(notification, "fcmNotification");
                this.a._theftAlertStateLiveData.n(notification.t());
            }
        }, new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.notification.ui.theftalert.images.TheftAlertImagesViewModel$listenFcmNotification$2
            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final void accept(java.lang.Throwable th) {
                kotlin.jvm.internal.Intrinsics.l(th, "error");
                timber.log.Timber.a.d(th);
            }
        });
        kotlin.jvm.internal.Intrinsics.k(disposableSubscribe, "subscribe(...)");
        com.vinfast.companion.core.extensions.RxExtensionKt.k(disposableSubscribe, s());
    }

    private final void Z(java.lang.String subId) {
        io.reactivex.rxjava3.disposables.Disposable disposableSubscribe = com.vinfast.companion.core.extensions.RxExtensionKt.B(this.notificationManager.j(subId)).subscribe(new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.notification.ui.theftalert.images.TheftAlertImagesViewModel$listenTheftAlertImages$1
            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final void accept(java.util.List list) {
                kotlin.jvm.internal.Intrinsics.l(list, "imageBundles");
                this.a.get_theftImageBundlesLiveData().n(list);
            }
        }, new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.notification.ui.theftalert.images.TheftAlertImagesViewModel$listenTheftAlertImages$2
            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final void accept(java.lang.Throwable th) {
                kotlin.jvm.internal.Intrinsics.l(th, "error");
                timber.log.Timber.a.d(th);
            }
        });
        kotlin.jvm.internal.Intrinsics.k(disposableSubscribe, "subscribe(...)");
        com.vinfast.companion.core.extensions.RxExtensionKt.k(disposableSubscribe, s());
    }

    public final void K(boolean selectMode) {
        if (this._selectModeLiveData.f() == null || !kotlin.jvm.internal.Intrinsics.g(this._selectModeLiveData.f(), java.lang.Boolean.valueOf(selectMode))) {
            this._selectAllButtonLiveData.q(java.lang.Boolean.FALSE);
            this._selectModeLiveData.q(java.lang.Boolean.valueOf(selectMode));
            if (this._selectedItemLiveData.f() != null) {
                androidx.collection.ArraySet arraySet = (androidx.collection.ArraySet) this._selectedItemLiveData.f();
                if (arraySet != null) {
                    arraySet.clear();
                }
                this._selectedItemLiveData.q(arraySet);
            }
        }
    }

    public final androidx.lifecycle.LiveData L() {
        return this._goToGalleryLiveData;
    }

    protected final com.vinfast.companion.core.utils.notification.Notification M() {
        com.vinfast.companion.core.utils.notification.Notification notification = this.mNotification;
        if (notification != null) {
            return notification;
        }
        kotlin.jvm.internal.Intrinsics.C("mNotification");
        return null;
    }

    /* JADX INFO: renamed from: N, reason: from getter */
    protected final com.vinfast.companion.notificationkit.manager.INotificationManager getNotificationManager() {
        return this.notificationManager;
    }

    public final java.lang.String O() {
        return M().s();
    }

    public final androidx.lifecycle.LiveData P() {
        return this._saveImagesLiveData;
    }

    public final androidx.lifecycle.LiveData Q() {
        return this._selectAllButtonLiveData;
    }

    public final androidx.lifecycle.LiveData R() {
        return this._selectModeLiveData;
    }

    public final androidx.lifecycle.LiveData S() {
        return this._selectedItemLiveData;
    }

    public final androidx.lifecycle.LiveData T() {
        return this._shareImagesLiveData;
    }

    public final androidx.lifecycle.LiveData U() {
        return this._theftAlertStateLiveData;
    }

    public final androidx.lifecycle.LiveData V() {
        return this._theftImageBundlesLiveData;
    }

    /* JADX INFO: renamed from: W, reason: from getter */
    protected final androidx.lifecycle.MutableLiveData get_theftImageBundlesLiveData() {
        return this._theftImageBundlesLiveData;
    }

    public final void X(android.os.Bundle arguments) {
        com.vinfast.companion.core.utils.notification.Notification notification = arguments != null ? (com.vinfast.companion.core.utils.notification.Notification) arguments.getParcelable("notificationData") : null;
        kotlin.jvm.internal.Intrinsics.i(notification);
        h0(notification);
        a0();
        b0();
    }

    protected void a0() {
        java.lang.String strS = M().s();
        if (strS == null) {
            return;
        }
        Z(strS);
    }

    protected void b0() {
        java.lang.String strS = M().s();
        if (strS == null) {
            return;
        }
        Y(strS);
    }

    public final void c0(int position, int imagePosition) {
        java.util.List list;
        if (this._theftImageBundlesLiveData.f() != null && (list = (java.util.List) this._theftImageBundlesLiveData.f()) != null && position >= 0 && position < list.size()) {
            com.vinfast.companion.notificationkit.domain.model.TheftAlertImageBundle theftAlertImageBundle = (com.vinfast.companion.notificationkit.domain.model.TheftAlertImageBundle) list.get(position);
            if (theftAlertImageBundle.b().get((com.vinfast.companion.notificationkit.domain.model.TheftAlertImagePosition) theftAlertImageBundle.c().get(imagePosition)) == null) {
                return;
            }
            this._goToGalleryLiveData.q(new kotlin.Triple(java.lang.Integer.valueOf(position), theftAlertImageBundle, java.lang.Integer.valueOf(imagePosition)));
        }
    }

    public final void d0() {
        if (this._selectModeLiveData.f() != null) {
            java.lang.Object objF = this._selectModeLiveData.f();
            java.lang.Boolean bool = java.lang.Boolean.FALSE;
            if (!kotlin.jvm.internal.Intrinsics.g(objF, bool)) {
                java.util.List list = (java.util.List) this._theftImageBundlesLiveData.f();
                androidx.collection.ArraySet arraySet = (androidx.collection.ArraySet) this._selectedItemLiveData.f();
                int i = 0;
                if (arraySet == null) {
                    arraySet = new androidx.collection.ArraySet(0, 1, (kotlin.jvm.internal.DefaultConstructorMarker) null);
                }
                if (kotlin.jvm.internal.Intrinsics.g(this._selectAllButtonLiveData.f(), java.lang.Boolean.TRUE)) {
                    arraySet.clear();
                    this._selectedItemLiveData.q(arraySet);
                    this._selectAllButtonLiveData.q(bool);
                    return;
                }
                if (list != null) {
                    for (java.lang.Object obj : list) {
                        int i2 = i + 1;
                        if (i < 0) {
                            kotlin.collections.CollectionsKt.y();
                        }
                        arraySet.add(((com.vinfast.companion.notificationkit.domain.model.TheftAlertImageBundle) obj).d());
                        i = i2;
                    }
                }
                this._selectedItemLiveData.q(arraySet);
                this._selectAllButtonLiveData.q(java.lang.Boolean.TRUE);
                return;
            }
        }
        K(true);
    }

    public final void e0() {
        androidx.collection.ArraySet arraySet;
        java.util.List list = (java.util.List) V().f();
        if (list == null || (arraySet = (androidx.collection.ArraySet) this._selectedItemLiveData.f()) == null) {
            return;
        }
        java.util.ArrayList arrayList = new java.util.ArrayList();
        java.util.ArrayList arrayList2 = new java.util.ArrayList();
        for (java.lang.Object obj : list) {
            if (arraySet.contains(((com.vinfast.companion.notificationkit.domain.model.TheftAlertImageBundle) obj).d())) {
                arrayList2.add(obj);
            }
        }
        java.util.Iterator it = arrayList2.iterator();
        while (it.hasNext()) {
            java.util.Collection collectionValues = ((com.vinfast.companion.notificationkit.domain.model.TheftAlertImageBundle) it.next()).b().values();
            kotlin.jvm.internal.Intrinsics.k(collectionValues, "<get-values>(...)");
            java.util.ArrayList<com.vinfast.companion.notificationkit.domain.model.TheftAlertImage> arrayList3 = new java.util.ArrayList();
            java.util.Iterator it2 = collectionValues.iterator();
            while (true) {
                if (!it2.hasNext()) {
                    break;
                }
                java.lang.Object next = it2.next();
                com.vinfast.companion.core.utils.imageUtis.imageToken.LoadingImageToken loadingImageTokenD = ((com.vinfast.companion.notificationkit.domain.model.TheftAlertImage) next).d();
                java.lang.String strB = loadingImageTokenD != null ? loadingImageTokenD.b() : null;
                if (!(strB == null || kotlin.text.StringsKt.v0(strB))) {
                    arrayList3.add(next);
                }
            }
            java.util.ArrayList arrayList4 = new java.util.ArrayList(kotlin.collections.CollectionsKt.z(arrayList3, 10));
            for (com.vinfast.companion.notificationkit.domain.model.TheftAlertImage theftAlertImage : arrayList3) {
                java.lang.String strB2 = theftAlertImage.b();
                com.vinfast.companion.core.utils.imageUtis.imageToken.LoadingImageToken loadingImageTokenD2 = theftAlertImage.d();
                java.lang.String strB3 = loadingImageTokenD2 != null ? loadingImageTokenD2.b() : null;
                kotlin.jvm.internal.Intrinsics.i(strB3);
                arrayList4.add(new com.vinfast.companion.core.utils.imagedowloader.ImageDownloadMetadata(strB2, strB3, (java.lang.String) null, (java.lang.String) null, true, false, 44, (kotlin.jvm.internal.DefaultConstructorMarker) null));
            }
            arrayList.addAll(arrayList4);
        }
        this._saveImagesLiveData.q(arrayList);
    }

    public final void f0(int position) {
        java.util.List list = (java.util.List) this._theftImageBundlesLiveData.f();
        if (list != null && !kotlin.jvm.internal.Intrinsics.g(java.lang.Boolean.FALSE, this._selectModeLiveData.f()) && position >= 0 && position < list.size()) {
            com.vinfast.companion.notificationkit.domain.model.TheftAlertImageBundle theftAlertImageBundle = (com.vinfast.companion.notificationkit.domain.model.TheftAlertImageBundle) list.get(position);
            androidx.collection.ArraySet arraySet = (androidx.collection.ArraySet) this._selectedItemLiveData.f();
            if (arraySet == null) {
                arraySet = new androidx.collection.ArraySet(0, 1, (kotlin.jvm.internal.DefaultConstructorMarker) null);
            }
            if (arraySet.contains(theftAlertImageBundle.d())) {
                arraySet.remove(theftAlertImageBundle.d());
            } else {
                arraySet.add(theftAlertImageBundle.d());
            }
            this._selectedItemLiveData.q(arraySet);
            this._selectAllButtonLiveData.q(java.lang.Boolean.valueOf(arraySet.size() == list.size()));
        }
    }

    public final void g0() {
        androidx.collection.ArraySet arraySet;
        java.util.List list = (java.util.List) V().f();
        if (list == null || (arraySet = (androidx.collection.ArraySet) this._selectedItemLiveData.f()) == null) {
            return;
        }
        java.util.ArrayList arrayList = new java.util.ArrayList();
        java.util.ArrayList arrayList2 = new java.util.ArrayList();
        for (java.lang.Object obj : list) {
            if (arraySet.contains(((com.vinfast.companion.notificationkit.domain.model.TheftAlertImageBundle) obj).d())) {
                arrayList2.add(obj);
            }
        }
        java.util.Iterator it = arrayList2.iterator();
        while (it.hasNext()) {
            java.util.Collection collectionValues = ((com.vinfast.companion.notificationkit.domain.model.TheftAlertImageBundle) it.next()).b().values();
            kotlin.jvm.internal.Intrinsics.k(collectionValues, "<get-values>(...)");
            java.util.ArrayList arrayList3 = new java.util.ArrayList();
            java.util.Iterator it2 = collectionValues.iterator();
            while (true) {
                if (!it2.hasNext()) {
                    break;
                }
                java.lang.Object next = it2.next();
                com.vinfast.companion.core.utils.imageUtis.imageToken.LoadingImageToken loadingImageTokenD = ((com.vinfast.companion.notificationkit.domain.model.TheftAlertImage) next).d();
                java.lang.String strB = loadingImageTokenD != null ? loadingImageTokenD.b() : null;
                if (!(strB == null || kotlin.text.StringsKt.v0(strB))) {
                    arrayList3.add(next);
                }
            }
            java.util.ArrayList arrayList4 = new java.util.ArrayList(kotlin.collections.CollectionsKt.z(arrayList3, 10));
            java.util.Iterator it3 = arrayList3.iterator();
            while (it3.hasNext()) {
                com.vinfast.companion.core.utils.imageUtis.imageToken.LoadingImageToken loadingImageTokenD2 = ((com.vinfast.companion.notificationkit.domain.model.TheftAlertImage) it3.next()).d();
                java.lang.String strB2 = loadingImageTokenD2 != null ? loadingImageTokenD2.b() : null;
                kotlin.jvm.internal.Intrinsics.i(strB2);
                arrayList4.add(strB2);
            }
            arrayList.addAll(arrayList4);
        }
        this._shareImagesLiveData.q(arrayList);
    }

    protected final void h0(com.vinfast.companion.core.utils.notification.Notification notification) {
        kotlin.jvm.internal.Intrinsics.l(notification, "<set-?>");
        this.mNotification = notification;
    }
}
