package com.tencent.mm.plugin.order.ui;

import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.order.c.c;
import com.tencent.mm.plugin.order.model.ProductSectionItem;
import com.tencent.mm.wallet_core.a;
import com.tencent.mm.wallet_core.ui.e;

class MallOrderDetailInfoUI$1 implements OnClickListener {
    final /* synthetic */ MallOrderDetailInfoUI pdR;

    MallOrderDetailInfoUI$1(MallOrderDetailInfoUI mallOrderDetailInfoUI) {
        this.pdR = mallOrderDetailInfoUI;
    }

    public final void onClick(View view) {
        AppMethodBeat.i(43798);
        if (view.getId() == 2131825812) {
            if (this.pdR.pcS.pbJ != null) {
                c.aM(this.pdR, this.pdR.pcS.pbJ.mZj);
                MallOrderDetailInfoUI.a(this.pdR, this.pdR.pcS.pbJ.pbR);
                AppMethodBeat.o(43798);
                return;
            }
        } else if (view.getId() == 2131825814 || view.getId() == 2131825816) {
            if (this.pdR.pcS.pbK != null && this.pdR.pcS.pbK.size() > 0) {
                boolean z;
                if (TextUtils.isEmpty(((ProductSectionItem) this.pdR.pcS.pbK.get(0)).jumpUrl)) {
                    z = false;
                } else {
                    z = c.aM(this.pdR, ((ProductSectionItem) this.pdR.pcS.pbK.get(0)).jumpUrl);
                }
                if (!z) {
                    c.aN(this.pdR, ((ProductSectionItem) this.pdR.pcS.pbK.get(0)).pdA);
                }
                MallOrderDetailInfoUI.a(this.pdR, ((ProductSectionItem) this.pdR.pcS.pbK.get(0)).name);
                AppMethodBeat.o(43798);
                return;
            }
        } else if (view.getId() == 2131825815) {
            Bundle bundle = this.pdR.mBundle;
            bundle.putParcelableArrayList("order_product_list", this.pdR.pcS.pbK);
            bundle.putInt("key_enter_id", 0);
            bundle.putString("key_trans_id", MallOrderDetailInfoUI.a(this.pdR));
            bundle.putString("appname", this.pdR.pcS.cBb);
            a.j(this.pdR, new Bundle());
            MallOrderDetailInfoUI.a(this.pdR, this.pdR.getResources().getString(2131301341));
            AppMethodBeat.o(43798);
            return;
        } else if (view.getId() == 2131825817) {
            String string = this.pdR.mBundle.getString("key_trans_id");
            Bundle bundle2 = this.pdR.mBundle;
            bundle2.putString("key_trans_id", string);
            bundle2.putInt("key_enter_id", 1);
            if (this.pdR.pcS != null) {
                bundle2.putParcelable("transaction_data", this.pdR.pcS.pbI);
            }
            a.j(this.pdR, bundle2);
            MallOrderDetailInfoUI.a(this.pdR, this.pdR.getResources().getString(2131301338));
            AppMethodBeat.o(43798);
            return;
        } else if (view.getId() == 2131825831) {
            MallOrderDetailInfoUI.b(this.pdR);
            AppMethodBeat.o(43798);
            return;
        } else if (view.getId() == 2131825822) {
            if (!(this.pdR.pcS == null || this.pdR.pcS.pbP == null)) {
                this.pdR.pdC = this.pdR.pcS.pbP;
                MallOrderDetailInfoUI.c(this.pdR);
                MallOrderDetailInfoUI.a(this.pdR, this.pdR.getResources().getString(2131301336));
                AppMethodBeat.o(43798);
                return;
            }
        } else if (view.getId() == 2131825824) {
            e.af(this.pdR, this.pdR.pcS.cBb);
            MallOrderDetailInfoUI.a(this.pdR, this.pdR.getResources().getString(2131301347));
        }
        AppMethodBeat.o(43798);
    }
}
