导航菜单

页面标题

页面副标题

Housing v14.7.8 - q0.java 源代码

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

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


package com.locon.profile.presentation.ui.viewmodels;

import android.content.Context;
import androidx.compose.runtime.internal.StabilityInferred;
import androidx.exifinterface.media.ExifInterface;
import com.locon.core.data.Result;
import com.locon.core.data.sharedmodels.CollectionMembers;
import com.locon.core.data.sharedmodels.CollectionProperties;
import com.locon.core.data.sharedmodels.PropertyInfoModels$CrfModel;
import com.locon.core.data.sharedmodels.PropertyInfoModels$PropertyDetailsModel;
import com.locon.core.data.sharedmodels.SavedCollections;
import com.locon.core.data.sharedmodels.ShareShortenedUrlData;
import com.locon.core.domain.login.model.UserDetailsModel;
import com.locon.crf.domain.usecases.CrfUseCases;
import com.locon.domain.usecases.SerpUseCases;
import com.locon.profile.demand.model.CollectionPreviewModel;
import com.locon.profile.demand.model.CollectionPropertiesModel;
import com.locon.profile.demand.model.ProfilePropertyModel;
import com.locon.profile.demand.usecases.SavedCollectionsUseCases;
import com.locon.profile.presentation.ui.viewmodels.o;
import com.newrelic.agent.android.analytics.AnalyticsAttribute;
import com.quickblox.core.helper.ToStringHelper;
import dagger.hilt.android.lifecycle.HiltViewModel;
import dagger.hilt.android.qualifiers.ApplicationContext;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import kotlin.Metadata;
import kotlin.jvm.internal.SourceDebugExtension;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@StabilityInferred(parameters = 0)
@HiltViewModel
@Metadata(d1 = {"\u0000\u009e\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\u0002\b\r\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010$\n\u0002\b\u0006\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0012\b\u0007\u0018\u00002\u00020\u0001BK\b\u0007\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\b\b\u0001\u0010\u0011\u001a\u00020\u0010¢\u0006\u0004\b\u0012\u0010\u0013R\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0014R\u0014\u0010\u0005\u001a\u00020\u00048\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010\u0015R\u0014\u0010\u0007\u001a\u00020\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0007\u0010\u0016R\u0014\u0010\t\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010\u0017R\u0014\u0010\u000b\u001a\u00020\n8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010\u0018R\u0017\u0010\r\u001a\u00020\f8\u0006¢\u0006\f\n\u0004\b\r\u0010\u0019\u001a\u0004\b\u001a\u0010\u001bR\u0014\u0010\u000f\u001a\u00020\u000e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000f\u0010\u001cR\u0014\u0010\u0011\u001a\u00020\u00108\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0011\u0010\u001dR\u001a\u0010 \u001a\b\u0012\u0004\u0012\u00020\u001f0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b \u0010!R\u001d\u0010#\u001a\b\u0012\u0004\u0012\u00020\u001f0\"8\u0006¢\u0006\f\n\u0004\b#\u0010$\u001a\u0004\b%\u0010&R&\u0010(\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\u001f\u0012\u0004\u0012\u00020\u001f0'0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b(\u0010!R)\u0010)\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\u001f\u0012\u0004\u0012\u00020\u001f0'0\"8\u0006¢\u0006\f\n\u0004\b)\u0010$\u001a\u0004\b*\u0010&R\u001a\u0010+\u001a\b\u0012\u0004\u0012\u00020\u001f0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b+\u0010!R\u001d\u0010,\u001a\b\u0012\u0004\u0012\u00020\u001f0\"8\u0006¢\u0006\f\n\u0004\b,\u0010$\u001a\u0004\b-\u0010&R \u00100\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020/0.0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b0\u0010!R#\u00101\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020/0.0\"8\u0006¢\u0006\f\n\u0004\b1\u0010$\u001a\u0004\b2\u0010&R\"\u00104\u001a\u0002038\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b4\u00105\u001a\u0004\b6\u00107\"\u0004\b8\u00109R\u0016\u0010;\u001a\u00020:8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b;\u0010<R\u0014\u0010=\u001a\u0002038\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b=\u00105R\u0016\u0010>\u001a\u00020:8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b>\u0010<R\u001a\u0010?\u001a\b\u0012\u0004\u0012\u0002030\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b?\u0010!R\u001d\u0010@\u001a\b\u0012\u0004\u0012\u0002030\"8\u0006¢\u0006\f\n\u0004\b@\u0010$\u001a\u0004\bA\u0010&R\u001a\u0010B\u001a\b\u0012\u0004\u0012\u00020\u001f0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bB\u0010!R\u001d\u0010C\u001a\b\u0012\u0004\u0012\u00020\u001f0\"8\u0006¢\u0006\f\n\u0004\bC\u0010$\u001a\u0004\bD\u0010&R\u001a\u0010F\u001a\b\u0012\u0004\u0012\u00020E0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bF\u0010!R\u001d\u0010G\u001a\b\u0012\u0004\u0012\u00020E0\"8\u0006¢\u0006\f\n\u0004\bG\u0010$\u001a\u0004\bH\u0010&R \u0010J\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020I0.0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bJ\u0010!R#\u0010K\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020I0.0\"8\u0006¢\u0006\f\n\u0004\bK\u0010$\u001a\u0004\bL\u0010&R\u001a\u0010M\u001a\b\u0012\u0004\u0012\u00020:0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bM\u0010!R\u001d\u0010N\u001a\b\u0012\u0004\u0012\u00020:0\"8\u0006¢\u0006\f\n\u0004\bN\u0010$\u001a\u0004\bO\u0010&R\u001a\u0010P\u001a\b\u0012\u0004\u0012\u00020:0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bP\u0010!R\u001d\u0010Q\u001a\b\u0012\u0004\u0012\u00020:0\"8\u0006¢\u0006\f\n\u0004\bQ\u0010$\u001a\u0004\bR\u0010&R\u001a\u0010S\u001a\b\u0012\u0004\u0012\u00020:0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bS\u0010!R\u001d\u0010T\u001a\b\u0012\u0004\u0012\u00020:0\"8\u0006¢\u0006\f\n\u0004\bT\u0010$\u001a\u0004\bU\u0010&R\u001a\u0010V\u001a\b\u0012\u0004\u0012\u00020:0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bV\u0010!R\u001d\u0010W\u001a\b\u0012\u0004\u0012\u00020:0\"8\u0006¢\u0006\f\n\u0004\bW\u0010$\u001a\u0004\bX\u0010&R\u001a\u0010Y\u001a\b\u0012\u0004\u0012\u00020:0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bY\u0010!R\u001d\u0010Z\u001a\b\u0012\u0004\u0012\u00020:0\"8\u0006¢\u0006\f\n\u0004\bZ\u0010$\u001a\u0004\b[\u0010&R \u0010^\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020]0\\0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b^\u0010!R#\u0010_\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020]0\\0\"8\u0006¢\u0006\f\n\u0004\b_\u0010$\u001a\u0004\b`\u0010&R\u001c\u0010b\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010a0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bb\u0010!R\u001f\u0010c\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010a0\"8\u0006¢\u0006\f\n\u0004\bc\u0010$\u001a\u0004\bd\u0010&R\u001c\u0010e\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010a0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\be\u0010!R\u001f\u0010f\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010a0\"8\u0006¢\u0006\f\n\u0004\bf\u0010$\u001a\u0004\bg\u0010&R\u001c\u0010h\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010a0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bh\u0010!R\u001f\u0010i\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010a0\"8\u0006¢\u0006\f\n\u0004\bi\u0010$\u001a\u0004\bj\u0010&R\u001a\u0010k\u001a\b\u0012\u0004\u0012\u00020\u001f0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bk\u0010!R\u001d\u0010l\u001a\b\u0012\u0004\u0012\u00020\u001f0\"8\u0006¢\u0006\f\n\u0004\bl\u0010$\u001a\u0004\bm\u0010&R\u001a\u0010o\u001a\b\u0012\u0004\u0012\u00020n0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bo\u0010!R\u001d\u0010p\u001a\b\u0012\u0004\u0012\u00020n0\"8\u0006¢\u0006\f\n\u0004\bp\u0010$\u001a\u0004\b<\u0010&R\u001a\u0010q\u001a\b\u0012\u0004\u0012\u00020\u001f0\u001e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bq\u0010!R\u0016\u0010r\u001a\u0002038\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\br\u00105R\u001c\u0010s\u001a\b\u0012\u0004\u0012\u00020I0.8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bs\u0010tR$\u0010u\u001a\u0004\u0018\u00010I8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bu\u0010v\u001a\u0004\bw\u0010x\"\u0004\by\u0010zR\"\u0010{\u001a\u00020:8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b{\u0010<\u001a\u0004\b|\u0010}\"\u0004\b~\u0010\u007f¨\u0006\u0080\u0001"}, d2 = {"Lcom/locon/profile/presentation/ui/viewmodels/q0;", "Landroidx/lifecycle/v0;", "Lcom/locon/profile/demand/usecases/SavedCollectionsUseCases;", "useCases", "Lcom/locon/profile/demand/usecases/a1;", "profileUseCases", "Lcom/locon/crf/domain/usecases/CrfUseCases;", "crfUseCases", "Lcom/locon/domain/usecases/SerpUseCases;", "serpUseCases", "Lcom/locon/core/data/local/datastore/o0;", "housingPrefStore", "Landroidx/lifecycle/i0;", "savedStateHandle", "Lcom/locon/profile/data/analytics/a2;", "profileAnalytics", "Landroid/content/Context;", "appContext", "<init>", "(Lcom/locon/profile/demand/usecases/SavedCollectionsUseCases;Lcom/locon/profile/demand/usecases/a1;Lcom/locon/crf/domain/usecases/CrfUseCases;Lcom/locon/domain/usecases/SerpUseCases;Lcom/locon/core/data/local/datastore/o0;Landroidx/lifecycle/i0;Lcom/locon/profile/data/analytics/a2;Landroid/content/Context;)V", "Lcom/locon/profile/demand/usecases/SavedCollectionsUseCases;", "Lcom/locon/profile/demand/usecases/a1;", "Lcom/locon/crf/domain/usecases/CrfUseCases;", "Lcom/locon/domain/usecases/SerpUseCases;", "Lcom/locon/core/data/local/datastore/o0;", "Landroidx/lifecycle/i0;", "getSavedStateHandle", "()Landroidx/lifecycle/i0;", "Lcom/locon/profile/data/analytics/a2;", "Landroid/content/Context;", "Lkotlinx/coroutines/flow/w1;", "", "_loginAuthToken", "Lkotlinx/coroutines/flow/w1;", "Lkotlinx/coroutines/flow/p2;", "loginAuthToken", "Lkotlinx/coroutines/flow/p2;", "getLoginAuthToken", "()Lkotlinx/coroutines/flow/p2;", "", "_selectedProperties", "selectedProperties", "o0", "_createCollectionErrorMsg", "createCollectionErrorMsg", "e0", "", "Lcom/locon/core/data/sharedmodels/SavedCollections;", "_allCollectionsList", "allCollectionsList", "X", "", "prevCollectionsLength", "I", "j0", "()I", "H0", "(I)V", "", "areCollectionsInitialized", "Z", "navParamsCollectionId", "shouldHandleCollectionDeeplink", "_activeCollectionId", "activeCollectionId", "U", "_activeCollectionName", "activeCollectionName", ExifInterface.GPS_MEASUREMENT_INTERRUPTED, "Lcom/locon/profile/presentation/ui/viewmodels/p;", "_collectionPropertiesData", "collectionPropertiesData", "b0", "Lcom/locon/profile/demand/model/ProfilePropertyModel;", "_savedPropertiesForCollection", "savedPropertiesForCollection", "l0", "_isPropListLoading", "isPropListLoading", "w0", "_isCollectionLoading", "isCollectionLoading", "u0", "_isMembersListLoading", "isMembersListLoading", "v0", "_showFullScreenLoader", "showFullScreenLoader", "s0", "_isSavedPropertiesLoading", "isSavedPropertiesLoading", "x0", "Luq/b;", "Lcom/locon/core/data/sharedmodels/CollectionMembers;", "_membersList", "membersList", "g0", "Ls0/e;", "_addCollectionCoordinates", "addCollectionCoordinates", ExifInterface.LONGITUDE_WEST, "_searchPartnerCoordinates", "searchPartnerCoordinates", "n0", "_commentTextCoordinates", "commentTextCoordinates", "d0", "_shareUrl", "shareUrl", "p0", "Lcom/locon/profile/demand/model/CollectionPreviewModel;", "_collectionPreviewData", "collectionPreviewData", "userUuid", "numberOfAPICallsLeft", "temporaryAPIResponse", "Ljava/util/List;", "propertyInfoToBeRemoved", "Lcom/locon/profile/demand/model/ProfilePropertyModel;", "k0", "()Lcom/locon/profile/demand/model/ProfilePropertyModel;", "setPropertyInfoToBeRemoved", "(Lcom/locon/profile/demand/model/ProfilePropertyModel;)V", "shouldCallApi", "r0", "()Z", "J0", "(Z)V", "presentation_gammaRelease"}, k = 1, mv = {2, 0, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nCollectionsViewModel.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CollectionsViewModel.kt\ncom/locon/profile/presentation/ui/viewmodels/CollectionsViewModel\n+ 2 StateFlow.kt\nkotlinx/coroutines/flow/StateFlowKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 4 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,1106:1\n230#2,5:1107\n230#2,5:1112\n230#2,5:1117\n230#2,5:1122\n230#2,5:1127\n230#2,5:1132\n230#2,5:1140\n230#2,5:1146\n230#2,5:1151\n230#2,5:1156\n230#2,5:1161\n230#2,5:1166\n230#2,5:1183\n230#2,5:1188\n230#2,5:1193\n230#2,5:1198\n230#2,5:1203\n230#2,5:1208\n230#2,5:1213\n230#2,5:1218\n230#2,5:1223\n230#2,5:1228\n230#2,5:1233\n230#2,5:1241\n230#2,5:1246\n230#2,5:1251\n1761#3,3:1137\n1208#3,2:1171\n1236#3,4:1173\n1208#3,2:1177\n1236#3,4:1179\n1761#3,3:1238\n1#4:1145\n*S KotlinDebug\n*F\n+ 1 CollectionsViewModel.kt\ncom/locon/profile/presentation/ui/viewmodels/CollectionsViewModel\n*L\n288#1:1107,5\n294#1:1112,5\n301#1:1117,5\n305#1:1122,5\n313#1:1127,5\n351#1:1132,5\n377#1:1140,5\n381#1:1146,5\n389#1:1151,5\n409#1:1156,5\n470#1:1161,5\n476#1:1166,5\n549#1:1183,5\n560#1:1188,5\n571#1:1193,5\n610#1:1198,5\n641#1:1203,5\n659#1:1208,5\n663#1:1213,5\n708#1:1218,5\n763#1:1223,5\n789#1:1228,5\n808#1:1233,5\n879#1:1241,5\n882#1:1246,5\n921#1:1251,5\n376#1:1137,3\n527#1:1171,2\n527#1:1173,4\n528#1:1177,2\n528#1:1179,4\n875#1:1238,3\n*E\n"})
public final class q0 extends androidx.view.v0 {
    public static final int $stable = 8;

    @NotNull
    private final kotlinx.coroutines.flow.w1<Integer> _activeCollectionId;

    @NotNull
    private final kotlinx.coroutines.flow.w1<String> _activeCollectionName;

    @NotNull
    private final kotlinx.coroutines.flow.w1<s0.e> _addCollectionCoordinates;

    @NotNull
    private final kotlinx.coroutines.flow.w1<List<SavedCollections>> _allCollectionsList;

    @NotNull
    private final kotlinx.coroutines.flow.w1<CollectionPreviewModel> _collectionPreviewData;

    @NotNull
    private final kotlinx.coroutines.flow.w1<p> _collectionPropertiesData;

    @NotNull
    private final kotlinx.coroutines.flow.w1<s0.e> _commentTextCoordinates;

    @NotNull
    private final kotlinx.coroutines.flow.w1<String> _createCollectionErrorMsg;

    @NotNull
    private final kotlinx.coroutines.flow.w1<Boolean> _isCollectionLoading;

    @NotNull
    private final kotlinx.coroutines.flow.w1<Boolean> _isMembersListLoading;

    @NotNull
    private final kotlinx.coroutines.flow.w1<Boolean> _isPropListLoading;

    @NotNull
    private final kotlinx.coroutines.flow.w1<Boolean> _isSavedPropertiesLoading;

    @NotNull
    private final kotlinx.coroutines.flow.w1<String> _loginAuthToken;

    @NotNull
    private final kotlinx.coroutines.flow.w1<uq.b<CollectionMembers>> _membersList;

    @NotNull
    private final kotlinx.coroutines.flow.w1<List<ProfilePropertyModel>> _savedPropertiesForCollection;

    @NotNull
    private final kotlinx.coroutines.flow.w1<s0.e> _searchPartnerCoordinates;

    @NotNull
    private final kotlinx.coroutines.flow.w1<Map<String, String>> _selectedProperties;

    @NotNull
    private final kotlinx.coroutines.flow.w1<String> _shareUrl;

    @NotNull
    private final kotlinx.coroutines.flow.w1<Boolean> _showFullScreenLoader;

    @NotNull
    private final kotlinx.coroutines.flow.p2<Integer> activeCollectionId;

    @NotNull
    private final kotlinx.coroutines.flow.p2<String> activeCollectionName;

    @NotNull
    private final kotlinx.coroutines.flow.p2<s0.e> addCollectionCoordinates;

    @NotNull
    private final kotlinx.coroutines.flow.p2<List<SavedCollections>> allCollectionsList;

    @NotNull
    private final Context appContext;
    private boolean areCollectionsInitialized;

    @NotNull
    private final kotlinx.coroutines.flow.p2<CollectionPreviewModel> collectionPreviewData;

    @NotNull
    private final kotlinx.coroutines.flow.p2<p> collectionPropertiesData;

    @NotNull
    private final kotlinx.coroutines.flow.p2<s0.e> commentTextCoordinates;

    @NotNull
    private final kotlinx.coroutines.flow.p2<String> createCollectionErrorMsg;

    @NotNull
    private final CrfUseCases crfUseCases;

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

    @NotNull
    private final kotlinx.coroutines.flow.p2<Boolean> isCollectionLoading;

    @NotNull
    private final kotlinx.coroutines.flow.p2<Boolean> isMembersListLoading;

    @NotNull
    private final kotlinx.coroutines.flow.p2<Boolean> isPropListLoading;

    @NotNull
    private final kotlinx.coroutines.flow.p2<Boolean> isSavedPropertiesLoading;

    @NotNull
    private final kotlinx.coroutines.flow.p2<String> loginAuthToken;

    @NotNull
    private final kotlinx.coroutines.flow.p2<uq.b<CollectionMembers>> membersList;
    private final int navParamsCollectionId;
    private int numberOfAPICallsLeft;
    private int prevCollectionsLength;

    @NotNull
    private final com.locon.profile.data.analytics.a2 profileAnalytics;

    @NotNull
    private final com.locon.profile.demand.usecases.a1 profileUseCases;

    @Nullable
    private ProfilePropertyModel propertyInfoToBeRemoved;

    @NotNull
    private final kotlinx.coroutines.flow.p2<List<ProfilePropertyModel>> savedPropertiesForCollection;

    @NotNull
    private final androidx.view.i0 savedStateHandle;

    @NotNull
    private final kotlinx.coroutines.flow.p2<s0.e> searchPartnerCoordinates;

    @NotNull
    private final kotlinx.coroutines.flow.p2<Map<String, String>> selectedProperties;

    @NotNull
    private final SerpUseCases serpUseCases;

    @NotNull
    private final kotlinx.coroutines.flow.p2<String> shareUrl;
    private boolean shouldCallApi;
    private boolean shouldHandleCollectionDeeplink;

    @NotNull
    private final kotlinx.coroutines.flow.p2<Boolean> showFullScreenLoader;

    @NotNull
    private List<ProfilePropertyModel> temporaryAPIResponse;

    @NotNull
    private final SavedCollectionsUseCases useCases;

    @NotNull
    private final kotlinx.coroutines.flow.w1<String> userUuid;

    @Inject
    public q0(@NotNull SavedCollectionsUseCases useCases, @NotNull com.locon.profile.demand.usecases.a1 profileUseCases, @NotNull CrfUseCases crfUseCases, @NotNull SerpUseCases serpUseCases, @NotNull com.locon.core.data.local.datastore.o0 housingPrefStore, @NotNull androidx.view.i0 savedStateHandle, @NotNull com.locon.profile.data.analytics.a2 profileAnalytics, @ApplicationContext @NotNull Context appContext) {
        kotlin.jvm.internal.r.k(useCases, "useCases");
        kotlin.jvm.internal.r.k(profileUseCases, "profileUseCases");
        kotlin.jvm.internal.r.k(crfUseCases, "crfUseCases");
        kotlin.jvm.internal.r.k(serpUseCases, "serpUseCases");
        kotlin.jvm.internal.r.k(housingPrefStore, "housingPrefStore");
        kotlin.jvm.internal.r.k(savedStateHandle, "savedStateHandle");
        kotlin.jvm.internal.r.k(profileAnalytics, "profileAnalytics");
        kotlin.jvm.internal.r.k(appContext, "appContext");
        this.useCases = useCases;
        this.profileUseCases = profileUseCases;
        this.crfUseCases = crfUseCases;
        this.serpUseCases = serpUseCases;
        this.housingPrefStore = housingPrefStore;
        this.savedStateHandle = savedStateHandle;
        this.profileAnalytics = profileAnalytics;
        this.appContext = appContext;
        kotlinx.coroutines.flow.w1<String> a10 = kotlinx.coroutines.flow.s2.a("");
        this._loginAuthToken = a10;
        this.loginAuthToken = kotlinx.coroutines.flow.m.b(a10);
        kotlinx.coroutines.flow.w1<Map<String, String>> a11 = kotlinx.coroutines.flow.s2.a(kotlin.collections.t0.d());
        this._selectedProperties = a11;
        this.selectedProperties = kotlinx.coroutines.flow.m.b(a11);
        kotlinx.coroutines.flow.w1<String> a12 = kotlinx.coroutines.flow.s2.a("");
        this._createCollectionErrorMsg = a12;
        this.createCollectionErrorMsg = kotlinx.coroutines.flow.m.b(a12);
        kotlin.collections.g0 g0Var = kotlin.collections.g0.INSTANCE;
        kotlinx.coroutines.flow.w1<List<SavedCollections>> a13 = kotlinx.coroutines.flow.s2.a(g0Var);
        this._allCollectionsList = a13;
        this.allCollectionsList = kotlinx.coroutines.flow.m.b(a13);
        this.prevCollectionsLength = ((List) a13.getValue()).size();
        Integer num = (Integer) savedStateHandle.e("collectionId");
        int intValue = num != null ? num.intValue() : -1;
        this.navParamsCollectionId = intValue;
        this.shouldHandleCollectionDeeplink = intValue != -1;
        kotlinx.coroutines.flow.w1<Integer> a14 = kotlinx.coroutines.flow.s2.a(-1);
        this._activeCollectionId = a14;
        this.activeCollectionId = kotlinx.coroutines.flow.m.b(a14);
        kotlinx.coroutines.flow.w1<String> a15 = kotlinx.coroutines.flow.s2.a("");
        this._activeCollectionName = a15;
        this.activeCollectionName = kotlinx.coroutines.flow.m.b(a15);
        kotlinx.coroutines.flow.w1<p> a16 = kotlinx.coroutines.flow.s2.a(new p(0, false, null, null, 15, null));
        this._collectionPropertiesData = a16;
        this.collectionPropertiesData = kotlinx.coroutines.flow.m.b(a16);
        kotlinx.coroutines.flow.w1<List<ProfilePropertyModel>> a17 = kotlinx.coroutines.flow.s2.a(g0Var);
        this._savedPropertiesForCollection = a17;
        this.savedPropertiesForCollection = kotlinx.coroutines.flow.m.b(a17);
        Boolean bool = Boolean.FALSE;
        kotlinx.coroutines.flow.w1<Boolean> a18 = kotlinx.coroutines.flow.s2.a(bool);
        this._isPropListLoading = a18;
        this.isPropListLoading = kotlinx.coroutines.flow.m.b(a18);
        kotlinx.coroutines.flow.w1<Boolean> a19 = kotlinx.coroutines.flow.s2.a(bool);
        this._isCollectionLoading = a19;
        this.isCollectionLoading = kotlinx.coroutines.flow.m.b(a19);
        kotlinx.coroutines.flow.w1<Boolean> a20 = kotlinx.coroutines.flow.s2.a(bool);
        this._isMembersListLoading = a20;
        this.isMembersListLoading = kotlinx.coroutines.flow.m.b(a20);
        kotlinx.coroutines.flow.w1<Boolean> a21 = kotlinx.coroutines.flow.s2.a(bool);
        this._showFullScreenLoader = a21;
        this.showFullScreenLoader = kotlinx.coroutines.flow.m.b(a21);
        kotlinx.coroutines.flow.w1<Boolean> a22 = kotlinx.coroutines.flow.s2.a(bool);
        this._isSavedPropertiesLoading = a22;
        this.isSavedPropertiesLoading = kotlinx.coroutines.flow.m.b(a22);
        kotlinx.coroutines.flow.w1<uq.b<CollectionMembers>> a23 = kotlinx.coroutines.flow.s2.a(uq.a.b(g0Var));
        this._membersList = a23;
        this.membersList = kotlinx.coroutines.flow.m.b(a23);
        kotlinx.coroutines.flow.w1<s0.e> a24 = kotlinx.coroutines.flow.s2.a(null);
        this._addCollectionCoordinates = a24;
        this.addCollectionCoordinates = kotlinx.coroutines.flow.m.b(a24);
        kotlinx.coroutines.flow.w1<s0.e> a25 = kotlinx.coroutines.flow.s2.a(null);
        this._searchPartnerCoordinates = a25;
        this.searchPartnerCoordinates = kotlinx.coroutines.flow.m.b(a25);
        kotlinx.coroutines.flow.w1<s0.e> a26 = kotlinx.coroutines.flow.s2.a(null);
        this._commentTextCoordinates = a26;
        this.commentTextCoordinates = kotlinx.coroutines.flow.m.b(a26);
        kotlinx.coroutines.flow.w1<String> a27 = kotlinx.coroutines.flow.s2.a("");
        this._shareUrl = a27;
        this.shareUrl = kotlinx.coroutines.flow.m.b(a27);
        kotlinx.coroutines.flow.w1<CollectionPreviewModel> a28 = kotlinx.coroutines.flow.s2.a(new CollectionPreviewModel(null, false, null, null, null, null, null, 127, null));
        this._collectionPreviewData = a28;
        this.collectionPreviewData = kotlinx.coroutines.flow.m.b(a28);
        this.userUuid = kotlinx.coroutines.flow.s2.a("");
        this.temporaryAPIResponse = g0Var;
        p2.a a29 = androidx.view.w0.a(this);
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        kotlinx.coroutines.scheduling.b bVar = kotlinx.coroutines.scheduling.b.INSTANCE;
        kotlinx.coroutines.k.c(a29, bVar, null, new o0(this, null), 2);
        kotlinx.coroutines.k.c(androidx.view.w0.a(this), bVar, null, new i0(this, null), 2);
        kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(a14, new m0(this, null)), androidx.view.w0.a(this));
        kotlinx.coroutines.k.c(androidx.view.w0.a(this), null, null, new n0(this, null), 3);
    }

    public static final Object C(q0 q0Var, Result result, boolean z5, CollectionPropertiesModel collectionPropertiesModel, eq.i iVar) {
        q0Var.getClass();
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        for (CollectionProperties collectionProperties : collectionPropertiesModel.getData()) {
            linkedHashMap.put(String.valueOf(collectionProperties.getPropertyId()), collectionProperties);
        }
        Object b3 = dj.b.b(result, new j0(q0Var, collectionPropertiesModel, linkedHashMap, z5, null), new k0(q0Var, collectionPropertiesModel, linkedHashMap, z5, null), iVar);
        return b3 == kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED ? b3 : zp.j0.INSTANCE;
    }

    public static final void D(q0 q0Var) {
        Object value;
        kotlinx.coroutines.flow.w1<uq.b<CollectionMembers>> w1Var = q0Var._membersList;
        do {
            value = w1Var.getValue();
        } while (!w1Var.c(value, uq.a.b(kotlin.collections.g0.INSTANCE)));
    }

    public static final void H(q0 q0Var, String str) {
        ed.b.d(q0Var.appContext, 0, str);
    }

    public static final ArrayList I(q0 q0Var, List list, CollectionPropertiesModel collectionPropertiesModel) {
        q0Var.getClass();
        ArrayList arrayList = new ArrayList();
        List list2 = list;
        int h8 = kotlin.collections.t0.h(kotlin.collections.t.u(list2, 10));
        if (h8 < 16) {
            h8 = 16;
        }
        LinkedHashMap linkedHashMap = new LinkedHashMap(h8);
        for (Object obj : list2) {
            linkedHashMap.put(((ProfilePropertyModel) obj).e(), obj);
        }
        List<ProfilePropertyModel> list3 = q0Var.temporaryAPIResponse;
        int h10 = kotlin.collections.t0.h(kotlin.collections.t.u(list3, 10));
        LinkedHashMap linkedHashMap2 = new LinkedHashMap(h10 >= 16 ? h10 : 16);
        for (Object obj2 : list3) {
            linkedHashMap2.put(((ProfilePropertyModel) obj2).e(), obj2);
        }
        for (CollectionProperties collectionProperties : collectionPropertiesModel.getData()) {
            ProfilePropertyModel profilePropertyModel = (ProfilePropertyModel) linkedHashMap.get(String.valueOf(collectionProperties.getPropertyId()));
            if (profilePropertyModel != null) {
                arrayList.add(profilePropertyModel);
            } else {
                ProfilePropertyModel profilePropertyModel2 = (ProfilePropertyModel) linkedHashMap2.get(String.valueOf(collectionProperties.getPropertyId()));
                if (profilePropertyModel2 != null) {
                    arrayList.add(profilePropertyModel2);
                }
            }
        }
        return arrayList;
    }

    public static final void a(q0 q0Var, List list) {
        Object obj;
        String name;
        Object value;
        Object value2;
        if (q0Var.navParamsCollectionId != -1 && !q0Var.areCollectionsInitialized) {
            List list2 = list;
            if (!(list2 instanceof Collection) || !list2.isEmpty()) {
                Iterator it = list2.iterator();
                while (it.hasNext()) {
                    Integer d5 = ((SavedCollections) it.next()).d();
                    int i8 = q0Var.navParamsCollectionId;
                    if (d5 != null && d5.intValue() == i8) {
                        if (((Number) q0Var._activeCollectionId.getValue()).intValue() != -1 && ((CharSequence) q0Var._activeCollectionName.getValue()).length() == 0) {
                            Iterator it2 = list2.iterator();
                            while (true) {
                                if (!it2.hasNext()) {
                                    obj = null;
                                    break;
                                }
                                obj = it2.next();
                                Integer d8 = ((SavedCollections) obj).d();
                                int intValue = ((Number) q0Var.activeCollectionId.getValue()).intValue();
                                if (d8 != null && d8.intValue() == intValue) {
                                    break;
                                }
                            }
                            SavedCollections savedCollections = (SavedCollections) obj;
                            if (savedCollections != null && (name = savedCollections.getName()) != null && name.length() > 0) {
                                kotlinx.coroutines.flow.w1<String> w1Var = q0Var._activeCollectionName;
                                do {
                                    value = w1Var.getValue();
                                } while (!w1Var.c(value, savedCollections.getName()));
                            }
                        }
                    }
                }
            }
            kotlinx.coroutines.flow.w1<Integer> w1Var2 = q0Var._activeCollectionId;
            do {
                value2 = w1Var2.getValue();
                ((Number) value2).intValue();
            } while (!w1Var2.c(value2, -1));
        }
        q0Var.areCollectionsInitialized = true;
    }

    public static final void b(q0 q0Var) {
        Object value;
        kotlinx.coroutines.flow.w1<Boolean> w1Var = q0Var._isCollectionLoading;
        do {
            value = w1Var.getValue();
            ((Boolean) value).getClass();
        } while (!w1Var.c(value, Boolean.TRUE));
        kotlinx.coroutines.flow.k a10 = q0Var.useCases.getGetAllCollections().a((String) q0Var.loginAuthToken.getValue(), false);
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), new z(q0Var, null)), androidx.view.w0.a(q0Var));
    }

    public static final void c(q0 q0Var, CollectionPropertiesModel collectionPropertiesModel, boolean z5) {
        Object value;
        p pVar;
        Object value2;
        q0Var.getClass();
        ArrayList arrayList = new ArrayList();
        ArrayList arrayList2 = new ArrayList();
        ArrayList arrayList3 = new ArrayList();
        for (CollectionProperties collectionProperties : collectionPropertiesModel.getData()) {
            String serviceType = collectionProperties.getServiceType();
            int hashCode = serviceType.hashCode();
            if (hashCode != -934445830) {
                if (hashCode != -309310695) {
                    if (hashCode == 3496761 && serviceType.equals("rent")) {
                        arrayList3.add(String.valueOf(collectionProperties.getPropertyId()));
                    }
                } else if (serviceType.equals(com.locon.home.presentation.ui.viewModels.j0.NEW_PROJECT)) {
                    arrayList.add(collectionProperties.getPropertyId() + "_project");
                }
            } else if (serviceType.equals(com.locon.home.presentation.ui.viewModels.j0.RESALE)) {
                arrayList2.add(collectionProperties.getPropertyId() + "_resale");
            }
        }
        boolean isEmpty = arrayList3.isEmpty();
        boolean z7 = (arrayList.isEmpty() && arrayList2.isEmpty()) ? false : true;
        if (!isEmpty) {
            q0Var.numberOfAPICallsLeft++;
            kotlinx.coroutines.flow.k a10 = ((com.locon.profile.demand.usecases.b1) q0Var.profileUseCases).getGetBulkDedicatedDetailsForRentInProfile().a(1, arrayList3);
            kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
            com.locon.core.data.d0.c(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), new a0(q0Var, z5, collectionPropertiesModel, null)), androidx.view.w0.a(q0Var));
        }
        if (z7) {
            q0Var.numberOfAPICallsLeft++;
            kotlinx.coroutines.flow.k a11 = ((com.locon.profile.demand.usecases.b1) q0Var.profileUseCases).getGetBulkDedicatedDetailsForBuyInProfile().a(1, arrayList, arrayList2);
            kotlinx.coroutines.z0 z0Var2 = kotlinx.coroutines.z0.INSTANCE;
            com.locon.core.data.d0.c(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a11, kotlinx.coroutines.scheduling.b.INSTANCE), new b0(q0Var, z5, collectionPropertiesModel, null)), androidx.view.w0.a(q0Var));
        }
        if (!isEmpty || z7) {
            return;
        }
        q0Var.shouldCallApi = false;
        kotlinx.coroutines.flow.w1<p> w1Var = q0Var._collectionPropertiesData;
        do {
            value = w1Var.getValue();
            pVar = (p) value;
        } while (!w1Var.c(value, p.b(pVar, pVar.getPageCount() + 1, z5, null, 12)));
        kotlinx.coroutines.flow.w1<Boolean> w1Var2 = q0Var._isPropListLoading;
        do {
            value2 = w1Var2.getValue();
            ((Boolean) value2).getClass();
        } while (!w1Var2.c(value2, Boolean.FALSE));
    }

    public static final Object d(q0 q0Var, eq.d dVar) {
        c0 c0Var;
        int i8;
        Object value;
        UserDetailsModel userDetailsModel;
        q0Var.getClass();
        if (dVar instanceof c0) {
            c0Var = (c0) dVar;
            int i10 = c0Var.label;
            if ((i10 & Integer.MIN_VALUE) != 0) {
                c0Var.label = i10 - Integer.MIN_VALUE;
                Object obj = c0Var.result;
                kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                i8 = c0Var.label;
                if (i8 != 0) {
                    zp.u.b(obj);
                    kotlinx.coroutines.flow.w1<Boolean> w1Var = q0Var._isMembersListLoading;
                    do {
                        value = w1Var.getValue();
                        ((Boolean) value).getClass();
                    } while (!w1Var.c(value, Boolean.TRUE));
                    kotlinx.coroutines.flow.k g10 = ((com.locon.profile.demand.usecases.b1) q0Var.profileUseCases).getProfileLocalDataUseCase().g();
                    c0Var.L$0 = q0Var;
                    c0Var.label = 1;
                    obj = kotlinx.coroutines.flow.m.u(g10, c0Var);
                    if (obj == aVar) {
                        return aVar;
                    }
                } else {
                    if (i8 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    q0Var = (q0) c0Var.L$0;
                    zp.u.b(obj);
                }
                userDetailsModel = (UserDetailsModel) obj;
                if (((CharSequence) q0Var.loginAuthToken.getValue()).length() > 0 && ((Number) q0Var.activeCollectionId.getValue()).intValue() != -1) {
                    kotlinx.coroutines.flow.k a10 = q0Var.useCases.getGetCollectionMembers().a(((Number) q0Var.activeCollectionId.getValue()).intValue(), (String) q0Var.loginAuthToken.getValue());
                    kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
                    kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), new d0(q0Var, userDetailsModel, null)), androidx.view.w0.a(q0Var));
                }
                return zp.j0.INSTANCE;
            }
        }
        c0Var = new c0(q0Var, dVar);
        Object obj2 = c0Var.result;
        kotlin.coroutines.intrinsics.a aVar2 = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
        i8 = c0Var.label;
        if (i8 != 0) {
        }
        userDetailsModel = (UserDetailsModel) obj2;
        if (((CharSequence) q0Var.loginAuthToken.getValue()).length() > 0) {
            kotlinx.coroutines.flow.k a102 = q0Var.useCases.getGetCollectionMembers().a(((Number) q0Var.activeCollectionId.getValue()).intValue(), (String) q0Var.loginAuthToken.getValue());
            kotlinx.coroutines.z0 z0Var2 = kotlinx.coroutines.z0.INSTANCE;
            kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a102, kotlinx.coroutines.scheduling.b.INSTANCE), new d0(q0Var, userDetailsModel, null)), androidx.view.w0.a(q0Var));
        }
        return zp.j0.INSTANCE;
    }

    public final void A0() {
        Object value;
        kotlinx.coroutines.flow.w1<String> w1Var = this._createCollectionErrorMsg;
        do {
            value = w1Var.getValue();
        } while (!w1Var.c(value, ""));
    }

    public final void B0() {
        Object value;
        kotlinx.coroutines.flow.w1<p> w1Var = this._collectionPropertiesData;
        do {
            value = w1Var.getValue();
        } while (!w1Var.c(value, new p(0, false, null, null, 15, null)));
    }

    public final void C0() {
        Object value;
        kotlinx.coroutines.flow.w1<Map<String, String>> w1Var = this._selectedProperties;
        do {
            value = w1Var.getValue();
        } while (!w1Var.c(value, kotlin.collections.t0.d()));
    }

    public final void D0() {
        Object value;
        kotlinx.coroutines.flow.w1<String> w1Var = this._shareUrl;
        do {
            value = w1Var.getValue();
        } while (!w1Var.c(value, ""));
    }

    public final void E0() {
        if (this.shouldHandleCollectionDeeplink) {
            this.shouldHandleCollectionDeeplink = false;
        }
    }

    public final void F0(long j8) {
        this._addCollectionCoordinates.setValue(new s0.e(j8));
    }

    public final void G0(long j8) {
        this._commentTextCoordinates.setValue(new s0.e(j8));
    }

    public final void H0(int i8) {
        this.prevCollectionsLength = i8;
    }

    public final void I0(long j8) {
        this._searchPartnerCoordinates.setValue(new s0.e(j8));
    }

    public final void J(String comment, Integer num, String propertyId, kq.a aVar) {
        Object value;
        kotlin.jvm.internal.r.k(comment, "comment");
        kotlin.jvm.internal.r.k(propertyId, "propertyId");
        if (comment.length() == 0 || num == null) {
            return;
        }
        kotlinx.coroutines.flow.w1<Boolean> w1Var = this._showFullScreenLoader;
        do {
            value = w1Var.getValue();
            ((Boolean) value).getClass();
        } while (!w1Var.c(value, Boolean.TRUE));
        com.locon.profile.demand.usecases.c a10 = this.useCases.getAddCommentOnCollectionProp().a(num.intValue(), (String) this.loginAuthToken.getValue(), comment, propertyId);
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), new q(this, aVar, null)), androidx.view.w0.a(this));
    }

    public final void J0() {
        this.shouldCallApi = false;
    }

    public final void K(kq.a closeModal, kq.l lVar) {
        Object value;
        kotlin.jvm.internal.r.k(closeModal, "closeModal");
        if (((Map) this.selectedProperties.getValue()).isEmpty() || ((CharSequence) this.loginAuthToken.getValue()).length() == 0 || ((Number) this.activeCollectionId.getValue()).intValue() == -1) {
            return;
        }
        kotlinx.coroutines.flow.w1<Boolean> w1Var = this._showFullScreenLoader;
        do {
            value = w1Var.getValue();
            ((Boolean) value).getClass();
        } while (!w1Var.c(value, Boolean.TRUE));
        zi.a addPropertiesToCollection = this.useCases.getAddPropertiesToCollection();
        int intValue = ((Number) this.activeCollectionId.getValue()).intValue();
        kotlinx.coroutines.flow.k a10 = addPropertiesToCollection.a((String) this.loginAuthToken.getValue(), (Map) this.selectedProperties.getValue(), intValue);
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), new r(lVar, this, closeModal, null)), androidx.view.w0.a(this));
    }

    public final void K0(ProfilePropertyModel propertyInfo) {
        kotlin.jvm.internal.r.k(propertyInfo, "propertyInfo");
        this.propertyInfoToBeRemoved = propertyInfo;
    }

    public final Object L(kq.a aVar, eq.d dVar) {
        s sVar;
        int i8;
        q0 q0Var;
        int parseInt;
        if (dVar instanceof s) {
            sVar = (s) dVar;
            int i10 = sVar.label;
            if ((i10 & Integer.MIN_VALUE) != 0) {
                sVar.label = i10 - Integer.MIN_VALUE;
                Object obj = sVar.result;
                kotlin.coroutines.intrinsics.a aVar2 = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                i8 = sVar.label;
                if (i8 != 0) {
                    zp.u.b(obj);
                    kotlinx.coroutines.flow.k f8 = this.housingPrefStore.f(com.locon.core.data.local.datastore.k2.COLLECTION_COACHMARK_COUNT);
                    sVar.L$0 = this;
                    sVar.L$1 = aVar;
                    sVar.label = 1;
                    obj = kotlinx.coroutines.flow.m.u(f8, sVar);
                    if (obj != aVar2) {
                        q0Var = this;
                    }
                    return aVar2;
                }
                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;
                }
                aVar = (kq.a) sVar.L$1;
                q0Var = (q0) sVar.L$0;
                zp.u.b(obj);
                String str = (String) obj;
                parseInt = str == null ? Integer.parseInt(str) : 0;
                if (parseInt < 1) {
                    com.locon.core.data.o1.INSTANCE.getClass();
                    if (!((Boolean) com.locon.core.data.o1.W().getValue()).booleanValue() && ((CharSequence) q0Var._loginAuthToken.getValue()).length() > 0 && ((List) q0Var._allCollectionsList.getValue()).isEmpty()) {
                        aVar.invoke();
                        com.locon.core.data.o1.q1();
                        com.locon.core.data.local.datastore.o0 o0Var = q0Var.housingPrefStore;
                        com.locon.core.data.local.datastore.k2 k2Var = com.locon.core.data.local.datastore.k2.COLLECTION_COACHMARK_COUNT;
                        String valueOf = String.valueOf(parseInt + 1);
                        sVar.L$0 = null;
                        sVar.L$1 = null;
                        sVar.label = 2;
                    }
                }
                return zp.j0.INSTANCE;
            }
        }
        sVar = new s(this, dVar);
        Object obj2 = sVar.result;
        kotlin.coroutines.intrinsics.a aVar22 = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
        i8 = sVar.label;
        if (i8 != 0) {
        }
        String str2 = (String) obj2;
        if (str2 == null) {
        }
        if (parseInt < 1) {
        }
        return zp.j0.INSTANCE;
    }

    public final void L0(String id2, String type) {
        Object value;
        kotlin.jvm.internal.r.k(id2, "id");
        kotlin.jvm.internal.r.k(type, "type");
        LinkedHashMap t7 = kotlin.collections.t0.t((Map) this._selectedProperties.getValue());
        if (((Map) this.selectedProperties.getValue()).containsKey(id2)) {
            t7.remove(id2);
        } else {
            t7.put(id2, type);
        }
        kotlinx.coroutines.flow.w1<Map<String, String>> w1Var = this._selectedProperties;
        do {
            value = w1Var.getValue();
        } while (!w1Var.c(value, t7));
    }

    public final Object M(kq.a aVar, eq.d dVar) {
        t tVar;
        int i8;
        q0 q0Var;
        int parseInt;
        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 aVar2 = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                i8 = tVar.label;
                if (i8 != 0) {
                    zp.u.b(obj);
                    kotlinx.coroutines.flow.k f8 = this.housingPrefStore.f(com.locon.core.data.local.datastore.k2.COMMENT_COACHMARK_COUNT);
                    tVar.L$0 = this;
                    tVar.L$1 = aVar;
                    tVar.label = 1;
                    obj = kotlinx.coroutines.flow.m.u(f8, tVar);
                    if (obj != aVar2) {
                        q0Var = this;
                    }
                    return aVar2;
                }
                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;
                }
                aVar = (kq.a) tVar.L$1;
                q0Var = (q0) tVar.L$0;
                zp.u.b(obj);
                String str = (String) obj;
                parseInt = str == null ? Integer.parseInt(str) : 0;
                if (parseInt < 1) {
                    com.locon.core.data.o1.INSTANCE.getClass();
                    if (!((Boolean) com.locon.core.data.o1.X().getValue()).booleanValue() && ((CharSequence) q0Var._loginAuthToken.getValue()).length() > 0) {
                        aVar.invoke();
                        com.locon.core.data.o1.r1();
                        com.locon.core.data.local.datastore.o0 o0Var = q0Var.housingPrefStore;
                        com.locon.core.data.local.datastore.k2 k2Var = com.locon.core.data.local.datastore.k2.COMMENT_COACHMARK_COUNT;
                        String valueOf = String.valueOf(parseInt + 1);
                        tVar.L$0 = null;
                        tVar.L$1 = null;
                        tVar.label = 2;
                    }
                }
                return zp.j0.INSTANCE;
            }
        }
        tVar = new t(this, dVar);
        Object obj2 = tVar.result;
        kotlin.coroutines.intrinsics.a aVar22 = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
        i8 = tVar.label;
        if (i8 != 0) {
        }
        String str2 = (String) obj2;
        if (str2 == null) {
        }
        if (parseInt < 1) {
        }
        return zp.j0.INSTANCE;
    }

    public final void M0(Integer num) {
        Object value;
        int intValue = num != null ? num.intValue() : -1;
        kotlinx.coroutines.flow.w1<Integer> w1Var = this._activeCollectionId;
        do {
            value = w1Var.getValue();
            ((Number) value).intValue();
        } while (!w1Var.c(value, Integer.valueOf(intValue)));
    }

    public final Object N(kq.a aVar, eq.d dVar) {
        u uVar;
        int i8;
        q0 q0Var;
        int parseInt;
        if (dVar instanceof u) {
            uVar = (u) dVar;
            int i10 = uVar.label;
            if ((i10 & Integer.MIN_VALUE) != 0) {
                uVar.label = i10 - Integer.MIN_VALUE;
                Object obj = uVar.result;
                kotlin.coroutines.intrinsics.a aVar2 = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                i8 = uVar.label;
                if (i8 != 0) {
                    zp.u.b(obj);
                    kotlinx.coroutines.flow.k f8 = this.housingPrefStore.f(com.locon.core.data.local.datastore.k2.SEARCH_PARTNER_COACHMARK_COUNT);
                    uVar.L$0 = this;
                    uVar.L$1 = aVar;
                    uVar.label = 1;
                    obj = kotlinx.coroutines.flow.m.u(f8, uVar);
                    if (obj != aVar2) {
                        q0Var = this;
                    }
                    return aVar2;
                }
                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;
                }
                aVar = (kq.a) uVar.L$1;
                q0Var = (q0) uVar.L$0;
                zp.u.b(obj);
                String str = (String) obj;
                parseInt = str == null ? Integer.parseInt(str) : 0;
                if (parseInt < 1) {
                    com.locon.core.data.o1.INSTANCE.getClass();
                    if (!((Boolean) com.locon.core.data.o1.m0().getValue()).booleanValue() && ((CharSequence) q0Var._loginAuthToken.getValue()).length() > 0 && !((Boolean) q0Var._isMembersListLoading.getValue()).booleanValue()) {
                        aVar.invoke();
                        com.locon.core.data.o1.B1();
                        com.locon.core.data.local.datastore.o0 o0Var = q0Var.housingPrefStore;
                        com.locon.core.data.local.datastore.k2 k2Var = com.locon.core.data.local.datastore.k2.SEARCH_PARTNER_COACHMARK_COUNT;
                        String valueOf = String.valueOf(parseInt + 1);
                        uVar.L$0 = null;
                        uVar.L$1 = null;
                        uVar.label = 2;
                    }
                }
                return zp.j0.INSTANCE;
            }
        }
        uVar = new u(this, dVar);
        Object obj2 = uVar.result;
        kotlin.coroutines.intrinsics.a aVar22 = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
        i8 = uVar.label;
        if (i8 != 0) {
        }
        String str2 = (String) obj2;
        if (str2 == null) {
        }
        if (parseInt < 1) {
        }
        return zp.j0.INSTANCE;
    }

    public final void O(String collectionName, kq.a closeModal) {
        Object value;
        kotlin.jvm.internal.r.k(collectionName, "collectionName");
        kotlin.jvm.internal.r.k(closeModal, "closeModal");
        kotlinx.coroutines.flow.w1<Boolean> w1Var = this._showFullScreenLoader;
        do {
            value = w1Var.getValue();
            ((Boolean) value).getClass();
        } while (!w1Var.c(value, Boolean.TRUE));
        kotlinx.coroutines.flow.k a10 = this.useCases.getCreateCollectionUseCase().a(collectionName, (String) this.loginAuthToken.getValue());
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        com.locon.core.data.d0.c(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), new v(this, closeModal, null)), androidx.view.w0.a(this));
    }

    public final void P(kq.l lVar) {
        Object value;
        if (((CharSequence) this.loginAuthToken.getValue()).length() == 0 || ((Number) this.activeCollectionId.getValue()).intValue() == -1) {
            return;
        }
        kotlinx.coroutines.flow.w1<Boolean> w1Var = this._showFullScreenLoader;
        do {
            value = w1Var.getValue();
            ((Boolean) value).getClass();
        } while (!w1Var.c(value, Boolean.TRUE));
        kotlinx.coroutines.flow.k a10 = this.useCases.getDeleteCollectionUseCase().a(((Number) this.activeCollectionId.getValue()).intValue(), (String) this.loginAuthToken.getValue());
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), new w(this, lVar, null)), androidx.view.w0.a(this));
    }

    public final void Q(Integer num, boolean z5, kq.l lVar, kq.a closeModal) {
        Object value;
        kotlin.jvm.internal.r.k(closeModal, "closeModal");
        kotlinx.coroutines.flow.w1<Boolean> w1Var = this._showFullScreenLoader;
        do {
            value = w1Var.getValue();
            ((Boolean) value).getClass();
        } while (!w1Var.c(value, Boolean.TRUE));
        if (num == null || ((CharSequence) this.loginAuthToken.getValue()).length() <= 0) {
            return;
        }
        kotlinx.coroutines.flow.k a10 = this.useCases.getDeleteCollectionMemberUseCase().a(num.intValue(), (String) this.loginAuthToken.getValue());
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), new x(this, lVar, z5, closeModal, num, null)), androidx.view.w0.a(this));
    }

    public final void R(String collectionName, kq.a closeModal) {
        Object value;
        Object value2;
        kotlin.jvm.internal.r.k(collectionName, "collectionName");
        kotlin.jvm.internal.r.k(closeModal, "closeModal");
        SavedCollections T = T();
        Integer d5 = T != null ? T.d() : null;
        if (d5 == null || ((CharSequence) this.loginAuthToken.getValue()).length() == 0) {
            return;
        }
        Iterable iterable = (Iterable) this._allCollectionsList.getValue();
        if (!(iterable instanceof Collection) || !((Collection) iterable).isEmpty()) {
            Iterator it = iterable.iterator();
            while (it.hasNext()) {
                if (kotlin.jvm.internal.r.f(((SavedCollections) it.next()).getName(), collectionName)) {
                    kotlinx.coroutines.flow.w1<String> w1Var = this._createCollectionErrorMsg;
                    do {
                        value = w1Var.getValue();
                    } while (!w1Var.c(value, "Collection with same name already exists"));
                    return;
                }
            }
        }
        kotlinx.coroutines.flow.w1<Boolean> w1Var2 = this._showFullScreenLoader;
        do {
            value2 = w1Var2.getValue();
            ((Boolean) value2).getClass();
        } while (!w1Var2.c(value2, Boolean.TRUE));
        kotlinx.coroutines.flow.k a10 = this.useCases.getUpdateCollectionInfo().a(d5.intValue(), (String) this.loginAuthToken.getValue(), collectionName);
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), new y(this, closeModal, null)), androidx.view.w0.a(this));
    }

    public final void S() {
        this.shouldCallApi = true;
        a0();
    }

    public final SavedCollections T() {
        Object obj;
        Iterator it = ((Iterable) this._allCollectionsList.getValue()).iterator();
        while (true) {
            if (!it.hasNext()) {
                obj = null;
                break;
            }
            obj = it.next();
            Integer d5 = ((SavedCollections) obj).d();
            int intValue = ((Number) this.activeCollectionId.getValue()).intValue();
            if (d5 != null && d5.intValue() == intValue) {
                break;
            }
        }
        return (SavedCollections) obj;
    }

    public final kotlinx.coroutines.flow.p2 getActiveCollectionId() {
        return this.activeCollectionId;
    }

    public final kotlinx.coroutines.flow.p2 getActiveCollectionName() {
        return this.activeCollectionName;
    }

    public final kotlinx.coroutines.flow.p2 getAddCollectionCoordinates() {
        return this.addCollectionCoordinates;
    }

    public final kotlinx.coroutines.flow.p2 getAllCollectionsList() {
        return this.allCollectionsList;
    }

    public final void Y(String inviteCode, kq.a openJoinCollectionModal) {
        Object value;
        kotlin.jvm.internal.r.k(inviteCode, "inviteCode");
        kotlin.jvm.internal.r.k(openJoinCollectionModal, "openJoinCollectionModal");
        kotlinx.coroutines.flow.w1<Boolean> w1Var = this._showFullScreenLoader;
        do {
            value = w1Var.getValue();
            ((Boolean) value).getClass();
        } while (!w1Var.c(value, Boolean.TRUE));
        kotlinx.coroutines.flow.k a10 = this.useCases.getGetCollectionPreview().a(inviteCode);
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), new e0(this, openJoinCollectionModal, null)), androidx.view.w0.a(this));
    }

    public final kotlinx.coroutines.flow.p2 getCollectionPreviewData() {
        return this.collectionPreviewData;
    }

    public final void a0() {
        Object value;
        if (((CharSequence) this._loginAuthToken.getValue()).length() <= 0 || ((Number) this.activeCollectionId.getValue()).intValue() == -1) {
            return;
        }
        kotlinx.coroutines.flow.w1<Boolean> w1Var = this._isPropListLoading;
        do {
            value = w1Var.getValue();
            ((Boolean) value).getClass();
        } while (!w1Var.c(value, Boolean.TRUE));
        int pageCount = ((p) this._collectionPropertiesData.getValue()).getPageCount();
        kotlinx.coroutines.flow.k a10 = this.useCases.getGetCollectionProperties().a(((Number) this.activeCollectionId.getValue()).intValue(), pageCount, (String) this._loginAuthToken.getValue());
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        com.locon.core.data.d0.c(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), new f0(this, null)), androidx.view.w0.a(this));
    }

    public final kotlinx.coroutines.flow.p2 getCollectionPropertiesData() {
        return this.collectionPropertiesData;
    }

    public final String c0() {
        return !((Collection) this._membersList.getValue()).isEmpty() ? kotlin.collections.t.N((Iterable) this._membersList.getValue(), ToStringHelper.COMMA_SEPARATOR, null, null, new com.locon.profile.presentation.ui.screens.y(6), 30) : "";
    }

    public final kotlinx.coroutines.flow.p2 getCommentTextCoordinates() {
        return this.commentTextCoordinates;
    }

    public final kotlinx.coroutines.flow.p2 getCreateCollectionErrorMsg() {
        return this.createCollectionErrorMsg;
    }

    public final void f0() {
        String str;
        Object value;
        SavedCollections T = T();
        if (T == null || (str = T.getInviteCode()) == null) {
            str = "";
        }
        if (str.length() > 0) {
            ShareShortenedUrlData shareShortenedUrlData = new ShareShortenedUrlData("https://housing.com/user-profile/saved-properties?inviteCode=".concat(str), null, null, null, 14, null);
            kotlinx.coroutines.flow.w1<Boolean> w1Var = this._showFullScreenLoader;
            do {
                value = w1Var.getValue();
                ((Boolean) value).getClass();
            } while (!w1Var.c(value, Boolean.TRUE));
            kotlinx.coroutines.k.c(androidx.view.w0.a(this), null, null, new g0(this, shareShortenedUrlData, "Check out these selected properties.", "View and Add properties in the shared collections. Click to join the collection", T, null), 3);
        }
    }

    public final kotlinx.coroutines.flow.p2 getMembersList() {
        return this.membersList;
    }

    public final String h0() {
        return !((Collection) this._membersList.getValue()).isEmpty() ? kotlin.collections.t.N(((uq.b) this._membersList.getValue()).subList(1, ((uq.b) this._membersList.getValue()).size()), ToStringHelper.COMMA_SEPARATOR, null, null, new com.locon.profile.presentation.ui.screens.y(7), 30) : "";
    }

    public final String i0() {
        CollectionMembers collectionMembers;
        String userUuid;
        return (((Collection) this._membersList.getValue()).isEmpty() || (collectionMembers = (CollectionMembers) kotlin.collections.t.J(0, (List) this._membersList.getValue())) == null || (userUuid = collectionMembers.getUserUuid()) == null) ? "" : userUuid;
    }

    public final int getPrevCollectionsLength() {
        return this.prevCollectionsLength;
    }

    public final ProfilePropertyModel getPropertyInfoToBeRemoved() {
        return this.propertyInfoToBeRemoved;
    }

    public final kotlinx.coroutines.flow.p2 getSavedPropertiesForCollection() {
        return this.savedPropertiesForCollection;
    }

    public final void m0(List list) {
        Object value;
        kotlin.jvm.internal.r.k(list, "list");
        kotlinx.coroutines.flow.w1<Boolean> w1Var = this._isSavedPropertiesLoading;
        do {
            value = w1Var.getValue();
            ((Boolean) value).getClass();
        } while (!w1Var.c(value, Boolean.TRUE));
        kotlinx.coroutines.flow.k a10 = this.useCases.getGetSavedPropertiesForCollection().a(((Number) this.activeCollectionId.getValue()).intValue(), (String) this.loginAuthToken.getValue());
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), new h0(this, list, null)), androidx.view.w0.a(this));
    }

    public final kotlinx.coroutines.flow.p2 getSearchPartnerCoordinates() {
        return this.searchPartnerCoordinates;
    }

    public final kotlinx.coroutines.flow.p2 getSelectedProperties() {
        return this.selectedProperties;
    }

    public final kotlinx.coroutines.flow.p2 getShareUrl() {
        return this.shareUrl;
    }

    public final int q0(String id2) {
        kotlin.jvm.internal.r.k(id2, "id");
        return ((CollectionProperties) kotlin.collections.t0.e(id2, ((p) this.collectionPropertiesData.getValue()).getSharedPropertyIdsMapping())).getId();
    }

    public final boolean getShouldCallApi() {
        return this.shouldCallApi;
    }

    public final kotlinx.coroutines.flow.p2 getShowFullScreenLoader() {
        return this.showFullScreenLoader;
    }

    public final void t0(o event) {
        String createdBy;
        String createdBy2;
        String createdBy3;
        kotlin.jvm.internal.r.k(event, "event");
        LinkedHashMap l10 = kotlin.collections.t0.l(new zp.s("isLoggedIn", Boolean.valueOf(((CharSequence) this._loginAuthToken.getValue()).length() > 0)), new zp.s(AnalyticsAttribute.USER_ID_ATTRIBUTE, this.userUuid.getValue()));
        if (event instanceof o.r) {
            this.profileAnalytics.u0("saved_list_view", l10);
            return;
        }
        if (event instanceof o.b) {
            this.profileAnalytics.u0("saved_list_coach_view", l10);
            return;
        }
        if (event instanceof o.j) {
            this.profileAnalytics.u0("create_collection", l10);
            return;
        }
        if (event instanceof o.c) {
            l10.put("collectionId", ((o.c) event).getCollectionId());
            this.profileAnalytics.u0("new_collection", l10);
            return;
        }
        if (event instanceof o.m) {
            l10.put("collectionId", ((o.m) event).getCollectionId());
            l10.put("members", c0());
            if (!((p) this._collectionPropertiesData.getValue()).getPropertiesList().isEmpty()) {
                ProfilePropertyModel profilePropertyModel = (ProfilePropertyModel) ((p) this._collectionPropertiesData.getValue()).getPropertiesList().get(0);
                l10.put("isPaid", Boolean.valueOf(profilePropertyModel.getSerpDetailsModel().getSerpCrfModel().getIsPaid()));
                l10.put("serviceType", profilePropertyModel.getSerpDetailsModel().r());
            }
            this.profileAnalytics.u0("invite_sent", l10);
            return;
        }
        if (event instanceof o.n) {
            this.profileAnalytics.u0("list_invite_view", l10);
            return;
        }
        if (event instanceof o.l) {
            o.l lVar = (o.l) event;
            l10.put("collectionId", lVar.getCollectionId());
            l10.put("collectionOwner", lVar.getCreatedBy());
            this.profileAnalytics.u0("list_joined", l10);
            return;
        }
        String str = "";
        if (event instanceof o.C0710o) {
            SavedCollections T = T();
            if (T != null && (createdBy3 = T.getCreatedBy()) != null) {
                str = createdBy3;
            }
            l10.put("collectionOwner", str);
            l10.put("collectionId", ((o.C0710o) event).getCollectionId());
            l10.put("members", c0());
            if (!((p) this._collectionPropertiesData.getValue()).getPropertiesList().isEmpty()) {
                ProfilePropertyModel profilePropertyModel2 = (ProfilePropertyModel) ((p) this._collectionPropertiesData.getValue()).getPropertiesList().get(0);
                l10.put("isPaid", Boolean.valueOf(profilePropertyModel2.getSerpDetailsModel().getSerpCrfModel().getIsPaid()));
                l10.put("serviceType", profilePropertyModel2.getSerpDetailsModel().r());
            }
            this.profileAnalytics.u0("list_left", l10);
            return;
        }
        if (event instanceof o.a) {
            o.a aVar = (o.a) event;
            l10.put("propertyIds", kotlin.collections.t.N(aVar.getPropertyIds().keySet(), ToStringHelper.COMMA_SEPARATOR, null, null, null, 62));
            l10.put("collectionId", aVar.getCollectionId());
            l10.put("members", c0());
            this.profileAnalytics.u0("property_added", l10);
            return;
        }
        if (event instanceof o.q) {
            o.q qVar = (o.q) event;
            l10.put("propertyId", qVar.getPropertyId());
            l10.put("collectionId", qVar.getCollectionId());
            l10.put("members", c0());
            l10.put("serviceType", qVar.getServiceType());
            l10.put("isPaid", Boolean.valueOf(qVar.getIsPaid()));
            this.profileAnalytics.u0("property_remove", l10);
            return;
        }
        if (event instanceof o.s) {
            SavedCollections T2 = T();
            l10.put("collectionId", ((o.s) event).getCollectionId());
            if (T2 != null && (createdBy2 = T2.getCreatedBy()) != null) {
                str = createdBy2;
            }
            l10.put("collectionOwner", str);
            this.profileAnalytics.u0("switch_collection", l10);
            return;
        }
        if (event instanceof o.k) {
            l10.put("collectionId", ((o.k) event).getCollectionId());
            l10.put("members", c0());
            this.profileAnalytics.u0("del_collection", l10);
            return;
        }
        if (event instanceof o.p) {
            SavedCollections T3 = T();
            o.p pVar = (o.p) event;
            l10.put("collectionId", pVar.getCollectionId());
            l10.put("removedMemberId", Integer.valueOf(pVar.getMemberId()));
            if (T3 != null && (createdBy = T3.getCreatedBy()) != null) {
                str = createdBy;
            }
            l10.put("collectionOwner", str);
            this.profileAnalytics.u0("del_user", l10);
            return;
        }
        if (event instanceof o.g) {
            String i02 = i0();
            String h02 = h0();
            if (i02.length() > 0 && ((Number) this.activeCollectionId.getValue()).intValue() != -1) {
                l10.put("ownerUuid", i02);
            }
            if (h02.length() > 0 && ((Number) this.activeCollectionId.getValue()).intValue() != -1) {
                l10.put("membersUuid", h02);
            }
            this.profileAnalytics.t0("coachmark_seen", l10);
            return;
        }
        if (event instanceof o.f) {
            String i03 = i0();
            String h03 = h0();
            if (i03.length() > 0 && ((Number) this.activeCollectionId.getValue()).intValue() != -1) {
                l10.put("ownerUuid", i03);
            }
            if (h03.length() > 0 && ((Number) this.activeCollectionId.getValue()).intValue() != -1) {
                l10.put("membersUuid", h03);
            }
            this.profileAnalytics.t0("coachmark_click", l10);
            return;
        }
        if (event instanceof o.e) {
            String i04 = i0();
            String h04 = h0();
            if (i04.length() > 0 && ((Number) this.activeCollectionId.getValue()).intValue() != -1) {
                l10.put("ownerUuid", i04);
            }
            if (h04.length() > 0 && ((Number) this.activeCollectionId.getValue()).intValue() != -1) {
                l10.put("membersUuid", h04);
            }
            this.profileAnalytics.t0("click_comment", l10);
            return;
        }
        if (event instanceof o.h) {
            String i05 = i0();
            String h05 = h0();
            if (i05.length() > 0 && ((Number) this.activeCollectionId.getValue()).intValue() != -1) {
                l10.put("ownerUuid", i05);
            }
            if (h05.length() > 0 && ((Number) this.activeCollectionId.getValue()).intValue() != -1) {
                l10.put("membersUuid", h05);
            }
            this.profileAnalytics.t0("text_added", l10);
            return;
        }
        if (event instanceof o.d) {
            String i06 = i0();
            String h06 = h0();
            if (i06.length() > 0 && ((Number) this.activeCollectionId.getValue()).intValue() != -1) {
                l10.put("ownerUuid", i06);
            }
            if (h06.length() > 0 && ((Number) this.activeCollectionId.getValue()).intValue() != -1) {
                l10.put("membersUuid", h06);
            }
            this.profileAnalytics.t0("comment_added", l10);
            return;
        }
        if (!(event instanceof o.i)) {
            throw new zp.q();
        }
        String i07 = i0();
        String h07 = h0();
        if (i07.length() > 0 && ((Number) this.activeCollectionId.getValue()).intValue() != -1) {
            l10.put("ownerUuid", i07);
        }
        if (h07.length() > 0 && ((Number) this.activeCollectionId.getValue()).intValue() != -1) {
            l10.put("membersUuid", h07);
        }
        this.profileAnalytics.t0("comments_read", l10);
    }

    public final kotlinx.coroutines.flow.p2 getIsCollectionLoading() {
        return this.isCollectionLoading;
    }

    public final kotlinx.coroutines.flow.p2 getIsMembersListLoading() {
        return this.isMembersListLoading;
    }

    public final kotlinx.coroutines.flow.p2 getIsPropListLoading() {
        return this.isPropListLoading;
    }

    public final kotlinx.coroutines.flow.p2 getIsSavedPropertiesLoading() {
        return this.isSavedPropertiesLoading;
    }

    public final void y0(Integer num, kq.a closeModal) {
        Object value;
        kotlin.jvm.internal.r.k(closeModal, "closeModal");
        if (num != null) {
            kotlinx.coroutines.flow.w1<Boolean> w1Var = this._showFullScreenLoader;
            do {
                value = w1Var.getValue();
                ((Boolean) value).getClass();
            } while (!w1Var.c(value, Boolean.TRUE));
            kotlinx.coroutines.flow.k a10 = this.useCases.getJoinCollection().a(num.intValue(), (String) this.loginAuthToken.getValue());
            kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
            kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), new l0(this, num, closeModal, null)), androidx.view.w0.a(this));
        }
    }

    public final void z0(kq.a closeModal) {
        String str;
        Object value;
        PropertyInfoModels$PropertyDetailsModel serpDetailsModel;
        PropertyInfoModels$CrfModel serpCrfModel;
        kotlin.jvm.internal.r.k(closeModal, "closeModal");
        ProfilePropertyModel profilePropertyModel = this.propertyInfoToBeRemoved;
        if (profilePropertyModel == null || (str = profilePropertyModel.e()) == null) {
            str = "";
        }
        String str2 = str;
        if (str2.length() == 0 || ((CharSequence) this.loginAuthToken.getValue()).length() == 0) {
            return;
        }
        ProfilePropertyModel profilePropertyModel2 = this.propertyInfoToBeRemoved;
        boolean z5 = (profilePropertyModel2 == null || (serpDetailsModel = profilePropertyModel2.getSerpDetailsModel()) == null || (serpCrfModel = serpDetailsModel.getSerpCrfModel()) == null || !serpCrfModel.getIsPaid()) ? false : true;
        CollectionProperties collectionProperties = (CollectionProperties) kotlin.collections.t0.e(str2, ((p) this.collectionPropertiesData.getValue()).getSharedPropertyIdsMapping());
        int id2 = collectionProperties.getId();
        kotlinx.coroutines.flow.w1<Boolean> w1Var = this._showFullScreenLoader;
        do {
            value = w1Var.getValue();
            ((Boolean) value).getClass();
        } while (!w1Var.c(value, Boolean.TRUE));
        kotlinx.coroutines.flow.k a10 = this.useCases.getRemovePropertyFromCollection().a(id2, (String) this.loginAuthToken.getValue());
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), new p0(this, closeModal, str2, collectionProperties, z5, null)), androidx.view.w0.a(this));
    }
}