正在查看: 万能钥匙 v1.1.23 应用的 C1648h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 C1648h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package os;
import android.webkit.URLUtil;
import androidx.fragment.app.FragmentActivity;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.wifitutu.link.foundation.kernel.g;
import com.wifitutu.link.foundation.kernel.i;
import com.wifitutu.link.wifi.ui.AuthRouterInfo;
import com.wifitutu.wifi.monitor.api.generate.sco.BdScoAuthEndEvent;
import com.wifitutu.wifi.monitor.api.generate.sco.BdScoAuthJumpEvent;
import com.wifitutu.wifi.monitor.api.generate.sco.BdScoAuthLinkRouterEvent;
import com.wifitutu.wifi.monitor.api.generate.sco.BdScoAuthNetEvent;
import com.wifitutu.wifi.monitor.api.generate.sco.BdScoAuthRouterConEvent;
import com.wifitutu.wifi.monitor.api.generate.sco.BdScoAuthRouterFailEvent;
import com.wifitutu.wifi.monitor.api.generate.sco.BdScoAuthVipStartEvent;
import com.wifitutu.wifi.monitor.api.generate.sco.BdScoCommonParams;
import com.wifitutu.wifi.monitor.api.generate.sg.BdSgAuthEndEvent;
import com.wifitutu.wifi.monitor.api.generate.sg.BdSgAuthJumpEvent;
import com.wifitutu.wifi.monitor.api.generate.sg.BdSgAuthLinkRouterEvent;
import com.wifitutu.wifi.monitor.api.generate.sg.BdSgAuthNetEvent;
import com.wifitutu.wifi.monitor.api.generate.sg.BdSgAuthRetryEvent;
import com.wifitutu.wifi.monitor.api.generate.sg.BdSgAuthRouterConEvent;
import com.wifitutu.wifi.monitor.api.generate.sg.BdSgAuthRouterFailEvent;
import com.wifitutu.wifi.monitor.api.generate.sg.BdSgCommonParams;
import kotlin.Metadata;
import lg0.C3007b1;
import lg0.C3071u0;
import lg0.C3235x;
import lg0.g2;
import os.AbstractC3288g;
import os.C2608a5;
import os.C2647f2;
import os.C2662g1;
import os.C2736q0;
import os.C2898m0;
import os.C2904o0;
import os.C3095h;
import os.C3354a;
import os.C3363c0;
import os.C3378g;
import os.C3382h;
import os.C3385h2;
import os.C3433t2;
import os.EnumC3381g2;
import os.EnumC3417p2;
import os.InterfaceC2895l0;
import os.InterfaceC3359b0;
import os.InterfaceC3368d1;
import os.InterfaceC3376f1;
import os.InterfaceC3414p;
import os.InterfaceC3453z;
import qs.C3110b;
import qs.C3118i;
import uj0.a;
@Metadata(d1 = {"\u0000f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b!\n\u0002\u0010\t\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u000b\u0018\u00002\u00020\u0001B\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004¢\u0006\u0004\b\u0006\u0010\u0007J\u000f\u0010\t\u001a\u00020\bH\u0002¢\u0006\u0004\b\t\u0010\nJ\u000f\u0010\u000b\u001a\u00020\bH\u0002¢\u0006\u0004\b\u000b\u0010\nJ\u000f\u0010\f\u001a\u00020\bH\u0002¢\u0006\u0004\b\f\u0010\nJ\u000f\u0010\r\u001a\u00020\bH\u0002¢\u0006\u0004\b\r\u0010\nJ\u000f\u0010\u000e\u001a\u00020\bH\u0002¢\u0006\u0004\b\u000e\u0010\nJ\u0019\u0010\u0011\u001a\u00020\b2\b\b\u0002\u0010\u0010\u001a\u00020\u000fH\u0002¢\u0006\u0004\b\u0011\u0010\u0012J\u0017\u0010\u0015\u001a\u00020\b2\u0006\u0010\u0014\u001a\u00020\u0013H\u0002¢\u0006\u0004\b\u0015\u0010\u0016J\u0019\u0010\u0019\u001a\u00020\b2\b\u0010\u0018\u001a\u0004\u0018\u00010\u0017H\u0002¢\u0006\u0004\b\u0019\u0010\u001aJ\u000f\u0010\u001b\u001a\u00020\bH\u0002¢\u0006\u0004\b\u001b\u0010\nJ!\u0010\u001e\u001a\u00020\b2\u0006\u0010\u001c\u001a\u00020\u00172\b\b\u0002\u0010\u001d\u001a\u00020\u000fH\u0002¢\u0006\u0004\b\u001e\u0010\u001fJ\u000f\u0010 \u001a\u00020\u000fH\u0002¢\u0006\u0004\b \u0010!J\u0017\u0010$\u001a\u00020\b2\u0006\u0010#\u001a\u00020\"H\u0002¢\u0006\u0004\b$\u0010%J\u0017\u0010'\u001a\u00020\b2\u0006\u0010#\u001a\u00020&H\u0002¢\u0006\u0004\b'\u0010(J\u000f\u0010)\u001a\u00020\bH\u0016¢\u0006\u0004\b)\u0010\nJ\u000f\u0010*\u001a\u00020\bH\u0016¢\u0006\u0004\b*\u0010\nJ\u000f\u0010+\u001a\u00020\bH\u0016¢\u0006\u0004\b+\u0010\nJ\u000f\u0010,\u001a\u00020\bH\u0016¢\u0006\u0004\b,\u0010\nJ\r\u0010-\u001a\u00020\b¢\u0006\u0004\b-\u0010\nJ\u000f\u0010.\u001a\u00020\bH\u0016¢\u0006\u0004\b.\u0010\nR\u0017\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b.\u0010/\u001a\u0004\b0\u00101R\u0017\u0010\u0005\u001a\u00020\u00048\u0006¢\u0006\f\n\u0004\b,\u00102\u001a\u0004\b3\u00104R+\u0010;\u001a\u00020\u00132\u0006\u00105\u001a\u00020\u00138F@FX\u0086\u008e\u0002¢\u0006\u0012\n\u0004\b6\u00107\u001a\u0004\b8\u00109\"\u0004\b:\u0010\u0016R+\u0010?\u001a\u00020\u00132\u0006\u00105\u001a\u00020\u00138F@FX\u0086\u008e\u0002¢\u0006\u0012\n\u0004\b<\u00107\u001a\u0004\b=\u00109\"\u0004\b>\u0010\u0016R+\u0010C\u001a\u00020\u00132\u0006\u00105\u001a\u00020\u00138F@FX\u0086\u008e\u0002¢\u0006\u0012\n\u0004\b@\u00107\u001a\u0004\bA\u00109\"\u0004\bB\u0010\u0016R+\u0010G\u001a\u00020\u00132\u0006\u00105\u001a\u00020\u00138F@FX\u0086\u008e\u0002¢\u0006\u0012\n\u0004\bD\u00107\u001a\u0004\bE\u00109\"\u0004\bF\u0010\u0016R\"\u0010N\u001a\u00020H8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bI\u0010\u0015\u001a\u0004\bJ\u0010K\"\u0004\bL\u0010MR\"\u0010R\u001a\u00020H8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bO\u0010\u0015\u001a\u0004\bP\u0010K\"\u0004\bQ\u0010MR\u0018\u0010V\u001a\u0004\u0018\u00010S8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bT\u0010UR\u0018\u0010Y\u001a\u0004\u0018\u00010W8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b+\u0010XR\u0018\u0010\\\u001a\u0004\u0018\u00010\u00178\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bZ\u0010[R\u0018\u0010`\u001a\u0004\u0018\u00010]8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b^\u0010_R\u0016\u0010b\u001a\u00020\u000f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\ba\u0010$R\u001d\u0010g\u001a\u0004\u0018\u00010\u00178BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bc\u0010d\u001a\u0004\be\u0010f¨\u0006h"}, d2 = {"Ldw/h;", "Ldw/d;", "Ltv/g;", "fragment", "Lcom/wifitutu/link/wifi/ui/AuthRouterInfo;", "routerInfo", "<init>", "(Ltv/g;Lcom/wifitutu/link/wifi/ui/AuthRouterInfo;)V", "Llg0/e0;", "i0", "()V", "b0", "O", "W", "j0", "", "bd", "L", "(Z)V", "", "sType", "J", "(I)V", "", "redirectUrl", "K", "(Ljava/lang/String;)V", "V", "url", "browserActionBarVisible", "X", "(Ljava/lang/String;Z)V", "U", "()Z", "Lcom/wifitutu/wifi/monitor/api/generate/sg/BdSgCommonParams;", "event", "Z", "(Lcom/wifitutu/wifi/monitor/api/generate/sg/BdSgCommonParams;)V", "Lcom/wifitutu/wifi/monitor/api/generate/sco/BdScoCommonParams;", "a0", "(Lcom/wifitutu/wifi/monitor/api/generate/sco/BdScoCommonParams;)V", "j", "i", "t", "l", "N", "k", "Ltv/g;", "getFragment", "()Ltv/g;", "Lcom/wifitutu/link/wifi/ui/AuthRouterInfo;", "T", "()Lcom/wifitutu/link/wifi/ui/AuthRouterInfo;", "<set-?>", "m", "Ldh0/d;", "getMConnectStatus", "()I", "g0", "mConnectStatus", "n", "P", "d0", "mAuthStatus", "o", "getMCheckStatus", "e0", "mCheckStatus", "p", "S", "h0", "mStatus", "", "q", "R", "()J", "f0", "(J)V", "mConnectStartTime", "r", "getMAuthStartTime", "c0", "mAuthStartTime", "Lqs/b1;", "s", "Lqs/b1;", "delayTimer", "Luu/p;", "Luu/p;", "connectResult", "u", "Ljava/lang/String;", "mFinishRedirectURL", "Luu/h;", "v", "Luu/h;", "mAuthResult", "w", "released", "x", "Llg0/h;", "Q", "()Ljava/lang/String;", "mConnId", "wifi-ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class C1648h extends C1637d {
public static ChangeQuickRedirect changeQuickRedirect;
public static final hh0.l<Object>[] y = {kotlin.jvm.internal.g0.f(new kotlin.jvm.internal.s(C1648h.class, "mConnectStatus", "getMConnectStatus()I", 0)), kotlin.jvm.internal.g0.f(new kotlin.jvm.internal.s(C1648h.class, "mAuthStatus", "getMAuthStatus()I", 0)), kotlin.jvm.internal.g0.f(new kotlin.jvm.internal.s(C1648h.class, "mCheckStatus", "getMCheckStatus()I", 0)), kotlin.jvm.internal.g0.f(new kotlin.jvm.internal.s(C1648h.class, "mStatus", "getMStatus()I", 0))};
public final AbstractC3288g fragment;
public final AuthRouterInfo routerInfo;
public final dh0.d mConnectStatus;
public final dh0.d mAuthStatus;
public final dh0.d mCheckStatus;
public final dh0.d mStatus;
public long mConnectStartTime;
public long mAuthStartTime;
public C3007b1 delayTimer;
public InterfaceC3414p connectResult;
public String mFinishRedirectURL;
public C3382h mAuthResult;
public boolean released;
public final lg0.h mConnId;
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0001\u001a\u00020\u00002\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00000\u0002H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Luu/h;", "data", "Lqs/z4;", "<anonymous parameter 1>", "Llg0/e0;", "a", "(Luu/h;Lqs/z4;)V"}, k = 3, mv = {1, 8, 0})
public static final class a extends kotlin.jvm.internal.p implements ah0.p<C3382h, lg0.z4<C3382h>, lg0.e0> {
public static ChangeQuickRedirect changeQuickRedirect;
public a() {
super(2);
}
public final void a(C3382h c3382h, lg0.z4<C3382h> z4Var) {
C3378g authResp;
C3378g authResp2;
C3378g authResp3;
C3378g authResp4;
C3378g authResp5;
if (PatchProxy.proxy(new Object[]{c3382h, z4Var}, this, changeQuickRedirect, false, 19744, new Class[]{C3382h.class, lg0.z4.class}, Void.TYPE).isSupported) {
return;
}
C1648h.this.mAuthResult = c3382h;
boolean z = C3363c0.c(C1648h.this.mAuthResult) || C3363c0.d(C1648h.this.mAuthResult);
InterfaceC3376f1 a = C3095h.a();
String str = null;
if (a != null) {
C3433t2 n = C1648h.this.getRouterInfo().n();
C3354a c3354a = new C3354a(null, 0L, 0L, null, null, 31, null);
C1648h c1648h = C1648h.this;
c3354a.g(z ? EnumC3381g2.SUCCESS : EnumC3381g2.FAIL);
c3354a.i(c1648h.getMConnectStartTime());
c3354a.f(System.currentTimeMillis());
C3382h c3382h2 = c1648h.mAuthResult;
c3354a.h((c3382h2 == null || (authResp5 = c3382h2.getAuthResp()) == null) ? null : authResp5.getMsg());
lg0.e0 e0Var = lg0.e0.a;
a.R1(n, c3354a);
}
if (z) {
C1648h.this.d0(21);
if (!C1648h.B(C1648h.this) && (authResp4 = c3382h.getAuthResp()) != null && C3363c0.f(authResp4)) {
C3110b.h(C1648h.this.q(), "连接成功!");
C1648h.x(C1648h.this);
return;
}
C3110b.h(C1648h.this.q(), "认证成功");
C1648h c1648h2 = C1648h.this;
C3382h c3382h3 = c1648h2.mAuthResult;
if (c3382h3 != null && (authResp3 = c3382h3.getAuthResp()) != null) {
str = authResp3.getRedirectUrl();
}
C1648h.v(c1648h2, str);
return;
}
C1648h.this.d0(22);
C3382h c3382h4 = C1648h.this.mAuthResult;
String msg = (c3382h4 == null || (authResp2 = c3382h4.getAuthResp()) == null) ? null : authResp2.getMsg();
if (msg == null || msg.length() == 0) {
C3110b.h(C1648h.this.q(), "认证失败,请重试!");
} else {
androidx.lifecycle.w<CharSequence> q = C1648h.this.q();
StringBuilder sb = new StringBuilder();
sb.append("认证失败:");
C3382h c3382h5 = C1648h.this.mAuthResult;
if (c3382h5 != null && (authResp = c3382h5.getAuthResp()) != null) {
str = authResp.getMsg();
}
sb.append(str);
C3110b.h(q, sb.toString());
}
if (C3363c0.e(C1648h.this.mAuthResult)) {
C1648h.this.d0(23);
C3110b.h(C1648h.this.q(), "认证失败:畅连VIP网络请开通会员");
C1648h.C(C1648h.this);
}
C1648h.x(C1648h.this);
}
@Override
public lg0.e0 invoke(C3382h c3382h, lg0.z4<C3382h> z4Var) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{c3382h, z4Var}, this, changeQuickRedirect, false, 19745, new Class[]{Object.class, Object.class}, Object.class);
if (proxy.isSupported) {
return proxy.result;
}
a(c3382h, z4Var);
return lg0.e0.a;
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"", "available", "Llg0/e0;", "invoke", "(Z)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
public static final class b extends kotlin.jvm.internal.p implements ah0.l<Boolean, lg0.e0> {
public static ChangeQuickRedirect changeQuickRedirect;
public final String t;
public b(String str) {
super(1);
this.t = str;
}
@Override
public lg0.e0 invoke(Boolean bool) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{bool}, this, changeQuickRedirect, false, 19747, new Class[]{Object.class}, Object.class);
if (proxy.isSupported) {
return proxy.result;
}
invoke(bool.booleanValue());
return lg0.e0.a;
}
public final void invoke(boolean z) {
C3378g authResp;
C3378g authResp2;
if (PatchProxy.proxy(new Object[]{new Byte(z ? (byte) 1 : (byte) 0)}, this, changeQuickRedirect, false, 19746, new Class[]{Boolean.TYPE}, Void.TYPE).isSupported) {
return;
}
if (z) {
C1648h.this.e0(31);
C1648h.this.mFinishRedirectURL = this.t;
C3110b.h(C1648h.this.q(), "连接成功!");
com.wifitutu.link.foundation.core.a.c(C2647f2.d()).w4();
if (C1648h.B(C1648h.this)) {
C1648h.E(C1648h.this, new BdSgAuthEndEvent());
} else {
C1648h.F(C1648h.this, new BdScoAuthEndEvent());
}
} else {
if (C1648h.this.P() == 22) {
C3382h c3382h = C1648h.this.mAuthResult;
String msg = (c3382h == null || (authResp2 = c3382h.getAuthResp()) == null) ? null : authResp2.getMsg();
if (msg == null || msg.length() == 0) {
C3110b.h(C1648h.this.q(), "认证失败,请重试!");
} else {
androidx.lifecycle.w<CharSequence> q = C1648h.this.q();
StringBuilder sb = new StringBuilder();
sb.append("认证失败:");
C3382h c3382h2 = C1648h.this.mAuthResult;
sb.append((c3382h2 == null || (authResp = c3382h2.getAuthResp()) == null) ? null : authResp.getMsg());
C3110b.h(q, sb.toString());
}
} else {
C1648h.this.e0(32);
C3110b.h(C1648h.this.q(), "该热点网络异常,暂时无法使用");
}
C1648h.this.mFinishRedirectURL = null;
}
if (C1648h.B(C1648h.this)) {
C1648h c1648h = C1648h.this;
BdSgAuthNetEvent bdSgAuthNetEvent = new BdSgAuthNetEvent();
bdSgAuthNetEvent.i(z);
C1648h.E(c1648h, bdSgAuthNetEvent);
} else {
C1648h c1648h2 = C1648h.this;
BdScoAuthNetEvent bdScoAuthNetEvent = new BdScoAuthNetEvent();
bdScoAuthNetEvent.k(Boolean.valueOf(z));
C1648h.F(c1648h2, bdScoAuthNetEvent);
}
InterfaceC3376f1 a = C3095h.a();
if (a != null) {
C3433t2 n = C1648h.this.getRouterInfo().n();
C1648h c1648h3 = C1648h.this;
n.p(z);
n.m(C1648h.A(c1648h3));
a.q7(n);
}
C1648h.x(C1648h.this);
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
public static final class e0 extends kotlin.jvm.internal.p implements ah0.a<lg0.e0> {
public static ChangeQuickRedirect changeQuickRedirect;
public e0() {
super(0);
}
@Override
public lg0.e0 invoke() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19749, new Class[0], Object.class);
if (proxy.isSupported) {
return proxy.result;
}
invoke2();
return lg0.e0.a;
}
public final void invoke2() {
InterfaceC3376f1 a;
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19748, new Class[0], Void.TYPE).isSupported || (a = C3095h.a()) == null) {
return;
}
C3433t2 n = C1648h.this.getRouterInfo().n();
n.m(C1648h.A(C1648h.this));
a.rf(n);
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
public static final class C1649d extends kotlin.jvm.internal.p implements ah0.a<lg0.e0> {
public static ChangeQuickRedirect changeQuickRedirect;
public C1649d() {
super(0);
}
@Override
public lg0.e0 invoke() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19751, new Class[0], Object.class);
if (proxy.isSupported) {
return proxy.result;
}
invoke2();
return lg0.e0.a;
}
public final void invoke2() {
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19750, new Class[0], Void.TYPE).isSupported) {
return;
}
C1648h.this.g0(12);
C3110b.h(C1648h.this.q(), "连接被取消");
C1648h.x(C1648h.this);
}
}
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0001\u001a\u00020\u00002\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00000\u0002H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Luu/p;", "data", "Lqs/z4;", "proxy", "Llg0/e0;", "a", "(Luu/p;Lqs/z4;)V"}, k = 3, mv = {1, 8, 0})
public static final class e extends kotlin.jvm.internal.p implements ah0.p<InterfaceC3414p, lg0.z4<InterfaceC3414p>, lg0.e0> {
public static ChangeQuickRedirect changeQuickRedirect;
public final kotlin.jvm.internal.a0 s;
public final C1648h t;
public e(kotlin.jvm.internal.a0 a0Var, C1648h c1648h) {
super(2);
this.s = a0Var;
this.t = c1648h;
}
public final void a(InterfaceC3414p interfaceC3414p, lg0.z4<InterfaceC3414p> z4Var) {
if (PatchProxy.proxy(new Object[]{interfaceC3414p, z4Var}, this, changeQuickRedirect, false, 19752, new Class[]{InterfaceC3414p.class, lg0.z4.class}, Void.TYPE).isSupported) {
return;
}
this.s.a = false;
this.t.connectResult = interfaceC3414p;
}
@Override
public lg0.e0 invoke(InterfaceC3414p interfaceC3414p, lg0.z4<InterfaceC3414p> z4Var) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{interfaceC3414p, z4Var}, this, changeQuickRedirect, false, 19753, new Class[]{Object.class, Object.class}, Object.class);
if (proxy.isSupported) {
return proxy.result;
}
a(interfaceC3414p, z4Var);
return lg0.e0.a;
}
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00010\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lqs/x4;", "Luu/p;", "it", "Llg0/e0;", "a", "(Lqs/x4;)V"}, k = 3, mv = {1, 8, 0})
public static final class f extends kotlin.jvm.internal.p implements ah0.l<lg0.x4<InterfaceC3414p>, lg0.e0> {
public static ChangeQuickRedirect changeQuickRedirect;
public final kotlin.jvm.internal.a0 s;
public final C1648h t;
public f(kotlin.jvm.internal.a0 a0Var, C1648h c1648h) {
super(1);
this.s = a0Var;
this.t = c1648h;
}
public final void a(lg0.x4<InterfaceC3414p> x4Var) {
String str;
if (PatchProxy.proxy(new Object[]{x4Var}, this, changeQuickRedirect, false, 19754, new Class[]{lg0.x4.class}, Void.TYPE).isSupported || this.s.a) {
return;
}
InterfaceC3414p interfaceC3414p = this.t.connectResult;
boolean z = interfaceC3414p != null && interfaceC3414p.b();
InterfaceC3376f1 a = C3095h.a();
if (a != null) {
C3433t2 n = this.t.getRouterInfo().n();
n.m(C1648h.A(this.t));
C3354a c3354a = new C3354a(null, 0L, 0L, null, null, 31, null);
C1648h c1648h = this.t;
c3354a.g(z ? EnumC3381g2.SUCCESS : EnumC3381g2.FAIL);
c3354a.i(c1648h.getMConnectStartTime());
c3354a.f(System.currentTimeMillis());
if (z) {
str = null;
} else {
InterfaceC3414p interfaceC3414p2 = c1648h.connectResult;
str = interfaceC3414p2 != null ? kotlin.jvm.internal.n.d(interfaceC3414p2.a(), Boolean.TRUE) : false ? "可能密码错误" : "其他错误";
}
c3354a.h(str);
lg0.e0 e0Var = lg0.e0.a;
a.U1(n, c3354a);
}
if (z) {
this.t.g0(11);
C1648h.u(this.t, 0);
if (C1648h.B(this.t)) {
C1648h.E(this.t, new BdSgAuthRouterConEvent());
return;
} else {
C1648h.F(this.t, new BdScoAuthRouterConEvent());
return;
}
}
this.t.g0(12);
C3110b.h(this.t.q(), "连接失败!");
C1648h.x(this.t);
if (C1648h.B(this.t)) {
C1648h c1648h2 = this.t;
BdSgAuthRouterFailEvent bdSgAuthRouterFailEvent = new BdSgAuthRouterFailEvent();
InterfaceC3414p interfaceC3414p3 = this.t.connectResult;
bdSgAuthRouterFailEvent.i(String.valueOf(interfaceC3414p3 != null ? Integer.valueOf(interfaceC3414p3.getErrorCode()) : null));
C1648h.E(c1648h2, bdSgAuthRouterFailEvent);
return;
}
C1648h c1648h3 = this.t;
BdScoAuthRouterFailEvent bdScoAuthRouterFailEvent = new BdScoAuthRouterFailEvent();
InterfaceC3414p interfaceC3414p4 = this.t.connectResult;
bdScoAuthRouterFailEvent.k(String.valueOf(interfaceC3414p4 != null ? Integer.valueOf(interfaceC3414p4.getErrorCode()) : null));
C1648h.F(c1648h3, bdScoAuthRouterFailEvent);
}
@Override
public lg0.e0 invoke(lg0.x4<InterfaceC3414p> x4Var) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{x4Var}, this, changeQuickRedirect, false, 19755, new Class[]{Object.class}, Object.class);
if (proxy.isSupported) {
return proxy.result;
}
a(x4Var);
return lg0.e0.a;
}
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00010\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lqs/b5;", "Luu/p;", "it", "Llg0/e0;", "a", "(Lqs/b5;)V"}, k = 3, mv = {1, 8, 0})
public static final class g extends kotlin.jvm.internal.p implements ah0.l<lg0.b5<InterfaceC3414p>, lg0.e0> {
public static ChangeQuickRedirect changeQuickRedirect;
public final kotlin.jvm.internal.a0 s;
public final C1648h t;
public g(kotlin.jvm.internal.a0 a0Var, C1648h c1648h) {
super(1);
this.s = a0Var;
this.t = c1648h;
}
public final void a(lg0.b5<InterfaceC3414p> b5Var) {
if (PatchProxy.proxy(new Object[]{b5Var}, this, changeQuickRedirect, false, 19756, new Class[]{lg0.b5.class}, Void.TYPE).isSupported) {
return;
}
this.s.a = true;
C1648h.w(this.t, false);
}
@Override
public lg0.e0 invoke(lg0.b5<InterfaceC3414p> b5Var) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{b5Var}, this, changeQuickRedirect, false, 19757, new Class[]{Object.class}, Object.class);
if (proxy.isSupported) {
return proxy.result;
}
a(b5Var);
return lg0.e0.a;
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lqs/t3;", "it", "Llg0/e0;", "a", "(Lqs/t3;)V"}, k = 3, mv = {1, 8, 0})
public static final class C0443h extends kotlin.jvm.internal.p implements ah0.l<lg0.t3, lg0.e0> {
public static ChangeQuickRedirect changeQuickRedirect;
public C0443h() {
super(1);
}
public final void a(lg0.t3 t3Var) {
if (PatchProxy.proxy(new Object[]{t3Var}, this, changeQuickRedirect, false, 19758, new Class[]{lg0.t3.class}, Void.TYPE).isSupported || yv.a.INSTANCE.c()) {
return;
}
C1648h.D(C1648h.this);
C1648h.this.N();
}
@Override
public lg0.e0 invoke(lg0.t3 t3Var) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{t3Var}, this, changeQuickRedirect, false, 19759, new Class[]{Object.class}, Object.class);
if (proxy.isSupported) {
return proxy.result;
}
a(t3Var);
return lg0.e0.a;
}
}
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
public static final class i extends kotlin.jvm.internal.p implements ah0.a<String> {
public static ChangeQuickRedirect changeQuickRedirect;
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u0002\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Los/e1;", "T", "Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
public static final class e1 extends kotlin.jvm.internal.p implements ah0.a<lg0.e0> {
public static ChangeQuickRedirect changeQuickRedirect;
public static final e1 s = new e1();
public e1() {
super(0);
}
@Override
public lg0.e0 invoke() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19763, new Class[0], Object.class);
if (proxy.isSupported) {
return proxy.result;
}
invoke2();
return lg0.e0.a;
}
public final void invoke2() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19762, new Class[0], Void.TYPE).isSupported) {
throw new lg0.f6((hh0.d<?>) kotlin.jvm.internal.g0.b(InterfaceC3453z.class));
}
}
}
public i() {
super(0);
}
@Override
public String invoke() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19761, new Class[0], Object.class);
return proxy.isSupported ? proxy.result : invoke();
}
@Override
public final String invoke() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19760, new Class[0], String.class);
if (proxy.isSupported) {
return (String) proxy.result;
}
String connId = C1648h.this.getRouterInfo().getConnId();
if (connId != null) {
return connId;
}
Object I = lg0.d4.I(C2662g1.a(C2647f2.d()).a(C2904o0.a()), e1.s);
if (I != null) {
return ((InterfaceC3453z) I).qa();
}
throw new NullPointerException("null cannot be cast to non-null type com.wifitutu.link.wifi.core.feature.IFeatureWifi");
}
}
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J+\u0010\u0007\u001a\u00020\u00062\n\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u00022\u0006\u0010\u0004\u001a\u00028\u00002\u0006\u0010\u0005\u001a\u00028\u0000H\u0014¢\u0006\u0004\b\u0007\u0010\b¨\u0006\t"}, d2 = {"dw/h$j", "Ldh0/b;", "Lhh0/l;", "property", "oldValue", "newValue", "Llg0/e0;", "a", "(Lhh0/l;Ljava/lang/Object;Ljava/lang/Object;)V", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class j extends dh0.b<Integer> {
public static ChangeQuickRedirect changeQuickRedirect;
public final C1648h b;
public j(Object obj, C1648h c1648h) {
super(obj);
this.b = c1648h;
}
public void a(hh0.l<?> property, Integer oldValue, Integer newValue) {
if (PatchProxy.proxy(new Object[]{property, oldValue, newValue}, this, changeQuickRedirect, false, 19764, new Class[]{hh0.l.class, Object.class, Object.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(property, "property");
int intValue = newValue.intValue();
oldValue.intValue();
this.b.h0(intValue);
if (this.b.S() == 10) {
this.b.f0(System.currentTimeMillis());
}
}
}
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J+\u0010\u0007\u001a\u00020\u00062\n\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u00022\u0006\u0010\u0004\u001a\u00028\u00002\u0006\u0010\u0005\u001a\u00028\u0000H\u0014¢\u0006\u0004\b\u0007\u0010\b¨\u0006\t"}, d2 = {"dw/h$k", "Ldh0/b;", "Lhh0/l;", "property", "oldValue", "newValue", "Llg0/e0;", "a", "(Lhh0/l;Ljava/lang/Object;Ljava/lang/Object;)V", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class k extends dh0.b<Integer> {
public static ChangeQuickRedirect changeQuickRedirect;
public final C1648h b;
public k(Object obj, C1648h c1648h) {
super(obj);
this.b = c1648h;
}
public void a(hh0.l<?> property, Integer oldValue, Integer newValue) {
if (PatchProxy.proxy(new Object[]{property, oldValue, newValue}, this, changeQuickRedirect, false, 19765, new Class[]{hh0.l.class, Object.class, Object.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(property, "property");
int intValue = newValue.intValue();
oldValue.intValue();
this.b.h0(intValue);
if (this.b.S() == 20) {
this.b.c0(System.currentTimeMillis());
}
}
}
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J+\u0010\u0007\u001a\u00020\u00062\n\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u00022\u0006\u0010\u0004\u001a\u00028\u00002\u0006\u0010\u0005\u001a\u00028\u0000H\u0014¢\u0006\u0004\b\u0007\u0010\b¨\u0006\t"}, d2 = {"dw/h$l", "Ldh0/b;", "Lhh0/l;", "property", "oldValue", "newValue", "Llg0/e0;", "a", "(Lhh0/l;Ljava/lang/Object;Ljava/lang/Object;)V", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class l extends dh0.b<Integer> {
public static ChangeQuickRedirect changeQuickRedirect;
public final C1648h b;
public l(Object obj, C1648h c1648h) {
super(obj);
this.b = c1648h;
}
public void a(hh0.l<?> property, Integer oldValue, Integer newValue) {
if (PatchProxy.proxy(new Object[]{property, oldValue, newValue}, this, changeQuickRedirect, false, 19766, new Class[]{hh0.l.class, Object.class, Object.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(property, "property");
int intValue = newValue.intValue();
oldValue.intValue();
this.b.h0(intValue);
}
}
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J+\u0010\u0007\u001a\u00020\u00062\n\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u00022\u0006\u0010\u0004\u001a\u00028\u00002\u0006\u0010\u0005\u001a\u00028\u0000H\u0014¢\u0006\u0004\b\u0007\u0010\b¨\u0006\t"}, d2 = {"dw/h$m", "Ldh0/b;", "Lhh0/l;", "property", "oldValue", "newValue", "", "b", "(Lhh0/l;Ljava/lang/Object;Ljava/lang/Object;)Z", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class m extends dh0.b<Integer> {
public static ChangeQuickRedirect changeQuickRedirect;
public final C1648h b;
public m(Object obj, C1648h c1648h) {
super(obj);
this.b = c1648h;
}
public boolean b(hh0.l<?> property, Integer oldValue, Integer newValue) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{property, oldValue, newValue}, this, changeQuickRedirect, false, 19767, new Class[]{hh0.l.class, Object.class, Object.class}, Boolean.TYPE);
if (proxy.isSupported) {
return ((Boolean) proxy.result).booleanValue();
}
kotlin.jvm.internal.n.i(property, "property");
int intValue = newValue.intValue();
oldValue.intValue();
C3110b.h(this.b.r(), Integer.valueOf(intValue));
return intValue != 0;
}
}
public C1648h(AbstractC3288g abstractC3288g, AuthRouterInfo authRouterInfo) {
this.fragment = abstractC3288g;
this.routerInfo = authRouterInfo;
dh0.a aVar = dh0.a.a;
this.mConnectStatus = new j(0, this);
this.mAuthStatus = new k(0, this);
this.mCheckStatus = new l(0, this);
this.mStatus = new m(1, this);
this.mConnId = lg0.i.a(new i());
C3110b.h(s(), Boolean.valueOf(abstractC3288g.getFeatureWifiZx().r5(authRouterInfo.getApType(), Long.valueOf(authRouterInfo.getControlApType()))));
C3110b.h(p(), authRouterInfo.getSsid());
}
public static final String A(C1648h c1648h) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{c1648h}, (Object) null, changeQuickRedirect, true, 19735, new Class[]{C1648h.class}, String.class);
return proxy.isSupported ? (String) proxy.result : c1648h.Q();
}
public static final boolean B(C1648h c1648h) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{c1648h}, (Object) null, changeQuickRedirect, true, 19737, new Class[]{C1648h.class}, Boolean.TYPE);
return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : c1648h.U();
}
public static final void C(C1648h c1648h) {
if (PatchProxy.proxy(new Object[]{c1648h}, (Object) null, changeQuickRedirect, true, 19743, new Class[]{C1648h.class}, Void.TYPE).isSupported) {
return;
}
c1648h.V();
}
public static final void D(C1648h c1648h) {
if (PatchProxy.proxy(new Object[]{c1648h}, (Object) null, changeQuickRedirect, true, 19734, new Class[]{C1648h.class}, Void.TYPE).isSupported) {
return;
}
c1648h.W();
}
public static final void E(C1648h c1648h, BdSgCommonParams bdSgCommonParams) {
if (PatchProxy.proxy(new Object[]{c1648h, bdSgCommonParams}, (Object) null, changeQuickRedirect, true, 19738, new Class[]{C1648h.class, BdSgCommonParams.class}, Void.TYPE).isSupported) {
return;
}
c1648h.Z(bdSgCommonParams);
}
public static final void F(C1648h c1648h, BdScoCommonParams bdScoCommonParams) {
if (PatchProxy.proxy(new Object[]{c1648h, bdScoCommonParams}, (Object) null, changeQuickRedirect, true, 19739, new Class[]{C1648h.class, BdScoCommonParams.class}, Void.TYPE).isSupported) {
return;
}
c1648h.a0(bdScoCommonParams);
}
private final void K(String redirectUrl) {
if (PatchProxy.proxy(new Object[]{redirectUrl}, this, changeQuickRedirect, false, 19723, new Class[]{String.class}, Void.TYPE).isSupported) {
return;
}
if (P() != 22) {
e0(30);
}
C3110b.h(q(), "正在检查热点能否上网…");
com.wifitutu.link.foundation.network.d.INSTANCE.f(C2736q0.a(C2647f2.d()).getWifiAvaiableCheckerSamples(), new b(redirectUrl));
}
private final void L(boolean bd) {
if (PatchProxy.proxy(new Object[]{new Byte(bd ? (byte) 1 : (byte) 0)}, this, changeQuickRedirect, false, 19720, new Class[]{Boolean.TYPE}, Void.TYPE).isSupported || this.released) {
return;
}
InterfaceC3368d1 featureWifiZx = this.fragment.getFeatureWifiZx();
String ssid = this.routerInfo.getSsid();
kotlin.jvm.internal.n.f(ssid);
lg0.e2<InterfaceC3414p> I3 = featureWifiZx.I3(new com.wifitutu.link.foundation.kernel.m(ssid, this.routerInfo.getBssid()), new e0(), new C1649d());
if (I3 != null) {
kotlin.jvm.internal.a0 a0Var = new kotlin.jvm.internal.a0();
g.a.b(I3, null, new e(a0Var, this), 1, null);
g2.a.b(I3, null, new f(a0Var, this), 1, null);
i.a.b(I3, null, new g(a0Var, this), 1, null);
}
if (bd) {
if (U()) {
Z(new BdSgAuthLinkRouterEvent());
} else {
a0(new BdScoAuthLinkRouterEvent());
}
}
}
public static void M(C1648h c1648h, boolean z, int i2, Object obj) {
if (PatchProxy.proxy(new Object[]{c1648h, new Byte(z ? (byte) 1 : (byte) 0), new Integer(i2), obj}, (Object) null, changeQuickRedirect, true, 19721, new Class[]{C1648h.class, Boolean.TYPE, Integer.TYPE, Object.class}, Void.TYPE).isSupported) {
return;
}
if ((i2 & 1) != 0) {
z = true;
}
c1648h.L(z);
}
private final void O() {
boolean z = false;
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19717, new Class[0], Void.TYPE).isSupported || this.released) {
return;
}
if (S() == 22 || S() == 21 || S() == 12 || S() == 32 || S() == 31 || S() == 23) {
C3110b.h(n(), Boolean.TRUE);
C3110b.h(m(), Boolean.FALSE);
if (S() == 21 || S() == 31) {
C3110b.h(o(), "完成");
z = true;
} else if (S() == 22 || S() == 12 || S() == 32) {
C3110b.h(o(), "重试");
} else if (S() == 23) {
C3110b.h(o(), "开通会员");
}
}
C3007b1 c3007b1 = this.delayTimer;
if (c3007b1 != null) {
c3007b1.cancel();
}
if (z) {
a.a aVar = uj0.a.b;
this.delayTimer = lg0.q6.d(uj0.c.p(3, uj0.d.e), false, false, new C0443h(), 6, null);
}
}
private final String Q() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19712, new Class[0], String.class);
return proxy.isSupported ? (String) proxy.result : (String) this.mConnId.getValue();
}
private final void V() {
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19724, new Class[0], Void.TYPE).isSupported) {
return;
}
InterfaceC3368d1 e2 = C3110b.e();
EnumC3417p2 enumC3417p2 = EnumC3417p2.CONNECT_CTRL_WIFI_AUTH_REQ;
e2.U9(enumC3417p2, this.routerInfo.getApType(), Long.valueOf(this.routerInfo.getControlApType()), this.routerInfo.m());
if (U()) {
return;
}
BdScoAuthVipStartEvent bdScoAuthVipStartEvent = new BdScoAuthVipStartEvent();
bdScoAuthVipStartEvent.k(enumC3417p2.getValue());
a0(bdScoAuthVipStartEvent);
}
private final void W() {
String str;
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19718, new Class[0], Void.TYPE).isSupported || (str = this.mFinishRedirectURL) == null) {
return;
}
if (tj0.t.L(str, "wkb://", false, 2, (Object) null)) {
str = str.substring(6);
kotlin.jvm.internal.n.h(str, "this as java.lang.String).substring(startIndex)");
}
if (URLUtil.isNetworkUrl(str)) {
Y(this, str, false, 2, null);
}
}
private final void X(String url, boolean browserActionBarVisible) {
if (PatchProxy.proxy(new Object[]{url, new Byte(browserActionBarVisible ? (byte) 1 : (byte) 0)}, this, changeQuickRedirect, false, 19726, new Class[]{String.class, Boolean.TYPE}, Void.TYPE).isSupported) {
return;
}
InterfaceC2895l0.a.a(C2898m0.b(C2662g1.a(C2647f2.d())), url, false, null, new com.wifitutu.link.foundation.kernel.ui.q0(new com.wifitutu.link.foundation.kernel.ui.r0(Boolean.valueOf(browserActionBarVisible), null, null, null, 14, null), null, null, null, null, null, null, 126, null), 6, null);
if (U()) {
BdSgAuthJumpEvent bdSgAuthJumpEvent = new BdSgAuthJumpEvent();
bdSgAuthJumpEvent.i(url);
Z(bdSgAuthJumpEvent);
} else {
BdScoAuthJumpEvent bdScoAuthJumpEvent = new BdScoAuthJumpEvent();
bdScoAuthJumpEvent.k(url);
a0(bdScoAuthJumpEvent);
}
}
public static void Y(C1648h c1648h, String str, boolean z, int i2, Object obj) {
if (PatchProxy.proxy(new Object[]{c1648h, str, new Byte(z ? (byte) 1 : (byte) 0), new Integer(i2), obj}, (Object) null, changeQuickRedirect, true, 19727, new Class[]{C1648h.class, String.class, Boolean.TYPE, Integer.TYPE, Object.class}, Void.TYPE).isSupported) {
return;
}
c1648h.X(str, (i2 & 2) == 0 ? z ? 1 : 0 : true);
}
private final void Z(BdSgCommonParams event) {
InterfaceC3376f1 a2;
if (PatchProxy.proxy(new Object[]{event}, this, changeQuickRedirect, false, 19732, new Class[]{BdSgCommonParams.class}, Void.TYPE).isSupported || (a2 = C3095h.a()) == null) {
return;
}
C3433t2 c3433t2 = new C3433t2(null, null, null, null, null, null, null, null, null, false, 1023, null);
c3433t2.t(this.routerInfo.m());
c3433t2.k(this.routerInfo.getApType());
c3433t2.o(Long.valueOf(this.routerInfo.getControlApType()));
c3433t2.l(Integer.valueOf(this.routerInfo.getAuthType()));
c3433t2.s(this.routerInfo.l());
a2.g2(c3433t2, event);
}
private final void b0() {
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19716, new Class[0], Void.TYPE).isSupported) {
return;
}
this.mAuthResult = null;
g0(0);
d0(0);
e0(0);
h0(1);
this.mConnectStartTime = 0L;
this.mAuthStartTime = 0L;
}
private final void i0() {
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19715, new Class[0], Void.TYPE).isSupported || this.released) {
return;
}
b0();
C3110b.h(n(), Boolean.FALSE);
C3110b.h(m(), Boolean.TRUE);
C3235x j2 = C3071u0.r(C2647f2.b(C2647f2.d())).j();
if (kotlin.jvm.internal.n.d(j2 != null ? j2.getSSID() : null, this.routerInfo.getSsid())) {
J(1);
} else {
j0();
}
}
private final void j0() {
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19719, new Class[0], Void.TYPE).isSupported) {
return;
}
g0(10);
C3110b.h(q(), this.fragment.getResources().getText(C3118i.sg_val_ing));
M(this, false, 1, null);
}
public static final void u(C1648h c1648h, int i2) {
if (PatchProxy.proxy(new Object[]{c1648h, new Integer(i2)}, (Object) null, changeQuickRedirect, true, 19740, new Class[]{C1648h.class, Integer.TYPE}, Void.TYPE).isSupported) {
return;
}
c1648h.J(i2);
}
public static final void v(C1648h c1648h, String str) {
if (PatchProxy.proxy(new Object[]{c1648h, str}, (Object) null, changeQuickRedirect, true, 19742, new Class[]{C1648h.class, String.class}, Void.TYPE).isSupported) {
return;
}
c1648h.K(str);
}
public static final void w(C1648h c1648h, boolean z) {
if (PatchProxy.proxy(new Object[]{c1648h, new Byte(z ? (byte) 1 : (byte) 0)}, (Object) null, changeQuickRedirect, true, 19741, new Class[]{C1648h.class, Boolean.TYPE}, Void.TYPE).isSupported) {
return;
}
c1648h.L(z);
}
public static final void x(C1648h c1648h) {
if (PatchProxy.proxy(new Object[]{c1648h}, (Object) null, changeQuickRedirect, true, 19736, new Class[]{C1648h.class}, Void.TYPE).isSupported) {
return;
}
c1648h.O();
}
public final void J(int sType) {
if (PatchProxy.proxy(new Object[]{new Integer(sType)}, this, changeQuickRedirect, false, 19722, new Class[]{Integer.TYPE}, Void.TYPE).isSupported || this.released) {
return;
}
InterfaceC3376f1 a2 = C3095h.a();
if (a2 != null) {
a2.g6(this.routerInfo.n(), sType);
}
d0(20);
C3110b.h(q(), "正在认证网络,请稍后…");
InterfaceC3359b0 D = this.fragment.D();
C3385h2 c3385h2 = new C3385h2();
String ssid = this.routerInfo.getSsid();
kotlin.jvm.internal.n.f(ssid);
c3385h2.J(new com.wifitutu.link.foundation.kernel.m(ssid, this.routerInfo.getBssid()));
c3385h2.w(Long.valueOf(this.routerInfo.getControlApType()));
c3385h2.H(this.fragment.getFeatureWifiZx().r5(this.routerInfo.getApType(), Long.valueOf(this.routerInfo.getControlApType())));
c3385h2.I(C2608a5.d(C2608a5.b(C2647f2.d())));
c3385h2.F(C2608a5.b(C2647f2.d()).getUid());
c3385h2.G(this.routerInfo.l());
c3385h2.y(this.routerInfo.getMac());
c3385h2.v(this.routerInfo.getAuthType());
c3385h2.u(this.routerInfo.getApType());
c3385h2.C(this.routerInfo.getShortAuthResult());
g.a.b(D.Xc(c3385h2), null, new a(), 1, null);
}
public final void N() {
FragmentActivity activity;
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19729, new Class[0], Void.TYPE).isSupported || (activity = this.fragment.getActivity()) == null) {
return;
}
activity.finish();
}
public final int P() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19706, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : ((Number) this.mAuthStatus.getValue(this, y[1])).intValue();
}
public final long getMConnectStartTime() {
return this.mConnectStartTime;
}
public final int S() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19710, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : ((Number) this.mStatus.getValue(this, y[3])).intValue();
}
public final AuthRouterInfo getRouterInfo() {
return this.routerInfo;
}
public final boolean U() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19731, new Class[0], Boolean.TYPE);
return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : C3110b.e().C8(this.routerInfo.getApType(), Long.valueOf(this.routerInfo.getControlApType())) || C3110b.d().L3(this.routerInfo.getAuthType());
}
public final void a0(BdScoCommonParams event) {
InterfaceC3376f1 a2;
if (PatchProxy.proxy(new Object[]{event}, this, changeQuickRedirect, false, 19733, new Class[]{BdScoCommonParams.class}, Void.TYPE).isSupported || (a2 = C3095h.a()) == null) {
return;
}
C3433t2 c3433t2 = new C3433t2(null, null, null, null, null, null, null, null, null, false, 1023, null);
c3433t2.t(this.routerInfo.m());
c3433t2.k(this.routerInfo.getApType());
c3433t2.l(Integer.valueOf(this.routerInfo.getAuthType()));
c3433t2.s(this.routerInfo.l());
a2.Q2(c3433t2, event);
}
public final void c0(long j2) {
this.mAuthStartTime = j2;
}
public final void d0(int i2) {
if (PatchProxy.proxy(new Object[]{new Integer(i2)}, this, changeQuickRedirect, false, 19707, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
return;
}
this.mAuthStatus.setValue(this, y[1], Integer.valueOf(i2));
}
public final void e0(int i2) {
if (PatchProxy.proxy(new Object[]{new Integer(i2)}, this, changeQuickRedirect, false, 19709, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
return;
}
this.mCheckStatus.setValue(this, y[2], Integer.valueOf(i2));
}
public final void f0(long j2) {
this.mConnectStartTime = j2;
}
public final void g0(int i2) {
if (PatchProxy.proxy(new Object[]{new Integer(i2)}, this, changeQuickRedirect, false, 19705, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
return;
}
this.mConnectStatus.setValue(this, y[0], Integer.valueOf(i2));
}
public final void h0(int i2) {
if (PatchProxy.proxy(new Object[]{new Integer(i2)}, this, changeQuickRedirect, false, 19711, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
return;
}
this.mStatus.setValue(this, y[3], Integer.valueOf(i2));
}
@Override
public void i() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19714, new Class[0], Void.TYPE).isSupported && S() == 23) {
if (C2608a5.d(C2608a5.b(C2647f2.d()))) {
i0();
} else if (yv.a.INSTANCE.c()) {
h0(22);
}
}
}
@Override
public void j() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19713, new Class[0], Void.TYPE).isSupported && S() == 1) {
i0();
}
}
@Override
public void k() {
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19730, new Class[0], Void.TYPE).isSupported) {
return;
}
C3007b1 c3007b1 = this.delayTimer;
if (c3007b1 != null) {
c3007b1.cancel();
}
this.released = true;
}
@Override
public void l() {
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19728, new Class[0], Void.TYPE).isSupported) {
return;
}
if (S() == 21 || S() == 31) {
W();
N();
return;
}
if (S() != 22 && S() != 12 && S() != 32) {
if (S() == 23) {
V();
}
} else {
i0();
if (U()) {
BdSgAuthRetryEvent bdSgAuthRetryEvent = new BdSgAuthRetryEvent();
bdSgAuthRetryEvent.i(this.routerInfo.getMac());
Z(bdSgAuthRetryEvent);
}
}
}
@Override
public void t() {
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 19725, new Class[0], Void.TYPE).isSupported) {
return;
}
Y(this, "http://key.sangotek.com/product-smallk-tb.html", false, 2, null);
}
}