LINE.apk(点击下载) / PayRecoveryKycErrorFragment.java
package com.linecorp.linepay.jp.kyc.impl.digitalid.recoverykyc.screens;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.n;
import dm3.l;
import em3.q;
import em3.s;
import fm0.e;
import java.io.Serializable;
import jp.naver.line.android.R;
import kotlin.Metadata;
import kotlin.Unit;
import o52.c;
import u52.k;
@Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\u0018\u00002\u00020\u00012\u00020\u0002B\u0007¢\u0006\u0004\b\u0003\u0010\u0004¨\u0006\u0005"}, d2 = {"Lcom/linecorp/linepay/jp/kyc/impl/digitalid/recoverykyc/screens/PayRecoveryKycErrorFragment;", "Landroidx/fragment/app/Fragment;", "", "<init>", "()V", "pay-jp-kyc-impl_release"}, k = 1, mv = {1, 6, 0})
public final class PayRecoveryKycErrorFragment extends Fragment {
/* renamed from: b reason: collision with root package name */
public k f49191b;
/* renamed from: c reason: collision with root package name */
public v52.a f49192c;
public /* synthetic */ class a {
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[v52.a.values().length];
iArr[v52.a.OTHER_KYC_IN_PROGRESS.ordinal()] = 1;
iArr[v52.a.ACCOUNT_ERROR.ordinal()] = 2;
iArr[v52.a.OLD_ACCOUNT_IS_USING_LINE_INSURANCE.ordinal()] = 3;
$EnumSwitchMapping$0 = iArr;
}
}
public static final class b extends s implements l<View, Unit> {
/* renamed from: b reason: collision with root package name */
public final /* synthetic */ PayRecoveryKycErrorFragment f49193b;
public /* synthetic */ class a {
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[v52.a.values().length];
iArr[v52.a.OTHER_KYC_IN_PROGRESS.ordinal()] = 1;
iArr[v52.a.ACCOUNT_ERROR.ordinal()] = 2;
iArr[v52.a.OLD_ACCOUNT_IS_USING_LINE_INSURANCE.ordinal()] = 3;
$EnumSwitchMapping$0 = iArr;
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public b(PayRecoveryKycErrorFragment payRecoveryKycErrorFragment) {
super(1);
this.f49193b = payRecoveryKycErrorFragment;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // dm3.l
public Unit invoke(View view) {
int i14;
Intent intent;
q.f(view, "it");
Context requireContext = this.f49193b.requireContext();
q.e(requireContext, "requireContext()");
e eVar = (e) rb.a.d(requireContext, e.f72501z0);
v52.a aVar = this.f49193b.f49192c;
if (aVar == null) {
i14 = -1;
} else {
i14 = a.$EnumSwitchMapping$0[aVar.ordinal()];
}
if (i14 == 1) {
d62.a aVar2 = d62.a.f62806a;
Context requireContext2 = this.f49193b.requireContext();
q.e(requireContext2, "requireContext()");
intent = d62.a.b(requireContext2, "https://line.me/R/ti/p/@line_kycpassport");
} else if (i14 == 2) {
Context requireContext3 = this.f49193b.requireContext();
q.e(requireContext3, "requireContext()");
intent = eVar.S(requireContext3);
} else if (i14 != 3) {
intent = null;
} else {
d62.a aVar3 = d62.a.f62806a;
Context requireContext4 = this.f49193b.requireContext();
q.e(requireContext4, "requireContext()");
intent = d62.a.b(requireContext4, "https://contact-cc.line.me/serviceId/12240");
}
if (intent != null) {
this.f49193b.requireActivity().startActivity(intent);
}
n activity = this.f49193b.getActivity();
if (activity != null) {
activity.finish();
}
return Unit.INSTANCE;
}
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
int i14;
q.f(layoutInflater, "inflater");
View inflate = layoutInflater.inflate(R.layout.pay_jp_fragment_recovery_kyc_error, viewGroup, false);
int i15 = R.id.pay_recovery_kyc_error_btn;
Button button = (Button) dz.a.g(inflate, R.id.pay_recovery_kyc_error_btn);
if (button != null) {
i15 = R.id.pay_recovery_kyc_error_desc;
TextView textView = (TextView) dz.a.g(inflate, R.id.pay_recovery_kyc_error_desc);
if (textView != null) {
i15 = R.id.pay_recovery_kyc_error_img;
ImageView imageView = (ImageView) dz.a.g(inflate, R.id.pay_recovery_kyc_error_img);
if (imageView != null) {
i15 = R.id.pay_recovery_kyc_error_title;
TextView textView2 = (TextView) dz.a.g(inflate, R.id.pay_recovery_kyc_error_title);
if (textView2 != null) {
this.f49191b = new k((ConstraintLayout) inflate, button, textView, imageView, textView2);
Bundle arguments = getArguments();
Serializable serializable = arguments != null ? arguments.getSerializable("linepay.bundle.extra.pay_recovery_kyc_error_screen_type") : null;
v52.a aVar = serializable instanceof v52.a ? (v52.a) serializable : null;
this.f49192c = aVar;
if (aVar == null) {
i14 = -1;
} else {
i14 = a.$EnumSwitchMapping$0[aVar.ordinal()];
}
if (i14 == 2) {
k kVar = this.f49191b;
if (kVar != null) {
((TextView) kVar.f153134g).setText(getString(R.string.pay_jp_recovery_ekyc_error_account_title));
k kVar2 = this.f49191b;
if (kVar2 != null) {
kVar2.f153132e.setText(getString(R.string.pay_jp_recovery_ekyc_error_account_desc));
k kVar3 = this.f49191b;
if (kVar3 != null) {
((Button) kVar3.f153133f).setText(getString(R.string.pay_jp_recovery_ekyc_error_account_btn));
} else {
q.l("binding");
throw null;
}
} else {
q.l("binding");
throw null;
}
} else {
q.l("binding");
throw null;
}
} else if (i14 == 3) {
k kVar4 = this.f49191b;
if (kVar4 != null) {
((TextView) kVar4.f153134g).setText(getString(R.string.pay_jp_recovery_ekyc_error_insurance_title));
k kVar5 = this.f49191b;
if (kVar5 != null) {
kVar5.f153132e.setText(getString(R.string.pay_jp_recovery_ekyc_error_insurance_desc));
k kVar6 = this.f49191b;
if (kVar6 != null) {
((Button) kVar6.f153133f).setText(getString(R.string.pay_jp_recovery_ekyc_error_insurance_btn));
} else {
q.l("binding");
throw null;
}
} else {
q.l("binding");
throw null;
}
} else {
q.l("binding");
throw null;
}
}
k kVar7 = this.f49191b;
if (kVar7 != null) {
ConstraintLayout a14 = kVar7.a();
q.e(a14, "binding.root");
return a14;
}
q.l("binding");
throw null;
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i15)));
}
@Override // androidx.fragment.app.Fragment
public void onViewCreated(View view, Bundle bundle) {
q.f(view, "view");
super.onViewCreated(view, bundle);
k kVar = this.f49191b;
if (kVar != null) {
Button button = (Button) kVar.f153133f;
q.e(button, "binding.payRecoveryKycErrorBtn");
c.a(button, new b(this));
return;
}
q.l("binding");
throw null;
}
}