package com.vinfast.companion.main.ui.complaint.bottomsheet.topic;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes3.dex */
@kotlin.Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u000f\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0004\b\u0005\u0010\u0006J!\u0010\u000b\u001a\u00020\n2\u0006\u0010\b\u001a\u00020\u00072\b\u0010\t\u001a\u0004\u0018\u00010\u0002H\u0016¢\u0006\u0004\b\u000b\u0010\fJ\u0017\u0010\u0010\u001a\u00020\u000f2\u0006\u0010\u000e\u001a\u00020\rH\u0016¢\u0006\u0004\b\u0010\u0010\u0011R\u0017\u0010\u0004\u001a\u00020\u00038\u0006¢\u0006\f\n\u0004\b\u0012\u0010\u0013\u001a\u0004\b\u0014\u0010\u0015R\u0018\u0010\u0019\u001a\u0004\u0018\u00010\u00168\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0017\u0010\u0018R\u0018\u0010\u001c\u001a\u0004\u0018\u00010\n8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001a\u0010\u001b¨\u0006\u001d"}, d2 = {"Lcom/vinfast/companion/main/ui/complaint/bottomsheet/topic/TopicComplaintParentViewHolder;", "Lcom/unnamed/b/atv/model/TreeNode$BaseNodeViewHolder;", "Lcom/vinfast/companion/serviceskit/data/persistent/model/complaint/CategoryGroup;", "Landroid/content/Context;", "mContext", "<init>", "(Landroid/content/Context;)V", "Lcom/unnamed/b/atv/model/TreeNode;", "node", "value", "Landroid/view/View;", "l", "(Lcom/unnamed/b/atv/model/TreeNode;Lcom/vinfast/companion/serviceskit/data/persistent/model/complaint/CategoryGroup;)Landroid/view/View;", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "active", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "j", "(Z)V", "f", "Landroid/content/Context;", "getMContext", "()Landroid/content/Context;", "Landroid/widget/ImageView;", "g", "Landroid/widget/ImageView;", "ivArrow", "h", "Landroid/view/View;", "viewLine", "services_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
public final class TopicComplaintParentViewHolder extends com.unnamed.b.atv.model.TreeNode.BaseNodeViewHolder<com.vinfast.companion.serviceskit.data.persistent.model.complaint.CategoryGroup> {

    /* JADX INFO: renamed from: f, reason: from kotlin metadata */
    private final android.content.Context mContext;

    /* JADX INFO: renamed from: g, reason: from kotlin metadata */
    private android.widget.ImageView ivArrow;

    /* JADX INFO: renamed from: h, reason: from kotlin metadata */
    private android.view.View viewLine;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public TopicComplaintParentViewHolder(android.content.Context context) {
        super(context);
        kotlin.jvm.internal.Intrinsics.l(context, "mContext");
        this.mContext = context;
    }

    public void j(boolean active) {
        if (active) {
            android.widget.ImageView imageView = this.ivArrow;
            if (imageView != null) {
                imageView.setImageDrawable(androidx.core.content.ContextCompat.getDrawable(((com.unnamed.b.atv.model.TreeNode.BaseNodeViewHolder) this).e, com.vinfast.companion.services.R.drawable.ic_arrow_up_white_type_one));
            }
            android.view.View view = this.viewLine;
            if (view != null) {
                com.vinfast.companion.core.extensions.ViewExtensionKt.m(view);
                return;
            }
            return;
        }
        android.widget.ImageView imageView2 = this.ivArrow;
        if (imageView2 != null) {
            imageView2.setImageDrawable(androidx.core.content.ContextCompat.getDrawable(((com.unnamed.b.atv.model.TreeNode.BaseNodeViewHolder) this).e, com.vinfast.companion.services.R.drawable.ic_arrow_down_white_type_one));
        }
        android.view.View view2 = this.viewLine;
        if (view2 != null) {
            com.vinfast.companion.core.extensions.ViewExtensionKt.S(view2);
        }
    }

    /* JADX INFO: renamed from: l, reason: merged with bridge method [inline-methods] */
    public android.view.View a(com.unnamed.b.atv.model.TreeNode node, com.vinfast.companion.serviceskit.data.persistent.model.complaint.CategoryGroup value) {
        java.lang.String strB;
        kotlin.jvm.internal.Intrinsics.l(node, "node");
        android.view.View viewInflate = android.view.LayoutInflater.from(this.mContext).inflate(com.vinfast.companion.services.R.layout.item_list_with_selected, (android.view.ViewGroup) null, false);
        android.widget.TextView textView = (android.widget.TextView) viewInflate.findViewById(com.vinfast.companion.services.R.id.tvItemName);
        if (value == null || (strB = value.b()) == null) {
            strB = okhttp3.HttpUrl.FRAGMENT_ENCODE_SET;
        }
        textView.setText(strB);
        this.ivArrow = (android.widget.ImageView) viewInflate.findViewById(com.vinfast.companion.services.R.id.ivArrow);
        this.viewLine = viewInflate.findViewById(com.vinfast.companion.services.R.id.viewLine);
        if (node.k()) {
            android.view.View view = this.viewLine;
            if (view != null) {
                com.vinfast.companion.core.extensions.ViewExtensionKt.m(view);
            }
        } else {
            android.view.View view2 = this.viewLine;
            if (view2 != null) {
                com.vinfast.companion.core.extensions.ViewExtensionKt.S(view2);
            }
        }
        kotlin.jvm.internal.Intrinsics.i(viewInflate);
        return viewInflate;
    }
}
