what-the-bank/sources/com/facetec/sdk/by.java

926 lines
36 KiB
Java

package com.facetec.sdk;
import android.animation.ArgbEvaluator;
import android.animation.ValueAnimator;
import android.app.Activity;
import android.content.Context;
import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.os.Build;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewOutlineProvider;
import android.view.ViewTreeObserver;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.vectordrawable.graphics.drawable.Animatable2Compat;
import androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat;
import com.facetec.sdk.aq;
import com.facetec.sdk.by;
import com.google.android.gms.auth.api.credentials.CredentialsApi;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import o.nMh;
import org.bouncycastle.asn1.x509.DisplayText;
import org.jmrtd.cbeff.ISO781611;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes.dex */
public final class by extends aq {
private LinearLayout A;
private Animatable2Compat.AnimationCallback B;
private View C;
private TextView D;
private EditText I;
protected RelativeLayout a;
protected a b;
JSONObject c;
protected ScrollView d;
protected LinearLayout e;
protected LinearLayout f;
protected ImageView g;
AnimatedVectorDrawableCompat h;
protected TextView i;
AnimatedVectorDrawableCompat j;
protected int k;
protected int l;
protected Drawable m;
final float p;
final float r;
final int t;
private View u;
private View w;
private RelativeLayout z;
private int q = 500;
private int y = 300;
private int x = DisplayText.DISPLAY_TEXT_MAXIMUM_SIZE;
private int v = CredentialsApi.CREDENTIAL_PICKER_REQUEST_CODE;
/* renamed from: o, reason: collision with root package name */
protected boolean f6416o = false;
protected boolean n = true;
protected boolean s = true;
private boolean H = true;
private boolean E = false;
private boolean G = false;
private float F = db.e();
public by() {
float d = db.d();
this.p = d;
this.r = this.F * d;
this.t = db.a();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static by d(JSONObject jSONObject) {
by byVar = new by();
Bundle bundle = new Bundle();
bundle.putString("ocrDataJSONString", jSONObject.toString());
byVar.setArguments(bundle);
return byVar;
}
@Override // com.facetec.sdk.aq, android.app.Fragment
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
}
@Override // android.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.facetec_ocr_confirmation_fragment, viewGroup, false);
this.w = inflate;
return inflate;
}
@Override // android.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
String string;
super.onViewCreated(view, bundle);
Activity activity = getActivity();
try {
if (getArguments() != null && (string = getArguments().getString("ocrDataJSONString")) != null) {
this.c = new JSONObject(string);
}
} catch (JSONException unused) {
}
this.u = view.findViewById(R.id.backgroundView);
this.b = (a) view.findViewById(R.id.confirmButton);
this.d = (ScrollView) view.findViewById(R.id.mainContentScrollView);
this.e = (LinearLayout) view.findViewById(R.id.scrollableContentLayout);
this.A = (LinearLayout) view.findViewById(R.id.dynamicContentLayout);
this.D = (TextView) view.findViewById(R.id.mainHeaderTextView);
this.C = view.findViewById(R.id.mainHeaderDividerLineView);
this.a = (RelativeLayout) view.findViewById(R.id.scrollDownIndicatorLayout);
this.f = (LinearLayout) view.findViewById(R.id.scrollDownIndicatorContentLayout);
this.i = (TextView) view.findViewById(R.id.scrollDownIndicatorTextView);
this.g = (ImageView) view.findViewById(R.id.scrollDownIndicatorImageView);
this.z = (RelativeLayout) view.findViewById(R.id.outsetActionButtonLayout);
this.n = FaceTecSDK.c.i.enableFixedConfirmButton;
this.H = FaceTecSDK.c.i.enableScrollIndicatorTextAnimation;
this.s = FaceTecSDK.c.i.enableScrollIndicator;
this.E = FaceTecSDK.c.i.customScrollIndicatorAnimation == 0;
this.k = db.d(getActivity(), db.as());
this.l = db.d(getActivity(), db.aw());
int round = Math.round(this.r * 20.0f);
Typeface typeface = FaceTecSDK.c.i.mainHeaderFont;
int d = db.d(activity, db.ao());
int round2 = Math.round(av.b(db.o()));
int max = Math.max(round2 == 0 ? 0 : 1, Math.round(round2 * this.p));
int d2 = db.d(activity, db.aj());
cx.e(this.D, R.string.FaceTec_idscan_ocr_confirmation_main_header);
this.D.setTextColor(d);
this.D.setTypeface(typeface);
this.D.setTextSize(round);
((LinearLayout.LayoutParams) this.D.getLayoutParams()).setMargins(0, 0, 0, this.t);
this.C.getLayoutParams().height = max;
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) this.C.getLayoutParams();
int i = this.t;
layoutParams.setMargins(i, 0, i, 0);
this.C.setBackgroundColor(d2);
int round3 = Math.round(av.b(50) * this.r);
this.b.getLayoutParams().height = round3;
if (this.n) {
this.e.removeView(this.b);
this.z.addView(this.b);
this.z.setVisibility(0);
RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) this.b.getLayoutParams();
int i2 = this.t;
layoutParams2.setMargins(i2, 0, i2, i2);
} else {
LinearLayout.LayoutParams layoutParams3 = (LinearLayout.LayoutParams) this.b.getLayoutParams();
int i3 = this.t;
layoutParams3.setMargins(i3, i3 << 1, i3, 0);
}
cx.e(this.b, R.string.FaceTec_action_confirm);
this.b.setEnabled(true);
this.b.c();
this.b.c(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda11
public final by f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.k();
}
{
this.f$0 = this;
}
}));
if (this.n) {
RelativeLayout.LayoutParams layoutParams4 = (RelativeLayout.LayoutParams) this.d.getLayoutParams();
int i4 = this.t;
layoutParams4.setMargins(0, i4, 0, (i4 << 1) + round3);
} else {
RelativeLayout.LayoutParams layoutParams5 = (RelativeLayout.LayoutParams) this.d.getLayoutParams();
int i5 = this.t;
layoutParams5.setMargins(0, i5, 0, i5);
}
db.b(this.u);
this.u.getBackground().setAlpha(db.aU());
Drawable drawable = nMh.getDrawable(activity, R.drawable.facetec_scrollbar_vertical_track);
Drawable drawable2 = nMh.getDrawable(activity, R.drawable.facetec_scrollbar_vertical_thumb);
int b = db.b(d, 128);
int round4 = Math.round(av.b(10) * this.r);
int round5 = Math.round(av.b(5) * this.r);
if (drawable != null) {
GradientDrawable gradientDrawable = (GradientDrawable) drawable;
gradientDrawable.setColor(0);
gradientDrawable.setCornerRadius(round5);
}
if (drawable2 != null) {
GradientDrawable gradientDrawable2 = (GradientDrawable) drawable2;
gradientDrawable2.setColor(b);
gradientDrawable2.setCornerRadius(round5);
}
this.e.setScrollBarSize(round4);
if (Build.VERSION.SDK_INT >= 29) {
this.e.setVerticalScrollbarTrackDrawable(drawable);
this.e.setVerticalScrollbarThumbDrawable(drawable2);
}
this.e.setOnTouchListener(new View.OnTouchListener(this) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda12
public final by f$0;
@Override // android.view.View.OnTouchListener
public final boolean onTouch(View view2, MotionEvent motionEvent) {
boolean a;
a = this.f$0.a(view2, motionEvent);
return a;
}
{
this.f$0 = this;
}
});
final JSONObject jSONObject = this.c;
final Activity activity2 = getActivity();
c(new Runnable(this, activity2, jSONObject) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda13
public final by f$0;
public final Context f$1;
public final JSONObject f$2;
@Override // java.lang.Runnable
public final void run() {
this.f$0.c(this.f$1, this.f$2);
}
{
this.f$0 = this;
this.f$1 = activity2;
this.f$2 = jSONObject;
}
});
c(new Runnable(this) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda14
public final by f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.i();
}
{
this.f$0 = this;
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void k() {
this.b.c(false, true);
final aq.e eVar = new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda9
public final by f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.l();
}
{
this.f$0 = this;
}
});
c(new Runnable(this, eVar) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda10
public final by f$0;
public final aq.e f$1;
@Override // java.lang.Runnable
public final void run() {
this.f$0.a(this.f$1);
}
{
this.f$0 = this;
this.f$1 = eVar;
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void l() {
bg bgVar = (bg) getActivity();
if (bgVar != null) {
bgVar.e(this.c);
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ boolean a(View view, MotionEvent motionEvent) {
EditText editText;
if (motionEvent.getAction() == 0 && (editText = this.I) != null && editText.isFocused()) {
Rect rect = new Rect();
this.I.getGlobalVisibleRect(rect);
if (!rect.contains((int) motionEvent.getRawX(), (int) motionEvent.getRawY())) {
this.I.clearFocus();
a(view);
}
}
return false;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void i() {
this.z.animate().alpha(1.0f).setDuration(500L).setStartDelay(1000L).setListener(null).start();
this.b.animate().alpha(1.0f).setDuration(500L).setStartDelay(1000L).setListener(null).start();
this.d.animate().alpha(1.0f).setDuration(500L).setStartDelay(1000L).setListener(null).withEndAction(new Runnable(this) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda6
public final by f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.h();
}
{
this.f$0 = this;
}
}).start();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void h() {
if (this.a.getVisibility() == 0) {
this.a.animate().alpha(1.0f).setDuration(500L).setListener(null).withEndAction(new Runnable(this) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda7
public final by f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.g();
}
{
this.f$0 = this;
}
}).start();
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(aq.e eVar) {
this.z.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(500L).setStartDelay(0L).setListener(null).start();
this.b.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(500L).setStartDelay(0L).setListener(null).start();
this.d.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(500L).setStartDelay(0L).setListener(null).withEndAction(eVar).start();
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:74:0x0408 A[LOOP:2: B:72:0x0402->B:74:0x0408, LOOP_END] */
/* JADX WARN: Removed duplicated region for block: B:79:0x043b A[LOOP:3: B:77:0x0435->B:79:0x043b, LOOP_END] */
/* JADX WARN: Removed duplicated region for block: B:83:0x0456 */
/* JADX WARN: Removed duplicated region for block: B:85:? A[RETURN, SYNTHETIC] */
/* JADX WARN: Type inference failed for: r0v46, types: [android.widget.LinearLayout, android.view.ViewGroup] */
/* JADX WARN: Type inference failed for: r42v1 */
/* JADX WARN: Type inference failed for: r42v10 */
/* JADX WARN: Type inference failed for: r42v11 */
/* JADX WARN: Type inference failed for: r42v12 */
/* JADX WARN: Type inference failed for: r42v13 */
/* JADX WARN: Type inference failed for: r42v14 */
/* JADX WARN: Type inference failed for: r42v15 */
/* JADX WARN: Type inference failed for: r42v16 */
/* JADX WARN: Type inference failed for: r42v17 */
/* JADX WARN: Type inference failed for: r42v18 */
/* JADX WARN: Type inference failed for: r42v2 */
/* JADX WARN: Type inference failed for: r42v3, types: [java.util.AbstractCollection] */
/* JADX WARN: Type inference failed for: r42v6 */
/* JADX WARN: Type inference failed for: r42v7 */
/* JADX WARN: Type inference failed for: r42v8 */
/* JADX WARN: Type inference failed for: r4v18, types: [android.widget.LinearLayout, android.view.View, android.view.ViewGroup] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ void c(android.content.Context r41, org.json.JSONObject r42) {
/*
Method dump skipped, instructions count: 1119
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.by.c(android.content.Context, org.json.JSONObject):void");
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: com.facetec.sdk.by$1, reason: invalid class name */
/* loaded from: classes.dex */
public final class AnonymousClass1 implements ViewTreeObserver.OnGlobalLayoutListener {
private by d;
private Context e;
AnonymousClass1(by byVar, Context context) {
this.d = byVar;
this.e = context;
}
@Override // android.view.ViewTreeObserver.OnGlobalLayoutListener
public final void onGlobalLayout() {
ViewTreeObserver viewTreeObserver = this.d.d.getViewTreeObserver();
if (viewTreeObserver.isAlive()) {
Rect rect = new Rect();
this.d.d.getHitRect(rect);
boolean localVisibleRect = this.d.b.getLocalVisibleRect(rect);
boolean z = this.d.d.getHeight() < this.d.e.getHeight();
if (z && ((!localVisibleRect || this.d.n) && this.d.s)) {
if (!this.d.n) {
this.d.b.setEnabled(false);
}
viewTreeObserver.addOnScrollChangedListener(new ViewTreeObserver.OnScrollChangedListener(this) { // from class: com.facetec.sdk.by$1$$ExternalSyntheticLambda0
public final by.AnonymousClass1 f$0;
@Override // android.view.ViewTreeObserver.OnScrollChangedListener
public final void onScrollChanged() {
this.f$0.d();
}
{
this.f$0 = this;
}
});
int round = Math.round(av.b(40) * this.d.r);
int round2 = Math.round(av.b(5) * this.d.r) << 2;
this.d.f.getLayoutParams().width = -2;
this.d.f.getLayoutParams().height = round;
((RelativeLayout.LayoutParams) this.d.f.getLayoutParams()).setMargins(round2, 0, round2, 0);
if (this.d.n) {
((ViewGroup.MarginLayoutParams) ((RelativeLayout.LayoutParams) this.d.a.getLayoutParams())).bottomMargin = this.d.b.getHeight() + (this.d.t << 1);
} else {
((ViewGroup.MarginLayoutParams) ((RelativeLayout.LayoutParams) this.d.a.getLayoutParams())).bottomMargin = this.d.t;
}
if (FaceTecSDK.c.i.showScrollIndicatorImage) {
int round3 = Math.round(av.b(30) * this.d.r);
this.d.g.getLayoutParams().width = round3;
this.d.g.getLayoutParams().height = round3;
by.a(this.d, this.e);
} else {
this.d.g.getLayoutParams().width = 0;
this.d.g.getLayoutParams().height = 0;
this.d.g.setVisibility(8);
}
float f = this.d.r;
Typeface typeface = FaceTecSDK.c.i.scrollIndicatorFont;
cx.e(this.d.i, R.string.FaceTec_idscan_ocr_confirmation_scroll_message);
this.d.i.setTextSize(f * 16.0f);
this.d.i.setTextColor(this.d.k);
this.d.i.setTypeface(typeface);
((LinearLayout.LayoutParams) this.d.i.getLayoutParams()).setMarginEnd(this.d.t / 2);
float round4 = db.u() == -1.0f ? round / 2.0f : Math.round(av.b(Math.round(r2)) * this.d.p);
this.d.m = nMh.getDrawable(this.e, R.drawable.facetec_scroll_down_indicator);
if (this.d.m != null) {
((GradientDrawable) this.d.m).setStroke(Math.round(av.b(db.q()) * this.d.p), db.d(this.e, db.at()));
((GradientDrawable) this.d.m).setCornerRadius(round4);
((GradientDrawable) this.d.m).setColor(this.d.l);
this.d.a.setBackground(this.d.m);
}
this.d.a.setElevation(av.b(FaceTecSDK.c.i.scrollIndicatorElevation));
this.d.a.setOutlineProvider(ViewOutlineProvider.BACKGROUND);
this.d.a.setClipToOutline(false);
this.d.a.requestLayout();
this.d.a.setOnClickListener(new View.OnClickListener(this) { // from class: com.facetec.sdk.by$1$$ExternalSyntheticLambda1
public final by.AnonymousClass1 f$0;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.f$0.b(view);
}
{
this.f$0 = this;
}
});
this.d.a.setOnTouchListener(new View.OnTouchListener(this) { // from class: com.facetec.sdk.by$1$$ExternalSyntheticLambda2
public final by.AnonymousClass1 f$0;
@Override // android.view.View.OnTouchListener
public final boolean onTouch(View view, MotionEvent motionEvent) {
boolean c;
c = this.f$0.c(view, motionEvent);
return c;
}
{
this.f$0 = this;
}
});
this.d.a.setVisibility(0);
} else if (!z && !this.d.n) {
((ViewGroup.MarginLayoutParams) ((LinearLayout.LayoutParams) this.d.b.getLayoutParams())).topMargin += Math.max(0, this.d.d.getHeight() - this.d.e.getHeight());
this.d.b.requestLayout();
}
viewTreeObserver.removeOnGlobalLayoutListener(this);
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void d() {
int scrollY = this.d.d.getScrollY();
int height = this.d.d.getHeight();
int bottom = this.d.e.getBottom();
if (!this.d.b.isEnabled() && bottom <= height + scrollY) {
this.d.b.c(true, true);
}
if (!this.d.f6416o || scrollY <= 0) {
return;
}
by.c(this.d);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b(View view) {
this.d.d.post(new Runnable(this) { // from class: com.facetec.sdk.by$1$$ExternalSyntheticLambda3
public final by.AnonymousClass1 f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.e();
}
{
this.f$0 = this;
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void e() {
this.d.a.setEnabled(false);
this.d.b.setEnabled(true);
by.c(this.d);
this.d.d.fullScroll(ISO781611.BIOMETRIC_SUBTYPE_TAG);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ boolean c(View view, MotionEvent motionEvent) {
if (!this.d.a.isEnabled()) {
return true;
}
if (motionEvent.getAction() == 0) {
by.d(this.d, true);
} else if (motionEvent.getAction() == 3 || motionEvent.getX() < BitmapDescriptorFactory.HUE_RED || motionEvent.getX() > this.d.a.getWidth() || motionEvent.getY() < BitmapDescriptorFactory.HUE_RED || motionEvent.getY() > this.d.a.getHeight()) {
by.d(this.d, false);
} else if (motionEvent.getAction() == 1) {
this.d.a.performClick();
}
return true;
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void j() {
this.g.setImageDrawable(this.j);
AnonymousClass2 anonymousClass2 = new AnonymousClass2(this);
this.B = anonymousClass2;
this.j.a(anonymousClass2);
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: com.facetec.sdk.by$2, reason: invalid class name */
/* loaded from: classes.dex */
public final class AnonymousClass2 extends Animatable2Compat.AnimationCallback {
private by b;
AnonymousClass2(by byVar) {
this.b = byVar;
}
@Override // androidx.vectordrawable.graphics.drawable.Animatable2Compat.AnimationCallback
public final void onAnimationEnd(Drawable drawable) {
this.b.c(new Runnable(this) { // from class: com.facetec.sdk.by$2$$ExternalSyntheticLambda0
public final by.AnonymousClass2 f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.b();
}
{
this.f$0 = this;
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b() {
if (this.b.j == null) {
return;
}
this.b.j.start();
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void f() {
this.h = av.e(getActivity(), R.drawable.facetec_animated_double_down_chevron);
this.g.setColorFilter(db.as(), PorterDuff.Mode.SRC_IN);
this.g.setImageDrawable(this.h);
AnonymousClass5 anonymousClass5 = new AnonymousClass5(this);
this.B = anonymousClass5;
this.h.a(anonymousClass5);
this.g.setVisibility(0);
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: com.facetec.sdk.by$5, reason: invalid class name */
/* loaded from: classes.dex */
public final class AnonymousClass5 extends Animatable2Compat.AnimationCallback {
private by d;
AnonymousClass5(by byVar) {
this.d = byVar;
}
@Override // androidx.vectordrawable.graphics.drawable.Animatable2Compat.AnimationCallback
public final void onAnimationEnd(Drawable drawable) {
this.d.c(new Runnable(this) { // from class: com.facetec.sdk.by$5$$ExternalSyntheticLambda0
public final by.AnonymousClass5 f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.e();
}
{
this.f$0 = this;
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void e() {
if (this.d.h == null) {
return;
}
this.d.h.start();
}
}
/* JADX INFO: Access modifiers changed from: private */
/* renamed from: d, reason: merged with bridge method [inline-methods] */
public void e() {
if (this.f6416o) {
c(new Runnable(this) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda0
public final by f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.b();
}
{
this.f$0 = this;
}
});
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b() {
this.i.animate().alpha(BitmapDescriptorFactory.HUE_RED).setStartDelay(2000L).setDuration(300L).setListener(null).withEndAction(new Runnable(this) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda5
public final by f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.a();
}
{
this.f$0 = this;
}
}).start();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a() {
this.i.animate().alpha(1.0f).setStartDelay(0L).setDuration(300L).setListener(null).withEndAction(new Runnable(this) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda17
public final by f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.e();
}
{
this.f$0 = this;
}
}).start();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void e(ValueAnimator valueAnimator) {
int intValue = ((Integer) valueAnimator.getAnimatedValue()).intValue();
this.l = intValue;
((GradientDrawable) this.m).setColor(intValue);
this.a.setBackground(this.m);
this.a.postInvalidate();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void d(ValueAnimator valueAnimator) {
int intValue = ((Integer) valueAnimator.getAnimatedValue()).intValue();
this.k = intValue;
this.i.setTextColor(intValue);
this.i.postInvalidate();
if (this.E) {
this.g.setColorFilter(this.k, PorterDuff.Mode.SRC_IN);
this.g.postInvalidate();
}
}
private void c(String str) {
if (this.G) {
return;
}
ao.e(str);
}
private static String a(JSONObject jSONObject, String str) {
try {
return jSONObject.getString(str);
} catch (JSONException unused) {
return null;
}
}
/* JADX WARN: Removed duplicated region for block: B:4:0x01bf */
/* JADX WARN: Removed duplicated region for block: B:68:0x0141 */
/* JADX WARN: Removed duplicated region for block: B:71:0x0146 */
/* JADX WARN: Removed duplicated region for block: B:76:0x011c A[EXC_TOP_SPLITTER, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:7:? A[RETURN, SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private java.lang.String e(java.lang.String r20, java.lang.String r21, java.lang.String r22, java.lang.String r23) {
/*
Method dump skipped, instructions count: 449
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.by.e(java.lang.String, java.lang.String, java.lang.String, java.lang.String):java.lang.String");
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(EditText editText, View view, boolean z) {
if (editText == null) {
return;
}
if (z) {
this.I = editText;
editText.setCursorVisible(true);
} else {
this.I = null;
editText.setCursorVisible(false);
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ boolean d(EditText editText, TextView textView, int i, KeyEvent keyEvent) {
if (editText == null) {
return false;
}
editText.setCursorVisible(false);
if (keyEvent != null && keyEvent.getKeyCode() == 66) {
a(textView);
}
return false;
}
private void a(View view) {
((InputMethodManager) getActivity().getApplicationContext().getSystemService("input_method")).hideSoftInputFromWindow(view.getWindowToken(), 0);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void c() {
Animatable2Compat.AnimationCallback animationCallback;
Animatable2Compat.AnimationCallback animationCallback2;
AnimatedVectorDrawableCompat animatedVectorDrawableCompat = this.j;
if (animatedVectorDrawableCompat != null && (animationCallback2 = this.B) != null) {
animatedVectorDrawableCompat.e(animationCallback2);
this.j.stop();
this.j = null;
this.B = null;
}
AnimatedVectorDrawableCompat animatedVectorDrawableCompat2 = this.h;
if (animatedVectorDrawableCompat2 != null && (animationCallback = this.B) != null) {
animatedVectorDrawableCompat2.e(animationCallback);
this.h.stop();
this.h = null;
this.B = null;
}
this.a.setVisibility(8);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void g() {
if (this.f6416o) {
return;
}
this.f6416o = true;
AnimatedVectorDrawableCompat animatedVectorDrawableCompat = this.j;
if (animatedVectorDrawableCompat != null) {
animatedVectorDrawableCompat.start();
} else {
AnimatedVectorDrawableCompat animatedVectorDrawableCompat2 = this.h;
if (animatedVectorDrawableCompat2 != null) {
animatedVectorDrawableCompat2.start();
}
}
if (this.H) {
e();
}
}
static /* synthetic */ void a(final by byVar, Context context) {
int aI = db.aI();
int aH = db.aH();
if (aI != 0) {
byVar.j = av.e(byVar.getActivity(), aI);
}
if (byVar.j != null) {
byVar.c(new Runnable(byVar) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda1
public final by f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.j();
}
{
this.f$0 = byVar;
}
});
byVar.g.setVisibility(0);
} else {
if (aH != 0) {
byVar.g.setImageResource(aH);
byVar.g.clearAnimation();
byVar.g.setVisibility(0);
return;
}
byVar.c(new Runnable(byVar) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda2
public final by f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.f();
}
{
this.f$0 = byVar;
}
});
}
}
static /* synthetic */ void d(final by byVar, boolean z) {
Activity activity;
int as;
int i = byVar.l;
int d = db.d(byVar.getActivity(), z ? db.av() : db.aw());
int i2 = byVar.k;
if (z) {
activity = byVar.getActivity();
as = db.aA();
} else {
activity = byVar.getActivity();
as = db.as();
}
int d2 = db.d(activity, as);
if (i != d) {
ValueAnimator ofObject = ValueAnimator.ofObject(new ArgbEvaluator(), Integer.valueOf(i), Integer.valueOf(d));
ofObject.setDuration(200L);
ofObject.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(byVar) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda3
public final by f$0;
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
this.f$0.e(valueAnimator);
}
{
this.f$0 = byVar;
}
});
ofObject.start();
}
if (i2 != d2) {
ValueAnimator ofObject2 = ValueAnimator.ofObject(new ArgbEvaluator(), Integer.valueOf(i2), Integer.valueOf(d2));
ofObject2.setDuration(200L);
ofObject2.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(byVar) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda4
public final by f$0;
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
this.f$0.d(valueAnimator);
}
{
this.f$0 = byVar;
}
});
ofObject2.start();
}
}
static /* synthetic */ void c(final by byVar) {
byVar.f6416o = false;
byVar.a.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(300L).setListener(null).withEndAction(new Runnable(byVar) { // from class: com.facetec.sdk.by$$ExternalSyntheticLambda8
public final by f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.c();
}
{
this.f$0 = byVar;
}
}).start();
}
}