1import{_ as k,e as o}from"./_plugin-vue_export-helper-CZPp-EVN.js";import{C as S}from"./CommentTextarea-I3LEQbCv.js";import O from"./CommentBox-BegUQo8C.js";import{P as g,j as l,q as h,x as n,k as v,D as d,C as T,J as R,K as f,y as C,z as x,M as b,B as q,F as B,E as L,G as y,A as w}from"./vendor-vue-n3skSn-P.js";import{C as M}from"./CommentContent-nGTRze9v.js";import"./previewUrl-D1RxIl1j.js";import"./submissionOutbox-Bl_dcaHM.js";import"./Mentionable-CTa4t3wn.js";import"./EmbeddedPost-GM-iuLcd.js";import"./ImageUploadPreview-Clh1YxiN.js";import"./Giphy-CllnZoyC.js";import"./CreatePoll-Cqt8kuM-.js";import"./AddEmbedModalOverlay-CL8Y-igV.js";import"./vendor-lodash-E9C5f0WD.js";import"./vendor-pusher-BP0LjfyK.js";import"./ReactionAvatars-BE-JV8VR.js";import"./CopyLink-CDfvaqv0.js";import"./ActionsDropdown-C2vc0uQB.js";const z={components:{CommentTextarea:S,CommentBox:O},created(){o.on("cancelEdit-"+this.shownComment.id,e=>{this.editing=!1,this.avatar=this.useravatar}),o.on("postCommentReplied-"+this.shownComment.id,e=>{this.$emit("replied",e),this.replying=!1}),o.on("postCommentEdited-"+this.shownComment.id,e=>{this.is_preview||this.is_notifications?this.$emit("updated",e):o.emit("edited-"+this.shownComment.id,e),this.shownComment=e,this.editing=!1,this.avatar=this.useravatar,this.badge=this.userbadge}),o.on("postCancelled-comment-"+this.shownComment.id,e=>{this.replying=!1,this.editing=!1,this.avatar=this.useravatar,this.badge=this.userbadge}),o.on("commentingAsMod-Comment-"+this.shownComment.id+"-reply",e=>{e.commenting_as_mod?this.is_moderator?(this.avatar=this.$store.getters.modAvatar,this.badge=""):this.is_junior_moderator&&(this.avatar=this.$store.getters.modJrAvatar,this.badge=""):(this.avatar=this.useravatar,this.badge=this.userbadge),this.replying?this.$nextTick(()=>{o.emit("focusComments-"+this.type+"-"+this.shownComment.id+"-reply",e)}):(this.replying=!0,this.$nextTick(()=>{o.emit("focusComments-"+this.type+"-"+this.shownComment.id+"-reply",e)}))}),o.on("startReply-Comment-"+this.shownComment.id,e=>{this.replying?this.$nextTick(()=>{o.emit("focusComments-Post-"+this.shownComment.id+"-reply",e)}):(this.replying=!0,this.$nextTick(()=>{o.emit("focusComments-Post-"+this.shownComment.id+"-reply",e)}))}),o.on("actions-dropdown-comment-edit-"+this.comment.id+this.unique_id,e=>{this.showEdit()});var s=JSON.parse(document.querySelector('meta[name="ubs"]').content);this.blockedByUser=s.length>0?s.indexOf(this.comment.user_id)>-1:!1;var t=JSON.parse(document.querySelector('meta[name="ubbs"]').content);this.userBlockedBy=t.length>0?t.indexOf(this.comment.user_id)>-1:!1},mounted(){this.bearer!=""&&(this.apiRequest=!0,this.headers={Authorization:this.bearer}),this.hasBeenReactedByUser=!!this.shownComment.authUserReaction,this.reactionCount=parseInt(this.shownComment.reactionCount),window.addEventListener("resize",()=>{this.windowWidth=window.innerWidth})},props:{comment:Object,bearer:String,user_id:[Number,String],is_admin:Boolean,type:String,group_id:[Number,String],id:[Number,String],useravatar:String,userbadge:String,userdisplayname:String,userpath:String,userscore:String,iaps:Boolean,is_notifications:{type:Boolean,default:!1},is_preview:Boolean,is_reply:Boolean,is_first_reply:Boolean,unique_id:String,is_moderator:{type:Boolean,default:!1},is_junior_moderator:{type:Boolean,default:!1},is_public_group:Boolean,can_comment:{type:Boolean,default:!0}},data(){return{success:!0,replying:!1,editing:!1,apiRequest:!1,headers:{},hasBeenReactedByUser:!1,reactionCount:0,showingCommentBox:!0,deleted:!1,shouldFocus:!1,commentDeleted:this.comment.deleted_at!=null,showingModal:!1,deleting:!1,windowWidth:window.innerWidth,count:0,interval:!1,showing:!1,hovering:!1,avatar:this.useravatar,badge:this.userbadge,shownComment:this.comment,blockedByUser:!1,userBlockedBy:!1,can_interact_with_comments:this.type.toLowerCase()=="post"||this.type.toLowerCase()=="podcastepisode"||(this.type.toLowerCase()=="article"||this.type.toLowerCase()=="comic")&&this.$store.getters.articleInteract||this.type.toLowerCase()=="headline"&&this.$store.getters.headlineInteract}},methods:{cancelReplying(){this.replying=!1},toggleReaction(s){if(this.hovering=!1,this.interval=!1,this.showing=!1,this.count=0,this.success=!0,s.intention=="remove")this.hasBeenReactedByUser=!1,this.reactionCount-=1,o.emit("reactionCountChange-"+this.t
1ype+"-comment-"+this.shownComment.id+"-"+this.unique_id,{change:-1,intention:s.intention,type:s.reactionType,color:s.color,icon:s.icon,value:s.value,descriptor:s.descriptor,hasBeenReactedByUser:this.hasBeenReactedByUser});else{var t=0;if(!this.hasBeenReactedByUser){this.reactionCount+=1;var t=1}o.emit("reactionCountChange-"+this.type+"-comment-"+this.shownComment.id+"-"+this.unique_id,{change:t,intention:s.intention,type:s.reactionType,color:s.color,icon:s.icon,value:s.value,descriptor:s.descriptor,hasBeenReactedByUser:this.hasBeenReactedByUser}),this.hasBeenReactedByUser=!0}o.emit("reactionChange-comment-"+this.shownComment.id,this.hasBeenReactedByUser),axios.post("/reactions/Comment/"+this.shownComment.id+"/toggleReaction",{is_notifications:this.is_notifications,intention:s.intention,reaction_type:s.reactionType},{headers:this.headers}).then(e=>{e.data&&e.data!="error"?e.data.success?(e.data.cleared==!0&&o.emit("notificationCleared"),this.avatar=this.useravatar,this.editing=!1):o.emit("alert",{message:"Whoops!",subtext:e.data.message,success:!1}):this.success=!1})},showReply(s,t){this.can_interact_with_comments?(this.replying=!this.replying,this.shouldFocus=!0,this.editing=!1,this.avatar=this.useravatar,this.badge=this.userbadge,this.$nextTick(function(){o.emit("scrollToReplyBody",{refName:s,is_gif:t,is_embed:this.shownComment.hasEmbed})})):o.emit("triggerPremiumPopup",{})},showEdit(){this.avatar=this.comment.userAvatarImage,this.badge=this.comment.userBadgeImagePath,this.editing=!this.editing,this.replying=!1},reloadComments(s){this.replying=!this.replying,this.avatar=this.useravatar,this.editing=!1,this.$emit("replied",s)},removeEmbed(){this.$swalStyled({title:"Delete this media?",text:"This can't be undone.",destructive:!0,confirmText:"Delete",cancelText:"Cancel"}).then(s=>{s.value&&axios.post("/comments/"+this.type+"/"+this.shownComment.embedId+"/deleteEmbed",{api_request:this.apiRequest},{headers:this.headers}).then(t=>{t.data?(this.$emit("updated",t.data),o.emit("alert",{message:"You have successfully deleted the embed. Please refresh the page.",subtext:"",success:!0}),this.showingDelete=!1,this.showingEmbed=!1):this.success=!1})})}}},A={key:0},j={class:"flex -mt-1 ml-12 sm:ml-14 relative"},H=["dusk"],I={class:"mb-0"},E={class:"flex w-full space-x-2 mt-6"},D={class:"shrink-0 relative"},N=["href"],U={class:"text-red-600 mt-2"},P={class:"text-red-600 mt-2"},Y={class:"mb-0"},W={class:"sm:flex sm:justify-between items-center sm:flex-wrap mb-2"},J={class:"text-right"},K={class:"flex w-full space-x-2"},V=["src"];function F(s,t,e,a,i,m){const c=g("reactions"),u=g("avatar-image"),r=g("comment-box"),_=g("comment-textarea");return(e.iaps||i.shownComment.is_public)&&!i.userBlockedBy?(l(),h("div",A,[n("div",j,[i.shownComment.user_id!=e.user_id&&!i.commentDeleted?(l(),v(c,{key:0,onReacted:m.toggleReaction,object:i.shownComment,has_been_reacted_by_user:i.hasBeenReactedByUser,user_id:e.user_id,type:"comment",parent_type:e.type,is_notifications:e.is_notifications},null,8,["onReacted","object","has_been_reacted_by_user","user_id","parent_type","is_notifications"])):d("",!0),n("div",null,[!i.commentDeleted&&e.can_comment?(l(),h("button",{key:0,dusk:"commentReply-"+e.comment.id,onClick:t[0]||(t[0]=p=>m.showReply(i.shownComment.id.toString(),i.shownComment.is_gif)),class:"mr-2 xs:mr-3 text-sm font-medium text-gray-600 dark:text-gray-400 transition hover:text-blue-600 dark:hover:text-blue-400 focus:outline-none non-selectable"},T(i.replying?"Cancel":"Reply"),9,H)):d("",!0)])]),i.replying&&e.can_comment?(l(),h("div",{key:0,class:R(["comment-card mt-2",[i.replying&&e.is_first_reply?"ml-replies":""]])},[n("div",I,[n("div",E,[n("div",D,[n("a",{href:e.userpath,target:"_blank"},[f(u,{image_path:i.avatar,badge_path:i.badge},null,8,["image_path","badge_path"])],8,N)]),f(r,{type:e.type,id:e.id,shouldfocus:!0,useravatar:i.avatar,userdisplayname:e.userdisplayname,userpath:e.userpath,isgroup:e.group_id!=null&&e.group_id!=0,group_id:e.group_id,user_id:e.user_id,is_admin:e.is_admin,embeddable:"Comment",userscore:e.userscore,is_reply:!0,parentid:i.shownComment.id.toString(),parent_is_public:!!i.shownComment.is_public,is_notifications:e.is_notifications,is_public_group:e.is_public_group},null,8,["type","id","useravatar","userdisplayname","userpath","isgroup","group_id","user_id","is_admin","userscore","parentid","parent_is_public","is_notifications","is_public_group"])]),C(n("div",U,[...t[2]||(t[2]=[n("strong",null,"Your message is invali
1d. Comments must be between 1 and 1000 characters in length. Please try again.",-1)])],512),[[x,!i.success]]),C(n("div",P,[...t[3]||(t[3]=[n("strong",null,"The comment you were replying to has been deleted. Please refresh the page.",-1)])],512),[[x,i.deleted]])])],2)):i.editing?(l(),h("div",{key:1,class:R(["comment-card mt-2",[i.editing&&e.is_first_reply&&(i.shownComment.hasReplies||i.shownComment.hasDirectReplies)?"ml-replies":""]])},[n("div",Y,[n("div",W,[t[5]||(t[5]=n("label",{class:"text-sm text-muted font-bold",for:"message"},"Edit your comment:",-1)),n("div",J,[i.shownComment.hasEmbed?(l(),h("button",{key:0,class:"btn-sm-gray w-20 mb-2 sm:mb-0",onClick:t[1]||(t[1]=(...p)=>m.removeEmbed&&m.removeEmbed(...p))},[...t[4]||(t[4]=[n("i",{class:"fas fa-trash mr-1"},null,-1),b(" Media",-1)])])):d("",!0)])]),n("div",K,[n("img",{alt:"Profile Photo",class:"avatar-sizing",src:i.avatar},null,8,V),f(_,{type:"comment",bearer:e.bearer,action:"edit",parenttype:e.type,parentid:i.shownComment.id.toString(),initialbody:i.shownComment.editBody,group_id:e.group_id,focus:!0,id:i.shownComment.id.toString(),is_public_group:e.is_public_group},null,8,["bearer","parenttype","parentid","initialbody","group_id","id","is_public_group"])])])],2)):d("",!0)])):d("",!0)}const G=k(z,[["render",F]]),Q={components:{CommentActions:G,CommentContent:M},created(){o.on("scrollToLoaded",s=>{this.scrollto=s,this.$nextTick(()=>{this.scrollMe()})})},mounted(){this.hide_replies||(this.canShowReplies=this.comment.showReplies?this.comment.replyComments.length>0&&parseInt(this.comment.replyCount)<this.$store.getters.commentThreshold:!1,this.showingReplies=this.comment.showReplies?this.comment.replyComments.length>0&&parseInt(this.comment.replyCount)<this.$store.getters.commentThreshold:!1),this.is_interactable&&this.scrollMe(),this.comment&&this.comment.showReplies&&Array.isArray(this.comment.replyComments)&&this.comment.replyComments.length!==parseInt(this.comment.replyCount)&&this.requestReplyCountReconcile()},props:{comment:Object,is_admin:Boolean,is_group_owner:{type:Boolean,default:!1},is_moderator:{type:Boolean,default:!1},is_junior_moderator:{type:Boolean,default:!1},user_id:[Number,String],bearer:{type:String,default:""},is_first_reply:{type:Boolean,default:!1},showing_embeds_on_load:{type:Boolean,default:!0},show_gifs:{type:Boolean,default:!0},auto_show_gif:{type:Boolean,default:!1},iaps:{type:Boolean,default:!1},type:String,group_id:[Number,String],id:[Number,String],useravatar:String,userbadge:String,userdisplayname:String,userpath:String,userscore:String,is_notifications:{type:Boolean,default:!1},is_reply:Boolean,index:Number,shouldfocus:Boolean,hide_replies:{type:Boolean,default:!1},is_preview:Boolean,is_parent_comment:{type:Boolean,default:!1},preview_id:{type:String,default:""},scroll_to:String,is_public_group:Boolean,can_comment:{type:Boolean,default:!0},is_interactable:{type:Boolean,default:!0},is_violations_modal:{type:Boolean,default:!1},comment_count:[Number,String],in_footer:{type:Boolean,default:!1},current_sort:{type:String,default:"newest"}},data(){return{scrollto:this.scroll_to,shownComment:this.comment,replies:this.comment.replyComments,canShowReplies:!1,showingReplies:!1,repliesLoaded:!1,loadingReplies:!1,replyCount:this.comment.replyCount,scrollId:0,commentThreshold:this.$store.getters.commentThreshold,unique_id:Math.ceil(Math.random()*1e6).toString(),repliesPage:0,repliesHasMore:!1,repliesLoadingMore:!1,repliesObserver:null,animatingReplies:!1,repliesAnimation:null,repliesResizeObserver:null,repliesLastHeight:0}},watch:{showingReplies(s){this.$nextTick(()=>{const t=this.$refs["replies-wrapper-"+this.comment.id],e=this.$refs["replies-inner-"+this.comment.id];if(!(!t||!e))if(s)this.setupRepliesResizeObserver(t,e),this.animateRepliesHeight(t,0,e.scrollHeight);else{this.teardownRepliesResizeObserver();const a=t.getBoundingClientRect().height;this.animateRepliesHeight(t,a,0)}})}},beforeUnmount(){this.teardownReplyObserver(),this.teardownRepliesResizeObserver(),this.repliesAnimation&&(this.repliesAnimation.cancel(),this.repliesAnimation=null)},methods:{scrollMe(){if(!this.is_preview&&this.scrollto!=""){var s=this.scrollto.split("-"),t=s[1];if(this.scrollId=t,this.scrollId!=this.shownComment.id&&(this.hide_replies||this.comment_count>this.commentThreshold||parseInt(this.comment.replyCount)>this.commentThreshold)){var e=Array.isArray(this.comment.replyIds)?this.comment.replyIds:[],a=this;Object.values(e).forEach(function(i){i==t&&a.$nextTick(()=>{a.toggleReplies(!0,!0)})})}else this.$nextTick(()=>{this.scrollId!=0&&this.$emit("scroll","comment-"+this.scrollId)})}},deleted(){this.$emit("deleted")}
1,animateRepliesHeight(s,t,e,a){if(this.repliesAnimation&&(this.repliesAnimation.cancel(),this.repliesAnimation=null),t===e){a&&a();return}this.animatingReplies=!0;const i=t===0&&e>0,m=e===0,c=300,u="cubic-bezier(0.4, 0, 0.2, 1)",r=s.animate([{height:t+"px"},{height:e+"px"}],{duration:c,easing:u,fill:"forwards"});this.repliesAnimation=r;const _=this.$refs["replies-inner-"+this.comment.id];_&&(i||m)&&_.animate([{opacity:i?0:1,transform:i?"translateY(-6px)":"translateY(0)"},{opacity:i?1:0,transform:i?"translateY(0)":"translateY(-6px)"}],{duration:c,easing:u,fill:"forwards"});const p=()=>{this.repliesAnimation===r&&(this.repliesAnimation=null,this.animatingReplies=!1)};r.onfinish=()=>{p(),a&&a()},r.oncancel=p},setupRepliesResizeObserver(s,t){this.teardownRepliesResizeObserver(),window.ResizeObserver&&(this.repliesLastHeight=t.scrollHeight,this.repliesResizeObserver=new ResizeObserver(()=>{if(!this.showingReplies)return;const e=t.scrollHeight;if(e===this.repliesLastHeight)return;this.repliesLastHeight=e;const a=s.getBoundingClientRect().height;this.animateRepliesHeight(s,a,e)}),this.repliesResizeObserver.observe(t))},teardownRepliesResizeObserver(){this.repliesResizeObserver&&(this.repliesResizeObserver.disconnect(),this.repliesResizeObserver=null)},replied(s){this.showingReplies=!0,this.shownComment.hasReplies=!0,this.is_parent_comment?this.replies.push(s.comment):(this.replies=s.comments,this.replyCount=this.replies.length,this.repliesLoaded=!0,this.repliesHasMore=!1,this.teardownReplyObserver()),this.canShowReplies=this.replyCount>0&&this.replyCount<this.commentThreshold,this.$nextTick(()=>{this.$emit("replied",s.comment.id)})},toggleReplies(s,t=!1){this.showingReplies=s,!this.is_parent_comment&&this.$nextTick(()=>{this.showingReplies&&!this.repliesLoaded?this.fetchReplies(1,!1,t):this.showingReplies&&this.repliesHasMore?this.setupReplyObserver():this.showingReplies||this.teardownReplyObserver()})},fetchReplies(s,t,e=!1){t?this.repliesLoadingMore=!0:this.loadingReplies=!0;var a={};this.bearer!=""&&(a={Authorization:this.bearer}),axios.post("/comments/"+this.comment.id+"/getReplies",{page:s,sort:this.current_sort||"newest"},{headers:a}).then(i=>{if(!i.data){this.loadingReplies=!1,this.repliesLoadingMore=!1;return}var m=i.data.replies,c=Array.isArray(m)?m:m&&m.data||[];t?(this.replies=this.replies.concat(c),this.repliesLoadingMore=!1):(this.replies=c,this.repliesLoaded=!0,this.loadingReplies=!1),this.repliesPage=i.data.page||s,this.repliesHasMore=!!i.data.hasMore,this.$nextTick(()=>{!t&&e&&this.scrollId!=0&&this.$emit("scroll","comment-"+this.scrollId),this.repliesHasMore?this.setupReplyObserver():this.teardownReplyObserver()}),!this.repliesHasMore&&this.replies.length!==this.replyCount&&this.requestReplyCountReconcile()}).catch(()=>{this.loadingReplies=!1,this.repliesLoadingMore=!1})},requestReplyCountReconcile(){var s={};this.bearer!=""&&(s={Authorization:this.bearer}),axios.post("/comments/"+this.comment.id+"/reconcileReplyCount",{},{headers:s}).then(t=>{if(t&&t.data&&t.data.ok){var e=t.data.replyCount;this.replyCount=e,this.shownComment.replyCount=e,this.shownComment.hasReplies=e>0}}).catch(()=>{})},setupReplyObserver(){if(this.teardownReplyObserver(),!(typeof IntersectionObserver>"u")){var s=window.scrollY||window.pageYOffset||0;this.$nextTick(()=>{var t=this.$refs.replyLoadSentinel;t&&(this.repliesObserver=new IntersectionObserver(e=>{for(var a=0;a<e.length;a++)if(e[a].isIntersecting&&!(this.repliesLoadingMore||!this.repliesHasMore)){var i=window.scrollY||window.pageYOffset||0;if(!(i<s+80)){this.fetchReplies(this.repliesPage+1,!0),this.teardownReplyObserver();break}}},{rootMargin:"200px 0px"}),this.repliesObserver.observe(t))})}},teardownReplyObserver(){this.repliesObserver&&(this.repliesObserver.disconnect(),this.repliesObserver=null)}}},X={class:"relative has-[.reaction-popover-open]:z-30 has-[.reaction-avatars-container:hover]:z-30"},Z={key:0,class:"flex items-start w-full relative"},$={class:"border-left-comment z-0"},ee={class:"w-full"},te=["aria-hidden"],ie={key:0,class:"ml-5 text-gray-400 mt-3"},se=["id"],ne={class:"flex items-start w-full relative"},re={class:"w-full"},oe={key:0,ref:"replyLoadSentinel",class:"ml-5 mt-3 min-h-[1.5rem] text-gray-400"},ae={key:0},le={key:2,class:"ml-5 mt-2"},me=["dusk"],he=["dusk"];function de(s,t,e,a,i,m){const c=g("comment-content"),u=g("comment-actions");return l(),h("div",X,[f(c,{dusk:"comment-content",is_parent_comment:e.is_parent_comment,user_id:e.user_id,is_admin:e.is_admin,is_group_owner:e.is_group_owner,bearer:e.bearer,comment:i.shownComment,showing_embeds_on_load:e.showing_embeds_on_load,scrollto:i.scrollto,show_gifs:e.show_gifs,auto_
1show_gif:e.auto_show_gif,iaps:e.iaps,is_moderator:e.is_moderator,is_junior_moderator:e.is_junior_moderator,parent_type:e.type,userdisplayname:e.userdisplayname,useravatar:e.useravatar,userbadge:e.userbadge,is_preview:e.is_preview,preview_id:e.preview_id,unique_id:i.unique_id,is_interactable:e.is_interactable,is_violations_modal:e.is_violations_modal,in_footer:e.in_footer},null,8,["is_parent_comment","user_id","is_admin","is_group_owner","bearer","comment","showing_embeds_on_load","scrollto","show_gifs","auto_show_gif","iaps","is_moderator","is_junior_moderator","parent_type","userdisplayname","useravatar","userbadge","is_preview","preview_id","unique_id","is_interactable","is_violations_modal","in_footer"]),e.is_interactable?(l(),h("div",Z,[C(n("div",$,null,512),[[x,e.is_interactable&&(e.preview_id==i.shownComment.id&&i.shownComment.hasDirectReplies||i.shownComment.hasReplies)]]),n("div",ee,[i.shownComment.flaggedStatus!="rejected"?(l(),v(u,{key:0,onReplied:m.replied,onDeleted:m.deleted,type:e.type,comment:i.shownComment,bearer:e.bearer,user_id:e.user_id,is_admin:e.is_admin||e.is_group_owner,group_id:e.group_id,id:e.id,shouldfocus:e.shouldfocus,useravatar:e.useravatar,userbadge:e.userbadge,userdisplayname:e.userdisplayname,userpath:e.userpath,userscore:e.userscore,iaps:e.iaps,is_reply:!!i.shownComment.parent_id,is_first_reply:!0,is_moderator:e.is_moderator,is_preview:e.is_preview,is_junior_moderator:e.is_junior_moderator,unique_id:i.unique_id,is_public_group:e.is_public_group,can_comment:e.can_comment,is_notifications:e.is_notifications},null,8,["onReplied","onDeleted","type","comment","bearer","user_id","is_admin","group_id","id","shouldfocus","useravatar","userbadge","userdisplayname","userpath","userscore","iaps","is_reply","is_moderator","is_preview","is_junior_moderator","unique_id","is_public_group","can_comment","is_notifications"])):d("",!0)])])):d("",!0),e.is_interactable?(l(),h("div",{key:1,ref:"replies-wrapper-"+e.comment.id,style:q({height:i.showingReplies?"auto":"0px",overflow:!i.showingReplies||i.animatingReplies?"hidden":"visible"}),"aria-hidden":!i.showingReplies,class:"w-full"},[n("div",{ref:"replies-inner-"+e.comment.id},[i.loadingReplies?(l(),h("div",ie,[...t[6]||(t[6]=[n("i",{class:"far fa-spin fa-sync-alt fa-lg mr-2 mb-3 text-gray-300"},null,-1),b(" Loading Replies... ",-1)])])):(l(),h(B,{key:1},[(l(!0),h(B,null,L(i.replies,(r,_)=>(l(),h("div",{id:"comment-"+r.id,class:R({"bg-fade-away scrollToThis p-2":i.scrollto=="comment-"+r.id,"media pt-6 child-comment comment-body":!0})},[f(c,{dusk:"comment-content",user_id:e.user_id,is_admin:e.is_admin,is_group_owner:e.is_group_owner,bearer:e.bearer,comment:r,is_first_reply:_==0,showing_embeds_on_load:e.showing_embeds_on_load,scrollto:i.scrollto,show_gifs:e.show_gifs,auto_show_gif:e.auto_show_gif,iaps:e.iaps,is_moderator:e.is_moderator,is_junior_moderator:e.is_junior_moderator,parent_type:e.type,userdisplayname:e.userdisplayname,useravatar:e.useravatar,userbadge:e.userbadge,is_preview:e.is_preview,preview_id:e.preview_id,unique_id:i.unique_id,is_violations_modal:e.is_violations_modal,in_footer:e.in_footer},null,8,["user_id","is_admin","is_group_owner","bearer","comment","is_first_reply","showing_embeds_on_load","scrollto","show_gifs","auto_show_gif","iaps","is_moderator","is_junior_moderator","parent_type","userdisplayname","useravatar","userbadge","is_preview","preview_id","unique_id","is_violations_modal","in_footer"]),n("div",ne,[n("div",re,[r.flaggedStatus!="rejected"?(l(),v(u,{key:0,onReplied:m.replied,onDeleted:m.deleted,type:e.type,comment:r,bearer:e.bearer,user_id:e.user_id,is_admin:e.is_admin||e.is_group_owner,group_id:e.group_id,id:e.id,shouldfocus:e.shouldfocus,useravatar:e.useravatar,userbadge:e.userbadge,userdisplayname:e.userdisplayname,userpath:e.userpath,userscore:e.userscore,iaps:e.iaps,is_reply:!0,is_moderator:e.is_moderator,is_preview:e.is_preview,is_junior_moderator:e.is_junior_moderator,unique_id:i.unique_id,is_public_group:e.is_public_group,can_comment:e.can_comment,is_notifications:e.is_notifications},null,8,["onReplied","onDeleted","type","comment","bearer","user_id","is_admin","group_id","id","shouldfocus","useravatar","userbadge","userdisplayname","userpath","userscore","iaps","is_moderator","is_preview","is_junior_moderator","unique_id","is_public_group","can_comment","is_notifications"])):d("",!0)])])],10,se))),256)),i.repliesHasMore?(l(),h("div",oe,[i.repliesLoadingMore?(l(),h("span",ae,[...t[7]||(t[7]=[n("i",{class:"far fa-spin fa-sync-alt fa-lg mr-2 text-gray-300"},null,-1),n("span",{class:"text-sm"},"Loading more replies...",-1)])])):d("",!0)],512)):d("",!0)],64))],512)],12,te)):d("",!0),e.is_interactable&&!i.canShowReplies&&i.replyCount>0&&!i.loadingReplies?(l(),h("div",le,[i.showingReplies?(l(),h("span",{key:1,role:"button",tabindex:"0",onKeydown:[t[3]||(t[3]=y(w(r=>r.currentTarget.click(),["stop","prevent"]),["enter"])),t[4]||(t[4]=y(w(r=>r.currentTarget.click(),["stop","prevent"]),["space"]))],dusk:"hideReplies-"+e.comment.id,onClick:t[5]||(t[5]=r=>m.toggleReplies(!1)),class:"cursor-pointer"},[...t[9]||(t[9]=[n("i",{class:"fas fa-reply fa-rotate-90 mr-1 text-gray-300"},null,-1),b(),n("span",{class:"text-gray-600 text-sm"},"Hide Replies",-1)])],40,he)):(l(),h("span",{key:0,role:"button",tabindex:"0",onKeydown:[t[0]||(t[0]=y(w(r=>r.currentTarget.click(),["stop","prevent"]),["enter"])),t[1]||(t[1]=y(w(r=>r.currentTarget.click(),["stop","prevent"]),["space"]))],dusk:"showReplies-"+e.comment.id,onClick:t[2]||(t[2]=r=>m.toggleReplies(!0)),class:"cursor-pointer"},[...t[8]||(t[8]=[n("i",{class:"fas fa-reply fa-rotate-180 mr-1 text-gray-300"},null,-1),b(),n("span",{class:"text-gray-600 text-sm"},"Show Replies",-1)])],40,me))])):d("",!0)])}const qe=k(Q,[["render",de]]);export{qe as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.