package xe; import android.content.res.Resources; import android.os.Bundle; import android.util.TypedValue; import android.view.ViewGroup; import androidx.lifecycle.Lifecycle; import androidx.recyclerview.widget.DiffUtil; import androidx.recyclerview.widget.RecyclerView; import com.alibaba.wireless.security.open.nocaptcha.INoCaptchaComponent; import com.drakeet.multitype.MultiTypeAdapter; import com.google.gson.Gson; import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting; import com.xingin.alioth.R$string; import com.xingin.alioth.entities.SearchNoteItem; import com.xingin.alioth.entities.bean.FilterTag; import com.xingin.alioth.entities.bean.FilterTagListWrapper; import com.xingin.alioth.pages.param.SkuPageParamDialog; import com.xingin.alioth.pages.score.PageScoreDialog; import com.xingin.alioth.pages.sku.entities.BrandInfo; import com.xingin.alioth.pages.sku.entities.CollectStatusInfo; import com.xingin.alioth.pages.sku.entities.SimpleImageInfo; import com.xingin.alioth.pages.sku.entities.SkuBaseInfo; import com.xingin.alioth.pages.sku.entities.SkuExceptionBean; import com.xingin.alioth.pages.sku.entities.SkuFooterBean; import com.xingin.alioth.pages.sku.entities.SkuPageInfoV3; import com.xingin.alioth.pages.sku.entities.SkuPageRelatedProduct; import com.xingin.alioth.pages.sku.entities.SkuRankInfo; import com.xingin.alioth.pages.sku.entities.SkuRedHeartInfo; import com.xingin.alioth.pages.sku.entities.TagScoreInfo; import com.xingin.alioth.pages.sku.page.SkuPresenter; import com.xingin.alioth.pages.vendor.activity.VendorListBottomSheetActivity; import com.xingin.android.redutils.base.XhsActivity; import com.xingin.android.xhscomm.router.Routers; import com.xingin.entities.HashTagListBean; import com.xingin.foundation.framework.v2.recyclerview.KotlinViewHolder; import com.xingin.matrix.profile.entities.RecomendUserInfoBean; import com.xingin.pages.CapaDeeplinkUtils; import com.xingin.pages.Pages; import java.util.Iterator; import java.util.List; import java.util.Map; import kotlin.Metadata; import kotlin.Pair; import kotlin.Triple; import kotlin.Unit; import kotlin.collections.CollectionsKt__CollectionsJVMKt; import kotlin.collections.CollectionsKt___CollectionsKt; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.FunctionReferenceImpl; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.Lambda; import qe.k0; import t10.p0; @Metadata(bv = {}, d1 = {"\u0000¢\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u000b\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010%\n\u0002\u0010\u0000\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0010\u0007\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u000f\u0018\u00002\u0014\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u00030\u0001B\u0007¢\u0006\u0004\bi\u0010jJ\b\u0010\u0005\u001a\u00020\u0004H\u0002J\b\u0010\u0006\u001a\u00020\u0004H\u0002J\b\u0010\u0007\u001a\u00020\u0004H\u0002J\b\u0010\t\u001a\u00020\bH\u0002J\b\u0010\n\u001a\u00020\bH\u0002J\b\u0010\u000b\u001a\u00020\bH\u0002J\b\u0010\f\u001a\u00020\bH\u0002J\b\u0010\r\u001a\u00020\bH\u0002J\b\u0010\u000e\u001a\u00020\bH\u0002J\b\u0010\u000f\u001a\u00020\u0004H\u0002J\b\u0010\u0010\u001a\u00020\u0004H\u0002J\b\u0010\u0011\u001a\u00020\bH\u0002J\b\u0010\u0012\u001a\u00020\bH\u0002J\b\u0010\u0013\u001a\u00020\bH\u0002J \u0010\u0018\u001a\u00020\b2\n\b\u0002\u0010\u0015\u001a\u0004\u0018\u00010\u00142\n\b\u0002\u0010\u0017\u001a\u0004\u0018\u00010\u0016H\u0002J\u0010\u0010\u001b\u001a\u00020\b2\u0006\u0010\u001a\u001a\u00020\u0019H\u0002J\u0010\u0010\u001e\u001a\u00020\b2\u0006\u0010\u001d\u001a\u00020\u001cH\u0002J*\u0010$\u001a\u00020\b2 \u0010#\u001a\u001c\u0012\u0004\u0012\u00020 \u0012\u0012\u0012\u0010\u0012\u0004\u0012\u00020\u0014\u0012\u0006\b\u0001\u0012\u00020\"0!0\u001fH\u0002J\u0014\u0010&\u001a\u00020\b2\n\b\u0002\u0010%\u001a\u0004\u0018\u00010\u0014H\u0002J\b\u0010'\u001a\u00020\bH\u0002J\u0012\u0010*\u001a\u00020\b2\b\u0010)\u001a\u0004\u0018\u00010(H\u0014J\b\u0010+\u001a\u00020\bH\u0014R\"\u0010-\u001a\u00020,8\u0006@\u0006X.¢\u0006\u0012\n\u0004\b-\u0010.\u001a\u0004\b/\u00100\"\u0004\b1\u00102R(\u00104\u001a\b\u0012\u0004\u0012\u00020\u0014038\u0006@\u0006X.¢\u0006\u0012\n\u0004\b4\u00105\u001a\u0004\b6\u00107\"\u0004\b8\u00109R\"\u0010;\u001a\u00020:8\u0006@\u0006X.¢\u0006\u0012\n\u0004\b;\u0010<\u001a\u0004\b=\u0010>\"\u0004\b?\u0010@R\"\u0010B\u001a\u00020A8\u0006@\u0006X.¢\u0006\u0012\n\u0004\bB\u0010C\u001a\u0004\bD\u0010E\"\u0004\bF\u0010GR(\u0010J\u001a\b\u0012\u0004\u0012\u00020I0H8\u0006@\u0006X.¢\u0006\u0012\n\u0004\bJ\u0010K\u001a\u0004\bL\u0010M\"\u0004\bN\u0010OR(\u0010R\u001a\b\u0012\u0004\u0012\u00020Q0P8\u0006@\u0006X.¢\u0006\u0012\n\u0004\bR\u0010S\u001a\u0004\bT\u0010U\"\u0004\bV\u0010WR(\u0010Y\u001a\b\u0012\u0004\u0012\u00020X0H8\u0006@\u0006X.¢\u0006\u0012\n\u0004\bY\u0010K\u001a\u0004\bZ\u0010M\"\u0004\b[\u0010OR\"\u0010]\u001a\u00020\\8\u0006@\u0006X.¢\u0006\u0012\n\u0004\b]\u0010^\u001a\u0004\b_\u0010`\"\u0004\ba\u0010bR\"\u0010c\u001a\u00020\u00148\u0006@\u0006X.¢\u0006\u0012\n\u0004\bc\u0010d\u001a\u0004\be\u0010f\"\u0004\bg\u0010h¨\u0006k"}, d2 = {"Lxe/w;", "Ltu0/b;", "Lcom/xingin/alioth/pages/sku/page/SkuPresenter;", "Lxe/a0;", "Lhw2/c;", "listenAttachEvent", "listenLifecycleEvent", "listenToolbarClickEvent", "", INoCaptchaComponent.f17800x1, "p1", "q1", "B1", "r1", "t1", "listenLoadMoreEvent", com.alipay.sdk.widget.c.f18364b, "o1", "refreshData", "loadMore", "", "sortType", "Lcom/xingin/alioth/entities/bean/FilterTag;", "filterTag", "filterOrSortRelatedNote", "Lqe/b;", HashTagListBean.HashTag.TYPE_AREA, "n1", "Lxj/f0;", "filterAction", "handleFilterClickEvent", "Lkotlin/Pair;", "Lcom/xingin/alioth/entities/SearchNoteItem;", "", "", "pair", "handleNoteClickEvent", "strName", "e1", "A1", "Landroid/os/Bundle;", "savedInstanceState", "onAttach", "onDetach", "Lcom/xingin/android/redutils/base/XhsActivity;", "activity", "Lcom/xingin/android/redutils/base/XhsActivity;", "getActivity", "()Lcom/xingin/android/redutils/base/XhsActivity;", "setActivity", "(Lcom/xingin/android/redutils/base/XhsActivity;)V", "Ldx2/d;", "similarDialogConfirmSubject", "Ldx2/d;", "k1", "()Ldx2/d;", "setSimilarDialogConfirmSubject", "(Ldx2/d;)V", "Lqe/w;", "dataModel", "Lqe/w;", "i1", "()Lqe/w;", "setDataModel", "(Lqe/w;)V", "Lqe/k0;", "trackHelper", "Lqe/k0;", "m1", "()Lqe/k0;", "setTrackHelper", "(Lqe/k0;)V", "Ldw2/y;", "", "toolbarAlphaChangeObserver", "Ldw2/y;", "l1", "()Ldw2/y;", "setToolbarAlphaChangeObserver", "(Ldw2/y;)V", "Ldw2/r;", "Lye/f;", "toolbarClickActionObservable", "Ldw2/r;", "getToolbarClickActionObservable", "()Ldw2/r;", "setToolbarClickActionObservable", "(Ldw2/r;)V", "Lye/m;", "toolbarUIStateObserver", "getToolbarUIStateObserver", "setToolbarUIStateObserver", "Lcom/drakeet/multitype/MultiTypeAdapter;", "adapter", "Lcom/drakeet/multitype/MultiTypeAdapter;", "getAdapter", "()Lcom/drakeet/multitype/MultiTypeAdapter;", "setAdapter", "(Lcom/drakeet/multitype/MultiTypeAdapter;)V", "intentAwardId", "Ljava/lang/String;", "j1", "()Ljava/lang/String;", "setIntentAwardId", "(Ljava/lang/String;)V", "<init>", "()V", "alioth_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: SkuController.kt */ public final class w extends tu0.b<SkuPresenter, w, a0> { /* renamed from: a reason: collision with root package name */ public XhsActivity f154147a; /* renamed from: b reason: collision with root package name */ public dx2.d<String> f154148b; /* renamed from: c reason: collision with root package name */ public qe.w f154149c; /* renamed from: d reason: collision with root package name */ public k0 f154150d; /* renamed from: e reason: collision with root package name */ public dw2.y<Float> f154151e; /* renamed from: f reason: collision with root package name */ public dw2.r<ye.f> f154152f; /* renamed from: g reason: collision with root package name */ public dw2.y<ye.m> f154153g; /* renamed from: h reason: collision with root package name */ public MultiTypeAdapter f154154h; /* renamed from: i reason: collision with root package name */ public String f154155i; /* renamed from: j reason: collision with root package name */ public boolean f154156j; /* renamed from: k reason: collision with root package name */ public ye.m f154157k = ye.o.f157712a.b(); /* renamed from: l reason: collision with root package name */ public dx2.g<Unit> f154158l; /* renamed from: m reason: collision with root package name */ public ue.a f154159m; @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class a { /* renamed from: a reason: collision with root package name */ public static final /* synthetic */ int[] f154160a; static { int[] iArr = new int[qe.b.values().length]; iArr[qe.b.SKU_CLICK_BRAND_PARAM.ordinal()] = 1; iArr[qe.b.SKU_CLICK_MORE_PARAM.ordinal()] = 2; iArr[qe.b.SKU_CLICK_BASE_INFO_BUYABLE.ordinal()] = 3; f154160a = iArr; } } @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0005"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class a0 extends Lambda implements Function1<String, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154161a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a0(w wVar) { super(1); this.f154161a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(String str) { invoke(str); return Unit.INSTANCE; } public final void invoke(String str) { qe.w i14 = this.f154161a.i1(); Intrinsics.checkNotNullExpressionValue(str, AdvanceSetting.NETWORK_TYPE); i14.X(str); this.f154161a.refreshData(); } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class b extends Lambda implements Function1<Boolean, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154162a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public b(w wVar) { super(1); this.f154162a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Boolean bool) { invoke(bool.booleanValue()); return Unit.INSTANCE; } public final void invoke(boolean z14) { ((SkuPresenter) this.f154162a.getPresenter()).showLoading(z14); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class b0 extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public b0(Object obj) { super(1, obj, wj.m.class, "e", "e(Ljava/lang/Throwable;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); wj.m.d(th3); } } @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lqe/b;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lqe/b;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: SkuController.kt */ public static final class c extends Lambda implements Function1<qe.b, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154163a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c(w wVar) { super(1); this.f154163a = wVar; } public final void a(qe.b bVar) { w wVar = this.f154163a; Intrinsics.checkNotNullExpressionValue(bVar, AdvanceSetting.NETWORK_TYPE); wVar.n1(bVar); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(qe.b bVar) { a(bVar); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lye/f;", AdvanceSetting.NETWORK_TYPE, "", "invoke", "(Lye/f;)V", "<anonymous>"}, k = 3, mv = {1, 6, 0}) /* compiled from: SkuController.kt */ public static final class c0 extends Lambda implements Function1<ye.f, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154164a; @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class a { /* renamed from: a reason: collision with root package name */ public static final /* synthetic */ int[] f154165a; static { int[] iArr = new int[ye.f.values().length]; iArr[ye.f.TOOLBAR_CLICK_LEFT_ONE.ordinal()] = 1; iArr[ye.f.TOOLBAR_CLICK_RIGHT_ONE.ordinal()] = 2; f154165a = iArr; } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c0(w wVar) { super(1); this.f154164a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(ye.f fVar) { invoke(fVar); return Unit.INSTANCE; } public final void invoke(ye.f fVar) { SkuRankInfo skuRankInfo; T t14; Intrinsics.checkNotNullParameter(fVar, AdvanceSetting.NETWORK_TYPE); int i10 = a.f154165a[fVar.ordinal()]; if (i10 == 1) { this.f154164a.getActivity().onBackPressed(); } else if (i10 == 2) { Iterator<T> it3 = this.f154164a.i1().G().iterator(); while (true) { skuRankInfo = null; if (!it3.hasNext()) { t14 = null; break; } t14 = it3.next(); if (t14 instanceof SkuPageInfoV3) { break; } } if (!(t14 instanceof SkuPageInfoV3)) { t14 = null; } T t15 = t14; if (t15 != null) { w wVar = this.f154164a; Object obj = CollectionsKt___CollectionsKt.getOrNull(wVar.i1().G(), 1); SkuRedHeartInfo skuRedHeartInfo = obj instanceof SkuRedHeartInfo ? (SkuRedHeartInfo) obj : null; if (skuRedHeartInfo != null) { skuRankInfo = skuRedHeartInfo.getRankInfo(); } sc2.n.f129297a.b(wVar.getActivity(), wj.s.e(t15, skuRankInfo)); wVar.m1().s(); } } } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class d extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public d(Object obj) { super(1, obj, wj.m.class, "e", "e(Ljava/lang/Throwable;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); wj.m.d(th3); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class d0 extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public d0(Object obj) { super(1, obj, wj.m.class, "e", "e(Ljava/lang/Throwable;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); wj.m.d(th3); } } @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0006\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lxj/f0;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "invoke", "(Lxj/f0;)V", "<anonymous>"}, k = 3, mv = {1, 6, 0}) /* compiled from: SkuController.kt */ public static final class e extends Lambda implements Function1<xj.f0, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154166a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public e(w wVar) { super(1); this.f154166a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(xj.f0 f0Var) { invoke(f0Var); return Unit.INSTANCE; } public final void invoke(xj.f0 f0Var) { w wVar = this.f154166a; Intrinsics.checkNotNullExpressionValue(f0Var, AdvanceSetting.NETWORK_TYPE); wVar.handleFilterClickEvent(f0Var); } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class e0 extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154167a; @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lcom/xingin/alioth/pages/sku/entities/CollectStatusInfo;", "kotlin.jvm.PlatformType", "tagLevelInfo", "", "a", "(Lcom/xingin/alioth/pages/sku/entities/CollectStatusInfo;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: SkuController.kt */ public static final class a extends Lambda implements Function1<CollectStatusInfo, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ SkuPageInfoV3 f154168a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ re.a f154169b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ w f154170c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ boolean f154171d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(SkuPageInfoV3 skuPageInfoV3, re.a aVar, w wVar, boolean z14) { super(1); this.f154168a = skuPageInfoV3; this.f154169b = aVar; this.f154170c = wVar; this.f154171d = z14; } public final void a(CollectStatusInfo collectStatusInfo) { SkuPageInfoV3 skuPageInfoV3 = this.f154168a; Intrinsics.checkNotNullExpressionValue(collectStatusInfo, "tagLevelInfo"); skuPageInfoV3.setCollectInfo(collectStatusInfo); boolean z14 = collectStatusInfo.getStatus() == this.f154169b; if (!z14) { ((SkuPresenter) this.f154170c.getPresenter()).h(true ^ this.f154171d); } boolean z15 = this.f154171d; if (z15 && z14) { this.f154170c.A1(); } else if (z15 && !z14) { al2.e.f(R$string.f38476alioth_poi_collect_failed); } else if (!z15 && z14) { al2.e.f(R$string.f38497alioth_poi_uncollect_success); } else if (!z15 && !z14) { al2.e.f(R$string.g_); } } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(CollectStatusInfo collectStatusInfo) { a(collectStatusInfo); return Unit.INSTANCE; } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class b extends Lambda implements Function1<Throwable, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154172a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ boolean f154173b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public b(w wVar, boolean z14) { super(1); this.f154172a = wVar; this.f154173b = z14; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, AdvanceSetting.NETWORK_TYPE); ((SkuPresenter) this.f154172a.getPresenter()).h(!this.f154173b); al2.e.f(this.f154173b ? R$string.f38476alioth_poi_collect_failed : R$string.g_); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public e0(w wVar) { super(1); this.f154167a = wVar; } public static final void b(w wVar, boolean z14, hw2.c cVar) { Intrinsics.checkNotNullParameter(wVar, "this$0"); ((SkuPresenter) wVar.getPresenter()).h(z14); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Unit unit) { invoke(unit); return Unit.INSTANCE; } public final void invoke(Unit unit) { T t14; T t15; Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); Iterator<T> it3 = this.f154167a.i1().G().iterator(); while (true) { t14 = null; if (!it3.hasNext()) { t15 = null; break; } t15 = it3.next(); if (t15 instanceof SkuPageInfoV3) { break; } } if (t15 instanceof SkuPageInfoV3) { t14 = t15; } T t16 = t14; if (t16 != null) { w wVar = this.f154167a; re.a status = t16.getCollectInfo().getStatus(); re.a aVar = re.a.UNCOLLECT; boolean z14 = status == aVar; if (z14) { aVar = re.a.COLLECTED; } dw2.r<CollectStatusInfo> n04 = wVar.i1().Z(aVar).n0(new x(wVar, z14)); Intrinsics.checkNotNullExpressionValue(n04, "dataModel.wantOrNotBuy(t…llectOrNot)\n }"); bj2.h.f(n04, wVar, new a(t16, aVar, wVar, z14), new b(wVar, z14)); } } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class f extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public f(Object obj) { super(1, obj, wj.m.class, "e", "e(Ljava/lang/Throwable;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); wj.m.d(th3); } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class f0 extends Lambda implements Function1<Boolean, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154174a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public f0(w wVar) { super(1); this.f154174a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Boolean bool) { invoke(bool.booleanValue()); return Unit.INSTANCE; } public final void invoke(boolean z14) { ((SkuPresenter) this.f154174a.getPresenter()).showLoading(z14); } } @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0006\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lxj/f0;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "invoke", "(Lxj/f0;)V", "<anonymous>"}, k = 3, mv = {1, 6, 0}) /* compiled from: SkuController.kt */ public static final class g extends Lambda implements Function1<xj.f0, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154175a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public g(w wVar) { super(1); this.f154175a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(xj.f0 f0Var) { invoke(f0Var); return Unit.INSTANCE; } public final void invoke(xj.f0 f0Var) { w wVar = this.f154175a; Intrinsics.checkNotNullExpressionValue(f0Var, AdvanceSetting.NETWORK_TYPE); wVar.handleFilterClickEvent(f0Var); } } @Metadata(bv = {}, d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\n\u001a\u00020\u00072>\u0010\u0006\u001a:\u0012\u0004\u0012\u00020\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00030\u0002\u0012\u0004\u0012\u00020\u0004 \u0005*\u001c\u0012\u0004\u0012\u00020\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00030\u0002\u0012\u0004\u0012\u00020\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\b\u0010\t"}, d2 = {"Lkotlin/Triple;", "Lqe/i0;", "", "", "Landroidx/recyclerview/widget/DiffUtil$DiffResult;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "invoke", "(Lkotlin/Triple;)V", "<anonymous>"}, k = 3, mv = {1, 6, 0}) /* compiled from: SkuController.kt */ public static final class g0 extends Lambda implements Function1<Triple<? extends qe.i0, ? extends List<? extends Object>, ? extends DiffUtil.DiffResult>, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154176a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public g0(w wVar) { super(1); this.f154176a = wVar; } public static final void b(w wVar) { Intrinsics.checkNotNullParameter(wVar, "this$0"); ((SkuPresenter) wVar.getPresenter()).l(); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Triple<? extends qe.i0, ? extends List<? extends Object>, ? extends DiffUtil.DiffResult> triple) { invoke(triple); return Unit.INSTANCE; } public final void invoke(Triple<? extends qe.i0, ? extends List<? extends Object>, ? extends DiffUtil.DiffResult> triple) { SkuPageInfoV3 skuPageInfoV3; Object obj; RecyclerView recyclerView = ((SkuPresenter) this.f154176a.getPresenter()).getRecyclerView(); Intrinsics.checkNotNullExpressionValue(recyclerView, "presenter.getRecyclerView()"); p0.b(recyclerView); this.f154176a.getAdapter().o((List) triple.getSecond()); ((DiffUtil.DiffResult) triple.getThird()).dispatchUpdatesTo(this.f154176a.getAdapter()); wj.e.q(new y(this.f154176a)); if (triple.getFirst() == qe.i0.TOP_INFO) { Iterator it3 = ((List) triple.getSecond()).iterator(); while (true) { skuPageInfoV3 = null; if (!it3.hasNext()) { obj = null; break; } obj = it3.next(); if (obj instanceof SkuPageInfoV3) { break; } } if (obj instanceof SkuPageInfoV3) { skuPageInfoV3 = obj; } SkuPageInfoV3 skuPageInfoV32 = skuPageInfoV3; if (skuPageInfoV32 != null) { w wVar = this.f154176a; wVar.e1(skuPageInfoV32.getTitle()); ((SkuPresenter) wVar.getPresenter()).h(skuPageInfoV32.getCollectInfo().getStatus() == re.a.COLLECTED); ((SkuPresenter) wVar.getPresenter()).f(skuPageInfoV32.getScoreInfo(), skuPageInfoV32.getCollectInfo()); } } } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class h extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public h(Object obj) { super(1, obj, wj.m.class, "e", "e(Ljava/lang/Throwable;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); wj.m.d(th3); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class h0 extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public h0(Object obj) { super(1, obj, wj.m.class, "e", "e(Ljava/lang/Throwable;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); wj.m.d(th3); } } @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "kotlin.jvm.PlatformType", "invoke", "(Ljava/lang/Integer;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class i extends Lambda implements Function1<Integer, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154177a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public i(w wVar) { super(1); this.f154177a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Integer num) { invoke(num); return Unit.INSTANCE; } public final void invoke(Integer num) { k0 m14 = this.f154177a.m1(); Intrinsics.checkNotNullExpressionValue(num, AdvanceSetting.NETWORK_TYPE); m14.z(num.intValue()); } } @Metadata(bv = {}, d1 = {"\u0000\u0017\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u0006\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u0007\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016¨\u0006\b"}, d2 = {"xe/w$i0", "Lce/s;", "", RecomendUserInfoBean.STYLE_SCORE, "", "onSuccess", "b", "a", "alioth_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: SkuController.kt */ public static final class i0 implements ce.s { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154178a; public i0(w wVar) { this.f154178a = wVar; } @Override // ce.s public void a(int i10) { this.f154178a.m1().A(i10); } @Override // ce.s public void b(int i10) { this.f154178a.m1().i(i10); } @Override // ce.s public void onSuccess(int i10) { T t14; TagScoreInfo tagScoreInfo = new TagScoreInfo(i10, System.currentTimeMillis()); Iterator<T> it3 = this.f154178a.i1().G().iterator(); while (true) { if (!it3.hasNext()) { t14 = null; break; } t14 = it3.next(); if (t14 instanceof SkuPageInfoV3) { break; } } if (!(t14 instanceof SkuPageInfoV3)) { t14 = null; } T t15 = t14; if (t15 != null) { t15.setScoreInfo(tagScoreInfo); } ((SkuPresenter) this.f154178a.getPresenter()).f(tagScoreInfo, null); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class j extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public j(Object obj) { super(1, obj, wj.m.class, "e", "e(Ljava/lang/Throwable;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); wj.m.d(th3); } } @Metadata(d1 = {"\u0000 \n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010%\n\u0002\u0010\u000e\n\u0002\u0010\u0000\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012B\u0010\u0002\u001a>\u0012\u0004\u0012\u00020\u0004\u0012\u0012\u0012\u0010\u0012\u0004\u0012\u00020\u0006\u0012\u0006\b\u0001\u0012\u00020\u00070\u0005 \b*\u001e\u0012\u0004\u0012\u00020\u0004\u0012\u0012\u0012\u0010\u0012\u0004\u0012\u00020\u0006\u0012\u0006\b\u0001\u0012\u00020\u00070\u0005\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\t"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "Lkotlin/Pair;", "Lcom/xingin/alioth/entities/SearchNoteItem;", "", "", "", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class k extends Lambda implements Function1<Pair<? extends SearchNoteItem, ? extends Map<String, ? extends Object>>, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154179a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public k(w wVar) { super(1); this.f154179a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Pair<? extends SearchNoteItem, ? extends Map<String, ? extends Object>> pair) { invoke((Pair<SearchNoteItem, ? extends Map<String, ? extends Object>>) pair); return Unit.INSTANCE; } public final void invoke(Pair<SearchNoteItem, ? extends Map<String, ? extends Object>> pair) { w wVar = this.f154179a; Intrinsics.checkNotNullExpressionValue(pair, AdvanceSetting.NETWORK_TYPE); wVar.handleNoteClickEvent(pair); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class l extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public l(Object obj) { super(1, obj, wj.m.class, "e", "e(Ljava/lang/Throwable;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); wj.m.d(th3); } } @Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012&\u0010\u0002\u001a\"\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u0005 \u0006*\u0010\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u0005\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0007"}, d2 = {"<anonymous>", "", "pair", "Lkotlin/Pair;", "Lcom/xingin/alioth/pages/sku/entities/SkuPageRelatedProduct;", "", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class m extends Lambda implements Function1<Pair<? extends SkuPageRelatedProduct, ? extends Integer>, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154180a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public m(w wVar) { super(1); this.f154180a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Pair<? extends SkuPageRelatedProduct, ? extends Integer> pair) { invoke((Pair<SkuPageRelatedProduct, Integer>) pair); return Unit.INSTANCE; } public final void invoke(Pair<SkuPageRelatedProduct, Integer> pair) { Routers.build(pair.getFirst().getLink()).open(this.f154180a.getActivity()); this.f154180a.m1().r(pair.getFirst().getId(), false); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class n extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public n(Object obj) { super(1, obj, wj.m.class, "e", "e(Ljava/lang/Throwable;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); wj.m.d(th3); } } @Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012&\u0010\u0002\u001a\"\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u0005 \u0006*\u0010\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u0005\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0007"}, d2 = {"<anonymous>", "", "pair", "Lkotlin/Pair;", "Lcom/xingin/alioth/pages/sku/entities/SkuPageRelatedProduct;", "", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class o extends Lambda implements Function1<Pair<? extends SkuPageRelatedProduct, ? extends Integer>, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154181a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public o(w wVar) { super(1); this.f154181a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Pair<? extends SkuPageRelatedProduct, ? extends Integer> pair) { invoke((Pair<SkuPageRelatedProduct, Integer>) pair); return Unit.INSTANCE; } public final void invoke(Pair<SkuPageRelatedProduct, Integer> pair) { this.f154181a.m1().r(pair.getFirst().getId(), true); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class p extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public p(Object obj) { super(1, obj, wj.m.class, "e", "e(Ljava/lang/Throwable;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); wj.m.d(th3); } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class q extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154182a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public q(w wVar) { super(1); this.f154182a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Unit unit) { invoke(unit); return Unit.INSTANCE; } public final void invoke(Unit unit) { Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); this.f154182a.B1(); } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class r extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154183a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public r(w wVar) { super(1); this.f154183a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Unit unit) { invoke(unit); return Unit.INSTANCE; } public final void invoke(Unit unit) { Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); this.f154183a.refreshData(); this.f154183a.m1().d(((SkuPresenter) this.f154183a.getPresenter()).getRecyclerView()); this.f154183a.m1().p(); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class s extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public s(Object obj) { super(1, obj, wj.m.class, "e", "e(Ljava/lang/Throwable;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); wj.m.d(th3); } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class t extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154184a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public t(w wVar) { super(1); this.f154184a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Unit unit) { invoke(unit); return Unit.INSTANCE; } public final void invoke(Unit unit) { Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); this.f154184a.B1(); } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class u extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154185a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public u(w wVar) { super(1); this.f154185a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Unit unit) { invoke(unit); return Unit.INSTANCE; } public final void invoke(Unit unit) { T t14; TagScoreInfo scoreInfo; Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); T t15 = null; Routers.build(Pages.CAPA_NOTE_POST).withString("source", new Gson().toJson(new pd.e(new pd.b("pages_goods"), "pages", this.f154185a.i1().E()))).withString(CapaDeeplinkUtils.DEEPLINK_ATTACH, new Gson().toJson(new de.a(CollectionsKt__CollectionsJVMKt.listOf(new de.b(this.f154185a.i1().E(), "goods")), null, 2, null))).open(this.f154185a.getActivity()); k0 m14 = this.f154185a.m1(); Iterator<T> it3 = this.f154185a.i1().G().iterator(); while (true) { if (!it3.hasNext()) { t14 = null; break; } t14 = it3.next(); if (t14 instanceof SkuPageInfoV3) { break; } } if (t14 instanceof SkuPageInfoV3) { t15 = t14; } T t16 = t15; m14.A((t16 == null || (scoreInfo = t16.getScoreInfo()) == null) ? -1 : scoreInfo.getScore()); } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "Landroidx/lifecycle/Lifecycle$Event;", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class v extends Lambda implements Function1<Lifecycle.Event, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154186a; @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class a { /* renamed from: a reason: collision with root package name */ public static final /* synthetic */ int[] f154187a; static { int[] iArr = new int[Lifecycle.Event.values().length]; iArr[Lifecycle.Event.ON_RESUME.ordinal()] = 1; iArr[Lifecycle.Event.ON_PAUSE.ordinal()] = 2; f154187a = iArr; } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public v(w wVar) { super(1); this.f154186a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Lifecycle.Event event) { invoke(event); return Unit.INSTANCE; } public final void invoke(Lifecycle.Event event) { Intrinsics.checkNotNullParameter(event, AdvanceSetting.NETWORK_TYPE); int i10 = a.f154187a[event.ordinal()]; if (i10 == 1) { this.f154186a.m1().f(); } else if (i10 == 2) { this.f154186a.m1().m(); } } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* renamed from: xe.w$w reason: collision with other inner class name */ /* compiled from: SkuController.kt */ public /* synthetic */ class C2492w extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public C2492w(Object obj) { super(1, obj, wj.m.class, "e", "e(Ljava/lang/Throwable;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); wj.m.d(th3); } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"<anonymous>", "", "invoke", "()Ljava/lang/Boolean;"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class x extends Lambda implements Function0<Boolean> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154188a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public x(w wVar) { super(0); this.f154188a = wVar; } @Override // kotlin.jvm.functions.Function0 public final Boolean invoke() { return Boolean.valueOf(!this.f154188a.i1().J().get()); } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public static final class y extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ w f154189a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public y(w wVar) { super(1); this.f154189a = wVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Unit unit) { invoke(unit); return Unit.INSTANCE; } public final void invoke(Unit unit) { Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); this.f154189a.loadMore(); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: SkuController.kt */ public /* synthetic */ class z extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public z(Object obj) { super(1, obj, wj.m.class, "e", "e(Ljava/lang/Throwable;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); wj.m.d(th3); } } public w() { dx2.b b24 = dx2.b.b2(); Intrinsics.checkNotNullExpressionValue(b24, "create()"); this.f154158l = b24; } public static /* synthetic */ void f1(w wVar, String str, FilterTag filterTag, int i10, Object obj) { if ((i10 & 1) != 0) { str = null; } if ((i10 & 2) != 0) { filterTag = null; } wVar.filterOrSortRelatedNote(str, filterTag); } public static final void h1(w wVar, Pair pair) { Intrinsics.checkNotNullParameter(wVar, "this$0"); wVar.getAdapter().o((List) pair.getFirst()); ((DiffUtil.DiffResult) pair.getSecond()).dispatchUpdatesTo(wVar.getAdapter()); } public static final Float u1(Integer num) { float f14; Intrinsics.checkNotNullParameter(num, AdvanceSetting.NETWORK_TYPE); int intValue = num.intValue(); float f15 = (float) -290; Resources system = Resources.getSystem(); Intrinsics.checkExpressionValueIsNotNull(system, "Resources.getSystem()"); if (intValue <= ((int) TypedValue.applyDimension(1, f15, system.getDisplayMetrics()))) { f14 = 1.0f; } else if (num.intValue() >= 0) { f14 = 0.0f; } else { Resources system2 = Resources.getSystem(); Intrinsics.checkExpressionValueIsNotNull(system2, "Resources.getSystem()"); f14 = ((float) num.intValue()) / TypedValue.applyDimension(1, f15, system2.getDisplayMetrics()); } return Float.valueOf(f14); } public static final boolean w1(w wVar, String str) { Intrinsics.checkNotNullParameter(wVar, "this$0"); Intrinsics.checkNotNullParameter(str, AdvanceSetting.NETWORK_TYPE); return !Intrinsics.areEqual(str, wVar.i1().E()); } public static final void y1(w wVar, Pair pair) { Intrinsics.checkNotNullParameter(wVar, "this$0"); wVar.getAdapter().o((List) pair.getFirst()); ((DiffUtil.DiffResult) pair.getSecond()).dispatchUpdatesTo(wVar.getAdapter()); } public static final void z1(w wVar, hw2.c cVar) { Intrinsics.checkNotNullParameter(wVar, "this$0"); wVar.o1(); } public final void A1() { T t14; T t15; String str; List<SimpleImageInfo> imageList; SimpleImageInfo simpleImageInfo; a0 a0Var = (a0) getLinker(); if (a0Var != null) { XhsActivity activity = getActivity(); ViewGroup k14 = ((SkuPresenter) getPresenter()).k(); Iterator<T> it3 = i1().G().iterator(); while (true) { t14 = null; if (!it3.hasNext()) { t15 = null; break; } t15 = it3.next(); if (t15 instanceof SkuPageInfoV3) { break; } } if (t15 instanceof SkuPageInfoV3) { t14 = t15; } T t16 = t14; if (t16 == null || (imageList = t16.getImageList()) == null || (simpleImageInfo = (SimpleImageInfo) CollectionsKt___CollectionsKt.firstOrNull((List) imageList)) == null || (str = simpleImageInfo.getUrl()) == null) { str = ""; } a0Var.a(activity, k14, str, this.f154158l); } this.f154158l.a(Unit.INSTANCE); } public final void B1() { String str; T t14; String str2; Iterator<T> it3 = i1().G().iterator(); while (true) { str = null; if (!it3.hasNext()) { t14 = null; break; } t14 = it3.next(); if (t14 instanceof SkuPageInfoV3) { break; } } if (!(t14 instanceof SkuPageInfoV3)) { t14 = null; } T t15 = t14; if (t15 != null) { BrandInfo brand = t15.getBrand(); if (brand != null) { str = brand.getTitle(); } if (str == null || str.length() == 0) { str2 = t15.getTitle(); } else { str2 = str + " " + t15.getTitle(); } XhsActivity activity = getActivity(); String E = i1().E(); de.d dVar = de.d.SKU; TagScoreInfo scoreInfo = t15.getScoreInfo(); new PageScoreDialog(activity, E, null, dVar, str2, scoreInfo == null ? new TagScoreInfo(0, 0, 3, null) : scoreInfo, new i0(this), 4, null).show(); } m1().B(); } public final void e1(String str) { this.f154157k = ye.m.b(this.f154157k, null, new ye.l(str, null, null, false, 14, null), null, null, 0.0f, 29, null); getToolbarUIStateObserver().a(this.f154157k); } public final void filterOrSortRelatedNote(String str, FilterTag filterTag) { dw2.r<Pair<List<Object>, DiffUtil.DiffResult>> W0 = i1().u(str, filterTag, new b(this)).W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "private fun filterOrSort… }, AliothLog::e)\n }"); Object n14 = W0.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n14).a(new t(this), ai.j.f3392a); } public final XhsActivity getActivity() { XhsActivity xhsActivity = this.f154147a; if (xhsActivity != null) { return xhsActivity; } Intrinsics.throwUninitializedPropertyAccessException("activity"); return null; } public final MultiTypeAdapter getAdapter() { MultiTypeAdapter multiTypeAdapter = this.f154154h; if (multiTypeAdapter != null) { return multiTypeAdapter; } Intrinsics.throwUninitializedPropertyAccessException("adapter"); return null; } public final dw2.r<ye.f> getToolbarClickActionObservable() { dw2.r<ye.f> rVar = this.f154152f; if (rVar != null) { return rVar; } Intrinsics.throwUninitializedPropertyAccessException("toolbarClickActionObservable"); return null; } public final dw2.y<ye.m> getToolbarUIStateObserver() { dw2.y<ye.m> yVar = this.f154153g; if (yVar != null) { return yVar; } Intrinsics.throwUninitializedPropertyAccessException("toolbarUIStateObserver"); return null; } public final void handleFilterClickEvent(xj.f0 f0Var) { int b14 = f0Var.b(); if (b14 == 1) { qe.a aVar = qe.a.f121295a; f1(this, aVar.b(), null, 2, null); m1().w(aVar.b()); } else if (b14 == 2) { qe.a aVar2 = qe.a.f121295a; f1(this, aVar2.d(), null, 2, null); m1().w(aVar2.d()); } else if (b14 == 3) { qe.a aVar3 = qe.a.f121295a; f1(this, aVar3.c(), null, 2, null); m1().w(aVar3.c()); } else if (b14 == 4) { f1(this, null, f0Var.a(), 1, null); k0.y(m1(), f0Var.a(), 0, 2, null); } else if (b14 == 6) { f1(this, null, f0Var.a(), 1, null); m1().x(f0Var.a(), i1().F(f0Var.a())); } } public final void handleNoteClickEvent(Pair<SearchNoteItem, ? extends Map<String, ? extends Object>> pair) { Object obj = ((Map) pair.getSecond()).get("note_click_pos"); boolean z14 = true; if (!(Intrinsics.areEqual(obj, "note_click_pos_item") ? true : Intrinsics.areEqual(obj, "note_click_pos_author"))) { z14 = Intrinsics.areEqual(obj, "note_click_pos_like"); } if (z14) { k0 m14 = m1(); SearchNoteItem first = pair.getFirst(); Object obj2 = ((Map) pair.getSecond()).get("note_click_item_position"); Integer num = obj2 instanceof Integer ? (Integer) obj2 : null; m14.k(first, num != null ? num.intValue() : 0, false); lc.b.f(lc.b.f101284a, getActivity(), pair.getFirst(), "spv_page", null, null, null, 0, false, 248, null); } else if (Intrinsics.areEqual(obj, "note_click_pos_live")) { SearchNoteItem first2 = pair.getFirst(); Routers.build(first2.getUser().getLive().getLiveLink()).open(getActivity()); m1().u(first2.getUser().getLive().getRoomId(), first2.getId(), first2.getUser().getLive().getUserId()); } } public final qe.w i1() { qe.w wVar = this.f154149c; if (wVar != null) { return wVar; } Intrinsics.throwUninitializedPropertyAccessException("dataModel"); return null; } public final String j1() { String str = this.f154155i; if (str != null) { return str; } Intrinsics.throwUninitializedPropertyAccessException("intentAwardId"); return null; } public final dx2.d<String> k1() { dx2.d<String> dVar = this.f154148b; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("similarDialogConfirmSubject"); return null; } public final dw2.y<Float> l1() { dw2.y<Float> yVar = this.f154151e; if (yVar != null) { return yVar; } Intrinsics.throwUninitializedPropertyAccessException("toolbarAlphaChangeObserver"); return null; } public final hw2.c listenAttachEvent() { return bj2.h.f(((SkuPresenter) getPresenter()).attachObservable(), this, new r(this), new s(wj.m.f149951a)); } public final hw2.c listenLifecycleEvent() { return bj2.h.f(getActivity().lifecycle(), this, new v(this), new C2492w(wj.m.f149951a)); } public final hw2.c listenLoadMoreEvent() { return bj2.h.f(((SkuPresenter) getPresenter()).loadMore(new x(this)), this, new y(this), new z(wj.m.f149951a)); } public final hw2.c listenToolbarClickEvent() { return bj2.h.f(getToolbarClickActionObservable(), this, new c0(this), new d0(wj.m.f149951a)); } public final void loadMore() { dw2.r<Pair<List<Object>, DiffUtil.DiffResult>> W0 = i1().R().W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "dataModel.loadMoreRelate…dSchedulers.mainThread())"); Object n14 = W0.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n14).a(new s(this), ai.j.f3392a); } public final k0 m1() { k0 k0Var = this.f154150d; if (k0Var != null) { return k0Var; } Intrinsics.throwUninitializedPropertyAccessException("trackHelper"); return null; } public final void n1(qe.b bVar) { BrandInfo brandInfo; T t14; Iterator<T> it3 = i1().G().iterator(); while (true) { brandInfo = null; if (!it3.hasNext()) { t14 = null; break; } t14 = it3.next(); if (t14 instanceof SkuBaseInfo) { break; } } if (!(t14 instanceof SkuBaseInfo)) { t14 = null; } T t15 = t14; if (t15 != null) { int i10 = a.f154160a[bVar.ordinal()]; int i14 = 1; if (i10 == 1) { BrandInfo brand = t15.getBrand(); if (brand != null) { if (brand.getLink().length() <= 0) { i14 = 0; } if (i14 != 0) { brandInfo = brand; } if (brandInfo != null) { Routers.build(brandInfo.getLink()).open(getActivity()); m1().g(0, "品牌", false); } } } else if (i10 == 2) { new SkuPageParamDialog(getActivity(), t15).show(); k0 m14 = m1(); if (t15.getBrand() == null) { i14 = 0; } m14.g(i14, "参数", false); } else if (i10 == 3) { if (t15.getVariants() == null) { i14 = 0; } if (t15.getVendorInfo() != null) { i14++; } m1().g(i14, "价格", false); VendorListBottomSheetActivity.a.b(VendorListBottomSheetActivity.f38858c, getActivity(), i1().E(), null, 4, null); } } } public final void o1() { if (!this.f154156j) { MultiTypeAdapter adapter = getAdapter(); se.m mVar = new se.m(); dx2.d<qe.b> e14 = mVar.e(); c cVar = new c(this); wj.m mVar2 = wj.m.f149951a; bj2.h.f(e14, this, cVar, new d(mVar2)); adapter.k(SkuBaseInfo.class, mVar); MultiTypeAdapter adapter2 = getAdapter(); se.a aVar = new se.a(); bj2.h.f(aVar.a(), this, new e(this), new f(mVar2)); adapter2.k(xj.h.class, aVar); MultiTypeAdapter adapter3 = getAdapter(); ve.a aVar2 = new ve.a(); bj2.h.f(aVar2.a(), this, new g(this), new h(mVar2)); bj2.h.f(aVar2.b(), this, new i(this), new j(mVar2)); adapter3.k(FilterTagListWrapper.class, aVar2); MultiTypeAdapter adapter4 = getAdapter(); se.i iVar = new se.i(fd.f0.f76529a.V()); bj2.h.f(iVar.i(), this, new k(this), new l(mVar2)); adapter4.k(SearchNoteItem.class, iVar); ue.a aVar3 = new ue.a(); bj2.h.f(aVar3.getClickItemEvent(), this, new m(this), new n(mVar2)); bj2.h.f(aVar3.getImpressionItemEvent(), this, new o(this), new p(mVar2)); this.f154159m = aVar3; MultiTypeAdapter adapter5 = getAdapter(); ue.a aVar4 = this.f154159m; if (aVar4 == null) { Intrinsics.throwUninitializedPropertyAccessException("skuRelatedProductItemBinder"); aVar4 = null; } adapter5.k(re.d.class, aVar4); getAdapter().k(SkuExceptionBean.class, new se.n()); getAdapter().k(SkuFooterBean.class, new se.o()); this.f154156j = true; } } @Override // tu0.b public void onAttach(Bundle bundle) { super.onAttach(bundle); listenAttachEvent(); ((SkuPresenter) getPresenter()).initView(getAdapter()); listenLoadMoreEvent(); t1(); listenToolbarClickEvent(); v1(); x1(); p1(); q1(); r1(); listenLifecycleEvent(); } @Override // tu0.b public void onDetach() { super.onDetach(); m1().C(); ue.a aVar = this.f154159m; ue.a aVar2 = null; if (aVar == null) { Intrinsics.throwUninitializedPropertyAccessException("skuRelatedProductItemBinder"); aVar = null; } for (Map.Entry<KotlinViewHolder, p00.b<Object>> entry : aVar.getImpressionHelperMap().entrySet()) { entry.getValue().k(); } ue.a aVar3 = this.f154159m; if (aVar3 == null) { Intrinsics.throwUninitializedPropertyAccessException("skuRelatedProductItemBinder"); } else { aVar2 = aVar3; } aVar2.getImpressionHelperMap().clear(); } public final void p1() { bj2.h.d(((SkuPresenter) getPresenter()).e(), this, new q(this)); } public final void q1() { bj2.h.d(((SkuPresenter) getPresenter()).o(), this, new t(this)); } public final void r1() { bj2.h.d(((SkuPresenter) getPresenter()).p(), this, new u(this)); } public final void refreshData() { dw2.r<Triple<qe.i0, List<Object>, DiffUtil.DiffResult>> n04 = i1().K(j1(), new f0(this)).n0(new r(this)); Intrinsics.checkNotNullExpressionValue(n04, "private fun refreshData(… }, AliothLog::e)\n }"); bj2.h.f(n04, this, new g0(this), new h0(wj.m.f149951a)); } public final void t1() { dw2.r<R> M0 = ((SkuPresenter) getPresenter()).i().M0(u.f154145a); Intrinsics.checkNotNullExpressionValue(M0, "presenter.scrollDySubjec…-290).dpF\n }\n }"); Object n14 = M0.n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n14).c(l1()); } public final hw2.c v1() { dw2.r<String> u04 = k1().u0(new v(this)); Intrinsics.checkNotNullExpressionValue(u04, "similarDialogConfirmSubj…!= dataModel.goodId\n }"); return bj2.h.f(u04, this, new a0(this), new b0(wj.m.f149951a)); } public final void x1() { bj2.h.d(((SkuPresenter) getPresenter()).q(), this, new e0(this)); } }