Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 EditDataBottomDialog.java 源代码,内容仅作参考
package by.kufar.vas.ui.vas.bottomDialog;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.text.Spanned;
import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.autofill.HintConstants;
import androidx.compose.runtime.internal.StabilityInferred;
import androidx.core.os.BundleKt;
import by.kufar.re.ui.widget.button.ProgressButton;
import by.kufar.re.ui.widget.webview.WebViewActivity;
import by.kufar.vas.R$id;
import by.kufar.vas.R$layout;
import by.kufar.vas.R$string;
import by.kufar.vas.R$style;
import by.kufar.vas.ui.vas.bottomDialog.EditDataBottomDialog;
import com.google.android.material.bottomsheet.BottomSheetDialogFragment;
import d80.j;
import d80.k;
import d80.m;
import d80.u;
import db.n0;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.s;
import y5.f;
import y5.g;
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000V\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000e\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0007\u0018\u0000 12\u00020\u0001:\u00012B\u0007¢\u0006\u0004\b/\u00100J$\u0010\t\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u00042\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006H\u0016J\b\u0010\u000b\u001a\u00020\nH\u0016J\u001a\u0010\u000e\u001a\u00020\r2\u0006\u0010\f\u001a\u00020\b2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006H\u0017R\"\u0010\u0010\u001a\u00020\u000f8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R\u001d\u0010\u001b\u001a\u0004\u0018\u00010\u00168BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0017\u0010\u0018\u001a\u0004\b\u0019\u0010\u001aR\u001d\u0010\u001e\u001a\u0004\u0018\u00010\u00168BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001c\u0010\u0018\u001a\u0004\b\u001d\u0010\u001aR\u001d\u0010!\u001a\u0004\u0018\u00010\u00168BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001f\u0010\u0018\u001a\u0004\b \u0010\u001aR\u0016\u0010#\u001a\u00020\"8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b#\u0010$R\u0016\u0010&\u001a\u00020%8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b&\u0010'R\u0016\u0010)\u001a\u00020(8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b)\u0010*R\u0016\u0010+\u001a\u00020(8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b+\u0010*R\u0016\u0010,\u001a\u00020(8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b,\u0010*R\u0016\u0010-\u001a\u00020(8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b-\u0010*R\u0016\u0010.\u001a\u00020\"8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b.\u0010$¨\u00063"}, d2 = {"Lby/kufar/vas/ui/vas/bottomDialog/EditDataBottomDialog;", "Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;", "Landroid/view/LayoutInflater;", "inflater", "Landroid/view/ViewGroup;", "container", "Landroid/os/Bundle;", "savedInstanceState", "Landroid/view/View;", "onCreateView", "", "getTheme", "view", "", "onViewCreated", "Lcb/b;", "mediator", "Lcb/b;", "getMediator", "()Lcb/b;", "setMediator", "(Lcb/b;)V", "", "phoneNumber$delegate", "Ld80/j;", "getPhoneNumber", "()Ljava/lang/String;", HintConstants.AUTOFILL_HINT_PHONE_NUMBER, "email$delegate", "getEmail", "email", "fio$delegate", "getFio", "fio", "Landroid/widget/ImageView;", "ivClose", "Landroid/widget/ImageView;", "Lby/kufar/re/ui/widget/button/ProgressButton;", "bWrite", "Lby/kufar/re/ui/widget/button/ProgressButton;", "Landroid/widget/TextView;", "tvPhoneNote", "Landroid/widget/TextView;", "tvPhoneNumber", "tvEmail", "tvFIO", "ivFIO", "<init>", "()V", "Companion", "a", "feature-vas_googleRelease"}, k = 1, mv = {1, 9, 0})
public final class EditDataBottomDialog extends BottomSheetDialogFragment {
private static final String KEY_EMAIL = "KEY_EMAIL";
private static final String KEY_FIO = "KEY_FIO";
private static final String KEY_PHONE_NUMBER = "KEY_PHONE_NUMBER";
private ProgressButton bWrite;
private final j email;
private final j fio;
private ImageView ivClose;
private ImageView ivFIO;
public cb.b mediator;
private final j phoneNumber;
private TextView tvEmail;
private TextView tvFIO;
private TextView tvPhoneNote;
private TextView tvPhoneNumber;
public static final Companion INSTANCE = new Companion(null);
public static final int $stable = 8;
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\f\u0010\rJ \u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u0002R\u0014\u0010\b\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\b\u0010\tR\u0014\u0010\n\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\n\u0010\tR\u0014\u0010\u000b\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u000b\u0010\t¨\u0006\u000e"}, d2 = {"Lby/kufar/vas/ui/vas/bottomDialog/EditDataBottomDialog$a;", "", "", HintConstants.AUTOFILL_HINT_PHONE_NUMBER, "email", "fio", "Lby/kufar/vas/ui/vas/bottomDialog/EditDataBottomDialog;", "a", EditDataBottomDialog.KEY_EMAIL, "Ljava/lang/String;", EditDataBottomDialog.KEY_FIO, EditDataBottomDialog.KEY_PHONE_NUMBER, "<init>", "()V", "feature-vas_googleRelease"}, k = 1, mv = {1, 9, 0})
public static final class Companion {
public Companion() {
}
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final EditDataBottomDialog a(String phoneNumber, String email, String fio) {
s.j(phoneNumber, "phoneNumber");
s.j(email, "email");
EditDataBottomDialog editDataBottomDialog = new EditDataBottomDialog();
editDataBottomDialog.setArguments(BundleKt.bundleOf(u.a(EditDataBottomDialog.KEY_PHONE_NUMBER, phoneNumber), u.a(EditDataBottomDialog.KEY_EMAIL, email), u.a(EditDataBottomDialog.KEY_FIO, fio)));
return editDataBottomDialog;
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", "it", "", "invoke"}, k = 3, mv = {1, 9, 0}, xi = 48)
public static final class b extends kotlin.jvm.internal.u implements Function1<String, Unit> {
public b() {
super(1);
}
@Override
public Unit invoke(String str) {
invoke2(str);
return Unit.f82492a;
}
public final void invoke2(String it) {
s.j(it, "it");
EditDataBottomDialog editDataBottomDialog = EditDataBottomDialog.this;
n0 O = editDataBottomDialog.getMediator().O();
Context requireContext = EditDataBottomDialog.this.requireContext();
s.i(requireContext, "requireContext(...)");
editDataBottomDialog.startActivity(O.g(requireContext));
}
}
@Metadata(d1 = {"\u0000\u0004\n\u0002\b\u0004\u0010\u0003\u001a\u00028\u0000\"\u0004\b\u0000\u0010\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"T", "invoke", "()Ljava/lang/Object;", "<anonymous>"}, k = 3, mv = {1, 9, 0})
public static final class c extends kotlin.jvm.internal.u implements Function0<String> {
public c() {
super(0);
}
@Override
public final String invoke() {
Bundle arguments = EditDataBottomDialog.this.getArguments();
if (arguments != null) {
return arguments.getString(EditDataBottomDialog.KEY_PHONE_NUMBER);
}
return null;
}
}
@Metadata(d1 = {"\u0000\u0004\n\u0002\b\u0004\u0010\u0003\u001a\u00028\u0000\"\u0004\b\u0000\u0010\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"T", "invoke", "()Ljava/lang/Object;", "<anonymous>"}, k = 3, mv = {1, 9, 0})
public static final class d extends kotlin.jvm.internal.u implements Function0<String> {
public d() {
super(0);
}
@Override
public final String invoke() {
Bundle arguments = EditDataBottomDialog.this.getArguments();
if (arguments != null) {
return arguments.getString(EditDataBottomDialog.KEY_EMAIL);
}
return null;
}
}
@Metadata(d1 = {"\u0000\u0004\n\u0002\b\u0004\u0010\u0003\u001a\u00028\u0000\"\u0004\b\u0000\u0010\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"T", "invoke", "()Ljava/lang/Object;", "<anonymous>"}, k = 3, mv = {1, 9, 0})
public static final class e extends kotlin.jvm.internal.u implements Function0<String> {
public e() {
super(0);
}
@Override
public final String invoke() {
Bundle arguments = EditDataBottomDialog.this.getArguments();
if (arguments != null) {
return arguments.getString(EditDataBottomDialog.KEY_FIO);
}
return null;
}
}
public EditDataBottomDialog() {
m mVar = m.f73493d;
this.phoneNumber = k.a(mVar, new c());
this.email = k.a(mVar, new d());
this.fio = k.a(mVar, new e());
}
private final String getEmail() {
return (String) this.email.getValue();
}
private final String getFio() {
return (String) this.fio.getValue();
}
private final String getPhoneNumber() {
return (String) this.phoneNumber.getValue();
}
public static final void onViewCreated$lambda$3(EditDataBottomDialog this$0, View view) {
s.j(this$0, "this$0");
this$0.dismiss();
}
public static final void onViewCreated$lambda$5(EditDataBottomDialog this$0, View view) {
s.j(this$0, "this$0");
WebViewActivity.Companion companion = WebViewActivity.INSTANCE;
Context requireContext = this$0.requireContext();
s.i(requireContext, "requireContext(...)");
this$0.startActivity(WebViewActivity.Companion.b(companion, requireContext, "https://support.kufar.by/hc/ru/requests/new", false, null, false, false, 60, null));
this$0.dismiss();
}
public final cb.b getMediator() {
cb.b bVar = this.mediator;
if (bVar != null) {
return bVar;
}
s.B("mediator");
return null;
}
@Override
public int getTheme() {
return R$style.f19664g;
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
s.j(inflater, "inflater");
by.kufar.vas.ui.vas.d.b(this).c(this);
View inflate = inflater.inflate(R$layout.f19537g, container, true);
View findViewById = inflate.findViewById(R$id.Z);
s.i(findViewById, "findViewById(...)");
this.ivClose = (ImageView) findViewById;
View findViewById2 = inflate.findViewById(R$id.f19451f);
s.i(findViewById2, "findViewById(...)");
this.bWrite = (ProgressButton) findViewById2;
View findViewById3 = inflate.findViewById(R$id.f19509u1);
s.i(findViewById3, "findViewById(...)");
this.tvPhoneNote = (TextView) findViewById3;
View findViewById4 = inflate.findViewById(R$id.f19506t1);
s.i(findViewById4, "findViewById(...)");
this.tvPhoneNumber = (TextView) findViewById4;
View findViewById5 = inflate.findViewById(R$id.f19500r1);
s.i(findViewById5, "findViewById(...)");
this.tvEmail = (TextView) findViewById5;
View findViewById6 = inflate.findViewById(R$id.f19503s1);
s.i(findViewById6, "findViewById(...)");
this.tvFIO = (TextView) findViewById6;
View findViewById7 = inflate.findViewById(R$id.f19432a0);
s.i(findViewById7, "findViewById(...)");
this.ivFIO = (ImageView) findViewById7;
s.g(inflate);
return inflate;
}
@Override
@SuppressLint({"SetTextI18n"})
public void onViewCreated(View view, Bundle savedInstanceState) {
boolean z11;
int i11;
s.j(view, "view");
super.onViewCreated(view, savedInstanceState);
ImageView imageView = this.ivClose;
ProgressButton progressButton = null;
if (imageView == null) {
s.B("ivClose");
imageView = null;
}
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view2) {
EditDataBottomDialog.onViewCreated$lambda$3(EditDataBottomDialog.this, view2);
}
});
TextView textView = this.tvPhoneNumber;
if (textView == null) {
s.B("tvPhoneNumber");
textView = null;
}
textView.setText("+" + getPhoneNumber());
TextView textView2 = this.tvEmail;
if (textView2 == null) {
s.B("tvEmail");
textView2 = null;
}
textView2.setText(getEmail());
TextView textView3 = this.tvFIO;
if (textView3 == null) {
s.B("tvFIO");
textView3 = null;
}
textView3.setText(getFio());
ImageView imageView2 = this.ivFIO;
if (imageView2 == null) {
s.B("ivFIO");
imageView2 = null;
}
if (getFio() != null) {
z11 = true;
} else {
z11 = false;
}
if (z11) {
i11 = 0;
} else {
i11 = 8;
}
imageView2.setVisibility(i11);
Spanned a11 = new g().a(getString(R$string.f19637t), false);
if (a11 != null) {
Object[] spans = a11.getSpans(0, a11.length(), f.class);
s.i(spans, "getSpans(start, end, T::class.java)");
f[] fVarArr = (f[]) spans;
if (fVarArr != null) {
for (f fVar : fVarArr) {
fVar.a(new b());
}
}
}
TextView textView4 = this.tvPhoneNote;
if (textView4 == null) {
s.B("tvPhoneNote");
textView4 = null;
}
textView4.setMovementMethod(LinkMovementMethod.getInstance());
TextView textView5 = this.tvPhoneNote;
if (textView5 == null) {
s.B("tvPhoneNote");
textView5 = null;
}
textView5.setText(a11);
ProgressButton progressButton2 = this.bWrite;
if (progressButton2 == null) {
s.B("bWrite");
} else {
progressButton = progressButton2;
}
progressButton.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view2) {
EditDataBottomDialog.onViewCreated$lambda$5(EditDataBottomDialog.this, view2);
}
});
}
public final void setMediator(cb.b bVar) {
s.j(bVar, "<set-?>");
this.mediator = bVar;
}
}