正在查看: Housing v14.7.8 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Housing v14.7.8 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.locon.crf.presentation.ui.util;
import android.content.Context;
import androidx.compose.runtime.internal.StabilityInferred;
import com.locon.core.data.ConnectionDetail;
import com.locon.core.data.ContactBy;
import com.locon.core.data.e0;
import com.locon.core.data.o1;
import com.locon.core.data.remote.projectDetails.dtos.PriceRangeMapDto;
import com.locon.core.data.sharedDtos.propertyDataDto.InventoryConfigDto;
import com.locon.core.data.sharedDtos.propertyDataDto.SellersInfoDto;
import com.locon.core.data.sharedmodels.DroppedLead;
import com.locon.core.data.sharedmodels.PropertyInfoModels$CrfModel;
import com.locon.crf.data.analytics.l0;
import com.locon.crf.presentation.entity.CrfFormModel;
import com.locon.crf.presentation.entity.CrfInitDetails;
import com.locon.feedback.domain.models.FeedbackSellerInfo;
import com.locon.feedback.domain.models.PropertiesForFeedback;
import com.locon.home.presentation.ui.components.sections.t2;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import kotlin.Metadata;
import kotlin.collections.t0;
import kotlin.jvm.internal.SourceDebugExtension;
import org.jetbrains.annotations.NotNull;
import sc.c0;
@StabilityInferred(parameters = t2.HOUSE_RENT_ID)
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\bÇ\u0002\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Lcom/locon/crf/presentation/ui/util/e;", "", "presentation_gammaRelease"}, k = t2.HOUSE_RENT_ID, mv = {t2.OFFICE_RENT_ID, 0, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nCrfUtility.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CrfUtility.kt\ncom/locon/crf/presentation/ui/util/CrfUtility\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,677:1\n774#2:678\n865#2,2:679\n774#2:681\n865#2,2:682\n774#2:684\n865#2,2:685\n774#2:687\n865#2,2:688\n774#2:690\n865#2,2:691\n1617#2,9:693\n1869#2:702\n1870#2:704\n1626#2:705\n774#2:706\n865#2,2:707\n1617#2,9:709\n1869#2:718\n1870#2:720\n1626#2:721\n774#2:722\n865#2,2:723\n1617#2,9:725\n1869#2:734\n1870#2:736\n1626#2:737\n1869#2,2:738\n774#2:740\n865#2,2:741\n1563#2:743\n1634#2,3:744\n774#2:747\n865#2,2:748\n1617#2,9:750\n1869#2:759\n1870#2:761\n1626#2:762\n2746#2,3:763\n1617#2,9:766\n1869#2:775\n1870#2:777\n1626#2:778\n1#3:703\n1#3:719\n1#3:735\n1#3:760\n1#3:776\n1#3:779\n*S KotlinDebug\n*F\n+ 1 CrfUtility.kt\ncom/locon/crf/presentation/ui/util/CrfUtility\n*L\n59#1:678\n59#1:679,2\n69#1:681\n69#1:682,2\n87#1:684\n87#1:685,2\n97#1:687\n97#1:688,2\n110#1:690\n110#1:691,2\n111#1:693,9\n111#1:702\n111#1:704\n111#1:705\n136#1:706\n136#1:707,2\n137#1:709,9\n137#1:718\n137#1:720\n137#1:721\n160#1:722\n160#1:723,2\n161#1:725,9\n161#1:734\n161#1:736\n161#1:737\n195#1:738,2\n300#1:740\n300#1:741,2\n300#1:743\n300#1:744,3\n305#1:747\n305#1:748,2\n307#1:750,9\n307#1:759\n307#1:761\n307#1:762\n329#1:763,3\n361#1:766,9\n361#1:775\n361#1:777\n361#1:778\n111#1:703\n137#1:719\n161#1:735\n307#1:760\n361#1:776\n*E\n"})
public final class e {
public static final int $stable = 0;
@NotNull
public static final e INSTANCE = new e();
@Metadata(k = 3, mv = {t2.OFFICE_RENT_ID, 0, 0}, xi = 48)
public class a {
public static final int[] $EnumSwitchMapping$0;
public static final int[] $EnumSwitchMapping$1;
static {
int[] iArr = new int[ce.d.values().length];
try {
iArr[ce.d.NEW_PROJECT.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[ce.d.RESALE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[ce.d.PLOT.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[ce.d.OTHERS.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
iArr[ce.d.RENT.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
iArr[ce.d.COMMERCIAL.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
try {
iArr[ce.d.COMMERCIAL_LEASE.ordinal()] = 7;
} catch (NoSuchFieldError unused7) {
}
try {
iArr[ce.d.PG.ordinal()] = 8;
} catch (NoSuchFieldError unused8) {
}
$EnumSwitchMapping$0 = iArr;
int[] iArr2 = new int[ce.b.values().length];
try {
iArr2[ce.b.WHATSAPP_BUTTON.ordinal()] = 1;
} catch (NoSuchFieldError unused9) {
}
$EnumSwitchMapping$1 = iArr2;
}
}
public static java.util.ArrayList a(java.util.ArrayList r5, java.util.List r6, java.util.List r7) {
throw new UnsupportedOperationException("Method not decompiled: com.locon.crf.presentation.ui.util.e.a(java.util.ArrayList, java.util.List, java.util.List):java.util.ArrayList");
}
public static List b(ce.d dVar) {
kotlin.jvm.internal.r.k(dVar, "crfPropertyType");
switch (a.$EnumSwitchMapping$0[dVar.ordinal()]) {
case t2.HOUSE_RENT_ID:
case t2.OFFICE_RENT_ID:
case 3:
return kotlin.collections.t.T(new CrfFormModel.a[]{new CrfFormModel.a(true, CrfFormModel.a.EnumC0027a.CONTACT_USER), new CrfFormModel.a(false, CrfFormModel.a.EnumC0027a.HOME_LOANS)});
case com.locon.login_domain.usecases.p.WHATSAPP_OPT_IN_IMPRESSION_THRESHOLD:
case t2.MAINTENANCE_ID:
case 6:
case 7:
case 8:
return kotlin.collections.t.S(new CrfFormModel.a(true, CrfFormModel.a.EnumC0027a.CONTACT_USER));
default:
throw new zp.q();
}
}
public static String c(Integer num, List list, boolean z, Map map) {
ArrayList arrayList;
PriceRangeMapDto priceRangeMapDto = map != null ? (PriceRangeMapDto) map.get(String.valueOf(num)) : null;
if (list != null) {
ArrayList arrayList2 = new ArrayList();
for (Object obj : list) {
InventoryConfigDto inventoryConfigDto = (InventoryConfigDto) obj;
if (kotlin.jvm.internal.r.f(inventoryConfigDto != null ? inventoryConfigDto.getApartmentTypeId() : null, num)) {
if ((inventoryConfigDto != null ? inventoryConfigDto.getPrice() : null) != null) {
arrayList2.add(obj);
}
}
}
arrayList = new ArrayList();
Iterator it = arrayList2.iterator();
while (it.hasNext()) {
InventoryConfigDto inventoryConfigDto2 = (InventoryConfigDto) it.next();
Float price = inventoryConfigDto2 != null ? inventoryConfigDto2.getPrice() : null;
if (price != null) {
arrayList.add(price);
}
}
} else {
arrayList = null;
}
if (arrayList == null || !(!arrayList.isEmpty())) {
return (!z || priceRangeMapDto == null) ? "Price On Request" : androidx.camera.camera2.internal.t2.D(priceRangeMapDto.getFormattedMinPrice(), " - ", priceRangeMapDto.getFormattedMaxPrice());
}
Float X = kotlin.collections.t.X(arrayList);
Float V = kotlin.collections.t.V(arrayList);
Integer g = X != null ? com.locon.core.data.p.g(X) : null;
Integer g2 = V != null ? com.locon.core.data.p.g(V) : null;
return (g == null || g2 == null || g.intValue() == 0 || g2.intValue() == 0 || z) ? (!z || priceRangeMapDto == null) ? "Price On Request" : androidx.camera.camera2.internal.t2.D(priceRangeMapDto.getFormattedMinPrice(), " - ", priceRangeMapDto.getFormattedMaxPrice()) : kotlin.jvm.internal.r.e(X, V) ? e0.f(g.intValue(), 6) : androidx.camera.camera2.internal.t2.D(e0.f(g.intValue(), 6), " - ", e0.f(g2.intValue(), 6));
}
public static String d(e eVar, Integer num, List list) {
Map d = t0.d();
eVar.getClass();
return c(num, list, false, d);
}
public static ArrayList e(List list, List list2) {
kotlin.jvm.internal.r.k(list, "preferences");
kotlin.jvm.internal.r.k(list2, "apartmentTypeIds");
if (!list.isEmpty()) {
ArrayList arrayList = new ArrayList();
for (Object obj : list) {
if (((CrfFormModel.f) obj).getIsSelected()) {
arrayList.add(obj);
}
}
ArrayList arrayList2 = new ArrayList(kotlin.collections.t.u(arrayList, 10));
Iterator it = arrayList.iterator();
while (it.hasNext()) {
arrayList2.add(Integer.valueOf(((CrfFormModel.f) it.next()).getId()));
}
return arrayList2;
}
ArrayList arrayList3 = new ArrayList();
for (Object obj2 : list2) {
if (!kotlin.jvm.internal.r.f((String) obj2, "null")) {
arrayList3.add(obj2);
}
}
ArrayList arrayList4 = new ArrayList();
Iterator it2 = arrayList3.iterator();
while (it2.hasNext()) {
String str = (String) it2.next();
Integer valueOf = str != null ? Integer.valueOf(Integer.parseInt(str)) : null;
if (valueOf != null) {
arrayList4.add(valueOf);
}
}
return arrayList4;
}
public static String f(String str) {
return kotlin.jvm.internal.r.f(str, "Buy") ? String.valueOf(sc.e0.Buy.getKey()) : kotlin.jvm.internal.r.f(str, "Buy") ? String.valueOf(sc.e0.Rent.getKey()) : "2";
}
public static String g(CrfFormModel crfFormModel, PropertyInfoModels$CrfModel propertyInfoModels$CrfModel, String str) {
kotlin.jvm.internal.r.k(crfFormModel, "crfFormModel");
kotlin.jvm.internal.r.k(propertyInfoModels$CrfModel, "serpCrfModel");
t tVar = t.INSTANCE;
List preferences = crfFormModel.getPreferences();
String propertyTitle = crfFormModel.g().getPropertyTitle();
String propertySubtitle = crfFormModel.g().getPropertySubtitle();
String canonicalUrl = propertyInfoModels$CrfModel.getShareData().getCanonicalUrl();
tVar.getClass();
kotlin.jvm.internal.r.k(canonicalUrl, "url");
String concat = "https://housing.com/".concat(canonicalUrl);
String localityName = propertyInfoModels$CrfModel.getLocalityName();
String str2 = localityName == null ? "" : localityName;
String cityName = propertyInfoModels$CrfModel.getCityName();
return t.i(propertyTitle, propertySubtitle, concat, str, str2, cityName == null ? "" : cityName, preferences);
}
public static String h(CrfFormModel crfFormModel, CrfInitDetails crfInitDetails, String str, String str2) {
kotlin.jvm.internal.r.k(crfFormModel, "crfFormModel");
kotlin.jvm.internal.r.k(crfInitDetails, "crfInitDetails");
kotlin.jvm.internal.r.k(str, "sellerName");
kotlin.jvm.internal.r.k(str2, "shortenedLink");
t tVar = t.INSTANCE;
List preferences = crfFormModel.getPreferences();
String propertyTitle = crfFormModel.g().getPropertyTitle();
String propertySubtitle = crfFormModel.g().getPropertySubtitle();
if (str2.length() == 0) {
String canonicalUrl = crfInitDetails.getShareData().getCanonicalUrl();
tVar.getClass();
kotlin.jvm.internal.r.k(canonicalUrl, "url");
str2 = "https://housing.com/".concat(canonicalUrl);
}
String str3 = str2;
String localityName = crfInitDetails.getLocalityName();
String str4 = localityName == null ? "" : localityName;
String cityName = crfInitDetails.getCityName();
String str5 = cityName == null ? "" : cityName;
tVar.getClass();
return t.i(propertyTitle, propertySubtitle, str3, str, str4, str5, preferences);
}
public static boolean i(SellersInfoDto sellersInfoDto) {
String listingOrderSubscriptionType = sellersInfoDto.getListingOrderSubscriptionType();
if (listingOrderSubscriptionType == null) {
listingOrderSubscriptionType = "";
}
Integer contactPersonId = sellersInfoDto.getContactPersonId();
int intValue = contactPersonId != null ? contactPersonId.intValue() : -1;
if (listingOrderSubscriptionType.length() <= 0 || intValue == -1) {
return false;
}
return (intValue == 2 && listingOrderSubscriptionType.equals("Premium")) || listingOrderSubscriptionType.equals("PremiumPlus") || listingOrderSubscriptionType.equals("Premium_Plus") || listingOrderSubscriptionType.equalsIgnoreCase("Premium Plus");
}
public static boolean j(ce.b bVar, Boolean bool) {
kotlin.jvm.internal.r.k(bVar, "crfFlowInitiator");
if (bVar != ce.b.CHAT) {
return bVar == ce.b.REQUEST_IMAGES && kotlin.jvm.internal.r.f(bool, Boolean.TRUE);
}
return true;
}
public static boolean k(Context context, com.locon.core.data.e eVar, ce.d dVar, String str) {
kotlin.jvm.internal.r.k(context, "context");
kotlin.jvm.internal.r.k(eVar, "buttonType");
kotlin.jvm.internal.r.k(dVar, "crfPropertyType");
kotlin.jvm.internal.r.k(str, "loginAuthToken");
if (eVar == com.locon.core.data.e.WHATSAPP && str.length() == 0) {
return (dVar == ce.d.NEW_PROJECT || dVar == ce.d.RENT || dVar == ce.d.RESALE) && com.locon.core.utils.k.a(context);
}
return false;
}
public static boolean l(zd.a aVar) {
kotlin.jvm.internal.r.k(aVar, "leadSuccessModel");
Boolean isFakeLead = aVar.getResult().getIsFakeLead();
Boolean bool = Boolean.FALSE;
if (kotlin.jvm.internal.r.f(isFakeLead, bool) && kotlin.jvm.internal.r.f(aVar.getResult().getIsBlockedLead(), bool)) {
return kotlin.jvm.internal.r.f(aVar.getStatus(), "LEAD_CAP_EXCEEDED") || kotlin.jvm.internal.r.f(aVar.getMessage(), "User limit to drop leads exhausted");
}
return false;
}
public static boolean m(zd.a aVar) {
kotlin.jvm.internal.r.k(aVar, "leadSuccessModel");
Boolean isFakeLead = aVar.getResult().getIsFakeLead();
if (isFakeLead != null) {
return isFakeLead.booleanValue();
}
return false;
}
public static void n(ce.b bVar, ConnectionDetail connectionDetail, com.locon.coreUI.utils.b bVar2, String str, String str2, boolean z) {
kotlin.jvm.internal.r.k(bVar, "crfFlowInitiator");
kotlin.jvm.internal.r.k(bVar2, "agentContactManager");
kotlin.jvm.internal.r.k(str2, "from");
int[] iArr = a.$EnumSwitchMapping$1;
if (iArr[bVar.ordinal()] == 1) {
vd.a.INSTANCE.getClass();
l0 a2 = vd.a.a();
if (a2 != null) {
a2.o(str, "whatsapp", com.locon.crf.presentation.ui.util.a.e(str2, com.locon.crf.presentation.ui.util.a.g(bVar)));
}
} else {
vd.a.INSTANCE.getClass();
l0 a3 = vd.a.a();
if (a3 != null) {
a3.o(str, "call", com.locon.crf.presentation.ui.util.a.e(str2, com.locon.crf.presentation.ui.util.a.g(bVar)));
}
}
ContactBy whatsApp = iArr[bVar.ordinal()] == 1 ? new ContactBy.WhatsApp(connectionDetail.getNumber(), connectionDetail.getMessage(), connectionDetail.getContext()) : new ContactBy.Dialer(connectionDetail.getNumber(), connectionDetail.getContext());
if (!(whatsApp instanceof ContactBy.Dialer)) {
if (!(whatsApp instanceof ContactBy.WhatsApp)) {
throw new zp.q();
}
ContactBy.WhatsApp whatsApp2 = (ContactBy.WhatsApp) whatsApp;
com.locon.core.utils.k.c(whatsApp2.getContext(), whatsApp2.getMessage(), whatsApp2.getNumber(), true, false);
return;
}
ContactBy.Dialer dialer = (ContactBy.Dialer) whatsApp;
if (z) {
o1.INSTANCE.getClass();
o1.z0(true);
}
bVar2.c(dialer.getNumber());
}
public static void o(e eVar, ce.b bVar, ConnectionDetail connectionDetail, com.locon.coreUI.utils.b bVar2, String str, String str2) {
eVar.getClass();
n(bVar, connectionDetail, bVar2, str, str2, true);
}
public static boolean p(zd.a aVar, List list, Long l) {
kotlin.jvm.internal.r.k(aVar, "leadSuccessModel");
kotlin.jvm.internal.r.k(list, "leadDroppedProperties");
if (kotlin.jvm.internal.r.f(aVar.getStatus(), "LEAD_CREATED_AND_OTP_TRIGGERED")) {
return false;
}
INSTANCE.getClass();
if (l(aVar) || m(aVar)) {
return false;
}
if (l == null) {
return true;
}
List list2 = list;
if ((list2 instanceof Collection) && list2.isEmpty()) {
return true;
}
Iterator it = list2.iterator();
while (it.hasNext()) {
if (kotlin.jvm.internal.r.f(((DroppedLead) it.next()).g(), l)) {
return false;
}
}
return true;
}
public static PropertiesForFeedback q(CrfInitDetails crfInitDetails) {
c0 c0Var;
String profileUuid;
String contactNumber;
CrfFormModel.SellerAttributes sellerAttributes;
CrfFormModel.SellerAttributes sellerAttributes2;
String sellerLabel;
String name;
String f;
kotlin.jvm.internal.r.k(crfInitDetails, "crfInitDetails");
t tVar = t.INSTANCE;
String propertySubtitle = crfInitDetails.s().g().getPropertySubtitle();
String propertyArea = crfInitDetails.s().g().getPropertyArea();
tVar.getClass();
String e = t.e(propertySubtitle, propertyArea);
String propertyTitle = crfInitDetails.s().g().getPropertyTitle();
String propertyImageUrl = crfInitDetails.s().g().getPropertyImageUrl();
Long serviceObjectId = crfInitDetails.getServiceObjectId();
int longValue = serviceObjectId != null ? (int) serviceObjectId.longValue() : -1;
String propertyType = crfInitDetails.getPropertyType();
String sourcePage = gf.g.CRF_APP.getSourcePage();
String propertyType2 = crfInitDetails.getPropertyType();
gf.c cVar = gf.c.FEEDBACK_CONTACTED_PROPERTY;
CrfFormModel.SellerModel sellerModel = (CrfFormModel.SellerModel) kotlin.collections.t.J(0, crfInitDetails.s().getSellers());
String str = (sellerModel == null || (f = sellerModel.f()) == null) ? "" : f;
CrfFormModel.SellerModel sellerModel2 = (CrfFormModel.SellerModel) kotlin.collections.t.J(0, crfInitDetails.s().getSellers());
String str2 = (sellerModel2 == null || (name = sellerModel2.getName()) == null) ? "" : name;
CrfFormModel.SellerModel sellerModel3 = (CrfFormModel.SellerModel) kotlin.collections.t.J(0, crfInitDetails.s().getSellers());
String str3 = (sellerModel3 == null || (sellerAttributes2 = sellerModel3.getSellerAttributes()) == null || (sellerLabel = sellerAttributes2.getSellerLabel()) == null) ? "" : sellerLabel;
CrfFormModel.SellerModel sellerModel4 = (CrfFormModel.SellerModel) kotlin.collections.t.J(0, crfInitDetails.s().getSellers());
if (sellerModel4 == null || (sellerAttributes = sellerModel4.getSellerAttributes()) == null || (c0Var = sellerAttributes.getSellerBadge()) == null) {
c0Var = c0.Unknown;
}
c0 c0Var2 = c0Var;
CrfFormModel.SellerModel sellerModel5 = (CrfFormModel.SellerModel) kotlin.collections.t.J(0, crfInitDetails.s().getSellers());
String str4 = (sellerModel5 == null || (contactNumber = sellerModel5.getContactNumber()) == null) ? "" : contactNumber;
CrfFormModel.SellerModel sellerModel6 = (CrfFormModel.SellerModel) kotlin.collections.t.J(0, crfInitDetails.s().getSellers());
PropertiesForFeedback propertiesForFeedback = new PropertiesForFeedback(e, "", propertyTitle, "", propertyImageUrl, 0, longValue, propertyType, sourcePage, propertyType2, cVar, new FeedbackSellerInfo(str, str2, str3, c0Var2, str4, (sellerModel6 == null || (profileUuid = sellerModel6.getProfileUuid()) == null) ? "" : profileUuid, 0, 64, null), null, null, 12320, null);
ff.a.INSTANCE.getClass();
ff.a.m(propertiesForFeedback);
return propertiesForFeedback;
}
}