package iw; import cd.k; import com.meituan.robust.ChangeQuickRedirect; import com.meituan.robust.PatchProxy; import com.shizhuang.duapp.modules.auction.detail.callbacks.AucDetailCustomServiceCallback; import com.shizhuang.duapp.modules.auction.detail.model.AucBrandModel; import com.shizhuang.duapp.modules.auction.detail.model.AucDetailInfoModel; import com.shizhuang.duapp.modules.auction.detail.model.AucMultiPriceModel; import com.shizhuang.duapp.modules.auction.detail.model.AuctionDetailGroupModel; import com.shizhuang.duapp.modules.auction.detail.model.AuctionDetailModel; import com.shizhuang.duapp.modules.router.ServiceManager; import com.shizhuang.duapp.modules.router.model.KfChatOption; import com.shizhuang.duapp.modules.router.model.KfProductInfo; /* compiled from: AucDetailCustomServiceCallback.kt */ public final class a implements Runnable { public static ChangeQuickRedirect changeQuickRedirect; public final /* synthetic */ AucDetailCustomServiceCallback b; public a(AucDetailCustomServiceCallback aucDetailCustomServiceCallback) { this.b = aucDetailCustomServiceCallback; } public final void run() { AuctionDetailModel value; AucDetailInfoModel detail; AucMultiPriceModel aucPrices; if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 66857, new Class[0], Void.TYPE).isSupported && (value = this.b.b().d().getValue()) != null && (detail = value.getDetail()) != null) { AuctionDetailGroupModel value2 = this.b.b().c().getValue(); long j = 0; long price = (value2 == null || (aucPrices = value2.getAucPrices()) == null) ? 0 : aucPrices.getPrice(); AuctionDetailModel value3 = this.b.b().d().getValue(); AucBrandModel brand = value3 != null ? value3.getBrand() : null; KfProductInfo kfProductInfo = new KfProductInfo(); kfProductInfo.setSpuId(detail.getSpuId()); kfProductInfo.setUrl("https://m.poizon.com/router/product/ProductDetail?spuId=" + this.b.b().getSpuId()); kfProductInfo.setSkuName(detail.getTitle()); kfProductInfo.setLogoUrl(detail.getLogoUrl()); if (brand != null) { j = brand.getBrandId(); } kfProductInfo.setBrandId(j); kfProductInfo.setBrandLogo(brand != null ? brand.getBrandLogo() : null); kfProductInfo.setBrandName(brand != null ? brand.getBrandName() : null); kfProductInfo.setPrice(k.e(price, false, null, 3)); KfChatOption kfChatOption = new KfChatOption(); kfChatOption.sourceId = "10002"; kfChatOption.productInfo = kfProductInfo; kfChatOption.productCategory = Integer.valueOf(detail.getLevel1CategoryId()); kfChatOption.spuId = Long.valueOf(detail.getSpuId()); ServiceManager.F().startChattingActivity(this.b.f13641c, kfChatOption); } } }