导航菜单

页面标题

页面副标题

Baubap v3.9.7 - WorkHoursIdx1Fragment.java 源代码

正在查看: Baubap v3.9.7 应用的 WorkHoursIdx1Fragment.java JAVA 源代码文件

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


package com.baubap.presentation.request.loan.idx1;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.CompoundButton;
import android.widget.TextView;
import bn.m;
import cn.z;
import com.adjust.sdk.Adjust;
import com.adjust.sdk.AdjustEvent;
import com.baubap.presentation.request.loan.idx1.WorkHoursIdx1Fragment;
import com.baubap.presentation.request.work.WorkHoursViewModel;
import com.google.android.material.materialswitch.MaterialSwitch;
import com.google.android.material.textfield.MaterialAutoCompleteTextView;
import com.google.android.material.textfield.TextInputLayout;
import dn.f0;
import dn.g0;
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.t4;
import mn.b1;
import mo.j;
import mo.o;
import ny.k1;
import om.n0;
import se.i0;
import sm.p;
import ul.h;

public final class WorkHoursIdx1Fragment extends z {

    public static final k[] f9975o;

    public final j f9976l;

    public final l1 f9977m;

    public h f9978n;

    static {
        q qVar = new q(WorkHoursIdx1Fragment.class, "binding", "getBinding()Lcom/baubap/databinding/RequestWorkHoursIdx1FragmentBinding;", 0);
        y.a.getClass();
        f9975o = new k[]{qVar};
    }

    public WorkHoursIdx1Fragment() {
        super(2131558862, 7);
        this.f9976l = k1.O(this, f0.f11061b);
        f e02 = b.e0(g.c, new p(new tm.h(this, 21), 18));
        this.f9977m = f40.q.K(this, y.a(WorkHoursViewModel.class), new i(e02, 16), new lm.j(e02, 16), new lm.h(this, e02, 16));
    }

