得物.apk(点击下载) / DisplayCouponDialog.java


package com.shizhuang.duapp.modules.home.dialog;

import android.animation.AnimatorSet;
import android.app.Dialog;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.widget.ImageView;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.knightboost.weaver.api.Scope;
import com.knightboost.weaver.api.annotations.Insert;
import com.knightboost.weaver.api.annotations.TargetClass;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.shizhuang.duapp.R;
import com.shizhuang.duapp.common.component.recyclerview.GridSpacingItemDecoration;
import com.shizhuang.duapp.common.dialog.BaseDialogFragment;
import com.shizhuang.duapp.common.extension.ViewExtensionKt;
import com.shizhuang.duapp.common.helper.net.ParamsBuilder;
import com.shizhuang.duapp.modules.home.adapter.DisplayCouponAdapter;
import com.shizhuang.duapp.modules.home.model.CouponItemModel;
import com.shizhuang.duapp.modules.home.model.CouponModel;
import com.shizhuang.duapp.modules.home.model.DisplayCouponModel;
import com.shizhuang.duapp.modules.router.ServiceManager;
import com.shizhuang.dudatastatistics.factory.PoizonAnalyzeFactory;
import df.q;
import ij.t;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import kotlin.Lazy;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import rd.g;
import rd.l;
import td.s;
import ud0.d;

@Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0005\u0018\u00002\u00020\u0001:\u0001\u0006B\u0007¢\u0006\u0004\b\u0004\u0010\u0005J\b\u0010\u0003\u001a\u00020\u0002H\u0016¨\u0006\u0007"}, d2 = {"Lcom/shizhuang/duapp/modules/home/dialog/DisplayCouponDialog;", "Lcom/shizhuang/duapp/common/dialog/BaseDialogFragment;", "", "onResume", "<init>", "()V", "a", "du_home_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: DisplayCouponDialog.kt */
public final class DisplayCouponDialog extends BaseDialogFragment {
    public static ChangeQuickRedirect changeQuickRedirect;
    @NotNull
    public static final a o = new a(null);
    @NotNull
    public final String e = "https://cdn.poizon.com/node-common/c19432cf203444dab385393f7aaf812f.png";
    public AnimatorSet f;

    /* renamed from: g  reason: collision with root package name */
    public Animation f15769g;

    /* renamed from: h  reason: collision with root package name */
    public DisplayCouponModel f15770h;
    public String i;
    public String j;
    public CouponModel k;
    @Nullable
    public Function1<? super Integer, Unit> l;
    public final Lazy m = LazyKt__LazyJVMKt.lazy(DisplayCouponDialog$itemAdapter$2.INSTANCE);
    public HashMap n;

