正在查看: SpeedCash v6.5.1482 应用的 HomeFragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: SpeedCash v6.5.1482 应用的 HomeFragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.bm.sc.auth.ui.home;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.net.http.SslError;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.text.method.HideReturnsTransformationMethod;
import android.text.method.PasswordTransformationMethod;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.SslErrorHandler;
import android.webkit.WebResourceError;
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.activity.ComponentActivity;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.cardview.widget.CardView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.constraintlayout.widget.Group;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.room.FtsOptions;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import com.bm.sc.auth.ui.home.HomeFragment;
import com.bm.sc.auth.ui.points.PointsActivity;
import com.bm.sc.bebasbayar.R;
import com.bm.sc.bebasbayar.adapter.BaseAdapter;
import com.bm.sc.bebasbayar.adapter.entity.BannerEntity;
import com.bm.sc.bebasbayar.adapter.entity.DocumentEntity;
import com.bm.sc.bebasbayar.adapter.entity.MenuListEntity;
import com.bm.sc.bebasbayar.adapter.entity.PromoEntity;
import com.bm.sc.bebasbayar.adapter.entity.TrainScheduleEntity;
import com.bm.sc.bebasbayar.adapter.entity.asap.AsapDetailProductEntity;
import com.bm.sc.bebasbayar.adapter.entity.asap.AsapItemDashboardEntity;
import com.bm.sc.bebasbayar.adapter.grid.HomeGridAdapter;
import com.bm.sc.bebasbayar.adapter.list.AsapExpandAdapter;
import com.bm.sc.bebasbayar.adapter.list.BannerAdapter;
import com.bm.sc.bebasbayar.adapter.list.QuickNewAdapterV3;
import com.bm.sc.bebasbayar.adapter.list.model.AsapExpandModel;
import com.bm.sc.bebasbayar.handler.FirebaseProcessor;
import com.bm.sc.bebasbayar.handler.MessageComposer;
import com.bm.sc.bebasbayar.handler.MessageSender;
import com.bm.sc.bebasbayar.handler.QRISO;
import com.bm.sc.bebasbayar.helper.Affinity;
import com.bm.sc.bebasbayar.helper.AsapHelper;
import com.bm.sc.bebasbayar.helper.AsapTransaction;
import com.bm.sc.bebasbayar.helper.ShowcaseHelper;
import com.bm.sc.bebasbayar.iface.AdapterInvoker;
import com.bm.sc.bebasbayar.iface.BBCallback;
import com.bm.sc.bebasbayar.iface.MessageProcess;
import com.bm.sc.bebasbayar.message.BaseMessage;
import com.bm.sc.bebasbayar.message.BusMessage;
import com.bm.sc.bebasbayar.message.api.APIMessageWrapper;
import com.bm.sc.bebasbayar.message.api.PromosiMessage;
import com.bm.sc.bebasbayar.message.mp.DetailMessage;
import com.bm.sc.bebasbayar.service.BBFirebaseRegisterService;
import com.bm.sc.bebasbayar.setting.ApiConfig;
import com.bm.sc.bebasbayar.setting.MenuConfig;
import com.bm.sc.bebasbayar.setting.session.AppSession;
import com.bm.sc.bebasbayar.setting.session.ConfigSession;
import com.bm.sc.bebasbayar.setting.session.DataSession;
import com.bm.sc.bebasbayar.ui.activity.OneKlickPayActivity;
import com.bm.sc.bebasbayar.ui.activity.OtherHomeMenuActivity;
import com.bm.sc.bebasbayar.ui.activity.SurpriseActivity;
import com.bm.sc.bebasbayar.ui.activity.account.DetailAccountActivity;
import com.bm.sc.bebasbayar.ui.activity.account.KYCActivity;
import com.bm.sc.bebasbayar.ui.activity.account.KYCNewKtpActivity;
import com.bm.sc.bebasbayar.ui.activity.asap.AsapAddMoreActivity;
import com.bm.sc.bebasbayar.ui.activity.asap.AsapDataActivity;
import com.bm.sc.bebasbayar.ui.activity.cash.CashWithdrawActivity;
import com.bm.sc.bebasbayar.ui.activity.cash.Deposit2Activity;
import com.bm.sc.bebasbayar.ui.activity.cash.DepositActivity;
import com.bm.sc.bebasbayar.ui.activity.cash.NewQRScannerActivity;
import com.bm.sc.bebasbayar.ui.activity.cash.TransferToAllActivity;
import com.bm.sc.bebasbayar.ui.activity.cash.TransferWithdrawActivity;
import com.bm.sc.bebasbayar.ui.activity.info.OpenWebViewActivity;
import com.bm.sc.bebasbayar.ui.activity.info.PromoActivity;
import com.bm.sc.bebasbayar.ui.activity.info.PromoNewActivity;
import com.bm.sc.bebasbayar.ui.fragment.BaseDialogFragment;
import com.bm.sc.bebasbayar.ui.fragment.home.ProfileFragment;
import com.bm.sc.util.android.Compat;
import com.bm.sc.util.android.Connections;
import com.bm.sc.util.android.Device;
import com.bm.sc.util.android.JSInterface;
import com.bm.sc.util.common.Var;
import com.bm.sc.util.format.DateTime;
import com.bm.sc.util.format.Locales;
import com.bm.sc.util.format.Mapper;
import com.bm.sc.util.format.RSA;
import com.bumptech.glide.Glide;
import com.bumptech.glide.RequestBuilder;
import com.bumptech.glide.RequestManager;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.request.RequestOptions;
import com.google.android.material.card.MaterialCardView;
import com.orhanobut.dialogplus.DialogPlus;
import com.orhanobut.dialogplus.OnCancelListener;
import com.orhanobut.dialogplus.ViewHolder;
import com.synnapps.carouselview.CarouselView;
import com.synnapps.carouselview.ImageClickListener;
import com.synnapps.carouselview.ViewListener;
import dagger.hilt.android.AndroidEntryPoint;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.regex.Pattern;
import kotlin.Deprecated;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.text.Regex;
import kotlin.text.StringsKt__StringsKt;
import org.apache.commons.text.WordUtils;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Metadata(d1 = {"\u0000Ô\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000f\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u001f\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\f\b\u0007\u0018\u0000 ê\u00012\u00020\u00012\n\u0012\u0006\u0012\u0004\u0018\u00010\u00030\u00022\u00020\u00042\u00020\u0005:\u0002ê\u0001B\t¢\u0006\u0006\bè\u0001\u0010é\u0001J&\u0010\r\u001a\u0004\u0018\u00010\f2\u0006\u0010\u0007\u001a\u00020\u00062\b\u0010\t\u001a\u0004\u0018\u00010\b2\b\u0010\u000b\u001a\u0004\u0018\u00010\nH\u0016J\u0010\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u000f\u001a\u00020\u000eH\u0007J\b\u0010\u0012\u001a\u00020\u0010H\u0016J\b\u0010\u0013\u001a\u00020\u0010H\u0016J\b\u0010\u0014\u001a\u00020\u0010H\u0016J\u0006\u0010\u0015\u001a\u00020\u0010J\u0010\u0010\u0017\u001a\u00020\u00102\u0006\u0010\u0016\u001a\u00020\fH\u0016J,\u0010\u001d\u001a\u00020\u00102\u0010\u0010\u0019\u001a\f\u0012\u0002\b\u0003\u0012\u0002\b\u0003\u0018\u00010\u00182\b\u0010\u001a\u001a\u0004\u0018\u00010\u00032\u0006\u0010\u001c\u001a\u00020\u001bH\u0016J\b\u0010\u001f\u001a\u00020\u001eH\u0016J\u0018\u0010#\u001a\u00020\"2\u0006\u0010 \u001a\u00020\f2\u0006\u0010\u000f\u001a\u00020!H\u0016J\u0006\u0010$\u001a\u00020\u0010J\u0006\u0010%\u001a\u00020\u0010J\u0010\u0010'\u001a\u00020\u00102\u0006\u0010&\u001a\u00020\"H\u0017J\b\u0010(\u001a\u00020\u0010H\u0016J\u0010\u0010)\u001a\u00020\u00102\u0006\u0010\u0016\u001a\u00020\fH\u0002J\u0010\u0010*\u001a\u00020\u00102\u0006\u0010\u0016\u001a\u00020\fH\u0002J\b\u0010+\u001a\u00020\u0010H\u0002J\u0010\u0010.\u001a\u00020\u00102\u0006\u0010-\u001a\u00020,H\u0002J\u0010\u0010/\u001a\u00020\u00102\u0006\u0010-\u001a\u00020,H\u0002J\u0010\u00100\u001a\u00020\u00102\u0006\u0010\u0016\u001a\u00020\fH\u0003J \u00105\u001a\u00020\u00102\u0016\u00104\u001a\u0012\u0012\u0004\u0012\u00020201j\b\u0012\u0004\u0012\u000202`3H\u0002J\b\u00106\u001a\u00020\u0010H\u0002J\u001a\u0010;\u001a\u00020\"2\u0006\u00108\u001a\u0002072\b\u0010:\u001a\u0004\u0018\u000109H\u0002J\u001a\u0010<\u001a\u00020\"2\b\u0010:\u001a\u0004\u0018\u0001092\u0006\u0010\u001a\u001a\u00020\u0003H\u0002J\u0010\u0010>\u001a\u00020\u00102\u0006\u0010=\u001a\u000207H\u0002J\b\u0010?\u001a\u00020\u0010H\u0002J\b\u0010@\u001a\u00020\u0010H\u0002J\u0010\u0010B\u001a\u00020\u00102\u0006\u0010A\u001a\u00020\"H\u0002R\u001f\u0010H\u001a\n C*\u0004\u0018\u000107078\u0006¢\u0006\f\n\u0004\bD\u0010E\u001a\u0004\bF\u0010GR\"\u0010L\u001a\u0010\u0012\f\u0012\n C*\u0004\u0018\u00010\u00030\u00030I8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bJ\u0010KR\"\u0010O\u001a\u0010\u0012\f\u0012\n C*\u0004\u0018\u00010M0M0I8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bN\u0010KR\"\u0010T\u001a\u0002078\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bP\u0010E\u001a\u0004\bQ\u0010G\"\u0004\bR\u0010SR\"\u0010X\u001a\u0002078\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bU\u0010E\u001a\u0004\bV\u0010G\"\u0004\bW\u0010SR:\u0010_\u001a\u001a\u0012\u0006\u0012\u0004\u0018\u00010,\u0018\u000101j\f\u0012\u0006\u0012\u0004\u0018\u00010,\u0018\u0001`38\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bY\u0010Z\u001a\u0004\b[\u0010\\\"\u0004\b]\u0010^R\"\u0010b\u001a\u00020\"8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b`\u0010a\u001a\u0004\bb\u0010c\"\u0004\bd\u0010eR\"\u0010g\u001a\u00020\"8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bf\u0010a\u001a\u0004\bg\u0010c\"\u0004\bh\u0010eR\"\u0010l\u001a\u00020\"8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bi\u0010a\u001a\u0004\bj\u0010c\"\u0004\bk\u0010eR$\u0010t\u001a\u0004\u0018\u00010m8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bn\u0010o\u001a\u0004\bp\u0010q\"\u0004\br\u0010sR$\u0010|\u001a\u0004\u0018\u00010u8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bv\u0010w\u001a\u0004\bx\u0010y\"\u0004\bz\u0010{R\u0019\u0010\u0080\u0001\u001a\u0004\u0018\u00010}8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b~\u0010\u007fR\u001c\u0010\u0084\u0001\u001a\u0005\u0018\u00010\u0081\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b\u0082\u0001\u0010\u0083\u0001R\u001b\u0010\u0087\u0001\u001a\u0004\u0018\u00010\f8\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b\u0085\u0001\u0010\u0086\u0001R\u001a\u0010\u0088\u0001\u001a\u0004\u0018\u00010\f8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b \u0010\u0086\u0001R\u001b\u0010\u008a\u0001\u001a\u0004\u0018\u00010\f8\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b\u0089\u0001\u0010\u0086\u0001R\u001c\u0010\u008c\u0001\u001a\u0005\u0018\u00010\u0081\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b\u008b\u0001\u0010\u0083\u0001R\u001c\u0010\u0090\u0001\u001a\u0005\u0018\u00010\u008d\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b\u008e\u0001\u0010\u008f\u0001R\u001c\u0010\u0094\u0001\u001a\u0005\u0018\u00010\u0091\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b\u0092\u0001\u0010\u0093\u0001R\u001c\u0010\u0098\u0001\u001a\u0005\u0018\u00010\u0095\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b\u0096\u0001\u0010\u0097\u0001R\u001c\u0010\u009c\u0001\u001a\u0005\u0018\u00010\u0099\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b\u009a\u0001\u0010\u009b\u0001R\u001c\u0010 \u0001\u001a\u0005\u0018\u00010\u009d\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b\u009e\u0001\u0010\u009f\u0001R\u001b\u0010£\u0001\u001a\u0005\u0018\u00010¡\u00018\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b;\u0010¢\u0001R\u001b\u0010¦\u0001\u001a\u0005\u0018\u00010¤\u00018\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b/\u0010¥\u0001R(\u0010¨\u0001\u001a\u0012\u0012\u0004\u0012\u00020201j\b\u0012\u0004\u0012\u000202`38\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b§\u0001\u0010ZR\u0018\u0010¬\u0001\u001a\u00030©\u00018\u0002X\u0082\u0004¢\u0006\b\n\u0006\bª\u0001\u0010«\u0001R(\u0010®\u0001\u001a\u0012\u0012\u0004\u0012\u00020M01j\b\u0012\u0004\u0012\u00020M`38\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b\u00ad\u0001\u0010ZR\u001c\u0010²\u0001\u001a\u0005\u0018\u00010¯\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b°\u0001\u0010±\u0001R-\u0010´\u0001\u001a\u0018\u0012\u0005\u0012\u00030³\u0001\u0018\u000101j\u000b\u0012\u0005\u0012\u00030³\u0001\u0018\u0001`38\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b@\u0010ZR.\u0010¶\u0001\u001a\u0018\u0012\u0005\u0012\u00030³\u0001\u0018\u000101j\u000b\u0012\u0005\u0012\u00030³\u0001\u0018\u0001`38\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\bµ\u0001\u0010ZR\u001c\u0010º\u0001\u001a\u0005\u0018\u00010·\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b¸\u0001\u0010¹\u0001R\u001b\u0010»\u0001\u001a\u0005\u0018\u00010·\u00018\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b>\u0010¹\u0001R+\u0010¼\u0001\u001a\u0016\u0012\u0004\u0012\u00020,\u0018\u000101j\n\u0012\u0004\u0012\u00020,\u0018\u0001`38\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b?\u0010ZR\u001a\u0010¾\u0001\u001a\u0004\u0018\u00010m8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b½\u0001\u0010oR\u001c\u0010Â\u0001\u001a\u0005\u0018\u00010¿\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\bÀ\u0001\u0010Á\u0001R\u001c\u0010Æ\u0001\u001a\u0005\u0018\u00010Ã\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\bÄ\u0001\u0010Å\u0001R\u001a\u0010È\u0001\u001a\u0004\u0018\u00010\n8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b+\u0010Ç\u0001R.\u0010Ë\u0001\u001a\u0018\u0012\u0005\u0012\u00030É\u0001\u0018\u000101j\u000b\u0012\u0005\u0012\u00030É\u0001\u0018\u0001`38\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\bÊ\u0001\u0010ZR7\u0010Ð\u0001\u001a \u0012\u0004\u0012\u000207\u0012\u0004\u0012\u0002070Ì\u0001j\u000f\u0012\u0004\u0012\u000207\u0012\u0004\u0012\u000207`Í\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\bÎ\u0001\u0010Ï\u0001R\u0019\u0010Ñ\u0001\u001a\u0004\u0018\u0001078\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b)\u0010ER\u001a\u0010Ó\u0001\u001a\u0004\u0018\u00010u8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\bÒ\u0001\u0010wR\u001b\u0010Ö\u0001\u001a\u0005\u0018\u00010Ô\u00018\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b5\u0010Õ\u0001R\u001c\u0010Ú\u0001\u001a\u0005\u0018\u00010×\u00018\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\bØ\u0001\u0010Ù\u0001R\u001b\u0010Û\u0001\u001a\u0005\u0018\u00010\u0081\u00018\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b*\u0010\u0083\u0001R\u0019\u0010Þ\u0001\u001a\u00030Ü\u00018\u0002@\u0002X\u0082.¢\u0006\u0007\n\u0005\ba\u0010Ý\u0001R\u001a\u0010â\u0001\u001a\u00030ß\u00018\u0002@\u0002X\u0082.¢\u0006\b\n\u0006\bà\u0001\u0010á\u0001R\u0014\u0010å\u0001\u001a\u00020\u00108F¢\u0006\b\u001a\u0006\bã\u0001\u0010ä\u0001R\u0017\u0010æ\u0001\u001a\u00020\u00108BX\u0082\u0004¢\u0006\b\u001a\u0006\bÀ\u0001\u0010ä\u0001R\u0017\u0010ç\u0001\u001a\u00020\u00108BX\u0082\u0004¢\u0006\b\u001a\u0006\bÄ\u0001\u0010ä\u0001¨\u0006ë\u0001"}, d2 = {"Lcom/bm/sc/kotlin/ui/home/HomeFragment;", "Lcom/bm/sc/bebasbayar/ui/fragment/BaseFragment;", "Lcom/bm/sc/bebasbayar/iface/AdapterInvoker;", "Lcom/bm/sc/bebasbayar/adapter/entity/MenuListEntity;", "Landroid/view/View$OnClickListener;", "Landroid/view/View$OnTouchListener;", "Landroid/view/LayoutInflater;", "inflater", "Landroid/view/ViewGroup;", "container", "Landroid/os/Bundle;", "savedInstanceState", "Landroid/view/View;", "onCreateView", "Lcom/bm/sc/bebasbayar/message/BusMessage;", "event", "", "onMessageEvent", "onStart", "onStop", "onResume", "setBalanceText", "view", "onClick", "Lcom/bm/sc/bebasbayar/adapter/BaseAdapter;", "adapter", "menuListEntity", "", "position", "adapterResult", "Landroid/app/Activity;", "getInvokerActivity", "v", "Landroid/view/MotionEvent;", "", "onTouch", "refreshDataGroupProductEmoneyGame", "fetchDocumentStatus", "isVisibleToUser", "setUserVisibleHint", "onDestroy", "U", "Y", "R", "Lcom/bm/sc/bebasbayar/adapter/entity/asap/AsapItemDashboardEntity;", "asapItemDashboardEntity", "q0", TrainScheduleEntity.CLASS_EXECUTIVE, "l0", "Ljava/util/ArrayList;", "Lcom/bm/sc/bebasbayar/adapter/entity/PromoEntity;", "Lkotlin/collections/ArrayList;", "selectedImages", "W", "k0", "", "uri", "Landroid/content/Context;", "context", "D", "p0", "documentStatus", "M", "N", "J", "isShow", "n0", "kotlin.jvm.PlatformType", "h", "Ljava/lang/String;", "getTAG", "()Ljava/lang/String;", "TAG", "Ljava/util/Comparator;", "i", "Ljava/util/Comparator;", "comparatorMenuHome", "Lcom/bm/sc/bebasbayar/adapter/entity/BannerEntity;", "j", "comparatorBanner", "k", "getUrl_icon", "setUrl_icon", "(Ljava/lang/String;)V", "url_icon", "l", "getUrl_web", "setUrl_web", "url_web", "m", "Ljava/util/ArrayList;", "getLisDataDitampilkan", "()Ljava/util/ArrayList;", "setLisDataDitampilkan", "(Ljava/util/ArrayList;)V", "lisDataDitampilkan", "n", "Z", "isHomeExpandedAdapter", "()Z", "setHomeExpandedAdapter", "(Z)V", "o", "isSudahProsesKyc", "setSudahProsesKyc", "p", "getSudahTahuQuickPayment", "setSudahTahuQuickPayment", "sudahTahuQuickPayment", "Landroidx/recyclerview/widget/RecyclerView;", "q", "Landroidx/recyclerview/widget/RecyclerView;", "getRv_promo", "()Landroidx/recyclerview/widget/RecyclerView;", "setRv_promo", "(Landroidx/recyclerview/widget/RecyclerView;)V", "rv_promo", "Landroidx/constraintlayout/widget/ConstraintLayout;", "r", "Landroidx/constraintlayout/widget/ConstraintLayout;", "getConstraintLayoutBaru", "()Landroidx/constraintlayout/widget/ConstraintLayout;", "setConstraintLayoutBaru", "(Landroidx/constraintlayout/widget/ConstraintLayout;)V", "constraintLayoutBaru", "Lcom/bm/sc/bebasbayar/adapter/grid/HomeGridAdapter;", "s", "Lcom/bm/sc/bebasbayar/adapter/grid/HomeGridAdapter;", "homeGridAdapter", "Landroid/widget/TextView;", "t", "Landroid/widget/TextView;", "sc_balance2", "u", "Landroid/view/View;", "tv_btn_promo_all", "iv_badge_notify", "w", "ic_chat_beb", "x", "ic_chat_l", "Landroidx/constraintlayout/widget/Group;", "y", "Landroidx/constraintlayout/widget/Group;", "homeChatBtn", "Lcom/bm/sc/bebasbayar/setting/session/AppSession;", "z", "Lcom/bm/sc/bebasbayar/setting/session/AppSession;", "appSession", "Lcom/bm/sc/bebasbayar/setting/session/DataSession;", "A", "Lcom/bm/sc/bebasbayar/setting/session/DataSession;", "dataSession", "Lcom/bm/sc/bebasbayar/setting/session/ConfigSession;", TrainScheduleEntity.CLASS_BUSSINESS, "Lcom/bm/sc/bebasbayar/setting/session/ConfigSession;", "configSession", "Landroid/widget/ImageView;", "C", "Landroid/widget/ImageView;", "lucky_game", "Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;", "Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;", "swipe_refresh_home", "Lcom/synnapps/carouselview/CarouselView;", "Lcom/synnapps/carouselview/CarouselView;", "carouselView", "F", "mImages", "Lcom/synnapps/carouselview/ViewListener;", "G", "Lcom/synnapps/carouselview/ViewListener;", "bannerBottomListener", "H", "mBannerEntity", "Lcom/bm/sc/bebasbayar/adapter/list/AsapExpandAdapter;", "I", "Lcom/bm/sc/bebasbayar/adapter/list/AsapExpandAdapter;", "asapExpandAdapter", "Lcom/bm/sc/bebasbayar/adapter/entity/asap/AsapDetailProductEntity;", "listProductEmoney", TrainScheduleEntity.CLASS_ECONOMY, "listProductGame", "Lcom/bm/sc/bebasbayar/helper/AsapHelper$WrapperReturnList;", "L", "Lcom/bm/sc/bebasbayar/helper/AsapHelper$WrapperReturnList;", "wrapGameResult", "wrapEmoneyResult", "asapNominalPulsa", "O", "rvQuickPayment", "Lcom/bm/sc/bebasbayar/adapter/list/QuickNewAdapterV3;", "P", "Lcom/bm/sc/bebasbayar/adapter/list/QuickNewAdapterV3;", "quickNewAdapter", "Lcom/bm/sc/bebasbayar/adapter/list/BannerAdapter;", "Q", "Lcom/bm/sc/bebasbayar/adapter/list/BannerAdapter;", "bannerAdapter", "Landroid/os/Bundle;", "edit_bundle", "Lcom/bm/sc/bebasbayar/adapter/entity/DocumentEntity;", "S", "arrayList", "Ljava/util/HashMap;", "Lkotlin/collections/HashMap;", "T", "Ljava/util/HashMap;", "data_uploads", "keterangan", "V", "constraintLayoutInfoKyc", "Lcom/google/android/material/card/MaterialCardView;", "Lcom/google/android/material/card/MaterialCardView;", "card_view_empty_asap", "Landroid/widget/LinearLayout;", "X", "Landroid/widget/LinearLayout;", "line_info_lucky", "tv_point_count", "Landroid/webkit/WebView;", "Landroid/webkit/WebView;", "wv_dashboard", "Landroidx/appcompat/widget/AppCompatTextView;", "a0", "Landroidx/appcompat/widget/AppCompatTextView;", "chg_warning_gratis", "getDataGroupProductEmoneyGame", "()Lkotlin/Unit;", "dataGroupProductEmoneyGame", BBFirebaseRegisterService.TOPIC_PROMO, "promo2", "<init>", "()V", "Companion", "app_release"}, k = 1, mv = {1, 8, 0})
@AndroidEntryPoint
@SourceDebugExtension({"SMAP\nHomeFragment.kt\nKotlin\n*S Kotlin\n*F\n+ 1 HomeFragment.kt\ncom/bm/sc/kotlin/ui/home/HomeFragment\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,1882:1\n1855#2,2:1883\n*S KotlinDebug\n*F\n+ 1 HomeFragment.kt\ncom/bm/sc/kotlin/ui/home/HomeFragment\n*L\n459#1:1883,2\n*E\n"})
public final class HomeFragment extends Hilt_HomeFragment implements AdapterInvoker<MenuListEntity>, View.OnTouchListener {
@NotNull
public static final Companion INSTANCE = new Companion(null);
@NotNull
public static final String b0 = ProfileFragment.POPULATED_DATA_UPL_KEY;
@NotNull
public static final String c0 = ProfileFragment.POPULATED_DATA_CODE_KEY;
@NotNull
public static final String d0 = ProfileFragment.POPULATED_DATA_STATE_KEY;
@NotNull
public static final String e0 = ProfileFragment.DOC_KET_KEY;
public static final Pattern f0 = Pattern.compile("(?i)((?:http|https|file):\\/\\/|(?:inline|data|about|chrome|javascript):)(.*)");
public static final int g0 = 12888;
@Nullable
public DataSession dataSession;
@Nullable
public ConfigSession configSession;
@Nullable
public ImageView lucky_game;
@Nullable
public SwipeRefreshLayout swipe_refresh_home;
@Nullable
public CarouselView carouselView;
@Nullable
public AsapExpandAdapter asapExpandAdapter;
@Nullable
public ArrayList<AsapDetailProductEntity> listProductEmoney;
@Nullable
public ArrayList<AsapDetailProductEntity> listProductGame;
@Nullable
public AsapHelper.WrapperReturnList wrapGameResult;
@Nullable
public AsapHelper.WrapperReturnList wrapEmoneyResult;
@Nullable
public ArrayList<AsapItemDashboardEntity> asapNominalPulsa;
@Nullable
public RecyclerView rvQuickPayment;
@Nullable
public QuickNewAdapterV3 quickNewAdapter;
@Nullable
public BannerAdapter bannerAdapter;
@Nullable
public Bundle edit_bundle;
@Nullable
public ArrayList<DocumentEntity> arrayList;
@Nullable
public String keterangan;
@Nullable
public ConstraintLayout constraintLayoutInfoKyc;
@Nullable
public MaterialCardView card_view_empty_asap;
@Nullable
public LinearLayout line_info_lucky;
@Nullable
public TextView tv_point_count;
public WebView wv_dashboard;
public AppCompatTextView chg_warning_gratis;
@Nullable
public ArrayList<AsapItemDashboardEntity> lisDataDitampilkan;
public boolean isSudahProsesKyc;
public boolean sudahTahuQuickPayment;
@Nullable
public RecyclerView rv_promo;
@Nullable
public ConstraintLayout constraintLayoutBaru;
@Nullable
public HomeGridAdapter homeGridAdapter;
@Nullable
public TextView sc_balance2;
@Nullable
public View tv_btn_promo_all;
@Nullable
public View iv_badge_notify;
@Nullable
public View ic_chat_beb;
@Nullable
public TextView ic_chat_l;
@Nullable
public Group homeChatBtn;
@Nullable
public AppSession appSession;
public final String TAG = HomeFragment.class.getSimpleName();
@NotNull
public final Comparator<MenuListEntity> comparatorMenuHome = new Comparator() {
@Override
public final int compare(Object obj, Object obj2) {
int L;
L = HomeFragment.L((MenuListEntity) obj, (MenuListEntity) obj2);
return L;
}
};
@NotNull
public final Comparator<BannerEntity> comparatorBanner = new Comparator() {
@Override
public final int compare(Object obj, Object obj2) {
int K;
K = HomeFragment.K((BannerEntity) obj, (BannerEntity) obj2);
return K;
}
};
@NotNull
public String url_icon = RSA.PUBLIC_KEY_FILE;
@NotNull
public String url_web = "";
public boolean isHomeExpandedAdapter = true;
@NotNull
public ArrayList<PromoEntity> mImages = new ArrayList<>();
@NotNull
public final ViewListener bannerBottomListener = new ViewListener() {
public final View setViewForPosition(int i) {
View I;
I = HomeFragment.I(HomeFragment.this, i);
return I;
}
};
@NotNull
public ArrayList<BannerEntity> mBannerEntity = new ArrayList<>();
@NotNull
public HashMap<String, String> data_uploads = new HashMap<>();
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\u0005\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u001f\u0010 J\u001a\u0010\u0007\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0002J\u0012\u0010\n\u001a\u00020\u00062\b\u0010\t\u001a\u0004\u0018\u00010\bH\u0002R\u001a\u0010\f\u001a\u00020\u000b8\u0006X\u0086D¢\u0006\f\n\u0004\b\f\u0010\r\u001a\u0004\b\u000e\u0010\u000fR\u001a\u0010\u0010\u001a\u00020\u000b8\u0006X\u0086D¢\u0006\f\n\u0004\b\u0010\u0010\r\u001a\u0004\b\u0011\u0010\u000fR\u001a\u0010\u0012\u001a\u00020\u000b8\u0006X\u0086D¢\u0006\f\n\u0004\b\u0012\u0010\r\u001a\u0004\b\u0013\u0010\u000fR\u001a\u0010\u0014\u001a\u00020\u000b8\u0006X\u0086D¢\u0006\f\n\u0004\b\u0014\u0010\r\u001a\u0004\b\u0015\u0010\u000fR\u001f\u0010\u0018\u001a\n \u0017*\u0004\u0018\u00010\u00160\u00168\u0006¢\u0006\f\n\u0004\b\u0018\u0010\u0019\u001a\u0004\b\u001a\u0010\u001bR\u0014\u0010\u001d\u001a\u00020\u001c8\u0002X\u0082D¢\u0006\u0006\n\u0004\b\u001d\u0010\u001e¨\u0006!"}, d2 = {"Lcom/bm/sc/kotlin/ui/home/HomeFragment$Companion;", "", "Landroid/content/Context;", "context", "Landroid/content/Intent;", "intent", "", "b", "Landroid/content/IntentFilter;", "filter", "a", "", "POPULATED_DATA_UPL_KEY", "Ljava/lang/String;", "getPOPULATED_DATA_UPL_KEY", "()Ljava/lang/String;", "POPULATED_DATA_CODE_KEY", "getPOPULATED_DATA_CODE_KEY", "POPULATED_DATA_STATE_KEY", "getPOPULATED_DATA_STATE_KEY", "DOC_KET_KEY", "getDOC_KET_KEY", "Ljava/util/regex/Pattern;", "kotlin.jvm.PlatformType", "BROWSER_URI_SCHEMA", "Ljava/util/regex/Pattern;", "getBROWSER_URI_SCHEMA", "()Ljava/util/regex/Pattern;", "", "DETAIL_DOCUMENT_RESULT_CODE", "I", "<init>", "()V", "app_release"}, k = 1, mv = {1, 8, 0})
public static final class Companion {
public Companion() {
}
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final boolean a(IntentFilter filter) {
return filter == null || (filter.countDataAuthorities() == 0 && filter.countDataPaths() == 0);
}
public final boolean b(Context context, Intent intent) {
Intrinsics.checkNotNull(context);
List<ResolveInfo> queryIntentActivities = context.getPackageManager().queryIntentActivities(intent, 64);
Intrinsics.checkNotNullExpressionValue(queryIntentActivities, "pm.queryIntentActivities…LVED_FILTER\n )");
if (queryIntentActivities.size() == 0) {
return false;
}
Iterator<ResolveInfo> it = queryIntentActivities.iterator();
while (it.hasNext()) {
if (!a(it.next().filter)) {
return true;
}
}
return false;
}
public final Pattern getBROWSER_URI_SCHEMA() {
return HomeFragment.f0;
}
@NotNull
public final String getDOC_KET_KEY() {
return HomeFragment.e0;
}
@NotNull
public final String getPOPULATED_DATA_CODE_KEY() {
return HomeFragment.c0;
}
@NotNull
public final String getPOPULATED_DATA_STATE_KEY() {
return HomeFragment.d0;
}
@NotNull
public final String getPOPULATED_DATA_UPL_KEY() {
return HomeFragment.b0;
}
}
public static final void F(final HomeFragment homeFragment, final AsapItemDashboardEntity asapItemDashboardEntity) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
Intrinsics.checkNotNullParameter(asapItemDashboardEntity, "$asapItemDashboardEntity");
Affinity.confirm(homeFragment.getActivity(), homeFragment.getString(R.string.title_confirm), "Produk sudah tidak tersedia, hapus dari daftar?", new BBCallback() {
@Override
public final void do_callback(int i, Object obj) {
HomeFragment.G(HomeFragment.this, asapItemDashboardEntity, i, ((Boolean) obj).booleanValue());
}
});
}
public static final void G(final HomeFragment homeFragment, AsapItemDashboardEntity asapItemDashboardEntity, int i, boolean z) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
Intrinsics.checkNotNullParameter(asapItemDashboardEntity, "$asapItemDashboardEntity");
if (z) {
ComponentActivity activity = homeFragment.getActivity();
AppSession appSession = homeFragment.appSession;
String idBillingItems = asapItemDashboardEntity.getIdBillingItems();
Intrinsics.checkNotNullExpressionValue(idBillingItems, "asapItemDashboardEntity.getIdBillingItems()");
AsapHelper.deleteAsapMenu(activity, appSession, Integer.parseInt(idBillingItems), new BBCallback() {
@Override
public final void do_callback(int i2, Object obj) {
HomeFragment.H(HomeFragment.this, i2, (Boolean) obj);
}
});
}
}
public static final void H(HomeFragment homeFragment, int i, Boolean bool) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
if (i == AsapHelper.CALLBACK_SUCCESS) {
homeFragment.R();
} else if (i == AsapHelper.CALLBACK_NOT_SUCCESS) {
Affinity.info(homeFragment.getActivity(), false, "Mohon Maaf Tidak dapat terhubung ke penyedia layanan");
} else {
Affinity.info(homeFragment.getActivity(), false, "Mohon Maaf Server dalam perbaikan");
}
}
public static final View I(HomeFragment homeFragment, int i) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
View inflate = homeFragment.getLayoutInflater().inflate(R.layout.component_banner_carousel, (ViewGroup) null);
Intrinsics.checkNotNullExpressionValue(inflate, "layoutInflater.inflate(R…nt_banner_carousel, null)");
CardView findViewById = inflate.findViewById(R.id.cardBannerCarousel);
Intrinsics.checkNotNullExpressionValue(findViewById, "carouselView.findViewById(R.id.cardBannerCarousel)");
CardView cardView = findViewById;
View findViewById2 = inflate.findViewById(R.id.imgBannerCarousel);
Intrinsics.checkNotNullExpressionValue(findViewById2, "carouselView.findViewById(R.id.imgBannerCarousel)");
ImageView imageView = (ImageView) findViewById2;
ViewGroup.LayoutParams layoutParams = cardView.getLayoutParams();
Intrinsics.checkNotNull(layoutParams, "null cannot be cast to non-null type android.widget.RelativeLayout.LayoutParams");
RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) layoutParams;
if (i == 0) {
layoutParams2.leftMargin = (int) homeFragment.getResources().getDimension(R.dimen.bb_large_padding);
layoutParams2.rightMargin = (int) homeFragment.getResources().getDimension(R.dimen.bb_xxlarge_padding);
} else if (i == homeFragment.mImages.size() - 1) {
layoutParams2.rightMargin = (int) homeFragment.getResources().getDimension(R.dimen.bb_large_padding);
layoutParams2.leftMargin = (int) homeFragment.getResources().getDimension(R.dimen.bb_xxlarge_padding);
} else {
layoutParams2.leftMargin = (int) homeFragment.getResources().getDimension(R.dimen.bb_xxlarge_padding);
layoutParams2.rightMargin = (int) homeFragment.getResources().getDimension(R.dimen.bb_xxlarge_padding);
}
cardView.setLayoutParams(layoutParams2);
Glide.with(homeFragment.getBaseActivity()).load(homeFragment.mImages.get(i).getUrl_image()).into(imageView);
return inflate;
}
public static final int K(BannerEntity bannerEntity, BannerEntity bannerEntity2) {
Intrinsics.checkNotNullParameter(bannerEntity, "o1");
Intrinsics.checkNotNullParameter(bannerEntity2, "o2");
return Integer.parseInt(bannerEntity2.getId()) - Integer.parseInt(bannerEntity.getId());
}
public static final int L(MenuListEntity menuListEntity, MenuListEntity menuListEntity2) {
Intrinsics.checkNotNullParameter(menuListEntity, "o1");
Intrinsics.checkNotNullParameter(menuListEntity2, "o2");
return menuListEntity.getUrutan() - menuListEntity2.getUrutan();
}
public static final void O(HomeFragment homeFragment, int i, String str) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
Intrinsics.checkNotNullParameter(str, "s");
if (b25.equals(Var.toString(str, "null"), "null", true)) {
if (str.length() == 0) {
return;
}
}
LinkedHashMap<String, Object> jsonToMap = Mapper.jsonToMap(str);
Intrinsics.checkNotNullExpressionValue(jsonToMap, "jsonToMap(s)");
String var = Var.toString(jsonToMap.get("is_active"), "0");
String var2 = Var.toString(jsonToMap.get("register_date"), "");
AppSession appSession = homeFragment.appSession;
Intrinsics.checkNotNull(appSession);
String retrieve = appSession.retrieve(AppSession.PROPERTY_AVAILABLE_REGISTRASI);
Date parse = DateTime.parse(var2, "yyyy-MM-dd HH:mm:ss.SSSSSS");
Date parse2 = DateTime.parse(retrieve, "yyyy-MM-dd HH:mm:ss.SSSSSS");
Intrinsics.checkNotNullExpressionValue(retrieve, "my_register_date");
if (!(retrieve.length() == 0) && !parse2.before(parse)) {
LinearLayout linearLayout = homeFragment.line_info_lucky;
if (linearLayout != null) {
linearLayout.setVisibility(8);
return;
}
return;
}
if (!Intrinsics.areEqual(var, "1")) {
LinearLayout linearLayout2 = homeFragment.line_info_lucky;
if (linearLayout2 != null) {
linearLayout2.setVisibility(8);
return;
}
return;
}
LinearLayout linearLayout3 = homeFragment.line_info_lucky;
if (linearLayout3 != null) {
linearLayout3.setVisibility(0);
}
String var3 = Var.toString(jsonToMap.get("web_url"), "");
Intrinsics.checkNotNullExpressionValue(var3, "toString(contentMap[\"web_url\"], \"\")");
homeFragment.url_web = var3;
String var4 = Var.toString(jsonToMap.get("url"), "");
Intrinsics.checkNotNullExpressionValue(var4, "toString(contentMap[\"url\"], \"\")");
homeFragment.url_icon = var4;
if (var4.length() == 0) {
return;
}
RequestBuilder apply = Glide.with(homeFragment.requireActivity()).load(homeFragment.url_icon).apply(new RequestOptions().placeholder(R.drawable.bb_lucky_egg).error(R.drawable.bb_lucky_egg));
ImageView imageView = homeFragment.lucky_game;
Intrinsics.checkNotNull(imageView);
apply.into(imageView);
}
public static final void S(final HomeFragment homeFragment, int i, final AsapItemDashboardEntity asapItemDashboardEntity) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
Intrinsics.checkNotNullParameter(asapItemDashboardEntity, "asapItemEntity");
if (i == AsapHelper.CALLBACK_SUCCESS) {
AppSession appSession = homeFragment.appSession;
Intrinsics.checkNotNull(appSession);
String retrieve = appSession.retrieve(AppSession.LIST_ASAP_DATA);
Intrinsics.checkNotNullExpressionValue(retrieve, "appSession!!.retrieve(AppSession.LIST_ASAP_DATA)");
if (!Var.toBoolean(Boolean.valueOf(retrieve.length() == 0), true)) {
AsapHelper.getListDashboardAsapData(homeFragment.getActivity(), homeFragment.appSession, new BBCallback() {
@Override
public final void do_callback(int i2, Object obj) {
HomeFragment.T(AsapItemDashboardEntity.this, homeFragment, i2, (ArrayList) obj);
}
});
} else if (Var.toBoolean(Boolean.valueOf(asapItemDashboardEntity.isHome()), false)) {
ArrayList<AsapItemDashboardEntity> arrayList = homeFragment.lisDataDitampilkan;
Intrinsics.checkNotNull(arrayList);
arrayList.add(asapItemDashboardEntity);
}
AsapExpandModel asapExpandModel = new AsapExpandModel(0, "Quick Payment", homeFragment.lisDataDitampilkan);
asapExpandModel.setExpand(homeFragment.isHomeExpandedAdapter);
ArrayList<AsapExpandModel> arrayList2 = new ArrayList<>();
arrayList2.add(asapExpandModel);
AsapExpandAdapter asapExpandAdapter = homeFragment.asapExpandAdapter;
Intrinsics.checkNotNull(asapExpandAdapter);
asapExpandAdapter.setAsapExpandModelArrayList(arrayList2, homeFragment.isHomeExpandedAdapter);
QuickNewAdapterV3 quickNewAdapterV3 = new QuickNewAdapterV3(homeFragment.lisDataDitampilkan);
homeFragment.quickNewAdapter = quickNewAdapterV3;
RecyclerView recyclerView = homeFragment.rvQuickPayment;
if (recyclerView != null) {
recyclerView.setAdapter(quickNewAdapterV3);
}
} else {
String str = homeFragment.TAG;
}
RecyclerView recyclerView2 = homeFragment.rvQuickPayment;
if (recyclerView2 != null) {
Intrinsics.checkNotNull(recyclerView2);
if (recyclerView2.getAdapter() != null) {
RecyclerView recyclerView3 = homeFragment.rvQuickPayment;
Intrinsics.checkNotNull(recyclerView3);
RecyclerView.Adapter adapter = recyclerView3.getAdapter();
Intrinsics.checkNotNull(adapter);
if (adapter.getItemCount() == 0) {
RecyclerView recyclerView4 = homeFragment.rvQuickPayment;
Intrinsics.checkNotNull(recyclerView4);
recyclerView4.setVisibility(8);
MaterialCardView materialCardView = homeFragment.card_view_empty_asap;
Intrinsics.checkNotNull(materialCardView);
materialCardView.setVisibility(0);
return;
}
RecyclerView recyclerView5 = homeFragment.rvQuickPayment;
Intrinsics.checkNotNull(recyclerView5);
recyclerView5.setVisibility(0);
MaterialCardView materialCardView2 = homeFragment.card_view_empty_asap;
Intrinsics.checkNotNull(materialCardView2);
materialCardView2.setVisibility(8);
}
}
}
public static final void T(AsapItemDashboardEntity asapItemDashboardEntity, HomeFragment homeFragment, int i, ArrayList arrayList) {
Intrinsics.checkNotNullParameter(asapItemDashboardEntity, "$asapItemEntity");
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
if (arrayList == null) {
arrayList = new ArrayList();
}
if (i == AsapHelper.CALLBACK_SUCCESS) {
if (asapItemDashboardEntity.isHome()) {
arrayList.add(asapItemDashboardEntity);
}
Collections.reverse(arrayList);
} else if (asapItemDashboardEntity.isHome()) {
arrayList.add(asapItemDashboardEntity);
}
Iterator it = arrayList.iterator();
while (it.hasNext()) {
AsapItemDashboardEntity asapItemDashboardEntity2 = (AsapItemDashboardEntity) it.next();
Intrinsics.checkNotNull(asapItemDashboardEntity2);
if (asapItemDashboardEntity2.isHome()) {
ArrayList<AsapItemDashboardEntity> arrayList2 = homeFragment.lisDataDitampilkan;
Intrinsics.checkNotNull(arrayList2);
arrayList2.add(asapItemDashboardEntity2);
}
}
}
public static final void V(HomeFragment homeFragment, View view) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
Affinity.launch(homeFragment.getActivity(), OneKlickPayActivity.class);
}
public static final void X(ArrayList arrayList, HomeFragment homeFragment, int i) {
String url_link;
Intrinsics.checkNotNullParameter(arrayList, "$selectedImages");
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
String url_link2 = ((PromoEntity) arrayList.get(i)).getUrl_link();
Intrinsics.checkNotNullExpressionValue(url_link2, "selectedImages.get(position).getUrl_link()");
if (!StringsKt__StringsKt.contains$default(url_link2, "http", false, 2, (Object) null)) {
String url_link3 = ((PromoEntity) arrayList.get(i)).getUrl_link();
Intrinsics.checkNotNullExpressionValue(url_link3, "selectedImages.get(\n … ).getUrl_link()");
if (!StringsKt__StringsKt.contains$default(url_link3, "https", false, 2, (Object) null)) {
StringBuilder sb = new StringBuilder();
ConfigSession configSession = homeFragment.configSession;
Intrinsics.checkNotNull(configSession);
sb.append(configSession.retrieveMap(ConfigSession.PROPERTY_URL, ConfigSession.KEY_URL_LANDING));
sb.append(((PromoEntity) arrayList.get(i)).getUrl_link());
url_link = sb.toString();
Bundle bundle = new Bundle();
bundle.putString("url", url_link);
bundle.putString(FirebaseProcessor.KEY_TITLE, ((PromoEntity) arrayList.get(i)).getTitle());
Intent intent = new Intent(homeFragment.getContext(), (Class<?>) OpenWebViewActivity.class);
intent.putExtras(bundle);
homeFragment.startActivity(intent);
}
}
url_link = ((PromoEntity) arrayList.get(i)).getUrl_link();
Intrinsics.checkNotNullExpressionValue(url_link, "selectedImages.get(position).getUrl_link()");
Bundle bundle2 = new Bundle();
bundle2.putString("url", url_link);
bundle2.putString(FirebaseProcessor.KEY_TITLE, ((PromoEntity) arrayList.get(i)).getTitle());
Intent intent2 = new Intent(homeFragment.getContext(), (Class<?>) OpenWebViewActivity.class);
intent2.putExtras(bundle2);
homeFragment.startActivity(intent2);
}
public static final void Z(HomeFragment homeFragment, View view) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
Affinity.launch(homeFragment.getActivity(), Deposit2Activity.class);
}
public static final void a0(HomeFragment homeFragment) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
SwipeRefreshLayout swipeRefreshLayout = homeFragment.swipe_refresh_home;
if (swipeRefreshLayout != null) {
swipeRefreshLayout.setRefreshing(true);
}
homeFragment.refreshDataGroupProductEmoneyGame();
Affinity.getRefreshData(homeFragment.getActivity(), homeFragment.appSession, homeFragment.dataSession);
homeFragment.getDataGroupProductEmoneyGame();
SwipeRefreshLayout swipeRefreshLayout2 = homeFragment.swipe_refresh_home;
if (swipeRefreshLayout2 != null) {
swipeRefreshLayout2.setRefreshing(false);
}
DataSession dataSession = homeFragment.dataSession;
Intrinsics.checkNotNull(dataSession);
boolean z = Var.toBoolean(dataSession.retrieve(DataSession.KEY_IS_SUDAH_PROSES_KYC), false);
homeFragment.isSudahProsesKyc = z;
if (z) {
return;
}
homeFragment.fetchDocumentStatus();
}
public static final void b0(HomeFragment homeFragment, View view) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
Affinity.launch(homeFragment.getActivity(), AsapAddMoreActivity.class);
}
public static final void c0(HomeFragment homeFragment, View view) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
AppSession appSession = homeFragment.appSession;
Intrinsics.checkNotNull(appSession);
String var = Var.toString(appSession.retrieve(DataSession.KEY_KYC_DOCUMENT_STATUS), "");
Intrinsics.checkNotNullExpressionValue(var, "toString(\n …US), \"\"\n )");
homeFragment.M(var);
}
public static final void d0(HomeFragment homeFragment, CompoundButton compoundButton, boolean z) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
if (z) {
TextView textView = homeFragment.sc_balance2;
if (textView != null) {
textView.setTransformationMethod(HideReturnsTransformationMethod.getInstance());
}
TextView textView2 = homeFragment.tv_point_count;
if (textView2 != null) {
textView2.setTransformationMethod(HideReturnsTransformationMethod.getInstance());
}
AppSession appSession = homeFragment.appSession;
Intrinsics.checkNotNull(appSession);
appSession.store(AppSession.VISIBLE_SALDO, "true");
return;
}
TextView textView3 = homeFragment.sc_balance2;
if (textView3 != null) {
textView3.setTransformationMethod(PasswordTransformationMethod.getInstance());
}
TextView textView4 = homeFragment.tv_point_count;
if (textView4 != null) {
textView4.setTransformationMethod(PasswordTransformationMethod.getInstance());
}
AppSession appSession2 = homeFragment.appSession;
Intrinsics.checkNotNull(appSession2);
appSession2.store(AppSession.VISIBLE_SALDO, "false");
}
public static final void e0(CheckBox checkBox, HomeFragment homeFragment, View view) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
if (checkBox.isChecked()) {
TextView textView = homeFragment.sc_balance2;
if (textView != null) {
textView.setTransformationMethod(PasswordTransformationMethod.getInstance());
}
AppSession appSession = homeFragment.appSession;
Intrinsics.checkNotNull(appSession);
appSession.store(AppSession.VISIBLE_SALDO, "false");
checkBox.setChecked(false);
return;
}
TextView textView2 = homeFragment.sc_balance2;
if (textView2 != null) {
textView2.setTransformationMethod(HideReturnsTransformationMethod.getInstance());
}
AppSession appSession2 = homeFragment.appSession;
Intrinsics.checkNotNull(appSession2);
appSession2.store(AppSession.VISIBLE_SALDO, "true");
checkBox.setChecked(true);
}
public static final void f0(CheckBox checkBox, HomeFragment homeFragment, View view) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
if (checkBox.isChecked()) {
TextView textView = homeFragment.sc_balance2;
if (textView != null) {
textView.setTransformationMethod(PasswordTransformationMethod.getInstance());
}
AppSession appSession = homeFragment.appSession;
Intrinsics.checkNotNull(appSession);
appSession.store(AppSession.VISIBLE_SALDO, "false");
checkBox.setChecked(false);
return;
}
TextView textView2 = homeFragment.sc_balance2;
if (textView2 != null) {
textView2.setTransformationMethod(HideReturnsTransformationMethod.getInstance());
}
AppSession appSession2 = homeFragment.appSession;
Intrinsics.checkNotNull(appSession2);
appSession2.store(AppSession.VISIBLE_SALDO, "true");
checkBox.setChecked(true);
}
public static final void g0(HomeFragment homeFragment) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
ShowcaseHelper.homeShowCases(homeFragment.getActivity());
}
public static final void h0(HomeFragment homeFragment, int i, boolean z) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
if (z) {
homeFragment.setBalanceText();
}
}
public static final void i0(HomeFragment homeFragment, int i, boolean z) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
if (z) {
DataSession dataSession = homeFragment.dataSession;
Intrinsics.checkNotNull(dataSession);
AsapHelper.WrapperReturnList parserEMoneyGameHashMap = AsapHelper.getParserEMoneyGameHashMap(dataSession.retrieve(DataSession.PROPERTY_LIST_GAME_ASAP));
homeFragment.wrapGameResult = parserEMoneyGameHashMap;
homeFragment.listProductGame = AsapHelper.listProductGame(parserEMoneyGameHashMap);
}
}
public static final void j0(HomeFragment homeFragment, int i, boolean z) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
if (z) {
DataSession dataSession = homeFragment.dataSession;
Intrinsics.checkNotNull(dataSession);
AsapHelper.WrapperReturnList parserEMoneyGameHashMap = AsapHelper.getParserEMoneyGameHashMap(dataSession.retrieve(DataSession.PROPERTY_LIST_E_MONEY));
homeFragment.wrapEmoneyResult = parserEMoneyGameHashMap;
homeFragment.listProductEmoney = AsapHelper.listProductEmoney(parserEMoneyGameHashMap);
}
}
public static final void m0(View view, final HomeFragment homeFragment, int i, String str) {
Intrinsics.checkNotNullParameter(view, "$view");
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
Intrinsics.checkNotNullParameter(str, "s");
if (b25.equals(Var.toString(str, "null"), "null", true)) {
if (str.length() == 0) {
return;
}
}
final View findViewById = view.findViewById(R.id.frame_web_view);
View findViewById2 = view.findViewById(R.id.wv_dashboard);
Intrinsics.checkNotNullExpressionValue(findViewById2, "view.findViewById(R.id.wv_dashboard)");
WebView webView = (WebView) findViewById2;
homeFragment.wv_dashboard = webView;
WebView webView2 = null;
if (webView == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView = null;
}
webView.addJavascriptInterface(new JSInterface.BBJSInterface(homeFragment.getActivity()), "AjakTeman");
WebView webView3 = homeFragment.wv_dashboard;
if (webView3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView3 = null;
}
webView3.setVisibility(0);
WebView webView4 = homeFragment.wv_dashboard;
if (webView4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView4 = null;
}
webView4.setInitialScale(1);
WebView webView5 = homeFragment.wv_dashboard;
if (webView5 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView5 = null;
}
webView5.getSettings().setLoadWithOverviewMode(true);
WebView webView6 = homeFragment.wv_dashboard;
if (webView6 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView6 = null;
}
webView6.getSettings().setUseWideViewPort(true);
WebView webView7 = homeFragment.wv_dashboard;
if (webView7 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView7 = null;
}
webView7.getSettings().setJavaScriptEnabled(true);
WebView webView8 = homeFragment.wv_dashboard;
if (webView8 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView8 = null;
}
webView8.getSettings().setDatabaseEnabled(true);
WebView webView9 = homeFragment.wv_dashboard;
if (webView9 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView9 = null;
}
webView9.getSettings().setDomStorageEnabled(true);
WebView webView10 = homeFragment.wv_dashboard;
if (webView10 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView10 = null;
}
webView10.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
WebView webView11 = homeFragment.wv_dashboard;
if (webView11 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView11 = null;
}
webView11.getSettings().setSupportZoom(true);
WebView webView12 = homeFragment.wv_dashboard;
if (webView12 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView12 = null;
}
webView12.getSettings().setBuiltInZoomControls(false);
WebView webView13 = homeFragment.wv_dashboard;
if (webView13 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView13 = null;
}
webView13.getSettings().setGeolocationEnabled(true);
WebView webView14 = homeFragment.wv_dashboard;
if (webView14 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView14 = null;
}
webView14.setWebViewClient(new WebViewClient() {
@Override
public void onReceivedError(@NotNull WebView view2, @NotNull WebResourceRequest request, @NotNull WebResourceError error) {
WebView webView15;
Intrinsics.checkNotNullParameter(view2, "view");
Intrinsics.checkNotNullParameter(request, "request");
Intrinsics.checkNotNullParameter(error, "error");
super.onReceivedError(view2, request, error);
webView15 = HomeFragment.this.wv_dashboard;
if (webView15 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView15 = null;
}
webView15.setVisibility(8);
findViewById.setVisibility(8);
}
@Override
public void onReceivedHttpError(@NotNull WebView view2, @NotNull WebResourceRequest request, @NotNull WebResourceResponse errorResponse) {
WebView webView15;
Intrinsics.checkNotNullParameter(view2, "view");
Intrinsics.checkNotNullParameter(request, "request");
Intrinsics.checkNotNullParameter(errorResponse, "errorResponse");
super.onReceivedHttpError(view2, request, errorResponse);
if (errorResponse.getStatusCode() != 200) {
webView15 = HomeFragment.this.wv_dashboard;
if (webView15 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
webView15 = null;
}
webView15.setVisibility(8);
findViewById.setVisibility(8);
}
}
@Override
public void onReceivedSslError(@NotNull WebView view2, @NotNull SslErrorHandler handler, @NotNull SslError error) {
Intrinsics.checkNotNullParameter(view2, "view");
Intrinsics.checkNotNullParameter(handler, "handler");
Intrinsics.checkNotNullParameter(error, "error");
Affinity.confirmInsecureSSL(HomeFragment.this.getActivity(), handler, error);
}
});
LinkedHashMap<String, Object> jsonToMap = Mapper.jsonToMap(str);
Intrinsics.checkNotNullExpressionValue(jsonToMap, "jsonToMap(s)");
WebView webView15 = homeFragment.wv_dashboard;
if (webView15 == null) {
Intrinsics.throwUninitializedPropertyAccessException("wv_dashboard");
} else {
webView2 = webView15;
}
webView2.loadUrl(Var.toString(jsonToMap.get("url_webview_home"), ""));
}
public static final void o0(boolean z, HomeFragment homeFragment) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
View view = null;
if (z) {
View view2 = homeFragment.chg_warning_gratis;
if (view2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("chg_warning_gratis");
} else {
view = view2;
}
view.setVisibility(0);
return;
}
View view3 = homeFragment.chg_warning_gratis;
if (view3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("chg_warning_gratis");
} else {
view = view3;
}
view.setVisibility(8);
}
public static final void r0(DialogPlus dialogPlus) {
Intrinsics.checkNotNullParameter(dialogPlus, "dialog1");
dialogPlus.dismiss();
}
public static final void s0(DialogPlus dialogPlus, HomeFragment homeFragment, View view) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
dialogPlus.dismiss();
new ConfigSession(homeFragment.getActivity()).store(ConfigSession.PROPERTY_INFORM_QUICK_PAYMENT, "false");
}
public static final void t0(DialogPlus dialogPlus, final HomeFragment homeFragment, AsapItemDashboardEntity asapItemDashboardEntity, AsapTransaction asapTransaction, View view) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
Intrinsics.checkNotNullParameter(asapItemDashboardEntity, "$asapItemDashboardEntity");
Intrinsics.checkNotNullParameter(asapTransaction, "$asapTransaction");
dialogPlus.dismiss();
new ConfigSession(homeFragment.getActivity()).store(ConfigSession.PROPERTY_INFORM_QUICK_PAYMENT, "true");
if (asapItemDashboardEntity.isGenerate()) {
asapTransaction.submitAsapGeneratePayment(asapItemDashboardEntity);
} else {
asapTransaction.submitAsapDefaultPayment(asapItemDashboardEntity, new BBCallback() {
@Override
public final void do_callback(int i, Object obj) {
HomeFragment.u0(HomeFragment.this, i, (Boolean) obj);
}
});
}
}
public static final void u0(HomeFragment homeFragment, int i, Boolean bool) {
Intrinsics.checkNotNullParameter(homeFragment, "this$0");
Affinity.info(homeFragment.getActivity(), false, homeFragment.getString(R.string.asap_balance_minus));
}
public final boolean D(String uri, Context context) {
try {
requireContext().getPackageManager().getPackageInfo(uri, 1);
return true;
} catch (PackageManager.NameNotFoundException unused) {
return false;
}
}
public final void E(final AsapItemDashboardEntity asapItemDashboardEntity) {
new Handler().postDelayed(new Runnable() {
@Override
public final void run() {
HomeFragment.F(HomeFragment.this, asapItemDashboardEntity);
}
}, 500L);
}
public final void J() {
View view = this.chg_warning_gratis;
if (view == null) {
Intrinsics.throwUninitializedPropertyAccessException("chg_warning_gratis");
view = null;
}
view.setVisibility(8);
APIMessageWrapper aPIMessageWrapper = new APIMessageWrapper();
AppSession appSession = this.appSession;
Intrinsics.checkNotNull(appSession);
aPIMessageWrapper.setItem("id", appSession.retrieve(AppSession.PROPERTY_MERCHANT_ID));
MessageComposer messageComposer = new MessageComposer(2, "deposit_info");
messageComposer.setShowProgressRegular(false);
messageComposer.setIs_encrypted(false);
messageComposer.setMessageProcess(new MessageProcess() {
@Override
public void afterProcess(@NotNull BaseMessage msg) {
Intrinsics.checkNotNullParameter(msg, "msg");
APIMessageWrapper aPIMessageWrapper2 = new APIMessageWrapper(msg);
if (!aPIMessageWrapper2.isOK()) {
HomeFragment.this.n0(false);
} else {
HomeFragment.this.n0(Intrinsics.areEqual(String.valueOf(aPIMessageWrapper2.getData().get(0).get("cashback_deposit")), "1"));
}
}
@Override
public void backgroundProcess(long bytesRead, long contentLength, boolean done) {
}
@Override
public void preProcess() {
}
});
MessageSender messageSender = new MessageSender(getContext(), messageComposer);
messageSender.setRequestMessage(aPIMessageWrapper);
messageSender.execute();
}
public final void M(final String documentStatus) {
AppSession appSession = this.appSession;
Intrinsics.checkNotNull(appSession);
String retrieve = appSession.retrieve(AppSession.PROPERTY_MERCHANT_ID);
AppSession appSession2 = this.appSession;
Intrinsics.checkNotNull(appSession2);
String retrieve2 = appSession2.retrieve(AppSession.PROPERTY_MERCHANT_PIN);
AppSession appSession3 = this.appSession;
Intrinsics.checkNotNull(appSession3);
DetailMessage detailMessage = new DetailMessage(retrieve, retrieve2, appSession3.retrieve(AppSession.PROPERTY_AUTH_TOKEN));
detailMessage.setProductCode(DetailMessage.INC_PRODUCT_CODE_ACCOUNT);
MessageComposer messageComposer = new MessageComposer(1, "");
messageComposer.setRequest_method(MessageComposer.POST);
messageComposer.setData_type(1);
messageComposer.setIs_credential(true);
messageComposer.setShowProgressRegular(false);
messageComposer.setIs_encrypted(true);
messageComposer.setIs_cacheable(true);
messageComposer.setMessageProcess(new MessageProcess() {
@Override
public void afterProcess(@NotNull BaseMessage msg) {
boolean isViewDestroyed;
ConfigSession configSession;
Bundle bundle;
int i;
AppSession appSession4;
AppSession appSession5;
AppSession appSession6;
AppSession appSession7;
AppSession appSession8;
AppSession appSession9;
AppSession appSession10;
AppSession appSession11;
AppSession appSession12;
AppSession appSession13;
Bundle bundle2;
Bundle bundle3;
Bundle bundle4;
Bundle bundle5;
Bundle bundle6;
Bundle bundle7;
HashMap hashMap;
Bundle bundle8;
String str;
Bundle bundle9;
Bundle bundle10;
ArrayList arrayList;
Bundle bundle11;
Bundle bundle12;
ArrayList arrayList2;
Intrinsics.checkNotNullParameter(msg, "msg");
isViewDestroyed = HomeFragment.this.isViewDestroyed();
if (isViewDestroyed) {
return;
}
DetailMessage detailMessage2 = new DetailMessage(msg);
if (detailMessage2.isOK()) {
HashMap hashMap2 = new HashMap();
hashMap2.put("ibu_kandung", detailMessage2.getValueFromAdditional_data(14));
hashMap2.put("pekerjaan", detailMessage2.getValueFromAdditional_data(39));
hashMap2.put("jenis_usaha", detailMessage2.getValueFromAdditional_data(38));
hashMap2.put("ym", detailMessage2.getValueFromAdditional_data(18));
hashMap2.put("gtalk", detailMessage2.getValueFromAdditional_data(19));
hashMap2.put("whatsapp", detailMessage2.getValueFromAdditional_data(22));
hashMap2.put("telegram", detailMessage2.getValueFromAdditional_data(37));
hashMap2.put("bbm", detailMessage2.getValueFromAdditional_data(34));
appSession4 = HomeFragment.this.appSession;
Intrinsics.checkNotNull(appSession4);
appSession4.store(AppSession.PROPERTY_OWNER_NAME, detailMessage2.getValueFromAdditional_data(0));
appSession5 = HomeFragment.this.appSession;
Intrinsics.checkNotNull(appSession5);
appSession5.store(AppSession.PROPERTY_MERCHANT_NAME, detailMessage2.getValueFromAdditional_data(7));
appSession6 = HomeFragment.this.appSession;
Intrinsics.checkNotNull(appSession6);
appSession6.store(AppSession.PROPERTY_LEVEL, detailMessage2.getValueFromAdditional_data(16));
appSession7 = HomeFragment.this.appSession;
Intrinsics.checkNotNull(appSession7);
appSession7.store(AppSession.PROPERTY_GENDER, detailMessage2.getValueFromAdditional_data(35));
appSession8 = HomeFragment.this.appSession;
Intrinsics.checkNotNull(appSession8);
appSession8.store(AppSession.PROPERTY_HANDPHONE, detailMessage2.getValueFromAdditional_data(5));
appSession9 = HomeFragment.this.appSession;
Intrinsics.checkNotNull(appSession9);
appSession9.store(AppSession.PROPERTY_EMAIL, detailMessage2.getValueFromAdditional_data(11));
appSession10 = HomeFragment.this.appSession;
Intrinsics.checkNotNull(appSession10);
appSession10.store(AppSession.PROPERTY_ADDRESS, detailMessage2.getValueFromAdditional_data(1));
appSession11 = HomeFragment.this.appSession;
Intrinsics.checkNotNull(appSession11);
appSession11.store(AppSession.PROPERTY_PROVINCE, detailMessage2.getValueFromAdditional_data(4));
appSession12 = HomeFragment.this.appSession;
Intrinsics.checkNotNull(appSession12);
appSession12.store(AppSession.PROPERTY_CITY, detailMessage2.getValueFromAdditional_data(3));
appSession13 = HomeFragment.this.appSession;
Intrinsics.checkNotNull(appSession13);
appSession13.store(AppSession.PROPERTY_POSTCODE, detailMessage2.getValueFromAdditional_data(2));
Bundle bundle13 = new Bundle();
ArrayList arrayList3 = new ArrayList();
ArrayList<String> arrayList4 = new ArrayList<>();
HomeFragment.this.arrayList = new ArrayList();
Iterator<HashMap> it = detailMessage2.getData_detail().iterator();
String str2 = "";
String str3 = str2;
while (it.hasNext()) {
HashMap next = it.next();
Intrinsics.checkNotNullExpressionValue(next, "_msg.data_detail");
HashMap hashMap3 = next;
HashMap hashMap4 = new HashMap();
DocumentEntity documentEntity = new DocumentEntity();
String var = Var.toString(hashMap3.get("status"), "0");
Intrinsics.checkNotNullExpressionValue(var, "toString(map.get(\"status\"), \"0\")");
Iterator<HashMap> it2 = it;
String replace = new Regex("[^0-9]").replace(var, "");
String var2 = Var.toString(hashMap3.get("kode_dokumen"), "");
Intrinsics.checkNotNullExpressionValue(var2, "toString(map.get(\"kode_dokumen\"), \"\")");
String var3 = Var.toString(hashMap3.get("nama_dokumen"), "");
HashMap hashMap5 = hashMap2;
Intrinsics.checkNotNullExpressionValue(var3, "toString(map.get(\"nama_dokumen\"), \"\")");
String var4 = Var.toString(hashMap3.get("id"), "");
String str4 = str3;
Intrinsics.checkNotNullExpressionValue(var4, "toString(map.get(\"id\"), \"\")");
String var5 = Var.toString(hashMap3.get("ket_verifikasi"), "");
Intrinsics.checkNotNullExpressionValue(var5, "toString(map.get(\"ket_verifikasi\"), \"\")");
documentEntity.setId(var4);
documentEntity.setKet_verifikasi(var5);
documentEntity.setNama_dokumen(var3);
documentEntity.setKode_dokumen(var2);
documentEntity.setStatus(replace);
arrayList2 = HomeFragment.this.arrayList;
Intrinsics.checkNotNull(arrayList2);
arrayList2.add(documentEntity);
arrayList4.add(var2);
arrayList3.add(replace);
HomeFragment.this.getTAG();
StringBuilder sb = new StringBuilder();
sb.append("afterProcess: ASDASD : ");
sb.append(replace);
sb.append(" - ");
sb.append(var5);
sb.append(" - ");
sb.append(var2);
if (Intrinsics.areEqual(documentEntity.getId(), "1")) {
str2 = replace;
} else {
str4 = replace;
}
bundle13.putSerializable(HomeFragment.INSTANCE.getPOPULATED_DATA_UPL_KEY(), hashMap4);
HomeFragment.this.data_uploads = hashMap4;
HomeFragment.this.keterangan = var5;
it = it2;
hashMap2 = hashMap5;
str3 = str4;
}
HashMap hashMap6 = hashMap2;
String str5 = str3;
bundle2 = HomeFragment.this.edit_bundle;
Intrinsics.checkNotNull(bundle2);
bundle2.putBoolean(DetailAccountActivity.IS_EDIT_ALLOWED_KEY, detailMessage2.isOK());
bundle3 = HomeFragment.this.edit_bundle;
Intrinsics.checkNotNull(bundle3);
bundle3.putBoolean(DetailAccountActivity.IS_IDCARD_VALID_KEY, Intrinsics.areEqual(str2, "1"));
bundle4 = HomeFragment.this.edit_bundle;
Intrinsics.checkNotNull(bundle4);
bundle4.putBoolean(DetailAccountActivity.IS_IDCARD_WAIT_KEY, Intrinsics.areEqual(str2, "3"));
bundle5 = HomeFragment.this.edit_bundle;
Intrinsics.checkNotNull(bundle5);
bundle5.putBoolean(DetailAccountActivity.IS_SELFIE_VALID_KEY, Intrinsics.areEqual(str5, "1"));
bundle6 = HomeFragment.this.edit_bundle;
Intrinsics.checkNotNull(bundle6);
bundle6.putBoolean(DetailAccountActivity.IS_SELFIE_WAIT_KEY, Intrinsics.areEqual(str5, "3"));
bundle7 = HomeFragment.this.edit_bundle;
Intrinsics.checkNotNull(bundle7);
HomeFragment.Companion companion = HomeFragment.INSTANCE;
String populated_data_upl_key = companion.getPOPULATED_DATA_UPL_KEY();
hashMap = HomeFragment.this.data_uploads;
bundle7.putSerializable(populated_data_upl_key, hashMap);
bundle8 = HomeFragment.this.edit_bundle;
Intrinsics.checkNotNull(bundle8);
String doc_ket_key = companion.getDOC_KET_KEY();
str = HomeFragment.this.keterangan;
bundle8.putString(doc_ket_key, str);
bundle9 = HomeFragment.this.edit_bundle;
Intrinsics.checkNotNull(bundle9);
bundle9.putStringArrayList(companion.getPOPULATED_DATA_CODE_KEY(), arrayList4);
bundle10 = HomeFragment.this.edit_bundle;
Intrinsics.checkNotNull(bundle10);
String populated_data_state_key = companion.getPOPULATED_DATA_STATE_KEY();
arrayList = HomeFragment.this.arrayList;
bundle10.putSerializable(populated_data_state_key, arrayList);
bundle11 = HomeFragment.this.edit_bundle;
Intrinsics.checkNotNull(bundle11);
bundle11.putStringArrayList(DetailAccountActivity.POPULATED_ADD_DATA_KEY, detailMessage2.getAdditional_datas());
bundle12 = HomeFragment.this.edit_bundle;
Intrinsics.checkNotNull(bundle12);
bundle12.putSerializable(DetailAccountActivity.POPULATED_ADD_DATA_ACCOUNT, hashMap6);
}
if (Intrinsics.areEqual(documentStatus, QRISO.POI_METHOD_STATIC) || Intrinsics.areEqual(documentStatus, "13")) {
configSession = HomeFragment.this.configSession;
Intrinsics.checkNotNull(configSession);
Intent intent = Var.toBoolean(configSession.retrieveMap(ConfigSession.PROPERTY_CUSTOM_CONFIG, ConfigSession.KEY_USE_NEW_KYC_BIGVISION), true) ? new Intent((Context) HomeFragment.this.getActivity(), (Class<?>) KYCNewKtpActivity.class) : new Intent((Context) HomeFragment.this.getActivity(), (Class<?>) KYCActivity.class);
bundle = HomeFragment.this.edit_bundle;
Intrinsics.checkNotNull(bundle);
intent.putExtras(bundle);
HomeFragment homeFragment = HomeFragment.this;
i = HomeFragment.g0;
homeFragment.startActivityForResult(intent, i);
}
}
@Override
public void backgroundProcess(long bytesRead, long contentLength, boolean done) {
}
@Override
public void preProcess() {
Bundle bundle;
bundle = HomeFragment.this.edit_bundle;
Intrinsics.checkNotNull(bundle);
bundle.putBoolean(DetailAccountActivity.IS_EDIT_ALLOWED_KEY, false);
}
});
MessageSender messageSender = new MessageSender(getActivity(), messageComposer);
messageSender.setRequestMessage(detailMessage);
messageSender.execute();
}
public final void N() {
ApiConfig.fetchHomeGameBonus(getActivity(), new BBCallback() {
@Override
public final void do_callback(int i, Object obj) {
HomeFragment.O(HomeFragment.this, i, (String) obj);
}
});
}
public final Unit P() {
DataSession dataSession = this.dataSession;
Intrinsics.checkNotNull(dataSession);
long j = Var.toLong(dataSession.retrieve(DataSession.KEY_BANNER_IMAGES_CAROUSEL_LAST_REQUEST), 0L);
long currentTimeMillis = System.currentTimeMillis() - j;
long j2 = 60 * 60000;
if (j > 0 && currentTimeMillis <= j2) {
this.mImages = new ArrayList<>();
DataSession dataSession2 = this.dataSession;
Intrinsics.checkNotNull(dataSession2);
ArrayList<PromoEntity> jsonStringToList = Mapper.jsonStringToList(dataSession2.retrieve(DataSession.KEY_BANNER_IMAGES_CAROUSEL));
Intrinsics.checkNotNullExpressionValue(jsonStringToList, "jsonStringToList(retrieveString)");
this.mImages = jsonStringToList;
if (jsonStringToList.size() > 0) {
W(this.mImages);
return Unit.INSTANCE;
}
}
PromosiMessage promosiMessage = new PromosiMessage(PromosiMessage.PROMO);
promosiMessage.setItem("is_published", "1");
AppSession appSession = this.appSession;
Intrinsics.checkNotNull(appSession);
promosiMessage.setItem("outletid", appSession.retrieve(AppSession.PROPERTY_MERCHANT_ID));
promosiMessage.setItem(FtsOptions.TOKENIZER_SIMPLE, Boolean.TRUE);
MessageComposer messageComposer = new MessageComposer(2, promosiMessage.getPath());
messageComposer.setRequest_method(MessageComposer.GET);
messageComposer.setData_type(2);
messageComposer.setIs_credential(false);
messageComposer.setShowProgressRegular(false);
messageComposer.setMessageProcess(new MessageProcess() {
@Override
public void afterProcess(@NotNull BaseMessage msg) {
boolean isViewDestroyed;
View view;
CarouselView carouselView;
ArrayList arrayList;
DataSession dataSession3;
DataSession dataSession4;
ArrayList arrayList2;
ArrayList arrayList3;
ArrayList arrayList4;
Intrinsics.checkNotNullParameter(msg, "msg");
isViewDestroyed = HomeFragment.this.isViewDestroyed();
if (isViewDestroyed) {
return;
}
PromosiMessage promosiMessage2 = new PromosiMessage(msg);
HomeFragment.this.mImages = new ArrayList();
if (!promosiMessage2.isOK()) {
RecyclerView rv_promo = HomeFragment.this.getRv_promo();
Intrinsics.checkNotNull(rv_promo);
rv_promo.setVisibility(8);
ConstraintLayout constraintLayoutBaru = HomeFragment.this.getConstraintLayoutBaru();
Intrinsics.checkNotNull(constraintLayoutBaru);
constraintLayoutBaru.setVisibility(8);
return;
}
view = HomeFragment.this.tv_btn_promo_all;
Intrinsics.checkNotNull(view);
view.setVisibility(8);
carouselView = HomeFragment.this.carouselView;
Intrinsics.checkNotNull(carouselView);
carouselView.setVisibility(0);
ArrayList arrayList5 = Var.toArrayList(promosiMessage2.getData());
Intrinsics.checkNotNullExpressionValue(arrayList5, "toArrayList(_msg.data)");
Iterator it = arrayList5.iterator();
while (it.hasNext()) {
Object next = it.next();
Intrinsics.checkNotNullExpressionValue(next, "arrData");
HashMap hashMap = (HashMap) next;
PromoEntity promoEntity = new PromoEntity();
promoEntity.setTitle(Var.toString(hashMap.get(FirebaseProcessor.KEY_TITLE), ""));
promoEntity.setUrl_link(Var.toString(hashMap.get("url_link"), ""));
promoEntity.setUrl_image(Var.toString(hashMap.get("url_image"), ""));
promoEntity.setUrl_image_mini(Var.toString(hashMap.get("url_image_mini"), ""));
promoEntity.setContent2(Var.toString(hashMap.get("content"), ""));
arrayList4 = HomeFragment.this.mImages;
arrayList4.add(promoEntity);
}
arrayList = HomeFragment.this.mImages;
String listToJsonString = Mapper.listToJsonString(arrayList);
Intrinsics.checkNotNullExpressionValue(listToJsonString, "listToJsonString(mImages)");
dataSession3 = HomeFragment.this.dataSession;
Intrinsics.checkNotNull(dataSession3);
dataSession3.store(DataSession.KEY_BANNER_IMAGES_CAROUSEL, listToJsonString);
dataSession4 = HomeFragment.this.dataSession;
Intrinsics.checkNotNull(dataSession4);
dataSession4.store(DataSession.KEY_BANNER_IMAGES_CAROUSEL_LAST_REQUEST, String.valueOf(System.currentTimeMillis()));
HomeFragment.this.getTAG();
StringBuilder sb = new StringBuilder();
sb.append("afterProcess: ");
arrayList2 = HomeFragment.this.mImages;
sb.append(arrayList2.size());
HomeFragment homeFragment = HomeFragment.this;
arrayList3 = homeFragment.mImages;
homeFragment.W(arrayList3);
}
@Override
public void backgroundProcess(long bytesRead, long contentLength, boolean done) {
}
@Override
public void preProcess() {
View view;
CarouselView carouselView;
view = HomeFragment.this.tv_btn_promo_all;
Intrinsics.checkNotNull(view);
view.setVisibility(8);
carouselView = HomeFragment.this.carouselView;
Intrinsics.checkNotNull(carouselView);
carouselView.setVisibility(8);
}
});
MessageSender messageSender = new MessageSender(getActivity(), messageComposer);
messageSender.setRequestMessage(promosiMessage);
messageSender.execute();
return Unit.INSTANCE;
}
public final Unit Q() {
DataSession dataSession = this.dataSession;
Intrinsics.checkNotNull(dataSession);
long j = Var.toLong(dataSession.retrieve(DataSession.KEY_BANNER_IMAGES_HOME_NEWS_LAST_REQUEST), 0L);
long currentTimeMillis = System.currentTimeMillis() - j;
long j2 = 60 * 60000;
if (j > 0 && currentTimeMillis <= j2) {
this.mBannerEntity = new ArrayList<>();
DataSession dataSession2 = this.dataSession;
Intrinsics.checkNotNull(dataSession2);
ArrayList<BannerEntity> jsonStringToListBanner = Mapper.jsonStringToListBanner(dataSession2.retrieve(DataSession.KEY_BANNER_IMAGE_HOME_NEWS));
Intrinsics.checkNotNullExpressionValue(jsonStringToListBanner, "jsonStringToListBanner(retrieveString)");
this.mBannerEntity = jsonStringToListBanner;
if (jsonStringToListBanner.size() > 0) {
if (this.mBannerEntity.get(0).getId() != null) {
Collections.sort(this.mBannerEntity, this.comparatorBanner);
}
ArrayList<BannerEntity> arrayList = new ArrayList<>();
int size = this.mBannerEntity.size() <= 3 ? this.mBannerEntity.size() : 3;
for (int i = 0; i < size; i++) {
BannerEntity bannerEntity = new BannerEntity();
bannerEntity.setTitle(Var.toString(this.mBannerEntity.get(i).getTitle(), ""));
bannerEntity.setId(Var.toString(this.mBannerEntity.get(i).getId(), "0"));
bannerEntity.setImage(Var.toString(this.mBannerEntity.get(i).getImage(), ""));
bannerEntity.setLink(Var.toString(this.mBannerEntity.get(i).getLink(), ""));
bannerEntity.setUrl_image_mini(Var.toString(this.mBannerEntity.get(i).getUrl_image_mini(), ""));
bannerEntity.setContent(Var.toString(this.mBannerEntity.get(i).getContent(), ""));
arrayList.add(bannerEntity);
}
if (arrayList.get(0).getId() != null) {
Collections.sort(arrayList, this.comparatorBanner);
}
BannerAdapter bannerAdapter = this.bannerAdapter;
Intrinsics.checkNotNull(bannerAdapter);
bannerAdapter.updateList(arrayList);
return Unit.INSTANCE;
}
}
PromosiMessage promosiMessage = new PromosiMessage(PromosiMessage.PROMO);
promosiMessage.setItem("is_published", "1");
AppSession appSession = this.appSession;
Intrinsics.checkNotNull(appSession);
promosiMessage.setItem("outletid", appSession.retrieve(AppSession.PROPERTY_MERCHANT_ID));
promosiMessage.setItem(FtsOptions.TOKENIZER_SIMPLE, Boolean.FALSE);
promosiMessage.setItem("type", "home_news");
MessageComposer messageComposer = new MessageComposer(2, promosiMessage.getPath());
messageComposer.setRequest_method(MessageComposer.GET);
messageComposer.setData_type(2);
messageComposer.setIs_credential(false);
messageComposer.setShowProgressRegular(false);
messageComposer.setMessageProcess(new MessageProcess() {
@Override
public void afterProcess(@NotNull BaseMessage msg) {
boolean isViewDestroyed;
Comparator comparator;
ArrayList arrayList2;
DataSession dataSession3;
DataSession dataSession4;
BannerAdapter bannerAdapter2;
Comparator comparator2;
ArrayList arrayList3;
Intrinsics.checkNotNullParameter(msg, "msg");
isViewDestroyed = HomeFragment.this.isViewDestroyed();
if (isViewDestroyed) {
return;
}
PromosiMessage promosiMessage2 = new PromosiMessage(msg);
HomeFragment.this.mBannerEntity = new ArrayList();
if (!promosiMessage2.isOK()) {
RecyclerView rv_promo = HomeFragment.this.getRv_promo();
Intrinsics.checkNotNull(rv_promo);
rv_promo.setVisibility(8);
ConstraintLayout constraintLayoutBaru = HomeFragment.this.getConstraintLayoutBaru();
Intrinsics.checkNotNull(constraintLayoutBaru);
constraintLayoutBaru.setVisibility(8);
return;
}
ArrayList arrayList4 = new ArrayList();
ArrayList arrayList5 = Var.toArrayList(promosiMessage2.getData());
Intrinsics.checkNotNullExpressionValue(arrayList5, "toArrayList(_msg.data)");
Iterator it = arrayList5.iterator();
while (it.hasNext()) {
Object next = it.next();
Intrinsics.checkNotNullExpressionValue(next, "arrDataPromo");
HashMap hashMap = (HashMap) next;
BannerEntity bannerEntity2 = new BannerEntity();
bannerEntity2.setTitle(Var.toString(hashMap.get(FirebaseProcessor.KEY_TITLE), ""));
bannerEntity2.setId(Var.toString(hashMap.get("id"), ""));
bannerEntity2.setImage(Var.toString(hashMap.get("url_image"), ""));
bannerEntity2.setLink(Var.toString(hashMap.get("url_link"), ""));
bannerEntity2.setUrl_image_mini(Var.toString(hashMap.get("url_image_mini"), ""));
bannerEntity2.setContent(Var.toString(hashMap.get("content"), ""));
arrayList4.add(bannerEntity2);
arrayList3 = HomeFragment.this.mBannerEntity;
arrayList3.add(bannerEntity2);
}
comparator = HomeFragment.this.comparatorBanner;
Collections.sort(arrayList4, comparator);
arrayList2 = HomeFragment.this.mBannerEntity;
String listToJsonString = Mapper.listToJsonString(arrayList2);
Intrinsics.checkNotNullExpressionValue(listToJsonString, "listToJsonString(mBannerEntity)");
dataSession3 = HomeFragment.this.dataSession;
Intrinsics.checkNotNull(dataSession3);
dataSession3.store(DataSession.KEY_BANNER_IMAGE_HOME_NEWS, listToJsonString);
dataSession4 = HomeFragment.this.dataSession;
Intrinsics.checkNotNull(dataSession4);
dataSession4.store(DataSession.KEY_BANNER_IMAGES_HOME_NEWS_LAST_REQUEST, String.valueOf(System.currentTimeMillis()));
ArrayList arrayList6 = new ArrayList();
if (arrayList4.size() > 0) {
RecyclerView rv_promo2 = HomeFragment.this.getRv_promo();
Intrinsics.checkNotNull(rv_promo2);
rv_promo2.setVisibility(0);
ConstraintLayout constraintLayoutBaru2 = HomeFragment.this.getConstraintLayoutBaru();
Intrinsics.checkNotNull(constraintLayoutBaru2);
constraintLayoutBaru2.setVisibility(0);
int size2 = arrayList4.size() <= 3 ? arrayList4.size() : 3;
for (int i2 = 0; i2 < size2; i2++) {
arrayList6.add(arrayList4.get(i2));
}
comparator2 = HomeFragment.this.comparatorBanner;
Collections.sort(arrayList6, comparator2);
} else {
RecyclerView rv_promo3 = HomeFragment.this.getRv_promo();
Intrinsics.checkNotNull(rv_promo3);
rv_promo3.setVisibility(8);
ConstraintLayout constraintLayoutBaru3 = HomeFragment.this.getConstraintLayoutBaru();
Intrinsics.checkNotNull(constraintLayoutBaru3);
constraintLayoutBaru3.setVisibility(8);
}
bannerAdapter2 = HomeFragment.this.bannerAdapter;
Intrinsics.checkNotNull(bannerAdapter2);
bannerAdapter2.updateList(arrayList6);
}
@Override
public void backgroundProcess(long bytesRead, long contentLength, boolean done) {
}
@Override
public void preProcess() {
}
});
MessageSender messageSender = new MessageSender(getActivity(), messageComposer);
messageSender.setRequestMessage(promosiMessage);
messageSender.execute();
return Unit.INSTANCE;
}
public final void R() {
this.asapExpandAdapter = new AsapExpandAdapter(getActivity());
this.lisDataDitampilkan = new ArrayList<>();
AsapHelper.getDefaultAsapData(getActivity(), this.appSession, new BBCallback() {
@Override
public final void do_callback(int i, Object obj) {
HomeFragment.S(HomeFragment.this, i, (AsapItemDashboardEntity) obj);
}
});
QuickNewAdapterV3 quickNewAdapterV3 = this.quickNewAdapter;
if (quickNewAdapterV3 != null) {
Intrinsics.checkNotNull(quickNewAdapterV3);
quickNewAdapterV3.setItemAction(new HomeFragment$initAsapAdapter$2(this));
}
}
public final void U(View view) {
Iterator it = CollectionsKt__CollectionsKt.listOf(new Integer[]{Integer.valueOf(R.id.constraintLayout1klick), Integer.valueOf(R.id.ConstraintLayoutInfoLihatSemua)}).iterator();
while (it.hasNext()) {
view.findViewById(((Number) it.next()).intValue()).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view2) {
HomeFragment.V(HomeFragment.this, view2);
}
});
}
}
public final void W(final ArrayList<PromoEntity> selectedImages) {
CarouselView carouselView = this.carouselView;
Intrinsics.checkNotNull(carouselView);
carouselView.getContainerViewPager().setPageMargin(-((int) getResources().getDimension(R.dimen.bb_xxsuper_padding)));
CarouselView carouselView2 = this.carouselView;
Intrinsics.checkNotNull(carouselView2);
carouselView2.setViewListener(this.bannerBottomListener);
CarouselView carouselView3 = this.carouselView;
Intrinsics.checkNotNull(carouselView3);
carouselView3.setPageCount(selectedImages.size());
CarouselView carouselView4 = this.carouselView;
Intrinsics.checkNotNull(carouselView4);
carouselView4.setImageClickListener(new ImageClickListener() {
public final void onClick(int i) {
HomeFragment.X(selectedImages, this, i);
}
});
}
public final void Y(View view) {
GridLayoutManager gridLayoutManager = new GridLayoutManager(getActivity(), getResources().getInteger(R.integer.home_grid_column));
RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.dashboard_container);
int i = 0;
recyclerView.setNestedScrollingEnabled(false);
recyclerView.setLayoutManager(gridLayoutManager);
recyclerView.setFocusable(false);
this.homeGridAdapter = new HomeGridAdapter(this);
new ArrayList();
ArrayList arrayList = new ArrayList();
AppSession appSession = this.appSession;
ArrayList<MenuListEntity> listHomeGridMain = appSession != null ? MenuConfig.getListHomeGridMain(this.configSession, appSession.isTesterUser()) : null;
Intrinsics.checkNotNull(listHomeGridMain);
int size = listHomeGridMain.size();
for (int i2 = 0; i2 < size; i2++) {
if (listHomeGridMain.get(i2).isAddedInHome()) {
arrayList.add(listHomeGridMain.get(i2));
}
}
Collections.sort(arrayList, this.comparatorMenuHome);
HomeGridAdapter homeGridAdapter = this.homeGridAdapter;
Intrinsics.checkNotNull(homeGridAdapter);
homeGridAdapter.updateList(arrayList);
recyclerView.setAdapter(this.homeGridAdapter);
HomeGridAdapter homeGridAdapter2 = this.homeGridAdapter;
Intrinsics.checkNotNull(homeGridAdapter2);
if (homeGridAdapter2.getCollection().size() > 0) {
HomeGridAdapter homeGridAdapter3 = this.homeGridAdapter;
Intrinsics.checkNotNull(homeGridAdapter3);
int size2 = homeGridAdapter3.getCollection().size();
int i3 = 0;
while (i < size2) {
HomeGridAdapter homeGridAdapter4 = this.homeGridAdapter;
Intrinsics.checkNotNull(homeGridAdapter4);
if (Intrinsics.areEqual(homeGridAdapter4.getCollection().get(i).getTitle(), requireContext().getString(R.string.menu_lainya))) {
i3 = 1;
}
i++;
}
i = i3;
}
if (i == 0) {
String string = requireContext().getString(R.string.menu_lainya);
Intrinsics.checkNotNullExpressionValue(string, "requireContext().getString(R.string.menu_lainya)");
MenuListEntity menuListEntity = new MenuListEntity(string, R.drawable.ic_menu_lainnya, R.drawable.ic_menu_lainnya, (Class<?>) OtherHomeMenuActivity.class);
ConfigSession configSession = this.configSession;
Intrinsics.checkNotNull(configSession);
menuListEntity.setUrlIcon(configSession.retrieveMap(ConfigSession.PROPERTY_URL, ConfigSession.KEY_ICON_URL_MENU_LAINNYA));
menuListEntity.setEnabled(true);
HomeGridAdapter homeGridAdapter5 = this.homeGridAdapter;
Intrinsics.checkNotNull(homeGridAdapter5);
homeGridAdapter5.appendData(menuListEntity, true);
}
}
@Override
public void adapterResult(BaseAdapter baseAdapter, MenuListEntity menuListEntity, int i) {
adapterResult2((BaseAdapter<?, ?>) baseAdapter, menuListEntity, i);
}
public final void fetchDocumentStatus() {
MessageComposer messageComposer = new MessageComposer(7, "ro/customer/check_kyc");
messageComposer.setRequest_method(MessageComposer.GET);
messageComposer.setData_type(2);
messageComposer.setShowProgressRegular(false);
messageComposer.addMessage("user_uuid", Device.getDeviceUUID(requireActivity().getApplicationContext()).toString());
AppSession appSession = this.appSession;
Intrinsics.checkNotNull(appSession);
messageComposer.addMessage("user_id", appSession.retrieve(AppSession.PROPERTY_MERCHANT_ID));
messageComposer.addMessage(BaseMessage.INDEX_VIA, "BB ANDROID");
messageComposer.addMessage(BaseMessage.INDEX_APP_ID, "SPEEDCASH");
messageComposer.setMessageProcess(new HomeFragment$fetchDocumentStatus$1(this));
new MessageSender(requireActivity().getApplicationContext(), messageComposer).execute();
}
@Nullable
public final ConstraintLayout getConstraintLayoutBaru() {
return this.constraintLayoutBaru;
}
@NotNull
public final Unit getDataGroupProductEmoneyGame() {
DataSession dataSession = this.dataSession;
Intrinsics.checkNotNull(dataSession);
if (dataSession.retrieve(DataSession.PROPERTY_LIST_GAME_ASAP) != null) {
DataSession dataSession2 = this.dataSession;
Intrinsics.checkNotNull(dataSession2);
String retrieve = dataSession2.retrieve(DataSession.PROPERTY_LIST_GAME_ASAP);
Intrinsics.checkNotNullExpressionValue(retrieve, "dataSession!!.retrieve(D….PROPERTY_LIST_GAME_ASAP)");
if (retrieve.length() == 0) {
refreshDataGroupProductEmoneyGame();
} else {
DataSession dataSession3 = this.dataSession;
Intrinsics.checkNotNull(dataSession3);
AsapHelper.WrapperReturnList parserEMoneyGameHashMap = AsapHelper.getParserEMoneyGameHashMap(dataSession3.retrieve(DataSession.PROPERTY_LIST_GAME_ASAP));
this.wrapGameResult = parserEMoneyGameHashMap;
this.listProductGame = AsapHelper.listProductGame(parserEMoneyGameHashMap);
}
} else {
DataSession dataSession4 = this.dataSession;
Intrinsics.checkNotNull(dataSession4);
AsapHelper.WrapperReturnList parserEMoneyGameHashMap2 = AsapHelper.getParserEMoneyGameHashMap(dataSession4.retrieve(DataSession.PROPERTY_LIST_GAME_ASAP));
this.wrapGameResult = parserEMoneyGameHashMap2;
this.listProductGame = AsapHelper.listProductGame(parserEMoneyGameHashMap2);
}
DataSession dataSession5 = this.dataSession;
Intrinsics.checkNotNull(dataSession5);
if (dataSession5.retrieve(DataSession.PROPERTY_LIST_E_MONEY) != null) {
DataSession dataSession6 = this.dataSession;
Intrinsics.checkNotNull(dataSession6);
String retrieve2 = dataSession6.retrieve(DataSession.PROPERTY_LIST_E_MONEY);
Intrinsics.checkNotNullExpressionValue(retrieve2, "dataSession!!.retrieve(D…on.PROPERTY_LIST_E_MONEY)");
if (retrieve2.length() == 0) {
refreshDataGroupProductEmoneyGame();
} else {
DataSession dataSession7 = this.dataSession;
Intrinsics.checkNotNull(dataSession7);
AsapHelper.WrapperReturnList parserEMoneyGameHashMap3 = AsapHelper.getParserEMoneyGameHashMap(dataSession7.retrieve(DataSession.PROPERTY_LIST_E_MONEY));
this.wrapEmoneyResult = parserEMoneyGameHashMap3;
this.listProductEmoney = AsapHelper.listProductEmoney(parserEMoneyGameHashMap3);
}
} else {
DataSession dataSession8 = this.dataSession;
Intrinsics.checkNotNull(dataSession8);
AsapHelper.WrapperReturnList parserEMoneyGameHashMap4 = AsapHelper.getParserEMoneyGameHashMap(dataSession8.retrieve(DataSession.PROPERTY_LIST_E_MONEY));
this.wrapEmoneyResult = parserEMoneyGameHashMap4;
this.listProductEmoney = AsapHelper.listProductEmoney(parserEMoneyGameHashMap4);
}
return Unit.INSTANCE;
}
@Override
@NotNull
public Activity getInvokerActivity() {
ComponentActivity requireActivity = requireActivity();
Intrinsics.checkNotNullExpressionValue(requireActivity, "requireActivity()");
return requireActivity;
}
@Nullable
public final ArrayList<AsapItemDashboardEntity> getLisDataDitampilkan() {
return this.lisDataDitampilkan;
}
@Nullable
public final RecyclerView getRv_promo() {
return this.rv_promo;
}
public final boolean getSudahTahuQuickPayment() {
return this.sudahTahuQuickPayment;
}
public final String getTAG() {
return this.TAG;
}
@NotNull
public final String getUrl_icon() {
return this.url_icon;
}
@NotNull
public final String getUrl_web() {
return this.url_web;
}
public final boolean getIsHomeExpandedAdapter() {
return this.isHomeExpandedAdapter;
}
public final boolean getIsSudahProsesKyc() {
return this.isSudahProsesKyc;
}
public final void k0() {
View view;
AppSession appSession = this.appSession;
Intrinsics.checkNotNull(appSession);
if (!Var.toBoolean(appSession.retrieve(AppSession.CHAT_NOTIFY_FLAG), false)) {
View view2 = this.iv_badge_notify;
if (view2 == null) {
return;
}
view2.setVisibility(8);
return;
}
View view3 = this.ic_chat_beb;
if (!(view3 != null && view3.getVisibility() == 0) || (view = this.iv_badge_notify) == null) {
return;
}
view.setVisibility(0);
}
@SuppressLint({"SetJavaScriptEnabled", "AddJavascriptInterface"})
public final void l0(final View view) {
ApiConfig.fetchHomepageWebview(getActivity(), new BBCallback() {
@Override
public final void do_callback(int i, Object obj) {
HomeFragment.m0(view, this, i, (String) obj);
}
});
}
public final void n0(final boolean isShow) {
new Handler(Looper.getMainLooper()).post(new Runnable() {
@Override
public final void run() {
HomeFragment.o0(isShow, this);
}
});
}
@Override
public void onClick(@NotNull View view) {
Intrinsics.checkNotNullParameter(view, "view");
switch (view.getId()) {
case R.id.asap_tambah_akses:
Affinity.launch(getActivity(), AsapDataActivity.class, AsapDataActivity.getAsapDataBundle(true));
break;
case R.id.asap_tittle:
Affinity.launch(getActivity(), AsapDataActivity.class, AsapDataActivity.getAsapDataBundle(true));
break;
case R.id.card_view_lihat_semua:
Affinity.launch(getActivity(), PromoNewActivity.class);
break;
case R.id.ic_chat_beb:
case R.id.ic_chat_l:
case R.id.iv_badge_notify:
break;
case R.id.imageViewBayar:
case R.id.textViewBayar:
Affinity.launch(getActivity(), NewQRScannerActivity.class);
break;
case R.id.imageViewCashOut:
case R.id.textViewCashOut:
Affinity.purge(getActivity(), CashWithdrawActivity.class);
break;
case R.id.imageViewPoint:
case R.id.imageViewToPoint:
case R.id.tv_point_count:
case R.id.tv_point_count2:
case R.id.tv_point_label:
Affinity.launch(getActivity(), PointsActivity.class, null);
break;
case R.id.imageViewTopUp:
case R.id.textViewTopUp:
Affinity.launch(getActivity(), DepositActivity.class);
break;
case R.id.imageViewTransfer:
case R.id.textViewTransfer:
Affinity.launch(getActivity(), TransferToAllActivity.class);
break;
case R.id.iv_close_lucky:
LinearLayout linearLayout = this.line_info_lucky;
Intrinsics.checkNotNull(linearLayout);
linearLayout.setVisibility(8);
break;
case R.id.line_info_lucky:
LinearLayout linearLayout2 = this.line_info_lucky;
Intrinsics.checkNotNull(linearLayout2);
linearLayout2.setVisibility(8);
Bundle bundle = new Bundle();
bundle.putString(SurpriseActivity.accessedId, this.url_web);
Affinity.launch(getActivity(), SurpriseActivity.class, bundle);
break;
case R.id.tv_btn_promo_all:
Affinity.launch(getActivity(), PromoActivity.class);
break;
default:
super.onClick(view);
break;
}
}
@Override
@Nullable
public View onCreateView(@NotNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
Intrinsics.checkNotNullParameter(inflater, "inflater");
View inflate = inflater.inflate(R.layout.fragment_home, container, false);
this.appSession = new AppSession(getActivity());
this.dataSession = new DataSession(getActivity());
this.configSession = new ConfigSession(getActivity());
this.edit_bundle = new Bundle();
Intrinsics.checkNotNullExpressionValue(inflate, "view");
U(inflate);
this.carouselView = inflate.findViewById(R.id.carouselView);
((TextView) inflate.findViewById(R.id.asap_tittle)).setOnClickListener(this);
((TextView) inflate.findViewById(R.id.asap_tambah_akses)).setOnClickListener(this);
((ImageView) inflate.findViewById(R.id.imageViewBayar)).setOnClickListener(this);
((ImageView) inflate.findViewById(R.id.imageViewTopUp)).setOnClickListener(this);
((ImageView) inflate.findViewById(R.id.imageViewTransfer)).setOnClickListener(this);
((TextView) inflate.findViewById(R.id.textViewBayar)).setOnClickListener(this);
((TextView) inflate.findViewById(R.id.textViewTopUp)).setOnClickListener(this);
((TextView) inflate.findViewById(R.id.textViewTransfer)).setOnClickListener(this);
((ImageView) inflate.findViewById(R.id.imageViewPoint)).setOnClickListener(this);
((ImageView) inflate.findViewById(R.id.imageViewToPoint)).setOnClickListener(this);
View findViewById = inflate.findViewById(R.id.tv_point_label);
Intrinsics.checkNotNullExpressionValue(findViewById, "view.findViewById(R.id.tv_point_label)");
((TextView) findViewById).setOnClickListener(this);
((ImageView) inflate.findViewById(R.id.imageViewCashOut)).setOnClickListener(this);
((TextView) inflate.findViewById(R.id.textViewCashOut)).setOnClickListener(this);
TextView textView = (TextView) inflate.findViewById(R.id.tv_point_count);
this.tv_point_count = textView;
if (textView != null) {
textView.setOnClickListener(this);
}
TextView textView2 = (TextView) inflate.findViewById(R.id.tv_point_count2);
if (textView2 != null) {
textView2.setOnClickListener(this);
}
TextView textView3 = (TextView) inflate.findViewById(R.id.tv_rp);
if (textView3 != null) {
textView3.setVisibility(0);
}
textView3.setText("Rp.");
textView2.setText("Poin");
View findViewById2 = inflate.findViewById(R.id.tv_btn_promo_all);
this.tv_btn_promo_all = findViewById2;
if (findViewById2 != null) {
findViewById2.setOnClickListener(this);
}
inflate.findViewById(R.id.card_view_lihat_semua).setOnClickListener(this);
this.rv_promo = (RecyclerView) inflate.findViewById(R.id.rv_promo);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity(), 1, false);
RecyclerView recyclerView = this.rv_promo;
if (recyclerView != null) {
recyclerView.setLayoutManager(linearLayoutManager);
}
RecyclerView recyclerView2 = this.rv_promo;
if (recyclerView2 != null) {
recyclerView2.setFocusable(false);
}
BannerAdapter bannerAdapter = new BannerAdapter(getActivity());
this.bannerAdapter = bannerAdapter;
RecyclerView recyclerView3 = this.rv_promo;
if (recyclerView3 != null) {
recyclerView3.setAdapter(bannerAdapter);
}
this.constraintLayoutBaru = inflate.findViewById(R.id.constraintLayoutBaru);
SwipeRefreshLayout swipeRefreshLayout = (SwipeRefreshLayout) inflate.findViewById(R.id.swipe_refresh_home);
this.swipe_refresh_home = swipeRefreshLayout;
if (swipeRefreshLayout != null) {
swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public final void onRefresh() {
HomeFragment.a0(HomeFragment.this);
}
});
}
MaterialCardView findViewById3 = inflate.findViewById(R.id.card_view_empty_asap);
this.card_view_empty_asap = findViewById3;
if (findViewById3 != null) {
findViewById3.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
HomeFragment.b0(HomeFragment.this, view);
}
});
}
this.constraintLayoutInfoKyc = inflate.findViewById(R.id.ConstraintLayoutInfoKyc);
AppCompatTextView findViewById4 = inflate.findViewById(R.id.chg_warning_gratis);
Intrinsics.checkNotNullExpressionValue(findViewById4, "view.findViewById(R.id.chg_warning_gratis)");
this.chg_warning_gratis = findViewById4;
ConstraintLayout constraintLayout = this.constraintLayoutInfoKyc;
if (constraintLayout != null) {
constraintLayout.setVisibility(8);
}
ConstraintLayout constraintLayout2 = this.constraintLayoutInfoKyc;
if (constraintLayout2 != null) {
constraintLayout2.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
HomeFragment.c0(HomeFragment.this, view);
}
});
}
AppSession appSession = this.appSession;
Intrinsics.checkNotNull(appSession);
if (appSession.isEnterHomeFromSplash()) {
getDataGroupProductEmoneyGame();
fetchDocumentStatus();
AppSession appSession2 = this.appSession;
Intrinsics.checkNotNull(appSession2);
appSession2.remove(AppSession.OPEN_HOME_FROM_SPLASH);
}
this.sc_balance2 = (TextView) inflate.findViewById(R.id.sc_balance2);
setBalanceText();
final CheckBox checkBox = (CheckBox) inflate.findViewById(R.id.checkbox_balance);
AppSession appSession3 = this.appSession;
Intrinsics.checkNotNull(appSession3);
if (Var.toBoolean(appSession3.retrieve(AppSession.VISIBLE_SALDO), true)) {
TextView textView4 = this.sc_balance2;
if (textView4 != null) {
textView4.setTransformationMethod(HideReturnsTransformationMethod.getInstance());
}
TextView textView5 = this.tv_point_count;
if (textView5 != null) {
textView5.setTransformationMethod(HideReturnsTransformationMethod.getInstance());
}
checkBox.setChecked(true);
} else {
TextView textView6 = this.sc_balance2;
if (textView6 != null) {
textView6.setTransformationMethod(PasswordTransformationMethod.getInstance());
}
TextView textView7 = this.tv_point_count;
if (textView7 != null) {
textView7.setTransformationMethod(PasswordTransformationMethod.getInstance());
}
checkBox.setChecked(false);
}
checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z) {
HomeFragment.d0(HomeFragment.this, compoundButton, z);
}
});
TextView textView8 = this.sc_balance2;
if (textView8 != null) {
textView8.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
HomeFragment.e0(checkBox, this, view);
}
});
}
((TextView) inflate.findViewById(R.id.textViewSaldoKamu)).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
HomeFragment.f0(checkBox, this, view);
}
});
LinearLayoutManager linearLayoutManager2 = new LinearLayoutManager(getActivity(), 1, false);
RecyclerView recyclerView4 = (RecyclerView) inflate.findViewById(R.id.rv_quick_payment);
this.rvQuickPayment = recyclerView4;
if (recyclerView4 != null) {
recyclerView4.setLayoutManager(linearLayoutManager2);
}
TextView textView9 = (TextView) inflate.findViewById(R.id.tv_profil_nama_pemilik3);
AppSession appSession4 = this.appSession;
Intrinsics.checkNotNull(appSession4);
String var = Var.toString(appSession4.retrieve(AppSession.PROPERTY_OWNER_NAME), "");
if (Intrinsics.areEqual(var, "")) {
textView9.setText("Hai, " + WordUtils.capitalizeFully(var));
} else {
StringBuilder sb = new StringBuilder();
Intrinsics.checkNotNullExpressionValue(var, "owner");
String substring = var.substring(0, 1);
Intrinsics.checkNotNullExpressionValue(substring, "substring(...)");
Locale locale = Locale.getDefault();
Intrinsics.checkNotNullExpressionValue(locale, "getDefault()");
String upperCase = substring.toUpperCase(locale);
Intrinsics.checkNotNullExpressionValue(upperCase, "toUpperCase(...)");
sb.append(upperCase);
String substring2 = var.substring(1);
Intrinsics.checkNotNullExpressionValue(substring2, "substring(...)");
Locale locale2 = Locale.getDefault();
Intrinsics.checkNotNullExpressionValue(locale2, "getDefault()");
String lowerCase = substring2.toLowerCase(locale2);
Intrinsics.checkNotNullExpressionValue(lowerCase, "toLowerCase(...)");
sb.append(lowerCase);
textView9.setText("Hai, " + WordUtils.capitalizeFully(sb.toString()));
}
Compat.setTransparentStatusBar(getActivity());
P();
Q();
l0(inflate);
new Handler().postDelayed(new Runnable() {
@Override
public final void run() {
HomeFragment.g0(HomeFragment.this);
}
}, 300L);
if (this.listProductEmoney == null) {
getDataGroupProductEmoneyGame();
}
LinearLayout linearLayout = (LinearLayout) inflate.findViewById(R.id.line_info_lucky);
this.line_info_lucky = linearLayout;
if (linearLayout != null) {
linearLayout.setVisibility(8);
}
LinearLayout linearLayout2 = this.line_info_lucky;
if (linearLayout2 != null) {
linearLayout2.setOnClickListener(this);
}
inflate.findViewById(R.id.iv_close_lucky).setOnClickListener(this);
this.lucky_game = (ImageView) inflate.findViewById(R.id.iv_content_lucky);
AppSession appSession5 = this.appSession;
Intrinsics.checkNotNull(appSession5);
String retrieve = appSession5.retrieve(AppSession.PROPERTY_HANDPHONE);
AppSession appSession6 = this.appSession;
Intrinsics.checkNotNull(appSession6);
Var.toString(appSession6.retrieve(AppSession.PROPERTY_OWNER_NAME), retrieve);
View findViewById5 = inflate.findViewById(R.id.iv_badge_notify);
this.iv_badge_notify = findViewById5;
if (findViewById5 != null) {
findViewById5.setVisibility(8);
}
View view = this.iv_badge_notify;
if (view != null) {
view.setOnClickListener(this);
}
this.ic_chat_beb = inflate.findViewById(R.id.ic_chat_beb);
TextView textView10 = (TextView) inflate.findViewById(R.id.ic_chat_l);
this.ic_chat_l = textView10;
if (textView10 != null) {
textView10.setOnClickListener(this);
}
View view2 = this.ic_chat_beb;
if (view2 != null) {
view2.setOnClickListener(this);
}
this.homeChatBtn = inflate.findViewById(R.id.group_chat);
ConfigSession configSession = this.configSession;
Intrinsics.checkNotNull(configSession);
if (configSession.retrieveMap(ConfigSession.PROPERTY_URL, ConfigSession.KEY_ICON_URL_IMAGE_BANDO) != null) {
ImageView imageView = (ImageView) inflate.findViewById(R.id.iv_sc_bando);
RequestManager with = Glide.with(getBaseActivity());
ConfigSession configSession2 = this.configSession;
Intrinsics.checkNotNull(configSession2);
with.load(configSession2.retrieveMap(ConfigSession.PROPERTY_URL, ConfigSession.KEY_ICON_URL_IMAGE_BANDO)).apply(new RequestOptions().diskCacheStrategy(DiskCacheStrategy.NONE).skipMemoryCache(true).placeholder(R.drawable.sc_bando).error(R.drawable.sc_bando)).into(imageView);
}
inflate.findViewById(R.id.ivTopUp2).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view3) {
HomeFragment.Z(HomeFragment.this, view3);
}
});
return inflate;
}
@Override
public void onDestroy() {
super.onDestroy();
}
@Subscribe(threadMode = ThreadMode.MAIN)
public final void onMessageEvent(@NotNull BusMessage event) {
Intrinsics.checkNotNullParameter(event, "event");
if (event.getEventType() == 1) {
AppSession appSession = this.appSession;
Intrinsics.checkNotNull(appSession);
appSession.store(AppSession.PROPERTY_BALANCE, Var.toString(Double.valueOf(event.getBalance()), "0"));
setBalanceText();
}
if (event.getEventType() == 7) {
AppSession appSession2 = this.appSession;
Intrinsics.checkNotNull(appSession2);
appSession2.store(AppSession.CHAT_NOTIFY_FLAG, "true");
k0();
}
}
@Override
public void onResume() {
String retrieve;
super.onResume();
View requireView = requireView();
Intrinsics.checkNotNullExpressionValue(requireView, "requireView()");
Y(requireView);
Affinity.refreshBalance(getActivity(), new BBCallback() {
@Override
public final void do_callback(int i, Object obj) {
HomeFragment.h0(HomeFragment.this, i, ((Boolean) obj).booleanValue());
}
});
AppSession appSession = this.appSession;
if (appSession != null && (retrieve = appSession.retrieve(AppSession.PROPERTY_IS_EXPANDED_ASAP)) != null) {
this.isHomeExpandedAdapter = Var.toBoolean(retrieve, this.isHomeExpandedAdapter);
}
AppSession appSession2 = this.appSession;
Intrinsics.checkNotNull(appSession2);
if (appSession2.isSessionValid() && Connections.isConnectingToInternet(getActivity())) {
R();
}
RecyclerView recyclerView = this.rvQuickPayment;
if (recyclerView != null) {
Intrinsics.checkNotNull(recyclerView);
if (recyclerView.getAdapter() != null) {
RecyclerView recyclerView2 = this.rvQuickPayment;
Intrinsics.checkNotNull(recyclerView2);
RecyclerView.Adapter adapter = recyclerView2.getAdapter();
Intrinsics.checkNotNull(adapter);
if (adapter.getItemCount() == 0) {
RecyclerView recyclerView3 = this.rvQuickPayment;
Intrinsics.checkNotNull(recyclerView3);
recyclerView3.setVisibility(8);
MaterialCardView materialCardView = this.card_view_empty_asap;
Intrinsics.checkNotNull(materialCardView);
materialCardView.setVisibility(0);
} else {
RecyclerView recyclerView4 = this.rvQuickPayment;
Intrinsics.checkNotNull(recyclerView4);
recyclerView4.setVisibility(0);
MaterialCardView materialCardView2 = this.card_view_empty_asap;
Intrinsics.checkNotNull(materialCardView2);
materialCardView2.setVisibility(8);
}
}
}
HomeGridAdapter homeGridAdapter = this.homeGridAdapter;
Intrinsics.checkNotNull(homeGridAdapter);
if (homeGridAdapter.getItemCount() == 0) {
View requireView2 = requireView();
Intrinsics.checkNotNullExpressionValue(requireView2, "requireView()");
Y(requireView2);
}
if (this.listProductEmoney == null) {
getDataGroupProductEmoneyGame();
}
N();
k0();
J();
DataSession dataSession = this.dataSession;
Intrinsics.checkNotNull(dataSession);
boolean z = Var.toBoolean(dataSession.retrieve(DataSession.KEY_IS_SUDAH_PROSES_KYC), false);
this.isSudahProsesKyc = z;
if (z) {
return;
}
fetchDocumentStatus();
}
@Override
public void onStart() {
super.onStart();
if (EventBus.getDefault().isRegistered(this)) {
return;
}
EventBus.getDefault().register(this);
}
@Override
public void onStop() {
super.onStop();
EventBus.getDefault().unregister(this);
}
@Override
public boolean onTouch(@NotNull View v, @NotNull MotionEvent event) {
Intrinsics.checkNotNullParameter(v, "v");
Intrinsics.checkNotNullParameter(event, "event");
ViewGroup.LayoutParams layoutParams = v.getLayoutParams();
Intrinsics.checkNotNull(layoutParams, "null cannot be cast to non-null type androidx.coordinatorlayout.widget.CoordinatorLayout.LayoutParams");
CoordinatorLayout.LayoutParams layoutParams2 = (CoordinatorLayout.LayoutParams) layoutParams;
int action = event.getAction();
if (action == 0) {
v.setLayoutParams(layoutParams2);
return true;
}
if (action != 1 && action != 2) {
return false;
}
((ViewGroup.MarginLayoutParams) layoutParams2).bottomMargin = ((int) event.getRawY()) - v.getHeight();
((ViewGroup.MarginLayoutParams) layoutParams2).rightMargin = ((int) event.getRawX()) - (v.getWidth() / 2);
v.setLayoutParams(layoutParams2);
return true;
}
public final boolean p0(Context context, MenuListEntity menuListEntity) {
String url;
if (menuListEntity != null) {
try {
url = menuListEntity.getUrl();
} catch (Exception e) {
StringBuilder sb = new StringBuilder();
sb.append("Bad URI %s");
sb.append(menuListEntity != null ? menuListEntity.getUrl() : null);
sb.append(e);
return false;
}
} else {
url = null;
}
Intent parseUri = Intent.parseUri(url, 1);
Intrinsics.checkNotNullExpressionValue(parseUri, "parseUri(menuListEntity?…Intent.URI_INTENT_SCHEME)");
if (f0.matcher(menuListEntity != null ? menuListEntity.getUrl() : null).matches() && !INSTANCE.b(context, parseUri)) {
return false;
}
parseUri.addCategory("android.intent.category.BROWSABLE");
parseUri.setComponent(null);
Intent selector = parseUri.getSelector();
if (selector != null) {
selector.addCategory("android.intent.category.BROWSABLE");
selector.setComponent(null);
}
parseUri.putExtra("com.android.browser.application_id", requireContext().getPackageName());
if (context != null) {
try {
context.startActivity(parseUri);
} catch (ActivityNotFoundException unused) {
StringBuilder sb2 = new StringBuilder();
sb2.append("No application can handle %s");
sb2.append(menuListEntity != null ? menuListEntity.getUrl() : null);
return false;
} catch (SecurityException unused2) {
StringBuilder sb3 = new StringBuilder();
sb3.append("SecurityException when starting intent for %s");
sb3.append(menuListEntity != null ? menuListEntity.getUrl() : null);
return false;
}
}
return true;
}
public final void q0(final AsapItemDashboardEntity asapItemDashboardEntity) {
final AsapTransaction asapTransaction = new AsapTransaction(getActivity(), this.appSession);
final DialogPlus create = DialogPlus.newDialog(requireActivity()).setContentHolder(new ViewHolder(LayoutInflater.from(getActivity()).inflate(R.layout.widget_info_quick_payment, (ViewGroup) null, false))).setContentWidth(-1).setContentHeight(-2).setCancelable(true).setOnCancelListener(new OnCancelListener() {
public final void onCancel(DialogPlus dialogPlus) {
HomeFragment.r0(dialogPlus);
}
}).setGravity(80).create();
create.show();
View holderView = create.getHolderView();
Button button = (Button) holderView.findViewById(R.id.btn_skip);
Button button2 = (Button) holderView.findViewById(R.id.btn_ok);
button.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
HomeFragment.s0(create, this, view);
}
});
button2.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
HomeFragment.t0(create, this, asapItemDashboardEntity, asapTransaction, view);
}
});
}
public final void refreshDataGroupProductEmoneyGame() {
AsapHelper.getGameEmoneyAsapDataStoreToSession(getContext(), this.appSession, "game", new BBCallback() {
@Override
public final void do_callback(int i, Object obj) {
HomeFragment.i0(HomeFragment.this, i, ((Boolean) obj).booleanValue());
}
});
AsapHelper.getGameEmoneyAsapDataStoreToSession(getContext(), this.appSession, "topup", new BBCallback() {
@Override
public final void do_callback(int i, Object obj) {
HomeFragment.j0(HomeFragment.this, i, ((Boolean) obj).booleanValue());
}
});
}
public final void setBalanceText() {
if (this.sc_balance2 != null) {
AppSession appSession = this.appSession;
Intrinsics.checkNotNull(appSession);
String money = Locales.money(appSession.retrieve(AppSession.PROPERTY_BALANCE));
TextView textView = this.sc_balance2;
Intrinsics.checkNotNull(textView);
Intrinsics.checkNotNullExpressionValue(money, "removeComa");
textView.setText(b25.replace$default(b25.replace$default(money, ",", ".", false, 4, (Object) null), "Rp ", "", false, 4, (Object) null));
AppSession appSession2 = this.appSession;
Intrinsics.checkNotNull(appSession2);
if (Var.toDouble(appSession2.retrieve(AppSession.PROPERTY_POIN), 0.0d) <= 0.0d) {
TextView textView2 = this.tv_point_count;
if (textView2 != null) {
textView2.setText("0.-");
return;
}
return;
}
TextView textView3 = this.tv_point_count;
if (textView3 != null) {
AppSession appSession3 = this.appSession;
Intrinsics.checkNotNull(appSession3);
String moneyNoFraction = Locales.moneyNoFraction(appSession3.retrieve(AppSession.PROPERTY_POIN));
Intrinsics.checkNotNullExpressionValue(moneyNoFraction, "moneyNoFraction(appSessi…ppSession.PROPERTY_POIN))");
textView3.setText(b25.replace$default(moneyNoFraction, "Rp", "", false, 4, (Object) null));
}
}
}
public final void setConstraintLayoutBaru(@Nullable ConstraintLayout constraintLayout) {
this.constraintLayoutBaru = constraintLayout;
}
public final void setHomeExpandedAdapter(boolean z) {
this.isHomeExpandedAdapter = z;
}
public final void setLisDataDitampilkan(@Nullable ArrayList<AsapItemDashboardEntity> arrayList) {
this.lisDataDitampilkan = arrayList;
}
public final void setRv_promo(@Nullable RecyclerView recyclerView) {
this.rv_promo = recyclerView;
}
public final void setSudahProsesKyc(boolean z) {
this.isSudahProsesKyc = z;
}
public final void setSudahTahuQuickPayment(boolean z) {
this.sudahTahuQuickPayment = z;
}
public final void setUrl_icon(@NotNull String str) {
Intrinsics.checkNotNullParameter(str, "<set-?>");
this.url_icon = str;
}
public final void setUrl_web(@NotNull String str) {
Intrinsics.checkNotNullParameter(str, "<set-?>");
this.url_web = str;
}
@Override
@Deprecated(message = "Deprecated in Java")
public void setUserVisibleHint(boolean isVisibleToUser) {
super.setUserVisibleHint(isVisibleToUser);
if (isVisibleToUser) {
AppSession appSession = this.appSession;
if (appSession != null) {
Intrinsics.checkNotNull(appSession);
if (appSession.isEnterHomeFromSplash()) {
ConstraintLayout constraintLayout = this.constraintLayoutInfoKyc;
Intrinsics.checkNotNull(constraintLayout);
constraintLayout.setVisibility(8);
fetchDocumentStatus();
} else {
ConstraintLayout constraintLayout2 = this.constraintLayoutInfoKyc;
Intrinsics.checkNotNull(constraintLayout2);
constraintLayout2.setVisibility(8);
DataSession dataSession = this.dataSession;
Intrinsics.checkNotNull(dataSession);
boolean z = Var.toBoolean(dataSession.retrieve(DataSession.KEY_IS_SUDAH_PROSES_KYC), false);
this.isSudahProsesKyc = z;
if (z) {
ConstraintLayout constraintLayout3 = this.constraintLayoutInfoKyc;
Intrinsics.checkNotNull(constraintLayout3);
constraintLayout3.setVisibility(8);
} else {
ConstraintLayout constraintLayout4 = this.constraintLayoutInfoKyc;
Intrinsics.checkNotNull(constraintLayout4);
constraintLayout4.setVisibility(0);
}
}
}
if (this.configSession != null) {
HomeGridAdapter homeGridAdapter = this.homeGridAdapter;
Intrinsics.checkNotNull(homeGridAdapter);
homeGridAdapter.getCollection().size();
HomeGridAdapter homeGridAdapter2 = this.homeGridAdapter;
Intrinsics.checkNotNull(homeGridAdapter2);
if (homeGridAdapter2.getItemCount() == 1) {
View requireView = requireView();
Intrinsics.checkNotNullExpressionValue(requireView, "requireView()");
Y(requireView);
}
}
}
}
public void adapterResult2(@Nullable BaseAdapter<?, ?> adapter, @Nullable MenuListEntity menuListEntity, int position) {
Class<?> activity = null;
if (Intrinsics.areEqual(HomeFragment.class, menuListEntity != null ? menuListEntity.getActivity() : null)) {
return;
}
if (b25.equals(menuListEntity != null ? menuListEntity.getTitle() : null, "transfer 147 bank", true) && position == 1) {
Bundle bundle = new Bundle();
bundle.putBoolean(AppSession.IS_FROM_NEW_HOME, false);
bundle.putString("tittle", menuListEntity != null ? menuListEntity.getTitle() : null);
bundle.putString(TransferWithdrawActivity.KEY_ALL, TransferWithdrawActivity.RESULT_WITHDRAW);
bundle.putString(TransferWithdrawActivity.KEY_TYPE, TransferWithdrawActivity.FROM_MENU);
Affinity.launch(getActivity(), TransferWithdrawActivity.class, bundle);
return;
}
if ((menuListEntity != null && menuListEntity.getLaunch_mode() == 2) != false) {
if (BaseDialogFragment.class.isAssignableFrom(menuListEntity != null ? menuListEntity.getActivity() : null)) {
if (menuListEntity != null) {
try {
activity = menuListEntity.getActivity();
} catch (IllegalAccessException e) {
e.printStackTrace();
return;
} catch (InstantiationException e2) {
e2.printStackTrace();
return;
}
}
Intrinsics.checkNotNull(activity);
Object newInstance = activity.newInstance();
Intrinsics.checkNotNull(newInstance, "null cannot be cast to non-null type com.bm.sc.bebasbayar.ui.fragment.BaseDialogFragment");
BaseDialogFragment baseDialogFragment = (BaseDialogFragment) newInstance;
if (menuListEntity.getBundle() != null) {
Bundle bundle2 = menuListEntity.getBundle();
Intrinsics.checkNotNull(bundle2);
bundle2.putBoolean(AppSession.IS_FROM_NEW_HOME, false);
Bundle bundle3 = menuListEntity.getBundle();
Intrinsics.checkNotNull(bundle3);
bundle3.putString("tittle", menuListEntity.getTitle());
baseDialogFragment.setArguments(menuListEntity.getBundle());
}
baseDialogFragment.show(getChildFragmentManager(), menuListEntity.getTitle());
return;
}
}
if (menuListEntity != null && menuListEntity.getLaunch_mode() == 3) {
String url = menuListEntity != null ? menuListEntity.getUrl() : null;
try {
startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=" + url)));
return;
} catch (ActivityNotFoundException unused) {
startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=" + url)));
return;
}
}
if ((menuListEntity != null ? menuListEntity.getUrl() : null) == null) {
if ((menuListEntity != null ? menuListEntity.getBundle() : null) == null) {
Bundle bundle4 = new Bundle();
bundle4.putBoolean(AppSession.IS_FROM_NEW_HOME, false);
bundle4.putString("tittle", menuListEntity != null ? menuListEntity.getTitle() : null);
if (menuListEntity != null) {
menuListEntity.setBundle(bundle4);
}
} else {
Bundle bundle5 = menuListEntity.getBundle();
Intrinsics.checkNotNull(bundle5);
bundle5.putString("tittle", menuListEntity.getTitle());
}
Bundle bundle6 = menuListEntity != null ? menuListEntity.getBundle() : null;
Intrinsics.checkNotNull(bundle6);
bundle6.putBoolean(AppSession.IS_FROM_NEW_HOME, false);
Affinity.purge(getActivity(), menuListEntity.getActivity(), menuListEntity.getBundle(), 100);
return;
}
if (getActivity() != null) {
String appPackage = menuListEntity != null ? menuListEntity.getAppPackage() : null;
Intrinsics.checkNotNull(appPackage);
if (D(appPackage, getActivity())) {
PackageManager packageManager = requireActivity().getPackageManager();
String appPackage2 = menuListEntity != null ? menuListEntity.getAppPackage() : null;
Intrinsics.checkNotNull(appPackage2);
startActivity(packageManager.getLaunchIntentForPackage(appPackage2));
return;
}
if (p0(getActivity(), menuListEntity)) {
return;
}
Bundle bundle7 = new Bundle();
bundle7.putString("url", menuListEntity != null ? menuListEntity.getUrl() : null);
bundle7.putString(FirebaseProcessor.KEY_TITLE, menuListEntity != null ? menuListEntity.getTitle() : null);
bundle7.putBoolean(AppSession.IS_FROM_NEW_HOME, false);
bundle7.putString("interface:name", menuListEntity != null ? menuListEntity.getInterfaceName() : null);
Intent intent = new Intent((Context) getActivity(), (Class<?>) OpenWebViewActivity.class);
intent.putExtras(bundle7);
startActivity(intent);
}
}
}