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


package w91;

import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import androidx.lifecycle.Lifecycle;
import com.alibaba.wireless.security.open.nocaptcha.INoCaptchaComponent;
import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting;
import com.uber.autodispose.a0;
import com.xingin.android.redutils.base.XhsActivity;
import com.xingin.matrix.detail.danmaku.model.entities.VideoFeedDanmaku;
import com.xingin.matrix.detail.item.video.player.VideoItemPlayerView;
import com.xingin.matrix.followfeed.entities.NoteFeed;
import com.xingin.matrix.notedetail.NoteDetailService;
import dw2.y;
import i91.a;
import ja1.a;
import kotlin.Metadata;
import kotlin.Triple;
import kotlin.Unit;
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 oa1.d;
import t10.m0;
import t10.w;
import t10.x;
import u41.b;

@Metadata(bv = {}, d1 = {"\u0000ô\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0004\n\u0002\u0010\u0000\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0007\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\u0003\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\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\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\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\u0003\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\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u00002\u0014\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u00030\u0001B\t¢\u0006\u0006\b–\u0001\u0010—\u0001J\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\u0012\u0010\u000b\u001a\u00020\u00042\b\u0010\n\u001a\u0004\u0018\u00010\tH\u0002J\b\u0010\f\u001a\u00020\u0004H\u0002J\b\u0010\r\u001a\u00020\u0004H\u0002J\b\u0010\u000e\u001a\u00020\u0004H\u0002J\b\u0010\u000f\u001a\u00020\u0004H\u0002J\u0010\u0010\u0012\u001a\u00020\u00042\u0006\u0010\u0011\u001a\u00020\u0010H\u0002J\b\u0010\u0013\u001a\u00020\u0004H\u0002J\u0010\u0010\u0016\u001a\u00020\u00042\u0006\u0010\u0015\u001a\u00020\u0014H\u0002J\b\u0010\u0017\u001a\u00020\u0004H\u0002J\u0010\u0010\u001a\u001a\u00020\u00042\u0006\u0010\u0019\u001a\u00020\u0018H\u0002J\b\u0010\u001b\u001a\u00020\u0004H\u0002J\u0010\u0010\u001e\u001a\u00020\u00042\u0006\u0010\u001d\u001a\u00020\u001cH\u0002J\b\u0010\u001f\u001a\u00020\u0004H\u0002J\b\u0010 \u001a\u00020\u0004H\u0002J\b\u0010!\u001a\u00020\u0004H\u0002J\u0012\u0010$\u001a\u00020\u00042\b\u0010#\u001a\u0004\u0018\u00010\"H\u0014J\u0016\u0010(\u001a\u00020\u00042\u0006\u0010&\u001a\u00020%2\u0006\u0010'\u001a\u00020%J\u001a\u0010,\u001a\u00020\u001c2\u0006\u0010*\u001a\u00020)2\b\u0010\u0011\u001a\u0004\u0018\u00010+H\u0016R\"\u0010.\u001a\u00020-8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b.\u0010/\u001a\u0004\b0\u00101\"\u0004\b2\u00103R\"\u00105\u001a\u0002048\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b5\u00106\u001a\u0004\b7\u00108\"\u0004\b9\u0010:R\"\u0010<\u001a\u00020;8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b<\u0010=\u001a\u0004\b>\u0010?\"\u0004\b@\u0010AR(\u0010C\u001a\b\u0012\u0004\u0012\u00020\u00100B8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bC\u0010D\u001a\u0004\bE\u0010F\"\u0004\bG\u0010HR(\u0010K\u001a\b\u0012\u0004\u0012\u00020J0I8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bK\u0010L\u001a\u0004\bM\u0010N\"\u0004\bO\u0010PRB\u0010U\u001a\"\u0012\u001e\u0012\u001c\u0012\n\u0012\b\u0012\u0004\u0012\u00020)0S\u0012\u0004\u0012\u00020T\u0012\u0006\u0012\u0004\u0018\u00010\t0R0Q8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bU\u0010V\u001a\u0004\bW\u0010X\"\u0004\bY\u0010ZR(\u0010\\\u001a\b\u0012\u0004\u0012\u00020[0B8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b\\\u0010D\u001a\u0004\b]\u0010F\"\u0004\b^\u0010HR(\u0010`\u001a\b\u0012\u0004\u0012\u00020_0I8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b`\u0010L\u001a\u0004\ba\u0010N\"\u0004\bb\u0010PR\"\u0010d\u001a\u00020c8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bd\u0010e\u001a\u0004\bf\u0010g\"\u0004\bh\u0010iR(\u0010k\u001a\b\u0012\u0004\u0012\u00020\u00180j8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bk\u0010l\u001a\u0004\bm\u0010n\"\u0004\bo\u0010pR(\u0010q\u001a\b\u0012\u0004\u0012\u00020\u00180Q8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bq\u0010V\u001a\u0004\br\u0010X\"\u0004\bs\u0010ZR(\u0010u\u001a\b\u0012\u0004\u0012\u00020t0B8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bu\u0010D\u001a\u0004\bv\u0010F\"\u0004\bw\u0010HR\"\u0010y\u001a\u00020x8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\by\u0010z\u001a\u0004\b{\u0010|\"\u0004\b}\u0010~R,\u0010€\u0001\u001a\b\u0012\u0004\u0012\u000200I8\u0006@\u0006X‡.¢\u0006\u0015\n\u0005\b€\u0001\u0010L\u001a\u0005\b\u0001\u0010N\"\u0005\b‚\u0001\u0010PR*\u0010„\u0001\u001a\u00030ƒ\u00018\u0006@\u0006X‡.¢\u0006\u0018\n\u0006\b„\u0001\u0010…\u0001\u001a\u0006\b†\u0001\u0010‡\u0001\"\u0006\bˆ\u0001\u0010‰\u0001R-\u0010‹\u0001\u001a\t\u0012\u0005\u0012\u00030Š\u00010Q8\u0006@\u0006X‡.¢\u0006\u0015\n\u0005\b‹\u0001\u0010V\u001a\u0005\bŒ\u0001\u0010X\"\u0005\b\u0001\u0010ZR-\u0010\u0001\u001a\t\u0012\u0005\u0012\u00030Ž\u00010B8\u0006@\u0006X‡.¢\u0006\u0015\n\u0005\b\u0001\u0010D\u001a\u0005\b\u0001\u0010F\"\u0005\b‘\u0001\u0010HRE\u0010“\u0001\u001a!\u0012\u001d\u0012\u001b\u0012\n\u0012\b\u0012\u0004\u0012\u00020)0S\u0012\u0004\u0012\u00020T\u0012\u0005\u0012\u00030’\u00010R0j8\u0006@\u0006X‡.¢\u0006\u0015\n\u0005\b“\u0001\u0010l\u001a\u0005\b”\u0001\u0010n\"\u0005\b•\u0001\u0010p¨\u0006˜\u0001"}, d2 = {"Lw91/v0;", "Ltu0/b;", "Lw91/d1;", "Lw91/x0;", "", "l1", "F1", "Q1", "i1", "", "any", "S1", "D1", "O1", "k1", "T1", "Lja1/a;", "event", "a2", "Y1", "Lf32/j;", "currentState", "X1", "W1", "", "speed", "Z1", "U1", "", "byUser", "b2", "R1", "j1", com.igexin.push.core.g.f25705e, "Landroid/os/Bundle;", "savedInstanceState", "onAttach", "", "videoPosition", "duration", y7.f.f156778k, "", "keyCode", "Landroid/view/KeyEvent;", "onKeyDown", "Lk61/b;", "pageIntentImpl", "Lk61/b;", "u1", "()Lk61/b;", "setPageIntentImpl", "(Lk61/b;)V", "Lob1/b;", "dataHelper", "Lob1/b;", "r1", "()Lob1/b;", "setDataHelper", "(Lob1/b;)V", "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/b;", "videoNoteBehavior", "Ldx2/b;", "A1", "()Ldx2/b;", "setVideoNoteBehavior", "(Ldx2/b;)V", "Ldx2/g;", "Lu41/b;", "slideTimeSubject", "Ldx2/g;", INoCaptchaComponent.f17802y1, "()Ldx2/g;", "setSlideTimeSubject", "(Ldx2/g;)V", "Ldw2/r;", "Lkotlin/Triple;", "Lkotlin/Function0;", "Lcom/xingin/matrix/followfeed/entities/NoteFeed;", "updateDateObservable", "Ldw2/r;", "getUpdateDateObservable", "()Ldw2/r;", "setUpdateDateObservable", "(Ldw2/r;)V", "Li91/a;", "videoDanmakuEventInSubject", "z1", "setVideoDanmakuEventInSubject", "Lu91/a;", "landscapeShowedBtnClickSubject", "t1", "setLandscapeShowedBtnClickSubject", "Lab1/l;", "catonHelper", "Lab1/l;", "n1", "()Lab1/l;", "setCatonHelper", "(Lab1/l;)V", "Ldw2/y;", "videoSpeedEventObserver", "Ldw2/y;", "C1", "()Ldw2/y;", "setVideoSpeedEventObserver", "(Ldw2/y;)V", "videoSpeedEventObservable", "B1", "setVideoSpeedEventObservable", "Lf61/d;", "danmakuSettingCallbackSubject", "q1", "setDanmakuSettingCallbackSubject", "Lz51/m;", "danmakuRepo", "Lz51/m;", "p1", "()Lz51/m;", "setDanmakuRepo", "(Lz51/m;)V", "Ll81/a;", "clickEventsObservable", "o1", "setClickEventsObservable", "Loa1/d;", "screenChangeListener", "Loa1/d;", com.alipay.sdk.widget.c.f18364b, "()Loa1/d;", "setScreenChangeListener", "(Loa1/d;)V", "Loa1/c;", "screenOrientationChangeSubject", "w1", "setScreenOrientationChangeSubject", "Lea1/b;", "seekBarDraggingStatusBehavior", INoCaptchaComponent.f17800x1, "setSeekBarDraggingStatusBehavior", "Lhe1/d;", "asyncWidgetsEntityObserver", "m1", "setAsyncWidgetsEntityObserver", "<init>", "()V", "matrix_detail_feed_library_release"}, k = 1, mv = {1, 6, 0})
/* compiled from: VideoLandscapeController.kt */
public final class v0 extends tu0.b<d1, v0, x0> {

