(window.webpackJsonp=window.webpackJsonp||[]).push([[4,137],{1674:function(t,e,n){"use strict";n.r(e);var o,r,c,l,m,h,d,f,v,y=n(31),w=n(34),k=n(95),x=n(303),C=n(393),O=n(8),R=n(258),j=(n(77),n(2)),_=n(63),A=n(24),$=n(25),D=n(51),M=n(43),S=n(50),I=n(30),z=n(55),T=(n(234),n(52),n(27),n(6),n(26)),E=n(598),L=n(112),P=n(184);function U(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Object(I.a)(t);if(e){var r=Object(I.a)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Object(S.a)(this,n)}}var B=(o=Object(T.b)({name:"ReportDialog"}),r=Object(T.e)(),c=Object(T.e)(),l=Object(T.f)("form"),o((h=function(t){Object(M.a)(o,t);var e,n=U(o);function o(){var t;Object(A.a)(this,o);for(var e=arguments.length,r=new Array(e),c=0;c<e;c++)r[c]=arguments[c];return t=n.call.apply(n,[this].concat(r)),Object(_.a)(t,"entityId",d,Object(D.a)(t)),Object(_.a)(t,"entityType",f,Object(D.a)(t)),Object(_.a)(t,"form",v,Object(D.a)(t)),t.reasons=[],t.selectedReason="PLV",t.reportMessage="",t.show=!1,t}return Object($.a)(o,[{key:"mounted",value:function(){var t=this;["PLV","SPM","LNG","INS","DEF","CRI","PRN","ECM"].forEach((function(e){t.reasons.push({text:t.$t("report.reasons.".concat(e)),value:e})}))}},{key:"rules",get:function(){return Object(P.a)()}},{key:"snackbar",get:function(){return Object(L.a)()}},{key:"open",value:function(){this.show=!0}},{key:"sendReport",value:(e=Object(j.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.$refs.form.validate()){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,E.createReport(this.entityId,this.entityType,this.selectedReason,this.reportMessage?this.reportMessage:void 0);case 5:this.reportMessage="",this.snackbar.show({message:"".concat(this.$t("report.accept.sent"))}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),"ENTITY_ALREADY_REPORTED_BY_USER"===t.t0.message?this.snackbar.show({message:"".concat(this.$t("report.reject.notSentDouble"))}):this.snackbar.show({message:"".concat(this.$t("report.reject.notSent"))});case 12:this.closeDialog();case 13:case"end":return t.stop()}}),t,this,[[2,9]])}))),function(){return e.apply(this,arguments)})},{key:"closeDialog",value:function(){this.show=!1}}]),o}(T.g),d=Object(z.a)(h.prototype,"entityId",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=Object(z.a)(h.prototype,"entityType",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=Object(z.a)(h.prototype,"form",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=h))||m),F=Object(T.i)(B),Y=n(13),component=Object(Y.a)(F,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e(k.a,{attrs:{width:600},on:{"click:outside":function(e){return t.closeDialog()}},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e(w.a,[e(w.e,[t._v(t._s(t.$t("report.fillForm")))]),e(w.d,[e(x.a,{ref:"form"},[e(C.a,{attrs:{outlined:"",dense:"",items:t.reasons,rules:[t.rules.requiredRule()],label:t.$t("report.reason.description")},model:{value:t.selectedReason,callback:function(e){t.selectedReason=e},expression:"selectedReason"}}),e(R.a,{attrs:{outlined:"",dense:"",rows:"3",label:t.$t("report.message.description")},model:{value:t.reportMessage,callback:function(e){t.reportMessage=e},expression:"reportMessage"}})],1)],1),e(w.b,[e(O.d),e(y.a,{attrs:{text:""},on:{click:function(e){return t.closeDialog()}}},[t._v(t._s(t.$t("actions.cancel")))]),e(y.a,{attrs:{text:"",color:"primary"},on:{click:function(e){return t.sendReport()}}},[t._v(t._s(t.$t("actions.send")))])],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports},1686:function(t,e,n){"use strict";n.r(e);var o,r,c,l,m,h,d,f,v,y,w,k,x,C,O,R,j,_,A,$=n(94),D=n(1632),M=n(31),S=n(8),I=n(15),z=n(560),T=n(382),E=n(32),L=n(338),P=n(564),U=(n(29),n(77),n(12),n(10),n(19),n(20),n(5)),B=n(23),F=n(2),Y=n(63),N=n(24),Z=n(25),H=n(51),W=n(43),V=n(50),G=n(30),J=n(55),K=(n(234),n(52),n(27),n(62),n(33),n(35),n(813),n(6),n(9),n(42),n(28),n(11),n(44),n(60),n(67),n(97),n(40),n(38),n(90),n(147)),Q=n.n(K),X=n(26),tt=n(108),et=n(183),nt=n(583),it=n(41),ot=n(112),st=n(68),time=n(123);function at(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function ct(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?at(Object(n),!0).forEach((function(e){Object(U.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ut(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Object(G.a)(t);if(e){var r=Object(G.a)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Object(V.a)(this,n)}}var lt=(o=Object(X.b)({name:"CommentMobile"}),r=Object(X.e)(),c=Object(X.e)(),l=Object(X.e)({default:!1}),m=Object(X.e)({default:!1}),h=Object(X.e)(),d=Object(X.e)(),f=Object(X.f)("ReportDialog"),v=Object(X.f)("content"),o((w=function(t){Object(W.a)(d,t);var e,n,o,r,c,l,m,h=ut(d);function d(){var t;Object(N.a)(this,d);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t=h.call.apply(h,[this].concat(n)),Object(Y.a)(t,"comment",k,Object(H.a)(t)),Object(Y.a)(t,"highlight",x,Object(H.a)(t)),Object(Y.a)(t,"videoOwner",C,Object(H.a)(t)),Object(Y.a)(t,"isOnReplyList",O,Object(H.a)(t)),Object(Y.a)(t,"replyListValue",R,Object(H.a)(t)),Object(Y.a)(t,"showFullComment",j,Object(H.a)(t)),Object(Y.a)(t,"reportDialogRef",_,Object(H.a)(t)),Object(Y.a)(t,"contentElement",A,Object(H.a)(t)),t.myRating={},t.upvotesCount=0,t.downvotesCount=0,t.repliesCount=0,t.loadingDelete=!1,t.showReplies=!1,t.addingRate=!1,t.content="",t.edit=!1,t.editContent="",t.showMore=!1,t.canShowMore=!1,t}return Object(Z.a)(d,[{key:"report",get:function(){var t;return{entityId:null===(t=this.comment)||void 0===t?void 0:t._id,entityType:"comment"}}},{key:"Auth",get:function(){return Object(it.a)()}},{key:"timeStore",get:function(){return Object(time.a)()}},{key:"snackbar",get:function(){return Object(ot.a)()}},{key:"contentWithHighlightedTimestamps",get:function(){var t=this,e=Array.from(this.content.matchAll(/\b(([0-5]?\d:[0-5]\d(:[0-5]\d)?)|([0-5]?\d:[0-5]\d))\b/g)),n=[],o=0;return e.forEach((function(e){e.index&&e.index>o&&n.push({text:t.content.slice(o,e.index),isTimestamp:!1}),n.push({text:e[0],isTimestamp:!0}),o=(e.index?e.index:0)+e[0].length})),o<this.content.length&&n.push({text:this.content.slice(o),isTimestamp:!1}),n}},{key:"listItems",get:function(){var t=this;return[{visible:this.loggedIn&&this.isCommentAuthor,title:this.$t("video.comments.edit").toString(),icon:"mdi-comment-edit-outline",action:function(){return t.editComment()}},{visible:this.loggedIn&&this.isAuthorOrAdministration,title:this.$t("video.comments.delete").toString(),icon:"mdi-delete",action:function(){return t.deleteComment()}},{visible:this.loggedIn&&!this.isCommentAuthor,title:this.$t("video.report").toString(),icon:"mdi-alert-circle-outline",action:function(){return t.showReportDialog()}},{visible:this.loggedIn&&(this.videoOwner||this.isAdmin||this.isModerator)&&this.comment.content,title:this.comment.crossedOut?this.$t("video.comments.crossoutCancel").toString():this.$t("video.comments.crossout").toString(),icon:"mdi-comment-alert-outline",action:function(){return t.crossoutComment()}},{visible:this.comment.user&&!this.isCommentAuthor&&!this.isCommentAuthorMuted,title:this.$t("user.mute.text").toString(),icon:"mdi-account-cancel",action:function(){return t.muteUser()}},{visible:this.comment.user&&!this.isCommentAuthor&&this.isCommentAuthorMuted,title:this.$t("user.unmute.text").toString(),icon:"mdi-account-eye",action:function(){return t.unmuteUser()}},{visible:this.isAdminPath,title:this.$t("video.comments.goToVideo").toString(),icon:"mdi-link",action:function(){return t.goTolink()}}]}},{key:"visibleItems",get:function(){return this.listItems.filter((function(t){return t.visible}))}},{key:"isAdmin",get:function(){return this.Auth.isAdmin}},{key:"isModerator",get:function(){return this.Auth.isModerator}},{key:"isAdminPath",get:function(){return this.$route.path.includes("/admin")}},{key:"isCommentAuthor",get:function(){var t,e=this.Auth.isLogged&&(null===(t=this.Auth.user)||void 0===t?void 0:t._id);if(!e)return!1;if(this.comment.channelId){var n;if(this.comment.userId&&this.comment.userId!==e)return!1;var o=(null===(n=this.Auth.user)||void 0===n?void 0:n.channels)||[],r=this.comment.channelId;return o.some((function(t){return t._id===r}))}return e===this.comment.userId}},{key:"isAuthorOrAdministration",get:function(){return this.isCommentAuthor||this.isAdmin||this.isModerator}},{key:"loggedIn",get:function(){return this.Auth.isLogged}},{key:"ratedUp",get:function(){return this.myRating&&1===this.myRating.rating}},{key:"ratedDown",get:function(){return this.myRating&&-1===this.myRating.rating}},{key:"contentClass",get:function(){var t=[];return this.comment.reportReason&&t.push("reported"),this.showMore||t.push("truncated"),t}},{key:"useDialogs",get:function(){return Object(st.a)()}},{key:"isCommentAuthorMuted",get:function(){return!!this.comment.userId&&this.Auth.isUserMutedByMe(this.comment.userId)}},{key:"crossoutComment",value:(m=Object(F.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.updateComment({crossOut:!this.comment.crossedOut});case 2:case"end":return t.stop()}}),t,this)}))),function(){return m.apply(this,arguments)})},{key:"updateComment",value:(l=Object(F.a)(regeneratorRuntime.mark((function t(e){var data,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return data={},e&&void 0!==e.crossOut&&(data.crossedOut=e.crossOut),t.prev=2,t.next=5,nt.updateComment(this.comment._id,data);case 5:n=t.sent,this.$emit("update:comment",n),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),this.snackbar.show({message:this.$t("video.comments.crossoutFail").toString()});case 12:case"end":return t.stop()}}),t,this,[[2,9]])}))),function(t){return l.apply(this,arguments)})},{key:"goTolink",value:function(){this.$router.push("/watch/".concat(this.comment.videoId))}},{key:"showEncourageDialog",value:function(){this.useDialogs.showLoginEncourage()}},{key:"replaceURL",value:function(input){var content=input.replace(/(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/gi,(function(t){var e=t.startsWith("http://")||t.startsWith("https://")?t:"http://".concat(t);return'<a target="_blank" href="'.concat(e,'">').concat(t,"</a>")}));this.content=content}},{key:"showReportDialog",value:function(){this.reportDialogRef.open()}},{key:"onTimestampClick",value:function(t){var e=t.split(":").map(Number),n=0,o=0,r=0;if(3===e.length){var c=Object(B.a)(e,3);n=c[0],o=c[1],r=c[2]}else if(2===e.length){var l=Object(B.a)(e,2);o=l[0],r=l[1]}var m=3600*n+60*o+r;this.$emit("timestamp-clicked",m)}},{key:"onReplyAdded",value:function(){this.repliesCount+=1}},{key:"formatDate",value:function(t){return"en"===this.$i18n.locale?Q()(t).locale("en").format("Do MMM YYYY, H:mm"):Q()(t).locale("pl").format("Do MMM YYYY, H:mm")}},{key:"mounted",value:function(){var t=this;this.myRating=ct({},this.comment.myRating||{}),this.upvotesCount=this.comment.upvotesCount||0,this.downvotesCount=this.comment.downvotesCount||0,this.repliesCount=this.comment.replies||0,this.replaceURL(this.comment.content),this.showFullComment?this.showMore=!0:this.$nextTick((function(){t.contentElement?t.canShowMore=t.contentElement.scrollHeight>t.contentElement.clientHeight+2:t.canShowMore=!1}))}},{key:"hasReplies",get:function(){return this.repliesCount>=1}},{key:"rate",value:(c=Object(F.a)(regeneratorRuntime.mark((function t(e){var n,o,r,c,l,m,h;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.addingRate=!0,n=this.myRating&&this.myRating.rating===e,o=Object(tt.a)(this.myRating),r=this.upvotesCount,c=this.downvotesCount,l=!this.myRating||!this.myRating.rating,m=this.myRating&&this.myRating.rating!==e,this.myRating=n?{}:{rating:e},1===e&&(this.upvotesCount+=n?-1:1,o&&-1===o.rating&&(this.downvotesCount-=1)),-1===e&&(this.downvotesCount+=n?-1:1,o&&1===o.rating&&(this.upvotesCount-=1)),t.prev=10,!n){t.next=17;break}return t.next=14,nt.deleteRating(this.comment._id);case 14:this.snackbar.show({message:this.$t("common.editRatingInformation").toString()}),t.next=20;break;case 17:return t.next=19,nt.addRating(this.comment._id,e);case 19:l?this.snackbar.show({message:this.$t("common.addRatingInformation").toString()}):m&&this.snackbar.show({message:this.$t("common.editRatingInformation").toString()});case 20:h=ct(ct({},this.comment),{},{myRating:this.myRating,upvotesCount:this.upvotesCount,downvotesCount:this.downvotesCount}),this.$emit("rated",h),t.next=30;break;case 24:t.prev=24,t.t0=t.catch(10),this.snackbar.show({message:this.$t("common.addRatingFailed").toString()}),this.myRating=Object(tt.a)(o),this.upvotesCount=r,this.downvotesCount=c;case 30:this.addingRate=!1;case 31:case"end":return t.stop()}}),t,this,[[10,24]])}))),function(t){return c.apply(this,arguments)})},{key:"reply",value:function(){this.Auth.isLogged?(this.showReplies=!0,this.$emit("reply"),this.$emit("comment-selected",this.comment)):this.showEncourageDialog()}},{key:"openCommentsReplies",value:function(){this.comment.parentCommentId||(this.$emit("open-reply-list"),this.$emit("comment-selected",this.comment))}},{key:"deleteComment",value:(r=Object(F.a)(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.confirm(this.$t("video.comments.deleteDialog").toString())){t.next=3;break}return t.abrupt("return");case 3:return this.loadingDelete=!0,t.prev=4,t.next=7,nt.deleteComment(this.comment._id);case 7:e=this.$t("video.comments.deleted").toString(),this.snackbar.show({message:e}),this.$emit("deleted"),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(4),n=this.$t("video.comments.deleteFailed").toString(),this.snackbar.show({message:n});case 16:this.loadingDelete=!1;case 17:case"end":return t.stop()}}),t,this,[[4,12]])}))),function(){return r.apply(this,arguments)})},{key:"editComment",value:function(){this.$emit("edit"),this.$emit("comment-selected",this.comment),this.editContent=this.comment.content}},{key:"cancelEdit",value:function(){this.replaceURL(this.comment.content),this.edit=!1}},{key:"saveComment",value:(o=Object(F.a)(regeneratorRuntime.mark((function t(){var e,n,o,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this.editContent&&nt.sanitize(this.editContent)&&nt.sanitize(this.editContent).trim())){t.next=15;break}return t.prev=1,e=nt.sanitize(this.editContent).trim(),t.next=5,nt.updateComment(this.comment._id,{content:e});case 5:this.$emit("edited"),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),n=this.$t("video.comments.added").toString(),this.snackbar.show({message:n});case 12:this.edit=!1,t.next=17;break;case 15:o=this.$t("video.comments.addFailed").toString(),this.snackbar.show({message:o});case 17:r=nt.sanitize(this.editContent),this.replaceURL(r);case 19:case"end":return t.stop()}}),t,this,[[1,8]])}))),function(){return o.apply(this,arguments)})},{key:"muteUser",value:(n=Object(F.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.comment.userId){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,et.muteUserForMe(this.comment.userId);case 5:return t.next=7,this.Auth.refreshUserData();case 7:this.snackbar.show({message:this.$t("user.mute.success").toString()}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),this.snackbar.show({message:this.$t("user.mute.fail").toString()});case 13:case"end":return t.stop()}}),t,this,[[2,10]])}))),function(){return n.apply(this,arguments)})},{key:"unmuteUser",value:(e=Object(F.a)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.comment.userId){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,et.unmuteUserForMe(this.comment.userId);case 5:e=t.sent,this.Auth.user=e,this.snackbar.show({message:this.$t("user.unmute.success").toString()}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),this.snackbar.show({message:this.$t("user.unmute.fail").toString()});case 13:case"end":return t.stop()}}),t,this,[[2,10]])}))),function(){return e.apply(this,arguments)})},{key:"onChannelClick",value:function(){this.comment.channel&&this.$router.push("/channel/".concat(this.comment.channel._id))}},{key:"onUserClick",value:function(){this.comment.user&&(this.comment.user.posts&&this.$router.push("/feed?userId=".concat(this.comment.user._id)))}}]),d}(X.g),k=Object(J.a)(w.prototype,"comment",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=Object(J.a)(w.prototype,"highlight",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=Object(J.a)(w.prototype,"videoOwner",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=Object(J.a)(w.prototype,"isOnReplyList",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=Object(J.a)(w.prototype,"replyListValue",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=Object(J.a)(w.prototype,"showFullComment",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=Object(J.a)(w.prototype,"reportDialogRef",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=Object(J.a)(w.prototype,"contentElement",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=w))||y),mt=Object(X.i)(lt),ht=(n(2041),n(13)),component=Object(ht.a)(mt,(function(){var t,e,n,o=this,r=o._self._c;o._self._setupProxy;return r("div",{staticClass:"mb-5",class:{highlight:o.highlight}},[r(S.c,{staticClass:"pt-1 pb-0",attrs:{align:"center"}},[r(S.a,{staticClass:"pb-2 flex",attrs:{cols:"10"}},[r(S.a,{staticClass:"py-0 pl-0",attrs:{cols:"auto"}},[o.comment.user&&!o.comment.channel?[r("div",{class:{pointer:o.comment.user.posts},on:{click:function(t){return o.onUserClick()}}},[r("Avatar",{attrs:{id:o.comment.user._id,name:o.comment.user.name,surname:o.comment.user.surname,"has-avatar":o.comment.user.hasAvatar,variant:"medium"}})],1)]:o.comment.channel&&!o.comment.user?[r($.a,{staticClass:"ma-1 cursor-pointer",attrs:{size:"36"},on:{click:function(t){return o.onChannelClick()}}},[r("AvatarImg",{attrs:{id:o.comment.channel._id,"placeholder-text":o.comment.channel.name[0],channel:""}})],1)]:o.comment.channel&&o.comment.user?[r(D.a,{attrs:{avatar:"",overlap:"",bottom:"",color:"transparent","offset-x":"25","offset-y":"20"},scopedSlots:o._u([{key:"badge",fn:function(){return[r($.a,{staticClass:"ma-1 cursor-pointer",on:{click:function(t){return o.onChannelClick()}}},[r("AvatarImg",{attrs:{id:o.comment.channel._id,"placeholder-text":o.comment.channel.name[0],channel:""}})],1)]},proxy:!0}])},[r("div",{class:{pointer:o.comment.user.posts},on:{click:function(t){return o.onUserClick()}}},[r("Avatar",{attrs:{id:o.comment.user._id,name:o.comment.user.name,surname:o.comment.user.surname,"has-avatar":o.comment.user.hasAvatar,variant:"medium"}})],1)])]:[r($.a,{staticClass:"ma-1",attrs:{size:"36"}},[r(I.a,{attrs:{size:"36"}},[o._v("mdi-account-circle")])],1)]],2),r(S.a,{staticClass:"pl-1 pt-4",attrs:{cols:"auto"}},[r(S.c,{staticClass:"element"},[r("div",{staticClass:"caption text-sm truncate",class:{"text--disabled":o.isCommentAuthorMuted}},[o.comment.user?r("span",{staticClass:"font-weight-bold",class:{pointer:(null===(t=o.comment.user)||void 0===t?void 0:t.posts)||!o.comment.user&&!!o.comment.channel},on:{click:function(t){return o.onUserClick()}}},[r("NameAndSurname",{staticClass:"truncate",attrs:{name:null===(e=o.comment.user)||void 0===e?void 0:e.name,surname:null===(n=o.comment.user)||void 0===n?void 0:n.surname}})],1):o._e(),o.comment.channel?r("span",{staticClass:"cursor-pointer fw-700",class:{"ml-1 text-xs fw-400 text-gray-color":o.comment.user},on:{click:function(t){return o.onChannelClick()}}},[o.comment.user?r("span",[o._v("@")]):o._e(),o._v(o._s(o.comment.channel.name))]):o._e(),o.comment.user||o.comment.channel?o._e():r("span",{staticClass:"font-weight-medium text-decoration-line-through"},[o._v(o._s(o.$t("video.comments.userDeleted")))]),o.comment.pinned?r(I.a,{staticClass:"pl-1",attrs:{small:"",color:"primary"}},[o._v("mdi-pin")]):o._e()],1)]),r(S.c,[r("span",{staticClass:"text-xs text-gray-color",staticStyle:{"line-height":"0.9"}},[o._v(o._s(o.timeStore.getLocalizedFromNow(o.comment.createdAt)))])])],1)],1),(o.loggedIn||o.isAdmin)&&o.content?r(S.a,{staticClass:"text-end",attrs:{cols:"2"}},[r(P.a,{scopedSlots:o._u([{key:"activator",fn:function(t){var e=t.on,n=t.attrs;return[r(M.a,o._g(o._b({attrs:{icon:"",dense:""}},"v-btn",n,!1),e),[r(I.a,{attrs:{color:"buttonGray"}},[o._v("mdi-dots-vertical")])],1)]}}],null,!1,4243760499)},[r(z.a,{staticClass:"py-0",attrs:{dense:""}},o._l(o.visibleItems,(function(t,e){return r(T.a,{key:e,staticClass:"px-2",on:{click:t.action}},[r(L.a,{staticClass:"mr-1"},[r(I.a,{attrs:{small:"",color:"buttonGray"}},[o._v(o._s(t.icon))])],1),r(E.a,[r(E.b,[o._v(o._s(t.title))])],1)],1)})),1)],1)],1):o._e()],1),r(S.c,[r(S.a,{staticClass:"py-0 pl-4 pr-6"},[o.content?o._e():r("div",{staticStyle:{opacity:"0.5"}},[o._v(o._s(o.$t("video.comments.deleted")))]),o.edit||o.isCommentAuthorMuted?o._e():r("div",{ref:"content",staticClass:"break-word cursor-pointer text-base",class:[o.contentClass,{"cross-out":o.comment.crossedOut}],staticStyle:{"white-space":"pre-wrap","line-height":"1.3rem","font-size":"14px"},on:{click:function(t){return o.openCommentsReplies()}}},o._l(o.contentWithHighlightedTimestamps,(function(t,e){return r("span",{key:e,class:{commentWithTimestamp:t.isTimestamp},domProps:{innerHTML:o._s(t.text)},on:{click:function(e){t.isTimestamp&&o.onTimestampClick(t.text)}}})})),0),!o.edit&&o.comment.editedAt?r("div",[r("small",{staticClass:"grey-text",staticStyle:{opacity:"1"}},[o._v(" "+o._s(o.$t("video.comments.updated"))+" "+o._s(o.formatDate(o.comment.editedAt))+" ")])]):o.edit&&o.isCommentAuthorMuted?r("div",{staticClass:"break-word",class:[o.contentClass,{"text--disabled":o.isCommentAuthorMuted}],staticStyle:{"white-space":"pre-wrap"}},[o._v(o._s(o.$t("user.mute.success")))]):o._e(),!o.edit&&o.canShowMore?r("div",{staticClass:"mt-1 font-weight-bold",staticStyle:{cursor:"pointer","line-height":"18px"},on:{click:function(t){o.showMore=!o.showMore}}},[o._v(o._s(o.showMore?o.$t("common.showLess"):o.$t("common.showMore")))]):o._e()])],1),r(S.c,[r(S.a,{staticClass:"pt-2 pb-0 pl-2"},[r(M.a,{attrs:{text:"",small:"",disabled:o.addingRate,color:o.ratedUp?"primary":"#BDBDBD"},on:{click:function(t){o.loggedIn?o.rate(1):o.showEncourageDialog()}}},[r(I.a,{attrs:{left:"",small:""}},[o._v(o._s(o.ratedUp?"mdi-thumb-up":"mdi-thumb-up-outline"))]),r("span",[o._v(o._s(o.upvotesCount||0))])],1),r(M.a,{attrs:{text:"",small:"",disabled:o.addingRate,color:o.ratedDown?"primary":"#BDBDBD"},on:{click:function(t){o.loggedIn?o.rate(-1):o.showEncourageDialog()}}},[r(I.a,{attrs:{left:"",small:""}},[o._v(o._s(o.ratedDown?"mdi-thumb-down":"mdi-thumb-down-outline"))]),r("span",[o._v(o._s(o.downvotesCount||0))])],1),o.isOnReplyList||o.comment.parentCommentId||!o.comment.content?o._e():r(M.a,{attrs:{text:"",small:"",color:o.showReplies?"primary":""},on:{click:function(t){return o.reply()}}},[r("span",{style:o.showReplies?"":"color: #bdbdbd"},[o._v(o._s(o.$t("video.comments.reply")))])]),o.repliesCount>=1&&o.isOnReplyList&&o.comment.content?r(M.a,{attrs:{text:"",small:""},on:{click:function(t){return o.openCommentsReplies()}}},[r("span",{staticClass:"font-medium primary--text"},[o._v(o._s(o.$tc("video.comments.replies",o.repliesCount)))])]):o._e(),!o.comment.parentCommentId&&0===o.repliesCount&&o.isOnReplyList&&o.comment.content?r(M.a,{attrs:{text:"",small:"",color:o.showReplies?"primary":""},on:{click:function(t){return o.reply()}}},[r("span",{class:{showReplies:"primary--text",hasReplies:o.repliesCount>=1},style:o.showReplies?"":"color: #bdbdbd"},[o._v(o._s(o.$t("video.comments.reply")))])]):o._e()],1)],1),r("ReportDialog",{ref:"ReportDialog",attrs:{"entity-id":o.report.entityId,"entity-type":o.report.entityType}})],1)}),[],!1,null,"40bec335",null);e.default=component.exports;installComponents(component,{Avatar:n(391).default,AvatarImg:n(217).default,NameAndSurname:n(582).default,ReportDialog:n(1674).default})},1940:function(t,e,n){var content=n(2042);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(22).default)("14fb2214",content,!0,{sourceMap:!1})},2041:function(t,e,n){"use strict";n(1940)},2042:function(t,e,n){var o=n(21)((function(i){return i[1]}));o.push([t.i,"[data-v-40bec335]:root{--100dvw-safe:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));--bottom-0-safe:env(safe-area-inset-bottom);--top-0-safe:env(safe-area-inset-top);--left-0-safe:env(safe-area-inset-left);--right-0-safe:env(safe-area-inset-right);--layout-video-player-banner-max-width:400px;--layout-video-player-banner-max-height:calc(var(--layout-video-player-banner-max-width)*3/16);--layout-video-player-banner-height:min(calc(var(--100dvw-safe)*3/16),var(--layout-video-player-banner-max-height));--layout-bottom-nav-height:65px;--layout-top-nav-height:64px}@media screen and (max-width:959px){[data-v-40bec335]:root{--layout-top-nav-height:56px}}.break-word[data-v-40bec335]{word-wrap:anywhere;word-break:break-word}.cross-out[data-v-40bec335]{-webkit-text-decoration:line-through;text-decoration:line-through}.break-word[data-v-40bec335] a{word-break:all!important}.highlight[data-v-40bec335]{background:hsla(0,0%,47%,.133);border-radius:6px;box-shadow:0 0 2px 0 var(--v-primary-base);margin:6px 2px 0 1px;padding:6px 6px 12px}.reported[data-v-40bec335]{opacity:.3;-webkit-text-decoration:line-through;text-decoration:line-through}.truncated[data-v-40bec335]{-webkit-line-clamp:10;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.element[data-v-40bec335]{display:table;table-layout:fixed;width:90%}.truncate[data-v-40bec335]{display:table-cell;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pointer[data-v-40bec335]{cursor:pointer!important}[data-v-40bec335] .commentWithTimestamp{color:var(--v-primary-darken1);cursor:pointer}.theme--dark .text-gray-color[data-v-40bec335]{color:#a5a5a5}.theme--dark .v-icon[data-v-40bec335]:focus:after{opacity:0!important}.theme--light .text-gray-color[data-v-40bec335]{color:#111}.theme--light .v-icon[data-v-40bec335]:focus:after{opacity:0!important}",""]),o.locals={},t.exports=o}}]);