PageSourceSearch

https://www.rf.se/sitevision/system-resource/706c47851a9c6e84fdd50…/js/comments2-plugins.js

js rf.se collected 2026-09-24 08:57:20 UTC 28,622 bytes, 2 lines download raw bytes

1(globalThis.webpackChunk_sv_portlet=globalThis.webpackChunk_sv_portlet||[]).push([[3138],{8346(e,t,n){"use strict";n.d(t,{A:()=>c});var o=n(6961),i=n.n(o),s=n(7834),a=n(3501),d=n.n(a),r=n(1173),m=n.n(r),l=window.SVBackbone=i().noConflict();l.$=d();const c=l;var u=l.Model.prototype.fetch,h=l.Model.prototype.save,p=l.Model.prototype.destroy,v=l.Collection.prototype.fetch;function f(e,t,n){s.ErrorUtil.handleBackboneError(e,t,n)}l.Model.prototype.fetch=function(e){return(e=e||{}).error=e.error||f,u.apply(this,[e])},l.Model.prototype.save=function(e,t,n){return null==e||"object"==typeof e?(t=t||{}).error=t.error||f:(n=n||{}).error=n.error||f,h.apply(this,[e,t,n])},l.Model.prototype.destroy=function(e){return(e=e||{}).error=e.error||f,p.apply(this,[e])},l.Collection.prototype.fetch=function(e){return(e=e||{}).error=e.error||f,v.apply(this,[e])},l.View.prototype.preinitialize=function(e){this.options&&(e=m().extend({},m().result(this,"options"),e)),this.options=e}},4343(e,t,n){"use strict";var o=n(8346),i=n(3501),s=n.n(i),a=n(7834),d=n.n(a),r=n(8804),m=n(1257);const l=a.KeyUtil.KEY,c={},u="sv-comments2-full-name",h={triggers:{"@":{source:(0,m.h$)(d().PageContext.pageId,"userIdentitySearch",d().PageContext.pageId),searchKey:"term",allowWhiteSpace:!0,maxWhiteSpace:2,parse:function(e){return e.hits}}},minLength:2,replacer:function(e){return e.trigger+'{"value":"'+e.name+'","id":"'+e.id+'"}'}};let p,v,f;var g=function(e,t){var n;return!t&&c[e]?c[e]:(n=d().i18n.getText("portlet.comments2.comments",e,t),t||(c[e]=n),n)},y=function(e,t){e.find("a[data-user-identity]").each(function(){var e=s()(this);e.attr("href",t+"?identity="+e.data("user-identity"))})},b=function(e,t){e.find("a[data-social-tag-id]").each(function(){var e=s()(this);e.attr("href",t+"?tag="+encodeURIComponent(e.data("social-tag-name")))})},C=o.A.Model.extend({url:function(){return this.collection?this.collection.url()+"&commentId="+this.get("id"):"?commentId="+this.get("id")}}),w=o.A.Collection.extend({model:C,initialize:function(e,t){this.options=t,d().PageContext.userIdentityId&&this.bindServerEvents()},bindServerEvents:function(){var e=this;a.Events.on("server-pagecomment-added-"+d().PageContext.pageId,function(t){const n=t.content.author.id===d().PageContext.userIdentityId,o=e.length>0&&e.at(0).get("isAdmin"),i={...t.content,isEditable:n||o,isRemovable:n||o,isAdmin:o};e.add(i,{append:!0})})},url:function(){return(0,m.RY)(this.options.portletId,"comment")+"&file="+this.options.id}}),k=C.extend({url:function(){return this.collection?(0,m.RY)(this.collection.portletId,"subComment")+"&commentId="+this.collection.id+"&subCommentId="+this.get("id"):"?subCommentId="+this.get("id")}}),T=o.A.Collection.extend({model:k,initialize:function(e,t){this.id=t.id,this.portletId=t.portletId,this.pageCommentId=t.pageCommentId},url:function(){return(0,m.RY)(this.portletId,"subComments")+"&commentId="+this.pageCommentId},parse:function(e){return this.isAllowedToComment=e.isAllowedToComment,this.trigger("updateCommentArea",this.isAllowedToComment),e}}),R=o.A.View.extend({tagName:"li",className:function(){return this.model.get("hidden")?"sv-comment2-comment sv-comment-hidden":"sv-comment2-comment"},events:function(){return this.model.get("isSubComment")?{"click [data-fn-destroy-subcomment]":"showDestroyDialog","click [data-fn-edit-subcomment]":"editComment","click [data-fn-hide-subcomment]":"doHide","click [data-fn-show-subcomment]":"doHide"}:{"click [data-fn-destroy-comment]":"showDestroyDialog","click [data-fn-edit-comment]":"editComment","click [data-fn-hide-comment]":"doHide","click [data-fn-show-comment]":"doHide","click [data-fn-show-comments]":"handleShowCommentsClick","click [data-fn-expand-subcomments]":"handleShowCommentsClick","click [data-fn-shrink-subcomments]":"handleHideCommentsClick"}},initialize:function(){this.listenTo(this.model,"change:comment",this.updateComment,this),this.listenTo(this.model,"destroy",this.remove,this),this.listenTo(this.model,"change:hidden",this.hide,this)},showDestroyDialog:function(){var e=this,t=this.model.get("isSubComment")?g("removeReplyTitle"):g("removeCommentTitle"),n=this.model.get("isSubComment")?g("removeReplyBody"):g("removeCommentBody");return d().DialogUtil.showConfirmDialog(t,n,function(t){t&&e.model.destroy({wait:!0})}),!1},editComment:function(e){return e.preventDefault(),a.Ajax.doGet({context:this,url:this.model.url()}).done(function(e){this.showEditComment(e.plainMessage,e.mentions)}),!1},showEditComment:function(e,t){var n=this,o=s()("<div/>"),i=s()('<span class="sv-float-right">'+(p-e.length)+"</span>"),r=s()("<textarea/>").attr("id","editComment").addClass("sv-comment-input sv-border-box").on("keyup",e=>{var t=p-e.currentTarget.value.length;
1t<0?(i.addClass("sv-character-limit-exceeded"),this.getSaveEditCommentButton().addClass("disabled").attr("disabled","disabled")):(i.removeClass("sv-character-limit-exceeded"),this.getSaveEditCommentButton().removeClass("disabled").prop("disabled",!1)),i.text(t)}).val(e);o.addClass("sv-comments2-portlet").append(r).append(i);var m=[{text:g("save"),callback:s().proxy(function(){a.Ajax.doPut({url:n.model.url(),data:{comment:r.triggeredInput("getRichContent")},context:this}).done(function(e){this.model.set(e)})},this)}];return d().DialogUtil.showDialog({title:this.model.get("isSubComment")?g("editReplyTitle"):g("editCommentTitle"),body:o,buttons:m,shownCallback:function(){r.triggeredInput(h).triggeredInput("setIds",t).elastic()}}),!1},getSaveEditCommentButton:function(){return this.$saveEditButton||(this.$saveEditButton=s()(".modal-footer button")),this.$saveEditButton},updateComment:function(e){e.get("hidden")&&!e.get("isAdmin")?e.collection.remove(e):(this.render(),a.Events.trigger(a.Events.types.updateLikables,this.$el),a.Events.trigger(a.Events.types.updateRelativeDates,this.$el))},doHide:function(e){e.preventDefault(),this.model.set({hidden:!this.model.get("hidden")}),this.model.save({},{url:(0,m.RY)(this.options.portletId,"toggleVisibleComment")+"&commentId="+this.model.id})},updateCommentsCount:function(e){var t;switch(e){case 0:t=g("doReply");break;case 1:t=e+" "+g("reply");break;default:t=e+" "+g("replies")}this.$el.find("[data-fn-subcomment-counter]").text(t)},handleShowCommentsClick:function(e){e.preventDefault(),this.doShowComments()},handleHideCommentsClick:function(e){e.preventDefault();var t=this.$el.find("[data-comments2-subcomment-container]"),n=this.$el.find("[data-fn-expand-subcomments]"),o=this.$el.find("[data-fn-shrink-subcomments]");t.fadeOut("fast"),o.hide(),n.show()},doShowComments:function(){var e=this.model.get("id"),t=this.$el.find("[data-comments2-subcomment-container]"),n=this.$el.find("[data-fn-expand-subcomments]"),o=this.$el.find("[data-fn-shrink-subcomments]"),i=this;this.subComments?(t.removeClass("env-d--none"),t.fadeIn("fast"),o.removeClass("env-d--none"),o.show(),n.hide()):(this.subComments=new T([],{id:this.model.id,portletId:this.options.portletId,pageCommentId:e}),this.subCommentsView=new $({el:t,collection:this.subComments,commentTemplate:(0,m.$F)(s()("#"+d().ObjectUtil.getHtmlId(this.options.portletId)),"comments2-subcomment"),portletId:this.options.portletId,profilePageURL:this.options.profilePageURL,tagResultPageURL:this.options.tagResultPageURL,$list:t.find("[data-comments2-subcomments]")}),this.listenTo(this.subComments,"add destroy",function(){i.updateCommentsCount.call(i,i.subComments.length)}),this.subComments.fetch({success:function(e){i.subCommentsView.render(),i.updateCommentsCount(e.length),t.removeClass("env-d--none"),t.fadeIn("fast",function(){t.find("textarea").triggerHandler("focus")}),o.removeClass("env-d--none"),o.show(),n.hide()}}))},hide:function(){if(this.model.get("hidden")){var e=this.model.get("isSubComment")?"hiddenReply":"hiddenComment";this.$el.addClass("sv-comment-hidden"),this.$el.attr("title",g(e)),this.$el.find("[data-fn-hide-comment]").addClass("env-d--none"),this.$el.find("[data-fn-show-comment]").removeClass("env-d--none"),this.$el.find("[data-fn-hide-subcomment]").addClass("env-d--none"),this.$el.find("[data-fn-show-subcomment]").removeClass("env-d--none"),this.$el.find(".sv-comments2-hidden-comment-text").removeClass("env-d--none")}else this.$el.removeClass("sv-comment-hidden"),this.$el.removeAttr("title"),this.$el.find("[data-fn-hide-comment]").removeClass("env-d--none"),this.$el.find("[data-fn-show-comment]").addClass("env-d--none"),this.$el.find("[data-fn-hide-subcomment]").removeClass("env-d--none"),this.$el.find("[data-fn-show-subcomment]").addClass("env-d--none"),this.$el.find(".sv-comments2-hidden-comment-text").addClass("env-d--none")},render:function(){if(this.$el.html(this.options.template(this.model.toJSON())),this.model.toJSON().hidden){var e=this.model.get("isSubComment")?"hiddenReply":"hiddenComment";this.$el.attr("title",g(e))}return y(this.$el,this.options.profilePageURL),b(this.$el,this.options.tagResultPageURL),this.model.id===(0,m.nL)("pagecomment")&&this.doShowComments(),this}}),$=o.A.View.extend({initialize:function(){this.$list=this.options.$list,this.collection.on("add",this.addNewComment,this),this.collection.on("remove",this.removeComment,this),this.$el.find("[data-fn-comments2-input]").triggeredInput(h).elastic(),this.collection.length>0&&this.render()},render:function(){this.clearList(),this.collection.each(function(e){this.appendOne(e,!1)},this),a.Events.trigger(a.Events.types.updateRelativeDates,this.$el),a.Events.trigger(a.Events.types.updateLikables,this.$el),window.onloadCallback&&this.collection.id&&window.onloadCallback(this.$el.find("[data-sv-recaptcha]").attr("id"))},clearList:function(){this.$list.empty()},appendOne:function(e,t){var n,o=new R({model:e,portletId:this.options.portletId,template:this.options.commentTemplate,profilePageURL:this.options.profilePageURL,tagResultPageURL:this.options.tagResultPageURL}).render().$el,i=o.find(".sv-comments2-content").find(".sv-truncate-more");i.length>0&&(this.addShowMoreLink(i),n=!0),t?this.$list.prepend(o):this.$list.append(o),n&&this.bindShowMoreEvents(o)},bindShowMoreEvents:function(e){var t={moreText:g("showMore"),lessText:g("showLess")},n=s()(".sv-truncate-more-link",e),o=s()(".sv-truncate-more",e),i=s()(".sv-truncate-ellipsis",e);n.on("click",function(e){e.preventDefault(),n.text()===t.moreText?(
1o.show(),n.text(t.lessText),i.css("display","none")):(o.hide(),n.text(t.moreText),i.css("display","inline"))})},addShowMoreLink:function(e){s()('<span class="sv-truncate-ellipsis">...</span>').insertBefore(e),s()('<div><a href="#" class="sv-truncate-more-link">'+g("showMore")+"</a></div>").insertAfter(e),e.css("display","none")},addNewComment:function(e){void 0!==e.toJSON().author?this.appendOne(e,f):a.Events.trigger(a.Events.types.notifyUser,{type:"default",heading:g("moderatedHeading"),message:g("moderatedBody"),transient:!0}),a.Events.trigger(a.Events.types.updateRelativeDates,this.$el),a.Events.trigger(a.Events.types.updateLikables,this.$el)},removeComment:function(e){this.render(),e.get("hidden")&&a.Events.trigger(a.Events.types.notifyUser,{type:"default",heading:g("moderatedHeading"),message:g("moderatedBody"),transient:!0})},getLoader:function(){return this.$loader||(this.$loader=s()('<img src="'+r+'">').css("vertical-align","middle").appendTo(this.$el.find("[data-fn-comment-input]").parent())),this.$loader},events:{"focus [data-fn-comments2-input]":"expandTextfield","click [data-fn-comments2-input]":"expandTextfield","keyup [data-fn-comments2-input]":"countdownCharactersLeft","keyup [data-fn-comments2-input-name]":"countdownCharactersLeft","keydown [data-fn-comments2-input]":"checkKeyDown","submit [data-fn-comments2-form]":"postComment"},expandTextfield:function(e){var t=s()(e.currentTarget);t.addClass("sv-message-input-expanded"),this.getInputControls(t).removeClass("env-d--none").show(),this.countdownCharactersLeft(e)},shrinkTextfield:function(e){e.removeClass("sv-message-input-expanded"),this.getInputControls(e).hide()},getTextField:function(e){return e.find("[data-fn-comments2-input]")},getInputControls:function(e){return e.closest("form").find(".sv-submit-controls")},countdownCharactersLeft:function(e){var t=s()(e.currentTarget),n=t.val(),o=p-n.length,i=t.parent().find("[data-fn-comments2-input-size]"),a=t.closest("form");o<0?i.addClass("sv-character-limit-exceeded"):i.removeClass("sv-character-limit-exceeded"),i.text(o),""!==t.val()&&o>=0&&!this.activeConnection?this.enableSubmitButton(a):this.disableSubmitButton(a)},checkKeyDown:function(e){if(a.KeyUtil.getKeyCodeFromEvent(e)===l.RETURN&&e.ctrlKey)return this.getSubmitButton(s()(e.target).closest("form")).trigger("focus"),this.$el.find("[data-fn-comments2-form]").trigger("submit"),!1},postComment:function(e){var t,n,o,i,d,r,m=this;if(!e.isPropagationStopped()&&!e.isDefaultPrevented()){if(e.preventDefault(),this.activeConnection)return!1;var l=s()(e.target);if(t=this.getTextField(l),d=m.getNameField(l),o=t.val().length,1===d.length&&0===d.val().length)return a.Events.trigger(a.Events.types.notifyUser,{type:"default",heading:g("noNameHeading"),message:g("noNameBody"),transient:!0}),!1;if(o>0&&o<=p){if(v){var c=this.$el.find("#g-recaptcha-response");if(c.length||(c=this.$el.find(".g-recaptcha-response")),c.length||(c=this.$el.closest(".sv-comments2-portlet").find("[name=frc-captcha-response]")),c.length||(c=this.$el.closest(".sv-comments2-portlet").find("[name=frc-captcha-solution]")),!(r=c&&c[0].value))return this.$el.find(".sv-help-block-verify").show(),!1}this.disableSubmitButton(s()(e.target)),this.activeConnection=!0,n=this.collection.id?new k({comment:t.triggeredInput("getRichContent"),fullName:d.val(),useCaptcha:v,recaptchaResponse:r||""}):new C({comment:t.triggeredInput("getRichContent"),fullName:d.val(),useCaptcha:v,recaptchaResponse:r||""});var h=m.$el.find("[data-sv-spam-marker]");h.length>0&&(n.attributes[h.attr("name")]=h.val()),i=setTimeout(function(){m.getLoader().show()},400),this.collection.create(n,{wait:!0,success:function(){var e;t.val(""),m.activeConnection=!1,m.getLoader().hide(),clearTimeout(i),(e=d.val())&&"localStorage"in window&&null!==window.localStorage&&window.localStorage.setItem(u,e),v&&(m.collection.id?m.$el.find("[data-sv-recaptcha-container]").hide():m.$el.find("#recaptcha-container").hide())},error:function(){m.activeConnection=!1,m.getLoader().hide(),clearTimeout(i),m.enableSubmitButton(s()(e.target)),a.Events.trigger(a.Events.types.notifyUser,{type:"error",heading:g("postFailedHeading"),message:g("postFailedBody"),transient:!0})}}),this.shrinkTextfield(t)}else o>p&&a.Events.trigger(a.Events.types.notifyUser,{type:"default",heading:g("commentToLongHeading"),message:g("commentToLongBody"),transient:!0});return!1}},getSubmitButton:function(e){return e.find("[data-fn-comments2-submit]")},getNameField:function(e){return e.find("[data-fn-comments2-input-name]")}
1,disableSubmitButton:function(e){this.getSubmitButton(e).addClass("disabled").attr("disabled","disabled")},nameFieldOK:function(e){var t=this.getNameField(e);return!(0!==t.length&&!t.val())},enableSubmitButton:function(e){""!==this.getTextField(e).val()&&this.nameFieldOK(e)&&this.getSubmitButton(e).removeClass("disabled").prop("disabled",!1)}});function B(e){var t=e.find("[data-comments2-entry]");if(function(e){var t=a.ObjectUtil.getObjectId(e.attr("id"));e.off("click","[data-fn-comment2-toggle-close]"),e.on("click","[data-fn-comment2-toggle-close]",function(n){n.preventDefault();var o=(0,m.PD)(t,"toggleVisible");s().get(o,function(t){e.find(".sv-comments2-portlet-content").html(t),B(e)})}),e.off("click","[data-fn-comment2-toggle-mutable]"),e.on("click","[data-fn-comment2-toggle-mutable]",function(n){n.preventDefault();var o=(0,m.PD)(t,"toggleMutable");s().get(o,function(){e.find("[data-sv-comments2-closed-title]").hasClass("env-d--none")?(e.find("[data-sv-comments2-closed-title]").removeClass("env-d--none"),e.find(".sv-comments2-form").addClass("env-d--none"),e.find("[data-sv-comments2-disallow-comments]").addClass("env-d--none"),e.find("[data-sv-comments2-allow-comments]").removeClass("env-d--none")):(e.find("[data-sv-comments2-closed-title]").addClass("env-d--none"),e.find(".sv-comments2-form").removeClass("env-d--none"),e.find("[data-sv-comments2-disallow-comments]").removeClass("env-d--none"),e.find("[data-sv-comments2-allow-comments]").addClass("env-d--none"))})})}(e),0!==t.length){var n=a.ObjectUtil.getObjectId(e.attr("id")),o=t.data("js-namespace"),i=n,r=t.data("profilepageurl"),l=t.data("tagresultpageurl"),c=new w(d()[o].comments||[],{id:i,portletId:n});p=d()[o].maxCharacterCount,v=d()[o].useCaptcha,f=d()[o].reverseOrder,new $({el:e,collection:c,commentTemplate:(0,m.$F)(e,"comments2-comment"),portletId:n,profilePageURL:r,tagResultPageURL:l,$list:e.find("[data-fn-comments2]")});var h=e.find(".sv-comments2-comments");h.length>0&&(y(h,r),b(h,l));var C=function(){if("localStorage"in window&&null!==window.localStorage)return window.localStorage.getItem(u)}();C&&C.length>0&&e.find("[data-fn-comments2-input-name]").val(C),e.find(".sv-comment-hidden").attr("title",g("hiddenComment"))}}s()(".sv-comments2-portlet").each(function(){var e=s()(this);Promise.all([n.e(9214),n.e(6961),n.e(1518),n.e(7270),n.e(7015),n.e(3138)]).then(n.bind(n,6135)).then(()=>{B(e)})})},2627(){sv.i18n.portlet=sv.i18n.portlet||{},sv.i18n.portlet.comments2=sv.i18n.portlet.comments2||{},sv.i18n.portlet.comments2.comments=sv.i18n.portlet.comments2.comments||{},sv.i18n.portlet.comments2.comments.de={moderatedBody:"Die Kommentarfunktion wird moderiert.\nIhr Kommentar wird erst sichtbar, wenn ein Moderator ihn genehmigt hat.",removeReplyTitle:"Antwort entfernen",noNameHeading:"Kein Name",showLess:"Weniger anzeigen",postFailedHeading:"FEHLER",hiddenComment:"Verborgener Kommentar",removeReplyBody:"Sind Sie sicher, dass Sie die Antwort löschen möchten?",editReplyTitle:"Antwort bearbeiten",removeCommentBody:"Sind Sie sicher, dass Sie den Kommentar löschen möchten?",moderatedHeading:"Modereriertes Kommentarfeld",doReply:"Antworten",removeCommentTitle:"Kommentar entfernen",reply:"Antworten",commentToLongHeading:"Zu lang",replies:"Antworten",hiddenReply:"Verborgene Antwort",commentToLongBody:"Der Kommentar, den Sie senden wollten, war zu lang.",editCommentTitle:"Kommentar bearbeiten",save:"Speichern",showMore:"Mehr anzeigen",postFailedBody:"Es ist ein Fehler aufgetreten, der Kommentar wurde nicht veröffentlicht.",noNameBody:"Kein Name angegeben Name ist obligatorisch"},sv.i18n.portlet.comments2.comments.en={moderatedBody:"The comments function is moderated.\nYour comment will become visible only after a moderator has approved it.",removeReplyTitle:"Delete reply",noNameHeading:"No name",showLess:"Show less",postFailedHeading:"ERROR",hiddenComment:"Hidden comment",removeReplyBody:"Are you sure you want to delete the reply?",editReplyTitle:"Edit reply",removeCommentBody:"Are you sure you want to delete the comment?",moderatedHeading:"Moderated comments field",doReply:"Reply",removeCommentTitle:"Delete comment",reply:"reply",commentToLongHeading:"Too long",replies:"replies",hiddenReply:"Hidden reply",showMore:"Show more",commentToLongBody:"The comment you where trying to post was too long.",editCommentTitle:"Edit comment",save:"Save",postFailedBody:"An error has occurred, the comment was not published.",noNameBody:"No name given. Name is mandatory"},sv.i18n.portlet.comments2.comments.es={moderatedBody:"La función de comentarios tiene moderador.\nTu comentario será visible cuando el moderador lo apruebe.",removeReplyTitle:"Eliminar respuesta",noNameHeading:"Sin nombre",showLess:"Mostrar menos",postFailedHeading:"ERROR",hiddenComment:"Comentario oculto",removeReplyBody:"¿Estás seguro de que deseas eliminar la respuesta?",editReplyTitle:"Editar respuesta",removeCommentBody:"¿Estás seguro de que deseas eliminar el comentario?",moderatedHeading:"Campo de comentario con moderador",doReply:"Responder",removeCommentTitle:"Eliminar comentario",reply:"respuesta",commentToLongHeading:"Demasiado largo",replies:"respuesta",hiddenReply:"Respuesta oculta",commentToLongBody:"El comentario que intentabas enviar era demasiado largo...",editCommentTitle:"Editar comentario",save:"Guardar",showMore:"Mostrar más",postFailedBody:"Ha ocurrido un error, el comentario no se ha publicado.",noNameBody:"No se ha indicado nombre. El nombre es obligatorio"},sv.i18n.portlet.comments2.comments.fi={removeCommentBody:"Oletko varma, että haluat poistaa kommentin?",commentToLongHeading:"Liian pitkä",removeCommentTitle:"Poista kommentti",showMore:"Näytä lisää",noNameBody:"Nimeä ei annettu. Nimi on pakollinen",showLess:"Näytä vähemmän",commentToLongBody:"Yritit lähettää liian pitkän kommentin.",moderatedHeading:"Moderoitu kommenttikenttä",save:"Tallenna",moderatedBody:"Kommentointitoiminto on moderoitu.\nKommenttisi tulee näkyviin, kun moderaattori on hyväksynyt sen.",hiddenComment:"Poistunut kommentti",noNameHeading:"Ei nimeä",postFailedHeading:"VIRHE",postFailedBody:"Tapahtui virhe, kommenttia ei julkaistu."},sv.i18n.portlet.comments2.comments.fr={moderatedBody:"La fonction de commentaire est modérée.\nVotre commentaire ne sera visible que lorsqu'un modérateur l'aura approuvé.",removeReplyTitle:"Supprimer les réponses",noNameHeading:"Pas de nom",showLess:"Afficher moins",postFailedHeading:"ERREUR",hiddenComment:"Commentaire masqué",removeReplyBody:"Voulez-vous vraiment supprimer la réponse ?",editReplyTitle:"Editer la réponse",removeCommentBody:"Voulez-vous vraiment supprimer le commentaire ?",moderatedHeading:"Champ de commentaires modéré",doReply:"Répondre",removeCommentTitle:"Supprimer le commentaire",reply:"réponse",commentToLongHeading:"Trop long",replies:"réponse",hiddenReply:"Réponse masquée",commentToLongBody:"Le commentaire que vous avez essayé d'envoyer était trop long.",editCommentTitle:"Editer le commentaire",save:"Sauvegarder",showMore:"Afficher plus",postFailedBody:"Une erreur s'est produite, le commentaire n'a pas été publié.",noNameBody:"Aucun nom n'est indiqué. Le nom est obligatoire"},sv.i18n.portlet.comments2.comments.no={Din:"kommentar blir synlig først når en moderator har godkjent den.",moderatedBody:"Kommentarfunksjonen er moderert.",removeReplyTitle:"Fjern svar",noNameHeading:"Intet navn",showLess:"Vis mindre",postFailedHeading:"FEIL",hiddenComment:"Skjult kommentar",removeReplyBody:"Er du sikker på at du vil fjerne svaret?",editReplyTitle:"Rediger svar",removeCommentBody:"Er du sikker på at du vil fjerne kommentaren?",moderatedHeading:"Moderert kommentarfelt",doReply:"Svar",removeCommentTitle:"Fjern kommentar",reply:"svar",commentToLongHeading:"For lang",replies:"svar",hiddenReply:"Skjult svar",showMore:"Vis mer",commentToLongBody:"Kommentaren du forsøkte å sende, var for lang.",save:"Lagre",editCommentTitle:"Rediger kommentar",postFailedBody:"Det oppsto en feil, kommentaren ble ikke publisert.",noNameBody:"Intet navn angitt. Navn er obligatorisk"},sv.i18n.portlet.comments2.comments.sv={moderatedBody:"Kommentarsfunktionen är modererad.\nDin kommentar blir synlig först när en moderator godkänt den.",removeReplyTitle:"Ta bort svar",n
1oNameHeading:"Inget namn",showLess:"Visa mindre",postFailedHeading:"FEL",hiddenComment:"Dold kommentar",removeReplyBody:"Är du säker på att du vill ta bort svaret?",editReplyTitle:"Redigera svar",removeCommentBody:"Är du säker på att du vill ta bort kommentaren?",moderatedHeading:"Modererat kommentarsfält",doReply:"Svara",removeCommentTitle:"Ta bort kommentar",reply:"svar",commentToLongHeading:"För lång",replies:"svar",hiddenReply:"Dolt svar",showMore:"Visa mer",commentToLongBody:"Kommentaren du försökte skicka var för lång.",editCommentTitle:"Redigera kommentar",save:"Spara",postFailedBody:"Ett fel har uppstått, kommentaren publicerades inte.",noNameBody:"Inget namn angivet. Namn är obligatoriskt"}},333(e,t,n){"use strict";n.r(t);n(4343),n(2627),n(6281)},6135(e,t,n){"use strict";n.r(t);n(9147),n(8870),n(5913),n(2461),n(1467)},6281(e,t,n){"use strict";var o=n(7834),i=n.n(o),s=n(3501),a=n.n(s);const d=({attributes:e,classNames:t,text:n})=>`<button ${e} class="btn sv-dialog-footer-button ${t}">${n}</button>`,r=({closeModal:e,title:t,titleHelp:n,errorContent:o,modalBody:i,footerButtons:s})=>`\n<dialog class="modal hide fade bootstrap">\n  <div class="modal-dialog">\n    <div class="modal-content">\n      <div class="modal-header">\n        <button class="close sv-dialog-close-button" type="button" data-dismiss="modal" aria-label="${e}">&times;</button>\n        <h2 class="sv-dialog-title">${t}</h2>\n      </div>\n      <div class="modal-body">\n        ${n}\n        ${o}\n        ${i}\n      </div>\n      <div class="modal-footer">${s}</div>\n    </div>\n  </div>\n</dialog>\n`;function m(e,t){return o.i18n.getText("util.dialogutil",e,t)}function l(e){var t=e;if("string"==typeof(t=a().extend({title:"",modalBody:"",footerButtons:"",titleHelp:"",errorContent:"",closeModal:m("closeModal")},t)).modalBody)return a()(r(t));t.modalBody="";var n=a()(r(t));return n.find(".modal-body").append(e.modalBody),n}function c(){return d({classNames:"btn-primary",attributes:'data-dismiss="modal" data-ok="true"',text:m("ok")})+d({classNames:"",attributes:'data-dismiss="modal" data-ok="false"',text:m("cancel")})}function u(e,t){e.on("shown.bs.modal",function(){var t=e.find("[data-fn-request-focus]");t.length?t.first().trigger("focus"):function(e){var t=Array.from(e.find('a[href], area[href], button, *[contenteditable], embed, input:not([type=hidden]), object, textarea, select, details,[tabindex]:not([tabindex="-1"])')).filter(e=>!(e.classList.contains("close")||e.classList.contains("jcrop-keymgr")||e.hasAttribute("disabled")||e.getAttribute("aria-hidden")||"-1"===e.getAttribute("tabindex")||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)||"hidden"===window.getComputedStyle(e).visibility));t.length>0&&t[0].focus()}(e),a()(document.body).addClass("modal-open")}),e.on("hidden.bs.modal",function(){!1!==t&&e.remove(),a()(document.body).removeClass("modal-open")})}i().DialogUtil={showInputDialog:function(e,t,n,i,s){var d,r,m;const h={id:`sv-dialog-${t}`||"",value:i||""};return m=n?(({id:e,value:t})=>`<textarea class="ui-widget-content ui-corner-all sv-eventfeed-input sv-eventfeed-message-input" id="${e}">${t}</textarea>`)(h):(({id:e,value:t})=>`<input type="text" value="${t}" class="ui-widget-content ui-corner-all sv-eventfeed-input" id="${e}">`)(h),r=(({id:e,label:t,input:n})=>`\n  <form class="form-horizontal sv-dialog-form-container">\n    <div class="control-group">\n      <label class="control-label sv-dialog-form-label" for="${e}">${t}</label>\n      <div class="controls">${n}</div>\n    </div>\n  </form>\n`)({input:m,label:t||"",id:`sv-dialog-${t}`||""}),(d=l({title:o.TemplateUtil.htmlEncode(e),modalBody:r,footerButtons:c()})).on("click",".modal-footer .btn",function(){a()(this).data("ok")?s({result:!0,text:d.find(".sv-eventfeed-input").val()}):s({result:!1})}),d.on("submit","form",function(e){e.preventDefault(),d.modal("hide"),s({result:!0,text:d.find(".sv-eventfeed-input").val()})}),u(d),d.modal(),d},showConfirmDialog:function(e,t,n){var i;return(i=l({title:o.TemplateUtil.htmlEncode(e),modalBody:o.TemplateUtil.htmlEncode(t),footerButtons:c()})).on("click",".modal-footer .btn",function(){n(!!a()(this).data("ok"))}),u(i),i.modal(),i},showMessageDialog:function(e,t,n){var i,s;return s=d({classNames:"btn-primary",attributes:'data-dismiss="modal"',text:n||"Close"}),u(i=l({title:o.TemplateUtil.htmlEncode(e),modalBody:t,footerButtons:s})),i.modal(),i},showDialog:function(e){var t,n,i,s;return i=e.titleHelp?(({text:e})=>`<p>${e}</p>`)({text:e.titleHelp}):"",s=e.errorTitle&&e.errorMsg?(({errorTitle:e,errorMsg:t})=>`\n  <div class="alert alert-error" style="display: none">\n    <h4 class="alert-title">${e}</h4>\n    <p class="alert-message">${t}</p>\n  </div>\n`)({errorTitle:e.errorTitle,errorMsg:e.errorMsg}):"",t=l({title:o.TemplateUtil.htmlEncode(e.title),modalBody:e.body,titleHelp:i,errorContent:s}
1),n=t.find(".modal-footer"),a().each(e.buttons,function(e,t){var o,i,s;s=t.skipDismiss?"":' data-dismiss="modal" ',i=t.primary?" btn-primary ":"",i+=t.danger?" btn-danger ":"",o=a()(d({classNames:i,text:t.text,attributes:s})),t.callback&&o.on("click",t.callback),n.append(o)}),e.shownCallback&&"function"==typeof e.shownCallback&&t.on("shown.bs.modal",function(t){e.shownCallback.call(this,t)}),!1!==e.removeOnHide&&e.hiddenCallback&&"function"==typeof e.hiddenCallback&&t.on("hidden.bs.modal",function(t){e.hiddenCallback.call(this,t)}),u(t,e.removeOnHide),t.modal(),t}}}}]);
2//# sourceMappingURL=comments2-plugins.js.map

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.