package com.ss.android.ugc.aweme.favorites.viewholder;

import X.0AA;
import X.0CM;
import X.0Gf;
import X.0Gp;
import X.2K7;
import X.2UX;
import X.2ce;
import X.2nK;
import X.3EX;
import X.3Xt;
import X.3Xx;
import X.3af;
import X.46i;
import X.4js;
import X.4wW;
import X.4wY;
import X.4we;
import X.6iy;
import X.AnonymousClass9mU;
import X.AnonymousClass9mY;
import X.AnonymousClass9n4;
import X.AnonymousClass9nH;
import X.AnonymousClass9nL;
import X.AnonymousClass9nN;
import X.AnonymousClass9oM;
import X.AnonymousClass9oN;
import X.AnonymousClass9p2;
import X.AnonymousClass9pV;
import X.AnonymousClass9u3;
import X.C00309ne;
import X.C00429nq;
import X.C00459nt;
import X.C00539ob;
import X.C00549oc;
import X.C00559od;
import X.C00569oe;
import X.C00579of;
import X.C00589og;
import X.C00599oh;
import X.C00619oj;
import X.C00769oy;
import X.C00969ps;
import X.C01009pw;
import X.C02279ut;
import X.C2658Avu;
import X.C2760AxY;
import X.DzH;
import X.HeD;
import X.M12;
import X.OCa;
import X.OD6;
import X.QHW;
import X.QJt;
import X.QJu;
import X.Qeg;
import android.app.Activity;
import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import com.bytedance.covode.number.Covode;
import com.bytedance.router.SmartRoute;
import com.bytedance.router.SmartRouter;
import com.bytedance.tux.sheet.actionsheet.TuxActionSheet;
import com.ss.android.ugc.aweme.IAccountUserService;
import com.ss.android.ugc.aweme.base.api.BaseResponse;
import com.ss.android.ugc.aweme.base.model.UrlModel;
import com.ss.android.ugc.aweme.comment.model.Comment;
import com.ss.android.ugc.aweme.favorites.adapter.CollectCommentAdapter;
import com.ss.android.ugc.aweme.favorites.api.UserFavoritesApi;
import com.ss.android.ugc.aweme.feed.model.Aweme;
import com.ss.android.ugc.aweme.feed.model.Video;
import com.ss.android.ugc.aweme.profile.model.User;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import kotlin.h.b.n;

public final class CommentCollectViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener, View.OnLongClickListener, 0CM<C00589og>, AnonymousClass9nN, AnonymousClass9mY, C01009pw, C00769oy {
    public QJu commentAvatar;
    public Qeg commentMessage;
    public Qeg commentUserName;
    public OD6 commentVideoCover;
    public final long createTimeMultiplier = 1000;
    public Activity mActivity;
    public C00619oj mCommentActionSheetClickListener;
    public CollectCommentAdapter mCommentCollectAdapter;
    public AnonymousClass9nL mCommentDeletePresenter;
    public C00969ps mCommentInputManager;
    public AnonymousClass9p2 mCommentTranslateRepository;
    public Fragment mFragment;
    public Comment mItem;
    public Qeg regularReplyButton;
    public AnonymousClass9u3 translateStatusView;
    public TuxActionSheet tuxLongPressDialog;
    public Qeg videoReplyButton;

    static {
        Covode.recordClassIndex(75936);
    }

    public final boolean checkCommentInputAtUserClickable() {
        return true;
    }

    public final boolean checkCommentInputable() {
        return true;
    }

    public final int getCommentInputViewType() {
        return 3;
    }

    public final String getEnterMethod() {
        return "collection_comment";
    }

    public final String getEventType() {
        return "";
    }

    public final Comment getForwardComment() {
        return null;
    }

    public final boolean hasUpvoteOption() {
        return false;
    }

    public final boolean isEventBusRegistered() {
        return false;
    }

    public final void onCommentInputAtUserClick(boolean z) {
    }

    public final void onCommentInputClick() {
    }

    public final void onCommentInputKeyboardDismiss(boolean z, 4we r2) {
        M12.LIZ(r2);
    }

    public final void onCommentInputKeyboardShow(boolean z, String str, 4we r3) {
    }

    public final void onCommentInputPublishOnlyGiftSuccess(Comment comment) {
    }

    public final void onCommentInputPublishStart(Comment comment) {
    }

    public final void onEmojiClick(String str, int i, int i2) {
    }

    public final void onEmojiToKeyboard(String str) {
    }

