得物.apk(点击下载) / ExOwnDialog.java


package com.shizhuang.duapp.modules.product_detail.exown.ui;

import a.f;
import a40.j;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.lifecycle.LiveData;
import androidx.recyclerview.widget.DiffUtil;
import androidx.recyclerview.widget.RecyclerView;
import com.knightboost.weaver.api.Scope;
import com.knightboost.weaver.api.annotations.Insert;
import com.knightboost.weaver.api.annotations.TargetClass;
import com.liulishuo.okdownload.core.cause.EndCause;
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.component.module.NormalModuleAdapter;
import com.shizhuang.duapp.common.extension.ViewExtensionKt;
import com.shizhuang.duapp.common.widget.font.IconFontTextView;
import com.shizhuang.duapp.libs.animation.DuAnimationError;
import com.shizhuang.duapp.libs.duimageloaderview.options.DuRequestOptions;
import com.shizhuang.duapp.modules.du_mall_common.api.LoadResultKt;
import com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomSheetDialog;
import com.shizhuang.duapp.modules.du_mall_common.extension.LiveDataExtensionKt;
import com.shizhuang.duapp.modules.du_mall_common.extension.RepeatOnLifecycleKtKt;
import com.shizhuang.duapp.modules.du_mall_common.utils.exposure.MallModuleExposureHelper;
import com.shizhuang.duapp.modules.du_mall_common.widget.DuIconsTextView;
import com.shizhuang.duapp.modules.product_detail.exown.model.ExOwnCSpuItemModel;
import com.shizhuang.duapp.modules.product_detail.exown.model.ExOwnSkuItemModel;
import com.shizhuang.duapp.modules.product_detail.exown.vm.ExOwnViewModel;
import com.shizhuang.duapp.modules.product_detail.exown.widget.ExOwnDividerDecoration;
import com.shizhuang.duapp.modules.router.ServiceManager;
import com.shizhuang.duapp.modules.router.service.IMediaService;
import gg0.n;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import kotlin.Lazy;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.Metadata;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt__StringsJVMKt;
import org.jetbrains.annotations.NotNull;
import pi.e;
import s9.c;

@Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0006\u0018\u00002\u00020\u0001:\u0002\u0006\u0007B\u0007¢\u0006\u0004\b\u0004\u0010\u0005J\b\u0010\u0003\u001a\u00020\u0002H\u0016¨\u0006\b"}, d2 = {"Lcom/shizhuang/duapp/modules/product_detail/exown/ui/ExOwnDialog;", "Lcom/shizhuang/duapp/modules/du_mall_common/dialog/MallBaseBottomSheetDialog;", "", "onResume", "<init>", "()V", "b", "RvDiffCallback", "du_product_detail_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: ExOwnDialog.kt */
public final class ExOwnDialog extends MallBaseBottomSheetDialog {
    public static ChangeQuickRedirect changeQuickRedirect;
    @NotNull
    public static final b p = new b(null);
    @NotNull
    public final String i = "https://videocdn.poizon.com/node-common/52bb4b39-eaef-2c5d-4eb5-11c0fe10412a.mp4";
    @NotNull
    public final String j = "https://apk.poizon.com/duApp/Android_Config/resource/bg_own_float_stage.png";
    public final Lazy k = LazyKt__LazyJVMKt.lazy(new ExOwnDialog$viewModel$2(this));
    public final NormalModuleAdapter l = new NormalModuleAdapter(false, 1);
    public final Lazy m = LazyKt__LazyJVMKt.lazy(new ExOwnDialog$exposureHelper$2(this));
    @NotNull
    public final Drawable n = new ColorDrawable(Color.parseColor("#fff8f8fb"));
    public HashMap o;

