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


package q81;

import android.content.res.Configuration;
import android.os.Bundle;
import com.drakeet.multitype.MultiTypeAdapter;
import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting;
import com.xingin.android.redutils.base.XhsActivity;
import com.xingin.entities.AtUserInfo;
import com.xingin.entities.HashTagListBean;
import com.xingin.matrix.detail.item.video.async.content.VideoNoteContentPresenter;
import com.xingin.matrix.followfeed.entities.NoteFeed;
import dw2.r;
import g61.i;
import ja1.a;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import kotlin.Metadata;
import kotlin.Pair;
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 kotlin.text.StringsKt__StringsJVMKt;
import qb1.b0;
import tu0.n;
import u41.b;
import z41.l;

@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\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\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\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\t\u0018\u00002\u0014\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u00030\u0001B\u0007¢\u0006\u0004\b_\u0010`J(\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\u0018\u0010\u000e\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0005H\u0002J\u0018\u0010\u000f\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0005H\u0002J\b\u0010\u0010\u001a\u00020\u000bH\u0002J\b\u0010\u0011\u001a\u00020\u000bH\u0002J\u0012\u0010\u0014\u001a\u00020\u000b2\b\u0010\u0013\u001a\u0004\u0018\u00010\u0012H\u0014RB\u0010\u0017\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\u00160\u00158\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b\u0017\u0010\u0018\u001a\u0004\b\u0019\u0010\u001a\"\u0004\b\u001b\u0010\u001cR\"\u0010\u001e\u001a\u00020\u001d8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b\u001e\u0010\u001f\u001a\u0004\b \u0010!\"\u0004\b\"\u0010#R\"\u0010%\u001a\u00020$8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b%\u0010&\u001a\u0004\b'\u0010(\"\u0004\b)\u0010*R\"\u0010,\u001a\u00020+8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b,\u0010-\u001a\u0004\b.\u0010/\"\u0004\b0\u00101R\"\u00103\u001a\u0002028\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b3\u00104\u001a\u0004\b5\u00106\"\u0004\b7\u00108R\"\u0010:\u001a\u0002098\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b:\u0010;\u001a\u0004\b<\u0010=\"\u0004\b>\u0010?R(\u0010B\u001a\b\u0012\u0004\u0012\u00020A0@8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bB\u0010C\u001a\u0004\bD\u0010E\"\u0004\bF\u0010GR(\u0010J\u001a\b\u0012\u0004\u0012\u00020I0H8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bJ\u0010K\u001a\u0004\bL\u0010M\"\u0004\bN\u0010OR(\u0010Q\u001a\b\u0012\u0004\u0012\u00020P0@8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bQ\u0010C\u001a\u0004\bR\u0010E\"\u0004\bS\u0010GR(\u0010U\u001a\b\u0012\u0004\u0012\u00020T0@8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bU\u0010C\u001a\u0004\bV\u0010E\"\u0004\bW\u0010GR\"\u0010Y\u001a\u00020X8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bY\u0010Z\u001a\u0004\b[\u0010\\\"\u0004\b]\u0010^¨\u0006a"}, d2 = {"Lq81/h;", "Lxu0/b;", "Lcom/xingin/matrix/detail/item/video/async/content/VideoNoteContentPresenter;", "Lq81/m;", "Lkotlin/Function0;", "", "position", "Lcom/xingin/matrix/followfeed/entities/NoteFeed;", "data", "", "payloads", "", "n1", "note", "Z0", "Y0", "l1", "k1", "Landroid/os/Bundle;", "savedInstanceState", "onAttach", "Ldw2/r;", "Lkotlin/Triple;", "updateDateObservable", "Ldw2/r;", "getUpdateDateObservable", "()Ldw2/r;", "setUpdateDateObservable", "(Ldw2/r;)V", "Lg61/i;", "guideManager", "Lg61/i;", "b1", "()Lg61/i;", "setGuideManager", "(Lg61/i;)V", "Lgb1/a;", "videoFeedRepo", "Lgb1/a;", "i1", "()Lgb1/a;", "setVideoFeedRepo", "(Lgb1/a;)V", "Lob1/b;", "dataHelper", "Lob1/b;", "a1", "()Lob1/b;", "setDataHelper", "(Lob1/b;)V", "Lk61/b;", "pageIntentImpl", "Lk61/b;", "e1", "()Lk61/b;", "setPageIntentImpl", "(Lk61/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;", "Ld91/a;", "noteContentEventSubject", "Ldx2/b;", "d1", "()Ldx2/b;", "setNoteContentEventSubject", "(Ldx2/b;)V", "Ldx2/g;", "Lu41/b;", "slideTimeSubject", "Ldx2/g;", "h1", "()Ldx2/g;", "setSlideTimeSubject", "(Ldx2/g;)V", "Lea1/a;", "seekBarBehavior", "f1", "setSeekBarBehavior", "Lja1/a;", "videoNoteBehavior", "j1", "setVideoNoteBehavior", "Lq81/n;", "maskViewPresenter", "Lq81/n;", "c1", "()Lq81/n;", "setMaskViewPresenter", "(Lq81/n;)V", "<init>", "()V", "matrix_detail_feed_library_release"}, k = 1, mv = {1, 6, 0})
/* compiled from: VideoNoteContentController.kt */
public final class h extends xu0.b<VideoNoteContentPresenter, h, m> {

    /* renamed from: a  reason: collision with root package name */
    public Function0<Integer> f120734a = g.f120761a;

    /* renamed from: b  reason: collision with root package name */
    public NoteFeed f120735b = 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: c  reason: collision with root package name */
    public r<Triple<Function0<Integer>, NoteFeed, Object>> f120736c;

    /* renamed from: d  reason: collision with root package name */
    public r<Pair<yu0.a, Integer>> f120737d;

    /* renamed from: e  reason: collision with root package name */
    public i f120738e;

    /* renamed from: f  reason: collision with root package name */
    public gb1.a f120739f;

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

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

    /* renamed from: i  reason: collision with root package name */
    public MultiTypeAdapter f120742i;

    /* renamed from: j  reason: collision with root package name */
    public XhsActivity f120743j;

    /* renamed from: k  reason: collision with root package name */
    public dx2.b<d91.a> f120744k;

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

    /* renamed from: m  reason: collision with root package name */
    public dx2.b<ea1.a> f120746m;

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

    /* renamed from: o  reason: collision with root package name */
    public n f120748o;

    /* renamed from: p  reason: collision with root package name */
    public long f120749p;

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

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

    @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "kotlin.jvm.PlatformType", "invoke", "(Ljava/lang/Boolean;)V"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: VideoNoteContentController.kt */
    public static final class b extends Lambda implements Function1<Boolean, Unit> {

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

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

        /* 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);
            return Unit.INSTANCE;
        }

        public final void invoke(Boolean bool) {
            dx2.b<d91.a> d14 = this.f120750a.d1();
            Intrinsics.checkNotNullExpressionValue(bool, AdvanceSetting.NETWORK_TYPE);
            d14.a(new d91.c(bool.booleanValue()));
        }
    }

    @Metadata(bv = {}, d1 = {"\u0000\u0017\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0007\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\b\u0010\u0006\u001a\u00020\u0004H\u0016J\b\u0010\u0007\u001a\u00020\u0004H\u0016¨\u0006\b"}, d2 = {"q81/h$c", "Lg91/b;", "", "expandRatio", "", "a", "c", "b", "matrix_detail_feed_library_release"}, k = 1, mv = {1, 6, 0})
    /* compiled from: VideoNoteContentController.kt */
    public static final class c implements g91.b {

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

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

        /* renamed from: c  reason: collision with root package name */
        public final /* synthetic */ int f120753c;

        public c(h hVar, NoteFeed noteFeed, int i10) {
            this.f120751a = hVar;
            this.f120752b = noteFeed;
            this.f120753c = i10;
        }

        @Override // g91.b
        public void a(float f14) {
            if (f14 > 0.0f) {
                this.f120751a.c1().h();
            } else {
                this.f120751a.c1().g();
            }
            this.f120751a.c1().b(f14);
            this.f120751a.d1().a(new d91.b(null, f14));
        }

        @Override // g91.b
        public void b() {
            mb1.i.f105119a.z(this.f120751a.a1(), this.f120752b, this.f120753c, false);
            this.f120751a.d1().a(new d91.b(Boolean.FALSE, -1.0f));
        }

        @Override // g91.b
        public void c() {
            mb1.i.f105119a.z(this.f120751a.a1(), this.f120752b, this.f120753c, true);
            this.f120751a.b1().r();
            this.f120751a.d1().a(new d91.b(Boolean.TRUE, -1.0f));
        }
    }

    @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lcom/xingin/entities/HashTagListBean$HashTag;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lcom/xingin/entities/HashTagListBean$HashTag;)V"}, k = 3, mv = {1, 6, 0})
    /* compiled from: VideoNoteContentController.kt */
    public static final class d extends Lambda implements Function1<HashTagListBean.HashTag, Unit> {

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

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

        public final void a(HashTagListBean.HashTag hashTag) {
            mb1.i iVar = mb1.i.f105119a;
            ob1.b a14 = this.f120754a.a1();
            NoteFeed noteFeed = this.f120754a.f120735b;
            int intValue = ((Number) this.f120754a.f120734a.invoke()).intValue();
            String str = hashTag.f52678id;
            Intrinsics.checkNotNullExpressionValue(str, "it.id");
            iVar.f0(a14, noteFeed, intValue, str, false);
        }

        /* 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(HashTagListBean.HashTag hashTag) {
            a(hashTag);
            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 = {"Lcom/xingin/entities/AtUserInfo;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lcom/xingin/entities/AtUserInfo;)V"}, k = 3, mv = {1, 6, 0})
    /* compiled from: VideoNoteContentController.kt */
    public static final class e extends Lambda implements Function1<AtUserInfo, Unit> {

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

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

        public final void a(AtUserInfo atUserInfo) {
            mb1.i.f105119a.n0(this.f120755a.a1(), this.f120755a.f120735b, ((Number) this.f120755a.f120734a.invoke()).intValue(), atUserInfo.getUserid());
        }

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

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

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

        @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 = {"Landroid/content/res/Configuration;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/res/Configuration;)V"}, k = 3, mv = {1, 6, 0})
        /* compiled from: VideoNoteContentController.kt */
        public static final class a extends Lambda implements Function1<Configuration, Unit> {

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

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

            public final void a(Configuration configuration) {
                Intrinsics.checkNotNullParameter(configuration, AdvanceSetting.NETWORK_TYPE);
                ((VideoNoteContentPresenter) this.f120757a.getPresenter()).s();
                ((VideoNoteContentPresenter) this.f120757a.getPresenter()).q(this.f120757a.f120735b, ((Number) this.f120757a.f120734a.invoke()).intValue());
            }

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

        @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: VideoNoteContentController.kt */
        public static final class b 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 */ h f120758a;

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

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

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

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

            public final void a(qx1.d dVar) {
                b0 b0Var = b0.f121032a;
                XhsActivity activity = this.f120759a.getActivity();
                Intrinsics.checkNotNullExpressionValue(dVar, AdvanceSetting.NETWORK_TYPE);
                b0Var.a(activity, dVar, ((Number) this.f120759a.f120734a.invoke()).intValue() - this.f120759a.i1().a(), this.f120759a.a1());
            }

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

        @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
        /* compiled from: VideoNoteContentController.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(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})
        /* compiled from: VideoNoteContentController.kt */
        public static final class e extends Lambda implements Function1<ja1.a, Unit> {

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

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

            public final void a(ja1.a aVar) {
                if (aVar instanceof a.g) {
                    this.f120760a.f120749p = ((a.g) aVar).a();
                } else if (aVar instanceof a.e) {
                    this.f120760a.f120749p = ((a.e) aVar).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(ja1.a aVar) {
                a(aVar);
                return Unit.INSTANCE;
            }
        }

        @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
        /* renamed from: q81.h$f$f  reason: collision with other inner class name */
        /* compiled from: VideoNoteContentController.kt */
        public /* synthetic */ class C1903f extends FunctionReferenceImpl implements Function1<Throwable, Unit> {
            public C1903f(Object obj) {
                super(1, obj, 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");
                l.f(th3);
            }
        }

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

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

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

        public static final void e(h hVar, qx1.d dVar) {
            Intrinsics.checkNotNullParameter(hVar, "this$0");
            dVar.e(hVar.f120735b);
        }

        public static final boolean f(u41.b bVar) {
            Intrinsics.checkNotNullParameter(bVar, AdvanceSetting.NETWORK_TYPE);
            return bVar instanceof b.C2207b;
        }

        public static final boolean g(Boolean bool) {
            Intrinsics.checkNotNullParameter(bool, AdvanceSetting.NETWORK_TYPE);
            return !bool.booleanValue();
        }

        public final void d(n.a aVar) {
            Intrinsics.checkNotNullParameter(aVar, AdvanceSetting.NETWORK_TYPE);
            r<Triple<Function0<Integer>, NoteFeed, Object>> updateDateObservable = this.f120756a.getUpdateDateObservable();
            h hVar = this.f120756a;
            bj2.h.d(updateDateObservable, hVar, new b(hVar));
            ((VideoNoteContentPresenter) this.f120756a.getPresenter()).D(this.f120756a.e1().F() ? 2 : 1);
            ((VideoNoteContentPresenter) this.f120756a.getPresenter()).C(false);
            r<qx1.d> m04 = ((VideoNoteContentPresenter) this.f120756a.getPresenter()).x().m0(new i(this.f120756a));
            Intrinsics.checkNotNullExpressionValue(m04, "presenter.getTopicAction… it.noteFeed = noteData }");
            h hVar2 = this.f120756a;
            c cVar = new c(hVar2);
            l lVar = l.f160483a;
            bj2.h.f(m04, hVar2, cVar, new d(lVar));
            dx2.b<ja1.a> j14 = this.f120756a.j1();
            h hVar3 = this.f120756a;
            bj2.h.f(j14, hVar3, new e(hVar3), new C1903f(lVar));
            this.f120756a.l1();
            this.f120756a.k1();
            r N0 = r.N0(this.f120756a.h1().u0(j.f120763a), this.f120756a.getActivity().windowFocusChanges().u0(k.f120764a));
            Intrinsics.checkNotNullExpressionValue(N0, "merge(slideTimeSubject.f…es().filter { it.not() })");
            bj2.h.e(N0, this.f120756a, new g(this.f120756a.getPresenter()));
            if (t10.b0.f132040a.A(this.f120756a.getActivity())) {
                r<Configuration> configChangesEvent = this.f120756a.getActivity().configChangesEvent();
                h hVar4 = this.f120756a;
                bj2.h.d(configChangesEvent, hVar4, new a(hVar4));
            }
        }

        /* 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(n.a aVar) {
            d(aVar);
            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: VideoNoteContentController.kt */
    public static final class g extends Lambda implements Function0<Integer> {

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

        public g() {
            super(0);
        }

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

    public static final ea1.a m1(h hVar, String str) {
        Intrinsics.checkNotNullParameter(hVar, "this$0");
        Intrinsics.checkNotNullParameter(str, AdvanceSetting.NETWORK_TYPE);
        long j14 = Long.MIN_VALUE;
        try {
            Date parse = new SimpleDateFormat("mm:ss", Locale.getDefault()).parse(StringsKt__StringsJVMKt.replace$default(str, ":", ":", false, 4, (Object) null));
            Calendar instance = Calendar.getInstance();
            instance.setTimeInMillis(parse != null ? parse.getTime() : Long.MIN_VALUE);
            j14 = 1000 * ((long) (instance.get(13) + (instance.get(12) * 60)));
        } catch (Exception unused) {
        }
        boolean z14 = false;
        if (0 <= j14 && j14 <= hVar.f120749p) {
            z14 = true;
        }
        if (!z14) {
            return new ea1.a(Long.MIN_VALUE, null, 2, null);
        }
        mb1.i.f105119a.o0(hVar.a1(), hVar.f120735b, hVar.f120734a.invoke().intValue(), str, false);
        return new ea1.a(j14, str);
    }

    public final void Y0(NoteFeed noteFeed, int i10) {
        c1().g();
        bj2.h.e(c1().d(), this, new a(getPresenter()));
        bj2.h.d(((VideoNoteContentPresenter) getPresenter()).v(), this, new b(this));
        ((VideoNoteContentPresenter) getPresenter()).E(new c(this, noteFeed, i10));
    }

    public final void Z0(NoteFeed noteFeed, int i10) {
        ((VideoNoteContentPresenter) getPresenter()).s();
        ((VideoNoteContentPresenter) getPresenter()).q(noteFeed, i10);
        Y0(noteFeed, i10);
    }

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

    public final i b1() {
        i iVar = this.f120738e;
        if (iVar != null) {
            return iVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("guideManager");
        return null;
    }

    public final n c1() {
        n nVar = this.f120748o;
        if (nVar != null) {
            return nVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("maskViewPresenter");
        return null;
    }

    public final dx2.b<d91.a> d1() {
        dx2.b<d91.a> bVar = this.f120744k;
        if (bVar != null) {
            return bVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("noteContentEventSubject");
        return null;
    }

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

    public final dx2.b<ea1.a> f1() {
        dx2.b<ea1.a> bVar = this.f120746m;
        if (bVar != null) {
            return bVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("seekBarBehavior");
        return null;
    }

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

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

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

    public final gb1.a i1() {
        gb1.a aVar = this.f120739f;
        if (aVar != null) {
            return aVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("videoFeedRepo");
        return null;
    }

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

    public final void k1() {
        bj2.h.d(((VideoNoteContentPresenter) getPresenter()).u(), this, new d(this));
        bj2.h.d(((VideoNoteContentPresenter) getPresenter()).t(), this, new e(this));
    }

    public final void l1() {
        ((VideoNoteContentPresenter) getPresenter()).w().M0(new g(this)).c(f1());
    }

    public final void n1(Function0<Integer> function0, NoteFeed noteFeed, Object obj) {
        boolean z14;
        boolean z15;
        this.f120735b = noteFeed;
        this.f120734a = function0;
        boolean z16 = false;
        if (obj == null || obj == l61.a.WITHOUT_VIDEO) {
            z14 = true;
        } else {
            z14 = false;
        }
        if (z14) {
            Z0(noteFeed, function0.invoke().intValue());
            return;
        }
        if (obj == l61.a.ORIENTATION_LANDSCAPE_RIGHT || obj == l61.a.ORIENTATION_LANDSCAPE_LEFT) {
            z15 = true;
        } else {
            z15 = false;
        }
        if (z15 || obj == l61.a.ORIENTATION_PORTRAIT) {
            z16 = true;
        }
        if (z16) {
            c1().g();
        }
    }

    @Override // xu0.b, tu0.b
    public void onAttach(Bundle bundle) {
        super.onAttach(bundle);
        bj2.h.d(wu0.c.a(getPresenter()), this, new f(this));
    }
}