    public final void onEvent(AnonymousClass9nH r1) {
    }

    public final void onUpvotePublishProcessChanged(boolean z) {
    }

    public final void resetTranslatedMultiComment(List list) {
    }

    public final void translateMultiWithReplyComment(List list) {
    }

    public final boolean upvoteWhenComment() {
        return false;
    }

    public final Comment getCommentInputReplyComment() {
        return this.mItem;
    }

    private final C00619oj createCommentActionSheetClickListener() {
        return new C00549oc(this);
    }

    private final void onTranslating() {
        this.translateStatusView.setLoading(true);
        this.translateStatusView.setLoadingText(2131822931);
    }

    private final void regularReplyButtonAction() {
        this.regularReplyButton.setOnClickListener(new C00429nq(this));
    }

    private final void videoReplyButtonAction() {
        this.videoReplyButton.setOnClickListener(new C00559od(this));
    }

    public final Aweme getCommentInputAweme() {
        Comment comment = this.mItem;
        if (comment != null) {
            return comment.getAliasAweme();
        }
        return null;
    }

    public final void resetTranslate() {
        AnonymousClass9p2 r0;
        Comment comment = this.mItem;
        if (comment != null && (r0 = this.mCommentTranslateRepository) != null) {
            r0.LIZ(comment);
        }
    }

    private final boolean invalidNetwork() {
        Activity activity = this.mActivity;
        if (activity == null) {
            return true;
        }
        if (INVOKESTATIC_com_ss_android_ugc_aweme_favorites_viewholder_CommentCollectViewHolder_com_ss_android_ugc_aweme_net_lancet_NetworkLancet_isNetworkAvailableTwo(activity)) {
            return false;
        }
        tuxToastGenerator(2131827476, 0);
        return true;
    }

    public final void onShowItem() {
        Comment comment = this.mItem;
        if (comment != null) {
            String cid = comment.getCid();
            String LIZ = C2658Avu.LIZ(1);
            2UX LIZIZ = C2658Avu.LIZIZ("comment", "collection_comment");
            LIZIZ.LIZ("comment_id", cid);
            2nK.LIZ(LIZ, LIZIZ.LIZ);
        }
    }

    public final void translate() {
        String str;
        String str2;
        User author;
        Comment comment = this.mItem;
        if (comment != null) {
            M12.LIZ(comment);
            IAccountUserService LJFF = 46i.LJFF();
            if (LJFF != null) {
                str = LJFF.getCurUserId();
            } else {
                str = null;
            }
            2UX r5 = new 2UX();
            Aweme aliasAweme = comment.getAliasAweme();
            String str3 = "";
            if (aliasAweme == null || (author = aliasAweme.getAuthor()) == null || (str2 = author.getUid()) == null) {
                str2 = str3;
            }
            r5.LIZ("author_id", str2);
            r5.LIZ("enter_from", "collection_comment");
            String cid = comment.getCid();
            if (cid == null) {
                cid = str3;
            }
            r5.LIZ("comment_id", cid);
            if (str == null) {
                str = str3;
            }
            r5.LIZ("user_id", str);
            String awemeId = comment.getAwemeId();
            if (awemeId != null) {
                str3 = awemeId;
            }
            r5.LIZ("group_id", str3);
            2nK.LIZ("translate_comment", r5.LIZ);
            AnonymousClass9p2 r2 = this.mCommentTranslateRepository;
            if (r2 != null) {
                r2.LIZ((List<? extends Comment>) 6iy.LIZ(comment), (4wY) null, true);
            }
        }
    }

    public static boolean INVOKESTATIC_com_ss_android_ugc_aweme_favorites_viewholder_CommentCollectViewHolder_com_ss_android_ugc_aweme_net_lancet_NetworkLancet_isNetworkAvailableTwo(Context context) {
        try {
            return 2K7.LIZ.LIZJ();
        } catch (Exception unused) {
            return false;
        }
    }

    public final void onCommentInputPublishSuccess(Comment comment) {
        tuxToastGenerator(2131824908, 2131232226);
    }

    public final void onDeleteFailed(Exception exc) {
        Activity activity = this.mActivity;
        if (activity != null) {
            DzH.LIZ(activity, exc, 2131832890);
        }
    }

    private final void onTranslateFailure(C00589og r4) {
        this.translateStatusView.setLoading(false);
        Activity activity = this.mActivity;
        if (activity != null) {
            DzH.LIZ(activity, r4.LIZJ, 2131832890);
        }
    }

