得物.apk(点击下载) / CardListPanel$initView$3.java


package com.shizhuang.duapp.libs.arscan.ui.arscan;

import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.shizhuang.duapp.libs.arscan.models.GiftCardModel;
import com.shizhuang.duapp.libs.arscan.ui.ArScanReporter;
import com.shizhuang.duapp.libs.arscan.ui.arscan.CardListPanel;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Lambda;
import u91.e;

@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 4, 2})
/* compiled from: CardListPanel.kt */
public final class CardListPanel$initView$3 extends Lambda implements Function0<Unit> {
    public static ChangeQuickRedirect changeQuickRedirect;
    public final /* synthetic */ ViewGroup $parent;
    public final /* synthetic */ CardListPanel this$0;

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public CardListPanel$initView$3(CardListPanel cardListPanel, ViewGroup viewGroup) {
        super(0);
        this.this$0 = cardListPanel;
        this.$parent = viewGroup;
    }

    @Override // kotlin.jvm.functions.Function0
    public final void invoke() {
        TextView textView;
        GiftCardModel giftCardModel;
        int i;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 20369, new Class[0], Void.TYPE).isSupported && (textView = this.this$0.d) != null && textView.isSelected()) {
            RelativeLayout relativeLayout = this.this$0.j;
            if (relativeLayout != null && relativeLayout.getVisibility() == 0) {
                TextView textView2 = this.this$0.f8573h;
                if (textView2 == null || !textView2.isSelected()) {
                    ArScanReporter.f8559a.a("去定制", "我送出的");
                } else {
                    ArScanReporter.f8559a.a("去定制", "我收到的");
                }
                e.S(this.$parent.getContext(), "https://cdn-fast.dewu.com/nezha-plus/detail/629eb817bb7ae9ea9296e9d6");
                return;
            }
            TextView textView3 = this.this$0.f8573h;
            if (textView3 == null || !textView3.isSelected()) {
                ArScanReporter.f8559a.a("打开看看", "我送出的");
            } else {
                ArScanReporter.f8559a.a("打开看看", "我收到的");
            }
            CardListPanel.CardListAdapter b = this.this$0.b();
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], b, CardListPanel.CardListAdapter.changeQuickRedirect, false, 20364, new Class[0], GiftCardModel.class);
            if (proxy.isSupported) {
                giftCardModel = (GiftCardModel) proxy.result;
            } else {
                giftCardModel = (b.f8579c < 0 || b.f8578a.size() <= (i = b.f8579c)) ? null : b.f8578a.get(i);
            }
            this.this$0.a();
            Function1<? super GiftCardModel, Unit> function1 = this.this$0.f;
            if (function1 != null) {
                function1.invoke(giftCardModel);
            }
        }
    }
}