导航菜单

页面标题

页面副标题

EfectivoYa v2.3 - DialogFragment.java 源代码

正在查看: EfectivoYa v2.3 应用的 DialogFragment.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.cnhz.android.main.view.fragment;

import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.method.LinkMovementMethod;
import android.text.method.MovementMethod;
import android.text.style.ForegroundColorSpan;
import android.text.style.StyleSpan;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.core.app.NotificationCompat;
import androidx.core.net.MailTo;
import androidx.fragment.app.FragmentManager;
import com.bumptech.glide.d;
import com.cnhz.android.main.R$color;
import com.cnhz.android.main.R$drawable;
import com.cnhz.android.main.R$id;
import com.cnhz.android.main.R$layout;
import com.cnhz.android.main.R$string;
import com.cnhz.android.main.base.a;
import com.cnhz.android.main.customView.BaseDialogFragment;
import com.cnhz.android.main.otherNet.bean.CheckVersionBean;
import com.cnhz.android.main.otherNet.bean.ConfigInfoResponseBean;
import com.cnhz.android.main.otherNet.view.ActivityOthers;
import com.cnhz.android.main.usercenter.bean.UserBankInfo;
import com.cnhz.android.main.view.fragment.DialogFragment;
import java.io.Serializable;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Ref;
import kotlin.text.g;
import p0.f;

@Metadata(d1 = {"\u0000N\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u0007\n\u0002\b\u000e\u0018\u0000 02\u00020\u0001:\u000212B\u0007¢\u0006\u0004\b.\u0010/J\u0012\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0016J&\u0010\u000b\u001a\u0004\u0018\u00010\n2\u0006\u0010\u0007\u001a\u00020\u00062\b\u0010\t\u001a\u0004\u0018\u00010\b2\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0016J\u001a\u0010\r\u001a\u00020\u00042\u0006\u0010\f\u001a\u00020\n2\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0016J\u001a\u0010\u0012\u001a\u00020\u00042\u0006\u0010\u000f\u001a\u00020\u000e2\b\u0010\u0011\u001a\u0004\u0018\u00010\u0010H\u0016J\u0010\u0010\u0014\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\nH\u0002J\u0010\u0010\u0015\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\nH\u0002J\u0010\u0010\u0016\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\nH\u0002J\u0010\u0010\u0017\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\nH\u0002J\u0010\u0010\u0018\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\nH\u0002J\u0010\u0010\u0019\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\nH\u0002J\u0010\u0010\u001a\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\nH\u0002J\u0010\u0010\u001b\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\nH\u0002J\u0010\u0010\u001c\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\nH\u0002R\u0018\u0010 \u001a\u0004\u0018\u00010\u001d8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001e\u0010\u001fR\u0018\u0010$\u001a\u0004\u0018\u00010!8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\"\u0010#R\u0016\u0010(\u001a\u00020%8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b&\u0010'R\u0016\u0010*\u001a\u00020%8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b)\u0010'R\u0018\u0010-\u001a\u0004\u0018\u00010\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b+\u0010,¨\u00063"}, d2 = {"Lcom/cnhz/android/main/view/fragment/DialogFragment;", "Lcom/cnhz/android/main/customView/BaseDialogFragment;", "Landroid/os/Bundle;", "savedInstanceState", "", "onCreate", "Landroid/view/LayoutInflater;", "inflater", "Landroid/view/ViewGroup;", "container", "Landroid/view/View;", "onCreateView", "view", "onViewCreated", "Landroidx/fragment/app/FragmentManager;", "manager", "", "tag", "show", "dialogView", "t1", "m1", "u1", "g1", "r1", "i1", "p1", "b1", "d1", "Lcom/cnhz/android/main/view/fragment/DialogFragment$b;", "j", "Lcom/cnhz/android/main/view/fragment/DialogFragment$b;", "btnClickListener", "", "k", "Ljava/lang/Integer;", "fragmentType", "", "l", "F", "widthRatio", "m", "heightRatio", "n", "Landroid/os/Bundle;", "bundleData", "<init>", "()V", "o", "a", "b", "V2.3-20240823-003002-Production_release"}, k = 1, mv = {1, 8, 0})
public final class DialogFragment extends BaseDialogFragment {

    public static final Companion INSTANCE = new Companion(null);

    private b btnClickListener;

    private Integer fragmentType;

    private float widthRatio = 0.8f;

    private float heightRatio = 0.8f;

    private Bundle bundleData;

    public static final class Companion {
        private Companion() {
        }

        public Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        public final DialogFragment a(int i2, Bundle bundle, b bVar) {
            DialogFragment dialogFragment = new DialogFragment();
            dialogFragment.btnClickListener = bVar;
            Bundle bundle2 = new Bundle();
            bundle2.putInt("ARG_Fragment_Type", i2);
            bundle2.putBundle("data", bundle);
            dialogFragment.setArguments(bundle2);
            return dialogFragment;
        }

        public final DialogFragment b(int i2, b bVar) {
            DialogFragment dialogFragment = new DialogFragment();
            dialogFragment.btnClickListener = bVar;
            Bundle bundle = new Bundle();
            bundle.putInt("ARG_Fragment_Type", i2);
            dialogFragment.setArguments(bundle);
            return dialogFragment;
        }
    }

    public interface b {
        void a(View view);

        void b(View view);
    }