    /* renamed from: a  reason: collision with root package name */
    public final NoteFeed f148853a;

    /* renamed from: b  reason: collision with root package name */
    public Function0<Integer> f148854b;

    /* renamed from: c  reason: collision with root package name */
    public k61.b f148855c;

    /* renamed from: d  reason: collision with root package name */
    public ob1.b f148856d;

    /* renamed from: e  reason: collision with root package name */
    public XhsActivity f148857e;

    /* renamed from: f  reason: collision with root package name */
    public dx2.b<ja1.a> f148858f;

    /* renamed from: g  reason: collision with root package name */
    public dx2.g<u41.b> f148859g;

    /* renamed from: h  reason: collision with root package name */
    public dw2.r<Triple<Function0<Integer>, NoteFeed, Object>> f148860h;

    /* renamed from: i  reason: collision with root package name */
    public dx2.b<i91.a> f148861i;

    /* renamed from: j  reason: collision with root package name */
    public dx2.g<u91.a> f148862j;

    /* renamed from: k  reason: collision with root package name */
    public ab1.l f148863k;

    /* renamed from: l  reason: collision with root package name */
    public y<Float> f148864l;

    /* renamed from: m  reason: collision with root package name */
    public dw2.r<Float> f148865m;

    /* renamed from: n  reason: collision with root package name */
    public dx2.b<f61.d> f148866n;

