导航菜单

页面标题

页面副标题

Housing v14.7.8 - NewBridgeModule.java 源代码

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

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


package com.locon.reactapp.common.bridge;

import android.app.Activity;
import android.app.ActivityManager;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Matrix;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import androidx.compose.foundation.text.selection.v0;
import androidx.compose.runtime.internal.StabilityInferred;
import androidx.core.app.NotificationManagerCompat;
import androidx.core.content.ContextCompat;
import androidx.exifinterface.media.ExifInterface;
import ce.d;
import com.contentsquare.android.api.Currencies;
import com.facebook.imageutils.JfifUtil;
import com.facebook.internal.NativeProtocol;
import com.facebook.internal.ServerProtocol;
import com.facebook.react.ReactRootView;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.BaseJavaModule;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.bridge.ReadableMapKeySetIterator;
import com.facebook.react.bridge.ReadableNativeMap;
import com.facebook.react.bridge.ReadableType;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.modules.core.DeviceEventManagerModule;
import com.facebook.react.uimanager.ViewProps;
import com.google.android.gms.auth.api.phone.SmsRetriever;
import com.google.firebase.crashlytics.FirebaseCrashlytics;
import com.google.gson.Gson;
import com.locon.core.data.ConnectionDetail;
import com.locon.core.data.CtaConfigDetail;
import com.locon.core.data.eventBus.PromiseEvent;
import com.locon.core.data.h1;
import com.locon.core.data.local.datastore.Filter;
import com.locon.core.data.local.datastore.FilterAttr;
import com.locon.core.data.local.datastore.FilterAttrList;
import com.locon.core.data.local.datastore.FilterProperties;
import com.locon.core.data.local.datastore.FilterStore;
import com.locon.core.data.local.datastore.k2;
import com.locon.core.data.o1;
import com.locon.core.data.rnreducers.UserData;
import com.locon.core.data.sharedmodels.DroppedLead;
import com.locon.core.data.sharedmodels.PropertyInfoModels$CrfModel;
import com.locon.core.data.sharedmodels.ShareShortenedUrlData;
import com.locon.core.domain.login.model.Profile;
import com.locon.core.domain.login.model.ProfileDetails;
import com.locon.core.domain.login.model.UserDetailsModel;
import com.locon.core.domain.model.ApartmentTypeConfigModel;
import com.locon.core.domain.model.ApartmentTypesConfigModel;
import com.locon.core.domain.model.ReactNativeCrfModel;
import com.locon.crf.domain.requests.LeadCreateRequest;
import com.locon.crf.presentation.entity.CrfFormModel;
import com.locon.crf.presentation.entity.CrfInitAnalyticsDetails;
import com.locon.crf.presentation.entity.CrfInitDetails;
import com.locon.database.entities.PropertyLead;
import com.locon.feedback.domain.models.PropertiesForFeedback;
import com.locon.presentation.analytics.m2;
import com.moengage.inapp.MoEInAppHelper;
import com.newrelic.agent.android.instrumentation.BitmapFactoryInstrumentation;
import com.newrelic.agent.android.instrumentation.GsonInstrumentation;
import com.newrelic.agent.android.instrumentation.Instrumented;
import com.quickblox.chat.Consts;
import com.quickblox.core.result.HttpStatus;
import java.io.File;
import java.io.FileOutputStream;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.ListIterator;
import java.util.Locale;
import java.util.Map;
import kotlin.Metadata;
import kotlin.collections.f1;
import kotlin.collections.t0;
import kotlin.coroutines.f;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlinx.coroutines.b2;
import kotlinx.coroutines.flow.p1;
import kotlinx.coroutines.l2;
import kotlinx.coroutines.u0;
import kotlinx.coroutines.v1;
import kotlinx.coroutines.v2;
import kotlinx.coroutines.z0;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import zp.j0;
import zp.t;

@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000ð\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0007\n\u0002\b#\n\u0002\u0018\u0002\n\u0002\bE\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b,\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0091\u0001\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\t\u001a\u00020\b\u0012\u0006\u0010\u000b\u001a\u00020\n\u0012\u0006\u0010\r\u001a\u00020\f\u0012\u0006\u0010\u000f\u001a\u00020\u000e\u0012\u0006\u0010\u0011\u001a\u00020\u0010\u0012\b\u0010\u0013\u001a\u0004\u0018\u00010\u0012\u0012\u0006\u0010\u0015\u001a\u00020\u0014\u0012\u0006\u0010\u0017\u001a\u00020\u0016\u0012\u0006\u0010\u0019\u001a\u00020\u0018\u0012\u0006\u0010\u001b\u001a\u00020\u001a\u0012\u0006\u0010\u001d\u001a\u00020\u001c\u0012\u0006\u0010\u001f\u001a\u00020\u001e\u0012\u0006\u0010!\u001a\u00020 \u0012\u0006\u0010#\u001a\u00020\"¢\u0006\u0004\b$\u0010%J\u000f\u0010'\u001a\u00020&H\u0016¢\u0006\u0004\b'\u0010(J\u000f\u0010*\u001a\u00020)H\u0016¢\u0006\u0004\b*\u0010+J\u0017\u0010.\u001a\u00020-2\b\u0010,\u001a\u0004\u0018\u00010\u0012¢\u0006\u0004\b.\u0010/J\u0015\u00102\u001a\u00020-2\u0006\u00101\u001a\u000200¢\u0006\u0004\b2\u00103J\u0015\u00107\u001a\u0002062\u0006\u00105\u001a\u000204¢\u0006\u0004\b7\u00108J\u000f\u00109\u001a\u00020-H\u0007¢\u0006\u0004\b9\u0010:J\u0017\u0010<\u001a\u00020-2\u0006\u0010;\u001a\u00020)H\u0007¢\u0006\u0004\b<\u0010=J\u0017\u0010@\u001a\u00020-2\u0006\u0010?\u001a\u00020>H\u0007¢\u0006\u0004\b@\u0010AJ\u0017\u0010D\u001a\u00020-2\u0006\u0010C\u001a\u00020BH\u0007¢\u0006\u0004\bD\u0010EJ\u000f\u0010F\u001a\u00020-H\u0007¢\u0006\u0004\bF\u0010:J\u001f\u0010I\u001a\u00020-2\u0006\u0010G\u001a\u00020)2\u0006\u0010H\u001a\u00020>H\u0007¢\u0006\u0004\bI\u0010JJ\u000f\u0010K\u001a\u00020-H\u0007¢\u0006\u0004\bK\u0010:J\u000f\u0010L\u001a\u00020-H\u0007¢\u0006\u0004\bL\u0010:J\u0017\u0010M\u001a\u00020-2\u0006\u0010?\u001a\u00020>H\u0007¢\u0006\u0004\bM\u0010AJ\u0017\u0010O\u001a\u00020-2\u0006\u0010N\u001a\u000204H\u0007¢\u0006\u0004\bO\u0010PJ\u0017\u0010R\u001a\u00020-2\u0006\u0010Q\u001a\u00020&H\u0007¢\u0006\u0004\bR\u0010SJ1\u0010X\u001a\u00020-2\u0006\u0010T\u001a\u00020)2\u0006\u0010U\u001a\u00020)2\u0006\u0010V\u001a\u00020)2\b\u0010W\u001a\u0004\u0018\u000104H\u0007¢\u0006\u0004\bX\u0010YJ\u0017\u0010Z\u001a\u00020-2\u0006\u0010?\u001a\u00020>H\u0007¢\u0006\u0004\bZ\u0010AJ9\u0010_\u001a\u00020-2\u0006\u0010[\u001a\u00020)2\b\u0010\\\u001a\u0004\u0018\u0001042\n\b\u0002\u0010]\u001a\u0004\u0018\u00010)2\n\b\u0002\u0010^\u001a\u0004\u0018\u00010)H\u0007¢\u0006\u0004\b_\u0010`J!\u0010c\u001a\u00020-2\u0006\u0010a\u001a\u00020)2\b\b\u0002\u0010b\u001a\u00020)H\u0007¢\u0006\u0004\bc\u0010dJ\u001f\u0010h\u001a\u00020-2\u0006\u0010e\u001a\u00020)2\u0006\u0010g\u001a\u00020fH\u0007¢\u0006\u0004\bh\u0010iJ1\u0010n\u001a\u00020-2\u0006\u0010j\u001a\u00020)2\b\u0010k\u001a\u0004\u0018\u00010)2\u0006\u0010l\u001a\u00020)2\u0006\u0010m\u001a\u00020)H\u0007¢\u0006\u0004\bn\u0010oJ9\u0010p\u001a\u00020-2\u0006\u0010j\u001a\u00020)2\b\u0010k\u001a\u0004\u0018\u00010)2\u0006\u0010l\u001a\u00020)2\u0006\u0010m\u001a\u00020)2\u0006\u0010?\u001a\u00020>H\u0007¢\u0006\u0004\bp\u0010qJ\u000f\u0010r\u001a\u00020-H\u0007¢\u0006\u0004\br\u0010:J\u0019\u0010t\u001a\u00020-2\b\u0010s\u001a\u0004\u0018\u00010)H\u0007¢\u0006\u0004\bt\u0010=J!\u0010u\u001a\u00020-2\b\u0010s\u001a\u0004\u0018\u00010)2\u0006\u0010?\u001a\u00020>H\u0007¢\u0006\u0004\bu\u0010JJ\u0017\u0010v\u001a\u00020-2\u0006\u0010?\u001a\u00020>H\u0007¢\u0006\u0004\bv\u0010AJ\u0017\u0010w\u001a\u00020-2\u0006\u0010?\u001a\u00020>H\u0007¢\u0006\u0004\bw\u0010AJ\u0017\u0010y\u001a\u00020-2\u0006\u0010x\u001a\u00020>H\u0007¢\u0006\u0004\by\u0010AJ\u000f\u0010z\u001a\u00020-H\u0007¢\u0006\u0004\bz\u0010:J\u0017\u0010|\u001a\u00020-2\u0006\u0010{\u001a\u000204H\u0007¢\u0006\u0004\b|\u0010PJ\u0017\u0010~\u001a\u00020-2\u0006\u0010}\u001a\u00020)H\u0007¢\u0006\u0004\b~\u0010=J\u000f\u0010\u007f\u001a\u00020-H\u0007¢\u0006\u0004\b\u007f\u0010:J\u0011\u0010\u0080\u0001\u001a\u00020-H\u0007¢\u0006\u0005\b\u0080\u0001\u0010:J#\u0010\u0083\u0001\u001a\u00020-2\u0007\u0010\u0081\u0001\u001a\u00020)2\u0007\u0010\u0082\u0001\u001a\u00020>H\u0007¢\u0006\u0005\b\u0083\u0001\u0010JJ\u001a\u0010\u0085\u0001\u001a\u00020-2\u0007\u0010\u0084\u0001\u001a\u00020&H\u0007¢\u0006\u0005\b\u0085\u0001\u0010SJ\u0011\u0010\u0086\u0001\u001a\u00020-H\u0007¢\u0006\u0005\b\u0086\u0001\u0010:J\u0019\u0010\u0087\u0001\u001a\u00020-2\u0006\u0010?\u001a\u00020>H\u0007¢\u0006\u0005\b\u0087\u0001\u0010AJ\u0011\u0010\u0088\u0001\u001a\u00020-H\u0007¢\u0006\u0005\b\u0088\u0001\u0010:J\u0019\u0010\u0089\u0001\u001a\u00020-2\u0006\u0010?\u001a\u00020>H\u0007¢\u0006\u0005\b\u0089\u0001\u0010AJ\u0019\u0010\u008a\u0001\u001a\u00020-2\u0006\u0010?\u001a\u00020>H\u0007¢\u0006\u0005\b\u008a\u0001\u0010AJ\u0011\u0010\u008b\u0001\u001a\u00020-H\u0007¢\u0006\u0005\b\u008b\u0001\u0010:J\u001a\u0010\u008d\u0001\u001a\u00020-2\u0007\u0010\u008c\u0001\u001a\u000204H\u0007¢\u0006\u0005\b\u008d\u0001\u0010PJ\u001a\u0010\u008f\u0001\u001a\u00020-2\u0007\u0010\u008e\u0001\u001a\u00020)H\u0007¢\u0006\u0005\b\u008f\u0001\u0010=J\u001a\u0010\u0091\u0001\u001a\u00020-2\u0007\u0010\u0090\u0001\u001a\u00020)H\u0007¢\u0006\u0005\b\u0091\u0001\u0010=J\u0011\u0010\u0092\u0001\u001a\u00020-H\u0007¢\u0006\u0005\b\u0092\u0001\u0010:J\u001a\u0010\u0094\u0001\u001a\u00020-2\u0007\u0010\u0093\u0001\u001a\u00020)H\u0007¢\u0006\u0005\b\u0094\u0001\u0010=J\u001c\u0010\u0096\u0001\u001a\u00020-2\t\u0010\u0095\u0001\u001a\u0004\u0018\u00010)H\u0007¢\u0006\u0005\b\u0096\u0001\u0010=J\u001c\u0010\u0098\u0001\u001a\u00020-2\t\u0010\u0097\u0001\u001a\u0004\u0018\u00010)H\u0007¢\u0006\u0005\b\u0098\u0001\u0010=J\u001a\u0010\u009a\u0001\u001a\u00020-2\u0007\u0010\u0099\u0001\u001a\u00020)H\u0007¢\u0006\u0005\b\u009a\u0001\u0010=J\u0011\u0010\u009b\u0001\u001a\u00020-H\u0007¢\u0006\u0005\b\u009b\u0001\u0010:J\u0019\u0010\u009c\u0001\u001a\u00020-2\u0006\u0010?\u001a\u00020>H\u0007¢\u0006\u0005\b\u009c\u0001\u0010AJ\u001a\u0010\u009e\u0001\u001a\u00020-2\u0007\u0010\u009d\u0001\u001a\u00020)H\u0007¢\u0006\u0005\b\u009e\u0001\u0010=J\u001a\u0010 \u0001\u001a\u00020-2\u0007\u0010\u009f\u0001\u001a\u00020)H\u0007¢\u0006\u0005\b \u0001\u0010=J#\u0010¢\u0001\u001a\u00020-2\u0007\u0010\u008e\u0001\u001a\u00020)2\u0007\u0010¡\u0001\u001a\u00020)H\u0007¢\u0006\u0005\b¢\u0001\u0010dJ\u0011\u0010£\u0001\u001a\u00020-H\u0007¢\u0006\u0005\b£\u0001\u0010:J\u0019\u0010¤\u0001\u001a\u00020-2\u0006\u0010?\u001a\u00020>H\u0007¢\u0006\u0005\b¤\u0001\u0010AJ$\u0010§\u0001\u001a\u00020-2\u0007\u0010¥\u0001\u001a\u00020)2\u0007\u0010¦\u0001\u001a\u00020&H\u0007¢\u0006\u0006\b§\u0001\u0010¨\u0001J\u001a\u0010ª\u0001\u001a\u00020-2\u0007\u0010©\u0001\u001a\u00020&H\u0007¢\u0006\u0005\bª\u0001\u0010SJ\u0019\u0010«\u0001\u001a\u00020-2\u0006\u0010;\u001a\u00020)H\u0007¢\u0006\u0005\b«\u0001\u0010=J)\u0010°\u0001\u001a\u0011\u0012\f\u0012\n\u0012\u0005\u0012\u00030¯\u00010®\u00010®\u00012\b\u0010\u00ad\u0001\u001a\u00030¬\u0001¢\u0006\u0006\b°\u0001\u0010±\u0001J0\u0010´\u0001\u001a\n\u0012\u0005\u0012\u00030¯\u00010³\u00012\u0016\u0010²\u0001\u001a\u0011\u0012\f\u0012\n\u0012\u0005\u0012\u00030¯\u00010®\u00010®\u0001¢\u0006\u0006\b´\u0001\u0010µ\u0001J\"\u0010·\u0001\u001a\u00020-2\u0007\u0010¶\u0001\u001a\u00020)2\u0006\u0010g\u001a\u00020fH\u0007¢\u0006\u0005\b·\u0001\u0010iJ\"\u0010¸\u0001\u001a\u00020-2\u0007\u0010¶\u0001\u001a\u00020)2\u0006\u0010g\u001a\u00020fH\u0007¢\u0006\u0005\b¸\u0001\u0010iJA\u0010¼\u0001\u001a\u00020-2\u0007\u0010¶\u0001\u001a\u00020)2\b\u0010¹\u0001\u001a\u00030¯\u00012\b\u0010º\u0001\u001a\u00030¯\u00012\b\u0010»\u0001\u001a\u00030¯\u00012\u0006\u0010g\u001a\u00020fH\u0007¢\u0006\u0006\b¼\u0001\u0010½\u0001J\u001a\u0010¾\u0001\u001a\u00020-2\u0006\u0010g\u001a\u00020fH\u0007¢\u0006\u0006\b¾\u0001\u0010¿\u0001J\u001a\u0010À\u0001\u001a\u00020-2\u0006\u0010g\u001a\u00020fH\u0007¢\u0006\u0006\bÀ\u0001\u0010¿\u0001J\u0011\u0010Á\u0001\u001a\u00020-H\u0002¢\u0006\u0005\bÁ\u0001\u0010:J&\u0010Ã\u0001\u001a\u00030¬\u00012\b\u0010\u00ad\u0001\u001a\u00030¬\u00012\u0007\u0010Â\u0001\u001a\u00020BH\u0002¢\u0006\u0006\bÃ\u0001\u0010Ä\u0001R\u001a\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\u000f\n\u0005\b\u0003\u0010Å\u0001\u001a\u0006\bÆ\u0001\u0010Ç\u0001R\u001a\u0010\u0005\u001a\u00020\u00048\u0006¢\u0006\u000f\n\u0005\b\u0005\u0010È\u0001\u001a\u0006\bÉ\u0001\u0010Ê\u0001R\u0015\u0010\u0007\u001a\u00020\u00068\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\u0007\u0010Ë\u0001R\u0015\u0010\t\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\t\u0010Ì\u0001R\u0015\u0010\u000b\u001a\u00020\n8\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\u000b\u0010Í\u0001R\u0015\u0010\r\u001a\u00020\f8\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\r\u0010Î\u0001R\u0015\u0010\u000f\u001a\u00020\u000e8\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\u000f\u0010Ï\u0001R\u0015\u0010\u0011\u001a\u00020\u00108\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\u0011\u0010Ð\u0001R\u0019\u0010\u0013\u001a\u0004\u0018\u00010\u00128\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b\u0013\u0010Ñ\u0001R\u0015\u0010\u0015\u001a\u00020\u00148\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\u0015\u0010Ò\u0001R\u001a\u0010\u0017\u001a\u00020\u00168\u0006¢\u0006\u000f\n\u0005\b\u0017\u0010Ó\u0001\u001a\u0006\bÔ\u0001\u0010Õ\u0001R\u001a\u0010\u0019\u001a\u00020\u00188\u0006¢\u0006\u000f\n\u0005\b\u0019\u0010Ö\u0001\u001a\u0006\b×\u0001\u0010Ø\u0001R\u0015\u0010\u001b\u001a\u00020\u001a8\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\u001b\u0010Ù\u0001R\u0015\u0010\u001d\u001a\u00020\u001c8\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\u001d\u0010Ú\u0001R\u0015\u0010\u001f\u001a\u00020\u001e8\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\u001f\u0010Û\u0001R\u0015\u0010!\u001a\u00020 8\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b!\u0010Ü\u0001R\u0015\u0010#\u001a\u00020\"8\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b#\u0010Ý\u0001R\u001b\u0010Þ\u0001\u001a\u0004\u0018\u0001008\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\bÞ\u0001\u0010ß\u0001R\u001c\u0010á\u0001\u001a\u0005\u0018\u00010à\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\bá\u0001\u0010â\u0001R\u0018\u0010ã\u0001\u001a\u00030¯\u00018\u0002X\u0082D¢\u0006\b\n\u0006\bã\u0001\u0010ä\u0001R\u001c\u0010æ\u0001\u001a\u0005\u0018\u00010å\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\bæ\u0001\u0010ç\u0001R\u001c\u0010é\u0001\u001a\u0005\u0018\u00010è\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\bé\u0001\u0010ê\u0001R\u001a\u0010ì\u0001\u001a\u00030ë\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\bì\u0001\u0010í\u0001¨\u0006î\u0001"}, d2 = {"Lcom/locon/reactapp/common/bridge/NewBridgeModule;", "Lcom/facebook/react/bridge/ReactContextBaseJavaModule;", "Lcom/facebook/react/bridge/ReactApplicationContext;", "reactContext", "Lcom/locon/core/data/local/datastore/o0;", "preferenceDataStore", "Lcom/locon/core/data/remote/firebase/remoteconfig/h;", "remoteConfigRepository", "Lcom/locon/core/analytics/m0;", "analyticsService", "Lcom/locon/core/analytics/engines/j;", "housingBranchAnalytics", "Lcom/locon/core/analytics/b;", "commonAttributes", "Lcom/locon/core/data/share/b;", "iShareVia", "Lcom/locon/core/data/notifications/a;", "fcmTokenManager", "Lcom/locon/reactapp/common/m;", "navigator", "Lcom/locon/coreUI/utils/b;", "agentContactManager", "Lcom/locon/database/dao/k;", "propertyLeadDao", "Lcom/locon/core/data/local/datastore/m;", "filterDataStore", "Lva/a;", "iChatRepo", "Lcom/locon/core/analytics/engines/q;", "moEngageAnalytics", "Lcom/locon/core/domain/inAppRatingNps/b;", "inAppRatingManager", "Lcom/locon/core/data/z;", "fingerprintManager", "Lcom/locon/core/domain/k;", "getLocalityAndPropertyCount", "<init>", "(Lcom/facebook/react/bridge/ReactApplicationContext;Lcom/locon/core/data/local/datastore/o0;Lcom/locon/core/data/remote/firebase/remoteconfig/h;Lcom/locon/core/analytics/m0;Lcom/locon/core/analytics/engines/j;Lcom/locon/core/analytics/b;Lcom/locon/core/data/share/b;Lcom/locon/core/data/notifications/a;Lcom/locon/reactapp/common/m;Lcom/locon/coreUI/utils/b;Lcom/locon/database/dao/k;Lcom/locon/core/data/local/datastore/m;Lva/a;Lcom/locon/core/analytics/engines/q;Lcom/locon/core/domain/inAppRatingNps/b;Lcom/locon/core/data/z;Lcom/locon/core/domain/k;)V", "", "canOverrideExistingModule", "()Z", "", "getName", "()Ljava/lang/String;", "reactNavigator", "Lzp/j0;", "setNavigator", "(Lcom/locon/reactapp/common/m;)V", "Landroid/app/Activity;", "activityContext", "setActivityContext", "(Landroid/app/Activity;)V", "Lcom/facebook/react/bridge/ReadableMap;", "readableMap", "Landroid/os/Bundle;", "readableMapToBundle", "(Lcom/facebook/react/bridge/ReadableMap;)Landroid/os/Bundle;", "setHpLandingPageSeenTime", "()V", "value", "getHpLandingPageTimer", "(Ljava/lang/String;)V", "Lcom/facebook/react/bridge/Callback;", "callback", "getPlayStoreRatingsData", "(Lcom/facebook/react/bridge/Callback;)V", "", "height", "updateEdgeModalHeight", "(F)V", "updateRatingDataOnPopupShown", "rnCrfData", "propertyContactedCallback", "openCrfFlow", "(Ljava/lang/String;Lcom/facebook/react/bridge/Callback;)V", "onRatingSubmitButtonClicked", "loggedOut", "fetchLocalityAndPropertyCount", "rnData", "updateUserData", "(Lcom/facebook/react/bridge/ReadableMap;)V", "hideBottom", "hideBottomTab", "(Z)V", "screen", "action", "category", "attributes", "logAnalyticsEvent", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/facebook/react/bridge/ReadableMap;)V", "getSid", "eventCategoryAction", "customData", "revenue", "alias", "sendEventToBranchIO", "(Ljava/lang/String;Lcom/facebook/react/bridge/ReadableMap;Ljava/lang/String;Ljava/lang/String;)V", "screenName", "utmCampaignUrl", "screenNameEvent", "(Ljava/lang/String;Ljava/lang/String;)V", "moduleName", "Lcom/facebook/react/bridge/Promise;", BaseJavaModule.METHOD_TYPE_PROMISE, "fetchRemoteConfigData", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", "longUrl", "coverImage", "shareTitle", "shareDescription", "openShare", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "shareShortenedUrl", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/facebook/react/bridge/Callback;)V", "openSettings", "channelId", "openChannelSettings", "checkIsNotifChannelEnabled", "checkIsNotificationEnabled", "getFCMToken", "getText", "startSpeechReco", "openLocationSettings", "navAction", "sendNavigationEvent", "currentFlow", "setCurrentFlow", "setSellerOnboardingStatus", "updateCommonBundleLoadedState", "propertyId", "isContactedCallback", "isPropertyContacted", "isRentPaid", "updateRentPaidInPref", "startSMSRetrievel", "autoOtpRetrieve", "unregisterAutoOtp", "getFingerPrint", "getFirstAppOpenTimestamp", "updateChatPreferences", "userInfo", "manageUserLogin", "status", "setMonetisationStatusAttribute", "customerType", "setCustomerTypeAttribute", "moEngageLogout", "city", "setSearchCityAttribute", "userName", "setUserNameAttribute", "phoneNumber", "setPhoneNumberAttribute", "url", "openTermAndConditionUrl", "openMyTransaction", "getMemoryInfo", "triggerPoint", "processInAppReview", "contextName", "setInAppAndShow", com.locon.core.analytics.l.ORDER_TYPE, "processHpOrderStates", "resetInAppContext", "showInAppRatings", "rcValues", "resetConfig", "rcDevValueUpdate", "(Ljava/lang/String;Z)V", "isActiveListing", "updateIsActiveListingAvailable", "setScreenVisited", "Landroid/graphics/Bitmap;", "bitmap", "", "", "convertToGrayscale", "(Landroid/graphics/Bitmap;)[[Ljava/lang/Integer;", "grayscale", "", "calculateLaplacian", "([[Ljava/lang/Integer;)Ljava/util/List;", "imagePath", "calculateBlur", "calculateBrightness", ViewProps.MAX_WIDTH, ViewProps.MAX_HEIGHT, "quality", "resizeImage", "(Ljava/lang/String;IIILcom/facebook/react/bridge/Promise;)V", "startOrientationListener", "(Lcom/facebook/react/bridge/Promise;)V", "stopOrientationListener", "unmountReactApplication", "degrees", "rotateImage", "(Landroid/graphics/Bitmap;F)Landroid/graphics/Bitmap;", "Lcom/facebook/react/bridge/ReactApplicationContext;", "getReactContext", "()Lcom/facebook/react/bridge/ReactApplicationContext;", "Lcom/locon/core/data/local/datastore/o0;", "getPreferenceDataStore", "()Lcom/locon/core/data/local/datastore/o0;", "Lcom/locon/core/data/remote/firebase/remoteconfig/h;", "Lcom/locon/core/analytics/m0;", "Lcom/locon/core/analytics/engines/j;", "Lcom/locon/core/analytics/b;", "Lcom/locon/core/data/share/b;", "Lcom/locon/core/data/notifications/a;", "Lcom/locon/reactapp/common/m;", "Lcom/locon/coreUI/utils/b;", "Lcom/locon/database/dao/k;", "getPropertyLeadDao", "()Lcom/locon/database/dao/k;", "Lcom/locon/core/data/local/datastore/m;", "getFilterDataStore", "()Lcom/locon/core/data/local/datastore/m;", "Lva/a;", "Lcom/locon/core/analytics/engines/q;", "Lcom/locon/core/domain/inAppRatingNps/b;", "Lcom/locon/core/data/z;", "Lcom/locon/core/domain/k;", "activity", "Landroid/app/Activity;", "Landroid/content/Context;", "context", "Landroid/content/Context;", "requestCode", "I", "Lkotlinx/coroutines/v1;", "isPropertyContactedJob", "Lkotlinx/coroutines/v1;", "Lsd/a;", "broadcast", "Lsd/a;", "Lzj/b;", "orientationManager", "Lzj/b;", "reactApp_gammaRelease"}, k = 1, mv = {2, 0, 0}, xi = 48)
@Instrumented
@SourceDebugExtension({"SMAP\nNewBridgeModule.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NewBridgeModule.kt\ncom/locon/reactapp/common/bridge/NewBridgeModule\n+ 2 RemoteConfigRepository.kt\ncom/locon/core/data/remote/firebase/remoteconfig/RemoteConfigRepository\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 Bitmap.kt\nandroidx/core/graphics/BitmapKt\n+ 5 _Maps.kt\nkotlin/collections/MapsKt___MapsKt\n*L\n1#1,1467:1\n137#2,2:1468\n1#3:1470\n1#3:1471\n76#4,2:1472\n216#5,2:1474\n*S KotlinDebug\n*F\n+ 1 NewBridgeModule.kt\ncom/locon/reactapp/common/bridge/NewBridgeModule\n*L\n261#1:1468,2\n261#1:1470\n1417#1:1472,2\n1257#1:1474,2\n*E\n"})
public final class NewBridgeModule extends ReactContextBaseJavaModule {
    public static final int $stable = 8;

