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


package r81;

import a23.e0;
import android.os.Bundle;
import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting;
import com.xingin.android.redutils.base.XhsActivity;
import com.xingin.matrix.detail.danmaku.model.entities.VideoFeedDanmaku;
import com.xingin.matrix.followfeed.entities.NoteFeed;
import dw2.r;
import f61.d;
import i91.a;
import i91.c;
import ja.b1;
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 z41.l;
import z51.m;

@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\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\t\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\u0006\n\u0002\u0018\u0002\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\u0003\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\t\u0018\u00002\u0014\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u00030\u0001B\u0007¢\u0006\u0004\bW\u0010XJ(\u0010\f\u001a\u00020\u000b2\f\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00050\u00042\u0006\u0010\b\u001a\u00020\u00072\b\u0010\n\u001a\u0004\u0018\u00010\tH\u0002J\u0019\u0010\u000f\u001a\u00020\u000b2\b\u0010\u000e\u001a\u0004\u0018\u00010\rH\u0002¢\u0006\u0004\b\u000f\u0010\u0010J\u001b\u0010\u0012\u001a\u00020\u000b2\n\b\u0002\u0010\u0011\u001a\u0004\u0018\u00010\rH\u0002¢\u0006\u0004\b\u0012\u0010\u0010J\u001b\u0010\u0013\u001a\u00020\u000b2\n\b\u0002\u0010\u0011\u001a\u0004\u0018\u00010\rH\u0002¢\u0006\u0004\b\u0013\u0010\u0010J!\u0010\u0015\u001a\u00020\u000b2\u0006\u0010\u0014\u001a\u00020\r2\b\u0010\u0011\u001a\u0004\u0018\u00010\rH\u0002¢\u0006\u0004\b\u0015\u0010\u0016J\u0012\u0010\u0019\u001a\u00020\u000b2\b\u0010\u0018\u001a\u0004\u0018\u00010\u0017H\u0014J\b\u0010\u001a\u001a\u00020\u000bH\u0014R\"\u0010\u001c\u001a\u00020\u001b8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b\u001c\u0010\u001d\u001a\u0004\b\u001e\u0010\u001f\"\u0004\b \u0010!R\"\u0010#\u001a\u00020\"8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b#\u0010$\u001a\u0004\b%\u0010&\"\u0004\b'\u0010(RB\u0010+\u001a\"\u0012\u001e\u0012\u001c\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00050\u0004\u0012\u0004\u0012\u00020\u0007\u0012\u0006\u0012\u0004\u0018\u00010\t0*0)8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b+\u0010,\u001a\u0004\b-\u0010.\"\u0004\b/\u00100R(\u00103\u001a\b\u0012\u0004\u0012\u000202018\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b3\u00104\u001a\u0004\b5\u00106\"\u0004\b7\u00108R(\u0010:\u001a\b\u0012\u0004\u0012\u000209018\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b:\u00104\u001a\u0004\b;\u00106\"\u0004\b<\u00108R(\u0010>\u001a\b\u0012\u0004\u0012\u00020=018\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b>\u00104\u001a\u0004\b?\u00106\"\u0004\b@\u00108R\"\u0010B\u001a\u00020A8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bB\u0010C\u001a\u0004\bD\u0010E\"\u0004\bF\u0010GR(\u0010I\u001a\b\u0012\u0004\u0012\u00020H018\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bI\u00104\u001a\u0004\bJ\u00106\"\u0004\bK\u00108R(\u0010M\u001a\b\u0012\u0004\u0012\u00020L018\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bM\u00104\u001a\u0004\bN\u00106\"\u0004\bO\u00108R\"\u0010Q\u001a\u00020P8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bQ\u0010R\u001a\u0004\bS\u0010T\"\u0004\bU\u0010V¨\u0006Y"}, d2 = {"Lr81/f;", "Lxu0/b;", "Lr81/j;", "Lr81/h;", "Lkotlin/Function0;", "", "position", "Lcom/xingin/matrix/followfeed/entities/NoteFeed;", "data", "", "payloads", "", "u1", "", "videoPosition", "j1", "(Ljava/lang/Long;)V", "bindPosition", "d1", "f1", "beginMilSec", "i1", "(JLjava/lang/Long;)V", "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", "Lz51/m;", "danmakuRepo", "Lz51/m;", "m1", "()Lz51/m;", "setDanmakuRepo", "(Lz51/m;)V", "Ldw2/r;", "Lkotlin/Triple;", "updateObservable", "Ldw2/r;", "r1", "()Ldw2/r;", "setUpdateObservable", "(Ldw2/r;)V", "Ldx2/b;", "Lja1/a;", "videoNoteBehavior", "Ldx2/b;", "t1", "()Ldx2/b;", "setVideoNoteBehavior", "(Ldx2/b;)V", "Li91/a;", "danmakuInBehavior", "k1", "setDanmakuInBehavior", "Li91/b;", "danmakuOutBehavior", "l1", "setDanmakuOutBehavior", "Lk61/b;", "pageIntentImpl", "Lk61/b;", "q1", "()Lk61/b;", "setPageIntentImpl", "(Lk61/b;)V", "Li91/c;", "danmakuWidgetEvent", "o1", "setDanmakuWidgetEvent", "Lf61/d;", "danmakuSettingChangeBehavior", "n1", "setDanmakuSettingChangeBehavior", "Lob1/b;", "dataHelper", "Lob1/b;", "p1", "()Lob1/b;", "setDataHelper", "(Lob1/b;)V", "<init>", "()V", "matrix_detail_feed_library_release"}, k = 1, mv = {1, 6, 0})
/* compiled from: VideoFeedItemDanmakuV2Controller.kt */
public final class f extends xu0.b<j, f, h> {

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

