导航菜单

页面标题

页面副标题

Crafto v9.3.3 - C1449b2.java 源代码

正在查看: Crafto v9.3.3 应用的 C1449b2.java JAVA 源代码文件

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


package Ga;

import android.content.Context;
import android.graphics.Point;
import android.view.Display;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.crafto.android.ui.home.creation.TemplateSelectionFragment;
import com.crafto.android.usa.ui.a_screens.membership_plan_options.MembershipPlanRazorpayOptionsFragmentUsa;
import com.crafto.android.usa.ui.home.HomeScreenActivityUsa;
import com.crafto.android.usa.ui.home.creation.TemplateSelectionFragmentUsa;
import com.crafto.android.usa.utility.functional.AppEnums;
import dl.C5153g;
import java.net.URL;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import oa.C7228Z;
import oa.C7234c0;
import oa.C7249k;
import t7.C8332v1;
import v7.C8680g;
import v7.C8681h;
import z7.C9270z1;

public final class C1449b2 implements Function0 {

    public final int f9452a;

    public final Object f9453b;

    public C1449b2(Object obj, int i10) {
        this.f9452a = i10;
        this.f9453b = obj;
    }

    @Override
    public final Object invoke() {
        Integer num;
        Context context;
        String str;
        View view;
        View view2;
        ViewGroup.LayoutParams layoutParams;
        ConstraintLayout constraintLayout;
        tb.c0 c0Var = null;
        Object obj = this.f9453b;
        switch (this.f9452a) {
            case 0:
                View view3 = (View) obj;
                Object systemService = (view3 == null || (context = view3.getContext()) == null) ? null : context.getSystemService("window");
                WindowManager windowManager = systemService instanceof WindowManager ? (WindowManager) systemService : null;
                Display defaultDisplay = windowManager != null ? windowManager.getDefaultDisplay() : null;
                if (defaultDisplay != null) {
                    Point point = new Point();
                    defaultDisplay.getSize(point);
                    num = Integer.valueOf(point.x);
                } else {
                    num = null;
                }
                int makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(num != null ? num.intValue() : 400, Integer.MIN_VALUE);
                int makeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(0, 0);
                if (view3 != null) {
                    view3.measure(makeMeasureSpec, makeMeasureSpec2);
                }
                if (view3 != null) {
                    return Integer.valueOf(view3.getMeasuredHeight());
                }
                return null;
            case 1:
                MembershipPlanRazorpayOptionsFragmentUsa this$0 = (MembershipPlanRazorpayOptionsFragmentUsa) obj;
                Intrinsics.checkNotNullParameter(this$0, "this$0");
                AppEnums.g.b bVar = AppEnums.g.b.f53685a;
                C7234c0 c7234c0 = new C7234c0(this$0.S0().n(), false, false);
                tb.c0 c0Var2 = this$0.f50100L;
                if (c0Var2 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("viewUtil");
                    c0Var2 = null;
                }
                oa.b1 b1Var = new oa.b1(c0Var2, this$0.f50107p1, this$0.S0().n(), this$0.f50108x1);
                tb.c0 c0Var3 = this$0.f50100L;
                if (c0Var3 != null) {
                    c0Var = c0Var3;
                } else {
                    Intrinsics.throwUninitializedPropertyAccessException("viewUtil");
                }
                return new M9.A(this$0, bVar, c7234c0, b1Var, new oa.U0(c0Var, false, this$0.S0().n()), new C7228Z(), new C7249k(this$0.S0().p()), Q9.l.f24699a);
            case 2:
                URL url = new URL("https://ipv6.crafto.app:443/");
                HomeScreenActivityUsa homeScreenActivityUsa = (HomeScreenActivityUsa) obj;
                Context applicationContext = homeScreenActivityUsa.getApplicationContext();
                Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
                C8680g a10 = C8681h.a(url, applicationContext);
                p003do.a.f61810a.c("ping_ " + a10, new Object[0]);
                if (a10.f92837b.length() > 0 && (str = a10.f92838c) != null && str.length() > 0) {
                    homeScreenActivityUsa.O("Log", "Home Screen", (r23 & 4) != 0 ? null : null, (r23 & 8) != 0 ? null : a10.toString(), (r23 & 16) != 0 ? null : "Ipv6 Connection Detected", (r23 & 32) != 0 ? false : false, (r23 & 64) != 0 ? -1 : 0, (r23 & 128) != 0 ? -1 : 0, 0, null);
                }
                return Unit.f69574a;
            case 3:
                TemplateSelectionFragment this$02 = (TemplateSelectionFragment) obj;
                Intrinsics.checkNotNullParameter(this$02, "this$0");
                ?? r12 = this$02.f47835Z;
                if (r12 == 0) {
                    Intrinsics.throwUninitializedPropertyAccessException("interactionListener");
                } else {
                    c0Var = r12;
                }
                c0Var.getClass();
                Mb.d dVar = W7.v0.f30403a;
                W7.v0.c();
                return Unit.f69574a;
            case 4:
                TemplateSelectionFragmentUsa this$03 = (TemplateSelectionFragmentUsa) obj;
                Intrinsics.checkNotNullParameter(this$03, "this$0");
                int dimensionPixelSize = this$03.getResources().getDimensionPixelSize(this$03.getResources().getIdentifier("status_bar_height", "dimen", "android"));
                p003do.a.f61810a.c(Eb.J0.a(dimensionPixelSize, "statusBarHeight "), new Object[0]);
                if (dimensionPixelSize > 0) {
                    C8332v1 c8332v1 = (C8332v1) this$03.f19427w;
                    if (c8332v1 != null && (view2 = c8332v1.f90170m) != null && (layoutParams = view2.getLayoutParams()) != null) {
                        layoutParams.height = dimensionPixelSize;
                    }
                    C8332v1 c8332v12 = (C8332v1) this$03.f19427w;
                    if (c8332v12 != null && (view = c8332v12.f90170m) != null) {
                        view.requestLayout();
                    }
                }
                return Unit.f69574a;
            default:
                final C9270z1 this$04 = (C9270z1) obj;
                Intrinsics.checkNotNullParameter(this$04, "this$0");
                p003do.a.f61810a.c("logScreenshot", new Object[0]);
                t7.D2 d22 = (t7.D2) this$04.f4152y;
                if (d22 == null || (constraintLayout = d22.f79014Q) == null) {
                    return null;
                }
                return Boolean.valueOf(constraintLayout.postDelayed(new Runnable() {
                    @Override
                    public final void run() {
                        C9270z1 this$05 = C9270z1.this;
                        Intrinsics.checkNotNullParameter(this$05, "this$0");
                        C5153g.b(androidx.lifecycle.J.a(this$05), dl.Z.f61720a, null, new A1(this$05, null), 2);
                    }
                }, 500L));
        }
    }
}