    public class _boostWeave {
        public static ChangeQuickRedirect changeQuickRedirect;

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onCreate")
        @Keep
        public static void FragmentMethodWeaver_onCreate(DisplayCouponDialog displayCouponDialog, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{displayCouponDialog, bundle}, null, changeQuickRedirect, true, 154730, new Class[]{DisplayCouponDialog.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                DisplayCouponDialog.s(displayCouponDialog, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (displayCouponDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.home.dialog.DisplayCouponDialog")) {
                    jn.b.f34396a.fragmentOnCreateMethod(displayCouponDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onCreateView")
        @Keep
        public static View FragmentMethodWeaver_onCreateView(@NonNull DisplayCouponDialog displayCouponDialog, @androidx.annotation.Nullable LayoutInflater layoutInflater, @androidx.annotation.Nullable ViewGroup viewGroup, Bundle bundle) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{displayCouponDialog, layoutInflater, viewGroup, bundle}, null, changeQuickRedirect, true, 154733, new Class[]{DisplayCouponDialog.class, LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
            if (proxy.isSupported) {
                return (View) proxy.result;
            }
            long currentTimeMillis = System.currentTimeMillis();
            View v4 = DisplayCouponDialog.v(displayCouponDialog, layoutInflater, viewGroup, bundle);
            long currentTimeMillis2 = System.currentTimeMillis();
            if (displayCouponDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.home.dialog.DisplayCouponDialog")) {
                jn.b.f34396a.fragmentOnCreateViewMethod(displayCouponDialog, currentTimeMillis, currentTimeMillis2);
            }
            return v4;
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onResume")
        @Keep
        public static void FragmentMethodWeaver_onResume(DisplayCouponDialog displayCouponDialog) {
            if (!PatchProxy.proxy(new Object[]{displayCouponDialog}, null, changeQuickRedirect, true, 154731, new Class[]{DisplayCouponDialog.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                DisplayCouponDialog.t(displayCouponDialog);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (displayCouponDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.home.dialog.DisplayCouponDialog")) {
                    jn.b.f34396a.fragmentOnResumeMethod(displayCouponDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onStart")
        @Keep
        public static void FragmentMethodWeaver_onStart(DisplayCouponDialog displayCouponDialog) {
            if (!PatchProxy.proxy(new Object[]{displayCouponDialog}, null, changeQuickRedirect, true, 154732, new Class[]{DisplayCouponDialog.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                DisplayCouponDialog.u(displayCouponDialog);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (displayCouponDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.home.dialog.DisplayCouponDialog")) {
                    jn.b.f34396a.fragmentOnStartMethod(displayCouponDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onViewCreated")
        @Keep
        public static void FragmentMethodWeaver_onViewCreated(@NonNull DisplayCouponDialog displayCouponDialog, @androidx.annotation.Nullable View view, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{displayCouponDialog, view, bundle}, null, changeQuickRedirect, true, 154734, new Class[]{DisplayCouponDialog.class, View.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                DisplayCouponDialog.w(displayCouponDialog, view, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (displayCouponDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.home.dialog.DisplayCouponDialog")) {
                    jn.b.f34396a.fragmentOnViewCreatedMethod(displayCouponDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }
    }

    /* compiled from: DisplayCouponDialog.kt */
    public static final class a {
        public static ChangeQuickRedirect changeQuickRedirect;

        public a(DefaultConstructorMarker defaultConstructorMarker) {
        }
    }

    /* compiled from: DisplayCouponDialog.kt */
    public static final class b extends s<Void> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final /* synthetic */ DisplayCouponDialog b;

        /* JADX WARN: Incorrect args count in method signature: ()V */
        public b(DisplayCouponDialog displayCouponDialog) {
            this.b = displayCouponDialog;
        }

        @Override // com.shizhuang.duapp.common.helper.net.facade.IViewHandler, td.s, td.a
        public void onBzError(@Nullable l<Void> lVar) {
            String c5;
            if (!PatchProxy.proxy(new Object[]{lVar}, this, changeQuickRedirect, false, 154740, new Class[]{l.class}, Void.TYPE).isSupported) {
                super.onBzError(lVar);
                if (lVar != null && (c5 = lVar.c()) != null) {
                    q.r(c5);
                }
            }
        }

        @Override // com.shizhuang.duapp.common.helper.net.facade.IViewHandler, td.a
        public void onSuccess(Object obj) {
            Void r92 = (Void) obj;
            if (!PatchProxy.proxy(new Object[]{r92}, this, changeQuickRedirect, false, 154739, new Class[]{Void.class}, Void.TYPE).isSupported) {
                super.onSuccess(r92);
                Function1<Integer, Unit> y = this.b.y();
                if (y != null) {
                    y.invoke(2);
                }
            }
        }
    }

    public static void s(DisplayCouponDialog displayCouponDialog, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, displayCouponDialog, changeQuickRedirect, false, 154706, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
            Bundle arguments = displayCouponDialog.getArguments();
            String str = null;
            displayCouponDialog.f15770h = arguments != null ? (DisplayCouponModel) arguments.getParcelable("displayData") : null;
            Bundle arguments2 = displayCouponDialog.getArguments();
            displayCouponDialog.i = arguments2 != null ? arguments2.getString("flag") : null;
            Bundle arguments3 = displayCouponDialog.getArguments();
            if (arguments3 != null) {
                str = arguments3.getString("loadUrl");
            }
            displayCouponDialog.j = str;
        }
    }

    public static void t(DisplayCouponDialog displayCouponDialog) {
        Integer receiveState;
        boolean z = false;
        if (!PatchProxy.proxy(new Object[0], displayCouponDialog, changeQuickRedirect, false, 154708, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
            t tVar = t.f33476a;
            DisplayCouponModel displayCouponModel = displayCouponDialog.f15770h;
            String valueOf = (displayCouponModel == null || (receiveState = displayCouponModel.getReceiveState()) == null) ? null : String.valueOf(receiveState.intValue());
            String str = ServiceManager.r().isLogged() ? "1" : "0";
            String str2 = displayCouponDialog.j;
            String str3 = displayCouponDialog.i;
            if (!PatchProxy.proxy(new Object[]{"惊喜优惠券二选一", "选我", valueOf, str, str2, str3}, tVar, t.changeQuickRedirect, false, 20764, new Class[]{String.class, String.class, String.class, String.class, String.class, String.class}, Void.TYPE).isSupported) {
                HashMap j12 = a01.a.j("current_page", "1117", "block_type", "2410");
                j12.put("content_title", "惊喜优惠券二选一");
                j12.put("button_title", "选我");
                if (valueOf != null) {
                    if (valueOf.length() > 0) {
                        j12.put("status", valueOf);
                    }
                }
                if (str.length() > 0) {
                    j12.put("is_login", str);
                }
                if (str2 != null) {
                    if (str2.length() > 0) {
                        j12.put("current_page_url", str2);
                    }
                }
                if (str3 != null) {
                    if (str3.length() > 0) {
                        z = true;
                    }
                    if (z) {
                        j12.put("flag", str3);
                    }
                }
                PoizonAnalyzeFactory.a().track("venue_pop_ups_exposure", j12);
            }
        }
    }

    public static void u(DisplayCouponDialog displayCouponDialog) {
        if (!PatchProxy.proxy(new Object[0], displayCouponDialog, changeQuickRedirect, false, 154724, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
        }
    }

    public static View v(DisplayCouponDialog displayCouponDialog, LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, displayCouponDialog, changeQuickRedirect, false, 154726, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
        return proxy.isSupported ? (View) proxy.result : super.onCreateView(layoutInflater, viewGroup, bundle);
    }

    public static void w(DisplayCouponDialog displayCouponDialog, View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, displayCouponDialog, changeQuickRedirect, false, 154728, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            super.onViewCreated(view, bundle);
        }
    }

    public View _$_findCachedViewById(int i3) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 154720, new Class[]{Integer.TYPE}, View.class);
        if (proxy.isSupported) {
            return (View) proxy.result;
        }
        if (this.n == null) {
            this.n = new HashMap();
        }
        View view = (View) this.n.get(Integer.valueOf(i3));
        if (view != null) {
            return view;
        }
        View view2 = getView();
        if (view2 == null) {
            return null;
        }
        View findViewById = view2.findViewById(i3);
        this.n.put(Integer.valueOf(i3), findViewById);
        return findViewById;
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment
    public void g() {
        Window window;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154711, new Class[0], Void.TYPE).isSupported) {
            super.g();
            Dialog dialog = getDialog();
            if (dialog != null && (window = dialog.getWindow()) != null) {
                WindowManager.LayoutParams attributes = window.getAttributes();
                attributes.dimAmount = 0.8f;
                window.setAttributes(attributes);
            }
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onCreate(Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 154705, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onCreate(this, bundle);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, this, changeQuickRedirect, false, 154725, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
        return proxy.isSupported ? (View) proxy.result : _boostWeave.FragmentMethodWeaver_onCreateView(this, layoutInflater, viewGroup, bundle);
    }

    @Override // androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onDestroyView() {
        HashMap hashMap;
        super.onDestroyView();
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154721, new Class[0], Void.TYPE).isSupported && (hashMap = this.n) != null) {
            hashMap.clear();
        }
    }

    @Override // androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onDetach() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154719, new Class[0], Void.TYPE).isSupported) {
            super.onDetach();
            Animation animation = this.f15769g;
            if (animation != null) {
                animation.cancel();
            }
            AnimatorSet animatorSet = this.f;
            if (animatorSet != null && animatorSet.isRunning()) {
                animatorSet.cancel();
            }
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onResume() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154707, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onResume(this);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onStart() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154723, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onStart(this);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onViewCreated(View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, this, changeQuickRedirect, false, 154727, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onViewCreated(this, view, bundle);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
    public int q() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154709, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.dialog_display_coupon;
    }

    @Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
    public void r(@Nullable View view) {
        List<CouponModel> coupons;
        List<CouponItemModel> items;
        List<CouponItemModel> items2;
        List<CouponItemModel> items3;
        CouponItemModel couponItemModel;
        Long amount;
        CouponItemModel couponItemModel2;
        Long amount2;
        int i3;
        Window window;
        if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 154710, new Class[]{View.class}, Void.TYPE).isSupported) {
            mn.a.f35714a.g(this.e).G(this).y();
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154712, new Class[0], Void.TYPE).isSupported) {
                Dialog dialog = getDialog();
                if (dialog != null) {
                    dialog.setCanceledOnTouchOutside(false);
                }
                Dialog dialog2 = getDialog();
                if (!(dialog2 == null || (window = dialog2.getWindow()) == null)) {
                    window.setWindowAnimations(R.style.Dialog_Fragment);
                }
            }
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154713, new Class[0], Void.TYPE).isSupported) {
                if (getContext() != null) {
                    ((RecyclerView) _$_findCachedViewById(R.id.rvCouponList)).setLayoutManager(new GridLayoutManager(getContext(), 2));
                    ((RecyclerView) _$_findCachedViewById(R.id.rvCouponList)).addItemDecoration(new GridSpacingItemDecoration(2, fi.b.b(12.0f), false));
                    ((RecyclerView) _$_findCachedViewById(R.id.rvCouponList)).setAdapter(x());
                }
                DisplayCouponModel displayCouponModel = this.f15770h;
                if (!(displayCouponModel == null || (coupons = displayCouponModel.getCoupons()) == null)) {
                    if (!PatchProxy.proxy(new Object[]{coupons}, this, changeQuickRedirect, false, 154715, new Class[]{List.class}, Void.TYPE).isSupported && 2 == coupons.size() && (((items = coupons.get(0).getItems()) == null || !items.isEmpty()) && !(((items2 = coupons.get(1).getItems()) != null && items2.isEmpty()) || (items3 = coupons.get(0).getItems()) == null || (couponItemModel = items3.get(0)) == null || (amount = couponItemModel.m74getAmount()) == null))) {
                        long longValue = amount.longValue();
                        List<CouponItemModel> items4 = coupons.get(1).getItems();
                        if (!(items4 == null || (couponItemModel2 = items4.get(0)) == null || (amount2 = couponItemModel2.m74getAmount()) == null || longValue == amount2.longValue())) {
                            String str = null;
                            if (i3 > 0) {
                                CouponModel couponModel = coupons.get(0);
                                DisplayCouponModel displayCouponModel2 = this.f15770h;
                                if (displayCouponModel2 != null) {
                                    str = displayCouponModel2.getTip();
                                }
                                couponModel.setTip(str);
                            } else {
                                CouponModel couponModel2 = coupons.get(1);
                                DisplayCouponModel displayCouponModel3 = this.f15770h;
                                if (displayCouponModel3 != null) {
                                    str = displayCouponModel3.getTip();
                                }
                                couponModel2.setTip(str);
                            }
                        }
                    }
                    x().setItems(coupons);
                }
                DisplayCouponAdapter x = x();
                DisplayCouponDialog$initRecycleview$3 displayCouponDialog$initRecycleview$3 = new DisplayCouponDialog$initRecycleview$3(this);
                if (!PatchProxy.proxy(new Object[]{displayCouponDialog$initRecycleview$3}, x, DisplayCouponAdapter.changeQuickRedirect, false, 154619, new Class[]{Function1.class}, Void.TYPE).isSupported) {
                    x.f15758a = displayCouponDialog$initRecycleview$3;
                }
            }
            ImageView imageView = (ImageView) _$_findCachedViewById(R.id.close_btn_two);
            if (imageView != null) {
                ViewExtensionKt.h(imageView, new DisplayCouponDialog$initView$1(this));
            }
        }
    }

    public final DisplayCouponAdapter x() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154704, new Class[0], DisplayCouponAdapter.class);
        return (DisplayCouponAdapter) (proxy.isSupported ? proxy.result : this.m.getValue());
    }

    /* JADX DEBUG: Type inference failed for r0v2. Raw type applied. Possible types: kotlin.jvm.functions.Function1<? super java.lang.Integer, kotlin.Unit>, kotlin.jvm.functions.Function1<java.lang.Integer, kotlin.Unit> */
    @Nullable
    public final Function1<Integer, Unit> y() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 154702, new Class[0], Function1.class);
        return proxy.isSupported ? (Function1) proxy.result : this.l;
    }

    public final void z(CouponModel couponModel) {
        if (!PatchProxy.proxy(new Object[]{couponModel}, this, changeQuickRedirect, false, 154714, new Class[]{CouponModel.class}, Void.TYPE).isSupported) {
            LinkedHashMap linkedHashMap = new LinkedHashMap();
            linkedHashMap.put("activityId", couponModel.getActivityId());
            linkedHashMap.put("flag", this.i);
            d.receiveDisplayCoupon(g.a(ParamsBuilder.newParams(linkedHashMap)), new b(this));
        }
    }
}