Flash Cleaner v1.0.14版本的 MD5 值为:afbed0179616af7c25ad332b251e759c
以下内容为反编译后的 AdManager.java 源代码,内容仅作参考
package dev.applabz.ad;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.util.Log;
import androidx.activity.m;
import androidx.lifecycle.k0;
import bb.g;
import co.notix.Notix;
import co.notix.contentwrapper.NotixContentWrapper;
import co.notix.domain.RequestVars;
import co.notix.log.LogLevel;
import co.notix.push.NotixPush;
import com.bumptech.glide.f;
import dev.applabz.ad.activity.NotixInterstitialImage;
import dev.applabz.ad.model.AdConfiguration;
import dev.applabz.ad.model.NotixConfiguration;
import dev.applabz.push.NotificationModifier;
import dev.applabz.push.NotixResolver;
import hf.b1;
import hf.p;
import hf.q;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.UUID;
import kotlin.jvm.internal.e;
import kotlin.jvm.internal.j;
import me.k;
import o8.b;
import org.litepal.BuildConfig;
import qe.d;
public final class AdManager {
private AdConfiguration adsConfiguration;
private b downloadIdProvider;
private r8.b fingerprintProvider;
private boolean isInitInProgress;
private NotixConfiguration notixConfiguration;
private b1 onClickJob;
private p8.a params;
public static final Companion Companion = new Companion(null);
private static ye.a onInterstitialDismissed = AdManager$Companion$onInterstitialDismissed$1.INSTANCE;
private static final Map<String, NotixContentWrapper> bannerContents = new LinkedHashMap();
private static final Map<String, NotixContentWrapper> interstitialContents = new LinkedHashMap();
private static final Map<String, NotixContentWrapper> fspContents = new LinkedHashMap();
private final Notix.Companion notix = Notix.Companion;
private final p initialized = g.b();
public static final class Companion {
private Companion() {
}
public Companion(e eVar) {
this();
}
public final Map<String, NotixContentWrapper> getBannerContents() {
return AdManager.bannerContents;
}
public final Map<String, NotixContentWrapper> getFspContents() {
return AdManager.fspContents;
}
public final Map<String, NotixContentWrapper> getInterstitialContents() {
return AdManager.interstitialContents;
}
public final ye.a getOnInterstitialDismissed() {
return AdManager.onInterstitialDismissed;
}
public final void setOnInterstitialDismissed(ye.a aVar) {
j.C(aVar, "<set-?>");
AdManager.onInterstitialDismissed = aVar;
}
}
public static void init$default(AdManager adManager, Context context, ye.a aVar, int i10, Object obj) {
if ((i10 & 2) != 0) {
aVar = AdManager$init$1.INSTANCE;
}
adManager.init(context, aVar);
}
public final void initNotix(p8.a aVar) {
String userAgent;
String userAgent2;
StringBuilder sb2 = new StringBuilder();
sb2.append(aVar);
sb2.append(", ");
userAgent = AdManagerKt.getUserAgent(aVar);
sb2.append(userAgent);
Log.d("MY== initNotix", sb2.toString());
this.notix.setLogLevel(LogLevel.FULL);
this.notix.setCallbackHandler(new NotixCallbackHandler(aVar));
userAgent2 = AdManagerKt.getUserAgent(aVar);
if (userAgent2 != null) {
this.notix.setUserAgent(userAgent2);
}
}
private final void interstitialClicked() {
}
private final void interstitialDismissed() {
onInterstitialDismissed.invoke();
}
private final void interstitialError() {
}
public final Object resolveParams(Context context, d dVar) {
AdManager$resolveParams$1 adManager$resolveParams$1;
int i10;
p8.a aVar;
try {
if (dVar instanceof AdManager$resolveParams$1) {
adManager$resolveParams$1 = (AdManager$resolveParams$1) dVar;
int i11 = adManager$resolveParams$1.label;
if ((i11 & Integer.MIN_VALUE) != 0) {
adManager$resolveParams$1.label = i11 - Integer.MIN_VALUE;
Object obj = adManager$resolveParams$1.result;
re.a aVar2 = re.a.COROUTINE_SUSPENDED;
i10 = adManager$resolveParams$1.label;
if (i10 == 0) {
if (i10 == 1) {
g.T(obj);
} else {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
} else {
g.T(obj);
b bVar = this.downloadIdProvider;
if (bVar != null) {
adManager$resolveParams$1.label = 1;
Log.d("APPLABZ_TRACK_DEV", "DownloadId waiting for load");
od.e eVar = bVar.f14113c;
Context context2 = bVar.f14111a;
eVar.getClass();
p8.a x10 = od.e.x(context2);
if (x10 == null) {
obj = bVar.f14114d.W(adManager$resolveParams$1);
} else {
obj = x10;
}
if (obj == aVar2) {
return aVar2;
}
} else {
j.v0("downloadIdProvider");
throw null;
}
}
aVar = (p8.a) obj;
Log.d("DEVVV APPLAB", "did: " + aVar);
if (aVar.f14489i != null) {
throw new Exception();
}
return aVar;
}
}
if (i10 == 0) {
}
aVar = (p8.a) obj;
Log.d("DEVVV APPLAB", "did: " + aVar);
if (aVar.f14489i != null) {
}
} catch (Throwable unused) {
return new p8.a((String) null, (String) null, (String) null, (String) null, (String) null, (Long) null, (Long) null, (String) null, 511);
}
adManager$resolveParams$1 = new AdManager$resolveParams$1(this, dVar);
Object obj2 = adManager$resolveParams$1.result;
re.a aVar22 = re.a.COROUTINE_SUSPENDED;
i10 = adManager$resolveParams$1.label;
}
private final void showNotixInterstitialImage(Context context) {
Intent intent = new Intent(context, NotixInterstitialImage.class);
Object obj = n2.e.f13468a;
o2.a.b(context, intent, null);
}
public final Object enablePush(Context context, d dVar) {
AdManager$enablePush$1 adManager$enablePush$1;
int i10;
AdManager adManager;
Context context2;
p8.a aVar;
NotixConfiguration notixConfiguration;
String fallbackNotixAppId;
String fallbackNotixToken;
String fallbackNotixPushZoneId;
String str;
if (dVar instanceof AdManager$enablePush$1) {
adManager$enablePush$1 = (AdManager$enablePush$1) dVar;
int i11 = adManager$enablePush$1.label;
if ((i11 & Integer.MIN_VALUE) != 0) {
adManager$enablePush$1.label = i11 - Integer.MIN_VALUE;
Object obj = adManager$enablePush$1.result;
re.a aVar2 = re.a.COROUTINE_SUSPENDED;
i10 = adManager$enablePush$1.label;
if (i10 != 0) {
g.T(obj);
p pVar = this.initialized;
adManager$enablePush$1.L$0 = this;
adManager$enablePush$1.L$1 = context;
adManager$enablePush$1.label = 1;
if (((q) pVar).W(adManager$enablePush$1) == aVar2) {
return aVar2;
}
adManager = this;
context2 = context;
} else if (i10 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
} else {
context2 = (Context) adManager$enablePush$1.L$1;
adManager = (AdManager) adManager$enablePush$1.L$0;
g.T(obj);
}
NotixPush.Companion companion = NotixPush.Companion;
aVar = adManager.params;
if (aVar != null || (fallbackNotixAppId = aVar.f14482b) == null) {
notixConfiguration = adManager.notixConfiguration;
if (notixConfiguration != null) {
j.v0("notixConfiguration");
throw null;
}
fallbackNotixAppId = notixConfiguration.getFallbackNotixAppId();
}
p8.a aVar3 = adManager.params;
if (aVar3 == null || (fallbackNotixToken = aVar3.f14485e) == null) {
NotixConfiguration notixConfiguration2 = adManager.notixConfiguration;
if (notixConfiguration2 == null) {
j.v0("notixConfiguration");
throw null;
}
fallbackNotixToken = notixConfiguration2.getFallbackNotixToken();
}
p8.a aVar4 = adManager.params;
if (aVar4 == null || (fallbackNotixPushZoneId = aVar4.f14481a) == null) {
NotixConfiguration notixConfiguration3 = adManager.notixConfiguration;
if (notixConfiguration3 == null) {
j.v0("notixConfiguration");
throw null;
}
fallbackNotixPushZoneId = notixConfiguration3.getFallbackNotixPushZoneId();
}
String str2 = fallbackNotixPushZoneId;
p8.a aVar5 = adManager.params;
if (aVar5 == null || (str = aVar5.f14483c) == null) {
str = BuildConfig.FLAVOR;
}
companion.init(context2, fallbackNotixAppId, fallbackNotixToken, new RequestVars(str2, str, (aVar5 == null || (r8 = AdManagerKt.getBrowser(aVar5)) == null) ? "Other" : "Other", null, null, 24, null));
companion.setNotificationModifier(new NotificationModifier());
NotixConfiguration notixConfiguration4 = adManager.notixConfiguration;
if (notixConfiguration4 != null) {
companion.setTargetEventHandler(new NotixResolver(notixConfiguration4));
return k.f13408a;
}
j.v0("notixConfiguration");
throw null;
}
}
adManager$enablePush$1 = new AdManager$enablePush$1(this, dVar);
Object obj2 = adManager$enablePush$1.result;
re.a aVar22 = re.a.COROUTINE_SUSPENDED;
i10 = adManager$enablePush$1.label;
if (i10 != 0) {
}
NotixPush.Companion companion2 = NotixPush.Companion;
aVar = adManager.params;
if (aVar != null) {
}
notixConfiguration = adManager.notixConfiguration;
if (notixConfiguration != null) {
}
}
public final void init(Context app, ye.a onInitDone) {
j.C(app, "app");
j.C(onInitDone, "onInitDone");
if (this.isInitInProgress) {
return;
}
this.isInitInProgress = true;
k0 k0Var = k0.f2146i;
j.B(k0Var, "get()");
nc.b.n(f.a0(k0Var), null, 0, new AdManager$init$2(this, app, onInitDone, null), 3);
}
public final Object initNotixInterstitial(m mVar, d dVar) {
Object W = ((q) this.initialized).W(dVar);
return W == re.a.COROUTINE_SUSPENDED ? W : k.f13408a;
}
public final Object loadBanner(Context context, d dVar) {
AdManager$loadBanner$1 adManager$loadBanner$1;
re.a aVar;
int i10;
Context context2;
AdManager adManager;
p b10;
Object W;
AdManager adManager2;
Context context3;
StringBuilder sb2;
String str;
p8.a aVar2;
Object obj;
long fallbackNotixBZoneId;
if (dVar instanceof AdManager$loadBanner$1) {
adManager$loadBanner$1 = (AdManager$loadBanner$1) dVar;
int i11 = adManager$loadBanner$1.label;
if ((i11 & Integer.MIN_VALUE) != 0) {
adManager$loadBanner$1.label = i11 - Integer.MIN_VALUE;
Object obj2 = adManager$loadBanner$1.result;
aVar = re.a.COROUTINE_SUSPENDED;
i10 = adManager$loadBanner$1.label;
if (i10 == 0) {
if (i10 != 1) {
if (i10 != 2) {
if (i10 == 3) {
g.T(obj2);
return obj2;
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
sb2 = (StringBuilder) adManager$loadBanner$1.L$4;
str = (String) adManager$loadBanner$1.L$3;
b10 = (p) adManager$loadBanner$1.L$2;
AdManager adManager3 = (AdManager) adManager$loadBanner$1.L$0;
g.T(obj2);
context3 = (Context) adManager$loadBanner$1.L$1;
adManager2 = adManager3;
sb2.append(((Boolean) obj2).booleanValue());
sb2.append(" | notixParams: ");
sb2.append(adManager2.params);
Log.d(str, sb2.toString());
NotixContentWrapper notixContentWrapper = new NotixContentWrapper();
String uuid = UUID.randomUUID().toString();
j.B(uuid, "randomUUID().toString()");
bannerContents.put(uuid, notixContentWrapper);
aVar2 = adManager2.params;
if (aVar2 == null) {
Long l10 = aVar2.f14487g;
if (l10 != null) {
fallbackNotixBZoneId = l10.longValue();
} else {
NotixConfiguration notixConfiguration = adManager2.notixConfiguration;
if (notixConfiguration != null) {
fallbackNotixBZoneId = notixConfiguration.getFallbackNotixBZoneId();
} else {
j.v0("notixConfiguration");
throw null;
}
}
Long l11 = new Long(fallbackNotixBZoneId);
String str2 = aVar2.f14481a;
if (str2 == null) {
str2 = "undefined";
}
String str3 = str2;
String str4 = aVar2.f14483c;
if (str4 == null) {
str4 = BuildConfig.FLAVOR;
}
String str5 = str4;
String browser = AdManagerKt.getBrowser(aVar2);
if (browser == null) {
browser = "Other";
}
obj = null;
notixContentWrapper.load(context3, (r16 & 2) != 0 ? null : l11, (r16 & 4) != 0 ? null : new RequestVars(str3, str5, browser, null, null, 24, null), (r16 & 8) != 0 ? null : null, new AdManager$loadBanner$2$1(notixContentWrapper, b10, uuid), (r16 & 32) != 0 ? null : new AdManager$loadBanner$2$2(uuid, b10));
} else {
obj = null;
}
adManager$loadBanner$1.L$0 = obj;
adManager$loadBanner$1.L$1 = obj;
adManager$loadBanner$1.L$2 = obj;
adManager$loadBanner$1.L$3 = obj;
adManager$loadBanner$1.L$4 = obj;
adManager$loadBanner$1.label = 3;
obj2 = ((q) b10).W(adManager$loadBanner$1);
if (obj2 != aVar) {
return aVar;
}
return obj2;
}
context2 = (Context) adManager$loadBanner$1.L$1;
g.T(obj2);
adManager = (AdManager) adManager$loadBanner$1.L$0;
} else {
g.T(obj2);
p pVar = this.initialized;
adManager$loadBanner$1.L$0 = this;
context2 = context;
adManager$loadBanner$1.L$1 = context2;
adManager$loadBanner$1.label = 1;
if (((q) pVar).W(adManager$loadBanner$1) == aVar) {
return aVar;
}
adManager = this;
}
b10 = g.b();
StringBuilder l12 = j2.g.l("BANNER: request content | initialized: ");
p pVar2 = adManager.initialized;
adManager$loadBanner$1.L$0 = adManager;
adManager$loadBanner$1.L$1 = context2;
adManager$loadBanner$1.L$2 = b10;
adManager$loadBanner$1.L$3 = "MY==";
adManager$loadBanner$1.L$4 = l12;
adManager$loadBanner$1.label = 2;
W = ((q) pVar2).W(adManager$loadBanner$1);
if (W != aVar) {
return aVar;
}
adManager2 = adManager;
context3 = context2;
sb2 = l12;
obj2 = W;
str = "MY==";
sb2.append(((Boolean) obj2).booleanValue());
sb2.append(" | notixParams: ");
sb2.append(adManager2.params);
Log.d(str, sb2.toString());
NotixContentWrapper notixContentWrapper2 = new NotixContentWrapper();
String uuid2 = UUID.randomUUID().toString();
j.B(uuid2, "randomUUID().toString()");
bannerContents.put(uuid2, notixContentWrapper2);
aVar2 = adManager2.params;
if (aVar2 == null) {
}
adManager$loadBanner$1.L$0 = obj;
adManager$loadBanner$1.L$1 = obj;
adManager$loadBanner$1.L$2 = obj;
adManager$loadBanner$1.L$3 = obj;
adManager$loadBanner$1.L$4 = obj;
adManager$loadBanner$1.label = 3;
obj2 = ((q) b10).W(adManager$loadBanner$1);
if (obj2 != aVar) {
}
}
}
adManager$loadBanner$1 = new AdManager$loadBanner$1(this, dVar);
Object obj22 = adManager$loadBanner$1.result;
aVar = re.a.COROUTINE_SUSPENDED;
i10 = adManager$loadBanner$1.label;
if (i10 == 0) {
}
b10 = g.b();
StringBuilder l122 = j2.g.l("BANNER: request content | initialized: ");
p pVar22 = adManager.initialized;
adManager$loadBanner$1.L$0 = adManager;
adManager$loadBanner$1.L$1 = context2;
adManager$loadBanner$1.L$2 = b10;
adManager$loadBanner$1.L$3 = "MY==";
adManager$loadBanner$1.L$4 = l122;
adManager$loadBanner$1.label = 2;
W = ((q) pVar22).W(adManager$loadBanner$1);
if (W != aVar) {
}
}
public final Object loadFullScreenPush(Context context, d dVar) {
AdManager$loadFullScreenPush$1 adManager$loadFullScreenPush$1;
re.a aVar;
int i10;
Context context2;
AdManager adManager;
p b10;
Object W;
AdManager adManager2;
Context context3;
StringBuilder sb2;
String str;
p8.a aVar2;
Object obj;
long fallbackNotixFSPZoneId;
String str2;
if (dVar instanceof AdManager$loadFullScreenPush$1) {
adManager$loadFullScreenPush$1 = (AdManager$loadFullScreenPush$1) dVar;
int i11 = adManager$loadFullScreenPush$1.label;
if ((i11 & Integer.MIN_VALUE) != 0) {
adManager$loadFullScreenPush$1.label = i11 - Integer.MIN_VALUE;
Object obj2 = adManager$loadFullScreenPush$1.result;
aVar = re.a.COROUTINE_SUSPENDED;
i10 = adManager$loadFullScreenPush$1.label;
if (i10 == 0) {
if (i10 != 1) {
if (i10 != 2) {
if (i10 == 3) {
g.T(obj2);
return obj2;
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
sb2 = (StringBuilder) adManager$loadFullScreenPush$1.L$4;
str = (String) adManager$loadFullScreenPush$1.L$3;
b10 = (p) adManager$loadFullScreenPush$1.L$2;
AdManager adManager3 = (AdManager) adManager$loadFullScreenPush$1.L$0;
g.T(obj2);
context3 = (Context) adManager$loadFullScreenPush$1.L$1;
adManager2 = adManager3;
sb2.append(((Boolean) obj2).booleanValue());
sb2.append(" | notixParams: ");
sb2.append(adManager2.params);
Log.d(str, sb2.toString());
NotixContentWrapper notixContentWrapper = new NotixContentWrapper();
String uuid = UUID.randomUUID().toString();
j.B(uuid, "randomUUID().toString()");
fspContents.put(uuid, notixContentWrapper);
aVar2 = adManager2.params;
if (aVar2 == null) {
if (AdManagerKt.getFspZone(aVar2) != null && !j.u(AdManagerKt.getFspZone(aVar2), BuildConfig.FLAVOR)) {
String fspZone = AdManagerKt.getFspZone(aVar2);
j.z(fspZone);
fallbackNotixFSPZoneId = Long.parseLong(fspZone);
} else {
NotixConfiguration notixConfiguration = adManager2.notixConfiguration;
if (notixConfiguration != null) {
fallbackNotixFSPZoneId = notixConfiguration.getFallbackNotixFSPZoneId();
} else {
j.v0("notixConfiguration");
throw null;
}
}
Long l10 = new Long(fallbackNotixFSPZoneId);
String str3 = aVar2.f14481a;
if (str3 == null) {
str3 = "undefined";
}
String str4 = str3;
String str5 = aVar2.f14483c;
if (str5 == null) {
str2 = BuildConfig.FLAVOR;
} else {
str2 = str5;
}
String browser = AdManagerKt.getBrowser(aVar2);
if (browser == null) {
browser = "Other";
}
obj = null;
notixContentWrapper.load(context3, (r16 & 2) != 0 ? null : l10, (r16 & 4) != 0 ? null : new RequestVars(str4, str2, browser, null, null, 24, null), (r16 & 8) != 0 ? null : null, new AdManager$loadFullScreenPush$2$1(notixContentWrapper, b10, uuid), (r16 & 32) != 0 ? null : new AdManager$loadFullScreenPush$2$2(uuid, b10));
} else {
obj = null;
}
adManager$loadFullScreenPush$1.L$0 = obj;
adManager$loadFullScreenPush$1.L$1 = obj;
adManager$loadFullScreenPush$1.L$2 = obj;
adManager$loadFullScreenPush$1.L$3 = obj;
adManager$loadFullScreenPush$1.L$4 = obj;
adManager$loadFullScreenPush$1.label = 3;
obj2 = ((q) b10).W(adManager$loadFullScreenPush$1);
if (obj2 != aVar) {
return aVar;
}
return obj2;
}
context2 = (Context) adManager$loadFullScreenPush$1.L$1;
g.T(obj2);
adManager = (AdManager) adManager$loadFullScreenPush$1.L$0;
} else {
g.T(obj2);
p pVar = this.initialized;
adManager$loadFullScreenPush$1.L$0 = this;
context2 = context;
adManager$loadFullScreenPush$1.L$1 = context2;
adManager$loadFullScreenPush$1.label = 1;
if (((q) pVar).W(adManager$loadFullScreenPush$1) == aVar) {
return aVar;
}
adManager = this;
}
b10 = g.b();
StringBuilder l11 = j2.g.l("FSP: request content | initialized: ");
p pVar2 = adManager.initialized;
adManager$loadFullScreenPush$1.L$0 = adManager;
adManager$loadFullScreenPush$1.L$1 = context2;
adManager$loadFullScreenPush$1.L$2 = b10;
adManager$loadFullScreenPush$1.L$3 = "MY==";
adManager$loadFullScreenPush$1.L$4 = l11;
adManager$loadFullScreenPush$1.label = 2;
W = ((q) pVar2).W(adManager$loadFullScreenPush$1);
if (W != aVar) {
return aVar;
}
adManager2 = adManager;
context3 = context2;
sb2 = l11;
obj2 = W;
str = "MY==";
sb2.append(((Boolean) obj2).booleanValue());
sb2.append(" | notixParams: ");
sb2.append(adManager2.params);
Log.d(str, sb2.toString());
NotixContentWrapper notixContentWrapper2 = new NotixContentWrapper();
String uuid2 = UUID.randomUUID().toString();
j.B(uuid2, "randomUUID().toString()");
fspContents.put(uuid2, notixContentWrapper2);
aVar2 = adManager2.params;
if (aVar2 == null) {
}
adManager$loadFullScreenPush$1.L$0 = obj;
adManager$loadFullScreenPush$1.L$1 = obj;
adManager$loadFullScreenPush$1.L$2 = obj;
adManager$loadFullScreenPush$1.L$3 = obj;
adManager$loadFullScreenPush$1.L$4 = obj;
adManager$loadFullScreenPush$1.label = 3;
obj2 = ((q) b10).W(adManager$loadFullScreenPush$1);
if (obj2 != aVar) {
}
}
}
adManager$loadFullScreenPush$1 = new AdManager$loadFullScreenPush$1(this, dVar);
Object obj22 = adManager$loadFullScreenPush$1.result;
aVar = re.a.COROUTINE_SUSPENDED;
i10 = adManager$loadFullScreenPush$1.label;
if (i10 == 0) {
}
b10 = g.b();
StringBuilder l112 = j2.g.l("FSP: request content | initialized: ");
p pVar22 = adManager.initialized;
adManager$loadFullScreenPush$1.L$0 = adManager;
adManager$loadFullScreenPush$1.L$1 = context2;
adManager$loadFullScreenPush$1.L$2 = b10;
adManager$loadFullScreenPush$1.L$3 = "MY==";
adManager$loadFullScreenPush$1.L$4 = l112;
adManager$loadFullScreenPush$1.label = 2;
W = ((q) pVar22).W(adManager$loadFullScreenPush$1);
if (W != aVar) {
}
}
public final Object loadNotixInterstitial(Context context, d dVar) {
AdManager$loadNotixInterstitial$1 adManager$loadNotixInterstitial$1;
re.a aVar;
int i10;
Context context2;
AdManager adManager;
p b10;
Object W;
AdManager adManager2;
Context context3;
StringBuilder sb2;
String str;
p8.a aVar2;
Object obj;
long fallbackNotixIZoneId;
if (dVar instanceof AdManager$loadNotixInterstitial$1) {
adManager$loadNotixInterstitial$1 = (AdManager$loadNotixInterstitial$1) dVar;
int i11 = adManager$loadNotixInterstitial$1.label;
if ((i11 & Integer.MIN_VALUE) != 0) {
adManager$loadNotixInterstitial$1.label = i11 - Integer.MIN_VALUE;
Object obj2 = adManager$loadNotixInterstitial$1.result;
aVar = re.a.COROUTINE_SUSPENDED;
i10 = adManager$loadNotixInterstitial$1.label;
if (i10 == 0) {
if (i10 != 1) {
if (i10 != 2) {
if (i10 == 3) {
g.T(obj2);
return obj2;
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
sb2 = (StringBuilder) adManager$loadNotixInterstitial$1.L$4;
str = (String) adManager$loadNotixInterstitial$1.L$3;
b10 = (p) adManager$loadNotixInterstitial$1.L$2;
AdManager adManager3 = (AdManager) adManager$loadNotixInterstitial$1.L$0;
g.T(obj2);
context3 = (Context) adManager$loadNotixInterstitial$1.L$1;
adManager2 = adManager3;
sb2.append(((Boolean) obj2).booleanValue());
sb2.append(" | notixParams: ");
sb2.append(adManager2.params);
Log.d(str, sb2.toString());
NotixContentWrapper notixContentWrapper = new NotixContentWrapper();
String uuid = UUID.randomUUID().toString();
j.B(uuid, "randomUUID().toString()");
interstitialContents.put(uuid, notixContentWrapper);
aVar2 = adManager2.params;
if (aVar2 == null) {
Long l10 = aVar2.f14486f;
if (l10 != null) {
fallbackNotixIZoneId = l10.longValue();
} else {
NotixConfiguration notixConfiguration = adManager2.notixConfiguration;
if (notixConfiguration != null) {
fallbackNotixIZoneId = notixConfiguration.getFallbackNotixIZoneId();
} else {
j.v0("notixConfiguration");
throw null;
}
}
Long l11 = new Long(fallbackNotixIZoneId);
String str2 = aVar2.f14481a;
if (str2 == null) {
str2 = "undefined";
}
String str3 = str2;
String str4 = aVar2.f14483c;
if (str4 == null) {
str4 = BuildConfig.FLAVOR;
}
String str5 = str4;
String browser = AdManagerKt.getBrowser(aVar2);
if (browser == null) {
browser = "Other";
}
obj = null;
notixContentWrapper.load(context3, (r16 & 2) != 0 ? null : l11, (r16 & 4) != 0 ? null : new RequestVars(str3, str5, browser, null, null, 24, null), (r16 & 8) != 0 ? null : null, new AdManager$loadNotixInterstitial$2$1(notixContentWrapper, b10, uuid), (r16 & 32) != 0 ? null : new AdManager$loadNotixInterstitial$2$2(uuid, b10));
} else {
obj = null;
}
adManager$loadNotixInterstitial$1.L$0 = obj;
adManager$loadNotixInterstitial$1.L$1 = obj;
adManager$loadNotixInterstitial$1.L$2 = obj;
adManager$loadNotixInterstitial$1.L$3 = obj;
adManager$loadNotixInterstitial$1.L$4 = obj;
adManager$loadNotixInterstitial$1.label = 3;
obj2 = ((q) b10).W(adManager$loadNotixInterstitial$1);
if (obj2 != aVar) {
return aVar;
}
return obj2;
}
context2 = (Context) adManager$loadNotixInterstitial$1.L$1;
g.T(obj2);
adManager = (AdManager) adManager$loadNotixInterstitial$1.L$0;
} else {
g.T(obj2);
p pVar = this.initialized;
adManager$loadNotixInterstitial$1.L$0 = this;
context2 = context;
adManager$loadNotixInterstitial$1.L$1 = context2;
adManager$loadNotixInterstitial$1.label = 1;
if (((q) pVar).W(adManager$loadNotixInterstitial$1) == aVar) {
return aVar;
}
adManager = this;
}
b10 = g.b();
StringBuilder l12 = j2.g.l("INTERSTITIAL: request content | initialized: ");
p pVar2 = adManager.initialized;
adManager$loadNotixInterstitial$1.L$0 = adManager;
adManager$loadNotixInterstitial$1.L$1 = context2;
adManager$loadNotixInterstitial$1.L$2 = b10;
adManager$loadNotixInterstitial$1.L$3 = "MY==";
adManager$loadNotixInterstitial$1.L$4 = l12;
adManager$loadNotixInterstitial$1.label = 2;
W = ((q) pVar2).W(adManager$loadNotixInterstitial$1);
if (W != aVar) {
return aVar;
}
adManager2 = adManager;
context3 = context2;
sb2 = l12;
obj2 = W;
str = "MY==";
sb2.append(((Boolean) obj2).booleanValue());
sb2.append(" | notixParams: ");
sb2.append(adManager2.params);
Log.d(str, sb2.toString());
NotixContentWrapper notixContentWrapper2 = new NotixContentWrapper();
String uuid2 = UUID.randomUUID().toString();
j.B(uuid2, "randomUUID().toString()");
interstitialContents.put(uuid2, notixContentWrapper2);
aVar2 = adManager2.params;
if (aVar2 == null) {
}
adManager$loadNotixInterstitial$1.L$0 = obj;
adManager$loadNotixInterstitial$1.L$1 = obj;
adManager$loadNotixInterstitial$1.L$2 = obj;
adManager$loadNotixInterstitial$1.L$3 = obj;
adManager$loadNotixInterstitial$1.L$4 = obj;
adManager$loadNotixInterstitial$1.label = 3;
obj2 = ((q) b10).W(adManager$loadNotixInterstitial$1);
if (obj2 != aVar) {
}
}
}
adManager$loadNotixInterstitial$1 = new AdManager$loadNotixInterstitial$1(this, dVar);
Object obj22 = adManager$loadNotixInterstitial$1.result;
aVar = re.a.COROUTINE_SUSPENDED;
i10 = adManager$loadNotixInterstitial$1.label;
if (i10 == 0) {
}
b10 = g.b();
StringBuilder l122 = j2.g.l("INTERSTITIAL: request content | initialized: ");
p pVar22 = adManager.initialized;
adManager$loadNotixInterstitial$1.L$0 = adManager;
adManager$loadNotixInterstitial$1.L$1 = context2;
adManager$loadNotixInterstitial$1.L$2 = b10;
adManager$loadNotixInterstitial$1.L$3 = "MY==";
adManager$loadNotixInterstitial$1.L$4 = l122;
adManager$loadNotixInterstitial$1.label = 2;
W = ((q) pVar22).W(adManager$loadNotixInterstitial$1);
if (W != aVar) {
}
}
public final void openOnclickLink(Context context) {
String defaultOnclickZone;
j.C(context, "context");
StringBuilder sb2 = new StringBuilder("https://intorterraon.com/4/");
p8.a aVar = this.params;
if (aVar == null || (defaultOnclickZone = AdManagerKt.getOnclickZone(aVar)) == null) {
AdConfiguration adConfiguration = this.adsConfiguration;
if (adConfiguration == null) {
j.v0("adsConfiguration");
throw null;
}
defaultOnclickZone = adConfiguration.getDefaultOnclickZone();
}
sb2.append(defaultOnclickZone);
context.startActivity(new Intent("android.intent.action.VIEW", Uri.parse(sb2.toString())));
}
public final void setConfiguration(NotixConfiguration notixConfiguration, AdConfiguration adsConfiguration) {
j.C(notixConfiguration, "notixConfiguration");
j.C(adsConfiguration, "adsConfiguration");
this.adsConfiguration = adsConfiguration;
this.notixConfiguration = notixConfiguration;
}
public final void setProviders(b downloadIdProvider, r8.b fingerprintProvider) {
j.C(downloadIdProvider, "downloadIdProvider");
j.C(fingerprintProvider, "fingerprintProvider");
this.downloadIdProvider = downloadIdProvider;
this.fingerprintProvider = fingerprintProvider;
}
public final void showInterstitial(Context context) {
j.C(context, "context");
showNotixInterstitialImage(context);
}
public final void startOnclickJob(Context context) {
j.C(context, "context");
k0 k0Var = k0.f2146i;
j.B(k0Var, "get()");
nc.b.n(f.a0(k0Var), null, 0, new AdManager$startOnclickJob$1(this, context, null), 3);
}
public final void stopOnclickJob() {
Log.d("APPLABZ_TRACK_DEV", "cancel job");
b1 b1Var = this.onClickJob;
if (b1Var != null) {
b1Var.a(null);
}
}
}