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 = {"\u0000l\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\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\n\b\u0007\u0018\u00002\u00020\u0001B)\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¢\u0006\u0004\b\n\u0010\u000bJ\u0017\u0010\u000f\u001a\u00020\u000e2\b\u0010\r\u001a\u0004\u0018\u00010\f¢\u0006\u0004\b\u000f\u0010\u0010J\r\u0010\u0011\u001a\u00020\u000e¢\u0006\u0004\b\u0011\u0010\u0012R\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010\u0014R\u0014\u0010\u0007\u001a\u00020\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0015\u0010\u0016R\u0014\u0010\t\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0017\u0010\u0018R\u001a\u0010\u001d\u001a\b\u0012\u0004\u0012\u00020\u001a0\u00198\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001b\u0010\u001cR\u001a\u0010 \u001a\b\u0012\u0004\u0012\u00020\u001e0\u00198\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001f\u0010\u001cR\u001a\u0010#\u001a\b\u0012\u0004\u0012\u00020!0\u00198\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\"\u0010\u001cR\u001a\u0010%\u001a\b\u0012\u0004\u0012\u00020!0\u00198\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b$\u0010\u001cR\u0016\u0010)\u001a\u00020&8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b'\u0010(R\u0016\u0010-\u001a\u0004\u0018\u00010*8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b+\u0010,R\u0014\u00101\u001a\u00020.8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b/\u00100R\u0017\u00105\u001a\b\u0012\u0004\u0012\u00020\u001a028F¢\u0006\u0006\u001a\u0004\b3\u00104R\u0017\u00107\u001a\b\u0012\u0004\u0012\u00020\u001e028F¢\u0006\u0006\u001a\u0004\b6\u00104R\u0017\u00109\u001a\b\u0012\u0004\u0012\u00020!028F¢\u0006\u0006\u001a\u0004\b8\u00104R\u0017\u0010;\u001a\b\u0012\u0004\u0012\u00020!028F¢\u0006\u0006\u001a\u0004\b:\u00104¨\u0006<"}, d2 = {"Lcom/vinfast/companion/notification/ui/theftalert/dialog/TheftAlertStoppedViewModel;", "Lcom/vinfast/companion/notification/ui/detail/NotificationDetailViewModel;", "Lcom/vinfast/companion/map/manager/HEREManager;", "hereManager", "Lcom/vinfast/companion/notificationkit/manager/INotificationManager;", "notificationManager", "Lcom/vinfast/companion/vehiclekit/data/manager/IVehicleManager;", "vehicleManager", "Lcom/vinfast/companion/core/managers/BuildConfigManager;", "buildConfigManager", "<init>", "(Lcom/vinfast/companion/map/manager/HEREManager;Lcom/vinfast/companion/notificationkit/manager/INotificationManager;Lcom/vinfast/companion/vehiclekit/data/manager/IVehicleManager;Lcom/vinfast/companion/core/managers/BuildConfigManager;)V", "Landroid/os/Bundle;", "arguments", "", "Q", "(Landroid/os/Bundle;)V", "S", "()V", "n", "Lcom/vinfast/companion/map/manager/HEREManager;", "o", "Lcom/vinfast/companion/vehiclekit/data/manager/IVehicleManager;", "p", "Lcom/vinfast/companion/core/managers/BuildConfigManager;", "Landroidx/lifecycle/MutableLiveData;", "Lcom/vinfast/companion/core/utils/notification/Notification;", "q", "Landroidx/lifecycle/MutableLiveData;", "_notificationLiveData", "Ljava/util/Date;", "r", "_timeLiveData", "", "s", "_locationLiveData", "t", "_licensePlateLiveData", "Lcom/vinfast/companion/notification/ui/theftalert/TheftAlertMessageContentViewModel;", "u", "Lcom/vinfast/companion/notification/ui/theftalert/TheftAlertMessageContentViewModel;", "mTheftAlertContentViewModel", "Lcom/vinfast/companion/core/uiPrototype/base/VehicleType;", "P", "()Lcom/vinfast/companion/core/uiPrototype/base/VehicleType;", "vehicleType", "", "R", "()Z", "isSupportNavigation", "Landroidx/lifecycle/LiveData;", "N", "()Landroidx/lifecycle/LiveData;", "notificationLiveData", "O", "timeLiveData", "M", "locationLiveData", "L", "licensePlateLiveData", "notification_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
@kotlin.jvm.internal.SourceDebugExtension
public final class TheftAlertStoppedViewModel extends com.vinfast.companion.notification.ui.detail.NotificationDetailViewModel {

    /* JADX INFO: renamed from: n, reason: from kotlin metadata */
    private final com.vinfast.companion.map.manager.HEREManager hereManager;

    /* JADX INFO: renamed from: o, reason: from kotlin metadata */
    private final com.vinfast.companion.vehiclekit.data.manager.IVehicleManager vehicleManager;

    /* 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 _notificationLiveData;

    /* JADX INFO: renamed from: r, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _timeLiveData;

    /* JADX INFO: renamed from: s, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _locationLiveData;

    /* JADX INFO: renamed from: t, reason: from kotlin metadata */
    private final androidx.lifecycle.MutableLiveData _licensePlateLiveData;

    /* JADX INFO: renamed from: u, reason: from kotlin metadata */
    private com.vinfast.companion.notification.ui.theftalert.TheftAlertMessageContentViewModel mTheftAlertContentViewModel;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public TheftAlertStoppedViewModel(com.vinfast.companion.map.manager.HEREManager hEREManager, com.vinfast.companion.notificationkit.manager.INotificationManager iNotificationManager, com.vinfast.companion.vehiclekit.data.manager.IVehicleManager iVehicleManager, com.vinfast.companion.core.managers.BuildConfigManager buildConfigManager) {
        super(iNotificationManager);
        kotlin.jvm.internal.Intrinsics.l(hEREManager, "hereManager");
        kotlin.jvm.internal.Intrinsics.l(iNotificationManager, "notificationManager");
        kotlin.jvm.internal.Intrinsics.l(iVehicleManager, "vehicleManager");
        kotlin.jvm.internal.Intrinsics.l(buildConfigManager, "buildConfigManager");
        this.hereManager = hEREManager;
        this.vehicleManager = iVehicleManager;
        this.buildConfigManager = buildConfigManager;
        this._notificationLiveData = new androidx.lifecycle.MutableLiveData();
        this._timeLiveData = new androidx.lifecycle.MutableLiveData();
        this._locationLiveData = new androidx.lifecycle.MutableLiveData();
        this._licensePlateLiveData = new androidx.lifecycle.MutableLiveData();
    }

    private final com.vinfast.companion.core.uiPrototype.base.VehicleType P() {
        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 R() {
        return this.buildConfigManager.d(com.vinfast.companion.core.managers.MarketFeatures.NAVIGATION, P());
    }

    public final androidx.lifecycle.LiveData L() {
        return this._licensePlateLiveData;
    }

    public final androidx.lifecycle.LiveData M() {
        return this._locationLiveData;
    }

    public final androidx.lifecycle.LiveData N() {
        return this._notificationLiveData;
    }

    public final androidx.lifecycle.LiveData O() {
        return this._timeLiveData;
    }

    public final void Q(android.os.Bundle arguments) {
        android.os.Parcelable parcelable;
        androidx.lifecycle.MutableLiveData mutableLiveData = this._notificationLiveData;
        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 parcelable2 = arguments.getParcelable("notificationData");
                if (!(parcelable2 instanceof com.vinfast.companion.core.utils.notification.Notification)) {
                    parcelable2 = null;
                }
                parcelable = (com.vinfast.companion.core.utils.notification.Notification) parcelable2;
            }
            com.vinfast.companion.core.utils.notification.Notification notification = (com.vinfast.companion.core.utils.notification.Notification) parcelable;
            if (notification == null) {
                return;
            }
            mutableLiveData.q(notification);
            timber.log.Timber.Forest forest = timber.log.Timber.a;
            com.vinfast.companion.core.utils.notification.Notification notification2 = (com.vinfast.companion.core.utils.notification.Notification) this._notificationLiveData.f();
            forest.a("Notification: " + (notification2 != null ? com.vinfast.companion.core.extensions.ObjectExtensionKt.t(notification2) : null), new java.lang.Object[0]);
            com.vinfast.companion.notification.ui.theftalert.TheftAlertMessageContentViewModel theftAlertMessageContentViewModel = new com.vinfast.companion.notification.ui.theftalert.TheftAlertMessageContentViewModel(this.hereManager.c(), s(), this._timeLiveData, this._locationLiveData, this._licensePlateLiveData, R());
            this.mTheftAlertContentViewModel = theftAlertMessageContentViewModel;
            java.lang.Object objF = this._notificationLiveData.f();
            kotlin.jvm.internal.Intrinsics.i(objF);
            theftAlertMessageContentViewModel.f((com.vinfast.companion.core.utils.notification.Notification) objF);
        }
    }

    public final void S() {
        com.vinfast.companion.core.utils.notification.Notification notification = (com.vinfast.companion.core.utils.notification.Notification) this._notificationLiveData.f();
        if (notification == null) {
            return;
        }
        K(kotlin.collections.CollectionsKt.e(notification));
    }
}
