正在查看: Baubap v3.9.7 应用的 WorkDataIdx1Fragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Baubap v3.9.7 应用的 WorkDataIdx1Fragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.baubap.presentation.request.loan.idx1;
import android.content.Context;
import android.os.Bundle;
import android.text.Editable;
import android.view.MotionEvent;
import android.view.View;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.fragment.app.f0;
import bn.m;
import cn.z;
import com.baubap.presentation.request.loan.idx1.WorkDataIdx1Fragment;
import com.baubap.presentation.request.work.WorkDataViewModel;
import com.google.android.material.datepicker.a;
import com.google.android.material.datepicker.a0;
import com.google.android.material.datepicker.c0;
import com.google.android.material.datepicker.e;
import com.google.android.material.datepicker.o;
import com.google.android.material.textfield.MaterialAutoCompleteTextView;
import com.google.android.material.textfield.TextInputEditText;
import com.google.android.material.textfield.TextInputLayout;
import dn.x;
import f40.k;
import f6.f1;
import f6.l1;
import kotlin.jvm.internal.q;
import kotlin.jvm.internal.y;
import l10.b;
import lm.i;
import m30.f;
import m30.g;
import me.s4;
import mn.x0;
import mo.j;
import ny.k1;
import om.n0;
import se.h0;
import sm.p;
import ul.h;
public final class WorkDataIdx1Fragment extends z {
public static final k[] f9971o;
public final j f9972l;
public final l1 f9973m;
public h f9974n;
static {
q qVar = new q(WorkDataIdx1Fragment.class, "binding", "getBinding()Lcom/baubap/databinding/RequestWorkDataIdx1FragmentBinding;", 0);
y.a.getClass();
f9971o = new k[]{qVar};
}
public WorkDataIdx1Fragment() {
super(2131558861, 6);
this.f9972l = k1.O(this, x.f11113b);
f e02 = b.e0(g.c, new p(new tm.h(this, 20), 17));
this.f9973m = f40.q.K(this, y.a(WorkDataViewModel.class), new i(e02, 15), new lm.j(e02, 15), new lm.h(this, e02, 15));
}
public final s4 V() {
return (s4) this.f9972l.a(this, f9971o[0]);
}
public final WorkDataViewModel W() {
return (WorkDataViewModel) this.f9973m.getValue();
}
public final void X() {
a aVar = new a();
aVar.e = new e(c0.f().getTimeInMillis());
o oVar = new o(new a0());
oVar.e = "Selecciona fecha";
final int i10 = 0;
oVar.d = 0;
oVar.c = aVar.a();
com.google.android.material.datepicker.p a10 = oVar.a();
a10.r(getChildFragmentManager(), "TAG");
final dn.z zVar = new dn.z(this, 7);
a10.r.add(new com.google.android.material.datepicker.q() {
});
}
@Override
public final m m() {
return W();
}
@Override
public final void onViewCreated(View view, Bundle bundle) {
xu.b.y(view, "view");
f0 requireActivity = requireActivity();
xu.b.x(requireActivity, "requireActivity(...)");
xu.b.D0(requireActivity, h0.f28592b);
mr.b.N(this, W());
W().N.e(getViewLifecycleOwner(), new n0(new dn.z(this, 5), 10));
W().f31001d.e(getViewLifecycleOwner(), new n0(new dn.z(this, 6), 10));
WorkDataViewModel W = W();
W.getClass();
tx.b.X(f1.Q(W), (q30.j) null, (m40.h0) null, new x0(W, null), 3);
final s4 V = V();
AppCompatTextView appCompatTextView = V.f21257d;
xu.b.x(appCompatTextView, "lblTitle");
mo.o.d(this, appCompatTextView, "https://media.baubap.com/android/loan-request/ic_job_activity.png", 50.0f);
MaterialAutoCompleteTextView materialAutoCompleteTextView = V().B;
xu.b.x(materialAutoCompleteTextView, "txtWorkType");
final int i10 = 0;
p(materialAutoCompleteTextView, "workType", 2130903071, 2130903072, new dn.z(this, i10));
TextInputEditText textInputEditText = V().f21279z;
xu.b.x(textInputEditText, "txtWorkActivity");
q(textInputEditText, "workActivity");
TextInputEditText textInputEditText2 = V().f21270q;
xu.b.x(textInputEditText2, "txtCompanyName");
q(textInputEditText2, "workName");
TextInputEditText textInputEditText3 = V().f21272s;
xu.b.x(textInputEditText3, "txtIncome");
q(textInputEditText3, "income");
MaterialAutoCompleteTextView materialAutoCompleteTextView2 = V().f21273t;
xu.b.x(materialAutoCompleteTextView2, "txtIncomeChannel");
final int i11 = 1;
p(materialAutoCompleteTextView2, "incomeChannel", 2130903063, 2130903064, new dn.z(this, i11));
MaterialAutoCompleteTextView materialAutoCompleteTextView3 = V().f21275v;
xu.b.x(materialAutoCompleteTextView3, "txtIncomeFrequency");
final int i12 = 2;
p(materialAutoCompleteTextView3, "incomeFrequency", 2130903067, 2130903068, new dn.z(this, i12));
TextInputEditText textInputEditText4 = V().f21276w;
xu.b.x(textInputEditText4, "txtMail");
q(textInputEditText4, "businessEmail");
MaterialAutoCompleteTextView materialAutoCompleteTextView4 = V().A;
xu.b.x(materialAutoCompleteTextView4, "txtWorkTenure");
p(materialAutoCompleteTextView4, "workTenure", 2130903069, 2130903070, new dn.z(this, 3));
MaterialAutoCompleteTextView materialAutoCompleteTextView5 = V().f21274u;
xu.b.v(materialAutoCompleteTextView5);
o(materialAutoCompleteTextView5, "incomeDocType", 2130903065);
materialAutoCompleteTextView5.setOnItemClickListener(new cn.a0(this, V, i12));
TextInputEditText textInputEditText5 = V().f21278y;
xu.b.x(textInputEditText5, "txtOtherIncomeDocType");
q(textInputEditText5, "incomeDocTypeOther");
MaterialAutoCompleteTextView materialAutoCompleteTextView6 = V().f21271r;
xu.b.x(materialAutoCompleteTextView6, "txtEducationLevel");
p(materialAutoCompleteTextView6, "educationLevel", 2130903061, 2130903062, new dn.z(this, 4));
MaterialAutoCompleteTextView materialAutoCompleteTextView7 = V().f21277x;
xu.b.v(materialAutoCompleteTextView7);
q(materialAutoCompleteTextView7, "nextIncomeDate");
materialAutoCompleteTextView7.setOnFocusChangeListener(new qi.q(i11, this, V));
materialAutoCompleteTextView7.setOnClickListener(new View.OnClickListener(this) {
public final WorkDataIdx1Fragment f11107c;
{
this.f11107c = this;
}
@Override
public final void onClick(View view2) {
int i13 = i10;
int i14 = 0;
WorkDataIdx1Fragment workDataIdx1Fragment = this.f11107c;
switch (i13) {
case 0:
f40.k[] kVarArr = WorkDataIdx1Fragment.f9971o;
xu.b.y(workDataIdx1Fragment, "this$0");
workDataIdx1Fragment.X();
return;
case 1:
f40.k[] kVarArr2 = WorkDataIdx1Fragment.f9971o;
xu.b.y(workDataIdx1Fragment, "this$0");
s4 V2 = workDataIdx1Fragment.V();
MaterialAutoCompleteTextView materialAutoCompleteTextView8 = V2.f21271r;
xu.b.x(materialAutoCompleteTextView8, "txtEducationLevel");
TextInputLayout textInputLayout = V2.f21259f;
xu.b.x(textInputLayout, "tilEducationLevel");
boolean y10 = ch.k.y(materialAutoCompleteTextView8, textInputLayout, "Favor de seleccionar una nivel de educación.");
if (xu.b.n(workDataIdx1Fragment.W().L, "other")) {
TextInputEditText textInputEditText6 = V2.f21278y;
xu.b.x(textInputEditText6, "txtOtherIncomeDocType");
TextInputLayout textInputLayout2 = V2.f21266m;
xu.b.x(textInputLayout2, "tilOtherIncomeDocType");
if (!ch.k.t(textInputEditText6, textInputLayout2, "Favor de introducir el tipo de comprobante.")) {
y10 = false;
}
}
MaterialAutoCompleteTextView materialAutoCompleteTextView9 = V2.f21274u;
xu.b.x(materialAutoCompleteTextView9, "txtIncomeDocType");
TextInputLayout textInputLayout3 = V2.f21262i;
xu.b.x(textInputLayout3, "tilIncomeDocType");
if (!ch.k.y(materialAutoCompleteTextView9, textInputLayout3, "Favor de seleccionar un comprobante de ingresos.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView10 = V2.A;
xu.b.x(materialAutoCompleteTextView10, "txtWorkTenure");
TextInputLayout textInputLayout4 = V2.f21268o;
xu.b.x(textInputLayout4, "tilWorkTenure");
if (!ch.k.y(materialAutoCompleteTextView10, textInputLayout4, "Favor de seleccionar tu antigüedad laboral.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView11 = V2.f21277x;
xu.b.x(materialAutoCompleteTextView11, "txtNextIncomeDate");
TextInputLayout textInputLayout5 = V2.f21265l;
xu.b.x(textInputLayout5, "tilNextIncomeDate");
if (!ch.k.y(materialAutoCompleteTextView11, textInputLayout5, "Favor de seleccionar una fecha.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView12 = V2.f21275v;
xu.b.x(materialAutoCompleteTextView12, "txtIncomeFrequency");
TextInputLayout textInputLayout6 = V2.f21263j;
xu.b.x(textInputLayout6, "tilIncomeFrequency");
if (!ch.k.y(materialAutoCompleteTextView12, textInputLayout6, "Favor de seleccionar con que frecuencia recibes tu ingresos.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView13 = V2.f21273t;
xu.b.x(materialAutoCompleteTextView13, "txtIncomeChannel");
TextInputLayout textInputLayout7 = V2.f21261h;
xu.b.x(textInputLayout7, "tilIncomeChannel");
if (!ch.k.y(materialAutoCompleteTextView13, textInputLayout7, "Favor de seleccionar cómo recibes tus ingresos.")) {
y10 = false;
}
TextInputEditText textInputEditText7 = V2.f21272s;
xu.b.x(textInputEditText7, "txtIncome");
TextInputLayout textInputLayout8 = V2.f21260g;
xu.b.x(textInputLayout8, "tilIncome");
if (!ch.k.t(textInputEditText7, textInputLayout8, "Favor de ingresar un monto válido.")) {
y10 = false;
}
String valueOf = String.valueOf(textInputEditText7.getText());
if (h40.q.R(valueOf) || Float.parseFloat(valueOf) <= 350.0f) {
textInputLayout8.setError("Verifica el monto de tu ingreso.");
z50.a.H(textInputEditText7);
y10 = false;
}
TextInputEditText textInputEditText8 = V2.f21270q;
xu.b.x(textInputEditText8, "txtCompanyName");
TextInputLayout textInputLayout9 = V2.f21258e;
xu.b.x(textInputLayout9, "tilCompanyName");
if (!ch.k.t(textInputEditText8, textInputLayout9, "Favor de ingresar un nombre de empresa válido.")) {
y10 = false;
}
TextInputEditText textInputEditText9 = V2.f21279z;
xu.b.x(textInputEditText9, "txtWorkActivity");
TextInputLayout textInputLayout10 = V2.f21267n;
xu.b.x(textInputLayout10, "tilWorkActivity");
if (!ch.k.t(textInputEditText9, textInputLayout10, "Favor de ingresar un puesto válido.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView14 = V2.B;
xu.b.x(materialAutoCompleteTextView14, "txtWorkType");
TextInputLayout textInputLayout11 = V2.f21269p;
xu.b.x(textInputLayout11, "tilWorkType");
if (ch.k.y(materialAutoCompleteTextView14, textInputLayout11, "Favor de seleccionar un tipo de actividad.") && y10) {
androidx.fragment.app.f0 requireActivity2 = workDataIdx1Fragment.requireActivity();
xu.b.x(requireActivity2, "requireActivity(...)");
Editable text = workDataIdx1Fragment.V().f21279z.getText();
Editable text2 = workDataIdx1Fragment.V().f21270q.getText();
String valueOf2 = String.valueOf(workDataIdx1Fragment.V().f21276w.getText()).length() == 0 ? "N/A" : String.valueOf(workDataIdx1Fragment.V().f21276w.getText());
k1.u(requireActivity2, "Confirma tu información", "Puesto: " + ((Object) text) + " \nEmpresa: " + ((Object) text2) + " \nEmail: " + valueOf2 + "\nNivel educativo: " + ((Object) workDataIdx1Fragment.V().f21271r.getText()), "Confirmar", "Corregir", new y(workDataIdx1Fragment, i14));
return;
}
return;
default:
f40.k[] kVarArr3 = WorkDataIdx1Fragment.f9971o;
xu.b.y(workDataIdx1Fragment, "this$0");
ul.h hVar = workDataIdx1Fragment.f9974n;
if (hVar == null) {
xu.b.r0("contactSupport");
throw null;
}
Context requireContext = workDataIdx1Fragment.requireContext();
xu.b.x(requireContext, "requireContext(...)");
hVar.a(requireContext, "work-info.view", false);
return;
}
}
});
TextInputEditText textInputEditText6 = V.f21279z;
xu.b.v(textInputEditText6);
textInputEditText6.addTextChangedListener(new dn.a0(V, 13));
textInputEditText6.setOnTouchListener(new View.OnTouchListener() {
@Override
public final boolean onTouch(View view2, MotionEvent motionEvent) {
int i13 = i10;
WorkDataIdx1Fragment workDataIdx1Fragment = this;
s4 s4Var = V;
switch (i13) {
case 0:
f40.k[] kVarArr = WorkDataIdx1Fragment.f9971o;
xu.b.y(s4Var, "$this_run");
xu.b.y(workDataIdx1Fragment, "this$0");
if (motionEvent.getAction() == 1) {
float rawX = motionEvent.getRawX();
TextInputEditText textInputEditText7 = s4Var.f21279z;
if (rawX >= textInputEditText7.getRight() - textInputEditText7.getCompoundDrawables()[2].getBounds().width()) {
androidx.fragment.app.f0 requireActivity2 = workDataIdx1Fragment.requireActivity();
xu.b.x(requireActivity2, "requireActivity(...)");
k1.w(requireActivity2, "Si eres auto empleado, jubilado o tienes negocio propio puedes ingresar el puesto o posición más reciente que hayas desempeñado.");
break;
}
}
break;
case 1:
f40.k[] kVarArr2 = WorkDataIdx1Fragment.f9971o;
xu.b.y(s4Var, "$this_run");
xu.b.y(workDataIdx1Fragment, "this$0");
if (motionEvent.getAction() == 1) {
float rawX2 = motionEvent.getRawX();
TextInputEditText textInputEditText8 = s4Var.f21270q;
if (rawX2 >= textInputEditText8.getRight() - textInputEditText8.getCompoundDrawables()[2].getBounds().width()) {
androidx.fragment.app.f0 requireActivity3 = workDataIdx1Fragment.requireActivity();
xu.b.x(requireActivity3, "requireActivity(...)");
k1.w(requireActivity3, "Si eres auto empleado o trabajas por cuenta propia puedes ingresar el nombre comercial, razón social o giro del negocio. Si eres jubilado o pensionado ingresa el nombre de tu último trabajo.");
break;
}
}
break;
default:
f40.k[] kVarArr3 = WorkDataIdx1Fragment.f9971o;
xu.b.y(s4Var, "$this_run");
xu.b.y(workDataIdx1Fragment, "this$0");
if (motionEvent.getAction() == 1) {
float rawX3 = motionEvent.getRawX();
TextInputEditText textInputEditText9 = s4Var.f21272s;
if (rawX3 >= textInputEditText9.getRight() - textInputEditText9.getCompoundDrawables()[2].getBounds().width()) {
androidx.fragment.app.f0 requireActivity4 = workDataIdx1Fragment.requireActivity();
xu.b.x(requireActivity4, "requireActivity(...)");
k1.w(requireActivity4, "Ingresa el monto redondeado al siguiente entero sin decimales ni caractéres especiales ($, puntos y comas).");
break;
}
}
break;
}
return true;
}
});
TextInputEditText textInputEditText7 = V.f21270q;
xu.b.v(textInputEditText7);
textInputEditText7.addTextChangedListener(new dn.a0(V, 11));
textInputEditText7.setOnTouchListener(new View.OnTouchListener() {
@Override
public final boolean onTouch(View view2, MotionEvent motionEvent) {
int i13 = i11;
WorkDataIdx1Fragment workDataIdx1Fragment = this;
s4 s4Var = V;
switch (i13) {
case 0:
f40.k[] kVarArr = WorkDataIdx1Fragment.f9971o;
xu.b.y(s4Var, "$this_run");
xu.b.y(workDataIdx1Fragment, "this$0");
if (motionEvent.getAction() == 1) {
float rawX = motionEvent.getRawX();
TextInputEditText textInputEditText72 = s4Var.f21279z;
if (rawX >= textInputEditText72.getRight() - textInputEditText72.getCompoundDrawables()[2].getBounds().width()) {
androidx.fragment.app.f0 requireActivity2 = workDataIdx1Fragment.requireActivity();
xu.b.x(requireActivity2, "requireActivity(...)");
k1.w(requireActivity2, "Si eres auto empleado, jubilado o tienes negocio propio puedes ingresar el puesto o posición más reciente que hayas desempeñado.");
break;
}
}
break;
case 1:
f40.k[] kVarArr2 = WorkDataIdx1Fragment.f9971o;
xu.b.y(s4Var, "$this_run");
xu.b.y(workDataIdx1Fragment, "this$0");
if (motionEvent.getAction() == 1) {
float rawX2 = motionEvent.getRawX();
TextInputEditText textInputEditText8 = s4Var.f21270q;
if (rawX2 >= textInputEditText8.getRight() - textInputEditText8.getCompoundDrawables()[2].getBounds().width()) {
androidx.fragment.app.f0 requireActivity3 = workDataIdx1Fragment.requireActivity();
xu.b.x(requireActivity3, "requireActivity(...)");
k1.w(requireActivity3, "Si eres auto empleado o trabajas por cuenta propia puedes ingresar el nombre comercial, razón social o giro del negocio. Si eres jubilado o pensionado ingresa el nombre de tu último trabajo.");
break;
}
}
break;
default:
f40.k[] kVarArr3 = WorkDataIdx1Fragment.f9971o;
xu.b.y(s4Var, "$this_run");
xu.b.y(workDataIdx1Fragment, "this$0");
if (motionEvent.getAction() == 1) {
float rawX3 = motionEvent.getRawX();
TextInputEditText textInputEditText9 = s4Var.f21272s;
if (rawX3 >= textInputEditText9.getRight() - textInputEditText9.getCompoundDrawables()[2].getBounds().width()) {
androidx.fragment.app.f0 requireActivity4 = workDataIdx1Fragment.requireActivity();
xu.b.x(requireActivity4, "requireActivity(...)");
k1.w(requireActivity4, "Ingresa el monto redondeado al siguiente entero sin decimales ni caractéres especiales ($, puntos y comas).");
break;
}
}
break;
}
return true;
}
});
TextInputEditText textInputEditText8 = V.f21272s;
xu.b.v(textInputEditText8);
textInputEditText8.addTextChangedListener(new dn.a0(V, 12));
textInputEditText8.setOnTouchListener(new View.OnTouchListener() {
@Override
public final boolean onTouch(View view2, MotionEvent motionEvent) {
int i13 = i12;
WorkDataIdx1Fragment workDataIdx1Fragment = this;
s4 s4Var = V;
switch (i13) {
case 0:
f40.k[] kVarArr = WorkDataIdx1Fragment.f9971o;
xu.b.y(s4Var, "$this_run");
xu.b.y(workDataIdx1Fragment, "this$0");
if (motionEvent.getAction() == 1) {
float rawX = motionEvent.getRawX();
TextInputEditText textInputEditText72 = s4Var.f21279z;
if (rawX >= textInputEditText72.getRight() - textInputEditText72.getCompoundDrawables()[2].getBounds().width()) {
androidx.fragment.app.f0 requireActivity2 = workDataIdx1Fragment.requireActivity();
xu.b.x(requireActivity2, "requireActivity(...)");
k1.w(requireActivity2, "Si eres auto empleado, jubilado o tienes negocio propio puedes ingresar el puesto o posición más reciente que hayas desempeñado.");
break;
}
}
break;
case 1:
f40.k[] kVarArr2 = WorkDataIdx1Fragment.f9971o;
xu.b.y(s4Var, "$this_run");
xu.b.y(workDataIdx1Fragment, "this$0");
if (motionEvent.getAction() == 1) {
float rawX2 = motionEvent.getRawX();
TextInputEditText textInputEditText82 = s4Var.f21270q;
if (rawX2 >= textInputEditText82.getRight() - textInputEditText82.getCompoundDrawables()[2].getBounds().width()) {
androidx.fragment.app.f0 requireActivity3 = workDataIdx1Fragment.requireActivity();
xu.b.x(requireActivity3, "requireActivity(...)");
k1.w(requireActivity3, "Si eres auto empleado o trabajas por cuenta propia puedes ingresar el nombre comercial, razón social o giro del negocio. Si eres jubilado o pensionado ingresa el nombre de tu último trabajo.");
break;
}
}
break;
default:
f40.k[] kVarArr3 = WorkDataIdx1Fragment.f9971o;
xu.b.y(s4Var, "$this_run");
xu.b.y(workDataIdx1Fragment, "this$0");
if (motionEvent.getAction() == 1) {
float rawX3 = motionEvent.getRawX();
TextInputEditText textInputEditText9 = s4Var.f21272s;
if (rawX3 >= textInputEditText9.getRight() - textInputEditText9.getCompoundDrawables()[2].getBounds().width()) {
androidx.fragment.app.f0 requireActivity4 = workDataIdx1Fragment.requireActivity();
xu.b.x(requireActivity4, "requireActivity(...)");
k1.w(requireActivity4, "Ingresa el monto redondeado al siguiente entero sin decimales ni caractéres especiales ($, puntos y comas).");
break;
}
}
break;
}
return true;
}
});
MaterialAutoCompleteTextView materialAutoCompleteTextView8 = V.B;
xu.b.x(materialAutoCompleteTextView8, "txtWorkType");
materialAutoCompleteTextView8.addTextChangedListener(new dn.a0(V, 2));
textInputEditText6.addTextChangedListener(new dn.a0(V, 3));
textInputEditText7.addTextChangedListener(new dn.a0(V, 4));
textInputEditText8.addTextChangedListener(new dn.a0(V, 5));
MaterialAutoCompleteTextView materialAutoCompleteTextView9 = V.f21273t;
xu.b.x(materialAutoCompleteTextView9, "txtIncomeChannel");
materialAutoCompleteTextView9.addTextChangedListener(new dn.a0(V, 6));
MaterialAutoCompleteTextView materialAutoCompleteTextView10 = V.f21275v;
xu.b.x(materialAutoCompleteTextView10, "txtIncomeFrequency");
materialAutoCompleteTextView10.addTextChangedListener(new dn.a0(V, 7));
MaterialAutoCompleteTextView materialAutoCompleteTextView11 = V.f21277x;
xu.b.x(materialAutoCompleteTextView11, "txtNextIncomeDate");
materialAutoCompleteTextView11.addTextChangedListener(new dn.a0(V, 8));
MaterialAutoCompleteTextView materialAutoCompleteTextView12 = V.A;
xu.b.x(materialAutoCompleteTextView12, "txtWorkTenure");
materialAutoCompleteTextView12.addTextChangedListener(new dn.a0(V, 9));
MaterialAutoCompleteTextView materialAutoCompleteTextView13 = V.f21274u;
xu.b.x(materialAutoCompleteTextView13, "txtIncomeDocType");
materialAutoCompleteTextView13.addTextChangedListener(new dn.a0(V, 10));
MaterialAutoCompleteTextView materialAutoCompleteTextView14 = V.f21271r;
xu.b.x(materialAutoCompleteTextView14, "txtEducationLevel");
materialAutoCompleteTextView14.addTextChangedListener(new dn.a0(V, 0));
TextInputEditText textInputEditText9 = V.f21278y;
xu.b.x(textInputEditText9, "txtOtherIncomeDocType");
textInputEditText9.addTextChangedListener(new dn.a0(V, 1));
V().f21254a.setOnClickListener(new View.OnClickListener(this) {
public final WorkDataIdx1Fragment f11107c;
{
this.f11107c = this;
}
@Override
public final void onClick(View view2) {
int i13 = i11;
int i14 = 0;
WorkDataIdx1Fragment workDataIdx1Fragment = this.f11107c;
switch (i13) {
case 0:
f40.k[] kVarArr = WorkDataIdx1Fragment.f9971o;
xu.b.y(workDataIdx1Fragment, "this$0");
workDataIdx1Fragment.X();
return;
case 1:
f40.k[] kVarArr2 = WorkDataIdx1Fragment.f9971o;
xu.b.y(workDataIdx1Fragment, "this$0");
s4 V2 = workDataIdx1Fragment.V();
MaterialAutoCompleteTextView materialAutoCompleteTextView82 = V2.f21271r;
xu.b.x(materialAutoCompleteTextView82, "txtEducationLevel");
TextInputLayout textInputLayout = V2.f21259f;
xu.b.x(textInputLayout, "tilEducationLevel");
boolean y10 = ch.k.y(materialAutoCompleteTextView82, textInputLayout, "Favor de seleccionar una nivel de educación.");
if (xu.b.n(workDataIdx1Fragment.W().L, "other")) {
TextInputEditText textInputEditText62 = V2.f21278y;
xu.b.x(textInputEditText62, "txtOtherIncomeDocType");
TextInputLayout textInputLayout2 = V2.f21266m;
xu.b.x(textInputLayout2, "tilOtherIncomeDocType");
if (!ch.k.t(textInputEditText62, textInputLayout2, "Favor de introducir el tipo de comprobante.")) {
y10 = false;
}
}
MaterialAutoCompleteTextView materialAutoCompleteTextView92 = V2.f21274u;
xu.b.x(materialAutoCompleteTextView92, "txtIncomeDocType");
TextInputLayout textInputLayout3 = V2.f21262i;
xu.b.x(textInputLayout3, "tilIncomeDocType");
if (!ch.k.y(materialAutoCompleteTextView92, textInputLayout3, "Favor de seleccionar un comprobante de ingresos.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView102 = V2.A;
xu.b.x(materialAutoCompleteTextView102, "txtWorkTenure");
TextInputLayout textInputLayout4 = V2.f21268o;
xu.b.x(textInputLayout4, "tilWorkTenure");
if (!ch.k.y(materialAutoCompleteTextView102, textInputLayout4, "Favor de seleccionar tu antigüedad laboral.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView112 = V2.f21277x;
xu.b.x(materialAutoCompleteTextView112, "txtNextIncomeDate");
TextInputLayout textInputLayout5 = V2.f21265l;
xu.b.x(textInputLayout5, "tilNextIncomeDate");
if (!ch.k.y(materialAutoCompleteTextView112, textInputLayout5, "Favor de seleccionar una fecha.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView122 = V2.f21275v;
xu.b.x(materialAutoCompleteTextView122, "txtIncomeFrequency");
TextInputLayout textInputLayout6 = V2.f21263j;
xu.b.x(textInputLayout6, "tilIncomeFrequency");
if (!ch.k.y(materialAutoCompleteTextView122, textInputLayout6, "Favor de seleccionar con que frecuencia recibes tu ingresos.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView132 = V2.f21273t;
xu.b.x(materialAutoCompleteTextView132, "txtIncomeChannel");
TextInputLayout textInputLayout7 = V2.f21261h;
xu.b.x(textInputLayout7, "tilIncomeChannel");
if (!ch.k.y(materialAutoCompleteTextView132, textInputLayout7, "Favor de seleccionar cómo recibes tus ingresos.")) {
y10 = false;
}
TextInputEditText textInputEditText72 = V2.f21272s;
xu.b.x(textInputEditText72, "txtIncome");
TextInputLayout textInputLayout8 = V2.f21260g;
xu.b.x(textInputLayout8, "tilIncome");
if (!ch.k.t(textInputEditText72, textInputLayout8, "Favor de ingresar un monto válido.")) {
y10 = false;
}
String valueOf = String.valueOf(textInputEditText72.getText());
if (h40.q.R(valueOf) || Float.parseFloat(valueOf) <= 350.0f) {
textInputLayout8.setError("Verifica el monto de tu ingreso.");
z50.a.H(textInputEditText72);
y10 = false;
}
TextInputEditText textInputEditText82 = V2.f21270q;
xu.b.x(textInputEditText82, "txtCompanyName");
TextInputLayout textInputLayout9 = V2.f21258e;
xu.b.x(textInputLayout9, "tilCompanyName");
if (!ch.k.t(textInputEditText82, textInputLayout9, "Favor de ingresar un nombre de empresa válido.")) {
y10 = false;
}
TextInputEditText textInputEditText92 = V2.f21279z;
xu.b.x(textInputEditText92, "txtWorkActivity");
TextInputLayout textInputLayout10 = V2.f21267n;
xu.b.x(textInputLayout10, "tilWorkActivity");
if (!ch.k.t(textInputEditText92, textInputLayout10, "Favor de ingresar un puesto válido.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView142 = V2.B;
xu.b.x(materialAutoCompleteTextView142, "txtWorkType");
TextInputLayout textInputLayout11 = V2.f21269p;
xu.b.x(textInputLayout11, "tilWorkType");
if (ch.k.y(materialAutoCompleteTextView142, textInputLayout11, "Favor de seleccionar un tipo de actividad.") && y10) {
androidx.fragment.app.f0 requireActivity2 = workDataIdx1Fragment.requireActivity();
xu.b.x(requireActivity2, "requireActivity(...)");
Editable text = workDataIdx1Fragment.V().f21279z.getText();
Editable text2 = workDataIdx1Fragment.V().f21270q.getText();
String valueOf2 = String.valueOf(workDataIdx1Fragment.V().f21276w.getText()).length() == 0 ? "N/A" : String.valueOf(workDataIdx1Fragment.V().f21276w.getText());
k1.u(requireActivity2, "Confirma tu información", "Puesto: " + ((Object) text) + " \nEmpresa: " + ((Object) text2) + " \nEmail: " + valueOf2 + "\nNivel educativo: " + ((Object) workDataIdx1Fragment.V().f21271r.getText()), "Confirmar", "Corregir", new y(workDataIdx1Fragment, i14));
return;
}
return;
default:
f40.k[] kVarArr3 = WorkDataIdx1Fragment.f9971o;
xu.b.y(workDataIdx1Fragment, "this$0");
ul.h hVar = workDataIdx1Fragment.f9974n;
if (hVar == null) {
xu.b.r0("contactSupport");
throw null;
}
Context requireContext = workDataIdx1Fragment.requireContext();
xu.b.x(requireContext, "requireContext(...)");
hVar.a(requireContext, "work-info.view", false);
return;
}
}
});
V().f21255b.setOnClickListener(new View.OnClickListener(this) {
public final WorkDataIdx1Fragment f11107c;
{
this.f11107c = this;
}
@Override
public final void onClick(View view2) {
int i13 = i12;
int i14 = 0;
WorkDataIdx1Fragment workDataIdx1Fragment = this.f11107c;
switch (i13) {
case 0:
f40.k[] kVarArr = WorkDataIdx1Fragment.f9971o;
xu.b.y(workDataIdx1Fragment, "this$0");
workDataIdx1Fragment.X();
return;
case 1:
f40.k[] kVarArr2 = WorkDataIdx1Fragment.f9971o;
xu.b.y(workDataIdx1Fragment, "this$0");
s4 V2 = workDataIdx1Fragment.V();
MaterialAutoCompleteTextView materialAutoCompleteTextView82 = V2.f21271r;
xu.b.x(materialAutoCompleteTextView82, "txtEducationLevel");
TextInputLayout textInputLayout = V2.f21259f;
xu.b.x(textInputLayout, "tilEducationLevel");
boolean y10 = ch.k.y(materialAutoCompleteTextView82, textInputLayout, "Favor de seleccionar una nivel de educación.");
if (xu.b.n(workDataIdx1Fragment.W().L, "other")) {
TextInputEditText textInputEditText62 = V2.f21278y;
xu.b.x(textInputEditText62, "txtOtherIncomeDocType");
TextInputLayout textInputLayout2 = V2.f21266m;
xu.b.x(textInputLayout2, "tilOtherIncomeDocType");
if (!ch.k.t(textInputEditText62, textInputLayout2, "Favor de introducir el tipo de comprobante.")) {
y10 = false;
}
}
MaterialAutoCompleteTextView materialAutoCompleteTextView92 = V2.f21274u;
xu.b.x(materialAutoCompleteTextView92, "txtIncomeDocType");
TextInputLayout textInputLayout3 = V2.f21262i;
xu.b.x(textInputLayout3, "tilIncomeDocType");
if (!ch.k.y(materialAutoCompleteTextView92, textInputLayout3, "Favor de seleccionar un comprobante de ingresos.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView102 = V2.A;
xu.b.x(materialAutoCompleteTextView102, "txtWorkTenure");
TextInputLayout textInputLayout4 = V2.f21268o;
xu.b.x(textInputLayout4, "tilWorkTenure");
if (!ch.k.y(materialAutoCompleteTextView102, textInputLayout4, "Favor de seleccionar tu antigüedad laboral.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView112 = V2.f21277x;
xu.b.x(materialAutoCompleteTextView112, "txtNextIncomeDate");
TextInputLayout textInputLayout5 = V2.f21265l;
xu.b.x(textInputLayout5, "tilNextIncomeDate");
if (!ch.k.y(materialAutoCompleteTextView112, textInputLayout5, "Favor de seleccionar una fecha.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView122 = V2.f21275v;
xu.b.x(materialAutoCompleteTextView122, "txtIncomeFrequency");
TextInputLayout textInputLayout6 = V2.f21263j;
xu.b.x(textInputLayout6, "tilIncomeFrequency");
if (!ch.k.y(materialAutoCompleteTextView122, textInputLayout6, "Favor de seleccionar con que frecuencia recibes tu ingresos.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView132 = V2.f21273t;
xu.b.x(materialAutoCompleteTextView132, "txtIncomeChannel");
TextInputLayout textInputLayout7 = V2.f21261h;
xu.b.x(textInputLayout7, "tilIncomeChannel");
if (!ch.k.y(materialAutoCompleteTextView132, textInputLayout7, "Favor de seleccionar cómo recibes tus ingresos.")) {
y10 = false;
}
TextInputEditText textInputEditText72 = V2.f21272s;
xu.b.x(textInputEditText72, "txtIncome");
TextInputLayout textInputLayout8 = V2.f21260g;
xu.b.x(textInputLayout8, "tilIncome");
if (!ch.k.t(textInputEditText72, textInputLayout8, "Favor de ingresar un monto válido.")) {
y10 = false;
}
String valueOf = String.valueOf(textInputEditText72.getText());
if (h40.q.R(valueOf) || Float.parseFloat(valueOf) <= 350.0f) {
textInputLayout8.setError("Verifica el monto de tu ingreso.");
z50.a.H(textInputEditText72);
y10 = false;
}
TextInputEditText textInputEditText82 = V2.f21270q;
xu.b.x(textInputEditText82, "txtCompanyName");
TextInputLayout textInputLayout9 = V2.f21258e;
xu.b.x(textInputLayout9, "tilCompanyName");
if (!ch.k.t(textInputEditText82, textInputLayout9, "Favor de ingresar un nombre de empresa válido.")) {
y10 = false;
}
TextInputEditText textInputEditText92 = V2.f21279z;
xu.b.x(textInputEditText92, "txtWorkActivity");
TextInputLayout textInputLayout10 = V2.f21267n;
xu.b.x(textInputLayout10, "tilWorkActivity");
if (!ch.k.t(textInputEditText92, textInputLayout10, "Favor de ingresar un puesto válido.")) {
y10 = false;
}
MaterialAutoCompleteTextView materialAutoCompleteTextView142 = V2.B;
xu.b.x(materialAutoCompleteTextView142, "txtWorkType");
TextInputLayout textInputLayout11 = V2.f21269p;
xu.b.x(textInputLayout11, "tilWorkType");
if (ch.k.y(materialAutoCompleteTextView142, textInputLayout11, "Favor de seleccionar un tipo de actividad.") && y10) {
androidx.fragment.app.f0 requireActivity2 = workDataIdx1Fragment.requireActivity();
xu.b.x(requireActivity2, "requireActivity(...)");
Editable text = workDataIdx1Fragment.V().f21279z.getText();
Editable text2 = workDataIdx1Fragment.V().f21270q.getText();
String valueOf2 = String.valueOf(workDataIdx1Fragment.V().f21276w.getText()).length() == 0 ? "N/A" : String.valueOf(workDataIdx1Fragment.V().f21276w.getText());
k1.u(requireActivity2, "Confirma tu información", "Puesto: " + ((Object) text) + " \nEmpresa: " + ((Object) text2) + " \nEmail: " + valueOf2 + "\nNivel educativo: " + ((Object) workDataIdx1Fragment.V().f21271r.getText()), "Confirmar", "Corregir", new y(workDataIdx1Fragment, i14));
return;
}
return;
default:
f40.k[] kVarArr3 = WorkDataIdx1Fragment.f9971o;
xu.b.y(workDataIdx1Fragment, "this$0");
ul.h hVar = workDataIdx1Fragment.f9974n;
if (hVar == null) {
xu.b.r0("contactSupport");
throw null;
}
Context requireContext = workDataIdx1Fragment.requireContext();
xu.b.x(requireContext, "requireContext(...)");
hVar.a(requireContext, "work-info.view", false);
return;
}
}
});
}
}