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


package com.shizhuang.duapp.modules.common.dialog;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.os.BundleKt;
import androidx.recyclerview.widget.LinearLayoutManager;
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.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.dialog.sheet.BaseBottomSheetDialogFragment;
import com.shizhuang.duapp.common.extension.ViewExtensionKt;
import com.shizhuang.duapp.common.widget.shapeview.ShapeLinearLayout;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.modules.aftersale.refund.model.OrderRefundTimelineItem;
import com.shizhuang.duapp.modules.aftersale.refund.model.OrderRefundTimelineModel;
import com.shizhuang.duapp.modules.aftersale.refund.model.SpeedRefundContent;
import com.shizhuang.duapp.modules.du_mall_common.widget.DuIconsTextView;
import gy.c;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import jn.b;
import kotlin.Metadata;
import kotlin.TuplesKt;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import nc.j;
import org.jetbrains.annotations.NotNull;

@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001:\u0001\u0004B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0005"}, d2 = {"Lcom/shizhuang/duapp/modules/common/dialog/OrderRefundTimelineDialog;", "Lcom/shizhuang/duapp/common/dialog/sheet/BaseBottomSheetDialogFragment;", "<init>", "()V", "a", "du_order_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: OrderRefundTimelineDialog.kt */
public final class OrderRefundTimelineDialog extends BaseBottomSheetDialogFragment {
    public static ChangeQuickRedirect changeQuickRedirect;
    @NotNull

    /* renamed from: h  reason: collision with root package name */
    public static final a f11468h = new a(null);
    public final NormalModuleAdapter f = new NormalModuleAdapter(false, 1);