    /* renamed from: o  reason: collision with root package name */
    public z51.m f148867o;

    /* renamed from: p  reason: collision with root package name */
    public dx2.g<l81.a> f148868p;

    /* renamed from: q  reason: collision with root package name */
    public oa1.d f148869q;

    /* renamed from: r  reason: collision with root package name */
    public dw2.r<oa1.c> f148870r;

    /* renamed from: s  reason: collision with root package name */
    public dx2.b<ea1.b> f148871s;

    /* renamed from: t  reason: collision with root package name */
    public y<Triple<Function0<Integer>, NoteFeed, he1.d>> f148872t;

    /* renamed from: u  reason: collision with root package name */
    public int f148873u;

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: VideoLandscapeController.kt */
    public /* synthetic */ class a {

        /* renamed from: a  reason: collision with root package name */
        public static final /* synthetic */ int[] f148874a;

        static {
            int[] iArr = new int[l81.a.values().length];
            iArr[l81.a.DOUBLE_CLICK.ordinal()] = 1;
            iArr[l81.a.LONG_PRESS.ordinal()] = 2;
            f148874a = iArr;
        }
    }

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

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

        @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
        /* compiled from: VideoLandscapeController.kt */
        public /* synthetic */ class a {

            /* renamed from: a  reason: collision with root package name */
            public static final /* synthetic */ int[] f148876a;

            static {
                int[] iArr = new int[Lifecycle.Event.values().length];
                iArr[Lifecycle.Event.ON_RESUME.ordinal()] = 1;
                iArr[Lifecycle.Event.ON_PAUSE.ordinal()] = 2;
                f148876a = iArr;
            }
        }

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

