2021-09-27 20:31:35 +00:00
|
|
|
package com.discord.widgets.guildscheduledevent;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.view.View;
|
|
|
|
import androidx.fragment.app.Fragment;
|
|
|
|
import androidx.fragment.app.FragmentManager;
|
|
|
|
import c.d.b.a.a;
|
|
|
|
import com.discord.R;
|
|
|
|
import com.discord.app.AppBottomSheet;
|
|
|
|
import com.discord.databinding.WidgetGuildScheduledEventUpsellBottomSheetBinding;
|
|
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
|
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
|
|
|
import d0.g;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import kotlin.Lazy;
|
|
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
|
|
import kotlin.reflect.KProperty;
|
|
|
|
/* compiled from: WidgetGuildScheduledEventUpsellBottomSheet.kt */
|
|
|
|
public final class WidgetGuildScheduledEventUpsellBottomSheet extends AppBottomSheet {
|
|
|
|
public static final /* synthetic */ KProperty[] $$delegatedProperties = {a.a0(WidgetGuildScheduledEventUpsellBottomSheet.class, "binding", "getBinding()Lcom/discord/databinding/WidgetGuildScheduledEventUpsellBottomSheetBinding;", 0)};
|
|
|
|
public static final Companion Companion = new Companion(null);
|
|
|
|
public static final String GUILD_EVENT_UPSELL_CACHE_KEY = "GUILD_EVENT_UPSELL_CACHE_KEY";
|
|
|
|
private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetGuildScheduledEventUpsellBottomSheet$binding$2.INSTANCE, null, 2, null);
|
|
|
|
private final Lazy guildId$delegate = g.lazy(new WidgetGuildScheduledEventUpsellBottomSheet$guildId$2(this));
|
|
|
|
|
|
|
|
/* compiled from: WidgetGuildScheduledEventUpsellBottomSheet.kt */
|
|
|
|
public static final class Companion {
|
|
|
|
private Companion() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
|
|
this();
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void launch(FragmentManager fragmentManager, long j) {
|
|
|
|
m.checkNotNullParameter(fragmentManager, "fragmentManager");
|
|
|
|
WidgetGuildScheduledEventUpsellBottomSheet widgetGuildScheduledEventUpsellBottomSheet = new WidgetGuildScheduledEventUpsellBottomSheet();
|
|
|
|
Bundle bundle = new Bundle();
|
|
|
|
bundle.putLong("com.discord.intent.extra.EXTRA_GUILD_ID", j);
|
|
|
|
widgetGuildScheduledEventUpsellBottomSheet.setArguments(bundle);
|
|
|
|
widgetGuildScheduledEventUpsellBottomSheet.show(fragmentManager, WidgetGuildScheduledEventUpsellBottomSheet.class.getSimpleName());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public WidgetGuildScheduledEventUpsellBottomSheet() {
|
|
|
|
super(false, 1, null);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final /* synthetic */ long access$getGuildId$p(WidgetGuildScheduledEventUpsellBottomSheet widgetGuildScheduledEventUpsellBottomSheet) {
|
|
|
|
return widgetGuildScheduledEventUpsellBottomSheet.getGuildId();
|
|
|
|
}
|
|
|
|
|
|
|
|
private final WidgetGuildScheduledEventUpsellBottomSheetBinding getBinding() {
|
|
|
|
return (WidgetGuildScheduledEventUpsellBottomSheetBinding) this.binding$delegate.getValue((Fragment) this, $$delegatedProperties[0]);
|
|
|
|
}
|
|
|
|
|
|
|
|
private final long getGuildId() {
|
|
|
|
return ((Number) this.guildId$delegate.getValue()).longValue();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // com.discord.app.AppBottomSheet
|
|
|
|
public int getContentViewResId() {
|
|
|
|
return R.layout.widget_guild_scheduled_event_upsell_bottom_sheet;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // com.discord.app.AppBottomSheet, androidx.fragment.app.Fragment
|
|
|
|
public void onViewCreated(View view, Bundle bundle) {
|
|
|
|
m.checkNotNullParameter(view, "view");
|
|
|
|
super.onViewCreated(view, bundle);
|
2021-10-08 22:11:56 +00:00
|
|
|
getBinding().f1878c.setOnClickListener(new WidgetGuildScheduledEventUpsellBottomSheet$onViewCreated$1(this));
|
2021-09-27 20:31:35 +00:00
|
|
|
getBinding().b.setOnClickListener(new WidgetGuildScheduledEventUpsellBottomSheet$onViewCreated$2(this));
|
|
|
|
}
|
|
|
|
}
|