package com.vinfast.vehicle.drivingtrend;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes15.dex */
@kotlin.Metadata(d1 = {"\u00000\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\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0010\u0018\u0000 \u001c2\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001\u001dB\u0007¢\u0006\u0004\b\u0003\u0010\u0004J\u000f\u0010\u0006\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\u0006\u0010\u0004J!\u0010\u000b\u001a\u00020\u00052\u0006\u0010\b\u001a\u00020\u00072\b\u0010\n\u001a\u0004\u0018\u00010\tH\u0016¢\u0006\u0004\b\u000b\u0010\fR0\u0010\u0015\u001a\u0010\u0012\u0004\u0012\u00020\u000e\u0012\u0004\u0012\u00020\u0005\u0018\u00010\r8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u000f\u0010\u0010\u001a\u0004\b\u0011\u0010\u0012\"\u0004\b\u0013\u0010\u0014R\"\u0010\u0018\u001a\u00020\u000e8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u0019\"\u0004\b\u001a\u0010\u001b¨\u0006\u001e"}, d2 = {"Lcom/vinfast/vehicle/drivingtrend/DrivingTrendAttentionDialog;", "Lcom/vinfast/companion/core/base/fragment/BaseDialogFragment;", "Lcom/vinfast/vehicle/databinding/FragmentAttentionDrivingDataBinding;", "<init>", "()V", "", "I0", "Landroid/view/View;", "view", "Landroid/os/Bundle;", "savedInstanceState", "onViewCreated", "(Landroid/view/View;Landroid/os/Bundle;)V", "Lkotlin/Function1;", "", "k", "Lkotlin/jvm/functions/Function1;", "getOnGotItClicked", "()Lkotlin/jvm/functions/Function1;", "H0", "(Lkotlin/jvm/functions/Function1;)V", "onGotItClicked", "l", "Z", "isClickedDoNotShowAgain", "()Z", "setClickedDoNotShowAgain", "(Z)V", "m", "Companion", "vehicle_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
public final class DrivingTrendAttentionDialog extends com.vinfast.companion.core.base.fragment.BaseDialogFragment<com.vinfast.vehicle.databinding.FragmentAttentionDrivingDataBinding> {

    /* JADX INFO: renamed from: m, reason: from kotlin metadata */
    public static final com.vinfast.vehicle.drivingtrend.DrivingTrendAttentionDialog.Companion INSTANCE = new com.vinfast.vehicle.drivingtrend.DrivingTrendAttentionDialog.Companion(null);

    /* JADX INFO: renamed from: k, reason: from kotlin metadata */
    private kotlin.jvm.functions.Function1 onGotItClicked;

    /* JADX INFO: renamed from: l, reason: from kotlin metadata */
    private boolean isClickedDoNotShowAgain;

    /* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
    @kotlin.Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J-\u0010\u000b\u001a\u00020\n2\u0006\u0010\u0005\u001a\u00020\u00042\u0016\b\u0002\u0010\t\u001a\u0010\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u00020\b\u0018\u00010\u0006¢\u0006\u0004\b\u000b\u0010\fR\u0014\u0010\u000e\u001a\u00020\r8\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u000e\u0010\u000f¨\u0006\u0010"}, d2 = {"Lcom/vinfast/vehicle/drivingtrend/DrivingTrendAttentionDialog$Companion;", "", "<init>", "()V", "Landroidx/fragment/app/FragmentManager;", "fm", "Lkotlin/Function1;", "", "", "onGotItClicked", "Lcom/vinfast/vehicle/drivingtrend/DrivingTrendAttentionDialog;", "a", "(Landroidx/fragment/app/FragmentManager;Lkotlin/jvm/functions/Function1;)Lcom/vinfast/vehicle/drivingtrend/DrivingTrendAttentionDialog;", "", "TAG", "Ljava/lang/String;", "vehicle_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
    public static final class Companion {
        public /* synthetic */ Companion(kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        public final com.vinfast.vehicle.drivingtrend.DrivingTrendAttentionDialog a(androidx.fragment.app.FragmentManager fm, kotlin.jvm.functions.Function1 onGotItClicked) {
            kotlin.jvm.internal.Intrinsics.l(fm, "fm");
            com.vinfast.vehicle.drivingtrend.DrivingTrendAttentionDialog drivingTrendAttentionDialog = new com.vinfast.vehicle.drivingtrend.DrivingTrendAttentionDialog();
            drivingTrendAttentionDialog.H0(onGotItClicked);
            drivingTrendAttentionDialog.show(fm, "DrivingTrendAttentionDialog");
            return drivingTrendAttentionDialog;
        }

        private Companion() {
        }
    }

    public DrivingTrendAttentionDialog() {
        super(new kotlin.jvm.functions.Function1() { // from class: com.vinfast.vehicle.drivingtrend.d
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.vehicle.drivingtrend.DrivingTrendAttentionDialog.G0((android.view.LayoutInflater) obj);
            }
        });
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final com.vinfast.vehicle.databinding.FragmentAttentionDrivingDataBinding G0(android.view.LayoutInflater layoutInflater) {
        kotlin.jvm.internal.Intrinsics.l(layoutInflater, "it");
        com.vinfast.vehicle.databinding.FragmentAttentionDrivingDataBinding fragmentAttentionDrivingDataBindingC = com.vinfast.vehicle.databinding.FragmentAttentionDrivingDataBinding.c(layoutInflater);
        kotlin.jvm.internal.Intrinsics.k(fragmentAttentionDrivingDataBindingC, "inflate(...)");
        return fragmentAttentionDrivingDataBindingC;
    }

    private final void I0() {
        ((com.vinfast.vehicle.databinding.FragmentAttentionDrivingDataBinding) p0()).c.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener() { // from class: com.vinfast.vehicle.drivingtrend.a
            @Override // android.widget.CompoundButton.OnCheckedChangeListener
            public final void onCheckedChanged(android.widget.CompoundButton compoundButton, boolean z) {
                com.vinfast.vehicle.drivingtrend.DrivingTrendAttentionDialog.J0(this.a, compoundButton, z);
            }
        });
        androidx.appcompat.widget.AppCompatTextView appCompatTextView = ((com.vinfast.vehicle.databinding.FragmentAttentionDrivingDataBinding) p0()).b;
        kotlin.jvm.internal.Intrinsics.k(appCompatTextView, "btnOption");
        com.vinfast.companion.core.extensions.ViewExtensionKt.G(appCompatTextView, new kotlin.jvm.functions.Function1() { // from class: com.vinfast.vehicle.drivingtrend.b
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.vehicle.drivingtrend.DrivingTrendAttentionDialog.K0(this.a, (android.view.View) obj);
            }
        });
        android.widget.ImageButton imageButton = ((com.vinfast.vehicle.databinding.FragmentAttentionDrivingDataBinding) p0()).d;
        kotlin.jvm.internal.Intrinsics.k(imageButton, "ivClose");
        com.vinfast.companion.core.extensions.ViewExtensionKt.G(imageButton, new kotlin.jvm.functions.Function1() { // from class: com.vinfast.vehicle.drivingtrend.c
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.vehicle.drivingtrend.DrivingTrendAttentionDialog.L0(this.a, (android.view.View) obj);
            }
        });
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void J0(com.vinfast.vehicle.drivingtrend.DrivingTrendAttentionDialog drivingTrendAttentionDialog, android.widget.CompoundButton compoundButton, boolean z) {
        kotlin.jvm.internal.Intrinsics.l(compoundButton, "<unused var>");
        drivingTrendAttentionDialog.isClickedDoNotShowAgain = z;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit K0(com.vinfast.vehicle.drivingtrend.DrivingTrendAttentionDialog drivingTrendAttentionDialog, android.view.View view) {
        kotlin.jvm.internal.Intrinsics.l(view, "it");
        kotlin.jvm.functions.Function1 function1 = drivingTrendAttentionDialog.onGotItClicked;
        if (function1 != null) {
            function1.invoke(java.lang.Boolean.valueOf(drivingTrendAttentionDialog.isClickedDoNotShowAgain));
        }
        drivingTrendAttentionDialog.dismiss();
        return kotlin.Unit.a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit L0(com.vinfast.vehicle.drivingtrend.DrivingTrendAttentionDialog drivingTrendAttentionDialog, android.view.View view) {
        kotlin.jvm.internal.Intrinsics.l(view, "it");
        kotlin.jvm.functions.Function1 function1 = drivingTrendAttentionDialog.onGotItClicked;
        if (function1 != null) {
            function1.invoke(java.lang.Boolean.FALSE);
        }
        drivingTrendAttentionDialog.dismiss();
        return kotlin.Unit.a;
    }

    public final void H0(kotlin.jvm.functions.Function1 function1) {
        this.onGotItClicked = function1;
    }

    @Override // com.vinfast.companion.core.base.fragment.BaseDialogFragment, com.vinfast.companion.core.base.fragment.HiltDialogFragment
    public void onViewCreated(android.view.View view, android.os.Bundle savedInstanceState) {
        kotlin.jvm.internal.Intrinsics.l(view, "view");
        super.onViewCreated(view, savedInstanceState);
        I0();
    }
}
