导航菜单

页面标题

页面副标题

Kahramaa v15.23.3 - HomeFragmentNewUI.java 源代码

正在查看: Kahramaa v15.23.3 应用的 HomeFragmentNewUI.java JAVA 源代码文件

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


package com.qa.kahramaa.kahramaa.home.fragments;

import android.annotation.TargetApi;
import android.app.KeyguardManager;
import android.content.ContentProviderOperation;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.hardware.fingerprint.FingerprintManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.util.Pair;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.b;
import androidx.fragment.app.m;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import com.google.android.material.navigation.NavigationView;
import com.qa.kahramaa.kahramaa.base.activities.KMAppMaintenance;
import com.qa.kahramaa.kahramaa.base.retrofit.WebServiceFactoryV2;
import com.qa.kahramaa.kahramaa.base.ui.FullDrawerLayout;
import com.qa.kahramaa.kahramaa.base.ui.views.AnyTextView;
import com.qa.kahramaa.kahramaa.base.ui.views.FooterBarNewUI;
import com.qa.kahramaa.kahramaa.bookappointment.fragments.BookAppointmentLaunchFragment;
import com.qa.kahramaa.kahramaa.eservicenew.fragments.KmEServiceTracking;
import com.qa.kahramaa.kahramaa.login.fragments.KMLogin;
import com.qa.kahramaa.kahramaa.login.fragments.RegistrationCheckFragment;
import com.qa.kahramaa.kahramaa.notification.fragments.PushNotificationFragment;
import g6.a1;
import ib.r;
import ib.s;
import ib.w;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import nb.q;
import nb.t0;
import oc.a0;
import oc.b0;
import oc.h0;
import oc.t;
import oc.u;
import oc.v;
import oc.x;
import oc.y;
import oc.z;
import org.conscrypt.NativeConstants;
import zb.p;

public class HomeFragmentNewUI extends hb.a implements NavigationView.a {

    public static q f4353z0;

    @BindView
    public ImageView bannerImageView;

    @BindView
    public RelativeLayout bannerLayout;

    @BindView
    public ImageView closeBannerImageView;

    @BindView
    public ImageView close_button;

    @BindView
    public FullDrawerLayout drawer_layout;

    @BindView
    public RecyclerView guest_bottom_grid;

    @BindView
    public RecyclerView guest_top_grid;

    @BindView
    public ImageView iv_menu_icon;

    public int f4354k0;

    public String f4355l0;

    @BindView
    public LinearLayout ll_all_services;

    @BindView
    public LinearLayout ll_call_center;

    @BindView
    public LinearLayout ll_service_center;

    @BindView
    public LinearLayout ll_watsapp;

    @BindView
    public RecyclerView lst_menu_items;

    public List<oc.d> f4356m0;

    public mc.d f4357n0;

    @BindView
    public AnyTextView nav_serial_number;

    @BindView
    public AnyTextView nav_version_number;

    public mc.c f4358o0;

    public mc.c f4359p0;

    public HashMap f4360q0;

    public HashMap f4361r0;

    public ArrayList f4362s0;

    public ArrayList f4363t0;

    @BindView
    public ImageView top_logo;

    @BindView
    public TextView tv_login;

    @BindView
    public TextView tv_register_now;

    public GridLayoutManager f4364u0;

    @BindView
    public LinearLayout user_icon;

    public GridLayoutManager f4365v0;

    public zb.a f4366w0;

    @BindView
    public LinearLayout wrap;

    public ArrayList<ContentProviderOperation> f4367x0;

    public Locale f4368y0;

    public class a implements jb.d {

        public final bb.a f4369a;

        public a(bb.a aVar) {
            this.f4369a = aVar;
        }

        @Override
        public final void a(String str) {
            if (!str.equalsIgnoreCase("login") && str.equalsIgnoreCase("cancel")) {
                rc.a.a();
                q qVar = HomeFragmentNewUI.f4353z0;
                s.d(this.f4369a.L.f8724a, "finger_print_emp", "true");
                bb.a aVar = this.f4369a;
                new oc.a();
                oc.a aVar2 = new oc.a();
                Bundle bundle = new Bundle();
                bundle.putSerializable("", "");
                aVar2.k0(bundle);
                aVar.t(aVar2);
            }
            HomeFragmentNewUI.f4353z0.dismiss();
        }
    }

