正在查看: Housing v14.7.8 应用的 v3.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Housing v14.7.8 应用的 v3.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.locon.profile.presentation.ui.viewmodels;
import com.contentsquare.android.api.Currencies;
import com.locon.core.data.sharedmodels.ShareShortenedUrlData;
import com.locon.core.data.sharedmodels.ShareViaModel;
import com.locon.database.entities.PropertyLead;
import com.quickblox.core.helper.ToStringHelper;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.jvm.internal.SourceDebugExtension;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lkotlinx/coroutines/j0;", "Lzp/j0;", "<anonymous>", "(Lkotlinx/coroutines/j0;)V"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "com.locon.profile.presentation.ui.viewmodels.MyActivitySeeAllViewModel$generateContactedShareUrl$1", f = "MyActivitySeeAllViewModel.kt", i = {}, l = {743, Currencies.SEK, 761}, m = "invokeSuspend", n = {}, s = {})
@SourceDebugExtension({"SMAP\nMyActivitySeeAllViewModel.kt\nKotlin\n*S Kotlin\n*F\n+ 1 MyActivitySeeAllViewModel.kt\ncom/locon/profile/presentation/ui/viewmodels/MyActivitySeeAllViewModel$generateContactedShareUrl$1\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,2714:1\n774#2:2715\n865#2,2:2716\n1563#2:2718\n1634#2,3:2719\n774#2:2722\n865#2,2:2723\n1563#2:2725\n1634#2,3:2726\n774#2:2729\n865#2,2:2730\n1563#2:2732\n1634#2,3:2733\n*S KotlinDebug\n*F\n+ 1 MyActivitySeeAllViewModel.kt\ncom/locon/profile/presentation/ui/viewmodels/MyActivitySeeAllViewModel$generateContactedShareUrl$1\n*L\n744#1:2715\n744#1:2716,2\n746#1:2718\n746#1:2719,3\n753#1:2722\n753#1:2723,2\n755#1:2725\n755#1:2726,3\n762#1:2729\n762#1:2730,2\n764#1:2732\n764#1:2733,3\n*E\n"})
final class v3 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
final String $message;
final kotlin.jvm.internal.m0<List<String>> $project;
final kotlin.jvm.internal.m0<List<String>> $rent;
final kotlin.jvm.internal.m0<List<String>> $resale;
final String $serviceType;
final String $title;
final String $userName;
Object L$0;
int label;
final c3 this$0;
public v3(kotlin.jvm.internal.m0<List<String>> m0Var, c3 c3Var, kotlin.jvm.internal.m0<List<String>> m0Var2, kotlin.jvm.internal.m0<List<String>> m0Var3, String str, String str2, String str3, String str4, kotlin.coroutines.d<? super v3> dVar) {
super(2, dVar);
this.$resale = m0Var;
this.this$0 = c3Var;
this.$rent = m0Var2;
this.$project = m0Var3;
this.$serviceType = str;
this.$userName = str2;
this.$title = str3;
this.$message = str4;
}
@Override
public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
return new v3(this.$resale, this.this$0, this.$rent, this.$project, this.$serviceType, this.$userName, this.$title, this.$message, dVar);
}
@Override
public final Object invokeSuspend(Object obj) {
kotlin.jvm.internal.m0<List<String>> m0Var;
com.locon.profile.demand.usecases.a1 a1Var;
T t7;
kotlin.jvm.internal.m0<List<String>> m0Var2;
com.locon.profile.demand.usecases.a1 a1Var2;
T t10;
com.locon.profile.demand.usecases.a1 a1Var3;
kotlin.jvm.internal.m0<List<String>> m0Var3;
List list;
kotlin.jvm.internal.m0 m0Var4;
kotlin.jvm.internal.m0<List<String>> m0Var5;
List<String> list2;
kotlin.jvm.internal.m0<List<String>> m0Var6;
List<String> list3;
kotlin.jvm.internal.m0<List<String>> m0Var7;
List<String> list4;
kotlinx.coroutines.flow.w1 w1Var;
kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
int i8 = this.label;
T t11 = 0;
if (i8 == 0) {
zp.u.b(obj);
m0Var = this.$resale;
a1Var = this.this$0.useCases;
kotlinx.coroutines.flow.k a10 = ((com.locon.profile.demand.usecases.b1) a1Var).getGetContactedPropertyByType().a(com.locon.home.presentation.ui.viewModels.j0.RESALE);
kotlinx.coroutines.z0 z0Var = kotlinx.coroutines.z0.INSTANCE;
kotlinx.coroutines.flow.k y2 = kotlinx.coroutines.flow.m.y(a10, kotlinx.coroutines.scheduling.b.INSTANCE);
this.L$0 = m0Var;
this.label = 1;
obj = kotlinx.coroutines.flow.m.u(y2, this);
} else {
if (i8 != 1) {
if (i8 != 2) {
if (i8 != 3) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
m0Var3 = (kotlin.jvm.internal.m0) this.L$0;
zp.u.b(obj);
list = (List) obj;
if (list != null) {
ArrayList arrayList = new ArrayList();
for (Object obj2 : list) {
if (kotlin.jvm.internal.r.f(((PropertyLead) obj2).getPropertyType(), com.locon.home.presentation.ui.viewModels.j0.NEW_PROJECT)) {
arrayList.add(obj2);
}
}
t11 = new ArrayList(kotlin.collections.t.u(arrayList, 10));
Iterator it = arrayList.iterator();
while (it.hasNext()) {
t11.add(String.valueOf(((PropertyLead) it.next()).i()));
}
}
m0Var3.element = t11;
m0Var4 = new kotlin.jvm.internal.m0();
m0Var4.element = defpackage.a.n("https://housing.com/in/shared-listing?serviceName=", this.$serviceType, "&listName=contacted_properties&shared_listing=true&sharerName=", this.$userName, "&utm_source=Share_Profile_section_contacted&utm_medium=Share_bar");
m0Var5 = this.$resale;
list2 = m0Var5.element;
if (list2 != null && !list2.isEmpty()) {
Object obj3 = m0Var4.element;
List<String> list5 = m0Var5.element;
kotlin.jvm.internal.r.h(list5);
m0Var4.element = obj3 + "&resale=" + kotlin.collections.t.N(list5, ToStringHelper.COMMA_SEPARATOR, null, null, null, 62);
}
m0Var6 = this.$rent;
list3 = m0Var6.element;
if (list3 != null && !list3.isEmpty()) {
Object obj4 = m0Var4.element;
List<String> list6 = m0Var6.element;
kotlin.jvm.internal.r.h(list6);
m0Var4.element = obj4 + "&rent=" + kotlin.collections.t.N(list6, ToStringHelper.COMMA_SEPARATOR, null, null, null, 62);
}
m0Var7 = this.$project;
list4 = m0Var7.element;
if (list4 != null && !list4.isEmpty()) {
Object obj5 = m0Var4.element;
List<String> list7 = m0Var7.element;
kotlin.jvm.internal.r.h(list7);
m0Var4.element = obj5 + "&project=" + kotlin.collections.t.N(list7, ToStringHelper.COMMA_SEPARATOR, null, null, null, 62);
}
c3 c3Var = this.this$0;
String str = (String) m0Var4.element;
w1Var = c3Var._shareContactedFlow;
c3.j(c3Var, new ShareShortenedUrlData(str, "", ((ShareViaModel) w1Var.getValue()).getImage(), ""), this.$title, this.$message, 2);
return zp.j0.INSTANCE;
}
m0Var2 = (kotlin.jvm.internal.m0) this.L$0;
zp.u.b(obj);
List list8 = (List) obj;
if (list8 != null) {
ArrayList arrayList2 = new ArrayList();
for (Object obj6 : list8) {
if (kotlin.jvm.internal.r.f(((PropertyLead) obj6).getPropertyType(), "rent")) {
arrayList2.add(obj6);
}
}
t10 = new ArrayList(kotlin.collections.t.u(arrayList2, 10));
Iterator it2 = arrayList2.iterator();
while (it2.hasNext()) {
t10.add(String.valueOf(((PropertyLead) it2.next()).i()));
}
} else {
t10 = 0;
}
m0Var2.element = t10;
kotlin.jvm.internal.m0<List<String>> m0Var8 = this.$project;
a1Var3 = this.this$0.useCases;
kotlinx.coroutines.flow.k a11 = ((com.locon.profile.demand.usecases.b1) a1Var3).getGetContactedPropertyByType().a(com.locon.home.presentation.ui.viewModels.j0.NEW_PROJECT);
kotlinx.coroutines.z0 z0Var2 = kotlinx.coroutines.z0.INSTANCE;
kotlinx.coroutines.flow.k y7 = kotlinx.coroutines.flow.m.y(a11, kotlinx.coroutines.scheduling.b.INSTANCE);
this.L$0 = m0Var8;
this.label = 3;
Object u7 = kotlinx.coroutines.flow.m.u(y7, this);
if (u7 != aVar) {
m0Var3 = m0Var8;
obj = u7;
list = (List) obj;
if (list != null) {
}
m0Var3.element = t11;
m0Var4 = new kotlin.jvm.internal.m0();
m0Var4.element = defpackage.a.n("https://housing.com/in/shared-listing?serviceName=", this.$serviceType, "&listName=contacted_properties&shared_listing=true&sharerName=", this.$userName, "&utm_source=Share_Profile_section_contacted&utm_medium=Share_bar");
m0Var5 = this.$resale;
list2 = m0Var5.element;
if (list2 != null) {
Object obj32 = m0Var4.element;
List<String> list52 = m0Var5.element;
kotlin.jvm.internal.r.h(list52);
m0Var4.element = obj32 + "&resale=" + kotlin.collections.t.N(list52, ToStringHelper.COMMA_SEPARATOR, null, null, null, 62);
}
m0Var6 = this.$rent;
list3 = m0Var6.element;
if (list3 != null) {
Object obj42 = m0Var4.element;
List<String> list62 = m0Var6.element;
kotlin.jvm.internal.r.h(list62);
m0Var4.element = obj42 + "&rent=" + kotlin.collections.t.N(list62, ToStringHelper.COMMA_SEPARATOR, null, null, null, 62);
}
m0Var7 = this.$project;
list4 = m0Var7.element;
if (list4 != null) {
Object obj52 = m0Var4.element;
List<String> list72 = m0Var7.element;
kotlin.jvm.internal.r.h(list72);
m0Var4.element = obj52 + "&project=" + kotlin.collections.t.N(list72, ToStringHelper.COMMA_SEPARATOR, null, null, null, 62);
}
c3 c3Var2 = this.this$0;
String str2 = (String) m0Var4.element;
w1Var = c3Var2._shareContactedFlow;
c3.j(c3Var2, new ShareShortenedUrlData(str2, "", ((ShareViaModel) w1Var.getValue()).getImage(), ""), this.$title, this.$message, 2);
return zp.j0.INSTANCE;
}
return aVar;
}
m0Var = (kotlin.jvm.internal.m0) this.L$0;
zp.u.b(obj);
}
List list9 = (List) obj;
if (list9 != null) {
ArrayList arrayList3 = new ArrayList();
for (Object obj7 : list9) {
if (kotlin.jvm.internal.r.f(((PropertyLead) obj7).getPropertyType(), com.locon.home.presentation.ui.viewModels.j0.RESALE)) {
arrayList3.add(obj7);
}
}
t7 = new ArrayList(kotlin.collections.t.u(arrayList3, 10));
Iterator it3 = arrayList3.iterator();
while (it3.hasNext()) {
t7.add(String.valueOf(((PropertyLead) it3.next()).i()));
}
} else {
t7 = 0;
}
m0Var.element = t7;
m0Var2 = this.$rent;
a1Var2 = this.this$0.useCases;
kotlinx.coroutines.flow.k a12 = ((com.locon.profile.demand.usecases.b1) a1Var2).getGetContactedPropertyByType().a("rent");
kotlinx.coroutines.z0 z0Var3 = kotlinx.coroutines.z0.INSTANCE;
kotlinx.coroutines.flow.k y10 = kotlinx.coroutines.flow.m.y(a12, kotlinx.coroutines.scheduling.b.INSTANCE);
this.L$0 = m0Var2;
this.label = 2;
obj = kotlinx.coroutines.flow.m.u(y10, this);
}
@Override
public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
return ((v3) create(j0Var, dVar)).invokeSuspend(zp.j0.INSTANCE);
}
}