导航菜单

页面标题

页面副标题

Mitra Bukalapak v2.55.0 - VpGameVoucherPackagesTabScreen.java 源代码

正在查看: Mitra Bukalapak v2.55.0 应用的 VpGameVoucherPackagesTabScreen.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.bukalapak.mitra.vp.gamevoucher.screen;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.recyclerview.widget.RecyclerView;
import com.adjust.sdk.Constants;
import com.bukalapak.android.lib.api4.response.BaseResponse;
import com.bukalapak.android.lib.api4.response.BaseResult;
import com.bukalapak.android.lib.api4.tungku.data.GameVoucherProduct;
import com.bukalapak.android.lib.api4.tungku.data.GameVoucherProductConfiguration;
import com.bukalapak.android.lib.api4.tungku.data.GameVoucherSellingPackage;
import com.bukalapak.android.lib.api4.tungku.data.InquiryGameVoucher;
import com.bukalapak.android.lib.api4.tungku.data.InvoiceTransaction;
import com.bukalapak.android.lib.api4.tungku.data.SingleKycIdentity;
import com.bukalapak.android.lib.api4.tungku.data.TransactionGameVoucher;
import com.bukalapak.android.lib.api4.tungku.service.GameVouchersService;
import com.bukalapak.mitra.apiv4.service.GameVoucherTransactionPayload;
import com.bukalapak.mitra.apiv4.service.TransactionPayload;
import com.bukalapak.mitra.vp.VpBaseScreen$Fragment;
import com.bukalapak.mitra.vp.VpBaseScreenRevamp$Fragment;
import com.bukalapak.mitra.vp.gamevoucher.screen.VpGameVoucherPackagesTabScreen;
import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.tabs.TabLayout;
import defpackage.ApiError;
import defpackage.ApiLoad;
import defpackage.C0988cn;
import defpackage.C1137ku0;
import defpackage.C1153lu0;
import defpackage.C1357su0;
import defpackage.GameID;
import defpackage.TransactionCreatedKey;
import defpackage.VpTrackerProductDetail;
import defpackage.a03;
import defpackage.a13;
import defpackage.a70;
import defpackage.an5;
import defpackage.b28;
import defpackage.b51;
import defpackage.bk8;
import defpackage.c20;
import defpackage.d48;
import defpackage.dh1;
import defpackage.dk4;
import defpackage.e20;
import defpackage.ee5;
import defpackage.eo1;
import defpackage.ew7;
import defpackage.ex2;
import defpackage.f03;
import defpackage.ft3;
import defpackage.g76;
import defpackage.ga2;
import defpackage.gx2;
import defpackage.gx9;
import defpackage.h03;
import defpackage.h2a;
import defpackage.h88;
import defpackage.ha2;
import defpackage.hn9;
import defpackage.i70;
import defpackage.ix9;
import defpackage.j1a;
import defpackage.j31;
import defpackage.j61;
import defpackage.j88;
import defpackage.jb2;
import defpackage.k03;
import defpackage.k1a;
import defpackage.k95;
import defpackage.kn8;
import defpackage.ks1;
import defpackage.ku8;
import defpackage.ky0;
import defpackage.l03;
import defpackage.l1a;
import defpackage.la0;
import defpackage.lm9;
import defpackage.lo4;
import defpackage.lv1;
import defpackage.m56;
import defpackage.ml2;
import defpackage.n41;
import defpackage.o5;
import defpackage.og8;
import defpackage.oq1;
import defpackage.ot7;
import defpackage.oy2;
import defpackage.p56;
import defpackage.p64;
import defpackage.pw3;
import defpackage.q56;
import defpackage.q95;
import defpackage.qz3;
import defpackage.r31;
import defpackage.r7a;
import defpackage.r87;
import defpackage.s64;
import defpackage.sw8;
import defpackage.t95;
import defpackage.ts0;
import defpackage.ts7;
import defpackage.ut3;
import defpackage.ux2;
import defpackage.v7a;
import defpackage.vc7;
import defpackage.wd5;
import defpackage.wea;
import defpackage.wg;
import defpackage.wh2;
import defpackage.wx0;
import defpackage.x03;
import defpackage.x09;
import defpackage.x38;
import defpackage.x75;
import defpackage.xg0;
import defpackage.xk4;
import defpackage.ys7;
import defpackage.yt3;
import defpackage.z03;
import defpackage.zd5;
import defpackage.zg0;
import defpackage.zh2;
import defpackage.zm5;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import kotlin.Metadata;

@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0005\u0018\u0000 \u00022\u00020\u0001:\u0004\u0002\u0003\u0004\u0005¨\u0006\u0006"}, d2 = {"Lcom/bukalapak/mitra/vp/gamevoucher/screen/VpGameVoucherPackagesTabScreen;", SingleKycIdentity.EMPTY, "a", "b", "Fragment", "c", "base_app_release"}, k = 1, mv = {1, 8, 0})
public final class VpGameVoucherPackagesTabScreen {

    public static final Companion INSTANCE = new Companion(null);
    private static final int b = (int) ((ys7.b(92) / ys7.b(640)) * j31.h());

    @Metadata(d1 = {"\u0000\u0084\u0001\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\u0010\b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\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\u0005\n\u0002\u0018\u0002\n\u0002\b\b\b\u0007\u0018\u00002\u0014\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00030\u00012\b\u0012\u0004\u0012\u00020\u00050\u0004B\u0007¢\u0006\u0004\bE\u0010FJ\u0010\u0010\b\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0003H\u0002J\u0018\u0010\u000b\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u00032\u0006\u0010\n\u001a\u00020\tH\u0002J\u0010\u0010\r\u001a\u00020\u00072\u0006\u0010\f\u001a\u00020\tH\u0002J\f\u0010\u000f\u001a\u0006\u0012\u0002\b\u00030\u000eH\u0002J\f\u0010\u0010\u001a\u0006\u0012\u0002\b\u00030\u000eH\u0002J*\u0010\u0014\u001a\u0006\u0012\u0002\b\u00030\u000e2\u0006\u0010\f\u001a\u00020\t2\f\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\u00120\u00112\u0006\u0010\u0006\u001a\u00020\u0003H\u0002J\u0010\u0010\u0015\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0003H\u0002J\u0014\u0010\u0018\u001a\u0006\u0012\u0002\b\u00030\u000e2\u0006\u0010\u0017\u001a\u00020\u0016H\u0002J\u0010\u0010\u0019\u001a\u00020\u00072\u0006\u0010\f\u001a\u00020\tH\u0002J\f\u0010\u001a\u001a\u0006\u0012\u0002\b\u00030\u000eH\u0002J\u0010\u0010\u001b\u001a\u00020\u00072\u0006\u0010\f\u001a\u00020\tH\u0002J\f\u0010\u001c\u001a\u0006\u0012\u0002\b\u00030\u000eH\u0002J\b\u0010\u001d\u001a\u00020\u0007H\u0002J\u0018\u0010 \u001a\u00020\u00072\u0006\u0010\u001f\u001a\u00020\u001e2\u0006\u0010\u0006\u001a\u00020\u0003H\u0002J\b\u0010!\u001a\u00020\u0003H\u0016J\u0010\u0010\"\u001a\u00020\u00022\u0006\u0010\u0006\u001a\u00020\u0003H\u0016J\u0010\u0010%\u001a\u00020\u00072\u0006\u0010$\u001a\u00020#H\u0016J\u0012\u0010(\u001a\u00020\u00072\b\u0010'\u001a\u0004\u0018\u00010&H\u0016J\u0010\u0010)\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0003H\u0016J\u0006\u0010*\u001a\u00020\u0007J\u000e\u0010+\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0003J\u0016\u0010,\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u00032\u0006\u0010\f\u001a\u00020\tJ\u0016\u0010-\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u00032\u0006\u0010\f\u001a\u00020\tJ\u0018\u00100\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u00032\b\b\u0002\u0010/\u001a\u00020.J\u001e\u00102\u001a\u0010\u0012\f\u0012\n\u0012\u0002\b\u0003\u0012\u0002\b\u0003010\u00112\u0006\u0010\u0006\u001a\u00020\u0003H\u0016J\u0006\u00103\u001a\u00020\u0007J\u000e\u00104\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0003J\u000e\u00105\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0003J\u001a\u00108\u001a\u00020\u00072\u0006\u00107\u001a\u0002062\b\u0010'\u001a\u0004\u0018\u00010&H\u0016R\u001b\u0010>\u001a\u0002098BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b:\u0010;\u001a\u0004\b<\u0010=R \u0010D\u001a\b\u0012\u0004\u0012\u00020\u00050?8\u0016X\u0096\u0004¢\u0006\f\n\u0004\b@\u0010A\u001a\u0004\bB\u0010C¨\u0006G"}, d2 = {"Lcom/bukalapak/mitra/vp/gamevoucher/screen/VpGameVoucherPackagesTabScreen$Fragment;", "Lcom/bukalapak/mitra/vp/gamevoucher/screen/Hilt_VpGameVoucherPackagesTabScreen_Fragment;", "Lcom/bukalapak/mitra/vp/gamevoucher/screen/VpGameVoucherPackagesTabScreen$a;", "Lcom/bukalapak/mitra/vp/gamevoucher/screen/VpGameVoucherPackagesTabScreen$c;", "Lzd5;", "Lee5;", "state", "Llm9;", "i3", SingleKycIdentity.EMPTY, "tabPosition", "j3", "tabPos", "h3", "Lq95;", "R2", "N2", SingleKycIdentity.EMPTY, "Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherSellingPackage;", "packages", "L2", "a3", SingleKycIdentity.EMPTY, "notes", "K2", "Z2", "Q2", "b3", "P2", "U2", "Lcom/google/android/material/tabs/TabLayout;", "tabLayout", "k3", "T2", "S2", "Landroid/content/Context;", "context", "onAttach", "Landroid/os/Bundle;", "savedInstanceState", "onActivityCreated", "V2", "d3", "c3", "X2", "e3", SingleKycIdentity.EMPTY, "shouldScrollToBottom", "f3", "Lt0;", "J2", "J", "Y2", "W2", "Landroid/view/View;", "view", "onViewCreated", "Landroidx/recyclerview/widget/RecyclerView;", "E", "Lxk4;", "O2", "()Landroidx/recyclerview/widget/RecyclerView;", "rvMain", "Lwd5;", "F", "Lwd5;", "M2", "()Lwd5;", "navBar", "<init>", "()V", "base_app_release"}, k = 1, mv = {1, 8, 0})
    public static final class Fragment extends Hilt_VpGameVoucherPackagesTabScreen_Fragment<Fragment, a, c> implements zd5<ee5> {

        private final xk4 rvMain = ml2.b(this, r87.w3);

        private final wd5<ee5> navBar = new wd5<>(z.a);

        @Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
        class a extends oy2 implements ex2<lm9> {
            a(Object obj) {
                super(0, obj, a.class, "onPaymentSummaryActionClick", "onPaymentSummaryActionClick()V", 0);
            }

            public final void a() {
                ((a) this.receiver).o6();
            }

            @Override
            public lm9 invoke() {
                a();
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00028\u0001\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "Landroid/content/Context;", "context", "a", "(Landroid/content/Context;)Lk95;"}, k = 3, mv = {1, 8, 0})
        public static final class a0 extends dk4 implements gx2<Context, qz3> {
            public a0() {
                super(1);
            }

            @Override
            public final qz3 invoke(Context context) {
                p64.h(context, "context");
                qz3 qz3Var = new qz3(context);
                kn8 kn8Var = kn8.g;
                qz3Var.G(kn8Var, kn8Var);
                return qz3Var;
            }
        }

        @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", SingleKycIdentity.EMPTY, "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
        static final class a1 extends dk4 implements ex2<String> {
            a1() {
                super(0);
            }

            @Override
            public final String invoke() {
                return Fragment.this.getString(vc7.Uw);
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00028\u0001\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "Landroid/content/Context;", "context", "a", "(Landroid/content/Context;)Lk95;"}, k = 3, mv = {1, 8, 0})
        public static final class b extends dk4 implements gx2<Context, zg0> {
            public b() {
                super(1);
            }