    private final void onTranslateSuccess(Comment comment) {
        this.translateStatusView.setLoading(false);
        Comment comment2 = this.mItem;
        if (comment2 != null) {
            comment2.setTranslated(comment.isTranslated());
        }
        this.commentMessage.setText(comment.getText());
    }

    public final void onChanged(C00589og r3) {
        Activity activity;
        if (r3 != null && r3.LIZ != null && (activity = this.mActivity) != null && !activity.isFinishing()) {
            if (r3.LIZLLL == 1) {
                onTranslating();
            } else if (r3.LIZIZ) {
                Comment comment = r3.LIZ;
                n.LIZIZ(comment, "");
                onTranslateSuccess(comment);
            } else {
                onTranslateFailure(r3);
            }
        }
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public CommentCollectViewHolder(View view) {
        super(view);
        M12.LIZ(view);
        Qeg findViewById = view.findViewById(2131370139);
        n.LIZIZ(findViewById, "");
        this.regularReplyButton = findViewById;
        Qeg findViewById2 = view.findViewById(2131370140);
        n.LIZIZ(findViewById2, "");
        this.videoReplyButton = findViewById2;
        OD6 findViewById3 = view.findViewById(2131370147);
        n.LIZIZ(findViewById3, "");
        this.commentVideoCover = findViewById3;
        QJu findViewById4 = view.findViewById(2131370137);
        n.LIZIZ(findViewById4, "");
        this.commentAvatar = findViewById4;
        Qeg findViewById5 = view.findViewById(2131370142);
        n.LIZIZ(findViewById5, "");
        this.commentUserName = findViewById5;
        Qeg findViewById6 = view.findViewById(2131370141);
        n.LIZIZ(findViewById6, "");
        this.commentMessage = findViewById6;
        View findViewById7 = view.findViewById(2131371505);
        n.LIZIZ(findViewById7, "");
        this.translateStatusView = (AnonymousClass9u3) findViewById7;
    }

    public final void copy(Comment comment) {
        String str;
        String str2;
        String uid;
        User author;
        M12.LIZ(comment);
        IAccountUserService LJFF = 46i.LJFF();
        if (LJFF != null) {
            str = LJFF.getCurUserId();
        } else {
            str = null;
        }
        2UX r3 = new 2UX();
        Aweme aliasAweme = comment.getAliasAweme();
        String str3 = "";
        if (aliasAweme == null || (author = aliasAweme.getAuthor()) == null || (str2 = author.getUid()) == null) {
            str2 = str3;
        }
        r3.LIZ("author_id", str2);
        r3.LIZ("enter_from", "collection_comment");
        String awemeId = comment.getAwemeId();
        if (awemeId == null) {
            awemeId = str3;
        }
        r3.LIZ("group_id", awemeId);
        String cid = comment.getCid();
        if (cid == null) {
            cid = str3;
        }
        r3.LIZ("comment_id", cid);
        if (str == null) {
            str = str3;
        }
        r3.LIZ("user_id", str);
        User user = comment.getUser();
        if (!(user == null || (uid = user.getUid()) == null)) {
            str3 = uid;
        }
        r3.LIZ("to_user_id", str3);
        2nK.LIZ("copy_comment", r3.LIZ);
        C00969ps r0 = this.mCommentInputManager;
        if (r0 != null) {
            r0.LIZ(comment);
        }
        tuxToastGenerator(2131824907, 0);
    }

    public final void delete(Comment comment) {
        AnonymousClass9pV r1;
        if (!invalidNetwork()) {
            M12.LIZ(comment);
            2UX r3 = new 2UX();
            r3.LIZ("enter_from", "collection_comment");
            String cid = comment.getCid();
            String str = "";
            if (cid == null) {
                cid = str;
            }
            r3.LIZ("comment_id", cid);
            String awemeId = comment.getAwemeId();
            if (awemeId != null) {
                str = awemeId;
            }
            r3.LIZ("group_id", str);
            r3.LIZ("is_video", "0");
            2nK.LIZ("delete_comment", r3.LIZ);
            AnonymousClass9nL r0 = this.mCommentDeletePresenter;
            if (!(r0 == null || (r1 = (AnonymousClass9pV) r0.LJII) == null)) {
                r1.LIZLLL = new AnonymousClass9n4(false, comment);
            }
            AnonymousClass9nL r5 = this.mCommentDeletePresenter;
            if (r5 != null) {
                String cid2 = comment.getCid();
                String awemeId2 = comment.getAwemeId();
                int LIZ = 4js.LIZ(getEventType());
                ((AnonymousClass9pV) r5.LJII).LIZJ = awemeId2;
                r5.LIZ(cid2, Integer.valueOf(LIZ), 0);
            }
        }
    }

    public final void onClick(View view) {
        String str;
        String str2;
        Aweme aliasAweme;
        String cid;
        M12.LIZ(view);
        Comment comment = this.mItem;
        String str3 = "";
        if (comment != null) {
            M12.LIZ(comment);
            2UX r2 = new 2UX();
            r2.LIZ("enter_from", "collection_comment");
            String awemeId = comment.getAwemeId();
            if (awemeId == null) {
                awemeId = str3;
            }
            r2.LIZ("group_id", awemeId);
            String cid2 = comment.getCid();
            if (cid2 == null) {
                cid2 = str3;
            }
            r2.LIZ("trigger_comment_id", cid2);
            2nK.LIZ("enter_comment_list", r2.LIZ);
        }
        SmartRoute buildRoute = SmartRouter.buildRoute(this.mActivity, "aweme://aweme/detail/");
        Comment comment2 = this.mItem;
        if (comment2 == null || (str = comment2.getAwemeId()) == null) {
            str = str3;
        }
        buildRoute.withParam("id", str);
        buildRoute.withParam("refer", "collection_comment");
        Comment comment3 = this.mItem;
        if (!(comment3 == null || (cid = comment3.getCid()) == null)) {
            str3 = cid;
        }
        buildRoute.withParam("cid", str3);
        buildRoute.withParam("video_from", "collection_comment");
        Comment comment4 = this.mItem;
        if (comment4 == null || (aliasAweme = comment4.getAliasAweme()) == null) {
            str2 = null;
        } else {
            str2 = aliasAweme.getAid();
        }
        buildRoute.withParam("last_group_id", str2);
        buildRoute.open();
    }

    public final boolean onLongClick(View view) {
        Comment comment;
        User user;
        String text;
        String str;
        3Xt LIZ;
        if (!(view == null || this.mActivity == null || this.mCommentActionSheetClickListener == null || this.mCommentInputManager == null || (comment = this.mItem) == null)) {
            String authorUid = Comment.getAuthorUid(comment);
            IAccountUserService LJFF = 46i.LJFF();
            n.LIZIZ(LJFF, "");
            boolean equals = TextUtils.equals(authorUid, LJFF.getCurUserId());
            ArrayList<String> arrayList = new ArrayList<>();
            Activity activity = this.mActivity;
            if (activity != null) {
                String string = activity.getString(2131822911);
                n.LIZIZ(string, "");
                arrayList.add(string);
                String string2 = activity.getString(2131824905);
                n.LIZIZ(string2, "");
                arrayList.add(string2);
                String string3 = activity.getString(2131823241);
                n.LIZIZ(string3, "");
                arrayList.add(string3);
                if (!equals) {
                    Comment comment2 = this.mItem;
                    if (comment2 == null || !comment2.isTranslated()) {
                        String string4 = activity.getString(2131822930);
                        n.LIZIZ(string4, "");
                        arrayList.add(string4);
                    } else {
                        String string5 = activity.getString(2131822912);
                        n.LIZIZ(string5, "");
                        arrayList.add(string5);
                    }
                }
                String string6 = activity.getString(2131831707);
                n.LIZIZ(string6, "");
                arrayList.add(string6);
                if (equals) {
                    String string7 = activity.getString(2131823695);
                    n.LIZIZ(string7, "");
                    arrayList.add(string7);
                }
            }
            0AA r2 = null;
            if (AnonymousClass9mU.LIZJ()) {
                ArrayList arrayList2 = new ArrayList();
                for (String str2 : arrayList) {
                    C00969ps r5 = this.mCommentInputManager;
                    if (!(r5 == null || (LIZ = r5.LIZ(this.mCommentActionSheetClickListener, str2, this.mItem)) == null)) {
                        arrayList2.add(LIZ);
                    }
                }
                Comment comment3 = this.mItem;
                if (comment3 != null) {
                    user = comment3.getUser();
                } else {
                    user = null;
                }
                String LIZ2 = C02279ut.LIZ(user, getEventType());
                Comment comment4 = this.mItem;
                if (!(comment4 == null || (text = comment4.getText()) == null || text.length() <= 0)) {
                    StringBuilder sb = new StringBuilder();
                    sb.append(LIZ2);
                    sb.append(": ");
                    Comment comment5 = this.mItem;
                    if (comment5 != null) {
                        str = comment5.getText();
                    } else {
                        str = null;
                    }
                    sb.append(str);
                    LIZ2 = sb.toString();
                }
                3Xx r1 = new 3Xx();
                r1.LIZ(LIZ2);
                r1.LIZ();
                r1.LIZ(arrayList2);
                r1.LIZ(new C00569oe(this));
                r1.LIZIZ("");
                this.tuxLongPressDialog = r1.LIZIZ();
                if (!(!arrayList2.isEmpty())) {
                    return false;
                }
                Comment comment6 = this.mItem;
                if (comment6 != null) {
                    C00459nt.LIZ(comment6);
                }
                TuxActionSheet tuxActionSheet = this.tuxLongPressDialog;
                if (tuxActionSheet != null) {
                    Fragment fragment = this.mFragment;
                    if (fragment != null) {
                        r2 = fragment.getFragmentManager();
                    }
                    tuxActionSheet.show(r2, "CommentCollectViewHolder");
                }
                return true;
            }
            Fragment fragment2 = this.mFragment;
            if (fragment2 != null) {
                r2 = fragment2.getActivity();
            }
            C2760AxY axY = new C2760AxY(r2);
            Object[] array = arrayList.toArray(new String[0]);
            Objects.requireNonNull(array, "null cannot be cast to non-null type kotlin.Array<T>");
            axY.LIZ((CharSequence[]) array, new C00599oh(this, arrayList));
            axY.LIZ(new C00579of(this));
            if (!arrayList.isEmpty()) {
                Comment comment7 = this.mItem;
                if (comment7 != null) {
                    C00459nt.LIZ(comment7);
                }
                axY.LIZ.LIZIZ();
                return true;
            }
        }
        return false;
    }

    public final void onDeleteSuccess(String str, AnonymousClass9n4 r4) {
        CollectCommentAdapter collectCommentAdapter;
        Comment comment = this.mItem;
        if (comment != null && (collectCommentAdapter = this.mCommentCollectAdapter) != null) {
            collectCommentAdapter.removeItem(comment);
        }
    }

    private final void tuxToastGenerator(int i, int i2) {
        Activity activity = this.mActivity;
        if (activity == null) {
            return;
        }
        if (i2 != 0) {
            3af r1 = new 3af(activity);
            r1.LIZ(activity.getString(i));
            r1.LIZIZ(i2);
            3af.LIZ(r1);
            return;
        }
        3af r12 = new 3af(activity);
        r12.LIZ(activity.getString(i));
        3af.LIZ(r12);
    }

    public final void commentCollect(Comment comment, int i) {
        if (!invalidNetwork()) {
            4wW.LIZ("collection_comment", i, comment);
            0Gp<BaseResponse> collectComment = UserFavoritesApi.LIZ.collectComment(comment.getCid(), i);
            if (collectComment != null) {
                collectComment.LIZ(new C00539ob(this, comment, i), 0Gp.LIZIZ, (0Gf) null);
            }
        }
    }

    public final void report(Activity activity, Comment comment) {
        String str;
        String str2;
        User author;
        M12.LIZ(comment);
        IAccountUserService LJFF = 46i.LJFF();
        if (LJFF != null) {
            str = LJFF.getCurUserId();
        } else {
            str = null;
        }
        2UX r2 = new 2UX();
        r2.LIZ("enter_from", "collection_comment");
        r2.LIZ("enter_method", "click_report_button");
        Aweme aliasAweme = comment.getAliasAweme();
        if (aliasAweme == null || (author = aliasAweme.getAuthor()) == null || (str2 = author.getUid()) == null) {
            str2 = "";
        }
        r2.LIZ("author_id", str2);
        String awemeId = comment.getAwemeId();
        if (awemeId == null) {
            awemeId = "";
        }
        r2.LIZ("group_id", awemeId);
        String cid = comment.getCid();
        if (cid == null) {
            cid = "";
        }
        r2.LIZ("comment_id", cid);
        if (str == null) {
            str = "";
        }
        r2.LIZ("user_id", str);
        r2.LIZ("is_video", "0");
        2nK.LIZ("report_comment", r2.LIZ);
        AnonymousClass9oN r22 = AnonymousClass9oM.LIZ;
        User user = comment.getUser();
        n.LIZIZ(user, "");
        r22.LIZ(activity, comment, user.getUid(), HeD.LIZIZ(activity));
    }

    public final void onCommentInputPublishFailed(Exception exc, int i, Comment comment) {
        tuxToastGenerator(2131831703, 0);
    }

    public final void bindView(Comment comment, Activity activity, Fragment fragment, CollectCommentAdapter collectCommentAdapter) {
        User user;
        Aweme aliasAweme;
        Video video;
        UrlModel cover;
        User user2;
        UrlModel avatarThumb;
        2ce<C00589og> LIZ;
        M12.LIZ(collectCommentAdapter);
        if (comment != null && activity != null && fragment != null) {
            this.mActivity = activity;
            this.mFragment = fragment;
            this.mItem = comment;
            this.mCommentCollectAdapter = collectCommentAdapter;
            String str = null;
            String cid = comment.getCid();
            this.translateStatusView.setVisibility(8);
            AnonymousClass9p2 r0 = AnonymousClass9p2.LIZIZ;
            this.mCommentTranslateRepository = r0;
            if (!(r0 == null || (LIZ = r0.LIZ(cid)) == null)) {
                LIZ.LIZ(this, false);
            }
            this.mCommentActionSheetClickListener = createCommentActionSheetClickListener();
            C00969ps r6 = new C00969ps(fragment, hashCode(), this);
            this.mCommentInputManager = r6;
            r6.LJIL = true;
            AnonymousClass9nL r1 = new AnonymousClass9nL();
            this.mCommentDeletePresenter = r1;
            r1.LIZ(new AnonymousClass9pV());
            AnonymousClass9nL r12 = this.mCommentDeletePresenter;
            if (r12 != null) {
                r12.a_(this);
            }
            Comment comment2 = this.mItem;
            if (!(comment2 == null || (user2 = comment2.getUser()) == null || (avatarThumb = user2.getAvatarThumb()) == null)) {
                QJt LIZ2 = QHW.LIZ(3EX.LIZ(avatarThumb));
                LIZ2.LJJIJL = true;
                LIZ2.LIZ("collection_comment");
                LIZ2.LJJIIZ = this.commentAvatar;
                LIZ2.LIZJ();
            }
            Comment comment3 = this.mItem;
            if (comment3 == null || (aliasAweme = comment3.getAliasAweme()) == null || (video = aliasAweme.getVideo()) == null || (cover = video.getCover()) == null) {
                this.commentVideoCover.setVisibility(8);
            } else {
                OCa.LIZ(this.commentVideoCover, cover);
                this.commentVideoCover.setVisibility(0);
            }
            Comment comment4 = this.mItem;
            if (!(comment4 == null || comment4.getText() == null)) {
                Qeg qeg = this.commentMessage;
                Comment comment5 = this.mItem;
                if (comment5 != null) {
                    str = comment5.getText();
                }
                qeg.setText(str);
            }
            Comment comment6 = this.mItem;
            if (!(comment6 == null || (user = comment6.getUser()) == null)) {
                this.commentUserName.setText(C02279ut.LIZ(user, getEventType()));
            }
            this.itemView.setOnClickListener(this);
            this.itemView.setOnLongClickListener(this);
            regularReplyButtonAction();
            videoReplyButtonAction();
            onShowItem();
        }
    }

    public final void onCommentInputPublishClick(int i, int i2, String str, String str2, String str3, boolean z, 4we r45) {
        Aweme aliasAweme;
        String cid;
        String str4 = str;
        M12.LIZ(r45);
        Comment comment = this.mItem;
        if (comment != null && (aliasAweme = comment.getAliasAweme()) != null) {
            String str5 = "";
            if (str4 == null) {
                str4 = str5;
            }
            String LIZ = C00309ne.LIZ(this.mItem);
            n.LIZIZ(LIZ, str5);
            Comment comment2 = this.mItem;
            if (!(comment2 == null || (cid = comment2.getCid()) == null)) {
                str5 = cid;
            }
            4wW.LIZ(aliasAweme, str4, "collection_comment", LIZ, str5, this.mItem, "list", String.valueOf(i2), "collection_text_panel", (String) null, (String) null, (String) null, (String) null, (String) null, (String) null, (String) null, (String) null, (String) null, (String) null, (String) null, (String) null, 0, "collection_text", (String) null, (String) null, (String) null, (String) null, (String) null, (String) null, (String) null, (String) null, (String) null, (String) null, (4we) null, -134218496, 255);
        }
    }
}