        /* 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.f148876a[event.ordinal()];
            if (i10 == 1) {
                ((d1) this.f148875a.getPresenter()).M();
            } else if (i10 == 2) {
                ((d1) this.f148875a.getPresenter()).J();
                this.f148875a.getActivity().setResult(-1);
                VideoItemPlayerView B = ((d1) this.f148875a.getPresenter()).B();
                ViewGroup viewGroup = null;
                if (B != null) {
                    ViewParent parent = B.getParent();
                    ViewGroup viewGroup2 = parent instanceof ViewGroup ? (ViewGroup) parent : null;
                    if (viewGroup2 != null) {
                        viewGroup2.removeView(B);
                    }
                    v91.a.f139788a.f(B);
                }
                View A = ((d1) this.f148875a.getPresenter()).A();
                if (A != null) {
                    v91.a.f139788a.d(A);
                    ViewParent parent2 = B != null ? B.getParent() : null;
                    if (parent2 instanceof ViewGroup) {
                        viewGroup = (ViewGroup) parent2;
                    }
                    if (viewGroup != null) {
                        viewGroup.removeView(A);
                    }
                }
            }
        }
    }

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

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

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

        /* 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);
            d.a.a(this.f148877a.v1(), oa1.f.SCREEN_PORTRAIT, null, 2, null);
        }
    }

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

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

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

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

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

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

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: VideoLandscapeController.kt */
    public /* synthetic */ class g extends FunctionReferenceImpl implements Function1<Boolean, Unit> {
        public g(Object obj) {
            super(1, obj, v0.class, "videoPlay", "videoPlay(Z)V", 0);
        }

        public final void a(boolean z14) {
            ((v0) this.receiver).b2(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(Boolean bool) {
            a(bool.booleanValue());
            return Unit.INSTANCE;
        }
    }

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: VideoLandscapeController.kt */
    public /* synthetic */ class h extends FunctionReferenceImpl implements Function1<Float, Unit> {
        public h(Object obj) {
            super(1, obj, v0.class, "setVideoSpeed", "setVideoSpeed(F)V", 0);
        }

        public final void a(float f14) {
            ((v0) this.receiver).Z1(f14);
        }

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

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

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

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

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public j(v0 v0Var) {
            super(1);
            this.f148878a = v0Var;
        }

        public final void a(oa1.c cVar) {
            this.f148878a.getActivity().setResult(-1);
            this.f148878a.getActivity().onBackPressed();
        }

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

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

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public k(v0 v0Var) {
            super(1);
            this.f148879a = v0Var;
        }

        public final void a(u91.c cVar) {
            if (cVar.a() <= 0) {
                m0.f132115a.J(this.f148879a.getActivity().getWindow());
                if (cVar.b()) {
                    ((d1) this.f148879a.getPresenter()).E();
                } else {
                    ((d1) this.f148879a.getPresenter()).P(3000);
                }
            } else if (cVar.b()) {
                ((d1) this.f148879a.getPresenter()).P(cVar.a());
            }
        }

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

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

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public l(v0 v0Var) {
            super(1);
            this.f148880a = v0Var;
        }

        public final void a(u41.b bVar) {
            if (bVar instanceof b.c) {
                ((d1) this.f148880a.getPresenter()).N(((b.c) bVar).a());
            }
        }

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

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: VideoLandscapeController.kt */
    public /* synthetic */ class m extends FunctionReferenceImpl implements Function1<Throwable, Unit> {
        public m(Object obj) {
            super(1, obj, z41.l.class, "logError", "logError(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");
            z41.l.f(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 = {"Lea1/b;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lea1/b;)V"}, k = 3, mv = {1, 6, 0})
    /* compiled from: VideoLandscapeController.kt */
    public static final class n extends Lambda implements Function1<ea1.b, Unit> {

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public n(v0 v0Var) {
            super(1);
            this.f148881a = v0Var;
        }

        public final void a(ea1.b bVar) {
            ((d1) this.f148881a.getPresenter()).Q();
            if (bVar.a()) {
                ((d1) this.f148881a.getPresenter()).j();
            } else {
                ((d1) this.f148881a.getPresenter()).P(3000);
            }
        }

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

    @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>", "", "hasFocus", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: VideoLandscapeController.kt */
    public static final class o extends Lambda implements Function1<Boolean, Unit> {

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public o(v0 v0Var) {
            super(1);
            this.f148882a = v0Var;
        }

        /* 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) {
            if (z14) {
                this.f148882a.v1().h(this.f148882a.f148853a);
            } else {
                d.a.b(this.f148882a.v1(), false, 1, null);
            }
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0000\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: VideoLandscapeController.kt */
    public static final class p extends Lambda implements Function1<g32.l, Unit> {

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

        /* renamed from: b  reason: collision with root package name */
        public final /* synthetic */ ma1.b f148884b;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public p(v0 v0Var, ma1.b bVar) {
            super(1);
            this.f148883a = v0Var;
            this.f148884b = bVar;
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // kotlin.jvm.functions.Function1
        public final void invoke(g32.l lVar) {
            if (lVar instanceof g32.r) {
                this.f148883a.r1().x(this.f148883a.f148853a.getId(), true);
                this.f148883a.a2(new a.f(f32.j.STATE_PLAYING));
                ((d1) this.f148883a.getPresenter()).S(false);
            } else if (lVar instanceof g32.i) {
                this.f148883a.r1().x(this.f148883a.f148853a.getId(), false);
                this.f148883a.a2(a.c.f94790a);
            } else if (lVar instanceof g32.k) {
                g32.k kVar = (g32.k) lVar;
                this.f148883a.r1().g(this.f148883a.f148853a.getId(), 0, kVar.a());
                this.f148883a.a2(new a.e(kVar.a()));
                if (this.f148883a.f148853a.getCurrentVideoPosition() != -1) {
                    z22.h.o(this.f148884b, 0);
                    this.f148883a.f148853a.setCurrentVideoPosition(-1);
                }
                x.d(x.f132162a, this.f148883a.getActivity(), w.MATRIX, null, null, 12, null);
            } else if (lVar instanceof g32.b) {
                this.f148883a.a2(new a.C1284a(true));
                this.f148883a.X1(f32.j.STATE_BUFFERING_START);
            } else if (lVar instanceof g32.a) {
                this.f148883a.a2(new a.C1284a(false));
                this.f148883a.X1(f32.j.STATE_BUFFERING_END);
            } else if (lVar instanceof g32.e) {
                this.f148883a.V1();
            } else if (lVar instanceof g32.j) {
                this.f148883a.V1();
            } else {
                boolean z14 = lVar instanceof g32.g;
            }
        }
    }

    @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\t\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: VideoLandscapeController.kt */
    public static final class q extends Lambda implements Function1<Long, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ ma1.b f148885a;

        /* renamed from: b  reason: collision with root package name */
        public final /* synthetic */ v0 f148886b;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public q(ma1.b bVar, v0 v0Var) {
            super(1);
            this.f148885a = bVar;
            this.f148886b = v0Var;
        }

        /* 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(Long l14) {
            invoke(l14.longValue());
            return Unit.INSTANCE;
        }

        public final void invoke(long j14) {
            if (z22.h.c(this.f148885a) > 0) {
                this.f148886b.f(j14, z22.h.c(this.f148885a));
            }
        }
    }

    @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"", AdvanceSetting.NETWORK_TYPE, "Lu22/e;", "a", "(I)Lu22/e;"}, k = 3, mv = {1, 6, 0})
    /* compiled from: VideoLandscapeController.kt */
    public static final class r extends Lambda implements Function1<Integer, u22.e> {

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public r(v0 v0Var) {
            super(1);
            this.f148887a = v0Var;
        }

        public final u22.e a(int i10) {
            return ((d1) this.f148887a.getPresenter()).z();
        }

        /* 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 */ u22.e invoke(Integer num) {
            return a(num.intValue());
        }
    }

    @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lcom/xingin/entities/x;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lcom/xingin/entities/x;)V"}, k = 3, mv = {1, 6, 0})
    /* compiled from: VideoLandscapeController.kt */
    public static final class s extends Lambda implements Function1<com.xingin.entities.x, Unit> {

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

        public s() {
            super(1);
        }

        public final void a(com.xingin.entities.x xVar) {
            Intrinsics.checkNotNullParameter(xVar, AdvanceSetting.NETWORK_TYPE);
        }

        /* 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(com.xingin.entities.x xVar) {
            a(xVar);
            return Unit.INSTANCE;
        }
    }

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: VideoLandscapeController.kt */
    public /* synthetic */ class t extends FunctionReferenceImpl implements Function1<Throwable, Unit> {
        public t(Object obj) {
            super(1, obj, z41.l.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");
            z41.l.e(th3);
        }
    }

    @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"<anonymous>", "", "invoke", "()Ljava/lang/Integer;"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: VideoLandscapeController.kt */
    public static final class u extends Lambda implements Function0<Integer> {

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

        public u() {
            super(0);
        }

        @Override // kotlin.jvm.functions.Function0
        public final Integer invoke() {
            v91.b b14 = v91.a.f139788a.b();
            return Integer.valueOf(b14 != null ? b14.f() : 0);
        }
    }

    public v0() {
        NoteFeed noteFeed;
        v91.b b14 = v91.a.f139788a.b();
        this.f148853a = (b14 == null || (noteFeed = b14.c()) == null) ? new NoteFeed(null, null, null, null, null, null, 0, null, null, null, null, null, false, null, null, null, null, null, false, false, 0, null, 0, 0, 0, 0, false, false, null, null, 0, null, null, null, null, false, null, false, null, null, 0.0f, null, null, null, null, false, false, 0, null, null, false, null, false, null, null, null, null, null, null, 0, null, null, null, null, null, null, false, 0, null, false, null, false, null, null, null, null, null, false, false, 0, null, null, null, null, null, null, null, null, null, null, null, null, false, false, null, -1, -1, Integer.MAX_VALUE, null) : noteFeed;
        this.f148854b = u.f148889a;
    }

    public static final boolean E1(oa1.c cVar) {
        Intrinsics.checkNotNullParameter(cVar, AdvanceSetting.NETWORK_TYPE);
        return cVar.c() == oa1.f.SCREEN_PORTRAIT;
    }

    public static final boolean G1(v0 v0Var, Boolean bool) {
        Intrinsics.checkNotNullParameter(v0Var, "this$0");
        Intrinsics.checkNotNullParameter(bool, AdvanceSetting.NETWORK_TYPE);
        return !bool.booleanValue() && Intrinsics.areEqual(v0Var.v1().a(), v0Var.f148853a.getId());
    }

    public static final u91.c H1(Boolean bool) {
        Intrinsics.checkNotNullParameter(bool, AdvanceSetting.NETWORK_TYPE);
        return new u91.c(true, 0);
    }

    public static final boolean I1(ja1.a aVar) {
        Intrinsics.checkNotNullParameter(aVar, AdvanceSetting.NETWORK_TYPE);
        return (aVar instanceof a.b) || (aVar instanceof a.d);
    }

    public static final u91.c K1(ja1.a aVar) {
        Intrinsics.checkNotNullParameter(aVar, AdvanceSetting.NETWORK_TYPE);
        return new u91.c(true, 3000);
    }

    public static final boolean L1(l81.a aVar) {
        Intrinsics.checkNotNullParameter(aVar, AdvanceSetting.NETWORK_TYPE);
        return aVar == l81.a.SINGLE_CLICK;
    }

    public static final u91.c N1(v0 v0Var, l81.a aVar) {
        Intrinsics.checkNotNullParameter(v0Var, "this$0");
        Intrinsics.checkNotNullParameter(aVar, AdvanceSetting.NETWORK_TYPE);
        return new u91.c(true, ((d1) v0Var.getPresenter()).H() ? 0 : 3000);
    }

    public static final boolean P1(l81.a aVar) {
        Intrinsics.checkNotNullParameter(aVar, AdvanceSetting.NETWORK_TYPE);
        int i10 = a.f148874a[aVar.ordinal()];
        return (i10 == 1 || i10 == 2) ? false : true;
    }

    public final dx2.b<ja1.a> A1() {
        dx2.b<ja1.a> bVar = this.f148858f;
        if (bVar != null) {
            return bVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("videoNoteBehavior");
        return null;
    }

    public final dw2.r<Float> B1() {
        dw2.r<Float> rVar = this.f148865m;
        if (rVar != null) {
            return rVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("videoSpeedEventObservable");
        return null;
    }

    public final y<Float> C1() {
        y<Float> yVar = this.f148864l;
        if (yVar != null) {
            return yVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("videoSpeedEventObserver");
        return null;
    }

    public final void D1() {
        bj2.h.d(((d1) getPresenter()).h(), this, new c(this));
        bj2.h.e(((d1) getPresenter()).I(), this, new d(getPresenter()));
        bj2.h.e(((d1) getPresenter()).s(), this, new e(getPresenter()));
        bj2.h.e(((d1) getPresenter()).R(), this, new f(this));
        bj2.h.d(((d1) getPresenter()).y(), this, new g(this));
        bj2.h.d(B1(), this, new h(this));
        dw2.r<u91.a> n14 = ((d1) getPresenter()).n();
        Intrinsics.checkNotNullExpressionValue(n14, "presenter.danmakuSettingBtnClick()");
        bj2.h.e(n14, this, new i(this));
        dw2.r<oa1.c> u04 = w1().u0(u0.f148851a);
        Intrinsics.checkNotNullExpressionValue(u04, "screenOrientationChangeS…nStatus.SCREEN_PORTRAIT }");
        bj2.h.d(u04, this, new j(this));
    }

    public final void F1() {
        dw2.r O0 = dw2.r.O0(getActivity().windowFocusChanges().u0(new q0(this)).M0(p0.f148841a), A1().u0(t0.f148849a).M0(o0.f148839a), o1().u0(r0.f148845a).M0(new n0(this)));
        Intrinsics.checkNotNullExpressionValue(O0, "merge(\n            //失去焦…)\n            }\n        )");
        bj2.h.d(O0, this, new k(this));
    }

    public final void O1() {
        ((d1) getPresenter()).x().u0(s0.f148847a).c(o1());
    }

    public final void Q1() {
        bj2.h.f(y1(), this, new l(this), new m(z41.l.f160483a));
        bj2.h.d(x1(), this, new n(this));
    }

    public final void R1() {
        bj2.h.d(getActivity().windowFocusChanges(), this, new o(this));
    }

    public final void S1(Object obj) {
        dw2.r<Triple<Function0<Integer>, NoteFeed, Object>> updateDateObservable = getUpdateDateObservable();
        dx2.b bVar = updateDateObservable instanceof dx2.b ? (dx2.b) updateDateObservable : null;
        if (bVar != null) {
            bVar.a(new Triple(this.f148854b, this.f148853a, l61.a.ORIENTATION_LANDSCAPE));
        }
    }

    public final void T1() {
        ma1.b D = ((d1) getPresenter()).D();
        dw2.r<? super g32.l> i10 = z22.h.i(D);
        if (i10 != null) {
            Object n14 = i10.n(com.uber.autodispose.d.b(this));
            Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))");
            com.uber.autodispose.y yVar = (com.uber.autodispose.y) n14;
            if (yVar != null) {
                bj2.h.b(yVar, new p(this, D));
            }
        }
        dw2.r h10 = z22.h.h(D, 0, 1, null);
        if (h10 != null) {
            bj2.h.d(h10, this, new q(D, this));
        }
    }

    public final void U1() {
        f61.g.f75996a.k(this.f148853a, this.f148854b.invoke().intValue(), r1(), false);
        VideoFeedDanmaku z14 = p1().z(this.f148853a.getId());
        if (z14 != null) {
            tx1.b.f135290a.a(getActivity(), new tx1.a(true, z14.getCanDelete(), z14.getManageLink(), r1().l(), (this.f148854b.invoke().intValue() - r1().a()) + 1, r1().y(this.f148853a.getId()), this.f148853a.getUser().getId()), q1());
        }
    }

    public final void V1() {
        this.f148873u++;
        a2(a.d.f94791a);
        Y1();
        z1().a(new a.f(0));
    }

    public final void W1() {
        xx1.a.f156168a.a(getActivity(), true, ((d1) getPresenter()).v(), C1());
        mb1.i.v0(mb1.i.f105119a, r1(), this.f148853a, this.f148854b.invoke().intValue(), true, true, 0.0f, 0.0f, 96, null);
    }

    public final void X1(f32.j jVar) {
        n1().h(jVar, this.f148853a, this.f148854b.invoke().intValue(), u1().l(), new r(this));
    }

    public final void Y1() {
        dw2.r<com.xingin.entities.x> fetchVideoFinishedConfig = ((NoteDetailService) fz1.b.f80449a.a(NoteDetailService.class)).fetchVideoFinishedConfig(this.f148853a.getId());
        a0 a0Var = a0.D;
        Intrinsics.checkNotNullExpressionValue(a0Var, "UNBOUND");
        bj2.h.f(fetchVideoFinishedConfig, a0Var, s.f148888a, new t(z41.l.f160483a));
    }

    public final void Z1(float f14) {
        mb1.i.f105119a.u0(r1(), this.f148853a, this.f148854b.invoke().intValue(), true, false, ((d1) getPresenter()).v(), f14);
        ((d1) getPresenter()).O(f14);
    }

    public final void a2(ja1.a aVar) {
        A1().a(aVar);
    }

    public final void b2(boolean z14) {
        mb1.i.f105119a.n(r1(), this.f148853a, this.f148854b.invoke().intValue(), ((float) ((d1) getPresenter()).C()) / 1000.0f, "click_btn");
        ((d1) getPresenter()).L(z14);
    }

    public final void f(long j14, long j15) {
        r1().g(this.f148853a.getId(), j14, j15);
        a2(new a.g(j14, j15));
    }

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

    public final dw2.r<Triple<Function0<Integer>, NoteFeed, Object>> getUpdateDateObservable() {
        dw2.r<Triple<Function0<Integer>, NoteFeed, Object>> rVar = this.f148860h;
        if (rVar != null) {
            return rVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("updateDateObservable");
        return null;
    }

    public final void i1() {
        ((d1) getPresenter()).i(this.f148853a.getTitle());
        S1(l61.a.ORIENTATION_LANDSCAPE_LEFT);
    }

    public final void j1() {
        bj2.h.d(getActivity().lifecycle(), this, new b(this));
    }

    public final void k1() {
        T1();
    }

    public final void l1() {
        he1.d b14;
        x0 x0Var;
        x0 x0Var2;
        v91.b b15 = v91.a.f139788a.b();
        if (b15 != null && (b14 = b15.b()) != null) {
            if (!(b14.getVoteStickers() == null || (x0Var2 = (x0) getLinker()) == null)) {
                x0Var2.b(true);
            }
            if (!(b14.getVideoMarks() == null || (x0Var = (x0) getLinker()) == null)) {
                x0Var.a(true);
            }
            m1().a(new Triple<>(this.f148854b, this.f148853a, b14));
        }
    }

    public final y<Triple<Function0<Integer>, NoteFeed, he1.d>> m1() {
        y<Triple<Function0<Integer>, NoteFeed, he1.d>> yVar = this.f148872t;
        if (yVar != null) {
            return yVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("asyncWidgetsEntityObserver");
        return null;
    }

    public final ab1.l n1() {
        ab1.l lVar = this.f148863k;
        if (lVar != null) {
            return lVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("catonHelper");
        return null;
    }

    public final dx2.g<l81.a> o1() {
        dx2.g<l81.a> gVar = this.f148868p;
        if (gVar != null) {
            return gVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("clickEventsObservable");
        return null;
    }

    @Override // tu0.b
    public void onAttach(Bundle bundle) {
        super.onAttach(bundle);
        j1();
        k1();
        i1();
        D1();
        R1();
        F1();
        Q1();
        O1();
        ((d1) getPresenter()).w().c(t1());
        l1();
    }

    @Override // tu0.b
    public boolean onKeyDown(int i10, KeyEvent keyEvent) {
        getActivity().setResult(-1);
        return super.onKeyDown(i10, keyEvent);
    }

    public final z51.m p1() {
        z51.m mVar = this.f148867o;
        if (mVar != null) {
            return mVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("danmakuRepo");
        return null;
    }

    public final dx2.b<f61.d> q1() {
        dx2.b<f61.d> bVar = this.f148866n;
        if (bVar != null) {
            return bVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("danmakuSettingCallbackSubject");
        return null;
    }

    public final ob1.b r1() {
        ob1.b bVar = this.f148856d;
        if (bVar != null) {
            return bVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("dataHelper");
        return null;
    }

    public final dx2.g<u91.a> t1() {
        dx2.g<u91.a> gVar = this.f148862j;
        if (gVar != null) {
            return gVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("landscapeShowedBtnClickSubject");
        return null;
    }

    public final k61.b u1() {
        k61.b bVar = this.f148855c;
        if (bVar != null) {
            return bVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("pageIntentImpl");
        return null;
    }

    public final oa1.d v1() {
        oa1.d dVar = this.f148869q;
        if (dVar != null) {
            return dVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("screenChangeListener");
        return null;
    }

    public final dw2.r<oa1.c> w1() {
        dw2.r<oa1.c> rVar = this.f148870r;
        if (rVar != null) {
            return rVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("screenOrientationChangeSubject");
        return null;
    }

    public final dx2.b<ea1.b> x1() {
        dx2.b<ea1.b> bVar = this.f148871s;
        if (bVar != null) {
            return bVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("seekBarDraggingStatusBehavior");
        return null;
    }

    public final dx2.g<u41.b> y1() {
        dx2.g<u41.b> gVar = this.f148859g;
        if (gVar != null) {
            return gVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("slideTimeSubject");
        return null;
    }

    public final dx2.b<i91.a> z1() {
        dx2.b<i91.a> bVar = this.f148861i;
        if (bVar != null) {
            return bVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("videoDanmakuEventInSubject");
        return null;
    }
}