            @Override
            public final zg0 invoke(Context context) {
                p64.h(context, "context");
                zg0 zg0Var = new zg0(context);
                kn8 kn8Var = kn8.g;
                wx0.B(zg0Var, kn8Var, null, kn8Var, kn8Var, 2, null);
                return zg0Var;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class b0 extends dk4 implements gx2<qz3, lm9> {
            final gx2 $state;

            public b0(gx2 gx2Var) {
                super(1);
                this.$state = gx2Var;
            }

            public final void a(qz3 qz3Var) {
                p64.h(qz3Var, "it");
                qz3Var.Q(this.$state);
            }

            @Override
            public lm9 invoke(qz3 qz3Var) {
                a(qz3Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/view/View;", "it", "Llm9;", "a", "(Landroid/view/View;)V"}, k = 3, mv = {1, 8, 0})
        static final class b1 extends dk4 implements gx2<View, lm9> {
            final ts0 $this_apply;

            b1(ts0 ts0Var) {
                super(1);
                this.$this_apply = ts0Var;
            }

            public final void a(View view) {
                p64.h(view, "it");
                ((a) Fragment.this.o0()).v6(true);
                ts0.e(this.$this_apply, 0, 1, null);
            }

            @Override
            public lm9 invoke(View view) {
                a(view);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class c extends dk4 implements gx2<zg0, lm9> {
            final gx2 $state;

            public c(gx2 gx2Var) {
                super(1);
                this.$state = gx2Var;
            }

            public final void a(zg0 zg0Var) {
                p64.h(zg0Var, "it");
                zg0Var.Q(this.$state);
            }

            @Override
            public lm9 invoke(zg0 zg0Var) {
                a(zg0Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class c0 extends dk4 implements gx2<qz3, lm9> {
            public static final c0 g = new c0();

            public c0() {
                super(1);
            }

            public final void a(qz3 qz3Var) {
                p64.h(qz3Var, "it");
                qz3Var.e0();
            }

            @Override
            public lm9 invoke(qz3 qz3Var) {
                a(qz3Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class d extends dk4 implements gx2<zg0, lm9> {
            public static final d g = new d();

            public d() {
                super(1);
            }

            public final void a(zg0 zg0Var) {
                p64.h(zg0Var, "it");
                zg0Var.e0();
            }

            @Override
            public lm9 invoke(zg0 zg0Var) {
                a(zg0Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lqz3$b;", "Llm9;", "a", "(Lqz3$b;)V"}, k = 3, mv = {1, 8, 0})
        static final class d0 extends dk4 implements gx2<qz3.b, lm9> {
            final long $commission;

            d0(long j) {
                super(1);
                this.$commission = j;
            }

            public final void a(qz3.b bVar) {
                p64.h(bVar, "$this$newItem");
                ew7.c labelAVState = bVar.getLabelAVState();
                labelAVState.t(Fragment.this.getString(vc7.kw));
                lv1.b bVar2 = lv1.b.e;
                labelAVState.x(bVar2);
                ew7.c subtitleAVState = bVar.getSubtitleAVState();
                subtitleAVState.t(Fragment.this.getString(vc7.lw));
                subtitleAVState.x(lv1.b.i);
                subtitleAVState.v(c20.a.j());
                ew7.c contentAVState = bVar.getContentAVState();
                contentAVState.t(t95.a.o(this.$commission));
                contentAVState.x(bVar2);
            }

            @Override
            public lm9 invoke(qz3.b bVar) {
                a(bVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lxg0$d;", "Llm9;", "a", "(Lxg0$d;)V"}, k = 3, mv = {1, 8, 0})
        static final class e extends dk4 implements gx2<xg0.d, lm9> {
            final String $notes;

            e(String str) {
                super(1);
                this.$notes = str;
            }

            public final void a(xg0.d dVar) {
                p64.h(dVar, "$this$newItem");
                dVar.p(this.$notes);
                dVar.u(zg0.b.a);
            }

            @Override
            public lm9 invoke(xg0.d dVar) {
                a(dVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00028\u0001\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "Landroid/content/Context;", "context", "a", "(Landroid/content/Context;)Lk95;"}, k = 3, mv = {1, 8, 0})
        public static final class e0 extends dk4 implements gx2<Context, ha2> {
            public e0() {
                super(1);
            }

            @Override
            public final ha2 invoke(Context context) {
                p64.h(context, "context");
                ha2 ha2Var = new ha2(context);
                kn8 kn8Var = kn8.i;
                wx0.B(ha2Var, null, kn8Var, null, kn8Var, 5, null);
                kn8 kn8Var2 = kn8.g;
                wx0.I(ha2Var, kn8Var2, null, kn8Var2, null, 10, null);
                lo4.a(ha2Var, 17);
                return ha2Var;
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00028\u0001\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "Landroid/content/Context;", "context", "a", "(Landroid/content/Context;)Lk95;"}, k = 3, mv = {1, 8, 0})
        public static final class f extends dk4 implements gx2<Context, l03> {
            public f() {
                super(1);
            }

            @Override
            public final l03 invoke(Context context) {
                p64.h(context, "context");
                l03 l03Var = new l03(context);
                wx0.B(l03Var, null, kn8.e, null, kn8.f, 5, null);
                return l03Var;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class f0 extends dk4 implements gx2<ha2, lm9> {
            final gx2 $state;

            public f0(gx2 gx2Var) {
                super(1);
                this.$state = gx2Var;
            }

            public final void a(ha2 ha2Var) {
                p64.h(ha2Var, "it");
                ha2Var.Q(this.$state);
            }

            @Override
            public lm9 invoke(ha2 ha2Var) {
                a(ha2Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class g extends dk4 implements gx2<l03, lm9> {
            final gx2 $state;

            public g(gx2 gx2Var) {
                super(1);
                this.$state = gx2Var;
            }

            public final void a(l03 l03Var) {
                p64.h(l03Var, "it");
                l03Var.Q(this.$state);
            }

            @Override
            public lm9 invoke(l03 l03Var) {
                a(l03Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class g0 extends dk4 implements gx2<ha2, lm9> {
            public static final g0 g = new g0();

            public g0() {
                super(1);
            }

            public final void a(ha2 ha2Var) {
                p64.h(ha2Var, "it");
                ha2Var.e0();
            }

            @Override
            public lm9 invoke(ha2 ha2Var) {
                a(ha2Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class h extends dk4 implements gx2<l03, lm9> {
            public static final h g = new h();

            public h() {
                super(1);
            }

            public final void a(l03 l03Var) {
                p64.h(l03Var, "it");
                l03Var.e0();
            }

            @Override
            public lm9 invoke(l03 l03Var) {
                a(l03Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lga2$d;", "Llm9;", "a", "(Lga2$d;)V"}, k = 3, mv = {1, 8, 0})
        static final class h0 extends dk4 implements gx2<ga2.d, lm9> {
            final c $state;

            @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/view/View;", "it", "Llm9;", "a", "(Landroid/view/View;)V"}, k = 3, mv = {1, 8, 0})
            static final class a extends dk4 implements gx2<View, lm9> {
                final Fragment this$0;

                a(Fragment fragment) {
                    super(1);
                    this.this$0 = fragment;
                }

                public final void a(View view) {
                    p64.h(view, "it");
                    ((a) this.this$0.o0()).g6();
                }

                @Override
                public lm9 invoke(View view) {
                    a(view);
                    return lm9.a;
                }
            }

            h0(c cVar) {
                super(1);
                this.$state = cVar;
            }

            public final void a(ga2.d dVar) {
                p64.h(dVar, "$this$newItem");
                dVar.v(new pw3(x75.a.O()));
                String string = Fragment.this.getString(vc7.vw);
                p64.g(string, "getString(R.string.vp_game_voucher_error_title)");
                dVar.E(string);
                ApiError c = this.$state.getLoadSellingPackages().c();
                String message = c != null ? c.getMessage() : null;
                String str = true ^ (message == null || ku8.y(message)) ? message : null;
                if (str == null) {
                    str = Fragment.this.getString(vc7.Vw);
                    p64.g(str, "getString(R.string.vp_ga…r_packages_error_default)");
                }
                dVar.s(str);
                dVar.z(Fragment.this.getString(vc7.Ni));
                dVar.x(new a(Fragment.this));
            }

            @Override
            public lm9 invoke(ga2.d dVar) {
                a(dVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Ll03$b;", "Llm9;", "b", "(Ll03$b;)V"}, k = 3, mv = {1, 8, 0})
        static final class i extends dk4 implements gx2<l03.b, lm9> {
            final List<GameVoucherSellingPackage> $packages;
            final c $state;
            final int $tabPos;

            @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lk03$b;", "Llm9;", "a", "(Lk03$b;)V"}, k = 3, mv = {1, 8, 0})
            static final class a extends dk4 implements gx2<k03.b, lm9> {
                final GameVoucherSellingPackage $it;
                final c $state;

                @Metadata(d1 = {"\u0000\b\n\u0002\u0010\u000b\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {SingleKycIdentity.EMPTY, "a", "()Ljava/lang/Boolean;"}, k = 3, mv = {1, 8, 0})
                static final class C0393a extends dk4 implements ex2<Boolean> {
                    final GameVoucherSellingPackage $it;
                    final c $state;

                    C0393a(GameVoucherSellingPackage gameVoucherSellingPackage, c cVar) {
                        super(0);
                        this.$it = gameVoucherSellingPackage;
                        this.$state = cVar;
                    }

                    @Override
                    public final Boolean invoke() {
                        GameVoucherSellingPackage selectedGamePackage = this.$state.getSelectedGamePackage();
                        boolean z = false;
                        if (selectedGamePackage != null && this.$it.e() == selectedGamePackage.e()) {
                            z = true;
                        }
                        return Boolean.valueOf(z);
                    }
                }

                a(GameVoucherSellingPackage gameVoucherSellingPackage, c cVar) {
                    super(1);
                    this.$it = gameVoucherSellingPackage;
                    this.$state = cVar;
                }

                public final void a(k03.b bVar) {
                    p64.h(bVar, "$this$newItem");
                    bVar.o(new C0393a(this.$it, this.$state));
                    bVar.l(!p64.c(this.$it.getStatus(), "unavailable"));
                    Long d = this.$it.d();
                    if (d == null) {
                        d = -1L;
                    }
                    bVar.n(d.longValue() > 0);
                    bVar.getLabelTextAVState().t(this.$it.r());
                    bVar.getTitleAVState().k(this.$it.j());
                    x09.b priceTextAVState = bVar.getPriceTextAVState();
                    t95 t95Var = t95.a;
                    priceTextAVState.k(t95Var.o(this.$it.s()));
                    ew7.c preDiscountPriceTextAVState = bVar.getPreDiscountPriceTextAVState();
                    GameVoucherSellingPackage gameVoucherSellingPackage = this.$it;
                    long s = gameVoucherSellingPackage.s();
                    Long d2 = gameVoucherSellingPackage.d();
                    if (d2 == null) {
                        d2 = 0L;
                    }
                    p64.g(d2, "discountPromo ?: 0");
                    preDiscountPriceTextAVState.t(t95Var.o(s + d2.longValue()));
                }

                @Override
                public lm9 invoke(k03.b bVar) {
                    a(bVar);
                    return lm9.a;
                }
            }

            @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00028\u0001\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "Landroid/content/Context;", "context", "a", "(Landroid/content/Context;)Lk95;"}, k = 3, mv = {1, 8, 0})
            public static final class b extends dk4 implements gx2<Context, k03> {
                public b() {
                    super(1);
                }

                @Override
                public final k03 invoke(Context context) {
                    p64.h(context, "context");
                    return new k03(context);
                }
            }

            @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
            public static final class c extends dk4 implements gx2<k03, lm9> {
                final gx2 $state;

                public c(gx2 gx2Var) {
                    super(1);
                    this.$state = gx2Var;
                }

                public final void a(k03 k03Var) {
                    p64.h(k03Var, "it");
                    k03Var.Q(this.$state);
                }

                @Override
                public lm9 invoke(k03 k03Var) {
                    a(k03Var);
                    return lm9.a;
                }
            }

            @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
            public static final class d extends dk4 implements gx2<k03, lm9> {
                public static final d g = new d();

                public d() {
                    super(1);
                }

                public final void a(k03 k03Var) {
                    p64.h(k03Var, "it");
                    k03Var.e0();
                }

                @Override
                public lm9 invoke(k03 k03Var) {
                    a(k03Var);
                    return lm9.a;
                }
            }

            i(int i, List<? extends GameVoucherSellingPackage> list, c cVar) {
                super(1);
                this.$tabPos = i;
                this.$packages = list;
                this.$state = cVar;
            }

            public static final boolean c(Fragment fragment, GameVoucherSellingPackage gameVoucherSellingPackage, View view, ft3 ft3Var, q95 q95Var, int i) {
                p64.h(fragment, "this$0");
                p64.h(gameVoucherSellingPackage, "$it");
                ((a) fragment.o0()).n6(gameVoucherSellingPackage);
                fragment.g1(1500L);
                return true;
            }

            public final void b(l03.b bVar) {
                p64.h(bVar, "$this$newItem");
                List<GameVoucherSellingPackage> subList = ((a) Fragment.this.o0()).s6(this.$tabPos) ? this.$packages.subList(0, 10) : this.$packages;
                bVar.d(Fragment.this.getString(vc7.si));
                List<GameVoucherSellingPackage> list = subList;
                c cVar = this.$state;
                final Fragment fragment = Fragment.this;
                ArrayList arrayList = new ArrayList(C1153lu0.r(list, 10));
                for (final GameVoucherSellingPackage gameVoucherSellingPackage : list) {
                    k95.Companion companion = k95.INSTANCE;
                    arrayList.add(new q95(k03.class.hashCode(), new b()).H(new c(new a(gameVoucherSellingPackage, cVar))).M(d.g).y(new wh2.f() {
                        @Override
                        public final boolean a(View view, ft3 ft3Var, yt3 yt3Var, int i) {
                            boolean c2;
                            c2 = VpGameVoucherPackagesTabScreen.Fragment.i.c(VpGameVoucherPackagesTabScreen.Fragment.this, gameVoucherSellingPackage, view, ft3Var, (q95) yt3Var, i);
                            return c2;
                        }
                    }));
                }
                bVar.c(arrayList);
            }

            @Override
            public lm9 invoke(l03.b bVar) {
                b(bVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00028\u0001\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "Landroid/content/Context;", "context", "a", "(Landroid/content/Context;)Lk95;"}, k = 3, mv = {1, 8, 0})
        public static final class i0 extends dk4 implements gx2<Context, ha2> {
            public i0() {
                super(1);
            }

            @Override
            public final ha2 invoke(Context context) {
                p64.h(context, "context");
                ha2 ha2Var = new ha2(context);
                wx0.B(ha2Var, null, kn8.f, null, kn8.i, 5, null);
                kn8 kn8Var = kn8.g;
                wx0.I(ha2Var, kn8Var, null, kn8Var, null, 10, null);
                lo4.a(ha2Var, 17);
                return ha2Var;
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00028\u0001\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "Landroid/content/Context;", "context", "a", "(Landroid/content/Context;)Lk95;"}, k = 3, mv = {1, 8, 0})
        public static final class j extends dk4 implements gx2<Context, r7a> {
            public j() {
                super(1);
            }

            @Override
            public final r7a invoke(Context context) {
                p64.h(context, "context");
                return new r7a(context);
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class j0 extends dk4 implements gx2<ha2, lm9> {
            final gx2 $state;

            public j0(gx2 gx2Var) {
                super(1);
                this.$state = gx2Var;
            }

            public final void a(ha2 ha2Var) {
                p64.h(ha2Var, "it");
                ha2Var.Q(this.$state);
            }

            @Override
            public lm9 invoke(ha2 ha2Var) {
                a(ha2Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class k extends dk4 implements gx2<r7a, lm9> {
            final gx2 $state;

            public k(gx2 gx2Var) {
                super(1);
                this.$state = gx2Var;
            }

            public final void a(r7a r7aVar) {
                p64.h(r7aVar, "it");
                r7aVar.Q(this.$state);
            }

            @Override
            public lm9 invoke(r7a r7aVar) {
                a(r7aVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class k0 extends dk4 implements gx2<ha2, lm9> {
            public static final k0 g = new k0();

            public k0() {
                super(1);
            }

            public final void a(ha2 ha2Var) {
                p64.h(ha2Var, "it");
                ha2Var.e0();
            }

            @Override
            public lm9 invoke(ha2 ha2Var) {
                a(ha2Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class l extends dk4 implements gx2<r7a, lm9> {
            public static final l g = new l();

            public l() {
                super(1);
            }

            public final void a(r7a r7aVar) {
                p64.h(r7aVar, "it");
                r7aVar.e0();
            }

            @Override
            public lm9 invoke(r7a r7aVar) {
                a(r7aVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lga2$d;", "Llm9;", "a", "(Lga2$d;)V"}, k = 3, mv = {1, 8, 0})
        static final class l0 extends dk4 implements gx2<ga2.d, lm9> {
            final String $btnText;
            final String $desc;

            @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/view/View;", "it", "Llm9;", "a", "(Landroid/view/View;)V"}, k = 3, mv = {1, 8, 0})
            static final class a extends dk4 implements gx2<View, lm9> {
                final Fragment this$0;

                a(Fragment fragment) {
                    super(1);
                    this.this$0 = fragment;
                }

                public final void a(View view) {
                    p64.h(view, "it");
                    ((a) this.this$0.o0()).y6(true);
                }

                @Override
                public lm9 invoke(View view) {
                    a(view);
                    return lm9.a;
                }
            }

            l0(String str, String str2) {
                super(1);
                this.$desc = str;
                this.$btnText = str2;
            }

            public final void a(ga2.d dVar) {
                p64.h(dVar, "$this$newItem");
                dVar.v(new pw3(e20.a.n()));
                String string = Fragment.this.getString(vc7.lx);
                p64.g(string, "getString(R.string.vp_ga…ling_package_empty_title)");
                dVar.E(string);
                dVar.s(this.$desc);
                dVar.z(this.$btnText);
                dVar.x(new a(Fragment.this));
            }

            @Override
            public lm9 invoke(ga2.d dVar) {
                a(dVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lr7a$b;", "Llm9;", "a", "(Lr7a$b;)V"}, k = 3, mv = {1, 8, 0})
        static final class m extends dk4 implements gx2<r7a.b, lm9> {
            m() {
                super(1);
            }

            public final void a(r7a.b bVar) {
                p64.h(bVar, "$this$newItem");
                bVar.e(Fragment.this.getString(vc7.cx));
                bVar.d(Fragment.this.getString(vc7.bx));
            }

            @Override
            public lm9 invoke(r7a.b bVar) {
                a(bVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"La03$b;", "Llm9;", "a", "(La03$b;)V"}, k = 3, mv = {1, 8, 0})
        static final class m0 extends dk4 implements gx2<a03.b, lm9> {
            final GameVoucherProduct $gameVoucherProduct;
            final Fragment this$0;

            @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/view/View;", "it", "Llm9;", "a", "(Landroid/view/View;)V"}, k = 3, mv = {1, 8, 0})
            static final class a extends dk4 implements gx2<View, lm9> {
                final Fragment this$0;

                a(Fragment fragment) {
                    super(1);
                    this.this$0 = fragment;
                }

                public final void a(View view) {
                    p64.h(view, "it");
                    androidx.fragment.app.e activity = this.this$0.getActivity();
                    if (activity != null) {
                        activity.finish();
                    }
                }

                @Override
                public lm9 invoke(View view) {
                    a(view);
                    return lm9.a;
                }
            }

            m0(GameVoucherProduct gameVoucherProduct, Fragment fragment) {
                super(1);
                this.$gameVoucherProduct = gameVoucherProduct;
                this.this$0 = fragment;
            }

            public final void a(a03.b bVar) {
                p64.h(bVar, "$this$newItem");
                bVar.g(this.$gameVoucherProduct.e());
                String d = this.$gameVoucherProduct.d();
                p64.g(d, "gameVoucherProduct.logoImageUrl");
                bVar.e(new pw3(d));
                bVar.h(new a(this.this$0));
            }

            @Override
            public lm9 invoke(a03.b bVar) {
                a(bVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u0003\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u0001*\u00028\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"S", "Lk95;", "M", "Llm9;", "a", "(Ljava/lang/Object;)V"}, k = 3, mv = {1, 8, 0})
        public static final class n extends dk4 implements gx2<h88.a, lm9> {
            public static final n g = new n();

            public n() {
                super(1);
            }

            public final void a(h88.a aVar) {
            }

            @Override
            public lm9 invoke(h88.a aVar) {
                a(aVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00028\u0001\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "Landroid/content/Context;", "context", "a", "(Landroid/content/Context;)Lk95;"}, k = 3, mv = {1, 8, 0})
        public static final class n0 extends dk4 implements gx2<Context, a03> {
            public n0() {
                super(1);
            }

            @Override
            public final a03 invoke(Context context) {
                p64.h(context, "context");
                return new a03(context);
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00028\u0001\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "Landroid/content/Context;", "context", "a", "(Landroid/content/Context;)Lk95;"}, k = 3, mv = {1, 8, 0})
        public static final class o extends dk4 implements gx2<Context, j88> {
            public o() {
                super(1);
            }

            @Override
            public final j88 invoke(Context context) {
                p64.h(context, "context");
                j88 j88Var = new j88(context);
                wx0.B(j88Var, null, null, null, kn8.g, 7, null);
                return j88Var;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class o0 extends dk4 implements gx2<a03, lm9> {
            final gx2 $state;

            public o0(gx2 gx2Var) {
                super(1);
                this.$state = gx2Var;
            }

            public final void a(a03 a03Var) {
                p64.h(a03Var, "it");
                a03Var.Q(this.$state);
            }

            @Override
            public lm9 invoke(a03 a03Var) {
                a(a03Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class p extends dk4 implements gx2<j88, lm9> {
            final gx2 $state;

            public p(gx2 gx2Var) {
                super(1);
                this.$state = gx2Var;
            }

            public final void a(j88 j88Var) {
                p64.h(j88Var, "it");
                j88Var.Q(this.$state);
            }

            @Override
            public lm9 invoke(j88 j88Var) {
                a(j88Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class p0 extends dk4 implements gx2<a03, lm9> {
            public static final p0 g = new p0();

            public p0() {
                super(1);
            }

            public final void a(a03 a03Var) {
                p64.h(a03Var, "it");
                a03Var.e0();
            }

            @Override
            public lm9 invoke(a03 a03Var) {
                a(a03Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class q extends dk4 implements gx2<j88, lm9> {
            public static final q g = new q();

            public q() {
                super(1);
            }

            public final void a(j88 j88Var) {
                p64.h(j88Var, "it");
                j88Var.e0();
            }

            @Override
            public lm9 invoke(j88 j88Var) {
                a(j88Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00028\u0001\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "Landroid/content/Context;", "context", "a", "(Landroid/content/Context;)Lk95;"}, k = 3, mv = {1, 8, 0})
        public static final class q0 extends dk4 implements gx2<Context, h03> {
            public q0() {
                super(1);
            }

            @Override
            public final h03 invoke(Context context) {
                p64.h(context, "context");
                h03 h03Var = new h03(context);
                ky0.c(h03Var, null, Integer.valueOf(VpGameVoucherPackagesTabScreen.INSTANCE.a()), null, null, 13, null);
                return h03Var;
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00028\u0001\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "Landroid/content/Context;", "context", "a", "(Landroid/content/Context;)Lk95;"}, k = 3, mv = {1, 8, 0})
        public static final class r extends dk4 implements gx2<Context, x03> {
            public r() {
                super(1);
            }

            @Override
            public final x03 invoke(Context context) {
                p64.h(context, "context");
                x03 x03Var = new x03(context);
                wx0.B(x03Var, null, null, null, kn8.g, 7, null);
                return x03Var;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class r0 extends dk4 implements gx2<h03, lm9> {
            final gx2 $state;

            public r0(gx2 gx2Var) {
                super(1);
                this.$state = gx2Var;
            }

            public final void a(h03 h03Var) {
                p64.h(h03Var, "it");
                h03Var.Q(this.$state);
            }

            @Override
            public lm9 invoke(h03 h03Var) {
                a(h03Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class s extends dk4 implements gx2<x03, lm9> {
            final gx2 $state;

            public s(gx2 gx2Var) {
                super(1);
                this.$state = gx2Var;
            }

            public final void a(x03 x03Var) {
                p64.h(x03Var, "it");
                x03Var.Q(this.$state);
            }

            @Override
            public lm9 invoke(x03 x03Var) {
                a(x03Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class s0 extends dk4 implements gx2<h03, lm9> {
            public static final s0 g = new s0();

            public s0() {
                super(1);
            }

            public final void a(h03 h03Var) {
                p64.h(h03Var, "it");
                h03Var.e0();
            }

            @Override
            public lm9 invoke(h03 h03Var) {
                a(h03Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class t extends dk4 implements gx2<x03, lm9> {
            public static final t g = new t();

            public t() {
                super(1);
            }

            public final void a(x03 x03Var) {
                p64.h(x03Var, "it");
                x03Var.e0();
            }

            @Override
            public lm9 invoke(x03 x03Var) {
                a(x03Var);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lh03$b;", "Llm9;", "a", "(Lh03$b;)V"}, k = 3, mv = {1, 8, 0})
        static final class t0 extends dk4 implements gx2<h03.b, lm9> {
            t0() {
                super(1);
            }

            public final void a(h03.b bVar) {
                p64.h(bVar, "$this$newItem");
                String string = Fragment.this.getString(vc7.Ww);
                p64.g(string, "getString(R.string.vp_ga…er_packages_loading_text)");
                bVar.c(string);
            }

            @Override
            public lm9 invoke(h03.b bVar) {
                a(bVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lx03$b;", "Llm9;", "a", "(Lx03$b;)V"}, k = 3, mv = {1, 8, 0})
        static final class u extends dk4 implements gx2<x03.b, lm9> {

            @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/view/View;", "it", "Llm9;", "a", "(Landroid/view/View;)V"}, k = 3, mv = {1, 8, 0})
            static final class a extends dk4 implements gx2<View, lm9> {
                final Fragment this$0;

                a(Fragment fragment) {
                    super(1);
                    this.this$0 = fragment;
                }

                public final void a(View view) {
                    p64.h(view, "it");
                    ((a) this.this$0.o0()).x6();
                    this.this$0.g1(1500L);
                    this.this$0.i1(1502L);
                }

                @Override
                public lm9 invoke(View view) {
                    a(view);
                    return lm9.a;
                }
            }

            u() {
                super(1);
            }

            public final void a(x03.b bVar) {
                p64.h(bVar, "$this$newItem");
                bVar.d(new a(Fragment.this));
            }

            @Override
            public lm9 invoke(x03.b bVar) {
                a(bVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lee5$b;", "Llm9;", "a", "(Lee5$b;)V"}, k = 3, mv = {1, 8, 0})
        static final class u0 extends dk4 implements gx2<ee5.b, lm9> {

            @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/view/View;", "it", "Llm9;", "a", "(Landroid/view/View;)V"}, k = 3, mv = {1, 8, 0})
            static final class a extends dk4 implements gx2<View, lm9> {
                final Fragment this$0;

                a(Fragment fragment) {
                    super(1);
                    this.this$0 = fragment;
                }

                public final void a(View view) {
                    p64.h(view, "it");
                    androidx.fragment.app.e activity = this.this$0.getActivity();
                    if (activity != null) {
                        activity.finish();
                    }
                }

                @Override
                public lm9 invoke(View view) {
                    a(view);
                    return lm9.a;
                }
            }

            @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/view/View;", "it", "Llm9;", "a", "(Landroid/view/View;)V"}, k = 3, mv = {1, 8, 0})
            static final class b extends dk4 implements gx2<View, lm9> {
                final Fragment this$0;

                b(Fragment fragment) {
                    super(1);
                    this.this$0 = fragment;
                }

                public final void a(View view) {
                    p64.h(view, "it");
                    ((a) this.this$0.o0()).w5();
                }

                @Override
                public lm9 invoke(View view) {
                    a(view);
                    return lm9.a;
                }
            }

            u0() {
                super(1);
            }

            public final void a(ee5.b bVar) {
                p64.h(bVar, "$this$bind");
                bVar.k(Fragment.this.getString(vc7.Vv));
                bVar.l(new a(Fragment.this));
                bVar.a(Fragment.this.getString(vc7.Ai), new b(Fragment.this));
            }

            @Override
            public lm9 invoke(ee5.b bVar) {
                a(bVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00028\u0001\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "Landroid/content/Context;", "context", "a", "(Landroid/content/Context;)Lk95;"}, k = 3, mv = {1, 8, 0})
        public static final class v extends dk4 implements gx2<Context, v7a> {
            public v() {
                super(1);
            }

            @Override
            public final v7a invoke(Context context) {
                p64.h(context, "context");
                return new v7a(context);
            }
        }

        @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00028\u0001\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "Landroid/content/Context;", "context", "a", "(Landroid/content/Context;)Lk95;"}, k = 3, mv = {1, 8, 0})
        public static final class v0 extends dk4 implements gx2<Context, h2a> {
            public v0() {
                super(1);
            }

            @Override
            public final h2a invoke(Context context) {
                p64.h(context, "context");
                return new h2a(context);
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class w extends dk4 implements gx2<v7a, lm9> {
            final gx2 $state;

            public w(gx2 gx2Var) {
                super(1);
                this.$state = gx2Var;
            }

            public final void a(v7a v7aVar) {
                p64.h(v7aVar, "it");
                v7aVar.Q(this.$state);
            }

            @Override
            public lm9 invoke(v7a v7aVar) {
                a(v7aVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class w0 extends dk4 implements gx2<h2a, lm9> {
            final gx2 $state;

            public w0(gx2 gx2Var) {
                super(1);
                this.$state = gx2Var;
            }

            public final void a(h2a h2aVar) {
                p64.h(h2aVar, "it");
                h2aVar.Q(this.$state);
            }

            @Override
            public lm9 invoke(h2a h2aVar) {
                a(h2aVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class x extends dk4 implements gx2<v7a, lm9> {
            public static final x g = new x();

            public x() {
                super(1);
            }

            public final void a(v7a v7aVar) {
                p64.h(v7aVar, "it");
                v7aVar.e0();
            }

            @Override
            public lm9 invoke(v7a v7aVar) {
                a(v7aVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0014\b\u0001\u0010\u0002\u0018\u0001*\f\u0012\u0004\u0012\u00028\u0000\u0012\u0002\b\u00030\u00012\u0006\u0010\u0003\u001a\u00028\u0001H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"S", "Lk95;", "M", "it", "Llm9;", "a", "(Lk95;)V"}, k = 3, mv = {1, 8, 0})
        public static final class x0 extends dk4 implements gx2<h2a, lm9> {
            public static final x0 g = new x0();

            public x0() {
                super(1);
            }

            public final void a(h2a h2aVar) {
                p64.h(h2aVar, "it");
                h2aVar.e0();
            }

            @Override
            public lm9 invoke(h2a h2aVar) {
                a(h2aVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lv7a$c;", "Llm9;", "a", "(Lv7a$c;)V"}, k = 3, mv = {1, 8, 0})
        static final class y extends dk4 implements gx2<v7a.c, lm9> {
            y() {
                super(1);
            }

            public final void a(v7a.c cVar) {
                p64.h(cVar, "$this$newItem");
                cVar.f(new pw3("https://assets.bukalapak.com/floo/images/logo/itemku-logo.png"));
                cVar.g(Fragment.this.getString(vc7.ux) + " ");
                cVar.h(Fragment.this.getString(vc7.aw));
                cVar.i(Fragment.this.getString(vc7.bw));
            }

            @Override
            public lm9 invoke(v7a.c cVar) {
                a(cVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lh2a$b;", "Llm9;", "a", "(Lh2a$b;)V"}, k = 3, mv = {1, 8, 0})
        static final class y0 extends dk4 implements gx2<h2a.b, lm9> {
            final c $state;
            final Fragment this$0;

            @Metadata(d1 = {"\u0000\u000e\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {SingleKycIdentity.EMPTY, "tabPosition", "Llm9;", "a", "(I)V"}, k = 3, mv = {1, 8, 0})
            static final class a extends dk4 implements gx2<Integer, lm9> {
                final c $state;
                final Fragment this$0;

                a(Fragment fragment, c cVar) {
                    super(1);
                    this.this$0 = fragment;
                    this.$state = cVar;
                }

                public final void a(int i) {
                    A o0 = this.this$0.o0();
                    p64.g(o0, "actions");
                    a.z6((a) o0, false, 1, null);
                    this.this$0.U2();
                    this.this$0.j3(this.$state, i);
                }

                @Override
                public lm9 invoke(Integer num) {
                    a(num.intValue());
                    return lm9.a;
                }
            }

            @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lcom/google/android/material/tabs/TabLayout;", "it", "Llm9;", "a", "(Lcom/google/android/material/tabs/TabLayout;)V"}, k = 3, mv = {1, 8, 0})
            static final class b extends dk4 implements gx2<TabLayout, lm9> {
                final c $state;
                final Fragment this$0;

                b(Fragment fragment, c cVar) {
                    super(1);
                    this.this$0 = fragment;
                    this.$state = cVar;
                }

                public final void a(TabLayout tabLayout) {
                    p64.h(tabLayout, "it");
                    this.this$0.k3(tabLayout, this.$state);
                }

                @Override
                public lm9 invoke(TabLayout tabLayout) {
                    a(tabLayout);
                    return lm9.a;
                }
            }

            y0(c cVar, Fragment fragment) {
                super(1);
                this.$state = cVar;
                this.this$0 = fragment;
            }

            public final void a(h2a.b bVar) {
                List<String> k;
                p64.h(bVar, "$this$newItem");
                k = C1137ku0.k("Tercepat", "Termurah");
                bVar.g(k);
                bVar.f(new a(this.this$0, this.$state));
                bVar.e(new b(this.this$0, this.$state));
                bVar.h(this.$state.getTabPosition());
            }

            @Override
            public lm9 invoke(h2a.b bVar) {
                a(bVar);
                return lm9.a;
            }
        }

        @Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
        class z extends oy2 implements gx2<Context, ee5> {
            public static final z a = new z();

            z() {
                super(1, ee5.class, "<init>", "<init>(Landroid/content/Context;)V", 0);
            }

            @Override
            public final ee5 invoke(Context context) {
                p64.h(context, "p0");
                return new ee5(context);
            }
        }

        @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", SingleKycIdentity.EMPTY, "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
        static final class z0 extends dk4 implements ex2<String> {
            z0() {
                super(0);
            }

            @Override
            public final String invoke() {
                return Fragment.this.getString(vc7.fw);
            }
        }

        private final q95<?> K2(String notes) {
            k95.Companion companion = k95.INSTANCE;
            ut3 h2 = new q95(zg0.class.hashCode(), new b()).H(new c(new e(notes))).M(d.g).h(1501L);
            p64.g(h2, "notes: String): Molecule…fier(ITEM_PACKAGES_NOTES)");
            return (q95) h2;
        }

        private final q95<?> L2(int tabPos, List<? extends GameVoucherSellingPackage> packages, c state) {
            k95.Companion companion = k95.INSTANCE;
            ut3 h2 = new q95(l03.class.hashCode(), new f()).H(new g(new i(tabPos, packages, state))).M(h.g).h(1500L);
            p64.g(h2, "private fun getGameVouch…_PACKAGES_GRID)\n        }");
            return (q95) h2;
        }

        private final q95<?> N2() {
            k95.Companion companion = k95.INSTANCE;
            ut3 h2 = new q95(r7a.class.hashCode(), new j()).H(new k(new m())).M(l.g).h(1401L);
            p64.g(h2, "private fun getProcessTi…ITEM_TAB_LABEL)\n        }");
            return (q95) h2;
        }

        private final RecyclerView O2() {
            return (RecyclerView) this.rvMain.getValue();
        }

        private final q95<?> P2() {
            k95.Companion companion = k95.INSTANCE;
            ut3 h2 = new q95(j88.class.hashCode(), new o()).H(new p(n.g)).M(q.g).h(1499L);
            p64.g(h2, "Molecule.newItem({\n     …(ITEM_PACKAGES_SEPARATOR)");
            return (q95) h2;
        }

        private final q95<?> Q2() {
            k95.Companion companion = k95.INSTANCE;
            ut3 h2 = new q95(x03.class.hashCode(), new r()).H(new s(new u())).M(t.g).h(1502L);
            p64.g(h2, "private fun getShowMoreI…ACKAGES_EXPAND)\n        }");
            return (q95) h2;
        }

        private final q95<?> R2() {
            k95.Companion companion = k95.INSTANCE;
            ut3 h2 = new q95(v7a.class.hashCode(), new v()).H(new w(new y())).M(x.g).h(1401L);
            p64.g(h2, "private fun getSupported…ITEM_TAB_LABEL)\n        }");
            return (q95) h2;
        }

        public final void U2() {
            F1().r0(F1().J(1399L) + 1, F1().b());
        }

        private final void Z2(int i2) {
            if (((a) o0()).s6(i2)) {
                F1().k0(Q2());
            }
        }

        private final void a3(c cVar) {
            GameVoucherProduct gameVoucherProduct = cVar.getGameVoucherProduct();
            String f2 = gameVoucherProduct != null ? gameVoucherProduct.f() : null;
            if (f2 == null || ku8.y(f2)) {
                return;
            }
            F1().k0(K2(f2));
        }

        private final void b3(int i2) {
            String string;
            String string2;
            if (i2 == 0) {
                string = getString(vc7.nx);
                p64.g(string, "getString(R.string.vp_ga…kage_quickest_empty_desc)");
                string2 = getString(vc7.mx);
                p64.g(string2, "getString(R.string.vp_ga…ckage_quickest_empty_btn)");
            } else {
                string = getString(vc7.kx);
                p64.g(string, "getString(R.string.vp_ga…kage_cheapest_empty_desc)");
                string2 = getString(vc7.jx);
                p64.g(string2, "getString(R.string.vp_ga…ckage_cheapest_empty_btn)");
            }
            zh2<defpackage.t0<?, ?>> F1 = F1();
            k95.Companion companion = k95.INSTANCE;
            F1.k0(new q95(ha2.class.hashCode(), new i0()).H(new j0(new l0(string, string2))).M(k0.g).h(501L));
        }

        public static void g3(Fragment fragment, c cVar, boolean z2, int i2, Object obj) {
            if ((i2 & 2) != 0) {
                z2 = false;
            }
            fragment.f3(cVar, z2);
        }

        private final void h3(int i2) {
            F1().k0(VpBaseScreen$Fragment.x1(this, kn8.f, 0, 1400L, 2, null));
            if (i2 == 0) {
                F1().k0(N2());
            } else {
                F1().k0(R2());
            }
            F1().k0(P2());
        }

        private final void i3(c cVar) {
            zh2<defpackage.t0<?, ?>> F1 = F1();
            k95.Companion companion = k95.INSTANCE;
            F1.k0(new q95(h2a.class.hashCode(), new v0()).H(new w0(new y0(cVar, this))).M(x0.g).h(1399L));
            j3(cVar, cVar.getTabPosition());
        }

        public final void j3(c cVar, int i2) {
            if (i2 == 0) {
                X2(cVar, 0);
            } else {
                if (i2 != 1) {
                    return;
                }
                X2(cVar, 1);
            }
        }

        public final void k3(TabLayout tabLayout, c cVar) {
            if (tabLayout.getChildCount() > 0) {
                View childAt = tabLayout.getChildAt(0);
                p64.f(childAt, "null cannot be cast to non-null type android.view.ViewGroup");
                ViewGroup viewGroup = (ViewGroup) childAt;
                if (viewGroup.getChildCount() > 1) {
                    View childAt2 = viewGroup.getChildAt(1);
                    if (!cVar.getIsShowCoachMarks() || childAt2 == null) {
                        return;
                    }
                    A o02 = o0();
                    p64.g(o02, "actions");
                    a.w6((a) o02, false, 1, null);
                    ts0 ts0Var = new ts0(getContext(), childAt2);
                    ts0Var.w(ys7.b(6));
                    ts0Var.t(new z0());
                    ts0Var.B(new a1());
                    ts0Var.D(new b1(ts0Var));
                    ts0Var.I();
                }
            }
        }

        @Override
        public View E(View view, LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z2) {
            return zd5.a.b(this, view, layoutInflater, viewGroup, z2);
        }

        public final void J() {
            zh2<defpackage.t0<?, ?>> F1 = F1();
            k95.Companion companion = k95.INSTANCE;
            F1.k0(new q95(h03.class.hashCode(), new q0()).H(new r0(new t0())).M(s0.g));
        }

        @Override
        public List<defpackage.t0<?, ?>> h2(c state) {
            List<defpackage.t0<?, ?>> l2;
            p64.h(state, "state");
            A o02 = o0();
            p64.g(o02, "actions");
            bk8 bk8Var = new bk8(2000L, new a(o02));
            q56<S> l22 = l2();
            Context requireContext = requireContext();
            p64.g(requireContext, "requireContext()");
            l2 = C1137ku0.l(l22.D(requireContext, state, bk8Var));
            return l2;
        }

        @Override
        public int getContentContainerResId() {
            return zd5.a.d(this);
        }

        @Override
        public wd5<ee5> R() {
            return this.navBar;
        }

        @Override
        public a s0(c state) {
            p64.h(state, "state");
            return new a(state, null, null, null, 14, null);
        }

        @Override
        public c t0() {
            return new c();
        }

        @Override
        public void w0(c cVar) {
            p64.h(cVar, "state");
            super.w0(cVar);
            l1();
            d3();
            c3(cVar);
            i3(cVar);
        }

        public final void W2(c cVar) {
            p64.h(cVar, "state");
            GameVoucherSellingPackage selectedGamePackage = cVar.getSelectedGamePackage();
            long f2 = selectedGamePackage != null ? selectedGamePackage.f() : 0L;
            if (cVar.getPurchaseAmount() <= 0 || f2 <= 0) {
                j1(1600L, 1700L);
                return;
            }
            VpBaseScreen$Fragment.e1(this, 1600L, VpBaseScreen$Fragment.x1(this, kn8.f, 0, 1600L, 2, null), null, 4, null);
            k95.Companion companion = k95.INSTANCE;
            defpackage.t0 h2 = new q95(qz3.class.hashCode(), new a0()).H(new b0(new d0(f2))).M(c0.g).h(1700L);
            p64.g(h2, "fun renderCommission(sta…)\n            }\n        }");
            VpBaseScreen$Fragment.e1(this, 1700L, h2, null, 4, null);
        }

        public final void X2(c cVar, int i2) {
            p64.h(cVar, "state");
            List<GameVoucherSellingPackage> i6 = ((a) o0()).i6(i2);
            boolean z2 = i6 == null || i6.isEmpty();
            if (cVar.getFetchGameVoucherProduct().getIsLoading() || cVar.getLoadSellingPackages().getIsLoading()) {
                J();
                return;
            }
            if (cVar.getFetchGameVoucherProduct().f() || cVar.getLoadSellingPackages().f()) {
                Y2(cVar);
                return;
            }
            if (z2) {
                b3(i2);
                return;
            }
            h3(i2);
            e3(cVar, i2);
            a3(cVar);
            Z2(i2);
            g3(this, cVar, false, 2, null);
        }

        public final void Y2(c cVar) {
            p64.h(cVar, "state");
            zh2<defpackage.t0<?, ?>> F1 = F1();
            k95.Companion companion = k95.INSTANCE;
            F1.k0(new q95(ha2.class.hashCode(), new e0()).H(new f0(new h0(cVar))).M(g0.g).h(502L));
        }

        @Override
        public void a(boolean z2, gx2<? super View, lm9> gx2Var) {
            zd5.a.f(this, z2, gx2Var);
        }

        public final void c3(c cVar) {
            p64.h(cVar, "state");
            GameVoucherProduct gameVoucherProduct = cVar.getGameVoucherProduct();
            if (gameVoucherProduct != null) {
                zh2<defpackage.t0<?, ?>> F1 = F1();
                k95.Companion companion = k95.INSTANCE;
                F1.k0(new q95(a03.class.hashCode(), new n0()).H(new o0(new m0(gameVoucherProduct, this))).M(p0.g));
            }
        }

        public final void d3() {
            ((ee5) R().b()).Q(new u0());
        }

        public final void e3(c cVar, int i2) {
            p64.h(cVar, "state");
            F1().k0(L2(i2, ((a) o0()).i6(i2), cVar));
        }

        @Override
        public void f0(ViewGroup viewGroup, AppBarLayout.ScrollingViewBehavior scrollingViewBehavior) {
            zd5.a.g(this, viewGroup, scrollingViewBehavior);
        }

        public final void f3(c cVar, boolean z2) {
            p64.h(cVar, "state");
            if (((a) o0()).t6()) {
                x2(cVar);
                u2(cVar);
                W2(cVar);
                VpBaseScreenRevamp$Fragment.w2(this, cVar, z2, null, 4, null);
            }
        }

        @Override
        public void j0() {
            zd5.a.c(this);
        }

        @Override
        public void onActivityCreated(Bundle bundle) {
            super.onActivityCreated(bundle);
            O2().setClipToPadding(false);
            androidx.fragment.app.e activity = getActivity();
            ViewGroup viewGroup = activity != null ? (ViewGroup) activity.findViewById(getContentContainerResId()) : null;
            if (viewGroup != null) {
                og8.a(viewGroup, new AppBarLayout.ScrollingViewBehavior());
            }
            androidx.fragment.app.e activity2 = getActivity();
            if (activity2 != null) {
                o5.d(activity2);
            }
        }

        @Override
        public void onAttach(Context context) {
            p64.h(context, "context");
            super.onAttach(context);
            ((a) o0()).z5((k1a) jb2.b(this, k1a.class));
        }

        @Override
        public void onViewCreated(View view, Bundle bundle) {
            p64.h(view, "view");
            super.onViewCreated(view, bundle);
            O2().setNestedScrollingEnabled(true);
            ((a) o0()).g6();
        }

        @Override
        public void t() {
            zd5.a.e(this);
        }

        @Override
        public View z(int i2, LayoutInflater layoutInflater, ViewGroup viewGroup) {
            return zd5.a.a(this, i2, layoutInflater, viewGroup);
        }
    }

    @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\t\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u001b\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b#\u0010$R\u0017\u0010\u0003\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006R\u0014\u0010\b\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\b\u0010\tR\u0014\u0010\u000b\u001a\u00020\n8\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u000b\u0010\fR\u0014\u0010\r\u001a\u00020\n8\u0006X\u0086T¢\u0006\u0006\n\u0004\b\r\u0010\fR\u0014\u0010\u000e\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u000e\u0010\tR\u0014\u0010\u000f\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u000f\u0010\tR\u0014\u0010\u0010\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0010\u0010\tR\u0014\u0010\u0011\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0011\u0010\tR\u0014\u0010\u0012\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0012\u0010\tR\u0014\u0010\u0013\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0013\u0010\tR\u0014\u0010\u0014\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0014\u0010\tR\u0014\u0010\u0015\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0015\u0010\tR\u0014\u0010\u0016\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0016\u0010\tR\u0014\u0010\u0017\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0017\u0010\tR\u0014\u0010\u0018\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0018\u0010\tR\u0014\u0010\u0019\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0019\u0010\tR\u0014\u0010\u001a\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u001a\u0010\tR\u0014\u0010\u001b\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u001b\u0010\tR\u0014\u0010\u001c\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u001c\u0010\u0004R\u0014\u0010\u001d\u001a\u00020\u00078\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u001d\u0010\tR\u0014\u0010\u001e\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u001e\u0010\u0004R\u0014\u0010\u001f\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u001f\u0010\u0004R\u0014\u0010 \u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b \u0010\u0004R\u0014\u0010!\u001a\u00020\n8\u0006X\u0086T¢\u0006\u0006\n\u0004\b!\u0010\fR\u0014\u0010\"\u001a\u00020\n8\u0006X\u0086T¢\u0006\u0006\n\u0004\b\"\u0010\f¨\u0006%"}, d2 = {"Lcom/bukalapak/mitra/vp/gamevoucher/screen/VpGameVoucherPackagesTabScreen$b;", SingleKycIdentity.EMPTY, SingleKycIdentity.EMPTY, "VERTICAL_MARGIN", "I", "a", "()I", SingleKycIdentity.EMPTY, "CLICK_DELAY", "J", SingleKycIdentity.EMPTY, "ITEMKU_LOGO", "Ljava/lang/String;", "ITEMKU_PARTNER", "ITEM_COMMISSION", "ITEM_COMMISSION_DIVIDER", "ITEM_DIVIDER", "ITEM_ERROR", "ITEM_ID_INFO", "ITEM_PACKAGES_DIVIDER", "ITEM_PACKAGES_EXPAND", "ITEM_PACKAGES_GRID", "ITEM_PACKAGES_NOTES", "ITEM_PACKAGES_NOT_FOUND", "ITEM_PACKAGES_SEPARATOR", "ITEM_TAB", "ITEM_TAB_LABEL", "ITEM_TAB_LABEL_SEPARATOR", "MAX_PACKAGES", "REQUEST_DELAY_MS", "REQUEST_GAME_ID", "TAB_TERCEPAT_POS", "TAB_TERMURAH_POS", "TAB_TITLE_TERCEPAT", "TAB_TITLE_TERMURAH", "<init>", "()V", "base_app_release"}, k = 1, mv = {1, 8, 0})
    public static final class Companion {
        private Companion() {
        }

        public Companion(oq1 oq1Var) {
            this();
        }

        public final int a() {
            return VpGameVoucherPackagesTabScreen.b;
        }
    }

    @Metadata(d1 = {"\u0000\\\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0011\n\u0002\u0010\t\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0011\n\u0002\u0010\b\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0005\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\bd\u0010\nR\u001a\u0010\u0003\u001a\u00020\u00028\u0016X\u0096D¢\u0006\f\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006R\"\u0010\u0007\u001a\u0004\u0018\u00010\u00028\u0016X\u0096D¢\u0006\u0012\n\u0004\b\u0007\u0010\u0004\u0012\u0004\b\t\u0010\n\u001a\u0004\b\b\u0010\u0006R\u001a\u0010\u000b\u001a\u00020\u00028\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u000b\u0010\u0004\u001a\u0004\b\f\u0010\u0006R\u001a\u0010\r\u001a\u00020\u00028\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\r\u0010\u0004\u001a\u0004\b\u000e\u0010\u0006R*\u0010\u000f\u001a\u0004\u0018\u00010\u00028\u0016@\u0016X\u0096\u000e¢\u0006\u0018\n\u0004\b\u000f\u0010\u0004\u0012\u0004\b\u0013\u0010\n\u001a\u0004\b\u0010\u0010\u0006\"\u0004\b\u0011\u0010\u0012R\"\u0010\u0015\u001a\u00020\u00148\u0016@\u0016X\u0096\u000e¢\u0006\u0012\n\u0004\b\u0015\u0010\u0016\u001a\u0004\b\u0017\u0010\u0018\"\u0004\b\u0019\u0010\u001aR$\u0010\u001c\u001a\u0004\u0018\u00010\u001b8\u0006@\u0006X\u0087\u000e¢\u0006\u0012\n\u0004\b\u001c\u0010\u001d\u001a\u0004\b\u001e\u0010\u001f\"\u0004\b \u0010!R\"\u0010\"\u001a\u00020\u00148\u0006@\u0006X\u0087\u000e¢\u0006\u0012\n\u0004\b\"\u0010\u0016\u001a\u0004\b#\u0010\u0018\"\u0004\b$\u0010\u001aR$\u0010&\u001a\u0004\u0018\u00010%8\u0006@\u0006X\u0087\u000e¢\u0006\u0012\n\u0004\b&\u0010'\u001a\u0004\b(\u0010)\"\u0004\b*\u0010+R$\u0010-\u001a\u0004\u0018\u00010,8\u0006@\u0006X\u0087\u000e¢\u0006\u0012\n\u0004\b-\u0010.\u001a\u0004\b/\u00100\"\u0004\b1\u00102R\"\u00104\u001a\u0002038\u0006@\u0006X\u0087\u000e¢\u0006\u0012\n\u0004\b4\u00105\u001a\u0004\b4\u00106\"\u0004\b7\u00108R\"\u00109\u001a\u0002038\u0006@\u0006X\u0087\u000e¢\u0006\u0012\n\u0004\b9\u00105\u001a\u0004\b9\u00106\"\u0004\b:\u00108R#\u0010=\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020%0<0;8\u0006¢\u0006\f\n\u0004\b=\u0010>\u001a\u0004\b?\u0010@R\u001d\u0010B\u001a\b\u0012\u0004\u0012\u00020A0;8\u0006¢\u0006\f\n\u0004\bB\u0010>\u001a\u0004\bC\u0010@R.\u0010D\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001b0<0;8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bD\u0010>\u001a\u0004\bE\u0010@\"\u0004\bF\u0010GR*\u0010H\u001a\u0004\u0018\u00010\u00028\u0016@\u0016X\u0096\u000e¢\u0006\u0018\n\u0004\bH\u0010\u0004\u0012\u0004\bK\u0010\n\u001a\u0004\bI\u0010\u0006\"\u0004\bJ\u0010\u0012R\u001a\u0010L\u001a\u0002038\u0016X\u0096D¢\u0006\f\n\u0004\bL\u00105\u001a\u0004\bM\u00106R$\u0010N\u001a\u0004\u0018\u00010\u00028\u0006@\u0006X\u0087\u000e¢\u0006\u0012\n\u0004\bN\u0010\u0004\u001a\u0004\bO\u0010\u0006\"\u0004\bP\u0010\u0012R\"\u0010Q\u001a\u0002038\u0006@\u0006X\u0087\u000e¢\u0006\u0012\n\u0004\bQ\u00105\u001a\u0004\bQ\u00106\"\u0004\bR\u00108R\"\u0010T\u001a\u00020S8\u0006@\u0006X\u0087\u000e¢\u0006\u0012\n\u0004\bT\u0010U\u001a\u0004\bV\u0010W\"\u0004\bX\u0010YR\u0014\u0010Z\u001a\u0002038VX\u0096\u0004¢\u0006\u0006\u001a\u0004\bZ\u00106R\u0017\u0010]\u001a\b\u0012\u0004\u0012\u00020%0<8F¢\u0006\u0006\u001a\u0004\b[\u0010\\R\u0017\u0010_\u001a\b\u0012\u0004\u0012\u00020%0<8F¢\u0006\u0006\u001a\u0004\b^\u0010\\R\u0014\u0010c\u001a\u00020`8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\ba\u0010b¨\u0006e"}, d2 = {"Lcom/bukalapak/mitra/vp/gamevoucher/screen/VpGameVoucherPackagesTabScreen$c;", "Ll1a;", SingleKycIdentity.EMPTY, "trxType", "Ljava/lang/String;", "getTrxType", "()Ljava/lang/String;", "trxTypeV4", "getTrxTypeV4", "getTrxTypeV4$annotations", "()V", "screenName", "getScreenName", "productTitle", "getProductTitle", "couponProductType", "getCouponProductType", "setCouponProductType", "(Ljava/lang/String;)V", "getCouponProductType$annotations", SingleKycIdentity.EMPTY, "paymentWarningThreshold", "J", "getPaymentWarningThreshold", "()J", "setPaymentWarningThreshold", "(J)V", "Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherProduct;", "gameVoucherProduct", "Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherProduct;", "getGameVoucherProduct", "()Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherProduct;", "setGameVoucherProduct", "(Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherProduct;)V", "gameVoucherProductId", "getGameVoucherProductId", "setGameVoucherProductId", "Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherSellingPackage;", "selectedGamePackage", "Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherSellingPackage;", "getSelectedGamePackage", "()Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherSellingPackage;", "setSelectedGamePackage", "(Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherSellingPackage;)V", "Liz2;", "gameIDInfo", "Liz2;", "getGameIDInfo", "()Liz2;", "setGameIDInfo", "(Liz2;)V", SingleKycIdentity.EMPTY, "isExpandedQuickestSellingPackage", "Z", "()Z", "setExpandedQuickestSellingPackage", "(Z)V", "isExpandedCheapestSellingPackage", "setExpandedCheapestSellingPackage", "Lii;", SingleKycIdentity.EMPTY, "loadSellingPackages", "Lii;", "getLoadSellingPackages", "()Lii;", "Lcom/bukalapak/android/lib/api4/tungku/data/TransactionGameVoucher;", "createTransactionApiLoad", "getCreateTransactionApiLoad", "fetchGameVoucherProduct", "getFetchGameVoucherProduct", "setFetchGameVoucherProduct", "(Lii;)V", "selectedPaymentMethod", "getSelectedPaymentMethod", "setSelectedPaymentMethod", "getSelectedPaymentMethod$annotations", "canUseVoucher", "getCanUseVoucher", "source", "getSource", "setSource", "isShowCoachMarks", "setShowCoachMarks", SingleKycIdentity.EMPTY, "tabPosition", "I", "getTabPosition", "()I", "setTabPosition", "(I)V", "isDanaCreditsActive", "getQuickestSellingPackage", "()Ljava/util/List;", "quickestSellingPackage", "getCheapestSellingPackage", "cheapestSellingPackage", "Lnc9;", "getTransactionKey", "()Lnc9;", "transactionKey", "<init>", "base_app_release"}, k = 1, mv = {1, 8, 0})
    public static final class c extends l1a {

        @b28
        private GameID gameIDInfo;

        @b28
        private GameVoucherProduct gameVoucherProduct;

        @b28
        private boolean isExpandedCheapestSellingPackage;

        @b28
        private boolean isExpandedQuickestSellingPackage;

        @b28
        private GameVoucherSellingPackage selectedGamePackage;

        @b28
        private String source;

        @b28
        private int tabPosition;
        private final String trxType = InvoiceTransaction.GAME_VOUCHER;
        private final String trxTypeV4 = InvoiceTransaction.GAME_VOUCHER;
        private final String screenName = x38.a.n().getName();
        private final String productTitle = ts7.g(vc7.Vv);
        private String couponProductType = "game";
        private long paymentWarningThreshold = 100000;

        @b28
        private long gameVoucherProductId = -1;
        private final ApiLoad<List<GameVoucherSellingPackage>> loadSellingPackages = new ApiLoad<>();
        private final ApiLoad<TransactionGameVoucher> createTransactionApiLoad = new ApiLoad<>();
        private ApiLoad<List<GameVoucherProduct>> fetchGameVoucherProduct = new ApiLoad<>();
        private String selectedPaymentMethod = "wallet";
        private final boolean canUseVoucher = true;

        @b28
        private boolean isShowCoachMarks = true;

        @Override
        public boolean getCanUseVoucher() {
            return this.canUseVoucher;
        }

        public final List<GameVoucherSellingPackage> getCheapestSellingPackage() {
            List<GameVoucherSellingPackage> b = this.loadSellingPackages.b();
            if (b == null) {
                return C1137ku0.h();
            }
            ArrayList arrayList = new ArrayList();
            for (Object obj : b) {
                String k = ((GameVoucherSellingPackage) obj).k();
                p64.g(k, "it.partner");
                String lowerCase = k.toLowerCase(Locale.ROOT);
                p64.g(lowerCase, "this as java.lang.String).toLowerCase(Locale.ROOT)");
                if (p64.c(lowerCase, "itemku")) {
                    arrayList.add(obj);
                }
            }
            return arrayList;
        }

        @Override
        public String getCouponProductType() {
            return this.couponProductType;
        }

        public final ApiLoad<TransactionGameVoucher> getCreateTransactionApiLoad() {
            return this.createTransactionApiLoad;
        }

        public final ApiLoad<List<GameVoucherProduct>> getFetchGameVoucherProduct() {
            return this.fetchGameVoucherProduct;
        }

        public final GameID getGameIDInfo() {
            return this.gameIDInfo;
        }

        public final GameVoucherProduct getGameVoucherProduct() {
            return this.gameVoucherProduct;
        }

        public final long getGameVoucherProductId() {
            return this.gameVoucherProductId;
        }

        public final ApiLoad<List<GameVoucherSellingPackage>> getLoadSellingPackages() {
            return this.loadSellingPackages;
        }

        @Override
        public long getPaymentWarningThreshold() {
            return this.paymentWarningThreshold;
        }

        @Override
        public String getProductTitle() {
            return this.productTitle;
        }

        public final List<GameVoucherSellingPackage> getQuickestSellingPackage() {
            List<GameVoucherSellingPackage> b = this.loadSellingPackages.b();
            if (b == null) {
                return C1137ku0.h();
            }
            ArrayList arrayList = new ArrayList();
            for (Object obj : b) {
                String k = ((GameVoucherSellingPackage) obj).k();
                p64.g(k, "it.partner");
                p64.g(k.toLowerCase(Locale.ROOT), "this as java.lang.String).toLowerCase(Locale.ROOT)");
                if (!p64.c(r3, "itemku")) {
                    arrayList.add(obj);
                }
            }
            return arrayList;
        }

        @Override
        public String getScreenName() {
            return this.screenName;
        }

        public final GameVoucherSellingPackage getSelectedGamePackage() {
            return this.selectedGamePackage;
        }

        @Override
        public String getSelectedPaymentMethod() {
            return this.selectedPaymentMethod;
        }

        public final String getSource() {
            return this.source;
        }

        public final int getTabPosition() {
            return this.tabPosition;
        }

        @Override
        public TransactionCreatedKey getTransactionKey() {
            GameVoucherProduct gameVoucherProduct = this.gameVoucherProduct;
            String e = gameVoucherProduct != null ? gameVoucherProduct.e() : null;
            String str = SingleKycIdentity.EMPTY;
            if (e == null) {
                e = SingleKycIdentity.EMPTY;
            }
            GameVoucherSellingPackage gameVoucherSellingPackage = this.selectedGamePackage;
            String i = gameVoucherSellingPackage != null ? gameVoucherSellingPackage.i() : null;
            if (i != null) {
                str = i;
            }
            return new TransactionCreatedKey(e, str);
        }

        @Override
        public String getTrxType() {
            return this.trxType;
        }

        @Override
        public String getTrxTypeV4() {
            return this.trxTypeV4;
        }

        @Override
        public boolean getIsDanaCreditsActive() {
            return getNeoDanaMitraToggle().b();
        }

        public final boolean getIsExpandedCheapestSellingPackage() {
            return this.isExpandedCheapestSellingPackage;
        }

        public final boolean getIsExpandedQuickestSellingPackage() {
            return this.isExpandedQuickestSellingPackage;
        }

        public final boolean getIsShowCoachMarks() {
            return this.isShowCoachMarks;
        }

        public final void setExpandedCheapestSellingPackage(boolean z) {
            this.isExpandedCheapestSellingPackage = z;
        }

        public final void setExpandedQuickestSellingPackage(boolean z) {
            this.isExpandedQuickestSellingPackage = z;
        }

        public final void setGameIDInfo(GameID gameID) {
            this.gameIDInfo = gameID;
        }

        public final void setGameVoucherProduct(GameVoucherProduct gameVoucherProduct) {
            this.gameVoucherProduct = gameVoucherProduct;
        }

        public final void setSelectedGamePackage(GameVoucherSellingPackage gameVoucherSellingPackage) {
            this.selectedGamePackage = gameVoucherSellingPackage;
        }

        @Override
        public void setSelectedPaymentMethod(String str) {
            this.selectedPaymentMethod = str;
        }

        public final void setShowCoachMarks(boolean z) {
            this.isShowCoachMarks = z;
        }

        public final void setSource(String str) {
            this.source = str;
        }

        public final void setTabPosition(int i) {
            this.tabPosition = i;
        }
    }

    @Metadata(d1 = {"\u0000\u009e\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\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\u0006\u0018\u00002\u0014\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u00030\u0001B-\u0012\u0006\u0010\b\u001a\u00020\u0003\u0012\b\b\u0002\u0010D\u001a\u00020A\u0012\b\b\u0002\u0010J\u001a\u00020E\u0012\b\b\u0002\u0010N\u001a\u00020K¢\u0006\u0004\bO\u0010PJ\b\u0010\u0005\u001a\u00020\u0004H\u0002J\b\u0010\u0006\u001a\u00020\u0004H\u0002J\b\u0010\u0007\u001a\u00020\u0004H\u0002J\u0010\u0010\t\u001a\u00020\u00042\u0006\u0010\b\u001a\u00020\u0003H\u0002J\u0012\u0010\f\u001a\u00020\u00042\b\u0010\u000b\u001a\u0004\u0018\u00010\nH\u0016J\u000e\u0010\u000f\u001a\u00020\u00042\u0006\u0010\u000e\u001a\u00020\rJ\b\u0010\u0011\u001a\u00020\u0010H\u0016J\b\u0010\u0013\u001a\u00020\u0012H\u0016J\b\u0010\u0014\u001a\u00020\u0004H\u0016J\u0016\u0010\u0017\u001a\u00020\u00042\f\u0010\u0016\u001a\b\u0012\u0004\u0012\u00020\u00040\u0015H\u0016J\u0006\u0010\u0018\u001a\u00020\u0004J\u001f\u0010\u001c\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001b0\u001a0\u0019H\u0080@ø\u0001\u0000¢\u0006\u0004\b\u001c\u0010\u001dJ\u0006\u0010\u001e\u001a\u00020\u0004J\u0006\u0010\u001f\u001a\u00020\u0004J\u000e\u0010\"\u001a\u00020\u00102\u0006\u0010!\u001a\u00020 J\u0014\u0010%\u001a\b\u0012\u0004\u0012\u00020$0#2\u0006\u0010!\u001a\u00020 J\u000e\u0010&\u001a\u00020\u00102\u0006\u0010!\u001a\u00020 J\u0006\u0010'\u001a\u00020\u0004J\u0010\u0010)\u001a\u00020\u00042\b\b\u0002\u0010(\u001a\u00020\u0010J\u0006\u0010*\u001a\u00020\u0010J\u0006\u0010+\u001a\u00020\u0010J\u0006\u0010,\u001a\u00020\u0010J\"\u00101\u001a\u00020\u00042\u0006\u0010-\u001a\u00020 2\u0006\u0010.\u001a\u00020 2\b\u00100\u001a\u0004\u0018\u00010/H\u0016J\u0010\u00105\u001a\u0002042\u0006\u00103\u001a\u000202H\u0016J\b\u00106\u001a\u00020\u0004H\u0016J\b\u00108\u001a\u000207H\u0016J\u001a\u0010<\u001a\u00020\u00042\b\u0010:\u001a\u0004\u0018\u0001092\b\u0010;\u001a\u0004\u0018\u000109J\u0010\u0010>\u001a\u00020\u00042\b\b\u0002\u0010=\u001a\u00020\u0010J\u000e\u0010@\u001a\u00020\u00042\u0006\u0010?\u001a\u00020$R\u0014\u0010D\u001a\u00020A8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bB\u0010CR\u0017\u0010J\u001a\u00020E8\u0006¢\u0006\f\n\u0004\bF\u0010G\u001a\u0004\bH\u0010IR\u0014\u0010N\u001a\u00020K8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bL\u0010M\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006Q"}, d2 = {"Lcom/bukalapak/mitra/vp/gamevoucher/screen/VpGameVoucherPackagesTabScreen$a;", "Lj1a;", "Lcom/bukalapak/mitra/vp/gamevoucher/screen/VpGameVoucherPackagesTabScreen$Fragment;", "Lcom/bukalapak/mitra/vp/gamevoucher/screen/VpGameVoucherPackagesTabScreen$c;", "Llm9;", "q6", "u6", "k6", "state", "j6", "Landroid/os/Bundle;", "savedInstanceState", "w1", "Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherProduct;", "gameVoucherProduct", "p6", SingleKycIdentity.EMPTY, "U3", "Lcom/bukalapak/mitra/apiv4/service/TransactionPayload;", "p3", "w2", "Lkotlin/Function0;", "onSuccess", "x2", "o6", "Lcom/bukalapak/android/lib/api4/response/BaseResult;", "Lcom/bukalapak/android/lib/api4/response/BaseResponse;", "Lcom/bukalapak/android/lib/api4/tungku/data/TransactionGameVoucher;", "e6", "(Lr31;)Ljava/lang/Object;", "g6", "f6", SingleKycIdentity.EMPTY, "tabPos", "s6", SingleKycIdentity.EMPTY, "Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherSellingPackage;", "i6", "h6", "x6", "doRender", "y6", "m6", "t6", "l6", "requestCode", "resultCode", "Landroid/content/Intent;", "data", "i", "Landroid/content/Context;", "context", "Lg76;", "r5", "Q4", "Lcfa;", "h3", SingleKycIdentity.EMPTY, "source", Constants.REFERRER, "r6", "isFromClick", "v6", "gameVoucherSellingPackage", "n6", "Lz03;", "w0", "Lz03;", "gameNavigation", "Lzm5;", "x0", "Lzm5;", "getNeoVpToggles", "()Lzm5;", "neoVpToggles", "Li70;", "y0", "Li70;", "brazeGameEventTracker", "<init>", "(Lcom/bukalapak/mitra/vp/gamevoucher/screen/VpGameVoucherPackagesTabScreen$c;Lz03;Lzm5;Li70;)V", "base_app_release"}, k = 1, mv = {1, 8, 0})
    public static final class a extends j1a<Fragment, a, c> {

        private final z03 gameNavigation;

        private final zm5 neoVpToggles;

        private final i70 brazeGameEventTracker;

        @Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u008a@"}, d2 = {"Lb51;", "Llm9;", "<anonymous>"}, k = 3, mv = {1, 8, 0})
        @eo1(c = "com.bukalapak.mitra.vp.gamevoucher.screen.VpGameVoucherPackagesTabScreen$Actions$createTransactionToFetchVoucher$1", f = "VpGameVoucherPackagesTabScreen.kt", l = {222}, m = "invokeSuspend")
        static final class C0394a extends sw8 implements ux2<b51, r31<? super lm9>, Object> {
            int label;

            C0394a(r31<? super C0394a> r31Var) {
                super(2, r31Var);
            }

            @Override
            public final r31<lm9> create(Object obj, r31<?> r31Var) {
                return a.this.new C0394a(r31Var);
            }

            @Override
            public final Object invoke(b51 b51Var, r31<? super lm9> r31Var) {
                return ((C0394a) create(b51Var, r31Var)).invokeSuspend(lm9.a);
            }

            @Override
            public final Object invokeSuspend(Object obj) {
                Object d;
                d = s64.d();
                int i = this.label;
                if (i == 0) {
                    ot7.b(obj);
                    a aVar = a.this;
                    this.label = 1;
                    obj = aVar.e6(this);
                    if (obj == d) {
                        return d;
                    }
                } else {
                    if (i != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    ot7.b(obj);
                }
                BaseResult<? extends BaseResponse<? extends TransactionGameVoucher>> baseResult = (BaseResult) obj;
                a.Z5(a.this).getCreateTransactionApiLoad().s(baseResult);
                if (baseResult.l()) {
                    a aVar2 = a.this;
                    T t = ((BaseResponse) baseResult.response).data;
                    p64.g(t, "result.response.data");
                    aVar2.z4(new f03((TransactionGameVoucher) t));
                    a.this.v5().O();
                } else {
                    a.Z5(a.this).setVoucherMessage(baseResult.error.getMessage());
                    a aVar3 = a.this;
                    aVar3.J1(a.Z5(aVar3));
                }
                a.this.S3();
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\b\u001a\u00020\u00072h\u0010\u0006\u001ad\u0012`\u0012^\u0012(\u0012&\u0012\f\u0012\n \u0004*\u0004\u0018\u00010\u00030\u0003 \u0004*\u0012\u0012\f\u0012\n \u0004*\u0004\u0018\u00010\u00030\u0003\u0018\u00010\u00050\u0002 \u0004*.\u0012(\u0012&\u0012\f\u0012\n \u0004*\u0004\u0018\u00010\u00030\u0003 \u0004*\u0012\u0012\f\u0012\n \u0004*\u0004\u0018\u00010\u00030\u0003\u0018\u00010\u00050\u0002\u0018\u00010\u00010\u00010\u0000H\n¢\u0006\u0004\b\b\u0010\t"}, d2 = {"Lcom/bukalapak/android/lib/api4/response/BaseResult;", "Lcom/bukalapak/android/lib/api4/response/BaseResponse;", SingleKycIdentity.EMPTY, "Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherProduct;", "kotlin.jvm.PlatformType", SingleKycIdentity.EMPTY, "result", "Llm9;", "a", "(Lcom/bukalapak/android/lib/api4/response/BaseResult;)V"}, k = 3, mv = {1, 8, 0})
        static final class b extends dk4 implements gx2<BaseResult<BaseResponse<List<GameVoucherProduct>>>, lm9> {
            b() {
                super(1);
            }

            public final void a(BaseResult<BaseResponse<List<GameVoucherProduct>>> baseResult) {
                Object f0;
                p64.h(baseResult, "result");
                a.Z5(a.this).getFetchGameVoucherProduct().s(baseResult);
                if (baseResult.l()) {
                    c Z5 = a.Z5(a.this);
                    List<GameVoucherProduct> list = baseResult.response.data;
                    p64.g(list, "result.response.data");
                    a aVar = a.this;
                    ArrayList arrayList = new ArrayList();
                    for (Object obj : list) {
                        if (((GameVoucherProduct) obj).c() == a.Z5(aVar).getGameVoucherProductId()) {
                            arrayList.add(obj);
                        }
                    }
                    f0 = C1357su0.f0(arrayList);
                    Z5.setGameVoucherProduct((GameVoucherProduct) f0);
                    if (a.Z5(a.this).getGameVoucherProduct() != null) {
                        a.this.g6();
                    } else {
                        a aVar2 = a.this;
                        aVar2.J1(a.Z5(aVar2));
                    }
                }
            }

            @Override
            public lm9 invoke(BaseResult<BaseResponse<List<GameVoucherProduct>>> baseResult) {
                a(baseResult);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\b\u001a\u00020\u00072h\u0010\u0006\u001ad\u0012`\u0012^\u0012(\u0012&\u0012\f\u0012\n \u0004*\u0004\u0018\u00010\u00030\u0003 \u0004*\u0012\u0012\f\u0012\n \u0004*\u0004\u0018\u00010\u00030\u0003\u0018\u00010\u00050\u0002 \u0004*.\u0012(\u0012&\u0012\f\u0012\n \u0004*\u0004\u0018\u00010\u00030\u0003 \u0004*\u0012\u0012\f\u0012\n \u0004*\u0004\u0018\u00010\u00030\u0003\u0018\u00010\u00050\u0002\u0018\u00010\u00010\u00010\u0000H\n¢\u0006\u0004\b\b\u0010\t"}, d2 = {"Lcom/bukalapak/android/lib/api4/response/BaseResult;", "Lcom/bukalapak/android/lib/api4/response/BaseResponse;", SingleKycIdentity.EMPTY, "Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherSellingPackage;", "kotlin.jvm.PlatformType", SingleKycIdentity.EMPTY, "it", "Llm9;", "a", "(Lcom/bukalapak/android/lib/api4/response/BaseResult;)V"}, k = 3, mv = {1, 8, 0})
        static final class c extends dk4 implements gx2<BaseResult<BaseResponse<List<GameVoucherSellingPackage>>>, lm9> {
            c() {
                super(1);
            }

            public final void a(BaseResult<BaseResponse<List<GameVoucherSellingPackage>>> baseResult) {
                p64.h(baseResult, "it");
                a.Z5(a.this).getLoadSellingPackages().s(baseResult);
                a.this.q6();
                a aVar = a.this;
                aVar.J1(a.Z5(aVar));
            }

            @Override
            public lm9 invoke(BaseResult<BaseResponse<List<GameVoucherSellingPackage>>> baseResult) {
                a(baseResult);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
        static final class d extends dk4 implements ex2<lm9> {
            d() {
                super(0);
            }

            public final void a() {
                a.this.f6();
            }

            @Override
            public lm9 invoke() {
                a();
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroidx/fragment/app/e;", "it", "Llm9;", "a", "(Landroidx/fragment/app/e;)V"}, k = 3, mv = {1, 8, 0})
        static final class e extends dk4 implements gx2<androidx.fragment.app.e, lm9> {
            final GameVoucherProduct $gameVoucherProduct;
            final GameVoucherSellingPackage $gameVoucherSellingPackage;
            final c $state;

            e(GameVoucherProduct gameVoucherProduct, GameVoucherSellingPackage gameVoucherSellingPackage, c cVar) {
                super(1);
                this.$gameVoucherProduct = gameVoucherProduct;
                this.$gameVoucherSellingPackage = gameVoucherSellingPackage;
                this.$state = cVar;
            }

            public final void a(androidx.fragment.app.e eVar) {
                p64.h(eVar, "it");
                z03.a.a(a.this.gameNavigation, eVar, this.$gameVoucherProduct, this.$gameVoucherSellingPackage, this.$state.getGameIDInfo(), this.$state.getSource(), this.$state.getReferrer(), false, 64, null);
            }

            @Override
            public lm9 invoke(androidx.fragment.app.e eVar) {
                a(eVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroidx/fragment/app/e;", "it", "Llm9;", "a", "(Landroidx/fragment/app/e;)V"}, k = 3, mv = {1, 8, 0})
        static final class f extends dk4 implements gx2<androidx.fragment.app.e, lm9> {
            final GameVoucherSellingPackage $gamePackage;
            final GameVoucherProduct $gameVoucherProduct;

            f(GameVoucherProduct gameVoucherProduct, GameVoucherSellingPackage gameVoucherSellingPackage) {
                super(1);
                this.$gameVoucherProduct = gameVoucherProduct;
                this.$gamePackage = gameVoucherSellingPackage;
            }

            public final void a(androidx.fragment.app.e eVar) {
                p64.h(eVar, "it");
                z03.a.c(a.this.gameNavigation, eVar, this.$gameVoucherProduct, this.$gamePackage, a.Z5(a.this).getGameIDInfo(), a.Z5(a.this).getSource(), d48.a.k3().getName(), null, null, null, false, null, false, 4032, null);
            }

            @Override
            public lm9 invoke(androidx.fragment.app.e eVar) {
                a(eVar);
                return lm9.a;
            }
        }

        @Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u008a@"}, d2 = {"Lb51;", "Llm9;", "<anonymous>"}, k = 3, mv = {1, 8, 0})
        @eo1(c = "com.bukalapak.mitra.vp.gamevoucher.screen.VpGameVoucherPackagesTabScreen$Actions$onClickSellingPackage$1", f = "VpGameVoucherPackagesTabScreen.kt", l = {469}, m = "invokeSuspend")
        static final class g extends sw8 implements ux2<b51, r31<? super lm9>, Object> {
            int label;

            g(r31<? super g> r31Var) {
                super(2, r31Var);
            }

            @Override
            public final r31<lm9> create(Object obj, r31<?> r31Var) {
                return a.this.new g(r31Var);
            }

            @Override
            public final Object invoke(b51 b51Var, r31<? super lm9> r31Var) {
                return ((g) create(b51Var, r31Var)).invokeSuspend(lm9.a);
            }

            @Override
            public final Object invokeSuspend(Object obj) {
                Object d;
                d = s64.d();
                int i = this.label;
                if (i == 0) {
                    ot7.b(obj);
                    if (!n41.a.k()) {
                        this.label = 1;
                        if (ks1.a(500L, this) == d) {
                            return d;
                        }
                    }
                } else {
                    if (i != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    ot7.b(obj);
                }
                if (a.this.l6()) {
                    a.this.k6();
                } else {
                    a aVar = a.this;
                    aVar.j6(a.Z5(aVar));
                }
                return lm9.a;
            }
        }

        public a(c cVar, z03 z03Var, zm5 zm5Var, i70 i70Var, int i, oq1 oq1Var) {
            this(cVar, (i & 2) != 0 ? new a13(null, 0 == true ? 1 : 0, r0, 0 == true ? 1 : 0) : z03Var, (i & 4) != 0 ? new an5(0 == true ? 1 : 0, 0 == true ? 1 : 0, r0, 0 == true ? 1 : 0) : zm5Var, (i & 8) != 0 ? new a70(0 == true ? 1 : 0, 0 == true ? 1 : 0, r0, 0 == true ? 1 : 0) : i70Var);
            int i2 = 3;
        }

        public static final c Z5(a aVar) {
            return (c) aVar.t1();
        }

        public final void j6(c cVar) {
            GameVoucherProduct gameVoucherProduct;
            GameVoucherSellingPackage selectedGamePackage = cVar.getSelectedGamePackage();
            if (selectedGamePackage == null || (gameVoucherProduct = cVar.getGameVoucherProduct()) == null) {
                return;
            }
            E(new e(gameVoucherProduct, selectedGamePackage, cVar));
        }

        public final void k6() {
            GameVoucherSellingPackage selectedGamePackage;
            GameVoucherProduct gameVoucherProduct = ((c) t1()).getGameVoucherProduct();
            if (gameVoucherProduct == null || (selectedGamePackage = ((c) t1()).getSelectedGamePackage()) == null) {
                return;
            }
            E(new f(gameVoucherProduct, selectedGamePackage));
        }

        public final void q6() {
            ((c) t1()).setTabPosition((((c) t1()).getQuickestSellingPackage().isEmpty() && !((c) t1()).getCheapestSellingPackage().isEmpty() && this.neoVpToggles.V()) ? 1 : 0);
        }

        private final void u6() {
            i70 i70Var = this.brazeGameEventTracker;
            GameVoucherProduct gameVoucherProduct = ((c) t1()).getGameVoucherProduct();
            String e2 = gameVoucherProduct != null ? gameVoucherProduct.e() : null;
            if (e2 == null) {
                e2 = SingleKycIdentity.EMPTY;
            }
            i70Var.y(e2);
        }

        public static void w6(a aVar, boolean z, int i, Object obj) {
            if ((i & 1) != 0) {
                z = false;
            }
            aVar.v6(z);
        }

        public static void z6(a aVar, boolean z, int i, Object obj) {
            if ((i & 1) != 0) {
                z = false;
            }
            aVar.y6(z);
        }

        @Override
        public void Q4() {
            if (((c) t1()).getCreateTransactionApiLoad().b() == null) {
                return;
            }
            getVpTracker().J(((c) t1()).getSource(), ((c) t1()).getReferrer(), ((c) t1()).getCreateTransactionApiLoad().b());
        }

        @Override
        public boolean U3() {
            GameVoucherSellingPackage selectedGamePackage = ((c) t1()).getSelectedGamePackage();
            if (selectedGamePackage == null || selectedGamePackage.e() <= 0 || !m6()) {
                return false;
            }
            return !((c) t1()).getCreateTransactionApiLoad().getIsLoading() || ((c) t1()).getCreateTransactionApiLoad().f();
        }

        public final Object e6(r31<? super BaseResult<BaseResponse<TransactionGameVoucher>>> r31Var) {
            GameVouchersService.CreateGameVoucherTransactionBody createGameVoucherTransactionBody = new GameVouchersService.CreateGameVoucherTransactionBody();
            GameVoucherSellingPackage selectedGamePackage = ((c) t1()).getSelectedGamePackage();
            createGameVoucherTransactionBody.c(selectedGamePackage != null ? selectedGamePackage.e() : -1L);
            GameID gameIDInfo = ((c) t1()).getGameIDInfo();
            createGameVoucherTransactionBody.b(gameIDInfo != null ? gameIDInfo.getFirstInput() : null);
            GameID gameIDInfo2 = ((c) t1()).getGameIDInfo();
            createGameVoucherTransactionBody.a(gameIDInfo2 != null ? gameIDInfo2.getSecondInput() : null);
            return ((GameVouchersService) wg.INSTANCE.t(GameVouchersService.class)).d(createGameVoucherTransactionBody).g(r31Var);
        }

        public final void f6() {
            ((c) t1()).getFetchGameVoucherProduct().n();
            J1(t1());
            ((GameVouchersService) wg.INSTANCE.t(GameVouchersService.class)).e(null, null).d(new b());
        }

        public final void g6() {
            boolean z;
            GameVoucherProduct gameVoucherProduct = ((c) t1()).getGameVoucherProduct();
            z = C0988cn.z(new Object[]{gameVoucherProduct}, null);
            boolean z2 = true ^ z;
            if (z2) {
                p64.e(gameVoucherProduct);
                ((c) t1()).getLoadSellingPackages().n();
                J1(t1());
                ((GameVouchersService) wg.INSTANCE.t(GameVouchersService.class)).f(Long.valueOf(gameVoucherProduct.c()), null, null).d(new c());
            }
            new hn9(z2).a(new d());
        }

        @Override
        public VpTrackerProductDetail h3() {
            String productTitle = ((c) t1()).getProductTitle();
            GameVoucherProduct gameVoucherProduct = ((c) t1()).getGameVoucherProduct();
            String e2 = gameVoucherProduct != null ? gameVoucherProduct.e() : null;
            GameVoucherSellingPackage selectedGamePackage = ((c) t1()).getSelectedGamePackage();
            long l = selectedGamePackage != null ? selectedGamePackage.l() : 0L;
            GameVoucherSellingPackage selectedGamePackage2 = ((c) t1()).getSelectedGamePackage();
            return new VpTrackerProductDetail(productTitle, e2, l, selectedGamePackage2 != null ? selectedGamePackage2.i() : null);
        }

        public final boolean h6(int tabPos) {
            return tabPos == 0 ? ((c) t1()).getIsExpandedQuickestSellingPackage() : ((c) t1()).getIsExpandedCheapestSellingPackage();
        }

        @Override
        public void i(int i, int i2, Intent intent) {
            Serializable serializableExtra;
            super.i(i, i2, intent);
            if (i != 1234 || i2 != -1 || intent == null || (serializableExtra = intent.getSerializableExtra("extra_game_id")) == null) {
                return;
            }
            ((c) t1()).setGameIDInfo(serializableExtra instanceof GameID ? (GameID) serializableExtra : null);
            J1(t1());
        }

        public final List<GameVoucherSellingPackage> i6(int tabPos) {
            return tabPos == 0 ? ((c) t1()).getQuickestSellingPackage() : this.neoVpToggles.V() ? ((c) t1()).getCheapestSellingPackage() : C1137ku0.h();
        }

        public final boolean l6() {
            GameVoucherProductConfiguration b2;
            GameVoucherProduct gameVoucherProduct = ((c) t1()).getGameVoucherProduct();
            return ((gameVoucherProduct == null || (b2 = gameVoucherProduct.b()) == null) ? 0L : b2.a()) > 0;
        }

        public final boolean m6() {
            String secondInput;
            GameVoucherProductConfiguration b2;
            GameVoucherProduct gameVoucherProduct = ((c) t1()).getGameVoucherProduct();
            Long valueOf = (gameVoucherProduct == null || (b2 = gameVoucherProduct.b()) == null) ? null : Long.valueOf(b2.a());
            if (valueOf != null && valueOf.longValue() == 1) {
                GameID gameIDInfo = ((c) t1()).getGameIDInfo();
                secondInput = gameIDInfo != null ? gameIDInfo.getFirstInput() : null;
                if (secondInput == null || ku8.y(secondInput)) {
                    return false;
                }
            } else if (valueOf != null && valueOf.longValue() == 2) {
                GameID gameIDInfo2 = ((c) t1()).getGameIDInfo();
                String firstInput = gameIDInfo2 != null ? gameIDInfo2.getFirstInput() : null;
                if (firstInput == null || ku8.y(firstInput)) {
                    return false;
                }
                GameID gameIDInfo3 = ((c) t1()).getGameIDInfo();
                secondInput = gameIDInfo3 != null ? gameIDInfo3.getSecondInput() : null;
                if (secondInput == null || ku8.y(secondInput)) {
                    return false;
                }
            }
            return true;
        }

        public final void n6(GameVoucherSellingPackage gameVoucherSellingPackage) {
            p64.h(gameVoucherSellingPackage, "gameVoucherSellingPackage");
            if (p64.c(gameVoucherSellingPackage.getStatus(), "unavailable")) {
                return;
            }
            ((c) t1()).setSelectedGamePackage(gameVoucherSellingPackage);
            la0.d(this, dh1.a.c(), null, new g(null), 2, null);
        }

        public final void o6() {
            q5().j1();
        }

        @Override
        public TransactionPayload p3() {
            GameVoucherSellingPackage selectedGamePackage = ((c) t1()).getSelectedGamePackage();
            long e2 = selectedGamePackage != null ? selectedGamePackage.e() : -1L;
            GameID gameIDInfo = ((c) t1()).getGameIDInfo();
            String firstInput = gameIDInfo != null ? gameIDInfo.getFirstInput() : null;
            GameID gameIDInfo2 = ((c) t1()).getGameIDInfo();
            return new GameVoucherTransactionPayload(e2, firstInput, gameIDInfo2 != null ? gameIDInfo2.getSecondInput() : null);
        }

        public final void p6(GameVoucherProduct gameVoucherProduct) {
            p64.h(gameVoucherProduct, "gameVoucherProduct");
            ((c) t1()).setGameVoucherProduct(gameVoucherProduct);
        }

        @Override
        public g76 r5(Context context) {
            InquiryGameVoucher inquiry;
            p64.h(context, "context");
            int i = vc7.vd;
            Object[] objArr = new Object[4];
            objArr[0] = ((c) t1()).getProductTitle();
            GameVoucherSellingPackage selectedGamePackage = ((c) t1()).getSelectedGamePackage();
            String str = null;
            objArr[1] = selectedGamePackage != null ? selectedGamePackage.i() : null;
            GameID gameIDInfo = ((c) t1()).getGameIDInfo();
            if (gameIDInfo != null && (inquiry = gameIDInfo.getInquiry()) != null) {
                str = inquiry.a();
            }
            if (str == null) {
                str = SingleKycIdentity.EMPTY;
            }
            objArr[2] = str;
            objArr[3] = t95.a.o(((c) t1()).getFinalPrice());
            String string = context.getString(i, objArr);
            p64.g(string, "context.getString(\n     …finalPrice)\n            )");
            return new g76(null, string, null, null, null, null, false, null, 253, null);
        }

        public final void r6(String str, String str2) {
            ((c) t1()).setSource(str);
            ((c) t1()).setReferrer(str2);
        }

        public final boolean s6(int tabPos) {
            return i6(tabPos).size() > 10 && !h6(tabPos);
        }

        public final boolean t6() {
            return (((c) t1()).getGameVoucherProduct() == null || (l6() && ((c) t1()).getGameIDInfo() == null)) ? false : true;
        }

        public final void v6(boolean z) {
            ((c) t1()).setShowCoachMarks(false);
            if (z) {
                getVpPref().T(true);
            }
        }

        @Override
        public void w1(Bundle bundle) {
            super.w1(bundle);
            wea vpTracker = getVpTracker();
            String source = ((c) t1()).getSource();
            String referrer = ((c) t1()).getReferrer();
            GameVoucherProduct gameVoucherProduct = ((c) t1()).getGameVoucherProduct();
            vpTracker.M(source, referrer, gameVoucherProduct != null ? gameVoucherProduct.e() : null);
            if (getVpPref().D()) {
                ((c) t1()).setShowCoachMarks(false);
            }
            u6();
            gx9.L(v5(), 0L, 1, null);
        }

        @Override
        public void w2() {
            if (((c) t1()).getCreateTransactionApiLoad().getIsLoading()) {
                return;
            }
            ((c) t1()).getCreateTransactionApiLoad().n();
            O4();
            la0.d(this, dh1.a.b(), null, new C0394a(null), 2, null);
        }

        @Override
        public void x2(ex2<lm9> ex2Var) {
            p64.h(ex2Var, "onSuccess");
            j61.b("Not yet implemented", null, 2, null);
        }

        public final void x6() {
            if (((c) t1()).getTabPosition() == 0) {
                ((c) t1()).setExpandedQuickestSellingPackage(true);
            } else {
                ((c) t1()).setExpandedCheapestSellingPackage(true);
            }
        }

        public final void y6(boolean z) {
            if (((c) t1()).getTabPosition() == 0) {
                ((c) t1()).setTabPosition(1);
            } else if (((c) t1()).getTabPosition() == 1) {
                ((c) t1()).setTabPosition(0);
            }
            if (z) {
                J1(t1());
            }
        }

        public a(c cVar, z03 z03Var, zm5 zm5Var, i70 i70Var) {
            super(cVar, new gx9(null, null, null, null, null, 31, null), new m56(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 1048575, null), 0 == true ? 1 : 0, 0 == true ? 1 : 0, 0 == true ? 1 : 0, 0 == true ? 1 : 0, null, 0 == true ? 1 : 0, 504, null);
            p64.h(cVar, "state");
            p64.h(z03Var, "gameNavigation");
            p64.h(zm5Var, "neoVpToggles");
            p64.h(i70Var, "brazeGameEventTracker");
            this.gameNavigation = z03Var;
            this.neoVpToggles = zm5Var;
            this.brazeGameEventTracker = i70Var;
            v5().p0(new ix9(this));
            q5().r1(new p56(this));
        }
    }
}