2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.auth;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.view.View;
|
|
|
|
import androidx.fragment.app.Fragment;
|
2021-08-13 06:23:11 +00:00
|
|
|
import c.a.d.j;
|
2021-08-03 07:33:18 +00:00
|
|
|
import c.d.b.a.a;
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.z.d.m;
|
2021-08-09 22:51:56 +00:00
|
|
|
import com.discord.R;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.app.AppFragment;
|
2021-09-30 06:24:59 +00:00
|
|
|
import com.discord.app.LoggingConfig;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.databinding.WidgetAuthAgeGatedBinding;
|
|
|
|
import com.discord.utilities.auth.RegistrationFlowRepo;
|
|
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
|
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
|
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
|
|
import kotlin.reflect.KProperty;
|
|
|
|
/* compiled from: WidgetAuthAgeGated.kt */
|
|
|
|
public final class WidgetAuthAgeGated extends AppFragment {
|
2021-10-09 06:29:02 +00:00
|
|
|
public static final /* synthetic */ KProperty[] $$delegatedProperties = {a.Z(WidgetAuthAgeGated.class, "binding", "getBinding()Lcom/discord/databinding/WidgetAuthAgeGatedBinding;", 0)};
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final Companion Companion = new Companion(null);
|
|
|
|
private static final String INTENT_UNDERAGE_MESSAGE = "INTENT_UNDERAGE_MESSAGE";
|
|
|
|
private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetAuthAgeGated$binding$2.INSTANCE, null, 2, null);
|
2021-09-30 06:24:59 +00:00
|
|
|
private final LoggingConfig loggingConfig = new LoggingConfig(false, null, WidgetAuthAgeGated$loggingConfig$1.INSTANCE, 3);
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
/* compiled from: WidgetAuthAgeGated.kt */
|
|
|
|
public static final class Companion {
|
|
|
|
private Companion() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
|
|
this();
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void start(Context context, String str) {
|
|
|
|
m.checkNotNullParameter(context, "context");
|
|
|
|
m.checkNotNullParameter(str, "message");
|
|
|
|
Bundle bundle = new Bundle();
|
2021-08-09 22:51:56 +00:00
|
|
|
bundle.putString(WidgetAuthAgeGated.INTENT_UNDERAGE_MESSAGE, str);
|
2021-08-13 06:23:11 +00:00
|
|
|
j.d(context, WidgetAuthAgeGated.class, new Intent().putExtras(bundle));
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public WidgetAuthAgeGated() {
|
2021-08-09 22:51:56 +00:00
|
|
|
super(R.layout.widget_auth_age_gated);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private final WidgetAuthAgeGatedBinding getBinding() {
|
|
|
|
return (WidgetAuthAgeGatedBinding) this.binding$delegate.getValue((Fragment) this, $$delegatedProperties[0]);
|
|
|
|
}
|
|
|
|
|
2021-09-30 06:24:59 +00:00
|
|
|
@Override // com.discord.app.AppFragment, com.discord.app.AppLogger.a
|
|
|
|
public LoggingConfig getLoggingConfig() {
|
|
|
|
return this.loggingConfig;
|
|
|
|
}
|
|
|
|
|
2021-08-03 07:33:18 +00:00
|
|
|
@Override // com.discord.app.AppFragment
|
|
|
|
public void onViewBound(View view) {
|
|
|
|
m.checkNotNullParameter(view, "view");
|
|
|
|
super.onViewBound(view);
|
|
|
|
RegistrationFlowRepo.trackTransition$default(RegistrationFlowRepo.Companion.getINSTANCE(), "Age Gate Underage", "viewed", null, 4, null);
|
|
|
|
getBinding().b.setOnClickListener(new WidgetAuthAgeGated$onViewBound$1(this));
|
|
|
|
}
|
|
|
|
}
|