    @Metadata(bv = {}, d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b\u0002\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Lcom/shizhuang/duapp/modules/product_detail/exown/ui/ExOwnDialog$RvDiffCallback;", "Landroidx/recyclerview/widget/DiffUtil$Callback;", "du_product_detail_release"}, k = 1, mv = {1, 4, 2})
    /* compiled from: ExOwnDialog.kt */
    public static final class RvDiffCallback extends DiffUtil.Callback {
        public static ChangeQuickRedirect changeQuickRedirect;

        /* renamed from: a  reason: collision with root package name */
        public final List<Object> f22722a;
        public final List<Object> b;

        public RvDiffCallback(@NotNull List<? extends Object> list, @NotNull List<? extends Object> list2) {
            this.f22722a = list;
            this.b = list2;
        }

        @Override // androidx.recyclerview.widget.DiffUtil.Callback
        public boolean areContentsTheSame(int i, int i3) {
            Object[] objArr = {new Integer(i), new Integer(i3)};
            ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
            Class cls = Integer.TYPE;
            PatchProxyResult proxy = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 277569, new Class[]{cls, cls}, Boolean.TYPE);
            return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : Intrinsics.areEqual(CollectionsKt___CollectionsKt.getOrNull(this.f22722a, i), CollectionsKt___CollectionsKt.getOrNull(this.b, i3));
        }

        @Override // androidx.recyclerview.widget.DiffUtil.Callback
        public boolean areItemsTheSame(int i, int i3) {
            Object[] objArr = {new Integer(i), new Integer(i3)};
            ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
            Class cls = Integer.TYPE;
            PatchProxyResult proxy = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 277568, new Class[]{cls, cls}, Boolean.TYPE);
            if (proxy.isSupported) {
                return ((Boolean) proxy.result).booleanValue();
            }
            Object orNull = CollectionsKt___CollectionsKt.getOrNull(this.f22722a, i);
            Class<?> cls2 = null;
            Class<?> cls3 = orNull != null ? orNull.getClass() : null;
            Object orNull2 = CollectionsKt___CollectionsKt.getOrNull(this.b, i3);
            if (orNull2 != null) {
                cls2 = orNull2.getClass();
            }
            return Intrinsics.areEqual(cls3, cls2);
        }