    public class b implements jb.f {
        public b() {
        }

        @Override
        public final void d(View view, int i10) {
            if (i10 == 0) {
                HomeFragmentNewUI homeFragmentNewUI = HomeFragmentNewUI.this;
                q qVar = HomeFragmentNewUI.f4353z0;
                homeFragmentNewUI.p0().t(ServicesFragmentNewUI.D0(null, false));
                HomeFragmentNewUI.this.drawer_layout.d();
                HomeFragmentNewUI.this.G0();
                HomeFragmentNewUI.this.q0().b();
                return;
            }
            if (i10 == 1) {
                HomeFragmentNewUI homeFragmentNewUI2 = HomeFragmentNewUI.this;
                q qVar2 = HomeFragmentNewUI.f4353z0;
                homeFragmentNewUI2.E0(homeFragmentNewUI2.p0(), false);
                return;
            }
            if (i10 == 2) {
                HomeFragmentNewUI homeFragmentNewUI3 = HomeFragmentNewUI.this;
                q qVar3 = HomeFragmentNewUI.f4353z0;
                homeFragmentNewUI3.p0().t(SupportFragmentNewUI.y0());
                HomeFragmentNewUI.this.drawer_layout.d();
                HomeFragmentNewUI.this.G0();
                HomeFragmentNewUI.this.q0().b();
                return;
            }
            if (i10 != 3) {
                return;
            }
            HomeFragmentNewUI homeFragmentNewUI4 = HomeFragmentNewUI.this;
            q qVar4 = HomeFragmentNewUI.f4353z0;
            if (homeFragmentNewUI4.f8208h0.k() == null) {
                m.o("", HomeFragmentNewUI.this.p0());
                HomeFragmentNewUI.this.drawer_layout.d();
            } else {
                m.o("con", HomeFragmentNewUI.this.p0());
                HomeFragmentNewUI.this.drawer_layout.d();
            }
            HomeFragmentNewUI.this.G0();
            HomeFragmentNewUI.this.q0().b();
        }
    }

    public class c implements DialogInterface.OnClickListener {
        @Override
        public final void onClick(DialogInterface dialogInterface, int i10) {
            dialogInterface.dismiss();
        }
    }

    public static void A0(HomeFragmentNewUI homeFragmentNewUI) {
        homeFragmentNewUI.getClass();
        new ArrayList();
        new ArrayList();
        ArrayList arrayList = new ArrayList();
        new ArrayList();
        za.b.b().getClass();
        za.b.c(homeFragmentNewUI.p0(), homeFragmentNewUI.z(2131689629), new Bundle[0]);
        bb.a p02 = homeFragmentNewUI.p0();
        new KmEServiceTracking();
        p02.t(KmEServiceTracking.A0(arrayList));
    }

    public static void B0(HomeFragmentNewUI homeFragmentNewUI, String str) {
        homeFragmentNewUI.getClass();
        if (new u.c(str).a(homeFragmentNewUI.f8208h0.f()) && homeFragmentNewUI.p0() != null && homeFragmentNewUI.D()) {
            b.a aVar = new b.a(homeFragmentNewUI.p0(), 2131755229);
            aVar.f955a.f939d = homeFragmentNewUI.w().getString(2131689543);
            aVar.f955a.f = homeFragmentNewUI.z(2131689540);
            aVar.f(homeFragmentNewUI.z(2131690226), new v(homeFragmentNewUI));
            androidx.appcompat.app.b a10 = aVar.a();
            a10.setCanceledOnTouchOutside(false);
            a10.show();
        }
    }

    public static HomeFragmentNewUI F0() {
        HomeFragmentNewUI homeFragmentNewUI = new HomeFragmentNewUI();
        Bundle bundle = new Bundle();
        bundle.putSerializable("finger", "");
        homeFragmentNewUI.k0(bundle);
        return homeFragmentNewUI;
    }

