package com.vinfast.companion.notification.ui.theftalert.detail;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
@kotlin.Metadata(d1 = {"\u0000r\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0004\b\u0017\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0007¢\u0006\u0004\b\u0003\u0010\u0004J\u000f\u0010\u0006\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\u0006\u0010\u0004J\u000f\u0010\b\u001a\u00020\u0007H\u0002¢\u0006\u0004\b\b\u0010\tJ\u0019\u0010\f\u001a\u00020\u00052\b\u0010\u000b\u001a\u0004\u0018\u00010\nH\u0002¢\u0006\u0004\b\f\u0010\rJ\u000f\u0010\u000e\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\u000e\u0010\u0004J\u0017\u0010\u0011\u001a\u00020\u00052\u0006\u0010\u0010\u001a\u00020\u000fH\u0002¢\u0006\u0004\b\u0011\u0010\u0012J\u0015\u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\u00140\u0013H\u0002¢\u0006\u0004\b\u0015\u0010\u0016J\u000f\u0010\u0017\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\u0017\u0010\u0004J\u000f\u0010\u0019\u001a\u00020\u0018H\u0016¢\u0006\u0004\b\u0019\u0010\u001aJ!\u0010\u001d\u001a\u00020\u00052\u0006\u0010\u001c\u001a\u00020\u001b2\b\u0010\u000b\u001a\u0004\u0018\u00010\nH\u0016¢\u0006\u0004\b\u001d\u0010\u001eJ\u000f\u0010 \u001a\u00020\u001fH\u0016¢\u0006\u0004\b \u0010!J\u000f\u0010\"\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\"\u0010\u0004J\u000f\u0010#\u001a\u00020\u0005H\u0016¢\u0006\u0004\b#\u0010\u0004J\u000f\u0010$\u001a\u00020\u0005H\u0016¢\u0006\u0004\b$\u0010\u0004J\u0017\u0010'\u001a\u00020\u00072\u0006\u0010&\u001a\u00020%H\u0014¢\u0006\u0004\b'\u0010(J\u0017\u0010)\u001a\u00020\u00072\u0006\u0010&\u001a\u00020%H\u0014¢\u0006\u0004\b)\u0010(J\u000f\u0010*\u001a\u00020\u0007H\u0014¢\u0006\u0004\b*\u0010\tJ\u000f\u0010+\u001a\u00020\u0007H\u0014¢\u0006\u0004\b+\u0010\tJ\u000f\u0010,\u001a\u00020\u0005H\u0014¢\u0006\u0004\b,\u0010\u0004R\u001b\u00100\u001a\u00020\u00188BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b-\u0010.\u001a\u0004\b/\u0010\u001aR\"\u00108\u001a\u0002018\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b2\u00103\u001a\u0004\b4\u00105\"\u0004\b6\u00107R\u0014\u0010<\u001a\u0002098\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b:\u0010;R\u0016\u0010@\u001a\u00020=8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b>\u0010?¨\u0006A"}, d2 = {"Lcom/vinfast/companion/notification/ui/theftalert/detail/TheftAlertDetailFragment;", "Lcom/vinfast/companion/core/base/fragment/BaseFragment;", "Lcom/vinfast/companion/notification/databinding/FragmentTheftAlertDetailBinding;", "<init>", "()V", "", "w2", "", "j2", "()Ljava/lang/String;", "Landroid/os/Bundle;", "savedInstanceState", "r2", "(Landroid/os/Bundle;)V", "q2", "Lcom/vinfast/companion/map/model/MapLocation;", "mapLocation", "h2", "(Lcom/vinfast/companion/map/model/MapLocation;)V", "", "Lcom/here/sdk/gestures/GestureType;", "g2", "()Ljava/util/List;", "E2", "Lcom/vinfast/companion/notification/ui/theftalert/detail/TheftAlertDetailViewModel;", "F2", "()Lcom/vinfast/companion/notification/ui/theftalert/detail/TheftAlertDetailViewModel;", "Landroid/view/View;", "view", "y1", "(Landroid/view/View;Landroid/os/Bundle;)V", "Lcom/vinfast/companion/core/base/fragment/ToolbarConfiguration;", "T0", "()Lcom/vinfast/companion/core/base/fragment/ToolbarConfiguration;", "onResume", "onPause", "onDestroyView", "Lcom/vinfast/companion/core/utils/notification/Notification;", "notification", "o2", "(Lcom/vinfast/companion/core/utils/notification/Notification;)Ljava/lang/String;", "i2", "n2", "k2", "p2", "A", "Lkotlin/Lazy;", "l2", "mViewModel", "Lcom/vinfast/companion/remotecontrolskit/manager/RemoteEventHandler;", "B", "Lcom/vinfast/companion/remotecontrolskit/manager/RemoteEventHandler;", "m2", "()Lcom/vinfast/companion/remotecontrolskit/manager/RemoteEventHandler;", "setRemoteEventHandler", "(Lcom/vinfast/companion/remotecontrolskit/manager/RemoteEventHandler;)V", "remoteEventHandler", "Lcom/vinfast/companion/map/wrapper/mapview/HereMapViewManager;", "C", "Lcom/vinfast/companion/map/wrapper/mapview/HereMapViewManager;", "mMapManager", "", "D", "Z", "mFirstTime", "notification_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
@dagger.hilt.android.AndroidEntryPoint
@kotlin.jvm.internal.SourceDebugExtension
public class TheftAlertDetailFragment extends com.vinfast.companion.notification.ui.theftalert.detail.Hilt_TheftAlertDetailFragment<com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding> {

    /* JADX INFO: renamed from: A, reason: from kotlin metadata */
    private final kotlin.Lazy mViewModel;

    /* JADX INFO: renamed from: B, reason: from kotlin metadata */
    public com.vinfast.companion.remotecontrolskit.manager.RemoteEventHandler remoteEventHandler;

    /* JADX INFO: renamed from: C, reason: from kotlin metadata */
    private final com.vinfast.companion.map.wrapper.mapview.HereMapViewManager mMapManager;

    /* JADX INFO: renamed from: D, reason: from kotlin metadata */
    private boolean mFirstTime;

    /* JADX INFO: renamed from: com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment$1, reason: invalid class name */
    /* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
    @kotlin.Metadata(k = 3, mv = {2, 2, 0}, xi = 48)
    static final /* synthetic */ class AnonymousClass1 extends kotlin.jvm.internal.FunctionReferenceImpl implements kotlin.jvm.functions.Function1<android.view.LayoutInflater, com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding> {
        public static final com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.AnonymousClass1 a = new com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.AnonymousClass1();

        AnonymousClass1() {
            super(1, com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding.class, "inflate", "inflate(Landroid/view/LayoutInflater;)Lcom/vinfast/companion/notification/databinding/FragmentTheftAlertDetailBinding;", 0);
        }

        /* JADX INFO: renamed from: q, reason: merged with bridge method [inline-methods] */
        public final com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding invoke(android.view.LayoutInflater layoutInflater) {
            kotlin.jvm.internal.Intrinsics.l(layoutInflater, "p0");
            return com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding.c(layoutInflater);
        }
    }

    /* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
    @kotlin.Metadata(k = 3, mv = {2, 2, 0}, xi = 48)
    public static final /* synthetic */ class WhenMappings {
        public static final /* synthetic */ int[] a;

        static {
            int[] iArr = new int[com.vinfast.companion.remotecontrolskit.persitent.model.info.common.RemoteItem.values().length];
            try {
                iArr[com.vinfast.companion.remotecontrolskit.persitent.model.info.common.RemoteItem.ANTI_THIEF_DETECTION_ALARM_STATUS.ordinal()] = 1;
            } catch (java.lang.NoSuchFieldError unused) {
            }
            a = iArr;
        }
    }

    public TheftAlertDetailFragment() {
        super(com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.AnonymousClass1.a);
        final kotlin.jvm.functions.Function0<androidx.fragment.app.Fragment> function0 = new kotlin.jvm.functions.Function0<androidx.fragment.app.Fragment>() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment$special$$inlined$viewModels$default$1
            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            {
                super(0);
            }

            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final androidx.fragment.app.Fragment invoke() {
                return this;
            }
        };
        final kotlin.Lazy lazyA = kotlin.LazyKt.a(kotlin.LazyThreadSafetyMode.NONE, new kotlin.jvm.functions.Function0<androidx.lifecycle.ViewModelStoreOwner>() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment$special$$inlined$viewModels$default$2
            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            {
                super(0);
            }

            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final androidx.lifecycle.ViewModelStoreOwner invoke() {
                return (androidx.lifecycle.ViewModelStoreOwner) function0.invoke();
            }
        });
        final kotlin.jvm.functions.Function0 function1 = null;
        this.mViewModel = androidx.fragment.app.FragmentViewModelLazyKt.c(this, kotlin.jvm.internal.Reflection.b(com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailViewModel.class), new kotlin.jvm.functions.Function0<androidx.lifecycle.ViewModelStore>() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment$special$$inlined$viewModels$default$3
            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            {
                super(0);
            }

            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final androidx.lifecycle.ViewModelStore invoke() {
                return androidx.fragment.app.FragmentViewModelLazyKt.b(lazyA).getViewModelStore();
            }
        }, new kotlin.jvm.functions.Function0<androidx.lifecycle.viewmodel.CreationExtras>() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment$special$$inlined$viewModels$default$4
            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            {
                super(0);
            }

            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final androidx.lifecycle.viewmodel.CreationExtras invoke() {
                androidx.lifecycle.viewmodel.CreationExtras creationExtras;
                kotlin.jvm.functions.Function0 function2 = function1;
                if (function2 != null && (creationExtras = (androidx.lifecycle.viewmodel.CreationExtras) function2.invoke()) != null) {
                    return creationExtras;
                }
                androidx.lifecycle.HasDefaultViewModelProviderFactory hasDefaultViewModelProviderFactoryB = androidx.fragment.app.FragmentViewModelLazyKt.b(lazyA);
                androidx.lifecycle.HasDefaultViewModelProviderFactory hasDefaultViewModelProviderFactory = hasDefaultViewModelProviderFactoryB instanceof androidx.lifecycle.HasDefaultViewModelProviderFactory ? hasDefaultViewModelProviderFactoryB : null;
                return hasDefaultViewModelProviderFactory != null ? hasDefaultViewModelProviderFactory.getDefaultViewModelCreationExtras() : androidx.lifecycle.viewmodel.CreationExtras.Empty.c;
            }
        }, new kotlin.jvm.functions.Function0<androidx.lifecycle.ViewModelProvider.Factory>() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment$special$$inlined$viewModels$default$5
            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            {
                super(0);
            }

            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final androidx.lifecycle.ViewModelProvider.Factory invoke() {
                androidx.lifecycle.ViewModelProvider.Factory defaultViewModelProviderFactory;
                androidx.lifecycle.HasDefaultViewModelProviderFactory hasDefaultViewModelProviderFactoryB = androidx.fragment.app.FragmentViewModelLazyKt.b(lazyA);
                androidx.lifecycle.HasDefaultViewModelProviderFactory hasDefaultViewModelProviderFactory = hasDefaultViewModelProviderFactoryB instanceof androidx.lifecycle.HasDefaultViewModelProviderFactory ? hasDefaultViewModelProviderFactoryB : null;
                return (hasDefaultViewModelProviderFactory == null || (defaultViewModelProviderFactory = hasDefaultViewModelProviderFactory.getDefaultViewModelProviderFactory()) == null) ? this.getDefaultViewModelProviderFactory() : defaultViewModelProviderFactory;
            }
        });
        this.mMapManager = new com.vinfast.companion.map.wrapper.mapview.HereMapViewManager();
        this.mFirstTime = true;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit A2(com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment theftAlertDetailFragment, java.util.Date date) {
        java.lang.String strN2 = theftAlertDetailFragment.n2();
        com.vinfast.companion.core.utils.TimeUtils timeUtils = com.vinfast.companion.core.utils.TimeUtils.a;
        android.content.Context contextRequireContext = theftAlertDetailFragment.requireContext();
        kotlin.jvm.internal.Intrinsics.k(contextRequireContext, "requireContext(...)");
        java.lang.Long lValueOf = date != null ? java.lang.Long.valueOf(date.getTime()) : null;
        android.content.Context contextRequireContext2 = theftAlertDetailFragment.requireContext();
        kotlin.jvm.internal.Intrinsics.k(contextRequireContext2, "requireContext(...)");
        ((com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) theftAlertDetailFragment.T1()).j.n(new com.vinfast.companion.core.base.ui.model.DataTextInformation(109, false, false, false, (java.lang.Integer) null, (java.lang.String) null, (java.lang.Integer) null, com.vinfast.companion.core.extensions.StringExtensionKt.L(new android.text.SpannableString(strN2 + " " + timeUtils.f0(contextRequireContext, lValueOf, com.vinfast.companion.core.utils.localehelper.LocaleHelperExtensionsKt.b(contextRequireContext2))), strN2, false, false, false, false, (java.lang.Integer) null, 62, (java.lang.Object) null), (java.lang.String) null, false, (kotlin.jvm.functions.Function0) null, 1918, (kotlin.jvm.internal.DefaultConstructorMarker) null));
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit B2(com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment theftAlertDetailFragment, java.lang.String str) {
        java.lang.String strK2 = theftAlertDetailFragment.k2();
        ((com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) theftAlertDetailFragment.T1()).g.n(new com.vinfast.companion.core.base.ui.model.DataTextInformation(109, false, false, false, (java.lang.Integer) null, (java.lang.String) null, (java.lang.Integer) null, com.vinfast.companion.core.extensions.StringExtensionKt.L(new android.text.SpannableString(strK2 + " " + str), strK2, false, false, false, false, (java.lang.Integer) null, 62, (java.lang.Object) null), (java.lang.String) null, false, (kotlin.jvm.functions.Function0) null, 1918, (kotlin.jvm.internal.DefaultConstructorMarker) null));
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit C2(com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment theftAlertDetailFragment, com.vinfast.companion.map.model.MapLocation mapLocation) {
        kotlin.jvm.internal.Intrinsics.i(mapLocation);
        theftAlertDetailFragment.h2(mapLocation);
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit D2(com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment theftAlertDetailFragment, com.vinfast.companion.remotecontrolskit.persitent.model.info.common.RemoteItemResponses remoteItemResponses) {
        timber.log.Timber.a.a("LOG_REMOTE_STEPS: remoteControlResponseLiveData: " + remoteItemResponses.getControlItem().name() + ": " + remoteItemResponses, new java.lang.Object[0]);
        if (com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.WhenMappings.a[remoteItemResponses.getControlItem().ordinal()] == 1) {
            if (remoteItemResponses instanceof com.vinfast.companion.remotecontrolskit.persitent.model.info.common.RemoteItemResponses.Loading) {
                theftAlertDetailFragment.Q1(new com.vinfast.companion.core.base.ProgressType.ProgressDialogWithTimeout(((com.vinfast.companion.remotecontrolskit.persitent.model.info.common.RemoteItemResponses.Loading) remoteItemResponses).getTimeoutCommand()));
            } else {
                theftAlertDetailFragment.X0(com.vinfast.companion.core.base.ViewModelState.Idle.a);
            }
        }
        com.vinfast.companion.remotecontrolskit.manager.RemoteEventHandler remoteEventHandlerM2 = theftAlertDetailFragment.m2();
        android.content.Context contextRequireContext = theftAlertDetailFragment.requireContext();
        kotlin.jvm.internal.Intrinsics.k(contextRequireContext, "requireContext(...)");
        remoteEventHandlerM2.b(remoteItemResponses, contextRequireContext, theftAlertDetailFragment, theftAlertDetailFragment.k0(), (androidx.activity.result.ActivityResultLauncher) null);
        return kotlin.Unit.a;
    }

    private final void E2() {
        com.vinfast.companion.map.model.MapLocation mapLocation = (com.vinfast.companion.map.model.MapLocation) U1().U().f();
        if (mapLocation == null) {
            return;
        }
        com.vinfast.companion.map.tracking.TrackingActivity.Companion companion = com.vinfast.companion.map.tracking.TrackingActivity.INSTANCE;
        android.content.Context contextRequireContext = requireContext();
        kotlin.jvm.internal.Intrinsics.k(contextRequireContext, "requireContext(...)");
        startActivity(companion.a(contextRequireContext, new com.vinfast.companion.map.tracking.model.TrackingTheftAlert(mapLocation)));
    }

    private final java.util.List g2() {
        return kotlin.collections.CollectionsKt.r(new com.here.sdk.gestures.GestureType[]{com.here.sdk.gestures.GestureType.DOUBLE_TAP, com.here.sdk.gestures.GestureType.PAN, com.here.sdk.gestures.GestureType.PINCH_ROTATE, com.here.sdk.gestures.GestureType.TWO_FINGER_PAN, com.here.sdk.gestures.GestureType.TWO_FINGER_TAP});
    }

    private final void h2(com.vinfast.companion.map.model.MapLocation mapLocation) {
        com.here.sdk.mapview.MapMarker mapMarkerF = com.vinfast.companion.map.MapUtils.f(com.vinfast.companion.map.MapUtils.a, requireContext(), mapLocation, java.lang.Integer.valueOf(com.vinfast.companion.notification.R.drawable.ic_map_car), null, 8, null);
        if (mapMarkerF != null) {
            mapMarkerF.setCoordinates(mapLocation.l());
        } else {
            mapMarkerF = null;
        }
        if (mapMarkerF != null) {
            com.vinfast.companion.map.extensions.MapMarkerExtensionsKt.g(mapMarkerF, ((com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) T1()).e.getMapScene());
        }
        com.vinfast.companion.map.wrapper.mapview.HereMapViewManager hereMapViewManager = this.mMapManager;
        com.here.sdk.mapview.MapView mapView = ((com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) T1()).e;
        kotlin.jvm.internal.Intrinsics.k(mapView, "mapView");
        hereMapViewManager.f(mapView, mapLocation, 10000.0d);
    }

    private final java.lang.String j2() {
        java.lang.String string = getString(com.vinfast.companion.notification.R.string.common_license_plate_colon);
        kotlin.jvm.internal.Intrinsics.k(string, "getString(...)");
        return string;
    }

    private final com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailViewModel l2() {
        return (com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailViewModel) this.mViewModel.getValue();
    }

    private final void q2() {
        if (!this.mFirstTime) {
            U1().m0();
        } else {
            this.mFirstTime = false;
            U1().b0(getArguments());
        }
    }

    /* JADX WARN: Type inference failed for: r1v0, types: [android.view.View, com.vinfast.companion.notification.ui.widget.ImageBundleView, java.lang.Object] */
    private final void r2(android.os.Bundle savedInstanceState) {
        com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding fragmentTheftAlertDetailBinding = (com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) T1();
        ?? r1 = fragmentTheftAlertDetailBinding.d;
        boolean zC0 = l2().c0();
        kotlin.jvm.internal.Intrinsics.i((java.lang.Object) r1);
        if (zC0) {
            com.vinfast.companion.core.extensions.ViewExtensionKt.S((android.view.View) r1);
        } else {
            com.vinfast.companion.core.extensions.ViewExtensionKt.m((android.view.View) r1);
        }
        r1.setOnClickSeeAllListener(new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.a
            public final java.lang.Object invoke() {
                return com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.s2(this.a);
            }
        });
        androidx.cardview.widget.CardView cardView = fragmentTheftAlertDetailBinding.c;
        kotlin.jvm.internal.Intrinsics.k(cardView, "cardViewMap");
        com.vinfast.companion.core.extensions.ViewExtensionKt.T(cardView, U1().d0());
        final com.here.sdk.mapview.MapView mapView = fragmentTheftAlertDetailBinding.e;
        mapView.onCreate(savedInstanceState);
        mapView.getMapScene().loadScene(com.here.sdk.mapview.MapScheme.NORMAL_DAY, new com.here.sdk.mapview.MapScene.LoadSceneCallback() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.c
            public final void onLoadScene(com.here.sdk.mapview.MapError mapError) {
                com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.t2(this.a, mapView, mapError);
            }
        });
        mapView.getGestures().setTapListener(new com.here.sdk.gestures.TapListener() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.d
            public final void onTap(com.here.sdk.core.Point2D point2D) {
                com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.u2(this.a, point2D);
            }
        });
        androidx.appcompat.widget.AppCompatTextView appCompatTextView = fragmentTheftAlertDetailBinding.b;
        kotlin.jvm.internal.Intrinsics.k(appCompatTextView, "btnStopTheft");
        com.vinfast.companion.core.extensions.ViewExtensionKt.G(appCompatTextView, new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.e
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.v2(this.a, (android.view.View) obj);
            }
        });
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit s2(com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment theftAlertDetailFragment) {
        theftAlertDetailFragment.p2();
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void t2(com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment theftAlertDetailFragment, com.here.sdk.mapview.MapView mapView, com.here.sdk.mapview.MapError mapError) {
        if (mapError != null) {
            timber.log.Timber.a.c("onMapLoadError: %s", new java.lang.Object[]{mapError});
            return;
        }
        timber.log.Timber.a.a("onMapLoadComplete", new java.lang.Object[0]);
        com.vinfast.companion.map.model.MapLocation mapLocation = (com.vinfast.companion.map.model.MapLocation) theftAlertDetailFragment.U1().U().f();
        if (mapLocation != null) {
            theftAlertDetailFragment.h2(mapLocation);
        }
        com.vinfast.companion.map.wrapper.mapview.HereMapViewManager hereMapViewManager = theftAlertDetailFragment.mMapManager;
        kotlin.jvm.internal.Intrinsics.i(mapView);
        hereMapViewManager.b(mapView, theftAlertDetailFragment.g2());
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void u2(com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment theftAlertDetailFragment, com.here.sdk.core.Point2D point2D) {
        kotlin.jvm.internal.Intrinsics.l(point2D, "it");
        theftAlertDetailFragment.E2();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit v2(com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment theftAlertDetailFragment, android.view.View view) {
        kotlin.jvm.internal.Intrinsics.l(view, "it");
        theftAlertDetailFragment.l2().q0();
        return kotlin.Unit.a;
    }

    private final void w2() {
        U1().W().j(getViewLifecycleOwner(), new com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment$sam$androidx_lifecycle_Observer$0(new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.f
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.x2(this.a, (com.vinfast.companion.core.utils.notification.Notification) obj);
            }
        }));
        U1().O().j(this, new com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment$sam$androidx_lifecycle_Observer$0(new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.g
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.y2(this.a, (com.vinfast.companion.notificationkit.domain.model.TheftAlertImageBundle) obj);
            }
        }));
        U1().P().j(this, new com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment$sam$androidx_lifecycle_Observer$0(new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.h
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.z2(this.a, (java.lang.String) obj);
            }
        }));
        U1().X().j(this, new com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment$sam$androidx_lifecycle_Observer$0(new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.i
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.A2(this.a, (java.util.Date) obj);
            }
        }));
        U1().Q().j(getViewLifecycleOwner(), new com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment$sam$androidx_lifecycle_Observer$0(new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.j
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.B2(this.a, (java.lang.String) obj);
            }
        }));
        U1().U().j(getViewLifecycleOwner(), new com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment$sam$androidx_lifecycle_Observer$0(new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.k
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.C2(this.a, (com.vinfast.companion.map.model.MapLocation) obj);
            }
        }));
        com.vinfast.companion.core.extensions.RxExtensionKt.o(com.vinfast.companion.core.extensions.RxExtensionKt.y(g0(U1().getRemoteControlResponseLiveData())), new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.notification.ui.theftalert.detail.b
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment.D2(this.a, (com.vinfast.companion.remotecontrolskit.persitent.model.info.common.RemoteItemResponses) obj);
            }
        });
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit x2(com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment theftAlertDetailFragment, com.vinfast.companion.core.utils.notification.Notification notification) {
        android.widget.TextView textView = ((com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) theftAlertDetailFragment.T1()).k;
        kotlin.jvm.internal.Intrinsics.i(notification);
        textView.setText(theftAlertDetailFragment.o2(notification));
        ((com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) theftAlertDetailFragment.T1()).i.setText(com.vinfast.companion.core.utils.unitconvert.CAppUnitConverter.a.d(com.vinfast.companion.core.utils.TimeUtils.a.B0(notification.f())));
        ((com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) theftAlertDetailFragment.T1()).h.setText(theftAlertDetailFragment.i2(notification));
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit y2(com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment theftAlertDetailFragment, com.vinfast.companion.notificationkit.domain.model.TheftAlertImageBundle theftAlertImageBundle) {
        ((com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) theftAlertDetailFragment.T1()).d.C(theftAlertImageBundle);
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit z2(com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragment theftAlertDetailFragment, java.lang.String str) {
        if (str == null || str.length() == 0) {
            com.vinfast.companion.core.base.ui.adapter.dataInformation.ContentDataInfoView contentDataInfoView = ((com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) theftAlertDetailFragment.T1()).f;
            kotlin.jvm.internal.Intrinsics.k(contentDataInfoView, "tvLicensePlate");
            com.vinfast.companion.core.extensions.ViewExtensionKt.m(contentDataInfoView);
        } else {
            com.vinfast.companion.core.base.ui.adapter.dataInformation.ContentDataInfoView contentDataInfoView2 = ((com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) theftAlertDetailFragment.T1()).f;
            kotlin.jvm.internal.Intrinsics.k(contentDataInfoView2, "tvLicensePlate");
            com.vinfast.companion.core.extensions.ViewExtensionKt.S(contentDataInfoView2);
            java.lang.String strJ2 = theftAlertDetailFragment.j2();
            ((com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) theftAlertDetailFragment.T1()).f.n(new com.vinfast.companion.core.base.ui.model.DataTextInformation(109, false, false, false, (java.lang.Integer) null, (java.lang.String) null, (java.lang.Integer) null, com.vinfast.companion.core.extensions.StringExtensionKt.L(new android.text.SpannableString(strJ2 + " " + str), strJ2, false, false, false, false, (java.lang.Integer) null, 62, (java.lang.Object) null), (java.lang.String) null, false, (kotlin.jvm.functions.Function0) null, 1918, (kotlin.jvm.internal.DefaultConstructorMarker) null));
        }
        return kotlin.Unit.a;
    }

    @Override // 
    /* JADX INFO: renamed from: F2 */
    public com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailViewModel U1() {
        return l2();
    }

    public com.vinfast.companion.core.base.fragment.ToolbarConfiguration T0() {
        return new com.vinfast.companion.core.base.fragment.ToolbarConfiguration.Builder().s(true).t(false).A(com.vinfast.companion.notification.R.string.feature_name_theft_alert).a();
    }

    protected java.lang.String i2(com.vinfast.companion.core.utils.notification.Notification notification) {
        kotlin.jvm.internal.Intrinsics.l(notification, "notification");
        java.lang.String strB = notification.b();
        if (strB != null) {
            return strB;
        }
        java.lang.String string = getString(com.vinfast.companion.notification.R.string.common_dot_default);
        kotlin.jvm.internal.Intrinsics.k(string, "getString(...)");
        return string;
    }

    protected java.lang.String k2() {
        java.lang.String string = getString(com.vinfast.companion.notification.R.string.CA20301_location);
        kotlin.jvm.internal.Intrinsics.k(string, "getString(...)");
        return string;
    }

    public final com.vinfast.companion.remotecontrolskit.manager.RemoteEventHandler m2() {
        com.vinfast.companion.remotecontrolskit.manager.RemoteEventHandler remoteEventHandler = this.remoteEventHandler;
        if (remoteEventHandler != null) {
            return remoteEventHandler;
        }
        kotlin.jvm.internal.Intrinsics.C("remoteEventHandler");
        return null;
    }

    protected java.lang.String n2() {
        java.lang.String string = getString(com.vinfast.companion.notification.R.string.CA10602_triggered_time);
        kotlin.jvm.internal.Intrinsics.k(string, "getString(...)");
        return string;
    }

    protected java.lang.String o2(com.vinfast.companion.core.utils.notification.Notification notification) {
        kotlin.jvm.internal.Intrinsics.l(notification, "notification");
        java.lang.String strC = notification.c();
        if (strC != null) {
            return strC;
        }
        java.lang.String string = getString(com.vinfast.companion.notification.R.string.common_dot_default);
        kotlin.jvm.internal.Intrinsics.k(string, "getString(...)");
        return string;
    }

    public void onDestroyView() {
        this.mMapManager.h(((com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) T1()).e);
        super.onDestroyView();
    }

    public void onPause() {
        super/*com.vinfast.companion.core.base.fragment.HiltFragment*/.onPause();
        ((com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) T1()).e.onPause();
    }

    public void onResume() {
        super/*com.vinfast.companion.core.base.fragment.HiltFragment*/.onResume();
        ((com.vinfast.companion.notification.databinding.FragmentTheftAlertDetailBinding) T1()).e.onResume();
    }

    protected void p2() {
        androidx.navigation.fragment.FragmentKt.a(this).Q(com.vinfast.companion.notification.ui.theftalert.detail.TheftAlertDetailFragmentDirections.INSTANCE.a(U1().N()));
    }

    public void y1(android.view.View view, android.os.Bundle savedInstanceState) {
        kotlin.jvm.internal.Intrinsics.l(view, "view");
        r2(savedInstanceState);
        w2();
        q2();
    }
}
