package com.vinfast.companion.notification.ui.theftalert.dialog;

/* 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 = {"\u0000 \u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u000f\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\n\b\u0007\u0018\u00002\u00020\u0001BA\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\t\u001a\u00020\b\u0012\u0006\u0010\u000b\u001a\u00020\n\u0012\u0006\u0010\r\u001a\u00020\f\u0012\u0006\u0010\u000f\u001a\u00020\u000e¢\u0006\u0004\b\u0010\u0010\u0011J\u000f\u0010\u0013\u001a\u00020\u0012H\u0002¢\u0006\u0004\b\u0013\u0010\u0014J\u000f\u0010\u0015\u001a\u00020\u0012H\u0002¢\u0006\u0004\b\u0015\u0010\u0014J\u000f\u0010\u0016\u001a\u00020\u0012H\u0002¢\u0006\u0004\b\u0016\u0010\u0014J\u000f\u0010\u0017\u001a\u00020\u0012H\u0002¢\u0006\u0004\b\u0017\u0010\u0014J\u000f\u0010\u0018\u001a\u00020\u0012H\u0002¢\u0006\u0004\b\u0018\u0010\u0014J\u0017\u0010\u001b\u001a\u00020\u00122\b\u0010\u001a\u001a\u0004\u0018\u00010\u0019¢\u0006\u0004\b\u001b\u0010\u001cJ\r\u0010\u001d\u001a\u00020\u0012¢\u0006\u0004\b\u001d\u0010\u0014J\r\u0010\u001e\u001a\u00020\u0012¢\u0006\u0004\b\u001e\u0010\u0014J\u000f\u0010 \u001a\u0004\u0018\u00010\u001f¢\u0006\u0004\b \u0010!R\u0016\u0010\u0003\u001a\u00020\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\"\u0010#R\u0014\u0010\u0005\u001a\u00020\u00048\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b$\u0010%R\u0014\u0010\u0007\u001a\u00020\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b&\u0010'R\u0014\u0010\t\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b \u0010(R\u0014\u0010\u000b\u001a\u00020\n8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b)\u0010*R\u0014\u0010\r\u001a\u00020\f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b+\u0010,R\u0014\u0010\u000f\u001a\u00020\u000e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b-\u0010.R\u001a\u00102\u001a\b\u0012\u0004\u0012\u00020\u001f0/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b0\u00101R\u001a\u00105\u001a\b\u0012\u0004\u0012\u0002030/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b4\u00101R\u001a\u00108\u001a\b\u0012\u0004\u0012\u0002060/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b7\u00101R\u001a\u0010;\u001a\b\u0012\u0004\u0012\u0002090/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b:\u00101R\u001a\u0010=\u001a\b\u0012\u0004\u0012\u0002090/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b<\u00101R\u001a\u0010@\u001a\b\u0012\u0004\u0012\u00020>0/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b?\u00101R\u001a\u0010B\u001a\b\u0012\u0004\u0012\u00020>0/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bA\u00101R\u001a\u0010D\u001a\b\u0012\u0004\u0012\u00020>0/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bC\u00101R\u0018\u0010F\u001a\u0004\u0018\u00010\u001f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001b\u0010ER\u0016\u0010J\u001a\u00020G8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\bH\u0010IR\u001b\u0010N\u001a\u00020K8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0015\u0010L\u001a\u0004\b)\u0010MR\u0014\u0010P\u001a\u00020K8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0018\u0010OR\u001d\u0010V\u001a\b\u0012\u0004\u0012\u00020R0Q8\u0006¢\u0006\f\n\u0004\bS\u0010T\u001a\u0004\b:\u0010UR\u0016\u0010Y\u001a\u0004\u0018\u00010W8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\bC\u0010XR\u0014\u0010[\u001a\u00020>8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\bH\u0010ZR\u0017\u0010^\u001a\b\u0012\u0004\u0012\u00020\u001f0\\8F¢\u0006\u0006\u001a\u0004\b?\u0010]R\u0017\u0010_\u001a\b\u0012\u0004\u0012\u0002030\\8F¢\u0006\u0006\u001a\u0004\b-\u0010]R\u0017\u0010`\u001a\b\u0012\u0004\u0012\u0002060\\8F¢\u0006\u0006\u001a\u0004\bA\u0010]R\u0017\u0010a\u001a\b\u0012\u0004\u0012\u0002090\\8F¢\u0006\u0006\u001a\u0004\b7\u0010]R\u0017\u0010b\u001a\b\u0012\u0004\u0012\u0002090\\8F¢\u0006\u0006\u001a\u0004\b0\u0010]R\u0017\u0010c\u001a\b\u0012\u0004\u0012\u00020>0\\8F¢\u0006\u0006\u001a\u0004\b+\u0010]R\u0017\u0010d\u001a\b\u0012\u0004\u0012\u00020>0\\8F¢\u0006\u0006\u001a\u0004\b4\u0010]R\u0017\u0010e\u001a\b\u0012\u0004\u0012\u00020>0\\8F¢\u0006\u0006\u001a\u0004\b<\u0010]¨\u0006f"}, d2 = {"Lcom/vinfast/companion/notification/ui/theftalert/dialog/TheftAlertDialogViewModel;", "Landroidx/lifecycle/ViewModel;", "Lcom/vinfast/companion/notificationkit/manager/INotificationManager;", "notificationManager", "Lcom/vinfast/companion/vehiclekit/data/manager/IVehicleManager;", "vehicleManager", "Lcom/vinfast/companion/vehiclekit/data/repository/VehicleRepository;", "vehicleRepository", "Lcom/vinfast/companion/map/manager/HEREManager;", "hereManager", "Lcom/vinfast/companion/remotecontrolskit/manager/IRemoteControlManager;", "remoteControlManager", "Lcom/vinfast/companion/corenetwork/manager/remoteConfig/IRemoteConfigManager;", "remoteConfigManager", "Lcom/vinfast/companion/core/managers/BuildConfigManager;", "buildConfigManager", "<init>", "(Lcom/vinfast/companion/notificationkit/manager/INotificationManager;Lcom/vinfast/companion/vehiclekit/data/manager/IVehicleManager;Lcom/vinfast/companion/vehiclekit/data/repository/VehicleRepository;Lcom/vinfast/companion/map/manager/HEREManager;Lcom/vinfast/companion/remotecontrolskit/manager/IRemoteControlManager;Lcom/vinfast/companion/corenetwork/manager/remoteConfig/IRemoteConfigManager;Lcom/vinfast/companion/core/managers/BuildConfigManager;)V", "", "D", "()V", "A", "E", "F", "B", "Landroid/os/Bundle;", "arguments", "y", "(Landroid/os/Bundle;)V", "I", "L", "Lcom/vinfast/companion/core/utils/notification/Notification;", "m", "()Lcom/vinfast/companion/core/utils/notification/Notification;", "j", "Lcom/vinfast/companion/notificationkit/manager/INotificationManager;", "k", "Lcom/vinfast/companion/vehiclekit/data/manager/IVehicleManager;", "l", "Lcom/vinfast/companion/vehiclekit/data/repository/VehicleRepository;", "Lcom/vinfast/companion/map/manager/HEREManager;", "n", "Lcom/vinfast/companion/remotecontrolskit/manager/IRemoteControlManager;", "o", "Lcom/vinfast/companion/corenetwork/manager/remoteConfig/IRemoteConfigManager;", "p", "Lcom/vinfast/companion/core/managers/BuildConfigManager;", "Landroidx/lifecycle/MutableLiveData;", "q", "Landroidx/lifecycle/MutableLiveData;", "_theftAlertNotificationLiveData", "Lcom/vinfast/companion/notificationkit/domain/model/TheftAlertImageBundle;", "r", "_imageBundleLiveData", "Ljava/util/Date;", "s", "_timeLiveData", "", "t", "_locationLiveData", "u", "_licensePlateLiveData", "", "v", "_goToTheftAlertDetailLiveData", "w", "_loadingLiveData", "x", "_seePhotoVisible", "Lcom/vinfast/companion/core/utils/notification/Notification;", "mNotification", "Lcom/vinfast/companion/notification/ui/theftalert/TheftAlertMessageContentViewModel;", "z", "Lcom/vinfast/companion/notification/ui/theftalert/TheftAlertMessageContentViewModel;", "mTheftAlertContentViewModel", "Lio/reactivex/rxjava3/disposables/CompositeDisposable;", "Lkotlin/Lazy;", "()Lio/reactivex/rxjava3/disposables/CompositeDisposable;", "compositeDisposable", "Lio/reactivex/rxjava3/disposables/CompositeDisposable;", "vehicleScopedDisposable", "Lcom/jakewharton/rxrelay3/PublishRelay;", "Lcom/vinfast/companion/remotecontrolskit/persitent/model/info/common/RemoteItemResponses;", "C", "Lcom/jakewharton/rxrelay3/PublishRelay;", "()Lcom/jakewharton/rxrelay3/PublishRelay;", "remoteControlResponseLiveData", "Lcom/vinfast/companion/core/uiPrototype/base/VehicleType;", "()Lcom/vinfast/companion/core/uiPrototype/base/VehicleType;", "vehicleType", "()Z", "isSupportNavigation", "Landroidx/lifecycle/LiveData;", "()Landroidx/lifecycle/LiveData;", "theftAlertNotificationLiveData", "imageBundleLiveData", "timeLiveData", "locationLiveData", "licensePlateLiveData", "goToTheftAlertDetailLiveData", "loadingLiveData", "seePhotoVisible", "notification_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
@kotlin.jvm.internal.SourceDebugExtension
public final class TheftAlertDialogViewModel extends androidx.lifecycle.ViewModel {

    /* JADX INFO: renamed from: A, reason: from kotlin metadata */
    private final kotlin.Lazy compositeDisposable;

    /* JADX INFO: renamed from: B, reason: from kotlin metadata */
    private final io.reactivex.rxjava3.disposables.CompositeDisposable vehicleScopedDisposable;

    /* JADX INFO: renamed from: C, reason: from kotlin metadata */
    private final com.jakewharton.rxrelay3.PublishRelay remoteControlResponseLiveData;

    /* JADX INFO: renamed from: j, reason: from kotlin metadata */
    private com.vinfast.companion.notificationkit.manager.INotificationManager notificationManager;

    /* JADX INFO: renamed from: k, reason: from kotlin metadata */
    private final com.vinfast.companion.vehiclekit.data.manager.IVehicleManager vehicleManager;

    /* JADX INFO: renamed from: l, reason: from kotlin metadata */
    private final com.vinfast.companion.vehiclekit.data.repository.VehicleRepository vehicleRepository;

    /* JADX INFO: renamed from: m, reason: from kotlin metadata */
    private final com.vinfast.companion.map.manager.HEREManager hereManager;

    /* JADX INFO: renamed from: n, reason: from kotlin metadata */
    private final com.vinfast.companion.remotecontrolskit.manager.IRemoteControlManager remoteControlManager;

    /* JADX INFO: renamed from: o, reason: from kotlin metadata */
    private final com.vinfast.companion.corenetwork.manager.remoteConfig.IRemoteConfigManager remoteConfigManager;

    /* JADX INFO: renamed from: p, reason: from kotlin metadata */
    private final com.vinfast.companion.core.managers.BuildConfigManager buildConfigManager;

    /* JADX INFO: renamed from: q, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _theftAlertNotificationLiveData;

    /* JADX INFO: renamed from: r, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _imageBundleLiveData;

    /* JADX INFO: renamed from: s, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _timeLiveData;

    /* JADX INFO: renamed from: t, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _locationLiveData;

    /* JADX INFO: renamed from: u, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _licensePlateLiveData;

    /* JADX INFO: renamed from: v, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _goToTheftAlertDetailLiveData;

    /* JADX INFO: renamed from: w, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _loadingLiveData;

    /* JADX INFO: renamed from: x, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _seePhotoVisible;

    /* JADX INFO: renamed from: y, reason: from kotlin metadata */
    private com.vinfast.companion.core.utils.notification.Notification mNotification;

    /* JADX INFO: renamed from: z, reason: from kotlin metadata */
    private com.vinfast.companion.notification.ui.theftalert.TheftAlertMessageContentViewModel mTheftAlertContentViewModel;

    public TheftAlertDialogViewModel(com.vinfast.companion.notificationkit.manager.INotificationManager iNotificationManager, com.vinfast.companion.vehiclekit.data.manager.IVehicleManager iVehicleManager, com.vinfast.companion.vehiclekit.data.repository.VehicleRepository vehicleRepository, com.vinfast.companion.map.manager.HEREManager hEREManager, com.vinfast.companion.remotecontrolskit.manager.IRemoteControlManager iRemoteControlManager, com.vinfast.companion.corenetwork.manager.remoteConfig.IRemoteConfigManager iRemoteConfigManager, com.vinfast.companion.core.managers.BuildConfigManager buildConfigManager) {
        kotlin.jvm.internal.Intrinsics.l(iNotificationManager, "notificationManager");
        kotlin.jvm.internal.Intrinsics.l(iVehicleManager, "vehicleManager");
        kotlin.jvm.internal.Intrinsics.l(vehicleRepository, "vehicleRepository");
        kotlin.jvm.internal.Intrinsics.l(hEREManager, "hereManager");
        kotlin.jvm.internal.Intrinsics.l(iRemoteControlManager, "remoteControlManager");
        kotlin.jvm.internal.Intrinsics.l(iRemoteConfigManager, "remoteConfigManager");
        kotlin.jvm.internal.Intrinsics.l(buildConfigManager, "buildConfigManager");
        this.notificationManager = iNotificationManager;
        this.vehicleManager = iVehicleManager;
        this.vehicleRepository = vehicleRepository;
        this.hereManager = hEREManager;
        this.remoteControlManager = iRemoteControlManager;
        this.remoteConfigManager = iRemoteConfigManager;
        this.buildConfigManager = buildConfigManager;
        this._theftAlertNotificationLiveData = new androidx.lifecycle.MutableLiveData();
        this._imageBundleLiveData = new androidx.lifecycle.MutableLiveData();
        this._timeLiveData = new androidx.lifecycle.MutableLiveData();
        this._locationLiveData = new androidx.lifecycle.MutableLiveData();
        this._licensePlateLiveData = new androidx.lifecycle.MutableLiveData();
        this._goToTheftAlertDetailLiveData = new androidx.lifecycle.MutableLiveData();
        this._loadingLiveData = new androidx.lifecycle.MutableLiveData();
        this._seePhotoVisible = new androidx.lifecycle.MutableLiveData();
        this.compositeDisposable = kotlin.LazyKt.b(new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.notification.ui.theftalert.dialog.m
            public final java.lang.Object invoke() {
                return com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel.l();
            }
        });
        this.vehicleScopedDisposable = new io.reactivex.rxjava3.disposables.CompositeDisposable();
        com.jakewharton.rxrelay3.PublishRelay publishRelayC = com.jakewharton.rxrelay3.PublishRelay.c();
        kotlin.jvm.internal.Intrinsics.k(publishRelayC, "create(...)");
        this.remoteControlResponseLiveData = publishRelayC;
        F();
    }

    private final void A() {
        java.lang.String strS;
        com.vinfast.companion.core.utils.notification.Notification notification = this.mNotification;
        if (notification == null || (strS = notification.s()) == null) {
            return;
        }
        io.reactivex.rxjava3.disposables.Disposable disposableSubscribe = com.vinfast.companion.core.extensions.RxExtensionKt.B(this.notificationManager.c(strS)).subscribe(new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel$observeLatestTheftAlertImage$1
            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final void accept(com.vinfast.companion.notificationkit.domain.model.TheftAlertImageBundle theftAlertImageBundle) {
                kotlin.jvm.internal.Intrinsics.l(theftAlertImageBundle, "imageBundle");
                this.a._imageBundleLiveData.n(theftAlertImageBundle);
            }
        }, new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel$observeLatestTheftAlertImage$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, "it");
                timber.log.Timber.a.d(th);
            }
        });
        kotlin.jvm.internal.Intrinsics.k(disposableSubscribe, "subscribe(...)");
        com.vinfast.companion.core.extensions.RxExtensionKt.k(disposableSubscribe, n());
    }

    private final void B() {
        com.vinfast.companion.core.extensions.RxExtensionKt.k(com.vinfast.companion.core.extensions.RxExtensionKt.o(this.remoteControlManager.N0(new com.vinfast.companion.remotecontrolskit.persitent.model.info.common.RemoteItem[]{com.vinfast.companion.remotecontrolskit.persitent.model.info.common.RemoteItem.ANTI_THIEF_DETECTION_ALARM_STATUS}), new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.notification.ui.theftalert.dialog.q
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel.C(this.a, (com.vinfast.companion.remotecontrolskit.persitent.model.info.common.RemoteItemResponses) obj);
            }
        }), this.vehicleScopedDisposable);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit C(com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel theftAlertDialogViewModel, com.vinfast.companion.remotecontrolskit.persitent.model.info.common.RemoteItemResponses remoteItemResponses) {
        kotlin.jvm.internal.Intrinsics.l(remoteItemResponses, "response");
        theftAlertDialogViewModel.remoteControlResponseLiveData.accept(remoteItemResponses);
        return kotlin.Unit.a;
    }

    /* JADX WARN: Code duplicated, block: B:18:0x0046  */
    private final void D() {
        java.lang.String strW;
        com.vinfast.companion.core.uiPrototype.base.VehicleType vehicleTypeI;
        com.vinfast.companion.vehiclekit.data.persistent.model.Vehicle vehicle;
        com.vinfast.companion.core.utils.notification.Notification notification = this.mNotification;
        if (notification == null || (strW = notification.w()) == null) {
            return;
        }
        androidx.lifecycle.MutableLiveData mutableLiveData = this._seePhotoVisible;
        com.vinfast.companion.corenetwork.manager.remoteConfig.IRemoteConfigManager iRemoteConfigManager = this.remoteConfigManager;
        java.util.List list = (java.util.List) com.vinfast.companion.core.extensions.validity.ValidityExtensionKt.d(this.vehicleManager.i1());
        if (list != null) {
            java.util.Iterator it = list.iterator();
            do {
                if (!it.hasNext()) {
                    throw new java.util.NoSuchElementException("Collection contains no element matching the predicate.");
                }
                vehicle = (com.vinfast.companion.vehiclekit.data.persistent.model.Vehicle) it.next();
            } while (!kotlin.jvm.internal.Intrinsics.g(vehicle.J(), strW));
            if (vehicle != null) {
                vehicleTypeI = vehicle.I();
            } else {
                vehicleTypeI = null;
            }
        } else {
            vehicleTypeI = null;
        }
        mutableLiveData.n(java.lang.Boolean.valueOf(com.vinfast.companion.corenetwork.manager.remoteConfig.RemoteConfigExtensionKt.n(iRemoteConfigManager, vehicleTypeI)));
    }

    private final void E() {
        java.lang.String strS;
        com.vinfast.companion.core.utils.notification.Notification notification = this.mNotification;
        if (notification == null || (strS = notification.s()) == null) {
            return;
        }
        io.reactivex.rxjava3.disposables.Disposable disposableSubscribe = com.vinfast.companion.core.extensions.RxExtensionKt.B(this.notificationManager.f(strS)).subscribe(new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel$observeTheftAlertNotification$1
            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final void accept(com.vinfast.companion.core.utils.notification.Notification notification2) {
                kotlin.jvm.internal.Intrinsics.l(notification2, "notification");
                this.a._theftAlertNotificationLiveData.n(notification2);
                if (notification2.x()) {
                    com.vinfast.companion.notification.ui.theftalert.TheftAlertMessageContentViewModel theftAlertMessageContentViewModel = this.a.mTheftAlertContentViewModel;
                    if (theftAlertMessageContentViewModel == null) {
                        kotlin.jvm.internal.Intrinsics.C("mTheftAlertContentViewModel");
                        theftAlertMessageContentViewModel = null;
                    }
                    theftAlertMessageContentViewModel.f(notification2);
                }
            }
        }, new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel$observeTheftAlertNotification$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, n());
    }

    private final void F() {
        com.vinfast.companion.core.extensions.RxExtensionKt.k(this.vehicleScopedDisposable, n());
        io.reactivex.rxjava3.core.Observable observableDistinctUntilChanged = this.vehicleManager.o1().distinctUntilChanged();
        kotlin.jvm.internal.Intrinsics.k(observableDistinctUntilChanged, "distinctUntilChanged(...)");
        com.vinfast.companion.core.extensions.RxExtensionKt.k(com.vinfast.companion.core.extensions.RxExtensionKt.o(com.vinfast.companion.core.extensions.RxExtensionKt.y(observableDistinctUntilChanged), new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.notification.ui.theftalert.dialog.n
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel.H(this.a, (com.vinfast.companion.core.extensions.validity.Validity) obj);
            }
        }), n());
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit H(com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel theftAlertDialogViewModel, com.vinfast.companion.core.extensions.validity.Validity validity) {
        theftAlertDialogViewModel.vehicleScopedDisposable.d();
        if (validity.a() != null) {
            theftAlertDialogViewModel.B();
        }
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void J(com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel theftAlertDialogViewModel) {
        theftAlertDialogViewModel._loadingLiveData.q(java.lang.Boolean.FALSE);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void K(com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel theftAlertDialogViewModel) {
        theftAlertDialogViewModel._goToTheftAlertDetailLiveData.q(java.lang.Boolean.TRUE);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final io.reactivex.rxjava3.disposables.CompositeDisposable l() {
        return new io.reactivex.rxjava3.disposables.CompositeDisposable();
    }

    private final io.reactivex.rxjava3.disposables.CompositeDisposable n() {
        return (io.reactivex.rxjava3.disposables.CompositeDisposable) this.compositeDisposable.getValue();
    }

    private final com.vinfast.companion.core.uiPrototype.base.VehicleType x() {
        com.vinfast.companion.vehiclekit.data.persistent.model.Vehicle vehicle = (com.vinfast.companion.vehiclekit.data.persistent.model.Vehicle) com.vinfast.companion.core.extensions.validity.ValidityExtensionKt.d(this.vehicleManager.o1());
        if (vehicle != null) {
            return vehicle.I();
        }
        return null;
    }

    private final boolean z() {
        return this.buildConfigManager.d(com.vinfast.companion.core.managers.MarketFeatures.NAVIGATION, x());
    }

    public final void I() {
        java.lang.String strW;
        com.vinfast.companion.vehiclekit.data.persistent.model.Vehicle vehicle;
        java.lang.String strJ;
        com.vinfast.companion.core.utils.notification.Notification notification = this.mNotification;
        if (notification == null || (strW = notification.w()) == null || (vehicle = (com.vinfast.companion.vehiclekit.data.persistent.model.Vehicle) com.vinfast.companion.core.extensions.validity.ValidityExtensionKt.d(this.vehicleManager.o1())) == null || (strJ = vehicle.J()) == null) {
            return;
        }
        if (kotlin.jvm.internal.Intrinsics.g(strW, strJ)) {
            this._goToTheftAlertDetailLiveData.q(java.lang.Boolean.TRUE);
            return;
        }
        io.reactivex.rxjava3.core.Completable completableE = this.vehicleRepository.B(strW).e(com.vinfast.companion.vehiclekit.data.repository.VehicleRepository.H(this.vehicleRepository, false, 1, (java.lang.Object) null));
        kotlin.jvm.internal.Intrinsics.k(completableE, "andThen(...)");
        io.reactivex.rxjava3.disposables.Disposable disposableE = com.vinfast.companion.core.extensions.RxExtensionKt.x(completableE).t(new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel$onClickToSeeDetailTheftAlert$1
            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final void accept(io.reactivex.rxjava3.disposables.Disposable disposable) {
                kotlin.jvm.internal.Intrinsics.l(disposable, "it");
                this.a._loadingLiveData.q(java.lang.Boolean.TRUE);
            }
        }).o(new io.reactivex.rxjava3.functions.Action() { // from class: com.vinfast.companion.notification.ui.theftalert.dialog.o
            public final void run() {
                com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel.J(this.a);
            }
        }).E(new io.reactivex.rxjava3.functions.Action() { // from class: com.vinfast.companion.notification.ui.theftalert.dialog.p
            public final void run() {
                com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel.K(this.a);
            }
        }, new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.notification.ui.theftalert.dialog.TheftAlertDialogViewModel$onClickToSeeDetailTheftAlert$4
            /* 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(disposableE, "subscribe(...)");
        com.vinfast.companion.core.extensions.RxExtensionKt.k(disposableE, n());
    }

    public final void L() {
        n().d();
    }

    /* JADX INFO: renamed from: m, reason: from getter */
    public final com.vinfast.companion.core.utils.notification.Notification getMNotification() {
        return this.mNotification;
    }

    public final androidx.lifecycle.LiveData o() {
        return this._goToTheftAlertDetailLiveData;
    }

    public final androidx.lifecycle.LiveData p() {
        return this._imageBundleLiveData;
    }

    public final androidx.lifecycle.LiveData q() {
        return this._licensePlateLiveData;
    }

    public final androidx.lifecycle.LiveData r() {
        return this._loadingLiveData;
    }

    public final androidx.lifecycle.LiveData s() {
        return this._locationLiveData;
    }

    /* JADX INFO: renamed from: t, reason: from getter */
    public final com.jakewharton.rxrelay3.PublishRelay getRemoteControlResponseLiveData() {
        return this.remoteControlResponseLiveData;
    }

    public final androidx.lifecycle.LiveData u() {
        return this._seePhotoVisible;
    }

    public final androidx.lifecycle.LiveData v() {
        return this._theftAlertNotificationLiveData;
    }

    public final androidx.lifecycle.LiveData w() {
        return this._timeLiveData;
    }

    public final void y(android.os.Bundle arguments) {
        android.os.Parcelable parcelable;
        android.os.Parcelable parcelable2 = null;
        if (arguments != null) {
            if (android.os.Build.VERSION.SDK_INT >= 33) {
                parcelable = (android.os.Parcelable) com.vinfast.companion.authentication.ui.signup.termandcondition.batteryaoutopayment.a.a(arguments, "notificationData", com.vinfast.companion.core.utils.notification.Notification.class);
            } else {
                android.os.Parcelable parcelable3 = arguments.getParcelable("notificationData");
                parcelable = (com.vinfast.companion.core.utils.notification.Notification) (parcelable3 instanceof com.vinfast.companion.core.utils.notification.Notification ? parcelable3 : null);
            }
            parcelable2 = (com.vinfast.companion.core.utils.notification.Notification) parcelable;
        }
        this.mNotification = parcelable2;
        this.mTheftAlertContentViewModel = new com.vinfast.companion.notification.ui.theftalert.TheftAlertMessageContentViewModel(this.hereManager.c(), n(), this._timeLiveData, this._locationLiveData, this._licensePlateLiveData, z());
        E();
        A();
        D();
    }
}
