导航菜单

页面标题

页面副标题

Housing v14.7.8 - s0.java 源代码

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

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


package com.locon.home.presentation.ui.handler;

import com.locon.core.data.Content;
import com.locon.core.data.FeatureName;
import com.locon.core.data.PayOnRentServiceType;
import com.locon.core.data.PayRentWithCCData;
import com.locon.core.domain.model.PayRentWithCCModel;
import com.locon.home.domain.model.sections.HookSection;
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 = {com.locon.home.presentation.ui.components.sections.t2.OFFICE_RENT_ID, 0, 0})
@DebugMetadata(c = "com.locon.home.presentation.ui.handler.CommercialSectionHandler$getHomePageHooks$1", f = "CommercialSectionHandler.kt", i = {}, l = {168}, m = "invokeSuspend", n = {}, s = {})
@SourceDebugExtension({"SMAP\nCommercialSectionHandler.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CommercialSectionHandler.kt\ncom/locon/home/presentation/ui/handler/CommercialSectionHandler$getHomePageHooks$1\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,271:1\n1#2:272\n1869#3,2:273\n*S KotlinDebug\n*F\n+ 1 CommercialSectionHandler.kt\ncom/locon/home/presentation/ui/handler/CommercialSectionHandler$getHomePageHooks$1\n*L\n178#1:273,2\n*E\n"})
final class s0 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
    int label;
    final x0 this$0;

    public s0(x0 x0Var, kotlin.coroutines.d<? super s0> dVar) {
        super(2, dVar);
        this.this$0 = x0Var;
    }

    public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
        return new s0(this.this$0, dVar);
    }

    public final Object invokeSuspend(Object obj) {
        com.locon.core.data.local.datastore.o0 o0Var;
        List list;
        kq.l lVar;
        Object obj2;
        List<Content> list2;
        PayRentWithCCData bannerForService;
        FeatureName homePage;
        kotlin.coroutines.intrinsics.a aVar = kotlin.coroutines.intrinsics.a.COROUTINE_SUSPENDED;
        int i = this.label;
        if (i == 0) {
            zp.u.b(obj);
            o0Var = this.this$0.housingPrefStore;
            kotlinx.coroutines.flow.k g = o0Var.g(com.locon.core.data.local.datastore.k2.POC_HOOKS, PayRentWithCCModel.class);
            this.label = 1;
            obj = kotlinx.coroutines.flow.m.u(g, this);
            if (obj == aVar) {
                return aVar;
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            zp.u.b(obj);
        }
        PayRentWithCCModel payRentWithCCModel = (PayRentWithCCModel) obj;
        if (payRentWithCCModel == null || (bannerForService = payRentWithCCModel.getBannerForService()) == null || (homePage = bannerForService.getHomePage()) == null || (list = homePage.getRENT()) == null) {
            list = kotlin.collections.g0.INSTANCE;
        }
        uq.b b = uq.a.b(kotlin.collections.t.S(new HookSection(uq.a.b(kotlin.collections.g0.INSTANCE), false, null, 6, null)));
        if (!list.isEmpty()) {
            ArrayList arrayList = new ArrayList();
            Iterator it = list.iterator();
            while (true) {
                if (!it.hasNext()) {
                    obj2 = null;
                    break;
                }
                obj2 = it.next();
                PayOnRentServiceType payOnRentServiceType = (PayOnRentServiceType) obj2;
                if (kotlin.jvm.internal.r.f(payOnRentServiceType != null ? payOnRentServiceType.getCampaignType() : null, "HOOKS") && kotlin.jvm.internal.r.f(payOnRentServiceType.getComponentType(), "SINGLE")) {
                    break;
                }
            }
            PayOnRentServiceType payOnRentServiceType2 = (PayOnRentServiceType) obj2;
            if (payOnRentServiceType2 == null || (list2 = payOnRentServiceType2.getContent()) == null) {
                list2 = kotlin.collections.g0.INSTANCE;
            }
            for (Content content : list2) {
                if (content != null) {
                    String redirectionUrl = content.getRedirectionUrl();
                    String str = (redirectionUrl == null || !kotlin.text.q.m(redirectionUrl, "pay-rent", false)) ? "TMLandingPage" : "HOUSING_RENT";
                    String contentUrl = content.getContentUrl();
                    com.locon.core.data.u uVar = contentUrl != null ? new com.locon.core.data.u(1, str, "https://housing.com/edge/pay-rent?source=home", contentUrl) : null;
                    if (uVar != null) {
                        arrayList.add(uVar);
                    }
                }
            }
            if (arrayList.size() == 2) {
                b = uq.a.b(kotlin.collections.t.S(new HookSection(uq.a.b(arrayList), false, null, 6, null)));
            }
        }
        if (!((HookSection) b.get(0)).getIsEmpty()) {
            lVar = this.this$0.onSectionAdded;
            lVar.invoke(b.get(0));
        }
        return zp.j0.INSTANCE;
    }

    public final Object invoke(kotlinx.coroutines.j0 j0Var, kotlin.coroutines.d<? super zp.j0> dVar) {
        return create(j0Var, dVar).invokeSuspend(zp.j0.INSTANCE);
    }
}