导航菜单

页面标题

页面副标题

Housing v14.7.8 - g9.java 源代码

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

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


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

import android.content.Context;
import androidx.compose.runtime.internal.StabilityInferred;
import cj.a;
import com.locon.core.data.CtaConfigDetail;
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.DroppedLead;
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.core.errorReporter.f;
import com.locon.crf.domain.usecases.CrfUseCases;
import com.locon.domain.usecases.SerpUseCases;
import com.locon.profile.demand.model.CollectionPropertiesModel;
import com.locon.profile.demand.model.MyActivityTabListModel;
import com.locon.profile.demand.model.ProfilePropertiesModel;
import com.locon.profile.demand.model.ProfilePropertyModel;
import com.locon.profile.demand.usecases.SavedCollectionsUseCases;
import com.locon.profile.presentation.data.PropertyInfoForComments;
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.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import kotlin.Lazy;
import kotlin.Metadata;
import kotlin.jvm.internal.SourceDebugExtension;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import sr.a;

@StabilityInferred(parameters = 0)
@HiltViewModel
@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\u0002\b\u0013\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010$\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u000e\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\f\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\b\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0007\u0018\u00002\u00020\u0001B{\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\u0006\u0010\u0011\u001a\u00020\u0010\u0012\b\b\u0001\u0010\u0013\u001a\u00020\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¢\u0006\u0004\b\u001e\u0010\u001fR\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010 R\u0014\u0010\u0005\u001a\u00020\u00048\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010!R\u0014\u0010\u0007\u001a\u00020\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0007\u0010\"R\u0014\u0010\t\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010#R\u0014\u0010\u000b\u001a\u00020\n8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010$R\u0014\u0010\r\u001a\u00020\f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\r\u0010%R\u0017\u0010\u000f\u001a\u00020\u000e8\u0006¢\u0006\f\n\u0004\b\u000f\u0010&\u001a\u0004\b'\u0010(R\u0014\u0010\u0011\u001a\u00020\u00108\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0011\u0010)R\u0014\u0010\u0013\u001a\u00020\u00128\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010*R\u0014\u0010\u0015\u001a\u00020\u00148\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0015\u0010+R\u0014\u0010\u0017\u001a\u00020\u00168\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0017\u0010,R\u0014\u0010\u0019\u001a\u00020\u00188\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0019\u0010-R\u0014\u0010\u001b\u001a\u00020\u001a8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001b\u0010.R\u0014\u0010\u001d\u001a\u00020\u001c8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001d\u0010/R\u001a\u00102\u001a\b\u0012\u0004\u0012\u000201008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b2\u00103R\u001d\u00105\u001a\b\u0012\u0004\u0012\u000201048\u0006¢\u0006\f\n\u0004\b5\u00106\u001a\u0004\b7\u00108R\u001b\u0010>\u001a\u0002098BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b:\u0010;\u001a\u0004\b<\u0010=R\u001a\u0010?\u001a\b\u0012\u0004\u0012\u000201008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b?\u00103R\u001d\u0010@\u001a\b\u0012\u0004\u0012\u000201048\u0006¢\u0006\f\n\u0004\b@\u00106\u001a\u0004\bA\u00108R \u0010D\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020C0B008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bD\u00103R#\u0010E\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020C0B048\u0006¢\u0006\f\n\u0004\bE\u00106\u001a\u0004\bF\u00108R&\u0010H\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u000201\u0012\u0004\u0012\u0002010G008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bH\u00103R)\u0010I\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u000201\u0012\u0004\u0012\u0002010G048\u0006¢\u0006\f\n\u0004\bI\u00106\u001a\u0004\bJ\u00108R\u001a\u0010L\u001a\b\u0012\u0004\u0012\u00020K008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bL\u00103R\u001d\u0010M\u001a\b\u0012\u0004\u0012\u00020K048\u0006¢\u0006\f\n\u0004\bM\u00106\u001a\u0004\bN\u00108R\u001a\u0010O\u001a\b\u0012\u0004\u0012\u000201008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bO\u00103R\u001d\u0010P\u001a\b\u0012\u0004\u0012\u000201048\u0006¢\u0006\f\n\u0004\bP\u00106\u001a\u0004\bQ\u00108R\u001a\u0010R\u001a\b\u0012\u0004\u0012\u00020K008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bR\u00103R\u001d\u0010S\u001a\b\u0012\u0004\u0012\u00020K048\u0006¢\u0006\f\n\u0004\bS\u00106\u001a\u0004\bT\u00108R\u001a\u0010V\u001a\b\u0012\u0004\u0012\u00020U008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bV\u00103R\u001d\u0010W\u001a\b\u0012\u0004\u0012\u00020U048\u0006¢\u0006\f\n\u0004\bW\u00106\u001a\u0004\bX\u00108R\u001a\u0010Z\u001a\b\u0012\u0004\u0012\u00020Y008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bZ\u00103R\u001d\u0010[\u001a\b\u0012\u0004\u0012\u00020Y048\u0006¢\u0006\f\n\u0004\b[\u00106\u001a\u0004\b\\\u00108R \u0010^\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020]0B008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b^\u00103R#\u0010_\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020]0B048\u0006¢\u0006\f\n\u0004\b_\u00106\u001a\u0004\b`\u00108R\u001a\u0010a\u001a\b\u0012\u0004\u0012\u000201008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\ba\u00103R\u001a\u0010c\u001a\b\u0012\u0004\u0012\u00020b008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bc\u00103R\u001d\u0010d\u001a\b\u0012\u0004\u0012\u00020b048\u0006¢\u0006\f\n\u0004\bd\u00106\u001a\u0004\be\u00108R \u0010h\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020g0f008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bh\u00103R#\u0010i\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020g0f048\u0006¢\u0006\f\n\u0004\bi\u00106\u001a\u0004\bj\u00108R\u001a\u0010k\u001a\b\u0012\u0004\u0012\u00020b008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bk\u00103R\u001d\u0010l\u001a\b\u0012\u0004\u0012\u00020b048\u0006¢\u0006\f\n\u0004\bl\u00106\u001a\u0004\bm\u00108R\"\u0010n\u001a\u00020b8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bn\u0010o\u001a\u0004\bp\u0010q\"\u0004\br\u0010sR\u001c\u0010t\u001a\b\u0012\u0004\u0012\u00020]0B8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bt\u0010uR\u001a\u0010w\u001a\b\u0012\u0004\u0012\u00020v008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bw\u00103R\u001d\u0010x\u001a\b\u0012\u0004\u0012\u00020v048\u0006¢\u0006\f\n\u0004\bx\u00106\u001a\u0004\by\u00108R\u001a\u0010{\u001a\b\u0012\u0004\u0012\u00020z008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b{\u00103R\u001d\u0010|\u001a\b\u0012\u0004\u0012\u00020z048\u0006¢\u0006\f\n\u0004\b|\u00106\u001a\u0004\b}\u00108R\u001a\u0010~\u001a\b\u0012\u0004\u0012\u00020b008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b~\u00103R\u001e\u0010\u007f\u001a\b\u0012\u0004\u0012\u00020b048\u0006¢\u0006\r\n\u0004\b\u007f\u00106\u001a\u0005\b\u0080\u0001\u00108R\u001c\u0010\u0081\u0001\u001a\b\u0012\u0004\u0012\u00020b008\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\u0081\u0001\u00103R \u0010\u0082\u0001\u001a\b\u0012\u0004\u0012\u00020b048\u0006¢\u0006\u000e\n\u0005\b\u0082\u0001\u00106\u001a\u0005\b\u0083\u0001\u00108R\u001c\u0010\u0084\u0001\u001a\b\u0012\u0004\u0012\u00020b008\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\u0084\u0001\u00103R \u0010\u0085\u0001\u001a\b\u0012\u0004\u0012\u00020b048\u0006¢\u0006\u000e\n\u0005\b\u0085\u0001\u00106\u001a\u0005\b\u0086\u0001\u00108RF\u0010\u0089\u0001\u001a2\u0012.\u0012,\u0012\u0004\u0012\u000201\u0012\n\u0012\b\u0012\u0004\u0012\u0002010B0\u0087\u0001j\u0015\u0012\u0004\u0012\u000201\u0012\n\u0012\b\u0012\u0004\u0012\u0002010B`\u0088\u0001008\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\u0089\u0001\u00103RJ\u0010\u008a\u0001\u001a2\u0012.\u0012,\u0012\u0004\u0012\u000201\u0012\n\u0012\b\u0012\u0004\u0012\u0002010B0\u0087\u0001j\u0015\u0012\u0004\u0012\u000201\u0012\n\u0012\b\u0012\u0004\u0012\u0002010B`\u0088\u0001048\u0006¢\u0006\u000e\n\u0005\b\u008a\u0001\u00106\u001a\u0005\b\u008b\u0001\u00108R\u001d\u0010\u008d\u0001\u001a\t\u0012\u0005\u0012\u00030\u008c\u0001008\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\u008d\u0001\u00103R!\u0010\u008e\u0001\u001a\t\u0012\u0005\u0012\u00030\u008c\u0001048\u0006¢\u0006\u000e\n\u0005\b\u008e\u0001\u00106\u001a\u0005\b\u008f\u0001\u00108R\u001c\u0010\u0090\u0001\u001a\b\u0012\u0004\u0012\u00020b008\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b\u0090\u0001\u00103R \u0010\u0091\u0001\u001a\b\u0012\u0004\u0012\u00020b048\u0006¢\u0006\u000e\n\u0005\b\u0091\u0001\u00106\u001a\u0005\b\u0092\u0001\u00108R)\u0010\u0093\u0001\u001a\u00020K8\u0006@\u0006X\u0086\u000e¢\u0006\u0018\n\u0006\b\u0093\u0001\u0010\u0094\u0001\u001a\u0006\b\u0095\u0001\u0010\u0096\u0001\"\u0006\b\u0097\u0001\u0010\u0098\u0001R\u001a\u0010\u009a\u0001\u001a\u00030\u0099\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b\u009a\u0001\u0010\u009b\u0001R+\u0010\u009c\u0001\u001a\u0004\u0018\u00010]8\u0006@\u0006X\u0086\u000e¢\u0006\u0018\n\u0006\b\u009c\u0001\u0010\u009d\u0001\u001a\u0006\b\u009e\u0001\u0010\u009f\u0001\"\u0006\b \u0001\u0010¡\u0001R#\u0010£\u0001\u001a\u000f\u0012\u000b\u0012\t\u0012\u0005\u0012\u00030¢\u00010B008\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b£\u0001\u00103R'\u0010¤\u0001\u001a\u000f\u0012\u000b\u0012\t\u0012\u0005\u0012\u00030¢\u00010B048\u0006¢\u0006\u000e\n\u0005\b¤\u0001\u00106\u001a\u0005\b¥\u0001\u00108R\u001c\u0010¦\u0001\u001a\b\u0012\u0004\u0012\u000201008\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b¦\u0001\u00103R \u0010§\u0001\u001a\b\u0012\u0004\u0012\u000201048\u0006¢\u0006\u000e\n\u0005\b§\u0001\u00106\u001a\u0005\b¨\u0001\u00108R\u001c\u0010©\u0001\u001a\b\u0012\u0004\u0012\u000201008\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b©\u0001\u00103R \u0010ª\u0001\u001a\b\u0012\u0004\u0012\u000201048\u0006¢\u0006\u000e\n\u0005\bª\u0001\u00106\u001a\u0005\b«\u0001\u00108R\u0019\u0010¬\u0001\u001a\u00020K8\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b¬\u0001\u0010\u0094\u0001¨\u0006\u00ad\u0001"}, d2 = {"Lcom/locon/profile/presentation/ui/viewmodels/g9;", "Landroidx/lifecycle/v0;", "Lcom/locon/profile/demand/usecases/SavedCollectionsUseCases;", "useCases", "Lcom/locon/profile/demand/usecases/a1;", "profileUseCases", "Lcom/locon/core/domain/c;", "favoriteCommonUseCase", "Lcom/locon/crf/domain/usecases/CrfUseCases;", "crfUseCases", "Lcom/locon/core/data/m1;", "secureIdManager", "Lcom/locon/domain/usecases/SerpUseCases;", "serpUseCases", "Landroidx/lifecycle/i0;", "savedStateHandle", "Lcom/locon/profile/data/analytics/a2;", "profileAnalytics", "Landroid/content/Context;", "appContext", "Lcom/locon/coreUI/utils/b;", "agentContactManager", "Lcom/locon/core/data/remote/firebase/remoteconfig/h;", "remoteConfigRepository", "Lcom/locon/core/data/local/datastore/o0;", "prefStore", "Lcom/locon/core/utils/x;", "npHomePageNudgeUtils", "Lcom/locon/core/errorReporter/k;", "nonFatalSendNonFatalExceptionByType", "<init>", "(Lcom/locon/profile/demand/usecases/SavedCollectionsUseCases;Lcom/locon/profile/demand/usecases/a1;Lcom/locon/core/domain/c;Lcom/locon/crf/domain/usecases/CrfUseCases;Lcom/locon/core/data/m1;Lcom/locon/domain/usecases/SerpUseCases;Landroidx/lifecycle/i0;Lcom/locon/profile/data/analytics/a2;Landroid/content/Context;Lcom/locon/coreUI/utils/b;Lcom/locon/core/data/remote/firebase/remoteconfig/h;Lcom/locon/core/data/local/datastore/o0;Lcom/locon/core/utils/x;Lcom/locon/core/errorReporter/k;)V", "Lcom/locon/profile/demand/usecases/SavedCollectionsUseCases;", "Lcom/locon/profile/demand/usecases/a1;", "Lcom/locon/core/domain/c;", "Lcom/locon/crf/domain/usecases/CrfUseCases;", "Lcom/locon/core/data/m1;", "Lcom/locon/domain/usecases/SerpUseCases;", "Landroidx/lifecycle/i0;", "getSavedStateHandle", "()Landroidx/lifecycle/i0;", "Lcom/locon/profile/data/analytics/a2;", "Landroid/content/Context;", "Lcom/locon/coreUI/utils/b;", "Lcom/locon/core/data/remote/firebase/remoteconfig/h;", "Lcom/locon/core/data/local/datastore/o0;", "Lcom/locon/core/utils/x;", "Lcom/locon/core/errorReporter/k;", "Lkotlinx/coroutines/flow/w1;", "", "_loginAuthToken", "Lkotlinx/coroutines/flow/w1;", "Lkotlinx/coroutines/flow/p2;", "loginAuthToken", "Lkotlinx/coroutines/flow/p2;", "p0", "()Lkotlinx/coroutines/flow/p2;", "Lcom/locon/crf/presentation/ui/handlers/f0;", "previousLeadHandler$delegate", "Lkotlin/Lazy;", "t0", "()Lcom/locon/crf/presentation/ui/handlers/f0;", "previousLeadHandler", "_createCollectionErrorMsg", "createCollectionErrorMsg", "j0", "", "Lcom/locon/core/data/sharedmodels/DroppedLead;", "_leadDroppedProperties", "leadDroppedProperties", "o0", "", "_selectedProperties", "selectedProperties", "A0", "", "_currentCollectionId", "currentCollectionId", "l0", "_collectionName", "collectionName", "e0", "_collectionTotalListingCount", "collectionTotalListingCount", "h0", "Lcom/locon/core/data/CtaConfigDetail;", "_ctaConfigDetail", "ctaConfigDetail", "k0", "Lcom/locon/profile/presentation/ui/viewmodels/p;", "_collectionPropertiesData", "collectionPropertiesData", "g0", "Lcom/locon/profile/demand/model/ProfilePropertyModel;", "_savedPropertiesForCollection", "savedPropertiesForCollection", "y0", "userUuid", "", "_isMembersListLoading", "isMembersListLoading", "K0", "Luq/b;", "Lcom/locon/core/data/sharedmodels/CollectionMembers;", "_membersList", "membersList", "q0", "_isPropListLoading", "isPropListLoading", "L0", "shouldCallApi", "Z", "D0", "()Z", "V0", "(Z)V", "temporaryAPIResponse", "Ljava/util/List;", "Lti/b;", "_bottomSheetSource", "bottomSheetSource", "d0", "Lcom/locon/core/domain/login/model/UserDetailsModel;", "_userDetailsState", "userDetailsState", "G0", "_isSavedPropertiesLoading", "isSavedPropertiesLoading", "M0", "_showFullScreenLoader", "showFullScreenLoader", "E0", "_isCollectionRemoved", "isCollectionRemoved", "J0", "Ljava/util/HashMap;", "Lkotlin/collections/HashMap;", "_favoriteProperties", "favoriteProperties", "m0", "Lcom/locon/profile/demand/model/MyActivityTabListModel;", "_savedProperties", "savedProperties", "w0", "_shouldFetchUserSavedPropertiesData", "shouldFetchUserSavedPropertiesData", "getShouldFetchUserSavedPropertiesData", "savedPropertiesCount", "I", "x0", "()I", "U0", "(I)V", "Lcom/locon/profile/presentation/data/PropertyInfoForComments;", "commentedPropertyInfo", "Lcom/locon/profile/presentation/data/PropertyInfoForComments;", "propertyInfoToBeRemoved", "Lcom/locon/profile/demand/model/ProfilePropertyModel;", "v0", "()Lcom/locon/profile/demand/model/ProfilePropertyModel;", "setPropertyInfoToBeRemoved", "(Lcom/locon/profile/demand/model/ProfilePropertyModel;)V", "Lcom/locon/core/data/sharedmodels/SavedCollections;", "_allCollectionsList", "allCollectionsList", "c0", "_shareUrl", "shareUrl", "B0", "_toastMessage", "toastMessage", "getToastMessage", "numberOfAPICallsLeft", "presentation_gammaRelease"}, k = 1, mv = {2, 0, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nUserCollectionViewModel.kt\nKotlin\n*S Kotlin\n*F\n+ 1 UserCollectionViewModel.kt\ncom/locon/profile/presentation/ui/viewmodels/UserCollectionViewModel\n+ 2 StateFlow.kt\nkotlinx/coroutines/flow/StateFlowKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 5 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 6 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 7 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n*L\n1#1,1349:1\n230#2,5:1350\n230#2,5:1355\n230#2,5:1360\n230#2,5:1365\n230#2,5:1370\n230#2,5:1375\n230#2,5:1380\n230#2,5:1393\n230#2,5:1401\n230#2,5:1406\n230#2,5:1411\n230#2,5:1470\n230#2,5:1475\n230#2,5:1480\n230#2,5:1485\n230#2,5:1490\n230#2,5:1507\n230#2,5:1512\n230#2,5:1517\n230#2,5:1522\n230#2,5:1527\n230#2,5:1537\n1#3:1385\n1#3:1442\n1#3:1467\n1563#4:1386\n1634#4,3:1387\n774#4:1390\n865#4,2:1391\n1761#4,3:1398\n1617#4,9:1416\n1869#4:1425\n3307#4,10:1426\n1869#4,2:1436\n1563#4:1438\n1634#4,3:1439\n1870#4:1443\n1626#4:1444\n1617#4,9:1445\n1869#4:1454\n3307#4,10:1455\n1869#4,2:1465\n1870#4:1468\n1626#4:1469\n1208#4,2:1495\n1236#4,4:1497\n1208#4,2:1501\n1236#4,4:1503\n17#5:1532\n19#5:1536\n46#6:1533\n51#6:1535\n105#7:1534\n*S KotlinDebug\n*F\n+ 1 UserCollectionViewModel.kt\ncom/locon/profile/presentation/ui/viewmodels/UserCollectionViewModel\n*L\n207#1:1350,5\n211#1:1355,5\n214#1:1360,5\n222#1:1365,5\n235#1:1370,5\n239#1:1375,5\n243#1:1380,5\n403#1:1393,5\n416#1:1401,5\n419#1:1406,5\n521#1:1411,5\n714#1:1470,5\n731#1:1475,5\n758#1:1480,5\n824#1:1485,5\n830#1:1490,5\n933#1:1507,5\n950#1:1512,5\n979#1:1517,5\n1005#1:1522,5\n1138#1:1527,5\n1201#1:1537,5\n561#1:1442\n653#1:1467\n290#1:1386\n290#1:1387,3\n290#1:1390\n290#1:1391,2\n412#1:1398,3\n561#1:1416,9\n561#1:1425\n564#1:1426,10\n632#1:1436,2\n644#1:1438\n644#1:1439,3\n561#1:1443\n561#1:1444\n653#1:1445,9\n653#1:1454\n655#1:1455,10\n698#1:1465,2\n653#1:1468\n653#1:1469\n918#1:1495,2\n918#1:1497,4\n919#1:1501,2\n919#1:1503,4\n1143#1:1532\n1143#1:1536\n1143#1:1533\n1143#1:1535\n1143#1:1534\n*E\n"})
public final class g9 extends androidx.view.v0 {
    public static final int $stable = 8;

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

    @NotNull
    private final kotlinx.coroutines.flow.w1<ti.b> _bottomSheetSource;

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

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

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

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

    @NotNull
    private final kotlinx.coroutines.flow.w1<CtaConfigDetail> _ctaConfigDetail;

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

    @NotNull
    private final kotlinx.coroutines.flow.w1<HashMap<String, List<String>>> _favoriteProperties;

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

    @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<List<DroppedLead>> _leadDroppedProperties;

    @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<MyActivityTabListModel> _savedProperties;

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

    @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> _shouldFetchUserSavedPropertiesData;

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

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

    @NotNull
    private final kotlinx.coroutines.flow.w1<UserDetailsModel> _userDetailsState;

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

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

    @NotNull
    private final Context appContext;

    @NotNull
    private final kotlinx.coroutines.flow.p2<ti.b> bottomSheetSource;

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

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

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

    @NotNull
    private PropertyInfoForComments commentedPropertyInfo;

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

    @NotNull
    private final CrfUseCases crfUseCases;

    @NotNull
    private final kotlinx.coroutines.flow.p2<CtaConfigDetail> ctaConfigDetail;

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

    @NotNull
    private final com.locon.core.domain.c favoriteCommonUseCase;

    @NotNull
    private final kotlinx.coroutines.flow.p2<HashMap<String, List<String>>> favoriteProperties;

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

    @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<List<DroppedLead>> leadDroppedProperties;

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

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

    @NotNull
    private final com.locon.core.errorReporter.k nonFatalSendNonFatalExceptionByType;

    @NotNull
    private final com.locon.core.utils.x npHomePageNudgeUtils;
    private int numberOfAPICallsLeft;

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

    @NotNull
    private final Lazy previousLeadHandler;

    @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 com.locon.core.data.remote.firebase.remoteconfig.h remoteConfigRepository;

    @NotNull
    private final kotlinx.coroutines.flow.p2<MyActivityTabListModel> savedProperties;
    private int savedPropertiesCount;

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

    @NotNull
    private final androidx.view.i0 savedStateHandle;

    @NotNull
    private final com.locon.core.data.m1 secureIdManager;

    @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;

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

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

    @NotNull
    private List<ProfilePropertyModel> temporaryAPIResponse;

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

    @NotNull
    private final SavedCollectionsUseCases useCases;

    @NotNull
    private final kotlinx.coroutines.flow.p2<UserDetailsModel> userDetailsState;

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

    @Inject
    public g9(@NotNull SavedCollectionsUseCases useCases, @NotNull com.locon.profile.demand.usecases.a1 profileUseCases, @NotNull com.locon.core.domain.c favoriteCommonUseCase, @NotNull CrfUseCases crfUseCases, @NotNull com.locon.core.data.m1 secureIdManager, @NotNull SerpUseCases serpUseCases, @NotNull androidx.view.i0 savedStateHandle, @NotNull com.locon.profile.data.analytics.a2 profileAnalytics, @ApplicationContext @NotNull Context appContext, @NotNull com.locon.coreUI.utils.b agentContactManager, @NotNull com.locon.core.data.remote.firebase.remoteconfig.h remoteConfigRepository, @NotNull com.locon.core.data.local.datastore.o0 prefStore, @NotNull com.locon.core.utils.x npHomePageNudgeUtils, @NotNull com.locon.core.errorReporter.k nonFatalSendNonFatalExceptionByType) {
        MyActivityTabListModel myActivityTabListModel;
        PropertyInfoForComments propertyInfoForComments;
        kotlin.jvm.internal.r.k(useCases, "useCases");
        kotlin.jvm.internal.r.k(profileUseCases, "profileUseCases");
        kotlin.jvm.internal.r.k(favoriteCommonUseCase, "favoriteCommonUseCase");
        kotlin.jvm.internal.r.k(crfUseCases, "crfUseCases");
        kotlin.jvm.internal.r.k(secureIdManager, "secureIdManager");
        kotlin.jvm.internal.r.k(serpUseCases, "serpUseCases");
        kotlin.jvm.internal.r.k(savedStateHandle, "savedStateHandle");
        kotlin.jvm.internal.r.k(profileAnalytics, "profileAnalytics");
        kotlin.jvm.internal.r.k(appContext, "appContext");
        kotlin.jvm.internal.r.k(agentContactManager, "agentContactManager");
        kotlin.jvm.internal.r.k(remoteConfigRepository, "remoteConfigRepository");
        kotlin.jvm.internal.r.k(prefStore, "prefStore");
        kotlin.jvm.internal.r.k(npHomePageNudgeUtils, "npHomePageNudgeUtils");
        kotlin.jvm.internal.r.k(nonFatalSendNonFatalExceptionByType, "nonFatalSendNonFatalExceptionByType");
        this.useCases = useCases;
        this.profileUseCases = profileUseCases;
        this.favoriteCommonUseCase = favoriteCommonUseCase;
        this.crfUseCases = crfUseCases;
        this.secureIdManager = secureIdManager;
        this.serpUseCases = serpUseCases;
        this.savedStateHandle = savedStateHandle;
        this.profileAnalytics = profileAnalytics;
        this.appContext = appContext;
        this.agentContactManager = agentContactManager;
        this.remoteConfigRepository = remoteConfigRepository;
        this.prefStore = prefStore;
        this.npHomePageNudgeUtils = npHomePageNudgeUtils;
        this.nonFatalSendNonFatalExceptionByType = nonFatalSendNonFatalExceptionByType;
        kotlinx.coroutines.flow.w1<String> a10 = kotlinx.coroutines.flow.s2.a("");
        this._loginAuthToken = a10;
        this.loginAuthToken = kotlinx.coroutines.flow.m.b(a10);
        this.previousLeadHandler = zp.m.a(new l1(this, 4));
        kotlinx.coroutines.flow.w1<String> a11 = kotlinx.coroutines.flow.s2.a("");
        this._createCollectionErrorMsg = a11;
        this.createCollectionErrorMsg = kotlinx.coroutines.flow.m.b(a11);
        kotlin.collections.g0 g0Var = kotlin.collections.g0.INSTANCE;
        kotlinx.coroutines.flow.w1<List<DroppedLead>> a12 = kotlinx.coroutines.flow.s2.a(g0Var);
        this._leadDroppedProperties = a12;
        this.leadDroppedProperties = kotlinx.coroutines.flow.m.b(a12);
        kotlinx.coroutines.flow.w1<Map<String, String>> a13 = kotlinx.coroutines.flow.s2.a(kotlin.collections.t0.d());
        this._selectedProperties = a13;
        this.selectedProperties = kotlinx.coroutines.flow.m.b(a13);
        kotlinx.coroutines.flow.w1<Integer> a14 = kotlinx.coroutines.flow.s2.a(-1);
        this._currentCollectionId = a14;
        this.currentCollectionId = kotlinx.coroutines.flow.m.b(a14);
        kotlinx.coroutines.flow.w1<String> a15 = kotlinx.coroutines.flow.s2.a("");
        this._collectionName = a15;
        this.collectionName = kotlinx.coroutines.flow.m.b(a15);
        kotlinx.coroutines.flow.w1<Integer> a16 = kotlinx.coroutines.flow.s2.a(-1);
        this._collectionTotalListingCount = a16;
        this.collectionTotalListingCount = kotlinx.coroutines.flow.m.b(a16);
        kotlinx.coroutines.flow.w1<CtaConfigDetail> a17 = kotlinx.coroutines.flow.s2.a(new CtaConfigDetail(null, null, false, false, false, false, false, 127, null));
        this._ctaConfigDetail = a17;
        this.ctaConfigDetail = kotlinx.coroutines.flow.m.b(a17);
        kotlinx.coroutines.flow.w1<p> a18 = kotlinx.coroutines.flow.s2.a(new p(0, false, null, null, 15, null));
        this._collectionPropertiesData = a18;
        this.collectionPropertiesData = kotlinx.coroutines.flow.m.b(a18);
        kotlinx.coroutines.flow.w1<List<ProfilePropertyModel>> a19 = kotlinx.coroutines.flow.s2.a(g0Var);
        this._savedPropertiesForCollection = a19;
        this.savedPropertiesForCollection = kotlinx.coroutines.flow.m.b(a19);
        this.userUuid = kotlinx.coroutines.flow.s2.a("");
        Boolean bool = Boolean.FALSE;
        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<uq.b<CollectionMembers>> a21 = kotlinx.coroutines.flow.s2.a(uq.a.b(g0Var));
        this._membersList = a21;
        this.membersList = kotlinx.coroutines.flow.m.b(a21);
        kotlinx.coroutines.flow.w1<Boolean> a22 = kotlinx.coroutines.flow.s2.a(bool);
        this._isPropListLoading = a22;
        this.isPropListLoading = kotlinx.coroutines.flow.m.b(a22);
        this.temporaryAPIResponse = g0Var;
        kotlinx.coroutines.flow.w1<ti.b> a23 = kotlinx.coroutines.flow.s2.a(ti.b.NONE);
        this._bottomSheetSource = a23;
        this.bottomSheetSource = kotlinx.coroutines.flow.m.b(a23);
        kotlinx.coroutines.flow.w1<UserDetailsModel> a24 = kotlinx.coroutines.flow.s2.a(new UserDetailsModel(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, -1, 262143, null));
        this._userDetailsState = a24;
        this.userDetailsState = kotlinx.coroutines.flow.m.b(a24);
        kotlinx.coroutines.flow.w1<Boolean> a25 = kotlinx.coroutines.flow.s2.a(bool);
        this._isSavedPropertiesLoading = a25;
        this.isSavedPropertiesLoading = kotlinx.coroutines.flow.m.b(a25);
        kotlinx.coroutines.flow.w1<Boolean> a26 = kotlinx.coroutines.flow.s2.a(bool);
        this._showFullScreenLoader = a26;
        this.showFullScreenLoader = kotlinx.coroutines.flow.m.b(a26);
        kotlinx.coroutines.flow.w1<Boolean> a27 = kotlinx.coroutines.flow.s2.a(bool);
        this._isCollectionRemoved = a27;
        this.isCollectionRemoved = kotlinx.coroutines.flow.m.b(a27);
        kotlinx.coroutines.flow.w1<HashMap<String, List<String>>> a28 = kotlinx.coroutines.flow.s2.a(new HashMap());
        this._favoriteProperties = a28;
        this.favoriteProperties = kotlinx.coroutines.flow.m.b(a28);
        MyActivityTabListModel.INSTANCE.getClass();
        myActivityTabListModel = MyActivityTabListModel.empty;
        kotlinx.coroutines.flow.w1<MyActivityTabListModel> a29 = kotlinx.coroutines.flow.s2.a(myActivityTabListModel);
        this._savedProperties = a29;
        this.savedProperties = kotlinx.coroutines.flow.m.b(a29);
        kotlinx.coroutines.flow.w1<Boolean> a30 = kotlinx.coroutines.flow.s2.a(bool);
        this._shouldFetchUserSavedPropertiesData = a30;
        this.shouldFetchUserSavedPropertiesData = kotlinx.coroutines.flow.m.b(a30);
        PropertyInfoForComments.INSTANCE.getClass();
        propertyInfoForComments = PropertyInfoForComments.empty;
        this.commentedPropertyInfo = propertyInfoForComments;
        kotlinx.coroutines.flow.w1<List<SavedCollections>> a31 = kotlinx.coroutines.flow.s2.a(g0Var);
        this._allCollectionsList = a31;
        this.allCollectionsList = kotlinx.coroutines.flow.m.b(a31);
        kotlinx.coroutines.flow.w1<String> a32 = kotlinx.coroutines.flow.s2.a("");
        this._shareUrl = a32;
        this.shareUrl = kotlinx.coroutines.flow.m.b(a32);
        kotlinx.coroutines.flow.w1<String> a33 = kotlinx.coroutines.flow.s2.a("");
        this._toastMessage = a33;
        this.toastMessage = kotlinx.coroutines.flow.m.b(a33);
    }

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

    public static final Object M(g9 g9Var, Result result, kq.p pVar, kq.p pVar2, eq.i iVar) {
        Object invoke;
        g9Var.getClass();
        if (!(result instanceof Result.Error)) {
            return ((result instanceof Result.Success) && (invoke = pVar2.invoke(((Result.Success) result).getData(), iVar)) == kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED) ? invoke : zp.j0.INSTANCE;
        }
        Object invoke2 = pVar.invoke(((Result.Error) result).getError(), iVar);
        return invoke2 == kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED ? invoke2 : zp.j0.INSTANCE;
    }

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

    public static final void Q(g9 g9Var, String str) {
        ed.b.d(g9Var.appContext, 0, str);
    }

    public static final ArrayList R(g9 g9Var, List list, CollectionPropertiesModel collectionPropertiesModel) {
        g9Var.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 = g9Var.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 com.locon.crf.presentation.ui.handlers.f0 a(g9 g9Var) {
        return new com.locon.crf.presentation.ui.handlers.f0(g9Var.crfUseCases, androidx.view.w0.a(g9Var));
    }

    public static final void b(g9 g9Var) {
        kotlinx.coroutines.flow.k a10 = g9Var.useCases.getGetAllCollections().a((String) g9Var.loginAuthToken.getValue(), false);
        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 v7(g9Var, null)), androidx.view.w0.a(g9Var));
    }

    public static void b1(g9 g9Var, boolean z5, boolean z7, String str, String str2, String str3, String str4, String str5, String str6, String str7, kq.a aVar, int i8) {
        boolean z10 = (i8 & 512) == 0;
        if ((i8 & 1024) != 0) {
            aVar = new com.locon.profile.presentation.ui.components.g2(28);
        }
        g9Var.a1(z5, z7, str, str2, str3, str4, str5, str6, str7, z10, aVar);
    }

    public static final void c(g9 g9Var, CollectionPropertiesModel collectionPropertiesModel, boolean z5) {
        Object value;
        p pVar;
        Object value2;
        g9Var.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) {
            g9Var.numberOfAPICallsLeft++;
            kotlinx.coroutines.flow.k a10 = ((com.locon.profile.demand.usecases.b1) g9Var.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 w7(g9Var, z5, collectionPropertiesModel, null)), androidx.view.w0.a(g9Var));
        }
        if (z7) {
            g9Var.numberOfAPICallsLeft++;
            kotlinx.coroutines.flow.k a11 = ((com.locon.profile.demand.usecases.b1) g9Var.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 x7(g9Var, z5, collectionPropertiesModel, null)), androidx.view.w0.a(g9Var));
        }
        if (!isEmpty || z7) {
            return;
        }
        g9Var.shouldCallApi = false;
        kotlinx.coroutines.flow.w1<p> w1Var = g9Var._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 = g9Var._isPropListLoading;
        do {
            value2 = w1Var2.getValue();
            ((Boolean) value2).getClass();
        } while (!w1Var2.c(value2, Boolean.FALSE));
    }

    public static final Object d(g9 g9Var, List list, List list2, int i8, eq.d dVar) {
        y7 y7Var;
        g9 g9Var2;
        int i10;
        Iterator it;
        y7 y7Var2;
        int i11;
        ArrayList arrayList;
        List list3;
        String str;
        List list4;
        ArrayList arrayList2;
        Iterator it2;
        g9 g9Var3;
        List list5;
        List list6;
        int i12;
        Object a10;
        String str2;
        ArrayList H;
        ArrayList arrayList3;
        Iterator it3;
        List list7;
        List list8;
        Object obj;
        Object obj2;
        ArrayList arrayList4;
        g9 g9Var4;
        ArrayList arrayList5;
        Iterator it4;
        List list9;
        List list10;
        int i13;
        Object a11;
        Object value;
        List list11;
        List list12;
        Object obj3;
        Object obj4;
        g9Var.getClass();
        if (dVar instanceof y7) {
            y7Var = (y7) dVar;
            int i14 = y7Var.label;
            if ((i14 & Integer.MIN_VALUE) != 0) {
                y7Var.label = i14 - Integer.MIN_VALUE;
                g9Var2 = g9Var;
                Object obj5 = y7Var.result;
                kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                i10 = y7Var.label;
                int i15 = 0;
                String str3 = "";
                boolean z5 = true;
                if (i10 != 0) {
                    zp.u.b(obj5);
                    ArrayList t7 = kotlin.collections.t.t(list, 40);
                    a.Companion companion = sr.a.INSTANCE;
                    companion.a(defpackage.a.g(list.size(), "ch8n ---> fetchDataInBatchesBuy buyActiveIds size ="), new Object[0]);
                    companion.a("ch8n ---> fetchDataInBatchesBuy buyActiveIds=" + list, new Object[0]);
                    ArrayList arrayList6 = new ArrayList();
                    it = t7.iterator();
                    y7Var2 = y7Var;
                    i11 = i8;
                    arrayList = arrayList6;
                    list3 = list2;
                    if (!it.hasNext()) {
                    }
                } else {
                    if (i10 == 1) {
                        i12 = y7Var.I$0;
                        list6 = (List) y7Var.L$6;
                        list5 = (List) y7Var.L$4;
                        Iterator it5 = (Iterator) y7Var.L$3;
                        ?? r12 = (Collection) y7Var.L$2;
                        List list13 = (List) y7Var.L$1;
                        g9 g9Var5 = (g9) y7Var.L$0;
                        zp.u.b(obj5);
                        it2 = it5;
                        g9Var3 = g9Var5;
                        list4 = list13;
                        arrayList2 = r12;
                        str = "";
                        ProfilePropertiesModel profilePropertiesModel = (ProfilePropertiesModel) obj5;
                        y7Var.L$0 = g9Var3;
                        y7Var.L$1 = list4;
                        y7Var.L$2 = arrayList2;
                        y7Var.L$3 = it2;
                        y7Var.L$4 = list5;
                        y7Var.L$5 = list6;
                        y7Var.L$6 = profilePropertiesModel;
                        y7Var.L$7 = y7Var;
                        y7Var.I$0 = i12;
                        y7Var.label = 2;
                        kotlin.coroutines.h hVar = new kotlin.coroutines.h(kotlin.coroutines.intrinsics.b.c(y7Var));
                        kotlinx.coroutines.flow.p1 p1Var = new kotlinx.coroutines.flow.p1(((com.locon.profile.demand.usecases.b1) g9Var3.profileUseCases).getGetBulkDedicatedDetailsForBuyInProfile().a(i12, kotlin.collections.g0.INSTANCE, list6), new b8(g9Var3, hVar, null));
                        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
                        com.locon.core.data.d0.c(new kotlinx.coroutines.flow.b0(kotlinx.coroutines.flow.m.y(p1Var, kotlinx.coroutines.scheduling.b.INSTANCE), new c8(hVar, null)), androidx.view.w0.a(g9Var3));
                        a10 = hVar.a();
                        if (a10 != aVar) {
                        }
                        return aVar;
                    }
                    if (i10 == 2) {
                        i12 = y7Var.I$0;
                        ProfilePropertiesModel profilePropertiesModel2 = (ProfilePropertiesModel) y7Var.L$6;
                        list5 = (List) y7Var.L$4;
                        it2 = (Iterator) y7Var.L$3;
                        ?? r13 = (Collection) y7Var.L$2;
                        list4 = (List) y7Var.L$1;
                        g9Var3 = (g9) y7Var.L$0;
                        zp.u.b(obj5);
                        str = "";
                        ArrayList arrayList7 = r13;
                        ProfilePropertiesModel profilePropertiesModel3 = (ProfilePropertiesModel) obj5;
                        if (profilePropertiesModel2 != null || (list7 = profilePropertiesModel2.getProfileProperties()) == null) {
                            list7 = kotlin.collections.g0.INSTANCE;
                        }
                        if (profilePropertiesModel3 != null || (list8 = profilePropertiesModel3.getProfileProperties()) == null) {
                            list8 = kotlin.collections.g0.INSTANCE;
                        }
                        a.Companion companion2 = sr.a.INSTANCE;
                        int i16 = 0;
                        companion2.a(defpackage.a.g(list7.size(), "ch8n ---> fetchDataInBatchesBuy projectProperties size="), new Object[0]);
                        companion2.a(defpackage.a.g(list8.size(), "ch8n ---> fetchDataInBatchesBuy resaleProperties size="), new Object[0]);
                        cq.b x10 = kotlin.collections.t.x();
                        Iterator it6 = list5.iterator();
                        while (it6.hasNext()) {
                            int i17 = i12;
                            String str4 = (String) kotlin.collections.t.G(kotlin.text.q.W((String) it6.next(), new String[]{"_"}, i16, 6));
                            if (str4 == null) {
                                str4 = str;
                            }
                            Iterator it7 = list7.iterator();
                            while (true) {
                                if (!it7.hasNext()) {
                                    obj = null;
                                    break;
                                }
                                obj = it7.next();
                                if (kotlin.jvm.internal.r.f(((ProfilePropertyModel) obj).e(), str4)) {
                                    break;
                                }
                            }
                            ProfilePropertyModel profilePropertyModel = (ProfilePropertyModel) obj;
                            if (profilePropertyModel != null) {
                                x10.add(profilePropertyModel);
                            } else {
                                Iterator it8 = list8.iterator();
                                while (true) {
                                    if (!it8.hasNext()) {
                                        obj2 = null;
                                        break;
                                    }
                                    obj2 = it8.next();
                                    if (kotlin.jvm.internal.r.f(((ProfilePropertyModel) obj2).e(), str4)) {
                                        break;
                                    }
                                }
                                ProfilePropertyModel profilePropertyModel2 = (ProfilePropertyModel) obj2;
                                if (profilePropertyModel2 != null) {
                                    x10.add(profilePropertyModel2);
                                }
                            }
                            i12 = i17;
                            i16 = 0;
                        }
                        int i18 = i12;
                        List build = x10.build();
                        a.Companion companion3 = sr.a.INSTANCE;
                        List list14 = build;
                        ArrayList arrayList8 = new ArrayList(kotlin.collections.t.u(list14, 10));
                        Iterator it9 = list14.iterator();
                        while (it9.hasNext()) {
                            arrayList8.add(((ProfilePropertyModel) it9.next()).e());
                        }
                        companion3.a("ch8n ---> fetchDataInBatchesBuy finish ids=" + arrayList8, new Object[0]);
                        i11 = i18;
                        List list15 = build;
                        g9Var2 = g9Var3;
                        it = it2;
                        list3 = list4;
                        y7Var2 = y7Var;
                        arrayList = arrayList7;
                        if (list15 != null) {
                            arrayList.add(list15);
                        }
                        str3 = str;
                        i15 = 0;
                        z5 = true;
                        if (!it.hasNext()) {
                            List list16 = (List) it.next();
                            sr.a.INSTANCE.a(coil.disk.c.m("ch8n ---> fetchDataInBatchesBuy buyIds=", list16), new Object[i15]);
                            if (!list16.isEmpty()) {
                                ArrayList arrayList9 = new ArrayList();
                                ArrayList arrayList10 = new ArrayList();
                                for (Object obj6 : list16) {
                                    String str5 = str3;
                                    if (kotlin.text.q.m((String) obj6, "_project", z5)) {
                                        arrayList9.add(obj6);
                                    } else {
                                        arrayList10.add(obj6);
                                    }
                                    str3 = str5;
                                }
                                str = str3;
                                zp.s sVar = new zp.s(arrayList9, arrayList10);
                                List list17 = (List) sVar.component1();
                                List list18 = (List) sVar.component2();
                                a.Companion companion4 = sr.a.INSTANCE;
                                companion4.a(coil.disk.c.m("ch8n ---> fetchDataInBatchesBuy projectIds=", list17), new Object[0]);
                                companion4.a("ch8n ---> fetchDataInBatchesBuy resaleIds=" + list18, new Object[0]);
                                y7Var2.L$0 = g9Var2;
                                y7Var2.L$1 = list3;
                                y7Var2.L$2 = arrayList;
                                y7Var2.L$3 = it;
                                y7Var2.L$4 = list16;
                                y7Var2.L$5 = list17;
                                y7Var2.L$6 = list18;
                                y7Var2.L$7 = y7Var2;
                                y7Var2.I$0 = i11;
                                y7Var2.label = 1;
                                kotlin.coroutines.h hVar2 = new kotlin.coroutines.h(kotlin.coroutines.intrinsics.b.c(y7Var2));
                                kotlinx.coroutines.flow.p1 p1Var2 = new kotlinx.coroutines.flow.p1(((com.locon.profile.demand.usecases.b1) g9Var2.profileUseCases).getGetBulkDedicatedDetailsForBuyInProfile().a(i11, list17, kotlin.collections.g0.INSTANCE), new z7(g9Var2, hVar2, null));
                                kotlinx.coroutines.z0 z0Var2 = kotlinx.coroutines.z0.INSTANCE;
                                com.locon.core.data.d0.c(new kotlinx.coroutines.flow.b0(kotlinx.coroutines.flow.m.y(p1Var2, kotlinx.coroutines.scheduling.b.INSTANCE), new a8(hVar2, null)), androidx.view.w0.a(g9Var2));
                                Object a12 = hVar2.a();
                                kotlin.coroutines.intrinsics.a aVar2 = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                                if (a12 != aVar) {
                                    it2 = it;
                                    list5 = list16;
                                    list4 = list3;
                                    i12 = i11;
                                    arrayList2 = arrayList;
                                    y7Var = y7Var2;
                                    obj5 = a12;
                                    g9Var3 = g9Var2;
                                    list6 = list18;
                                    ProfilePropertiesModel profilePropertiesModel4 = (ProfilePropertiesModel) obj5;
                                    y7Var.L$0 = g9Var3;
                                    y7Var.L$1 = list4;
                                    y7Var.L$2 = arrayList2;
                                    y7Var.L$3 = it2;
                                    y7Var.L$4 = list5;
                                    y7Var.L$5 = list6;
                                    y7Var.L$6 = profilePropertiesModel4;
                                    y7Var.L$7 = y7Var;
                                    y7Var.I$0 = i12;
                                    y7Var.label = 2;
                                    kotlin.coroutines.h hVar3 = new kotlin.coroutines.h(kotlin.coroutines.intrinsics.b.c(y7Var));
                                    kotlinx.coroutines.flow.p1 p1Var3 = new kotlinx.coroutines.flow.p1(((com.locon.profile.demand.usecases.b1) g9Var3.profileUseCases).getGetBulkDedicatedDetailsForBuyInProfile().a(i12, kotlin.collections.g0.INSTANCE, list6), new b8(g9Var3, hVar3, null));
                                    kotlinx.coroutines.z0 z0Var3 = kotlinx.coroutines.z0.INSTANCE;
                                    com.locon.core.data.d0.c(new kotlinx.coroutines.flow.b0(kotlinx.coroutines.flow.m.y(p1Var3, kotlinx.coroutines.scheduling.b.INSTANCE), new c8(hVar3, null)), androidx.view.w0.a(g9Var3));
                                    a10 = hVar3.a();
                                    if (a10 != aVar) {
                                        profilePropertiesModel2 = profilePropertiesModel4;
                                        obj5 = a10;
                                        arrayList7 = arrayList2;
                                        ProfilePropertiesModel profilePropertiesModel32 = (ProfilePropertiesModel) obj5;
                                        if (profilePropertiesModel2 != null) {
                                        }
                                        list7 = kotlin.collections.g0.INSTANCE;
                                        if (profilePropertiesModel32 != null) {
                                        }
                                        list8 = kotlin.collections.g0.INSTANCE;
                                        a.Companion companion22 = sr.a.INSTANCE;
                                        int i162 = 0;
                                        companion22.a(defpackage.a.g(list7.size(), "ch8n ---> fetchDataInBatchesBuy projectProperties size="), new Object[0]);
                                        companion22.a(defpackage.a.g(list8.size(), "ch8n ---> fetchDataInBatchesBuy resaleProperties size="), new Object[0]);
                                        cq.b x102 = kotlin.collections.t.x();
                                        Iterator it62 = list5.iterator();
                                        while (it62.hasNext()) {
                                        }
                                        int i182 = i12;
                                        List build2 = x102.build();
                                        a.Companion companion32 = sr.a.INSTANCE;
                                        List list142 = build2;
                                        ArrayList arrayList82 = new ArrayList(kotlin.collections.t.u(list142, 10));
                                        Iterator it92 = list142.iterator();
                                        while (it92.hasNext()) {
                                        }
                                        companion32.a("ch8n ---> fetchDataInBatchesBuy finish ids=" + arrayList82, new Object[0]);
                                        i11 = i182;
                                        List list152 = build2;
                                        g9Var2 = g9Var3;
                                        it = it2;
                                        list3 = list4;
                                        y7Var2 = y7Var;
                                        arrayList = arrayList7;
                                        if (list152 != null) {
                                        }
                                        str3 = str;
                                        i15 = 0;
                                        z5 = true;
                                        if (!it.hasNext()) {
                                        }
                                    }
                                }
                                return aVar;
                            }
                            str = str3;
                            list152 = null;
                            if (list152 != null) {
                            }
                            str3 = str;
                            i15 = 0;
                            z5 = true;
                            if (!it.hasNext()) {
                                str2 = str3;
                                H = kotlin.collections.t.H(arrayList);
                                a.Companion companion5 = sr.a.INSTANCE;
                                companion5.a(defpackage.a.g(H.size(), "ch8n ---> fetchDataInBatchesBuy buyActiveProperties size ="), new Object[0]);
                                ArrayList t10 = kotlin.collections.t.t(list3, 40);
                                companion5.a(defpackage.a.g(list3.size(), "ch8n ---> fetchDataInBatchesBuy buyInActiveIds size ="), new Object[0]);
                                companion5.a("ch8n ---> fetchDataInBatchesBuy buyInActiveIds=" + list3, new Object[0]);
                                arrayList3 = new ArrayList();
                                it3 = t10.iterator();
                                if (!it3.hasNext()) {
                                }
                            }
                        }
                    } else {
                        if (i10 == 3) {
                            i13 = y7Var.I$0;
                            list10 = (List) y7Var.L$6;
                            list9 = (List) y7Var.L$4;
                            it4 = (Iterator) y7Var.L$3;
                            ?? r122 = (Collection) y7Var.L$2;
                            ?? r132 = (List) y7Var.L$1;
                            g9 g9Var6 = (g9) y7Var.L$0;
                            zp.u.b(obj5);
                            arrayList4 = r122;
                            arrayList5 = r132;
                            g9Var4 = g9Var6;
                            str2 = "";
                            ProfilePropertiesModel profilePropertiesModel5 = (ProfilePropertiesModel) obj5;
                            y7Var.L$0 = g9Var4;
                            y7Var.L$1 = arrayList5;
                            y7Var.L$2 = arrayList4;
                            y7Var.L$3 = it4;
                            y7Var.L$4 = list9;
                            y7Var.L$5 = list10;
                            y7Var.L$6 = profilePropertiesModel5;
                            y7Var.L$7 = y7Var;
                            y7Var.I$0 = i13;
                            y7Var.label = 4;
                            kotlin.coroutines.h hVar4 = new kotlin.coroutines.h(kotlin.coroutines.intrinsics.b.c(y7Var));
                            kotlinx.coroutines.flow.p1 p1Var4 = new kotlinx.coroutines.flow.p1(((com.locon.profile.demand.usecases.b1) g9Var4.profileUseCases).getGetBulkDedicatedDetailsForBuyInProfile().a(i13, kotlin.collections.g0.INSTANCE, list10), new f8(g9Var4, hVar4, null));
                            kotlinx.coroutines.z0 z0Var4 = kotlinx.coroutines.z0.INSTANCE;
                            com.locon.core.data.d0.c(new kotlinx.coroutines.flow.b0(kotlinx.coroutines.flow.m.y(p1Var4, kotlinx.coroutines.scheduling.b.INSTANCE), new g8(hVar4, null)), androidx.view.w0.a(g9Var4));
                            a11 = hVar4.a();
                            if (a11 != aVar) {
                            }
                            return aVar;
                        }
                        if (i10 != 4) {
                            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                        }
                        i13 = y7Var.I$0;
                        ProfilePropertiesModel profilePropertiesModel6 = (ProfilePropertiesModel) y7Var.L$6;
                        list9 = (List) y7Var.L$4;
                        it4 = (Iterator) y7Var.L$3;
                        ?? r14 = (Collection) y7Var.L$2;
                        ?? r123 = (List) y7Var.L$1;
                        g9Var4 = (g9) y7Var.L$0;
                        zp.u.b(obj5);
                        str2 = "";
                        ArrayList arrayList11 = r123;
                        ArrayList arrayList12 = r14;
                        ProfilePropertiesModel profilePropertiesModel7 = (ProfilePropertiesModel) obj5;
                        if (profilePropertiesModel6 != null || (list11 = profilePropertiesModel6.getProfileProperties()) == null) {
                            list11 = kotlin.collections.g0.INSTANCE;
                        }
                        if (profilePropertiesModel7 != null || (list12 = profilePropertiesModel7.getProfileProperties()) == null) {
                            list12 = kotlin.collections.g0.INSTANCE;
                        }
                        cq.b x11 = kotlin.collections.t.x();
                        Iterator it10 = list9.iterator();
                        while (it10.hasNext()) {
                            int i19 = i13;
                            String str6 = (String) kotlin.collections.t.G(kotlin.text.q.W((String) it10.next(), new String[]{"_"}, 0, 6));
                            if (str6 == null) {
                                str6 = str2;
                            }
                            Iterator it11 = list11.iterator();
                            while (true) {
                                if (!it11.hasNext()) {
                                    obj3 = null;
                                    break;
                                }
                                obj3 = it11.next();
                                if (kotlin.jvm.internal.r.f(((ProfilePropertyModel) obj3).e(), str6)) {
                                    break;
                                }
                            }
                            ProfilePropertyModel profilePropertyModel3 = (ProfilePropertyModel) obj3;
                            if (profilePropertyModel3 != null) {
                                x11.add(profilePropertyModel3);
                            } else {
                                Iterator it12 = list12.iterator();
                                while (true) {
                                    if (!it12.hasNext()) {
                                        obj4 = null;
                                        break;
                                    }
                                    obj4 = it12.next();
                                    if (kotlin.jvm.internal.r.f(((ProfilePropertyModel) obj4).e(), str6)) {
                                        break;
                                    }
                                }
                                ProfilePropertyModel profilePropertyModel4 = (ProfilePropertyModel) obj4;
                                if (profilePropertyModel4 != null) {
                                    x11.add(profilePropertyModel4);
                                }
                            }
                            i13 = i19;
                        }
                        int i20 = i13;
                        ArrayList arrayList13 = arrayList12;
                        List list19 = x11.build();
                        arrayList3 = arrayList13;
                        i11 = i20;
                        y7Var2 = y7Var;
                        it3 = it4;
                        H = arrayList11;
                        g9Var2 = g9Var4;
                        if (list19 != null) {
                            arrayList3.add(list19);
                        }
                        if (!it3.hasNext()) {
                            List list20 = (List) it3.next();
                            if (!list20.isEmpty()) {
                                ArrayList arrayList14 = new ArrayList();
                                ArrayList arrayList15 = new ArrayList();
                                for (Object obj7 : list20) {
                                    if (kotlin.text.q.m((String) obj7, "_project", true)) {
                                        arrayList14.add(obj7);
                                    } else {
                                        arrayList15.add(obj7);
                                    }
                                }
                                zp.s sVar2 = new zp.s(arrayList14, arrayList15);
                                List list21 = (List) sVar2.component1();
                                List list22 = (List) sVar2.component2();
                                sr.a.INSTANCE.a(coil.disk.c.m("ch8n ---> fetchDataInBatchesBuy inActiveBuyIds=", list20), new Object[0]);
                                y7Var2.L$0 = g9Var2;
                                y7Var2.L$1 = H;
                                y7Var2.L$2 = arrayList3;
                                y7Var2.L$3 = it3;
                                y7Var2.L$4 = list20;
                                y7Var2.L$5 = list21;
                                y7Var2.L$6 = list22;
                                y7Var2.L$7 = y7Var2;
                                y7Var2.I$0 = i11;
                                y7Var2.label = 3;
                                kotlin.coroutines.h hVar5 = new kotlin.coroutines.h(kotlin.coroutines.intrinsics.b.c(y7Var2));
                                kotlinx.coroutines.flow.p1 p1Var5 = new kotlinx.coroutines.flow.p1(((com.locon.profile.demand.usecases.b1) g9Var2.profileUseCases).getGetBulkDedicatedDetailsForBuyInProfile().a(i11, list21, kotlin.collections.g0.INSTANCE), new d8(g9Var2, hVar5, null));
                                kotlinx.coroutines.z0 z0Var5 = kotlinx.coroutines.z0.INSTANCE;
                                com.locon.core.data.d0.c(new kotlinx.coroutines.flow.b0(kotlinx.coroutines.flow.m.y(p1Var5, kotlinx.coroutines.scheduling.b.INSTANCE), new e8(hVar5, null)), androidx.view.w0.a(g9Var2));
                                Object a13 = hVar5.a();
                                kotlin.coroutines.intrinsics.a aVar3 = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                                if (a13 != aVar) {
                                    arrayList4 = arrayList3;
                                    i13 = i11;
                                    arrayList5 = H;
                                    g9Var4 = g9Var2;
                                    y7Var = y7Var2;
                                    list10 = list22;
                                    obj5 = a13;
                                    it4 = it3;
                                    list9 = list20;
                                    ProfilePropertiesModel profilePropertiesModel52 = (ProfilePropertiesModel) obj5;
                                    y7Var.L$0 = g9Var4;
                                    y7Var.L$1 = arrayList5;
                                    y7Var.L$2 = arrayList4;
                                    y7Var.L$3 = it4;
                                    y7Var.L$4 = list9;
                                    y7Var.L$5 = list10;
                                    y7Var.L$6 = profilePropertiesModel52;
                                    y7Var.L$7 = y7Var;
                                    y7Var.I$0 = i13;
                                    y7Var.label = 4;
                                    kotlin.coroutines.h hVar42 = new kotlin.coroutines.h(kotlin.coroutines.intrinsics.b.c(y7Var));
                                    kotlinx.coroutines.flow.p1 p1Var42 = new kotlinx.coroutines.flow.p1(((com.locon.profile.demand.usecases.b1) g9Var4.profileUseCases).getGetBulkDedicatedDetailsForBuyInProfile().a(i13, kotlin.collections.g0.INSTANCE, list10), new f8(g9Var4, hVar42, null));
                                    kotlinx.coroutines.z0 z0Var42 = kotlinx.coroutines.z0.INSTANCE;
                                    com.locon.core.data.d0.c(new kotlinx.coroutines.flow.b0(kotlinx.coroutines.flow.m.y(p1Var42, kotlinx.coroutines.scheduling.b.INSTANCE), new g8(hVar42, null)), androidx.view.w0.a(g9Var4));
                                    a11 = hVar42.a();
                                    if (a11 != aVar) {
                                        profilePropertiesModel6 = profilePropertiesModel52;
                                        obj5 = a11;
                                        arrayList11 = arrayList5;
                                        arrayList12 = arrayList4;
                                        ProfilePropertiesModel profilePropertiesModel72 = (ProfilePropertiesModel) obj5;
                                        if (profilePropertiesModel6 != null) {
                                        }
                                        list11 = kotlin.collections.g0.INSTANCE;
                                        if (profilePropertiesModel72 != null) {
                                        }
                                        list12 = kotlin.collections.g0.INSTANCE;
                                        cq.b x112 = kotlin.collections.t.x();
                                        Iterator it102 = list9.iterator();
                                        while (it102.hasNext()) {
                                        }
                                        int i202 = i13;
                                        ArrayList arrayList132 = arrayList12;
                                        List list192 = x112.build();
                                        arrayList3 = arrayList132;
                                        i11 = i202;
                                        y7Var2 = y7Var;
                                        it3 = it4;
                                        H = arrayList11;
                                        g9Var2 = g9Var4;
                                        if (list192 != null) {
                                        }
                                        if (!it3.hasNext()) {
                                        }
                                    }
                                }
                                return aVar;
                            }
                            list192 = null;
                            if (list192 != null) {
                            }
                            if (!it3.hasNext()) {
                                ArrayList b02 = kotlin.collections.t.b0(kotlin.collections.t.H(arrayList3), H);
                                kotlinx.coroutines.flow.w1<MyActivityTabListModel> w1Var = g9Var2._savedProperties;
                                do {
                                    value = w1Var.getValue();
                                    ((MyActivityTabListModel) value).getClass();
                                } while (!w1Var.c(value, new MyActivityTabListModel(b02, false)));
                                return zp.j0.INSTANCE;
                            }
                        }
                    }
                }
            }
        }
        g9Var2 = g9Var;
        y7Var = new y7(g9Var2, dVar);
        Object obj52 = y7Var.result;
        kotlin.coroutines.intrinsics.a aVar4 = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
        i10 = y7Var.label;
        int i152 = 0;
        String str32 = "";
        boolean z52 = true;
        if (i10 != 0) {
        }
    }

    public static final Object e(g9 g9Var, eq.d dVar) {
        k8 k8Var;
        int i8;
        Object value;
        UserDetailsModel userDetailsModel;
        g9Var.getClass();
        if (dVar instanceof k8) {
            k8Var = (k8) dVar;
            int i10 = k8Var.label;
            if ((i10 & Integer.MIN_VALUE) != 0) {
                k8Var.label = i10 - Integer.MIN_VALUE;
                Object obj = k8Var.result;
                kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
                i8 = k8Var.label;
                if (i8 != 0) {
                    zp.u.b(obj);
                    kotlinx.coroutines.flow.w1<Boolean> w1Var = g9Var._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) g9Var.profileUseCases).getProfileLocalDataUseCase().g();
                    k8Var.L$0 = g9Var;
                    k8Var.label = 1;
                    obj = kotlinx.coroutines.flow.m.u(g10, k8Var);
                    if (obj == aVar) {
                        return aVar;
                    }
                } else {
                    if (i8 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    g9Var = (g9) k8Var.L$0;
                    zp.u.b(obj);
                }
                userDetailsModel = (UserDetailsModel) obj;
                if (((CharSequence) g9Var.loginAuthToken.getValue()).length() > 0 && ((Number) g9Var.currentCollectionId.getValue()).intValue() != -1) {
                    kotlinx.coroutines.flow.k a10 = g9Var.useCases.getGetCollectionMembers().a(((Number) g9Var.currentCollectionId.getValue()).intValue(), (String) g9Var.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 l8(g9Var, userDetailsModel, null)), androidx.view.w0.a(g9Var));
                }
                return zp.j0.INSTANCE;
            }
        }
        k8Var = new k8(g9Var, dVar);
        Object obj2 = k8Var.result;
        kotlin.coroutines.intrinsics.a aVar2 = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
        i8 = k8Var.label;
        if (i8 != 0) {
        }
        userDetailsModel = (UserDetailsModel) obj2;
        if (((CharSequence) g9Var.loginAuthToken.getValue()).length() > 0) {
            kotlinx.coroutines.flow.k a102 = g9Var.useCases.getGetCollectionMembers().a(((Number) g9Var.currentCollectionId.getValue()).intValue(), (String) g9Var.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 l8(g9Var, userDetailsModel, null)), androidx.view.w0.a(g9Var));
        }
        return zp.j0.INSTANCE;
    }

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

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

    public final int C0(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 F0(String propertyId, String propertyType, String loginAuthToken, kq.l lVar) {
        kotlin.jvm.internal.r.k(propertyId, "propertyId");
        kotlin.jvm.internal.r.k(propertyType, "propertyType");
        kotlin.jvm.internal.r.k(loginAuthToken, "loginAuthToken");
        kotlinx.coroutines.flow.k a10 = ((com.locon.profile.demand.usecases.b1) this.profileUseCases).getGetSimilarPropertiesUseCase().a(sc.d0.Buy.getType(), this.secureIdManager.a(), propertyId, propertyType, loginAuthToken);
        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 u8(this, lVar, null)), androidx.view.w0.a(this));
    }

    public final kotlinx.coroutines.flow.p2 getUserDetailsState() {
        return this.userDetailsState;
    }

    public final void H0(o event) {
        String createdBy;
        String createdBy2;
        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.m) {
            l10.put("collectionId", ((o.m) event).getCollectionId());
            l10.put("members", i0());
            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;
        }
        String str = "";
        if (event instanceof o.C0710o) {
            SavedCollections a02 = a0();
            if (a02 != null && (createdBy2 = a02.getCreatedBy()) != null) {
                str = createdBy2;
            }
            l10.put("collectionOwner", str);
            l10.put("collectionId", ((o.C0710o) event).getCollectionId());
            l10.put("members", i0());
            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", i0());
            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", i0());
            l10.put("serviceType", qVar.getServiceType());
            l10.put("isPaid", Boolean.valueOf(qVar.getIsPaid()));
            this.profileAnalytics.u0("property_remove", l10);
            return;
        }
        if (event instanceof o.k) {
            l10.put("collectionId", ((o.k) event).getCollectionId());
            l10.put("members", i0());
            this.profileAnalytics.u0("del_collection", l10);
            return;
        }
        if (event instanceof o.p) {
            SavedCollections a03 = a0();
            o.p pVar = (o.p) event;
            l10.put("collectionId", pVar.getCollectionId());
            l10.put("removedMemberId", Integer.valueOf(pVar.getMemberId()));
            if (a03 != null && (createdBy = a03.getCreatedBy()) != null) {
                str = createdBy;
            }
            l10.put("collectionOwner", str);
            this.profileAnalytics.u0("del_user", l10);
            return;
        }
        if (event instanceof o.e) {
            String s02 = s0();
            String r02 = r0();
            if (s02.length() > 0) {
                l10.put("ownerUuid", s02);
            }
            if (r02.length() > 0) {
                l10.put("membersUuid", r02);
            }
            this.profileAnalytics.t0("click_comment", l10);
            return;
        }
        if (event instanceof o.h) {
            String s03 = s0();
            String r03 = r0();
            if (s03.length() > 0) {
                l10.put("ownerUuid", s03);
            }
            if (r03.length() > 0) {
                l10.put("membersUuid", r03);
            }
            this.profileAnalytics.t0("text_added", l10);
            return;
        }
        if (event instanceof o.d) {
            String s04 = s0();
            String r04 = r0();
            if (s04.length() > 0) {
                l10.put("ownerUuid", s04);
            }
            if (r04.length() > 0) {
                l10.put("membersUuid", r04);
            }
            this.profileAnalytics.t0("comment_added", l10);
            return;
        }
        if (event instanceof o.i) {
            String s05 = s0();
            String r05 = r0();
            if (s05.length() > 0) {
                l10.put("ownerUuid", s05);
            }
            if (r05.length() > 0) {
                l10.put("membersUuid", r05);
            }
            this.profileAnalytics.t0("comments_read", l10);
        }
    }

    public final void I0() {
        String service = sc.d0.Buy.getType();
        kotlin.jvm.internal.r.k(service, "service");
        sr.a.INSTANCE.a("ch8n ---> observeFavorites called service=".concat(service), new Object[0]);
        p2.a a10 = 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(a10, bVar, null, new c9(this, null), 2);
        kotlinx.coroutines.k.c(androidx.view.w0.a(this), bVar, null, new b9(this, null), 2);
        kotlinx.coroutines.k.c(androidx.view.w0.a(this), null, null, new j8(this, null), 3);
        kotlinx.coroutines.k.c(androidx.view.w0.a(this), null, null, new n8(this, null), 3);
        t0().d(new h5(this, 2));
        t0().h();
        kotlinx.coroutines.k.c(androidx.view.w0.a(this), bVar, null, new v8(this, null), 2);
        kotlinx.coroutines.k.c(androidx.view.w0.a(this), null, null, new a9(this, null), 3);
    }

    public final kotlinx.coroutines.flow.p2 getIsCollectionRemoved() {
        return this.isCollectionRemoved;
    }

    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 N0(String propertyId, String sellerId, String sellerProfileType) {
        kotlin.jvm.internal.r.k(propertyId, "propertyId");
        kotlin.jvm.internal.r.k(sellerId, "sellerId");
        kotlin.jvm.internal.r.k(sellerProfileType, "sellerProfileType");
        kotlinx.coroutines.flow.s1 s1Var = new kotlinx.coroutines.flow.s1(this.serpUseCases.getGetUserDetailsUseCase().a(), this.serpUseCases.getGetQbBuyerIdUseCase().a(), new y8(null));
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        com.locon.core.data.d0.c(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(s1Var, kotlinx.coroutines.scheduling.b.INSTANCE), new z8(this, propertyId, sellerId, sellerProfileType, null)), androidx.view.w0.a(this));
    }

    public final void O0(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 d9(this, closeModal, str2, collectionProperties, z5, null)), androidx.view.w0.a(this));
    }

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

    public final void Q0() {
        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 R0() {
        Object value;
        kotlinx.coroutines.flow.w1<String> w1Var = this._shareUrl;
        do {
            value = w1Var.getValue();
        } while (!w1Var.c(value, ""));
    }

    public final void S(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 q7(this, aVar, null)), androidx.view.w0.a(this));
    }

    public final void S0(com.locon.core.errorReporter.j jVar, Map map, com.locon.core.errorReporter.b bVar) {
        f.a.a(this.nonFatalSendNonFatalExceptionByType, jVar, null, "user_collection_screen", map, bVar, 2);
    }

    public final void T(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) {
            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.currentCollectionId.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 r7(lVar, this, closeModal, null)), androidx.view.w0.a(this));
    }

    public final void T0(ProfilePropertyModel propertyInfo, Integer num) {
        kotlin.jvm.internal.r.k(propertyInfo, "propertyInfo");
        String r7 = propertyInfo.getSerpDetailsModel().r();
        this.commentedPropertyInfo = new PropertyInfoForComments(propertyInfo.getPropertyType(), propertyInfo.e(), num, (kotlin.jvm.internal.r.f(r7, "rent") || kotlin.jvm.internal.r.f(r7, com.locon.home.presentation.ui.viewModels.j0.RESALE)) ? propertyInfo.getSerpDetailsModel().getBasicDetails().getBhkDetails() : propertyInfo.getSerpDetailsModel().getBasicDetails().getProjectName(), propertyInfo.getSerpDetailsModel().getBasicDetails().getAddress());
    }

    public final void U(kq.l lVar) {
        Object value;
        if (((CharSequence) this.loginAuthToken.getValue()).length() == 0 || ((Number) this.currentCollectionId.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.currentCollectionId.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 s7(this, lVar, null)), androidx.view.w0.a(this));
    }

    public final void U0(int i8) {
        this.savedPropertiesCount = i8;
    }

    public final void V(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 t7(this, lVar, z5, closeModal, num, null)), androidx.view.w0.a(this));
    }

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

    public final void W(String collectionName, kq.a closeModal) {
        Object value;
        Object value2;
        kotlin.jvm.internal.r.k(collectionName, "collectionName");
        kotlin.jvm.internal.r.k(closeModal, "closeModal");
        SavedCollections a02 = a0();
        Integer d5 = a02 != null ? a02.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 u7(this, closeModal, null)), androidx.view.w0.a(this));
    }

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

    public final Object X(int i8, String str, int i10, kotlin.coroutines.d dVar) {
        cj.a aVar = cj.a.INSTANCE;
        List propertiesList = ((p) this.collectionPropertiesData.getValue()).getPropertiesList();
        ArrayList arrayList = new ArrayList(kotlin.collections.t.u(propertiesList, 10));
        Iterator it = propertiesList.iterator();
        while (it.hasNext()) {
            arrayList.add(((ProfilePropertyModel) it.next()).getPropertyImageUrl());
        }
        ArrayList arrayList2 = new ArrayList();
        Iterator it2 = arrayList.iterator();
        while (it2.hasNext()) {
            Object next = it2.next();
            if (((String) next).length() > 0) {
                arrayList2.add(next);
            }
        }
        aVar.getClass();
        Object a10 = cj.a.a(new a.AbstractC0246a.b(i8, str, i10, kotlin.collections.t.r0(kotlin.collections.t.l0(arrayList2), 3)), (eq.i) dVar);
        return a10 == kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED ? a10 : zp.j0.INSTANCE;
    }

    public final void X0(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 void Y() {
        this.shouldCallApi = true;
        f0();
    }

    public final void Y0(ti.b source) {
        Object value;
        kotlin.jvm.internal.r.k(source, "source");
        kotlinx.coroutines.flow.w1<ti.b> w1Var = this._bottomSheetSource;
        do {
            value = w1Var.getValue();
        } while (!w1Var.c(value, source));
    }

    public final void Z() {
        if (((Boolean) this.shouldFetchUserSavedPropertiesData.getValue()).booleanValue()) {
            kotlinx.coroutines.k.c(androidx.view.w0.a(this), null, null, new i8(this, null), 3);
        }
    }

    public final void Z0(int i8, String collectionName) {
        Object value;
        Object value2;
        kotlin.jvm.internal.r.k(collectionName, "collectionName");
        kotlinx.coroutines.flow.w1<Integer> w1Var = this._currentCollectionId;
        do {
            value = w1Var.getValue();
            ((Number) value).intValue();
        } while (!w1Var.c(value, Integer.valueOf(i8)));
        kotlinx.coroutines.flow.w1<String> w1Var2 = this._collectionName;
        do {
            value2 = w1Var2.getValue();
        } while (!w1Var2.c(value2, collectionName));
    }

    public final SavedCollections a0() {
        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.currentCollectionId.getValue()).intValue();
            if (d5 != null && d5.intValue() == intValue) {
                break;
            }
        }
        return (SavedCollections) obj;
    }

    public final void a1(boolean z5, boolean z7, String propertyImage, String propertyId, String propertyType, String service, String propertyName, String priceRange, String bhkConfig, boolean z10, kq.a onSavedToastCtaClick) {
        kotlin.jvm.internal.r.k(propertyImage, "propertyImage");
        kotlin.jvm.internal.r.k(propertyId, "propertyId");
        kotlin.jvm.internal.r.k(propertyType, "propertyType");
        kotlin.jvm.internal.r.k(service, "service");
        kotlin.jvm.internal.r.k(propertyName, "propertyName");
        kotlin.jvm.internal.r.k(priceRange, "priceRange");
        kotlin.jvm.internal.r.k(bhkConfig, "bhkConfig");
        kotlin.jvm.internal.r.k(onSavedToastCtaClick, "onSavedToastCtaClick");
        String a10 = this.secureIdManager.a();
        kotlinx.coroutines.flow.k g10 = ((com.locon.profile.demand.usecases.b1) this.profileUseCases).getProfileLocalDataUseCase().g();
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        com.locon.core.data.d0.c(new kotlinx.coroutines.flow.p1(kotlinx.coroutines.flow.m.y(g10, kotlinx.coroutines.scheduling.b.INSTANCE), new f9(z7, a10, propertyType, propertyId, z5, this, propertyName, priceRange, bhkConfig, service, z10, propertyImage, onSavedToastCtaClick, null)), androidx.view.w0.a(this));
    }

    public final com.locon.coreUI.utils.b getAgentContactManager() {
        return this.agentContactManager;
    }

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

    public final void c1() {
        this.profileAnalytics.D0("user_collection_screen");
    }

    public final kotlinx.coroutines.flow.p2 getBottomSheetSource() {
        return this.bottomSheetSource;
    }

    public final kotlinx.coroutines.flow.p2 getCollectionName() {
        return this.collectionName;
    }

    public final void f0() {
        Object value;
        if (((CharSequence) this._loginAuthToken.getValue()).length() <= 0 || ((Number) this.currentCollectionId.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.currentCollectionId.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 m8(this, null)), androidx.view.w0.a(this));
    }

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

    public final kotlinx.coroutines.flow.p2 getCollectionTotalListingCount() {
        return this.collectionTotalListingCount;
    }

    public final String i0() {
        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(28), 30) : "";
    }

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

    public final kotlinx.coroutines.flow.p2 getCtaConfigDetail() {
        return this.ctaConfigDetail;
    }

    public final kotlinx.coroutines.flow.p2 getCurrentCollectionId() {
        return this.currentCollectionId;
    }

    public final kotlinx.coroutines.flow.p2 getFavoriteProperties() {
        return this.favoriteProperties;
    }

    public final void n0() {
        String str;
        Object value;
        SavedCollections a02 = a0();
        if (a02 == null || (str = a02.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 o8(this, shareShortenedUrlData, "Check out these selected properties.", "View and Add properties in the shared collections. Click to join the collection", a02, null), 3);
        }
    }

    public final kotlinx.coroutines.flow.p2 getLeadDroppedProperties() {
        return this.leadDroppedProperties;
    }

    public final kotlinx.coroutines.flow.p2 getLoginAuthToken() {
        return this.loginAuthToken;
    }

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

    public final String r0() {
        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(27), 30) : "";
    }

    public final String s0() {
        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 com.locon.crf.presentation.ui.handlers.f0 t0() {
        return (com.locon.crf.presentation.ui.handlers.f0) this.previousLeadHandler.getValue();
    }

    public final PropertyInfoForComments getCommentedPropertyInfo() {
        return this.commentedPropertyInfo;
    }

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

    public final kotlinx.coroutines.flow.p2 getSavedProperties() {
        return this.savedProperties;
    }

    public final int getSavedPropertiesCount() {
        return this.savedPropertiesCount;
    }

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

    public final void z0() {
        Object value;
        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.currentCollectionId.getValue()).intValue(), (String) this.loginAuthToken.getValue());
        kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
        kotlinx.coroutines.flow.m.z(new kotlinx.coroutines.flow.p1(new r8(new kotlinx.coroutines.flow.s1(kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE), this._savedProperties, new s8(null))), new t8(this, null)), androidx.view.w0.a(this));
    }
}