MyRecorder v1.01.90.0219版本的 MD5 值为:c361f51174a0bf833abfa72929caf8d3
以下内容为反编译后的 j.java 源代码,内容仅作参考
package dj;
import ak.k0;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.view.MotionEvent;
import android.webkit.WebView;
import android.webkit.WebViewRenderProcess;
import com.facebook.appevents.internal.ViewHierarchyConstants;
import com.smaato.sdk.video.vast.model.Tracking;
import com.vungle.ads.ServiceLocator;
import com.vungle.ads.internal.protos.Sdk$SDKMetric;
import ij.c;
import java.io.File;
import java.util.List;
import java.util.Locale;
import java.util.concurrent.Executor;
import java.util.concurrent.atomic.AtomicBoolean;
import jj.p;
import nk.s;
import nk.t;
import ol.u;
import qi.a2;
import qi.i2;
import qi.n2;
import qi.y0;
import xi.g;
public final class j implements c.a, c.b {
private static final String ACTION = "action";
public static final String ACTION_WITH_VALUE = "actionWithValue";
public static final String CLOSE = "close";
public static final String CONSENT_ACTION = "consentAction";
public static final String CREATIVE_HEARTBEAT = "creativeHeartbeat";
public static final a Companion = new a(null);
public static final String ERROR = "error";
private static final double HEARTBEAT_INTERVAL = 6.0d;
public static final String OPEN = "open";
private static final String OPEN_NON_MRAID = "openNonMraid";
public static final String OPEN_PRIVACY = "openPrivacy";
public static final String SET_ORIENTATION_PROPERTIES = "setOrientationProperties";
public static final String SUCCESSFUL_VIEW = "successfulView";
private static final String TAG = "MRAIDPresenter";
public static final String TPAT = "tpat";
private static final String USE_CUSTOM_CLOSE = "useCustomClose";
private static final String USE_CUSTOM_PRIVACY = "useCustomPrivacy";
public static final String VIDEO_LENGTH = "videoLength";
public static final String VIDEO_VIEWED = "videoViewed";
private Long adStartTime;
private boolean adViewed;
private final ij.b adWidget;
private final xi.b advertisement;
private boolean backEnabled;
private final xi.e bidPayload;
private dj.a bus;
private final ak.l clickCoordinateTracker$delegate;
private Executor executor;
private final ak.l executors$delegate;
private boolean heartbeatEnabled;
private final AtomicBoolean isDestroying;
private final aj.d omTracker;
private final ak.l pathProvider$delegate;
private final xi.k placement;
private o presenterDelegate;
private final ak.l scheduler$delegate;
private final AtomicBoolean sendReportIncentivized;
private final ak.l suspendableTimer$delegate;
private String userId;
private final ak.l vungleApiClient$delegate;
private final hj.f vungleWebClient;
public static final class a {
private a() {
}
public a(nk.j jVar) {
this();
}
public static void getACTION_WITH_VALUE$vungle_ads_release$annotations() {
}
public static void getCLOSE$vungle_ads_release$annotations() {
}
public static void getCONSENT_ACTION$vungle_ads_release$annotations() {
}
public static void getCREATIVE_HEARTBEAT$vungle_ads_release$annotations() {
}
public static void getERROR$vungle_ads_release$annotations() {
}
public static void getOPEN$vungle_ads_release$annotations() {
}
public static void getOPEN_PRIVACY$vungle_ads_release$annotations() {
}
public static void getSET_ORIENTATION_PROPERTIES$vungle_ads_release$annotations() {
}
public static void getSUCCESSFUL_VIEW$vungle_ads_release$annotations() {
}
public static void getTPAT$vungle_ads_release$annotations() {
}
public static void getVIDEO_LENGTH$vungle_ads_release$annotations() {
}
public static void getVIDEO_VIEWED$vungle_ads_release$annotations() {
}
}
public static final class b extends t implements mk.a<ri.b> {
public b() {
super(0);
}
@Override
public final ri.b invoke() {
Context context = j.this.adWidget.getContext();
s.g(context, "adWidget.context");
return new ri.b(context, j.this.advertisement, j.this.executor);
}
}
public static final class c implements hj.b {
public c() {
}
@Override
public void onDeeplinkClick(boolean z7) {
List<String> tpatUrls = j.this.advertisement.getTpatUrls("deeplink.click", String.valueOf(z7));
yi.h hVar = new yi.h(j.this.getVungleApiClient$vungle_ads_release(), j.this.placement.getReferenceId(), j.this.advertisement.getCreativeId(), j.this.advertisement.eventId(), j.this.getExecutors().getIoExecutor(), j.this.getPathProvider());
if (tpatUrls != null) {
j jVar = j.this;
for (String str : tpatUrls) {
hVar.sendTpat(str, jVar.executor);
}
}
}
}
public static final class d implements yi.b<Void> {
@Override
public void onFailure(yi.a<Void> aVar, Throwable th2) {
}
@Override
public void onResponse(yi.a<Void> aVar, yi.d<Void> dVar) {
}
}
public static final class e extends t implements mk.a<jj.h> {
public static final e INSTANCE = new e();
public e() {
super(0);
}
@Override
public final jj.h invoke() {
return new jj.h();
}
}
public static final class f extends t implements mk.a<yi.j> {
public final Context $context;
public f(Context context) {
super(0);
this.$context = context;
}
@Override
public final yi.j invoke() {
return ServiceLocator.Companion.getInstance(this.$context).getOrBuild$vungle_ads_release(yi.j.class);
}
}
public static final class g extends t implements mk.a<ui.a> {
public final Context $context;
public g(Context context) {
super(0);
this.$context = context;
}
@Override
public final ui.a invoke() {
return ServiceLocator.Companion.getInstance(this.$context).getOrBuild$vungle_ads_release(ui.a.class);
}
}
public static final class h extends t implements mk.a<jj.m> {
public final Context $context;
public h(Context context) {
super(0);
this.$context = context;
}
@Override
public final jj.m invoke() {
return ServiceLocator.Companion.getInstance(this.$context).getOrBuild$vungle_ads_release(jj.m.class);
}
}
public static final class i extends t implements mk.a<jj.o> {
public static final class a extends t implements mk.a<k0> {
public final j this$0;
public a(j jVar) {
super(0);
this.this$0 = jVar;
}
@Override
public k0 invoke() {
invoke2();
return k0.f364a;
}
public final void invoke2() {
qi.o.INSTANCE.logError$vungle_ads_release(318, "Error ad template missing Heartbeat", this.this$0.placement.getReferenceId(), this.this$0.advertisement.getCreativeId(), this.this$0.advertisement.eventId());
this.this$0.reportErrorAndCloseAd(new y0(n2.HEARTBEAT_ERROR, null, 2, null));
}
}
public i() {
super(0);
}
@Override
public final jj.o invoke() {
return new jj.o(j.HEARTBEAT_INTERVAL, true, null, new a(j.this), 4, null);
}
}
public j(ij.b bVar, xi.b bVar2, xi.k kVar, hj.f fVar, Executor executor, aj.d dVar, xi.e eVar) {
s.h(bVar, "adWidget");
s.h(bVar2, "advertisement");
s.h(kVar, "placement");
s.h(fVar, "vungleWebClient");
s.h(executor, "executor");
s.h(dVar, "omTracker");
this.adWidget = bVar;
this.advertisement = bVar2;
this.placement = kVar;
this.vungleWebClient = fVar;
this.executor = executor;
this.omTracker = dVar;
this.bidPayload = eVar;
this.isDestroying = new AtomicBoolean(false);
this.sendReportIncentivized = new AtomicBoolean(false);
ServiceLocator.Companion companion = ServiceLocator.Companion;
Context context = bVar.getContext();
s.g(context, "adWidget.context");
ak.n nVar = ak.n.SYNCHRONIZED;
this.vungleApiClient$delegate = ak.m.a(nVar, new f(context));
Context context2 = bVar.getContext();
s.g(context2, "adWidget.context");
this.executors$delegate = ak.m.a(nVar, new g(context2));
Context context3 = bVar.getContext();
s.g(context3, "adWidget.context");
this.pathProvider$delegate = ak.m.a(nVar, new h(context3));
this.scheduler$delegate = ak.m.b(e.INSTANCE);
this.suspendableTimer$delegate = ak.m.b(new i());
this.clickCoordinateTracker$delegate = ak.m.b(new b());
}
private final void closeView() {
this.adWidget.close();
}
public static void getAdStartTime$vungle_ads_release$annotations() {
}
public static void getBackEnabled$vungle_ads_release$annotations() {
}
public static void getBus$annotations() {
}
public static void getClickCoordinateTracker$vungle_ads_release$annotations() {
}
public final ui.a getExecutors() {
return (ui.a) this.executors$delegate.getValue();
}
public static void getHeartbeatEnabled$vungle_ads_release$annotations() {
}
public final jj.m getPathProvider() {
return (jj.m) this.pathProvider$delegate.getValue();
}
private final jj.h getScheduler() {
return (jj.h) this.scheduler$delegate.getValue();
}
public static void getSuspendableTimer$vungle_ads_release$annotations() {
}
public static void getUserId$vungle_ads_release$annotations() {
}
public static void getVungleApiClient$vungle_ads_release$annotations() {
}
private final void handleWebViewException(n2 n2Var, boolean z7, String str) {
Log.e(TAG, "handleWebViewException: " + n2Var.getLocalizedMessage() + ", fatal: " + z7 + ", errorMsg: " + str);
if (z7) {
makeBusError(n2Var);
closeView();
}
}
public static void handleWebViewException$default(j jVar, n2 n2Var, boolean z7, String str, int i10, Object obj) {
if ((i10 & 4) != 0) {
str = null;
}
jVar.handleWebViewException(n2Var, z7, str);
}
public static void isDestroying$vungle_ads_release$annotations() {
}
private final boolean loadMraid(File file) {
String parent = file.getParent();
File file2 = parent != null ? new File(parent) : null;
StringBuilder sb2 = new StringBuilder();
sb2.append(file2 != null ? file2.getPath() : null);
sb2.append(File.separator);
sb2.append("index.html");
File file3 = new File(sb2.toString());
if (file3.exists()) {
ij.b bVar = this.adWidget;
bVar.showWebsite(xi.b.FILE_SCHEME + file3.getPath());
return true;
}
qi.o oVar = qi.o.INSTANCE;
oVar.logError$vungle_ads_release(310, "Fail to load html " + file3.getPath(), this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
return false;
}
private final void makeBusError(n2 n2Var) {
dj.a aVar = this.bus;
if (aVar != null) {
aVar.onError(n2Var, this.placement.getReferenceId());
}
}
public static final void m34prepare$lambda11(j jVar) {
s.h(jVar, "this$0");
jVar.backEnabled = true;
}
public static final void m35processCommand$lambda3(j jVar) {
s.h(jVar, "this$0");
jVar.vungleWebClient.notifyPropertiesChange(true);
}
public static final void m36processCommand$lambda4(j jVar) {
s.h(jVar, "this$0");
jVar.adWidget.setVisibility(0);
}
public static final void m37processCommand$lambda6(j jVar) {
s.h(jVar, "this$0");
String referenceId = jVar.placement.getReferenceId();
yi.a<Void> ri2 = jVar.getVungleApiClient$vungle_ads_release().ri(new g.C0742g((List) null, (Boolean) null, (String) null, jVar.adStartTime, jVar.advertisement.appId(), referenceId, jVar.userId, 7, (nk.j) null));
if (ri2 == null) {
Log.e(TAG, "Invalid ri call.");
} else {
ri2.enqueue(new d());
}
}
public static final void m38processCommand$lambda7(j jVar, boolean z7, String str, String str2) {
s.h(jVar, "this$0");
y0 y0Var = new y0(n2.CREATIVE_ERROR, null, 2, null);
jVar.handleWebViewException(y0Var, z7, str + " : " + str2);
}
public static final void m39processCommand$lambda8(j jVar) {
s.h(jVar, "this$0");
jVar.getSuspendableTimer$vungle_ads_release().reset();
}
private final void recordPlayAssetMetric() {
qi.o.INSTANCE.logMetric$vungle_ads_release(new i2(this.advertisement.getAssetsFullyDownloaded() ? Sdk$SDKMetric.b.LOCAL_ASSETS_USED : Sdk$SDKMetric.b.REMOTE_ASSETS_USED), (r13 & 2) != 0 ? null : this.placement.getReferenceId(), (r13 & 4) != 0 ? null : this.advertisement.getCreativeId(), (r13 & 8) != 0 ? null : this.advertisement.eventId(), (r13 & 16) != 0 ? null : null);
}
public final void reportErrorAndCloseAd(n2 n2Var) {
makeBusError(n2Var);
closeView();
}
public final void detach(int i10) {
dj.a aVar;
boolean z7 = (i10 & 1) != 0;
boolean z9 = (i10 & 2) != 0;
this.vungleWebClient.setWebViewObserver(null);
this.vungleWebClient.setMraidDelegate(null);
if (!z7 && z9 && !this.isDestroying.getAndSet(true) && (aVar = this.bus) != null) {
aVar.onNext("end", null, this.placement.getReferenceId());
}
this.adWidget.destroyWebView(this.omTracker.stop());
if (this.heartbeatEnabled) {
getSuspendableTimer$vungle_ads_release().cancel();
}
}
public final Long getAdStartTime$vungle_ads_release() {
return this.adStartTime;
}
public final boolean getBackEnabled$vungle_ads_release() {
return this.backEnabled;
}
public final dj.a getBus() {
return this.bus;
}
public final ri.b getClickCoordinateTracker$vungle_ads_release() {
return (ri.b) this.clickCoordinateTracker$delegate.getValue();
}
public final boolean getHeartbeatEnabled$vungle_ads_release() {
return this.heartbeatEnabled;
}
public final jj.o getSuspendableTimer$vungle_ads_release() {
return (jj.o) this.suspendableTimer$delegate.getValue();
}
public final String getUserId$vungle_ads_release() {
return this.userId;
}
public final yi.j getVungleApiClient$vungle_ads_release() {
return (yi.j) this.vungleApiClient$delegate.getValue();
}
public final void handleExit() {
if (this.backEnabled) {
this.adWidget.showWebsite("javascript:window.vungle.mraidBridgeExt.requestMRAIDClose()");
}
}
public final AtomicBoolean isDestroying$vungle_ads_release() {
return this.isDestroying;
}
@Override
public void onReceivedError(String str, boolean z7) {
s.h(str, "errorDesc");
if (z7) {
reportErrorAndCloseAd(new y0(n2.AD_RENDER_NETWORK_ERROR, null, 2, null));
}
}
@Override
public void onRenderProcessUnresponsive(WebView webView, WebViewRenderProcess webViewRenderProcess) {
handleWebViewException$default(this, new y0(n2.WEBVIEW_RENDER_UNRESPONSIVE, null, 2, null), true, null, 4, null);
}
public final void onViewConfigurationChanged() {
this.vungleWebClient.notifyPropertiesChange(true);
}
public final void onViewTouched(MotionEvent motionEvent) {
if (motionEvent != null) {
getClickCoordinateTracker$vungle_ads_release().trackCoordinate(motionEvent);
}
}
@Override
public boolean onWebRenderingProcessGone(WebView webView, Boolean bool) {
handleWebViewException$default(this, new y0(n2.WEB_CRASH, null, 2, null), true, null, 4, null);
return true;
}
public final void prepare() {
int settings;
boolean z7 = false;
this.isDestroying.set(false);
this.adWidget.linkWebView(this.vungleWebClient);
qi.c adConfig = this.advertisement.getAdConfig();
if (adConfig != null && (settings = adConfig.getSettings()) > 0) {
this.backEnabled = (settings & 2) == 2;
}
ri.c cVar = ri.c.INSTANCE;
this.heartbeatEnabled = cVar.heartbeatEnabled();
qi.c adConfig2 = this.advertisement.getAdConfig();
Integer valueOf = adConfig2 != null ? Integer.valueOf(adConfig2.getAdOrientation()) : null;
this.adWidget.setOrientation((valueOf != null && valueOf.intValue() == 0) ? 7 : (valueOf != null && valueOf.intValue() == 1) ? 6 : 4);
this.omTracker.start();
this.vungleWebClient.setMraidDelegate(this);
this.vungleWebClient.setErrorHandler(this);
File assetDirectory = this.advertisement.getAssetDirectory();
if (assetDirectory == null || !assetDirectory.exists()) {
reportErrorAndCloseAd(new qi.h());
return;
}
if (!loadMraid(new File(assetDirectory.getPath() + File.separator + "template"))) {
reportErrorAndCloseAd(new qi.h());
return;
}
this.adStartTime = Long.valueOf(System.currentTimeMillis());
o oVar = this.presenterDelegate;
this.userId = oVar != null ? oVar.getUserId() : null;
o oVar2 = this.presenterDelegate;
String str = (oVar2 == null || (str = oVar2.getAlertTitleText()) == null) ? "" : "";
o oVar3 = this.presenterDelegate;
String str2 = (oVar3 == null || (str2 = oVar3.getAlertBodyText()) == null) ? "" : "";
o oVar4 = this.presenterDelegate;
String str3 = (oVar4 == null || (str3 = oVar4.getAlertContinueButtonText()) == null) ? "" : "";
o oVar5 = this.presenterDelegate;
this.advertisement.setIncentivizedText(str, str2, str3, (oVar5 == null || (r8 = oVar5.getAlertCloseButtonText()) == null) ? "" : "");
if (cVar.getGDPRIsCountryDataProtected() && s.c("unknown", ej.c.INSTANCE.getConsentStatus())) {
z7 = true;
}
this.vungleWebClient.setConsentStatus(z7, cVar.getGDPRConsentTitle(), cVar.getGDPRConsentMessage(), cVar.getGDPRButtonAccept(), cVar.getGDPRButtonDeny());
if (z7) {
ej.c.INSTANCE.updateGdprConsent("opted_out_by_timeout", "vungle_modal", "");
}
int showCloseDelay = this.advertisement.getShowCloseDelay(Boolean.valueOf(this.placement.isIncentivized()));
if (showCloseDelay > 0) {
getScheduler().schedule(new Runnable() {
@Override
public final void run() {
j.m34prepare$lambda11(j.this);
}
}, showCloseDelay);
} else {
this.backEnabled = true;
}
dj.a aVar = this.bus;
if (aVar != null) {
aVar.onNext("start", null, this.placement.getReferenceId());
}
if (this.heartbeatEnabled) {
getSuspendableTimer$vungle_ads_release().start();
}
}
@Override
public boolean processCommand(String str, u uVar) {
float parseFloat;
dj.a aVar;
xi.e eVar;
s.h(str, "command");
s.h(uVar, "arguments");
Handler handler = new Handler(Looper.getMainLooper());
boolean z7 = false;
String str2 = null;
switch (str.hashCode()) {
case -1912374177:
if (str.equals(SUCCESSFUL_VIEW)) {
dj.a aVar2 = this.bus;
if (aVar2 != null) {
aVar2.onNext(SUCCESSFUL_VIEW, null, this.placement.getReferenceId());
}
if (this.placement.isIncentivized() && ri.c.INSTANCE.isReportIncentivizedEnabled() && !this.sendReportIncentivized.getAndSet(true)) {
this.executor.execute(new Runnable() {
@Override
public final void run() {
j.m37processCommand$lambda6(j.this);
}
});
}
return true;
}
qi.o oVar = qi.o.INSTANCE;
oVar.logError$vungle_ads_release(311, "Unknown MRAID Command: " + str, this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
StringBuilder sb2 = new StringBuilder();
sb2.append("processCommand# Unknown MRAID Command: ");
sb2.append(str);
return true;
case -1422950858:
if (str.equals("action")) {
return true;
}
qi.o oVar2 = qi.o.INSTANCE;
oVar2.logError$vungle_ads_release(311, "Unknown MRAID Command: " + str, this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
StringBuilder sb22 = new StringBuilder();
sb22.append("processCommand# Unknown MRAID Command: ");
sb22.append(str);
return true;
case -735200587:
if (str.equals(ACTION_WITH_VALUE)) {
jj.k kVar = jj.k.INSTANCE;
String contentStringValue = kVar.getContentStringValue(uVar, Tracking.EVENT);
String contentStringValue2 = kVar.getContentStringValue(uVar, "value");
if (s.c(contentStringValue, "videoViewed")) {
if (contentStringValue2 != null) {
try {
parseFloat = Float.parseFloat(contentStringValue2);
} catch (NumberFormatException unused) {
Log.e(TAG, "value for videoViewed is null !");
}
aVar = this.bus;
if (aVar != null && parseFloat > 0.0f && !this.adViewed) {
this.adViewed = true;
if (aVar != null) {
aVar.onNext("adViewed", null, this.placement.getReferenceId());
}
eVar = this.bidPayload;
if (eVar != null) {
yi.h hVar = new yi.h(getVungleApiClient$vungle_ads_release(), this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId(), getExecutors().getIoExecutor(), getPathProvider());
List<String> impression = eVar.getImpression();
if (impression != null) {
for (String str3 : impression) {
hVar.sendTpat(str3, this.executor);
}
}
}
}
}
parseFloat = 0.0f;
aVar = this.bus;
if (aVar != null) {
this.adViewed = true;
if (aVar != null) {
}
eVar = this.bidPayload;
if (eVar != null) {
}
}
}
if (s.c(contentStringValue, VIDEO_LENGTH)) {
handler.post(new Runnable() {
@Override
public final void run() {
j.m35processCommand$lambda3(j.this);
}
});
}
handler.post(new Runnable() {
@Override
public final void run() {
j.m36processCommand$lambda4(j.this);
}
});
return true;
}
qi.o oVar22 = qi.o.INSTANCE;
oVar22.logError$vungle_ads_release(311, "Unknown MRAID Command: " + str, this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
StringBuilder sb222 = new StringBuilder();
sb222.append("processCommand# Unknown MRAID Command: ");
sb222.append(str);
return true;
case -660787472:
if (str.equals(CONSENT_ACTION)) {
String contentStringValue3 = jj.k.INSTANCE.getContentStringValue(uVar, Tracking.EVENT);
ej.b bVar = ej.b.OPT_OUT;
ej.c.INSTANCE.updateGdprConsent(s.c(contentStringValue3, bVar.getValue()) ? bVar.getValue() : ej.b.OPT_IN.getValue(), "vungle_modal", null);
return true;
}
qi.o oVar222 = qi.o.INSTANCE;
oVar222.logError$vungle_ads_release(311, "Unknown MRAID Command: " + str, this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
StringBuilder sb2222 = new StringBuilder();
sb2222.append("processCommand# Unknown MRAID Command: ");
sb2222.append(str);
return true;
case -511324706:
if (str.equals("openPrivacy")) {
String contentStringValue4 = jj.k.INSTANCE.getContentStringValue(uVar, "url");
if (((contentStringValue4 == null || contentStringValue4.length() == 0) ? true : true) || !jj.g.INSTANCE.isValidUrl(contentStringValue4)) {
if (contentStringValue4 == null) {
contentStringValue4 = "nonePrivacyUrl";
}
new a2(contentStringValue4).setPlacementId$vungle_ads_release(this.placement.getReferenceId()).setCreativeId$vungle_ads_release(this.advertisement.getCreativeId()).setEventId$vungle_ads_release(this.advertisement.eventId()).logErrorNoReturnValue$vungle_ads_release();
return true;
}
Context context = this.adWidget.getContext();
s.g(context, "adWidget.context");
if (!jj.e.launch(null, contentStringValue4, context, true, new hj.c(this.bus, this.placement.getReferenceId()), null)) {
new a2(contentStringValue4).logErrorNoReturnValue$vungle_ads_release();
}
return true;
}
qi.o oVar2222 = qi.o.INSTANCE;
oVar2222.logError$vungle_ads_release(311, "Unknown MRAID Command: " + str, this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
StringBuilder sb22222 = new StringBuilder();
sb22222.append("processCommand# Unknown MRAID Command: ");
sb22222.append(str);
return true;
case -418575596:
break;
case -348095344:
if (str.equals(USE_CUSTOM_PRIVACY)) {
return true;
}
qi.o oVar22222 = qi.o.INSTANCE;
oVar22222.logError$vungle_ads_release(311, "Unknown MRAID Command: " + str, this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
StringBuilder sb222222 = new StringBuilder();
sb222222.append("processCommand# Unknown MRAID Command: ");
sb222222.append(str);
return true;
case 3417674:
break;
case 3566511:
if (str.equals("tpat")) {
String contentStringValue5 = jj.k.INSTANCE.getContentStringValue(uVar, Tracking.EVENT);
if ((contentStringValue5 == null || contentStringValue5.length() == 0) ? true : true) {
qi.o.INSTANCE.logError$vungle_ads_release(129, "Empty tpat key", this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
return true;
}
yi.h hVar2 = new yi.h(getVungleApiClient$vungle_ads_release(), this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId(), getExecutors().getIoExecutor(), getPathProvider());
List<String> tpatUrls$default = xi.b.getTpatUrls$default(this.advertisement, contentStringValue5, null, 2, null);
if (tpatUrls$default != null) {
for (String str4 : tpatUrls$default) {
hVar2.sendTpat(str4, this.executor);
}
}
return true;
}
qi.o oVar222222 = qi.o.INSTANCE;
oVar222222.logError$vungle_ads_release(311, "Unknown MRAID Command: " + str, this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
StringBuilder sb2222222 = new StringBuilder();
sb2222222.append("processCommand# Unknown MRAID Command: ");
sb2222222.append(str);
return true;
case 94756344:
if (str.equals("close")) {
closeView();
return true;
}
qi.o oVar2222222 = qi.o.INSTANCE;
oVar2222222.logError$vungle_ads_release(311, "Unknown MRAID Command: " + str, this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
StringBuilder sb22222222 = new StringBuilder();
sb22222222.append("processCommand# Unknown MRAID Command: ");
sb22222222.append(str);
return true;
case 96784904:
if (str.equals("error")) {
jj.k kVar2 = jj.k.INSTANCE;
final String contentStringValue6 = kVar2.getContentStringValue(uVar, "code");
final boolean parseBoolean = Boolean.parseBoolean(kVar2.getContentStringValue(uVar, "fatal"));
final String contentStringValue7 = kVar2.getContentStringValue(uVar, "errorMessage");
int i10 = parseBoolean ? 317 : 301;
qi.o oVar3 = qi.o.INSTANCE;
oVar3.logError$vungle_ads_release(i10, contentStringValue6 + " : " + contentStringValue7, this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
p.INSTANCE.runOnUiThread(new Runnable() {
@Override
public final void run() {
j.m38processCommand$lambda7(j.this, parseBoolean, contentStringValue6, contentStringValue7);
}
});
return true;
}
qi.o oVar22222222 = qi.o.INSTANCE;
oVar22222222.logError$vungle_ads_release(311, "Unknown MRAID Command: " + str, this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
StringBuilder sb222222222 = new StringBuilder();
sb222222222.append("processCommand# Unknown MRAID Command: ");
sb222222222.append(str);
return true;
case 133423073:
if (str.equals(SET_ORIENTATION_PROPERTIES)) {
String contentStringValue8 = jj.k.INSTANCE.getContentStringValue(uVar, "forceOrientation");
if (!((contentStringValue8 == null || contentStringValue8.length() == 0) ? true : true)) {
Locale locale = Locale.ENGLISH;
s.g(locale, ViewHierarchyConstants.ENGLISH);
String lowerCase = contentStringValue8.toLowerCase(locale);
s.g(lowerCase, "this as java.lang.String).toLowerCase(locale)");
if (s.c(lowerCase, "landscape")) {
this.adWidget.setOrientation(6);
} else if (s.c(lowerCase, "portrait")) {
this.adWidget.setOrientation(7);
}
}
return true;
}
qi.o oVar222222222 = qi.o.INSTANCE;
oVar222222222.logError$vungle_ads_release(311, "Unknown MRAID Command: " + str, this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
StringBuilder sb2222222222 = new StringBuilder();
sb2222222222.append("processCommand# Unknown MRAID Command: ");
sb2222222222.append(str);
return true;
case 1614272768:
if (str.equals("useCustomClose")) {
return true;
}
qi.o oVar2222222222 = qi.o.INSTANCE;
oVar2222222222.logError$vungle_ads_release(311, "Unknown MRAID Command: " + str, this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
StringBuilder sb22222222222 = new StringBuilder();
sb22222222222.append("processCommand# Unknown MRAID Command: ");
sb22222222222.append(str);
return true;
case 1850430989:
if (str.equals(CREATIVE_HEARTBEAT)) {
if (this.heartbeatEnabled) {
handler.post(new Runnable() {
@Override
public final void run() {
j.m39processCommand$lambda8(j.this);
}
});
}
return true;
}
qi.o oVar22222222222 = qi.o.INSTANCE;
oVar22222222222.logError$vungle_ads_release(311, "Unknown MRAID Command: " + str, this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
StringBuilder sb222222222222 = new StringBuilder();
sb222222222222.append("processCommand# Unknown MRAID Command: ");
sb222222222222.append(str);
return true;
default:
qi.o oVar222222222222 = qi.o.INSTANCE;
oVar222222222222.logError$vungle_ads_release(311, "Unknown MRAID Command: " + str, this.placement.getReferenceId(), this.advertisement.getCreativeId(), this.advertisement.eventId());
StringBuilder sb2222222222222 = new StringBuilder();
sb2222222222222.append("processCommand# Unknown MRAID Command: ");
sb2222222222222.append(str);
return true;
}
}
public final void setAdStartTime$vungle_ads_release(Long l10) {
this.adStartTime = l10;
}
public final void setAdVisibility(boolean z7) {
this.vungleWebClient.setAdVisibility(z7);
}
public final void setBackEnabled$vungle_ads_release(boolean z7) {
this.backEnabled = z7;
}
public final void setBus(dj.a aVar) {
this.bus = aVar;
}
public final void setEventListener(dj.a aVar) {
this.bus = aVar;
}
public final void setHeartbeatEnabled$vungle_ads_release(boolean z7) {
this.heartbeatEnabled = z7;
}
public final void setPresenterDelegate$vungle_ads_release(o oVar) {
this.presenterDelegate = oVar;
}
public final void setUserId$vungle_ads_release(String str) {
this.userId = str;
}
public final void start() {
this.adWidget.resumeWeb();
setAdVisibility(true);
if (ri.c.INSTANCE.adLoadOptimizationEnabled()) {
recordPlayAssetMetric();
}
}
public final void stop() {
this.adWidget.pauseWeb();
setAdVisibility(false);
}
}