    /* renamed from: b  reason: collision with root package name */
    public m f125165b;

    /* renamed from: c  reason: collision with root package name */
    public r<Triple<Function0<Integer>, NoteFeed, Object>> f125166c;

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

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

    /* renamed from: f  reason: collision with root package name */
    public dx2.b<i91.b> f125169f;

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

    /* renamed from: h  reason: collision with root package name */
    public Function0<Boolean> f125171h;

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

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

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

    /* renamed from: l  reason: collision with root package name */
    public NoteFeed f125175l = 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);

    /* renamed from: m  reason: collision with root package name */
    public Function0<Integer> f125176m = i.f125190a;

    /* renamed from: n  reason: collision with root package name */
    public boolean f125177n;

    /* renamed from: o  reason: collision with root package name */
    public boolean f125178o;

    /* renamed from: p  reason: collision with root package name */
    public boolean f125179p;

    /* renamed from: q  reason: collision with root package name */
    public VideoFeedDanmaku f125180q;

    @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/matrix/detail/danmaku/model/entities/VideoFeedDanmaku;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lcom/xingin/matrix/detail/danmaku/model/entities/VideoFeedDanmaku;)V"}, k = 3, mv = {1, 6, 0})
    /* compiled from: VideoFeedItemDanmakuV2Controller.kt */
    public static final class a extends Lambda implements Function1<VideoFeedDanmaku, Unit> {

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

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public a(f fVar, Long l14) {
            super(1);
            this.f125181a = fVar;
            this.f125182b = l14;
        }

        public final void a(VideoFeedDanmaku videoFeedDanmaku) {
            Intrinsics.checkNotNullParameter(videoFeedDanmaku, AdvanceSetting.NETWORK_TYPE);
            this.f125181a.f125177n = videoFeedDanmaku.getCanDelete();
            if (a61.c.hasNextPageDanmakus(videoFeedDanmaku)) {
                this.f125181a.i1(videoFeedDanmaku.getNextBeginMilSec(), this.f125182b);
                return;
            }
            this.f125181a.f125180q = videoFeedDanmaku;
            if (this.f125181a.f125179p) {
                this.f125181a.o1().a(new c.b(videoFeedDanmaku, this.f125181a.f125177n, this.f125182b));
            }
        }

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

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

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

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public c(f fVar, Long l14) {
            super(1);
            this.f125183a = fVar;
            this.f125184b = l14;
        }

        public final void a(ky2.d dVar) {
            h hVar = (h) this.f125183a.getLinker();
            if (hVar != null) {
                hVar.d();
            }
            dx2.b<i91.c> o14 = this.f125183a.o1();
            Intrinsics.checkNotNullExpressionValue(dVar, AdvanceSetting.NETWORK_TYPE);
            o14.a(new c.a(dVar));
            if (this.f125183a.f125178o) {
                VideoFeedDanmaku videoFeedDanmaku = this.f125183a.f125180q;
                if (videoFeedDanmaku != null) {
                    this.f125183a.o1().a(new c.b(videoFeedDanmaku, videoFeedDanmaku.getCanDelete(), this.f125184b));
                    return;
                }
                return;
            }
            this.f125183a.f1(this.f125184b);
        }

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

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

    @Metadata(d1 = {"\u0000\u001e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u00020\u00012 \u0010\u0002\u001a\u001c\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00050\u0004\u0012\u0004\u0012\u00020\u0006\u0012\u0006\u0012\u0004\u0018\u00010\u00070\u0003H\n¢\u0006\u0002\b\b"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "Lkotlin/Triple;", "Lkotlin/Function0;", "", "Lcom/xingin/matrix/followfeed/entities/NoteFeed;", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: VideoFeedItemDanmakuV2Controller.kt */
    public static final class e extends Lambda implements Function1<Triple<? extends Function0<? extends Integer>, ? extends NoteFeed, ? extends Object>, Unit> {

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public e(f fVar) {
            super(1);
            this.f125185a = fVar;
        }

        /* 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 Function0<? extends Integer>, ? extends NoteFeed, ? extends Object> triple) {
            invoke((Triple<? extends Function0<Integer>, NoteFeed, ? extends Object>) triple);
            return Unit.INSTANCE;
        }

        public final void invoke(Triple<? extends Function0<Integer>, NoteFeed, ? extends Object> triple) {
            Intrinsics.checkNotNullParameter(triple, AdvanceSetting.NETWORK_TYPE);
            this.f125185a.u1((Function0) triple.getFirst(), triple.getSecond(), triple.getThird());
        }
    }

    @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 = {"Lja1/a;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lja1/a;)V"}, k = 3, mv = {1, 6, 0})
    /* renamed from: r81.f$f  reason: collision with other inner class name */
    /* compiled from: VideoFeedItemDanmakuV2Controller.kt */
    public static final class C1984f extends Lambda implements Function1<ja1.a, Unit> {

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public C1984f(f fVar) {
            super(1);
            this.f125186a = fVar;
        }

        public final void a(ja1.a aVar) {
            if ((aVar instanceof a.g) && b1.f94179a.S0().isDanmakuOpened()) {
                f.e1(this.f125186a, null, 1, null);
                this.f125186a.f1(Long.valueOf(((a.g) aVar).b()));
            }
        }

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

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public g(f fVar) {
            super(1);
            this.f125187a = fVar;
        }

        public final void a(i91.a aVar) {
            if (aVar instanceof a.g) {
                a.g gVar = (a.g) aVar;
                if (gVar.b()) {
                    this.f125187a.d1(Long.valueOf(gVar.a()));
                }
            } else if (Intrinsics.areEqual(aVar, a.b.f89243a)) {
                f.e1(this.f125187a, null, 1, null);
                f.h1(this.f125187a, null, 1, null);
            }
        }

        /* 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(i91.a aVar) {
            a(aVar);
            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 = {"Lf61/d;", "kotlin.jvm.PlatformType", "event", "", "a", "(Lf61/d;)V"}, k = 3, mv = {1, 6, 0})
    /* compiled from: VideoFeedItemDanmakuV2Controller.kt */
    public static final class h extends Lambda implements Function1<f61.d, Unit> {

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

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

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

            static {
                int[] iArr = new int[f61.c.values().length];
                iArr[f61.c.TRANSPARENCY.ordinal()] = 1;
                iArr[f61.c.SPEED.ordinal()] = 2;
                f125189a = iArr;
            }
        }

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public h(f fVar) {
            super(1);
            this.f125188a = fVar;
        }

        public final void a(f61.d dVar) {
            if (dVar instanceof d.a) {
                d.a aVar = (d.a) dVar;
                int i10 = a.f125189a[aVar.c().ordinal()];
                if (i10 == 1) {
                    ((j) this.f125188a.getPresenter()).o(((float) aVar.b()) / ((float) jy2.c.f96913a));
                    f61.g.f75996a.f(this.f125188a.f125175l, ((Number) this.f125188a.f125176m.invoke()).intValue(), this.f125188a.p1(), e0.transparency, String.valueOf(aVar.a()), String.valueOf(aVar.b()), false);
                } else if (i10 == 2) {
                    ((j) this.f125188a.getPresenter()).q(aVar.b());
                    f61.g.f75996a.f(this.f125188a.f125175l, ((Number) this.f125188a.f125176m.invoke()).intValue(), this.f125188a.p1(), e0.speed, String.valueOf(aVar.a()), String.valueOf(aVar.b()), false);
                }
            } else if (dVar instanceof d.b) {
                f61.g.f75996a.l(this.f125188a.f125175l, ((Number) this.f125188a.f125176m.invoke()).intValue(), this.f125188a.p1());
                if (((d.b) dVar).a()) {
                    this.f125188a.getActivity().setRequestedOrientation(1);
                }
            }
        }

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

    @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: VideoFeedItemDanmakuV2Controller.kt */
    public static final class i extends Lambda implements Function0<Integer> {

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

        public i() {
            super(0);
        }

        @Override // kotlin.jvm.functions.Function0
        public final Integer invoke() {
            return -1;
        }
    }

    public static /* synthetic */ void e1(f fVar, Long l14, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            l14 = null;
        }
        fVar.d1(l14);
    }

    public static /* synthetic */ void h1(f fVar, Long l14, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            l14 = null;
        }
        fVar.f1(l14);
    }

    public final void d1(Long l14) {
        if (!this.f125179p) {
            this.f125179p = true;
            j1(l14);
        }
    }

    public final void f1(Long l14) {
        if (!this.f125178o) {
            i1(0, l14);
            this.f125178o = true;
        }
    }

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

    public final void i1(long j14, Long l14) {
        bj2.h.f(m.q(m1(), this.f125175l.getId(), j14, 0, 0, q1().b0(), this.f125176m.invoke().intValue(), 12, null), this, new a(this, l14), new b(l.f160483a));
    }

    public final void j1(Long l14) {
        r<ky2.d> x14 = ((j) getPresenter()).l(getActivity().getWindowManager().getDefaultDisplay().getRefreshRate(), l1()).W0(gw2.a.a()).x1(mi2.a.P());
        Intrinsics.checkNotNullExpressionValue(x14, "presenter.bindDanmakuIns…ibeOn(LightExecutor.io())");
        bj2.h.f(x14, this, new c(this, l14), new d(l.f160483a));
    }

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

    public final dx2.b<i91.b> l1() {
        dx2.b<i91.b> bVar = this.f125169f;
        if (bVar != null) {
            return bVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("danmakuOutBehavior");
        return null;
    }

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

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

    public final dx2.b<i91.c> o1() {
        dx2.b<i91.c> bVar = this.f125172i;
        if (bVar != null) {
            return bVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("danmakuWidgetEvent");
        return null;
    }

    @Override // xu0.b, tu0.b
    public void onAttach(Bundle bundle) {
        super.onAttach(bundle);
        bj2.h.d(r1(), this, new e(this));
        bj2.h.d(t1(), this, new C1984f(this));
        bj2.h.d(k1(), this, new g(this));
        bj2.h.d(n1(), this, new h(this));
    }

    @Override // xu0.b, tu0.b
    public void onDetach() {
        if (this.f125179p) {
            h hVar = (h) getLinker();
            if (hVar != null) {
                hVar.e();
            }
            this.f125179p = false;
        }
        super.onDetach();
    }

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

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

    public final r<Triple<Function0<Integer>, NoteFeed, Object>> r1() {
        r<Triple<Function0<Integer>, NoteFeed, Object>> rVar = this.f125166c;
        if (rVar != null) {
            return rVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("updateObservable");
        return null;
    }

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

    public final void u1(Function0<Integer> function0, NoteFeed noteFeed, Object obj) {
        this.f125176m = function0;
        this.f125175l = noteFeed;
        if (obj == null) {
            this.f125178o = false;
        }
    }
}