package com.bytedance.ies.sdk.widgets;

import X.0Bs;
import X.0Bt;
import X.0Bv;
import X.0Bx;
import X.0By;
import X.1hK;
import X.2GD;
import android.content.Intent;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import com.bytedance.covode.number.Covode;
import com.bytedance.ies.sdk.widgets.Widget;

public class WidgetManager$1 implements Widget.WidgetCallback {
    public final /* synthetic */ WidgetManager this$0;

    static {
        Covode.recordClassIndex(30560);
    }

    public Fragment getFragment() {
        return this.this$0;
    }

    public WidgetManager$1(WidgetManager widgetManager) {
        this.this$0 = widgetManager;
    }

    public void startActivity(Intent intent) {
        this.this$0.startActivity(intent);
    }

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

    public static 0Bx INVOKESTATIC_com_bytedance_ies_sdk_widgets_WidgetManager$1_androidx_lifecycle_VScopeLancet_of(Fragment fragment) {
        0Bx LIZ = 0By.LIZ(fragment, (0Bv) null);
        if (2GD.LIZ) {
            0Bs.LIZ(LIZ, fragment);
        }
        return LIZ;
    }

    public <T extends 0Bt> T getViewModel(Class<T> cls) {
        if (this.this$0.parentFragment != null) {
            return INVOKESTATIC_com_bytedance_ies_sdk_widgets_WidgetManager$1_androidx_lifecycle_VScopeLancet_of(this.this$0.parentFragment).LIZ(cls);
        }
        return INVOKESTATIC_com_bytedance_ies_sdk_widgets_WidgetManager$1_androidx_lifecycle_VScopeLancet_of(this.this$0.getActivity()).LIZ(cls);
    }

    public void startActivityForResult(Intent intent, int i) {
        this.this$0.startActivityForResult(intent, i);
    }

    public void startActivity(Intent intent, Bundle bundle) {
        this.this$0.startActivity(intent, bundle);
    }

    public <T extends 0Bt> T getViewModel(Class<T> cls, 0Bv r3) {
        if (this.this$0.parentFragment != null) {
            return 0By.LIZ(this.this$0.parentFragment, r3).LIZ(cls);
        }
        return 0By.LIZ(this.this$0.getActivity(), r3).LIZ(cls);
    }

    public void startActivityForResult(Intent intent, int i, Bundle bundle) {
        this.this$0.startActivityForResult(intent, i, bundle);
    }
}
