package com.vinfast.companion.main.ui.rsa.global.selectservicelocation;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes3.dex */
@kotlin.Metadata(d1 = {"\u0000\u008a\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0007\u0018\u0000 S2\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001TB\u0007¢\u0006\u0004\b\u0003\u0010\u0004J\u000f\u0010\u0006\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\u0006\u0010\u0004J\u0019\u0010\t\u001a\u00020\u00052\b\u0010\b\u001a\u0004\u0018\u00010\u0007H\u0002¢\u0006\u0004\b\t\u0010\nJ\u001d\u0010\u000e\u001a\u00020\u00052\f\u0010\r\u001a\b\u0012\u0004\u0012\u00020\f0\u000bH\u0002¢\u0006\u0004\b\u000e\u0010\u000fJ\u0017\u0010\u0011\u001a\u00020\u00052\u0006\u0010\u0010\u001a\u00020\fH\u0002¢\u0006\u0004\b\u0011\u0010\u0012J\u0017\u0010\u0013\u001a\u00020\u00052\u0006\u0010\u0010\u001a\u00020\fH\u0002¢\u0006\u0004\b\u0013\u0010\u0012J\u000f\u0010\u0015\u001a\u00020\u0014H\u0016¢\u0006\u0004\b\u0015\u0010\u0016J\u000f\u0010\u0018\u001a\u00020\u0017H\u0016¢\u0006\u0004\b\u0018\u0010\u0019J!\u0010\u001c\u001a\u00020\u00052\u0006\u0010\u001b\u001a\u00020\u001a2\b\u0010\b\u001a\u0004\u0018\u00010\u0007H\u0016¢\u0006\u0004\b\u001c\u0010\u001dJ\u000f\u0010\u001e\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\u001e\u0010\u0004J\u000f\u0010\u001f\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\u001f\u0010\u0004J\u000f\u0010 \u001a\u00020\u0005H\u0016¢\u0006\u0004\b \u0010\u0004J\u0017\u0010\"\u001a\u00020\u00052\u0006\u0010!\u001a\u00020\u0007H\u0016¢\u0006\u0004\b\"\u0010\nJ\u0017\u0010#\u001a\u00020\u00052\u0006\u0010\u0010\u001a\u00020\fH\u0016¢\u0006\u0004\b#\u0010\u0012J\r\u0010$\u001a\u00020\u0005¢\u0006\u0004\b$\u0010\u0004J\u000f\u0010%\u001a\u00020\u0005H\u0016¢\u0006\u0004\b%\u0010\u0004R\u0018\u0010)\u001a\u0004\u0018\u00010&8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b'\u0010(R\u0014\u0010-\u001a\u00020*8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b+\u0010,R\u0018\u00101\u001a\u0004\u0018\u00010.8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b/\u00100R\u0018\u00103\u001a\u0004\u0018\u00010.8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b2\u00100R\u001b\u00109\u001a\u0002048BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b5\u00106\u001a\u0004\b7\u00108R\u001b\u0010>\u001a\u00020:8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b;\u00106\u001a\u0004\b<\u0010=R\u0016\u0010B\u001a\u00020?8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b@\u0010AR\u0016\u0010D\u001a\u00020?8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bC\u0010AR\u0016\u0010G\u001a\u00020E8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bF\u00102R\u0018\u0010J\u001a\u0004\u0018\u00010\f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bH\u0010IR\u0018\u0010N\u001a\u0004\u0018\u00010K8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bL\u0010MR\u0018\u0010R\u001a\u0004\u0018\u00010O8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bP\u0010Q¨\u0006U"}, d2 = {"Lcom/vinfast/companion/main/ui/rsa/global/selectservicelocation/SelectServiceLocationFragment;", "Lcom/vinfast/companion/map/HEREPositioningFragment;", "Lcom/vinfast/companion/services/databinding/FragmentSelectServiceLocationBinding;", "<init>", "()V", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "A2", "Landroid/os/Bundle;", "savedInstanceState", "J2", "(Landroid/os/Bundle;)V", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "Lcom/vinfast/companion/map/model/MapLocation;", "data", "I2", "(Ljava/util/List;)V", "mapLocation", "S2", "(Lcom/vinfast/companion/map/model/MapLocation;)V", "Q2", "Lcom/vinfast/companion/core/base/BaseViewModel;", "U1", "()Lcom/vinfast/companion/core/base/BaseViewModel;", "Lcom/vinfast/companion/core/base/fragment/ToolbarConfiguration;", "T0", "()Lcom/vinfast/companion/core/base/fragment/ToolbarConfiguration;", "Landroid/view/View;", "view", "y1", "(Landroid/view/View;Landroid/os/Bundle;)V", "onResume", "onPause", "onDestroyView", "outState", "onSaveInstanceState", "e2", "C2", "onDestroy", "Lcom/here/sdk/mapview/MapView;", "F", "Lcom/here/sdk/mapview/MapView;", "mapView", "Lcom/vinfast/companion/map/wrapper/mapview/HereMapViewManager;", "G", "Lcom/vinfast/companion/map/wrapper/mapview/HereMapViewManager;", "mapViewManager", "Lcom/here/sdk/mapview/MapMarker;", "H", "Lcom/here/sdk/mapview/MapMarker;", "deviceMapMarker", "I", "makerSelected", "Lcom/vinfast/companion/map/search/SearchLocationViewModel;", "J", "Lkotlin/Lazy;", "z2", "()Lcom/vinfast/companion/map/search/SearchLocationViewModel;", "mViewModel", "Lcom/vinfast/companion/main/ui/rsa/global/selectservicelocation/SelectServiceLocationViewModel;", "K", "B2", "()Lcom/vinfast/companion/main/ui/rsa/global/selectservicelocation/SelectServiceLocationViewModel;", "selectServiceViewModel", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "L", "Z", "isFirstTime", "M", "isFocusToSR", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "N", "wasSearchByLocation", "P", "Lcom/vinfast/companion/map/model/MapLocation;", "currentServiceSelected", "Lcom/vinfast/companion/main/ui/rsa/global/selectservicelocation/SelectServiceLocationPayload;", "Q", "Lcom/vinfast/companion/main/ui/rsa/global/selectservicelocation/SelectServiceLocationPayload;", "payloadSelectService", "Lcom/vinfast/companion/main/ui/rsa/global/selectservicelocation/bottomsheet/ServiceInformationBottomSheetDialogFragment;", "R", "Lcom/vinfast/companion/main/ui/rsa/global/selectservicelocation/bottomsheet/ServiceInformationBottomSheetDialogFragment;", "serviceInfoDialog", "V", "Companion", "services_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
@dagger.hilt.android.AndroidEntryPoint
@kotlin.jvm.internal.SourceDebugExtension
public final class SelectServiceLocationFragment extends com.vinfast.companion.main.ui.rsa.global.selectservicelocation.Hilt_SelectServiceLocationFragment<com.vinfast.companion.services.databinding.FragmentSelectServiceLocationBinding> {

    /* JADX INFO: renamed from: F, reason: from kotlin metadata */
    private com.here.sdk.mapview.MapView mapView;

    /* JADX INFO: renamed from: G, reason: from kotlin metadata */
    private final com.vinfast.companion.map.wrapper.mapview.HereMapViewManager mapViewManager;

    /* JADX INFO: renamed from: H, reason: from kotlin metadata */
    private com.here.sdk.mapview.MapMarker deviceMapMarker;

    /* JADX INFO: renamed from: I, reason: from kotlin metadata */
    private com.here.sdk.mapview.MapMarker makerSelected;

    /* JADX INFO: renamed from: J, reason: from kotlin metadata */
    private final kotlin.Lazy mViewModel;

    /* JADX INFO: renamed from: K, reason: from kotlin metadata */
    private final kotlin.Lazy selectServiceViewModel;

    /* JADX INFO: renamed from: L, reason: from kotlin metadata */
    private boolean isFirstTime;

    /* JADX INFO: renamed from: M, reason: from kotlin metadata */
    private boolean isFocusToSR;

    /* JADX INFO: renamed from: N, reason: from kotlin metadata */
    private int wasSearchByLocation;

    /* JADX INFO: renamed from: P, reason: from kotlin metadata */
    private com.vinfast.companion.map.model.MapLocation currentServiceSelected;

    /* JADX INFO: renamed from: Q, reason: from kotlin metadata */
    private com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationPayload payloadSelectService;

    /* JADX INFO: renamed from: R, reason: from kotlin metadata */
    private com.vinfast.companion.main.ui.rsa.global.selectservicelocation.bottomsheet.ServiceInformationBottomSheetDialogFragment serviceInfoDialog;

    /* JADX INFO: renamed from: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment$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.services.databinding.FragmentSelectServiceLocationBinding> {
        public static final com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.AnonymousClass1 a = new com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.AnonymousClass1();

        AnonymousClass1() {
            super(1, com.vinfast.companion.services.databinding.FragmentSelectServiceLocationBinding.class, "inflate", "inflate(Landroid/view/LayoutInflater;)Lcom/vinfast/companion/services/databinding/FragmentSelectServiceLocationBinding;", 0);
        }

        /* JADX INFO: renamed from: q, reason: merged with bridge method [inline-methods] */
        public final com.vinfast.companion.services.databinding.FragmentSelectServiceLocationBinding invoke(android.view.LayoutInflater layoutInflater) {
            kotlin.jvm.internal.Intrinsics.l(layoutInflater, "p0");
            return com.vinfast.companion.services.databinding.FragmentSelectServiceLocationBinding.c(layoutInflater);
        }
    }

    public SelectServiceLocationFragment() {
        super(com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.AnonymousClass1.a);
        this.mapViewManager = new com.vinfast.companion.map.wrapper.mapview.HereMapViewManager();
        final kotlin.jvm.functions.Function0<androidx.fragment.app.Fragment> function0 = new kotlin.jvm.functions.Function0<androidx.fragment.app.Fragment>() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment$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;
            }
        };
        kotlin.LazyThreadSafetyMode lazyThreadSafetyMode = kotlin.LazyThreadSafetyMode.NONE;
        final kotlin.Lazy lazyA = kotlin.LazyKt.a(lazyThreadSafetyMode, new kotlin.jvm.functions.Function0<androidx.lifecycle.ViewModelStoreOwner>() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment$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.map.search.SearchLocationViewModel.class), new kotlin.jvm.functions.Function0<androidx.lifecycle.ViewModelStore>() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment$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.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment$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.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment$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;
            }
        });
        final kotlin.jvm.functions.Function0<androidx.fragment.app.Fragment> function2 = new kotlin.jvm.functions.Function0<androidx.fragment.app.Fragment>() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment$special$$inlined$viewModels$default$6
            /* 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 lazyA2 = kotlin.LazyKt.a(lazyThreadSafetyMode, new kotlin.jvm.functions.Function0<androidx.lifecycle.ViewModelStoreOwner>() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment$special$$inlined$viewModels$default$7
            /* 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) function2.invoke();
            }
        });
        this.selectServiceViewModel = androidx.fragment.app.FragmentViewModelLazyKt.c(this, kotlin.jvm.internal.Reflection.b(com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationViewModel.class), new kotlin.jvm.functions.Function0<androidx.lifecycle.ViewModelStore>() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment$special$$inlined$viewModels$default$8
            /* 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(lazyA2).getViewModelStore();
            }
        }, new kotlin.jvm.functions.Function0<androidx.lifecycle.viewmodel.CreationExtras>() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment$special$$inlined$viewModels$default$9
            /* 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 function3 = function1;
                if (function3 != null && (creationExtras = (androidx.lifecycle.viewmodel.CreationExtras) function3.invoke()) != null) {
                    return creationExtras;
                }
                androidx.lifecycle.HasDefaultViewModelProviderFactory hasDefaultViewModelProviderFactoryB = androidx.fragment.app.FragmentViewModelLazyKt.b(lazyA2);
                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.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment$special$$inlined$viewModels$default$10
            /* 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(lazyA2);
                androidx.lifecycle.HasDefaultViewModelProviderFactory hasDefaultViewModelProviderFactory = hasDefaultViewModelProviderFactoryB instanceof androidx.lifecycle.HasDefaultViewModelProviderFactory ? hasDefaultViewModelProviderFactoryB : null;
                return (hasDefaultViewModelProviderFactory == null || (defaultViewModelProviderFactory = hasDefaultViewModelProviderFactory.getDefaultViewModelProviderFactory()) == null) ? this.getDefaultViewModelProviderFactory() : defaultViewModelProviderFactory;
            }
        });
        this.isFirstTime = true;
    }

    private final void A2() {
        com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationActivity activity = getActivity();
        com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationActivity selectServiceLocationActivity = activity instanceof com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationActivity ? activity : null;
        this.payloadSelectService = selectServiceLocationActivity != null ? selectServiceLocationActivity.getPayload() : null;
    }

    private final com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationViewModel B2() {
        return (com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationViewModel) this.selectServiceViewModel.getValue();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit D2(final com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment selectServiceLocationFragment, java.util.List list) {
        if (list.isEmpty()) {
            timber.log.Timber.a.a("Not found list service in current range", new java.lang.Object[0]);
            com.vinfast.companion.core.base.ui.widget.dialog.OptionsDialogFragment.Companion companion = com.vinfast.companion.core.base.ui.widget.dialog.OptionsDialogFragment.I;
            androidx.fragment.app.FragmentManager childFragmentManager = selectServiceLocationFragment.getChildFragmentManager();
            kotlin.jvm.internal.Intrinsics.k(childFragmentManager, "getChildFragmentManager(...)");
            com.vinfast.companion.core.base.ui.widget.dialog.OptionsDialogFragment.Companion.b(companion, childFragmentManager, false, (java.lang.String) null, java.lang.Integer.valueOf(com.vinfast.companion.map.R.string.CA70420_no_service_centers), (java.lang.Object) null, false, (java.lang.String) null, java.lang.Integer.valueOf(com.vinfast.companion.map.R.string.CA70420_no_centers_available), (android.text.SpannableString) null, (java.lang.String) null, (java.lang.Integer) null, (java.lang.String) null, java.lang.Integer.valueOf(com.vinfast.companion.map.R.string.common_btn_cancel), (java.lang.String) null, java.lang.Integer.valueOf(com.vinfast.companion.map.R.string.common_call_vinfast), (java.lang.Integer) null, false, (kotlin.jvm.functions.Function0) null, (kotlin.jvm.functions.Function0) null, new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.m
                public final java.lang.Object invoke() {
                    return com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.E2(this.a);
                }
            }, new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.c
                public final java.lang.Object invoke() {
                    return com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.F2(this.a);
                }
            }, (kotlin.jvm.functions.Function0) null, (kotlin.jvm.functions.Function0) null, (java.lang.String) null, 15183734, (java.lang.Object) null);
        } else {
            kotlin.jvm.internal.Intrinsics.i(list);
            selectServiceLocationFragment.I2(list);
        }
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit E2(com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment selectServiceLocationFragment) {
        selectServiceLocationFragment.requireActivity().finish();
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    /* JADX INFO: Thrown type has an unknown type hierarchy: kotlin.NoWhenBranchMatchedException */
    public static final kotlin.Unit F2(final com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment selectServiceLocationFragment) throws kotlin.NoWhenBranchMatchedException {
        com.vinfast.companion.core.base.ui.widget.dialog.hotline.Hotlines hotlinesN = selectServiceLocationFragment.B2().N();
        androidx.fragment.app.FragmentManager childFragmentManager = selectServiceLocationFragment.getChildFragmentManager();
        kotlin.jvm.internal.Intrinsics.k(childFragmentManager, "getChildFragmentManager(...)");
        android.content.Context contextRequireContext = selectServiceLocationFragment.requireContext();
        kotlin.jvm.internal.Intrinsics.k(contextRequireContext, "requireContext(...)");
        hotlinesN.l(childFragmentManager, contextRequireContext, new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.d
            public final java.lang.Object invoke() {
                return com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.G2(this.a);
            }
        });
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit G2(com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment selectServiceLocationFragment) {
        selectServiceLocationFragment.requireActivity().finish();
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit H2(com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment selectServiceLocationFragment, java.util.List list) {
        kotlin.jvm.internal.Intrinsics.l(list, "it");
        com.here.sdk.mapview.MapView mapView = selectServiceLocationFragment.T1().d;
        selectServiceLocationFragment.isFocusToSR = true;
        com.here.sdk.mapview.MapScene mapScene = mapView.getMapScene();
        kotlin.jvm.internal.Intrinsics.k(mapScene, "getMapScene(...)");
        new com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment$observeData$2$1$1(mapScene);
        java.util.ArrayList arrayList = new java.util.ArrayList();
        java.util.Iterator it = list.iterator();
        while (it.hasNext()) {
            com.here.sdk.mapview.MapMarker mapMarker = (com.here.sdk.mapview.MapMarker) ((kotlin.Pair) it.next()).f();
            mapView.getMapScene().addMapMarker(mapMarker);
            com.here.sdk.core.GeoCoordinates coordinates = mapMarker.getCoordinates();
            kotlin.jvm.internal.Intrinsics.k(coordinates, "getCoordinates(...)");
            arrayList.add(coordinates);
        }
        if (list.size() == 1) {
            com.here.sdk.mapview.MapCamera camera = mapView.getCamera();
            camera.lookAt(((com.here.sdk.mapview.MapMarker) ((kotlin.Pair) list.get(0)).f()).getCoordinates());
            camera.zoomBy(0.5d, camera.getPrincipalPoint());
        } else {
            com.here.sdk.core.GeoBox geoBoxContaining = com.here.sdk.core.GeoBox.containing(arrayList);
            if (geoBoxContaining != null) {
                com.here.sdk.mapview.MapCamera camera2 = mapView.getCamera();
                camera2.lookAt(geoBoxContaining, new com.here.sdk.core.GeoOrientationUpdate((java.lang.Double) null, (java.lang.Double) null));
                camera2.zoomBy(0.5d, camera2.getPrincipalPoint());
            }
        }
        com.vinfast.companion.map.model.MapLocation mapLocation = selectServiceLocationFragment.currentServiceSelected;
        if (mapLocation != null) {
            selectServiceLocationFragment.S2(mapLocation);
        }
        return kotlin.Unit.a;
    }

    private final void I2(java.util.List data) {
        java.util.List listA1 = kotlin.collections.CollectionsKt.a1(data, new java.util.Comparator() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment$prepareShowListPlaceState$$inlined$sortedBy$1
            @Override // java.util.Comparator
            public final int compare(java.lang.Object obj, java.lang.Object obj2) {
                return kotlin.comparisons.ComparisonsKt.d(java.lang.Boolean.valueOf(!((com.vinfast.companion.map.model.MapLocation) obj).L()), java.lang.Boolean.valueOf(!((com.vinfast.companion.map.model.MapLocation) obj2).L()));
            }
        });
        com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationViewModel selectServiceLocationViewModelB2 = B2();
        android.content.Context contextRequireContext = requireContext();
        kotlin.jvm.internal.Intrinsics.k(contextRequireContext, "requireContext(...)");
        selectServiceLocationViewModelB2.P(contextRequireContext, listA1);
    }

    private final void J2(android.os.Bundle savedInstanceState) {
        java.lang.Integer title;
        final com.here.sdk.mapview.MapView mapView = T1().d;
        mapView.onCreate(savedInstanceState, "select_service_location_bundle");
        com.here.sdk.mapview.MapView mapView2 = this.mapView;
        if (mapView2 != null) {
            com.vinfast.companion.map.extensions.MapMarkerExtensionsKt.d(mapView2, new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.f
                public final java.lang.Object invoke(java.lang.Object obj) {
                    return com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.K2(this.a, (java.util.List) obj);
                }
            });
        }
        mapView.getMapScene().loadScene(com.here.sdk.mapview.MapScheme.NORMAL_DAY, new com.here.sdk.mapview.MapScene.LoadSceneCallback() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.g
            public final void onLoadScene(com.here.sdk.mapview.MapError mapError) {
                com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.L2(this.a, mapView, mapError);
            }
        });
        this.mapView = mapView;
        final com.vinfast.companion.services.databinding.FragmentSelectServiceLocationBinding fragmentSelectServiceLocationBindingT1 = T1();
        androidx.appcompat.widget.AppCompatTextView appCompatTextView = fragmentSelectServiceLocationBindingT1.e;
        if (this.payloadSelectService == null) {
            A2();
        }
        com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationPayload selectServiceLocationPayload = this.payloadSelectService;
        appCompatTextView.setText((selectServiceLocationPayload == null || (title = selectServiceLocationPayload.getTitle()) == null) ? com.vinfast.companion.map.R.string.CA50404_choose_on_map : title.intValue());
        androidx.constraintlayout.widget.ConstraintLayout constraintLayout = fragmentSelectServiceLocationBindingT1.f;
        android.content.Context contextRequireContext = requireContext();
        kotlin.jvm.internal.Intrinsics.k(contextRequireContext, "requireContext(...)");
        constraintLayout.setPaddingRelative(constraintLayout.getPaddingStart(), com.vinfast.companion.core.extensions.DeviceExtensionKt.c(contextRequireContext), constraintLayout.getPaddingEnd(), constraintLayout.getPaddingBottom());
        androidx.appcompat.widget.AppCompatImageView appCompatImageView = fragmentSelectServiceLocationBindingT1.b;
        com.vinfast.companion.core.extensions.ViewExtensionKt.i(appCompatImageView, 0.0f, 0.0f, 0.0f, 0.0f, 15, (java.lang.Object) null);
        appCompatImageView.setOnClickListener(new android.view.View.OnClickListener() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.h
            @Override // android.view.View.OnClickListener
            public final void onClick(android.view.View view) {
                com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.M2(this.a, view);
            }
        });
        com.vinfast.companion.map.widget.FlyMenu flyMenu = fragmentSelectServiceLocationBindingT1.c;
        final java.util.ArrayList arrayList = new java.util.ArrayList();
        arrayList.add(com.vinfast.companion.map.uiPrototype.MenuMap.DeviceLocation.a);
        flyMenu.setGetMenuMapItems(new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.i
            public final java.lang.Object invoke() {
                return com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.N2(arrayList);
            }
        });
        flyMenu.n(arrayList);
        flyMenu.setOnClickLocateDeviceButtonListener(new android.view.View.OnClickListener() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.j
            @Override // android.view.View.OnClickListener
            public final void onClick(android.view.View view) {
                com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.O2(this.a, fragmentSelectServiceLocationBindingT1, view);
            }
        });
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit K2(com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment selectServiceLocationFragment, java.util.List list) {
        kotlin.jvm.internal.Intrinsics.l(list, "markers");
        java.util.Iterator it = list.iterator();
        while (it.hasNext()) {
            com.here.sdk.mapview.MapMarker mapMarker = (com.here.sdk.mapview.MapMarker) it.next();
            java.util.List list2 = (java.util.List) selectServiceLocationFragment.B2().getListMakerService().f();
            if (list2 != null) {
                java.util.ArrayList arrayList = new java.util.ArrayList();
                for (java.lang.Object obj : list2) {
                    if (kotlin.jvm.internal.Intrinsics.g(((kotlin.Pair) obj).f(), mapMarker)) {
                        arrayList.add(obj);
                    }
                }
                if (arrayList.size() == 1) {
                    selectServiceLocationFragment.S2((com.vinfast.companion.map.model.MapLocation) ((kotlin.Pair) arrayList.get(0)).e());
                    return kotlin.Unit.a;
                }
            }
        }
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void L2(com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment selectServiceLocationFragment, com.here.sdk.mapview.MapView mapView, com.here.sdk.mapview.MapError mapError) {
        if (mapError != null) {
            timber.log.Timber.a.c("Load map failed: " + mapError, new java.lang.Object[0]);
            return;
        }
        if (selectServiceLocationFragment.isFocusToSR) {
            return;
        }
        if (selectServiceLocationFragment.payloadSelectService == null) {
            selectServiceLocationFragment.A2();
        }
        com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationPayload selectServiceLocationPayload = selectServiceLocationFragment.payloadSelectService;
        com.vinfast.companion.map.model.MapLocation center = selectServiceLocationPayload != null ? selectServiceLocationPayload.getCenter() : null;
        com.vinfast.companion.map.wrapper.mapview.HereMapViewManager hereMapViewManager = selectServiceLocationFragment.mapViewManager;
        kotlin.jvm.internal.Intrinsics.i(mapView);
        hereMapViewManager.f(mapView, center, 10000.0d);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void M2(com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment selectServiceLocationFragment, android.view.View view) {
        com.vinfast.companion.core.base.fragment.BaseFragment.t1(selectServiceLocationFragment, false, 1, (java.lang.Object) null);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void O2(final com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment selectServiceLocationFragment, final com.vinfast.companion.services.databinding.FragmentSelectServiceLocationBinding fragmentSelectServiceLocationBinding, android.view.View view) {
        int i = selectServiceLocationFragment.wasSearchByLocation;
        if (i == 0) {
            selectServiceLocationFragment.wasSearchByLocation = i + 1;
        }
        selectServiceLocationFragment.g2(new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.l
            public final java.lang.Object invoke() {
                return com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.P2(this.a, fragmentSelectServiceLocationBinding);
            }
        });
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit P2(com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment selectServiceLocationFragment, com.vinfast.companion.services.databinding.FragmentSelectServiceLocationBinding fragmentSelectServiceLocationBinding) {
        com.vinfast.companion.map.model.MapLocation mapLocationA2 = selectServiceLocationFragment.a2();
        if (mapLocationA2 != null) {
            com.vinfast.companion.map.wrapper.mapview.HereMapViewManager hereMapViewManager = selectServiceLocationFragment.mapViewManager;
            com.here.sdk.mapview.MapView mapView = fragmentSelectServiceLocationBinding.d;
            kotlin.jvm.internal.Intrinsics.k(mapView, "mapView");
            hereMapViewManager.c(mapView, mapLocationA2.l(), 10000.0d);
            selectServiceLocationFragment.e2(mapLocationA2);
        }
        return kotlin.Unit.a;
    }

    private final void Q2(final com.vinfast.companion.map.model.MapLocation mapLocation) {
        com.vinfast.companion.main.ui.rsa.global.selectservicelocation.bottomsheet.ServiceInformationBottomSheetDialogFragment serviceInformationBottomSheetDialogFragment = this.serviceInfoDialog;
        if (serviceInformationBottomSheetDialogFragment != null) {
            serviceInformationBottomSheetDialogFragment.dismiss();
        }
        com.vinfast.companion.main.ui.rsa.global.selectservicelocation.bottomsheet.ServiceInformationBottomSheetDialogFragment.Companion companion = com.vinfast.companion.main.ui.rsa.global.selectservicelocation.bottomsheet.ServiceInformationBottomSheetDialogFragment.INSTANCE;
        androidx.fragment.app.FragmentManager childFragmentManager = getChildFragmentManager();
        kotlin.jvm.internal.Intrinsics.k(childFragmentManager, "getChildFragmentManager(...)");
        this.serviceInfoDialog = com.vinfast.companion.main.ui.rsa.global.selectservicelocation.bottomsheet.ServiceInformationBottomSheetDialogFragment.Companion.b(companion, childFragmentManager, mapLocation.D(), mapLocation.d(), null, new kotlin.jvm.functions.Function0() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.k
            public final java.lang.Object invoke() {
                return com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.R2(mapLocation, this);
            }
        }, 8, null);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit R2(com.vinfast.companion.map.model.MapLocation mapLocation, com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment selectServiceLocationFragment) {
        com.vinfast.companion.main.ui.rsa.global.selectservicelocation.ResultSelectServiceLocation resultSelectServiceLocation = new com.vinfast.companion.main.ui.rsa.global.selectservicelocation.ResultSelectServiceLocation(mapLocation);
        timber.log.Timber.a.a("SelectServiceLocationFragment response result %s", new java.lang.Object[]{resultSelectServiceLocation.getMapLocation()});
        com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationActivity selectServiceLocationActivityRequireActivity = selectServiceLocationFragment.requireActivity();
        com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationActivity selectServiceLocationActivity = selectServiceLocationActivityRequireActivity instanceof com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationActivity ? selectServiceLocationActivityRequireActivity : null;
        if (selectServiceLocationActivity != null) {
            selectServiceLocationActivity.b1(resultSelectServiceLocation);
        }
        return kotlin.Unit.a;
    }

    private final void S2(com.vinfast.companion.map.model.MapLocation mapLocation) {
        this.currentServiceSelected = mapLocation;
        com.here.sdk.mapview.MapScene mapScene = T1().d.getMapScene();
        com.here.sdk.mapview.MapMarker mapMarker = this.makerSelected;
        if (mapMarker != null) {
            com.vinfast.companion.map.extensions.MapMarkerExtensionsKt.c(mapMarker, mapScene);
        }
        this.makerSelected = null;
        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.map.R.drawable.ic_map_selected_location), (com.here.sdk.core.Anchor2D) null, 8, (java.lang.Object) null);
        this.makerSelected = mapMarkerF;
        if (mapMarkerF != null) {
            mapMarkerF.setDrawOrder(1);
        }
        com.here.sdk.mapview.MapMarker mapMarker2 = this.makerSelected;
        if (mapMarker2 != null) {
            com.vinfast.companion.map.extensions.MapMarkerExtensionsKt.g(mapMarker2, mapScene);
        }
        com.here.sdk.mapview.MapMarker mapMarker3 = this.makerSelected;
        if (mapMarker3 != null) {
            com.vinfast.companion.map.extensions.MapMarkerExtensionsKt.h(mapMarker3, mapLocation);
        }
        Q2(mapLocation);
    }

    private final com.vinfast.companion.map.search.SearchLocationViewModel z2() {
        return (com.vinfast.companion.map.search.SearchLocationViewModel) this.mViewModel.getValue();
    }

    public final void C2() {
        B2().getListServiceFound().j(getViewLifecycleOwner(), new com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment$sam$androidx_lifecycle_Observer$0(new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.b
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.D2(this.a, (java.util.List) obj);
            }
        }));
        androidx.lifecycle.LiveData listMakerService = B2().getListMakerService();
        androidx.lifecycle.LifecycleOwner viewLifecycleOwner = getViewLifecycleOwner();
        kotlin.jvm.internal.Intrinsics.k(viewLifecycleOwner, "getViewLifecycleOwner(...)");
        com.vinfast.companion.core.extensions.LiveDataExtensionsKt.c(listMakerService, viewLifecycleOwner, new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.main.ui.rsa.global.selectservicelocation.e
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationFragment.H2(this.a, (java.util.List) obj);
            }
        });
    }

    public com.vinfast.companion.core.base.fragment.ToolbarConfiguration T0() {
        return new com.vinfast.companion.core.base.fragment.ToolbarConfiguration.Builder().r(false).t(false).a();
    }

    public com.vinfast.companion.core.base.BaseViewModel U1() {
        return z2();
    }

    public void e2(com.vinfast.companion.map.model.MapLocation mapLocation) {
        com.vinfast.companion.map.model.MapLocationCategory category;
        kotlin.jvm.internal.Intrinsics.l(mapLocation, "mapLocation");
        com.here.sdk.mapview.MapMarker mapMarker = this.deviceMapMarker;
        if (mapMarker != null) {
            if (mapMarker != null) {
                mapMarker.setCoordinates(mapLocation.l());
                return;
            }
            return;
        }
        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.map.R.drawable.ic_map_person), (com.here.sdk.core.Anchor2D) null, 8, (java.lang.Object) null);
        this.deviceMapMarker = mapMarkerF;
        if (mapMarkerF != null) {
            com.vinfast.companion.map.extensions.MapMarkerExtensionsKt.g(mapMarkerF, T1().d.getMapScene());
        }
        int i = this.wasSearchByLocation;
        if (i == 1) {
            this.wasSearchByLocation = i + 1;
            if (this.payloadSelectService == null) {
                A2();
            }
            com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationPayload selectServiceLocationPayload = this.payloadSelectService;
            if (selectServiceLocationPayload == null || (category = selectServiceLocationPayload.getCategory()) == null) {
                return;
            }
            com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationViewModel selectServiceLocationViewModelB2 = B2();
            com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationPayload selectServiceLocationPayload2 = this.payloadSelectService;
            selectServiceLocationViewModelB2.Q(mapLocation, category, selectServiceLocationPayload2 != null ? selectServiceLocationPayload2.getMetersRadius() : null);
        }
    }

    public void onDestroy() {
        this.serviceInfoDialog = null;
        super/*com.vinfast.companion.core.base.fragment.HiltFragment*/.onDestroy();
    }

    public void onDestroyView() {
        this.mapViewManager.h(this.mapView);
        super/*com.vinfast.companion.core.base.fragment.BaseFragment*/.onDestroyView();
    }

    public void onPause() {
        super/*com.vinfast.companion.core.base.fragment.HiltFragment*/.onPause();
        com.here.sdk.mapview.MapView mapView = this.mapView;
        if (mapView != null) {
            mapView.onPause();
        }
    }

    public void onResume() {
        super/*com.vinfast.companion.core.base.fragment.HiltFragment*/.onResume();
        com.here.sdk.mapview.MapView mapView = this.mapView;
        if (mapView != null) {
            mapView.onResume();
        }
    }

    public void onSaveInstanceState(android.os.Bundle outState) {
        kotlin.jvm.internal.Intrinsics.l(outState, "outState");
        com.here.sdk.mapview.MapView mapView = this.mapView;
        if (mapView != null) {
            mapView.onSaveInstanceState(outState, "select_service_location_bundle");
        }
        super/*androidx.fragment.app.Fragment*/.onSaveInstanceState(outState);
    }

    public void y1(android.view.View view, android.os.Bundle savedInstanceState) {
        com.vinfast.companion.map.model.MapLocationCategory category;
        kotlin.jvm.internal.Intrinsics.l(view, "view");
        if (this.isFirstTime) {
            A2();
            com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationPayload selectServiceLocationPayload = this.payloadSelectService;
            if (selectServiceLocationPayload == null || (category = selectServiceLocationPayload.getCategory()) == null) {
                category = com.vinfast.companion.map.model.MapLocationCategory.SERVICE_CENTRE;
            }
            com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationPayload selectServiceLocationPayload2 = this.payloadSelectService;
            java.lang.Double metersRadius = selectServiceLocationPayload2 != null ? selectServiceLocationPayload2.getMetersRadius() : null;
            com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationPayload selectServiceLocationPayload3 = this.payloadSelectService;
            this.currentServiceSelected = selectServiceLocationPayload3 != null ? selectServiceLocationPayload3.getCurrentServiceSelected() : null;
            com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationViewModel selectServiceLocationViewModelB2 = B2();
            com.vinfast.companion.main.ui.rsa.global.selectservicelocation.SelectServiceLocationPayload selectServiceLocationPayload4 = this.payloadSelectService;
            selectServiceLocationViewModelB2.Q(selectServiceLocationPayload4 != null ? selectServiceLocationPayload4.getCenter() : null, category, metersRadius);
        }
        this.isFirstTime = false;
        J2(savedInstanceState);
        C2();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final java.util.ArrayList N2(java.util.ArrayList arrayList) {
        return arrayList;
    }
}