    /* renamed from: g  reason: collision with root package name */
    public HashMap f11469g;

    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(OrderRefundTimelineDialog orderRefundTimelineDialog, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{orderRefundTimelineDialog, bundle}, null, changeQuickRedirect, true, 75359, new Class[]{OrderRefundTimelineDialog.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                OrderRefundTimelineDialog.r(orderRefundTimelineDialog, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (orderRefundTimelineDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.common.dialog.OrderRefundTimelineDialog")) {
                    b.f34396a.fragmentOnCreateMethod(orderRefundTimelineDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

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

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

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

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

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

        public a(DefaultConstructorMarker defaultConstructorMarker) {
        }

        @NotNull
        public final OrderRefundTimelineDialog a(@NotNull OrderRefundTimelineModel orderRefundTimelineModel) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{orderRefundTimelineModel}, this, changeQuickRedirect, false, 75358, new Class[]{OrderRefundTimelineModel.class}, OrderRefundTimelineDialog.class);
            if (proxy.isSupported) {
                return (OrderRefundTimelineDialog) proxy.result;
            }
            OrderRefundTimelineDialog orderRefundTimelineDialog = new OrderRefundTimelineDialog();
            orderRefundTimelineDialog.setArguments(BundleKt.bundleOf(TuplesKt.to("KEY_DATA", orderRefundTimelineModel)));
            return orderRefundTimelineDialog;
        }
    }

    public static void r(OrderRefundTimelineDialog orderRefundTimelineDialog, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, orderRefundTimelineDialog, changeQuickRedirect, false, 75349, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
        }
    }

    public static void s(OrderRefundTimelineDialog orderRefundTimelineDialog) {
        if (!PatchProxy.proxy(new Object[0], orderRefundTimelineDialog, changeQuickRedirect, false, 75351, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
        }
    }

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

    public static void u(OrderRefundTimelineDialog orderRefundTimelineDialog) {
        if (!PatchProxy.proxy(new Object[0], orderRefundTimelineDialog, changeQuickRedirect, false, 75355, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
        }
    }

    public static void v(OrderRefundTimelineDialog orderRefundTimelineDialog, View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, orderRefundTimelineDialog, changeQuickRedirect, false, 75357, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            super.onViewCreated(view, bundle);
        }
    }

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

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

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment
    public float j() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 75342, new Class[0], Float.TYPE);
        if (proxy.isSupported) {
            return ((Float) proxy.result).floatValue();
        }
        return 0.5f;
    }

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment
    public void k(@NotNull View view) {
        if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 75344, new Class[]{View.class}, Void.TYPE).isSupported) {
            ViewExtensionKt.j((DuIconsTextView) _$_findCachedViewById(R.id.ivIndicator), 0, new OrderRefundTimelineDialog$initView$1(this), 1);
            ((RecyclerView) _$_findCachedViewById(R.id.recyclerView)).setLayoutManager(new LinearLayoutManager(getContext()));
            this.f.getDelegate().C(c.class, 1, null, -1, true, null, null, OrderRefundTimelineDialog$initView$2.INSTANCE);
            ((RecyclerView) _$_findCachedViewById(R.id.recyclerView)).setAdapter(this.f);
            Bundle arguments = getArguments();
            Object obj = arguments != null ? arguments.get("KEY_DATA") : null;
            if (!(obj instanceof OrderRefundTimelineModel)) {
                obj = null;
            }
            OrderRefundTimelineModel orderRefundTimelineModel = (OrderRefundTimelineModel) obj;
            if (orderRefundTimelineModel != null) {
                if (!PatchProxy.proxy(new Object[]{orderRefundTimelineModel}, this, changeQuickRedirect, false, 75345, new Class[]{OrderRefundTimelineModel.class}, Void.TYPE).isSupported) {
                    ((TextView) _$_findCachedViewById(R.id.tvTitle)).setText(orderRefundTimelineModel.getTitle());
                    DuImageLoaderView duImageLoaderView = (DuImageLoaderView) _$_findCachedViewById(R.id.speedIcon);
                    SpeedRefundContent speedRefundDTO = orderRefundTimelineModel.getSpeedRefundDTO();
                    String picUrl = speedRefundDTO != null ? speedRefundDTO.getPicUrl() : null;
                    int i = 8;
                    duImageLoaderView.setVisibility(picUrl == null || picUrl.length() == 0 ? 8 : 0);
                    DuImageLoaderView duImageLoaderView2 = (DuImageLoaderView) _$_findCachedViewById(R.id.speedIcon);
                    SpeedRefundContent speedRefundDTO2 = orderRefundTimelineModel.getSpeedRefundDTO();
                    duImageLoaderView2.i(speedRefundDTO2 != null ? speedRefundDTO2.getPicUrl() : null).x();
                    ShapeLinearLayout shapeLinearLayout = (ShapeLinearLayout) _$_findCachedViewById(R.id.llSpeedDesc);
                    SpeedRefundContent speedRefundDTO3 = orderRefundTimelineModel.getSpeedRefundDTO();
                    String speedRefundPriorityDesc = speedRefundDTO3 != null ? speedRefundDTO3.getSpeedRefundPriorityDesc() : null;
                    if (!(speedRefundPriorityDesc == null || speedRefundPriorityDesc.length() == 0)) {
                        i = 0;
                    }
                    shapeLinearLayout.setVisibility(i);
                    ((DuImageLoaderView) _$_findCachedViewById(R.id.ivTui)).i("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/order/ic_dialog_refund_speed_desc.png").x();
                    TextView textView = (TextView) _$_findCachedViewById(R.id.tvSpeedDesc);
                    SpeedRefundContent speedRefundDTO4 = orderRefundTimelineModel.getSpeedRefundDTO();
                    textView.setText(speedRefundDTO4 != null ? speedRefundDTO4.getSpeedRefundPriorityDesc() : null);
                    ArrayList arrayList = new ArrayList();
                    arrayList.clear();
                    List<OrderRefundTimelineItem> refundTimelineItem = orderRefundTimelineModel.getRefundTimelineItem();
                    if (refundTimelineItem != null) {
                        int i3 = 0;
                        for (T t : refundTimelineItem) {
                            int i12 = i3 + 1;
                            if (i3 < 0) {
                                CollectionsKt__CollectionsKt.throwIndexOverflow();
                            }
                            T t4 = t;
                            boolean z = i3 == 0;
                            List<OrderRefundTimelineItem> refundTimelineItem2 = orderRefundTimelineModel.getRefundTimelineItem();
                            if (refundTimelineItem2 == null) {
                                refundTimelineItem2 = CollectionsKt__CollectionsKt.emptyList();
                            }
                            arrayList.add(new c(z, i3 == CollectionsKt__CollectionsKt.getLastIndex(refundTimelineItem2), t4));
                            i3 = i12;
                        }
                    }
                    arrayList.add(new j(fi.b.b((float) 20), null, 2));
                    this.f.setItems(arrayList);
                }
            }
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, com.google.android.material.bottomsheet.BottomSheetDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onCreate(Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 75348, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onCreate(this, bundle);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, com.google.android.material.bottomsheet.BottomSheetDialogFragment, androidx.fragment.app.Fragment, 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, 75352, 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.common.dialog.sheet.BaseBottomSheetDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onDestroyView() {
        HashMap hashMap;
        super.onDestroyView();
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 75347, new Class[0], Void.TYPE).isSupported && (hashMap = this.f11469g) != null) {
            hashMap.clear();
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, com.google.android.material.bottomsheet.BottomSheetDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onResume() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 75354, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onResume(this);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, com.google.android.material.bottomsheet.BottomSheetDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onStart() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 75350, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onStart(this);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, com.google.android.material.bottomsheet.BottomSheetDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onViewCreated(View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, this, changeQuickRedirect, false, 75356, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onViewCreated(this, view, bundle);
        }
    }
}