    public static final void J0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(view);
        }
        dialogFragment.dismiss();
    }

    public static final void K0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        Intent intent = new Intent(dialogFragment.requireContext(), (Class<?>) ActivityOthers.class);
        intent.putExtra("StartFragmentType", 5);
        intent.putExtra("ProtocolType", 2);
        dialogFragment.startActivity(intent);
    }

    public static final boolean L0(View view, MotionEvent motionEvent) {
        TextView textView;
        MovementMethod movementMethod;
        if (!(view instanceof TextView) || (movementMethod = (textView = (TextView) view).getMovementMethod()) == null || !(textView.getText() instanceof Spannable) || motionEvent.getAction() != 1) {
            return false;
        }
        CharSequence text = textView.getText();
        Intrinsics.d(text, "null cannot be cast to non-null type android.text.Spannable");
        if (!movementMethod.onTouchEvent(textView, (Spannable) text, motionEvent)) {
            return false;
        }
        motionEvent.setAction(3);
        return false;
    }

    public static final void M0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.a(view);
        }
    }

    public static final void N0(Ref.ObjectRef objectRef, DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(objectRef, "$view");
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        if (!((CheckBox) ((View) objectRef.element).findViewById(R$id.CheckB_protocol)).isChecked()) {
            f.f2617a.b(Integer.valueOf(R$string.toast_no_check_protocol), "");
            return;
        }
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(view);
        }
    }

    public static final void O0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(view);
        }
    }

    public static final void P0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(view);
        }
    }

    public static final void Q0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(view);
        }
    }

    public static final void R0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(view);
        }
        dialogFragment.dismiss();
    }

    public static final void S0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(view);
        }
        dialogFragment.dismiss();
    }

    public static final void T0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(view);
        }
        dialogFragment.dismiss();
    }

    public static final void U0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(view);
        }
        dialogFragment.dismiss();
    }

    public static final void V0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(view);
        }
        dialogFragment.dismiss();
    }

    public static final void W0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(view);
        }
        dialogFragment.dismiss();
    }

    public static final void X0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.a(view);
        }
        dialogFragment.dismiss();
    }

    public static final void Y0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(view);
        }
        dialogFragment.dismiss();
    }

    public static final void Z0(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(view);
        }
        dialogFragment.dismiss();
    }

    public static final void a1(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(view);
        }
        dialogFragment.dismiss();
    }

    private final void b1(View dialogView) {
        Integer num = this.fragmentType;
        if (num == null || num.intValue() != 104) {
            if (num != null && num.intValue() == 105) {
                ((ImageView) dialogView.findViewById(R$id.IV_content_image)).setImageResource(R$drawable.bg_image_id_background);
            } else if (num != null && num.intValue() == 106) {
                ((ImageView) dialogView.findViewById(R$id.IV_content_image)).setImageResource(R$drawable.bg_image_live);
            }
        }
        ((Button) dialogView.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DialogFragment.c1(DialogFragment.this, view);
            }
        });
    }

    public static final void c1(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            Intrinsics.d(view, "null cannot be cast to non-null type android.widget.Button");
            bVar.b((Button) view);
        }
        dialogFragment.dismiss();
    }

    private final void d1(View dialogView) {
        Integer num = this.fragmentType;
        if (num != null && num.intValue() == 134) {
            dialogView.findViewById(R$id.TextV_money_amount).setVisibility(0);
        }
        dialogView.findViewById(R$id.TextV_modify).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DialogFragment.e1(DialogFragment.this, view);
            }
        });
        dialogView.findViewById(R$id.TextV_confirm).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DialogFragment.f1(DialogFragment.this, view);
            }
        });
    }

    public static final void e1(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.a(null);
        }
    }

    public static final void f1(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            bVar.b(null);
        }
    }

    private final void g1(View dialogView) {
        dialogView.findViewById(R$id.TextV_title).setVisibility(8);
        dialogView.findViewById(R$id.Btn_cancel).setVisibility(8);
        TextView textView = new TextView(getContext());
        textView.setTextColor(getResources().getColor(R$color.text_black));
        textView.setTextSize(1, 14.0f);
        textView.setText(getString(R$string.dialog_delay_tip));
        ((LinearLayout) dialogView.findViewById(R$id.LinearL_content_container)).addView(textView);
        ((Button) dialogView.findViewById(R$id.Btn_confirm)).setText("OK");
        ((Button) dialogView.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DialogFragment.h1(DialogFragment.this, view);
            }
        });
    }

    public static final void h1(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            Intrinsics.d(view, "null cannot be cast to non-null type android.widget.Button");
            bVar.b((Button) view);
        }
        dialogFragment.dismiss();
    }

    private final void i1(View dialogView) {
        ConfigInfoResponseBean.ConfigInfo filters;
        ConfigInfoResponseBean.ConfigInfo filters2;
        ConfigInfoResponseBean.ConfigInfo filters3;
        ConfigInfoResponseBean.ConfigInfo filters4;
        setCancelable(true);
        final Ref.ObjectRef objectRef = new Ref.ObjectRef();
        objectRef.element = a.f1299a.b();
        TextView textView = (TextView) dialogView.findViewById(R$id.TextV_title);
        String string = getResources().getString(R$string.dialog_server_time);
        ConfigInfoResponseBean configInfoResponseBean = (ConfigInfoResponseBean) objectRef.element;
        String str = null;
        textView.setText(string + ((configInfoResponseBean == null || (filters4 = configInfoResponseBean.getFilters()) == null) ? null : filters4.getWhore()));
        ((LinearLayout) dialogView.findViewById(R$id.Layout_btns)).setVisibility(8);
        View inflate = View.inflate(getContext(), R$layout.dialog_content_have_problems, null);
        ((LinearLayout) dialogView.findViewById(R$id.LinearL_content_container)).addView(inflate);
        TextView textView2 = (TextView) inflate.findViewById(R$id.TextV_whatsApp);
        ConfigInfoResponseBean configInfoResponseBean2 = (ConfigInfoResponseBean) objectRef.element;
        textView2.setText((configInfoResponseBean2 == null || (filters3 = configInfoResponseBean2.getFilters()) == null) ? null : filters3.getTime());
        ((TextView) inflate.findViewById(R$id.TextV_whatsApp)).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DialogFragment.j1(objectRef, this, view);
            }
        });
        TextView textView3 = (TextView) inflate.findViewById(R$id.TextV_telPhone);
        ConfigInfoResponseBean configInfoResponseBean3 = (ConfigInfoResponseBean) objectRef.element;
        textView3.setText((configInfoResponseBean3 == null || (filters2 = configInfoResponseBean3.getFilters()) == null) ? null : filters2.getToolbar());
        ((TextView) inflate.findViewById(R$id.TextV_telPhone)).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DialogFragment.k1(DialogFragment.this, objectRef, view);
            }
        });
        TextView textView4 = (TextView) inflate.findViewById(R$id.TextV_email);
        ConfigInfoResponseBean configInfoResponseBean4 = (ConfigInfoResponseBean) objectRef.element;
        if (configInfoResponseBean4 != null && (filters = configInfoResponseBean4.getFilters()) != null) {
            str = filters.getPodcasts();
        }
        textView4.setText(str);
        ((TextView) inflate.findViewById(R$id.TextV_email)).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DialogFragment.l1(objectRef, this, view);
            }
        });
    }

    public static final void j1(Ref.ObjectRef objectRef, DialogFragment dialogFragment, View view) {
        ConfigInfoResponseBean.ConfigInfo filters;
        Intrinsics.checkNotNullParameter(objectRef, "$configInfo");
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        try {
            ConfigInfoResponseBean configInfoResponseBean = (ConfigInfoResponseBean) objectRef.element;
            Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("https://api.whatsapp.com/send?phone=" + ((configInfoResponseBean == null || (filters = configInfoResponseBean.getFilters()) == null) ? null : filters.getTime())));
            intent.setPackage("com.whatsapp");
            dialogFragment.startActivity(intent);
        } catch (Exception unused) {
            f.f2617a.b(null, dialogFragment.getString(R$string.toast_no_app));
        }
    }

    public static final void k1(DialogFragment dialogFragment, Ref.ObjectRef objectRef, View view) {
        ConfigInfoResponseBean.ConfigInfo filters;
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        Intrinsics.checkNotNullParameter(objectRef, "$configInfo");
        ConfigInfoResponseBean configInfoResponseBean = (ConfigInfoResponseBean) objectRef.element;
        dialogFragment.startActivity(new Intent("android.intent.action.DIAL", Uri.parse("tel:" + ((configInfoResponseBean == null || (filters = configInfoResponseBean.getFilters()) == null) ? null : filters.getToolbar()))));
    }

    public static final void l1(Ref.ObjectRef objectRef, DialogFragment dialogFragment, View view) {
        ConfigInfoResponseBean.ConfigInfo filters;
        Intrinsics.checkNotNullParameter(objectRef, "$configInfo");
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        ConfigInfoResponseBean configInfoResponseBean = (ConfigInfoResponseBean) objectRef.element;
        dialogFragment.startActivity(Intent.createChooser(new Intent("android.intent.action.SENDTO", Uri.parse(MailTo.MAILTO_SCHEME + ((configInfoResponseBean == null || (filters = configInfoResponseBean.getFilters()) == null) ? null : filters.getPodcasts()))), dialogFragment.getString(R$string.toast_select_app)));
    }

    private final void m1(View dialogView) {
        setCancelable(false);
        this.widthRatio = 0.8f;
        dialogView.findViewById(R$id.TextV_title).setBackground(null);
        ((TextView) dialogView.findViewById(R$id.TextV_title)).setTextColor(getResources().getColor(R$color.text_black));
        ((TextView) dialogView.findViewById(R$id.TextV_title)).setText("Consejos");
        TextView textView = new TextView(getContext());
        textView.setTextColor(getResources().getColor(R$color.text_black));
        textView.setTextSize(1, 14.0f);
        textView.setText("Confirmar Ia salida?");
        textView.setGravity(17);
        ((LinearLayout) dialogView.findViewById(R$id.LinearL_content_container)).addView(textView);
        ((Button) dialogView.findViewById(R$id.Btn_cancel)).setText("Cancelar");
        ((Button) dialogView.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DialogFragment.n1(DialogFragment.this, view);
            }
        });
        ((Button) dialogView.findViewById(R$id.Btn_cancel)).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DialogFragment.o1(DialogFragment.this, view);
            }
        });
    }

    public static final void n1(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            Intrinsics.d(view, "null cannot be cast to non-null type android.widget.Button");
            bVar.b((Button) view);
        }
        dialogFragment.dismiss();
    }

    public static final void o1(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            Intrinsics.d(view, "null cannot be cast to non-null type android.widget.Button");
            bVar.a((Button) view);
        }
        dialogFragment.dismiss();
    }

    private final void p1(View dialogView) {
        ((TextView) dialogView.findViewById(R$id.TextV_title)).setVisibility(8);
        ((Button) dialogView.findViewById(R$id.Btn_cancel)).setVisibility(8);
        View inflate = View.inflate(getContext(), R$layout.dialog_content_loss_permission, null);
        ((TextView) inflate.findViewById(R$id.TextV_loss_permisssion)).setText("");
        ((LinearLayout) dialogView.findViewById(R$id.LinearL_content_container)).addView(inflate);
        ((Button) dialogView.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DialogFragment.q1(DialogFragment.this, view);
            }
        });
    }

    public static final void q1(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            Intrinsics.d(view, "null cannot be cast to non-null type android.widget.Button");
            bVar.b((Button) view);
        }
        dialogFragment.dismiss();
    }

    private final void r1(View dialogView) {
        dialogView.findViewById(R$id.TextV_title).setVisibility(8);
        dialogView.findViewById(R$id.Btn_cancel).setVisibility(8);
        TextView textView = new TextView(getContext());
        textView.setTextColor(getResources().getColor(R$color.text_black));
        textView.setTextSize(1, 14.0f);
        textView.setText(getString(R$string.dialog_otp_three_times));
        ((LinearLayout) dialogView.findViewById(R$id.LinearL_content_container)).addView(textView);
        ((Button) dialogView.findViewById(R$id.Btn_confirm)).setText("OK");
        ((Button) dialogView.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DialogFragment.s1(DialogFragment.this, view);
            }
        });
    }

    public static final void s1(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            Intrinsics.d(view, "null cannot be cast to non-null type android.widget.Button");
            bVar.b((Button) view);
        }
        dialogFragment.dismiss();
    }

    private final void t1(View dialogView) {
        String string = getString(R$string.permission_tip_permission1);
        Intrinsics.checkNotNullExpressionValue(string, "getString(R.string.permission_tip_permission1)");
        String string2 = getString(R$string.permission_tip_permission2);
        Intrinsics.checkNotNullExpressionValue(string2, "getString(R.string.permission_tip_permission2)");
        String string3 = getString(R$string.permission_tip_permission3);
        Intrinsics.checkNotNullExpressionValue(string3, "getString(R.string.permission_tip_permission3)");
        String string4 = getString(R$string.permission_tip_permission4);
        Intrinsics.checkNotNullExpressionValue(string4, "getString(R.string.permission_tip_permission4)");
        String string5 = getString(R$string.permission_tip_permission5);
        Intrinsics.checkNotNullExpressionValue(string5, "getString(R.string.permission_tip_permission5)");
        String string6 = getString(R$string.permission_tip_permission6);
        Intrinsics.checkNotNullExpressionValue(string6, "getString(R.string.permission_tip_permission6)");
        String string7 = getString(R$string.permission_tip_permission7);
        Intrinsics.checkNotNullExpressionValue(string7, "getString(R.string.permission_tip_permission7)");
        String string8 = getString(R$string.permission_tip_permission1_desc);
        Intrinsics.checkNotNullExpressionValue(string8, "getString(R.string.permi…ion_tip_permission1_desc)");
        String string9 = getString(R$string.permission_tip_permission2_desc);
        Intrinsics.checkNotNullExpressionValue(string9, "getString(R.string.permi…ion_tip_permission2_desc)");
        String string10 = getString(R$string.permission_tip_permission3_desc);
        Intrinsics.checkNotNullExpressionValue(string10, "getString(R.string.permi…ion_tip_permission3_desc)");
        String string11 = getString(R$string.permission_tip_permission4_desc);
        Intrinsics.checkNotNullExpressionValue(string11, "getString(R.string.permi…ion_tip_permission4_desc)");
        String string12 = getString(R$string.permission_tip_permission5_desc);
        Intrinsics.checkNotNullExpressionValue(string12, "getString(R.string.permi…ion_tip_permission5_desc)");
        String string13 = getString(R$string.permission_tip_permission6_desc);
        Intrinsics.checkNotNullExpressionValue(string13, "getString(R.string.permi…ion_tip_permission6_desc)");
        String string14 = getString(R$string.permission_tip_permission7_desc);
        Intrinsics.checkNotNullExpressionValue(string14, "getString(R.string.permi…ion_tip_permission7_desc)");
        TextView textView = (TextView) dialogView.findViewById(R$id.TextV_permission1);
        SpannableString spannableString = new SpannableString(((Object) string) + string8);
        spannableString.setSpan(new StyleSpan(1), 0, string.length(), 34);
        spannableString.setSpan(new ForegroundColorSpan(Color.parseColor("#1B1200")), 0, string.length(), 34);
        textView.setText(spannableString);
        TextView textView2 = (TextView) dialogView.findViewById(R$id.TextV_permission2);
        SpannableString spannableString2 = new SpannableString(((Object) string2) + string9);
        spannableString2.setSpan(new StyleSpan(1), 0, string2.length(), 34);
        spannableString2.setSpan(new ForegroundColorSpan(Color.parseColor("#1B1200")), 0, string2.length(), 34);
        textView2.setText(spannableString2);
        TextView textView3 = (TextView) dialogView.findViewById(R$id.TextV_permission3);
        SpannableString spannableString3 = new SpannableString(((Object) string3) + string10);
        spannableString3.setSpan(new StyleSpan(1), 0, string3.length(), 34);
        spannableString3.setSpan(new ForegroundColorSpan(Color.parseColor("#1B1200")), 0, string3.length(), 34);
        textView3.setText(spannableString3);
        TextView textView4 = (TextView) dialogView.findViewById(R$id.TextV_permission4);
        SpannableString spannableString4 = new SpannableString(((Object) string4) + string11);
        spannableString4.setSpan(new StyleSpan(1), 0, string4.length(), 34);
        spannableString4.setSpan(new ForegroundColorSpan(Color.parseColor("#1B1200")), 0, string4.length(), 34);
        textView4.setText(spannableString4);
        TextView textView5 = (TextView) dialogView.findViewById(R$id.TextV_permission5);
        SpannableString spannableString5 = new SpannableString(((Object) string5) + string12);
        spannableString5.setSpan(new StyleSpan(1), 0, string5.length(), 34);
        spannableString5.setSpan(new ForegroundColorSpan(Color.parseColor("#1B1200")), 0, string5.length(), 34);
        textView5.setText(spannableString5);
        TextView textView6 = (TextView) dialogView.findViewById(R$id.TextV_permission6);
        SpannableString spannableString6 = new SpannableString(((Object) string6) + string13);
        spannableString6.setSpan(new StyleSpan(1), 0, string6.length(), 34);
        spannableString6.setSpan(new ForegroundColorSpan(Color.parseColor("#1B1200")), 0, string6.length(), 34);
        textView6.setText(spannableString6);
        TextView textView7 = (TextView) dialogView.findViewById(R$id.TextV_permission7);
        SpannableString spannableString7 = new SpannableString(((Object) string7) + string14);
        spannableString7.setSpan(new StyleSpan(1), 0, string7.length(), 34);
        spannableString7.setSpan(new ForegroundColorSpan(Color.parseColor("#1B1200")), 0, string7.length(), 34);
        textView7.setText(spannableString7);
    }

    private final void u1(View dialogView) {
        setCancelable(false);
        dialogView.findViewById(R$id.TextV_title).setBackground(null);
        ((TextView) dialogView.findViewById(R$id.TextV_title)).setTextColor(Color.parseColor("#FE4A33"));
        ((TextView) dialogView.findViewById(R$id.TextV_title)).setText("¡Aviso importante!");
        TextView textView = new TextView(getContext());
        textView.setTextColor(getResources().getColor(R$color.text_black));
        textView.setTextSize(1, 14.0f);
        textView.setText(getString(R$string.dialog_unsubscribe_tip));
        textView.setGravity(17);
        ((LinearLayout) dialogView.findViewById(R$id.LinearL_content_container)).addView(textView);
        ((Button) dialogView.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DialogFragment.v1(DialogFragment.this, view);
            }
        });
        ((Button) dialogView.findViewById(R$id.Btn_cancel)).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DialogFragment.w1(DialogFragment.this, view);
            }
        });
    }

    public static final void v1(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            Intrinsics.d(view, "null cannot be cast to non-null type android.widget.Button");
            bVar.b((Button) view);
        }
        dialogFragment.dismiss();
    }

    public static final void w1(DialogFragment dialogFragment, View view) {
        Intrinsics.checkNotNullParameter(dialogFragment, "this$0");
        b bVar = dialogFragment.btnClickListener;
        if (bVar != null) {
            Intrinsics.d(view, "null cannot be cast to non-null type android.widget.Button");
            bVar.a((Button) view);
        }
        dialogFragment.dismiss();
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Bundle arguments = getArguments();
        if (arguments != null) {
            this.fragmentType = Integer.valueOf(arguments.getInt("ARG_Fragment_Type"));
            this.bundleData = arguments.getBundle("data");
        }
        setCancelable(false);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        String string;
        String string2;
        String str;
        String string3;
        Intrinsics.checkNotNullParameter(inflater, "inflater");
        Integer num = this.fragmentType;
        if (((((((num != null && num.intValue() == 100) || (num != null && num.intValue() == 102)) != false || (num != null && num.intValue() == 101)) != false || (num != null && num.intValue() == 121)) != false || (num != null && num.intValue() == 122)) == true || (num != null && num.intValue() == 123)) == true) {
            this.widthRatio = -1.0f;
            this.heightRatio = -1.0f;
            return inflater.inflate(R$layout.dialog_common, container, false);
        }
        if (((num != null && num.intValue() == 103) || (num != null && num.intValue() == 107)) == true) {
            setCancelable(true);
            this.widthRatio = 1.0f;
            this.heightRatio = 0.5f;
            b0(80);
            return inflater.inflate(R$layout.dialog_talking_select_answer, container, false);
        }
        if (((num != null && num.intValue() == 108) || (num != null && num.intValue() == 127)) == true) {
            setCancelable(true);
            this.widthRatio = 1.0f;
            this.heightRatio = 0.4f;
            b0(80);
            return inflater.inflate(R$layout.dialog_talking_select_answer, container, false);
        }
        if ((((num != null && num.intValue() == 104) || (num != null && num.intValue() == 105)) == true || (num != null && num.intValue() == 106)) == true) {
            setCancelable(true);
            this.widthRatio = -1.0f;
            this.heightRatio = -1.0f;
            return inflater.inflate(R$layout.dialog_auth_step1_take_photo, container, false);
        }
        if (((num != null && num.intValue() == 109) || (num != null && num.intValue() == 134)) == true) {
            setCancelable(true);
            this.widthRatio = -1.0f;
            this.heightRatio = -1.0f;
            return inflater.inflate(R$layout.dialog_bank_card_confirm, container, false);
        }
        if (num != null && num.intValue() == 110) {
            setCancelable(false);
            this.widthRatio = -1.0f;
            this.heightRatio = -1.0f;
            View inflate = inflater.inflate(R$layout.dialog_feedback_result, container, false);
            ((TextView) inflate.findViewById(R$id.TextV_tip)).setText("FELICIDADES");
            ((TextView) inflate.findViewById(R$id.TextV_content)).setText(R$string.get_coupon_dialog_text);
            ((Button) inflate.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.J0(DialogFragment.this, view);
                }
            });
            return inflate;
        }
        String str2 = "";
        if (num != null && num.intValue() == 135) {
            setCancelable(false);
            this.widthRatio = -1.0f;
            this.heightRatio = -1.0f;
            View inflate2 = inflater.inflate(R$layout.dialog_feedback_result, container, false);
            Bundle bundle = this.bundleData;
            if (bundle == null || (str = bundle.getString("title")) == null) {
                str = "";
            }
            Bundle bundle2 = this.bundleData;
            if (bundle2 != null && (string3 = bundle2.getString("content")) != null) {
                str2 = string3;
            }
            ((TextView) inflate2.findViewById(R$id.TextV_tip)).setText(str);
            ((TextView) inflate2.findViewById(R$id.TextV_content)).setText(str2);
            ((Button) inflate2.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.R0(DialogFragment.this, view);
                }
            });
            return inflate2;
        }
        if (num != null && num.intValue() == 124) {
            setCancelable(false);
            this.widthRatio = -1.0f;
            this.heightRatio = -1.0f;
            View inflate3 = inflater.inflate(R$layout.dialog_feedback_result, container, false);
            Bundle bundle3 = this.bundleData;
            if (bundle3 != null && (string2 = bundle3.getString("productName")) != null) {
                str2 = string2;
            }
            ((TextView) inflate3.findViewById(R$id.TextV_tip)).setText("FELICIDADES");
            TextView textView = (TextView) inflate3.findViewById(R$id.TextV_content);
            String string4 = getString(R$string.dialog_tip_payment_success);
            Intrinsics.checkNotNullExpressionValue(string4, "getString(R.string.dialog_tip_payment_success)");
            textView.setText(g.v(string4, "productName", str2, true));
            ((Button) inflate3.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.U0(DialogFragment.this, view);
                }
            });
            return inflate3;
        }
        if (num != null && num.intValue() == 125) {
            setCancelable(false);
            this.widthRatio = -1.0f;
            this.heightRatio = -1.0f;
            View inflate4 = inflater.inflate(R$layout.dialog_feedback_result, container, false);
            Bundle bundle4 = this.bundleData;
            if (bundle4 != null && (string = bundle4.getString("productName")) != null) {
                str2 = string;
            }
            ((TextView) inflate4.findViewById(R$id.TextV_tip)).setText("FELICIDADES");
            TextView textView2 = (TextView) inflate4.findViewById(R$id.TextV_content);
            String string5 = getString(R$string.dialog_tip_delay_success);
            Intrinsics.checkNotNullExpressionValue(string5, "getString(R.string.dialog_tip_delay_success)");
            textView2.setText(g.v(string5, "productName", str2, true));
            ((Button) inflate4.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.V0(DialogFragment.this, view);
                }
            });
            return inflate4;
        }
        if (((num != null && num.intValue() == 117) || (num != null && num.intValue() == 118)) == true) {
            setCancelable(false);
            this.widthRatio = -1.0f;
            this.heightRatio = -1.0f;
            View inflate5 = inflater.inflate(R$layout.dialog_feedback_result, container, false);
            TextView textView3 = (TextView) inflate5.findViewById(R$id.TextV_content);
            Integer num2 = this.fragmentType;
            textView3.setText((num2 != null && num2.intValue() == 117) ? getString(R$string.tip_feedback_success_detail) : getString(R$string.tip_feedback_fail_detail));
            TextView textView4 = (TextView) inflate5.findViewById(R$id.TextV_tip);
            Integer num3 = this.fragmentType;
            textView4.setText((num3 == null || num3.intValue() != 117) ? "Envio exitoso" : "FELICIDADES");
            ImageView imageView = (ImageView) inflate5.findViewById(R$id.ImageV_status);
            Integer num4 = this.fragmentType;
            imageView.setImageResource((num4 != null && num4.intValue() == 117) ? R$drawable.image_take_photo_right : R$drawable.iamge_auth_fail_dialog);
            ((Button) inflate5.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.W0(DialogFragment.this, view);
                }
            });
            return inflate5;
        }
        if (num != null && num.intValue() == 111) {
            setCancelable(false);
            this.widthRatio = 1.0f;
            this.heightRatio = 1.0f;
            View inflate6 = inflater.inflate(R$layout.dialog_retrieve_user, container, false);
            inflate6.findViewById(R$id.TextV_stop_auth).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.X0(DialogFragment.this, view);
                }
            });
            inflate6.findViewById(R$id.TextV_continue_auth).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.Y0(DialogFragment.this, view);
                }
            });
            return inflate6;
        }
        if (num != null && num.intValue() == 112) {
            setCancelable(false);
            this.widthRatio = -1.0f;
            this.heightRatio = -1.0f;
            View inflate7 = inflater.inflate(R$layout.dialog_feedback_result, container, false);
            ((TextView) inflate7.findViewById(R$id.TextV_tip)).setText("FELICIDADES");
            ((TextView) inflate7.findViewById(R$id.TextV_content)).setText(R$string.dialog_credit_success_text);
            ((Button) inflate7.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.Z0(DialogFragment.this, view);
                }
            });
            return inflate7;
        }
        if (((((num != null && num.intValue() == 113) || (num != null && num.intValue() == 114)) != false || (num != null && num.intValue() == 115)) == true || (num != null && num.intValue() == 126)) == true) {
            setCancelable(false);
            this.widthRatio = -1.0f;
            this.heightRatio = -1.0f;
            View inflate8 = inflater.inflate(R$layout.dialog_common, container, false);
            ((TextView) inflate8.findViewById(R$id.TextV_title)).setVisibility(8);
            ((Button) inflate8.findViewById(R$id.Btn_cancel)).setVisibility(8);
            ((Button) inflate8.findViewById(R$id.Btn_confirm)).setText("OK");
            View inflate9 = View.inflate(requireContext(), R$layout.dialog_content_auth_fail, null);
            Integer num5 = this.fragmentType;
            if (num5 != null && num5.intValue() == 113) {
                str2 = getString(R$string.dialog_auth_fail_forground);
            } else if (num5 != null && num5.intValue() == 114) {
                str2 = getString(R$string.dialog_auth_fail_background);
            } else if (num5 != null && num5.intValue() == 115) {
                str2 = getString(R$string.dialog_auth_fail_live);
            } else if (num5 != null && num5.intValue() == 126) {
                str2 = getString(R$string.dialog_repayment_delay_fail_tip);
            }
            Intrinsics.checkNotNullExpressionValue(str2, "when (fragmentType) {\n  …> \"\"\n                   }");
            ((TextView) inflate9.findViewById(R$id.TextV_fail)).setText(str2);
            ((LinearLayout) inflate8.findViewById(R$id.LinearL_content_container)).addView(inflate9);
            ((Button) inflate8.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.a1(DialogFragment.this, view);
                }
            });
            return inflate8;
        }
        if (num != null && num.intValue() == 116) {
            setCancelable(true);
            this.widthRatio = 1.0f;
            this.heightRatio = -1.0f;
            b0(80);
            UserBankInfo j2 = p0.b.f2612a.j();
            final Ref.ObjectRef objectRef = new Ref.ObjectRef();
            View inflate10 = inflater.inflate(R$layout.dialog_loan_cofirm, container, false);
            objectRef.element = inflate10;
            TextView textView5 = (TextView) inflate10.findViewById(R$id.TextV_loan_type);
            if ((j2 != null && j2.getTuesday() == 1) == true) {
                str2 = "Tarjeta de débito";
            } else {
                if (j2 != null && j2.getTuesday() == 2) {
                    r5 = 1;
                }
                if (r5 != 0) {
                    str2 = "CLABE";
                }
            }
            textView5.setText(str2);
            ((TextView) ((View) objectRef.element).findViewById(R$id.TextV_bank_name)).setText(j2 != null ? j2.getAmp() : null);
            ((TextView) ((View) objectRef.element).findViewById(R$id.TextV_bank_card_num)).setText(j2 != null ? j2.getHotelscom() : null);
            String string6 = getString(R$string.loan_protocol1);
            Intrinsics.checkNotNullExpressionValue(string6, "getString(R.string.loan_protocol1)");
            String string7 = getString(R$string.loan_protocol2);
            Intrinsics.checkNotNullExpressionValue(string7, "getString(R.string.loan_protocol2)");
            SpannableString spannableString = new SpannableString(string6 + " " + string7);
            spannableString.setSpan(new com.cnhz.android.main.customView.b(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.K0(DialogFragment.this, view);
                }
            }), string6.length() + 1, string6.length() + 1 + string7.length(), 34);
            ((CheckBox) ((View) objectRef.element).findViewById(R$id.CheckB_protocol)).setText(spannableString);
            ((CheckBox) ((View) objectRef.element).findViewById(R$id.CheckB_protocol)).setMovementMethod(LinkMovementMethod.getInstance());
            ((CheckBox) ((View) objectRef.element).findViewById(R$id.CheckB_protocol)).setOnTouchListener(new View.OnTouchListener() {
                @Override
                public final boolean onTouch(View view, MotionEvent motionEvent) {
                    boolean L0;
                    L0 = DialogFragment.L0(view, motionEvent);
                    return L0;
                }
            });
            ((Button) ((View) objectRef.element).findViewById(R$id.Btn_cancel)).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.M0(DialogFragment.this, view);
                }
            });
            ((Button) ((View) objectRef.element).findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.N0(objectRef, this, view);
                }
            });
            return (View) objectRef.element;
        }
        if (((num != null && num.intValue() == 119) || (num != null && num.intValue() == 120)) == true) {
            setCancelable(false);
            this.widthRatio = -1.0f;
            this.heightRatio = -1.0f;
            View inflate11 = inflater.inflate(R$layout.dialog_overdue_fee, container, false);
            Integer num6 = this.fragmentType;
            if (num6 != null && num6.intValue() == 120) {
                ((TextView) inflate11.findViewById(R$id.TextV_text1)).setText(getString(R$string.dialog_delay_fee_text1));
                ((TextView) inflate11.findViewById(R$id.TextV_text2)).setText("Tarifa de prórroga");
                ((TextView) inflate11.findViewById(R$id.TextV_text3)).setText(getString(R$string.dialog_delay_fee_text2));
            }
            ((Button) inflate11.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.O0(DialogFragment.this, view);
                }
            });
            return inflate11;
        }
        if ((((num != null && num.intValue() == 128) || (num != null && num.intValue() == 129)) == true || (num != null && num.intValue() == 133)) == true) {
            setCancelable(false);
            this.widthRatio = -1.0f;
            this.heightRatio = -1.0f;
            View inflate12 = inflater.inflate(R$layout.dialog_credit_waiting, container, false);
            d.t(requireContext()).s(Integer.valueOf(R$drawable.gif_waiting)).p0((ImageView) inflate12.findViewById(R$id.ImageV_waiting));
            ConfigInfoResponseBean b2 = a.f1299a.b();
            Integer num7 = this.fragmentType;
            if (num7 != null && num7.intValue() == 128) {
                ((ViewGroup) inflate12.findViewById(R$id.Layout_rating)).setVisibility((b2 != null && b2.getQue()) != false ? 0 : 8);
                ((Button) inflate12.findViewById(R$id.Btn_confirm)).setVisibility(b2 != null && b2.getQue() ? 0 : 8);
            } else if (num7 != null && num7.intValue() == 129) {
                ((ViewGroup) inflate12.findViewById(R$id.Layout_count)).setVisibility(8);
                ((TextView) inflate12.findViewById(R$id.TextV_content)).setText(getString(R$string.dialog_loan_waiting_tip1));
                ((ViewGroup) inflate12.findViewById(R$id.Layout_rating)).setVisibility(b2 != null && b2.getQue() ? 0 : 8);
            } else if (num7 != null && num7.intValue() == 133) {
                ((ViewGroup) inflate12.findViewById(R$id.Layout_count)).setVisibility(8);
                ((TextView) inflate12.findViewById(R$id.TextV_content)).setText(getString(R$string.dialog_credit_waiting_tip3));
                ((ViewGroup) inflate12.findViewById(R$id.Layout_rating)).setVisibility(8);
            }
            ((Button) inflate12.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.P0(DialogFragment.this, view);
                }
            });
            return inflate12;
        }
        if (num != null && num.intValue() == 130) {
            setCancelable(false);
            this.widthRatio = -1.0f;
            this.heightRatio = -1.0f;
            View inflate13 = inflater.inflate(R$layout.dialog_common1, container, false);
            Bundle bundle5 = this.bundleData;
            if (bundle5 != null) {
                Serializable serializable = bundle5 != null ? bundle5.getSerializable("versionBean") : null;
                if (serializable != null) {
                    Intrinsics.d(serializable, "null cannot be cast to non-null type com.cnhz.android.main.otherNet.bean.CheckVersionBean");
                    ((TextView) inflate13.findViewById(R$id.TextV_title)).setText("La nueva versión");
                    ((TextView) inflate13.findViewById(R$id.TextV_content)).setText(((CheckVersionBean) serializable).getHopes());
                    Unit unit = Unit.a;
                }
            }
            inflate13.findViewById(R$id.Btn_confirm).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.Q0(DialogFragment.this, view);
                }
            });
            return inflate13;
        }
        if (num == null || num.intValue() != 131) {
            if (num == null || num.intValue() != 132) {
                return inflater.inflate(R$layout.dialog_common, container, false);
            }
            setCancelable(false);
            this.widthRatio = 0.9f;
            this.heightRatio = 0.8f;
            b0(17);
            View inflate14 = inflater.inflate(R$layout.dialog_permission_tip, container, false);
            ((Button) inflate14.findViewById(R$id.Btn_confirm)).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    DialogFragment.T0(DialogFragment.this, view);
                }
            });
            return inflate14;
        }
        setCancelable(false);
        this.widthRatio = -1.0f;
        this.heightRatio = -1.0f;
        View inflate15 = inflater.inflate(R$layout.dialog_common1, container, false);
        Bundle bundle6 = this.bundleData;
        if (bundle6 != null) {
            if (bundle6 != null) {
                bundle6.getInt(NotificationCompat.CATEGORY_STATUS);
            }
            Bundle bundle7 = this.bundleData;
            ((TextView) inflate15.findViewById(R$id.TextV_content)).setText(bundle7 != null ? bundle7.getString("message") : null);
            Unit unit2 = Unit.a;
        }
        inflate15.findViewById(R$id.Btn_confirm).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                DialogFragment.S0(DialogFragment.this, view);
            }
        });
        return inflate15;
    }

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        Intrinsics.checkNotNullParameter(view, "view");
        super.onViewCreated(view, savedInstanceState);
        Integer num = this.fragmentType;
        if (num != null && num.intValue() == 100) {
            r1(view);
        } else if (num != null && num.intValue() == 102) {
            i1(view);
        } else if (num != null && num.intValue() == 101) {
            p1(view);
        } else {
            boolean z2 = false;
            if (((num != null && num.intValue() == 104) || (num != null && num.intValue() == 105)) || (num != null && num.intValue() == 106)) {
                b1(view);
            } else {
                if ((num != null && num.intValue() == 109) || (num != null && num.intValue() == 134)) {
                    z2 = true;
                }
                if (z2) {
                    d1(view);
                } else if (num != null && num.intValue() == 121) {
                    g1(view);
                } else if (num != null && num.intValue() == 122) {
                    u1(view);
                } else if (num != null && num.intValue() == 123) {
                    m1(view);
                } else if (num != null && num.intValue() == 132) {
                    t1(view);
                }
            }
        }
        c0(this.widthRatio, this.heightRatio);
    }

    @Override
    public void show(FragmentManager manager, String tag) {
        Intrinsics.checkNotNullParameter(manager, "manager");
        if (isVisible()) {
            return;
        }
        super.show(manager, tag);
    }
}