导航菜单

页面标题

页面副标题

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

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

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


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

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.bukalapak.android.lib.api4.response.BaseResponse;
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.OfflineCustomerNumber;
import com.bukalapak.android.lib.api4.tungku.data.TransactionGameVoucher;
import com.bukalapak.android.lib.api4.tungku.service.GameVouchersService;
import com.bukalapak.android.lib.neo.lib.model.NeoMapper;
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.response.VpGameVoucherPackagesTabScreen;
import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.tabs.TabLayout;
import defpackage.TransactionCreatedKey;
import defpackage.VpTrackerProductDetail;
import defpackage.a03;
import defpackage.g76;
import defpackage.gx9;
import defpackage.h03;
import defpackage.ix9;
import defpackage.j1a;
import defpackage.k03;
import defpackage.l03;
import defpackage.l1a;
import defpackage.m56;
import defpackage.p56;
import defpackage.q56;
import defpackage.ts7;
import defpackage.x03;
import defpackage.x75;
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;", "", "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", "", "tabPosition", "j3", "tabPos", "h3", "Lq95;", "R2", "N2", "", "Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherSellingPackage;", "packages", "L2", "a3", "", "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", "", "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) ((og0) this).receiver).o6();
            }

            public Object 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);
            }

            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>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
        static final class a1 extends dk4 implements ex2<String> {
            a1() {
                super(0);
            }

            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);
            }

            public final zg0 invoke(Context context) {
                p64.h(context, "context");
                zg0 zg0Var = new zg0(context);
                kn8 kn8Var = kn8.g;
                wx0.B(zg0Var, kn8Var, (kn8) null, kn8Var, kn8Var, 2, (Object) 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);
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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");
                Fragment.this.o0().v6(true);
                ts0.e(this.$this_apply, 0, 1, (Object) null);
            }

            public Object invoke(Object obj) {
                a((View) obj);
                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);
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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();
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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();
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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<b, lm9> {
            final long $commission;

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

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

            public Object invoke(Object obj) {
                a((b) obj);
                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<d, lm9> {
            final String $notes;

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

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

            public Object invoke(Object obj) {
                a((d) obj);
                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);
            }

            public final ha2 invoke(Context context) {
                p64.h(context, "context");
                ha2 ha2Var = new ha2(context);
                kn8 kn8Var = kn8.i;
                wx0.B(ha2Var, (kn8) null, kn8Var, (kn8) null, kn8Var, 5, (Object) null);
                kn8 kn8Var2 = kn8.g;
                wx0.I(ha2Var, kn8Var2, (kn8) null, kn8Var2, (kn8) null, 10, (Object) 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);
            }

            public final l03 invoke(Context context) {
                p64.h(context, "context");
                l03 l03Var = new l03(context);
                wx0.B(l03Var, (kn8) null, kn8.e, (kn8) null, kn8.f, 5, (Object) 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);
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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);
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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();
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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();
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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<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");
                    this.this$0.o0().g6();
                }

                public Object invoke(Object obj) {
                    a((View) obj);
                    return lm9.a;
                }
            }

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

            public final void a(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);
                xh xhVar = (xh) this.$state.getLoadSellingPackages().c();
                String c = xhVar != null ? xhVar.c() : null;
                String str = true ^ (c == null || bu8.y(c)) ? c : 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));
            }

            public Object invoke(Object obj) {
                a((d) obj);
                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 = {"", "a", "()Ljava/lang/Boolean;"}, k = 3, mv = {1, 8, 0})
                static final class C0091a extends dk4 implements ex2<Boolean> {
                    final GameVoucherSellingPackage $it;
                    final c $state;

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

                    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 C0091a(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());
                    b priceTextAVState = bVar.getPriceTextAVState();
                    t95 t95Var = t95.a;
                    priceTextAVState.k(t95Var.o(this.$it.s()));
                    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()));
                }

                public Object invoke(Object obj) {
                    a((k03.b) obj);
                    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);
                }

                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);
                }

                public Object invoke(Object obj) {
                    a((k95) obj);
                    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();
                }

                public Object invoke(Object obj) {
                    a((k95) obj);
                    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");
                fragment.o0().n6(gameVoucherSellingPackage);
                fragment.g1(1500L);
                return true;
            }

            public final void b(l03.b bVar) {
                p64.h(bVar, "$this$newItem");
                List<GameVoucherSellingPackage> subList = 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(iu0.r(list, 10));
                for (final GameVoucherSellingPackage gameVoucherSellingPackage : list) {
                    a aVar = k95.h;
                    arrayList.add(new q95(k03.class.hashCode(), new b()).H(new c(new a(gameVoucherSellingPackage, cVar))).M(d.g).y(new f() {
                        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);
            }

            public Object invoke(Object obj) {
                b((l03.b) obj);
                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);
            }

            public final ha2 invoke(Context context) {
                p64.h(context, "context");
                ha2 ha2Var = new ha2(context);
                wx0.B(ha2Var, (kn8) null, kn8.f, (kn8) null, kn8.i, 5, (Object) null);
                kn8 kn8Var = kn8.g;
                wx0.I(ha2Var, kn8Var, (kn8) null, kn8Var, (kn8) null, 10, (Object) 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);
            }

            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);
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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);
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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();
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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();
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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<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");
                    this.this$0.o0().y6(true);
                }

                public Object invoke(Object obj) {
                    a((View) obj);
                    return lm9.a;
                }
            }

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

            public final void a(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));
            }

            public Object invoke(Object obj) {
                a((d) obj);
                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<b, lm9> {
            m() {
                super(1);
            }

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

            public Object invoke(Object obj) {
                a((b) obj);
                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();
                    }
                }

                public Object invoke(Object obj) {
                    a((View) obj);
                    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));
            }

            public Object invoke(Object obj) {
                a((a03.b) obj);
                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<a, lm9> {
            public static final n g = new n();

            public n() {
                super(1);
            }

            public final void a(a aVar) {
            }

            public Object invoke(Object obj) {
                a(obj);
                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);
            }

            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);
            }

            public final j88 invoke(Context context) {
                p64.h(context, "context");
                j88 j88Var = new j88(context);
                wx0.B(j88Var, (kn8) null, (kn8) null, (kn8) null, kn8.g, 7, (Object) 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);
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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);
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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();
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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();
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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);
            }

            public final h03 invoke(Context context) {
                p64.h(context, "context");
                h03 h03Var = new h03(context);
                ky0.c(h03Var, (Integer) null, Integer.valueOf(VpGameVoucherPackagesTabScreen.INSTANCE.a()), (Integer) null, (Integer) null, 13, (Object) 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);
            }

            public final x03 invoke(Context context) {
                p64.h(context, "context");
                x03 x03Var = new x03(context);
                wx0.B(x03Var, (kn8) null, (kn8) null, (kn8) null, kn8.g, 7, (Object) 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);
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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);
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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();
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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();
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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);
            }

            public Object invoke(Object obj) {
                a((h03.b) obj);
                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");
                    this.this$0.o0().x6();
                    this.this$0.g1(1500L);
                    this.this$0.i1(1502L);
                }

                public Object invoke(Object obj) {
                    a((View) obj);
                    return lm9.a;
                }
            }

            u() {
                super(1);
            }

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

            public Object invoke(Object obj) {
                a((x03.b) obj);
                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<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();
                    }
                }

                public Object invoke(Object obj) {
                    a((View) obj);
                    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");
                    this.this$0.o0().w5();
                }

                public Object invoke(Object obj) {
                    a((View) obj);
                    return lm9.a;
                }
            }

            u0() {
                super(1);
            }

            public final void a(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));
            }

            public Object invoke(Object obj) {
                a((b) obj);
                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);
            }

            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);
            }

            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);
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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);
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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();
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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();
            }

            public Object invoke(Object obj) {
                a((k95) obj);
                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<c, lm9> {
            y() {
                super(1);
            }

            public final void a(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));
            }

            public Object invoke(Object obj) {
                a((c) obj);
                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<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 = {"", "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(o0, false, 1, null);
                    this.this$0.U2();
                    this.this$0.j3(this.$state, i);
                }

                public Object invoke(Object obj) {
                    a(((Number) obj).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);
                }

                public Object invoke(Object obj) {
                    a((TabLayout) obj);
                    return lm9.a;
                }
            }

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

            public final void a(b bVar) {
                p64.h(bVar, "$this$newItem");
                bVar.g(iu0.k(new String[]{"Tercepat", "Termurah"}));
                bVar.f(new a(this.this$0, this.$state));
                bVar.e(new b(this.this$0, this.$state));
                bVar.h(this.$state.getTabPosition());
            }

            public Object invoke(Object obj) {
                a((b) obj);
                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);
            }

            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>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
        static final class z0 extends dk4 implements ex2<String> {
            z0() {
                super(0);
            }

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

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

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

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

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

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

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

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

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

        private final void Z2(int i2) {
            if (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 || bu8.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<t0<?, ?>> F1 = F1();
            a aVar = k95.h;
            F1.k0(new q95(ha2.class.hashCode(), new i0()).H(new j0(new l0(string, string2))).M(k0.g).x(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<t0<?, ?>> F1 = F1();
            a aVar = k95.h;
            F1.k0(new q95(h2a.class.hashCode(), new v0()).H(new w0(new y0(cVar, this))).M(x0.g).x(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(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();
                }
            }
        }

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

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

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

        public int L() {
            return a.d(this);
        }

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

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

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

        public void w0(c cVar) {
            p64.h(cVar, "state");
            super/*com.bukalapak.android.lib.mvi.MviFragment*/.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);
            a aVar = k95.h;
            t0 x2 = new q95(qz3.class.hashCode(), new a0()).H(new b0(new d0(f2))).M(c0.g).x(1700L);
            p64.g(x2, "fun renderCommission(sta…)\n            }\n        }");
            VpBaseScreen$Fragment.e1(this, 1700L, x2, null, 4, null);
        }

        public final void X2(c cVar, int i2) {
            p64.h(cVar, "state");
            List<GameVoucherSellingPackage> i6 = o0().i6(i2);
            boolean z2 = i6 == null || i6.isEmpty();
            if (cVar.getFetchGameVoucherProduct().g() || cVar.getLoadSellingPackages().g()) {
                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<t0<?, ?>> F1 = F1();
            a aVar = k95.h;
            F1.k0(new q95(ha2.class.hashCode(), new e0()).H(new f0(new h0(cVar))).M(g0.g).x(502L));
        }

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

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

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

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

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

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

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

        public void onActivityCreated(Bundle bundle) {
            super.onActivityCreated(bundle);
            O2().setClipToPadding(false);
            androidx.fragment.app.e activity = getActivity();
            ViewGroup viewGroup = activity != null ? (ViewGroup) activity.findViewById(L()) : 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);
            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);
            o0().g6();
        }

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

        public View z(int i2, LayoutInflater layoutInflater, ViewGroup viewGroup) {
            return 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;", "", "", "VERTICAL_MARGIN", "I", "a", "()I", "", "CLICK_DELAY", "J", "", "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;", "", "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", "", "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", "", "isExpandedQuickestSellingPackage", "Z", "()Z", "setExpandedQuickestSellingPackage", "(Z)V", "isExpandedCheapestSellingPackage", "setExpandedCheapestSellingPackage", "Lii;", "", "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", "", "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 iz2 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 = "game-voucher";
        private final String trxTypeV4 = "game-voucher";
        private final String screenName = x38.a.n().a();
        private final String productTitle = ts7.g(vc7.Vv);
        private String couponProductType = "game";
        private long paymentWarningThreshold = 100000;

        @b28
        private long gameVoucherProductId = -1;
        private final ii<List<GameVoucherSellingPackage>> loadSellingPackages = new ii<>();
        private final ii<TransactionGameVoucher> createTransactionApiLoad = new ii<>();
        private ii<List<GameVoucherProduct>> fetchGameVoucherProduct = new ii<>();
        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 list = (List) this.loadSellingPackages.b();
            if (list == null) {
                return iu0.h();
            }
            ArrayList arrayList = new ArrayList();
            for (Object obj : list) {
                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 ii<TransactionGameVoucher> getCreateTransactionApiLoad() {
            return this.createTransactionApiLoad;
        }

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

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

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

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

        public final ii<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 list = (List) this.loadSellingPackages.b();
            if (list == null) {
                return iu0.h();
            }
            ArrayList arrayList = new ArrayList();
            for (Object obj : list) {
                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;
            if (e == null) {
                e = "";
            }
            GameVoucherSellingPackage gameVoucherSellingPackage = this.selectedGamePackage;
            String i = gameVoucherSellingPackage != null ? gameVoucherSellingPackage.i() : null;
            return new TransactionCreatedKey(e, i != null ? i : "");
        }

        @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(iz2 iz2Var) {
            this.gameIDInfo = iz2Var;
        }

        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", "", "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", "", "tabPos", "s6", "", "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", "", "source", "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 C0092a extends sw8 implements ux2<b51, r31<? super lm9>, Object> {
            int label;

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

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

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

            public final Object invokeSuspend(Object obj) {
                Object d = q64.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);
                }
                com.bukalapak.android.lib.api4.response.BaseResult baseResult = (com.bukalapak.android.lib.api4.response.BaseResult) obj;
                a.Z5(a.this).getCreateTransactionApiLoad().s(baseResult);
                if (baseResult.l()) {
                    a aVar2 = a.this;
                    Object obj2 = ((BaseResponse) baseResult.response).data;
                    p64.g(obj2, "result.response.data");
                    aVar2.z4(new f03((TransactionGameVoucher) obj2));
                    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;", "", "Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherProduct;", "kotlin.jvm.PlatformType", "", "result", "Llm9;", "a", "(Lcom/bukalapak/android/lib/api4/response/BaseResult;)V"}, k = 3, mv = {1, 8, 0})
        static final class BaseResult extends dk4 implements gx2<com.bukalapak.android.lib.api4.response.BaseResult<BaseResponse<List<GameVoucherProduct>>>, lm9> {
            BaseResult() {
                super(1);
            }

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

            public Object invoke(Object obj) {
                a((com.bukalapak.android.lib.api4.response.BaseResult) obj);
                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;", "", "Lcom/bukalapak/android/lib/api4/tungku/data/GameVoucherSellingPackage;", "kotlin.jvm.PlatformType", "", "it", "Llm9;", "a", "(Lcom/bukalapak/android/lib/api4/response/BaseResult;)V"}, k = 3, mv = {1, 8, 0})
        static final class C0218c extends dk4 implements gx2<com.bukalapak.android.lib.api4.response.BaseResult<BaseResponse<List<GameVoucherSellingPackage>>>, lm9> {
            C0218c() {
                super(1);
            }

            public final void a(com.bukalapak.android.lib.api4.response.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));
            }

            public Object invoke(Object obj) {
                a((com.bukalapak.android.lib.api4.response.BaseResult) obj);
                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();
            }

            public Object 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");
                a.a(a.this.gameNavigation, eVar, this.$gameVoucherProduct, this.$gameVoucherSellingPackage, this.$state.getGameIDInfo(), this.$state.getSource(), this.$state.getReferrer(), false, 64, (Object) null);
            }

            public Object invoke(Object obj) {
                a((androidx.fragment.app.e) obj);
                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");
                a.c(a.this.gameNavigation, eVar, this.$gameVoucherProduct, this.$gamePackage, a.Z5(a.this).getGameIDInfo(), a.Z5(a.this).getSource(), d48.a.k3().b(), (Integer) null, (Long) null, (String) null, false, (OfflineCustomerNumber) null, false, 4032, (Object) null);
            }

            public Object invoke(Object obj) {
                a((androidx.fragment.app.e) obj);
                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);
            }

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

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

            public final Object invokeSuspend(Object obj) {
                Object d = q64.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((ek5) null, (zm5) null, 3, (oq1) null) : z03Var, (i & 4) != 0 ? new an5((NeoMapper) null, (sy4) null, 3, (oq1) null) : zm5Var, (i & 8) != 0 ? new a70((m60) null, (ad8) null, 3, (oq1) null) : i70Var);
        }

        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 = "";
            }
            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(), (TransactionGameVoucher) ((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().g() || ((c) t1()).getCreateTransactionApiLoad().f();
        }

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

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

        public final void g6() {
            GameVoucherProduct gameVoucherProduct = ((c) t1()).getGameVoucherProduct();
            boolean z = true ^ ym.z(new Object[]{gameVoucherProduct}, (Object) null);
            if (z) {
                p64.e(gameVoucherProduct);
                ((c) t1()).getLoadSellingPackages().n();
                J1(t1());
                ((GameVouchersService) wg.a.t(GameVouchersService.class)).f(Long.valueOf(gameVoucherProduct.c()), (String) null, (String) null).d(new C0218c());
            }
            new hn9(z).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) {
            iz2 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 iz2 ? serializableExtra : null);
            J1(t1());
        }

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

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

        public final boolean m6() {
            String c;
            GameVoucherProductConfiguration b;
            GameVoucherProduct gameVoucherProduct = ((c) t1()).getGameVoucherProduct();
            Long valueOf = (gameVoucherProduct == null || (b = gameVoucherProduct.b()) == null) ? null : Long.valueOf(b.a());
            if (valueOf != null && valueOf.longValue() == 1) {
                iz2 gameIDInfo = ((c) t1()).getGameIDInfo();
                c = gameIDInfo != null ? gameIDInfo.a() : null;
                if (c == null || bu8.y(c)) {
                    return false;
                }
            } else if (valueOf != null && valueOf.longValue() == 2) {
                iz2 gameIDInfo2 = ((c) t1()).getGameIDInfo();
                String a = gameIDInfo2 != null ? gameIDInfo2.a() : null;
                if (a == null || bu8.y(a)) {
                    return false;
                }
                iz2 gameIDInfo3 = ((c) t1()).getGameIDInfo();
                c = gameIDInfo3 != null ? gameIDInfo3.c() : null;
                if (c == null || bu8.y(c)) {
                    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);
            ja0.d(this, dh1.a.c(), (f51) null, new g(null), 2, (Object) null);
        }

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

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

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

        @Override
        public g76 r5(Context context) {
            InquiryGameVoucher b;
            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;
            iz2 gameIDInfo = ((c) t1()).getGameIDInfo();
            if (gameIDInfo != null && (b = gameIDInfo.b()) != null) {
                str = b.a();
            }
            if (str == null) {
                str = "";
            }
            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().g()) {
                return;
            }
            ((c) t1()).getCreateTransactionApiLoad().n();
            O4();
            ja0.d(this, dh1.a.b(), (f51) null, new C0092a(null), 2, (Object) null);
        }

        @Override
        public void x2(ex2<lm9> ex2Var) {
            p64.h(ex2Var, "onSuccess");
            j61.b("Not yet implemented", (String) null, 2, (Object) 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), null, null, null, null, null, null, 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));
        }
    }
}