导航菜单

页面标题

页面副标题

Housing v14.7.8 - x1.java 源代码

正在查看: Housing v14.7.8 应用的 x1.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.PayRentWithCreditCardSection;
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.PlotSectionHandler$getHomepage2Hooks$1", f = "PlotSectionHandler.kt", i = {}, l = {249}, m = "invokeSuspend", n = {}, s = {})
@SourceDebugExtension({"SMAP\nPlotSectionHandler.kt\nKotlin\n*S Kotlin\n*F\n+ 1 PlotSectionHandler.kt\ncom/locon/home/presentation/ui/handler/PlotSectionHandler$getHomepage2Hooks$1\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,710:1\n1#2:711\n*E\n"})
final class x1 extends eq.i implements kq.p<kotlinx.coroutines.j0, kotlin.coroutines.d<? super zp.j0>, Object> {
    int label;
    final d2 this$0;

    public x1(d2 d2Var, kotlin.coroutines.d<? super x1> dVar) {
        super(2, dVar);
        this.this$0 = d2Var;
    }

    public final kotlin.coroutines.d<zp.j0> create(Object obj, kotlin.coroutines.d<?> dVar) {
        return new x1(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 list2;
        String contentUrl;
        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.getBUY()) == null) {
            list = kotlin.collections.g0.INSTANCE;
        }
        uq.b b = uq.a.b(kotlin.collections.t.S(new PayRentWithCreditCardSection(uq.a.b(kotlin.collections.g0.INSTANCE), false, 2, 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(), "CUSTOM_MULTI")) {
                    break;
                }
            }
            PayOnRentServiceType payOnRentServiceType2 = (PayOnRentServiceType) obj2;
            if (payOnRentServiceType2 == null || (list2 = payOnRentServiceType2.getContent()) == null) {
                list2 = kotlin.collections.g0.INSTANCE;
            }
            Content content = (Content) kotlin.collections.t.J(2, list2);
            String contentUrl2 = content != null ? content.getContentUrl() : null;
            if (!list2.isEmpty()) {
                Content content2 = (Content) kotlin.collections.t.J(2, list2);
                if (contentUrl2 != null) {
                    com.locon.core.data.s0 s0Var = (content2 == null || (contentUrl = content2.getContentUrl()) == null) ? null : new com.locon.core.data.s0(1, "", "https://housing.com/edge/pay-rent?source=home", contentUrl);
                    if (s0Var != null) {
                        arrayList.add(s0Var);
                    }
                }
            }
            if (arrayList.size() == 1) {
                b = uq.a.b(kotlin.collections.t.S(new PayRentWithCreditCardSection(uq.a.b(arrayList), false, 2, null)));
            }
        }
        if (!b.isEmpty()) {
            ((PayRentWithCreditCardSection) b.get(0)).getClass();
            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);
    }
}