得物.apk(点击下载) / BiddingActivityV4.java
package com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.activity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.content.ContextCompat;
import androidx.core.view.accessibility.AccessibilityEventCompat;
import androidx.lifecycle.ViewModelLazy;
import cd.f;
import cd.h;
import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
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.meizu.cloud.pushsdk.constants.PushConstants;
import com.shizhuang.duapp.R;
import com.shizhuang.duapp.common.base.inter.IViewController;
import com.shizhuang.duapp.common.dialog.commondialog.CommonDialog;
import com.shizhuang.duapp.common.dialog.commondialog.IDialog;
import com.shizhuang.duapp.common.extension.ViewExtensionKt;
import com.shizhuang.duapp.common.ui.BaseLeftBackActivity;
import com.shizhuang.duapp.common.ui.view.ProductImageLoaderView;
import com.shizhuang.duapp.common.utils.StringUtils;
import com.shizhuang.duapp.common.widget.font.FontEditText;
import com.shizhuang.duapp.common.widget.font.FontText;
import com.shizhuang.duapp.common.widget.font.IconFontTextView;
import com.shizhuang.duapp.framework.util.ui.KeyBordStateUtil;
import com.shizhuang.duapp.libs.bpm.BM;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.modules.du_mall_common.guide.helper.GuideViewHelper;
import com.shizhuang.duapp.modules.du_mall_common.model.PaymentSettingModel;
import com.shizhuang.duapp.modules.du_mall_common.noback.model.AccessoriesTipModel;
import com.shizhuang.duapp.modules.du_mall_common.noback.model.BidWhInvDTOModel;
import com.shizhuang.duapp.modules.du_mall_common.noback.model.BidWhInvDetailsItemModel;
import com.shizhuang.duapp.modules.du_mall_common.noback.model.ConfirmDtoModel;
import com.shizhuang.duapp.modules.du_mall_common.noback.model.DepositRuleDtoModel;
import com.shizhuang.duapp.modules.du_mall_common.noback.model.PoundageExpenseShowDetailDtoModel;
import com.shizhuang.duapp.modules.du_mall_common.noback.model.PoundagePreferentialModel;
import com.shizhuang.duapp.modules.du_mall_common.noback.model.PriceDtoModel;
import com.shizhuang.duapp.modules.du_mall_common.noback.model.PriceLimitModel;
import com.shizhuang.duapp.modules.du_mall_common.noback.model.ProductAfterSalesModel;
import com.shizhuang.duapp.modules.du_mall_common.noback.model.SkuInfoDtoModel;
import com.shizhuang.duapp.modules.du_mall_common.noback.model.SkuPriceDtoModel;
import com.shizhuang.duapp.modules.du_mall_common.noback.model.TipsDetailModel;
import com.shizhuang.duapp.modules.du_mall_common.noback.model.TopTipModel;
import com.shizhuang.duapp.modules.du_mall_common.widget.DuIconsTextView;
import com.shizhuang.duapp.modules.du_mall_common.widget.scrollview.ScrollStateView;
import com.shizhuang.duapp.modules.du_seller_bid.http.SellerBidFacade;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.model.BidConfirmRequestModel;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.model.BidProtocolSelectModel;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.model.BidSubmitRequestModel;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.model.BidWhInvReqsModel;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.model.BiddingBestCouponModel;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.AccessoryTipView;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.BidProtocolControlView;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderApplyDepositView;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidAfterSalesView;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidGuidePriceView;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidInputPriceView;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidInputPriceView$renderView$1;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidPredictBottomGetFeeView;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidPredictGetFeeView;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidPredictGetFeeView$renderView$1;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidPredictIncomeBottomTipView;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidPriceHintView;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidPriceTitleView;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidPriceTitleView$renderView$1;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidPriceTitleView$renderView$2;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidProductInfoViewV2;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidProductInfoViewV2$renderView$$inlined$run$lambda$1;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidQuantityInfoViewV2;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidQuantityInfoViewV2$renderView$1;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidTipInfoView;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.OrderBidTipInfoView$renderView$1;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.TopTipView;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.view.TopTipView$renderView$1;
import com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.viewmodel.BiddingViewModel;
import com.shizhuang.duapp.modules.du_seller_bid.widget.BiddingNumSelectViewV2;
import com.shizhuang.duapp.modules.pay.R$styleable;
import com.shizhuang.duapp.modules.router.ServiceManager;
import df.r0;
import j60.z;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import kotlin.Lazy;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.TuplesKt;
import kotlin.Unit;
import kotlin.collections.CollectionsKt__CollectionsJVMKt;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.collections.MapsKt__MapsKt;
import kotlin.jvm.JvmField;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.random.RandomKt;
import m60.i;
import org.jetbrains.annotations.Nullable;
import rd.l;
import s70.j;
import s70.k;
import s70.m;
import td.r;
import td.s;
import uc0.e;
@Route(path = "/order/bid/biddingV4")
@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/shizhuang/duapp/modules/du_seller_bid/modules/deposit_bid/activity/BiddingActivityV4;", "Lcom/shizhuang/duapp/common/ui/BaseLeftBackActivity;", "<init>", "()V", "du_seller_bid_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: BiddingActivityV4.kt */
public final class BiddingActivityV4 extends BaseLeftBackActivity {
public static ChangeQuickRedirect changeQuickRedirect;
/* renamed from: c reason: collision with root package name */
public boolean f14023c = true;
@Autowired(name = "biddingType")
@JvmField
public int d;
@Autowired(name = "sellerBiddingNo")
@JvmField
@Nullable
public String e;
@Autowired(name = "skuId")
@JvmField
public long f;
@Autowired(name = "price")
@JvmField
/* renamed from: g reason: collision with root package name */
public long f14024g;
@Autowired(name = "buyerBiddingNo")
@JvmField
@Nullable
/* renamed from: h reason: collision with root package name */
public String f14025h;
@Autowired(name = "stockNo")
@JvmField
@Nullable
public String i;
@Autowired(name = "billNo")
@JvmField
@Nullable
public String j;
@Autowired(name = "billNoList")
@JvmField
@Nullable
public ArrayList<String> k;
@Autowired(name = "enterType")
@JvmField
public int l;
@Autowired(name = "source")
@JvmField
@Nullable
public String m = "";
@Autowired(name = "from")
@JvmField
public int n = 1;
@Autowired(name = "tipsList")
@JvmField
@Nullable
public ArrayList<String> o;
@Autowired(name = "fromQuickSale")
@JvmField
public boolean p;
@Autowired(name = "temporaryDisable")
@JvmField
/* renamed from: q reason: collision with root package name */
public boolean f14026q;
public ConfirmDtoModel r;
public Boolean s;
public final Lazy t = new ViewModelLazy(Reflection.getOrCreateKotlinClass(BiddingViewModel.class), new BiddingActivityV4$$special$$inlined$viewModels$2(this), new BiddingActivityV4$$special$$inlined$viewModels$1(this));
/* renamed from: u reason: collision with root package name */
public i f14027u;
/* renamed from: v reason: collision with root package name */
public final Lazy f14028v = LazyKt__LazyJVMKt.lazy(new BiddingActivityV4$priceGuideHitManager$2(this));
public HashMap w;
public class _boostWeave {
public static ChangeQuickRedirect changeQuickRedirect;
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onCreate")
@Keep
public static void ActivityMethodWeaver_onCreate(@androidx.annotation.Nullable BiddingActivityV4 biddingActivityV4, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{biddingActivityV4, bundle}, null, changeQuickRedirect, true, 130769, new Class[]{BiddingActivityV4.class, Bundle.class}, Void.TYPE).isSupported) {
jn.b bVar = jn.b.f34396a;
if (!bVar.b()) {
bVar.d(true);
}
long currentTimeMillis = System.currentTimeMillis();
BiddingActivityV4.e(biddingActivityV4, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (biddingActivityV4.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.activity.BiddingActivityV4")) {
bVar.activityOnCreateMethod(biddingActivityV4, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onResume")
@Keep
public static void ActivityMethodWeaver_onResume(BiddingActivityV4 biddingActivityV4) {
if (!PatchProxy.proxy(new Object[]{biddingActivityV4}, null, changeQuickRedirect, true, 130768, new Class[]{BiddingActivityV4.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
BiddingActivityV4.d(biddingActivityV4);
long currentTimeMillis2 = System.currentTimeMillis();
if (biddingActivityV4.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.activity.BiddingActivityV4")) {
jn.b.f34396a.activityOnResumeMethod(biddingActivityV4, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onStart")
@Keep
public static void ActivityMethodWeaver_onStart(BiddingActivityV4 biddingActivityV4) {
if (!PatchProxy.proxy(new Object[]{biddingActivityV4}, null, changeQuickRedirect, true, 130770, new Class[]{BiddingActivityV4.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
BiddingActivityV4.f(biddingActivityV4);
long currentTimeMillis2 = System.currentTimeMillis();
if (biddingActivityV4.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.du_seller_bid.modules.deposit_bid.activity.BiddingActivityV4")) {
jn.b.f34396a.activityOnStartMethod(biddingActivityV4, currentTimeMillis, currentTimeMillis2);
}
}
}
}
/* compiled from: BiddingActivityV4.kt */
public static final class a extends s<BiddingBestCouponModel> {
public static ChangeQuickRedirect changeQuickRedirect;
public final /* synthetic */ BiddingActivityV4 b;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public a(BiddingActivityV4 biddingActivityV4, Context context) {
super(context);
this.b = biddingActivityV4;
}
@Override // com.shizhuang.duapp.common.helper.net.facade.IViewHandler, td.s, td.a
public void onBzError(@Nullable l<BiddingBestCouponModel> lVar) {
if (!PatchProxy.proxy(new Object[]{lVar}, this, changeQuickRedirect, false, 130784, new Class[]{l.class}, Void.TYPE).isSupported) {
super.onBzError(lVar);
this.b.k().getBestCoupon().setValue(null);
}
}
@Override // com.shizhuang.duapp.common.helper.net.facade.IViewHandler, td.a
public void onSuccess(Object obj) {
BiddingBestCouponModel biddingBestCouponModel = (BiddingBestCouponModel) obj;
if (!PatchProxy.proxy(new Object[]{biddingBestCouponModel}, this, changeQuickRedirect, false, 130783, new Class[]{BiddingBestCouponModel.class}, Void.TYPE).isSupported) {
super.onSuccess(biddingBestCouponModel);
this.b.k().getBestCoupon().setValue(biddingBestCouponModel);
}
}
}
/* compiled from: BiddingActivityV4.kt */
public static final class b extends r<ConfirmDtoModel> {
public static ChangeQuickRedirect changeQuickRedirect;
public final /* synthetic */ BiddingActivityV4 b;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public b(BiddingActivityV4 biddingActivityV4, boolean z, IViewController iViewController, boolean z4) {
super(iViewController, z4);
this.b = biddingActivityV4;
}
@Override // td.r, com.shizhuang.duapp.common.helper.net.facade.IViewHandler, td.s, td.a
public void onBzError(@Nullable l<ConfirmDtoModel> lVar) {
if (!PatchProxy.proxy(new Object[]{lVar}, this, changeQuickRedirect, false, 130804, new Class[]{l.class}, Void.TYPE).isSupported) {
super.onBzError(lVar);
((OrderBidInputPriceView) this.b._$_findCachedViewById(R.id.priceInputView)).b();
BM.b j = BM.mall().j("network");
Pair[] pairArr = new Pair[3];
pairArr[0] = TuplesKt.to(PushConstants.WEB_URL, "/api/v1/app/newbidding/seller/confirm");
String str = null;
pairArr[1] = TuplesKt.to("errorCode", String.valueOf(lVar != null ? Integer.valueOf(lVar.a()) : null));
if (lVar != null) {
str = lVar.c();
}
pairArr[2] = TuplesKt.to("errorMsg", String.valueOf(str));
j.c("mall_merchant_http_error", MapsKt__MapsKt.mapOf(pairArr));
}
}
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
/* JADX WARNING: Removed duplicated region for block: B:169:0x0567 */
/* JADX WARNING: Removed duplicated region for block: B:170:0x056b */
/* JADX WARNING: Removed duplicated region for block: B:188:0x0619 */
/* JADX WARNING: Removed duplicated region for block: B:201:0x0679 */
/* JADX WARNING: Removed duplicated region for block: B:202:0x067e */
/* JADX WARNING: Removed duplicated region for block: B:205:0x0692 */
/* JADX WARNING: Removed duplicated region for block: B:206:0x0699 */
/* JADX WARNING: Removed duplicated region for block: B:209:0x06a3 */
/* JADX WARNING: Removed duplicated region for block: B:210:0x06aa */
/* JADX WARNING: Removed duplicated region for block: B:213:0x0701 */
/* JADX WARNING: Removed duplicated region for block: B:243:0x0805 */
/* JADX WARNING: Removed duplicated region for block: B:246:0x0851 */
/* JADX WARNING: Removed duplicated region for block: B:249:0x08d1 */
/* JADX WARNING: Removed duplicated region for block: B:250:0x08d6 */
/* JADX WARNING: Removed duplicated region for block: B:274:0x096f */
/* JADX WARNING: Removed duplicated region for block: B:277:0x09ac */
/* JADX WARNING: Removed duplicated region for block: B:295:0x0a42 */
/* JADX WARNING: Removed duplicated region for block: B:296:0x0a44 */
/* JADX WARNING: Removed duplicated region for block: B:298:0x0a47 */
/* JADX WARNING: Removed duplicated region for block: B:299:0x0a49 */
/* JADX WARNING: Removed duplicated region for block: B:302:0x0a54 */
/* JADX WARNING: Removed duplicated region for block: B:307:0x0ab6 */
/* JADX WARNING: Removed duplicated region for block: B:308:0x0abb */
/* JADX WARNING: Removed duplicated region for block: B:311:0x0ac6 */
/* JADX WARNING: Removed duplicated region for block: B:314:0x0af9 */
/* JADX WARNING: Removed duplicated region for block: B:319:0x0b46 */
/* JADX WARNING: Removed duplicated region for block: B:322:0x0b73 */
/* JADX WARNING: Removed duplicated region for block: B:332:0x0b9c */
@Override // td.r, com.shizhuang.duapp.common.helper.net.facade.IViewHandler, td.a
public void onSuccess(ConfirmDtoModel confirmDtoModel) {
OrderBidQuantityInfoViewV2 orderBidQuantityInfoViewV2;
BidWhInvDTOModel bidWhInvDTO;
Integer remainQuantity;
Boolean canBatchBidding;
int i;
OrderBidPriceTitleView orderBidPriceTitleView;
Object[] objArr;
ChangeQuickRedirect changeQuickRedirect2;
Class[] clsArr;
OrderBidInputPriceView orderBidInputPriceView;
Object[] objArr2;
ChangeQuickRedirect changeQuickRedirect3;
Class cls;
Class cls2;
OrderBidPriceHintView orderBidPriceHintView;
OrderBidGuidePriceView orderBidGuidePriceView;
OrderBidPredictGetFeeView orderBidPredictGetFeeView;
Object[] objArr3;
ChangeQuickRedirect changeQuickRedirect4;
Class cls3;
int i3;
OrderApplyDepositView orderApplyDepositView;
Object[] objArr4;
ChangeQuickRedirect changeQuickRedirect5;
Class[] clsArr2;
OrderBidAfterSalesView orderBidAfterSalesView;
ProductAfterSalesModel productAfterSales;
String sellerBiddingNo;
List<TipsDetailModel> bottomTips;
OrderBidPredictIncomeBottomTipView orderBidPredictIncomeBottomTipView;
DepositRuleDtoModel depositRuleDto;
long longValue;
String totalIncomeTitle;
String str;
OrderBidPredictBottomGetFeeView orderBidPredictBottomGetFeeView;
int i12;
String totalIncomeTitle2;
String str2;
String str3;
CharSequence text;
String str4;
String str5;
SkuPriceDtoModel skuPriceDto;
SkuInfoDtoModel skuDto;
SkuPriceDtoModel skuPriceDto2;
SkuInfoDtoModel skuDto2;
View view;
List<PriceDtoModel> list;
GuideViewHelper guideViewHelper;
View view2;
ConfirmDtoModel confirmDtoModel2 = confirmDtoModel;
int i13 = 1;
if (!PatchProxy.proxy(new Object[]{confirmDtoModel2}, this, changeQuickRedirect, false, 130803, new Class[]{ConfirmDtoModel.class}, Void.TYPE).isSupported) {
super.onSuccess(confirmDtoModel2);
if (confirmDtoModel2 != null) {
BiddingActivityV4 biddingActivityV4 = this.b;
if (!PatchProxy.proxy(new Object[]{confirmDtoModel2}, biddingActivityV4, BiddingActivityV4.changeQuickRedirect, false, 130730, new Class[]{ConfirmDtoModel.class}, Void.TYPE).isSupported) {
biddingActivityV4.k().setBiddingConfirmDtoModel(confirmDtoModel2);
if (!(confirmDtoModel2.getSellerBiddingNo() == null || confirmDtoModel2.getAfterSalesChgDesc() == null)) {
String afterSalesChgDesc = confirmDtoModel2.getAfterSalesChgDesc();
String sellerBiddingNo2 = confirmDtoModel2.getSellerBiddingNo();
if (sellerBiddingNo2 == null) {
sellerBiddingNo2 = "";
}
if (!PatchProxy.proxy(new Object[]{afterSalesChgDesc, sellerBiddingNo2}, biddingActivityV4, BiddingActivityV4.changeQuickRedirect, false, 130732, new Class[]{String.class, String.class}, Void.TYPE).isSupported) {
new CommonDialog.a(biddingActivityV4.getContext()).u("“售后无忧”服务变更").f(8388611).e(afterSalesChgDesc).d(false).q("我知道了", new j(biddingActivityV4, sellerBiddingNo2)).x();
}
}
ImageView imageView = (ImageView) biddingActivityV4._$_findCachedViewById(R.id.ivCustomer);
String consultLink = confirmDtoModel2.getConsultLink();
imageView.setVisibility((consultLink == null || consultLink.length() == 0) ^ true ? 0 : 8);
if (((ImageView) biddingActivityV4._$_findCachedViewById(R.id.ivCustomer)).getVisibility() == 0) {
biddingActivityV4.i();
}
ViewExtensionKt.j((ImageView) biddingActivityV4._$_findCachedViewById(R.id.ivCustomer), 0, new BiddingActivityV4$renderView$1(biddingActivityV4, confirmDtoModel2), 1);
TopTipView topTipView = (TopTipView) biddingActivityV4._$_findCachedViewById(R.id.topTopView);
TopTipModel topTips = confirmDtoModel2.getTopTips();
if (!PatchProxy.proxy(new Object[]{topTips}, topTipView, TopTipView.changeQuickRedirect, false, 131572, new Class[]{TopTipModel.class}, Void.TYPE).isSupported) {
topTipView.setVisibility(topTips != null ? 0 : 8);
if (topTips != null) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer((int) R.id.tvTitle)}, topTipView, TopTipView.changeQuickRedirect, false, 131573, new Class[]{Integer.TYPE}, View.class);
if (proxy.isSupported) {
view2 = (View) proxy.result;
} else {
if (topTipView.f14074c == null) {
topTipView.f14074c = new HashMap();
}
view2 = (View) topTipView.f14074c.get(Integer.valueOf((int) R.id.tvTitle));
if (view2 == null) {
view2 = topTipView.findViewById(R.id.tvTitle);
topTipView.f14074c.put(Integer.valueOf((int) R.id.tvTitle), view2);
}
}
((TextView) view2).setText(topTips.getTitle());
ViewExtensionKt.h(topTipView, new TopTipView$renderView$1(topTipView, topTips));
}
}
ArrayList<String> arrayList = biddingActivityV4.o;
if (!PatchProxy.proxy(new Object[]{arrayList}, biddingActivityV4, BiddingActivityV4.changeQuickRedirect, false, 130757, new Class[]{List.class}, Void.TYPE).isSupported) {
if (!(arrayList == null || arrayList.isEmpty())) {
Window window = biddingActivityV4.getWindow();
View decorView = window != null ? window.getDecorView() : null;
if (!(decorView instanceof ViewGroup)) {
decorView = null;
}
ViewGroup viewGroup = (ViewGroup) decorView;
if (viewGroup != null) {
GuideViewHelper guideViewHelper2 = new GuideViewHelper(viewGroup, null, null, 6);
float f = (float) 10;
guideViewHelper2.l(fi.b.b(f), 0, fi.b.b(f), 0);
int i14 = 0;
for (T t : arrayList) {
int i15 = i14 + 1;
if (i14 < 0) {
CollectionsKt__CollectionsKt.throwIndexOverflow();
}
T t4 = t;
if (i14 == 0) {
guideViewHelper = guideViewHelper2;
GuideViewHelper.c(guideViewHelper, (OrderBidInputPriceView) biddingActivityV4._$_findCachedViewById(R.id.priceInputView), t4, "下一步", false, 0, null, 56);
} else if (i14 != 1) {
guideViewHelper = guideViewHelper2;
} else {
guideViewHelper = guideViewHelper2;
GuideViewHelper.c(guideViewHelper2, (LinearLayout) biddingActivityV4._$_findCachedViewById(R.id.bottom_layout), t4, "知道了", false, 0, null, 56);
}
i14 = i15;
guideViewHelper2 = guideViewHelper;
}
guideViewHelper2.e().d(R$styleable.AppCompatTheme_windowFixedWidthMajor).k(new BiddingActivityV4$showSellerLayer$2(biddingActivityV4)).m();
}
}
}
OrderBidProductInfoViewV2 orderBidProductInfoViewV2 = (OrderBidProductInfoViewV2) biddingActivityV4._$_findCachedViewById(R.id.pdInfoView);
SkuPriceDtoModel skuPriceDto3 = confirmDtoModel2.getSkuPriceDto();
if (!PatchProxy.proxy(new Object[]{skuPriceDto3}, orderBidProductInfoViewV2, OrderBidProductInfoViewV2.changeQuickRedirect, false, 131507, new Class[]{SkuPriceDtoModel.class}, Void.TYPE).isSupported) {
com.shizhuang.duapp.modules.du_mall_common.extension.ViewExtensionKt.k(orderBidProductInfoViewV2);
if (skuPriceDto3 != null) {
com.shizhuang.duapp.modules.du_mall_common.extension.ViewExtensionKt.o(orderBidProductInfoViewV2);
SkuInfoDtoModel skuDto3 = skuPriceDto3.getSkuDto();
if (skuDto3 != null) {
String skuPic = skuDto3.getSkuPic();
if (skuPic != null) {
((ProductImageLoaderView) orderBidProductInfoViewV2.a(R.id.ivCover)).setOnClickListener(new OrderBidProductInfoViewV2$renderView$$inlined$run$lambda$1(skuPic, skuDto3, orderBidProductInfoViewV2));
((ProductImageLoaderView) orderBidProductInfoViewV2.a(R.id.ivCover)).i(skuPic).x();
}
TextView textView = (TextView) orderBidProductInfoViewV2.a(R.id.tvProper);
StringBuilder sb2 = new StringBuilder();
String spuTitle = skuDto3.getSpuTitle();
if (spuTitle == null) {
spuTitle = "";
}
sb2.append(spuTitle);
String skuProp = skuDto3.getSkuProp();
if (skuProp == null) {
skuProp = "";
}
sb2.append(skuProp);
textView.setText(sb2.toString());
TextView textView2 = (TextView) orderBidProductInfoViewV2.a(R.id.tvUnconventionalSize);
String sizeMarkingText = skuDto3.getSizeMarkingText();
textView2.setVisibility((sizeMarkingText == null || sizeMarkingText.length() == 0) ^ true ? 0 : 8);
((TextView) orderBidProductInfoViewV2.a(R.id.tvUnconventionalSize)).setText(skuDto3.getSizeMarkingText());
}
List<PriceDtoModel> skuPriceList = skuPriceDto3.getSkuPriceList();
if (skuPriceList != null) {
int i16 = 0;
for (T t12 : skuPriceList) {
if (i16 == 0) {
if (t12.getTitle() != null) {
((TextView) orderBidProductInfoViewV2.a(R.id.tv_min_price_desc)).setText(t12.getTitle());
}
list = skuPriceList;
if (t12.getPrice() <= 0) {
((FontText) orderBidProductInfoViewV2.a(R.id.tvMinPrice)).setText("--");
} else {
((FontText) orderBidProductInfoViewV2.a(R.id.tvMinPrice)).setText(String.valueOf(t12.getPrice() / ((long) 100)));
}
} else {
list = skuPriceList;
}
if (i16 == i13) {
if (t12.getTitle() != null) {
((TextView) orderBidProductInfoViewV2.a(R.id.tv_max_price_desc)).setText(t12.getTitle());
}
if (t12.getPrice() <= 0) {
((FontText) orderBidProductInfoViewV2.a(R.id.tvMaxPrice)).setText("--");
} else {
((FontText) orderBidProductInfoViewV2.a(R.id.tvMaxPrice)).setText(String.valueOf(t12.getPrice() / ((long) 100)));
}
}
i16++;
skuPriceList = list;
i13 = 1;
}
if (skuPriceList.isEmpty()) {
((ConstraintLayout) orderBidProductInfoViewV2.a(R.id.clMinPrice)).setVisibility(8);
((ConstraintLayout) orderBidProductInfoViewV2.a(R.id.clMaxPrice)).setVisibility(8);
orderBidProductInfoViewV2.a(R.id.viewLine).setVisibility(8);
} else if (skuPriceList.size() == 1) {
((ConstraintLayout) orderBidProductInfoViewV2.a(R.id.clMinPrice)).setVisibility(0);
((ConstraintLayout) orderBidProductInfoViewV2.a(R.id.clMaxPrice)).setVisibility(8);
orderBidProductInfoViewV2.a(R.id.viewLine).setVisibility(8);
} else if (skuPriceList.size() == 2) {
((ConstraintLayout) orderBidProductInfoViewV2.a(R.id.clMinPrice)).setVisibility(0);
((ConstraintLayout) orderBidProductInfoViewV2.a(R.id.clMaxPrice)).setVisibility(0);
orderBidProductInfoViewV2.a(R.id.viewLine).setVisibility(0);
}
}
}
}
AccessoryTipView accessoryTipView = (AccessoryTipView) biddingActivityV4._$_findCachedViewById(R.id.accessoryTipView);
AccessoriesTipModel accessoriesTips = confirmDtoModel2.getAccessoriesTips();
if (!PatchProxy.proxy(new Object[]{accessoriesTips}, accessoryTipView, AccessoryTipView.changeQuickRedirect, false, 131264, new Class[]{AccessoriesTipModel.class}, Void.TYPE).isSupported) {
accessoryTipView.setVisibility((accessoriesTips != null ? accessoriesTips.getContent() : null) != null ? 0 : 8);
if (accessoriesTips != null) {
z.b.a(accessoryTipView, e.a((float) 2), null);
PatchProxyResult proxy2 = PatchProxy.proxy(new Object[]{new Integer((int) R.id.tvTitle)}, accessoryTipView, AccessoryTipView.changeQuickRedirect, false, 131265, new Class[]{Integer.TYPE}, View.class);
if (proxy2.isSupported) {
view = (View) proxy2.result;
} else {
if (accessoryTipView.b == null) {
accessoryTipView.b = new HashMap();
}
View view3 = (View) accessoryTipView.b.get(Integer.valueOf((int) R.id.tvTitle));
if (view3 == null) {
view3 = accessoryTipView.findViewById(R.id.tvTitle);
accessoryTipView.b.put(Integer.valueOf((int) R.id.tvTitle), view3);
}
view = view3;
}
((TextView) view).setText(accessoriesTips.getContent());
orderBidQuantityInfoViewV2 = (OrderBidQuantityInfoViewV2) biddingActivityV4._$_findCachedViewById(R.id.biddingNumView);
bidWhInvDTO = confirmDtoModel2.getBidWhInvDTO();
remainQuantity = confirmDtoModel2.getRemainQuantity();
canBatchBidding = confirmDtoModel2.getCanBatchBidding();
if (!PatchProxy.proxy(new Object[]{bidWhInvDTO, remainQuantity, canBatchBidding}, orderBidQuantityInfoViewV2, OrderBidQuantityInfoViewV2.changeQuickRedirect, false, 131512, new Class[]{BidWhInvDTOModel.class, Integer.class, Boolean.class}, Void.TYPE).isSupported) {
i = 1;
} else {
orderBidQuantityInfoViewV2.setOnClickListener(null);
orderBidQuantityInfoViewV2.setVisibility(8);
if (bidWhInvDTO != null) {
orderBidQuantityInfoViewV2.setVisibility(0);
((BiddingNumSelectViewV2) orderBidQuantityInfoViewV2.a(R.id.numChangeView)).setVisibility(4);
((DuIconsTextView) orderBidQuantityInfoViewV2.a(R.id.tvNum)).setVisibility(0);
((DuIconsTextView) orderBidQuantityInfoViewV2.a(R.id.tvNum)).setText(bidWhInvDTO.getWhTip());
ViewExtensionKt.h(orderBidQuantityInfoViewV2, new OrderBidQuantityInfoViewV2$renderView$1(orderBidQuantityInfoViewV2, bidWhInvDTO));
Integer totalSelectedQty = bidWhInvDTO.getTotalSelectedQty();
orderBidQuantityInfoViewV2.setValue(totalSelectedQty != null ? totalSelectedQty.intValue() : 0);
} else if (Intrinsics.areEqual(canBatchBidding, Boolean.TRUE)) {
orderBidQuantityInfoViewV2.setVisibility(0);
((BiddingNumSelectViewV2) orderBidQuantityInfoViewV2.a(R.id.numChangeView)).setVisibility(0);
((DuIconsTextView) orderBidQuantityInfoViewV2.a(R.id.tvNum)).setVisibility(8);
((BiddingNumSelectViewV2) orderBidQuantityInfoViewV2.a(R.id.numChangeView)).setNum(remainQuantity != null ? remainQuantity.intValue() : 1);
} else {
i = 1;
orderBidQuantityInfoViewV2.setValue(1);
}
i = 1;
}
orderBidPriceTitleView = (OrderBidPriceTitleView) biddingActivityV4._$_findCachedViewById(R.id.orderBidPriceTitleView);
objArr = new Object[i];
objArr[0] = confirmDtoModel2;
changeQuickRedirect2 = OrderBidPriceTitleView.changeQuickRedirect;
clsArr = new Class[i];
clsArr[0] = ConfirmDtoModel.class;
if (!PatchProxy.proxy(objArr, orderBidPriceTitleView, changeQuickRedirect2, false, 131502, clsArr, Void.TYPE).isSupported) {
ViewExtensionKt.h((TextView) orderBidPriceTitleView.a(R.id.tvRules), new OrderBidPriceTitleView$renderView$1(orderBidPriceTitleView, confirmDtoModel2));
TextView textView3 = (TextView) orderBidPriceTitleView.a(R.id.tvValidPeriod);
String validPeriodEntryText = confirmDtoModel2.getValidPeriodEntryText();
textView3.setVisibility((validPeriodEntryText == null || validPeriodEntryText.length() == 0) ^ true ? 0 : 8);
((TextView) orderBidPriceTitleView.a(R.id.tvValidPeriod)).setText(confirmDtoModel2.getValidPeriodEntryText());
ViewExtensionKt.h((TextView) orderBidPriceTitleView.a(R.id.tvValidPeriod), new OrderBidPriceTitleView$renderView$2(orderBidPriceTitleView, confirmDtoModel2));
}
orderBidInputPriceView = (OrderBidInputPriceView) biddingActivityV4._$_findCachedViewById(R.id.priceInputView);
Long price = confirmDtoModel2.getPrice();
Long valueOf = Long.valueOf(price == null ? price.longValue() : 0);
List<PoundageExpenseShowDetailDtoModel> feeDetailList = confirmDtoModel2.getFeeDetailList();
PriceLimitModel priceLimitRule = confirmDtoModel2.getPriceLimitRule();
Integer priceTailLimit = confirmDtoModel2.getPriceTailLimit();
int intValue = priceTailLimit == null ? priceTailLimit.intValue() : 9;
Long priceThresholdForLimit = confirmDtoModel2.getPriceThresholdForLimit();
long longValue2 = priceThresholdForLimit == null ? priceThresholdForLimit.longValue() : 0;
objArr2 = new Object[]{valueOf, feeDetailList, priceLimitRule, new Integer(intValue), new Long(longValue2)};
changeQuickRedirect3 = OrderBidInputPriceView.changeQuickRedirect;
cls = Integer.TYPE;
cls2 = Long.TYPE;
if (!PatchProxy.proxy(objArr2, orderBidInputPriceView, changeQuickRedirect3, false, 131437, new Class[]{Long.class, List.class, PriceLimitModel.class, cls, cls2}, Void.TYPE).isSupported) {
n80.a aVar = n80.a.f35943a;
if (orderBidInputPriceView.getViewModel().getGlobalStatus().isFirstCharge()) {
str5 = "";
} else {
str5 = String.valueOf(valueOf != null ? valueOf.longValue() : 0);
}
ConfirmDtoModel biddingConfirmDtoModel = orderBidInputPriceView.getViewModel().getBiddingConfirmDtoModel();
Long valueOf2 = Long.valueOf((biddingConfirmDtoModel == null || (skuPriceDto2 = biddingConfirmDtoModel.getSkuPriceDto()) == null || (skuDto2 = skuPriceDto2.getSkuDto()) == null) ? 0 : skuDto2.getSkuId());
ConfirmDtoModel biddingConfirmDtoModel2 = orderBidInputPriceView.getViewModel().getBiddingConfirmDtoModel();
aVar.x(str5, valueOf2, Long.valueOf((biddingConfirmDtoModel2 == null || (skuPriceDto = biddingConfirmDtoModel2.getSkuPriceDto()) == null || (skuDto = skuPriceDto.getSkuDto()) == null) ? 0 : skuDto.getSpuId()), Integer.valueOf(!orderBidInputPriceView.getViewModel().getGlobalStatus().isFirstCharge()), Integer.valueOf(orderBidInputPriceView.getViewModel().getGlobalStatus().pageType()));
orderBidInputPriceView.e = priceLimitRule;
orderBidInputPriceView.f = feeDetailList;
BiddingViewModel.Companion.get(orderBidInputPriceView.getContext()).getPredictIncomeLiveData().observe(h.f(orderBidInputPriceView), new OrderBidInputPriceView$renderView$1(orderBidInputPriceView, priceLimitRule, longValue2, intValue));
if (valueOf != null) {
valueOf.longValue();
if (valueOf.longValue() > 0) {
((FontEditText) orderBidInputPriceView.a(R.id.et_bid_input)).setText(String.valueOf(valueOf.longValue() / ((long) 100)));
}
}
}
orderBidPriceHintView = (OrderBidPriceHintView) biddingActivityV4._$_findCachedViewById(R.id.icePriceHint);
if (!PatchProxy.proxy(new Object[0], orderBidPriceHintView, OrderBidPriceHintView.changeQuickRedirect, false, 131493, new Class[0], Void.TYPE).isSupported) {
z.b.a(orderBidPriceHintView, fi.b.b((float) 1), Integer.valueOf(f.b(orderBidPriceHintView.getContext(), R.color.color_gray_f5f5f9)));
((DuImageLoaderView) orderBidPriceHintView.a(R.id.iconIcePriceTips)).i("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/merchant/icon_browsing_records_dark@3x.png").x();
}
orderBidGuidePriceView = (OrderBidGuidePriceView) biddingActivityV4._$_findCachedViewById(R.id.bidGuidePriceHint);
if (!PatchProxy.proxy(new Object[0], orderBidGuidePriceView, OrderBidGuidePriceView.changeQuickRedirect, false, 131417, new Class[0], Void.TYPE).isSupported) {
z.b.a(orderBidGuidePriceView, fi.b.b((float) 1), Integer.valueOf(f.b(orderBidGuidePriceView.getContext(), R.color.color_gray_f5f5f9)));
((DuImageLoaderView) orderBidGuidePriceView.a(R.id.iconIcePriceTips)).i("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/merchant/icon_browsing_records@3x.png").x();
}
orderBidPredictGetFeeView = (OrderBidPredictGetFeeView) biddingActivityV4._$_findCachedViewById(R.id.predictGetView);
String incomeTitle = confirmDtoModel2.getIncomeTitle();
String prePaidTitle = confirmDtoModel2.getPrePaidTitle();
String postageIncomeTitle = confirmDtoModel2.getPostageIncomeTitle();
String incomeTips = confirmDtoModel2.getIncomeTips();
boolean l = biddingActivityV4.l();
objArr3 = new Object[]{incomeTitle, prePaidTitle, postageIncomeTitle, incomeTips, new Byte(l ? (byte) 1 : 0)};
changeQuickRedirect4 = OrderBidPredictGetFeeView.changeQuickRedirect;
cls3 = Boolean.TYPE;
if (!PatchProxy.proxy(objArr3, orderBidPredictGetFeeView, changeQuickRedirect4, false, 131466, new Class[]{String.class, String.class, String.class, String.class, cls3}, Void.TYPE).isSupported) {
i3 = 1;
} else {
TextView textView4 = (TextView) orderBidPredictGetFeeView.a(R.id.tvTitle);
if (incomeTitle == null) {
incomeTitle = "";
}
textView4.setText(incomeTitle);
TextView textView5 = (TextView) orderBidPredictGetFeeView.a(R.id.tvSumTitle);
if (prePaidTitle == null) {
prePaidTitle = "";
}
textView5.setText(prePaidTitle);
((TextView) orderBidPredictGetFeeView.a(R.id.icMerchant)).setVisibility(l || orderBidPredictGetFeeView.b ? 0 : 8);
((TextView) orderBidPredictGetFeeView.a(R.id.tvPostageIncomeTitle)).setText(postageIncomeTitle);
if (l || orderBidPredictGetFeeView.b) {
str4 = "/件";
} else {
str4 = "";
}
orderBidPredictGetFeeView.d = str4;
OrderBidPredictGetFeeView$renderView$1 orderBidPredictGetFeeView$renderView$1 = new OrderBidPredictGetFeeView$renderView$1(orderBidPredictGetFeeView);
i3 = 1;
ViewExtensionKt.j((IconFontTextView) orderBidPredictGetFeeView.a(R.id.icSumQuestion), 0, orderBidPredictGetFeeView$renderView$1, 1);
}
orderApplyDepositView = (OrderApplyDepositView) biddingActivityV4._$_findCachedViewById(R.id.customApplyDeposit);
PoundagePreferentialModel poundagePreferentialDesc = confirmDtoModel2.getPoundagePreferentialDesc();
objArr4 = new Object[i3];
objArr4[0] = poundagePreferentialDesc;
changeQuickRedirect5 = OrderApplyDepositView.changeQuickRedirect;
clsArr2 = new Class[i3];
clsArr2[0] = PoundagePreferentialModel.class;
if (!PatchProxy.proxy(objArr4, orderApplyDepositView, changeQuickRedirect5, false, 131317, clsArr2, Void.TYPE).isSupported) {
orderApplyDepositView.f14050c = poundagePreferentialDesc;
}
orderBidAfterSalesView = (OrderBidAfterSalesView) biddingActivityV4._$_findCachedViewById(R.id.afterSalesView);
productAfterSales = confirmDtoModel2.getProductAfterSales();
sellerBiddingNo = confirmDtoModel2.getSellerBiddingNo();
if (!PatchProxy.proxy(new Object[]{productAfterSales, sellerBiddingNo}, orderBidAfterSalesView, OrderBidAfterSalesView.changeQuickRedirect, false, 131343, new Class[]{ProductAfterSalesModel.class, String.class}, Void.TYPE).isSupported) {
orderBidAfterSalesView.b = productAfterSales;
orderBidAfterSalesView.d = sellerBiddingNo;
orderBidAfterSalesView.setVisibility(8);
if (productAfterSales != null) {
orderBidAfterSalesView.setVisibility(0);
((TextView) orderBidAfterSalesView.a(R.id.tvAllTitle)).setText(productAfterSales.getTitle());
((DuIconsTextView) orderBidAfterSalesView.a(R.id.tvAllCheck)).setText(productAfterSales.getDesc());
n80.a aVar2 = n80.a.f35943a;
Long valueOf3 = Long.valueOf(orderBidAfterSalesView.getViewModel().getSkuId());
DuIconsTextView duIconsTextView = (DuIconsTextView) orderBidAfterSalesView.a(R.id.tvAllCheck);
String obj = (duIconsTextView == null || (text = duIconsTextView.getText()) == null) ? null : text.toString();
if (obj != null) {
str2 = obj;
} else {
str2 = "";
}
String title = productAfterSales.getTitle();
if (title != null) {
str3 = title;
} else {
str3 = "";
}
aVar2.A("", valueOf3, str2, str3, Integer.valueOf(orderBidAfterSalesView.getViewModel().getGlobalStatus().pageType()));
}
}
((BidProtocolControlView) biddingActivityV4._$_findCachedViewById(R.id.customBidProtocolView)).b(confirmDtoModel2);
((OrderBidTipInfoView) biddingActivityV4._$_findCachedViewById(R.id.customInfoTopTips)).setVisibility(!(confirmDtoModel2.getBottomTips() == null) ? 0 : 8);
bottomTips = confirmDtoModel2.getBottomTips();
if (bottomTips != null) {
OrderBidTipInfoView orderBidTipInfoView = (OrderBidTipInfoView) biddingActivityV4._$_findCachedViewById(R.id.customInfoTopTips);
boolean areEqual = Intrinsics.areEqual(confirmDtoModel2.getShowNoBackModule(), Boolean.TRUE);
if (!PatchProxy.proxy(new Object[]{bottomTips, new Byte(areEqual ? (byte) 1 : 0)}, orderBidTipInfoView, OrderBidTipInfoView.changeQuickRedirect, false, 131565, new Class[]{List.class, cls3}, Void.TYPE).isSupported) {
((LinearLayout) orderBidTipInfoView.a(R.id.llTips)).post(new OrderBidTipInfoView$renderView$1(orderBidTipInfoView, bottomTips, areEqual));
}
}
orderBidPredictIncomeBottomTipView = (OrderBidPredictIncomeBottomTipView) biddingActivityV4._$_findCachedViewById(R.id.bottomEarnestMoneyView);
depositRuleDto = confirmDtoModel2.getDepositRuleDto();
Long price2 = confirmDtoModel2.getPrice();
longValue = price2 == null ? price2.longValue() : 0;
totalIncomeTitle = confirmDtoModel2.getTotalIncomeTitle();
str = "预计总收入";
if (totalIncomeTitle == null) {
totalIncomeTitle = str;
}
if (!PatchProxy.proxy(new Object[]{depositRuleDto, new Long(longValue), totalIncomeTitle}, orderBidPredictIncomeBottomTipView, OrderBidPredictIncomeBottomTipView.changeQuickRedirect, false, 131479, new Class[]{DepositRuleDtoModel.class, cls2, String.class}, Void.TYPE).isSupported) {
orderBidPredictIncomeBottomTipView.d = depositRuleDto;
orderBidPredictIncomeBottomTipView.b(longValue);
((TextView) orderBidPredictIncomeBottomTipView.a(R.id.tvCashDeposit)).setText(totalIncomeTitle + (char) 65306);
if (BiddingViewModel.Companion.get(orderBidPredictIncomeBottomTipView.getContext()).getPriceLiveData().getValue() != null) {
orderBidPredictIncomeBottomTipView.c();
}
}
orderBidPredictBottomGetFeeView = (OrderBidPredictBottomGetFeeView) biddingActivityV4._$_findCachedViewById(R.id.bottomGetFee);
i12 = biddingActivityV4.d;
totalIncomeTitle2 = confirmDtoModel2.getTotalIncomeTitle();
if (totalIncomeTitle2 != null) {
str = totalIncomeTitle2;
}
if (!PatchProxy.proxy(new Object[]{new Integer(i12), str}, orderBidPredictBottomGetFeeView, OrderBidPredictBottomGetFeeView.changeQuickRedirect, false, 131458, new Class[]{cls, String.class}, Void.TYPE).isSupported) {
((TextView) orderBidPredictBottomGetFeeView.a(R.id.tvIncome)).setText(str);
((TextView) orderBidPredictBottomGetFeeView.a(R.id.tvNum)).setVisibility(i12 == 5 ? 0 : 8);
}
if (biddingActivityV4.d == 2) {
((OrderBidInputPriceView) biddingActivityV4._$_findCachedViewById(R.id.priceInputView)).a(R.id.bid_input_line).setVisibility(8);
((IconFontTextView) ((OrderBidInputPriceView) biddingActivityV4._$_findCachedViewById(R.id.priceInputView)).a(R.id.iv_clear_num)).setVisibility(8);
((OrderBidInputPriceView) biddingActivityV4._$_findCachedViewById(R.id.priceInputView)).a(R.id.bid_input_line_salenow).setVisibility(0);
}
}
}
orderBidQuantityInfoViewV2 = (OrderBidQuantityInfoViewV2) biddingActivityV4._$_findCachedViewById(R.id.biddingNumView);
bidWhInvDTO = confirmDtoModel2.getBidWhInvDTO();
remainQuantity = confirmDtoModel2.getRemainQuantity();
canBatchBidding = confirmDtoModel2.getCanBatchBidding();
if (!PatchProxy.proxy(new Object[]{bidWhInvDTO, remainQuantity, canBatchBidding}, orderBidQuantityInfoViewV2, OrderBidQuantityInfoViewV2.changeQuickRedirect, false, 131512, new Class[]{BidWhInvDTOModel.class, Integer.class, Boolean.class}, Void.TYPE).isSupported) {
}
orderBidPriceTitleView = (OrderBidPriceTitleView) biddingActivityV4._$_findCachedViewById(R.id.orderBidPriceTitleView);
objArr = new Object[i];
objArr[0] = confirmDtoModel2;
changeQuickRedirect2 = OrderBidPriceTitleView.changeQuickRedirect;
clsArr = new Class[i];
clsArr[0] = ConfirmDtoModel.class;
if (!PatchProxy.proxy(objArr, orderBidPriceTitleView, changeQuickRedirect2, false, 131502, clsArr, Void.TYPE).isSupported) {
}
orderBidInputPriceView = (OrderBidInputPriceView) biddingActivityV4._$_findCachedViewById(R.id.priceInputView);
Long price3 = confirmDtoModel2.getPrice();
Long valueOf4 = Long.valueOf(price3 == null ? price3.longValue() : 0);
List<PoundageExpenseShowDetailDtoModel> feeDetailList2 = confirmDtoModel2.getFeeDetailList();
PriceLimitModel priceLimitRule2 = confirmDtoModel2.getPriceLimitRule();
Integer priceTailLimit2 = confirmDtoModel2.getPriceTailLimit();
if (priceTailLimit2 == null) {
}
Long priceThresholdForLimit2 = confirmDtoModel2.getPriceThresholdForLimit();
if (priceThresholdForLimit2 == null) {
}
objArr2 = new Object[]{valueOf4, feeDetailList2, priceLimitRule2, new Integer(intValue), new Long(longValue2)};
changeQuickRedirect3 = OrderBidInputPriceView.changeQuickRedirect;
cls = Integer.TYPE;
cls2 = Long.TYPE;
if (!PatchProxy.proxy(objArr2, orderBidInputPriceView, changeQuickRedirect3, false, 131437, new Class[]{Long.class, List.class, PriceLimitModel.class, cls, cls2}, Void.TYPE).isSupported) {
}
orderBidPriceHintView = (OrderBidPriceHintView) biddingActivityV4._$_findCachedViewById(R.id.icePriceHint);
if (!PatchProxy.proxy(new Object[0], orderBidPriceHintView, OrderBidPriceHintView.changeQuickRedirect, false, 131493, new Class[0], Void.TYPE).isSupported) {
}
orderBidGuidePriceView = (OrderBidGuidePriceView) biddingActivityV4._$_findCachedViewById(R.id.bidGuidePriceHint);
if (!PatchProxy.proxy(new Object[0], orderBidGuidePriceView, OrderBidGuidePriceView.changeQuickRedirect, false, 131417, new Class[0], Void.TYPE).isSupported) {
}
orderBidPredictGetFeeView = (OrderBidPredictGetFeeView) biddingActivityV4._$_findCachedViewById(R.id.predictGetView);
String incomeTitle2 = confirmDtoModel2.getIncomeTitle();
String prePaidTitle2 = confirmDtoModel2.getPrePaidTitle();
String postageIncomeTitle2 = confirmDtoModel2.getPostageIncomeTitle();
String incomeTips2 = confirmDtoModel2.getIncomeTips();
boolean l12 = biddingActivityV4.l();
objArr3 = new Object[]{incomeTitle2, prePaidTitle2, postageIncomeTitle2, incomeTips2, new Byte(l12 ? (byte) 1 : 0)};
changeQuickRedirect4 = OrderBidPredictGetFeeView.changeQuickRedirect;
cls3 = Boolean.TYPE;
if (!PatchProxy.proxy(objArr3, orderBidPredictGetFeeView, changeQuickRedirect4, false, 131466, new Class[]{String.class, String.class, String.class, String.class, cls3}, Void.TYPE).isSupported) {
}
orderApplyDepositView = (OrderApplyDepositView) biddingActivityV4._$_findCachedViewById(R.id.customApplyDeposit);
PoundagePreferentialModel poundagePreferentialDesc2 = confirmDtoModel2.getPoundagePreferentialDesc();
objArr4 = new Object[i3];
objArr4[0] = poundagePreferentialDesc2;
changeQuickRedirect5 = OrderApplyDepositView.changeQuickRedirect;
clsArr2 = new Class[i3];
clsArr2[0] = PoundagePreferentialModel.class;
if (!PatchProxy.proxy(objArr4, orderApplyDepositView, changeQuickRedirect5, false, 131317, clsArr2, Void.TYPE).isSupported) {
}
orderBidAfterSalesView = (OrderBidAfterSalesView) biddingActivityV4._$_findCachedViewById(R.id.afterSalesView);
productAfterSales = confirmDtoModel2.getProductAfterSales();
sellerBiddingNo = confirmDtoModel2.getSellerBiddingNo();
if (!PatchProxy.proxy(new Object[]{productAfterSales, sellerBiddingNo}, orderBidAfterSalesView, OrderBidAfterSalesView.changeQuickRedirect, false, 131343, new Class[]{ProductAfterSalesModel.class, String.class}, Void.TYPE).isSupported) {
}
((BidProtocolControlView) biddingActivityV4._$_findCachedViewById(R.id.customBidProtocolView)).b(confirmDtoModel2);
((OrderBidTipInfoView) biddingActivityV4._$_findCachedViewById(R.id.customInfoTopTips)).setVisibility(!(confirmDtoModel2.getBottomTips() == null) ? 0 : 8);
bottomTips = confirmDtoModel2.getBottomTips();
if (bottomTips != null) {
}
orderBidPredictIncomeBottomTipView = (OrderBidPredictIncomeBottomTipView) biddingActivityV4._$_findCachedViewById(R.id.bottomEarnestMoneyView);
depositRuleDto = confirmDtoModel2.getDepositRuleDto();
Long price22 = confirmDtoModel2.getPrice();
if (price22 == null) {
}
totalIncomeTitle = confirmDtoModel2.getTotalIncomeTitle();
str = "预计总收入";
if (totalIncomeTitle == null) {
}
if (!PatchProxy.proxy(new Object[]{depositRuleDto, new Long(longValue), totalIncomeTitle}, orderBidPredictIncomeBottomTipView, OrderBidPredictIncomeBottomTipView.changeQuickRedirect, false, 131479, new Class[]{DepositRuleDtoModel.class, cls2, String.class}, Void.TYPE).isSupported) {
}
orderBidPredictBottomGetFeeView = (OrderBidPredictBottomGetFeeView) biddingActivityV4._$_findCachedViewById(R.id.bottomGetFee);
i12 = biddingActivityV4.d;
totalIncomeTitle2 = confirmDtoModel2.getTotalIncomeTitle();
if (totalIncomeTitle2 != null) {
}
if (!PatchProxy.proxy(new Object[]{new Integer(i12), str}, orderBidPredictBottomGetFeeView, OrderBidPredictBottomGetFeeView.changeQuickRedirect, false, 131458, new Class[]{cls, String.class}, Void.TYPE).isSupported) {
}
if (biddingActivityV4.d == 2) {
}
}
i iVar = this.b.f14027u;
if (iVar == null) {
Intrinsics.throwUninitializedPropertyAccessException("exposureHelper");
}
iVar.startAttachExposure(true);
this.b.r = confirmDtoModel2;
PaymentSettingModel paymentSettingDto = confirmDtoModel2.getPaymentSettingDto();
if (paymentSettingDto != null && paymentSettingDto.isPopup()) {
this.b.q(paymentSettingDto);
}
}
}
}
}
/* compiled from: BiddingActivityV4.kt */
public static final class c implements IDialog.OnClickListener {
public static ChangeQuickRedirect changeQuickRedirect;
/* renamed from: a reason: collision with root package name */
public final /* synthetic */ BiddingActivityV4 f14029a;
public final /* synthetic */ PaymentSettingModel b;
public c(BiddingActivityV4 biddingActivityV4, PaymentSettingModel paymentSettingModel) {
this.f14029a = biddingActivityV4;
this.b = paymentSettingModel;
}
@Override // com.shizhuang.duapp.common.dialog.commondialog.IDialog.OnClickListener
public final void onClick(IDialog iDialog) {
if (!PatchProxy.proxy(new Object[]{iDialog}, this, changeQuickRedirect, false, 130813, new Class[]{IDialog.class}, Void.TYPE).isSupported) {
iDialog.dismiss();
if (this.b.isForce()) {
this.f14029a.finish();
}
}
}
}
/* compiled from: BiddingActivityV4.kt */
public static final class d implements IDialog.OnClickListener {
public static ChangeQuickRedirect changeQuickRedirect;
/* renamed from: a reason: collision with root package name */
public final /* synthetic */ BiddingActivityV4 f14030a;
public final /* synthetic */ PaymentSettingModel b;
public d(BiddingActivityV4 biddingActivityV4, PaymentSettingModel paymentSettingModel) {
this.f14030a = biddingActivityV4;
this.b = paymentSettingModel;
}
@Override // com.shizhuang.duapp.common.dialog.commondialog.IDialog.OnClickListener
public final void onClick(IDialog iDialog) {
if (!PatchProxy.proxy(new Object[]{iDialog}, this, changeQuickRedirect, false, 130814, new Class[]{IDialog.class}, Void.TYPE).isSupported) {
this.f14030a.s = Boolean.valueOf(this.b.isForce());
u91.e.x0(this.f14030a);
}
}
}
public static void d(BiddingActivityV4 biddingActivityV4) {
boolean z = false;
if (!PatchProxy.proxy(new Object[0], biddingActivityV4, changeQuickRedirect, false, 130719, new Class[0], Void.TYPE).isSupported) {
super.onResume();
n80.a aVar = n80.a.f35943a;
int i3 = biddingActivityV4.n;
String str = i3 != 1 ? i3 != 2 ? i3 != 3 ? "其他" : "出售详情" : "出售商品页" : "商品详情";
Long valueOf = Long.valueOf(biddingActivityV4.f);
String str2 = biddingActivityV4.m;
if (str2 == null) {
str2 = "";
}
aVar.o(str, valueOf, str2, 5);
if (((ImageView) biddingActivityV4._$_findCachedViewById(R.id.ivCustomer)).getVisibility() == 0) {
z = true;
}
if (z) {
biddingActivityV4.i();
}
}
}
public static void e(BiddingActivityV4 biddingActivityV4, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, biddingActivityV4, changeQuickRedirect, false, 130762, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
super.onCreate(bundle);
}
}
public static void f(BiddingActivityV4 biddingActivityV4) {
if (!PatchProxy.proxy(new Object[0], biddingActivityV4, changeQuickRedirect, false, 130764, new Class[0], Void.TYPE).isSupported) {
super.onStart();
}
}
public static void o(BiddingActivityV4 biddingActivityV4, String str, String str2, String str3, String str4, boolean z, Function0 function0, Function0 function02, int i3) {
String str5 = "";
String str6 = (i3 & 1) != 0 ? str5 : str;
if ((i3 & 2) == 0) {
str5 = str2;
}
String str7 = (i3 & 4) != 0 ? "取消" : null;
String str8 = (i3 & 8) != 0 ? "确定" : str4;
boolean z4 = (i3 & 16) != 0 ? true : z;
Function0 function03 = (i3 & 64) != 0 ? null : function02;
byte b2 = z4 ? (byte) 1 : 0;
byte b5 = z4 ? (byte) 1 : 0;
byte b12 = z4 ? (byte) 1 : 0;
if (!PatchProxy.proxy(new Object[]{str6, str5, str7, str8, new Byte(b2), null, function03}, biddingActivityV4, changeQuickRedirect, false, 130752, new Class[]{String.class, String.class, String.class, String.class, Boolean.TYPE, Function0.class, Function0.class}, Void.TYPE).isSupported) {
new CommonDialog.a(biddingActivityV4.getContext()).u(str6).e(str5).c(true).d(z4).n(str7, new k(null)).f(8388611).q(str8, new s70.l(function03)).x();
}
}
public static void p(BiddingActivityV4 biddingActivityV4, String str, String str2, String str3, boolean z, Function0 function0, int i3) {
if ((i3 & 1) != 0) {
str = "";
}
if ((i3 & 2) != 0) {
str2 = "";
}
if ((i3 & 4) != 0) {
str3 = "确定";
}
if ((i3 & 8) != 0) {
z = true;
}
if ((i3 & 16) != 0) {
function0 = null;
}
byte b2 = z ? (byte) 1 : 0;
byte b5 = z ? (byte) 1 : 0;
byte b12 = z ? (byte) 1 : 0;
if (!PatchProxy.proxy(new Object[]{str, str2, str3, new Byte(b2), function0}, biddingActivityV4, changeQuickRedirect, false, 130751, new Class[]{String.class, String.class, String.class, Boolean.TYPE, Function0.class}, Void.TYPE).isSupported) {
new CommonDialog.a(biddingActivityV4.getContext()).u(str).f(8388611).e(str2).d(z).q(str3, new m(function0)).x();
}
}
public View _$_findCachedViewById(int i3) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 130759, new Class[]{Integer.TYPE}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
if (this.w == null) {
this.w = new HashMap();
}
View view = (View) this.w.get(Integer.valueOf(i3));
if (view != null) {
return view;
}
View findViewById = findViewById(i3);
this.w.put(Integer.valueOf(i3), findViewById);
return findViewById;
}
public final List<BidWhInvReqsModel> g(List<BidWhInvDetailsItemModel> list) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{list}, this, changeQuickRedirect, false, 130745, new Class[]{List.class}, List.class);
if (proxy.isSupported) {
return (List) proxy.result;
}
ArrayList arrayList = new ArrayList();
if (list == null) {
list = CollectionsKt__CollectionsKt.emptyList();
}
for (T t4 : list) {
if (t4.getBidRemainQty() == 0) {
Integer selectedQty = t4.getSelectedQty();
if ((selectedQty != null ? selectedQty.intValue() : 0) == 0) {
}
}
int bidRemainQty = t4.getBidRemainQty();
Integer selectedQty2 = t4.getSelectedQty();
int intValue = selectedQty2 != null ? selectedQty2.intValue() : 0;
String whInvNo = t4.getWhInvNo();
if (whInvNo == null) {
whInvNo = "";
}
arrayList.add(new BidWhInvReqsModel(bidRemainQty, intValue, whInvNo));
}
return arrayList;
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public int getLayout() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130717, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.activity_bidding_v4;
}
public final void h() {
boolean z;
boolean z4;
ConfirmDtoModel confirmDtoModel;
SkuPriceDtoModel skuPriceDto;
List<PriceDtoModel> skuPriceList;
SkuPriceDtoModel skuPriceDto2;
List<PriceDtoModel> skuPriceList2;
int intValue;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130737, new Class[0], Void.TYPE).isSupported) {
Class cls = Boolean.TYPE;
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130738, new Class[0], cls);
boolean z5 = true;
if (proxy.isSupported) {
z = ((Boolean) proxy.result).booleanValue();
} else {
Integer value = k().getAfterSaleTypeLiveData().getValue();
if (value == null || (1 <= (intValue = value.intValue()) && 2 >= intValue)) {
z = true;
} else {
showToast("请选择商品售后服务");
z = false;
}
}
if (z) {
PatchProxyResult proxy2 = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130739, new Class[0], cls);
if (proxy2.isSupported) {
z4 = ((Boolean) proxy2.result).booleanValue();
} else {
if (this.d == 5) {
Integer value2 = k().getNumLiveData().getValue();
if (value2 == null) {
value2 = 0;
}
if (value2 != null && value2.intValue() == 0) {
showToast("请选择出售数量");
z4 = false;
}
}
z4 = true;
}
if (z4) {
PatchProxyResult proxy3 = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130740, new Class[0], cls);
String str = null;
if (proxy3.isSupported) {
z5 = ((Boolean) proxy3.result).booleanValue();
} else {
Integer value3 = k().getNumLiveData().getValue();
if (value3 == null) {
value3 = 1;
}
int intValue2 = value3.intValue();
if (this.d == 0 && intValue2 == 1 && (confirmDtoModel = this.r) != null && (skuPriceDto = confirmDtoModel.getSkuPriceDto()) != null && (skuPriceList = skuPriceDto.getSkuPriceList()) != null && skuPriceList.size() == 2) {
ConfirmDtoModel confirmDtoModel2 = this.r;
PriceDtoModel priceDtoModel = (confirmDtoModel2 == null || (skuPriceDto2 = confirmDtoModel2.getSkuPriceDto()) == null || (skuPriceList2 = skuPriceDto2.getSkuPriceList()) == null) ? null : skuPriceList2.get(1);
Long valueOf = priceDtoModel != null ? Long.valueOf(priceDtoModel.getPrice()) : null;
if (priceDtoModel != null && valueOf != null && this.f14024g > 0 && valueOf.longValue() > 0 && this.f14024g <= valueOf.longValue()) {
StringBuilder h12 = a.f.h("最高求购:¥");
h12.append(StringUtils.m(valueOf.longValue()));
o(this, h12.toString(), "已有求购高于您的出价,可直接交易", null, "去交易", false, null, new BiddingActivityV4$checkAskPrice$1(this, priceDtoModel), 52);
z5 = false;
}
}
}
if (!z5 || PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130741, new Class[0], Void.TYPE).isSupported) {
return;
}
if (m()) {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130742, new Class[0], Void.TYPE).isSupported) {
if (ServiceManager.d().isMerchant() != 0 || this.d == 5) {
o(this, "是否确认出售?", null, null, null, false, null, new BiddingActivityV4$makeSureReChargeWithDialog$1(this), 46);
} else {
r(null, null);
}
}
} else if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130743, new Class[0], Void.TYPE).isSupported) {
ConfirmDtoModel confirmDtoModel3 = this.r;
AccessoriesTipModel accessoriesTips = confirmDtoModel3 != null ? confirmDtoModel3.getAccessoriesTips() : null;
if (ServiceManager.d().isMerchant() != 0 || this.d == 5) {
if (accessoriesTips != null) {
str = accessoriesTips.getPopupTitle();
}
if (str == null || accessoriesTips.getPopupContent() == null) {
o(this, "是否确认出售?", null, null, null, false, null, new BiddingActivityV4$makeSureNotReChargeWithDialog$3(this), 46);
} else {
o(this, accessoriesTips.getPopupTitle(), accessoriesTips.getPopupContent(), null, "确认出售", false, null, new BiddingActivityV4$makeSureNotReChargeWithDialog$2(this), 36);
}
} else {
if ((accessoriesTips != null ? accessoriesTips.getPopupTitle() : null) == null || accessoriesTips.getPopupContent() == null) {
r(null, null);
} else {
o(this, accessoriesTips.getPopupTitle(), accessoriesTips.getPopupContent(), null, "确认出售", false, null, new BiddingActivityV4$makeSureNotReChargeWithDialog$1(this), 36);
}
}
}
}
}
}
}
public final void i() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130731, new Class[0], Void.TYPE).isSupported) {
n80.a.f35943a.k(Long.valueOf(this.f), Integer.valueOf(k().getGlobalStatus().pageType()));
}
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public void initData() {
String str;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130722, new Class[0], Void.TYPE).isSupported) {
if (this.d != 2 && this.e == null) {
this.f14024g = 0;
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130724, new Class[0], Void.TYPE).isSupported) {
int i3 = this.d;
if (i3 != 0) {
str = i3 != 1 ? i3 != 2 ? i3 != 4 ? i3 != 5 ? "" : l() ? "批量出价" : "寄售出售" : "极速PLUS出价" : "立即变现" : "预售出售";
} else {
str = "出售";
}
setTitle(str);
}
n(true);
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130725, new Class[0], Void.TYPE).isSupported) {
if (this.d == 2) {
((OrderBidInputPriceView) _$_findCachedViewById(R.id.priceInputView)).b();
}
new KeyBordStateUtil(this).a(new s70.i(this));
}
k().getPriceLiveData().observe(this, new BiddingActivityV4$initData$1(this));
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130726, new Class[0], Void.TYPE).isSupported && this.f14024g > 0) {
k().getFeeDetailLiveDataV2().observe(this, new BiddingActivityV4$initCoupon$1(this));
}
OrderBidPredictIncomeBottomTipView orderBidPredictIncomeBottomTipView = (OrderBidPredictIncomeBottomTipView) _$_findCachedViewById(R.id.bottomEarnestMoneyView);
int i12 = this.d;
boolean m12 = m();
BiddingActivityV4$initData$2 biddingActivityV4$initData$2 = new BiddingActivityV4$initData$2(this);
if (!PatchProxy.proxy(new Object[]{new Integer(i12), new Byte(m12 ? (byte) 1 : 0), biddingActivityV4$initData$2}, orderBidPredictIncomeBottomTipView, OrderBidPredictIncomeBottomTipView.changeQuickRedirect, false, 131478, new Class[]{Integer.TYPE, Boolean.TYPE, Function0.class}, Void.TYPE).isSupported) {
orderBidPredictIncomeBottomTipView.e = biddingActivityV4$initData$2;
orderBidPredictIncomeBottomTipView.b = i12;
orderBidPredictIncomeBottomTipView.f14065c = m12;
orderBidPredictIncomeBottomTipView.b(0);
}
k().getHoldRemindData().observe(this, new BiddingActivityV4$initData$3(this));
k().getPriceLiveData().observe(this, new BiddingActivityV4$initData$4(this));
}
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public void initStatusBar() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130720, new Class[0], Void.TYPE).isSupported) {
r0.r(this);
r0.B(this);
r0.n(this, ContextCompat.getColor(this, R.color.color_gray_f5f5f9));
}
}
@Override // com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public void initView(@Nullable Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 130721, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
super.initView(bundle);
i iVar = new i(this, (ScrollStateView) _$_findCachedViewById(R.id.scrollStateView), CollectionsKt__CollectionsJVMKt.listOf((OrderBidTipInfoView) _$_findCachedViewById(R.id.customInfoTopTips)), null, 8);
this.f14027u = iVar;
iVar.setExposureCallback(new BiddingActivityV4$initView$1(this));
this.toolbar.setNavigationOnClickListener(new BiddingActivityV4$initView$2(this));
}
}
public final void j() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130756, new Class[0], Void.TYPE).isSupported) {
long expenseTechnology = k().getExpenseTechnology();
if (expenseTechnology <= 0) {
k().getBestCoupon().setValue(null);
} else {
SellerBidFacade.f13955a.w(this.f, expenseTechnology, this.d, Long.valueOf(this.f14024g), new a(this, this).withoutToast());
}
}
}
public final BiddingViewModel k() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130715, new Class[0], BiddingViewModel.class);
return (BiddingViewModel) (proxy.isSupported ? proxy.result : this.t.getValue());
}
public final boolean l() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130714, new Class[0], Boolean.TYPE);
if (proxy.isSupported) {
return ((Boolean) proxy.result).booleanValue();
}
ArrayList<String> arrayList = this.k;
return (arrayList != null ? arrayList.size() : 0) > 0;
}
public final boolean m() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130713, new Class[0], Boolean.TYPE);
if (proxy.isSupported) {
return ((Boolean) proxy.result).booleanValue();
}
return this.e != null;
}
public final void n(boolean z) {
BidConfirmRequestModel bidConfirmRequestModel;
if (!PatchProxy.proxy(new Object[]{new Byte(z ? (byte) 1 : 0)}, this, changeQuickRedirect, false, 130728, new Class[]{Boolean.TYPE}, Void.TYPE).isSupported) {
SellerBidFacade sellerBidFacade = SellerBidFacade.f13955a;
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130727, new Class[0], BidConfirmRequestModel.class);
if (proxy.isSupported) {
bidConfirmRequestModel = (BidConfirmRequestModel) proxy.result;
} else {
bidConfirmRequestModel = new BidConfirmRequestModel(this.d, this.f14024g, this.f, this.e, this.f14025h, this.i, this.j, this.k, null, AccessibilityEventCompat.TYPE_VIEW_HOVER_EXIT, null);
}
sellerBidFacade.q(bidConfirmRequestModel, new b(this, z, this, z));
}
}
@Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onCreate(Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 130761, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onCreate(this, bundle);
}
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public void onNetErrorRetryClick() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130729, new Class[0], Void.TYPE).isSupported) {
super.onNetErrorRetryClick();
n(true);
}
}
public void onRestart() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130753, new Class[0], Void.TYPE).isSupported) {
super.onRestart();
if (Intrinsics.areEqual(this.s, Boolean.TRUE)) {
this.s = Boolean.FALSE;
initData();
}
}
}
@Override // androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onResume() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130718, new Class[0], Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onResume(this);
}
}
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onStart() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130763, new Class[0], Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onStart(this);
}
}
public final void q(PaymentSettingModel paymentSettingModel) {
if (!PatchProxy.proxy(new Object[]{paymentSettingModel}, this, changeQuickRedirect, false, 130754, new Class[]{PaymentSettingModel.class}, Void.TYPE).isSupported) {
CommonDialog.a aVar = new CommonDialog.a(getContext());
String title = paymentSettingModel.getTitle();
String str = "";
if (title == null) {
title = str;
}
CommonDialog.a f12 = aVar.u(title).f(8388611);
String hint = paymentSettingModel.getHint();
if (hint == null) {
hint = str;
}
CommonDialog.a d12 = f12.e(hint).c(!paymentSettingModel.isForce()).d(!paymentSettingModel.isForce());
String cancelHint = paymentSettingModel.getCancelHint();
if (cancelHint == null) {
cancelHint = str;
}
CommonDialog.a n12 = d12.n(cancelHint, new c(this, paymentSettingModel));
String settingHint = paymentSettingModel.getSettingHint();
if (settingHint != null) {
str = settingHint;
}
n12.q(str, new d(this, paymentSettingModel)).x();
if (!paymentSettingModel.isForce() && !PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 130755, new Class[0], Void.TYPE).isSupported) {
b50.a.f1565a.l(1, new s<>(this));
}
}
}
public final void r(Boolean bool, Boolean bool2) {
BidSubmitRequestModel bidSubmitRequestModel;
SellerBidFacade sellerBidFacade;
Integer remainQuantity;
BidWhInvDTOModel bidWhInvDTO;
int i3 = 0;
if (!PatchProxy.proxy(new Object[]{bool, bool2}, this, changeQuickRedirect, false, 130749, new Class[]{Boolean.class, Boolean.class}, Void.TYPE).isSupported) {
SellerBidFacade sellerBidFacade2 = SellerBidFacade.f13955a;
boolean z = this.f14026q;
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{bool, bool2, new Byte(z ? (byte) 1 : 0)}, this, changeQuickRedirect, false, 130744, new Class[]{Boolean.class, Boolean.class, Boolean.TYPE}, BidSubmitRequestModel.class);
if (proxy.isSupported) {
bidSubmitRequestModel = (BidSubmitRequestModel) proxy.result;
sellerBidFacade = sellerBidFacade2;
} else {
StringBuilder sb2 = new StringBuilder();
String userId = ServiceManager.d().getUserId();
if (userId == null) {
userId = RandomKt.Random(System.currentTimeMillis()).toString();
}
sb2.append(userId);
sb2.append(String.valueOf(System.currentTimeMillis()));
String sb3 = sb2.toString();
Integer value = k().getNumLiveData().getValue();
if (value == null) {
value = 1;
}
int intValue = value.intValue();
ArrayList arrayList = new ArrayList();
ConfirmDtoModel confirmDtoModel = this.r;
if (!(confirmDtoModel == null || (bidWhInvDTO = confirmDtoModel.getBidWhInvDTO()) == null)) {
arrayList.addAll(g(bidWhInvDTO.getBidWhInvDetails()));
arrayList.addAll(g(bidWhInvDTO.getOtherBidWhInvDetails()));
}
int i12 = this.d;
long j12 = this.f14024g;
long j13 = this.f;
ConfirmDtoModel confirmDtoModel2 = this.r;
if (!(confirmDtoModel2 == null || (remainQuantity = confirmDtoModel2.getRemainQuantity()) == null)) {
i3 = remainQuantity.intValue();
}
Integer valueOf = Integer.valueOf(i3);
String str = this.e;
String str2 = this.f14025h;
String str3 = this.j;
ArrayList<String> arrayList2 = this.k;
ArrayList arrayList3 = new ArrayList();
HashMap<String, BidProtocolSelectModel> value2 = k().getSelectedProtocols().getValue();
if (value2 != null) {
for (Map.Entry<String, BidProtocolSelectModel> entry : value2.entrySet()) {
if (Intrinsics.areEqual(entry.getValue().isSelected(), Boolean.TRUE)) {
arrayList3.add(entry.getKey());
}
arrayList2 = arrayList2;
str3 = str3;
}
}
Unit unit = Unit.INSTANCE;
sellerBidFacade = sellerBidFacade2;
bidSubmitRequestModel = new BidSubmitRequestModel(i12, j12, j13, intValue, valueOf, str, str2, str3, arrayList2, sb3, null, arrayList3, this.f14023c, k().getAfterSaleTypeLiveData().getValue(), arrayList, bool, null, bool2, z, null, 590848, null);
}
sellerBidFacade.J(bidSubmitRequestModel, new BiddingActivityV4$submit$1(this, bool2, bool, this, false));
}
}
}