正在查看: Housing v14.7.8 应用的 b1.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Housing v14.7.8 应用的 b1.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.locon.presentation.ui;
import com.locon.core.data.Failure;
import com.locon.core.data.Result;
import com.locon.core.data.share.model.SeoCanonicalUrlModel;
import com.locon.core.data.sharedmodels.ShareData;
import com.locon.core.data.sharedmodels.ShareShortenedUrlData;
import com.locon.core.data.sharedmodels.ShareViaModel;
import kotlin.Metadata;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.jvm.internal.SourceDebugExtension;
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u00042\u0012\u0010\u0003\u001a\u000e\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u00020\u0000H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Lcom/locon/core/data/Result;", "Lcom/locon/core/data/Failure;", "Lcom/locon/core/data/q1;", "result", "Lzp/j0;", "<anonymous>", "(Lcom/locon/core/data/Result;)V"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "com.locon.presentation.ui.SerpViewModel$fetchSerpShareCanonicalUrl$3", f = "SerpViewModel.kt", i = {}, l = {7493}, m = "invokeSuspend", n = {}, s = {})
final class b1 extends eq.i implements kq.p<Result<? extends Failure, ? extends com.locon.core.data.q1>, kotlin.coroutines.d<? super zp.j0>, Object> {
final com.locon.core.data.share.e $initiator;
final String $message;
final kq.a<zp.j0> $onError;
final kq.l<String, zp.j0> $onSuccess;
final String $title;
final String $userName;
Object L$0;
int label;
final m this$0;
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lcom/locon/core/data/Failure;", "failure", "Lzp/j0;", "<anonymous>", "(Lcom/locon/core/data/Failure;)V"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "com.locon.presentation.ui.SerpViewModel$fetchSerpShareCanonicalUrl$3$1", f = "SerpViewModel.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
public static final class a extends eq.i implements kq.p<Failure, kotlin.coroutines.d<? super zp.j0>, Object> {
final kq.a<zp.j0> $onError;
Object L$0;
int label;
public a(kq.a<zp.j0> aVar, kotlin.coroutines.d<? super a> dVar) {
super(2, dVar);
this.$onError = aVar;
}
@Override
public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
a aVar = new a(this.$onError, dVar);
aVar.L$0 = obj;
return aVar;
}
@Override
public final Object invoke(Failure failure, kotlin.coroutines.d<? super zp.j0> dVar) {
return ((a) create(failure, dVar)).invokeSuspend(zp.j0.INSTANCE);
}
@Override
public final Object invokeSuspend(Object obj) {
kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
if (this.label != 0) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
zp.u.b(obj);
sr.a.INSTANCE.c("Seo canonical Url Api Failed", ((Failure) this.L$0).toString());
this.$onError.invoke();
return zp.j0.INSTANCE;
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lcom/locon/core/data/share/model/SeoCanonicalUrlModel;", "success", "Lzp/j0;", "<anonymous>", "(Lcom/locon/core/data/share/model/SeoCanonicalUrlModel;)V"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "com.locon.presentation.ui.SerpViewModel$fetchSerpShareCanonicalUrl$3$2", f = "SerpViewModel.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
@SourceDebugExtension({"SMAP\nSerpViewModel.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SerpViewModel.kt\ncom/locon/presentation/ui/SerpViewModel$fetchSerpShareCanonicalUrl$3$2\n+ 2 StateFlow.kt\nkotlinx/coroutines/flow/StateFlowKt\n*L\n1#1,9141:1\n230#2,5:9142\n*S KotlinDebug\n*F\n+ 1 SerpViewModel.kt\ncom/locon/presentation/ui/SerpViewModel$fetchSerpShareCanonicalUrl$3$2\n*L\n7521#1:9142,5\n*E\n"})
public static final class b extends eq.i implements kq.p<SeoCanonicalUrlModel, kotlin.coroutines.d<? super zp.j0>, Object> {
final com.locon.core.data.share.e $initiator;
final String $message;
final kq.l<String, zp.j0> $onSuccess;
final String $title;
final String $userName;
Object L$0;
int label;
final m this$0;
@Metadata(k = 3, mv = {2, 0, 0}, xi = 48)
public class a {
public static final int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[com.locon.core.data.share.e.values().length];
try {
iArr[com.locon.core.data.share.e.DEFAULT.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[com.locon.core.data.share.e.LISTINGS_FEEDBACK.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
$EnumSwitchMapping$0 = iArr;
}
}
public b(m mVar, String str, com.locon.core.data.share.e eVar, String str2, String str3, kq.l<? super String, zp.j0> lVar, kotlin.coroutines.d<? super b> dVar) {
super(2, dVar);
this.this$0 = mVar;
this.$userName = str;
this.$initiator = eVar;
this.$title = str2;
this.$message = str3;
this.$onSuccess = lVar;
}
@Override
public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
b bVar = new b(this.this$0, this.$userName, this.$initiator, this.$title, this.$message, this.$onSuccess, dVar);
bVar.L$0 = obj;
return bVar;
}
@Override
public final Object invoke(SeoCanonicalUrlModel seoCanonicalUrlModel, kotlin.coroutines.d<? super zp.j0> dVar) {
return ((b) create(seoCanonicalUrlModel, dVar)).invokeSuspend(zp.j0.INSTANCE);
}
@Override
public final Object invokeSuspend(Object obj) {
kotlinx.coroutines.flow.w1 w1Var;
kotlinx.coroutines.flow.w1 w1Var2;
Object value;
kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
if (this.label != 0) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
zp.u.b(obj);
SeoCanonicalUrlModel seoCanonicalUrlModel = (SeoCanonicalUrlModel) this.L$0;
sr.a.INSTANCE.a("Seo canonical Url Api success", seoCanonicalUrlModel.getShareUrl());
kotlin.jvm.internal.m0 m0Var = new kotlin.jvm.internal.m0();
m0Var.element = defpackage.a.r(defpackage.a.y("https://housing.com", seoCanonicalUrlModel.getShareUrl(), "?utm_source=sharebutton_", ((ShareData) this.this$0.getShareNudge().getValue()).getSource().getSourceName(), "&utm_medium=share_bar&shared_listing=true&name="), this.$userName, "&show_project_listing=false");
String b3 = com.locon.core.data.local.datastore.j.b((com.locon.core.data.local.datastore.i) this.this$0.getSelectedCollection().getValue());
if (this.this$0.G4(null) && b3.length() > 0) {
m0Var.element = m0Var.element + "&collection_name=" + b3;
}
int i8 = a.$EnumSwitchMapping$0[this.$initiator.ordinal()];
if (i8 == 1) {
m mVar = this.this$0;
String str = (String) m0Var.element;
w1Var = mVar._shareFlow;
kotlinx.coroutines.k.c(androidx.view.w0.a(mVar), null, null, new d2(mVar, new ShareShortenedUrlData(str, "", ((ShareViaModel) w1Var.getValue()).getImage(), ""), this.$title, this.$message, null), 3);
} else {
if (i8 != 2) {
throw new zp.q();
}
w1Var2 = this.this$0._srpUrl;
do {
value = w1Var2.getValue();
} while (!w1Var2.c(value, (String) m0Var.element));
}
this.$onSuccess.invoke(m0Var.element);
return zp.j0.INSTANCE;
}
}
public b1(m mVar, kq.a<zp.j0> aVar, String str, com.locon.core.data.share.e eVar, String str2, String str3, kq.l<? super String, zp.j0> lVar, kotlin.coroutines.d<? super b1> dVar) {
super(2, dVar);
this.this$0 = mVar;
this.$onError = aVar;
this.$userName = str;
this.$initiator = eVar;
this.$title = str2;
this.$message = str3;
this.$onSuccess = lVar;
}
@Override
public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
b1 b1Var = new b1(this.this$0, this.$onError, this.$userName, this.$initiator, this.$title, this.$message, this.$onSuccess, dVar);
b1Var.L$0 = obj;
return b1Var;
}
@Override
public final Object invoke(Result<? extends Failure, ? extends com.locon.core.data.q1> result, kotlin.coroutines.d<? super zp.j0> dVar) {
return ((b1) create(result, dVar)).invokeSuspend(zp.j0.INSTANCE);
}
@Override
public final Object invokeSuspend(Object obj) {
kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
int i8 = this.label;
if (i8 == 0) {
zp.u.b(obj);
Result result = (Result) this.L$0;
m mVar = this.this$0;
a aVar2 = new a(this.$onError, null);
b bVar = new b(this.this$0, this.$userName, this.$initiator, this.$title, this.$message, this.$onSuccess, null);
this.label = 1;
mVar.getClass();
if (m.w4(result, aVar2, bVar, this) == aVar) {
return aVar;
}
} else {
if (i8 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
zp.u.b(obj);
}
return zp.j0.INSTANCE;
}
}