小红书.apk(点击下载) / AlphaGoodsDetailCard.java
package com.xingin.alpha.goods.view.card;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.content.ContextCompat;
import bj2.l;
import com.xingin.alpha.R$color;
import com.xingin.alpha.R$drawable;
import com.xingin.alpha.R$id;
import com.xingin.alpha.R$layout;
import com.xingin.alpha.R$string;
import com.xingin.alpha.bean.GoodsActivity;
import com.xingin.alpha.bean.GoodsCardTagConfig;
import com.xingin.alpha.bean.GoodsExplainInfo;
import com.xingin.alpha.bean.GoodsId;
import com.xingin.alpha.bean.GoodsLink;
import com.xingin.alpha.bean.GoodsPlayback;
import com.xingin.alpha.bean.GoodsPriceInfo;
import com.xingin.alpha.bean.GoodsState;
import com.xingin.alpha.bean.LiveGoodsBean;
import com.xingin.alpha.bean.SubTitle;
import com.xingin.android.mixim.msg.bean.common.PlayBackGoodsCardInfo;
import com.xingin.android.xhscomm.router.Routers;
import com.xingin.ui.textview.XYTextView;
import com.xingin.widgets.XYImageView;
import el.g0;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.UUID;
import kotlin.Metadata;
import kotlin.Triple;
import kotlin.Unit;
import kotlin.jvm.JvmOverloads;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function3;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import ln.d2;
import ms.g;
import so.m;
import sy.a1;
import sy.f0;
import sy.i;
import sy.q1;
import sy.v0;
import sy.y;
import z60.h;
@Metadata(bv = {}, d1 = {"\u0000T\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0010\t\n\u0002\b\u0011\n\u0002\u0018\u0002\n\u0002\b\u0005\u0018\u00002\u00020\u0001B'\b\u0007\u0012\u0006\u0010\u0019\u001a\u00020\u0018\u0012\n\b\u0002\u00106\u001a\u0004\u0018\u000105\u0012\b\b\u0002\u00107\u001a\u00020\u000b¢\u0006\u0004\b8\u00109Jk\u0010\u0010\u001a\u00020\u000e2\u0006\u0010\u0003\u001a\u00020\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u00042O\u0010\u000f\u001aK\u0012\u0015\u0012\u0013\u0018\u00010\u0007¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\n\u0012\u0013\u0012\u00110\u000b¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\f\u0012\u0013\u0012\u00110\u000b¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\r\u0012\u0004\u0012\u00020\u000e\u0018\u00010\u0006H\u0016J\b\u0010\u0011\u001a\u00020\u000eH\u0016J\b\u0010\u0012\u001a\u00020\u000eH\u0016J\b\u0010\u0013\u001a\u00020\u000eH\u0016J\u0010\u0010\u0014\u001a\u00020\u000e2\u0006\u0010\u0003\u001a\u00020\u0002H\u0002J\b\u0010\u0015\u001a\u00020\u000eH\u0002J\b\u0010\u0016\u001a\u00020\u000eH\u0002J\b\u0010\u0017\u001a\u00020\u000eH\u0002J\u0010\u0010\u001a\u001a\u00020\u000e2\u0006\u0010\u0019\u001a\u00020\u0018H\u0002J\b\u0010\u001b\u001a\u00020\u000eH\u0002J\u0018\u0010\u001f\u001a\u00020\u000e2\u0006\u0010\u001c\u001a\u00020\u00022\u0006\u0010\u001e\u001a\u00020\u001dH\u0002J\u0010\u0010 \u001a\u00020\u000e2\u0006\u0010\u001c\u001a\u00020\u0002H\u0002J\u0010\u0010\"\u001a\u00020\u000e2\u0006\u0010!\u001a\u00020\u001dH\u0002R\u0016\u0010&\u001a\u00020#8\u0002@\u0002X\u000e¢\u0006\u0006\n\u0004\b$\u0010%R\u0018\u0010)\u001a\u0004\u0018\u00010\u00048\u0002@\u0002X\u000e¢\u0006\u0006\n\u0004\b'\u0010(R\u0018\u0010,\u001a\u0004\u0018\u00010\u00028\u0002@\u0002X\u000e¢\u0006\u0006\n\u0004\b*\u0010+R_\u0010/\u001aK\u0012\u0015\u0012\u0013\u0018\u00010\u0007¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\n\u0012\u0013\u0012\u00110\u000b¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\f\u0012\u0013\u0012\u00110\u000b¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\r\u0012\u0004\u0012\u00020\u000e\u0018\u00010\u00068\u0002@\u0002X\u000e¢\u0006\u0006\n\u0004\b-\u0010.R\u001c\u00104\u001a\u00020\u001d8\u0002@\u0002X\u000e¢\u0006\f\n\u0004\b0\u00101\u0012\u0004\b2\u00103¨\u0006:"}, d2 = {"Lcom/xingin/alpha/goods/view/card/AlphaGoodsDetailCard;", "Lcom/xingin/alpha/goods/view/card/AlphaAbsGoodsCard;", "Lcom/xingin/alpha/bean/LiveGoodsBean;", "goods", "Landroid/view/View;", "rootView", "Lkotlin/Function3;", "Lcom/xingin/android/mixim/msg/bean/common/PlayBackGoodsCardInfo;", "Lkotlin/ParameterName;", "name", "goodsCard", "", "playBackStartTime", "playBackTotalTime", "", "onItemPlayBackClick", "J0", com.igexin.push.core.d.c.f25536c, "O", "I0", "D0", "C0", "H0", "F0", "Landroid/content/Context;", "context", "E0", "G0", "info", "", "cardType", "M0", "L0", "trackId", "K0", "", "e", "J", "startDisplayTime", y7.f.f156778k, "Landroid/view/View;", "rootViewGroup", "g", "Lcom/xingin/alpha/bean/LiveGoodsBean;", "goodsBean", h.f160753a, "Lkotlin/jvm/functions/Function3;", "onPlayBackClick", "i", "Ljava/lang/String;", "getGoodsCardType$annotations", "()V", "goodsCardType", "Landroid/util/AttributeSet;", "attrs", "defStyleAttr", "<init>", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "alpha_library_release"}, k = 1, mv = {1, 6, 0})
/* compiled from: AlphaGoodsDetailCard.kt */
public final class AlphaGoodsDetailCard extends AlphaAbsGoodsCard {
/* renamed from: e reason: collision with root package name */
public long f43833e;
/* renamed from: f reason: collision with root package name */
public View f43834f;
/* renamed from: g reason: collision with root package name */
public LiveGoodsBean f43835g;
/* renamed from: h reason: collision with root package name */
public Function3<? super PlayBackGoodsCardInfo, ? super Integer, ? super Integer, Unit> f43836h;
/* renamed from: i reason: collision with root package name */
public String f43837i;
/* renamed from: j reason: collision with root package name */
public Map<Integer, View> f43838j;
@Metadata(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, 6, 0}, xi = 48)
/* compiled from: AlphaGoodsDetailCard.kt */
public static final class a extends Lambda implements Function0<Unit> {
/* renamed from: a reason: collision with root package name */
public final /* synthetic */ AlphaGoodsDetailCard f43839a;
/* renamed from: b reason: collision with root package name */
public final /* synthetic */ Context f43840b;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public a(AlphaGoodsDetailCard alphaGoodsDetailCard, Context context) {
super(0);
this.f43839a = alphaGoodsDetailCard;
this.f43840b = context;
}
@Override // kotlin.jvm.functions.Function0
public final void invoke() {
this.f43839a.E0(this.f43840b);
}
}
@Metadata(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, 6, 0}, xi = 48)
/* compiled from: AlphaGoodsDetailCard.kt */
public static final class b extends Lambda implements Function0<Unit> {
/* renamed from: a reason: collision with root package name */
public final /* synthetic */ AlphaGoodsDetailCard f43841a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public b(AlphaGoodsDetailCard alphaGoodsDetailCard) {
super(0);
this.f43841a = alphaGoodsDetailCard;
}
@Override // kotlin.jvm.functions.Function0
public final void invoke() {
LiveGoodsBean liveGoodsBean = this.f43841a.f43835g;
if (liveGoodsBean != null) {
this.f43841a.L0(liveGoodsBean);
}
this.f43841a.O();
}
}
@Metadata(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, 6, 0}, xi = 48)
/* compiled from: AlphaGoodsDetailCard.kt */
public static final class c extends Lambda implements Function0<Unit> {
/* renamed from: a reason: collision with root package name */
public final /* synthetic */ AlphaGoodsDetailCard f43842a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public c(AlphaGoodsDetailCard alphaGoodsDetailCard) {
super(0);
this.f43842a = alphaGoodsDetailCard;
}
@Override // kotlin.jvm.functions.Function0
public final void invoke() {
this.f43842a.F0();
}
}
@Metadata(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, 6, 0}, xi = 48)
/* compiled from: AlphaGoodsDetailCard.kt */
public static final class d extends Lambda implements Function0<Unit> {
/* renamed from: a reason: collision with root package name */
public final /* synthetic */ AlphaGoodsDetailCard f43843a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public d(AlphaGoodsDetailCard alphaGoodsDetailCard) {
super(0);
this.f43843a = alphaGoodsDetailCard;
}
@Override // kotlin.jvm.functions.Function0
public final void invoke() {
this.f43843a.H0();
}
}
@Metadata(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, 6, 0}, xi = 48)
/* compiled from: AlphaGoodsDetailCard.kt */
public static final class e extends Lambda implements Function0<Unit> {
/* renamed from: a reason: collision with root package name */
public final /* synthetic */ AlphaGoodsDetailCard f43844a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public e(AlphaGoodsDetailCard alphaGoodsDetailCard) {
super(0);
this.f43844a = alphaGoodsDetailCard;
}
@Override // kotlin.jvm.functions.Function0
public final void invoke() {
this.f43844a.G0();
}
}
@Metadata(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, 6, 0}, xi = 48)
/* compiled from: AlphaGoodsDetailCard.kt */
public static final class f extends Lambda implements Function0<Unit> {
/* renamed from: a reason: collision with root package name */
public final /* synthetic */ AlphaGoodsDetailCard f43845a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public f(AlphaGoodsDetailCard alphaGoodsDetailCard) {
super(0);
this.f43845a = alphaGoodsDetailCard;
}
@Override // kotlin.jvm.functions.Function0
public final void invoke() {
l.b(this.f43845a);
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
@JvmOverloads
public AlphaGoodsDetailCard(Context context, AttributeSet attributeSet, int i10) {
super(context, attributeSet, i10);
Intrinsics.checkNotNullParameter(context, "context");
this.f43838j = new LinkedHashMap();
this.f43837i = "unknown";
ViewGroup.inflate(context, R$layout.f40360alpha_view_goods_detail_card, this);
Resources system = Resources.getSystem();
Intrinsics.checkExpressionValueIsNotNull(system, "Resources.getSystem()");
setLayoutParams(new ConstraintLayout.LayoutParams((int) TypedValue.applyDimension(1, (float) 108, system.getDisplayMetrics()), -2));
setBackgroundResource(R$drawable.alpha_bg_rectangle_white_4_corner);
((TextView) _$_findCachedViewById(R$id.ap7)).setTypeface(Typeface.createFromAsset(context.getAssets(), "fonts/REDNumber-Medium.ttf"));
q1.S(this, 0, new a(this, context), 1, null);
ImageView imageView = (ImageView) _$_findCachedViewById(R$id.closeBtn);
Intrinsics.checkNotNullExpressionValue(imageView, "closeBtn");
q1.S(imageView, 0, new b(this), 1, null);
}
private static /* synthetic */ void getGoodsCardType$annotations() {
}
public final void C0() {
String str;
GoodsExplainInfo explainInfo;
GoodsPlayback playback;
LiveGoodsBean liveGoodsBean = this.f43835g;
String url = (liveGoodsBean == null || (explainInfo = liveGoodsBean.getExplainInfo()) == null || (playback = explainInfo.getPlayback()) == null) ? null : playback.getUrl();
if (url != null && url.length() > 0) {
int i10 = R$id.b4k;
((TextView) _$_findCachedViewById(i10)).setText(getContext().getText(R$string.a2i));
((TextView) _$_findCachedViewById(i10)).setBackground(getContext().getDrawable(R$drawable.alpha_bg_red50_corner1000));
((TextView) _$_findCachedViewById(i10)).setTextColor(ContextCompat.getColor(getContext(), R$color.alpha_goods_card_enable_btn_color));
((TextView) _$_findCachedViewById(i10)).setEnabled(true);
TextView textView = (TextView) _$_findCachedViewById(i10);
Intrinsics.checkNotNullExpressionValue(textView, "explainBtn");
q1.S(textView, 0, new c(this), 1, null);
return;
}
y yVar = y.f131790a;
LiveGoodsBean liveGoodsBean2 = this.f43835g;
if (liveGoodsBean2 == null || (str = liveGoodsBean2.getContractId()) == null) {
str = "";
}
if (yVar.b(str)) {
int i14 = R$id.b4k;
((TextView) _$_findCachedViewById(i14)).setText(getContext().getText(R$string.a3_));
((TextView) _$_findCachedViewById(i14)).setBackground(getContext().getDrawable(R$drawable.alpha_bg_gray50));
((TextView) _$_findCachedViewById(i14)).setTextColor(ContextCompat.getColor(getContext(), R$color.xhsTheme_colorGray200));
((TextView) _$_findCachedViewById(i14)).setEnabled(false);
return;
}
int i15 = R$id.b4k;
((TextView) _$_findCachedViewById(i15)).setText(getContext().getText(R$string.a38));
((TextView) _$_findCachedViewById(i15)).setBackground(getContext().getDrawable(R$drawable.alpha_bg_red50_corner1000));
((TextView) _$_findCachedViewById(i15)).setTextColor(ContextCompat.getColor(getContext(), R$color.alpha_goods_card_enable_btn_color));
((TextView) _$_findCachedViewById(i15)).setEnabled(true);
TextView textView2 = (TextView) _$_findCachedViewById(i15);
Intrinsics.checkNotNullExpressionValue(textView2, "explainBtn");
q1.S(textView2, 0, new d(this), 1, null);
}
public final void D0(LiveGoodsBean liveGoodsBean) {
String str;
GoodsState goodsState = liveGoodsBean.getGoodsState();
boolean z14 = true;
if (goodsState != null && goodsState.isTop()) {
str = "recommend_goods";
} else {
GoodsActivity goodsActivity = liveGoodsBean.getGoodsActivity();
if (goodsActivity == null || !goodsActivity.getSupportSeckill()) {
z14 = false;
}
str = z14 ? "sec-killing goods" : "unknown";
}
this.f43837i = str;
}
public final void E0(Context context) {
m mVar = m.f130812a;
e eVar = new e(this);
LiveGoodsBean liveGoodsBean = this.f43835g;
m.Z(mVar, context, eVar, null, false, liveGoodsBean != null ? liveGoodsBean.isPopup() : false, 12, null);
}
public final void F0() {
String str;
GoodsPlayback playback;
LiveGoodsBean liveGoodsBean = this.f43835g;
if (liveGoodsBean != null) {
fy.l.f79526a.c(liveGoodsBean.getContractId());
Triple<PlayBackGoodsCardInfo, Integer, Integer> u14 = ks.e.u(liveGoodsBean);
PlayBackGoodsCardInfo first = u14.getFirst();
int intValue = u14.getSecond().intValue();
int intValue2 = u14.getThird().intValue();
GoodsExplainInfo explainInfo = liveGoodsBean.getExplainInfo();
if (explainInfo == null || (playback = explainInfo.getPlayback()) == null || (str = playback.getUrl()) == null) {
str = "";
}
first.setPlayBackUrl(str);
v0 v0Var = v0.f131783a;
v0Var.c("alpha-log", null, "startTime=" + intValue + " totalTime=" + intValue2);
Function3<? super PlayBackGoodsCardInfo, ? super Integer, ? super Integer, Unit> function3 = this.f43836h;
if (function3 != null) {
function3.invoke(first, Integer.valueOf(intValue), Integer.valueOf(intValue2));
}
p();
}
}
public final void G0() {
String str;
GoodsLink goodsLink;
String linkSuffix;
GoodsLink goodsLink2;
String uuid = UUID.randomUUID().toString();
Intrinsics.checkNotNullExpressionValue(uuid, "randomUUID().toString()");
K0(uuid);
String str2 = "&contract_track_id=" + uuid;
LiveGoodsBean liveGoodsBean = this.f43835g;
String str3 = "";
if (liveGoodsBean == null || (goodsLink2 = liveGoodsBean.getGoodsLink()) == null || (str = goodsLink2.getLink()) == null) {
str = str3;
}
LiveGoodsBean liveGoodsBean2 = this.f43835g;
if (!(liveGoodsBean2 == null || (goodsLink = liveGoodsBean2.getGoodsLink()) == null || (linkSuffix = goodsLink.getLinkSuffix()) == null)) {
str3 = linkSuffix;
}
Routers.build(str + str3 + str2).open(getContext());
v0.f131783a.c("GoodsPresenter", null, "audience -- linkNew -- " + str + str3 + str2);
ws.a.f151188a.d(0);
i.f131651a.L(true);
}
public final void H0() {
LiveGoodsBean liveGoodsBean = this.f43835g;
if (liveGoodsBean != null) {
fy.l.f79526a.d(liveGoodsBean.getContractId());
if (liveGoodsBean.isSellOut()) {
f0.c(f0.f131631a, R$string.f40699alpha_explain_goods_sell_out, 0, 2, null);
} else {
is.a aVar = is.a.f92323a;
String contractId = liveGoodsBean.getContractId();
String itemId = liveGoodsBean.getItemId();
Context context = getContext();
Intrinsics.checkNotNullExpressionValue(context, "context");
aVar.e(contractId, itemId, context, liveGoodsBean.getSequenceNumber(), 1);
}
int i10 = R$id.b4k;
((TextView) _$_findCachedViewById(i10)).setText(getContext().getText(R$string.a3_));
((TextView) _$_findCachedViewById(i10)).setBackground(getContext().getDrawable(R$drawable.alpha_bg_gray50));
((TextView) _$_findCachedViewById(i10)).setTextColor(ContextCompat.getColor(getContext(), R$color.xhsTheme_colorGray200));
((TextView) _$_findCachedViewById(i10)).setEnabled(false);
}
}
public void I0() {
d2.f102239a.a2(false);
ms.e eVar = ms.e.f107591a;
eVar.h();
v0();
eVar.c();
}
/* JADX WARNING: Removed duplicated region for block: B:47:0x0103 */
public void J0(LiveGoodsBean liveGoodsBean, View view, Function3<? super PlayBackGoodsCardInfo, ? super Integer, ? super Integer, Unit> function3) {
String str;
GoodsPriceInfo goodsPrice;
String str2;
String str3;
String str4;
Intrinsics.checkNotNullParameter(liveGoodsBean, "goods");
this.f43834f = view;
this.f43836h = function3;
this.f43833e = System.currentTimeMillis();
D0(liveGoodsBean);
this.f43835g = liveGoodsBean;
GoodsState goodsState = liveGoodsBean.getGoodsState();
boolean z14 = false;
if (goodsState != null && goodsState.isTop()) {
int i10 = R$id.ffb;
l.q((XYImageView) _$_findCachedViewById(i10));
XYImageView xYImageView = (XYImageView) _$_findCachedViewById(i10);
GoodsCardTagConfig tagConfig = getTagConfig();
if (tagConfig == null || (str4 = tagConfig.getRecommendTagUrl()) == null) {
str4 = "https://picasso-static.xiaohongshu.com/fe-platform/80e4f0074795e6eb82d3030ed46489b722e732f7.png";
}
xYImageView.o(str4, g0.f72750a.t());
} else {
GoodsActivity goodsActivity = liveGoodsBean.getGoodsActivity();
if (goodsActivity != null && goodsActivity.getSupportSeckill()) {
int i14 = R$id.ffb;
l.q((XYImageView) _$_findCachedViewById(i14));
XYImageView xYImageView2 = (XYImageView) _$_findCachedViewById(i14);
GoodsCardTagConfig tagConfig2 = getTagConfig();
if (tagConfig2 == null || (str3 = tagConfig2.getSeckillTagUrl()) == null) {
str3 = "https://picasso-static.xiaohongshu.com/fe-platform/8f666f2b27537598d34529723ec5b1d6471e0da1.png";
}
xYImageView2.o(str3, g0.f72750a.t());
} else {
l.b((XYImageView) _$_findCachedViewById(R$id.ffb));
}
}
((XYImageView) _$_findCachedViewById(R$id.goodsImageView)).o(liveGoodsBean.getGoodsViewInfo().getImage(), g0.f72750a.t());
SubTitle subTitle = liveGoodsBean.getGoodsViewInfo().getSubTitle();
XYTextView xYTextView = (XYTextView) _$_findCachedViewById(R$id.bh3);
String desc = subTitle != null ? subTitle.getDesc() : null;
if (desc != null && desc.length() > 0) {
if (subTitle != null && subTitle.isExamine()) {
str = subTitle.getDesc();
xYTextView.setText(str);
goodsPrice = liveGoodsBean.getGoodsPrice();
TextView textView = (TextView) _$_findCachedViewById(R$id.ap7);
if (goodsPrice.getShowFinalPrice()) {
String finalPriceString = goodsPrice.getFinalPriceString();
if (finalPriceString != null && finalPriceString.length() > 0) {
z14 = true;
}
if (z14) {
str2 = ks.e.L(goodsPrice.getFinalPriceString());
textView.setText(str2);
TextView textView2 = (TextView) _$_findCachedViewById(R$id.b4k);
Intrinsics.checkNotNullExpressionValue(textView2, "explainBtn");
a1.b(textView2, 0.0f, 6.0f, 6.0f, 4.0f, 4.0f);
C0();
l.q(this);
d2.f102239a.a2(true);
AlphaAbsGoodsCard.q0(this, this.f43834f, null, 2, null);
AlphaAbsGoodsCard.s0(this, null, 1, null);
M0(liveGoodsBean, this.f43837i);
}
}
Double salePrice = goodsPrice.getSalePrice();
if (salePrice == null || (r11 = salePrice.toString()) == null) {
String str5 = "";
}
str2 = ks.e.L(str5);
textView.setText(str2);
TextView textView22 = (TextView) _$_findCachedViewById(R$id.b4k);
Intrinsics.checkNotNullExpressionValue(textView22, "explainBtn");
a1.b(textView22, 0.0f, 6.0f, 6.0f, 4.0f, 4.0f);
C0();
l.q(this);
d2.f102239a.a2(true);
AlphaAbsGoodsCard.q0(this, this.f43834f, null, 2, null);
AlphaAbsGoodsCard.s0(this, null, 1, null);
M0(liveGoodsBean, this.f43837i);
}
}
str = liveGoodsBean.getGoodsViewInfo().getTitle();
xYTextView.setText(str);
goodsPrice = liveGoodsBean.getGoodsPrice();
TextView textView3 = (TextView) _$_findCachedViewById(R$id.ap7);
if (goodsPrice.getShowFinalPrice()) {
}
Double salePrice2 = goodsPrice.getSalePrice();
String str52 = "";
str2 = ks.e.L(str52);
textView3.setText(str2);
TextView textView222 = (TextView) _$_findCachedViewById(R$id.b4k);
Intrinsics.checkNotNullExpressionValue(textView222, "explainBtn");
a1.b(textView222, 0.0f, 6.0f, 6.0f, 4.0f, 4.0f);
C0();
l.q(this);
d2.f102239a.a2(true);
AlphaAbsGoodsCard.q0(this, this.f43834f, null, 2, null);
AlphaAbsGoodsCard.s0(this, null, 1, null);
M0(liveGoodsBean, this.f43837i);
}
public final void K0(String str) {
LiveGoodsBean liveGoodsBean = this.f43835g;
if (liveGoodsBean != null) {
fy.l lVar = fy.l.f79526a;
d2 d2Var = d2.f102239a;
String valueOf = String.valueOf(d2Var.z0());
String T = d2Var.T();
String contractId = liveGoodsBean.getContractId();
String couponTrackId = liveGoodsBean.getCouponTrackId();
int type = liveGoodsBean.getType();
Number finalPrice = liveGoodsBean.getGoodsPrice().getFinalPrice();
float floatValue = finalPrice != null ? finalPrice.floatValue() : 0.0f;
boolean J2 = d2Var.J();
Integer valueOf2 = Integer.valueOf(liveGoodsBean.getSource());
Integer sellerRole = liveGoodsBean.getSellerRole();
String str2 = this.f43837i;
GoodsExplainInfo explainInfo = liveGoodsBean.getExplainInfo();
lVar.h(valueOf, T, contractId, couponTrackId, type, floatValue, str, J2, valueOf2, sellerRole, str2, explainInfo != null ? explainInfo.getExplaining() : false, false, liveGoodsBean.getContractId());
}
}
public final void L0(LiveGoodsBean liveGoodsBean) {
String str;
fy.l lVar = fy.l.f79526a;
d2 d2Var = d2.f102239a;
String valueOf = String.valueOf(d2Var.z0());
String T = d2Var.T();
GoodsId goodsId = liveGoodsBean.getGoodsId();
if (goodsId == null || (str = goodsId.getContractId()) == null) {
str = "";
}
String couponTrackId = liveGoodsBean.getCouponTrackId();
int type = liveGoodsBean.getType();
Number finalPrice = liveGoodsBean.getGoodsPrice().getFinalPrice();
float floatValue = finalPrice != null ? finalPrice.floatValue() : 0.0f;
int currentTimeMillis = (int) (System.currentTimeMillis() - this.f43833e);
boolean J2 = d2Var.J();
Integer valueOf2 = Integer.valueOf(liveGoodsBean.getSource());
Integer sellerRole = liveGoodsBean.getSellerRole();
String str2 = this.f43837i;
GoodsExplainInfo explainInfo = liveGoodsBean.getExplainInfo();
lVar.g(valueOf, T, str, couponTrackId, type, floatValue, currentTimeMillis, J2, valueOf2, sellerRole, str2, explainInfo != null ? explainInfo.getExplaining() : false, false);
}
public final void M0(LiveGoodsBean liveGoodsBean, String str) {
String str2;
fy.l lVar = fy.l.f79526a;
d2 d2Var = d2.f102239a;
String valueOf = String.valueOf(d2Var.z0());
String T = d2Var.T();
GoodsId goodsId = liveGoodsBean.getGoodsId();
if (goodsId == null || (str2 = goodsId.getContractId()) == null) {
str2 = "";
}
String couponTrackId = liveGoodsBean.getCouponTrackId();
int type = liveGoodsBean.getType();
Number finalPrice = liveGoodsBean.getGoodsPrice().getFinalPrice();
float floatValue = finalPrice != null ? finalPrice.floatValue() : 0.0f;
boolean J2 = d2Var.J();
Integer valueOf2 = Integer.valueOf(liveGoodsBean.getSource());
Integer sellerRole = liveGoodsBean.getSellerRole();
GoodsExplainInfo explainInfo = liveGoodsBean.getExplainInfo();
lVar.i(valueOf, T, str2, couponTrackId, type, floatValue, J2, valueOf2, sellerRole, str, explainInfo != null ? explainInfo.getExplaining() : false, false);
}
@Override // ms.f
public void O() {
I0();
View view = this.f43834f;
View view2 = null;
View findViewById = view != null ? view.findViewById(R$id.ben) : null;
View view3 = this.f43834f;
if (view3 != null) {
view2 = view3.findViewById(R$id.bh6);
}
if (findViewById != null && view2 != null) {
g.f107596a.b(view2, findViewById, new f(this));
}
}
public View _$_findCachedViewById(int i10) {
Map<Integer, View> map = this.f43838j;
View view = map.get(Integer.valueOf(i10));
if (view != null) {
return view;
}
View findViewById = findViewById(i10);
if (findViewById == null) {
return null;
}
map.put(Integer.valueOf(i10), findViewById);
return findViewById;
}
@Override // ms.f
public void p() {
I0();
l.b(this);
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ AlphaGoodsDetailCard(Context context, AttributeSet attributeSet, int i10, int i14, DefaultConstructorMarker defaultConstructorMarker) {
this(context, (i14 & 2) != 0 ? null : attributeSet, (i14 & 4) != 0 ? 0 : i10);
}
}