    @Nullable
    private Activity activity;

    @NotNull
    private final com.locon.coreUI.utils.b agentContactManager;

    @NotNull
    private final com.locon.core.analytics.m0 analyticsService;

    @Nullable
    private sd.a broadcast;

    @NotNull
    private final com.locon.core.analytics.b commonAttributes;

    @Nullable
    private Context context;

    @NotNull
    private final com.locon.core.data.notifications.a fcmTokenManager;

    @NotNull
    private final com.locon.core.data.local.datastore.m filterDataStore;

    @NotNull
    private final com.locon.core.data.z fingerprintManager;

    @NotNull
    private final com.locon.core.domain.k getLocalityAndPropertyCount;

    @NotNull
    private final com.locon.core.analytics.engines.j housingBranchAnalytics;

    @NotNull
    private final va.a iChatRepo;

    @NotNull
    private final com.locon.core.data.share.b iShareVia;

    @NotNull
    private final com.locon.core.domain.inAppRatingNps.b inAppRatingManager;

    @Nullable
    private v1 isPropertyContactedJob;

    @NotNull
    private final com.locon.core.analytics.engines.q moEngageAnalytics;

    @Nullable
    private com.locon.reactapp.common.m navigator;

    @NotNull
    private zj.b orientationManager;

    @NotNull
    private final com.locon.core.data.local.datastore.o0 preferenceDataStore;

    @NotNull
    private final com.locon.database.dao.k propertyLeadDao;

    @NotNull
    private final ReactApplicationContext reactContext;

    @NotNull
    private final com.locon.core.data.remote.firebase.remoteconfig.h remoteConfigRepository;
    private final int requestCode;

    @Metadata(k = 3, mv = {2, 0, 0}, xi = 48)
    public class a {
        public static final int[] $EnumSwitchMapping$0;

