package com.shizhuang.duapp.modules.product_detail.detailv3.callbacks; import android.animation.Animator; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.animation.PropertyValuesHolder; import android.graphics.Bitmap; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.os.Build; import android.os.Bundle; import android.util.Property; import android.view.View; import android.view.ViewStub; import android.widget.FrameLayout; import android.widget.ImageView; import androidx.constraintlayout.widget.ConstraintLayout; import androidx.core.view.ViewKt; import androidx.core.widget.ContentLoadingProgressBar; import androidx.lifecycle.Observer; import androidx.lifecycle.ViewModelLazy; import androidx.recyclerview.widget.RecyclerView; import co.c; import com.meituan.robust.ChangeQuickRedirect; import com.meituan.robust.PatchProxy; import com.meituan.robust.PatchProxyResult; import com.shizhuang.duapp.R; import com.shizhuang.duapp.common.event.FavoriteChangeEvent; import com.shizhuang.duapp.common.utils.livebus.PageEventBus; import com.shizhuang.duapp.filament.biz.FilamentABTest; import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView; import com.shizhuang.duapp.libs.duimageloaderview.options.DuScaleType; import com.shizhuang.duapp.modules.du_mall_common.constant.MallABTest; import com.shizhuang.duapp.modules.du_mall_common.widget.ar_3d.Mall3dArCaptureButton; import com.shizhuang.duapp.modules.du_mall_common.widget.ar_3d.Mall3dArRecordIconTipsPop; import com.shizhuang.duapp.modules.du_mall_common.widget.ar_3d.Mall3dArShareIconTipsPop; import com.shizhuang.duapp.modules.product_detail.buy.vm.BuyViewModel; import com.shizhuang.duapp.modules.product_detail.detailv3.helper.PmTDSpaceSpuListHelper; import com.shizhuang.duapp.modules.product_detail.detailv3.model.PmArProductWearJumpModel; import com.shizhuang.duapp.modules.product_detail.detailv3.model.PmArSkuRelationModel; import com.shizhuang.duapp.modules.product_detail.detailv3.model.PmDetailInfoModel; import com.shizhuang.duapp.modules.product_detail.detailv3.model.PmImageInfoModel; import com.shizhuang.duapp.modules.product_detail.detailv3.model.PmModel; import com.shizhuang.duapp.modules.product_detail.detailv3.model.PmSpuImageModel; import com.shizhuang.duapp.modules.product_detail.detailv3.model.PmThreeDimensionItemModel; import com.shizhuang.duapp.modules.product_detail.detailv3.threedimesion.IThreeDimensionHelper; import com.shizhuang.duapp.modules.product_detail.detailv3.threedimesion.PmTDSpaceDataViewModel; import com.shizhuang.duapp.modules.product_detail.detailv3.threedimesion.PmThreeDimensionHelper; import com.shizhuang.duapp.modules.product_detail.detailv3.threedimesion.PmThreeDimensionViewModel; import com.shizhuang.duapp.modules.product_detail.detailv3.threedimesion.filament.PmThreeDimensionFmHelper; import com.shizhuang.duapp.modules.product_detail.detailv3.ui.ProductDetailActivityV3; import com.shizhuang.duapp.modules.product_detail.detailv3.vm.PmFocusMapViewModel; import df.h; import df1.a; import fd.n; import fi.b; import java.util.HashMap; import kotlin.Lazy; import kotlin.LazyKt__LazyJVMKt; import kotlin.Metadata; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.Reflection; import o5.i; import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMode; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import q01.r; import q01.s; @Metadata(bv = {}, d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0007¨\u0006\u0006"}, d2 = {"Lcom/shizhuang/duapp/modules/product_detail/detailv3/callbacks/Pm3dCallback;", "Lcom/shizhuang/duapp/modules/product_detail/detailv3/callbacks/PmBaseViewCallback;", "Lcom/shizhuang/duapp/common/event/FavoriteChangeEvent;", "event", "", "onFavoriteChange", "du_product_detail_release"}, k = 1, mv = {1, 4, 2}) /* compiled from: Pm3dCallback.kt */ public final class Pm3dCallback extends PmBaseViewCallback { public static ChangeQuickRedirect changeQuickRedirect; public HashMap A; /* renamed from: g reason: collision with root package name */ public boolean f21959g; /* renamed from: h reason: collision with root package name */ public boolean f21960h; public final Lazy i; public final Lazy j; public final Lazy k; public final Lazy l; public final ViewStub m; public boolean n; public boolean o; public IThreeDimensionHelper p; /* renamed from: q reason: collision with root package name */ public final Lazy f21961q = LazyKt__LazyJVMKt.lazy(new Pm3dCallback$shareIconTipsPop$2(this)); public final Lazy r = LazyKt__LazyJVMKt.lazy(new Pm3dCallback$captureVideoTipsPopTipsPop$2(this)); public final Lazy s = LazyKt__LazyJVMKt.lazy(Pm3dCallback$compositeDisposable$2.INSTANCE); public Bitmap t; /* renamed from: u reason: collision with root package name */ public PmTDSpaceSpuListHelper f21962u; /* renamed from: v reason: collision with root package name */ public boolean f21963v; public final Observer<PmArSkuRelationModel> w = new Pm3dCallback$threeDSelectSkuArInfoObserver$1(this); public final Observer<PmArSkuRelationModel> x = new Pm3dCallback$productSelectSkuArInfoObserver$1(this); public final PmThreeDimensionHelper.OnThreeDimensionCallback y = new Pm3dCallback$threeDimensionCallback$1(this); public final ProductDetailActivityV3 z; public Pm3dCallback(@NotNull ProductDetailActivityV3 productDetailActivityV3) { super(productDetailActivityV3); this.z = productDetailActivityV3; this.i = new ViewModelLazy(Reflection.getOrCreateKotlinClass(PmFocusMapViewModel.class), new Pm3dCallback$$special$$inlined$viewModels$2(productDetailActivityV3), new Pm3dCallback$$special$$inlined$viewModels$1(productDetailActivityV3)); this.j = new ViewModelLazy(Reflection.getOrCreateKotlinClass(PmThreeDimensionViewModel.class), new Pm3dCallback$$special$$inlined$viewModels$4(productDetailActivityV3), new Pm3dCallback$$special$$inlined$viewModels$3(productDetailActivityV3)); this.k = new ViewModelLazy(Reflection.getOrCreateKotlinClass(BuyViewModel.class), new Pm3dCallback$$special$$inlined$viewModels$6(productDetailActivityV3), new Pm3dCallback$$special$$inlined$viewModels$5(productDetailActivityV3)); this.l = new ViewModelLazy(Reflection.getOrCreateKotlinClass(PmTDSpaceDataViewModel.class), new Pm3dCallback$$special$$inlined$viewModels$8(productDetailActivityV3), new Pm3dCallback$$special$$inlined$viewModels$7(productDetailActivityV3)); this.m = (ViewStub) productDetailActivityV3.findViewById(R.id.cover3dStub); } public View d(int i3) { PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 262313, new Class[]{Integer.TYPE}, View.class); if (proxy.isSupported) { return (View) proxy.result; } if (this.A == null) { this.A = new HashMap(); } View view = (View) this.A.get(Integer.valueOf(i3)); if (view != null) { return view; } View containerView = getContainerView(); if (containerView == null) { return null; } View findViewById = containerView.findViewById(i3); this.A.put(Integer.valueOf(i3), findViewById); return findViewById; } public final Animator e(boolean z4) { PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Byte(z4 ? (byte) 1 : 0)}, this, changeQuickRedirect, false, 262306, new Class[]{Boolean.TYPE}, Animator.class); if (proxy.isSupported) { return (Animator) proxy.result; } int i3 = b.i(this.f13641c); int f = b.f(this.f13641c); ((FrameLayout) d(R.id.leftLayout)).setVisibility(0); float f12 = (float) i3; ((FrameLayout) d(R.id.leftLayout)).setPivotX(f12); ((FrameLayout) d(R.id.leftLayout)).setPivotY(((float) f) / ((float) 2)); ((FrameLayout) d(R.id.leftLayout)).setCameraDistance(((float) 10) * f12); ((ConstraintLayout) d(R.id.mainContent)).setPivotX(i.f36333a); ((ConstraintLayout) d(R.id.mainContent)).setPivotY((float) (((ConstraintLayout) d(R.id.mainContent)).getHeight() / 2)); ((ConstraintLayout) d(R.id.mainContent)).setCameraDistance((float) (((ConstraintLayout) d(R.id.mainContent)).getWidth() * 10)); float b = (float) b.b((float) 40); Animator k6 = k((ConstraintLayout) d(R.id.mainContent), z4, i.f36333a, 75.0f, i.f36333a, b); Animator k12 = k((FrameLayout) d(R.id.leftLayout), z4, -75.0f, i.f36333a, -f12, b - f12); Animator i12 = i(d(R.id.mainContentMask), z4, i.f36333a, 0.3f); i12.setDuration(500); Animator i13 = i(d(R.id.leftLayoutMask), z4, 1.0f, 0.1f); i13.setDuration(500); AnimatorSet animatorSet = new AnimatorSet(); animatorSet.playTogether(k6, k12, i12, i13); animatorSet.setDuration(500L); return animatorSet; } /* JADX WARNING: Removed duplicated region for block: B:100:? A[RETURN, SYNTHETIC] */ /* JADX WARNING: Removed duplicated region for block: B:91:0x01f1 */ public final void f(PmArSkuRelationModel pmArSkuRelationModel, boolean z4) { String str; Long l12; boolean z5; boolean z12; boolean z13; boolean z14; PmImageInfoModel image; PmSpuImageModel spuImage; PmThreeDimensionItemModel threeDimension; PmDetailInfoModel detail; int i3 = 0; boolean z15 = true; Object[] objArr = {pmArSkuRelationModel, new Byte(z4 ? (byte) 1 : 0)}; ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect; Class cls = Boolean.TYPE; if (!PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 262289, new Class[]{PmArSkuRelationModel.class, cls}, Void.TYPE).isSupported) { a aVar = a.f31478a; String str2 = ""; if (aVar.a() || (!aVar.b() ? (str = pmArSkuRelationModel.getArFile()) == null : (str = pmArSkuRelationModel.getArFileBD()) == null)) { str = str2; } PmTDSpaceDataViewModel p12 = p(); long spuId = z4 ? p().getSpuId() : c().getSpuId(); long j12 = 0; if (z4) { l12 = p().getSkuId().getValue(); if (l12 == null) { l12 = 0L; } } else { l12 = Long.valueOf(c().getSkuId()); } long longValue = l12.longValue(); if (!z4) { j12 = c().A(); } if (z4) { PmTDSpaceDataViewModel p13 = p(); PatchProxyResult proxy = PatchProxy.proxy(new Object[0], p13, PmTDSpaceDataViewModel.changeQuickRedirect, false, 269520, new Class[0], String.class); if (proxy.isSupported) { str2 = (String) proxy.result; } else { PmDetailInfoModel value = p13.f22186h.getValue(); String detailTitle = value != null ? value.detailTitle() : null; if (detailTitle != null) { str2 = detailTitle; } } } else { str2 = c().y(); } PmArProductWearJumpModel pmArProductWearJumpModel = new PmArProductWearJumpModel(spuId, longValue, str, j12, str2); if (!PatchProxy.proxy(new Object[]{pmArProductWearJumpModel}, p12, PmTDSpaceDataViewModel.changeQuickRedirect, false, 269523, new Class[]{PmArProductWearJumpModel.class}, Void.TYPE).isSupported) { p12.k = pmArProductWearJumpModel; } boolean z16 = str.length() > 0; PatchProxyResult proxy2 = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262290, new Class[0], cls); if (proxy2.isSupported) { z5 = ((Boolean) proxy2.result).booleanValue(); } else { PmModel value2 = c().getModel().getValue(); z5 = (value2 == null || (detail = value2.getDetail()) == null || !detail.isShoe()) ? false : true; } if (z5 && z16) { PatchProxyResult proxy3 = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262292, new Class[0], cls); if (proxy3.isSupported) { z13 = ((Boolean) proxy3.result).booleanValue(); } else { z13 = Build.VERSION.SDK_INT >= 26 && is.a.f34071a.c() && h.e(this.f13641c) == 2 && ((Boolean) n.c("arlzmafile", "ARSwitch", cls, Boolean.FALSE)).booleanValue(); } if (z13) { PatchProxyResult proxy4 = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262291, new Class[0], cls); if (proxy4.isSupported) { z14 = ((Boolean) proxy4.result).booleanValue(); } else { PmModel value3 = c().getModel().getValue(); z14 = (value3 == null || (image = value3.getImage()) == null || (spuImage = image.getSpuImage()) == null || (threeDimension = spuImage.getThreeDimension()) == null || !threeDimension.showAr()) ? false : true; } if (z14) { z12 = true; this.f21963v = z12; if (!z4) { ImageView imageView = (ImageView) d(R.id.iv3dShareArWear); if (!this.f21963v || !MallABTest.f13351a.F()) { z15 = false; } if (!z15) { i3 = 8; } imageView.setVisibility(i3); return; } return; } } } z12 = false; this.f21963v = z12; if (!z4) { } } } public final void g(boolean z4) { int i3 = 0; if (!PatchProxy.proxy(new Object[]{new Byte(z4 ? (byte) 1 : 0)}, this, changeQuickRedirect, false, 262287, new Class[]{Boolean.TYPE}, Void.TYPE).isSupported) { ((Mall3dArCaptureButton) d(R.id.btnCamera)).setVisibility(z4 ? 0 : 8); RecyclerView recyclerView = (RecyclerView) d(R.id.rv3dSpu); if (!z4) { i3 = 8; } recyclerView.setVisibility(i3); if (!z4) { ((ContentLoadingProgressBar) d(R.id.loading3dProgressBar)).hide(); } } } public final void h(boolean z4) { boolean z5; int i3 = 0; Object[] objArr = {new Byte(z4 ? (byte) 1 : 0)}; ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect; Class cls = Boolean.TYPE; if (!PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 262286, new Class[]{cls}, Void.TYPE).isSupported) { Mall3dArCaptureButton mall3dArCaptureButton = (Mall3dArCaptureButton) d(R.id.btnCamera); PatchProxyResult proxy = PatchProxy.proxy(new Object[0], mall3dArCaptureButton, Mall3dArCaptureButton.changeQuickRedirect, false, 127745, new Class[0], cls); if (proxy.isSupported) { z5 = ((Boolean) proxy.result).booleanValue(); } else { z5 = mall3dArCaptureButton.d == 3; } if (z5) { ((ImageView) d(R.id.btn3dFavorite)).setVisibility(8); ((ImageView) d(R.id.btn3dBuy)).setVisibility(8); PmTDSpaceSpuListHelper pmTDSpaceSpuListHelper = this.f21962u; if (pmTDSpaceSpuListHelper != null) { pmTDSpaceSpuListHelper.a(false); } o().a(); return; } ((ImageView) d(R.id.btn3dFavorite)).setVisibility(z4 && !this.f21960h ? 0 : 8); ImageView imageView = (ImageView) d(R.id.btn3dBuy); if (!(z4 && p().k())) { i3 = 8; } imageView.setVisibility(i3); PmTDSpaceSpuListHelper pmTDSpaceSpuListHelper2 = this.f21962u; if (pmTDSpaceSpuListHelper2 != null) { pmTDSpaceSpuListHelper2.a(true); } o().e(); } } public final Animator i(View view, boolean z4, float f, float f12) { Object[] objArr = {view, new Byte(z4 ? (byte) 1 : 0), new Float(f), new Float(f12)}; ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect; Class cls = Float.TYPE; PatchProxyResult proxy = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 262305, new Class[]{View.class, Boolean.TYPE, cls, cls}, Animator.class); if (proxy.isSupported) { return (Animator) proxy.result; } return ObjectAnimator.ofPropertyValuesHolder(view, j(z4, View.ALPHA, f, f12)); } @Override // com.shizhuang.duapp.modules.du_mall_common.utils.page.PageViewCallback, com.shizhuang.duapp.modules.du_mall_common.utils.page.IPageViewCallback public void initData() { if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262288, new Class[0], Void.TYPE).isSupported) { super.initData(); PageEventBus.h(this.f13641c).a(s.class).observe(this.f13641c, new Pm3dCallback$initData$1(this)); PageEventBus.h(this.f13641c).a(r.class).observe(this.f13641c, new Pm3dCallback$initData$2(this)); q().d().observe(this.f13641c, new Pm3dCallback$initData$3(this)); q().e().observe(this.f13641c, new Pm3dCallback$initData$4(this)); p().getModel().observe(this.f13641c, new Pm3dCallback$initData$5(this)); p().c().observe(this.f13641c, new Pm3dCallback$initData$6(this)); p().h().observe(this.f13641c, new Pm3dCallback$initData$7(this)); } } @Override // com.shizhuang.duapp.modules.du_mall_common.utils.page.PageViewCallback, com.shizhuang.duapp.modules.du_mall_common.utils.page.IPageViewCallback public void initView(@Nullable Bundle bundle) { if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 262283, new Class[]{Bundle.class}, Void.TYPE).isSupported) { super.initView(bundle); FilamentABTest.yeezyPreLoad(this.z); } } public final PropertyValuesHolder j(boolean z4, Property<?, Float> property, float f, float f12) { Object[] objArr = {new Byte(z4 ? (byte) 1 : 0), property, new Float(f), new Float(f12)}; ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect; Class cls = Float.TYPE; PatchProxyResult proxy = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 262303, new Class[]{Boolean.TYPE, Property.class, cls, cls}, PropertyValuesHolder.class); if (proxy.isSupported) { return (PropertyValuesHolder) proxy.result; } if (z4) { return PropertyValuesHolder.ofFloat(property, f, f12); } return PropertyValuesHolder.ofFloat(property, f12, f); } public final Animator k(View view, boolean z4, float f, float f12, float f13, float f14) { Object[] objArr = {view, new Byte(z4 ? (byte) 1 : 0), new Float(f), new Float(f12), new Float(f13), new Float(f14)}; ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect; Class cls = Float.TYPE; PatchProxyResult proxy = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 262304, new Class[]{View.class, Boolean.TYPE, cls, cls, cls, cls}, Animator.class); if (proxy.isSupported) { return (Animator) proxy.result; } ObjectAnimator ofPropertyValuesHolder = ObjectAnimator.ofPropertyValuesHolder(view, j(z4, View.ROTATION_Y, f, f12), j(z4, View.TRANSLATION_X, f13, f14)); ofPropertyValuesHolder.setDuration(500L); ofPropertyValuesHolder.setInterpolator(null); return ofPropertyValuesHolder; } public final Mall3dArRecordIconTipsPop l() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262281, new Class[0], Mall3dArRecordIconTipsPop.class); return (Mall3dArRecordIconTipsPop) (proxy.isSupported ? proxy.result : this.r.getValue()); } public final fj1.a m() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262282, new Class[0], fj1.a.class); return (fj1.a) (proxy.isSupported ? proxy.result : this.s.getValue()); } public final PmFocusMapViewModel n() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262276, new Class[0], PmFocusMapViewModel.class); return (PmFocusMapViewModel) (proxy.isSupported ? proxy.result : this.i.getValue()); } public final Mall3dArShareIconTipsPop o() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262280, new Class[0], Mall3dArShareIconTipsPop.class); return (Mall3dArShareIconTipsPop) (proxy.isSupported ? proxy.result : this.f21961q.getValue()); } @Override // com.shizhuang.duapp.modules.du_mall_common.utils.page.PageViewCallback, com.shizhuang.duapp.modules.du_mall_common.utils.page.IPageViewCallback public boolean onBackPressed() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262310, new Class[0], Boolean.TYPE); if (proxy.isSupported) { return ((Boolean) proxy.result).booleanValue(); } if (this.f21959g) { this.f21959g = false; r(); m().dispose(); return true; } else if (!Intrinsics.areEqual(n().c().getValue(), Boolean.TRUE)) { return super.onBackPressed(); } else { n().c().setValue(Boolean.FALSE); return true; } } @Override // com.shizhuang.duapp.modules.du_mall_common.utils.page.PageViewCallback, com.shizhuang.duapp.modules.du_mall_common.utils.page.IPageViewCallback public void onCreate() { if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262309, new Class[0], Void.TYPE).isSupported) { super.onCreate(); EventBus.b().k(this); } } @Override // com.shizhuang.duapp.modules.du_mall_common.utils.page.PageViewCallback, com.shizhuang.duapp.modules.du_mall_common.utils.page.IPageViewCallback public void onDestroy() { if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262312, new Class[0], Void.TYPE).isSupported) { super.onDestroy(); if (this.n) { ((Mall3dArCaptureButton) d(R.id.btnCamera)).e(); o().c(); l().a(); m().dispose(); } IThreeDimensionHelper iThreeDimensionHelper = this.p; if (iThreeDimensionHelper != null) { iThreeDimensionHelper.release(); } EventBus.b().n(this); } } @Subscribe(threadMode = ThreadMode.MAIN) public final void onFavoriteChange(@NotNull FavoriteChangeEvent favoriteChangeEvent) { ImageView imageView; boolean z4 = true; if (!PatchProxy.proxy(new Object[]{favoriteChangeEvent}, this, changeQuickRedirect, false, 262311, new Class[]{FavoriteChangeEvent.class}, Void.TYPE).isSupported && favoriteChangeEvent.getSpuId() == p().getSpuId() && (imageView = (ImageView) d(R.id.btn3dFavorite)) != null) { if (favoriteChangeEvent.getFavoriteCount() <= 0) { z4 = false; } imageView.setSelected(z4); } } public final PmTDSpaceDataViewModel p() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262279, new Class[0], PmTDSpaceDataViewModel.class); return (PmTDSpaceDataViewModel) (proxy.isSupported ? proxy.result : this.l.getValue()); } public final PmThreeDimensionViewModel q() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262277, new Class[0], PmThreeDimensionViewModel.class); return (PmThreeDimensionViewModel) (proxy.isSupported ? proxy.result : this.j.getValue()); } public final void r() { if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262301, new Class[0], Void.TYPE).isSupported) { if (this.o) { IThreeDimensionHelper iThreeDimensionHelper = this.p; if (iThreeDimensionHelper != null) { iThreeDimensionHelper.hideThreeDimension(); } this.o = false; if (p().l()) { p().a(PmTDSpaceDataViewModel.TDSpaceSwitchState.INITIAL); } } if (this.n) { this.m.setVisibility(0); ((ImageView) d(R.id.iv3dBack)).setVisibility(8); ((ImageView) d(R.id.iv3dShare)).setVisibility(8); ((ImageView) d(R.id.iv3dShareArWear)).setVisibility(8); ((Mall3dArCaptureButton) d(R.id.btnCamera)).e(); l().a(); o().c(); PmTDSpaceDataViewModel p12 = p(); long spuId = c().getSpuId(); if (!PatchProxy.proxy(new Object[]{new Long(spuId)}, p12, PmTDSpaceDataViewModel.changeQuickRedirect, false, 269528, new Class[]{Long.TYPE}, Void.TYPE).isSupported) { p12.b = spuId; } } } } /* JADX DEBUG: Multi-variable search result rejected for r2v11, resolved type: com.shizhuang.duapp.modules.product_detail.detailv3.threedimesion.filament.PmThreeDimensionFmHelper */ /* JADX WARN: Multi-variable type inference failed */ public final void s() { IThreeDimensionHelper iThreeDimensionHelper; PmThreeDimensionHelper pmThreeDimensionHelper; PmImageInfoModel image; PmSpuImageModel spuImage; PmThreeDimensionItemModel threeDimension; if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262293, new Class[0], Void.TYPE).isSupported) { IThreeDimensionHelper iThreeDimensionHelper2 = this.p; if (iThreeDimensionHelper2 != null) { iThreeDimensionHelper2.release(); } PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 262294, new Class[0], IThreeDimensionHelper.class); if (proxy.isSupported) { iThreeDimensionHelper = (IThreeDimensionHelper) proxy.result; } else { PmModel value = p().getModel().getValue(); if (FilamentABTest.isHitTest(this.z, (value == null || (image = value.getImage()) == null || (spuImage = image.getSpuImage()) == null || (threeDimension = spuImage.getThreeDimension()) == null) ? false : threeDimension.isMultiMesh())) { PmThreeDimensionFmHelper pmThreeDimensionFmHelper = new PmThreeDimensionFmHelper((FrameLayout) d(R.id.layFullscreen), this.z); PmThreeDimensionHelper.OnThreeDimensionCallback onThreeDimensionCallback = this.y; boolean z4 = PatchProxy.proxy(new Object[]{onThreeDimensionCallback}, pmThreeDimensionFmHelper, PmThreeDimensionFmHelper.changeQuickRedirect, false, 269689, new Class[]{PmThreeDimensionHelper.OnThreeDimensionCallback.class}, Void.TYPE).isSupported; pmThreeDimensionHelper = pmThreeDimensionFmHelper; if (!z4) { pmThreeDimensionFmHelper.o = onThreeDimensionCallback; pmThreeDimensionHelper = pmThreeDimensionFmHelper; } } else { PmThreeDimensionHelper pmThreeDimensionHelper2 = new PmThreeDimensionHelper((FrameLayout) d(R.id.layFullscreen), this.z); PmThreeDimensionHelper.OnThreeDimensionCallback onThreeDimensionCallback2 = this.y; boolean z5 = PatchProxy.proxy(new Object[]{onThreeDimensionCallback2}, pmThreeDimensionHelper2, PmThreeDimensionHelper.changeQuickRedirect, false, 269585, new Class[]{PmThreeDimensionHelper.OnThreeDimensionCallback.class}, Void.TYPE).isSupported; pmThreeDimensionHelper = pmThreeDimensionHelper2; if (!z5) { pmThreeDimensionHelper2.f22191g = onThreeDimensionCallback2; pmThreeDimensionHelper = pmThreeDimensionHelper2; } } iThreeDimensionHelper = pmThreeDimensionHelper; } this.p = iThreeDimensionHelper; } } public final void t(boolean z4) { int i3 = 0; if (!PatchProxy.proxy(new Object[]{new Byte(z4 ? (byte) 1 : 0)}, this, changeQuickRedirect, false, 262302, new Class[]{Boolean.TYPE}, Void.TYPE).isSupported) { ViewStub viewStub = (ViewStub) this.f13641c.findViewById(R.id.stub3dBgView); if (viewStub != null) { ViewKt.setVisible(viewStub, z4); } DuImageLoaderView duImageLoaderView = (DuImageLoaderView) this.f13641c.findViewById(R.id._3dBgView); if (duImageLoaderView != null) { if (!z4) { i3 = 8; } duImageLoaderView.setVisibility(i3); ColorDrawable colorDrawable = new ColorDrawable(Color.parseColor("#FFA3A6B0")); c p0 = duImageLoaderView.i("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/common/animation3d_bg_product_detail_3d.webp").p0(DuScaleType.CENTER_CROP); p0.C = true; p0.l0(colorDrawable).c0(colorDrawable).x(); } } } }