小红书.apk(点击下载) / AssociatedGoodsController.java


package com.xingin.capa.v2.feature.goodsnote.activity;

import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.Rect;
import android.os.Bundle;
import bj2.h;
import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting;
import com.uber.autodispose.y;
import com.xingin.android.redutils.base.XhsActivity;
import com.xingin.capa.lib.R$color;
import com.xingin.capa.lib.R$string;
import com.xingin.capa.lib.newcapa.session.CapaImageModel;
import com.xingin.capa.v2.feature.goodsnote.comment.AddGoodsCommentActivity;
import com.xingin.capa.v2.feature.goodsnote.video.CapaGoodsModel;
import com.xingin.capa.v2.feature.label.entity.GoodsItem;
import com.xingin.capa.v2.session2.internal.IImageEditor;
import com.xingin.capa.v2.session2.internal.IVideoEditor;
import com.xingin.capa.v2.session2.model.EditableVideo2;
import com.xingin.capa.v2.utils.j0;
import com.xingin.capa.v2.utils.s;
import dw2.r;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.FunctionReferenceImpl;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import nu2.f;
import o70.j;
import tc0.a0;
import tc0.e0;
import tc0.g0;
import tc0.t;
import tc0.u;
import tc0.v;
import tc0.w;
import tc0.x;
import uc0.q;
import wp0.e;

@Metadata(bv = {}, d1 = {"\u0000k\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0006\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000e\n\u0002\b\t\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006*\u0001$\u0018\u0000 J2\u0014\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u00030\u0001:\u0001\u0013B\u0007¢\u0006\u0004\bI\u0010\"J\b\u0010\u0005\u001a\u00020\u0004H\u0002J\b\u0010\u0006\u001a\u00020\u0004H\u0002J\b\u0010\u0007\u001a\u00020\u0004H\u0002J\b\u0010\b\u001a\u00020\u0004H\u0002J\b\u0010\t\u001a\u00020\u0004H\u0002J\b\u0010\n\u001a\u00020\u0004H\u0002J\b\u0010\f\u001a\u00020\u000bH\u0002J\b\u0010\r\u001a\u00020\u0004H\u0002J\u0012\u0010\u0010\u001a\u00020\u00042\b\u0010\u000f\u001a\u0004\u0018\u00010\u000eH\u0014J\b\u0010\u0011\u001a\u00020\u0004H\u0014R\"\u0010\u0019\u001a\u00020\u00128\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b\u0013\u0010\u0014\u001a\u0004\b\u0015\u0010\u0016\"\u0004\b\u0017\u0010\u0018R(\u0010#\u001a\u00020\u001a8\u0006@\u0006X‡.¢\u0006\u0018\n\u0004\b\u001b\u0010\u001c\u0012\u0004\b!\u0010\"\u001a\u0004\b\u001d\u0010\u001e\"\u0004\b\u001f\u0010 R\u0014\u0010'\u001a\u00020$8\u0002X‚\u0004¢\u0006\u0006\n\u0004\b%\u0010&R\"\u0010)\u001a\u00020(8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b)\u0010*\u001a\u0004\b+\u0010,\"\u0004\b-\u0010.R(\u00101\u001a\b\u0012\u0004\u0012\u0002000/8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b1\u00102\u001a\u0004\b3\u00104\"\u0004\b5\u00106R\"\u00108\u001a\u0002078\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b8\u00109\u001a\u0004\b:\u0010;\"\u0004\b<\u0010=R(\u0010>\u001a\b\u0012\u0004\u0012\u00020\u00040/8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b>\u00102\u001a\u0004\b?\u00104\"\u0004\b@\u00106R(\u0010B\u001a\b\u0012\u0004\u0012\u00020A0/8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bB\u00102\u001a\u0004\bC\u00104\"\u0004\bD\u00106R(\u0010F\u001a\b\u0012\u0004\u0012\u00020E0/8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bF\u00102\u001a\u0004\bG\u00104\"\u0004\bH\u00106¨\u0006K"}, d2 = {"Lcom/xingin/capa/v2/feature/goodsnote/activity/AssociatedGoodsController;", "Ltu0/b;", "Ltc0/e0;", "Ltc0/a0;", "", "t1", "m1", "n1", "A1", "o1", "c1", "", "h1", "b1", "Landroid/os/Bundle;", "savedInstanceState", "onAttach", "onDetach", "Lcom/xingin/android/redutils/base/XhsActivity;", "a", "Lcom/xingin/android/redutils/base/XhsActivity;", "getActivity", "()Lcom/xingin/android/redutils/base/XhsActivity;", "setActivity", "(Lcom/xingin/android/redutils/base/XhsActivity;)V", "activity", "", "c", "Ljava/lang/String;", "k1", "()Ljava/lang/String;", "setSource", "(Ljava/lang/String;)V", "getSource$annotations", "()V", "source", "com/xingin/capa/v2/feature/goodsnote/activity/AssociatedGoodsController$onBackPressedCallback$1", "i", "Lcom/xingin/capa/v2/feature/goodsnote/activity/AssociatedGoodsController$onBackPressedCallback$1;", "onBackPressedCallback", "Lwp0/e;", "session", "Lwp0/e;", "j1", "()Lwp0/e;", "setSession", "(Lwp0/e;)V", "Ldx2/d;", "Ltc0/g0;", "bindOrUnbindGoodsSubject", "Ldx2/d;", "d1", "()Ldx2/d;", "setBindOrUnbindGoodsSubject", "(Ldx2/d;)V", "Ljd0/c;", "type", "Ljd0/c;", "l1", "()Ljd0/c;", "setType", "(Ljd0/c;)V", "clickDoneEvent", "e1", "setClickDoneEvent", "Luc0/q;", "goodsDragSubject", "i1", "setGoodsDragSubject", "Lcom/xingin/capa/v2/feature/label/entity/GoodsItem;", "delGoodsSubject", "f1", "setDelGoodsSubject", "<init>", "j", "capa_library_release"}, k = 1, mv = {1, 6, 0})
/* compiled from: AssociatedGoodsController.kt */
public final class AssociatedGoodsController extends tu0.b<e0, AssociatedGoodsController, a0> {