    public static void y0(HomeFragmentNewUI homeFragmentNewUI, bb.a aVar) {
        homeFragmentNewUI.p0().t(SupportFragmentNewUI.y0());
        try {
            if (aVar.L.k() == null || aVar.L.k().f11801s == null) {
                return;
            }
            za.a a10 = za.a.a();
            aVar.getString(2131689665);
            aVar.L.k().f11801s.a();
            a10.getClass();
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }

    public static void z0(HomeFragmentNewUI homeFragmentNewUI, bb.a aVar) {
        homeFragmentNewUI.getClass();
        if (!aVar.L.p().a().q()) {
            homeFragmentNewUI.H0();
            return;
        }
        if (aVar.L.k() == null) {
            aVar.getString(2131690394);
            t0 t0Var = new t0(aVar, null);
            t0Var.A = new f(homeFragmentNewUI, t0Var, aVar);
            t0Var.show(aVar.getFragmentManager(), "");
            return;
        }
        aVar.getString(2131690394);
        t0 t0Var2 = new t0(aVar, homeFragmentNewUI.f8208h0.r());
        t0Var2.A = new g(homeFragmentNewUI, t0Var2, aVar);
        t0Var2.show(aVar.getFragmentManager(), "");
    }

    public final void C0(bb.a aVar, KeyguardManager keyguardManager) {
        try {
            startActivityForResult(keyguardManager.createConfirmDeviceCredentialIntent(aVar.getResources().getString(2131690547), aVar.getResources().getString(2131689655)), 221);
        } catch (Exception unused) {
            try {
                startActivityForResult(new Intent("android.settings.SECURITY_SETTINGS"), 233);
            } catch (Exception unused2) {
            }
        }
    }

    public final void D0(boolean z) {
        this.bannerLayout.setVisibility(z ? 0 : 8);
    }

    public final void E0(bb.a aVar, boolean z) {
        if (!aVar.L.p().a().b()) {
            H0();
            return;
        }
        aVar.t(new BookAppointmentLaunchFragment());
        try {
            if (aVar.L.k() != null && aVar.L.k().f11801s != null) {
                za.a a10 = za.a.a();
                aVar.getString(2131690383);
                aVar.L.k().f11801s.getClass();
                a10.getClass();
            }
            if (z) {
                return;
            }
            this.drawer_layout.d();
            G0();
            q0().b();
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }

    @Override
    public final void F(int i10, int i11, Intent intent) {
        if (i10 != 221) {
            if (i10 == 233) {
                if (((KeyguardManager) p0().getSystemService("keyguard")).isKeyguardSecure()) {
                    Toast.makeText(p0(), w().getString(2131689719), 0).show();
                    C0(p0(), null);
                } else {
                    p0().L.H(true);
                }
            }
        } else if (i11 == -1) {
            p0().L.H(false);
            p0().v(0);
            bb.a p02 = p0();
            new CustomerFragmentNewUI();
            p02.t(CustomerFragmentNewUI.G0(p0().L.k()));
        }
        super.F(i10, i11, intent);
    }

    public final void G0() {
        try {
            Thread.sleep(200L);
        } catch (InterruptedException e10) {
            e10.printStackTrace();
        }
    }

    public final void H0() {
        b.a aVar = new b.a(s(), 2131755229);
        aVar.f955a.f939d = w().getString(2131689543);
        aVar.f955a.f = w().getString(2131690396);
        aVar.f(s().getString(2131689721), new c());
        androidx.appcompat.app.b a10 = aVar.a();
        a10.setCanceledOnTouchOutside(false);
        a10.show();
    }

    @Override
    public final void I(Bundle bundle) {
        super.I(bundle);
        this.f8209i0.a(p0());
    }

    @TargetApi(NativeConstants.SSL3_RT_APPLICATION_DATA)
    public final void I0(bb.a aVar) {
        FingerprintManager fingerprintManager = (FingerprintManager) aVar.getSystemService("fingerprint");
        KeyguardManager keyguardManager = (KeyguardManager) aVar.getSystemService("keyguard");
        f4353z0 = new q(aVar, fingerprintManager, keyguardManager);
        if (fingerprintManager != null) {
            if (fingerprintManager.isHardwareDetected() && fingerprintManager.hasEnrolledFingerprints()) {
                if (this.f1673t.getString("finger").equalsIgnoreCase("")) {
                    this.wrap.setVisibility(8);
                    f4353z0.show(aVar.getFragmentManager(), "");
                    f4353z0.setCancelable(false);
                } else if (s.a(aVar.L.f8724a).getBoolean("finger_print_auth", false)) {
                    f4353z0.b(p0(), fingerprintManager, keyguardManager, null);
                } else if (Build.VERSION.SDK_INT >= 23) {
                    rc.a.a();
                }
            }
        } else if (keyguardManager.isDeviceSecure()) {
            C0(p0(), keyguardManager);
        } else if (keyguardManager.isDeviceSecure()) {
            C0(p0(), keyguardManager);
        } else if (this.f8208h0.k() != null) {
            aVar.v(0);
            new CustomerFragmentNewUI();
            aVar.t(CustomerFragmentNewUI.G0(this.f8208h0.k()));
        } else {
            new HomeFragmentNewUI();
            aVar.t(F0());
        }
        f4353z0.f11037o = new a(aVar);
    }

    @Override
    public final View J(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        return layoutInflater.inflate(2131492959, viewGroup, false);
    }

    @Override
    public final void L() {
        this.R = true;
        this.f4364u0 = null;
        this.f4365v0 = null;
    }

    @Override
    public final void Q() {
        this.R = true;
    }

    @Override
    public final void R(int i10, String[] strArr, int[] iArr) {
        if (i10 != 100) {
            if (i10 == 112) {
                if (iArr.length <= 0 || iArr[0] != 0) {
                    w.g(p0(), w().getString(2131690545));
                    return;
                } else {
                    o0(new Intent("android.intent.action.DIAL", Uri.parse("tel:991")));
                    return;
                }
            }
            if (i10 != 113) {
                return;
            }
            if (iArr.length <= 0 || iArr[0] != 0) {
                w.g(p0(), w().getString(2131690545));
                return;
            }
            return;
        }
        if (iArr.length <= 0 || iArr[0] != 0) {
            w.g(p0(), w().getString(2131690545));
            return;
        }
        ArrayList<ContentProviderOperation> arrayList = new ArrayList<>();
        this.f4367x0 = arrayList;
        arrayList.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI).withValue("account_type", null).withValue("account_name", null).build());
        this.f4367x0.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI).withValueBackReference("raw_contact_id", 0).withValue("mimetype", "vnd.android.cursor.item/name").withValue("data1", "Kahramaa").build());
        this.f4367x0.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI).withValueBackReference("raw_contact_id", 0).withValue("mimetype", "vnd.android.cursor.item/email_v2").withValue("data1", "[email protected]").withValue("data2", 2).build());
        this.f4367x0.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI).withValueBackReference("raw_contact_id", 0).withValue("mimetype", "vnd.android.cursor.item/phone_v2").withValue("data1", "30303991").withValue("data2", 3).build());
        this.f4367x0.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI).withValueBackReference("raw_contact_id", 0).withValue("mimetype", "vnd.android.cursor.item/organization").withValue("data1", "Kahramaa").withValue("data2", 1).withValue("data2", 1).build());
        try {
            p0().getContentResolver().applyBatch("com.android.contacts", this.f4367x0);
            String string = w().getString(2131690493);
            String string2 = w().getString(2131689597);
            String string3 = w().getString(2131690130);
            p0();
            oc.s sVar = new oc.s(this);
            b.a aVar = new b.a(p0(), 2131755016);
            aVar.f955a.f = string;
            aVar.f(string3, sVar);
            aVar.d(string2, sVar);
            aVar.h();
        } catch (Exception e10) {
            e10.printStackTrace();
            w.g(p0(), w().getString(2131690545));
        }
    }

    @Override
    public final void S() {
        this.R = true;
        com.qa.kahramaa.kahramaa.base.retrofit.q c7 = WebServiceFactoryV2.c(new com.qa.kahramaa.kahramaa.base.retrofit.c(com.qa.kahramaa.kahramaa.base.retrofit.d.a().f3469d, 0));
        r0().A();
        c7.r(new p("", "")).enqueue(new com.qa.kahramaa.kahramaa.base.retrofit.h(p0(), new u(this)));
        eb.c cVar = this.f8209i0;
        cVar.b();
        if (cVar.f5683a.a("isMaintenanceEnabled")) {
            Intent intent = new Intent(p0(), (Class<?>) KMAppMaintenance.class);
            intent.setFlags(67108864);
            o0(intent);
            p0().overridePendingTransition(2130772007, 2130772008);
            p0().finish();
            p0().w();
        }
        this.user_icon.setVisibility(8);
        this.f4357n0.f10637r = new b();
    }

    @Override
    public final void V() {
        this.R = true;
    }

    @Override
    public final void W(View view, Bundle bundle) {
        String str;
        String str2;
        super.W(view, bundle);
        if (C()) {
            q0().setFooterListData(p0());
        }
        w.b(p0(), 2131099713);
        s0().setTitleBarBackgroundColor(0);
        s0().c();
        q0().b();
        if (this.f8208h0.p() != null) {
            this.f4366w0 = this.f8208h0.p();
        } else {
            zb.a aVar = new zb.a();
            this.f4366w0 = aVar;
            this.f8208h0.F(aVar);
        }
        ArrayList arrayList = new ArrayList();
        this.f4356m0 = arrayList;
        arrayList.add(new oc.d(z(2131690411), 2131231172));
        this.f4356m0.add(new oc.d(z(2131690386), 2131231057));
        this.f4356m0.add(new oc.d(z(2131689890), 2131231123));
        this.f4356m0.add(new oc.d(z(2131690419), 2131231174));
        this.f8208h0.getClass();
        this.f4356m0 = this.f4356m0;
        p0();
        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(1);
        this.lst_menu_items.setHasFixedSize(true);
        this.lst_menu_items.setLayoutManager(linearLayoutManager);
        mc.d dVar = new mc.d(p0(), this.f4356m0);
        this.f4357n0 = dVar;
        this.lst_menu_items.setAdapter(dVar);
        this.nav_serial_number.setText(this.f8208h0.e());
        this.nav_version_number.setText(String.valueOf(this.f8208h0.f()));
        this.f4360q0 = new HashMap();
        this.f4362s0 = new ArrayList();
        HashMap hashMap = this.f4360q0;
        if (hashMap != null) {
            hashMap.put(0, new nc.c(z(2131690056), z(2131690057), 2131231054));
            this.f4362s0.add(0);
            this.f4360q0.put(1, new nc.c(z(2131690397), z(2131690063), 2131231171));
            this.f4362s0.add(1);
            this.f4360q0.put(2, new nc.c(z(2131690061), z(2131690062), 2131231191));
            this.f4362s0.add(2);
            this.f4360q0.put(3, new nc.c(z(2131690086), z(2131689904), 2131231170));
            this.f4362s0.add(3);
        }
        this.f4361r0 = new HashMap();
        this.f4363t0 = new ArrayList();
        HashMap hashMap2 = this.f4361r0;
        if (hashMap2 != null) {
            hashMap2.put(0, new nc.c(z(2131690058), z(2131690058), 2131231039));
            this.f4363t0.add(0);
            this.f4361r0.put(1, new nc.c(z(2131690566), z(2131690551), 2131231393));
            this.f4363t0.add(1);
        }
        p0().getApplicationContext();
        this.f4364u0 = new GridLayoutManager(2);
        p0().getApplicationContext();
        this.f4365v0 = new GridLayoutManager(2);
        this.guest_top_grid.setLayoutManager(this.f4364u0);
        this.guest_bottom_grid.setLayoutManager(this.f4365v0);
        this.f4358o0 = new mc.c(p0().getApplicationContext(), this.f4360q0, this.f4362s0);
        mc.c cVar = new mc.c(p0().getApplicationContext(), this.f4361r0, this.f4363t0);
        this.f4359p0 = cVar;
        mc.c cVar2 = this.f4358o0;
        cVar2.q = new z(this);
        cVar.q = new a0(this);
        this.guest_top_grid.setAdapter(cVar2);
        this.guest_bottom_grid.setAdapter(this.f4359p0);
        float f = p0().getApplicationContext().getResources().getDisplayMetrics().density * 10.0f;
        this.guest_top_grid.h(new h0(Math.round(f)));
        this.guest_bottom_grid.h(new h0(Math.round(f)));
        q0().e(1, true);
        this.drawer_layout.a(new y(this));
        String str3 = null;
        if (this.f8208h0.g().isEmpty()) {
            Configuration configuration = new Configuration();
            if (Locale.getDefault().getDisplayLanguage().equalsIgnoreCase("English")) {
                Locale locale = new Locale("en");
                this.f4368y0 = locale;
                Locale.setDefault(locale);
                configuration.locale = this.f4368y0;
                this.f8208h0.O("en");
            } else {
                Locale locale2 = new Locale("ar");
                this.f4368y0 = locale2;
                Locale.setDefault(locale2);
                configuration.locale = this.f4368y0;
                this.f8208h0.O("ar");
            }
            p0().getResources().updateConfiguration(configuration, null);
        } else {
            Configuration configuration2 = new Configuration();
            if (this.f8208h0.g().equalsIgnoreCase("en")) {
                Locale locale3 = new Locale("en");
                this.f4368y0 = locale3;
                Locale.setDefault(locale3);
                configuration2.locale = this.f4368y0;
            } else if (this.f8208h0.g().equalsIgnoreCase("ar")) {
                Locale locale4 = new Locale("ar");
                this.f4368y0 = locale4;
                Locale.setDefault(locale4);
                configuration2.locale = this.f4368y0;
            }
            p0().getResources().updateConfiguration(configuration2, null);
        }
        s.d(this.f8208h0.f8724a, "home", "Home");
        Pair m10 = a1.m(this.f8209i0, this.f8208h0);
        this.f4354k0 = ((Integer) m10.first).intValue();
        this.f4355l0 = (String) m10.second;
        int i10 = s.a(this.f8208h0.f8724a).getInt("banner_id_closed", -1);
        if (this.f4354k0 == -1 || this.f4355l0.isEmpty() || this.f4354k0 == i10) {
            D0(false);
        } else {
            a1.p(g0(), this.f4355l0, this.bannerImageView, new x(this));
        }
        this.guest_top_grid.setNestedScrollingEnabled(false);
        this.guest_bottom_grid.setNestedScrollingEnabled(false);
        try {
            if (this.f8208h0.k() != null) {
                if (this.f8208h0.k() != null && Build.VERSION.SDK_INT >= 23) {
                    I0(p0());
                } else if (Build.VERSION.SDK_INT < 23) {
                    KeyguardManager keyguardManager = (KeyguardManager) p0().getSystemService("keyguard");
                    if (this.f8208h0.k() != null) {
                        if (((KeyguardManager) p0().getSystemService("keyguard")).isKeyguardSecure()) {
                            C0(p0(), keyguardManager);
                        } else {
                            p0().v(0);
                            bb.a p02 = p0();
                            new CustomerFragmentNewUI();
                            p02.t(CustomerFragmentNewUI.G0(this.f8208h0.k()));
                        }
                    }
                } else if (this.f8208h0.k() != null) {
                    p0().v(0);
                    bb.a p03 = p0();
                    new CustomerFragmentNewUI();
                    p03.t(CustomerFragmentNewUI.G0(this.f8208h0.k()));
                }
            }
        } catch (Exception e10) {
            e10.printStackTrace();
        }
        try {
            r0().z();
        } catch (Exception e11) {
            e11.printStackTrace();
        }
        try {
            str = Build.VERSION.RELEASE;
        } catch (Throwable unused) {
            str = null;
        }
        String str4 = "Not found";
        if (str != null) {
            try {
                str3 = Build.VERSION.RELEASE;
            } catch (Throwable unused2) {
            }
            str2 = str3;
        } else {
            str2 = "Not found";
        }
        try {
            if (r.c() != null) {
                str4 = r.c();
            }
        } catch (Exception e12) {
            e12.printStackTrace();
        }
        WebServiceFactoryV2.c(new com.qa.kahramaa.kahramaa.base.retrofit.c(com.qa.kahramaa.kahramaa.base.retrofit.d.a().f3469d, 0)).l1(new zb.d("", "", this.f8208h0.t(), this.f8208h0.g(), this.f8208h0.f(), str2, str4)).enqueue(new com.qa.kahramaa.kahramaa.base.retrofit.h(p0(), new oc.w()));
    }

    @Override
    public final void X(Bundle bundle) {
        this.R = true;
        s0().c();
    }

    @Override
    public final void k() {
    }

    @Override
    public final void onClick(View view) {
        switch (view.getId()) {
            case 2131296510:
                ib.d dVar = this.f8208h0;
                int i10 = this.f4354k0;
                SharedPreferences.Editor edit = s.a(dVar.f8724a).edit();
                edit.putInt("banner_id_closed", i10);
                edit.commit();
                D0(false);
                break;
            case 2131296511:
                if (this.drawer_layout.m()) {
                    this.drawer_layout.d();
                    break;
                }
                break;
            case 2131297001:
                if (!this.drawer_layout.m()) {
                    this.drawer_layout.q();
                    break;
                } else {
                    this.drawer_layout.d();
                    break;
                }
            case 2131297051:
                p0().t(ServicesFragmentNewUI.D0(null, false));
                break;
            case 2131297091:
                String string = w().getString(2131689595);
                String string2 = w().getString(2131689597);
                String string3 = w().getString(2131689593);
                p0();
                b0 b0Var = new b0(this);
                b.a aVar = new b.a(p0(), 2131755016);
                aVar.f955a.f = string;
                aVar.f(string3, b0Var);
                aVar.d(string2, b0Var);
                aVar.h();
                break;
            case 2131297164:
                E0(p0(), true);
                break;
            case 2131297177:
                try {
                    Intent intent = new Intent("android.intent.action.VIEW");
                    intent.setData(Uri.parse("https://api.whatsapp.com/send?phone=+97430303991"));
                    o0(intent);
                    break;
                } catch (Exception unused) {
                    w.g(p0(), w().getString(2131690284));
                    b.a aVar2 = new b.a(s(), 2131755229);
                    aVar2.f955a.f939d = w().getString(2131689543);
                    aVar2.f955a.f = w().getString(2131690131);
                    aVar2.f(s().getString(2131689721), new t());
                    androidx.appcompat.app.b a10 = aVar2.a();
                    a10.setCanceledOnTouchOutside(false);
                    a10.show();
                    return;
                }
            case 2131297664:
                bb.a p02 = p0();
                PushNotificationFragment pushNotificationFragment = new PushNotificationFragment();
                Bundle bundle = new Bundle();
                bundle.putString("userType", "");
                pushNotificationFragment.k0(bundle);
                p02.t(pushNotificationFragment);
                w.b(p0(), 2131099713);
                try {
                    if (this.f8208h0.k() != null && this.f8208h0.k().f11801s != null) {
                        za.a a11 = za.a.a();
                        p0();
                        z(2131689691);
                        this.f8208h0.k().f11801s.getClass();
                        a11.getClass();
                        break;
                    }
                } catch (Exception e10) {
                    e10.printStackTrace();
                    return;
                }
                break;
            case 2131297856:
                if (!p0().L.p().a().g()) {
                    H0();
                    break;
                } else {
                    bb.a p03 = p0();
                    new KMLogin();
                    p03.t(KMLogin.A0());
                    break;
                }
            case 2131297899:
                if (!this.f8208h0.p().a().o()) {
                    H0();
                    break;
                } else {
                    p0().t(new RegistrationCheckFragment());
                    break;
                }
        }
    }

    @Override
    public final void v0(FooterBarNewUI footerBarNewUI) {
        footerBarNewUI.f();
    }

    @Override
    public final void w0() {
        this.iv_menu_icon.setOnClickListener(this);
        this.ll_all_services.setOnClickListener(this);
        this.ll_service_center.setOnClickListener(this);
        this.ll_call_center.setOnClickListener(this);
        this.ll_watsapp.setOnClickListener(this);
        this.tv_register_now.setOnClickListener(this);
        this.tv_login.setOnClickListener(this);
        this.close_button.setOnClickListener(this);
        this.top_logo.setOnClickListener(this);
        this.closeBannerImageView.setOnClickListener(this);
    }
}