package com.ss.android.ugc.aweme.services;

import X.0Bs;
import X.0Bv;
import X.0Bx;
import X.0By;
import X.1hK;
import X.2GD;
import X.5Kh;
import X.78T;
import X.C1817Mvs;
import X.C1943Mxu;
import X.C2711NOo;
import X.C2735NPm;
import X.C2967NYk;
import X.C4087NrO;
import X.C4424Nwp;
import X.M12;
import X.NQV;
import X.NXR;
import X.NY1;
import X.PMk;
import X.PMp;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.shortvideo.ShortVideoContext;
import com.ss.android.ugc.aweme.shortvideo.ShortVideoContextViewModel;
import kotlin.h.b.n;

public final class SplitShootBottomTabModule implements 5Kh, C2967NYk {
    public static final /* synthetic */ PMp[] $$delegatedProperties;
    public C1943Mxu cameraApiComponent;
    public final boolean defaultSelected;
    public final C4087NrO diContainer;
    public final 78T recordControlApi$delegate = C4424Nwp.LIZ(getDiContainer(), NQV.class);
    public final 78T speedApiComponent$delegate = C4424Nwp.LIZIZ(getDiContainer(), C1817Mvs.class);
    public final 78T splitShootApiComponent$delegate = C4424Nwp.LIZIZ(getDiContainer(), C2711NOo.class);
    public C2735NPm tabEnv;
    public final String tag;
    public final String text;

    public final NQV getRecordControlApi() {
        return (NQV) this.recordControlApi$delegate.LIZ(this, $$delegatedProperties[2]);
    }

    public final C1817Mvs getSpeedApiComponent() {
        return (C1817Mvs) this.speedApiComponent$delegate.LIZ(this, $$delegatedProperties[1]);
    }

    public final C2711NOo getSplitShootApiComponent() {
        return (C2711NOo) this.splitShootApiComponent$delegate.LIZ(this, $$delegatedProperties[0]);
    }

    public final NY1 provideScene() {
        return null;
    }

    public final C4087NrO getDiContainer() {
        return this.diContainer;
    }

    static {
        Class<SplitShootBottomTabModule> cls = SplitShootBottomTabModule.class;
        Covode.recordClassIndex(105175);
        $$delegatedProperties = new PMp[]{new PMk(cls, "splitShootApiComponent", "getSplitShootApiComponent()Lcom/ss/android/ugc/gamora/recorder/splitshoot/SplitShootApiComponent;", 0), new PMk(cls, "speedApiComponent", "getSpeedApiComponent()Lcom/ss/android/ugc/gamora/recorder/speed/SpeedApiComponent;", 0), new PMk(cls, "recordControlApi", "getRecordControlApi()Lcom/bytedance/creativex/recorder/camera/api/RecordControlApi;", 0)};
    }

    public final ShortVideoContext getShortVideoContext() {
        C2735NPm nPm = this.tabEnv;
        if (nPm == null) {
            n.LIZ("");
        }
        ShortVideoContextViewModel LIZ = INVOKESTATIC_com_ss_android_ugc_aweme_services_SplitShootBottomTabModule_androidx_lifecycle_VScopeLancet_of(nPm.LIZ()).LIZ(ShortVideoContextViewModel.class);
        n.LIZIZ(LIZ, "");
        ShortVideoContext shortVideoContext = LIZ.LIZ;
        n.LIZIZ(shortVideoContext, "");
        return shortVideoContext;
    }

    public static 0Bx INVOKESTATIC_com_ss_android_ugc_aweme_services_SplitShootBottomTabModule_androidx_lifecycle_VScopeLancet_of(1hK r2) {
        0Bx LIZ = 0By.LIZ(r2, (0Bv) null);
        if (2GD.LIZ) {
            0Bs.LIZ(LIZ, r2);
        }
        return LIZ;
    }

    public final void initialize(C2735NPm nPm) {
        M12.LIZ(nPm);
        this.cameraApiComponent = nPm.LIZLLL();
        this.tabEnv = nPm;
    }

    public final NXR createBottomTabItem(C2735NPm nPm) {
        M12.LIZ(nPm);
        return new NXR(this.text, this.tag, "video_15", this.defaultSelected, new SplitShootBottomTabModule$createBottomTabItem$1(this, nPm));
    }

    public SplitShootBottomTabModule(String str, String str2, C4087NrO nrO, boolean z) {
        M12.LIZ(str, str2, nrO);
        this.text = str;
        this.tag = str2;
        this.diContainer = nrO;
        this.defaultSelected = z;
    }
}