    /* renamed from: j  reason: collision with root package name */
    public static final a f49648j = new a(null);

    /* renamed from: a  reason: collision with root package name */
    public XhsActivity f49649a;

    /* renamed from: b  reason: collision with root package name */
    public e f49650b;

    /* renamed from: c  reason: collision with root package name */
    public String f49651c;

    /* renamed from: d  reason: collision with root package name */
    public dx2.d<g0> f49652d;

    /* renamed from: e  reason: collision with root package name */
    public jd0.c f49653e;

    /* renamed from: f  reason: collision with root package name */
    public dx2.d<Unit> f49654f;

    /* renamed from: g  reason: collision with root package name */
    public dx2.d<q> f49655g;

    /* renamed from: h  reason: collision with root package name */
    public dx2.d<GoodsItem> f49656h;

    /* renamed from: i  reason: collision with root package name */
    public final AssociatedGoodsController$onBackPressedCallback$1 f49657i = new AssociatedGoodsController$onBackPressedCallback$1(this);

    @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\b†\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0005\u0010\u0006R\u0014\u0010\u0003\u001a\u00020\u00028\u0002X‚T¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004¨\u0006\u0007"}, d2 = {"Lcom/xingin/capa/v2/feature/goodsnote/activity/AssociatedGoodsController$a;", "", "", "TAG", "Ljava/lang/String;", "<init>", "()V", "capa_library_release"}, k = 1, mv = {1, 6, 0})
    /* compiled from: AssociatedGoodsController.kt */
    public static final class a {
        public a() {
        }

        public /* synthetic */ a(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }
    }

