得物.apk(点击下载) / ExchangePayFeeInfoView$onChanged$3.java


package com.shizhuang.duapp.modules.aftersale.exchange.view;

import a.f;
import android.app.Activity;
import androidx.fragment.app.FragmentActivity;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.shizhuang.duapp.modules.aftersale.exchange.model.ExchangeOrderInfoModel;
import com.shizhuang.duapp.modules.du_mall_common.extension.ViewExtensionKt;
import com.shizhuang.duapp.modules.orderlist.model.OrderPayModel;
import i60.a;
import iy.i;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Lambda;

@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: ExchangePayFeeInfoView.kt */
public final class ExchangePayFeeInfoView$onChanged$3 extends Lambda implements Function0<Unit> {
    public static ChangeQuickRedirect changeQuickRedirect;
    public final /* synthetic */ ExchangeOrderInfoModel $model;
    public final /* synthetic */ ExchangePayFeeInfoView this$0;

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public ExchangePayFeeInfoView$onChanged$3(ExchangePayFeeInfoView exchangePayFeeInfoView, ExchangeOrderInfoModel exchangeOrderInfoModel) {
        super(0);
        this.this$0 = exchangePayFeeInfoView;
        this.$model = exchangeOrderInfoModel;
    }

    @Override // kotlin.jvm.functions.Function0
    public final void invoke() {
        String str;
        String str2;
        String str3;
        String valueOf;
        String valueOf2;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 60833, new Class[0], Void.TYPE).isSupported) {
            a aVar = a.f33292a;
            String subOrderNo = this.$model.getSubOrderNo();
            if (subOrderNo == null) {
                subOrderNo = "";
            }
            String subOrderNo2 = this.this$0.getEdViewModel().getSubOrderNo();
            if (subOrderNo2 == null) {
                subOrderNo2 = "";
            }
            String payNowButtonCopywriting = this.$model.getPayNowButtonCopywriting();
            if (payNowButtonCopywriting == null) {
                payNowButtonCopywriting = "";
            }
            String refundNo = this.$model.getRefundNo();
            if (refundNo == null) {
                refundNo = "";
            }
            aVar.c1(subOrderNo, subOrderNo2, payNowButtonCopywriting, refundNo);
            i iVar = new i();
            iVar.b(new Function0<Unit>(this) {
                /* class com.shizhuang.duapp.modules.aftersale.exchange.view.ExchangePayFeeInfoView$onChanged$3.AnonymousClass1 */
                public static ChangeQuickRedirect changeQuickRedirect;
                public final /* synthetic */ ExchangePayFeeInfoView$onChanged$3 this$0;

                {
                    this.this$0 = r1;
                }

                @Override // kotlin.jvm.functions.Function0
                public final void invoke() {
                    Activity h12;
                    if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 60834, new Class[0], Void.TYPE).isSupported && (h12 = ViewExtensionKt.h(this.this$0.this$0)) != null) {
                        h12.finish();
                    }
                }
            });
            Activity h12 = ViewExtensionKt.h(this.this$0);
            if (h12 != null) {
                FragmentActivity fragmentActivity = (FragmentActivity) h12;
                String subOrderNo3 = this.$model.getSubOrderNo();
                if (subOrderNo3 != null) {
                    str = subOrderNo3;
                } else {
                    str = "";
                }
                Long spuId = this.$model.getSpuId();
                if (spuId == null || (valueOf2 = String.valueOf(spuId.longValue())) == null) {
                    str2 = "";
                } else {
                    str2 = valueOf2;
                }
                Long skuId = this.$model.getSkuId();
                if (skuId == null || (valueOf = String.valueOf(skuId.longValue())) == null) {
                    str3 = "";
                } else {
                    str3 = valueOf;
                }
                StringBuilder h13 = f.h("https://m.poizon.com/router/order/ExchangeDetailPage?refundNo=");
                h13.append(this.$model.getRefundNo());
                h13.append("&paySuccess=false");
                String sb2 = h13.toString();
                StringBuilder h14 = f.h("https://m.poizon.com/router/order/ExchangeDetailPage?refundNo=");
                h14.append(this.$model.getRefundNo());
                h14.append("&paySuccess=true");
                iVar.a(fragmentActivity, new OrderPayModel(str, str2, str3, 3, h14.toString(), sb2), null);
            }
        }
    }
}