PageSourceSearch

https://www.diariodecadiz.es/diariodecadiz/4370.h-2b2a58dd388aa3aed432.js

js diariodecadiz.es collected 2026-10-01 11:31:55 UTC 23,488 bytes, 6 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4370],{4370:(function(xe,_,i){i.r(_),i.d(_,{default:function(){return we}});var M=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"comments--wrapper"},[t("div",{staticClass:"comments-header"},[t("nx-button",{staticClass:"comments-header-number",attrs:{text:e.printNumComments,type:"button"},nativeOn:{click:function(n){return n.stopPropagation(),e.handleOpenComments.apply(null,arguments)}}}),e._v(" "),t("a",{staticClass:"comments-header-terms",class:e.brickConfig.composition.comments.headerterms,attrs:{href:"/avisolegal/",rel:"nofollow",target:"_blank"},domProps:{textContent:e._s(e.$t("comments.terms"))}})],1),e._v(" "),t("transition",{attrs:{name:"slide-from-right"}},[e.webHasUsers&&e.openCommentsWindow?t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeComments,expression:"closeComments"}],staticClass:"comments right-panel"},[t("button",{staticClass:"comments--close",on:{click:e.closeComments}},[t("nx-icon",{attrs:{icon:"close"}})],1),e._v(" "),t("nx-comment-post",{attrs:{printNumComments:e.printNumComments,"content-id":e.contentId,open:e.open,"premoderated-contents":e.premoderatedContents},on:{commentCreated:e.addLastComment}}),e._v(" "),t("div",{staticClass:"comments-orderby"},[t("button",{staticClass:"A-300-600-300-N color-neutral500",class:{active:e.currentOrderBy==="newest"},domProps:{innerHTML:e._s(e.$t("comments.orderby-newest"))},on:{click:function(n){return e.commentsOrderBy("newest")}}}),e._v(" "),t("button",{staticClass:"A-300-600-300-N color-neutral500",class:{active:e.currentOrderBy==="oldest"},domProps:{innerHTML:e._s(e.$t("comments.orderby-oldest"))},on:{click:function(n){return e.commentsOrderBy("oldest")}}}),e._v(" "),t("button",{staticClass:"A-300-600-300-N color-neutral500",class:{active:e.currentOrderBy==="best"},domProps:{innerHTML:e._s(e.$t("comments.orderby-best"))},on:{click:function(n){return e.commentsOrderBy("best")}}})]),e._v(" "),e.loading&&e.numComments?t("div",{staticClass:"comments-loading"},[t("span",{staticClass:"loader"})]):t("div",{staticClass:"comments-list"},[e._l(e.comments,function(n){return t("nx-comment-wrapper",{key:n.id,attrs:{comment:n,"content-id":e.contentId,canBeAnswered:e.open&&!!e.currentUser,"order-by":e.currentOrderBy},on:{commentCreated:e.addLastComment}})}),e._v(" "),e.hasMoreResults?t("nx-button",{staticClass:"comments-button",attrs:{text:e.$t("comments.load-more"),type:"button",medium:""},nativeOn:{click:function(n){return n.stopPropagation(),e.loadMoreCommentsOrderBy(e.currentOrderBy)}}}):e._e()],2)],1):e._e()])],1)},B=[],p=i(38),$=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"comment-wrapper"},[t("nx-comment-item",{attrs:{comment:e.comment,canBeAnswered:e.canBeAnswered},on:{showModal:e.toggleModal,reply:function(n){return e.toggleCommentPost(e.comment.id)}}}),e._v(" "),e.openCommentPostId===e.comment.id?t("nx-comment-post",{attrs:{parentComment:e.comment.id,open:e.canBeAnswered,"content-id":e.contentId},on:{postMessage:e.postMessage,commentCreated:e.addLastComment}}):e._e(),e._v(" "),e.comment.hasReplies?t("div",{staticClass:"comment-replies"},[e._l(e.comment.replies,function(n){return[t("nx-comment-item",{key:n.id,attrs:{parentAuthor:e.comment.author.nick,isSecondLevel:!0,comment:n,canBeAnswered:e.canBeAnswered},on:{showModal:e.toggleModal,reply:function(d){return e.toggleCommentSecondLevelPost(n.id)}}}),e._v(" "),e.openCommentPostSecondLevelId===n.id?t("nx-comment-post",{attrs:{parentComment:n.id,open:e.canBeAnswered,"content-id":e.contentId},on:{postMessage:e.postMessage,commentCreated:e.addLastComment}}):e._e(),e._v(" "),n.hasReplies?t("div",{staticClass:"comment-replies"},[e._l(n.replies,function(d){return[t("nx-comment-item",{key:d.id,attrs:{parentAuthor:n.author.nick,isThirdLevel:!0,comment:d,canBeAnswered:!1},on:{showModal:e.toggleModal}})]})],2):e._e()]})],2):e._e(),e._v(" "),t("nx-modal-window",{attrs:{title:e.modalTitle,text:e.modalText},scopedSlots:e._u([{key:"actions",fn:function(){return[t("nx-button",{attrs:{text:e.$t("comments.button-login"),tabindex:e.showModal?"0":"-1",type:"button",medium:""},on:{click:e.goToLogin}}),e._v(" "),t("nx-button",{staticClass:"form-user-profile__button",attrs:{text:e.$t("comments.button-close"),tabindex:e.showModal?"0":"-1",type:"button",medium:"",outline:""},on:{click:e.toggleModal}})]},proxy:!0}
1]),model:{value:e.showModal,callback:function(n){e.showModal=n},expression:"showModal"}})],1)},I=[],m=i(7382),R=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"comment-post"},[e.currentUser&&e.open?t("div",{staticClass:"comment-post-login"},[e.printNumComments?t("p",{staticClass:"comments--title color-neutral800 A-600-700-50-N mb-4",domProps:{textContent:e._s(e.printNumComments)}}):e._e(),e._v(" "),e.isAnyUserDataEmpty?t("div",[t("div",{staticClass:"comment-post-missdata",domProps:{innerHTML:e._s(e.whichDataIsMissed)},on:{click:e.showProfile}})]):t("div",[t("div",{staticClass:"text-area"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.answer,expression:"answer"}],ref:"textarea",attrs:{disabled:e.messageSend,placeholder:e.$t(e.placeholderInitial),maxlength:e.commentLimit},domProps:{value:e.answer},on:{input:function(n){n.target.composing||(e.answer=n.target.value)}}}),e._v(" "),t("span",{ref:"lengthMessage",staticClass:"text-area-control",class:{alert:e.alertMessage,warning:e.warningMessage},domProps:{textContent:e._s(e.textAreaMessage)}})]),e._v(" "),t("div",{staticClass:"comment-post-footer"},[e.showAdvice?t("div",{staticClass:"comment-advice",class:e.adviceClass,domProps:{textContent:e._s(e.adviceMessage)}}):e._e(),e._v(" "),e.showButton?t("div",[t("button",{staticClass:"bbnx-btn medium",class:{disabled:!e.canSendComment},domProps:{textContent:e._s(e.buttonText)},on:{click:e.sendMessage}})]):e._e()])])]):t("div",[t("div",{staticClass:"comment-no-post-no-login"},[e._v(`
2      Para participar en la conversaci\xF3n debes
3      `),t("button",{on:{click:e.goToLogin}},[e._v("iniciar sesi\xF3n")]),e.currentUser?e._e():t("span",[e._v(" o "),t("button",{on:{click:e.goToRegister}},[e._v("reg\xEDstrate")])]),e._v(`.
4    `)]),e._v(" "),t("p",{staticClass:"comments--title color-neutral800 A-500-700-50-N A-600-700-50-N--md",domProps:{textContent:e._s(e.printNumComments)}}),e._v(" "),t("a",{staticClass:"comments-header-terms",class:e.brickConfig.composition.comments.headerterms,staticStyle:{position:"absolute",right:"23px",transform:"translateY(-100%)","margin-top":"-11px"},attrs:{href:"/avisolegal/",rel:"nofollow",target:"_blank"},domProps:{textContent:e._s(e.$t("comments.terms"))}})])])},N=[],o=i(5449),r={getCommentsData(s,e){return e?o.Z.get(`/api/front/comments/${s}/${e}`):o.Z.get(`/api/front/comments/${s}`)},getCommentsOrderByData(s,e,t){return t?o.Z.get(`/api/front/comments/${s}/${e}/${t}`):o.Z.get(`/api/front/comments/${s}/${e}`)},sendComment(s,e,t){return o.Z.post(`/api/front/comments/${s}/new`,{comment:e,parentId:t})},reportComment(s,e){return o.Z.post(`/api/front/comment/${s}/report`,{report:e})},likeComment(s,e){return o.Z.post(`/api/front/comment/${s}/like`,{like:e})},dislikeComment(s,e){return o.Z.post(`/api/front/comment/${s}/dislike`,{dislike:e})},getRepliesComment(s){return o.Z.get(`/api/front/comment/${s}/replies`)},getRepliesCommentOrderBy(s,e,t){return t?o.Z.get(`/api/front/comment/${s}/replies/${e}/${t}`):o.Z.get(`/api/front/comment/${s}/replies/${e}`)}},U=i(5440),j=Object.defineProperty,A=Object.defineProperties,S=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,f=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,g=(s,e)=>{for(var t in e||(e={}))D.call(e,t)&&f(s,t,e[t]);if(v)for(var t of v(e))L.call(e,t)&&f(s,t,e[t]);return s},E=(s,e)=>A(s,S(e)),H={name:"nx-comment-post",components:{NxButton:p.Z},props:{contentId:{type:Number},parentComment:{type:Number},printNumComments:{type:String,default:null},open:{type:Boolean},canBeAnswered:{type:Boolean,default:!0},commentPost:{type:Boolean},premoderatedContents:{type:Boolean},toggleIsBeingAnswered:{type:Function}},data:()=>({answer:"",commentLimit:500,showAdvice:!1,showButton:!0,adviceMessage:null,adviceClass:null,messageSend:!1,isBeingAnswered:!1,placeholderInitial:"comments.post-placeholder",isUserDataEmpty:!1,missedData:null,showModal:!1}),mounted(){},computed:E(g(g({},(0,m.Se)("user",["currentUser"])),(0,m.Se)(["brickConfig"])),{textAreaMessage(){return`${this.answer.length} / ${this.commentLimit}`},canSendComment(){return this.answer.length>1&&!this.messageSend},alertMessage(){return this.answer.length>this.commentLimit-this.commentLimit*.1},warningMessage(){return this.answer.length>this.commentLimit-this.commentLimit*.4},closedCommentsMessage(){return this.open?this.$t("comments.join",{"url-login":"/acceso","url-register":"/registro"}):this.$t("comments.closed")},buttonText(){return this.parentComment?this.$t("comments.reply"):this.$t("comments.post")},isAnyUserDataEmpty(){return this.currentUser?this.currentUser.name===""||this.currentUser.surname===""||this.currentUser.nick===""||this.currentUser.email===""||this.currentUser.birthdate===""?!this.isUserDataEmpty:this.isUserDataEmpty:!0},whichDataIsMissed(){return this.currentUser?this.currentUser.name===""?this.$t("comments.no-registered",{"url-completedata":"/perfil/mi-cuenta",faildata:this.$t("comments.name")}
4):this.currentUser.surname===""?this.$t("comments.no-registered",{"url-completedata":"/perfil/mi-cuenta",faildata:this.$t("comments.surname")}):this.currentUser.email===""?this.$t("comments.no-registered",{faildata:this.$t("comments.email"),"url-completedata":"/perfil/mi-cuenta"}):this.currentUser.nick===""?this.$t("comments.no-registered",{"url-completedata":"/perfil/mi-cuenta",faildata:this.$t("comments.nick")}):this.currentUser.birthdate===""?this.$t("comments.no-registered",{"url-completedata":"/perfil/mi-cuenta",faildata:this.$t("comments.birthdate")}):this.$t("comments.no-registered-data"):this.$t("comments.no-registered-data")}}),methods:{showProfile(){const s={screenSet:"Default-ProfileUpdate",mobileScreenSet:"Default-ProfileUpdate",dialogStyle:"modern",deviceType:"auto",lang:"es"};gigya.accounts.showScreenSet(s),this.loginWithAPI()},sendMessage(s){return r.sendComment(this.contentId,this.answer,this.parentComment).then(e=>{this.showAdvice=!0,this.premoderatedContents?this.adviceMessage=this.$t("comments.post-message-moderated"):this.adviceMessage=this.$t("comments.post-message"),this.showButton=!1,this.adviceClass="success",this.messageSend=!0,this.$emit("commentCreated",e),this.answer="",setTimeout(()=>{this.isBeingAnswered=!1,this.showAdvice=!1,this.showButton=!0,this.messageSend=!1,this.placeholderInitial=this.$t("comments.post-placeholder")},2e3)}).catch(e=>{this.showAdvice=!0,this.adviceMessage=this.$t("comments.error-message"),this.adviceClass="alert",s("pushHttpRequestError",e,{root:!0})})},goToLogin(){var s={screenSet:"Default-RegistrationLogin"};gigya.accounts.showScreenSet(s)},goToRegister(){var s={screenSet:"Default-RegistrationLogin",startScreen:"gigya-register-screen"};gigya.accounts.showScreenSet(s)},toggleModal(s){this.action=s,this.showModal=!this.showModal}}},Z=H,c=i(810),T=(0,c.Z)(Z,R,N,!1,null,null,null),C=T.exports,F=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"comment"},[e.comment.author.avatar?t("div",{staticClass:"comment-avatar"}):t("div",{staticClass:"comment-avatar A-550-300-500-C",style:e.randomColor,domProps:{textContent:e._s(e.comment.author.nick.slice(0,1))}}),e._v(" "),t("div",{staticClass:"comment-info"},[t("div",{staticClass:"comment-info-name A-200-700-500-N"},[t("span",{domProps:{textContent:e._s(e.comment.author.nick)}}),e._v(" "),e.isSecondLevel||e.isThirdLevel?t("span",[t("nx-icon",{attrs:{icon:"reply"}}),e._v(" "),t("span",{domProps:{textContent:e._s(e.parentAuthor)}})],1):e._e()]),e._v(" "),t("div",{staticClass:"comment-info-date A-200-500-500-N",domProps:{textContent:e._s(e.formatDate(e.comment.publicationDate))}}),e._v(" "),t("div",{staticClass:"comment-info-text A-400-400-500-N",domProps:{textContent:e._s(e.comment.body)}}),e._v(" "),t("div",{staticClass:"comment-info-footer A-300-500-500-N"},[t("div",{staticClass:"action action-positive",on:{click:e.commentLike}},[t("span",{staticClass:"icon"},[t("nx-icon",{attrs:{icon:e.iconLike}})],1),e._v(" "+e._s(e.likeNumber)+`
5      `)]),e._v(" "),t("div",{staticClass:"action action-negative",on:{click:e.commentDislike}},[t("span",{staticClass:"icon"},[t("nx-icon",{attrs:{icon:e.iconDislike}})],1),e._v(" "+e._s(e.dislikeNumber)+`
6      `)]),e._v(" "),t("div",{staticClass:"action action-report",class:{"action-report-checked":e.commentIsReported},on:{click:e.commentReport}},[t("span",{staticClass:"icon"},[t("nx-icon",{attrs:{icon:e.iconFlag}})],1),e._v(" "),t("span",{staticClass:"text",domProps:{textContent:e._s(e.commentIsReported?e.$t("comments.reported"):e.$t("comments.report"))}})]),e._v(" "),e.canBeAnswered?t("div",{staticClass:"action action-reply",on:{click:e.commentReply}},[t("span",{staticClass:"icon"},[t("nx-icon",{attrs:{icon:e.iconAnswered}})],1),e._v(" "),t("span",{domProps:{textContent:e._s(e.isBeingAnswered?e.$t("comments.cancel"):e.$t("comments.reply"))}})]):e._e()]),e._v(" "),t("transition",{attrs:{name:"fade"}},[e.showAdvice?t("div",{staticClass:"comment-info-advice",class:e.adviceClass,domProps:{textContent:e._s(e.adviceMessage)}}):e._e()])],1)])},V=[],u=i(1605),h=i(5678),W=Object.defineProperty,q=Object.defineProperties,Y=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,w=(s,e,t)=>e in s?W(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,K=(s,e)=>{for(var t in e||(e={}))z.call(e,t)&&w(s,t,e[t]);if(y)for(var t of y(e))G.call(e,t)&&w(s,t,e[t]);return s},J=(s,e)=>q(s,Y(e)),Q={name:"nx-comment-item",components:{NxIcon:h.Z},props:{comment:{type:Object,required:!0},canBeAnswered:{type:Boolean,default:!0},pushReply:{type:Boolean,default:!1},isSecondLevel:{type:Boolean,default:!1},parentAuthor:{type:String,default:""},isThirdLevel:{type:Boolean,default:!1}},data:()=>({showAdvice:!1,adviceMessage:null,adviceClass:null,likeNumber:0,dislikeNumber:0,activeLikesVotes:!0,isBeingAnswered:!1,isReported:!1}),mounted(){this.likeNumber=this.comment.likedByUserIds.length,this.dislikeNumber=this.comment.dislikedByUserIds.length},computed:J(K({},(0,m.Se)("user",["currentUser"])),{randomColor(){return`background-color: hsla(${360*Math.random()},70%,80%,1)`},commentIsLiked(){return this.currentUser?this.isLikedClicked?!0:this.comment.likedByUserIds.find(s=>s===this.currentUser.id)!==void 0:!1},commentIsDisliked(){return this.currentUser?this.isDislikedClicked?!0:this.comment.dislikedByUserIds.find(s=>s===this.currentUser.id)!==void 0:!1},commentIsReported(){return this.currentUser?this.isReported?!0:this.comment.reportedByUserIds.find(s=>s===this.currentUser.id)!==void 0:!1},iconLike(){return this.commentIsLiked?"upvote-on":"upvote-off"},iconDislike(){return this.commentIsDisliked?"downvote-on":"downvote-off"},iconFlag(){return this.commentIsReported?"flag-on":"flag-off"}
6,iconAnswered(){return this.isBeingAnswered?"close":"reply"}}),methods:{showAndClearAdvice(s,e){this.showAdvice=!0,this.adviceMessage=s,this.adviceClass=e,setTimeout(()=>{this.showAdvice=!1},2e3)},formatDate(s){const e=u.Z.utc().local(),t=u.Z.utc(s).local(),a=e.diff(t,"minutes");return a<2?"Hace menos de 1 minuto.":a<60?`Hace ${a} minutos.`:a<119?"Hace una hora.":a<1441?`Hace ${e.diff(t,"hours")} horas.`:`${u.Z.utc(s).local().format("DD MMM YYYY - HH:mm")}h`},commentLike(s){if(!this.currentUser){this.$emit("showModal","vote");return}if(this.commentIsDisliked&&this.activeLikesVotes&&(this.comment.dislikedByUserIds.splice(this.comment.dislikedByUserIds.indexOf(this.currentUser.id),1),this.dislikeNumber-=1,r.likeComment(this.comment.id,!0).catch(e=>{s("pushHttpRequestError",e,{root:!0})})),this.commentIsLiked){this.comment.likedByUserIds.splice(this.comment.likedByUserIds.indexOf(this.currentUser.id),1),this.likeNumber-=1,r.dislikeComment(this.comment.id,!0).catch(e=>{s("pushHttpRequestError",e,{root:!0})});return}r.likeComment(this.comment.id,!0).then(()=>{this.likeNumber+=1,this.comment.likedByUserIds.push(this.currentUser.id)}).catch(e=>{s("pushHttpRequestError",e,{root:!0})})},commentDislike(s){if(!this.currentUser){this.$emit("showModal","vote");return}if(this.commentIsLiked&&this.activeLikesVotes&&(this.comment.likedByUserIds.splice(this.comment.likedByUserIds.indexOf(this.currentUser.id),1),this.likeNumber-=1,r.dislikeComment(this.comment.id,!0).catch(e=>{s("pushHttpRequestError",e,{root:!0})})),this.commentIsDisliked){this.comment.dislikedByUserIds.splice(this.comment.dislikedByUserIds.indexOf(this.currentUser.id),1),this.dislikeNumber-=1,r.likeComment(this.comment.id,!0).catch(e=>{s("pushHttpRequestError",e,{root:!0})});return}r.dislikeComment(this.comment.id,!0).then(()=>{this.dislikeNumber+=1,this.comment.dislikedByUserIds.push(this.currentUser.id)}).catch(e=>{s("pushHttpRequestError",e,{root:!0})})},commentReport(s){if(!this.currentUser){this.$emit("showModal","report");return}r.reportComment(this.comment.id,!this.commentIsReported).then(()=>{this.commentIsReported||(this.isReported=!0)}).catch(e=>{s("pushHttpRequestError",e,{root:!0})})},commentReply(){this.isBeingAnswered=!this.isBeingAnswered,this.$emit("reply")}}},X=Q,ee=(0,c.Z)(X,F,V,!1,null,null,null),te=ee.exports,se=Object.defineProperty,ne=Object.defineProperties,re=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,k=(s,e,t)=>e in s?se(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,b=(s,e)=>{for(var t in e||(e={}))oe.call(e,t)&&k(s,t,e[t]);if(x)for(var t of x(e))ie.call(e,t)&&k(s,t,e[t]);return s},me=(s,e)=>ne(s,re(e)),ae={name:"nx-comment-wrapper",props:{comment:{type:Object,required:!0},contentId:{type:Number},canBeAnswered:{type:Boolean,default:!0},orderBy:{type:String,required:!0,default:"newest"}},components:{NxIcon:h.Z,NxCommentPost:C,NxCommentItem:te,NxButton:p.Z,NxModalWindow:U.Z},data:()=>({openCommentPostId:null,openCommentPostSecondLevelId:null,showModal:!1,action:"vote",showReplies:!1,loading:!0,comments:[]}),computed:me(b(b({},(0,m.Se)(["site"])),(0,m.Se)(["brickConfig"])),{modalTitle(){return this.action==="report"?this.$t("comments.modal-title-report"):this.$t("comments.modal-title-vote")},modalText(){return this.action==="report"?this.$t("comments.modal-text-report",{site:this.site.name}):this.$t("comments.modal-text-vote",{site:this.site.name})}}),methods:{initReplies(){this.getComments(this.comment.id),this.showReplies=!this.showReplies},initRepliesOrderBy(){this.getCommentsOrderBy(this.comment.id),this.showReplies=!this.showReplies},getComments(s){this.loading=!0,r.getRepliesCommentOrderBy(this.comment.id).then(e=>{this.active=e.active,this.comments=e.comments,this.hasMoreResults=e.hasMoreResults,this.realNumComments=e.numComments,this.loading=!1}).catch(e=>{s("pushHttpRequestError",e,{root:!0})})},getCommentsOrderBy(s){this.loading=!0,r.getRepliesCommentOrderBy(this.comment.id,this.orderBy).then(e=>{this.active=e.active,this.comments=e.comments,this.hasMoreResults=e.hasMoreResults,this.realNumComments=e.numComments,this.loading=!1}
6).catch(e=>{s("pushHttpRequestError",e,{root:!0})})},goToLogin(){var s={screenSet:"Default-RegistrationLogin"};typeof gigya!="undefined"&&gigya.accounts?gigya.accounts.showScreenSet(s):console.warn("Gigya SDK not loaded or 'gigya.accounts' not available."),this.showModal=!this.showModal},toggleModal(s){this.action=s,this.showModal=!this.showModal},toggleCommentPost(s){this.openCommentPostId=this.openCommentPostId===s?null:s},toggleCommentSecondLevelPost(s){this.openCommentPostSecondLevelId=this.openCommentPostSecondLevelId===s?null:s},addLastComment(s){this.$emit("commentCreated",s),s.state==="published"&&this.comments.unshift(s),this.openCommentPostId=null,this.openCommentPostSecondLevelId=null}}},ce=ae,le=(0,c.Z)(ce,$,I,!1,null,null,null),de=le.exports,pe=Object.defineProperty,ue=Object.defineProperties,he=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,O=(s,e,t)=>e in s?pe(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,l=(s,e)=>{for(var t in e||(e={}))_e.call(e,t)&&O(s,t,e[t]);if(P)for(var t of P(e))ve.call(e,t)&&O(s,t,e[t]);return s},fe=(s,e)=>ue(s,he(e)),ge={name:"nx-comments",props:{contentId:{type:Number},numComments:{type:Number},hrefComments:{type:String},showComments:{type:Boolean},readOnlyComments:{type:Boolean},premoderatedContents:{type:Boolean}},components:{NxButton:p.Z,NxCommentWrapper:de,NxCommentPost:C,NxIcon:h.Z},data:()=>({active:null,open:null,comments:[],cursorMark:null,realNumComments:null,loading:!0,openCommentsWindow:!1,hasMoreResults:!1,canCloseOnClickOutside:!0,currentOrderBy:"newest"}),mounted(){},computed:fe(l(l(l(l({},(0,m.Se)("user",["currentUser"])),(0,m.Se)(["webHasUsers"])),(0,m.Se)(["brickConfig"])),(0,m.Se)(["openComments"])),{printNumComments(){return this.$tc("comments.comments",this.realNumComments||this.numComments)},buttonVisible(){return this.hasMoreResults!==!1}}),watch:{openComments(s){s===!0&&(this.canCloseOnClickOutside=!1,this.handleOpenComments(),this.$store.dispatch("setOpenComments",!1),setTimeout(()=>{this.canCloseOnClickOutside=!0},100))}},methods:{loadMoreComments(s){this.loading=!0,r.getCommentsData(this.contentId,this.cursorMark).then(e=>{this.active=e.active,this.open=e.open,this.hasMoreResults=e.hasMoreResults,this.realNumComments=e.numComments,this.comments=this.comments.concat(e.comments),this.cursorMark=e.cursorMark,this.loading=!1}).catch(e=>{s("pushHttpRequestError",e,{root:!0})})},closeComments(){this.canCloseOnClickOutside&&(this.openCommentsWindow=!1,document.body.classList.remove("locked-open-comments"))},handleOpenComments(s){this.openCommentsWindow===!1&&document.body.classList.add("locked-open-comments"),this.openCommentsWindow=!0,this.loading=!0,r.getCommentsData(this.contentId).then(e=>{this.active=e.active,this.open=this.showComments&&!this.readOnlyComments,this.comments=e.comments,this.hasMoreResults=e.hasMoreResults,this.realNumComments=e.numComments,this.cursorMark=e.cursorMark,this.loading=!1}).catch(e=>{console.error(e)})},commentsOrderBy(s){this.currentOrderBy!==s&&(this.currentOrderBy=s,this.loading=!0,this.comments=[],r.getCommentsOrderByData(this.contentId,s).then(e=>{this.active=e.active,this.open=this.showComments&&!this.readOnlyComments,this.comments=e.comments,this.hasMoreResults=e.hasMoreResults,this.realNumComments=e.numComments,this.loading=!1}).catch(e=>{console.error(e),this.loading=!1}))},loadMoreCommentsOrderBy(s){this.loading=!0,r.getCommentsOrderByData(this.contentId,s,this.cursorMark).then(e=>{this.active=e.active,this.open=e.open,this.hasMoreResults=e.hasMoreResults,this.realNumComments=e.numComments,this.comments=this.comments.concat(e.comments),this.cursorMark=e.cursorMark,this.loading=!1}).catch(e=>{console.error(e),this.loading=!1})},addLastComment(s){s.state==="published"&&this.comments.unshift(s)}}},Ce=ge,ye=(0,c.Z)(Ce,M,B,!1,null,null,null),we=ye.exports})}]);

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.