    @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 = {"Luc0/q;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Luc0/q;)V"}, k = 3, mv = {1, 6, 0})
    /* compiled from: AssociatedGoodsController.kt */
    public static final class b extends Lambda implements Function1<q, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ AssociatedGoodsController f49658a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public b(AssociatedGoodsController associatedGoodsController) {
            super(1);
            this.f49658a = associatedGoodsController;
        }

        public final void a(q qVar) {
            Rect n14 = ((e0) this.f49658a.getPresenter()).n();
            ((e0) this.f49658a.getPresenter()).u();
            boolean intersect = n14.intersect(qVar.b());
            if (intersect) {
                ((e0) this.f49658a.getPresenter()).h();
            } else {
                ((e0) this.f49658a.getPresenter()).p();
            }
            if (qVar.e()) {
                if (!((e0) this.f49658a.getPresenter()).q() && intersect) {
                    qVar.f(true);
                    this.f49658a.f1().a(qVar.a());
                }
                ((e0) this.f49658a.getPresenter()).o();
            }
        }

        /* 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(q qVar) {
            a(qVar);
            return Unit.INSTANCE;
        }
    }

    @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: AssociatedGoodsController.kt */
    public static final class c extends Lambda implements Function1<Unit, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ AssociatedGoodsController f49659a;

        @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
        /* compiled from: AssociatedGoodsController.kt */
        public /* synthetic */ class a extends FunctionReferenceImpl implements Function0<Unit> {
            public a(Object obj) {
                super(0, obj, AssociatedGoodsController.class, "unbindAllAndFinish", "unbindAllAndFinish()V", 0);
            }

            @Override // kotlin.jvm.functions.Function0
            public final void invoke() {
                ((AssociatedGoodsController) this.receiver).A1();
            }
        }

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public c(AssociatedGoodsController associatedGoodsController) {
            super(1);
            this.f49659a = associatedGoodsController;
        }

        /* 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);
            ((e0) this.f49659a.getPresenter()).w(this.f49659a.getActivity(), new a(this.f49659a));
        }
    }

    @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 = {"Lzu0/a;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lzu0/a;)V"}, k = 3, mv = {1, 6, 0})
    /* compiled from: AssociatedGoodsController.kt */
    public static final class d extends Lambda implements Function1<zu0.a, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ AssociatedGoodsController f49660a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public d(AssociatedGoodsController associatedGoodsController) {
            super(1);
            this.f49660a = associatedGoodsController;
        }

        public final void a(zu0.a aVar) {
            this.f49660a.getActivity().finish();
        }

        /* 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(zu0.a aVar) {
            a(aVar);
            return Unit.INSTANCE;
        }
    }

    public static final void p1(AssociatedGoodsController associatedGoodsController, g0 g0Var) {
        Intrinsics.checkNotNullParameter(associatedGoodsController, "this$0");
        ((e0) associatedGoodsController.getPresenter()).A(associatedGoodsController.j1(), g0Var.a(), associatedGoodsController.l1());
    }

    public static final void q1(Throwable th3) {
        s.b("AssociatedGoodsController", th3.getLocalizedMessage(), th3);
    }

    public static final boolean r1(zu0.a aVar) {
        Intrinsics.checkNotNullParameter(aVar, AdvanceSetting.NETWORK_TYPE);
        if (aVar.b() != 102) {
            return false;
        }
        Intent a14 = aVar.a();
        if (a14 != null ? a14.getBooleanExtra("comment_done", false) : false) {
            return true;
        }
        return false;
    }

    public static final void u1(AssociatedGoodsController associatedGoodsController, Unit unit) {
        Intrinsics.checkNotNullParameter(associatedGoodsController, "this$0");
        associatedGoodsController.getActivity().finish();
    }

    public static final void v1(Throwable th3) {
        s.b("AssociatedGoodsController", th3.getLocalizedMessage(), th3);
    }

    public static final void w1(AssociatedGoodsController associatedGoodsController, Unit unit) {
        Intrinsics.checkNotNullParameter(associatedGoodsController, "this$0");
        j.a(associatedGoodsController.getActivity(), "http://www.note-tips.sit.xiaohongshu.com/picasso_pages/note_tips/goods?fullscreen=true", associatedGoodsController.getActivity().getResources().getString(R$string.b17));
    }

    public static final void x1(Throwable th3) {
        s.b("AssociatedGoodsController", th3.getLocalizedMessage(), th3);
    }

    public static final void y1(AssociatedGoodsController associatedGoodsController, Unit unit) {
        Intrinsics.checkNotNullParameter(associatedGoodsController, "this$0");
        associatedGoodsController.e1().a(Unit.INSTANCE);
        AddGoodsCommentActivity.f49727f.a(associatedGoodsController.getActivity(), associatedGoodsController.k1());
    }

    public static final void z1(Throwable th3) {
        s.b("AssociatedGoodsController", th3.getLocalizedMessage(), th3);
    }

    public final void A1() {
        EditableVideo2 editableVideo;
        List<CapaGoodsModel> goodsModelList;
        ArrayList<CapaImageModel> imageInfoList;
        IImageEditor g10 = j1().g();
        if (!(g10 == null || (imageInfoList = g10.getImageInfoList()) == null)) {
            Iterator<T> it3 = imageInfoList.iterator();
            while (it3.hasNext()) {
                it3.next().setGoodsItem(null);
            }
        }
        IVideoEditor n14 = j1().n();
        if (!(n14 == null || (editableVideo = n14.getEditableVideo()) == null || (goodsModelList = editableVideo.getGoodsModelList()) == null)) {
            goodsModelList.clear();
        }
        j1().i().setGoodsComment(null);
        getActivity().finish();
    }

    public final void b1() {
        ArrayList<CapaImageModel> imageInfoList;
        a0 a0Var = (a0) getLinker();
        if (a0Var != null) {
            boolean o14 = j1().o();
            IImageEditor g10 = j1().g();
            boolean z14 = false;
            if (((g10 == null || (imageInfoList = g10.getImageInfoList()) == null) ? 0 : imageInfoList.size()) == 1) {
                z14 = true;
            }
            a0Var.a(o14, z14, k1());
        }
    }

    public final void c1() {
        int h14 = h1();
        if (j1().o()) {
            ((e0) getPresenter()).A(j1(), h14, l1());
            a0 a0Var = (a0) getLinker();
            if (a0Var != null) {
                a0Var.b();
                return;
            }
            return;
        }
        ((e0) getPresenter()).A(j1(), h14, l1());
        a0 a0Var2 = (a0) getLinker();
        if (a0Var2 != null) {
            a0Var2.d(((e0) getPresenter()).s(), getActivity());
        }
    }

    public final dx2.d<g0> d1() {
        dx2.d<g0> dVar = this.f49652d;
        if (dVar != null) {
            return dVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("bindOrUnbindGoodsSubject");
        return null;
    }

    public final dx2.d<Unit> e1() {
        dx2.d<Unit> dVar = this.f49654f;
        if (dVar != null) {
            return dVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("clickDoneEvent");
        return null;
    }

    public final dx2.d<GoodsItem> f1() {
        dx2.d<GoodsItem> dVar = this.f49656h;
        if (dVar != null) {
            return dVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("delGoodsSubject");
        return null;
    }

    public final XhsActivity getActivity() {
        XhsActivity xhsActivity = this.f49649a;
        if (xhsActivity != null) {
            return xhsActivity;
        }
        Intrinsics.throwUninitializedPropertyAccessException("activity");
        return null;
    }

    public final int h1() {
        EditableVideo2 editableVideo;
        List<CapaGoodsModel> goodsModelList;
        ArrayList<CapaImageModel> imageInfoList;
        int i10 = 0;
        if (j1().o()) {
            IImageEditor g10 = j1().g();
            if (g10 == null || (imageInfoList = g10.getImageInfoList()) == null) {
                return 0;
            }
            Iterator<T> it3 = imageInfoList.iterator();
            while (it3.hasNext()) {
                if (it3.next().getGoodsItem() != null) {
                    i10++;
                }
            }
            return i10;
        }
        IVideoEditor n14 = j1().n();
        if (n14 == null || (editableVideo = n14.getEditableVideo()) == null || (goodsModelList = editableVideo.getGoodsModelList()) == null) {
            return 0;
        }
        return goodsModelList.size();
    }

    public final dx2.d<q> i1() {
        dx2.d<q> dVar = this.f49655g;
        if (dVar != null) {
            return dVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("goodsDragSubject");
        return null;
    }

    public final e j1() {
        e eVar = this.f49650b;
        if (eVar != null) {
            return eVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("session");
        return null;
    }

    public final String k1() {
        String str = this.f49651c;
        if (str != null) {
            return str;
        }
        Intrinsics.throwUninitializedPropertyAccessException("source");
        return null;
    }

    public final jd0.c l1() {
        jd0.c cVar = this.f49653e;
        if (cVar != null) {
            return cVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("type");
        return null;
    }

    public final void m1() {
        Object n14 = i1().n(com.uber.autodispose.d.b(this));
        Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))");
        j0.c((y) n14, null, new b(this), 1, null);
    }

    public final void n1() {
        if (h1() != 0) {
            ((e0) getPresenter()).z();
            Object n14 = ((e0) getPresenter()).l().n(com.uber.autodispose.d.b(this));
            Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))");
            h.b((y) n14, new c(this));
        }
    }

    public final void o1() {
        getActivity().getOnBackPressedDispatcher().addCallback(getActivity(), this.f49657i);
        r<g0> W0 = d1().W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "bindOrUnbindGoodsSubject…dSchedulers.mainThread())");
        Object n14 = W0.n(com.uber.autodispose.d.b(this));
        Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))");
        ((y) n14).a(new tc0.q(this), u.f133062a);
        r<zu0.a> u04 = getActivity().onActivityResults().u0(tc0.y.f133066a);
        Intrinsics.checkNotNullExpressionValue(u04, "activity.onActivityResul…false) ?: false\n        }");
        h.d(u04, this, new d(this));
    }

    @Override // tu0.b
    public void onAttach(Bundle bundle) {
        super.onAttach(bundle);
        t1();
        o1();
        jd0.d.f95157a.m(k1());
    }

    @Override // tu0.b
    public void onDetach() {
        super.onDetach();
    }

    public final void t1() {
        if (gu2.a.l(getActivity())) {
            ((e0) getPresenter()).r().setBackgroundColor(getActivity().getResources().getColor(R$color.xhsTheme_colorGrayLevel7));
        } else {
            ((e0) getPresenter()).r().setBackgroundColor(getActivity().getResources().getColor(R$color.xhsTheme_colorGrayLevel7_night));
            ((e0) getPresenter()).m().setImageTintList(ColorStateList.valueOf(f.e(R$color.capa_white)));
        }
        c1();
        b1();
        n1();
        m1();
        r<Unit> W0 = ((e0) getPresenter()).i().W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "presenter.clickClose()\n …dSchedulers.mainThread())");
        Object n14 = W0.n(com.uber.autodispose.d.b(this));
        Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))");
        ((y) n14).a(new tc0.r(this), x.f133065a);
        r<Unit> W02 = ((e0) getPresenter()).k().W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W02, "presenter.clickHowTo()\n …dSchedulers.mainThread())");
        Object n15 = W02.n(com.uber.autodispose.d.b(this));
        Intrinsics.checkExpressionValueIsNotNull(n15, "this.`as`(AutoDispose.autoDisposable(provider))");
        ((y) n15).a(new tc0.s(this), w.f133064a);
        r<Unit> W03 = ((e0) getPresenter()).j().W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W03, "presenter.clickDoneBtn()…dSchedulers.mainThread())");
        Object n16 = W03.n(com.uber.autodispose.d.b(this));
        Intrinsics.checkExpressionValueIsNotNull(n16, "this.`as`(AutoDispose.autoDisposable(provider))");
        ((y) n16).a(new t(this), v.f133063a);
        ((e0) getPresenter()).t(l1() == jd0.c.GOODS_SELLER_LIVE_LESSON);
    }
}