        static {
            int[] iArr = new int[ReadableType.values().length];
            try {
                iArr[ReadableType.Boolean.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[ReadableType.Number.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                iArr[ReadableType.String.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            $EnumSwitchMapping$0 = iArr;
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$setCurrentFlow$1", f = "NewBridgeModule.kt", i = {}, l = {Currencies.XDR}, m = "invokeSuspend", n = {}, s = {})
    public static final class a0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final String $currentFlow;
        int label;

        public a0(String str, kotlin.coroutines.d<? super a0> dVar) {
            super(2, dVar);
            this.$currentFlow = str;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new a0(this.$currentFlow, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                com.locon.core.data.local.datastore.o0 preferenceDataStore = NewBridgeModule.this.getPreferenceDataStore();
                k2 k2Var = k2.CURRENT_FLOW;
                String str = this.$currentFlow;
                this.label = 1;
                if (preferenceDataStore.n(k2Var, str, this) == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
                ((zp.t) obj).getValue();
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((a0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$fetchLocalityAndPropertyCount$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
    @Instrumented
    public static final class b extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final Callback $callback;
        int label;

        public b(Callback callback, kotlin.coroutines.d<? super b> dVar) {
            super(2, dVar);
            this.$callback = callback;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new b(this.$callback, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            zp.u.b(obj);
            NewBridgeModule.this.getLocalityAndPropertyCount.f(new com.locon.reactapp.common.bridge.f(0, this.$callback));
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((b) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$setCustomerTypeAttribute$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
    public static final class b0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final String $customerType;
        int label;

        public b0(String str, kotlin.coroutines.d<? super b0> dVar) {
            super(2, dVar);
            this.$customerType = str;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new b0(this.$customerType, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            zp.u.b(obj);
            NewBridgeModule.this.moEngageAnalytics.j(this.$customerType);
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((b0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$fetchRemoteConfigData$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
    public static final class c extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final String $moduleName;
        final Promise $promise;
        int label;

        public c(String str, Promise promise, kotlin.coroutines.d<? super c> dVar) {
            super(2, dVar);
            this.$moduleName = str;
            this.$promise = promise;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new c(this.$moduleName, this.$promise, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            zp.u.b(obj);
            try {
                this.$promise.resolve(NewBridgeModule.this.remoteConfigRepository.b(this.$moduleName));
            } catch (Exception e5) {
                this.$promise.reject("Error while fetching RC ", e5);
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((c) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$setHpLandingPageSeenTime$1", f = "NewBridgeModule.kt", i = {}, l = {187}, m = "invokeSuspend", n = {}, s = {})
    public static final class c0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        int label;

        public c0(kotlin.coroutines.d<? super c0> dVar) {
            super(2, dVar);
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new c0(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                long currentTimeMillis = System.currentTimeMillis();
                com.locon.core.data.local.datastore.o0 preferenceDataStore = NewBridgeModule.this.getPreferenceDataStore();
                k2 k2Var = k2.HP_LANDING_PAGE_LAST_SEEN;
                String valueOf = String.valueOf(currentTimeMillis);
                this.label = 1;
                if (preferenceDataStore.n(k2Var, valueOf, this) == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
                ((zp.t) obj).getValue();
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((c0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$getFCMToken$1", f = "NewBridgeModule.kt", i = {}, l = {717}, m = "invokeSuspend", n = {}, s = {})
    public static final class d extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final Callback $callback;
        int label;

        public d(Callback callback, kotlin.coroutines.d<? super d> dVar) {
            super(2, dVar);
            this.$callback = callback;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new d(this.$callback, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                com.locon.core.data.notifications.d e5 = NewBridgeModule.this.fcmTokenManager.e();
                this.label = 1;
                obj = kotlinx.coroutines.flow.m.u(e5, this);
                if (obj == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
            }
            String str = (String) obj;
            Callback callback = this.$callback;
            if (str == null) {
                str = "";
            }
            callback.invoke(str);
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((d) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$setMonetisationStatusAttribute$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
    public static final class d0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final String $status;
        int label;

        public d0(String str, kotlin.coroutines.d<? super d0> dVar) {
            super(2, dVar);
            this.$status = str;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new d0(this.$status, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            zp.u.b(obj);
            NewBridgeModule.this.moEngageAnalytics.t(this.$status);
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((d0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$getFirstAppOpenTimestamp$1", f = "NewBridgeModule.kt", i = {}, l = {1054}, m = "invokeSuspend", n = {}, s = {})
    public static final class e extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final Callback $callback;
        int label;

        public e(Callback callback, kotlin.coroutines.d<? super e> dVar) {
            super(2, dVar);
            this.$callback = callback;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new e(this.$callback, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                kotlinx.coroutines.flow.k f8 = NewBridgeModule.this.getPreferenceDataStore().f(k2.FIRST_APP_OPEN_TIMESTAMP);
                this.label = 1;
                obj = kotlinx.coroutines.flow.m.u(f8, this);
                if (obj == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
            }
            String str = (String) obj;
            this.$callback.invoke(str != null ? kotlin.text.q.l0(str) : null);
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((e) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$setPhoneNumberAttribute$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
    public static final class e0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final String $phoneNumber;
        int label;

        public e0(String str, kotlin.coroutines.d<? super e0> dVar) {
            super(2, dVar);
            this.$phoneNumber = str;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new e0(this.$phoneNumber, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            zp.u.b(obj);
            NewBridgeModule.this.moEngageAnalytics.u(this.$phoneNumber);
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((e0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$getHpLandingPageTimer$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
    public static final class f extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final String $value;
        int label;

        public f(String str, kotlin.coroutines.d<? super f> dVar) {
            super(2, dVar);
            this.$value = str;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return new f(this.$value, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            zp.u.b(obj);
            o1 o1Var = o1.INSTANCE;
            String str = this.$value;
            o1Var.getClass();
            o1.F0(str);
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((f) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$setScreenVisited$1", f = "NewBridgeModule.kt", i = {}, l = {1286}, m = "invokeSuspend", n = {}, s = {})
    public static final class f0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final String $value;
        int label;

        public f0(String str, kotlin.coroutines.d<? super f0> dVar) {
            super(2, dVar);
            this.$value = str;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new f0(this.$value, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                com.locon.core.data.local.datastore.o0 preferenceDataStore = NewBridgeModule.this.getPreferenceDataStore();
                k2 k2Var = k2.SCREEN_VISITED_BEFORE_APP_EXIT;
                String str = this.$value;
                this.label = 1;
                if (preferenceDataStore.n(k2Var, str, this) == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
                ((zp.t) obj).getValue();
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((f0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$getPlayStoreRatingsData$1", f = "NewBridgeModule.kt", i = {}, l = {210, Currencies.DOP, JfifUtil.MARKER_SOS}, m = "invokeSuspend", n = {}, s = {})
    public static final class g extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final Callback $callback;
        final WritableMap $data;
        final kotlin.jvm.internal.k0 $inAppReviewShownCount;
        final kotlin.jvm.internal.i0 $lastShownAt;
        final kotlin.jvm.internal.h0 $neverShowRatingModal;
        Object L$0;
        int label;
        final NewBridgeModule this$0;

        public g(kotlin.jvm.internal.k0 k0Var, NewBridgeModule newBridgeModule, kotlin.jvm.internal.i0 i0Var, kotlin.jvm.internal.h0 h0Var, WritableMap writableMap, Callback callback, kotlin.coroutines.d<? super g> dVar) {
            super(2, dVar);
            this.$inAppReviewShownCount = k0Var;
            this.this$0 = newBridgeModule;
            this.$lastShownAt = i0Var;
            this.$neverShowRatingModal = h0Var;
            this.$data = writableMap;
            this.$callback = callback;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return new g(this.$inAppReviewShownCount, this.this$0, this.$lastShownAt, this.$neverShowRatingModal, this.$data, this.$callback, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.jvm.internal.k0 k0Var;
            kotlin.jvm.internal.i0 i0Var;
            Integer n02;
            kotlin.jvm.internal.h0 h0Var;
            Callback callback;
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                k0Var = this.$inAppReviewShownCount;
                kotlinx.coroutines.flow.k f8 = this.this$0.getPreferenceDataStore().f(k2.IN_APP_REVIEW_SHOWN_COUNT);
                this.L$0 = k0Var;
                this.label = 1;
                obj = kotlinx.coroutines.flow.m.u(f8, this);
            } else {
                if (i8 != 1) {
                    if (i8 != 2) {
                        if (i8 != 3) {
                            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                        }
                        h0Var = (kotlin.jvm.internal.h0) this.L$0;
                        zp.u.b(obj);
                        String str = (String) obj;
                        h0Var.element = str != null ? Boolean.parseBoolean(str) : false;
                        this.$data.putInt("modalShownCount", this.$inAppReviewShownCount.element);
                        this.$data.putBoolean("neverShowRatingModal", this.$neverShowRatingModal.element);
                        this.$data.putDouble("lastShownAt", this.$lastShownAt.element);
                        callback = this.$callback;
                        if (callback != null) {
                            callback.invoke(this.$data);
                        }
                        return zp.j0.INSTANCE;
                    }
                    i0Var = (kotlin.jvm.internal.i0) this.L$0;
                    zp.u.b(obj);
                    String str2 = (String) obj;
                    i0Var.element = str2 != null ? Double.parseDouble(str2) : 0.0d;
                    kotlin.jvm.internal.h0 h0Var2 = this.$neverShowRatingModal;
                    kotlinx.coroutines.flow.k f10 = this.this$0.getPreferenceDataStore().f(k2.IN_APP_RATING_SUBMITTED);
                    this.L$0 = h0Var2;
                    this.label = 3;
                    Object u7 = kotlinx.coroutines.flow.m.u(f10, this);
                    if (u7 != aVar) {
                        h0Var = h0Var2;
                        obj = u7;
                        String str3 = (String) obj;
                        h0Var.element = str3 != null ? Boolean.parseBoolean(str3) : false;
                        this.$data.putInt("modalShownCount", this.$inAppReviewShownCount.element);
                        this.$data.putBoolean("neverShowRatingModal", this.$neverShowRatingModal.element);
                        this.$data.putDouble("lastShownAt", this.$lastShownAt.element);
                        callback = this.$callback;
                        if (callback != null) {
                        }
                        return zp.j0.INSTANCE;
                    }
                    return aVar;
                }
                k0Var = (kotlin.jvm.internal.k0) this.L$0;
                zp.u.b(obj);
            }
            String str4 = (String) obj;
            k0Var.element = (str4 == null || (n02 = kotlin.text.q.n0(str4)) == null) ? 0 : n02.intValue();
            i0Var = this.$lastShownAt;
            kotlinx.coroutines.flow.k f11 = this.this$0.getPreferenceDataStore().f(k2.IN_APP_REVIEW_SHOWN_DATE);
            this.L$0 = i0Var;
            this.label = 2;
            obj = kotlinx.coroutines.flow.m.u(f11, this);
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((g) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$setSearchCityAttribute$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
    public static final class g0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final String $city;
        int label;

        public g0(String str, kotlin.coroutines.d<? super g0> dVar) {
            super(2, dVar);
            this.$city = str;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new g0(this.$city, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            zp.u.b(obj);
            NewBridgeModule.this.moEngageAnalytics.x(this.$city);
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((g0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$getSid$1", f = "NewBridgeModule.kt", i = {}, l = {540}, m = "invokeSuspend", n = {}, s = {})
    public static final class h extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final Callback $callback;
        int label;
        final NewBridgeModule this$0;

        public h(Callback callback, NewBridgeModule newBridgeModule, kotlin.coroutines.d<? super h> dVar) {
            super(2, dVar);
            this.$callback = callback;
            this.this$0 = newBridgeModule;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return new h(this.$callback, this.this$0, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                NewBridgeModule newBridgeModule = this.this$0;
                this.label = 1;
                obj = NewBridgeModule.getSid$getSidWrapper(newBridgeModule, this);
                if (obj == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
            }
            this.$callback.invoke((String) obj);
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((h) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$setSellerOnboardingStatus$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
    public static final class h0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        int label;

        public h0(kotlin.coroutines.d<? super h0> dVar) {
            super(2, dVar);
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return new h0(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            zp.u.b(obj);
            o1.INSTANCE.getClass();
            o1.h1(true);
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((h0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\u000e\n\u0002\u0010\b\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 = {"", "it", "Lzp/j0;", "<anonymous>", "(I)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$isPropertyContacted$1", f = "NewBridgeModule.kt", i = {}, l = {989}, m = "invokeSuspend", n = {}, s = {})
    public static final class i extends eq.i implements kq.p<Integer, kotlin.coroutines.d<? super zp.j0>, Object> {
        final Callback $isContactedCallback;
        int I$0;
        int label;
        final NewBridgeModule this$0;

        public i(Callback callback, NewBridgeModule newBridgeModule, kotlin.coroutines.d<? super i> dVar) {
            super(2, dVar);
            this.$isContactedCallback = callback;
            this.this$0 = newBridgeModule;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            i iVar = new i(this.$isContactedCallback, this.this$0, dVar);
            iVar.I$0 = ((Number) obj).intValue();
            return iVar;
        }

        public final Object invoke(int i8, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((i) create(Integer.valueOf(i8), dVar)).invokeSuspend(zp.j0.INSTANCE);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                if (this.I$0 == 1) {
                    this.$isContactedCallback.invoke(Boolean.TRUE);
                    this.label = 1;
                    if (u0.b(500L, this) == aVar) {
                        return aVar;
                    }
                }
                return zp.j0.INSTANCE;
            }
            if (i8 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            zp.u.b(obj);
            v1 v1Var = this.this$0.isPropertyContactedJob;
            if (v1Var != null) {
                v1Var.cancel(null);
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public Object invoke(Object obj, Object obj2) {
            return invoke(((Number) obj).intValue(), (kotlin.coroutines.d<? super zp.j0>) obj2);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$setUserNameAttribute$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
    public static final class i0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final String $userName;
        int label;

        public i0(String str, kotlin.coroutines.d<? super i0> dVar) {
            super(2, dVar);
            this.$userName = str;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new i0(this.$userName, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            zp.u.b(obj);
            NewBridgeModule.this.moEngageAnalytics.z(this.$userName);
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((i0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$logAnalyticsEvent$1", f = "NewBridgeModule.kt", i = {0}, l = {510, 513, 526}, m = "invokeSuspend", n = {"parsedData"}, s = {"L$0"})
    public static final class j extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final String $action;
        final ReadableMap $attributes;
        final String $category;
        final String $screen;
        Object L$0;
        int label;
        final NewBridgeModule this$0;

        public j(ReadableMap readableMap, NewBridgeModule newBridgeModule, String str, String str2, String str3, kotlin.coroutines.d<? super j> dVar) {
            super(2, dVar);
            this.$attributes = readableMap;
            this.this$0 = newBridgeModule;
            this.$screen = str;
            this.$action = str2;
            this.$category = str3;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return new j(this.$attributes, this.this$0, this.$screen, this.$action, this.$category, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Object i8;
            Map d5;
            Object i10;
            Map m7;
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i11 = this.label;
            if (i11 == 0) {
                zp.u.b(obj);
                ReadableMap readableMap = this.$attributes;
                if (readableMap != null) {
                    ReadableNativeMap readableNativeMap = readableMap instanceof ReadableNativeMap ? (ReadableNativeMap) readableMap : null;
                    if (readableNativeMap == null || (d5 = readableNativeMap.toHashMap()) == null) {
                        d5 = t0.d();
                    }
                    com.locon.core.analytics.b bVar = this.this$0.commonAttributes;
                    this.L$0 = d5;
                    this.label = 1;
                    i10 = com.locon.core.analytics.b.i(bVar, false, this, 3);
                } else {
                    com.locon.core.analytics.b bVar2 = this.this$0.commonAttributes;
                    this.label = 2;
                    i8 = com.locon.core.analytics.b.i(bVar2, false, this, 3);
                }
                return aVar;
            }
            if (i11 == 1) {
                d5 = (Map) this.L$0;
                zp.u.b(obj);
                i10 = obj;
                m7 = t0.m((Map) i10, d5);
            } else {
                if (i11 != 2) {
                    if (i11 != 3) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    zp.u.b(obj);
                    return zp.j0.INSTANCE;
                }
                zp.u.b(obj);
                i8 = obj;
                m7 = (Map) i8;
            }
            Object obj2 = m7.get("service");
            String str = obj2 instanceof String ? (String) obj2 : null;
            if (str != null) {
                Locale locale = Locale.ROOT;
                String lowerCase = str.toLowerCase(locale);
                kotlin.jvm.internal.r.j(lowerCase, "toLowerCase(...)");
                if (!lowerCase.equals(sc.d0.Buy.getType())) {
                    String lowerCase2 = str.toLowerCase(locale);
                    kotlin.jvm.internal.r.j(lowerCase2, "toLowerCase(...)");
                }
                m7 = t0.t(m7);
                m7.put("service", "rn_".concat(str));
            }
            String str2 = this.$action;
            String str3 = this.$category;
            this.L$0 = null;
            this.label = 3;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((j) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$shareShortenedUrl$2", f = "NewBridgeModule.kt", i = {}, l = {637}, m = "invokeSuspend", n = {}, s = {})
    public static final class j0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final Callback $callback;
        final ShareShortenedUrlData $shareData;
        int label;

        @Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0010\u0003\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004*\n\u0012\u0006\u0012\u0004\u0018\u00010\u00010\u00002\u0006\u0010\u0003\u001a\u00020\u0002H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Lkotlinx/coroutines/flow/l;", "", "", "it", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/flow/l;Ljava/lang/Throwable;)V"}, k = 3, mv = {2, 0, 0})
        @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$shareShortenedUrl$2$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
        public static final class a extends eq.i implements kq.q<kotlinx.coroutines.flow.l<? super String>, Throwable, kotlin.coroutines.d<? super zp.j0>, Object> {
            final Callback $callback;
            Object L$0;
            int label;

            public a(Callback callback, kotlin.coroutines.d<? super a> dVar) {
                super(3, dVar);
                this.$callback = callback;
            }

            @Override
            public final Object invokeSuspend(Object obj) {
                kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                if (this.label != 0) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
                FirebaseCrashlytics.getInstance().recordException((Throwable) this.L$0);
                this.$callback.invoke("");
                return zp.j0.INSTANCE;
            }

            @Override
            public final Object invoke(kotlinx.coroutines.flow.l<? super String> lVar, Throwable th2, kotlin.coroutines.d<? super zp.j0> dVar) {
                a aVar = new a(this.$callback, dVar);
                aVar.L$0 = th2;
                return aVar.invokeSuspend(zp.j0.INSTANCE);
            }
        }

        @Metadata(k = 3, mv = {2, 0, 0}, xi = 48)
        public static final class b<T> implements kotlinx.coroutines.flow.l {
            final Callback $callback;

            public b(Callback callback) {
                this.$callback = callback;
            }

            @Override
            public final Object emit(Object obj, kotlin.coroutines.d dVar) {
                this.$callback.invoke(String.valueOf((String) obj));
                return zp.j0.INSTANCE;
            }
        }

        public j0(ShareShortenedUrlData shareShortenedUrlData, Callback callback, kotlin.coroutines.d<? super j0> dVar) {
            super(2, dVar);
            this.$shareData = shareShortenedUrlData;
            this.$callback = callback;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new j0(this.$shareData, this.$callback, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                kotlinx.coroutines.flow.b0 b0Var = new kotlinx.coroutines.flow.b0(((com.locon.core.data.share.h) NewBridgeModule.this.iShareVia).b(this.$shareData), new a(this.$callback, null));
                b bVar = new b(this.$callback);
                this.label = 1;
                if (b0Var.collect(bVar, this) == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((j0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$loggedOut$2", f = "NewBridgeModule.kt", i = {}, l = {HttpStatus.SC_METHOD_FAILURE, HttpStatus.SC_FAILED_DEPENDENCY}, m = "invokeSuspend", n = {}, s = {})
    public static final class k extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        int label;

        public k(kotlin.coroutines.d<? super k> dVar) {
            super(2, dVar);
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new k(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                com.locon.core.data.local.datastore.o0 preferenceDataStore = NewBridgeModule.this.getPreferenceDataStore();
                k2 k2Var = k2.USER_ALL_DETAILS;
                this.label = 1;
            } else {
                if (i8 != 1) {
                    if (i8 != 2) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    zp.u.b(obj);
                    NewBridgeModule.this.updateRentPaidInPref(false);
                    NewBridgeModule.this.updateIsActiveListingAvailable(false);
                    return zp.j0.INSTANCE;
                }
                zp.u.b(obj);
            }
            com.locon.core.data.local.datastore.o0 preferenceDataStore2 = NewBridgeModule.this.getPreferenceDataStore();
            k2 k2Var2 = k2.IS_LOGIN_REQUIRED;
            this.label = 2;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((k) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"com/locon/reactapp/common/bridge/NewBridgeModule$k0", "Lzj/a;", "reactApp_gammaRelease"}, k = 1, mv = {2, 0, 0}, xi = 48)
    public static final class k0 implements zj.a {
        public k0() {
        }

        public final void a(boolean z5) {
            WritableMap createMap = Arguments.createMap();
            createMap.putBoolean("isRegionValid", z5);
            if (NewBridgeModule.this.getReactContext().hasActiveReactInstance()) {
                ((DeviceEventManagerModule.RCTDeviceEventEmitter) NewBridgeModule.this.getReactContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)).emit("onOrientationChange", createMap);
            }
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$manageUserLogin$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
    @Instrumented
    public static final class l extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final Gson $gson;
        final ReadableMap $userInfo;
        int label;
        final NewBridgeModule this$0;

        public l(Gson gson, ReadableMap readableMap, NewBridgeModule newBridgeModule, kotlin.coroutines.d<? super l> dVar) {
            super(2, dVar);
            this.$gson = gson;
            this.$userInfo = readableMap;
            this.this$0 = newBridgeModule;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return new l(this.$gson, this.$userInfo, this.this$0, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            zp.u.b(obj);
            Gson gson = this.$gson;
            String string = this.$userInfo.getString("userData");
            Object e5 = gson == null ? gson.e(string, UserData.class) : GsonInstrumentation.fromJson(gson, string, UserData.class);
            kotlin.jvm.internal.r.j(e5, "fromJson(...)");
            this.this$0.moEngageAnalytics.e(oc.y.a((UserData) e5));
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((l) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$startSpeechReco$1", f = "NewBridgeModule.kt", i = {}, l = {726}, m = "invokeSuspend", n = {}, s = {})
    public static final class l0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final Callback $getText;
        int label;

        public l0(Callback callback, kotlin.coroutines.d<? super l0> dVar) {
            super(2, dVar);
            this.$getText = callback;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return new l0(this.$getText, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                com.locon.reactapp.common.j jVar = com.locon.reactapp.common.j.INSTANCE;
                com.locon.reactapp.common.i iVar = new com.locon.reactapp.common.i(com.locon.reactapp.common.i.OPEN_SPEECH_TO_TEXT, this.$getText);
                this.label = 1;
                jVar.getClass();
                if (com.locon.reactapp.common.j.b(iVar, this) == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((l0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$moEngageLogout$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
    public static final class m extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        int label;

        public m(kotlin.coroutines.d<? super m> dVar) {
            super(2, dVar);
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new m(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            zp.u.b(obj);
            NewBridgeModule.this.moEngageAnalytics.f();
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((m) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$updateChatPreferences$1", f = "NewBridgeModule.kt", i = {}, l = {1064}, m = "invokeSuspend", n = {}, s = {})
    public static final class m0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        int label;

        public m0(kotlin.coroutines.d<? super m0> dVar) {
            super(2, dVar);
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new m0(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                va.a aVar2 = NewBridgeModule.this.iChatRepo;
                this.label = 1;
                if (((com.locon.chat.data.repository.w) aVar2).e0(this) == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((m0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$onRatingSubmitButtonClicked$1", f = "NewBridgeModule.kt", i = {}, l = {406}, m = "invokeSuspend", n = {}, s = {})
    public static final class n extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        int label;

        public n(kotlin.coroutines.d<? super n> dVar) {
            super(2, dVar);
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new n(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                com.locon.core.data.local.datastore.o0 preferenceDataStore = NewBridgeModule.this.getPreferenceDataStore();
                k2 k2Var = k2.IN_APP_RATING_SUBMITTED;
                this.label = 1;
                if (preferenceDataStore.n(k2Var, ServerProtocol.DIALOG_RETURN_SCOPES_TRUE, this) == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
                ((zp.t) obj).getValue();
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((n) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$updateIsActiveListingAvailable$1", f = "NewBridgeModule.kt", i = {}, l = {1278}, m = "invokeSuspend", n = {}, s = {})
    public static final class n0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final boolean $isActiveListing;
        int label;

        public n0(boolean z5, kotlin.coroutines.d<? super n0> dVar) {
            super(2, dVar);
            this.$isActiveListing = z5;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new n0(this.$isActiveListing, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                com.locon.core.data.local.datastore.o0 preferenceDataStore = NewBridgeModule.this.getPreferenceDataStore();
                k2 k2Var = k2.IS_ACTIVE_LISTING_AVAILABLE;
                String valueOf = String.valueOf(this.$isActiveListing);
                this.label = 1;
                if (preferenceDataStore.n(k2Var, valueOf, this) == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
                ((zp.t) obj).getValue();
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((n0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$openCrfFlow$1", f = "NewBridgeModule.kt", i = {1}, l = {270, 351}, m = "invokeSuspend", n = {"crfInitDetails"}, s = {"L$0"})
    @Instrumented
    @SourceDebugExtension({"SMAP\nNewBridgeModule.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NewBridgeModule.kt\ncom/locon/reactapp/common/bridge/NewBridgeModule$openCrfFlow$1\n+ 2 RemoteConfigRepository.kt\ncom/locon/core/data/remote/firebase/remoteconfig/RemoteConfigRepository\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,1467:1\n137#2,2:1468\n1#3:1470\n1563#4:1471\n1634#4,3:1472\n1563#4:1475\n1634#4,3:1476\n1563#4:1479\n1634#4,3:1480\n*S KotlinDebug\n*F\n+ 1 NewBridgeModule.kt\ncom/locon/reactapp/common/bridge/NewBridgeModule$openCrfFlow$1\n*L\n273#1:1468,2\n273#1:1470\n353#1:1471\n353#1:1472,3\n316#1:1475\n316#1:1476,3\n322#1:1479\n322#1:1480,3\n*E\n"})
    public static final class o extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final CtaConfigDetail $configDetail;
        final Callback $propertyContactedCallback;
        final ReactNativeCrfModel $reactNativeCrfModel;
        final PropertyInfoModels$CrfModel $serpCrfModel;
        Object L$0;
        int label;

        @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lkotlinx/coroutines/j0;", "Lkotlinx/coroutines/flow/k;", "Lcom/locon/core/data/local/datastore/FilterStore;", "<anonymous>", "(Lkotlinx/coroutines/j0;)Lkotlinx/coroutines/flow/k;"}, k = 3, mv = {2, 0, 0})
        @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$openCrfFlow$1$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
        public static final class a extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super kotlinx.coroutines.flow.k<? extends FilterStore>>, Object> {
            final ApartmentTypesConfigModel $apartmentConfig;
            final List<Integer> $filterBHKs;
            int label;
            final NewBridgeModule this$0;

            @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\b\u0010\u0001\u001a\u0004\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lcom/locon/core/data/local/datastore/FilterStore;", "it", "Lzp/j0;", "<anonymous>", "(Lcom/locon/core/data/local/datastore/FilterStore;)V"}, k = 3, mv = {2, 0, 0})
            @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$openCrfFlow$1$1$1", f = "NewBridgeModule.kt", i = {}, l = {279}, m = "invokeSuspend", n = {}, s = {})
            public static final class C0729a extends eq.i implements kq.p<FilterStore, kotlin.coroutines.d<? super zp.j0>, Object> {
                final ApartmentTypesConfigModel $apartmentConfig;
                final List<Integer> $filterBHKs;
                Object L$0;
                int label;

                @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
                @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$openCrfFlow$1$1$1$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
                @SourceDebugExtension({"SMAP\nNewBridgeModule.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NewBridgeModule.kt\ncom/locon/reactapp/common/bridge/NewBridgeModule$openCrfFlow$1$1$1$1\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,1467:1\n1563#2:1468\n1634#2,3:1469\n*S KotlinDebug\n*F\n+ 1 NewBridgeModule.kt\ncom/locon/reactapp/common/bridge/NewBridgeModule$openCrfFlow$1$1$1$1\n*L\n290#1:1468\n290#1:1469,3\n*E\n"})
                public static final class C0730a extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
                    final ApartmentTypesConfigModel $apartmentConfig;
                    final List<Integer> $filterBHKs;
                    final FilterStore $it;
                    int label;

                    public C0730a(List<Integer> list, FilterStore filterStore, ApartmentTypesConfigModel apartmentTypesConfigModel, kotlin.coroutines.d<? super C0730a> dVar) {
                        super(2, dVar);
                        this.$filterBHKs = list;
                        this.$it = filterStore;
                        this.$apartmentConfig = apartmentTypesConfigModel;
                    }

                    @Override
                    public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
                        return new C0730a(this.$filterBHKs, this.$it, this.$apartmentConfig, dVar);
                    }

                    @Override
                    public final Object invokeSuspend(Object obj) {
                        List list;
                        Object obj2;
                        List attributes;
                        Map apartmentGroupTypes;
                        ApartmentTypeConfigModel apartmentTypeConfigModel;
                        FilterProperties filterProps;
                        kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                        if (this.label != 0) {
                            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                        }
                        zp.u.b(obj);
                        this.$filterBHKs.clear();
                        FilterStore filterStore = this.$it;
                        zp.s latest = filterStore != null ? filterStore.getLatest() : null;
                        if (filterStore == null || (list = filterStore.getPast()) == null) {
                            list = kotlin.collections.g0.INSTANCE;
                        }
                        ArrayList C = kotlin.collections.t.C(kotlin.collections.t.c0(list, latest));
                        ListIterator listIterator = C.listIterator(C.size());
                        while (true) {
                            if (!listIterator.hasPrevious()) {
                                obj2 = null;
                                break;
                            }
                            obj2 = listIterator.previous();
                            if (((zp.s) obj2).getFirst() == sc.d0.Buy) {
                                break;
                            }
                        }
                        zp.s sVar = (zp.s) obj2;
                        Filter filter = sVar != null ? (Filter) sVar.getSecond() : null;
                        FilterAttrList bhkType = (filter == null || (filterProps = filter.getFilterProps()) == null) ? null : filterProps.getBhkType();
                        if (bhkType != null && !bhkType.getAttributes().isEmpty() && (attributes = bhkType.getAttributes()) != null) {
                            List list2 = attributes;
                            ApartmentTypesConfigModel apartmentTypesConfigModel = this.$apartmentConfig;
                            List<Integer> list3 = this.$filterBHKs;
                            ArrayList arrayList = new ArrayList(kotlin.collections.t.u(list2, 10));
                            Iterator it = list2.iterator();
                            while (it.hasNext()) {
                                Integer num = (Integer) ((FilterAttr) it.next()).getValue();
                                List mappedIds = (apartmentTypesConfigModel == null || (apartmentGroupTypes = apartmentTypesConfigModel.getApartmentGroupTypes()) == null || (apartmentTypeConfigModel = (ApartmentTypeConfigModel) apartmentGroupTypes.get(String.valueOf(num != null ? num.intValue() : -1))) == null) ? null : apartmentTypeConfigModel.getMappedIds();
                                if (mappedIds != null) {
                                    list3.addAll(mappedIds);
                                }
                                arrayList.add(zp.j0.INSTANCE);
                            }
                        }
                        return zp.j0.INSTANCE;
                    }

                    @Override
                    public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
                        return ((C0730a) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
                    }
                }

                public C0729a(List<Integer> list, ApartmentTypesConfigModel apartmentTypesConfigModel, kotlin.coroutines.d<? super C0729a> dVar) {
                    super(2, dVar);
                    this.$filterBHKs = list;
                    this.$apartmentConfig = apartmentTypesConfigModel;
                }

                @Override
                public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
                    C0729a c0729a = new C0729a(this.$filterBHKs, this.$apartmentConfig, dVar);
                    c0729a.L$0 = obj;
                    return c0729a;
                }

                @Override
                public final Object invoke(FilterStore filterStore, kotlin.coroutines.d<? super zp.j0> dVar) {
                    return ((C0729a) create(filterStore, dVar)).invokeSuspend(zp.j0.INSTANCE);
                }

                @Override
                public final Object invokeSuspend(Object obj) {
                    kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                    int i8 = this.label;
                    if (i8 == 0) {
                        zp.u.b(obj);
                        FilterStore filterStore = (FilterStore) this.L$0;
                        z0 z0Var = z0.INSTANCE;
                        kotlinx.coroutines.scheduling.b bVar = kotlinx.coroutines.scheduling.b.INSTANCE;
                        C0730a c0730a = new C0730a(this.$filterBHKs, filterStore, this.$apartmentConfig, null);
                        this.label = 1;
                        if (kotlinx.coroutines.k.f(bVar, c0730a, this) == aVar) {
                            return aVar;
                        }
                    } else {
                        if (i8 != 1) {
                            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                        }
                        zp.u.b(obj);
                    }
                    return zp.j0.INSTANCE;
                }
            }

            public a(NewBridgeModule newBridgeModule, List<Integer> list, ApartmentTypesConfigModel apartmentTypesConfigModel, kotlin.coroutines.d<? super a> dVar) {
                super(2, dVar);
                this.this$0 = newBridgeModule;
                this.$filterBHKs = list;
                this.$apartmentConfig = apartmentTypesConfigModel;
            }

            @Override
            public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
                return new a(this.this$0, this.$filterBHKs, this.$apartmentConfig, dVar);
            }

            @Override
            public final Object invokeSuspend(Object obj) {
                kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                if (this.label != 0) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
                return new p1(this.this$0.getFilterDataStore().e(), new C0729a(this.$filterBHKs, this.$apartmentConfig, null));
            }

            @Override
            public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super kotlinx.coroutines.flow.k<FilterStore>> dVar) {
                return ((a) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lkotlinx/coroutines/j0;", "Lkotlinx/coroutines/flow/k;", "Lcom/locon/crf/domain/requests/LeadCreateRequest;", "<anonymous>", "(Lkotlinx/coroutines/j0;)Lkotlinx/coroutines/flow/k;"}, k = 3, mv = {2, 0, 0})
        @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$openCrfFlow$1$previousLead$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
        public static final class b extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super kotlinx.coroutines.flow.k<? extends LeadCreateRequest>>, Object> {
            int label;
            final NewBridgeModule this$0;

            public b(NewBridgeModule newBridgeModule, kotlin.coroutines.d<? super b> dVar) {
                super(2, dVar);
                this.this$0 = newBridgeModule;
            }

            @Override
            public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
                return new b(this.this$0, dVar);
            }

            @Override
            public final Object invokeSuspend(Object obj) {
                kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                if (this.label != 0) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
                return this.this$0.getPreferenceDataStore().g(k2.LAST_LEAD, LeadCreateRequest.class);
            }

            @Override
            public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super kotlinx.coroutines.flow.k<LeadCreateRequest>> dVar) {
                return ((b) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
            }
        }

        public o(ReactNativeCrfModel reactNativeCrfModel, Callback callback, PropertyInfoModels$CrfModel propertyInfoModels$CrfModel, CtaConfigDetail ctaConfigDetail, kotlin.coroutines.d<? super o> dVar) {
            super(2, dVar);
            this.$reactNativeCrfModel = reactNativeCrfModel;
            this.$propertyContactedCallback = callback;
            this.$serpCrfModel = propertyInfoModels$CrfModel;
            this.$configDetail = ctaConfigDetail;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new o(this.$reactNativeCrfModel, this.$propertyContactedCallback, this.$serpCrfModel, this.$configDetail, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Object u7;
            ce.b bVar;
            String type;
            CrfInitDetails crfInitDetails;
            Object u10;
            String analyticsFromSection;
            String analyticsPlacement;
            String analyticsFrom;
            String analyticsSource;
            ArrayList arrayList;
            String str;
            String analyticsPlacement2;
            Collection values;
            int i8 = 2;
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i10 = this.label;
            if (i10 == 0) {
                zp.u.b(obj);
                kotlinx.coroutines.flow.k kVar = (kotlinx.coroutines.flow.k) kotlinx.coroutines.k.d(kotlin.coroutines.g.INSTANCE, new b(NewBridgeModule.this, null));
                this.label = 1;
                u7 = kotlinx.coroutines.flow.m.u(kVar, this);
            } else {
                if (i10 != 1) {
                    if (i10 != 2) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    crfInitDetails = (CrfInitDetails) this.L$0;
                    zp.u.b(obj);
                    u10 = obj;
                    List list = (List) u10;
                    if (list != null) {
                        List<PropertyLead> list2 = list;
                        arrayList = new ArrayList(kotlin.collections.t.u(list2, 10));
                        for (PropertyLead propertyLead : list2) {
                            arrayList.add(new DroppedLead(propertyLead.i(), propertyLead.getSellerProfileContact(), propertyLead.getPropertyType(), propertyLead.getLatitude(), propertyLead.getLongitude(), propertyLead.getPoly(), propertyLead.getStreetInfo(), propertyLead.getTitle(), propertyLead.getCityUuid(), propertyLead.getSellerName(), null, false, 3072, null));
                        }
                    } else {
                        arrayList = null;
                    }
                    DroppedLead b3 = arrayList != null ? com.locon.crf.presentation.ui.util.a.b(arrayList, String.valueOf(this.$reactNativeCrfModel.m()), crfInitDetails.getCrfFlowInitiator()) : null;
                    if (b3 != null) {
                        com.locon.crf.presentation.ui.util.e eVar = com.locon.crf.presentation.ui.util.e.INSTANCE;
                        ce.b crfFlowInitiator = crfInitDetails.getCrfFlowInitiator();
                        Context applicationContext = NewBridgeModule.this.getReactApplicationContext().getApplicationContext();
                        kotlin.jvm.internal.r.j(applicationContext, "getApplicationContext(...)");
                        Map sellerProfileContact = b3.getSellerProfileContact();
                        if (sellerProfileContact == null || (values = sellerProfileContact.values()) == null || (str = (String) kotlin.collections.t.F(values)) == null) {
                            str = "";
                        }
                        com.locon.crf.presentation.ui.util.t tVar = com.locon.crf.presentation.ui.util.t.INSTANCE;
                        List preferences = crfInitDetails.s().getPreferences();
                        String propertyTitle = crfInitDetails.s().g().getPropertyTitle();
                        String propertySubtitle = crfInitDetails.s().g().getPropertySubtitle();
                        String url = crfInitDetails.getShareData().getCanonicalUrl();
                        tVar.getClass();
                        kotlin.jvm.internal.r.k(url, "url");
                        String concat = "https://housing.com/".concat(url);
                        String sellerName = b3.getSellerName();
                        String str2 = sellerName == null ? "" : sellerName;
                        String localityName = crfInitDetails.getLocalityName();
                        String str3 = localityName == null ? "" : localityName;
                        String cityName = crfInitDetails.getCityName();
                        ConnectionDetail connectionDetail = new ConnectionDetail(str, applicationContext, com.locon.crf.presentation.ui.util.t.i(propertyTitle, propertySubtitle, concat, str2, str3, cityName == null ? "" : cityName, preferences));
                        com.locon.coreUI.utils.b bVar2 = NewBridgeModule.this.agentContactManager;
                        ReactNativeCrfModel reactNativeCrfModel = this.$reactNativeCrfModel;
                        String str4 = (reactNativeCrfModel == null || (analyticsPlacement2 = reactNativeCrfModel.getAnalyticsPlacement()) == null) ? "" : analyticsPlacement2;
                        String analyticsFrom2 = this.$reactNativeCrfModel.getAnalyticsFrom();
                        com.locon.crf.presentation.ui.util.e.o(eVar, crfFlowInitiator, connectionDetail, bVar2, str4, analyticsFrom2 == null ? "" : analyticsFrom2);
                    } else {
                        com.locon.reactapp.common.bridge.k kVar2 = com.locon.reactapp.common.bridge.k.INSTANCE;
                        com.locon.reactapp.common.m mVar = NewBridgeModule.this.navigator;
                        kVar2.getClass();
                        kotlin.jvm.internal.r.k(crfInitDetails, "crfInitDetails");
                        if (crfInitDetails.s().g().getPropertyTitle().length() > 0 && mVar != null) {
                            mVar.j2(crfInitDetails);
                        }
                    }
                    return zp.j0.INSTANCE;
                }
                zp.u.b(obj);
                u7 = obj;
            }
            LeadCreateRequest leadCreateRequest = (LeadCreateRequest) u7;
            ArrayList arrayList2 = new ArrayList();
            com.locon.core.data.remote.firebase.remoteconfig.h hVar = NewBridgeModule.this.remoteConfigRepository;
            String m7 = com.google.android.gms.measurement.internal.a.m(hVar, "apartment_types_android", "asString(...)");
            t.Companion companion = zp.t.INSTANCE;
            Gson gson = hVar.getGson();
            Object m842constructorimpl = zp.t.m842constructorimpl(gson == null ? gson.e(m7, ApartmentTypesConfigModel.class) : GsonInstrumentation.fromJson(gson, m7, ApartmentTypesConfigModel.class));
            if (zp.t.m847isFailureimpl(m842constructorimpl)) {
                m842constructorimpl = null;
            }
            ApartmentTypesConfigModel apartmentTypesConfigModel = (ApartmentTypesConfigModel) m842constructorimpl;
            if (!kotlin.jvm.internal.r.f(this.$reactNativeCrfModel.getCrfFlowInitiator(), "feedback")) {
                NewBridgeModule.this.isPropertyContacted(String.valueOf(this.$reactNativeCrfModel.m()), this.$propertyContactedCallback);
            }
            kotlinx.coroutines.k.d(kotlin.coroutines.g.INSTANCE, new a(NewBridgeModule.this, arrayList2, apartmentTypesConfigModel, null));
            com.locon.crf.presentation.ui.util.b bVar3 = com.locon.crf.presentation.ui.util.b.INSTANCE;
            d.Companion companion2 = ce.d.INSTANCE;
            String type2 = this.$reactNativeCrfModel.getType();
            if (type2 == null) {
                type2 = "";
            }
            companion2.getClass();
            ce.d a10 = d.Companion.a(type2);
            String crfFlowInitiator2 = this.$reactNativeCrfModel.getCrfFlowInitiator();
            if (crfFlowInitiator2 != null) {
                switch (crfFlowInitiator2.hashCode()) {
                    case -1997578712:
                        if (crfFlowInitiator2.equals("request_images")) {
                            bVar = ce.b.REQUEST_IMAGES;
                            break;
                        }
                        break;
                    case -1578153172:
                        if (crfFlowInitiator2.equals("request_floor_plan")) {
                            bVar = ce.b.REQUEST_FLOOR_PLAN;
                            break;
                        }
                        break;
                    case -1522562220:
                        if (crfFlowInitiator2.equals("view_phone")) {
                            bVar = ce.b.VIEW_PHONE;
                            break;
                        }
                        break;
                    case -785376207:
                        if (crfFlowInitiator2.equals("contact_button")) {
                            bVar = ce.b.CONTACT_BUTTON;
                            break;
                        }
                        break;
                    case -747314125:
                        if (crfFlowInitiator2.equals("call_button")) {
                            bVar = ce.b.CALL_BUTTON;
                            break;
                        }
                        break;
                    case -132968874:
                        if (crfFlowInitiator2.equals("sponsored_card")) {
                            bVar = ce.b.SPONSORED_CARD;
                            break;
                        }
                        break;
                    case -9772393:
                        if (crfFlowInitiator2.equals("contact_all_sellers")) {
                            bVar = ce.b.CONTACT_ALL_SELLERS;
                            break;
                        }
                        break;
                    case 3052376:
                        if (crfFlowInitiator2.equals(Consts.CHAT_ENDPOINT)) {
                            bVar = ce.b.CHAT;
                            break;
                        }
                        break;
                    case 179773947:
                        if (crfFlowInitiator2.equals("download_brochure")) {
                            bVar = ce.b.DOWNLOAD_BROCHURE;
                            break;
                        }
                        break;
                    case 1028536326:
                        if (crfFlowInitiator2.equals("ask_for_details")) {
                            bVar = ce.b.ASK_FOR_DETAILS;
                            break;
                        }
                        break;
                    case 1868222556:
                        if (crfFlowInitiator2.equals("unlock_premium")) {
                            bVar = ce.b.UNLOCK_PREMIUM;
                            break;
                        }
                        break;
                    case 1972580991:
                        if (crfFlowInitiator2.equals("whatsapp_button")) {
                            bVar = ce.b.WHATSAPP_BUTTON;
                            break;
                        }
                        break;
                }
                ce.b bVar4 = bVar;
                PropertyInfoModels$CrfModel propertyInfoModels$CrfModel = this.$serpCrfModel;
                type = this.$reactNativeCrfModel.getType();
                if (type == null) {
                    type = "";
                }
                CrfFormModel b10 = com.locon.crf.presentation.ui.util.b.b(bVar3, propertyInfoModels$CrfModel, d.Companion.a(type), new com.locon.coreUI.components.compareSection.f(i8, arrayList2, leadCreateRequest));
                CtaConfigDetail ctaConfigDetail = this.$configDetail;
                CtaConfigDetail ctaConfigDetail2 = ctaConfigDetail != null ? new CtaConfigDetail(null, null, false, false, false, false, false, 127, null) : ctaConfigDetail;
                CrfInitAnalyticsDetails.INSTANCE.getClass();
                CrfInitAnalyticsDetails crfInitAnalyticsDetails = CrfInitAnalyticsDetails.empty;
                ReactNativeCrfModel reactNativeCrfModel2 = this.$reactNativeCrfModel;
                String str5 = (reactNativeCrfModel2 != null || (analyticsSource = reactNativeCrfModel2.getAnalyticsSource()) == null) ? "" : analyticsSource;
                ReactNativeCrfModel reactNativeCrfModel3 = this.$reactNativeCrfModel;
                String str6 = (reactNativeCrfModel3 != null || (analyticsFrom = reactNativeCrfModel3.getAnalyticsFrom()) == null) ? "" : analyticsFrom;
                ReactNativeCrfModel reactNativeCrfModel4 = this.$reactNativeCrfModel;
                String str7 = (reactNativeCrfModel4 != null || (analyticsPlacement = reactNativeCrfModel4.getAnalyticsPlacement()) == null) ? "" : analyticsPlacement;
                ReactNativeCrfModel reactNativeCrfModel5 = this.$reactNativeCrfModel;
                crfInitDetails = com.locon.crf.presentation.ui.util.b.d(bVar3, b10, this.$serpCrfModel, ctaConfigDetail2, a10, bVar4, CrfInitAnalyticsDetails.b(crfInitAnalyticsDetails, str5, str6, (reactNativeCrfModel5 != null || (analyticsFromSection = reactNativeCrfModel5.getAnalyticsFromSection()) == null) ? "" : analyticsFromSection, str7, null, 48), ce.c.SERP.getPageName(), null, 0, null, null, false, ce.e.SERP, null, false, null, null, false, false, null, null, false, false, false, 67104640);
                if (!kotlin.jvm.internal.r.f(this.$reactNativeCrfModel.getCrfFlowInitiator(), "feedback")) {
                    com.locon.crf.presentation.ui.util.e.INSTANCE.getClass();
                    PropertiesForFeedback q7 = com.locon.crf.presentation.ui.util.e.q(crfInitDetails);
                    com.locon.reactapp.common.m mVar2 = NewBridgeModule.this.navigator;
                    if (mVar2 != null) {
                        mVar2.b6(q7);
                    }
                    return zp.j0.INSTANCE;
                }
                kotlinx.coroutines.flow.k f8 = ((com.locon.database.dao.s) NewBridgeModule.this.getPropertyLeadDao()).f();
                z0 z0Var = z0.INSTANCE;
                kotlinx.coroutines.flow.k y2 = kotlinx.coroutines.flow.m.y(f8, kotlinx.coroutines.scheduling.b.INSTANCE);
                this.L$0 = crfInitDetails;
                this.label = 2;
                u10 = kotlinx.coroutines.flow.m.u(y2, this);
            }
            bVar = ce.b.OTHERS;
            ce.b bVar42 = bVar;
            PropertyInfoModels$CrfModel propertyInfoModels$CrfModel2 = this.$serpCrfModel;
            type = this.$reactNativeCrfModel.getType();
            if (type == null) {
            }
            CrfFormModel b102 = com.locon.crf.presentation.ui.util.b.b(bVar3, propertyInfoModels$CrfModel2, d.Companion.a(type), new com.locon.coreUI.components.compareSection.f(i8, arrayList2, leadCreateRequest));
            CtaConfigDetail ctaConfigDetail3 = this.$configDetail;
            if (ctaConfigDetail3 != null) {
            }
            CrfInitAnalyticsDetails.INSTANCE.getClass();
            CrfInitAnalyticsDetails crfInitAnalyticsDetails2 = CrfInitAnalyticsDetails.empty;
            ReactNativeCrfModel reactNativeCrfModel22 = this.$reactNativeCrfModel;
            if (reactNativeCrfModel22 != null) {
            }
            ReactNativeCrfModel reactNativeCrfModel32 = this.$reactNativeCrfModel;
            if (reactNativeCrfModel32 != null) {
            }
            ReactNativeCrfModel reactNativeCrfModel42 = this.$reactNativeCrfModel;
            if (reactNativeCrfModel42 != null) {
            }
            ReactNativeCrfModel reactNativeCrfModel52 = this.$reactNativeCrfModel;
            crfInitDetails = com.locon.crf.presentation.ui.util.b.d(bVar3, b102, this.$serpCrfModel, ctaConfigDetail2, a10, bVar42, CrfInitAnalyticsDetails.b(crfInitAnalyticsDetails2, str5, str6, (reactNativeCrfModel52 != null || (analyticsFromSection = reactNativeCrfModel52.getAnalyticsFromSection()) == null) ? "" : analyticsFromSection, str7, null, 48), ce.c.SERP.getPageName(), null, 0, null, null, false, ce.e.SERP, null, false, null, null, false, false, null, null, false, false, false, 67104640);
            if (!kotlin.jvm.internal.r.f(this.$reactNativeCrfModel.getCrfFlowInitiator(), "feedback")) {
            }
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((o) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$updateRatingDataOnPopupShown$1", f = "NewBridgeModule.kt", i = {}, l = {androidx.media3.extractor.ts.v.VIDEO_STREAM_MASK, Currencies.FJD, 246}, m = "invokeSuspend", n = {}, s = {})
    public static final class o0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        int label;

        public o0(kotlin.coroutines.d<? super o0> dVar) {
            super(2, dVar);
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new o0(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Integer n02;
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                kotlinx.coroutines.flow.k f8 = NewBridgeModule.this.getPreferenceDataStore().f(k2.IN_APP_REVIEW_SHOWN_COUNT);
                this.label = 1;
                obj = kotlinx.coroutines.flow.m.u(f8, this);
            } else if (i8 == 1) {
                zp.u.b(obj);
            } else {
                if (i8 != 2) {
                    if (i8 != 3) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    zp.u.b(obj);
                    ((zp.t) obj).getValue();
                    return zp.j0.INSTANCE;
                }
                zp.u.b(obj);
                ((zp.t) obj).getValue();
                com.locon.core.data.local.datastore.o0 preferenceDataStore = NewBridgeModule.this.getPreferenceDataStore();
                k2 k2Var = k2.IN_APP_REVIEW_SHOWN_DATE;
                String valueOf = String.valueOf(System.currentTimeMillis());
                this.label = 3;
            }
            String str = (String) obj;
            int intValue = (str == null || (n02 = kotlin.text.q.n0(str)) == null) ? 0 : n02.intValue();
            com.locon.core.data.local.datastore.o0 preferenceDataStore2 = NewBridgeModule.this.getPreferenceDataStore();
            k2 k2Var2 = k2.IN_APP_REVIEW_SHOWN_COUNT;
            String valueOf2 = String.valueOf(intValue + 1);
            this.label = 2;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((o0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$openShare$2", f = "NewBridgeModule.kt", i = {}, l = {606}, m = "invokeSuspend", n = {}, s = {})
    public static final class p extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final ShareShortenedUrlData $shareData;
        int label;

        @Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0010\u0003\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004*\n\u0012\u0006\u0012\u0004\u0018\u00010\u00010\u00002\u0006\u0010\u0003\u001a\u00020\u0002H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Lkotlinx/coroutines/flow/l;", "", "", "it", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/flow/l;Ljava/lang/Throwable;)V"}, k = 3, mv = {2, 0, 0})
        @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$openShare$2$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
        public static final class a extends eq.i implements kq.q<kotlinx.coroutines.flow.l<? super String>, Throwable, kotlin.coroutines.d<? super zp.j0>, Object> {
            Object L$0;
            int label;

            public a(kotlin.coroutines.d<? super a> dVar) {
                super(3, dVar);
            }

            @Override
            public final Object invokeSuspend(Object obj) {
                kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                if (this.label != 0) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
                FirebaseCrashlytics.getInstance().recordException((Throwable) this.L$0);
                return zp.j0.INSTANCE;
            }

            @Override
            public final Object invoke(kotlinx.coroutines.flow.l<? super String> lVar, Throwable th2, kotlin.coroutines.d<? super zp.j0> dVar) {
                a aVar = new a(dVar);
                aVar.L$0 = th2;
                return aVar.invokeSuspend(zp.j0.INSTANCE);
            }
        }

        @Metadata(k = 3, mv = {2, 0, 0}, xi = 48)
        public static final class b<T> implements kotlinx.coroutines.flow.l {
            final NewBridgeModule this$0;

            public b(NewBridgeModule newBridgeModule) {
                this.this$0 = newBridgeModule;
            }

            @Override
            public final Object emit(Object obj, kotlin.coroutines.d dVar) {
                String str = (String) obj;
                Context context = this.this$0.context;
                if (context != null) {
                    com.locon.coreUI.components.share.d.c(context, String.valueOf(str), "");
                }
                return zp.j0.INSTANCE;
            }
        }

        public p(ShareShortenedUrlData shareShortenedUrlData, kotlin.coroutines.d<? super p> dVar) {
            super(2, dVar);
            this.$shareData = shareShortenedUrlData;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new p(this.$shareData, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                kotlinx.coroutines.flow.b0 b0Var = new kotlinx.coroutines.flow.b0(((com.locon.core.data.share.h) NewBridgeModule.this.iShareVia).b(this.$shareData), new a(null));
                b bVar = new b(NewBridgeModule.this);
                this.label = 1;
                if (b0Var.collect(bVar, this) == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((p) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$updateRentPaidInPref$1", f = "NewBridgeModule.kt", i = {}, l = {1000}, m = "invokeSuspend", n = {}, s = {})
    public static final class p0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final boolean $isRentPaid;
        int label;

        public p0(boolean z5, kotlin.coroutines.d<? super p0> dVar) {
            super(2, dVar);
            this.$isRentPaid = z5;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new p0(this.$isRentPaid, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                com.locon.core.data.local.datastore.o0 preferenceDataStore = NewBridgeModule.this.getPreferenceDataStore();
                k2 k2Var = k2.IS_RENT_PAID;
                String valueOf = String.valueOf(this.$isRentPaid);
                this.label = 1;
                if (preferenceDataStore.n(k2Var, valueOf, this) == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
                ((zp.t) obj).getValue();
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((p0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$processHpOrderStates$1", f = "NewBridgeModule.kt", i = {}, l = {1215, 1219}, m = "invokeSuspend", n = {}, s = {})
    public static final class q extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final String $status;
        int label;

        public q(String str, kotlin.coroutines.d<? super q> dVar) {
            super(2, dVar);
            this.$status = str;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return new q(this.$status, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                if (kotlin.jvm.internal.r.f(this.$status, hb.c.FAILURE.getType())) {
                    fb.o oVar = fb.o.INSTANCE;
                    PromiseEvent.Open open = new PromiseEvent.Open("", true, null, 4, null);
                    this.label = 1;
                    oVar.getClass();
                } else {
                    fb.o oVar2 = fb.o.INSTANCE;
                    PromiseEvent.a aVar2 = PromiseEvent.a.INSTANCE;
                    this.label = 2;
                    oVar2.getClass();
                }
            } else {
                if (i8 != 1 && i8 != 2) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((q) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$updateUserData$2", f = "NewBridgeModule.kt", i = {0, 1}, l = {466, 471, 479}, m = "invokeSuspend", n = {"userDetails", "userDetails"}, s = {"L$0", "L$0"})
    @Instrumented
    public static final class q0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final ReadableMap $rnData;
        Object L$0;
        int label;
        final NewBridgeModule this$0;

        public q0(ReadableMap readableMap, NewBridgeModule newBridgeModule, kotlin.coroutines.d<? super q0> dVar) {
            super(2, dVar);
            this.$rnData = readableMap;
            this.this$0 = newBridgeModule;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return new q0(this.$rnData, this.this$0, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            UserDetailsModel userDetailsModel;
            UserDetailsModel userDetailsModel2;
            ProfileDetails profileDetails;
            ProfileDetails profileDetails2;
            ProfileDetails profileDetails3;
            String uuid;
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            try {
            } catch (IllegalStateException e5) {
                try {
                    FirebaseCrashlytics.getInstance().log("error occured in updateUserData func due to  -> " + e5.getMessage() + " ");
                } catch (Exception unused) {
                }
            }
            if (i8 == 0) {
                zp.u.b(obj);
                userDetailsModel = (UserDetailsModel) GsonInstrumentation.fromJson(new Gson(), this.$rnData.getString("userData"), UserDetailsModel.class);
                boolean f8 = kotlin.jvm.internal.r.f(userDetailsModel.getHasUpcomingPackage(), Boolean.TRUE);
                com.locon.core.data.local.datastore.o0 preferenceDataStore = this.this$0.getPreferenceDataStore();
                k2 k2Var = k2.HAS_UPCOMING_PACKAGE;
                this.L$0 = userDetailsModel;
                this.label = 1;
                if (preferenceDataStore.k(k2Var, f8 ? 1 : 0, this) == aVar) {
                    return aVar;
                }
            } else if (i8 == 1) {
                userDetailsModel = (UserDetailsModel) this.L$0;
                zp.u.b(obj);
                ((zp.t) obj).getValue();
            } else {
                if (i8 != 2) {
                    if (i8 != 3) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    zp.u.b(obj);
                    ((zp.t) obj).getValue();
                    return zp.j0.INSTANCE;
                }
                userDetailsModel2 = (UserDetailsModel) this.L$0;
                zp.u.b(obj);
                com.locon.core.data.local.datastore.o0 preferenceDataStore2 = this.this$0.getPreferenceDataStore();
                k2 k2Var2 = k2.EXTRA_USER_CLID;
                uuid = userDetailsModel2.getUuid();
                if (uuid == null) {
                    uuid = "";
                }
                this.L$0 = null;
                this.label = 3;
            }
            UserDetailsModel userDetailsModel3 = userDetailsModel;
            Profile profile = userDetailsModel3.getProfile();
            Boolean isHpPaid = (profile == null || (profileDetails3 = profile.getProfileDetails()) == null) ? null : profileDetails3.getIsHpPaid();
            Profile profile2 = userDetailsModel3.getProfile();
            Boolean isPaidProfile = (profile2 == null || (profileDetails2 = profile2.getProfileDetails()) == null) ? null : profileDetails2.getIsPaidProfile();
            Profile profile3 = userDetailsModel3.getProfile();
            String latestFreemiumSlotEndDate = (profile3 == null || (profileDetails = profile3.getProfileDetails()) == null) ? null : profileDetails.getLatestFreemiumSlotEndDate();
            com.locon.core.data.local.datastore.o0 preferenceDataStore3 = this.this$0.getPreferenceDataStore();
            k2 k2Var3 = k2.USER_ALL_DETAILS;
            UserDetailsModel a10 = UserDetailsModel.a(userDetailsModel3, null, null, null, null, isPaidProfile, isHpPaid, latestFreemiumSlotEndDate, -1, 261107);
            this.L$0 = userDetailsModel3;
            this.label = 2;
            if (preferenceDataStore3.j(k2Var3, a10, this) == aVar) {
                return aVar;
            }
            userDetailsModel2 = userDetailsModel3;
            com.locon.core.data.local.datastore.o0 preferenceDataStore22 = this.this$0.getPreferenceDataStore();
            k2 k2Var22 = k2.EXTRA_USER_CLID;
            uuid = userDetailsModel2.getUuid();
            if (uuid == null) {
            }
            this.L$0 = null;
            this.label = 3;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((q0) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$processInAppReview$1", f = "NewBridgeModule.kt", i = {}, l = {1177}, m = "invokeSuspend", n = {}, s = {})
    public static final class r extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final com.locon.core.domain.inAppRatingNps.a $inAppRatingInitiator;
        int label;
        final NewBridgeModule this$0;

        @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
        @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$processInAppReview$1$1", f = "NewBridgeModule.kt", i = {}, l = {1179}, m = "invokeSuspend", n = {}, s = {})
        public static final class a extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
            final com.locon.core.domain.inAppRatingNps.a $inAppRatingInitiator;
            int label;
            final NewBridgeModule this$0;

            public a(com.locon.core.domain.inAppRatingNps.a aVar, NewBridgeModule newBridgeModule, kotlin.coroutines.d<? super a> dVar) {
                super(2, dVar);
                this.$inAppRatingInitiator = aVar;
                this.this$0 = newBridgeModule;
            }

            @Override
            public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
                return new a(this.$inAppRatingInitiator, this.this$0, dVar);
            }

            @Override
            public final Object invokeSuspend(Object obj) {
                kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                int i8 = this.label;
                if (i8 == 0) {
                    zp.u.b(obj);
                    if (this.$inAppRatingInitiator != null) {
                        com.locon.core.domain.inAppRatingNps.b bVar = this.this$0.inAppRatingManager;
                        com.locon.core.domain.inAppRatingNps.a aVar2 = this.$inAppRatingInitiator;
                        this.label = 1;
                        if (bVar.b(aVar2) == aVar) {
                            return aVar;
                        }
                    }
                } else {
                    if (i8 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    zp.u.b(obj);
                }
                return zp.j0.INSTANCE;
            }

            @Override
            public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
                return ((a) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
            }
        }

        public r(com.locon.core.domain.inAppRatingNps.a aVar, NewBridgeModule newBridgeModule, kotlin.coroutines.d<? super r> dVar) {
            super(2, dVar);
            this.$inAppRatingInitiator = aVar;
            this.this$0 = newBridgeModule;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return new r(this.$inAppRatingInitiator, this.this$0, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                l2 l2Var = l2.INSTANCE;
                a aVar2 = new a(this.$inAppRatingInitiator, this.this$0, null);
                this.label = 1;
                if (kotlinx.coroutines.k.f(l2Var, aVar2, this) == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((r) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$rcDevValueUpdate$1", f = "NewBridgeModule.kt", i = {}, l = {1266, 1267}, m = "invokeSuspend", n = {}, s = {})
    public static final class s extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final String $rcValues;
        final boolean $resetConfig;
        int label;

        public s(String str, boolean z5, kotlin.coroutines.d<? super s> dVar) {
            super(2, dVar);
            this.$rcValues = str;
            this.$resetConfig = z5;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new s(this.$rcValues, this.$resetConfig, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                NewBridgeModule newBridgeModule = NewBridgeModule.this;
                this.label = 1;
                obj = NewBridgeModule.rcDevValueUpdate$getDevMenuValues(newBridgeModule, this);
            } else {
                if (i8 != 1) {
                    if (i8 != 2) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    zp.u.b(obj);
                    ((zp.t) obj).getValue();
                    return zp.j0.INSTANCE;
                }
                zp.u.b(obj);
            }
            com.locon.core.data.local.datastore.o0 preferenceDataStore = NewBridgeModule.this.getPreferenceDataStore();
            k2 k2Var = k2.DEV_REMOTE_CONFIG;
            String rcDevValueUpdate$insertIntoJSON = NewBridgeModule.rcDevValueUpdate$insertIntoJSON(this.$resetConfig, (String) obj, this.$rcValues);
            this.label = 2;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((s) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(k = 3, mv = {2, 0, 0}, xi = 48)
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule", f = "NewBridgeModule.kt", i = {}, l = {1242}, m = "rcDevValueUpdate$getDevMenuValues", n = {}, s = {})
    public static final class t extends eq.d {
        int label;
        Object result;

        public t(kotlin.coroutines.d<? super t> dVar) {
            super(dVar);
        }

        @Override
        @Nullable
        public final Object invokeSuspend(@NotNull Object obj) {
            this.result = obj;
            this.label |= Integer.MIN_VALUE;
            return NewBridgeModule.rcDevValueUpdate$getDevMenuValues(null, this);
        }
    }

    @Metadata(d1 = {"\u0000\u0013\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010$\n\u0002\u0010\u000e\n\u0000*\u0001\u0000\b\n\u0018\u00002\u0018\u0012\u0014\u0012\u0012\u0012\u0006\u0012\u0004\u0018\u00010\u0003\u0012\u0006\u0012\u0004\u0018\u00010\u00030\u00020\u0001¨\u0006\u0004"}, d2 = {"com/locon/reactapp/common/bridge/NewBridgeModule$u", "Lt9/a;", "", "", "reactApp_gammaRelease"}, k = 1, mv = {2, 0, 0}, xi = 48)
    public static final class u extends t9.a<Map<String, ? extends String>> {
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$screenNameEvent$1", f = "NewBridgeModule.kt", i = {}, l = {571}, m = "invokeSuspend", n = {}, s = {})
    public static final class v extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final String $screenName;
        int label;

        public v(String str, kotlin.coroutines.d<? super v> dVar) {
            super(2, dVar);
            this.$screenName = str;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new v(this.$screenName, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                com.locon.core.analytics.m0 m0Var = NewBridgeModule.this.analyticsService;
                String str = this.$screenName;
                this.label = 1;
                if (m0Var.b(str, this) == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((v) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$sendEventToBranchIO$1", f = "NewBridgeModule.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
    @SourceDebugExtension({"SMAP\nNewBridgeModule.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NewBridgeModule.kt\ncom/locon/reactapp/common/bridge/NewBridgeModule$sendEventToBranchIO$1\n+ 2 Maps.kt\nkotlin/collections/MapsKt__MapsKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,1467:1\n465#2:1468\n415#2:1469\n1252#3,4:1470\n*S KotlinDebug\n*F\n+ 1 NewBridgeModule.kt\ncom/locon/reactapp/common/bridge/NewBridgeModule$sendEventToBranchIO$1\n*L\n551#1:1468\n551#1:1469\n551#1:1470,4\n*E\n"})
    public static final class w extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final String $alias;
        final ReadableMap $customData;
        final String $eventCategoryAction;
        final String $revenue;
        int label;
        final NewBridgeModule this$0;

        public w(ReadableMap readableMap, NewBridgeModule newBridgeModule, String str, String str2, String str3, kotlin.coroutines.d<? super w> dVar) {
            super(2, dVar);
            this.$customData = readableMap;
            this.this$0 = newBridgeModule;
            this.$eventCategoryAction = str;
            this.$revenue = str2;
            this.$alias = str3;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return new w(this.$customData, this.this$0, this.$eventCategoryAction, this.$revenue, this.$alias, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Map d5;
            HashMap<String, Object> hashMap;
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            zp.u.b(obj);
            ReadableMap readableMap = this.$customData;
            if (readableMap != null) {
                ReadableNativeMap readableNativeMap = readableMap instanceof ReadableNativeMap ? (ReadableNativeMap) readableMap : null;
                if (readableNativeMap == null || (hashMap = readableNativeMap.toHashMap()) == null) {
                    d5 = t0.d();
                } else {
                    d5 = new LinkedHashMap(t0.h(hashMap.size()));
                    Iterator<T> it = hashMap.entrySet().iterator();
                    while (it.hasNext()) {
                        Map.Entry entry = (Map.Entry) it.next();
                        Object key = entry.getKey();
                        Object value = entry.getValue();
                        d5.put(key, value != null ? value.toString() : null);
                    }
                }
            } else {
                d5 = t0.d();
            }
            Map map = d5;
            com.locon.core.analytics.engines.j jVar = this.this$0.housingBranchAnalytics;
            String eventCategoryAction = this.$eventCategoryAction;
            String str = this.$revenue;
            Double d8 = str != null ? new Double(Double.parseDouble(str)) : null;
            String str2 = this.$alias;
            jVar.getClass();
            kotlin.jvm.internal.r.k(eventCategoryAction, "eventCategoryAction");
            com.locon.core.analytics.engines.j.e(jVar, eventCategoryAction, map, d8, str2, null, 16);
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((w) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$sendNavigationEvent$2", f = "NewBridgeModule.kt", i = {}, l = {765}, m = "invokeSuspend", n = {}, s = {})
    public static final class x extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        final Bundle $params;
        int label;

        public x(Bundle bundle, kotlin.coroutines.d<? super x> dVar) {
            super(2, dVar);
            this.$params = bundle;
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new x(this.$params, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                kotlinx.coroutines.flow.k g10 = NewBridgeModule.this.getPreferenceDataStore().g(k2.ONBOARDING_AVAILABLE, Boolean.TYPE);
                this.label = 1;
                obj = kotlinx.coroutines.flow.m.u(g10, this);
                if (obj == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
            }
            Boolean bool = (Boolean) obj;
            boolean booleanValue = bool != null ? bool.booleanValue() : true;
            Bundle bundle = this.$params;
            boolean z5 = bundle != null ? bundle.getBoolean("fromSellerDashboard") : false;
            Activity currentActivity = NewBridgeModule.this.getCurrentActivity();
            if (currentActivity != null) {
                currentActivity.runOnUiThread(new com.locon.reactapp.common.bridge.g(booleanValue, z5, NewBridgeModule.this));
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((x) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$sendNavigationEvent$3", f = "NewBridgeModule.kt", i = {}, l = {Currencies.TND}, m = "invokeSuspend", n = {}, s = {})
    public static final class y extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        int label;

        public y(kotlin.coroutines.d<? super y> dVar) {
            super(2, dVar);
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new y(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                kotlinx.coroutines.flow.k g10 = NewBridgeModule.this.getPreferenceDataStore().g(k2.ONBOARDING_AVAILABLE, Boolean.TYPE);
                this.label = 1;
                obj = kotlinx.coroutines.flow.m.u(g10, this);
                if (obj == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
            }
            Boolean bool = (Boolean) obj;
            boolean booleanValue = bool != null ? bool.booleanValue() : true;
            Activity currentActivity = NewBridgeModule.this.getCurrentActivity();
            if (currentActivity != null) {
                currentActivity.runOnUiThread(new com.locon.reactapp.common.bridge.h(booleanValue, NewBridgeModule.this, 0));
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((y) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
    @DebugMetadata(c = "com.locon.reactapp.common.bridge.NewBridgeModule$sendNavigationEvent$6", f = "NewBridgeModule.kt", i = {}, l = {823}, m = "invokeSuspend", n = {}, s = {})
    public static final class z extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
        int label;

        public z(kotlin.coroutines.d<? super z> dVar) {
            super(2, dVar);
        }

        @Override
        public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
            return NewBridgeModule.this.new z(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
            int i8 = this.label;
            if (i8 == 0) {
                zp.u.b(obj);
                kotlinx.coroutines.flow.k g10 = NewBridgeModule.this.getPreferenceDataStore().g(k2.ONBOARDING_AVAILABLE, Boolean.TYPE);
                this.label = 1;
                obj = kotlinx.coroutines.flow.m.u(g10, this);
                if (obj == aVar) {
                    return aVar;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                zp.u.b(obj);
            }
            Boolean bool = (Boolean) obj;
            boolean booleanValue = bool != null ? bool.booleanValue() : true;
            Activity currentActivity = NewBridgeModule.this.getCurrentActivity();
            if (currentActivity != null) {
                currentActivity.runOnUiThread(new com.locon.reactapp.common.bridge.h(booleanValue, NewBridgeModule.this, 1));
            }
            return zp.j0.INSTANCE;
        }

        @Override
        public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
            return ((z) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
        }
    }

    public NewBridgeModule(@NotNull ReactApplicationContext reactContext, @NotNull com.locon.core.data.local.datastore.o0 preferenceDataStore, @NotNull com.locon.core.data.remote.firebase.remoteconfig.h remoteConfigRepository, @NotNull com.locon.core.analytics.m0 analyticsService, @NotNull com.locon.core.analytics.engines.j housingBranchAnalytics, @NotNull com.locon.core.analytics.b commonAttributes, @NotNull com.locon.core.data.share.b iShareVia, @NotNull com.locon.core.data.notifications.a fcmTokenManager, @Nullable com.locon.reactapp.common.m mVar, @NotNull com.locon.coreUI.utils.b agentContactManager, @NotNull com.locon.database.dao.k propertyLeadDao, @NotNull com.locon.core.data.local.datastore.m filterDataStore, @NotNull va.a iChatRepo, @NotNull com.locon.core.analytics.engines.q moEngageAnalytics, @NotNull com.locon.core.domain.inAppRatingNps.b inAppRatingManager, @NotNull com.locon.core.data.z fingerprintManager, @NotNull com.locon.core.domain.k getLocalityAndPropertyCount) {
        super(reactContext);
        kotlin.jvm.internal.r.k(reactContext, "reactContext");
        kotlin.jvm.internal.r.k(preferenceDataStore, "preferenceDataStore");
        kotlin.jvm.internal.r.k(remoteConfigRepository, "remoteConfigRepository");
        kotlin.jvm.internal.r.k(analyticsService, "analyticsService");
        kotlin.jvm.internal.r.k(housingBranchAnalytics, "housingBranchAnalytics");
        kotlin.jvm.internal.r.k(commonAttributes, "commonAttributes");
        kotlin.jvm.internal.r.k(iShareVia, "iShareVia");
        kotlin.jvm.internal.r.k(fcmTokenManager, "fcmTokenManager");
        kotlin.jvm.internal.r.k(agentContactManager, "agentContactManager");
        kotlin.jvm.internal.r.k(propertyLeadDao, "propertyLeadDao");
        kotlin.jvm.internal.r.k(filterDataStore, "filterDataStore");
        kotlin.jvm.internal.r.k(iChatRepo, "iChatRepo");
        kotlin.jvm.internal.r.k(moEngageAnalytics, "moEngageAnalytics");
        kotlin.jvm.internal.r.k(inAppRatingManager, "inAppRatingManager");
        kotlin.jvm.internal.r.k(fingerprintManager, "fingerprintManager");
        kotlin.jvm.internal.r.k(getLocalityAndPropertyCount, "getLocalityAndPropertyCount");
        this.reactContext = reactContext;
        this.preferenceDataStore = preferenceDataStore;
        this.remoteConfigRepository = remoteConfigRepository;
        this.analyticsService = analyticsService;
        this.housingBranchAnalytics = housingBranchAnalytics;
        this.commonAttributes = commonAttributes;
        this.iShareVia = iShareVia;
        this.fcmTokenManager = fcmTokenManager;
        this.navigator = mVar;
        this.agentContactManager = agentContactManager;
        this.propertyLeadDao = propertyLeadDao;
        this.filterDataStore = filterDataStore;
        this.iChatRepo = iChatRepo;
        this.moEngageAnalytics = moEngageAnalytics;
        this.inAppRatingManager = inAppRatingManager;
        this.fingerprintManager = fingerprintManager;
        this.getLocalityAndPropertyCount = getLocalityAndPropertyCount;
        this.requestCode = 1;
        this.orientationManager = new zj.b(reactContext);
    }

    public static final zp.j0 autoOtpRetrieve$lambda$25(kotlin.jvm.internal.h0 h0Var, Callback callback, String otp) {
        kotlin.jvm.internal.r.k(otp, "otp");
        if (h0Var.element) {
            callback.invoke(otp, null);
            h0Var.element = false;
        }
        return zp.j0.INSTANCE;
    }

    public static final zp.j0 autoOtpRetrieve$lambda$26(kotlin.jvm.internal.h0 h0Var, Callback callback, String error) {
        kotlin.jvm.internal.r.k(error, "error");
        if (h0Var.element) {
            callback.invoke(null, error);
            h0Var.element = false;
        }
        return zp.j0.INSTANCE;
    }

    public static final Object getSid$getSidWrapper(NewBridgeModule newBridgeModule, kotlin.coroutines.d<? super String> dVar) {
        return newBridgeModule.commonAttributes.s(dVar);
    }

    public static final void openMyTransaction$lambda$29(NewBridgeModule newBridgeModule) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.m();
        }
    }

    public static final void openTermAndConditionUrl$lambda$28(NewBridgeModule newBridgeModule, String str) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.e8(str);
        }
    }

    public static final Object rcDevValueUpdate$getDevMenuValues(NewBridgeModule newBridgeModule, kotlin.coroutines.d<? super String> dVar) {
        t tVar;
        int i8;
        if (dVar instanceof t) {
            tVar = (t) dVar;
            int i10 = tVar.label;
            if ((i10 & Integer.MIN_VALUE) != 0) {
                tVar.label = i10 - Integer.MIN_VALUE;
                Object obj = tVar.result;
                kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                i8 = tVar.label;
                if (i8 != 0) {
                    zp.u.b(obj);
                    kotlinx.coroutines.flow.k f8 = newBridgeModule.preferenceDataStore.f(k2.DEV_REMOTE_CONFIG);
                    tVar.label = 1;
                    obj = kotlinx.coroutines.flow.m.u(f8, tVar);
                    if (obj == aVar) {
                        return aVar;
                    }
                } else {
                    if (i8 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    zp.u.b(obj);
                }
                String str = (String) obj;
                return str != null ? "" : str;
            }
        }
        tVar = new t(dVar);
        Object obj2 = tVar.result;
        kotlin.coroutines.intrinsics.a aVar2 = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
        i8 = tVar.label;
        if (i8 != 0) {
        }
        String str2 = (String) obj2;
        if (str2 != null) {
        }
    }

    public static final String rcDevValueUpdate$insertIntoJSON(boolean z5, String str, String str2) {
        if (z5) {
            return "";
        }
        Gson gson = new Gson();
        Type type = new u().getType();
        Map map = (Map) GsonInstrumentation.fromJson(gson, str, type);
        if (map == null) {
            map = new LinkedHashMap();
        }
        Map map2 = (Map) GsonInstrumentation.fromJson(gson, str2, type);
        if (map2 == null) {
            map2 = new LinkedHashMap();
        }
        for (Map.Entry entry : map2.entrySet()) {
            map.put((String) entry.getKey(), (String) entry.getValue());
        }
        String json = GsonInstrumentation.toJson(gson, map);
        return json == null ? "" : json;
    }

    private final Bitmap rotateImage(Bitmap bitmap, float degrees) {
        Matrix matrix = new Matrix();
        matrix.postRotate(degrees);
        Bitmap createBitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true);
        kotlin.jvm.internal.r.j(createBitmap, "createBitmap(...)");
        return createBitmap;
    }

    public static void screenNameEvent$default(NewBridgeModule newBridgeModule, String str, String str2, int i8, Object obj) {
        if ((i8 & 2) != 0) {
            str2 = "";
        }
        newBridgeModule.screenNameEvent(str, str2);
    }

    public static void sendEventToBranchIO$default(NewBridgeModule newBridgeModule, String str, ReadableMap readableMap, String str2, String str3, int i8, Object obj) {
        if ((i8 & 4) != 0) {
            str2 = null;
        }
        if ((i8 & 8) != 0) {
            str3 = null;
        }
        newBridgeModule.sendEventToBranchIO(str, readableMap, str2, str3);
    }

    public static final void sendNavigationEvent$lambda$10(NewBridgeModule newBridgeModule) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.S4(m2.HOUSING_RENT);
        }
    }

    public static final void sendNavigationEvent$lambda$11(NewBridgeModule newBridgeModule) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.S4("TENANT_MONETIZATION");
        }
    }

    public static final void sendNavigationEvent$lambda$12(NewBridgeModule newBridgeModule) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.S4("HOME_LOANS");
        }
    }

    public static final void sendNavigationEvent$lambda$13(NewBridgeModule newBridgeModule, Bundle bundle) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.l(bundle);
        }
    }

    public static final void sendNavigationEvent$lambda$14(NewBridgeModule newBridgeModule) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.S4("REQUIRMENT_GATHERING_1_SCREEN");
        }
    }

    public static final void sendNavigationEvent$lambda$15(NewBridgeModule newBridgeModule) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.S4("SUPPORT_FORM");
        }
    }

    public static final void sendNavigationEvent$lambda$16(Bundle bundle, NewBridgeModule newBridgeModule) {
        String str;
        String string;
        String str2 = "";
        if (bundle == null || (str = bundle.getString("propertyId")) == null) {
            str = "";
        }
        if (bundle != null && (string = bundle.getString("type")) != null) {
            str2 = string;
        }
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.P3(str, str2);
        }
    }

    public static final void sendNavigationEvent$lambda$17(NewBridgeModule newBridgeModule) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.N1();
        }
    }

    public static final void sendNavigationEvent$lambda$18(NewBridgeModule newBridgeModule) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.h1();
        }
    }

    public static final void sendNavigationEvent$lambda$19(NewBridgeModule newBridgeModule, String str) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.K1(str);
        }
    }

    public static final void sendNavigationEvent$lambda$20(NewBridgeModule newBridgeModule) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.y4();
        }
    }

    public static final void sendNavigationEvent$lambda$22$lambda$21(NewBridgeModule newBridgeModule, String str, String str2, String str3) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.T3(str, str2, str3);
        }
    }

    public static final void sendNavigationEvent$lambda$24$lambda$23(NewBridgeModule newBridgeModule, String str, String str2, boolean z5) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.z4(str, str2, z5);
        }
    }

    public static final void sendNavigationEvent$lambda$8(NewBridgeModule newBridgeModule) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.T4();
        }
    }

    public static final void sendNavigationEvent$lambda$9(NewBridgeModule newBridgeModule) {
        com.locon.reactapp.common.m mVar = newBridgeModule.navigator;
        if (mVar != null) {
            mVar.I0("");
        }
    }

    public final void unmountReactApplication() {
        com.locon.reactapp.common.n.INSTANCE.getClass();
        if (com.locon.reactapp.common.n.c().isEmpty()) {
            return;
        }
        try {
            ReactRootView reactRootView = (ReactRootView) com.locon.reactapp.common.n.c().pop();
            if (reactRootView != null) {
                reactRootView.unmountReactApplication();
            }
        } catch (Exception e5) {
            FirebaseCrashlytics.getInstance().recordException(e5);
        }
    }

    @ReactMethod
    public final void autoOtpRetrieve(@NotNull final Callback callback) {
        kotlin.jvm.internal.r.k(callback, "callback");
        final kotlin.jvm.internal.h0 h0Var = new kotlin.jvm.internal.h0();
        h0Var.element = true;
        final int i8 = 0;
        kq.l lVar = new kq.l() {
            @Override
            public final Object invoke(Object obj) {
                j0 autoOtpRetrieve$lambda$25;
                j0 autoOtpRetrieve$lambda$26;
                switch (i8) {
                    case 0:
                        autoOtpRetrieve$lambda$25 = NewBridgeModule.autoOtpRetrieve$lambda$25(h0Var, callback, (String) obj);
                        return autoOtpRetrieve$lambda$25;
                    default:
                        autoOtpRetrieve$lambda$26 = NewBridgeModule.autoOtpRetrieve$lambda$26(h0Var, callback, (String) obj);
                        return autoOtpRetrieve$lambda$26;
                }
            }
        };
        final int i10 = 1;
        this.broadcast = new sd.a(0, lVar, new kq.l() {
            @Override
            public final Object invoke(Object obj) {
                j0 autoOtpRetrieve$lambda$25;
                j0 autoOtpRetrieve$lambda$26;
                switch (i10) {
                    case 0:
                        autoOtpRetrieve$lambda$25 = NewBridgeModule.autoOtpRetrieve$lambda$25(h0Var, callback, (String) obj);
                        return autoOtpRetrieve$lambda$25;
                    default:
                        autoOtpRetrieve$lambda$26 = NewBridgeModule.autoOtpRetrieve$lambda$26(h0Var, callback, (String) obj);
                        return autoOtpRetrieve$lambda$26;
                }
            }
        }, 1, null);
        if (Build.VERSION.SDK_INT < 34 || this.reactContext.getApplicationInfo().targetSdkVersion < 34) {
            this.reactContext.registerReceiver(this.broadcast, new IntentFilter(SmsRetriever.SMS_RETRIEVED_ACTION));
        } else {
            ContextCompat.registerReceiver(this.reactContext, this.broadcast, new IntentFilter(SmsRetriever.SMS_RETRIEVED_ACTION), 2);
        }
    }

    @ReactMethod
    public final void calculateBlur(@NotNull String imagePath, @NotNull Promise promise) {
        kotlin.jvm.internal.r.k(imagePath, "imagePath");
        kotlin.jvm.internal.r.k(promise, "promise");
        try {
            int i8 = 0;
            Bitmap decodeFile = BitmapFactoryInstrumentation.decodeFile(kotlin.text.q.P(imagePath, "file://", "", false));
            if (decodeFile == null) {
                promise.resolve(Float.valueOf(-1.0f));
            }
            kotlin.jvm.internal.r.h(decodeFile);
            List<Integer> calculateLaplacian = calculateLaplacian(convertToGrayscale(decodeFile));
            List<Integer> list = calculateLaplacian;
            kotlin.jvm.internal.r.k(list, "<this>");
            Iterator<T> it = list.iterator();
            while (it.hasNext()) {
                i8 += ((Number) it.next()).intValue();
            }
            int size = i8 / calculateLaplacian.size();
            Iterator<T> it2 = calculateLaplacian.iterator();
            double d5 = 0.0d;
            while (it2.hasNext()) {
                d5 += Math.pow(((Number) it2.next()).intValue() - size, 2);
            }
            promise.resolve(Float.valueOf((float) Math.sqrt(d5 / calculateLaplacian.size())));
        } catch (Exception e5) {
            promise.reject("Error", e5);
        }
    }

    @ReactMethod
    public final void calculateBrightness(@NotNull String imagePath, @NotNull Promise promise) {
        kotlin.jvm.internal.r.k(imagePath, "imagePath");
        kotlin.jvm.internal.r.k(promise, "promise");
        try {
            Bitmap decodeFile = BitmapFactoryInstrumentation.decodeFile(kotlin.text.q.P(imagePath, "file://", "", false));
            if (decodeFile == null) {
                promise.resolve(Float.valueOf(-1.0f));
            }
            int width = decodeFile.getWidth();
            long j8 = 0;
            for (int i8 = 0; i8 < width; i8++) {
                int height = decodeFile.getHeight();
                for (int i10 = 0; i10 < height; i10++) {
                    int pixel = decodeFile.getPixel(i8, i10);
                    j8 += ((Color.red(pixel) + Color.green(pixel)) + Color.blue(pixel)) / 3;
                }
            }
            promise.resolve(Float.valueOf(j8 / (decodeFile.getWidth() * decodeFile.getHeight())));
        } catch (Exception e5) {
            promise.reject("Error", e5);
        }
    }

    @NotNull
    public final List<Integer> calculateLaplacian(@NotNull Integer[][] grayscale) {
        kotlin.jvm.internal.r.k(grayscale, "grayscale");
        int length = grayscale.length;
        int length2 = grayscale[0].length;
        ArrayList arrayList = new ArrayList();
        qq.h m7 = qq.n.m(qq.n.o(50, length - 50), 50);
        int first = m7.getFirst();
        int last = m7.getLast();
        int step = m7.getStep();
        if ((step > 0 && first <= last) || (step < 0 && last <= first)) {
            while (true) {
                qq.h m10 = qq.n.m(qq.n.o(50, length2 - 50), 50);
                int first2 = m10.getFirst();
                int last2 = m10.getLast();
                int step2 = m10.getStep();
                if ((step2 > 0 && first2 <= last2) || (step2 < 0 && last2 <= first2)) {
                    while (true) {
                        arrayList.add(Integer.valueOf(((((grayscale[first][first2].intValue() * 4) - grayscale[first - 50][first2].intValue()) - grayscale[first + 50][first2].intValue()) - grayscale[first][first2 - 50].intValue()) - grayscale[first][first2 + 50].intValue()));
                        if (first2 == last2) {
                            break;
                        }
                        first2 += step2;
                    }
                }
                if (first == last) {
                    break;
                }
                first += step;
            }
        }
        return arrayList;
    }

    @Override
    public boolean canOverrideExistingModule() {
        return true;
    }

    @ReactMethod
    public final void checkIsNotifChannelEnabled(@Nullable String channelId, @NotNull Callback callback) {
        kotlin.jvm.internal.r.k(callback, "callback");
        ReactApplicationContext reactApplicationContext = getReactApplicationContext();
        kotlin.jvm.internal.r.j(reactApplicationContext, "getReactApplicationContext(...)");
        Object systemService = reactApplicationContext.getSystemService("notification");
        kotlin.jvm.internal.r.i(systemService, "null cannot be cast to non-null type android.app.NotificationManager");
        NotificationChannel notificationChannel = ((NotificationManager) systemService).getNotificationChannel(channelId);
        boolean z5 = true;
        if (notificationChannel != null && notificationChannel.getImportance() == 0) {
            z5 = false;
        }
        callback.invoke(Boolean.valueOf(z5));
    }

    @ReactMethod
    public final void checkIsNotificationEnabled(@NotNull Callback callback) {
        kotlin.jvm.internal.r.k(callback, "callback");
        ReactApplicationContext reactApplicationContext = getReactApplicationContext();
        kotlin.jvm.internal.r.j(reactApplicationContext, "getReactApplicationContext(...)");
        new com.locon.reactapp.common.c();
        callback.invoke(Boolean.valueOf(new NotificationManagerCompat(reactApplicationContext).a()));
    }

    @NotNull
    public final Integer[][] convertToGrayscale(@NotNull Bitmap bitmap) {
        kotlin.jvm.internal.r.k(bitmap, "bitmap");
        int width = bitmap.getWidth();
        int height = bitmap.getHeight();
        Integer[][] numArr = new Integer[width][];
        int i8 = 0;
        for (int i10 = 0; i10 < width; i10++) {
            Integer[] numArr2 = new Integer[height];
            for (int i11 = 0; i11 < height; i11++) {
                numArr2[i11] = 0;
            }
            numArr[i10] = numArr2;
        }
        int i12 = 50;
        qq.h m7 = qq.n.m(qq.n.o(0, width), 50);
        int first = m7.getFirst();
        int last = m7.getLast();
        int step = m7.getStep();
        if ((step > 0 && first <= last) || (step < 0 && last <= first)) {
            while (true) {
                qq.h m10 = qq.n.m(qq.n.o(i8, height), i12);
                int first2 = m10.getFirst();
                int last2 = m10.getLast();
                int step2 = m10.getStep();
                if ((step2 > 0 && first2 <= last2) || (step2 < 0 && last2 <= first2)) {
                    while (true) {
                        int pixel = bitmap.getPixel(first, first2);
                        int red = Color.red(pixel);
                        numArr[first][first2] = Integer.valueOf((int) ((Color.blue(pixel) * 0.11d) + (Color.green(pixel) * 0.59d) + (red * 0.3d)));
                        if (first2 == last2) {
                            break;
                        }
                        first2 += step2;
                    }
                }
                if (first == last) {
                    break;
                }
                first += step;
                i8 = 0;
                i12 = 50;
            }
        }
        return numArr;
    }

    @ReactMethod
    public final void fetchLocalityAndPropertyCount(@NotNull Callback callback) {
        kotlin.jvm.internal.r.k(callback, "callback");
        if (getCurrentActivity() == null) {
            callback.invoke("error");
            return;
        }
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new b(callback, null), 3);
    }

    @ReactMethod
    public final void fetchRemoteConfigData(@NotNull String moduleName, @NotNull Promise promise) {
        kotlin.jvm.internal.r.k(moduleName, "moduleName");
        kotlin.jvm.internal.r.k(promise, "promise");
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new c(moduleName, promise, null), 3);
    }

    @ReactMethod
    public final void getFCMToken(@NotNull Callback callback) {
        kotlin.jvm.internal.r.k(callback, "callback");
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new d(callback, null), 3);
    }

    @NotNull
    public final com.locon.core.data.local.datastore.m getFilterDataStore() {
        return this.filterDataStore;
    }

    @ReactMethod
    public final void getFingerPrint(@NotNull Callback callback) {
        kotlin.jvm.internal.r.k(callback, "callback");
        o1.INSTANCE.getClass();
        callback.invoke(v0.q(o1.h(), "-", this.fingerprintManager.c(), "-", this.fingerprintManager.g()), this.fingerprintManager.b());
    }

    @ReactMethod
    public final void getFirstAppOpenTimestamp(@NotNull Callback callback) {
        kotlin.jvm.internal.r.k(callback, "callback");
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new e(callback, null), 3);
    }

    @ReactMethod
    public final void getHpLandingPageTimer(@NotNull String value) {
        kotlin.jvm.internal.r.k(value, "value");
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new f(value, null), 3);
    }

    @ReactMethod
    public final void getMemoryInfo(@NotNull Callback callback) {
        kotlin.jvm.internal.r.k(callback, "callback");
        if (getCurrentActivity() == null) {
            callback.invoke(Double.valueOf(0.0d));
            return;
        }
        Activity currentActivity = getCurrentActivity();
        Object systemService = currentActivity != null ? currentActivity.getSystemService("activity") : null;
        kotlin.jvm.internal.r.i(systemService, "null cannot be cast to non-null type android.app.ActivityManager");
        ((ActivityManager) systemService).getMemoryInfo(new ActivityManager.MemoryInfo());
        callback.invoke(Double.valueOf(r1.availMem));
    }

    @Override
    @NotNull
    public String getName() {
        return "NewBridgeModule";
    }

    @ReactMethod
    public final void getPlayStoreRatingsData(@NotNull Callback callback) {
        kotlin.jvm.internal.r.k(callback, "callback");
        WritableMap createMap = Arguments.createMap();
        kotlin.jvm.internal.k0 k0Var = new kotlin.jvm.internal.k0();
        kotlin.jvm.internal.i0 i0Var = new kotlin.jvm.internal.i0();
        kotlin.jvm.internal.h0 h0Var = new kotlin.jvm.internal.h0();
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new g(k0Var, this, i0Var, h0Var, createMap, callback, null), 3);
    }

    @NotNull
    public final com.locon.core.data.local.datastore.o0 getPreferenceDataStore() {
        return this.preferenceDataStore;
    }

    @NotNull
    public final com.locon.database.dao.k getPropertyLeadDao() {
        return this.propertyLeadDao;
    }

    @NotNull
    public final ReactApplicationContext getReactContext() {
        return this.reactContext;
    }

    @ReactMethod
    public final void getSid(@NotNull Callback callback) {
        kotlin.jvm.internal.r.k(callback, "callback");
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new h(callback, this, null), 3);
    }

    @ReactMethod
    public final void hideBottomTab(boolean hideBottom) {
        Activity currentActivity;
        if (this.activity == null && (currentActivity = getCurrentActivity()) != null) {
            setActivityContext(currentActivity);
        }
        if (hideBottom) {
            h1.INSTANCE.getClass();
            h1.c();
        } else {
            h1.INSTANCE.getClass();
            h1.g();
        }
    }

    @ReactMethod
    public final void isPropertyContacted(@NotNull String propertyId, @NotNull Callback isContactedCallback) {
        kotlin.jvm.internal.r.k(propertyId, "propertyId");
        kotlin.jvm.internal.r.k(isContactedCallback, "isContactedCallback");
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.internal.c a10 = kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.scheduling.b.INSTANCE, (b2) b3));
        v1 v1Var = this.isPropertyContactedJob;
        if (v1Var != null) {
            v1Var.cancel(null);
        }
        this.isPropertyContactedJob = kotlinx.coroutines.flow.m.z(new p1(((com.locon.database.dao.s) this.propertyLeadDao).r(Long.parseLong(propertyId)), new i(isContactedCallback, this, null)), a10);
    }

    @ReactMethod
    public final void logAnalyticsEvent(@NotNull String screen, @NotNull String action, @NotNull String category, @Nullable ReadableMap attributes) {
        kotlin.jvm.internal.r.k(screen, "screen");
        kotlin.jvm.internal.r.k(action, "action");
        kotlin.jvm.internal.r.k(category, "category");
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new j(attributes, this, screen, action, category, null), 3);
    }

    @ReactMethod
    public final void loggedOut() {
        Activity currentActivity;
        if (this.activity == null && (currentActivity = getCurrentActivity()) != null) {
            setActivityContext(currentActivity);
        }
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new k(null), 3);
    }

    @ReactMethod
    public final void manageUserLogin(@NotNull ReadableMap userInfo) {
        kotlin.jvm.internal.r.k(userInfo, "userInfo");
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.internal.c a10 = kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE);
        Gson gson = new Gson();
        if (userInfo.hasKey("userData")) {
            kotlinx.coroutines.k.c(a10, null, null, new l(gson, userInfo, this, null), 3);
        }
    }

    @ReactMethod
    public final void moEngageLogout() {
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new m(null), 3);
    }

    @ReactMethod
    public final void onRatingSubmitButtonClicked() {
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new n(null), 3);
    }

    @ReactMethod
    public final void openChannelSettings(@Nullable String channelId) {
        ReactApplicationContext reactApplicationContext = getReactApplicationContext();
        kotlin.jvm.internal.r.j(reactApplicationContext, "getReactApplicationContext(...)");
        String packageName = reactApplicationContext.getPackageName();
        Intent intent = new Intent();
        Object systemService = reactApplicationContext.getSystemService("notification");
        kotlin.jvm.internal.r.i(systemService, "null cannot be cast to non-null type android.app.NotificationManager");
        kotlin.jvm.internal.r.j(((NotificationManager) systemService).getNotificationChannel(channelId), "getNotificationChannel(...)");
        intent.setAction("android.settings.CHANNEL_NOTIFICATION_SETTINGS");
        intent.putExtra("android.provider.extra.APP_PACKAGE", packageName);
        intent.putExtra("app_package", packageName);
        intent.putExtra("android.provider.extra.CHANNEL_ID", channelId);
        getReactApplicationContext().startActivityForResult(intent, this.requestCode, null);
    }

    @ReactMethod
    public final void openCrfFlow(@NotNull String rnCrfData, @NotNull Callback propertyContactedCallback) {
        Object m842constructorimpl;
        kotlin.jvm.internal.r.k(rnCrfData, "rnCrfData");
        kotlin.jvm.internal.r.k(propertyContactedCallback, "propertyContactedCallback");
        ReactNativeCrfModel reactNativeCrfModel = (ReactNativeCrfModel) GsonInstrumentation.fromJson(new Gson(), rnCrfData, ReactNativeCrfModel.class);
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.internal.c a10 = kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher, (b2) b3));
        PropertyInfoModels$CrfModel a11 = new pc.i(reactNativeCrfModel).a();
        com.locon.core.data.remote.firebase.remoteconfig.h hVar = this.remoteConfigRepository;
        String m7 = com.google.android.gms.measurement.internal.a.m(hVar, "crf_cta_config_detail", "asString(...)");
        try {
            t.Companion companion = zp.t.INSTANCE;
            Gson gson = hVar.getGson();
            m842constructorimpl = zp.t.m842constructorimpl(gson == null ? gson.e(m7, CtaConfigDetail.class) : GsonInstrumentation.fromJson(gson, m7, CtaConfigDetail.class));
        } catch (Throwable th2) {
            t.Companion companion2 = zp.t.INSTANCE;
            m842constructorimpl = zp.t.m842constructorimpl(zp.u.a(th2));
        }
        if (zp.t.m847isFailureimpl(m842constructorimpl)) {
            m842constructorimpl = null;
        }
        kotlinx.coroutines.k.c(a10, null, null, new o(reactNativeCrfModel, propertyContactedCallback, a11, (CtaConfigDetail) m842constructorimpl, null), 3);
    }

    @ReactMethod
    public final void openLocationSettings() {
        Activity currentActivity = getCurrentActivity();
        kotlin.jvm.internal.r.h(currentActivity);
        currentActivity.startActivity(new Intent("android.settings.LOCATION_SOURCE_SETTINGS"));
    }

    @ReactMethod
    public final void openMyTransaction() {
        Activity currentActivity = getCurrentActivity();
        if (currentActivity != null) {
            currentActivity.runOnUiThread(new com.locon.reactapp.common.bridge.b(this, 0));
        }
    }

    @ReactMethod
    public final void openSettings() {
        ReactApplicationContext reactApplicationContext = getReactApplicationContext();
        kotlin.jvm.internal.r.j(reactApplicationContext, "getReactApplicationContext(...)");
        String packageName = reactApplicationContext.getPackageName();
        Intent intent = new Intent();
        intent.setAction("android.settings.APP_NOTIFICATION_SETTINGS");
        intent.putExtra("android.provider.extra.APP_PACKAGE", packageName);
        intent.putExtra("app_package", packageName);
        kotlin.jvm.internal.r.h(intent.putExtra("app_uid", reactApplicationContext.getApplicationInfo().uid));
        getReactApplicationContext().startActivityForResult(intent, this.requestCode, null);
    }

    @ReactMethod
    public final void openShare(@NotNull String longUrl, @Nullable String coverImage, @NotNull String shareTitle, @NotNull String shareDescription) {
        Activity currentActivity;
        kotlin.jvm.internal.r.k(longUrl, "longUrl");
        kotlin.jvm.internal.r.k(shareTitle, "shareTitle");
        kotlin.jvm.internal.r.k(shareDescription, "shareDescription");
        if (this.activity == null && (currentActivity = getCurrentActivity()) != null) {
            setActivityContext(currentActivity);
        }
        if (coverImage == null) {
            coverImage = "";
        }
        ShareShortenedUrlData shareShortenedUrlData = new ShareShortenedUrlData(longUrl, shareTitle, coverImage, shareDescription);
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new p(shareShortenedUrlData, null), 3);
    }

    @ReactMethod
    public final void openTermAndConditionUrl(@NotNull String url) {
        kotlin.jvm.internal.r.k(url, "url");
        Activity currentActivity = getCurrentActivity();
        if (currentActivity != null) {
            currentActivity.runOnUiThread(new com.locon.reactapp.common.bridge.d(this, url, 0));
        }
    }

    @ReactMethod
    public final void processHpOrderStates(@NotNull String status, @NotNull String orderType) {
        kotlin.jvm.internal.r.k(status, "status");
        kotlin.jvm.internal.r.k(orderType, "orderType");
        if (!orderType.equals(hb.b.PAY_PER_PROPERTY.getType())) {
            if (orderType.equals(hb.b.PROMISE.getType())) {
                z0 z0Var = z0.INSTANCE;
                kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.internal.t.dispatcher), null, null, new q(status, null), 3);
                return;
            }
            return;
        }
        hb.c cVar = hb.c.PENDING;
        if (status.equals(cVar.getType())) {
            o1.INSTANCE.getClass();
            o1.D1(cVar);
            return;
        }
        hb.c cVar2 = hb.c.SUCCESS;
        if (status.equals(cVar2.getType())) {
            o1.INSTANCE.getClass();
            o1.D1(cVar2);
            return;
        }
        hb.c cVar3 = hb.c.FAILURE;
        if (status.equals(cVar3.getType())) {
            o1.INSTANCE.getClass();
            o1.D1(cVar3);
        }
    }

    @ReactMethod
    public final void processInAppReview(@NotNull String triggerPoint) {
        kotlin.jvm.internal.r.k(triggerPoint, "triggerPoint");
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.internal.c a10 = kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher, (b2) b3));
        com.locon.core.domain.inAppRatingNps.a aVar = com.locon.core.domain.inAppRatingNps.a.CALCULATOR;
        if (!triggerPoint.equals(aVar.getTrigger())) {
            aVar = com.locon.core.domain.inAppRatingNps.a.OWNER;
            if (!triggerPoint.equals(aVar.getTrigger())) {
                aVar = com.locon.core.domain.inAppRatingNps.a.POC_PSP;
                if (!triggerPoint.equals(aVar.getTrigger())) {
                    aVar = com.locon.core.domain.inAppRatingNps.a.OWNER_DASHBOARD;
                    if (!triggerPoint.equals(aVar.getTrigger())) {
                        aVar = com.locon.core.domain.inAppRatingNps.a.ENQUIRIES;
                        if (!triggerPoint.equals(aVar.getTrigger())) {
                            aVar = com.locon.core.domain.inAppRatingNps.a.LISTINGS;
                            if (!triggerPoint.equals(aVar.getTrigger())) {
                                aVar = com.locon.core.domain.inAppRatingNps.a.OWNER_PROFILE;
                                if (!triggerPoint.equals(aVar.getTrigger())) {
                                    aVar = null;
                                }
                            }
                        }
                    }
                }
            }
        }
        kotlinx.coroutines.k.c(a10, null, null, new r(aVar, this, null), 3);
    }

    @ReactMethod
    public final void rcDevValueUpdate(@NotNull String rcValues, boolean resetConfig) {
        kotlin.jvm.internal.r.k(rcValues, "rcValues");
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new s(rcValues, resetConfig, null), 3);
    }

    @NotNull
    public final Bundle readableMapToBundle(@NotNull ReadableMap readableMap) {
        kotlin.jvm.internal.r.k(readableMap, "readableMap");
        Bundle bundle = new Bundle();
        ReadableMapKeySetIterator keySetIterator = readableMap.keySetIterator();
        while (keySetIterator.hasNextKey()) {
            String nextKey = keySetIterator.nextKey();
            int i8 = a.$EnumSwitchMapping$0[readableMap.getType(nextKey).ordinal()];
            if (i8 == 1) {
                bundle.putBoolean(nextKey, readableMap.getBoolean(nextKey));
            } else if (i8 != 2) {
                if (i8 == 3) {
                    bundle.putString(nextKey, readableMap.getString(nextKey));
                }
            } else if (readableMap.isNull(nextKey)) {
                bundle.putString(nextKey, null);
            } else {
                bundle.putDouble(nextKey, readableMap.getDouble(nextKey));
            }
        }
        return bundle;
    }

    @ReactMethod
    public final void resetInAppContext() {
        MoEInAppHelper.INSTANCE.getInstance().resetInAppContext();
    }

    @ReactMethod
    public final void resizeImage(@NotNull String imagePath, int maxWidth, int maxHeight, int quality, @NotNull Promise promise) {
        kotlin.jvm.internal.r.k(imagePath, "imagePath");
        kotlin.jvm.internal.r.k(promise, "promise");
        try {
            Bitmap decodeFile = BitmapFactoryInstrumentation.decodeFile(imagePath);
            if (decodeFile == null) {
                promise.reject("IMAGE_DECODE_ERROR", "Failed to decode image: ".concat(imagePath));
                return;
            }
            int g10 = new ExifInterface(imagePath).g(1, ExifInterface.TAG_ORIENTATION);
            if (g10 == 3) {
                decodeFile = rotateImage(decodeFile, 180.0f);
            } else if (g10 == 6) {
                decodeFile = rotateImage(decodeFile, 90.0f);
            } else if (g10 == 8) {
                decodeFile = rotateImage(decodeFile, 270.0f);
            }
            float width = decodeFile.getWidth() / decodeFile.getHeight();
            int width2 = decodeFile.getWidth();
            int height = decodeFile.getHeight();
            if (decodeFile.getWidth() <= maxWidth && decodeFile.getHeight() <= maxHeight) {
                maxWidth = width2;
                maxHeight = height;
                Bitmap createScaledBitmap = Bitmap.createScaledBitmap(decodeFile, maxWidth, maxHeight, true);
                File file = new File(kotlin.text.q.g0(imagePath).concat("_resized.jpg"));
                FileOutputStream fileOutputStream = new FileOutputStream(file);
                createScaledBitmap.compress(Bitmap.CompressFormat.JPEG, quality, fileOutputStream);
                fileOutputStream.flush();
                fileOutputStream.close();
                promise.resolve(file.getAbsolutePath());
            }
            if (width > 1.0f) {
                maxHeight = (int) (maxWidth / width);
            } else {
                maxWidth = (int) (maxHeight * width);
            }
            Bitmap createScaledBitmap2 = Bitmap.createScaledBitmap(decodeFile, maxWidth, maxHeight, true);
            File file2 = new File(kotlin.text.q.g0(imagePath).concat("_resized.jpg"));
            FileOutputStream fileOutputStream2 = new FileOutputStream(file2);
            createScaledBitmap2.compress(Bitmap.CompressFormat.JPEG, quality, fileOutputStream2);
            fileOutputStream2.flush();
            fileOutputStream2.close();
            promise.resolve(file2.getAbsolutePath());
        } catch (Exception e5) {
            promise.reject("IMAGE_RESIZE_ERROR", "Failed to resize image", e5);
        }
    }

    @ReactMethod
    public final void screenNameEvent(@NotNull String screenName, @NotNull String utmCampaignUrl) {
        kotlin.jvm.internal.r.k(screenName, "screenName");
        kotlin.jvm.internal.r.k(utmCampaignUrl, "utmCampaignUrl");
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new v(screenName, null), 3);
    }

    @ReactMethod
    public final void sendEventToBranchIO(@NotNull String eventCategoryAction, @Nullable ReadableMap customData, @Nullable String revenue, @Nullable String alias) {
        kotlin.jvm.internal.r.k(eventCategoryAction, "eventCategoryAction");
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new w(customData, this, eventCategoryAction, revenue, alias, null), 3);
    }

    @ReactMethod
    public final void sendNavigationEvent(@NotNull ReadableMap navAction) {
        Activity currentActivity;
        String string;
        String str;
        Activity currentActivity2;
        Activity currentActivity3;
        Activity currentActivity4;
        Activity currentActivity5;
        Activity currentActivity6;
        Activity currentActivity7;
        Activity currentActivity8;
        Activity currentActivity9;
        int i8 = 3;
        int i10 = 1;
        kotlin.jvm.internal.r.k(navAction, "navAction");
        String string2 = navAction.getString("action");
        ReadableMap map = navAction.getMap(NativeProtocol.WEB_DIALOG_PARAMS);
        Bundle readableMapToBundle = map != null ? readableMapToBundle(map) : null;
        Activity currentActivity10 = getCurrentActivity();
        Object systemService = currentActivity10 != null ? currentActivity10.getSystemService("input_method") : null;
        InputMethodManager inputMethodManager = systemService instanceof InputMethodManager ? (InputMethodManager) systemService : null;
        Activity currentActivity11 = getCurrentActivity();
        View currentFocus = currentActivity11 != null ? currentActivity11.getCurrentFocus() : null;
        if (currentFocus != null && inputMethodManager != null) {
            inputMethodManager.hideSoftInputFromWindow(currentFocus.getWindowToken(), 0);
        }
        if (string2 != null) {
            String str2 = "";
            switch (string2.hashCode()) {
                case -1918687444:
                    if (string2.equals("navigateToEdgeTab")) {
                        if (readableMapToBundle != null ? readableMapToBundle.getBoolean("shouldUnmount") : false) {
                            unmountReactApplication();
                        }
                        Activity currentActivity12 = getCurrentActivity();
                        if (currentActivity12 != null) {
                            currentActivity12.runOnUiThread(new com.locon.reactapp.common.bridge.b(this, 8));
                            return;
                        }
                        return;
                    }
                    return;
                case -1585087260:
                    if (string2.equals("navigateToHousingNews") && (currentActivity = getCurrentActivity()) != null) {
                        currentActivity.runOnUiThread(new com.locon.reactapp.common.bridge.b(this, 10));
                        return;
                    }
                    return;
                case -1458383762:
                    if (string2.equals("navigateToInsurance")) {
                        if (readableMapToBundle != null && (string = readableMapToBundle.getString("type")) != null) {
                            str2 = string;
                        }
                        Bundle d5 = coil.disk.c.d("type", str2);
                        Activity currentActivity13 = getCurrentActivity();
                        if (currentActivity13 != null) {
                            currentActivity13.runOnUiThread(new com.locon.reactapp.common.bridge.c(this, d5));
                            return;
                        }
                        return;
                    }
                    return;
                case -1368330258:
                    if (string2.equals("navigateToCalculator")) {
                        if (readableMapToBundle == null || (str = readableMapToBundle.getString("calculatorType")) == null) {
                            str = "emiCalculator";
                        }
                        Activity currentActivity14 = getCurrentActivity();
                        if (currentActivity14 != null) {
                            currentActivity14.runOnUiThread(new com.locon.reactapp.common.bridge.d(this, str, i10));
                            return;
                        }
                        return;
                    }
                    return;
                case -983638536:
                    if (string2.equals("navigateBack") && (currentActivity2 = getCurrentActivity()) != null) {
                        currentActivity2.runOnUiThread(new com.locon.reactapp.common.bridge.b(this, i10));
                        return;
                    }
                    return;
                case -931097175:
                    if (string2.equals("navigateToSerpWithOwnerfilter")) {
                        kotlin.coroutines.f b3 = v2.b();
                        z0 z0Var = z0.INSTANCE;
                        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.scheduling.b.INSTANCE, (b2) b3)), null, null, new y(null), 3);
                        return;
                    }
                    return;
                case -664622331:
                    if (string2.equals("navigateToHelpAndSupport") && (currentActivity3 = getCurrentActivity()) != null) {
                        currentActivity3.runOnUiThread(new com.locon.reactapp.common.bridge.b(this, 6));
                        return;
                    }
                    return;
                case -558766631:
                    if (string2.equals("navigateToRegistryRecords") && readableMapToBundle != null) {
                        String string3 = readableMapToBundle.getString("uuid");
                        String str3 = string3 == null ? "" : string3;
                        String string4 = readableMapToBundle.getString("cityName");
                        String str4 = string4 == null ? "" : string4;
                        String string5 = readableMapToBundle.getString("localityName");
                        String str5 = string5 == null ? "" : string5;
                        Activity currentActivity15 = getCurrentActivity();
                        if (currentActivity15 != null) {
                            currentActivity15.runOnUiThread(new androidx.camera.core.n0(this, str3, str5, str4, 12));
                            return;
                        }
                        return;
                    }
                    return;
                case -411002152:
                    if (string2.equals("navigateToPOC")) {
                        if (readableMapToBundle != null) {
                            readableMapToBundle.getBoolean("useHomeNavController");
                        }
                        Activity currentActivity16 = getCurrentActivity();
                        if (currentActivity16 != null) {
                            currentActivity16.runOnUiThread(new com.locon.reactapp.common.bridge.b(this, 2));
                            return;
                        }
                        return;
                    }
                    return;
                case -411001456:
                    if (string2.equals("navigateToPdp") && (currentActivity4 = getCurrentActivity()) != null) {
                        currentActivity4.runOnUiThread(new com.locon.reactapp.common.bridge.c(readableMapToBundle, this));
                        return;
                    }
                    return;
                case -346861333:
                    if (string2.equals("navigateToPremium") && (currentActivity5 = getCurrentActivity()) != null) {
                        currentActivity5.runOnUiThread(new com.locon.reactapp.common.bridge.b(this, i8));
                        return;
                    }
                    return;
                case -202853402:
                    if (string2.equals("navigateToContactedProperties") && (currentActivity6 = getCurrentActivity()) != null) {
                        currentActivity6.runOnUiThread(new com.locon.reactapp.common.bridge.b(this, 9));
                        return;
                    }
                    return;
                case -161472973:
                    if (string2.equals("premiumPurchaseDenied")) {
                        o1.INSTANCE.getClass();
                        o1.R0(true);
                        return;
                    }
                    return;
                case 39237851:
                    if (string2.equals("navigateToFavoriteProperties") && (currentActivity7 = getCurrentActivity()) != null) {
                        currentActivity7.runOnUiThread(new com.locon.reactapp.common.bridge.b(this, 7));
                        return;
                    }
                    return;
                case 569070968:
                    if (string2.equals("navigateToHomeLoans") && (currentActivity8 = getCurrentActivity()) != null) {
                        currentActivity8.runOnUiThread(new com.locon.reactapp.common.bridge.b(this, 4));
                        return;
                    }
                    return;
                case 652503123:
                    if (string2.equals("navigateToHomeSearch")) {
                        kotlin.coroutines.f b10 = v2.b();
                        z0 z0Var2 = z0.INSTANCE;
                        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.scheduling.b.INSTANCE, (b2) b10)), null, null, new x(readableMapToBundle, null), 3);
                        return;
                    }
                    return;
                case 981528230:
                    if (string2.equals("premiumPurchasedSuccessful")) {
                        o1.INSTANCE.getClass();
                        o1.R0(false);
                        o1.t0();
                        o1.I0();
                        return;
                    }
                    return;
                case 1353546372:
                    if (string2.equals("navigateBackPocForNU")) {
                        kotlin.coroutines.f b11 = v2.b();
                        z0 z0Var3 = z0.INSTANCE;
                        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.scheduling.b.INSTANCE, (b2) b11)), null, null, new z(null), 3);
                        return;
                    }
                    return;
                case 1410881987:
                    if (string2.equals("navigateToReqGatheringFlow") && (currentActivity9 = getCurrentActivity()) != null) {
                        currentActivity9.runOnUiThread(new com.locon.reactapp.common.bridge.b(this, 5));
                        return;
                    }
                    return;
                case 1466384110:
                    if (string2.equals("navigateToRatingsAndReviews") && readableMapToBundle != null) {
                        String string6 = readableMapToBundle.getString("address");
                        String str6 = string6 == null ? "" : string6;
                        String string7 = readableMapToBundle.getString("projectId");
                        String str7 = string7 == null ? "" : string7;
                        boolean z5 = readableMapToBundle.getBoolean("isProjectRatingsReview");
                        Activity currentActivity17 = getCurrentActivity();
                        if (currentActivity17 != null) {
                            currentActivity17.runOnUiThread(new com.google.firebase.crashlytics.internal.common.h(this, str6, z5, str7, 1));
                            return;
                        }
                    }
                    break;
            }
        }
    }

    public final void setActivityContext(@NotNull Activity activityContext) {
        kotlin.jvm.internal.r.k(activityContext, "activityContext");
        this.activity = activityContext;
        this.context = activityContext;
    }

    @ReactMethod
    public final void setCurrentFlow(@NotNull String currentFlow) {
        kotlin.jvm.internal.r.k(currentFlow, "currentFlow");
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new a0(currentFlow, null), 3);
    }

    @ReactMethod
    public final void setCustomerTypeAttribute(@NotNull String customerType) {
        kotlin.jvm.internal.r.k(customerType, "customerType");
        if (customerType.length() > 0) {
            z0 z0Var = z0.INSTANCE;
            kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new b0(customerType, null), 3);
        }
    }

    @ReactMethod
    public final void setHpLandingPageSeenTime() {
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new c0(null), 3);
    }

    @ReactMethod
    public final void setInAppAndShow(@NotNull String contextName) {
        kotlin.jvm.internal.r.k(contextName, "contextName");
        MoEInAppHelper.Companion companion = MoEInAppHelper.INSTANCE;
        companion.getInstance().setInAppContext(f1.h(contextName));
        MoEInAppHelper companion2 = companion.getInstance();
        Context applicationContext = getReactApplicationContext().getApplicationContext();
        kotlin.jvm.internal.r.j(applicationContext, "getApplicationContext(...)");
        companion2.showInApp(applicationContext);
    }

    @ReactMethod
    public final void setMonetisationStatusAttribute(@NotNull String status) {
        kotlin.jvm.internal.r.k(status, "status");
        if (status.length() > 0) {
            z0 z0Var = z0.INSTANCE;
            kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new d0(status, null), 3);
        }
    }

    public final void setNavigator(@Nullable com.locon.reactapp.common.m reactNavigator) {
        this.navigator = reactNavigator;
    }

    @ReactMethod
    public final void setPhoneNumberAttribute(@Nullable String phoneNumber) {
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new e0(phoneNumber, null), 3);
    }

    @ReactMethod
    public final void setScreenVisited(@NotNull String value) {
        kotlin.jvm.internal.r.k(value, "value");
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new f0(value, null), 3);
    }

    @ReactMethod
    public final void setSearchCityAttribute(@NotNull String city) {
        kotlin.jvm.internal.r.k(city, "city");
        if (city.length() > 0) {
            z0 z0Var = z0.INSTANCE;
            kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new g0(city, null), 3);
        }
    }

    @ReactMethod
    public final void setSellerOnboardingStatus() {
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new h0(null), 3);
    }

    @ReactMethod
    public final void setUserNameAttribute(@Nullable String userName) {
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new i0(userName, null), 3);
    }

    @ReactMethod
    public final void shareShortenedUrl(@NotNull String longUrl, @Nullable String coverImage, @NotNull String shareTitle, @NotNull String shareDescription, @NotNull Callback callback) {
        Activity currentActivity;
        kotlin.jvm.internal.r.k(longUrl, "longUrl");
        kotlin.jvm.internal.r.k(shareTitle, "shareTitle");
        kotlin.jvm.internal.r.k(shareDescription, "shareDescription");
        kotlin.jvm.internal.r.k(callback, "callback");
        if (this.activity == null && (currentActivity = getCurrentActivity()) != null) {
            setActivityContext(currentActivity);
        }
        if (coverImage == null) {
            coverImage = "";
        }
        ShareShortenedUrlData shareShortenedUrlData = new ShareShortenedUrlData(longUrl, shareTitle, coverImage, shareDescription);
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new j0(shareShortenedUrlData, callback, null), 3);
    }

    @ReactMethod
    public final void showInAppRatings(@NotNull Callback callback) {
        kotlin.jvm.internal.r.k(callback, "callback");
        vj.a a10 = vj.a.INSTANCE.a(this.reactContext);
        if (a10 != null) {
            a10.d(callback);
        }
    }

    @ReactMethod
    public final void startOrientationListener(@NotNull Promise promise) {
        kotlin.jvm.internal.r.k(promise, "promise");
        try {
            this.orientationManager.a(new k0());
            this.orientationManager.enable();
            promise.resolve("Orientation listener started");
        } catch (Exception e5) {
            promise.reject("ERROR_START_LISTENER", "Failed to start orientation listener", e5);
        }
    }

    @ReactMethod
    public final void startSMSRetrievel() {
        sd.b.a(6, this.reactContext, null);
    }

    @ReactMethod
    public final void startSpeechReco(@NotNull Callback getText) {
        kotlin.jvm.internal.r.k(getText, "getText");
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new l0(getText, null), 3);
    }

    @ReactMethod
    public final void stopOrientationListener(@NotNull Promise promise) {
        kotlin.jvm.internal.r.k(promise, "promise");
        try {
            this.orientationManager.a(null);
            this.orientationManager.disable();
            promise.resolve("Orientation listener stopped");
        } catch (Exception e5) {
            promise.reject("ERROR_STOP_LISTENER", "Failed to stop orientation listener", e5);
        }
    }

    @ReactMethod
    public final void unregisterAutoOtp() {
        sd.a aVar = this.broadcast;
        if (aVar != null) {
            sd.c.a(this.reactContext, aVar);
        }
        this.broadcast = null;
    }

    @ReactMethod
    public final void updateChatPreferences() {
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(kotlinx.coroutines.scheduling.b.INSTANCE), null, null, new m0(null), 3);
    }

    @ReactMethod
    public final void updateCommonBundleLoadedState() {
        h1.INSTANCE.getClass();
        h1.i();
    }

    @ReactMethod
    public final void updateEdgeModalHeight(float height) {
        h1.INSTANCE.getClass();
        h1.h(height);
    }

    @ReactMethod
    public final void updateIsActiveListingAvailable(boolean isActiveListing) {
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new n0(isActiveListing, null), 3);
    }

    @ReactMethod
    public final void updateRatingDataOnPopupShown() {
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new o0(null), 3);
    }

    @ReactMethod
    public final void updateRentPaidInPref(boolean isRentPaid) {
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.k.c(kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3)), null, null, new p0(isRentPaid, null), 3);
    }

    @ReactMethod
    public final void updateUserData(@NotNull ReadableMap rnData) {
        Activity currentActivity;
        kotlin.jvm.internal.r.k(rnData, "rnData");
        if (this.activity == null && (currentActivity = getCurrentActivity()) != null) {
            setActivityContext(currentActivity);
        }
        kotlin.coroutines.f b3 = v2.b();
        z0 z0Var = z0.INSTANCE;
        kotlinx.coroutines.internal.c a10 = kotlinx.coroutines.k0.a(f.a.C0885a.d(kotlinx.coroutines.internal.t.dispatcher.p0(), (b2) b3));
        if (rnData.hasKey("userData")) {
            kotlinx.coroutines.k.c(a10, null, null, new q0(rnData, this, null), 3);
        }
    }
}