正在查看: Oolka v2.4.42 应用的 FormFragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Oolka v2.4.42 应用的 FormFragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package co.hyperverge.hyperkyc.ui.form;
import android.annotation.SuppressLint;
import android.app.Application;
import android.app.DatePickerDialog;
import android.content.ContentResolver;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.graphics.drawable.Animatable;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.text.Html;
import android.text.Spanned;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.text.method.PasswordTransformationMethod;
import android.util.Log;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.DatePicker;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.view.f1;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.z;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModelProvider;
import androidx.lifecycle.ViewModelStore;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import co.hyperverge.hyperkyc.R;
import co.hyperverge.hyperkyc.core.hv.HyperSnapBridgeKt;
import co.hyperverge.hyperkyc.core.hv.models.DynamicFormUIConfig;
import co.hyperverge.hyperkyc.core.hv.models.HSUIConfig;
import co.hyperverge.hyperkyc.data.models.WorkflowModule;
import co.hyperverge.hyperkyc.databinding.HkFragmentFormBinding;
import co.hyperverge.hyperkyc.databinding.HkRvItemFormAddFileBinding;
import co.hyperverge.hyperkyc.databinding.HkRvItemFormFileBinding;
import co.hyperverge.hyperkyc.databinding.HkViewDividerOptionalBinding;
import co.hyperverge.hyperkyc.databinding.HkViewFileUploadClBinding;
import co.hyperverge.hyperkyc.databinding.HkViewImageBinding;
import co.hyperverge.hyperkyc.databinding.HkViewLoaderBinding;
import co.hyperverge.hyperkyc.databinding.HkViewTimerBinding;
import co.hyperverge.hyperkyc.ui.custom.ClickableLinearLayout;
import co.hyperverge.hyperkyc.ui.custom.IMEAwareTextInputEditText;
import co.hyperverge.hyperkyc.ui.custom.SimpleRvAdapter;
import co.hyperverge.hyperkyc.ui.custom.blocks.BlockEditTextConfig;
import co.hyperverge.hyperkyc.ui.custom.blocks.BlockItemViewConfig;
import co.hyperverge.hyperkyc.ui.custom.blocks.BlocksContainerConfig;
import co.hyperverge.hyperkyc.ui.custom.blocks.BlocksView;
import co.hyperverge.hyperkyc.ui.custom.blocks.BlocksViewConfig;
import co.hyperverge.hyperkyc.ui.custom.blocks.BlocksViewListener;
import co.hyperverge.hyperkyc.ui.custom.blocks.ErrorTextViewConfig;
import co.hyperverge.hyperkyc.ui.custom.delegates.FragmentViewBindingDelegate;
import co.hyperverge.hyperkyc.ui.custom.delegates.FragmentViewBindingDelegateKt;
import co.hyperverge.hyperkyc.ui.form.FormFragment;
import co.hyperverge.hyperkyc.ui.form.models.FormFileReviewUIEvent;
import co.hyperverge.hyperkyc.ui.form.models.PickedFile;
import co.hyperverge.hyperkyc.ui.viewmodels.MainVM;
import co.hyperverge.hyperkyc.utils.DynamicFormUtils;
import co.hyperverge.hyperkyc.utils.extensions.ContextExtsKt;
import co.hyperverge.hyperkyc.utils.extensions.CoreExtsKt;
import co.hyperverge.hyperkyc.utils.extensions.DateExtsKt;
import co.hyperverge.hyperkyc.utils.extensions.LogExtsKt;
import co.hyperverge.hyperkyc.utils.extensions.Margin;
import co.hyperverge.hyperkyc.utils.extensions.PicassoExtsKt;
import co.hyperverge.hyperkyc.utils.extensions.UIExtsKt;
import co.hyperverge.hyperkyc.utils.extensions.ViewExtsKt;
import co.hyperverge.hyperlogger.HyperLogger;
import co.hyperverge.hypersnapsdk.model.UIConfig;
import co.hyperverge.hypersnapsdk.model.UIFont;
import co.hyperverge.hypersnapsdk.model.UIFontWeight;
import co.hyperverge.hypersnapsdk.utils.HyperSnapUIConfigUtil;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.card.MaterialCardView;
import com.google.android.material.textfield.TextInputEditText;
import com.google.android.material.textfield.TextInputLayout;
import com.google.android.material.textview.MaterialTextView;
import java.io.File;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.CancellationException;
import java.util.regex.Matcher;
import kotlin.LazyKt;
import kotlin.Metadata;
import kotlin.NotImplementedError;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.collections.ArraysKt;
import kotlin.collections.CollectionsKt;
import kotlin.collections.MapsKt;
import kotlin.coroutines.CoroutineContext;
import kotlin.g;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.PropertyReference1Impl;
import kotlin.jvm.internal.Ref;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KProperty;
import kotlin.text.MatchResult;
import kotlin.text.Regex;
import kotlin.text.StringsKt;
import kotlinx.coroutines.BuildersKt;
import kotlinx.coroutines.j0;
import kotlinx.coroutines.p1;
import org.jetbrains.annotations.NotNull;
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment\n+ 2 FragmentViewModelLazy.kt\nandroidx/fragment/app/FragmentViewModelLazyKt\n+ 3 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 4 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 5 View.kt\nandroidx/core/view/ViewKt\n+ 6 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 7 Html.kt\nandroidx/core/text/HtmlKt\n*L\n1#1,2392:1\n84#2,6:2393\n84#2,6:2399\n14#3:2405\n28#3,10:2406\n62#3,12:2416\n40#3,12:2429\n62#3,12:2441\n52#3:2453\n50#3,6:2454\n14#3:2460\n28#3,10:2461\n62#3,12:2471\n40#3,12:2484\n62#3,12:2496\n52#3:2508\n50#3,6:2509\n14#3:2515\n28#3,10:2516\n62#3,12:2526\n40#3,12:2539\n62#3,12:2551\n52#3:2563\n50#3,6:2564\n14#3:2570\n28#3,10:2571\n62#3,12:2581\n40#3,12:2594\n62#3,12:2606\n52#3:2618\n50#3,6:2619\n14#3:2625\n28#3,10:2626\n62#3,12:2636\n40#3,12:2649\n62#3,12:2661\n52#3:2673\n50#3,6:2674\n14#3:2682\n28#3,10:2683\n62#3,12:2693\n40#3,12:2706\n62#3,12:2718\n52#3:2730\n50#3,6:2731\n14#3:2741\n28#3,10:2742\n62#3,12:2752\n40#3,12:2765\n62#3,12:2777\n52#3:2789\n50#3,6:2790\n14#3:2797\n28#3,10:2798\n62#3,12:2808\n40#3,12:2821\n62#3,12:2833\n52#3:2845\n50#3,6:2846\n14#3:2854\n28#3,10:2855\n62#3,12:2865\n40#3,12:2878\n62#3,12:2890\n52#3:2902\n50#3,6:2903\n14#3:2916\n28#3,10:2917\n62#3,12:2927\n40#3,12:2940\n62#3,12:2952\n52#3:2964\n50#3,6:2965\n14#3:2971\n28#3,10:2972\n62#3,12:2982\n40#3,12:2995\n62#3,12:3007\n52#3:3019\n50#3,6:3020\n14#3:3032\n28#3,10:3033\n62#3,12:3043\n40#3,12:3056\n62#3,12:3068\n52#3:3080\n50#3,6:3081\n14#3:3092\n28#3,10:3093\n62#3,12:3103\n40#3,12:3116\n62#3,12:3128\n52#3:3140\n50#3,6:3141\n23#3,15:3147\n62#3,12:3162\n40#3,12:3175\n62#3,12:3187\n52#3:3199\n50#3,6:3200\n1#4:2428\n1#4:2483\n1#4:2538\n1#4:2593\n1#4:2648\n1#4:2705\n1#4:2764\n1#4:2796\n1#4:2820\n1#4:2877\n1#4:2939\n1#4:2994\n1#4:3026\n1#4:3055\n1#4:3115\n1#4:3174\n1#4:3206\n262#5,2:2680\n262#5,2:2737\n262#5,2:2739\n1855#6,2:2852\n766#6:2909\n857#6,2:2910\n1549#6:2912\n1620#6,3:2913\n1559#6:3087\n1590#6,4:3088\n1855#6,2:3212\n39#7,5:3027\n39#7,5:3207\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment\n*L\n131#1:2393,6\n132#1:2399,6\n168#1:2405\n168#1:2406,10\n168#1:2416,12\n168#1:2429,12\n168#1:2441,12\n168#1:2453\n168#1:2454,6\n177#1:2460\n177#1:2461,10\n177#1:2471,12\n177#1:2484,12\n177#1:2496,12\n177#1:2508\n177#1:2509,6\n187#1:2515\n187#1:2516,10\n187#1:2526,12\n187#1:2539,12\n187#1:2551,12\n187#1:2563\n187#1:2564,6\n196#1:2570\n196#1:2571,10\n196#1:2581,12\n196#1:2594,12\n196#1:2606,12\n196#1:2618\n196#1:2619,6\n204#1:2625\n204#1:2626,10\n204#1:2636,12\n204#1:2649,12\n204#1:2661,12\n204#1:2673\n204#1:2674,6\n227#1:2682\n227#1:2683,10\n227#1:2693,12\n227#1:2706,12\n227#1:2718,12\n227#1:2730\n227#1:2731,6\n279#1:2741\n279#1:2742,10\n279#1:2752,12\n279#1:2765,12\n279#1:2777,12\n279#1:2789\n279#1:2790,6\n309#1:2797\n309#1:2798,10\n309#1:2808,12\n309#1:2821,12\n309#1:2833,12\n309#1:2845\n309#1:2846,6\n327#1:2854\n327#1:2855,10\n327#1:2865,12\n327#1:2878,12\n327#1:2890,12\n327#1:2902\n327#1:2903,6\n2235#1:2916\n2235#1:2917,10\n2235#1:2927,12\n2235#1:2940,12\n2235#1:2952,12\n2235#1:2964\n2235#1:2965,6\n2249#1:2971\n2249#1:2972,10\n2249#1:2982,12\n2249#1:2995,12\n2249#1:3007,12\n2249#1:3019\n2249#1:3020,6\n2339#1:3032\n2339#1:3033,10\n2339#1:3043,12\n2339#1:3056,12\n2339#1:3068,12\n2339#1:3080\n2339#1:3081,6\n138#1:3092\n138#1:3093,10\n138#1:3103,12\n138#1:3116,12\n138#1:3128,12\n138#1:3140\n138#1:3141,6\n140#1:3147,15\n140#1:3162,12\n140#1:3175,12\n140#1:3187,12\n140#1:3199\n140#1:3200,6\n168#1:2428\n177#1:2483\n187#1:2538\n196#1:2593\n204#1:2648\n227#1:2705\n279#1:2764\n309#1:2820\n327#1:2877\n2235#1:2939\n2249#1:2994\n2339#1:3055\n138#1:3115\n140#1:3174\n207#1:2680,2\n230#1:2737,2\n231#1:2739,2\n310#1:2852,2\n330#1:2909\n330#1:2910,2\n330#1:2912\n330#1:2913,3\n2351#1:3087\n2351#1:3088,4\n317#1:3212,2\n2294#1:3027,5\n234#1:3207,5\n*E\n"})
public final class FormFragment extends Fragment {
@NotNull
public static final String ARG_KEY_TEXT_CONFIGS = "textConfigs";
@NotNull
public static final String ARG_MODULE_ID = "moduleId";
@NotNull
public static final String ARG_SECTIONS = "sections";
@NotNull
public static final String ARG_SUBTYPE = "subtype";
@NotNull
public static final String ARG_TYPE = "type";
@NotNull
public static final String DATE_FORMAT = "dd:MM:yyyy";
@NotNull
public static final String KEY_ENABLED = "enabled";
@NotNull
public static final String KEY_IS_VALID = "isValid";
@NotNull
public static final String KEY_NUMBER_OF_FILES = "numberOfFiles";
@NotNull
public static final String KEY_REQUIRED = "required";
@NotNull
public static final String KEY_STATE = "state";
@NotNull
public static final String KEY_TOTAL_SIZE = "totalSize";
@NotNull
public static final String KEY_TOTAL_SIZE_LABEL = "totalSizeLabel";
@NotNull
public static final String KEY_VALUE = "value";
@NotNull
public static final String KEY_VALUE_HOURS = "valueHours";
@NotNull
public static final String KEY_VALUE_MINUTES = "valueMinutes";
@NotNull
public static final String KEY_VALUE_SECONDS = "valueSeconds";
@NotNull
public static final String KEY_VISIBLE = "visible";
public static final int VT_ADD_FILES = 10;
public static final int VT_PICKED_FILE = 11;
@NotNull
private final FragmentViewBindingDelegate binding$delegate;
private List<? extends CompView<? extends View, ? extends Object>> compViews;
@NotNull
private final kotlin.e contentResolver$delegate;
@NotNull
private HashMap<String, CountDownTimer> countdownTimersMap;
@NotNull
private final kotlin.e dynamicFormUtils$delegate;
private Function1<? super List<? extends Uri>, Unit> filePickedCallback;
@NotNull
private final ActivityResultLauncher<String[]> filePickerLauncher;
@NotNull
private final kotlin.e formVM$delegate;
@NotNull
private final kotlin.e mainVM$delegate;
@NotNull
private final kotlin.e moduleId$delegate;
@NotNull
private final kotlin.e moduleType$delegate;
@NotNull
private final kotlin.e subType$delegate;
@NotNull
private final kotlin.e textConfigs$delegate;
static final KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(FormFragment.class, "binding", "getBinding()Lco/hyperverge/hyperkyc/databinding/HkFragmentFormBinding;", 0))};
@NotNull
public static final Companion Companion = new Companion(null);
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Button\n+ 2 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,2392:1\n14#2:2393\n28#2,10:2394\n62#2,12:2404\n40#2,12:2417\n62#2,12:2429\n52#2:2441\n50#2,6:2442\n14#2:2448\n28#2,10:2449\n62#2,12:2459\n40#2,12:2472\n62#2,12:2484\n52#2:2496\n50#2,6:2497\n1#3:2416\n1#3:2471\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Button\n*L\n1310#1:2393\n1310#1:2394,10\n1310#1:2404,12\n1310#1:2417,12\n1310#1:2429,12\n1310#1:2441\n1310#1:2442,6\n1337#1:2448\n1337#1:2449,10\n1337#1:2459,12\n1337#1:2472,12\n1337#1:2484,12\n1337#1:2496\n1337#1:2497,6\n1310#1:2416\n1337#1:2471\n*E\n"})
public final class Button extends CompView<MaterialButton, String> {
@NotNull
private final WorkflowModule.Properties.Section.Component component;
private boolean isLoading;
private Drawable originalDrawable;
@NotNull
private final LinearLayout parent;
final FormFragment this$0;
public Button(@NotNull FormFragment formFragment, @NotNull LinearLayout linearLayout, WorkflowModule.Properties.Section.Component component) {
super(formFragment, linearLayout, component);
Intrinsics.checkNotNullParameter(linearLayout, "parent");
Intrinsics.checkNotNullParameter(component, "component");
this.this$0 = formFragment;
this.parent = linearLayout;
this.component = component;
}
private final void updateLoading(MaterialButton materialButton, String str) {
if (!this.isLoading) {
materialButton.setText(str != null ? FormFragment.injectFromVariables$hyperkyc_release$default(this.this$0, str, false, 1, null) : null);
materialButton.setIcon(this.originalDrawable);
return;
}
materialButton.setText("");
Context requireContext = this.this$0.requireContext();
Intrinsics.checkNotNullExpressionValue(requireContext, "requireContext()");
Drawable progressBarDrawable = ContextExtsKt.getProgressBarDrawable(requireContext);
if (progressBarDrawable != 0) {
UIExtsKt.setTintColor(progressBarDrawable, materialButton.getCurrentTextColor());
}
materialButton.setIconGravity(4);
materialButton.setIcon(progressBarDrawable);
Animatable animatable = (Animatable) progressBarDrawable;
if (animatable != null) {
animatable.start();
}
}
private static final void updateView$lambda$3$applyUIConfigs(FormFragment formFragment, Button button) {
DynamicFormUIConfig dynamicFormUIConfig;
DynamicFormUtils dynamicFormUtils$hyperkyc_release = formFragment.getDynamicFormUtils$hyperkyc_release();
MaterialButton view = button.getView();
HSUIConfig uiConfigData = formFragment.getMainVM$hyperkyc_release().getUiConfigData();
if (uiConfigData != null) {
String moduleId$hyperkyc_release = formFragment.getModuleId$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(moduleId$hyperkyc_release, "moduleId");
dynamicFormUIConfig = uiConfigData.getDynamicFormUIConfig(moduleId$hyperkyc_release, button.getComponent().getId());
} else {
dynamicFormUIConfig = null;
}
dynamicFormUtils$hyperkyc_release.customiseButton(view, dynamicFormUIConfig);
}
@Override
@NotNull
public WorkflowModule.Properties.Section.Component getComponent() {
return this.component;
}
@Override
@NotNull
public LinearLayout getParent() {
return this.parent;
}
@Override
public void postInflate() {
super.postInflate();
String componentValue$hyperkyc_release = getComponentValue$hyperkyc_release();
if (componentValue$hyperkyc_release == null) {
componentValue$hyperkyc_release = "no";
}
CompView.updateData$default(this, FormFragment.KEY_VALUE, componentValue$hyperkyc_release, false, 4, null);
}
@Override
public void updateView(co.hyperverge.hyperkyc.data.models.WorkflowModule.Properties.Section.Component.Handler.ReloadProperties r18) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.Button.updateView(co.hyperverge.hyperkyc.data.models.WorkflowModule$Properties$Section$Component$Handler$ReloadProperties):void");
}
@Override
@org.jetbrains.annotations.NotNull
public com.google.android.material.button.MaterialButton inflate() {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.Button.inflate():com.google.android.material.button.MaterialButton");
}
}
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Checkbox\n+ 2 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 Html.kt\nandroidx/core/text/HtmlKt\n*L\n1#1,2392:1\n14#2:2393\n28#2,10:2394\n62#2,12:2404\n40#2,12:2417\n62#2,12:2429\n52#2:2441\n50#2,6:2442\n1#3:2416\n39#4,5:2448\n39#4,5:2453\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Checkbox\n*L\n1420#1:2393\n1420#1:2394,10\n1420#1:2404,12\n1420#1:2417,12\n1420#1:2429,12\n1420#1:2441\n1420#1:2442,6\n1420#1:2416\n1447#1:2448,5\n1462#1:2453,5\n*E\n"})
public final class Checkbox extends CompView<CheckBox, Boolean> {
@NotNull
private final WorkflowModule.Properties.Section.Component component;
@NotNull
private final LinearLayout parent;
final FormFragment this$0;
public Checkbox(@NotNull FormFragment formFragment, @NotNull LinearLayout linearLayout, WorkflowModule.Properties.Section.Component component) {
super(formFragment, linearLayout, component);
Intrinsics.checkNotNullParameter(linearLayout, "parent");
Intrinsics.checkNotNullParameter(component, "component");
this.this$0 = formFragment;
this.parent = linearLayout;
this.component = component;
}
private static final void updateView$lambda$5$applyUIConfigs(FormFragment formFragment, Checkbox checkbox) {
DynamicFormUIConfig dynamicFormUIConfig;
DynamicFormUtils dynamicFormUtils$hyperkyc_release = formFragment.getDynamicFormUtils$hyperkyc_release();
CheckBox view = checkbox.getView();
HSUIConfig uiConfigData = formFragment.getMainVM$hyperkyc_release().getUiConfigData();
if (uiConfigData != null) {
String moduleId$hyperkyc_release = formFragment.getModuleId$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(moduleId$hyperkyc_release, "moduleId");
dynamicFormUIConfig = uiConfigData.getDynamicFormUIConfig(moduleId$hyperkyc_release, checkbox.getComponent().getId());
} else {
dynamicFormUIConfig = null;
}
dynamicFormUtils$hyperkyc_release.customiseCheckBox(view, dynamicFormUIConfig);
}
public static final void updateView$lambda$5$lambda$4(Checkbox checkbox, CompoundButton compoundButton, boolean z) {
Intrinsics.checkNotNullParameter(checkbox, "this$0");
checkbox.setValue(Boolean.valueOf(z));
}
@Override
@NotNull
public WorkflowModule.Properties.Section.Component getComponent() {
return this.component;
}
@Override
@NotNull
public LinearLayout getParent() {
return this.parent;
}
@Override
public void postInflate() {
super.postInflate();
Boolean componentValue$hyperkyc_release = getComponentValue$hyperkyc_release();
CompView.updateData$default(this, FormFragment.KEY_VALUE, Boolean.valueOf(componentValue$hyperkyc_release != null ? componentValue$hyperkyc_release.booleanValue() : false), false, 4, null);
}
@Override
public void updateView(WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties) {
String injectFromVariables$hyperkyc_release$default;
Boolean asBoolean$hyperkyc_release;
String injectFromVariables$hyperkyc_release$default2;
CheckBox view = getView();
FormFragment formFragment = this.this$0;
CheckBox checkBox = view;
if (reloadProperties != null) {
String text = reloadProperties.getText();
if (text != null && (injectFromVariables$hyperkyc_release$default2 = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, text, false, 1, null)) != null) {
String required = reloadProperties.getRequired();
if (required == null) {
required = getComponent().getRequired();
}
Boolean bool = Boolean.TRUE;
Spanned b = androidx.core.text.a.b(formFragment.appendRequired$hyperkyc_release(injectFromVariables$hyperkyc_release$default2, Intrinsics.areEqual(formFragment.asBoolean$hyperkyc_release(required, bool), bool)), 0, (Html.ImageGetter) null, (Html.TagHandler) null);
Intrinsics.checkNotNullExpressionValue(b, "fromHtml(this, flags, imageGetter, tagHandler)");
checkBox.setText(b);
}
String value = reloadProperties.getValue();
if (value != null && (asBoolean$hyperkyc_release = formFragment.asBoolean$hyperkyc_release(value, null)) != null) {
checkBox.setChecked(asBoolean$hyperkyc_release.booleanValue());
}
updateView$lambda$5$applyUIConfigs(formFragment, this);
return;
}
checkBox.setGravity(48);
String text2 = getComponent().getText();
if (text2 != null && (injectFromVariables$hyperkyc_release$default = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, text2, false, 1, null)) != null) {
String required2 = getComponent().getRequired();
Boolean bool2 = Boolean.TRUE;
Spanned b2 = androidx.core.text.a.b(formFragment.appendRequired$hyperkyc_release(injectFromVariables$hyperkyc_release$default, Intrinsics.areEqual(formFragment.asBoolean$hyperkyc_release(required2, bool2), bool2)), 0, (Html.ImageGetter) null, (Html.TagHandler) null);
Intrinsics.checkNotNullExpressionValue(b2, "fromHtml(this, flags, imageGetter, tagHandler)");
checkBox.setText(b2);
}
checkBox.setChecked(Intrinsics.areEqual(getComponentValue$hyperkyc_release(), Boolean.TRUE));
checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z) {
FormFragment.Checkbox.updateView$lambda$5$lambda$4(FormFragment.Checkbox.this, compoundButton, z);
}
});
checkBox.setMovementMethod(LinkMovementMethod.getInstance());
checkBox.setTypeface(formFragment.getDescTextFont$hyperkyc_release());
checkBox.setButtonTintList(UIExtsKt.toColorStateList(formFragment.getPrimaryBtnBgColor$hyperkyc_release()));
updateView$lambda$5$applyUIConfigs(formFragment, this);
}
@Override
@NotNull
public CheckBox inflate() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Checkbox.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " inflate() called";
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Checkbox.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " inflate() called";
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
return new CheckBox(this.this$0.requireContext());
}
}
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$CompView\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 4 View.kt\nandroidx/core/view/ViewKt\n+ 5 CharSequence.kt\nandroidx/core/text/CharSequenceKt\n+ 6 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,2392:1\n1#2:2393\n1#2:2417\n1#2:2472\n1#2:2525\n1#2:2582\n1#2:2638\n1#2:2695\n1#2:2751\n1#2:2806\n1#2:2861\n1#2:2916\n1#2:2985\n14#3:2394\n28#3,10:2395\n62#3,12:2405\n40#3,12:2418\n62#3,12:2430\n52#3:2442\n50#3,6:2443\n14#3:2449\n28#3,10:2450\n62#3,12:2460\n40#3,12:2473\n62#3,12:2485\n52#3:2497\n50#3,6:2498\n18#3,4:2504\n33#3,5:2508\n62#3,12:2513\n40#3,12:2526\n62#3,12:2538\n52#3:2550\n50#3,6:2551\n14#3:2559\n28#3,10:2560\n62#3,12:2570\n40#3,12:2583\n62#3,12:2595\n52#3:2607\n50#3,6:2608\n14#3:2615\n28#3,10:2616\n62#3,12:2626\n40#3,12:2639\n62#3,12:2651\n52#3:2663\n50#3,6:2664\n14#3:2672\n28#3,10:2673\n62#3,12:2683\n40#3,12:2696\n62#3,12:2708\n52#3:2720\n50#3,6:2721\n14#3:2728\n28#3,10:2729\n62#3,12:2739\n40#3,12:2752\n62#3,12:2764\n52#3:2776\n50#3,6:2777\n14#3:2783\n28#3,10:2784\n62#3,12:2794\n40#3,12:2807\n62#3,12:2819\n52#3:2831\n50#3,6:2832\n14#3:2838\n28#3,10:2839\n62#3,12:2849\n40#3,12:2862\n62#3,12:2874\n52#3:2886\n50#3,6:2887\n14#3:2893\n28#3,10:2894\n62#3,12:2904\n40#3,12:2917\n62#3,12:2929\n52#3:2941\n50#3,6:2942\n14#3:2962\n28#3,10:2963\n62#3,12:2973\n40#3,12:2986\n62#3,12:2998\n52#3:3010\n50#3,6:3011\n262#4,2:2557\n28#5:2614\n1726#6,2:2670\n1728#6:2727\n288#6,2:2948\n1360#6:2950\n1446#6,5:2951\n766#6:2956\n857#6,2:2957\n1045#6:2959\n1855#6,2:2960\n1855#6,2:3017\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$CompView\n*L\n395#1:2417\n411#1:2472\n423#1:2525\n502#1:2582\n534#1:2638\n547#1:2695\n580#1:2751\n590#1:2806\n602#1:2861\n608#1:2916\n635#1:2985\n395#1:2394\n395#1:2395,10\n395#1:2405,12\n395#1:2418,12\n395#1:2430,12\n395#1:2442\n395#1:2443,6\n411#1:2449\n411#1:2450,10\n411#1:2460,12\n411#1:2473,12\n411#1:2485,12\n411#1:2497\n411#1:2498,6\n423#1:2504,4\n423#1:2508,5\n423#1:2513,12\n423#1:2526,12\n423#1:2538,12\n423#1:2550\n423#1:2551,6\n502#1:2559\n502#1:2560,10\n502#1:2570,12\n502#1:2583,12\n502#1:2595,12\n502#1:2607\n502#1:2608,6\n534#1:2615\n534#1:2616,10\n534#1:2626,12\n534#1:2639,12\n534#1:2651,12\n534#1:2663\n534#1:2664,6\n547#1:2672\n547#1:2673,10\n547#1:2683,12\n547#1:2696,12\n547#1:2708,12\n547#1:2720\n547#1:2721,6\n580#1:2728\n580#1:2729,10\n580#1:2739,12\n580#1:2752,12\n580#1:2764,12\n580#1:2776\n580#1:2777,6\n590#1:2783\n590#1:2784,10\n590#1:2794,12\n590#1:2807,12\n590#1:2819,12\n590#1:2831\n590#1:2832,6\n602#1:2838\n602#1:2839,10\n602#1:2849,12\n602#1:2862,12\n602#1:2874,12\n602#1:2886\n602#1:2887,6\n608#1:2893\n608#1:2894,10\n608#1:2904,12\n608#1:2917,12\n608#1:2929,12\n608#1:2941\n608#1:2942,6\n635#1:2962\n635#1:2963,10\n635#1:2973,12\n635#1:2986,12\n635#1:2998,12\n635#1:3010\n635#1:3011,6\n445#1:2557,2\n529#1:2614\n541#1:2670,2\n541#1:2727\n613#1:2948,2\n624#1:2950\n624#1:2951,5\n625#1:2956\n625#1:2957,2\n626#1:2959\n627#1:2960,2\n688#1:3017,2\n*E\n"})
public abstract class CompView<ViewType extends View, ValueType> {
private List<? extends CompView<? extends View, ? extends Object>> childCompViews;
@NotNull
private final WorkflowModule.Properties.Section.Component component;
@NotNull
private HashMap<String, p1> dynamicHandlersJobMap;
private String errorMessage;
private boolean isValid;
@NotNull
private final LinearLayout parent;
final FormFragment this$0;
private ValueType value;
public ViewType view;
public CompView(@NotNull FormFragment formFragment, @NotNull LinearLayout linearLayout, WorkflowModule.Properties.Section.Component component) {
Intrinsics.checkNotNullParameter(linearLayout, "parent");
Intrinsics.checkNotNullParameter(component, "component");
this.this$0 = formFragment;
this.parent = linearLayout;
this.component = component;
this.dynamicHandlersJobMap = new HashMap<>();
}
private final void addToParent(android.widget.LinearLayout r19, android.view.View r20, co.hyperverge.hyperkyc.utils.extensions.Margin r21) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.CompView.addToParent(android.widget.LinearLayout, android.view.View, co.hyperverge.hyperkyc.utils.extensions.Margin):void");
}
public static void addToParent$default(CompView compView, LinearLayout linearLayout, View view, Margin margin, int i, Object obj) {
if (obj != null) {
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: addToParent");
}
if ((i & 4) != 0) {
margin = null;
}
compView.addToParent(linearLayout, view, margin);
}
private final void attachDynamicHandlers() {
WorkflowModule.Properties.Section.Component.DynamicHandlers dynamicHandlers = getComponent().getDynamicHandlers();
if (dynamicHandlers != null) {
FormFragment formFragment = this.this$0;
p1 p1Var = this.dynamicHandlersJobMap.get(getComponent().getId());
if (p1Var != null) {
Intrinsics.checkNotNullExpressionValue(p1Var, "dynamicHandlersJobMap[component.id]");
p1.a.a(p1Var, (CancellationException) null, 1, (Object) null);
Unit unit = Unit.a;
}
this.dynamicHandlersJobMap.put(getComponent().getId(), BuildersKt.launch$default(androidx.lifecycle.o.a(formFragment), (CoroutineContext) null, (j0) null, new FormFragment$CompView$attachDynamicHandlers$1$2(dynamicHandlers, formFragment, this, null), 3, (Object) null));
}
}
private final List<CompView<?, ?>> flatten(CompView<?, ?> compView) {
ArrayList arrayList = new ArrayList();
arrayList.add(compView);
List<? extends CompView<? extends View, ? extends Object>> list = compView.childCompViews;
if (list != null) {
Iterator<T> it = list.iterator();
while (it.hasNext()) {
arrayList.addAll(compView.flatten((CompView) it.next()));
}
}
return arrayList;
}
private final int getDimensions(String str, int i) {
if (Intrinsics.areEqual(str, WorkflowModule.Properties.Section.Component.Dimensions.FILL)) {
return -1;
}
if (Intrinsics.areEqual(str, WorkflowModule.Properties.Section.Component.Dimensions.WRAP)) {
return -2;
}
boolean z = false;
if (str != null && TextUtils.isDigitsOnly(str)) {
z = true;
}
return z ? ViewExtsKt.getDp(Integer.parseInt(str)) : i;
}
private final void onChange(ValueType valuetype) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = getClass().getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " onChange() called with: value = " + valuetype;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = getClass().getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " onChange() called with: value = " + valuetype;
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
updateData(FormFragment.KEY_VALUE, valuetype, true);
WorkflowModule.Properties.Section.Component.Handler onChange = getComponent().getOnChange();
if (onChange != null) {
processHandler$hyperkyc_release$default(this, onChange, false, 2, null);
}
}
public static void processHandler$hyperkyc_release$default(CompView compView, WorkflowModule.Properties.Section.Component.Handler handler, boolean z, int i, Object obj) {
if (obj != null) {
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: processHandler");
}
if ((i & 2) != 0) {
z = true;
}
compView.processHandler$hyperkyc_release(handler, z);
}
private final kotlin.Unit updateCommonProperties(co.hyperverge.hyperkyc.data.models.WorkflowModule.Properties.Section.Component.Handler.ReloadProperties r15) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.CompView.updateCommonProperties(co.hyperverge.hyperkyc.data.models.WorkflowModule$Properties$Section$Component$Handler$ReloadProperties):kotlin.Unit");
}
private final void updateComponent(co.hyperverge.hyperkyc.data.models.WorkflowModule.Properties.Section.Component.Handler.ReloadProperties r20) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.CompView.updateComponent(co.hyperverge.hyperkyc.data.models.WorkflowModule$Properties$Section$Component$Handler$ReloadProperties):void");
}
public static void updateComponent$default(CompView compView, WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties, int i, Object obj) {
if (obj != null) {
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: updateComponent");
}
if ((i & 1) != 0) {
reloadProperties = null;
}
compView.updateComponent(reloadProperties);
}
public static void updateData$default(CompView compView, String str, Object obj, boolean z, int i, Object obj2) {
if (obj2 != null) {
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: updateData");
}
if ((i & 4) != 0) {
z = false;
}
compView.updateData(str, obj, z);
}
private final void updateIsValid(boolean z) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = getClass().getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
boolean z2 = false;
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " updateIsValid() called with: value = " + z;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = getClass().getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " updateIsValid() called with: value = " + z;
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
boolean z3 = ((this instanceof FileUpload) && ((FileUpload) this).getHasFileErrors$hyperkyc_release()) ? false : true;
if (z && z3) {
z2 = true;
}
updateData$default(this, FormFragment.KEY_IS_VALID, Boolean.valueOf(z2), false, 4, null);
}
public static void updateStyling$default(CompView compView, TextInputLayout textInputLayout, EditText editText, int i, Object obj) {
if (obj != null) {
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: updateStyling");
}
if ((i & 1) != 0) {
editText = null;
}
compView.updateStyling(textInputLayout, editText);
}
private final boolean validate(java.lang.String r24) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.CompView.validate(java.lang.String):boolean");
}
public final List<CompView<? extends View, ? extends Object>> getChildCompViews() {
return this.childCompViews;
}
@NotNull
public WorkflowModule.Properties.Section.Component getComponent() {
return this.component;
}
public final ValueType getComponentValue$hyperkyc_release() {
String nullIfBlank = CoreExtsKt.nullIfBlank(FormFragment.injectFromVariables$hyperkyc_release$default(this.this$0, this.this$0.getModuleId$hyperkyc_release() + '.' + getComponent().getId() + ".value", false, 1, null));
String value = getComponent().getValue();
String nullIfBlank2 = CoreExtsKt.nullIfBlank(value != null ? FormFragment.injectFromVariables$hyperkyc_release$default(this.this$0, value, false, 1, null) : null);
if (nullIfBlank == null) {
nullIfBlank = nullIfBlank2;
}
if (!Intrinsics.areEqual(getComponent().getType(), WorkflowModule.Properties.Section.Component.Type.CHECKBOX)) {
return (ValueType) nullIfBlank;
}
if (nullIfBlank != null) {
return (ValueType) this.this$0.asBoolean$hyperkyc_release(nullIfBlank, Boolean.FALSE);
}
return null;
}
public final String getErrorMessage() {
return this.errorMessage;
}
@NotNull
public LinearLayout getParent() {
return this.parent;
}
public final ValueType getValue() {
return this.value;
}
@NotNull
public final ViewType getView() {
ViewType viewtype = this.view;
if (viewtype != null) {
return viewtype;
}
Intrinsics.throwUninitializedPropertyAccessException("view");
return null;
}
@NotNull
public abstract ViewType inflate();
public final boolean isValid() {
return this.isValid;
}
public void postInflate() {
}
public final void processHandler$hyperkyc_release(@NotNull WorkflowModule.Properties.Section.Component.Handler handler, boolean z) {
String canonicalName;
Object b;
String canonicalName2;
String className;
final List<String> reloadComponents;
WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties;
WorkflowModule workflowModule;
Object obj;
String className2;
Intrinsics.checkNotNullParameter(handler, "handler");
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = getClass().getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = "processHandler() called with: handler = [" + handler + "] for " + getComponent().getId() + '(' + getComponent().getType() + ')';
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = getClass().getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = "processHandler() called with: handler = [" + handler + "] for " + getComponent().getId() + '(' + getComponent().getType() + ')';
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
if (handler.getNextStep() != null && z) {
List<WorkflowModule> modules = this.this$0.getMainVM$hyperkyc_release().getHyperKycConfig$hyperkyc_release().getWorkflowConfig$hyperkyc_release().getModules();
if (modules != null) {
FormFragment formFragment = this.this$0;
Iterator<T> it = modules.iterator();
while (true) {
if (it.hasNext()) {
obj = it.next();
if (Intrinsics.areEqual(((WorkflowModule) obj).getId(), formFragment.getModuleId$hyperkyc_release())) {
break;
}
} else {
obj = null;
break;
}
}
workflowModule = (WorkflowModule) obj;
} else {
workflowModule = null;
}
if (workflowModule != null) {
workflowModule.setNext(handler.getNextStep());
}
this.this$0.getMainVM$hyperkyc_release().flowForward();
}
Map<String, WorkflowModule.Properties.Section.Component.Handler.ReloadProperties> reload = handler.getReload();
if (reload == null || (reloadComponents = reload.keySet()) == null) {
reloadComponents = handler.getReloadComponents();
}
if (reloadComponents == null || reloadComponents.isEmpty()) {
return;
}
List list = this.this$0.compViews;
if (list == null) {
Intrinsics.throwUninitializedPropertyAccessException("compViews");
list = null;
}
ArrayList arrayList = new ArrayList();
Iterator it2 = list.iterator();
while (it2.hasNext()) {
CollectionsKt.addAll(arrayList, flatten((CompView) it2.next()));
}
ArrayList arrayList2 = new ArrayList();
for (Object obj2 : arrayList) {
if (reloadComponents.contains(((CompView) obj2).getComponent().getId())) {
arrayList2.add(obj2);
}
}
for (CompView compView : CollectionsKt.sortedWith(arrayList2, new Comparator() {
@Override
public final int compare(T t, T t2) {
return kotlin.comparisons.a.d(Integer.valueOf(CollectionsKt.indexOf(reloadComponents, ((FormFragment.CompView) t).getComponent().getId())), Integer.valueOf(CollectionsKt.indexOf(reloadComponents, ((FormFragment.CompView) t2).getComponent().getId())));
}
})) {
Map<String, WorkflowModule.Properties.Section.Component.Handler.ReloadProperties> reload2 = handler.getReload();
compView.updateComponent((reload2 == null || (reloadProperties = reload2.get(compView.getComponent().getId())) == null) ? null : reloadProperties.nullIfEmpty());
}
}
public final void render(@NotNull Margin margin) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
Intrinsics.checkNotNullParameter(margin, "margin");
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = getClass().getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = "render() called for " + getComponent().getId() + '(' + getComponent().getType() + ')';
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = getClass().getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = "render() called for " + getComponent().getId() + '(' + getComponent().getType() + ')';
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
setView(inflate());
postInflate();
updateComponent$default(this, null, 1, null);
addToParent(getParent(), getView(), margin);
}
public final void setChildCompViews(List<? extends CompView<? extends View, ? extends Object>> list) {
this.childCompViews = list;
}
public final void setErrorMessage(String str) {
this.errorMessage = str;
}
public final void setValid(boolean z) {
updateIsValid(z);
this.isValid = z;
}
public final void setValue(ValueType valuetype) {
if (valuetype != null) {
onChange(valuetype);
}
this.value = valuetype;
}
public final void setView(@NotNull ViewType viewtype) {
Intrinsics.checkNotNullParameter(viewtype, "<set-?>");
this.view = viewtype;
}
public final <ValueType> void updateData(@NotNull String str, @NotNull ValueType valuetype, boolean z) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
Intrinsics.checkNotNullParameter(str, "key");
Intrinsics.checkNotNullParameter(valuetype, FormFragment.KEY_VALUE);
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = getClass().getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str2 = getComponent().getId() + " updateData() called for: componentId = " + getComponent().getId() + ", value = " + valuetype + ", key = " + str + ", ";
if (str2 == null) {
str2 = "null ";
}
sb.append(str2);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str3 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str3, "packageName");
if (StringsKt.contains$default(str3, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str4 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = getClass().getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str4);
if (matcher2.find()) {
str4 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str4, "replaceAll(\"\")");
}
if (str4.length() > 23 && Build.VERSION.SDK_INT < 26) {
str4 = str4.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str4, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str5 = getComponent().getId() + " updateData() called for: componentId = " + getComponent().getId() + ", value = " + valuetype + ", key = " + str + ", ";
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
Log.println(3, str4, sb2.toString());
}
}
}
String obj = valuetype instanceof Boolean ? ((Boolean) valuetype).booleanValue() ? "yes" : "no" : valuetype.toString();
MainVM.updateFormData$hyperkyc_release$default(this.this$0.getMainVM$hyperkyc_release(), this.this$0.getModuleId$hyperkyc_release(), MapsKt.mapOf(kotlin.k.a(getComponent().getId() + '.' + str, obj)), false, 4, null);
if (z) {
validate(obj);
}
}
public void updateError() {
}
public final void updateStyling(@NotNull TextInputLayout textInputLayout, EditText editText) {
String canonicalName;
Object b;
String canonicalName2;
String className;
int k;
int k2;
String className2;
Intrinsics.checkNotNullParameter(textInputLayout, "<this>");
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = textInputLayout.getClass().getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + ' ' + textInputLayout + ".updateStyling() called with: et = " + editText;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = textInputLayout.getClass().getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + ' ' + textInputLayout + ".updateStyling() called with: et = " + editText;
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
int primaryBtnBgColor$hyperkyc_release = this.this$0.getPrimaryBtnBgColor$hyperkyc_release();
if (editText instanceof AutoCompleteTextView) {
FormFragment formFragment = this.this$0;
String enabled = getComponent().getEnabled();
Boolean bool = Boolean.TRUE;
textInputLayout.setEndIconMode(Intrinsics.areEqual(formFragment.asBoolean$hyperkyc_release(enabled, bool), bool) ? 3 : 0);
}
int d = com.google.android.material.color.c.d(textInputLayout, R.attr.colorOnSurface);
textInputLayout.setDefaultHintTextColor(UIExtsKt.toColorStateList(d));
int[][] iArr = {new int[]{android.R.attr.state_enabled, -16842908}, new int[]{-16842910, android.R.attr.state_focused}, new int[]{android.R.attr.state_enabled, android.R.attr.state_focused}};
k = androidx.core.graphics.d.k(primaryBtnBgColor$hyperkyc_release, 25);
k2 = androidx.core.graphics.d.k(d, 0);
textInputLayout.setBoxStrokeColorStateList(new ColorStateList(iArr, new int[]{k, k2, primaryBtnBgColor$hyperkyc_release}));
if (editText != null) {
Color.parseColor(HyperSnapBridgeKt.getUiConfigUtil().getConfig().getColors().getFormPlaceHolderTextColor());
}
}
public abstract void updateView(WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties);
}
@Metadata
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Container\n+ 2 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,2392:1\n14#2:2393\n28#2,10:2394\n62#2,12:2404\n40#2,12:2417\n62#2,12:2429\n52#2:2441\n50#2,6:2442\n1#3:2416\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Container\n*L\n2018#1:2393\n2018#1:2394,10\n2018#1:2404,12\n2018#1:2417,12\n2018#1:2429,12\n2018#1:2441\n2018#1:2442,6\n2018#1:2416\n*E\n"})
public final class Container extends CompView {
@NotNull
private final WorkflowModule.Properties.Section.Component component;
private final int mode;
@NotNull
private final LinearLayout parent;
final FormFragment this$0;
public Container(FormFragment formFragment, @NotNull int i, @NotNull LinearLayout linearLayout, WorkflowModule.Properties.Section.Component component) {
super(formFragment, linearLayout, component);
Intrinsics.checkNotNullParameter(linearLayout, "parent");
Intrinsics.checkNotNullParameter(component, "component");
this.this$0 = formFragment;
this.mode = i;
this.parent = linearLayout;
this.component = component;
}
public static final boolean updateView$lambda$5$lambda$4$lambda$3(Container container, View view, MotionEvent motionEvent) {
Intrinsics.checkNotNullParameter(container, "this$0");
if (motionEvent.getAction() != 1) {
return true;
}
CompView.processHandler$hyperkyc_release$default(container, container.getComponent().getOnClick(), false, 2, null);
return false;
}
@Override
@NotNull
public WorkflowModule.Properties.Section.Component getComponent() {
return this.component;
}
@Override
@NotNull
public LinearLayout getParent() {
return this.parent;
}
@Override
@SuppressLint({"ClickableViewAccessibility"})
public void updateView(WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties) {
DynamicFormUIConfig dynamicFormUIConfig;
View view = getView();
FormFragment formFragment = this.this$0;
ClickableLinearLayout clickableLinearLayout = (ClickableLinearLayout) view;
if (getComponent().getOnClick() != null) {
((ClickableLinearLayout) getView()).setInterceptTouch(true);
clickableLinearLayout.setOnTouchListener(new View.OnTouchListener() {
@Override
public final boolean onTouch(View view2, MotionEvent motionEvent) {
boolean updateView$lambda$5$lambda$4$lambda$3;
updateView$lambda$5$lambda$4$lambda$3 = FormFragment.Container.updateView$lambda$5$lambda$4$lambda$3(FormFragment.Container.this, view2, motionEvent);
return updateView$lambda$5$lambda$4$lambda$3;
}
});
}
DynamicFormUtils dynamicFormUtils$hyperkyc_release = formFragment.getDynamicFormUtils$hyperkyc_release();
View view2 = getView();
HSUIConfig uiConfigData = formFragment.getMainVM$hyperkyc_release().getUiConfigData();
if (uiConfigData != null) {
String moduleId$hyperkyc_release = formFragment.getModuleId$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(moduleId$hyperkyc_release, "moduleId");
dynamicFormUIConfig = uiConfigData.getDynamicFormUIConfig(moduleId$hyperkyc_release, getComponent().getId());
} else {
dynamicFormUIConfig = null;
}
dynamicFormUtils$hyperkyc_release.customiseContainer(view2, dynamicFormUIConfig);
}
@Override
@NotNull
public ClickableLinearLayout inflate() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Container.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " inflate() called";
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Container.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " inflate() called";
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
View inflate = this.this$0.getLayoutInflater().inflate(R.layout.hk_view_container, (ViewGroup) null, false);
Intrinsics.checkNotNull(inflate, "null cannot be cast to non-null type co.hyperverge.hyperkyc.ui.custom.ClickableLinearLayout");
ClickableLinearLayout clickableLinearLayout = (ClickableLinearLayout) inflate;
FormFragment formFragment = this.this$0;
clickableLinearLayout.setOrientation(this.mode);
clickableLinearLayout.setPadding(ViewExtsKt.getDp(16), ViewExtsKt.getDp(16), ViewExtsKt.getDp(16), ViewExtsKt.getDp(4));
clickableLinearLayout.setBackgroundResource(R.drawable.hk_bg_rect_rounded_lt_night_blue);
List<WorkflowModule.Properties.Section.Component> subComponents = getComponent().getSubComponents();
if (subComponents != null) {
setChildCompViews(formFragment.createComponents$hyperkyc_release(clickableLinearLayout, subComponents));
}
return clickableLinearLayout;
}
}
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Date\n+ 2 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 CharSequence.kt\nandroidx/core/text/CharSequenceKt\n*L\n1#1,2392:1\n14#2:2393\n28#2,10:2394\n62#2,12:2404\n40#2,12:2417\n62#2,12:2429\n52#2:2441\n50#2,6:2442\n14#2:2449\n28#2,10:2450\n62#2,12:2460\n40#2,12:2473\n62#2,12:2485\n52#2:2497\n50#2,6:2498\n14#2:2504\n28#2,10:2505\n62#2,12:2515\n40#2,12:2528\n62#2,12:2540\n52#2:2552\n50#2,6:2553\n1#3:2416\n1#3:2448\n1#3:2472\n1#3:2527\n1#3:2559\n28#4:2560\n28#4:2561\n28#4:2562\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Date\n*L\n1161#1:2393\n1161#1:2394,10\n1161#1:2404,12\n1161#1:2417,12\n1161#1:2429,12\n1161#1:2441\n1161#1:2442,6\n1248#1:2449\n1248#1:2450,10\n1248#1:2460,12\n1248#1:2473,12\n1248#1:2485,12\n1248#1:2497\n1248#1:2498,6\n1253#1:2504\n1253#1:2505,10\n1253#1:2515,12\n1253#1:2528,12\n1253#1:2540,12\n1253#1:2552\n1253#1:2553,6\n1161#1:2416\n1248#1:2472\n1253#1:2527\n1264#1:2560\n1265#1:2561\n1266#1:2562\n*E\n"})
public final class Date extends CompView<TextInputLayout, String> {
@NotNull
private final WorkflowModule.Properties.Section.Component component;
@NotNull
private final LinearLayout parent;
final FormFragment this$0;
public Date(@NotNull FormFragment formFragment, @NotNull LinearLayout linearLayout, WorkflowModule.Properties.Section.Component component) {
super(formFragment, linearLayout, component);
Intrinsics.checkNotNullParameter(linearLayout, "parent");
Intrinsics.checkNotNullParameter(component, "component");
this.this$0 = formFragment;
this.parent = linearLayout;
this.component = component;
}
private final kotlin.Pair<java.lang.Long, java.lang.Long> getMinMaxDateMillis(co.hyperverge.hyperkyc.data.models.WorkflowModule.Properties.Section.Component r23) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.Date.getMinMaxDateMillis(co.hyperverge.hyperkyc.data.models.WorkflowModule$Properties$Section$Component):kotlin.Pair");
}
private static final long getMinMaxDateMillis$lambda$18$getMonthAdjustedDate(int i) {
Calendar calendar = Calendar.getInstance();
calendar.set(2, calendar.get(2) + i);
return calendar.getTimeInMillis();
}
private static final Long getMinMaxDateMillis$toDateMillis(String str, WorkflowModule.Properties.Section.Component component) {
java.util.Date parse = new SimpleDateFormat(component.getFormat(), Locale.getDefault()).parse(str);
if (parse != null) {
return Long.valueOf(parse.getTime());
}
return null;
}
private static final void updateView$lambda$11$applyUIConfigs(Date date, TextInputLayout textInputLayout, TextInputEditText textInputEditText, FormFragment formFragment) {
DynamicFormUIConfig dynamicFormUIConfig;
date.updateStyling(textInputLayout, textInputEditText);
DynamicFormUtils dynamicFormUtils$hyperkyc_release = formFragment.getDynamicFormUtils$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(textInputEditText, "et");
HSUIConfig uiConfigData = formFragment.getMainVM$hyperkyc_release().getUiConfigData();
if (uiConfigData != null) {
String moduleId$hyperkyc_release = formFragment.getModuleId$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(moduleId$hyperkyc_release, "moduleId");
dynamicFormUIConfig = uiConfigData.getDynamicFormUIConfig(moduleId$hyperkyc_release, date.getComponent().getId());
} else {
dynamicFormUIConfig = null;
}
dynamicFormUtils$hyperkyc_release.customiseTIL(textInputLayout, textInputEditText, dynamicFormUIConfig);
}
public static final void updateView$lambda$11$lambda$10$lambda$8(final TextInputEditText textInputEditText, FormFragment formFragment, final Date date, View view) {
Intrinsics.checkNotNullParameter(formFragment, "this$0");
Intrinsics.checkNotNullParameter(date, "this$1");
Intrinsics.checkNotNullExpressionValue(textInputEditText, "updateView$lambda$11$lambda$10$lambda$8");
ViewExtsKt.hideSoftInput(textInputEditText);
final Calendar calendar = Calendar.getInstance();
com.google.android.material.datepicker.i iVar = new com.google.android.material.datepicker.i(formFragment.requireActivity(), new DatePickerDialog.OnDateSetListener() {
@Override
public final void onDateSet(DatePicker datePicker, int i, int i2, int i3) {
FormFragment.Date.updateView$lambda$11$lambda$10$lambda$8$lambda$3(calendar, date, textInputEditText, datePicker, i, i2, i3);
}
}, calendar.get(1), calendar.get(2), calendar.get(5));
DatePicker datePicker = iVar.getDatePicker();
Pair<Long, Long> minMaxDateMillis = date.getMinMaxDateMillis(date.getComponent());
Long l = (Long) minMaxDateMillis.a();
Long l2 = (Long) minMaxDateMillis.b();
if (l != null) {
datePicker.setMinDate(l.longValue());
}
if (l2 != null) {
datePicker.setMaxDate(l2.longValue());
}
iVar.show();
}
public static final void updateView$lambda$11$lambda$10$lambda$8$lambda$3(Calendar calendar, Date date, TextInputEditText textInputEditText, DatePicker datePicker, int i, int i2, int i3) {
Intrinsics.checkNotNullParameter(date, "this$0");
calendar.set(i, i2, i3);
String format = date.getComponent().getFormat();
if (format == null) {
format = FormFragment.DATE_FORMAT;
}
String format2 = new SimpleDateFormat(format, Locale.getDefault()).format(calendar.getTime());
textInputEditText.setText(format2);
date.setValue(format2);
}
public static final void updateView$lambda$11$lambda$10$lambda$9(Date date, View view, boolean z) {
Intrinsics.checkNotNullParameter(date, "this$0");
if (z || date.getErrorMessage() == null) {
return;
}
date.updateError();
}
private static final void updateView$lambda$11$setTextAndValue(TextInputLayout textInputLayout, Date date, String str) {
textInputLayout.findViewById(R.id.etDate).setText(str);
date.setValue(str);
}
@Override
@NotNull
public WorkflowModule.Properties.Section.Component getComponent() {
return this.component;
}
@Override
@NotNull
public LinearLayout getParent() {
return this.parent;
}
@Override
public void postInflate() {
super.postInflate();
String componentValue$hyperkyc_release = getComponentValue$hyperkyc_release();
if (componentValue$hyperkyc_release == null) {
componentValue$hyperkyc_release = "";
}
CompView.updateData$default(this, FormFragment.KEY_VALUE, componentValue$hyperkyc_release, false, 4, null);
}
@Override
public void updateError() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Date.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " updateError() called with: errorMessage: " + getErrorMessage();
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Date.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " updateError() called with: errorMessage: " + getErrorMessage();
sb2.append(str4 != null ? str4 : "null ");
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
getView().setError(getErrorMessage());
}
@Override
public void updateView(WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties) {
TextInputLayout view = getView();
final FormFragment formFragment = this.this$0;
TextInputLayout textInputLayout = view;
final TextInputEditText findViewById = textInputLayout.findViewById(R.id.etDate);
if (reloadProperties != null) {
formFragment.setTitleHintAndHelperText$hyperkyc_release(textInputLayout, getComponent(), reloadProperties);
String value = reloadProperties.getValue();
String nullIfBlank = CoreExtsKt.nullIfBlank(value != null ? FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, value, false, 1, null) : null);
if (nullIfBlank != null) {
updateView$lambda$11$setTextAndValue(textInputLayout, this, nullIfBlank);
}
updateView$lambda$11$applyUIConfigs(this, textInputLayout, findViewById, formFragment);
return;
}
FormFragment.setTitleHintAndHelperText$hyperkyc_release$default(formFragment, textInputLayout, getComponent(), null, 2, null);
findViewById.setInputType(0);
String componentValue$hyperkyc_release = getComponentValue$hyperkyc_release();
if (componentValue$hyperkyc_release != null) {
updateView$lambda$11$setTextAndValue(textInputLayout, this, componentValue$hyperkyc_release);
}
findViewById.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view2) {
FormFragment.Date.updateView$lambda$11$lambda$10$lambda$8(findViewById, formFragment, this, view2);
}
});
findViewById.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public final void onFocusChange(View view2, boolean z) {
FormFragment.Date.updateView$lambda$11$lambda$10$lambda$9(FormFragment.Date.this, view2, z);
}
});
updateView$lambda$11$applyUIConfigs(this, textInputLayout, findViewById, formFragment);
}
@Override
@NotNull
public TextInputLayout inflate() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Date.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " inflate() called";
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Date.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " inflate() called";
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
TextInputLayout inflate = this.this$0.getLayoutInflater().inflate(R.layout.hk_view_til_date, (ViewGroup) null, false);
Intrinsics.checkNotNull(inflate, "null cannot be cast to non-null type com.google.android.material.textfield.TextInputLayout");
return inflate;
}
}
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Divider\n+ 2 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 Html.kt\nandroidx/core/text/HtmlKt\n*L\n1#1,2392:1\n14#2:2393\n28#2,10:2394\n62#2,12:2404\n40#2,12:2417\n62#2,12:2429\n52#2:2441\n50#2,6:2442\n1#3:2416\n39#4,5:2448\n39#4,5:2453\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Divider\n*L\n1980#1:2393\n1980#1:2394,10\n1980#1:2404,12\n1980#1:2417,12\n1980#1:2429,12\n1980#1:2441\n1980#1:2442,6\n1980#1:2416\n2001#1:2448,5\n2006#1:2453,5\n*E\n"})
public final class Divider extends CompView {
@NotNull
private final kotlin.e binding$delegate;
@NotNull
private final WorkflowModule.Properties.Section.Component component;
@NotNull
private final LinearLayout parent;
final FormFragment this$0;
public Divider(@NotNull FormFragment formFragment, @NotNull LinearLayout linearLayout, WorkflowModule.Properties.Section.Component component) {
super(formFragment, linearLayout, component);
Intrinsics.checkNotNullParameter(linearLayout, "parent");
Intrinsics.checkNotNullParameter(component, "component");
this.this$0 = formFragment;
this.parent = linearLayout;
this.component = component;
this.binding$delegate = LazyKt.lazy(new Function0<HkViewDividerOptionalBinding>() {
{
super(0);
}
@NotNull
public final HkViewDividerOptionalBinding m123invoke() {
return HkViewDividerOptionalBinding.bind(FormFragment.Divider.this.getView());
}
});
}
private static final void updateView$lambda$1$applyUIConfigs(FormFragment formFragment, HkViewDividerOptionalBinding hkViewDividerOptionalBinding, Divider divider) {
DynamicFormUIConfig dynamicFormUIConfig;
DynamicFormUtils dynamicFormUtils$hyperkyc_release = formFragment.getDynamicFormUtils$hyperkyc_release();
FrameLayout frameLayout = hkViewDividerOptionalBinding.hkDividerLayout;
Intrinsics.checkNotNullExpressionValue(frameLayout, "hkDividerLayout");
TextView textView = hkViewDividerOptionalBinding.tvLabel;
Intrinsics.checkNotNullExpressionValue(textView, "tvLabel");
HSUIConfig uiConfigData = formFragment.getMainVM$hyperkyc_release().getUiConfigData();
if (uiConfigData != null) {
String moduleId$hyperkyc_release = formFragment.getModuleId$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(moduleId$hyperkyc_release, "moduleId");
dynamicFormUIConfig = uiConfigData.getDynamicFormUIConfig(moduleId$hyperkyc_release, divider.getComponent().getId());
} else {
dynamicFormUIConfig = null;
}
dynamicFormUtils$hyperkyc_release.customiseDivider(frameLayout, textView, dynamicFormUIConfig);
}
@NotNull
public final HkViewDividerOptionalBinding getBinding$hyperkyc_release() {
return (HkViewDividerOptionalBinding) this.binding$delegate.getValue();
}
@Override
@NotNull
public WorkflowModule.Properties.Section.Component getComponent() {
return this.component;
}
@Override
@NotNull
public LinearLayout getParent() {
return this.parent;
}
@Override
public void updateView(WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties) {
String injectFromVariables$hyperkyc_release$default;
String injectFromVariables$hyperkyc_release$default2;
HkViewDividerOptionalBinding binding$hyperkyc_release = getBinding$hyperkyc_release();
FormFragment formFragment = this.this$0;
Spanned spanned = null;
if (reloadProperties != null) {
TextView textView = binding$hyperkyc_release.tvLabel;
String text = reloadProperties.getText();
if (text != null && (injectFromVariables$hyperkyc_release$default2 = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, text, false, 1, null)) != null) {
spanned = androidx.core.text.a.b(injectFromVariables$hyperkyc_release$default2, 0, (Html.ImageGetter) null, (Html.TagHandler) null);
Intrinsics.checkNotNullExpressionValue(spanned, "fromHtml(this, flags, imageGetter, tagHandler)");
}
textView.setText(spanned);
updateView$lambda$1$applyUIConfigs(formFragment, binding$hyperkyc_release, this);
return;
}
TextView textView2 = binding$hyperkyc_release.tvLabel;
String text2 = getComponent().getText();
if (text2 != null && (injectFromVariables$hyperkyc_release$default = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, text2, false, 1, null)) != null) {
spanned = androidx.core.text.a.b(injectFromVariables$hyperkyc_release$default, 0, (Html.ImageGetter) null, (Html.TagHandler) null);
Intrinsics.checkNotNullExpressionValue(spanned, "fromHtml(this, flags, imageGetter, tagHandler)");
}
textView2.setText(spanned);
updateView$lambda$1$applyUIConfigs(formFragment, binding$hyperkyc_release, this);
}
@Override
@NotNull
public FrameLayout inflate() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Divider.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " inflate() called";
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Divider.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " inflate() called";
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
LayoutInflater layoutInflater = this.this$0.getLayoutInflater();
if (Intrinsics.areEqual(getComponent().getSubType(), WorkflowModule.Properties.Section.Component.SubType.Divider.OPTIONAL)) {
View inflate = layoutInflater.inflate(R.layout.hk_view_divider_optional, (ViewGroup) null, false);
Intrinsics.checkNotNull(inflate, "null cannot be cast to non-null type android.widget.FrameLayout");
return (FrameLayout) inflate;
}
throw new NotImplementedError("An operation is not implemented: " + ("subType " + getComponent().getSubType() + " is not supported"));
}
}
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Dropdown\n+ 2 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 5 Maps.kt\nkotlin/collections/MapsKt__MapsKt\n+ 6 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n+ 7 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n*L\n1#1,2392:1\n14#2:2393\n28#2,10:2394\n62#2,12:2404\n40#2,12:2417\n62#2,12:2429\n52#2:2441\n50#2,6:2442\n14#2:2448\n28#2,10:2449\n62#2,12:2459\n40#2,12:2472\n62#2,12:2484\n52#2:2496\n50#2,6:2497\n1#3:2416\n1#3:2471\n1#3:2503\n766#4:2504\n857#4,2:2505\n766#4:2527\n857#4,2:2528\n526#5:2507\n511#5,6:2508\n478#5,7:2514\n37#6,2:2521\n11065#7:2523\n11400#7,3:2524\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Dropdown\n*L\n1059#1:2393\n1059#1:2394,10\n1059#1:2404,12\n1059#1:2417,12\n1059#1:2429,12\n1059#1:2441\n1059#1:2442,6\n1151#1:2448\n1151#1:2449,10\n1151#1:2459,12\n1151#1:2472,12\n1151#1:2484,12\n1151#1:2496\n1151#1:2497,6\n1059#1:2416\n1151#1:2471\n1097#1:2504\n1097#1:2505,2\n1103#1:2527\n1103#1:2528,2\n1099#1:2507\n1099#1:2508,6\n1100#1:2514,7\n1101#1:2521,2\n1102#1:2523\n1102#1:2524,3\n*E\n"})
public final class Dropdown extends CompView<TextInputLayout, String> {
@NotNull
private final WorkflowModule.Properties.Section.Component component;
@NotNull
private final LinearLayout parent;
final FormFragment this$0;
public Dropdown(@NotNull FormFragment formFragment, @NotNull LinearLayout linearLayout, WorkflowModule.Properties.Section.Component component) {
super(formFragment, linearLayout, component);
Intrinsics.checkNotNullParameter(linearLayout, "parent");
Intrinsics.checkNotNullParameter(component, "component");
this.this$0 = formFragment;
this.parent = linearLayout;
this.component = component;
}
private static final void updateView$lambda$14$applyUIConfigs(Dropdown dropdown, TextInputLayout textInputLayout, AutoCompleteTextView autoCompleteTextView, FormFragment formFragment) {
DynamicFormUIConfig dynamicFormUIConfig;
dropdown.updateStyling(textInputLayout, autoCompleteTextView);
DynamicFormUtils dynamicFormUtils$hyperkyc_release = formFragment.getDynamicFormUtils$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(autoCompleteTextView, "acTv");
HSUIConfig uiConfigData = formFragment.getMainVM$hyperkyc_release().getUiConfigData();
if (uiConfigData != null) {
String moduleId$hyperkyc_release = formFragment.getModuleId$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(moduleId$hyperkyc_release, "moduleId");
dynamicFormUIConfig = uiConfigData.getDynamicFormUIConfig(moduleId$hyperkyc_release, dropdown.getComponent().getId());
} else {
dynamicFormUIConfig = null;
}
dynamicFormUtils$hyperkyc_release.customiseDropdown(textInputLayout, autoCompleteTextView, dynamicFormUIConfig);
}
public static final void updateView$lambda$14$lambda$13$lambda$12(Dropdown dropdown, View view, boolean z) {
Intrinsics.checkNotNullParameter(dropdown, "this$0");
if (z || dropdown.getErrorMessage() == null) {
return;
}
dropdown.updateError();
}
private static final void updateView$lambda$14$setTextAndValue(Dropdown dropdown, TextInputLayout textInputLayout, String str) {
String str2;
if (StringsKt.isBlank(str)) {
return;
}
LinkedHashMap<String, String> labels = dropdown.getComponent().getLabels();
if (labels != null && (str2 = labels.get(str)) != null) {
((AutoCompleteTextView) textInputLayout.findViewById(R.id.actvDropdown)).setText((CharSequence) str2, false);
}
dropdown.setValue(str);
}
private static final void updateView$lambda$14$updateItems(TextInputLayout textInputLayout, final FormFragment formFragment, final Dropdown dropdown, List<String> list, Map<String, String> map) {
AutoCompleteTextView autoCompleteTextView = (AutoCompleteTextView) textInputLayout.findViewById(R.id.actvDropdown);
ArrayList arrayList = new ArrayList();
for (Object obj : list) {
if (true ^ StringsKt.isBlank((String) obj)) {
arrayList.add(obj);
}
}
LinkedHashMap linkedHashMap = new LinkedHashMap();
Iterator<Map.Entry<String, String>> it = map.entrySet().iterator();
while (true) {
boolean z = false;
if (!it.hasNext()) {
break;
}
Map.Entry<String, String> next = it.next();
if ((!StringsKt.isBlank(next.getKey())) && (!StringsKt.isBlank(next.getValue()))) {
z = true;
}
if (z) {
linkedHashMap.put(next.getKey(), next.getValue());
}
}
final LinkedHashMap linkedHashMap2 = new LinkedHashMap();
for (Map.Entry entry : linkedHashMap.entrySet()) {
if (arrayList.contains((String) entry.getKey())) {
linkedHashMap2.put(entry.getKey(), entry.getValue());
}
}
Object[] array = linkedHashMap2.values().toArray(new String[0]);
ArrayList arrayList2 = new ArrayList(array.length);
for (Object obj2 : array) {
arrayList2.add(FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, (String) obj2, false, 1, null));
}
final ArrayList arrayList3 = new ArrayList();
for (Object obj3 : arrayList2) {
String str = (String) obj3;
if ((StringsKt.isBlank(str) ^ true) && (StringsKt.isBlank(str) ^ true)) {
arrayList3.add(obj3);
}
}
autoCompleteTextView.setAdapter(new ArrayAdapter(formFragment.requireContext(), android.R.layout.simple_list_item_1, arrayList3));
autoCompleteTextView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public final void onItemClick(AdapterView adapterView, View view, int i, long j) {
FormFragment.Dropdown.updateView$lambda$14$updateItems$lambda$10$lambda$8(FormFragment.Dropdown.this, formFragment, linkedHashMap2, arrayList3, adapterView, view, i, j);
}
});
String componentValue$hyperkyc_release = dropdown.getComponentValue$hyperkyc_release();
if (componentValue$hyperkyc_release != null) {
updateView$lambda$14$setTextAndValue(dropdown, textInputLayout, componentValue$hyperkyc_release);
}
}
public static final void updateView$lambda$14$updateItems$lambda$10$lambda$8(Dropdown dropdown, FormFragment formFragment, Map map, List list, AdapterView adapterView, View view, int i, long j) {
Object obj;
Intrinsics.checkNotNullParameter(dropdown, "this$0");
Intrinsics.checkNotNullParameter(formFragment, "this$1");
Intrinsics.checkNotNullParameter(map, "$filteredLabels");
Intrinsics.checkNotNullParameter(list, "$labelValues");
Iterator it = map.entrySet().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
} else {
obj = it.next();
if (Intrinsics.areEqual(FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, (String) ((Map.Entry) obj).getValue(), false, 1, null), list.get(i))) {
break;
}
}
}
Intrinsics.checkNotNull(obj);
dropdown.setValue(FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, (String) ((Map.Entry) obj).getKey(), false, 1, null));
}
@Override
@NotNull
public WorkflowModule.Properties.Section.Component getComponent() {
return this.component;
}
@Override
@NotNull
public LinearLayout getParent() {
return this.parent;
}
@Override
public void postInflate() {
super.postInflate();
String componentValue$hyperkyc_release = getComponentValue$hyperkyc_release();
if (componentValue$hyperkyc_release == null) {
componentValue$hyperkyc_release = "";
}
CompView.updateData$default(this, FormFragment.KEY_VALUE, componentValue$hyperkyc_release, false, 4, null);
}
@Override
public void updateError() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Dropdown.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " updateError() called with: errorMessage: " + getErrorMessage();
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Dropdown.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " updateError() called with: errorMessage: " + getErrorMessage();
sb2.append(str4 != null ? str4 : "null ");
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
getView().setError(getErrorMessage());
}
@Override
public void updateView(WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties) {
Map labels;
TextInputLayout view = getView();
FormFragment formFragment = this.this$0;
TextInputLayout textInputLayout = view;
AutoCompleteTextView autoCompleteTextView = (AutoCompleteTextView) textInputLayout.findViewById(R.id.actvDropdown);
if (reloadProperties == null) {
FormFragment.setTitleHintAndHelperText$hyperkyc_release$default(formFragment, textInputLayout, getComponent(), null, 2, null);
LinkedHashMap<String, String> labels2 = getComponent().getLabels();
Intrinsics.checkNotNull(labels2);
List<String> items = getComponent().getItems();
Intrinsics.checkNotNull(items);
updateView$lambda$14$updateItems(textInputLayout, formFragment, this, items, labels2);
autoCompleteTextView.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public final void onFocusChange(View view2, boolean z) {
FormFragment.Dropdown.updateView$lambda$14$lambda$13$lambda$12(FormFragment.Dropdown.this, view2, z);
}
});
updateView$lambda$14$applyUIConfigs(this, textInputLayout, autoCompleteTextView, formFragment);
return;
}
formFragment.setTitleHintAndHelperText$hyperkyc_release(textInputLayout, getComponent(), reloadProperties);
String value = reloadProperties.getValue();
String nullIfBlank = CoreExtsKt.nullIfBlank(value != null ? FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, value, false, 1, null) : null);
if (nullIfBlank != null) {
updateView$lambda$14$setTextAndValue(this, textInputLayout, nullIfBlank);
}
List<String> items2 = reloadProperties.getItems();
if (items2 == null) {
items2 = getComponent().getItems();
Intrinsics.checkNotNull(items2);
}
LinkedHashMap<String, String> labels3 = reloadProperties.getLabels();
if (labels3 == null || (labels = MapsKt.toMap(labels3)) == null) {
labels = getComponent().getLabels();
Intrinsics.checkNotNull(labels);
}
updateView$lambda$14$updateItems(textInputLayout, formFragment, this, items2, labels);
updateView$lambda$14$applyUIConfigs(this, textInputLayout, autoCompleteTextView, formFragment);
}
@Override
@NotNull
public TextInputLayout inflate() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Dropdown.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " inflate() called";
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Dropdown.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " inflate() called";
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
TextInputLayout inflate = this.this$0.getLayoutInflater().inflate(R.layout.hk_view_til_dropdown, (ViewGroup) null, false);
Intrinsics.checkNotNull(inflate, "null cannot be cast to non-null type com.google.android.material.textfield.TextInputLayout");
return inflate;
}
}
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$FileUpload\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 4 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 5 Uri.kt\nandroidx/core/net/UriKt\n+ 6 _Sequences.kt\nkotlin/sequences/SequencesKt___SequencesKt\n+ 7 Html.kt\nandroidx/core/text/HtmlKt\n+ 8 _Maps.kt\nkotlin/collections/MapsKt___MapsKt\n+ 9 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n*L\n1#1,2392:1\n766#2:2393\n857#2,2:2394\n1747#2,3:2396\n1603#2,9:2509\n1855#2:2518\n1856#2:2522\n1612#2:2523\n766#2:2643\n857#2:2644\n2624#2,3:2645\n858#2:2648\n1549#2:2649\n1620#2,3:2650\n1549#2:2653\n1620#2,3:2654\n1726#2,3:2657\n1603#2,9:2715\n1855#2:2724\n1856#2:2726\n1612#2:2727\n766#2:2728\n857#2,2:2729\n1549#2:2731\n1620#2,3:2732\n1549#2:2735\n1620#2,2:2736\n1622#2:2739\n766#2:2865\n857#2,2:2866\n1549#2:2869\n1620#2,3:2870\n1747#2,3:2928\n1747#2,3:2931\n1747#2,3:2934\n14#3:2399\n28#3,10:2400\n62#3,12:2410\n40#3,12:2423\n62#3,12:2435\n52#3:2447\n50#3,6:2448\n14#3:2454\n28#3,10:2455\n62#3,12:2465\n40#3,12:2478\n62#3,12:2490\n52#3:2502\n50#3,6:2503\n14#3:2532\n28#3,10:2533\n62#3,12:2543\n40#3,12:2556\n62#3,12:2568\n52#3:2580\n50#3,6:2581\n14#3:2587\n28#3,10:2588\n62#3,12:2598\n40#3,12:2611\n62#3,12:2623\n52#3:2635\n50#3,6:2636\n14#3:2660\n28#3,10:2661\n62#3,12:2671\n40#3,12:2684\n62#3,12:2696\n52#3:2708\n50#3,6:2709\n14#3:2740\n28#3,10:2741\n62#3,12:2751\n40#3,12:2764\n62#3,12:2776\n52#3:2788\n50#3,6:2789\n14#3:2810\n28#3,10:2811\n62#3,12:2821\n40#3,12:2834\n62#3,12:2846\n52#3:2858\n50#3,6:2859\n14#3:2873\n28#3,10:2874\n62#3,12:2884\n40#3,12:2897\n62#3,12:2909\n52#3:2921\n50#3,6:2922\n14#3:2937\n28#3,10:2938\n62#3,12:2948\n40#3,12:2961\n62#3,12:2973\n52#3:2985\n50#3,6:2986\n14#3:2992\n28#3,10:2993\n62#3,12:3003\n40#3,12:3016\n62#3,12:3028\n52#3:3040\n50#3,6:3041\n1#4:2422\n1#4:2477\n1#4:2519\n1#4:2521\n1#4:2526\n1#4:2555\n1#4:2610\n1#4:2642\n1#4:2683\n1#4:2725\n1#4:2738\n1#4:2763\n1#4:2805\n1#4:2833\n1#4:2868\n1#4:2896\n1#4:2960\n1#4:3015\n36#5:2520\n1313#6,2:2524\n39#7,5:2527\n135#8,9:2795\n215#8:2804\n216#8:2806\n144#8:2807\n37#9,2:2808\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$FileUpload\n*L\n1518#1:2393\n1518#1:2394,2\n1520#1:2396,3\n1544#1:2509,9\n1544#1:2518\n1544#1:2522\n1544#1:2523\n1670#1:2643\n1670#1:2644\n1671#1:2645,3\n1670#1:2648\n1674#1:2649\n1674#1:2650,3\n1678#1:2653\n1678#1:2654,3\n1739#1:2657,3\n1749#1:2715,9\n1749#1:2724\n1749#1:2726\n1749#1:2727\n1751#1:2728\n1751#1:2729,2\n1752#1:2731\n1752#1:2732,3\n1754#1:2735\n1754#1:2736,2\n1754#1:2739\n1812#1:2865\n1812#1:2866,2\n1819#1:2869\n1819#1:2870,3\n1831#1:2928,3\n1832#1:2931,3\n1833#1:2934,3\n1523#1:2399\n1523#1:2400,10\n1523#1:2410,12\n1523#1:2423,12\n1523#1:2435,12\n1523#1:2447\n1523#1:2448,6\n1536#1:2454\n1536#1:2455,10\n1536#1:2465,12\n1536#1:2478,12\n1536#1:2490,12\n1536#1:2502\n1536#1:2503,6\n1632#1:2532\n1632#1:2533,10\n1632#1:2543,12\n1632#1:2556,12\n1632#1:2568,12\n1632#1:2580\n1632#1:2581,6\n1665#1:2587\n1665#1:2588,10\n1665#1:2598,12\n1665#1:2611,12\n1665#1:2623,12\n1665#1:2635\n1665#1:2636,6\n1745#1:2660\n1745#1:2661,10\n1745#1:2671,12\n1745#1:2684,12\n1745#1:2696,12\n1745#1:2708\n1745#1:2709,6\n1775#1:2740\n1775#1:2741,10\n1775#1:2751,12\n1775#1:2764,12\n1775#1:2776,12\n1775#1:2788\n1775#1:2789,6\n1809#1:2810\n1809#1:2811,10\n1809#1:2821,12\n1809#1:2834,12\n1809#1:2846,12\n1809#1:2858\n1809#1:2859,6\n1824#1:2873\n1824#1:2874,10\n1824#1:2884,12\n1824#1:2897,12\n1824#1:2909,12\n1824#1:2921\n1824#1:2922,6\n1859#1:2937\n1859#1:2938,10\n1859#1:2948,12\n1859#1:2961,12\n1859#1:2973,12\n1859#1:2985\n1859#1:2986,6\n1866#1:2992\n1866#1:2993,10\n1866#1:3003,12\n1866#1:3016,12\n1866#1:3028,12\n1866#1:3040\n1866#1:3041,6\n1523#1:2422\n1536#1:2477\n1544#1:2521\n1632#1:2555\n1665#1:2610\n1745#1:2683\n1749#1:2725\n1775#1:2763\n1791#1:2805\n1809#1:2833\n1824#1:2896\n1859#1:2960\n1866#1:3015\n1545#1:2520\n1567#1:2524,2\n1626#1:2527,5\n1791#1:2795,9\n1791#1:2804\n1791#1:2806\n1791#1:2807\n1804#1:2808,2\n*E\n"})
public final class FileUpload extends CompView<ConstraintLayout, String> {
@NotNull
private final kotlin.e binding$delegate;
@NotNull
private final WorkflowModule.Properties.Section.Component component;
@NotNull
private final LinearLayout parent;
@NotNull
private final SimpleRvAdapter<PickedFile, RecyclerView.s> pickedFilesRvAdapter;
final FormFragment this$0;
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$FileUpload$AddFileVH\n+ 2 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,2392:1\n14#2:2393\n28#2,10:2394\n62#2,12:2404\n40#2,12:2417\n62#2,12:2429\n52#2:2441\n50#2,6:2442\n1#3:2416\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$FileUpload$AddFileVH\n*L\n1874#1:2393\n1874#1:2394,10\n1874#1:2404,12\n1874#1:2417,12\n1874#1:2429,12\n1874#1:2441\n1874#1:2442,6\n1874#1:2416\n*E\n"})
public final class AddFileVH extends RecyclerView.s {
@NotNull
private final HkRvItemFormAddFileBinding itemBinding;
final FileUpload this$0;
public AddFileVH(@NotNull FileUpload fileUpload, HkRvItemFormAddFileBinding hkRvItemFormAddFileBinding) {
super(hkRvItemFormAddFileBinding.getRoot());
Intrinsics.checkNotNullParameter(hkRvItemFormAddFileBinding, "itemBinding");
this.this$0 = fileUpload;
this.itemBinding = hkRvItemFormAddFileBinding;
}
public static final void bind$lambda$2$lambda$1(FileUpload fileUpload, View view) {
Intrinsics.checkNotNullParameter(fileUpload, "this$0");
fileUpload.showFileUploadOptionsBS$hyperkyc_release();
}
public final void bind() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
FileUpload fileUpload = this.this$0;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = AddFileVH.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = fileUpload.getComponent().getId() + " bind() called";
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = AddFileVH.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = fileUpload.getComponent().getId() + " bind() called";
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
HkRvItemFormAddFileBinding hkRvItemFormAddFileBinding = this.itemBinding;
final FileUpload fileUpload2 = this.this$0;
hkRvItemFormAddFileBinding.getRoot().setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
FormFragment.FileUpload.AddFileVH.bind$lambda$2$lambda$1(FormFragment.FileUpload.this, view);
}
});
}
}
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$FileUpload$PickedFileVH\n+ 2 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 View.kt\nandroidx/core/view/ViewKt\n+ 5 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,2392:1\n14#2:2393\n28#2,10:2394\n62#2,12:2404\n40#2,12:2417\n62#2,12:2429\n52#2:2441\n50#2,6:2442\n1#3:2416\n262#4,2:2448\n262#4,2:2450\n262#4,2:2452\n262#4,2:2454\n262#4,2:2456\n2624#5,3:2458\n766#5:2461\n857#5,2:2462\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$FileUpload$PickedFileVH\n*L\n1885#1:2393\n1885#1:2394,10\n1885#1:2404,12\n1885#1:2417,12\n1885#1:2429,12\n1885#1:2441\n1885#1:2442,6\n1885#1:2416\n1893#1:2448,2\n1894#1:2450,2\n1896#1:2452,2\n1897#1:2454,2\n1899#1:2456,2\n1959#1:2458,3\n1963#1:2461\n1963#1:2462,2\n*E\n"})
public final class PickedFileVH extends RecyclerView.s {
@NotNull
private final HkRvItemFormFileBinding itemBinding;
final FileUpload this$0;
public PickedFileVH(@NotNull FileUpload fileUpload, HkRvItemFormFileBinding hkRvItemFormFileBinding) {
super(hkRvItemFormFileBinding.getRoot());
Intrinsics.checkNotNullParameter(hkRvItemFormFileBinding, "itemBinding");
this.this$0 = fileUpload;
this.itemBinding = hkRvItemFormFileBinding;
}
public static final void bind$lambda$5$lambda$1(FileUpload fileUpload, PickedFile pickedFile, View view) {
Intrinsics.checkNotNullParameter(fileUpload, "this$0");
Intrinsics.checkNotNullParameter(pickedFile, "$pickedFile");
fileUpload.removePickedFile$hyperkyc_release(pickedFile);
}
public static final void bind$lambda$5$lambda$4(FileUpload fileUpload, PickedFileVH pickedFileVH, FormFragment formFragment, View view) {
boolean z;
Intrinsics.checkNotNullParameter(fileUpload, "this$0");
Intrinsics.checkNotNullParameter(pickedFileVH, "this$1");
Intrinsics.checkNotNullParameter(formFragment, "this$2");
List<PickedFile> pickedFiles$hyperkyc_release = fileUpload.getPickedFiles$hyperkyc_release();
if (!(pickedFiles$hyperkyc_release instanceof Collection) || !pickedFiles$hyperkyc_release.isEmpty()) {
Iterator<T> it = pickedFiles$hyperkyc_release.iterator();
while (it.hasNext()) {
if (((PickedFile) it.next()).isLoading()) {
z = false;
break;
}
}
}
z = true;
if (z) {
int adapterPosition = pickedFileVH.getAdapterPosition() - 1;
List currentList = fileUpload.pickedFilesRvAdapter.getCurrentList();
Intrinsics.checkNotNullExpressionValue(currentList, "pickedFilesRvAdapter.currentList");
ArrayList arrayList = new ArrayList();
for (Object obj : currentList) {
if (((PickedFile) obj).getUri() != null) {
arrayList.add(obj);
}
}
new FormFilesReviewFragment(adapterPosition, arrayList).show(formFragment.getParentFragmentManager(), Reflection.getOrCreateKotlinClass(FormFileBSDFragment.class).getSimpleName());
}
}
public final void bind(@NotNull final PickedFile pickedFile) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
Intrinsics.checkNotNullParameter(pickedFile, "pickedFile");
FileUpload fileUpload = this.this$0;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = PickedFileVH.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = fileUpload.getComponent().getId() + " bind() called with: pickedFile = " + pickedFile;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = PickedFileVH.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = fileUpload.getComponent().getId() + " bind() called with: pickedFile = " + pickedFile;
sb2.append(str4 != null ? str4 : "null ");
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
HkRvItemFormFileBinding hkRvItemFormFileBinding = this.itemBinding;
final FileUpload fileUpload2 = this.this$0;
final FormFragment formFragment = fileUpload2.this$0;
boolean isSizeOutOfRange = pickedFile.isSizeOutOfRange();
if (!pickedFile.isLoading()) {
ProgressBar progressBar = hkRvItemFormFileBinding.progressBar;
Intrinsics.checkNotNullExpressionValue(progressBar, "progressBar");
progressBar.setVisibility(8);
AppCompatImageView appCompatImageView = hkRvItemFormFileBinding.ivRemove;
Intrinsics.checkNotNullExpressionValue(appCompatImageView, "ivRemove");
appCompatImageView.setVisibility(0);
AppCompatImageView appCompatImageView2 = hkRvItemFormFileBinding.ivPreview;
Intrinsics.checkNotNullExpressionValue(appCompatImageView2, "ivPreview");
appCompatImageView2.setVisibility(0);
MaterialTextView materialTextView = hkRvItemFormFileBinding.tvFileSize;
Intrinsics.checkNotNullExpressionValue(materialTextView, "tvFileSize");
materialTextView.setVisibility(0);
MaterialTextView materialTextView2 = hkRvItemFormFileBinding.tvFileName;
Intrinsics.checkNotNullExpressionValue(materialTextView2, "tvFileName");
materialTextView2.setVisibility(Intrinsics.areEqual(pickedFile.getType(), WorkflowModule.Properties.Section.Component.SupportedFile.Type.IMAGES) ^ true ? 0 : 8);
hkRvItemFormFileBinding.tvFileName.setText(pickedFile.getName());
hkRvItemFormFileBinding.tvFileSize.setText(pickedFile.getSizeLabel());
hkRvItemFormFileBinding.tvFileSize.setBackgroundResource(isSizeOutOfRange ? R.drawable.hk_bg_rounded_error_red : R.drawable.hk_bg_rounded_black_trans);
}
if (pickedFile.isError() || isSizeOutOfRange) {
MaterialCardView root = hkRvItemFormFileBinding.getRoot();
Context context = hkRvItemFormFileBinding.getRoot().getContext();
Intrinsics.checkNotNullExpressionValue(context, "root.context");
root.setStrokeColor(UIExtsKt.colorOf(context, R.color.hk_form_error_color));
hkRvItemFormFileBinding.getRoot().setStrokeWidth(2);
} else {
MaterialCardView root2 = hkRvItemFormFileBinding.getRoot();
Context context2 = hkRvItemFormFileBinding.getRoot().getContext();
Intrinsics.checkNotNullExpressionValue(context2, "root.context");
root2.setStrokeColor(UIExtsKt.colorOf(context2, R.color.hk_form_border_color));
hkRvItemFormFileBinding.getRoot().setStrokeWidth(1);
}
hkRvItemFormFileBinding.ivPreview.setImageURI((Uri) null);
String type = pickedFile.getType();
if (Intrinsics.areEqual(type, WorkflowModule.Properties.Section.Component.SupportedFile.Type.IMAGES)) {
hkRvItemFormFileBinding.ivPreview.setScaleType(ImageView.ScaleType.CENTER_CROP);
AppCompatImageView appCompatImageView3 = hkRvItemFormFileBinding.ivPreview;
Intrinsics.checkNotNullExpressionValue(appCompatImageView3, "ivPreview");
Uri uri = pickedFile.getUri();
Intrinsics.checkNotNull(uri);
PicassoExtsKt.load$default(appCompatImageView3, uri, null, 2, null);
} else if (Intrinsics.areEqual(type, "documents")) {
hkRvItemFormFileBinding.ivPreview.setScaleType(ImageView.ScaleType.CENTER);
hkRvItemFormFileBinding.ivPreview.setImageResource(R.drawable.hk_ic_pdf_24dp);
} else {
hkRvItemFormFileBinding.ivPreview.setScaleType(ImageView.ScaleType.CENTER);
hkRvItemFormFileBinding.ivPreview.setImageResource(R.drawable.hk_ic_document_18);
}
if (pickedFile.isError()) {
hkRvItemFormFileBinding.ivPreview.setScaleType(ImageView.ScaleType.CENTER);
hkRvItemFormFileBinding.ivPreview.setImageResource(R.drawable.hk_ic_file_error);
}
hkRvItemFormFileBinding.ivRemove.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
FormFragment.FileUpload.PickedFileVH.bind$lambda$5$lambda$1(FormFragment.FileUpload.this, pickedFile, view);
}
});
hkRvItemFormFileBinding.getRoot().setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
FormFragment.FileUpload.PickedFileVH.bind$lambda$5$lambda$4(FormFragment.FileUpload.this, this, formFragment, view);
}
});
}
}
public FileUpload(@NotNull FormFragment formFragment, @NotNull LinearLayout linearLayout, WorkflowModule.Properties.Section.Component component) {
super(formFragment, linearLayout, component);
Intrinsics.checkNotNullParameter(linearLayout, "parent");
Intrinsics.checkNotNullParameter(component, "component");
this.this$0 = formFragment;
this.parent = linearLayout;
this.component = component;
this.pickedFilesRvAdapter = new SimpleRvAdapter<>(new Function1<Integer, Integer>() {
public Object invoke(Object obj) {
return invoke(((Number) obj).intValue());
}
@NotNull
public final Integer invoke(int i) {
return Integer.valueOf(i == 10 ? R.layout.hk_rv_item_form_add_file : R.layout.hk_rv_item_form_file);
}
}, new Function2<View, Integer, RecyclerView.s>() {
{
super(2);
}
public Object invoke(Object obj, Object obj2) {
return invoke((View) obj, ((Number) obj2).intValue());
}
@NotNull
public final RecyclerView.s invoke(@NotNull View view, int i) {
Intrinsics.checkNotNullParameter(view, "view");
if (i == 10) {
FormFragment.FileUpload fileUpload = FormFragment.FileUpload.this;
HkRvItemFormAddFileBinding bind = HkRvItemFormAddFileBinding.bind(view);
Intrinsics.checkNotNullExpressionValue(bind, "bind(view)");
return new FormFragment.FileUpload.AddFileVH(fileUpload, bind);
}
FormFragment.FileUpload fileUpload2 = FormFragment.FileUpload.this;
HkRvItemFormFileBinding bind2 = HkRvItemFormFileBinding.bind(view);
Intrinsics.checkNotNullExpressionValue(bind2, "bind(view)");
return new FormFragment.FileUpload.PickedFileVH(fileUpload2, bind2);
}
}, new Function2<RecyclerView.s, PickedFile, Unit>() {
public Object invoke(Object obj, Object obj2) {
invoke((RecyclerView.s) obj, (PickedFile) obj2);
return Unit.a;
}
public final void invoke(@NotNull RecyclerView.s sVar, @NotNull PickedFile pickedFile) {
Intrinsics.checkNotNullParameter(sVar, "h");
Intrinsics.checkNotNullParameter(pickedFile, "item");
if (sVar instanceof FormFragment.FileUpload.AddFileVH) {
((FormFragment.FileUpload.AddFileVH) sVar).bind();
} else if (sVar instanceof FormFragment.FileUpload.PickedFileVH) {
((FormFragment.FileUpload.PickedFileVH) sVar).bind(pickedFile);
}
}
}, new Function2<PickedFile, PickedFile, Boolean>() {
@NotNull
public final Boolean invoke(@NotNull PickedFile pickedFile, @NotNull PickedFile pickedFile2) {
Intrinsics.checkNotNullParameter(pickedFile, "old");
Intrinsics.checkNotNullParameter(pickedFile2, "new");
return Boolean.valueOf(Intrinsics.areEqual(pickedFile, pickedFile2));
}
}, new Function2<PickedFile, PickedFile, Boolean>() {
@NotNull
public final Boolean invoke(@NotNull PickedFile pickedFile, @NotNull PickedFile pickedFile2) {
Intrinsics.checkNotNullParameter(pickedFile, "old");
Intrinsics.checkNotNullParameter(pickedFile2, "new");
return Boolean.valueOf(Intrinsics.areEqual(pickedFile.getUri(), pickedFile2.getUri()));
}
}, new Function1<Integer, Integer>() {
@NotNull
public final Integer invoke(int i) {
return Integer.valueOf(i == 0 ? 10 : 11);
}
public Object invoke(Object obj) {
return invoke(((Number) obj).intValue());
}
}, new Function1<List<? extends PickedFile>, List<? extends PickedFile>>() {
@NotNull
public final List<PickedFile> invoke(@NotNull List<PickedFile> list) {
Intrinsics.checkNotNullParameter(list, "$this$$receiver");
return CollectionsKt.sortedWith(list, new Comparator() {
@Override
public final int compare(T t, T t2) {
PickedFile pickedFile = (PickedFile) t;
PickedFile pickedFile2 = (PickedFile) t2;
return kotlin.comparisons.a.d(Boolean.valueOf((pickedFile.getUri() == null || pickedFile.hasError()) ? false : true), Boolean.valueOf((pickedFile2.getUri() == null || pickedFile2.hasError()) ? false : true));
}
});
}
}, null, 128, null);
this.binding$delegate = LazyKt.lazy(new Function0<HkViewFileUploadClBinding>() {
{
super(0);
}
@NotNull
public final HkViewFileUploadClBinding m124invoke() {
return HkViewFileUploadClBinding.bind(FormFragment.FileUpload.this.getView());
}
});
}
public static final void addPickedFiles$lambda$26(FileUpload fileUpload) {
Intrinsics.checkNotNullParameter(fileUpload, "this$0");
fileUpload.pickedFilesRvAdapter.notifyDataSetChanged();
}
@SuppressLint({"NotifyDataSetChanged"})
private final void initEventObservers() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = FileUpload.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " initEventObservers() called";
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = FileUpload.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " initEventObservers() called";
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
this.this$0.filePickedCallback = new Function1<List<? extends Uri>, Unit>() {
{
super(1);
}
public Object invoke(Object obj) {
invoke((List<? extends Uri>) obj);
return Unit.a;
}
public final void invoke(@NotNull List<? extends Uri> list) {
Intrinsics.checkNotNullParameter(list, "uris");
FormFragment.FileUpload.this.addPickedFiles$hyperkyc_release(list);
}
};
BuildersKt.launch$default(androidx.lifecycle.o.a(this.this$0), (CoroutineContext) null, (j0) null, new FormFragment$FileUpload$initEventObservers$3(this.this$0, this, null), 3, (Object) null);
LiveData<FormFileReviewUIEvent> fileReviewUIEvent = this.this$0.getFormVM$hyperkyc_release().getFileReviewUIEvent();
androidx.lifecycle.n viewLifecycleOwner = this.this$0.getViewLifecycleOwner();
final Function1<FormFileReviewUIEvent, Unit> function1 = new Function1<FormFileReviewUIEvent, Unit>() {
{
super(1);
}
public Object invoke(Object obj) {
invoke((FormFileReviewUIEvent) obj);
return Unit.a;
}
public final void invoke(FormFileReviewUIEvent formFileReviewUIEvent) {
if (formFileReviewUIEvent != null) {
FormFragment.FileUpload.this.removePickedFile$hyperkyc_release(formFileReviewUIEvent.getPickedFile());
}
}
};
fileReviewUIEvent.i(viewLifecycleOwner, new androidx.lifecycle.s() {
public final void a(Object obj) {
FormFragment.FileUpload.initEventObservers$lambda$16(function1, obj);
}
});
}
public static final void initEventObservers$lambda$16(Function1 function1, Object obj) {
Intrinsics.checkNotNullParameter(function1, "$tmp0");
function1.invoke(obj);
}
public final void pickFiles(co.hyperverge.hyperkyc.ui.form.models.FormFilePickUIEvent r21) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.FileUpload.pickFiles(co.hyperverge.hyperkyc.ui.form.models.FormFilePickUIEvent):void");
}
private final void updateInfoText() {
String canonicalName;
Object b;
String canonicalName2;
String className;
boolean z;
Long sizeKB;
boolean z2;
boolean z3;
String errorMessage;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
String str = null;
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = FileUpload.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str2 = getComponent().getId() + " updateInfoText() called";
if (str2 == null) {
str2 = "null ";
}
sb.append(str2);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str3 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str3, "packageName");
if (StringsKt.contains$default(str3, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str4 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = FileUpload.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str4);
if (matcher2.find()) {
str4 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str4, "replaceAll(\"\")");
}
if (str4.length() > 23 && Build.VERSION.SDK_INT < 26) {
str4 = str4.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str4, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str5 = getComponent().getId() + " updateInfoText() called";
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
Log.println(3, str4, sb2.toString());
}
}
}
HkViewFileUploadClBinding binding$hyperkyc_release = getBinding$hyperkyc_release();
FormFragment formFragment = this.this$0;
AppCompatTextView appCompatTextView = binding$hyperkyc_release.tvInfo;
List<PickedFile> pickedFiles$hyperkyc_release = getPickedFiles$hyperkyc_release();
if (!(pickedFiles$hyperkyc_release instanceof Collection) || !pickedFiles$hyperkyc_release.isEmpty()) {
for (PickedFile pickedFile : pickedFiles$hyperkyc_release) {
if (pickedFile.isError() || ((sizeKB = pickedFile.getSizeKB()) != null && sizeKB.longValue() == 0)) {
z = true;
break;
}
}
}
z = false;
if (z) {
String errorTextFile = getComponent().getErrorTextFile();
if (errorTextFile != null) {
errorMessage = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, errorTextFile, false, 1, null);
}
errorMessage = null;
} else {
List<PickedFile> pickedFiles$hyperkyc_release2 = getPickedFiles$hyperkyc_release();
if (!(pickedFiles$hyperkyc_release2 instanceof Collection) || !pickedFiles$hyperkyc_release2.isEmpty()) {
Iterator<T> it = pickedFiles$hyperkyc_release2.iterator();
while (it.hasNext()) {
if (((PickedFile) it.next()).isSizeAboveMax()) {
z2 = true;
break;
}
}
}
z2 = false;
if (z2) {
String errorTextSizeMax = getComponent().getErrorTextSizeMax();
if (errorTextSizeMax != null) {
errorMessage = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, errorTextSizeMax, false, 1, null);
}
errorMessage = null;
} else {
List<PickedFile> pickedFiles$hyperkyc_release3 = getPickedFiles$hyperkyc_release();
if (!(pickedFiles$hyperkyc_release3 instanceof Collection) || !pickedFiles$hyperkyc_release3.isEmpty()) {
Iterator<T> it2 = pickedFiles$hyperkyc_release3.iterator();
while (it2.hasNext()) {
if (((PickedFile) it2.next()).isSizeBelowMin()) {
z3 = true;
break;
}
}
}
z3 = false;
if (z3) {
String errorTextSizeMin = getComponent().getErrorTextSizeMin();
if (errorTextSizeMin != null) {
errorMessage = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, errorTextSizeMin, false, 1, null);
}
errorMessage = null;
} else {
errorMessage = getErrorMessage();
}
}
}
if (getPickedFiles$hyperkyc_release().isEmpty()) {
String helperTextIdle = getComponent().getHelperTextIdle();
if (helperTextIdle != null) {
str = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, helperTextIdle, false, 1, null);
}
} else if (errorMessage == null || StringsKt.isBlank(errorMessage)) {
String helperTextActive = getComponent().getHelperTextActive();
if (helperTextActive != null) {
str = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, helperTextActive, false, 1, null);
}
} else {
str = errorMessage;
}
appCompatTextView.setText(str);
Context context = appCompatTextView.getContext();
Intrinsics.checkNotNullExpressionValue(context, "context");
appCompatTextView.setTextColor(UIExtsKt.colorOf(context, errorMessage == null || StringsKt.isBlank(errorMessage) ? R.color.hk_subtitle_text_color : R.color.hk_form_error_color));
binding$hyperkyc_release.rvFiles.setBackgroundResource((getHasFileErrors$hyperkyc_release() || isValid()) ? R.drawable.hk_bg_rect_rounded_night_blue : R.drawable.hk_bg_rect_rounded_red);
}
private final void updateTitleSubTitle(HkViewFileUploadClBinding hkViewFileUploadClBinding, String str, String str2, boolean z) {
String injectFromVariables$hyperkyc_release$default;
String injectFromVariables$hyperkyc_release$default2;
MaterialTextView materialTextView = hkViewFileUploadClBinding.tvTitle;
FormFragment formFragment = this.this$0;
materialTextView.setTextColor(formFragment.getTitleTextColor$hyperkyc_release());
materialTextView.setTypeface(formFragment.getTitleTextFont$hyperkyc_release());
if (str != null && (injectFromVariables$hyperkyc_release$default2 = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, str, false, 1, null)) != null) {
materialTextView.setText(formFragment.appendRequired$hyperkyc_release(injectFromVariables$hyperkyc_release$default2, z));
}
MaterialTextView materialTextView2 = hkViewFileUploadClBinding.tvSubTitle;
FormFragment formFragment2 = this.this$0;
materialTextView2.setTextColor(formFragment2.getSubtitleTextColor$hyperkyc_release());
materialTextView2.setTypeface(formFragment2.getDescTextFont$hyperkyc_release());
if (str2 == null || (injectFromVariables$hyperkyc_release$default = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment2, str2, false, 1, null)) == null) {
return;
}
Spanned b = androidx.core.text.a.b(injectFromVariables$hyperkyc_release$default, 0, (Html.ImageGetter) null, (Html.TagHandler) null);
Intrinsics.checkNotNullExpressionValue(b, "fromHtml(this, flags, imageGetter, tagHandler)");
materialTextView2.setText(b);
}
@android.annotation.SuppressLint({"NotifyDataSetChanged"})
public final void addPickedFiles$hyperkyc_release(@org.jetbrains.annotations.NotNull java.util.List<? extends android.net.Uri> r23) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.FileUpload.addPickedFiles$hyperkyc_release(java.util.List):void");
}
@NotNull
public final HkViewFileUploadClBinding getBinding$hyperkyc_release() {
return (HkViewFileUploadClBinding) this.binding$delegate.getValue();
}
@Override
@NotNull
public WorkflowModule.Properties.Section.Component getComponent() {
return this.component;
}
public final boolean getHasFileErrors$hyperkyc_release() {
List<PickedFile> pickedFiles$hyperkyc_release = getPickedFiles$hyperkyc_release();
if ((pickedFiles$hyperkyc_release instanceof Collection) && pickedFiles$hyperkyc_release.isEmpty()) {
return false;
}
Iterator<T> it = pickedFiles$hyperkyc_release.iterator();
while (it.hasNext()) {
if (((PickedFile) it.next()).hasError()) {
return true;
}
}
return false;
}
@Override
@NotNull
public LinearLayout getParent() {
return this.parent;
}
@NotNull
public final List<PickedFile> getPickedFiles$hyperkyc_release() {
List currentList = this.pickedFilesRvAdapter.getCurrentList();
Intrinsics.checkNotNullExpressionValue(currentList, "pickedFilesRvAdapter.currentList");
ArrayList arrayList = new ArrayList();
for (Object obj : currentList) {
if (((PickedFile) obj).getUri() != null) {
arrayList.add(obj);
}
}
return arrayList;
}
@Override
public void postInflate() {
String canonicalName;
Object b;
String canonicalName2;
String className;
Uri uri;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = FileUpload.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " postInflate() called";
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = FileUpload.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " postInflate() called";
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
super.postInflate();
String componentValue$hyperkyc_release = getComponentValue$hyperkyc_release();
CompView.updateData$default(this, FormFragment.KEY_VALUE, componentValue$hyperkyc_release == null ? "" : componentValue$hyperkyc_release, false, 4, null);
if (componentValue$hyperkyc_release != null) {
List split$default = StringsKt.split$default(componentValue$hyperkyc_release, new String[]{","}, false, 0, 6, (Object) null);
ArrayList arrayList = new ArrayList();
Iterator it = split$default.iterator();
while (it.hasNext()) {
File file = new File((String) it.next());
if (!file.exists()) {
file = null;
}
if (file != null) {
uri = Uri.fromFile(file);
Intrinsics.checkNotNullExpressionValue(uri, "fromFile(this)");
} else {
uri = null;
}
if (uri != null) {
arrayList.add(uri);
}
}
addPickedFiles$hyperkyc_release(arrayList);
}
}
public final void refreshData$hyperkyc_release() {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.FileUpload.refreshData$hyperkyc_release():void");
}
public final void removePickedFile$hyperkyc_release(@NotNull final PickedFile pickedFile) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
Intrinsics.checkNotNullParameter(pickedFile, "pickedFile");
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = FileUpload.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " removePickedFile() called with: pickedFile = " + pickedFile;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = FileUpload.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " removePickedFile() called with: pickedFile = " + pickedFile;
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
this.pickedFilesRvAdapter.removeItem(new Function1<PickedFile, Boolean>() {
{
super(1);
}
@NotNull
public final Boolean invoke(@NotNull PickedFile pickedFile2) {
Intrinsics.checkNotNullParameter(pickedFile2, "it");
return Boolean.valueOf(Intrinsics.areEqual(pickedFile2.getUri(), PickedFile.this.getUri()));
}
}, new Function1<List<? extends PickedFile>, Unit>() {
{
super(1);
}
public Object invoke(Object obj) {
invoke((List<PickedFile>) obj);
return Unit.a;
}
public final void invoke(@NotNull List<PickedFile> list) {
Intrinsics.checkNotNullParameter(list, "it");
FormFragment.FileUpload.this.getBinding$hyperkyc_release().rvFiles.invalidateItemDecorations();
}
});
}
public final void showFileUploadOptionsBS$hyperkyc_release() {
String canonicalName;
Object b;
String canonicalName2;
String className;
Set linkedHashSet;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = FileUpload.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " showFileUploadOptionsBS() called";
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = FileUpload.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " showFileUploadOptionsBS() called";
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
List<WorkflowModule.Properties.Section.Component.SupportedFile> supportedFiles = getComponent().getSupportedFiles();
Intrinsics.checkNotNull(supportedFiles);
boolean areEqual = Intrinsics.areEqual(this.this$0.asBoolean$hyperkyc_release(getComponent().getAllowMultipleTypes(), Boolean.FALSE), Boolean.TRUE);
List currentList = this.pickedFilesRvAdapter.getCurrentList();
Intrinsics.checkNotNullExpressionValue(currentList, "pickedFilesRvAdapter.currentList");
ArrayList arrayList = new ArrayList();
Iterator it = currentList.iterator();
while (it.hasNext()) {
String extension = ((PickedFile) it.next()).getExtension();
if (extension != null) {
arrayList.add(extension);
}
}
Set set = CollectionsKt.toSet(arrayList);
List<WorkflowModule.Properties.Section.Component.SupportedFile> list = supportedFiles;
ArrayList arrayList2 = new ArrayList();
for (Object obj : list) {
if (true ^ CollectionsKt.intersect(((WorkflowModule.Properties.Section.Component.SupportedFile) obj).getExtensions(), set).isEmpty()) {
arrayList2.add(obj);
}
}
ArrayList arrayList3 = new ArrayList(CollectionsKt.collectionSizeOrDefault(arrayList2, 10));
Iterator it2 = arrayList2.iterator();
while (it2.hasNext()) {
arrayList3.add(((WorkflowModule.Properties.Section.Component.SupportedFile) it2.next()).getType());
}
Set set2 = CollectionsKt.toSet(arrayList3);
ArrayList arrayList4 = new ArrayList(CollectionsKt.collectionSizeOrDefault(list, 10));
for (WorkflowModule.Properties.Section.Component.SupportedFile supportedFile : list) {
List<String> overrideAllowedTypes = supportedFile.getOverrideAllowedTypes();
if (overrideAllowedTypes == null || (linkedHashSet = CollectionsKt.toMutableSet(overrideAllowedTypes)) == null) {
linkedHashSet = new LinkedHashSet();
}
linkedHashSet.add(supportedFile.getType());
boolean contains = set2.contains(supportedFile.getType());
if (set2.isEmpty() || areEqual) {
contains = true;
} else if (supportedFile.getOverrideAllowedTypes() != null) {
contains = CollectionsKt.subtract(set2, linkedHashSet).isEmpty();
}
supportedFile.setEnabled(contains);
arrayList4.add(Unit.a);
}
String pickerTitle = getComponent().getPickerTitle();
new FormFileBSDFragment(pickerTitle != null ? FormFragment.injectFromVariables$hyperkyc_release$default(this.this$0, pickerTitle, false, 1, null) : null, supportedFiles).show(this.this$0.getParentFragmentManager(), Reflection.getOrCreateKotlinClass(FormFileBSDFragment.class).getSimpleName());
}
@Override
public void updateError() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = FileUpload.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " updateError() called with errorMessage: " + getErrorMessage();
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = FileUpload.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " updateError() called with errorMessage: " + getErrorMessage();
sb2.append(str4 != null ? str4 : "null ");
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
updateInfoText();
}
@Override
public void updateView(WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties) {
HkViewFileUploadClBinding binding$hyperkyc_release = getBinding$hyperkyc_release();
FormFragment formFragment = this.this$0;
if (reloadProperties != null) {
Intrinsics.checkNotNullExpressionValue(binding$hyperkyc_release, "updateView$lambda$10");
String title = reloadProperties.getTitle();
String subTitle = reloadProperties.getSubTitle();
String required = reloadProperties.getRequired();
Boolean bool = Boolean.TRUE;
updateTitleSubTitle(binding$hyperkyc_release, title, subTitle, Intrinsics.areEqual(formFragment.asBoolean$hyperkyc_release(required, bool), bool) && Intrinsics.areEqual(formFragment.asBoolean$hyperkyc_release(reloadProperties.getEnabled(), bool), bool));
return;
}
Intrinsics.checkNotNullExpressionValue(binding$hyperkyc_release, "updateView$lambda$10");
String title2 = getComponent().getTitle();
String subTitle2 = getComponent().getSubTitle();
String required2 = getComponent().getRequired();
Boolean bool2 = Boolean.TRUE;
updateTitleSubTitle(binding$hyperkyc_release, title2, subTitle2, Intrinsics.areEqual(formFragment.asBoolean$hyperkyc_release(required2, bool2), bool2) && Intrinsics.areEqual(formFragment.asBoolean$hyperkyc_release(getComponent().getEnabled(), bool2), bool2));
Iterator it = f1.a(getView()).iterator();
while (it.hasNext()) {
((View) it.next()).setEnabled(getView().isEnabled());
}
RecyclerView recyclerView = binding$hyperkyc_release.rvFiles;
final Context context = recyclerView.getContext();
recyclerView.setLayoutManager(new LinearLayoutManager(context) {
public void onLayoutCompleted(RecyclerView.State state) {
super.onLayoutCompleted(state);
FormFragment.FileUpload.this.refreshData$hyperkyc_release();
}
});
recyclerView.setAdapter(this.pickedFilesRvAdapter);
Intrinsics.checkNotNullExpressionValue(recyclerView, "updateView$lambda$10$lambda$9");
UIExtsKt.removeAllItemDecorations(recyclerView);
recyclerView.addItemDecoration(new RecyclerView.ItemDecoration() {
public void getItemOffsets(@NotNull Rect rect, @NotNull View view, @NotNull RecyclerView recyclerView2, @NotNull RecyclerView.State state) {
Intrinsics.checkNotNullParameter(rect, "outRect");
Intrinsics.checkNotNullParameter(view, "view");
Intrinsics.checkNotNullParameter(recyclerView2, "parent");
Intrinsics.checkNotNullParameter(state, "state");
int dp = ViewExtsKt.getDp(6);
int childAdapterPosition = recyclerView2.getChildAdapterPosition(view);
RecyclerView.Adapter adapter = recyclerView2.getAdapter();
Intrinsics.checkNotNull(adapter);
int itemCount = adapter.getItemCount();
if (childAdapterPosition == 0 && itemCount == 1) {
rect.set(0, 0, 0, 0);
} else if (childAdapterPosition < itemCount - 1) {
rect.set(0, 0, dp, 0);
} else {
rect.set(0, 0, 0, 0);
}
}
});
RecyclerView.ItemAnimator itemAnimator = recyclerView.getItemAnimator();
if (itemAnimator != null) {
itemAnimator.w(50L);
itemAnimator.v(50L);
itemAnimator.y(50L);
}
}
@Override
@NotNull
public ConstraintLayout inflate() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = FileUpload.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " inflate() called";
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = FileUpload.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " inflate() called";
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
initEventObservers();
this.pickedFilesRvAdapter.updateItems(CollectionsKt.listOf(new PickedFile(null, null, null, null, null, PickedFile.State.Success.INSTANCE, null, 95, null)), new Function1<List<? extends PickedFile>, Unit>() {
public final void invoke(@NotNull List<PickedFile> list) {
Intrinsics.checkNotNullParameter(list, "it");
}
public Object invoke(Object obj) {
invoke((List<PickedFile>) obj);
return Unit.a;
}
});
ConstraintLayout inflate = this.this$0.getLayoutInflater().inflate(R.layout.hk_view_file_upload_cl, (ViewGroup) null, false);
Intrinsics.checkNotNull(inflate, "null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout");
return inflate;
}
}
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Image\n+ 2 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,2392:1\n14#2:2393\n28#2,10:2394\n62#2,12:2404\n40#2,12:2417\n62#2,12:2429\n52#2:2441\n50#2,6:2442\n14#2:2448\n28#2,10:2449\n62#2,12:2459\n40#2,12:2472\n62#2,12:2484\n52#2:2496\n50#2,6:2497\n1#3:2416\n1#3:2471\n1#3:2503\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Image\n*L\n2061#1:2393\n2061#1:2394,10\n2061#1:2404,12\n2061#1:2417,12\n2061#1:2429,12\n2061#1:2441\n2061#1:2442,6\n2068#1:2448\n2068#1:2449,10\n2068#1:2459,12\n2068#1:2472,12\n2068#1:2484,12\n2068#1:2496\n2068#1:2497,6\n2061#1:2416\n2068#1:2471\n*E\n"})
public final class Image extends CompView {
@NotNull
private final kotlin.e binding$delegate;
@NotNull
private final WorkflowModule.Properties.Section.Component component;
@NotNull
private final LinearLayout parent;
final FormFragment this$0;
public Image(@NotNull FormFragment formFragment, @NotNull LinearLayout linearLayout, WorkflowModule.Properties.Section.Component component) {
super(formFragment, linearLayout, component);
Intrinsics.checkNotNullParameter(linearLayout, "parent");
Intrinsics.checkNotNullParameter(component, "component");
this.this$0 = formFragment;
this.parent = linearLayout;
this.component = component;
this.binding$delegate = LazyKt.lazy(new Function0<HkViewImageBinding>() {
{
super(0);
}
@NotNull
public final HkViewImageBinding m125invoke() {
return HkViewImageBinding.bind(FormFragment.Image.this.getView());
}
});
}
@NotNull
public final HkViewImageBinding getBinding$hyperkyc_release() {
return (HkViewImageBinding) this.binding$delegate.getValue();
}
@Override
@NotNull
public WorkflowModule.Properties.Section.Component getComponent() {
return this.component;
}
@Override
@NotNull
public LinearLayout getParent() {
return this.parent;
}
@Override
public void updateView(WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String injectFromVariables$hyperkyc_release$default;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
DynamicFormUIConfig dynamicFormUIConfig = null;
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Image.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("updateView() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Image.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "updateView() called ");
}
}
}
HkViewImageBinding binding$hyperkyc_release = getBinding$hyperkyc_release();
FormFragment formFragment = this.this$0;
binding$hyperkyc_release.hkFormImageView.setClickable(false);
String value = getComponent().getValue();
if (value != null && (injectFromVariables$hyperkyc_release$default = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, value, false, 1, null)) != null) {
ImageView imageView = binding$hyperkyc_release.hkFormImageView;
Intrinsics.checkNotNullExpressionValue(imageView, "hkFormImageView");
PicassoExtsKt.load(imageView, injectFromVariables$hyperkyc_release$default);
}
DynamicFormUtils dynamicFormUtils$hyperkyc_release = formFragment.getDynamicFormUtils$hyperkyc_release();
ImageView imageView2 = binding$hyperkyc_release.hkFormImageView;
Intrinsics.checkNotNullExpressionValue(imageView2, "hkFormImageView");
HSUIConfig uiConfigData = formFragment.getMainVM$hyperkyc_release().getUiConfigData();
if (uiConfigData != null) {
String moduleId$hyperkyc_release = formFragment.getModuleId$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(moduleId$hyperkyc_release, "moduleId");
dynamicFormUIConfig = uiConfigData.getDynamicFormUIConfig(moduleId$hyperkyc_release, getComponent().getId());
}
dynamicFormUtils$hyperkyc_release.customiseImage(imageView2, dynamicFormUIConfig);
}
@Override
@NotNull
public ImageView inflate() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Image.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " inflate() called";
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Image.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " inflate() called";
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
View inflate = this.this$0.getLayoutInflater().inflate(R.layout.hk_view_image, (ViewGroup) null, false);
Intrinsics.checkNotNull(inflate, "null cannot be cast to non-null type android.widget.ImageView");
return (ImageView) inflate;
}
}
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Label\n+ 2 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 Html.kt\nandroidx/core/text/HtmlKt\n*L\n1#1,2392:1\n14#2:2393\n28#2,10:2394\n62#2,12:2404\n40#2,12:2417\n62#2,12:2429\n52#2:2441\n50#2,6:2442\n1#3:2416\n39#4,5:2448\n39#4,5:2453\n39#4,5:2458\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Label\n*L\n699#1:2393\n699#1:2394,10\n699#1:2404,12\n699#1:2417,12\n699#1:2429,12\n699#1:2441\n699#1:2442,6\n699#1:2416\n742#1:2448,5\n750#1:2453,5\n777#1:2458,5\n*E\n"})
public final class Label extends CompView {
@NotNull
private final WorkflowModule.Properties.Section.Component component;
@NotNull
private final LinearLayout parent;
final FormFragment this$0;
public Label(@NotNull FormFragment formFragment, @NotNull LinearLayout linearLayout, WorkflowModule.Properties.Section.Component component) {
super(formFragment, linearLayout, component);
Intrinsics.checkNotNullParameter(linearLayout, "parent");
Intrinsics.checkNotNullParameter(component, "component");
this.this$0 = formFragment;
this.parent = linearLayout;
this.component = component;
}
private static final void updateView$applyUIConfigs(FormFragment formFragment, Label label, MaterialTextView materialTextView) {
DynamicFormUIConfig dynamicFormUIConfig;
HSUIConfig uiConfigData = formFragment.getMainVM$hyperkyc_release().getUiConfigData();
if (uiConfigData != null) {
String moduleId$hyperkyc_release = formFragment.getModuleId$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(moduleId$hyperkyc_release, "moduleId");
dynamicFormUIConfig = uiConfigData.getDynamicFormUIConfig(moduleId$hyperkyc_release, label.getComponent().getId());
} else {
dynamicFormUIConfig = null;
}
if (label.getView() instanceof LinearLayout) {
DynamicFormUtils dynamicFormUtils$hyperkyc_release = formFragment.getDynamicFormUtils$hyperkyc_release();
View view = label.getView();
Intrinsics.checkNotNull(view, "null cannot be cast to non-null type android.widget.LinearLayout");
dynamicFormUtils$hyperkyc_release.setLinearLayoutGravity((LinearLayout) view, dynamicFormUIConfig);
}
formFragment.getDynamicFormUtils$hyperkyc_release().customiseLabel(materialTextView, dynamicFormUIConfig);
}
@Override
@NotNull
public WorkflowModule.Properties.Section.Component getComponent() {
return this.component;
}
@Override
@NotNull
public LinearLayout getParent() {
return this.parent;
}
@Override
@org.jetbrains.annotations.NotNull
public android.view.View inflate() {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.Label.inflate():android.view.View");
}
@Override
public void updateView(co.hyperverge.hyperkyc.data.models.WorkflowModule.Properties.Section.Component.Handler.ReloadProperties r8) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.Label.updateView(co.hyperverge.hyperkyc.data.models.WorkflowModule$Properties$Section$Component$Handler$ReloadProperties):void");
}
}
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Loader\n+ 2 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,2392:1\n14#2:2393\n28#2,10:2394\n62#2,12:2404\n40#2,12:2417\n62#2,12:2429\n52#2:2441\n50#2,6:2442\n14#2:2448\n28#2,10:2449\n62#2,12:2459\n40#2,12:2472\n62#2,12:2484\n52#2:2496\n50#2,6:2497\n1#3:2416\n1#3:2471\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Loader\n*L\n2089#1:2393\n2089#1:2394,10\n2089#1:2404,12\n2089#1:2417,12\n2089#1:2429,12\n2089#1:2441\n2089#1:2442,6\n2096#1:2448\n2096#1:2449,10\n2096#1:2459,12\n2096#1:2472,12\n2096#1:2484,12\n2096#1:2496\n2096#1:2497,6\n2089#1:2416\n2096#1:2471\n*E\n"})
public final class Loader extends CompView {
@NotNull
private final kotlin.e binding$delegate;
@NotNull
private final WorkflowModule.Properties.Section.Component component;
@NotNull
private final LinearLayout parent;
final FormFragment this$0;
public Loader(@NotNull FormFragment formFragment, @NotNull LinearLayout linearLayout, WorkflowModule.Properties.Section.Component component) {
super(formFragment, linearLayout, component);
Intrinsics.checkNotNullParameter(linearLayout, "parent");
Intrinsics.checkNotNullParameter(component, "component");
this.this$0 = formFragment;
this.parent = linearLayout;
this.component = component;
this.binding$delegate = LazyKt.lazy(new Function0<HkViewLoaderBinding>() {
{
super(0);
}
@NotNull
public final HkViewLoaderBinding m126invoke() {
return HkViewLoaderBinding.bind(FormFragment.Loader.this.getView());
}
});
}
@NotNull
public final HkViewLoaderBinding getBinding$hyperkyc_release() {
return (HkViewLoaderBinding) this.binding$delegate.getValue();
}
@Override
@NotNull
public WorkflowModule.Properties.Section.Component getComponent() {
return this.component;
}
@Override
@NotNull
public LinearLayout getParent() {
return this.parent;
}
@Override
public void updateView(WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
DynamicFormUIConfig dynamicFormUIConfig = null;
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Loader.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("updateView() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Loader.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "updateView() called ");
}
}
}
HkViewLoaderBinding binding$hyperkyc_release = getBinding$hyperkyc_release();
FormFragment formFragment = this.this$0;
binding$hyperkyc_release.hkFormLoader.setClickable(false);
DynamicFormUtils dynamicFormUtils$hyperkyc_release = formFragment.getDynamicFormUtils$hyperkyc_release();
ProgressBar progressBar = binding$hyperkyc_release.hkFormLoader;
Intrinsics.checkNotNullExpressionValue(progressBar, "hkFormLoader");
HSUIConfig uiConfigData = formFragment.getMainVM$hyperkyc_release().getUiConfigData();
if (uiConfigData != null) {
String moduleId$hyperkyc_release = formFragment.getModuleId$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(moduleId$hyperkyc_release, "moduleId");
dynamicFormUIConfig = uiConfigData.getDynamicFormUIConfig(moduleId$hyperkyc_release, getComponent().getId());
}
dynamicFormUtils$hyperkyc_release.customiseLoader(progressBar, dynamicFormUIConfig);
}
@Override
@NotNull
public ProgressBar inflate() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Loader.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " inflate() called";
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Loader.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " inflate() called";
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
View inflate = this.this$0.getLayoutInflater().inflate(R.layout.hk_view_loader, (ViewGroup) null, false);
Intrinsics.checkNotNull(inflate, "null cannot be cast to non-null type android.widget.ProgressBar");
return (ProgressBar) inflate;
}
}
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Text\n+ 2 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,2392:1\n14#2:2393\n28#2,10:2394\n62#2,12:2404\n40#2,12:2417\n62#2,12:2429\n52#2:2441\n50#2,6:2442\n14#2:2449\n28#2,10:2450\n62#2,12:2460\n40#2,12:2473\n62#2,12:2485\n52#2:2497\n50#2,6:2498\n1#3:2416\n1#3:2448\n1#3:2472\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Text\n*L\n794#1:2393\n794#1:2394,10\n794#1:2404,12\n794#1:2417,12\n794#1:2429,12\n794#1:2441\n794#1:2442,6\n1036#1:2449\n1036#1:2450,10\n1036#1:2460,12\n1036#1:2473,12\n1036#1:2485,12\n1036#1:2497\n1036#1:2498,6\n794#1:2416\n1036#1:2472\n*E\n"})
public final class Text extends CompView<View, String> {
@NotNull
private final WorkflowModule.Properties.Section.Component component;
@NotNull
private final LinearLayout parent;
final FormFragment this$0;
public Text(@NotNull FormFragment formFragment, @NotNull LinearLayout linearLayout, WorkflowModule.Properties.Section.Component component) {
super(formFragment, linearLayout, component);
Intrinsics.checkNotNullParameter(linearLayout, "parent");
Intrinsics.checkNotNullParameter(component, "component");
this.this$0 = formFragment;
this.parent = linearLayout;
this.component = component;
}
private final int getKeyboardInputType() {
String keyboard = getComponent().getKeyboard();
if (keyboard != null) {
int hashCode = keyboard.hashCode();
if (hashCode != -1034364087) {
if (hashCode != 96619420) {
if (hashCode == 106642798 && keyboard.equals("phone")) {
return 3;
}
} else if (keyboard.equals("email")) {
return 32;
}
} else if (keyboard.equals(WorkflowModule.Properties.Section.Component.Keyboard.NUMBER)) {
return 2;
}
}
return 1;
}
private final void updateBlocksView(WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties) {
final Ref.ObjectRef objectRef = new Ref.ObjectRef();
if (reloadProperties != null) {
String value = reloadProperties.getValue();
String nullIfBlank = CoreExtsKt.nullIfBlank(value != null ? FormFragment.injectFromVariables$hyperkyc_release$default(this.this$0, value, false, 1, null) : null);
if (nullIfBlank != null) {
objectRef.element = nullIfBlank;
}
}
View view = getView();
Intrinsics.checkNotNull(view, "null cannot be cast to non-null type co.hyperverge.hyperkyc.ui.custom.blocks.BlocksView");
final BlocksView blocksView = (BlocksView) view;
final FormFragment formFragment = this.this$0;
blocksView.post(new Runnable() {
@Override
public final void run() {
FormFragment.Text.updateBlocksView$lambda$8(FormFragment.this, this, objectRef, blocksView);
}
});
}
public static final void updateBlocksView$lambda$8(FormFragment formFragment, final Text text, Ref.ObjectRef objectRef, final BlocksView blocksView) {
DynamicFormUIConfig dynamicFormUIConfig;
String str;
String str2;
String str3;
String str4;
String injectFromVariables$hyperkyc_release$default;
Integer intOrNull;
String injectFromVariables$hyperkyc_release$default2;
Integer intOrNull2;
String fontSize;
Intrinsics.checkNotNullParameter(formFragment, "this$0");
Intrinsics.checkNotNullParameter(text, "this$1");
Intrinsics.checkNotNullParameter(objectRef, "$blockTextValue");
Intrinsics.checkNotNullParameter(blocksView, "$blocksView");
HSUIConfig uiConfigData = formFragment.getMainVM$hyperkyc_release().getUiConfigData();
if (uiConfigData != null) {
String moduleId$hyperkyc_release = formFragment.getModuleId$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(moduleId$hyperkyc_release, "moduleId");
dynamicFormUIConfig = uiConfigData.getDynamicFormUIConfig(moduleId$hyperkyc_release, text.getComponent().getId());
} else {
dynamicFormUIConfig = null;
}
HyperSnapUIConfigUtil uiConfigUtil = HyperSnapBridgeKt.getUiConfigUtil();
if (dynamicFormUIConfig == null || (str = dynamicFormUIConfig.getFont()) == null) {
str = "Mulish";
}
if (dynamicFormUIConfig == null || (str2 = dynamicFormUIConfig.getFontWeight()) == null) {
str2 = "Regular";
}
Typeface font = uiConfigUtil.getFont(str, str2);
int keyboardInputType = text.getKeyboardInputType();
String enabled = text.getComponent().getEnabled();
Boolean bool = Boolean.TRUE;
BlockEditTextConfig blockEditTextConfig = new BlockEditTextConfig(keyboardInputType, Intrinsics.areEqual(formFragment.asBoolean$hyperkyc_release(enabled, bool), bool));
if (dynamicFormUIConfig == null || (str3 = dynamicFormUIConfig.getColor()) == null) {
str3 = "#050552";
}
String str5 = str3;
int parseInt = (dynamicFormUIConfig == null || (fontSize = dynamicFormUIConfig.getFontSize()) == null) ? 14 : Integer.parseInt(fontSize);
if (dynamicFormUIConfig == null || (str4 = dynamicFormUIConfig.getBorderColor()) == null) {
str4 = "#0085FF";
}
BlockItemViewConfig blockItemViewConfig = new BlockItemViewConfig(str5, parseInt, font, str4, "#1A050552", "#DD4A46");
String blockCount = text.getComponent().getBlockCount();
final int i = 1;
final int intValue = (blockCount == null || (injectFromVariables$hyperkyc_release$default2 = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, blockCount, false, 1, null)) == null || (intOrNull2 = StringsKt.toIntOrNull(injectFromVariables$hyperkyc_release$default2)) == null) ? 6 : intOrNull2.intValue();
String blockLength = text.getComponent().getBlockLength();
if (blockLength != null && (injectFromVariables$hyperkyc_release$default = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, blockLength, false, 1, null)) != null && (intOrNull = StringsKt.toIntOrNull(injectFromVariables$hyperkyc_release$default)) != null) {
i = intOrNull.intValue();
}
if (objectRef.element == null) {
objectRef.element = text.getComponentValue$hyperkyc_release();
}
blocksView.generateBlocksView$hyperkyc_release(new BlocksViewConfig(new BlocksContainerConfig(blockEditTextConfig, blockItemViewConfig, intValue, i, ViewExtsKt.getDp(40), ViewExtsKt.getDp(40), (String) objectRef.element), new ErrorTextViewConfig("#DD4A46", 10), new BlocksViewListener() {
@Override
public void onFocusChanged(boolean z) {
if (z) {
return;
}
String errorMessage = FormFragment.Text.this.getErrorMessage();
if (errorMessage == null || StringsKt.isBlank(errorMessage)) {
return;
}
FormFragment.Text.this.updateError();
}
@Override
public void onTextChanged(@NotNull String str6) {
Intrinsics.checkNotNullParameter(str6, FormFragment.KEY_VALUE);
FormFragment.Text.this.setValue(str6);
if (str6.length() != intValue * i) {
blocksView.clearError$hyperkyc_release();
return;
}
String errorMessage = FormFragment.Text.this.getErrorMessage();
if (errorMessage == null || StringsKt.isBlank(errorMessage)) {
blocksView.showSuccess$hyperkyc_release();
} else {
FormFragment.Text.this.updateError();
}
}
}));
text.setValue(objectRef.element);
}
private final void updateTIL(TextInputLayout textInputLayout, String str, WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties) {
final ?? r0 = (IMEAwareTextInputEditText) textInputLayout.findViewById(R.id.textInputEditText);
if (reloadProperties != null) {
this.this$0.setTitleHintAndHelperText$hyperkyc_release(textInputLayout, getComponent(), reloadProperties);
String value = reloadProperties.getValue();
String nullIfBlank = CoreExtsKt.nullIfBlank(value != null ? FormFragment.injectFromVariables$hyperkyc_release$default(this.this$0, value, false, 1, null) : null);
if (nullIfBlank != null) {
updateTIL$setTextAndValue(textInputLayout, this, nullIfBlank);
}
updateTIL$applyUIConfigs(this, textInputLayout, r0, this.this$0);
return;
}
FormFragment formFragment = this.this$0;
formFragment.makeSecure$hyperkyc_release(textInputLayout, Intrinsics.areEqual(formFragment.asBoolean$hyperkyc_release(getComponent().getSecure(), Boolean.FALSE), Boolean.TRUE), R.id.textInputEditText);
FormFragment.setTitleHintAndHelperText$hyperkyc_release$default(this.this$0, textInputLayout, getComponent(), null, 2, null);
FormFragment formFragment2 = this.this$0;
r0.setInputType(getKeyboardInputType());
if (Intrinsics.areEqual(str, WorkflowModule.Properties.Section.Component.SubType.Text.MULTI_LINE)) {
r0.setGravity(48);
r0.setInputType(131072);
r0.setImeOptions(1);
r0.setRawInputType(1);
r0.setHorizontallyScrolling(false);
r0.setSingleLine(false);
r0.setLines(getComponent().getLines());
} else {
r0.setLines(1);
r0.setSingleLine(true);
}
String componentValue$hyperkyc_release = getComponentValue$hyperkyc_release();
if (componentValue$hyperkyc_release != null) {
updateTIL$setTextAndValue(textInputLayout, this, componentValue$hyperkyc_release);
}
Intrinsics.checkNotNullExpressionValue((Object) r0, "updateTIL$lambda$6");
kotlinx.coroutines.flow.g.v(kotlinx.coroutines.flow.g.x(kotlinx.coroutines.flow.g.i(ViewExtsKt.textChangesFlow(r0), 200L), new FormFragment$Text$updateTIL$2$2(this, null)), androidx.lifecycle.o.a(formFragment2));
r0.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public final void onFocusChange(View view, boolean z) {
FormFragment.Text.updateTIL$lambda$6$lambda$4(FormFragment.Text.this, view, z);
}
});
r0.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public final boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {
boolean updateTIL$lambda$6$lambda$5;
updateTIL$lambda$6$lambda$5 = FormFragment.Text.updateTIL$lambda$6$lambda$5(IMEAwareTextInputEditText.this, textView, i, keyEvent);
return updateTIL$lambda$6$lambda$5;
}
});
updateTIL$applyUIConfigs(this, textInputLayout, r0, this.this$0);
}
private static final void updateTIL$applyUIConfigs(Text text, TextInputLayout textInputLayout, IMEAwareTextInputEditText iMEAwareTextInputEditText, FormFragment formFragment) {
DynamicFormUIConfig dynamicFormUIConfig;
text.updateStyling(textInputLayout, iMEAwareTextInputEditText);
DynamicFormUtils dynamicFormUtils$hyperkyc_release = formFragment.getDynamicFormUtils$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(iMEAwareTextInputEditText, "tie");
HSUIConfig uiConfigData = formFragment.getMainVM$hyperkyc_release().getUiConfigData();
if (uiConfigData != null) {
String moduleId$hyperkyc_release = formFragment.getModuleId$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(moduleId$hyperkyc_release, "moduleId");
dynamicFormUIConfig = uiConfigData.getDynamicFormUIConfig(moduleId$hyperkyc_release, text.getComponent().getId());
} else {
dynamicFormUIConfig = null;
}
dynamicFormUtils$hyperkyc_release.customiseTIL(textInputLayout, iMEAwareTextInputEditText, dynamicFormUIConfig);
}
public static final void updateTIL$lambda$6$lambda$4(Text text, View view, boolean z) {
Intrinsics.checkNotNullParameter(text, "this$0");
if (z || text.getErrorMessage() == null) {
return;
}
text.updateError();
}
public static final boolean updateTIL$lambda$6$lambda$5(IMEAwareTextInputEditText iMEAwareTextInputEditText, TextView textView, int i, KeyEvent keyEvent) {
if (i != 6) {
return false;
}
iMEAwareTextInputEditText.clearFocus();
return false;
}
private static final void updateTIL$setTextAndValue(TextInputLayout textInputLayout, Text text, String str) {
((IMEAwareTextInputEditText) textInputLayout.findViewById(R.id.textInputEditText)).setText(str);
text.setValue(str);
}
@Override
@NotNull
public WorkflowModule.Properties.Section.Component getComponent() {
return this.component;
}
@Override
@NotNull
public LinearLayout getParent() {
return this.parent;
}
@Override
@NotNull
public View inflate() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Text.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " inflate() called";
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Text.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " inflate() called";
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
View inflate = this.this$0.getLayoutInflater().inflate(Intrinsics.areEqual(getComponent().getSubType(), WorkflowModule.Properties.Section.Component.SubType.Text.BLOCKS) ? R.layout.hk_view_text_blocks : R.layout.hk_view_text_input_layout, (ViewGroup) null, false);
Intrinsics.checkNotNull(inflate, "null cannot be cast to non-null type android.view.View");
return inflate;
}
@Override
public void postInflate() {
super.postInflate();
String componentValue$hyperkyc_release = getComponentValue$hyperkyc_release();
if (componentValue$hyperkyc_release == null) {
componentValue$hyperkyc_release = "";
}
CompView.updateData$default(this, FormFragment.KEY_VALUE, componentValue$hyperkyc_release, false, 4, null);
if (Intrinsics.areEqual(getComponent().getSubType(), WorkflowModule.Properties.Section.Component.SubType.Text.BLOCKS)) {
return;
}
TextInputLayout view = getView();
TextInputLayout textInputLayout = view instanceof TextInputLayout ? view : null;
if (textInputLayout != null) {
textInputLayout.setError((CharSequence) null);
textInputLayout.setErrorEnabled(false);
}
}
@Override
public void updateError() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Text.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = this + " updateError() called with errorMessage = " + getErrorMessage();
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Text.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = this + " updateError() called with errorMessage = " + getErrorMessage();
sb2.append(str4 != null ? str4 : "null ");
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
if (Intrinsics.areEqual(getComponent().getSubType(), WorkflowModule.Properties.Section.Component.SubType.Text.BLOCKS)) {
View view = getView();
Intrinsics.checkNotNull(view, "null cannot be cast to non-null type co.hyperverge.hyperkyc.ui.custom.blocks.BlocksView");
((BlocksView) view).setError(getErrorMessage());
} else {
TextInputLayout view2 = getView();
Intrinsics.checkNotNull(view2, "null cannot be cast to non-null type com.google.android.material.textfield.TextInputLayout");
TextInputLayout textInputLayout = view2;
textInputLayout.setError(getErrorMessage());
String errorMessage = getErrorMessage();
textInputLayout.setErrorEnabled(!(errorMessage == null || StringsKt.isBlank(errorMessage)));
}
}
@Override
public void updateView(WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties) {
if (Intrinsics.areEqual(getComponent().getSubType(), WorkflowModule.Properties.Section.Component.SubType.Text.BLOCKS)) {
updateBlocksView(reloadProperties);
return;
}
View view = getView();
Intrinsics.checkNotNull(view, "null cannot be cast to non-null type com.google.android.material.textfield.TextInputLayout");
updateTIL((TextInputLayout) view, getComponent().getSubType(), reloadProperties);
}
}
@Metadata
@SourceDebugExtension({"SMAP\nFormFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Timer\n+ 2 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,2392:1\n14#2:2393\n28#2,10:2394\n62#2,12:2404\n40#2,12:2417\n62#2,12:2429\n52#2:2441\n50#2,6:2442\n14#2:2448\n28#2,10:2449\n62#2,12:2459\n40#2,12:2472\n62#2,12:2484\n52#2:2496\n50#2,6:2497\n1#3:2416\n1#3:2471\n1#3:2503\n*S KotlinDebug\n*F\n+ 1 FormFragment.kt\nco/hyperverge/hyperkyc/ui/form/FormFragment$Timer\n*L\n2119#1:2393\n2119#1:2394,10\n2119#1:2404,12\n2119#1:2417,12\n2119#1:2429,12\n2119#1:2441\n2119#1:2442,6\n2126#1:2448\n2126#1:2449,10\n2126#1:2459,12\n2126#1:2472,12\n2126#1:2484,12\n2126#1:2496\n2126#1:2497,6\n2119#1:2416\n2126#1:2471\n*E\n"})
public final class Timer extends CompView<MaterialTextView, String> {
@NotNull
private final kotlin.e binding$delegate;
@NotNull
private final WorkflowModule.Properties.Section.Component component;
private CountDownTimer countdownTimer;
@NotNull
private final LinearLayout parent;
final FormFragment this$0;
private String timerText;
public Timer(@NotNull FormFragment formFragment, @NotNull LinearLayout linearLayout, WorkflowModule.Properties.Section.Component component) {
super(formFragment, linearLayout, component);
Intrinsics.checkNotNullParameter(linearLayout, "parent");
Intrinsics.checkNotNullParameter(component, "component");
this.this$0 = formFragment;
this.parent = linearLayout;
this.component = component;
this.binding$delegate = LazyKt.lazy(new Function0<HkViewTimerBinding>() {
{
super(0);
}
@NotNull
public final HkViewTimerBinding m127invoke() {
return HkViewTimerBinding.bind(FormFragment.Timer.this.getView());
}
});
}
private final void updateText() {
String str = this.timerText;
getView().setText(CoreExtsKt.nullIfBlank(str != null ? FormFragment.injectFromVariables$hyperkyc_release$default(this.this$0, str, false, 1, null) : null));
}
private static final void updateView$applyUIConfigs(FormFragment formFragment, Timer timer) {
DynamicFormUIConfig dynamicFormUIConfig;
DynamicFormUtils dynamicFormUtils$hyperkyc_release = formFragment.getDynamicFormUtils$hyperkyc_release();
MaterialTextView view = timer.getView();
HSUIConfig uiConfigData = formFragment.getMainVM$hyperkyc_release().getUiConfigData();
if (uiConfigData != null) {
String moduleId$hyperkyc_release = formFragment.getModuleId$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(moduleId$hyperkyc_release, "moduleId");
dynamicFormUIConfig = uiConfigData.getDynamicFormUIConfig(moduleId$hyperkyc_release, timer.getComponent().getId());
} else {
dynamicFormUIConfig = null;
}
dynamicFormUtils$hyperkyc_release.customiseTimerLabel(view, dynamicFormUIConfig);
}
private static final void updateView$runTimer(final Timer timer, FormFragment formFragment, String str) {
String injectFromVariables$hyperkyc_release$default;
String injectFromVariables$hyperkyc_release$default2;
CompView.updateData$default(timer, "state", WorkflowModule.Properties.Section.Component.State.STATE_IDLE, false, 4, null);
if (!Intrinsics.areEqual(timer.getComponent().getSubType(), WorkflowModule.Properties.Section.Component.SubType.Timer.COUNTDOWN)) {
throw new NotImplementedError("An operation is not implemented: " + ("subType " + timer.getComponent().getSubType() + " is not supported"));
}
CountDownTimer countDownTimer = (CountDownTimer) formFragment.countdownTimersMap.get(timer.getComponent().getId());
if (countDownTimer != null) {
countDownTimer.cancel();
}
Boolean bool = Boolean.TRUE;
int i = 0;
if (!Intrinsics.areEqual(formFragment.asBoolean$hyperkyc_release(str, bool), bool)) {
String duration = timer.getComponent().getDuration();
if (duration != null && (injectFromVariables$hyperkyc_release$default = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, duration, false, 1, null)) != null) {
i = Integer.parseInt(injectFromVariables$hyperkyc_release$default);
}
timer.updateValueAndData$hyperkyc_release(i);
return;
}
String duration2 = timer.getComponent().getDuration();
if (duration2 != null && (injectFromVariables$hyperkyc_release$default2 = FormFragment.injectFromVariables$hyperkyc_release$default(formFragment, duration2, false, 1, null)) != null) {
i = Integer.parseInt(injectFromVariables$hyperkyc_release$default2);
}
timer.updateValueAndData$hyperkyc_release(i);
if (i > 0) {
CompView.updateData$default(timer, "state", WorkflowModule.Properties.Section.Component.State.STATE_RUNNING, false, 4, null);
final long j = i * 1000;
timer.countdownTimer = new CountDownTimer(j) {
@Override
public void onFinish() {
FormFragment.CompView.updateData$default(FormFragment.Timer.this, "state", WorkflowModule.Properties.Section.Component.State.STATE_COMPLETED, false, 4, null);
WorkflowModule.Properties.Section.Component.Handler onComplete = FormFragment.Timer.this.getComponent().getOnComplete();
if (onComplete != null) {
FormFragment.CompView.processHandler$hyperkyc_release$default(FormFragment.Timer.this, onComplete, false, 2, null);
}
}
@Override
public void onTick(long j2) {
FormFragment.Timer.this.updateValueAndData$hyperkyc_release(j2 / 1000);
}
};
formFragment.countdownTimersMap.put(timer.getComponent().getId(), timer.countdownTimer);
CountDownTimer countDownTimer2 = timer.countdownTimer;
if (countDownTimer2 != null) {
countDownTimer2.start();
}
}
}
@NotNull
public final HkViewTimerBinding getBinding$hyperkyc_release() {
return (HkViewTimerBinding) this.binding$delegate.getValue();
}
@Override
@NotNull
public WorkflowModule.Properties.Section.Component getComponent() {
return this.component;
}
@Override
@NotNull
public LinearLayout getParent() {
return this.parent;
}
public final void updateValueAndData$hyperkyc_release(long j) {
String convertSecondsToHhMmSs = DateExtsKt.convertSecondsToHhMmSs(j);
setValue(convertSecondsToHhMmSs);
List split$default = StringsKt.split$default(convertSecondsToHhMmSs, new String[]{":"}, false, 0, 6, (Object) null);
String str = (String) split$default.get(0);
String str2 = (String) split$default.get(1);
String str3 = (String) split$default.get(2);
CompView.updateData$default(this, FormFragment.KEY_VALUE_HOURS, str, false, 4, null);
CompView.updateData$default(this, FormFragment.KEY_VALUE_MINUTES, str2, false, 4, null);
CompView.updateData$default(this, FormFragment.KEY_VALUE_SECONDS, str3, false, 4, null);
updateText();
}
@Override
public void updateView(WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Timer.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = "updateView() called with: reloadProps = [" + reloadProperties + ']';
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Timer.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = "updateView() called with: reloadProps = [" + reloadProperties + ']';
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
this.timerText = getComponent().getText();
if (reloadProperties == null) {
updateView$runTimer(this, this.this$0, getComponent().getEnabled());
updateView$applyUIConfigs(this.this$0, this);
return;
}
String text = reloadProperties.getText();
if (text != null) {
this.timerText = text;
updateText();
}
String enabled = reloadProperties.getEnabled();
if (enabled != null) {
updateView$runTimer(this, this.this$0, enabled);
}
updateView$applyUIConfigs(this.this$0, this);
}
@Override
@NotNull
public MaterialTextView inflate() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = Timer.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = getComponent().getId() + " inflate() called";
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = Timer.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = getComponent().getId() + " inflate() called";
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
MaterialTextView inflate = this.this$0.getLayoutInflater().inflate(R.layout.hk_view_timer, (ViewGroup) null, false);
Intrinsics.checkNotNull(inflate, "null cannot be cast to non-null type com.google.android.material.textview.MaterialTextView");
return inflate;
}
}
public FormFragment() {
super(R.layout.hk_fragment_form);
this.mainVM$delegate = z.a(this, Reflection.getOrCreateKotlinClass(MainVM.class), new Function0<ViewModelStore>() {
{
super(0);
}
@NotNull
public final ViewModelStore m119invoke() {
ViewModelStore viewModelStore = this.requireActivity().getViewModelStore();
Intrinsics.checkNotNullExpressionValue(viewModelStore, "requireActivity().viewModelStore");
return viewModelStore;
}
}, new Function0<ViewModelProvider.a>() {
{
super(0);
}
@NotNull
public final ViewModelProvider.a m120invoke() {
ViewModelProvider.a defaultViewModelProviderFactory = this.requireActivity().getDefaultViewModelProviderFactory();
Intrinsics.checkNotNullExpressionValue(defaultViewModelProviderFactory, "requireActivity().defaultViewModelProviderFactory");
return defaultViewModelProviderFactory;
}
});
this.formVM$delegate = z.a(this, Reflection.getOrCreateKotlinClass(FormVM.class), new Function0<ViewModelStore>() {
{
super(0);
}
@NotNull
public final ViewModelStore m121invoke() {
ViewModelStore viewModelStore = this.requireActivity().getViewModelStore();
Intrinsics.checkNotNullExpressionValue(viewModelStore, "requireActivity().viewModelStore");
return viewModelStore;
}
}, new Function0<ViewModelProvider.a>() {
{
super(0);
}
@NotNull
public final ViewModelProvider.a m122invoke() {
ViewModelProvider.a defaultViewModelProviderFactory = this.requireActivity().getDefaultViewModelProviderFactory();
Intrinsics.checkNotNullExpressionValue(defaultViewModelProviderFactory, "requireActivity().defaultViewModelProviderFactory");
return defaultViewModelProviderFactory;
}
});
this.binding$delegate = FragmentViewBindingDelegateKt.viewBinding(this, FormFragment$binding$2.INSTANCE);
ActivityResultLauncher<String[]> registerForActivityResult = registerForActivityResult(new ActivityResultContracts.OpenMultipleDocuments(), new androidx.activity.result.a() {
public final void a(Object obj) {
FormFragment.filePickerLauncher$lambda$2(FormFragment.this, (List) obj);
}
});
Intrinsics.checkNotNullExpressionValue(registerForActivityResult, "registerForActivityResul…picking file\" }\n }");
this.filePickerLauncher = registerForActivityResult;
this.moduleId$delegate = LazyKt.lazy(new Function0<String>() {
{
super(0);
}
@NotNull
public final String invoke() {
Bundle arguments = FormFragment.this.getArguments();
String string = arguments != null ? arguments.getString("moduleId") : null;
Intrinsics.checkNotNull(string);
return string;
}
});
this.moduleType$delegate = LazyKt.lazy(new Function0<String>() {
{
super(0);
}
@NotNull
public final String invoke() {
Bundle arguments = FormFragment.this.getArguments();
String string = arguments != null ? arguments.getString(FormFragment.ARG_TYPE) : null;
Intrinsics.checkNotNull(string);
return string;
}
});
this.subType$delegate = LazyKt.lazy(new Function0<String>() {
{
super(0);
}
@NotNull
public final String invoke() {
Bundle arguments = FormFragment.this.getArguments();
String string = arguments != null ? arguments.getString(FormFragment.ARG_SUBTYPE) : null;
Intrinsics.checkNotNull(string);
return string;
}
});
this.dynamicFormUtils$delegate = LazyKt.lazy(new Function0<DynamicFormUtils>() {
{
super(0);
}
@NotNull
public final DynamicFormUtils m129invoke() {
HSUIConfig uiConfigData = FormFragment.this.getMainVM$hyperkyc_release().getUiConfigData();
String moduleId$hyperkyc_release = FormFragment.this.getModuleId$hyperkyc_release();
Intrinsics.checkNotNullExpressionValue(moduleId$hyperkyc_release, "moduleId");
return new DynamicFormUtils(uiConfigData, moduleId$hyperkyc_release);
}
});
this.countdownTimersMap = new HashMap<>();
this.textConfigs$delegate = LazyKt.lazy(new Function0<Map<String, ? extends String>>() {
{
super(0);
}
@NotNull
public final Map<String, String> invoke() {
Bundle arguments = FormFragment.this.getArguments();
Object obj = arguments != null ? arguments.get("textConfigs") : null;
Map map = obj instanceof Map ? (Map) obj : null;
Map<String, String> map2 = map != null ? MapsKt.toMap(map) : null;
Intrinsics.checkNotNull(map2);
return map2;
}
});
this.contentResolver$delegate = LazyKt.lazy(new Function0<ContentResolver>() {
{
super(0);
}
public final ContentResolver m128invoke() {
return FormFragment.this.requireContext().getContentResolver();
}
});
}
private final void createSections(android.widget.LinearLayout r18, java.util.List<co.hyperverge.hyperkyc.data.models.WorkflowModule.Properties.Section> r19) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.createSections(android.widget.LinearLayout, java.util.List):void");
}
private static final void createSections$lambda$20$render(List<? extends CompView<?, ?>> list, Margin margin) {
Iterator<T> it = list.iterator();
while (it.hasNext()) {
CompView compView = (CompView) it.next();
compView.render(margin);
List<CompView<? extends View, ? extends Object>> childCompViews = compView.getChildCompViews();
if (childCompViews != null) {
createSections$lambda$20$render(childCompViews, new Margin(0, 0, 0, ViewExtsKt.getDp(12), 7, null));
}
}
}
private final void destroyRunningCountdownTimers() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = FormFragment.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("destroyRunningCountdownTimers() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = FormFragment.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "destroyRunningCountdownTimers() called ");
}
}
}
Iterator<Map.Entry<String, CountDownTimer>> it = this.countdownTimersMap.entrySet().iterator();
while (it.hasNext()) {
CountDownTimer value = it.next().getValue();
if (value != null) {
value.cancel();
}
}
}
public static final void filePickerLauncher$lambda$2(co.hyperverge.hyperkyc.ui.form.FormFragment r19, java.util.List r20) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.filePickerLauncher$lambda$2(co.hyperverge.hyperkyc.ui.form.FormFragment, java.util.List):void");
}
private final HkFragmentFormBinding getBinding() {
return (HkFragmentFormBinding) this.binding$delegate.getValue((Fragment) this, $$delegatedProperties[0]);
}
private final Typeface getFont(Function1<? super UIFont, String> function1, Function1<? super UIFontWeight, String> function12) {
UIConfig config = HyperSnapBridgeKt.getUiConfigUtil().getConfig();
HyperSnapUIConfigUtil uiConfigUtil = HyperSnapBridgeKt.getUiConfigUtil();
UIFont font = config.getFont();
Intrinsics.checkNotNullExpressionValue(font, "font");
String str = (String) function1.invoke(font);
UIFontWeight fontWeight = config.getFontWeight();
Intrinsics.checkNotNullExpressionValue(fontWeight, "fontWeight");
return uiConfigUtil.getFont(str, (String) function12.invoke(fontWeight));
}
private final String getModuleType() {
return (String) this.moduleType$delegate.getValue();
}
private final String getSubType() {
return (String) this.subType$delegate.getValue();
}
private final Map<String, String> getTextConfigs() {
return (Map) this.textConfigs$delegate.getValue();
}
@SuppressLint({"SetTextI18n"})
private final void initViews() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = FormFragment.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("initViews() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = FormFragment.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "initViews() called ");
}
}
}
HkFragmentFormBinding binding = getBinding();
LinearLayout linearLayout = binding.includeBranding.llBrandingRoot;
Intrinsics.checkNotNullExpressionValue(linearLayout, "includeBranding.llBrandingRoot");
linearLayout.setVisibility(getMainVM$hyperkyc_release().shouldShowBranding() ? 0 : 8);
binding.hkLayoutTopBar.ivBack.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
FormFragment.initViews$lambda$9$lambda$8(FormFragment.this, view);
}
});
String moduleType = getModuleType();
int hashCode = moduleType.hashCode();
if (hashCode != -259085917) {
if (hashCode == 3148996 && moduleType.equals(WorkflowModule.TYPE_FORM)) {
showLegacyForm();
}
} else if (moduleType.equals(WorkflowModule.TYPE_DYNAMIC_FORM)) {
render();
}
HyperSnapBridgeKt.getUiConfigUtil().customiseClientLogo(binding.hkLayoutTopBar.hkClientLogo);
}
public static final void initViews$lambda$9$lambda$8(FormFragment formFragment, View view) {
Intrinsics.checkNotNullParameter(formFragment, "this$0");
formFragment.requireActivity().onBackPressed();
}
public static String injectFromVariables$hyperkyc_release$default(FormFragment formFragment, String str, boolean z, int i, Object obj) {
if ((i & 1) != 0) {
z = false;
}
return formFragment.injectFromVariables$hyperkyc_release(str, z);
}
private final void render() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = FormFragment.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("render() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = FormFragment.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "render() called ");
}
}
}
Bundle arguments = getArguments();
Serializable serializable = arguments != null ? arguments.getSerializable(ARG_SECTIONS) : null;
Intrinsics.checkNotNull(serializable);
LinearLayout linearLayout = getBinding().llContent;
Intrinsics.checkNotNullExpressionValue(linearLayout, "binding.llContent");
createSections(linearLayout, (List) serializable);
}
public static void setTitleHintAndHelperText$hyperkyc_release$default(FormFragment formFragment, TextInputLayout textInputLayout, WorkflowModule.Properties.Section.Component component, WorkflowModule.Properties.Section.Component.Handler.ReloadProperties reloadProperties, int i, Object obj) {
if ((i & 2) != 0) {
reloadProperties = null;
}
formFragment.setTitleHintAndHelperText$hyperkyc_release(textInputLayout, component, reloadProperties);
}
private final void showLegacyForm() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = FormFragment.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("showLegacyForm() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = FormFragment.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "showLegacyForm() called ");
}
}
}
final HkFragmentFormBinding binding = getBinding();
ConstraintLayout constraintLayout = binding.clLegacyUI;
Intrinsics.checkNotNullExpressionValue(constraintLayout, "clLegacyUI");
constraintLayout.setVisibility(0);
LinearLayout linearLayout = binding.llContent;
Intrinsics.checkNotNullExpressionValue(linearLayout, "llContent");
linearLayout.setVisibility(8);
String subType = getSubType();
int hashCode = subType.hashCode();
if (hashCode == -1130292259) {
if (subType.equals("aadhaar_xml_form")) {
binding.tvTitle.setText(showLegacyForm$lambda$15$getText(this, "form_titleText", "Is your Aadhaar linked with your phone number?"));
binding.tvSubTitle.setText(showLegacyForm$lambda$15$getText(this, "form_descriptionText", "If they are linked, you can use the Aadhaar OKYC flow for faster approval"));
binding.btnPositive.setText(showLegacyForm$lambda$15$getText(this, "form_positiveButtonText", "Yes, take me to Aadhaar OKYC flow"));
binding.btnNegative.setText(showLegacyForm$lambda$15$getText(this, "form_negativeButtonText", "No they are not linked"));
final Function1<View, Unit> function1 = new Function1<View, Unit>() {
{
super(1);
}
public Object invoke(Object obj) {
invoke((View) obj);
return Unit.a;
}
public final void invoke(@NotNull View view) {
String canonicalName3;
Object b2;
String className3;
String substringAfterLast$default;
String className4;
Intrinsics.checkNotNullParameter(view, "view");
MainVM mainVM$hyperkyc_release = FormFragment.this.getMainVM$hyperkyc_release();
String moduleId$hyperkyc_release = FormFragment.this.getModuleId$hyperkyc_release();
List<String> listOf = CollectionsKt.listOf(new String[]{"btnPositive", "btnNegative"});
LinkedHashMap linkedHashMap = new LinkedHashMap(kotlin.ranges.l.d(MapsKt.mapCapacity(CollectionsKt.collectionSizeOrDefault(listOf, 10)), 16));
for (String str3 : listOf) {
Pair a = kotlin.k.a(str3 + "Clicked", String.valueOf(Intrinsics.areEqual(str3, ViewExtsKt.resName(view))));
linkedHashMap.put(a.c(), a.d());
}
MainVM.updateFormData$hyperkyc_release$default(mainVM$hyperkyc_release, moduleId$hyperkyc_release, linkedHashMap, false, 4, null);
boolean flowForward = FormFragment.this.getMainVM$hyperkyc_release().flowForward();
HkFragmentFormBinding hkFragmentFormBinding = binding;
HyperLogger.Level level2 = HyperLogger.Level.DEBUG;
HyperLogger companion2 = HyperLogger.Companion.getInstance();
StringBuilder sb2 = new StringBuilder();
StackTraceElement[] stackTrace3 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace3, "Throwable().stackTrace");
StackTraceElement stackTraceElement3 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace3);
String str4 = "N/A";
if (stackTraceElement3 == null || (className4 = stackTraceElement3.getClassName()) == null || (canonicalName3 = StringsKt.substringAfterLast$default(className4, '.', (String) null, 2, (Object) null)) == null) {
canonicalName3 = hkFragmentFormBinding != null ? HkFragmentFormBinding.class.getCanonicalName() : null;
if (canonicalName3 == null) {
canonicalName3 = "N/A";
}
}
Matcher matcher3 = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName3);
if (matcher3.find()) {
canonicalName3 = matcher3.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName3, "replaceAll(\"\")");
}
if (canonicalName3.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName3 = canonicalName3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName3, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb2.append(canonicalName3);
sb2.append(" - ");
String str5 = "initViews: clickListener for " + ViewExtsKt.resName(view) + " | flowForward handled: " + flowForward;
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
companion2.log(level2, sb2.toString());
if (CoreExtsKt.isRelease()) {
return;
}
try {
g.a aVar3 = kotlin.g.b;
Object invoke2 = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke2, "null cannot be cast to non-null type android.app.Application");
b2 = kotlin.g.b(((Application) invoke2).getPackageName());
} catch (Throwable th2) {
g.a aVar4 = kotlin.g.b;
b2 = kotlin.g.b(kotlin.h.a(th2));
}
if (kotlin.g.f(b2)) {
b2 = "";
}
String str6 = (String) b2;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str6, "packageName");
if (StringsKt.contains$default(str6, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace4 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace4, "Throwable().stackTrace");
StackTraceElement stackTraceElement4 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace4);
if (stackTraceElement4 == null || (className3 = stackTraceElement4.getClassName()) == null || (substringAfterLast$default = StringsKt.substringAfterLast$default(className3, '.', (String) null, 2, (Object) null)) == null) {
String canonicalName4 = hkFragmentFormBinding != null ? HkFragmentFormBinding.class.getCanonicalName() : null;
if (canonicalName4 != null) {
str4 = canonicalName4;
}
} else {
str4 = substringAfterLast$default;
}
Matcher matcher4 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str4);
if (matcher4.find()) {
str4 = matcher4.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str4, "replaceAll(\"\")");
}
if (str4.length() > 23 && Build.VERSION.SDK_INT < 26) {
str4 = str4.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str4, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb3 = new StringBuilder();
String str7 = "initViews: clickListener for " + ViewExtsKt.resName(view) + " | flowForward handled: " + flowForward;
if (str7 == null) {
str7 = "null ";
}
sb3.append(str7);
sb3.append(' ');
sb3.append("");
Log.println(3, str4, sb3.toString());
}
}
}
};
binding.btnPositive.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
FormFragment.showLegacyForm$lambda$15$lambda$13(function1, view);
}
});
binding.btnNegative.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
FormFragment.showLegacyForm$lambda$15$lambda$14(function1, view);
}
});
return;
}
throw new NotImplementedError("An operation is not implemented: " + ("not implemented yet for " + getSubType()));
}
if (hashCode == 15886084 && subType.equals("digilocker_form")) {
binding.tvTitle.setText(showLegacyForm$lambda$15$getText(this, "form_titleText", "Is your Aadhaar linked with your phone number?"));
binding.tvSubTitle.setText(showLegacyForm$lambda$15$getText(this, "form_descriptionText", "If they are linked, you can use the Digilocker flow for faster approval"));
binding.btnPositive.setText(showLegacyForm$lambda$15$getText(this, "form_positiveButtonText", "Yes, take me to Digilocker flow"));
binding.btnNegative.setText(showLegacyForm$lambda$15$getText(this, "form_negativeButtonText", "No they are not linked"));
final Function1 function12 = new Function1<View, Unit>() {
{
super(1);
}
public Object invoke(Object obj) {
invoke((View) obj);
return Unit.a;
}
public final void invoke(@NotNull View view) {
String canonicalName3;
Object b2;
String className3;
String substringAfterLast$default;
String className4;
Intrinsics.checkNotNullParameter(view, "view");
MainVM mainVM$hyperkyc_release = FormFragment.this.getMainVM$hyperkyc_release();
String moduleId$hyperkyc_release = FormFragment.this.getModuleId$hyperkyc_release();
List<String> listOf = CollectionsKt.listOf(new String[]{"btnPositive", "btnNegative"});
LinkedHashMap linkedHashMap = new LinkedHashMap(kotlin.ranges.l.d(MapsKt.mapCapacity(CollectionsKt.collectionSizeOrDefault(listOf, 10)), 16));
for (String str3 : listOf) {
Pair a = kotlin.k.a(str3 + "Clicked", String.valueOf(Intrinsics.areEqual(str3, ViewExtsKt.resName(view))));
linkedHashMap.put(a.c(), a.d());
}
MainVM.updateFormData$hyperkyc_release$default(mainVM$hyperkyc_release, moduleId$hyperkyc_release, linkedHashMap, false, 4, null);
boolean flowForward = FormFragment.this.getMainVM$hyperkyc_release().flowForward();
HkFragmentFormBinding hkFragmentFormBinding = binding;
HyperLogger.Level level2 = HyperLogger.Level.DEBUG;
HyperLogger companion2 = HyperLogger.Companion.getInstance();
StringBuilder sb2 = new StringBuilder();
StackTraceElement[] stackTrace3 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace3, "Throwable().stackTrace");
StackTraceElement stackTraceElement3 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace3);
String str4 = "N/A";
if (stackTraceElement3 == null || (className4 = stackTraceElement3.getClassName()) == null || (canonicalName3 = StringsKt.substringAfterLast$default(className4, '.', (String) null, 2, (Object) null)) == null) {
canonicalName3 = hkFragmentFormBinding != null ? HkFragmentFormBinding.class.getCanonicalName() : null;
if (canonicalName3 == null) {
canonicalName3 = "N/A";
}
}
Matcher matcher3 = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName3);
if (matcher3.find()) {
canonicalName3 = matcher3.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName3, "replaceAll(\"\")");
}
if (canonicalName3.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName3 = canonicalName3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName3, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb2.append(canonicalName3);
sb2.append(" - ");
String str5 = "initViews: clickListener for " + ViewExtsKt.resName(view) + " | flowForward handled: " + flowForward;
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
companion2.log(level2, sb2.toString());
if (CoreExtsKt.isRelease()) {
return;
}
try {
g.a aVar3 = kotlin.g.b;
Object invoke2 = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke2, "null cannot be cast to non-null type android.app.Application");
b2 = kotlin.g.b(((Application) invoke2).getPackageName());
} catch (Throwable th2) {
g.a aVar4 = kotlin.g.b;
b2 = kotlin.g.b(kotlin.h.a(th2));
}
if (kotlin.g.f(b2)) {
b2 = "";
}
String str6 = (String) b2;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str6, "packageName");
if (StringsKt.contains$default(str6, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace4 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace4, "Throwable().stackTrace");
StackTraceElement stackTraceElement4 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace4);
if (stackTraceElement4 == null || (className3 = stackTraceElement4.getClassName()) == null || (substringAfterLast$default = StringsKt.substringAfterLast$default(className3, '.', (String) null, 2, (Object) null)) == null) {
String canonicalName4 = hkFragmentFormBinding != null ? HkFragmentFormBinding.class.getCanonicalName() : null;
if (canonicalName4 != null) {
str4 = canonicalName4;
}
} else {
str4 = substringAfterLast$default;
}
Matcher matcher4 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str4);
if (matcher4.find()) {
str4 = matcher4.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str4, "replaceAll(\"\")");
}
if (str4.length() > 23 && Build.VERSION.SDK_INT < 26) {
str4 = str4.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str4, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb3 = new StringBuilder();
String str7 = "initViews: clickListener for " + ViewExtsKt.resName(view) + " | flowForward handled: " + flowForward;
if (str7 == null) {
str7 = "null ";
}
sb3.append(str7);
sb3.append(' ');
sb3.append("");
Log.println(3, str4, sb3.toString());
}
}
}
};
binding.btnPositive.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
FormFragment.showLegacyForm$lambda$15$lambda$13(function12, view);
}
});
binding.btnNegative.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
FormFragment.showLegacyForm$lambda$15$lambda$14(function12, view);
}
});
return;
}
throw new NotImplementedError("An operation is not implemented: " + ("not implemented yet for " + getSubType()));
}
private static final Spanned showLegacyForm$lambda$15$getText(FormFragment formFragment, String str, String str2) {
String str3 = formFragment.getTextConfigs().get(str);
if (str3 == null) {
str3 = str2;
}
String str4 = str3;
if (!(str4.length() == 0)) {
str2 = str4;
}
Spanned b = androidx.core.text.a.b(str2, 0, (Html.ImageGetter) null, (Html.TagHandler) null);
Intrinsics.checkNotNullExpressionValue(b, "fromHtml(this, flags, imageGetter, tagHandler)");
return b;
}
public static final void showLegacyForm$lambda$15$lambda$13(Function1 function1, View view) {
Intrinsics.checkNotNullParameter(function1, "$tmp0");
function1.invoke(view);
}
public static final void showLegacyForm$lambda$15$lambda$14(Function1 function1, View view) {
Intrinsics.checkNotNullParameter(function1, "$tmp0");
function1.invoke(view);
}
public final String appendRequired$hyperkyc_release(String str, boolean z) {
Intrinsics.checkNotNullParameter(str, "<this>");
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append(z ? " *" : "");
return sb.toString();
}
public final Boolean asBoolean$hyperkyc_release(String str, Boolean bool) {
Boolean asBoolean$hyperkyc_release = getMainVM$hyperkyc_release().asBoolean$hyperkyc_release(str, bool);
return asBoolean$hyperkyc_release == null ? bool : asBoolean$hyperkyc_release;
}
@NotNull
public final List<CompView<? extends View, ? extends Object>> createComponents$hyperkyc_release(@NotNull LinearLayout linearLayout, @NotNull List<WorkflowModule.Properties.Section.Component> list) {
String canonicalName;
Object b;
String canonicalName2;
String className;
Object container;
String className2;
Intrinsics.checkNotNullParameter(linearLayout, "<this>");
Intrinsics.checkNotNullParameter(list, "children");
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = linearLayout.getClass().getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = "createComponents() called with: children = " + list;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = linearLayout.getClass().getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = "createComponents() called with: children = " + list;
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
ArrayList<WorkflowModule.Properties.Section.Component> arrayList = new ArrayList();
Iterator<T> it = list.iterator();
while (true) {
if (!it.hasNext()) {
break;
}
Object next = it.next();
if (linearLayout.findViewWithTag(((WorkflowModule.Properties.Section.Component) next).getId()) == null) {
arrayList.add(next);
}
}
ArrayList arrayList2 = new ArrayList(CollectionsKt.collectionSizeOrDefault(arrayList, 10));
for (WorkflowModule.Properties.Section.Component component : arrayList) {
String type = component.getType();
switch (type.hashCode()) {
case -1984141450:
if (!type.equals(WorkflowModule.Properties.Section.Component.Type.VERTICAL)) {
throw new NotImplementedError("An operation is not implemented: " + ("Type " + component.getType() + " is not a supported component"));
}
container = new Container(this, 1, linearLayout, component);
break;
case -1377687758:
if (!type.equals(WorkflowModule.Properties.Section.Component.Type.BUTTON)) {
throw new NotImplementedError("An operation is not implemented: " + ("Type " + component.getType() + " is not a supported component"));
}
container = new Button(this, linearLayout, component);
break;
case -1097519085:
if (!type.equals(WorkflowModule.Properties.Section.Component.Type.LOADER)) {
throw new NotImplementedError("An operation is not implemented: " + ("Type " + component.getType() + " is not a supported component"));
}
container = new Loader(this, linearLayout, component);
break;
case -432061423:
if (!type.equals(WorkflowModule.Properties.Section.Component.Type.DROPDOWN)) {
throw new NotImplementedError("An operation is not implemented: " + ("Type " + component.getType() + " is not a supported component"));
}
container = new Dropdown(this, linearLayout, component);
break;
case 3076014:
if (!type.equals(WorkflowModule.Properties.Section.Component.Type.DATE)) {
throw new NotImplementedError("An operation is not implemented: " + ("Type " + component.getType() + " is not a supported component"));
}
container = new Date(this, linearLayout, component);
break;
case 3143036:
if (!type.equals(WorkflowModule.Properties.Section.Component.Type.FILE)) {
throw new NotImplementedError("An operation is not implemented: " + ("Type " + component.getType() + " is not a supported component"));
}
container = new FileUpload(this, linearLayout, component);
break;
case 3556653:
if (!type.equals("text")) {
throw new NotImplementedError("An operation is not implemented: " + ("Type " + component.getType() + " is not a supported component"));
}
container = new Text(this, linearLayout, component);
break;
case 100313435:
if (!type.equals("image")) {
throw new NotImplementedError("An operation is not implemented: " + ("Type " + component.getType() + " is not a supported component"));
}
container = new Image(this, linearLayout, component);
break;
case 102727412:
if (!type.equals(WorkflowModule.Properties.Section.Component.Type.LABEL)) {
throw new NotImplementedError("An operation is not implemented: " + ("Type " + component.getType() + " is not a supported component"));
}
container = new Label(this, linearLayout, component);
break;
case 110364485:
if (!type.equals(WorkflowModule.Properties.Section.Component.Type.TIMER)) {
throw new NotImplementedError("An operation is not implemented: " + ("Type " + component.getType() + " is not a supported component"));
}
container = new Timer(this, linearLayout, component);
break;
case 1387629604:
if (!type.equals(WorkflowModule.Properties.Section.Component.Type.HORIZONTAL)) {
throw new NotImplementedError("An operation is not implemented: " + ("Type " + component.getType() + " is not a supported component"));
}
container = new Container(this, 0, linearLayout, component);
break;
case 1536891843:
if (!type.equals(WorkflowModule.Properties.Section.Component.Type.CHECKBOX)) {
throw new NotImplementedError("An operation is not implemented: " + ("Type " + component.getType() + " is not a supported component"));
}
container = new Checkbox(this, linearLayout, component);
break;
case 1674318617:
if (!type.equals(WorkflowModule.Properties.Section.Component.Type.DIVIDER)) {
throw new NotImplementedError("An operation is not implemented: " + ("Type " + component.getType() + " is not a supported component"));
}
container = new Divider(this, linearLayout, component);
break;
default:
throw new NotImplementedError("An operation is not implemented: " + ("Type " + component.getType() + " is not a supported component"));
}
arrayList2.add(container);
}
return arrayList2;
}
@NotNull
public final ContentResolver getContentResolver$hyperkyc_release() {
Object value = this.contentResolver$delegate.getValue();
Intrinsics.checkNotNullExpressionValue(value, "<get-contentResolver>(...)");
return (ContentResolver) value;
}
public final String getDateContentWithFormat$hyperkyc_release(@NotNull WorkflowModule.Properties.Section.Component component) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String str;
List groupValues;
String str2;
String className2;
Intrinsics.checkNotNullParameter(component, "<this>");
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = component.getClass().getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str3 = component.getId() + ".getDateContentWithFormat() called";
if (str3 == null) {
str3 = "null ";
}
sb.append(str3);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str4 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str4, "packageName");
if (StringsKt.contains$default(str4, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str5 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = WorkflowModule.Properties.Section.Component.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str5);
if (matcher2.find()) {
str5 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str5, "replaceAll(\"\")");
}
if (str5.length() > 23 && Build.VERSION.SDK_INT < 26) {
str5 = str5.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str5, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str6 = component.getId() + ".getDateContentWithFormat() called";
if (str6 == null) {
str6 = "null ";
}
sb2.append(str6);
sb2.append(' ');
sb2.append("");
Log.println(3, str5, sb2.toString());
}
}
}
if (component.getContent() == null || component.getFormat() == null) {
return null;
}
String injectFromVariables$hyperkyc_release$default = injectFromVariables$hyperkyc_release$default(this, component.getContent(), false, 1, null);
MatchResult find$default = Regex.find$default(new Regex("[^\\w{}]+"), injectFromVariables$hyperkyc_release$default, 0, 2, (Object) null);
if (find$default == null || (str = find$default.getValue()) == null) {
str = "";
}
List split$default = StringsKt.split$default(injectFromVariables$hyperkyc_release$default, new String[]{str}, false, 0, 6, (Object) null);
List split$default2 = StringsKt.split$default(component.getFormat(), new String[]{str}, false, 0, 6, (Object) null);
List list = split$default;
ArrayList arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(list, 10));
int i = 0;
for (Object obj : list) {
int i2 = i + 1;
if (i < 0) {
CollectionsKt.throwIndexOverflow();
}
String str7 = (String) obj;
if (StringsKt.startsWith$default(str7, "{{", false, 2, (Object) null)) {
MatchResult find$default2 = Regex.find$default(new Regex("\\{\\{(\\d+)\\}\\}"), str7, 0, 2, (Object) null);
str7 = ((String) split$default2.get(i)).substring(0, kotlin.ranges.l.h((find$default2 == null || (groupValues = find$default2.getGroupValues()) == null || (str2 = (String) groupValues.get(1)) == null) ? 0 : Integer.parseInt(str2), ((String) split$default2.get(i)).length()));
Intrinsics.checkNotNullExpressionValue(str7, "this as java.lang.String…ing(startIndex, endIndex)");
}
arrayList.add(str7);
i = i2;
}
return CollectionsKt.joinToString$default(arrayList, str, (CharSequence) null, (CharSequence) null, 0, (CharSequence) null, (Function1) null, 62, (Object) null);
}
public final Typeface getDescTextFont$hyperkyc_release() {
return getFont(new Function1<UIFont, String>() {
@NotNull
public final String invoke(@NotNull UIFont uIFont) {
Intrinsics.checkNotNullParameter(uIFont, "$this$getFont");
String descriptionTextFont = uIFont.getDescriptionTextFont();
Intrinsics.checkNotNullExpressionValue(descriptionTextFont, "descriptionTextFont");
return descriptionTextFont;
}
}, new Function1<UIFontWeight, String>() {
@NotNull
public final String invoke(@NotNull UIFontWeight uIFontWeight) {
Intrinsics.checkNotNullParameter(uIFontWeight, "$this$getFont");
String descriptionTextWeight = uIFontWeight.getDescriptionTextWeight();
Intrinsics.checkNotNullExpressionValue(descriptionTextWeight, "descriptionTextWeight");
return descriptionTextWeight;
}
});
}
@NotNull
public final DynamicFormUtils getDynamicFormUtils$hyperkyc_release() {
return (DynamicFormUtils) this.dynamicFormUtils$delegate.getValue();
}
@NotNull
public final FormVM getFormVM$hyperkyc_release() {
return (FormVM) this.formVM$delegate.getValue();
}
@NotNull
public final MainVM getMainVM$hyperkyc_release() {
return (MainVM) this.mainVM$delegate.getValue();
}
@NotNull
public final String getModuleId$hyperkyc_release() {
return (String) this.moduleId$delegate.getValue();
}
public final int getPrimaryBtnBgColor$hyperkyc_release() {
return Color.parseColor(HyperSnapBridgeKt.getUiConfigUtil().getConfig().getColors().getPrimaryButtonBackgroundColor());
}
public final Typeface getPrimaryButtonFont$hyperkyc_release() {
return getFont(new Function1<UIFont, String>() {
@NotNull
public final String invoke(@NotNull UIFont uIFont) {
Intrinsics.checkNotNullParameter(uIFont, "$this$getFont");
String primaryButtonTextFont = uIFont.getPrimaryButtonTextFont();
Intrinsics.checkNotNullExpressionValue(primaryButtonTextFont, "primaryButtonTextFont");
return primaryButtonTextFont;
}
}, new Function1<UIFontWeight, String>() {
@NotNull
public final String invoke(@NotNull UIFontWeight uIFontWeight) {
Intrinsics.checkNotNullParameter(uIFontWeight, "$this$getFont");
String primaryButtonTextWeight = uIFontWeight.getPrimaryButtonTextWeight();
Intrinsics.checkNotNullExpressionValue(primaryButtonTextWeight, "primaryButtonTextWeight");
return primaryButtonTextWeight;
}
});
}
public final int getSubtitleTextColor$hyperkyc_release() {
return Color.parseColor(HyperSnapBridgeKt.getUiConfigUtil().getConfig().getColors().getDescriptionTextColor());
}
public final int getTitleTextColor$hyperkyc_release() {
return Color.parseColor(HyperSnapBridgeKt.getUiConfigUtil().getConfig().getColors().getTitleTextColor());
}
public final Typeface getTitleTextFont$hyperkyc_release() {
return getFont(new Function1<UIFont, String>() {
@NotNull
public final String invoke(@NotNull UIFont uIFont) {
Intrinsics.checkNotNullParameter(uIFont, "$this$getFont");
String titleTextFont = uIFont.getTitleTextFont();
Intrinsics.checkNotNullExpressionValue(titleTextFont, "titleTextFont");
return titleTextFont;
}
}, new Function1<UIFontWeight, String>() {
@NotNull
public final String invoke(@NotNull UIFontWeight uIFontWeight) {
Intrinsics.checkNotNullParameter(uIFontWeight, "$this$getFont");
String titleTextWeight = uIFontWeight.getTitleTextWeight();
Intrinsics.checkNotNullExpressionValue(titleTextWeight, "titleTextWeight");
return titleTextWeight;
}
});
}
@NotNull
public final String injectFromVariables$hyperkyc_release(@NotNull String str, boolean z) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
Intrinsics.checkNotNullParameter(str, "<this>");
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = str.getClass().getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str2 = str + ".injectFromVariables() called with: addQuotesIfEmpty = " + z;
if (str2 == null) {
str2 = "null ";
}
sb.append(str2);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str3 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str3, "packageName");
if (StringsKt.contains$default(str3, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str4 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = str.getClass().getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str4);
if (matcher2.find()) {
str4 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str4, "replaceAll(\"\")");
}
if (str4.length() > 23 && Build.VERSION.SDK_INT < 26) {
str4 = str4.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str4, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str5 = str + ".injectFromVariables() called with: addQuotesIfEmpty = " + z;
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
Log.println(3, str4, sb2.toString());
}
}
}
return getMainVM$hyperkyc_release().injectFromVariables$hyperkyc_release(str, z);
}
public final void makeSecure$hyperkyc_release(TextInputLayout textInputLayout, boolean z, int i) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
Intrinsics.checkNotNullParameter(textInputLayout, "<this>");
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = textInputLayout.getClass().getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = textInputLayout + ".makeSecure() called with: secure = " + z + ", etId = " + i;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = textInputLayout.getClass().getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = textInputLayout + ".makeSecure() called with: secure = " + z + ", etId = " + i;
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
if (z) {
textInputLayout.findViewById(i).setTransformationMethod(PasswordTransformationMethod.getInstance());
textInputLayout.setEndIconMode(1);
}
}
public void onDestroy() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = FormFragment.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("onDestroy() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = FormFragment.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "onDestroy() called ");
}
}
}
destroyRunningCountdownTimers();
super.onDestroy();
}
public void onDestroyView() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = FormFragment.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("onDestroyView() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = FormFragment.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "onDestroyView() called ");
}
}
}
destroyRunningCountdownTimers();
super.onDestroyView();
}
public void onViewCreated(@NotNull View view, Bundle bundle) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
Intrinsics.checkNotNullParameter(view, "view");
super.onViewCreated(view, bundle);
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = FormFragment.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = "onViewCreated() called with: view = " + view + ", savedInstanceState = " + bundle;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = kotlin.g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = kotlin.g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = kotlin.g.b;
b = kotlin.g.b(kotlin.h.a(th));
}
if (kotlin.g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = FormFragment.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = "onViewCreated() called with: view = " + view + ", savedInstanceState = " + bundle;
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
initViews();
}
public final void setTitleHintAndHelperText$hyperkyc_release(com.google.android.material.textfield.TextInputLayout r10, co.hyperverge.hyperkyc.data.models.WorkflowModule.Properties.Section.Component r11, co.hyperverge.hyperkyc.data.models.WorkflowModule.Properties.Section.Component.Handler.ReloadProperties r12) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.form.FormFragment.setTitleHintAndHelperText$hyperkyc_release(com.google.android.material.textfield.TextInputLayout, co.hyperverge.hyperkyc.data.models.WorkflowModule$Properties$Section$Component, co.hyperverge.hyperkyc.data.models.WorkflowModule$Properties$Section$Component$Handler$ReloadProperties):void");
}
}