正在查看: Empower MX v1.29.4.340 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Empower MX v1.29.4.340 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.withpersona.sdk2.inquiry.internal;
import Gf.AbstractC0767s;
import Gf.M;
import Ra.n;
import Ra.s;
import Rf.N;
import Ua.d;
import Uf.A;
import Xa.C0923b;
import Xa.w;
import android.content.Context;
import android.os.Bundle;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.O;
import androidx.lifecycle.f0;
import androidx.lifecycle.g0;
import androidx.lifecycle.h0;
import androidx.lifecycle.o;
import androidx.lifecycle.y;
import cb.C1118f;
import com.withpersona.sdk2.inquiry.LocalStaticInquiryTemplate;
import com.withpersona.sdk2.inquiry.StaticInquiryTemplate;
import com.withpersona.sdk2.inquiry.internal.e;
import com.withpersona.sdk2.inquiry.internal.k;
import com.withpersona.sdk2.inquiry.network.HttpStatusCode;
import com.withpersona.sdk2.inquiry.network.NetworkModule;
import f8.E;
import f8.I;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.P;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
import n2.a;
import nb.u;
import ob.InterfaceC2043a;
import rb.InterfaceC2225b;
import sf.p;
import sf.t;
import sf.x;
import vb.C2340b;
@Metadata(d1 = {"\u0000T\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\u0018\u00002\u00020\u00012\u00020\u0002B\u0007¢\u0006\u0004\b\u0003\u0010\u0004J\u0011\u0010\u0006\u001a\u0004\u0018\u00010\u0005H\u0002¢\u0006\u0004\b\u0006\u0010\u0007J\u000f\u0010\t\u001a\u00020\bH\u0002¢\u0006\u0004\b\t\u0010\nJ\u0011\u0010\f\u001a\u0004\u0018\u00010\u000bH\u0002¢\u0006\u0004\b\f\u0010\rJ\u0019\u0010\u0011\u001a\u00020\u00102\b\u0010\u000f\u001a\u0004\u0018\u00010\u000eH\u0016¢\u0006\u0004\b\u0011\u0010\u0012J-\u0010\u0017\u001a\u0004\u0018\u00010\u00052\u0006\u0010\u0014\u001a\u00020\u00132\b\u0010\u0016\u001a\u0004\u0018\u00010\u00152\b\u0010\u000f\u001a\u0004\u0018\u00010\u000eH\u0016¢\u0006\u0004\b\u0017\u0010\u0018J\u000f\u0010\u0019\u001a\u00020\u0010H\u0016¢\u0006\u0004\b\u0019\u0010\u0004J\u000f\u0010\u001a\u001a\u00020\u0010H\u0016¢\u0006\u0004\b\u001a\u0010\u0004R\u001b\u0010 \u001a\u00020\u001b8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001c\u0010\u001d\u001a\u0004\b\u001e\u0010\u001fR\u001b\u0010%\u001a\u00020!8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\"\u0010\u001d\u001a\u0004\b#\u0010$¨\u0006&"}, d2 = {"Lcom/withpersona/sdk2/inquiry/internal/g;", "Landroidx/fragment/app/Fragment;", "", "<init>", "()V", "Landroid/view/View;", "Q1", "()Landroid/view/View;", "", "R1", "()Z", "LQa/a;", "O1", "()LQa/a;", "Landroid/os/Bundle;", "savedInstanceState", "", "u0", "(Landroid/os/Bundle;)V", "Landroid/view/LayoutInflater;", "inflater", "Landroid/view/ViewGroup;", "container", "y0", "(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;", "z0", "P0", "Lcom/withpersona/sdk2/inquiry/internal/f;", "D0", "Lsf/l;", "N1", "()Lcom/withpersona/sdk2/inquiry/internal/f;", "args", "Lcom/withpersona/sdk2/inquiry/internal/j;", "E0", "P1", "()Lcom/withpersona/sdk2/inquiry/internal/j;", "viewModel", "inquiry-internal_release"}, k = 1, mv = {1, 9, HttpStatusCode.NETWORK_ERROR_0}, xi = 48)
public final class g extends Fragment {
public static final int F0 = 0;
private final sf.l args = sf.m.a(new a());
private final sf.l viewModel;
static final class a extends AbstractC0767s implements Function0 {
a() {
super(0);
}
@Override
public final com.withpersona.sdk2.inquiry.internal.f invoke() {
return new com.withpersona.sdk2.inquiry.internal.f(g.this.q());
}
}
static final class b extends kotlin.coroutines.jvm.internal.m implements Function2 {
int d;
final Ra.l i;
static final class a extends kotlin.coroutines.jvm.internal.m implements Function2 {
int d;
final g e;
final Ra.l i;
a(g gVar, Ra.l lVar, vf.b bVar) {
super(2, bVar);
this.e = gVar;
this.i = lVar;
}
@Override
public final vf.b create(Object obj, vf.b bVar) {
return new a(this.e, this.i, bVar);
}
@Override
public final Object invoke(N n, vf.b bVar) {
return ((a) create(n, bVar)).invokeSuspend(Unit.a);
}
@Override
public final Object invokeSuspend(Object obj) {
Object f = wf.b.f();
int i = this.d;
if (i == 0) {
t.b(obj);
j P1 = this.e.P1();
this.d = 1;
obj = P1.A(this);
if (obj == f) {
return f;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
t.b(obj);
}
k.a aVar = (k.a) obj;
String u = aVar.u();
if (u != null) {
this.i.e().e(u);
}
if (aVar instanceof k.a.b) {
g gVar = this.e;
String l = gVar.N1().l();
Bundle bundle = new Bundle();
g gVar2 = this.e;
bundle.putString("PERSONA_ACTIVITY_RESULT", s.d.name());
k.a.b bVar = (k.a.b) aVar;
bundle.putString("INQUIRY_ID_KEY", bVar.b());
bundle.putString("INQUIRY_STATUS_KEY", bVar.c());
bundle.putParcelable("FIELDS_MAP_KEY", new n(bVar.a()));
bundle.putParcelable("COLLECTED_DATA", Ra.b.d(gVar2.P1().n().b()));
bundle.putString("SESSION_TOKEN_KEY", com.withpersona.sdk2.inquiry.internal.f.b.a(aVar.u()));
Unit unit = Unit.a;
g2.l.a(gVar, l, bundle);
} else if (aVar instanceof k.a.C0276a) {
String u2 = aVar.u();
if (u2 != null) {
this.i.e().f(u2);
}
g gVar3 = this.e;
String l2 = gVar3.N1().l();
Bundle bundle2 = new Bundle();
bundle2.putString("PERSONA_ACTIVITY_RESULT", s.e.name());
bundle2.putString("INQUIRY_ID_KEY", ((k.a.C0276a) aVar).e());
bundle2.putString("SESSION_TOKEN_KEY", com.withpersona.sdk2.inquiry.internal.f.b.a(aVar.u()));
Unit unit2 = Unit.a;
g2.l.a(gVar3, l2, bundle2);
} else if (aVar instanceof k.a.c) {
String u3 = aVar.u();
if (u3 != null) {
this.i.e().d(u3, ((k.a.c) aVar).a());
}
g gVar4 = this.e;
String l3 = gVar4.N1().l();
Bundle bundle3 = new Bundle();
bundle3.putString("PERSONA_ACTIVITY_RESULT", s.i.name());
k.a.c cVar = (k.a.c) aVar;
bundle3.putString("ERROR_DEBUG_MESSAGE_KEY", cVar.b());
bundle3.putParcelable("ERROR_CODE_KEY", cVar.c());
Unit unit3 = Unit.a;
g2.l.a(gVar4, l3, bundle3);
}
this.e.J().d1();
return Unit.a;
}
}
b(Ra.l lVar, vf.b bVar) {
super(2, bVar);
this.i = lVar;
}
@Override
public final vf.b create(Object obj, vf.b bVar) {
return g.this.new b(this.i, bVar);
}
@Override
public final Object invoke(N n, vf.b bVar) {
return ((b) create(n, bVar)).invokeSuspend(Unit.a);
}
@Override
public final Object invokeSuspend(Object obj) {
Object f = wf.b.f();
int i = this.d;
if (i == 0) {
t.b(obj);
o lifecycle = g.this.getLifecycle();
Intrinsics.checkNotNullExpressionValue(lifecycle, "<get-lifecycle>(...)");
o.b bVar = o.b.w;
a aVar = new a(g.this, this.i, null);
this.d = 1;
if (O.a(lifecycle, bVar, aVar, this) == f) {
return f;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
t.b(obj);
}
return Unit.a;
}
}
public static final class c implements InterfaceC2225b {
private final Uf.e a;
private final A b;
private final boolean c;
c(g gVar) {
this.a = gVar.P1().l();
this.b = gVar.P1().u();
this.c = gVar.N1().y();
}
@Override
public A a() {
return this.b;
}
@Override
public Uf.e b() {
return this.a;
}
@Override
public boolean c() {
return this.c;
}
}
public static final class d extends AbstractC0767s implements Function0 {
final Fragment d;
public d(Fragment fragment) {
super(0);
this.d = fragment;
}
@Override
public final Fragment invoke() {
return this.d;
}
}
public static final class e extends AbstractC0767s implements Function0 {
final Function0 d;
public e(Function0 function0) {
super(0);
this.d = function0;
}
@Override
public final h0 invoke() {
return (h0) this.d.invoke();
}
}
public static final class f extends AbstractC0767s implements Function0 {
final sf.l d;
public f(sf.l lVar) {
super(0);
this.d = lVar;
}
@Override
public final g0 invoke() {
return g2.t.a(this.d).H();
}
}
public static final class C0272g extends AbstractC0767s implements Function0 {
final Function0 d;
final sf.l e;
public C0272g(Function0 function0, sf.l lVar) {
super(0);
this.d = function0;
this.e = lVar;
}
@Override
public final n2.a invoke() {
n2.a aVar;
Function0 function0 = this.d;
if (function0 != null && (aVar = (n2.a) function0.invoke()) != null) {
return aVar;
}
androidx.lifecycle.m a = g2.t.a(this.e);
androidx.lifecycle.m mVar = a instanceof androidx.lifecycle.m ? a : null;
return mVar != null ? mVar.A() : a.a.b;
}
}
public static final class h extends AbstractC0767s implements Function0 {
final Fragment d;
final sf.l e;
public h(Fragment fragment, sf.l lVar) {
super(0);
this.d = fragment;
this.e = lVar;
}
@Override
public final f0.c invoke() {
f0.c z;
androidx.lifecycle.m a = g2.t.a(this.e);
androidx.lifecycle.m mVar = a instanceof androidx.lifecycle.m ? a : null;
if (mVar != null && (z = mVar.z()) != null) {
return z;
}
f0.c defaultViewModelProviderFactory = this.d.z();
Intrinsics.checkNotNullExpressionValue(defaultViewModelProviderFactory, "defaultViewModelProviderFactory");
return defaultViewModelProviderFactory;
}
}
public g() {
sf.l b2 = sf.m.b(p.i, new e(new d(this)));
this.viewModel = g2.t.b(this, M.b(j.class), new f(b2), new C0272g(null, b2), new h(this, b2));
}
public final com.withpersona.sdk2.inquiry.internal.f N1() {
return (com.withpersona.sdk2.inquiry.internal.f) this.args.getValue();
}
private final Qa.a O1() {
I();
m();
return null;
}
public final j P1() {
return (j) this.viewModel.getValue();
}
private final View Q1() {
Ua.b bVar;
k.b c0280b;
if (!R1()) {
return null;
}
Context x1 = x1();
Intrinsics.checkNotNullExpressionValue(x1, "requireContext(...)");
String packageName = x1.getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName, "getPackageName(...)");
String o = StringsKt.L(packageName, "com.withpersona", false, 2, null) ? N1().o() : "https://withpersona.com";
String packageName2 = x1.getPackageName();
Intrinsics.checkNotNullExpressionValue(packageName2, "getPackageName(...)");
String x = StringsKt.L(packageName2, "com.withpersona", false, 2, null) ? N1().x() : "https://webrtc-consumer.withpersona.com";
InterfaceC2043a n = N1().m() ? P1().n() : new ob.d();
if (N1().q()) {
bVar = new Ua.b(d.a.a);
} else {
StaticInquiryTemplate r = N1().r();
LocalStaticInquiryTemplate localStaticInquiryTemplate = r instanceof LocalStaticInquiryTemplate ? (LocalStaticInquiryTemplate) r : null;
bVar = localStaticInquiryTemplate != null ? new Ua.b(new d.b(localStaticInquiryTemplate.getResourceId())) : new Ua.b(d.a.a);
}
c cVar = new c(this);
e.a a2 = com.withpersona.sdk2.inquiry.internal.e.a();
androidx.fragment.app.i w1 = w1();
Intrinsics.checkNotNullExpressionValue(w1, "requireActivity(...)");
Ra.l b2 = a2.h(new Ra.h(w1)).e(new Xa.g(P1().r(), P1().p(), P1().v())).f(new Xa.o(P1().o())).l(new w(P1().t())).k(new C1118f(P1().q())).c(new C0923b(P1().m())).j(new NetworkModule(N1().w(), N1().n(), N1().j())).d(new ob.b(n)).i(new com.withpersona.sdk2.inquiry.internal.network.b(o, x)).a(bVar).g(new rb.c(cVar)).m(new u(N1().c(), N1().d())).b();
b2.a().a(N1().q() || N1().r() != null);
String i = N1().i();
j P1 = P1();
Ra.d f2 = N1().f();
String g = N1().g();
if (i != null) {
c0280b = new k.b.a(i, N1().p(), N1().g(), N1().f(), N1().u(), false, 32, null);
} else {
String s = N1().s();
String t = N1().t();
String a3 = N1().a();
String k = N1().k();
n h2 = N1().h();
c0280b = new k.b.C0280b(s, t, a3, k, N1().g(), h2 != null ? h2.a() : null, N1().v(), N1().r(), N1().q(), N1().f(), N1().u(), false, 2048, null);
}
k.b bVar2 = c0280b;
Intrinsics.f(b2);
P1.w(this, b2, bVar2, f2, g);
Context x12 = x1();
Intrinsics.checkNotNullExpressionValue(x12, "requireContext(...)");
I i2 = new I(x12, (AttributeSet) null, 2, (DefaultConstructorMarker) null);
o lifecycle = getLifecycle();
Intrinsics.checkNotNullExpressionValue(lifecycle, "<get-lifecycle>(...)");
I.b(i2, lifecycle, P1().s(), (o.b) null, new f8.A(P.l(x.a(E.a, P1().B()), x.a(C2340b.b, b2.g()))), 4, (Object) null);
androidx.lifecycle.x Z = Z();
Intrinsics.checkNotNullExpressionValue(Z, "getViewLifecycleOwner(...)");
Rf.i.d(y.a(Z), (CoroutineContext) null, (Rf.P) null, new b(b2, null), 3, (Object) null);
O1();
return i2;
}
private final boolean R1() {
String p = N1().p();
if (p == null || !StringsKt.Q(p, '\n', false, 2, null)) {
return true;
}
String l = N1().l();
Bundle bundle = new Bundle();
bundle.putString("PERSONA_ACTIVITY_RESULT", s.i.name());
bundle.putString("ERROR_DEBUG_MESSAGE_KEY", "Invalid session token.");
bundle.putParcelable("ERROR_CODE_KEY", Hb.d.F);
Unit unit = Unit.a;
g2.l.a(this, l, bundle);
J().d1();
return false;
}
public void P0() {
super.P0();
j P1 = P1();
Context applicationContext = x1().getApplicationContext();
Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
P1.y(applicationContext);
}
public void u0(Bundle savedInstanceState) {
super.u0(savedInstanceState);
Context x1 = x1();
Intrinsics.checkNotNullExpressionValue(x1, "requireContext(...)");
Ta.c.a(x1);
if (N1().e() || N1().b()) {
Ta.c.d(x1);
}
}
public View y0(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
Intrinsics.checkNotNullParameter(inflater, "inflater");
super.y0(inflater, container, savedInstanceState);
Context x1 = x1();
Intrinsics.checkNotNullExpressionValue(x1, "requireContext(...)");
try {
return Q1();
} catch (Exception e2) {
if (!N1().b()) {
throw e2;
}
if (N1().e()) {
Ta.c.c(x1).c(e2);
}
String l = N1().l();
Bundle bundle = new Bundle();
bundle.putString("PERSONA_ACTIVITY_RESULT", s.i.name());
bundle.putString("ERROR_DEBUG_MESSAGE_KEY", "A fatal exception occurred.");
bundle.putParcelable("ERROR_CODE_KEY", Hb.d.K);
Unit unit = Unit.a;
g2.l.a(this, l, bundle);
J().d1();
return null;
}
}
public void z0() {
Context x1 = x1();
Intrinsics.checkNotNullExpressionValue(x1, "requireContext(...)");
Ta.c.e(x1);
O1();
super.z0();
P1().x();
}
}