        @Override // androidx.recyclerview.widget.DiffUtil.Callback
        public int getNewListSize() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 277567, new Class[0], Integer.TYPE);
            return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.b.size();
        }

        @Override // androidx.recyclerview.widget.DiffUtil.Callback
        public int getOldListSize() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 277566, new Class[0], Integer.TYPE);
            return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.f22722a.size();
        }
    }

    public class _boostWeave {
        public static ChangeQuickRedirect changeQuickRedirect;

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onCreate")
        @Keep
        public static void FragmentMethodWeaver_onCreate(ExOwnDialog exOwnDialog, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{exOwnDialog, bundle}, null, changeQuickRedirect, true, 277572, new Class[]{ExOwnDialog.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                ExOwnDialog.V(exOwnDialog, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (exOwnDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.product_detail.exown.ui.ExOwnDialog")) {
                    jn.b.f34396a.fragmentOnCreateMethod(exOwnDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onCreateView")
        @Keep
        public static View FragmentMethodWeaver_onCreateView(@NonNull ExOwnDialog exOwnDialog, @Nullable LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, Bundle bundle) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{exOwnDialog, layoutInflater, viewGroup, bundle}, null, changeQuickRedirect, true, 277573, new Class[]{ExOwnDialog.class, LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
            if (proxy.isSupported) {
                return (View) proxy.result;
            }
            long currentTimeMillis = System.currentTimeMillis();
            View W = ExOwnDialog.W(exOwnDialog, layoutInflater, viewGroup, bundle);
            long currentTimeMillis2 = System.currentTimeMillis();
            if (exOwnDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.product_detail.exown.ui.ExOwnDialog")) {
                jn.b.f34396a.fragmentOnCreateViewMethod(exOwnDialog, currentTimeMillis, currentTimeMillis2);
            }
            return W;
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onResume")
        @Keep
        public static void FragmentMethodWeaver_onResume(ExOwnDialog exOwnDialog) {
            if (!PatchProxy.proxy(new Object[]{exOwnDialog}, null, changeQuickRedirect, true, 277571, new Class[]{ExOwnDialog.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                ExOwnDialog.U(exOwnDialog);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (exOwnDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.product_detail.exown.ui.ExOwnDialog")) {
                    jn.b.f34396a.fragmentOnResumeMethod(exOwnDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onStart")
        @Keep
        public static void FragmentMethodWeaver_onStart(ExOwnDialog exOwnDialog) {
            if (!PatchProxy.proxy(new Object[]{exOwnDialog}, null, changeQuickRedirect, true, 277570, new Class[]{ExOwnDialog.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                ExOwnDialog.T(exOwnDialog);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (exOwnDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.product_detail.exown.ui.ExOwnDialog")) {
                    jn.b.f34396a.fragmentOnStartMethod(exOwnDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onViewCreated")
        @Keep
        public static void FragmentMethodWeaver_onViewCreated(@NonNull ExOwnDialog exOwnDialog, @Nullable View view, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{exOwnDialog, view, bundle}, null, changeQuickRedirect, true, 277574, new Class[]{ExOwnDialog.class, View.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                ExOwnDialog.X(exOwnDialog, view, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (exOwnDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.product_detail.exown.ui.ExOwnDialog")) {
                    jn.b.f34396a.fragmentOnViewCreatedMethod(exOwnDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }
    }

    /* compiled from: DuAnimation.kt */
    public static final class a extends vl.a {
        public static ChangeQuickRedirect changeQuickRedirect;

        public a(String str) {
        }

        @Override // vl.a
        public void onTaskEnd(@NotNull c cVar, @NotNull EndCause endCause, @org.jetbrains.annotations.Nullable Exception exc) {
            if (!PatchProxy.proxy(new Object[]{cVar, endCause, exc}, this, changeQuickRedirect, false, 277562, new Class[]{c.class, EndCause.class, Exception.class}, Void.TYPE).isSupported) {
                if (endCause == EndCause.COMPLETED) {
                    e eVar = e.f37087a;
                    e.d().a();
                    eVar.l(cVar.d);
                    tl.a.w(cVar);
                    return;
                }
                e eVar2 = e.f37087a;
                if (e.d().a()) {
                    Objects.toString(endCause);
                    Objects.toString(exc);
                }
                StringBuilder h12 = f.h("download ");
                h12.append(cVar.d);
                h12.append(" error, cause:");
                h12.append(endCause);
                new DuAnimationError(h12.toString(), exc);
                eVar2.f().remove(cVar);
            }
        }
    }

    /* compiled from: ExOwnDialog.kt */
    public static final class b {
        public static ChangeQuickRedirect changeQuickRedirect;

        public b(DefaultConstructorMarker defaultConstructorMarker) {
        }
    }

    public static void T(ExOwnDialog exOwnDialog) {
        Window window;
        if (!PatchProxy.proxy(new Object[0], exOwnDialog, changeQuickRedirect, false, 277546, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
            Dialog dialog = exOwnDialog.getDialog();
            if (dialog != null && (window = dialog.getWindow()) != null) {
                window.clearFlags(65792);
            }
        }
    }

    public static void U(ExOwnDialog exOwnDialog) {
        if (!PatchProxy.proxy(new Object[0], exOwnDialog, changeQuickRedirect, false, 277551, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
            u21.a aVar = u21.a.f38776a;
            String obj = ((DuIconsTextView) exOwnDialog._$_findCachedViewById(R.id.tvTipsTitle)).getText().toString();
            if (!PatchProxy.proxy(new Object[]{obj}, aVar, u21.a.changeQuickRedirect, false, 282136, new Class[]{String.class}, Void.TYPE).isSupported) {
                i60.b.f33293a.b("trade_common_pageview", "1017", "", j.e(8, "page_title", obj));
            }
        }
    }

    public static void V(ExOwnDialog exOwnDialog, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, exOwnDialog, changeQuickRedirect, false, 277557, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
        }
    }

    public static View W(ExOwnDialog exOwnDialog, LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, exOwnDialog, changeQuickRedirect, false, 277559, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
        return proxy.isSupported ? (View) proxy.result : super.onCreateView(layoutInflater, viewGroup, bundle);
    }

    public static void X(ExOwnDialog exOwnDialog, View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, exOwnDialog, changeQuickRedirect, false, 277561, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            super.onViewCreated(view, bundle);
        }
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog
    @NotNull
    public Drawable K() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 277542, new Class[0], Drawable.class);
        return proxy.isSupported ? (Drawable) proxy.result : this.n;
    }

    public final ExOwnViewModel Y() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 277540, new Class[0], ExOwnViewModel.class);
        return (ExOwnViewModel) (proxy.isSupported ? proxy.result : this.k.getValue());
    }

    public final void Z(long j12, int i3) {
        Context context;
        if (!PatchProxy.proxy(new Object[]{new Long(j12), new Integer(i3)}, this, changeQuickRedirect, false, 277552, new Class[]{Long.TYPE, Integer.TYPE}, Void.TYPE).isSupported && (context = getContext()) != null) {
            IMediaService v4 = ServiceManager.v();
            String valueOf = String.valueOf(Y().getSpuId());
            String valueOf2 = String.valueOf(j12);
            View view = getView();
            v4.showCommentPublishFloatingPage(context, valueOf, valueOf2, 62, i3, view != null ? view.getHeight() : 0);
        }
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomSheetDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog
    public void _$_clearFindViewByIdCache() {
        HashMap hashMap;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 277555, new Class[0], Void.TYPE).isSupported && (hashMap = this.o) != null) {
            hashMap.clear();
        }
    }

    public View _$_findCachedViewById(int i3) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 277554, new Class[]{Integer.TYPE}, View.class);
        if (proxy.isSupported) {
            return (View) proxy.result;
        }
        if (this.o == null) {
            this.o = new HashMap();
        }
        View view = (View) this.o.get(Integer.valueOf(i3));
        if (view != null) {
            return view;
        }
        View view2 = getView();
        if (view2 == null) {
            return null;
        }
        View findViewById = view2.findViewById(i3);
        this.o.put(Integer.valueOf(i3), findViewById);
        return findViewById;
    }

    public final MallModuleExposureHelper getExposureHelper() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 277541, new Class[0], MallModuleExposureHelper.class);
        return (MallModuleExposureHelper) (proxy.isSupported ? proxy.result : this.m.getValue());
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomSheetDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog, com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onCreate(Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 277556, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onCreate(this, bundle);
        }
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomSheetDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog, com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, this, changeQuickRedirect, false, 277558, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
        return proxy.isSupported ? (View) proxy.result : _boostWeave.FragmentMethodWeaver_onCreateView(this, layoutInflater, viewGroup, bundle);
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomSheetDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onDestroyView() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 277553, new Class[0], Void.TYPE).isSupported) {
            super.onDestroyView();
            ExOwnViewModel Y = Y();
            if (!PatchProxy.proxy(new Object[0], Y, ExOwnViewModel.changeQuickRedirect, false, 277640, new Class[0], Void.TYPE).isSupported) {
                LiveDataExtensionKt.d(Y.k, null);
                LiveDataExtensionKt.d(Y.m, null);
            }
            _$_clearFindViewByIdCache();
        }
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomSheetDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog, com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onResume() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 277550, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onResume(this);
        }
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomSheetDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog, com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onStart() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 277545, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onStart(this);
        }
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomSheetDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog, com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onViewCreated(View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, this, changeQuickRedirect, false, 277560, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onViewCreated(this, view, bundle);
        }
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.common.dialog.BaseDialogFragment
    public int p() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 277544, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.style.ExOwnDialogStyle;
    }

    @Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
    public int q() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 277543, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.dialog_ex_own;
    }

    @Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
    public void r(@org.jetbrains.annotations.Nullable View view) {
        LiveData<List<Object>> liveData;
        LiveData<Boolean> liveData2;
        Context context;
        T t;
        if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 277547, new Class[]{View.class}, Void.TYPE).isSupported) {
            if (!(view == null || (context = view.getContext()) == null)) {
                e.j(context, null, qc.b.f37325a, 2);
                String str = this.i;
                e eVar = e.f37087a;
                if (eVar.i()) {
                    String e = eVar.e();
                    if (StringsKt__StringsJVMKt.endsWith$default(str, ".webp", false, 2, null) || StringsKt__StringsJVMKt.endsWith$default(str, ".gif", false, 2, null) || StringsKt__StringsJVMKt.endsWith$default(str, ".png", false, 2, null)) {
                        n.s(mn.a.f35714a, str);
                    } else if (eVar.g(str, e, null) == null) {
                        a aVar = new a(str);
                        if (e.k(str)) {
                            Iterator<T> it2 = eVar.f().iterator();
                            while (true) {
                                if (!it2.hasNext()) {
                                    t = null;
                                    break;
                                }
                                t = it2.next();
                                if (Intrinsics.areEqual(t.d, str)) {
                                    break;
                                }
                            }
                            T t4 = t;
                            if (t4 != null) {
                                t4.r = aVar;
                            }
                        } else {
                            eVar.f().add(tl.a.r(str, e, null, aVar));
                        }
                    }
                    ((DuRequestOptions) a0.a.b(1065, 501, mn.a.f35714a.g(this.j))).y();
                } else {
                    throw new IllegalStateException("You should call DuAnimation.initialize at first!!");
                }
            }
            ViewExtensionKt.h((IconFontTextView) _$_findCachedViewById(R.id.ivClose), new ExOwnDialog$initView$2(this));
            NormalModuleAdapter normalModuleAdapter = this.l;
            normalModuleAdapter.getDelegate().C(ExOwnSkuItemModel.class, 1, null, -1, true, null, null, new ExOwnDialog$initView$$inlined$apply$lambda$1(this));
            normalModuleAdapter.getDelegate().C(ExOwnCSpuItemModel.class, 1, null, -1, true, null, null, ExOwnDialog$initView$3$2.INSTANCE);
            RecyclerView recyclerView = (RecyclerView) _$_findCachedViewById(R.id.recyclerView);
            recyclerView.setLayoutManager(this.l.getGridLayoutManager(recyclerView.getContext()));
            recyclerView.setAdapter(this.l);
            recyclerView.addItemDecoration(new ExOwnDividerDecoration(this.l));
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 277549, new Class[0], Void.TYPE).isSupported) {
                Y().fetchData();
                LoadResultKt.i(Y().getPageResult(), getViewLifecycleOwner(), new ExOwnDialog$initData$1(this), new ExOwnDialog$initData$2(this), new ExOwnDialog$initData$3(this));
                LoadResultKt.h(Y().getLoadStatus(), getViewLifecycleOwner(), new ExOwnDialog$initData$4(this), new ExOwnDialog$initData$5(this));
                Y().e().observe(getViewLifecycleOwner(), new ExOwnDialog$initData$6(this));
                ExOwnViewModel Y = Y();
                PatchProxyResult proxy = PatchProxy.proxy(new Object[0], Y, ExOwnViewModel.changeQuickRedirect, false, 277620, new Class[0], LiveData.class);
                if (proxy.isSupported) {
                    liveData = (LiveData) proxy.result;
                } else {
                    liveData = Y.i;
                }
                LiveDataExtensionKt.b(liveData, getViewLifecycleOwner(), new ExOwnDialog$initData$7(this));
                ExOwnViewModel Y2 = Y();
                PatchProxyResult proxy2 = PatchProxy.proxy(new Object[0], Y2, ExOwnViewModel.changeQuickRedirect, false, 277622, new Class[0], LiveData.class);
                if (proxy2.isSupported) {
                    liveData2 = (LiveData) proxy2.result;
                } else {
                    liveData2 = Y2.l;
                }
                LiveDataExtensionKt.b(liveData2, getViewLifecycleOwner(), new ExOwnDialog$initData$8(this));
                RepeatOnLifecycleKtKt.b(Y().g(), getViewLifecycleOwner(), null, new ExOwnDialog$initData$9(this, null), 2);
            }
        }
    }
}