导航菜单

页面标题

页面副标题

Housing v14.7.8 - v.java 源代码

正在查看: Housing v14.7.8 应用的 v.java JAVA 源代码文件

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


package com.locon.profile.presentation.ui.screens;

import android.content.Context;
import android.view.ViewGroup;
import android.webkit.CookieManager;
import android.webkit.WebView;
import androidx.compose.material3.gc;
import androidx.compose.material3.hc;
import androidx.compose.runtime.m;
import androidx.compose.ui.platform.AndroidCompositionLocals_androidKt;
import com.locon.core.domain.login.model.C0922j;
import com.moengage.richnotification.internal.RichPushConstantsKt;
import com.newrelic.agent.android.api.v1.Defaults;
import com.newrelic.agent.android.util.Streams;
import j1.h;
import kotlin.Metadata;
import kotlin.jvm.internal.SourceDebugExtension;
import org.jetbrains.annotations.NotNull;

@Metadata(d1 = {"\u0000\b\n\u0002\u0010\u000e\n\u0002\b\u0004\"\u0014\u0010\u0001\u001a\u00020\u00008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0001\u0010\u0002¨\u0006\u0004²\u0006\f\u0010\u0003\u001a\u00020\u00008\nX\u008a\u0084\u0002"}, d2 = {"", "INJECT_JS_FUNCTIONS_TO_WEB_VIEW", "Ljava/lang/String;", "loginAuthToken", "presentation_gammaRelease"}, k = 2, mv = {2, 0, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nAccountSettingsWebViewScreen.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AccountSettingsWebViewScreen.kt\ncom/locon/profile/presentation/ui/screens/AccountSettingsWebViewScreenKt\n+ 2 HiltViewModel.kt\nandroidx/hilt/navigation/compose/HiltViewModelKt\n+ 3 ViewModel.kt\nandroidx/lifecycle/viewmodel/compose/ViewModelKt\n+ 4 CompositionLocal.kt\nandroidx/compose/runtime/CompositionLocal\n+ 5 Composer.kt\nandroidx/compose/runtime/ComposerKt\n+ 6 Dp.kt\nandroidx/compose/ui/unit/DpKt\n+ 7 SnapshotState.kt\nandroidx/compose/runtime/SnapshotStateKt__SnapshotStateKt\n+ 8 Effects.kt\nandroidx/compose/runtime/DisposableEffectScope\n*L\n1#1,247:1\n46#2,7:248\n86#3,6:255\n75#4:261\n75#4:269\n1247#5,6:262\n1247#5,6:270\n1247#5,6:276\n1247#5,6:282\n113#6:268\n85#7:288\n64#8,5:289\n*S KotlinDebug\n*F\n+ 1 AccountSettingsWebViewScreen.kt\ncom/locon/profile/presentation/ui/screens/AccountSettingsWebViewScreenKt\n*L\n50#1:248,7\n50#1:255,6\n51#1:261\n150#1:269\n68#1:262,6\n152#1:270,6\n161#1:276,6\n226#1:282,6\n116#1:268\n52#1:288\n162#1:289,5\n*E\n"})
public abstract class v {

    @NotNull
    private static final String INJECT_JS_FUNCTIONS_TO_WEB_VIEW = "window.postMessageToWebView = function (type) {\n    window.Android.postMessageToAndroid(JSON.stringify({\n        type\n    }));\n}\n\nwindow.setIsUserDeletedOrDeactivated = function () {\n    var currentUrl = window.location.href\n    window.Android.setIsUserDeletedOrDeactivated(JSON.stringify({\n        currentUrl\n    }));\n}";

    public static final void a(final String str, final String str2, final kq.l lVar, final kq.a aVar, final kq.a aVar2, final androidx.compose.ui.o oVar, androidx.compose.runtime.m mVar, final int i) {
        final int i2 = 1;
        final int i3 = 0;
        androidx.compose.runtime.n nVar = (androidx.compose.runtime.n) mVar;
        nVar.R0(767852838);
        int i4 = i | (nVar.r(str) ? 4 : 2) | (nVar.r(str2) ? 32 : 16) | (nVar.t(lVar) ? RichPushConstantsKt.MAX_IMAGE_BANNER_HEIGHT_EXPANDED_STATE : 128) | (nVar.t(aVar) ? 2048 : Defaults.RESPONSE_BODY_LIMIT) | (nVar.t(aVar2) ? 16384 : 8192) | (nVar.r(oVar) ? 131072 : Streams.DEFAULT_BUFFER_SIZE);
        if ((74899 & i4) == 74898 && nVar.m0()) {
            nVar.G0();
        } else {
            int i5 = androidx.compose.runtime.t.invocationKey;
            Context context = (Context) nVar.y(AndroidCompositionLocals_androidKt.d());
            com.locon.core.utils.b.INSTANCE.getClass();
            if (com.locon.core.utils.b.H(context)) {
                nVar.P0(-535324780);
                Object y0 = nVar.y0();
                androidx.compose.runtime.m.Companion.getClass();
                if (y0 == m.a.a()) {
                    y0 = new WebView(context);
                    nVar.b1(y0);
                }
                final WebView webView = (WebView) y0;
                nVar.K(false);
                CookieManager.getInstance().setCookie("https://housing.com", "hasLoginAuth=true; Domain=.housing.com");
                CookieManager cookieManager = CookieManager.getInstance();
                cookieManager.setCookie("https://housing.com", ("login_auth_token=" + str2) + "; Domain=.housing.com");
                zp.j0 j0Var = zp.j0.INSTANCE;
                nVar.P0(-535308826);
                boolean t = nVar.t(webView);
                Object y02 = nVar.y0();
                if (t || y02 == m.a.a()) {
                    y02 = new kq.l() {
                        public final Object invoke(Object obj) {
                            switch (i3) {
                                case 0:
                                    kotlin.jvm.internal.r.k((androidx.compose.runtime.u0) obj, "$this$DisposableEffect");
                                    return new r(webView);
                                default:
                                    kotlin.jvm.internal.r.k((Context) obj, "it");
                                    return webView;
                            }
                        }
                    };
                    nVar.b1(y02);
                }
                nVar.K(false);
                androidx.compose.runtime.x0.c(j0Var, (kq.l) y02, nVar);
                webView.setLayoutParams(new ViewGroup.LayoutParams(-1, -1));
                webView.setWebViewClient(new n(webView));
                webView.setLayerType(2, null);
                webView.getSettings().setDomStorageEnabled(true);
                webView.getSettings().setJavaScriptEnabled(true);
                webView.getSettings().setUserAgentString(System.getProperty("https.agent"));
                webView.addJavascriptInterface(new q(webView, aVar, aVar2, lVar), "Android");
                webView.loadUrl(str);
                nVar.P0(-535239102);
                boolean t2 = nVar.t(webView);
                Object y03 = nVar.y0();
                if (t2 || y03 == m.a.a()) {
                    y03 = new kq.l() {
                        public final Object invoke(Object obj) {
                            switch (i2) {
                                case 0:
                                    kotlin.jvm.internal.r.k((androidx.compose.runtime.u0) obj, "$this$DisposableEffect");
                                    return new r(webView);
                                default:
                                    kotlin.jvm.internal.r.k((Context) obj, "it");
                                    return webView;
                            }
                        }
                    };
                    nVar.b1(y03);
                }
                nVar.K(false);
                androidx.compose.ui.viewinterop.n.a((kq.l) y03, oVar, (kq.l) null, nVar, (i4 >> 12) & 112, 4);
            } else {
                aVar2.invoke();
            }
        }
        androidx.compose.runtime.x2 S = nVar.S();
        if (S != null) {
            S.M(new kq.p(str, str2, lVar, aVar, aVar2, oVar, i) {
                public final String a;
                public final String b;
                public final kq.l c;
                public final kq.a d;
                public final kq.a e;
                public final androidx.compose.ui.o f;

                public final Object invoke(Object obj, Object obj2) {
                    ((Integer) obj2).getClass();
                    int a = androidx.compose.runtime.z2.a(1);
                    kq.a aVar3 = this.e;
                    androidx.compose.ui.o oVar2 = this.f;
                    v.a(this.a, this.b, this.c, this.d, aVar3, oVar2, (androidx.compose.runtime.m) obj, a);
                    return zp.j0.INSTANCE;
                }
            });
        }
    }

    public static final void b(kq.a aVar, androidx.compose.runtime.m mVar, int i) {
        androidx.compose.runtime.n nVar = (androidx.compose.runtime.n) mVar;
        nVar.R0(-446105481);
        if ((((nVar.t(aVar) ? 4 : 2) | i) & 3) == 2 && nVar.m0()) {
            nVar.G0();
        } else {
            int i2 = androidx.compose.runtime.t.invocationKey;
            h.a aVar2 = j1.h.Companion;
            androidx.compose.ui.o i3 = androidx.compose.foundation.layout.v3.i(androidx.compose.foundation.layout.v3.g(androidx.compose.ui.o.Companion, 1.0f), 68);
            hc hcVar = hc.INSTANCE;
            com.locon.coreUI.theme.j.INSTANCE.getClass();
            com.locon.coreUI.theme.j.a().getClass();
            long l = com.locon.coreUI.theme.i.l();
            hc hcVar2 = hc.INSTANCE;
            hcVar.getClass();
            gc c = hc.c(l, nVar);
            androidx.compose.runtime.internal.j c2 = androidx.compose.runtime.internal.k.c(1120253755, new s(aVar), nVar);
            p0.INSTANCE.getClass();
            androidx.compose.material3.t.b(c2, i3, p0.f123lambda1, p0.f124lambda2, 0.0f, (androidx.compose.foundation.layout.g4) null, c, nVar, 3510, 176);
        }
        androidx.compose.runtime.x2 S = nVar.S();
        if (S != null) {
            S.M(new com.locon.profile.presentation.ui.components.n4(i, 5, aVar));
        }
    }

    public static final void c(com.locon.profile.presentation.navigation.a r20, java.lang.String r21, com.locon.core.domain.login.model.C0922j r22, androidx.compose.runtime.m r23, int r24) {
        throw new UnsupportedOperationException("Method not decompiled: com.locon.profile.presentation.ui.screens.v.c(com.locon.profile.presentation.navigation.a, java.lang.String, com.locon.profile.presentation.ui.viewmodels.j, androidx.compose.runtime.m, int):void");
    }

    public static final void d(C0922j c0922j, com.locon.profile.presentation.navigation.a aVar) {
        if (c0922j.getIsUserDeactivateCompleted()) {
            aVar.C1();
        } else if (c0922j.getIsUserDeleteCompleted()) {
            aVar.X6();
        } else {
            aVar.q7();
        }
    }
}