    public static void W(MaterialSwitch materialSwitch, final TextInputLayout textInputLayout, final TextInputLayout textInputLayout2, final MaterialAutoCompleteTextView materialAutoCompleteTextView, final MaterialAutoCompleteTextView materialAutoCompleteTextView2) {
        materialSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public final void onCheckedChanged(CompoundButton compoundButton, boolean z10) {
                f40.k[] kVarArr = WorkHoursIdx1Fragment.f9975o;
                TextInputLayout textInputLayout3 = textInputLayout;
                xu.b.y(textInputLayout3, "$txtStart");
                TextInputLayout textInputLayout4 = textInputLayout2;
                xu.b.y(textInputLayout4, "$txtEnd");
                MaterialAutoCompleteTextView materialAutoCompleteTextView3 = materialAutoCompleteTextView;
                xu.b.y(materialAutoCompleteTextView3, "$txtInputStart");
                MaterialAutoCompleteTextView materialAutoCompleteTextView4 = materialAutoCompleteTextView2;
                xu.b.y(materialAutoCompleteTextView4, "$txtInputEnd");
                int i10 = z10 ? 0 : 8;
                textInputLayout3.setVisibility(i10);
                textInputLayout4.setVisibility(i10);
                if (z10) {
                    return;
                }
                materialAutoCompleteTextView3.setText("");
                materialAutoCompleteTextView4.setText("");
            }
        });
    }

    public final t4 V() {
        return (t4) this.f9976l.a(this, f9975o[0]);
    }

    @Override
    public final m m() {
        return (WorkHoursViewModel) this.f9977m.getValue();
    }

    @Override
    public final void onViewCreated(View view, Bundle bundle) {
        xu.b.y(view, "view");
        Adjust.trackEvent(new AdjustEvent("w1w9q4"));
        androidx.fragment.app.f0 requireActivity = requireActivity();
        xu.b.x(requireActivity, "requireActivity(...)");
        xu.b.D0(requireActivity, i0.f28605b);
        l1 l1Var = this.f9977m;
        mr.b.N(this, (WorkHoursViewModel) l1Var.getValue());
        ((WorkHoursViewModel) l1Var.getValue()).G.e(getViewLifecycleOwner(), new n0(new g0(this, 0), 11));
        ((WorkHoursViewModel) l1Var.getValue()).f31001d.e(getViewLifecycleOwner(), new n0(new g0(this, 1), 11));
        final t4 V = V();
        TextView textView = V.f21298c;
        xu.b.x(textView, "lblTitle");
        o.d(this, textView, "https://media.baubap.com/android/loan-request/ic_job_time.png", 50.0f);
        MaterialSwitch materialSwitch = V.f21300e;
        xu.b.x(materialSwitch, "swtMonday");
        TextInputLayout textInputLayout = V.f21309n;
        xu.b.x(textInputLayout, "tilMondayStart");
        TextInputLayout textInputLayout2 = V.f21308m;
        xu.b.x(textInputLayout2, "tilMondayEnd");
        MaterialAutoCompleteTextView materialAutoCompleteTextView = V.B;
        xu.b.x(materialAutoCompleteTextView, "txtMondayStart");
        MaterialAutoCompleteTextView materialAutoCompleteTextView2 = V.A;
        xu.b.x(materialAutoCompleteTextView2, "txtMondayEnd");
        W(materialSwitch, textInputLayout, textInputLayout2, materialAutoCompleteTextView, materialAutoCompleteTextView2);
        MaterialSwitch materialSwitch2 = V.f21304i;
        xu.b.x(materialSwitch2, "swtTuesday");
        TextInputLayout textInputLayout3 = V.f21317v;
        xu.b.x(textInputLayout3, "tilTuesdayStart");
        TextInputLayout textInputLayout4 = V.f21316u;
        xu.b.x(textInputLayout4, "tilTuesdayEnd");
        MaterialAutoCompleteTextView materialAutoCompleteTextView3 = V.J;
        xu.b.x(materialAutoCompleteTextView3, "txtTuesdayStart");
        MaterialAutoCompleteTextView materialAutoCompleteTextView4 = V.I;
        xu.b.x(materialAutoCompleteTextView4, "txtTuesdayEnd");
        W(materialSwitch2, textInputLayout3, textInputLayout4, materialAutoCompleteTextView3, materialAutoCompleteTextView4);
        MaterialSwitch materialSwitch3 = V.f21305j;
        xu.b.x(materialSwitch3, "swtWednesday");
        TextInputLayout textInputLayout5 = V.f21319x;
        xu.b.x(textInputLayout5, "tilWednesdayStart");
        TextInputLayout textInputLayout6 = V.f21318w;
        xu.b.x(textInputLayout6, "tilWednesdayEnd");
        MaterialAutoCompleteTextView materialAutoCompleteTextView5 = V.L;
        xu.b.x(materialAutoCompleteTextView5, "txtWednesdayStart");
        MaterialAutoCompleteTextView materialAutoCompleteTextView6 = V.K;
        xu.b.x(materialAutoCompleteTextView6, "txtWednesdayEnd");
        W(materialSwitch3, textInputLayout5, textInputLayout6, materialAutoCompleteTextView5, materialAutoCompleteTextView6);
        MaterialSwitch materialSwitch4 = V.f21303h;
        xu.b.x(materialSwitch4, "swtThursday");
        TextInputLayout textInputLayout7 = V.f21315t;
        xu.b.x(textInputLayout7, "tilThursdayStart");
        TextInputLayout textInputLayout8 = V.f21314s;
        xu.b.x(textInputLayout8, "tilThursdayEnd");
        MaterialAutoCompleteTextView materialAutoCompleteTextView7 = V.H;
        xu.b.x(materialAutoCompleteTextView7, "txtThursdayStart");
        MaterialAutoCompleteTextView materialAutoCompleteTextView8 = V.G;
        xu.b.x(materialAutoCompleteTextView8, "txtThursdayEnd");
        W(materialSwitch4, textInputLayout7, textInputLayout8, materialAutoCompleteTextView7, materialAutoCompleteTextView8);
        MaterialSwitch materialSwitch5 = V.f21299d;
        xu.b.x(materialSwitch5, "swtFriday");
        TextInputLayout textInputLayout9 = V.f21307l;
        xu.b.x(textInputLayout9, "tilFridayStart");
        TextInputLayout textInputLayout10 = V.f21306k;
        xu.b.x(textInputLayout10, "tilFridayEnd");
        MaterialAutoCompleteTextView materialAutoCompleteTextView9 = V.f21321z;
        xu.b.x(materialAutoCompleteTextView9, "txtFridayStart");
        MaterialAutoCompleteTextView materialAutoCompleteTextView10 = V.f21320y;
        xu.b.x(materialAutoCompleteTextView10, "txtFridayEnd");
        W(materialSwitch5, textInputLayout9, textInputLayout10, materialAutoCompleteTextView9, materialAutoCompleteTextView10);
        MaterialSwitch materialSwitch6 = V.f21301f;
        xu.b.x(materialSwitch6, "swtSaturday");
        TextInputLayout textInputLayout11 = V.f21311p;
        xu.b.x(textInputLayout11, "tilSaturdayStart");
        TextInputLayout textInputLayout12 = V.f21310o;
        xu.b.x(textInputLayout12, "tilSaturdayEnd");
        MaterialAutoCompleteTextView materialAutoCompleteTextView11 = V.D;
        xu.b.x(materialAutoCompleteTextView11, "txtSaturdayStart");
        MaterialAutoCompleteTextView materialAutoCompleteTextView12 = V.C;
        xu.b.x(materialAutoCompleteTextView12, "txtSaturdayEnd");
        W(materialSwitch6, textInputLayout11, textInputLayout12, materialAutoCompleteTextView11, materialAutoCompleteTextView12);
        MaterialSwitch materialSwitch7 = V.f21302g;
        xu.b.x(materialSwitch7, "swtSunday");
        TextInputLayout textInputLayout13 = V.f21313r;
        xu.b.x(textInputLayout13, "tilSundayStart");
        TextInputLayout textInputLayout14 = V.f21312q;
        xu.b.x(textInputLayout14, "tilSundayEnd");
        MaterialAutoCompleteTextView materialAutoCompleteTextView13 = V.F;
        xu.b.x(materialAutoCompleteTextView13, "txtSundayStart");
        MaterialAutoCompleteTextView materialAutoCompleteTextView14 = V.E;
        xu.b.x(materialAutoCompleteTextView14, "txtSundayEnd");
        W(materialSwitch7, textInputLayout13, textInputLayout14, materialAutoCompleteTextView13, materialAutoCompleteTextView14);
        o(materialAutoCompleteTextView, "", 2130903073);
        final int i10 = 0;
        materialAutoCompleteTextView.setOnItemClickListener(new AdapterView.OnItemClickListener(this) {

            public final WorkHoursIdx1Fragment f11049c;

            {
                this.f11049c = this;
            }

            @Override
            public final void onItemClick(AdapterView adapterView, View view2, int i11, long j10) {
                int i12 = i10;
                t4 t4Var = V;
                WorkHoursIdx1Fragment workHoursIdx1Fragment = this.f11049c;
                switch (i12) {
                    case 0:
                        f40.k[] kVarArr = WorkHoursIdx1Fragment.f9975o;
                        xu.b.y(workHoursIdx1Fragment, "this$0");
                        xu.b.y(t4Var, "$this_run");
                        boolean isChecked = workHoursIdx1Fragment.V().f21304i.isChecked();
                        MaterialAutoCompleteTextView materialAutoCompleteTextView15 = t4Var.B;
                        if (isChecked) {
                            String obj = materialAutoCompleteTextView15.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView16 = t4Var.J;
                            materialAutoCompleteTextView16.setText(obj);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView16, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21305j.isChecked()) {
                            String obj2 = materialAutoCompleteTextView15.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView17 = t4Var.L;
                            materialAutoCompleteTextView17.setText(obj2);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView17, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21303h.isChecked()) {
                            String obj3 = materialAutoCompleteTextView15.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView18 = t4Var.H;
                            materialAutoCompleteTextView18.setText(obj3);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView18, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21299d.isChecked()) {
                            String obj4 = materialAutoCompleteTextView15.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView19 = t4Var.f21321z;
                            materialAutoCompleteTextView19.setText(obj4);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView19, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21301f.isChecked()) {
                            String obj5 = materialAutoCompleteTextView15.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView20 = t4Var.D;
                            materialAutoCompleteTextView20.setText(obj5);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView20, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21302g.isChecked()) {
                            String obj6 = materialAutoCompleteTextView15.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView21 = t4Var.F;
                            materialAutoCompleteTextView21.setText(obj6);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView21, "", 2130903073);
                            break;
                        }
                        break;
                    default:
                        f40.k[] kVarArr2 = WorkHoursIdx1Fragment.f9975o;
                        xu.b.y(workHoursIdx1Fragment, "this$0");
                        xu.b.y(t4Var, "$this_run");
                        boolean isChecked2 = workHoursIdx1Fragment.V().f21304i.isChecked();
                        MaterialAutoCompleteTextView materialAutoCompleteTextView22 = t4Var.A;
                        if (isChecked2) {
                            String obj7 = materialAutoCompleteTextView22.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView23 = t4Var.I;
                            materialAutoCompleteTextView23.setText(obj7);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView23, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21305j.isChecked()) {
                            String obj8 = materialAutoCompleteTextView22.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView24 = t4Var.K;
                            materialAutoCompleteTextView24.setText(obj8);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView24, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21303h.isChecked()) {
                            String obj9 = materialAutoCompleteTextView22.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView25 = t4Var.G;
                            materialAutoCompleteTextView25.setText(obj9);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView25, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21299d.isChecked()) {
                            String obj10 = materialAutoCompleteTextView22.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView26 = t4Var.f21320y;
                            materialAutoCompleteTextView26.setText(obj10);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView26, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21301f.isChecked()) {
                            String obj11 = materialAutoCompleteTextView22.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView27 = t4Var.C;
                            materialAutoCompleteTextView27.setText(obj11);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView27, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21302g.isChecked()) {
                            String obj12 = materialAutoCompleteTextView22.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView28 = t4Var.E;
                            materialAutoCompleteTextView28.setText(obj12);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView28, "", 2130903073);
                            break;
                        }
                        break;
                }
            }
        });
        o(materialAutoCompleteTextView2, "", 2130903073);
        final int i11 = 1;
        materialAutoCompleteTextView2.setOnItemClickListener(new AdapterView.OnItemClickListener(this) {

            public final WorkHoursIdx1Fragment f11049c;

            {
                this.f11049c = this;
            }

            @Override
            public final void onItemClick(AdapterView adapterView, View view2, int i112, long j10) {
                int i12 = i11;
                t4 t4Var = V;
                WorkHoursIdx1Fragment workHoursIdx1Fragment = this.f11049c;
                switch (i12) {
                    case 0:
                        f40.k[] kVarArr = WorkHoursIdx1Fragment.f9975o;
                        xu.b.y(workHoursIdx1Fragment, "this$0");
                        xu.b.y(t4Var, "$this_run");
                        boolean isChecked = workHoursIdx1Fragment.V().f21304i.isChecked();
                        MaterialAutoCompleteTextView materialAutoCompleteTextView15 = t4Var.B;
                        if (isChecked) {
                            String obj = materialAutoCompleteTextView15.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView16 = t4Var.J;
                            materialAutoCompleteTextView16.setText(obj);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView16, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21305j.isChecked()) {
                            String obj2 = materialAutoCompleteTextView15.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView17 = t4Var.L;
                            materialAutoCompleteTextView17.setText(obj2);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView17, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21303h.isChecked()) {
                            String obj3 = materialAutoCompleteTextView15.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView18 = t4Var.H;
                            materialAutoCompleteTextView18.setText(obj3);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView18, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21299d.isChecked()) {
                            String obj4 = materialAutoCompleteTextView15.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView19 = t4Var.f21321z;
                            materialAutoCompleteTextView19.setText(obj4);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView19, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21301f.isChecked()) {
                            String obj5 = materialAutoCompleteTextView15.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView20 = t4Var.D;
                            materialAutoCompleteTextView20.setText(obj5);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView20, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21302g.isChecked()) {
                            String obj6 = materialAutoCompleteTextView15.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView21 = t4Var.F;
                            materialAutoCompleteTextView21.setText(obj6);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView21, "", 2130903073);
                            break;
                        }
                        break;
                    default:
                        f40.k[] kVarArr2 = WorkHoursIdx1Fragment.f9975o;
                        xu.b.y(workHoursIdx1Fragment, "this$0");
                        xu.b.y(t4Var, "$this_run");
                        boolean isChecked2 = workHoursIdx1Fragment.V().f21304i.isChecked();
                        MaterialAutoCompleteTextView materialAutoCompleteTextView22 = t4Var.A;
                        if (isChecked2) {
                            String obj7 = materialAutoCompleteTextView22.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView23 = t4Var.I;
                            materialAutoCompleteTextView23.setText(obj7);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView23, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21305j.isChecked()) {
                            String obj8 = materialAutoCompleteTextView22.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView24 = t4Var.K;
                            materialAutoCompleteTextView24.setText(obj8);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView24, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21303h.isChecked()) {
                            String obj9 = materialAutoCompleteTextView22.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView25 = t4Var.G;
                            materialAutoCompleteTextView25.setText(obj9);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView25, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21299d.isChecked()) {
                            String obj10 = materialAutoCompleteTextView22.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView26 = t4Var.f21320y;
                            materialAutoCompleteTextView26.setText(obj10);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView26, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21301f.isChecked()) {
                            String obj11 = materialAutoCompleteTextView22.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView27 = t4Var.C;
                            materialAutoCompleteTextView27.setText(obj11);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView27, "", 2130903073);
                        }
                        if (workHoursIdx1Fragment.V().f21302g.isChecked()) {
                            String obj12 = materialAutoCompleteTextView22.getText().toString();
                            MaterialAutoCompleteTextView materialAutoCompleteTextView28 = t4Var.E;
                            materialAutoCompleteTextView28.setText(obj12);
                            workHoursIdx1Fragment.o(materialAutoCompleteTextView28, "", 2130903073);
                            break;
                        }
                        break;
                }
            }
        });
        o(materialAutoCompleteTextView3, "", 2130903073);
        o(materialAutoCompleteTextView4, "", 2130903073);
        o(materialAutoCompleteTextView5, "", 2130903073);
        o(materialAutoCompleteTextView6, "", 2130903073);
        o(materialAutoCompleteTextView7, "", 2130903073);
        o(materialAutoCompleteTextView8, "", 2130903073);
        o(materialAutoCompleteTextView9, "", 2130903073);
        o(materialAutoCompleteTextView10, "", 2130903073);
        o(materialAutoCompleteTextView11, "", 2130903073);
        o(materialAutoCompleteTextView12, "", 2130903073);
        o(materialAutoCompleteTextView13, "", 2130903073);
        o(materialAutoCompleteTextView14, "", 2130903073);
        final int i12 = 0;
        V.f21296a.setOnClickListener(new View.OnClickListener(this) {

            public final WorkHoursIdx1Fragment f11054c;

            {
                this.f11054c = this;
            }

            @Override
            public final void onClick(View view2) {
                int i13 = i12;
                boolean z10 = false;
                WorkHoursIdx1Fragment workHoursIdx1Fragment = this.f11054c;
                switch (i13) {
                    case 0:
                        f40.k[] kVarArr = WorkHoursIdx1Fragment.f9975o;
                        xu.b.y(workHoursIdx1Fragment, "this$0");
                        t4 V2 = workHoursIdx1Fragment.V();
                        boolean z11 = (V2.f21300e.isChecked() && (xu.b.n(V2.B.getText().toString(), "") || xu.b.n(V2.A.getText().toString(), ""))) ? false : true;
                        if (V2.f21304i.isChecked() && (xu.b.n(V2.J.getText().toString(), "") || xu.b.n(V2.I.getText().toString(), ""))) {
                            z11 = false;
                        }
                        if (V2.f21305j.isChecked() && (xu.b.n(V2.L.getText().toString(), "") || xu.b.n(V2.K.getText().toString(), ""))) {
                            z11 = false;
                        }
                        if (V2.f21303h.isChecked() && (xu.b.n(V2.H.getText().toString(), "") || xu.b.n(V2.G.getText().toString(), ""))) {
                            z11 = false;
                        }
                        if (V2.f21299d.isChecked() && (xu.b.n(V2.f21321z.getText().toString(), "") || xu.b.n(V2.f21320y.getText().toString(), ""))) {
                            z11 = false;
                        }
                        if (V2.f21301f.isChecked() && (xu.b.n(V2.D.getText().toString(), "") || xu.b.n(V2.C.getText().toString(), ""))) {
                            z11 = false;
                        }
                        if (!V2.f21302g.isChecked() || (!xu.b.n(V2.F.getText().toString(), "") && !xu.b.n(V2.E.getText().toString(), ""))) {
                            z10 = z11;
                        }
                        if (!z10) {
                            androidx.fragment.app.f0 requireActivity2 = workHoursIdx1Fragment.requireActivity();
                            xu.b.x(requireActivity2, "requireActivity(...)");
                            k1.w(requireActivity2, "Asegúrate de seleccionar un horario para cada día que trabajas.");
                        }
                        if (z10) {
                            t4 V3 = workHoursIdx1Fragment.V();
                            WorkHoursViewModel workHoursViewModel = (WorkHoursViewModel) workHoursIdx1Fragment.f9977m.getValue();
                            m30.n nVar = new m30.n(V3.f21300e, V3.B.getText().toString(), V3.A.getText().toString());
                            MaterialAutoCompleteTextView materialAutoCompleteTextView15 = V3.J;
                            m30.n nVar2 = new m30.n(V3.f21304i, materialAutoCompleteTextView15.getText().toString(), V3.I.getText().toString());
                            m30.n nVar3 = new m30.n(V3.f21305j, V3.L.getText().toString(), V3.K.getText().toString());
                            m30.n nVar4 = new m30.n(V3.f21303h, materialAutoCompleteTextView15.getText().toString(), V3.G.getText().toString());
                            m30.n nVar5 = new m30.n(V3.f21299d, V3.f21321z.getText().toString(), V3.f21320y.getText().toString());
                            m30.n nVar6 = new m30.n(V3.f21301f, V3.D.getText().toString(), V3.C.getText().toString());
                            m30.n nVar7 = new m30.n(V3.f21302g, V3.F.getText().toString(), V3.E.getText().toString());
                            workHoursViewModel.getClass();
                            tx.b.X(f1.Q(workHoursViewModel), (q30.j) null, (m40.h0) null, new b1(workHoursViewModel, nVar, nVar2, nVar3, nVar4, nVar5, nVar6, nVar7, null), 3);
                            return;
                        }
                        return;
                    default:
                        f40.k[] kVarArr2 = WorkHoursIdx1Fragment.f9975o;
                        xu.b.y(workHoursIdx1Fragment, "this$0");
                        ul.h hVar = workHoursIdx1Fragment.f9978n;
                        if (hVar == null) {
                            xu.b.r0("contactSupport");
                            throw null;
                        }
                        Context requireContext = workHoursIdx1Fragment.requireContext();
                        xu.b.x(requireContext, "requireContext(...)");
                        hVar.a(requireContext, "work-hours.view", false);
                        return;
                }
            }
        });
        final int i13 = 1;
        V.f21297b.setOnClickListener(new View.OnClickListener(this) {

            public final WorkHoursIdx1Fragment f11054c;

            {
                this.f11054c = this;
            }

            @Override
            public final void onClick(View view2) {
                int i132 = i13;
                boolean z10 = false;
                WorkHoursIdx1Fragment workHoursIdx1Fragment = this.f11054c;
                switch (i132) {
                    case 0:
                        f40.k[] kVarArr = WorkHoursIdx1Fragment.f9975o;
                        xu.b.y(workHoursIdx1Fragment, "this$0");
                        t4 V2 = workHoursIdx1Fragment.V();
                        boolean z11 = (V2.f21300e.isChecked() && (xu.b.n(V2.B.getText().toString(), "") || xu.b.n(V2.A.getText().toString(), ""))) ? false : true;
                        if (V2.f21304i.isChecked() && (xu.b.n(V2.J.getText().toString(), "") || xu.b.n(V2.I.getText().toString(), ""))) {
                            z11 = false;
                        }
                        if (V2.f21305j.isChecked() && (xu.b.n(V2.L.getText().toString(), "") || xu.b.n(V2.K.getText().toString(), ""))) {
                            z11 = false;
                        }
                        if (V2.f21303h.isChecked() && (xu.b.n(V2.H.getText().toString(), "") || xu.b.n(V2.G.getText().toString(), ""))) {
                            z11 = false;
                        }
                        if (V2.f21299d.isChecked() && (xu.b.n(V2.f21321z.getText().toString(), "") || xu.b.n(V2.f21320y.getText().toString(), ""))) {
                            z11 = false;
                        }
                        if (V2.f21301f.isChecked() && (xu.b.n(V2.D.getText().toString(), "") || xu.b.n(V2.C.getText().toString(), ""))) {
                            z11 = false;
                        }
                        if (!V2.f21302g.isChecked() || (!xu.b.n(V2.F.getText().toString(), "") && !xu.b.n(V2.E.getText().toString(), ""))) {
                            z10 = z11;
                        }
                        if (!z10) {
                            androidx.fragment.app.f0 requireActivity2 = workHoursIdx1Fragment.requireActivity();
                            xu.b.x(requireActivity2, "requireActivity(...)");
                            k1.w(requireActivity2, "Asegúrate de seleccionar un horario para cada día que trabajas.");
                        }
                        if (z10) {
                            t4 V3 = workHoursIdx1Fragment.V();
                            WorkHoursViewModel workHoursViewModel = (WorkHoursViewModel) workHoursIdx1Fragment.f9977m.getValue();
                            m30.n nVar = new m30.n(V3.f21300e, V3.B.getText().toString(), V3.A.getText().toString());
                            MaterialAutoCompleteTextView materialAutoCompleteTextView15 = V3.J;
                            m30.n nVar2 = new m30.n(V3.f21304i, materialAutoCompleteTextView15.getText().toString(), V3.I.getText().toString());
                            m30.n nVar3 = new m30.n(V3.f21305j, V3.L.getText().toString(), V3.K.getText().toString());
                            m30.n nVar4 = new m30.n(V3.f21303h, materialAutoCompleteTextView15.getText().toString(), V3.G.getText().toString());
                            m30.n nVar5 = new m30.n(V3.f21299d, V3.f21321z.getText().toString(), V3.f21320y.getText().toString());
                            m30.n nVar6 = new m30.n(V3.f21301f, V3.D.getText().toString(), V3.C.getText().toString());
                            m30.n nVar7 = new m30.n(V3.f21302g, V3.F.getText().toString(), V3.E.getText().toString());
                            workHoursViewModel.getClass();
                            tx.b.X(f1.Q(workHoursViewModel), (q30.j) null, (m40.h0) null, new b1(workHoursViewModel, nVar, nVar2, nVar3, nVar4, nVar5, nVar6, nVar7, null), 3);
                            return;
                        }
                        return;
                    default:
                        f40.k[] kVarArr2 = WorkHoursIdx1Fragment.f9975o;
                        xu.b.y(workHoursIdx1Fragment, "this$0");
                        ul.h hVar = workHoursIdx1Fragment.f9978n;
                        if (hVar == null) {
                            xu.b.r0("contactSupport");
                            throw null;
                        }
                        Context requireContext = workHoursIdx1Fragment.requireContext();
                        xu.b.x(requireContext, "requireContext(...)");
                        hVar.a(requireContext, "work-hours.view", false);
                        return;
                }
            }
        });
    }
}