"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "matomo/plugins/Feedback/vue/dist/Feedback.umd.min.js" between
matomo-4.6.0-rc1.tar.gz and matomo-4.6.0-rc2.tar.gz

About: Matomo is a web analytics platform that aims to be an open source alternative to Google Analytics that let you retain ownership and control over your data (formerly Piwik). Release candidate.

Feedback.umd.min.js  (matomo-4.6.0-rc1):Feedback.umd.min.js  (matomo-4.6.0-rc2)
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.export s=t(require("CoreHome"),require("vue")):"function"===typeof define&&define.amd?d efine(["CoreHome"],t):"object"===typeof exports?exports["Feedback"]=t(require("C oreHome"),require("vue")):e["Feedback"]=t(e["CoreHome"],e["Vue"])})("undefined"! ==typeof self?self:this,(function(e,t){return function(e){var t={};function a(n) {if(t[n])return t[n].exports;var l=t[n]={i:n,l:!1,exports:{}};return e[n].call(l .exports,l,l.exports,a),l.l=!0,l.exports}return a.m=e,a.c=t,a.d=function(e,t,n){ a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"und efined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toSt ringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t= function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__ esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"d efault",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)a.d(n,l, function(t){return e[t]}.bind(null,l));return n},a.n=function(e){var t=e&&e.__es Module?function(){return e["default"]}:function(){return e};return a.d(t,"a",t), t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="plug ins/Feedback/vue/dist/",a(a.s="fae3")}({"19dc":function(t,a){t.exports=e},"8bbf" :function(e,a){e.exports=t},fae3:function(e,t,a){"use strict";if(a.r(t),a.d(t,"R eviewLinks",(function(){return ce})),a.d(t,"RateFeature",(function(){return be}) ),a.d(t,"FeedbackQuestion",(function(){return Te})),"undefined"!==typeof window) {var n=window.document.currentScript,l=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/) ;l&&(a.p=l[1])}var o=a("19dc"),r=a("8bbf"),i=["title"],c={class:"ui-confirm rate featureDialog"},s={key:0},d={key:0},u={key:1},b=Object(r["createElementVNode"])( "br",null,null,-1),k={class:"row"},m={style:{"text-align":"left","margin-top":"1 6px"}},p={for:"useful",class:"ratelabel"},j=Object(r["createElementVNode"])("br" ,null,null,-1),O={for:"easy",class:"ratelabel"},f=Object(r["createElementVNode"] )("br",null,null,-1),v={for:"configurable",class:"ratelabel"},g=Object(r["create ElementVNode"])("br",null,null,-1),h={for:"likeother",class:"ratelabel"},F={key: 1},V={key:0},y={key:1},N=Object(r["createElementVNode"])("br",null,null,-1),E={c lass:"row"},R={style:{"text-align":"left"}},M={for:"missingfeatures",class:"rate label"},w=Object(r["createElementVNode"])("br",null,null,-1),x={for:"makeeasier" ,class:"ratelabel"},D=Object(r["createElementVNode"])("br",null,null,-1),B={for: "speedup",class:"ratelabel"},_=Object(r["createElementVNode"])("br",null,null,-1 ),C={for:"fixbugs",class:"ratelabel"},T=Object(r["createElementVNode"])("br",nul l,null,-1),L={for:"dislikeother",class:"ratelabel"},H=Object(r["createElementVNo de"])("br",null,null,-1),S={key:2,class:"messageContainer",style:{"text-align":" left"}},U=["innerHTML"],q=["innerHTML"],Q=["innerHTML"],I=["innerHTML"],A=["inne rHTML"],z=["innerHTML"],P=["innerHTML"],$=["innerHTML"],G=["innerHTML"],J={key:9 ,class:"error-text"},Y=["innerHTML"],K=["title","value"],W=["value"],X={class:"u i-confirm ratefeatureDialog"},Z=["innerHTML"],ee={key:0},te={key:1},ae=["value"] ;function ne(e,t,a,n,l,o){var ne=Object(r["resolveComponent"])("MatomoDialog"),l e=Object(r["resolveComponent"])("ReviewLinks");return Object(r["openBlock"])(),O bject(r["createElementBlock"])("div",{title:e.translate("Feedback_RateFeatureTit le",e.$sanitize(e.title)),class:"ratefeature"},[Object(r["createElementVNode"])( "div",{class:"iconContainer",onMouseenter:t[2]||(t[2]=function(t){return e.expan ded=!0}),onMouseleave:t[3]||(t[3]=function(t){return e.expanded=!1})},[Object(r[ "createElementVNode"])("img",{onClick:t[0]||(t[0]=function(t){e.likeFeature()}), class:"like-icon",src:"plugins/Feedback/vue/src/RateFeature/thumbs-up.png"}),Obj ect(r["createElementVNode"])("img",{onClick:t[1]||(t[1]=function(t){e.dislikeFea ture()}),class:"dislike-icon",src:"plugins/Feedback/vue/src/RateFeature/thumbs-d own.png"})],32),Object(r["createVNode"])(ne,{modelValue:e.showFeedbackForm,"onUp date:modelValue":t[14]||(t[14]=function(t){return e.showFeedbackForm=t}),onYes:t [15]||(t[15]=function(t){return e.sendFeedback()}),onValidation:t[16]||(t[16]=fu nction(t){return e.sendFeedback()})},{default:Object(r["withCtx"])((function(){r eturn[Object(r["createElementVNode"])("div",c,[e.like?(Object(r["openBlock"])(), Object(r["createElementBlock"])("div",s,[e.title?(Object(r["openBlock"])(),Objec t(r["createElementBlock"])("h2",d,Object(r["toDisplayString"])(e.translate("Feed back_RateFeatureLeaveMessageLikeNamedFeature",e.title)),1)):Object(r["createComm entVNode"])("",!0),e.title?Object(r["createCommentVNode"])("",!0):(Object(r["ope nBlock"])(),Object(r["createElementBlock"])("h2",u,Object(r["toDisplayString"])( e.translate("Feedback_RateFeatureLeaveMessageLike")),1)),b,Object(r["createEleme ntVNode"])("div",k,[Object(r["createElementVNode"])("div",m,[Object(r["createEle mentVNode"])("label",p,[Object(r["withDirectives"])(Object(r["createElementVNode "])("input",{type:"radio",id:"useful",value:"useful","onUpdate:modelValue":t[4]| |(t[4]=function(t){return e.likeReason=t}),class:"rateradio"},null,512),[[r["vMo delRadio"],e.likeReason]]),Object(r["createTextVNode"])(" "+Object(r["toDisplayS tring"])(e.translate("Feedback_RateFeatureUsefulInfo")),1)]),j,Object(r["createE lementVNode"])("label",O,[Object(r["withDirectives"])(Object(r["createElementVNo de"])("input",{type:"radio",id:"easy",value:"easy","onUpdate:modelValue":t[5]||( t[5]=function(t){return e.likeReason=t}),class:"rateradio"},null,512),[[r["vMode lRadio"],e.likeReason]]),Object(r["createTextVNode"])(" "+Object(r["toDisplayStr ing"])(e.translate("Feedback_RateFeatureEasyToUse")),1)]),f,Object(r["createElem entVNode"])("label",v,[Object(r["withDirectives"])(Object(r["createElementVNode" ])("input",{type:"radio",id:"configurable",value:"configurable","onUpdate:modelV alue":t[6]||(t[6]=function(t){return e.likeReason=t}),class:"rateradio"},null,51 2),[[r["vModelRadio"],e.likeReason]]),Object(r["createTextVNode"])(" "+Object(r[ "toDisplayString"])(e.translate("Feedback_RateFeatureConfigurable")),1)]),g,Obje ct(r["createElementVNode"])("label",h,[Object(r["withDirectives"])(Object(r["cre ateElementVNode"])("input",{type:"radio",id:"likeother",value:"likeother","onUpd ate:modelValue":t[7]||(t[7]=function(t){return e.likeReason=t}),class:"rateradio "},null,512),[[r["vModelRadio"],e.likeReason]]),Object(r["createTextVNode"])(" " +Object(r["toDisplayString"])(e.translate("Feedback_RateFeatureOtherReason")),1) ])])])])):Object(r["createCommentVNode"])("",!0),e.like?Object(r["createCommentV Node"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",F ,[e.title?(Object(r["openBlock"])(),Object(r["createElementBlock"])("h2",V,Objec t(r["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageDislikeName dFeature",e.title)),1)):Object(r["createCommentVNode"])("",!0),e.title?Object(r[ "createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementB lock"])("h2",y,Object(r["toDisplayString"])(e.translate("Feedback_RateFeatureLea veMessageDislike")),1)),N,Object(r["createElementVNode"])("div",E,[Object(r["cre ateElementVNode"])("div",R,[Object(r["createElementVNode"])("label",M,[Object(r[ "withDirectives"])(Object(r["createElementVNode"])("input",{type:"radio",id:"mis singfeatures",value:"missingfeatures","onUpdate:modelValue":t[8]||(t[8]=function (t){return e.dislikeReason=t}),class:"rateradio"},null,512),[[r["vModelRadio"],e .dislikeReason]]),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])( e.translate("Feedback_RateFeatureDislikeAddMissingFeatures")),1)]),w,Object(r["c reateElementVNode"])("label",x,[Object(r["withDirectives"])(Object(r["createElem entVNode"])("input",{type:"radio",id:"makeeasier",value:"makeeasier","onUpdate:m odelValue":t[9]||(t[9]=function(t){return e.dislikeReason=t}),class:"rateradio"} ,null,512),[[r["vModelRadio"],e.dislikeReason]]),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("Feedback_RateFeatureDislikeMakeEasie r")),1)]),D,Object(r["createElementVNode"])("label",B,[Object(r["withDirectives" ])(Object(r["createElementVNode"])("input",{type:"radio",id:"speedup",value:"spe edup","onUpdate:modelValue":t[10]||(t[10]=function(t){return e.dislikeReason=t}) ,class:"rateradio"},null,512),[[r["vModelRadio"],e.dislikeReason]]),Object(r["cr eateTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("Feedback_RateFeat ureDislikeSpeedUp")),1)]),_,Object(r["createElementVNode"])("label",C,[Object(r[ "withDirectives"])(Object(r["createElementVNode"])("input",{type:"radio",id:"fix bugs",value:"fixbugs","onUpdate:modelValue":t[11]||(t[11]=function(t){return e.d islikeReason=t}),class:"rateradio"},null,512),[[r["vModelRadio"],e.dislikeReason ]]),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("F eedback_RateFeatureDislikeFixBugs")),1)]),T,Object(r["createElementVNode"])("lab el",L,[Object(r["withDirectives"])(Object(r["createElementVNode"])("input",{type :"radio",id:"dislikeother",value:"dislikeother","onUpdate:modelValue":t[12]||(t[ 12]=function(t){return e.dislikeReason=t}),class:"rateradio"},null,512),[[r["vMo delRadio"],e.dislikeReason]]),Object(r["createTextVNode"])(" "+Object(r["toDispl ayString"])(e.translate("Feedback_RateFeatureOtherReason")),1)]),H])])])),e.like Reason||e.dislikeReason?(Object(r["openBlock"])(),Object(r["createElementBlock"] )("div",S,[e.likeReason&&"useful"==e.likeReason?(Object(r["openBlock"])(),Object (r["createElementBlock"])("p",{key:0,innerHTML:e.translate("Feedback_RateFeature LeaveMessageLikeExtraUseful")},null,8,U)):Object(r["createCommentVNode"])("",!0) ,e.likeReason&&"easy"==e.likeReason?(Object(r["openBlock"])(),Object(r["createEl ementBlock"])("p",{key:1,innerHTML:e.translate("Feedback_RateFeatureLeaveMessage LikeExtraEasy")},null,8,q)):Object(r["createCommentVNode"])("",!0),e.likeReason& &"configurable"==e.likeReason?(Object(r["openBlock"])(),Object(r["createElementB lock"])("p",{key:2,innerHTML:e.translate("Feedback_RateFeatureLeaveMessageLikeEx traConfigurable")},null,8,Q)):Object(r["createCommentVNode"])("",!0),e.likeReaso n&&"likeother"==e.likeReason?(Object(r["openBlock"])(),Object(r["createElementBl ock"])("p",{key:3,innerHTML:e.translate("Feedback_RateFeatureLeaveMessageLikeExt ra")},null,8,I)):Object(r["createCommentVNode"])("",!0),e.dislikeReason&&"missin gfeatures"==e.dislikeReason?(Object(r["openBlock"])(),Object(r["createElementBlo ck"])("p",{key:4,innerHTML:e.translate("Feedback_RateFeatureLeaveMessageDislikeE xtraMissing")},null,8,A)):Object(r["createCommentVNode"])("",!0),e.dislikeReason &&"makeeasier"==e.dislikeReason?(Object(r["openBlock"])(),Object(r["createElemen tBlock"])("p",{key:5,innerHTML:e.translate("Feedback_RateFeatureLeaveMessageDisl ikeExtraEasier")},null,8,z)):Object(r["createCommentVNode"])("",!0),e.dislikeRea son&&"fixbugs"==e.dislikeReason?(Object(r["openBlock"])(),Object(r["createElemen tBlock"])("p",{key:6,innerHTML:e.translate("Feedback_RateFeatureLeaveMessageDisl ikeExtraBugs")},null,8,P)):Object(r["createCommentVNode"])("",!0),e.dislikeReaso n&&"speedup"==e.dislikeReason?(Object(r["openBlock"])(),Object(r["createElementB lock"])("p",{key:7,innerHTML:e.translate("Feedback_RateFeatureLeaveMessageDislik eExtraSpeed")},null,8,$)):Object(r["createCommentVNode"])("",!0),e.dislikeReason &&"dislikeother"==e.dislikeReason?(Object(r["openBlock"])(),Object(r["createElem entBlock"])("p",{key:8,innerHTML:e.translate("Feedback_RateFeatureLeaveMessageDi slikeExtra")},null,8,G)):Object(r["createCommentVNode"])("",!0),e.errorMessage?( Object(r["openBlock"])(),Object(r["createElementBlock"])("div",J,Object(r["toDis playString"])(e.errorMessage),1)):Object(r["createCommentVNode"])("",!0),Object( r["withDirectives"])(Object(r["createElementVNode"])("textarea",{ref:"feedbackTe xt",class:Object(r["normalizeClass"])(["materialize-textarea",{"has-error":e.err orMessage}]),id:"feedbacktext","onUpdate:modelValue":t[13]||(t[13]=function(t){r eturn e.feedbackMessage=t})},null,2),[[r["vModelText"],e.feedbackMessage]]),e.li keReason||e.dislikeReason?(Object(r["openBlock"])(),Object(r["createElementBlock "])("p",{key:10,innerHTML:e.translate("Feedback_Policy","\n <a rel='n ofollow' href='https://matomo.org/privacy-policy/' target='_blank'>","</a>")},nu ll,8,Y)):Object(r["createCommentVNode"])("",!0)])):Object(r["createCommentVNode" ])("",!0),Object(r["createElementVNode"])("input",{class:"btn",type:"button",rol e:"validation",title:e.translate("Feedback_RateFeatureSendFeedbackInformation"), value:e.translate("Feedback_SendFeedback")},null,8,K),Object(r["createElementVNo de"])("input",{type:"button",role:"cancel",value:e.translate("General_Cancel")}, null,8,W)])]})),_:1},8,["modelValue"]),Object(r["createVNode"])(ne,{modelValue:e .ratingDone,"onUpdate:modelValue":t[17]||(t[17]=function(t){return e.ratingDone= t})},{default:Object(r["withCtx"])((function(){return[Object(r["createElementVNo de"])("div",X,[Object(r["createElementVNode"])("h2",{innerHTML:e.translate("Feed back_ThankYouHeart","<i class='icon-heart red-text'></i>")},null,8,Z),e.like?(Ob ject(r["openBlock"])(),Object(r["createElementBlock"])("div",ee,[Object(r["creat eVNode"])(le)])):Object(r["createCommentVNode"])("",!0),e.like?Object(r["createC ommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])( "p",te,Object(r["toDisplayString"])(e.translate("Feedback_AppreciateFeedback")), 1)),Object(r["createElementVNode"])("input",{type:"button",value:e.translate("Ge neral_Close"),role:"yes"},null,8,ae)])]})),_:1},8,["modelValue"])],8,i)}var le={ class:"requestReview"},oe=Object(r["createStaticVNode"])('<br><br><div class="re view-links"><div class="review-link"><a href="https://www.capterra.com/p/182627/ Matomo-Analytics/" target="_blank"><div class="image"><img loading="lazy" src="p lugins/Feedback/images/capterra.svg"></div><div class="link">Capterra</div></a>< /div><div class="review-link"><a href="https://www.g2crowd.com/products/matomo-f ormerly-piwik/details" target="_blank"><div class="image"><img loading="lazy" sr c="plugins/Feedback/images/g2crowd.svg"></div><div class="link">G2 Crowd</div></ a></div><div class="review-link"><a href="https://www.producthunt.com/posts/mato mo-2" target="_blank"><div class="image"><img loading="lazy" src="plugins/Feedba ck/images/producthunt.svg"></div><div class="link">Product Hunt</div></a></div>< div class="review-link"><a href="https://www.saasworthy.com/product/matomo" targ et="_blank"><div class="image"><img loading="lazy" src="plugins/Feedback/images/ saasworthy.png"></div><div class="link">SaaSworthy</div></a></div><div class="re view-link"><a href="https://www.trustradius.com/products/matomo/reviews" target= "_blank"><div class="image"><img loading="lazy" src="plugins/Feedback/images/tru stradius.svg"></div><div class="link">TrustRadius</div></a></div></div>',3);func tion re(e,t,a,n,l,o){return Object(r["openBlock"])(),Object(r["createElementBloc k"])("div",le,[Object(r["createElementVNode"])("p",null,Object(r["toDisplayStrin g"])(e.translate("Feedback_PleaseLeaveExternalReviewForMatomo")),1),oe])}var ie= Object(r["defineComponent"])({});ie.render=re;var ce=ie,se=window,de=se.$,ue=Obj ect(r["defineComponent"])({props:{title:String},components:{MatomoDialog:o["Mato moDialog"],ReviewLinks:ce},data:function(){return{like:!1,likeReason:null,dislik eReason:null,ratingDone:!1,expanded:!1,showFeedbackForm:!1,feedbackMessage:"",er rorMessage:null}},watch:{likeReason:"doFocusInput",dislikeReason:"doFocusInput"} ,methods:{dislikeFeature:function(){this.ratingDone=!1,this.like=!1,this.showFee dbackForm=!0,this.errorMessage=null,this.likeReason=null,this.dislikeReason=null ,this.feedbackMessage=""},likeFeature:function(){this.ratingDone=!1,this.like=!0 ,this.showFeedbackForm=!0,this.errorMessage=null,this.likeReason=null,this.disli keReason=null,this.feedbackMessage=""},doFocusInput:function(){var e=this;this.$ nextTick((function(){e.focusInput()}))},focusInput:function(){null!=this.$refs.f eedbackText&&this.$refs.feedbackText.focus()},sendFeedback:async function(){this .errorMessage=null;var e=await o["AjaxHelper"].fetch({method:"Feedback.sendFeedb ackForFeature",featureName:this.title,like:this.like?"1":"0",choice:this.like?th is.likeReason:this.dislikeReason,message:this.feedbackMessage});"success"===e.va lue?(de(".modal").modal("close"),this.ratingDone=!0,this.feedbackMessage=""):thi s.errorMessage=e.value}}});ue.render=ne;var be=ue,ke=(Object(o["createAngularJsA dapter"])({component:be,scope:{title:{angularJsBind:"@"}},directiveName:"piwikRa teFeature"}),{key:0,class:"bannerHeader"}),me=Object(r["createElementVNode"])("i ",{class:"icon-heart red-text"},null,-1),pe=Object(r["createElementVNode"])("i", {class:"icon-close white-text"},null,-1),je=[pe],Oe={class:"ratefeature"},fe={cl ass:"ui-confirm ratefeatureDialog"},ve=["innerHTML"],ge=Object(r["createElementV Node"])("br",null,null,-1),he={class:"messageContainer"},Fe={key:0,class:"error- text"},Ve=Object(r["createElementVNode"])("br",null,null,-1),ye=["innerHTML"],Ne =["value"],Ee=["value"],Re={class:"ui-confirm ratefeatureDialog"},Me=["innerHTML "],we=["value"]; (function(e,t){"object"===typeof exports&&"object"===typeof module?module.export s=t(require("CoreHome"),require("vue")):"function"===typeof define&&define.amd?d efine(["CoreHome"],t):"object"===typeof exports?exports["Feedback"]=t(require("C oreHome"),require("vue")):e["Feedback"]=t(e["CoreHome"],e["Vue"])})("undefined"! ==typeof self?self:this,(function(e,t){return function(e){var t={};function a(n) {if(t[n])return t[n].exports;var l=t[n]={i:n,l:!1,exports:{}};return e[n].call(l .exports,l,l.exports,a),l.l=!0,l.exports}return a.m=e,a.c=t,a.d=function(e,t,n){ a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"und efined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toSt ringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t= function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__ esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"d efault",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)a.d(n,l, function(t){return e[t]}.bind(null,l));return n},a.n=function(e){var t=e&&e.__es Module?function(){return e["default"]}:function(){return e};return a.d(t,"a",t), t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="plug ins/Feedback/vue/dist/",a(a.s="fae3")}({"19dc":function(t,a){t.exports=e},"8bbf" :function(e,a){e.exports=t},fae3:function(e,t,a){"use strict";if(a.r(t),a.d(t,"R eviewLinks",(function(){return ce})),a.d(t,"RateFeature",(function(){return be}) ),a.d(t,"FeedbackQuestion",(function(){return Te})),"undefined"!==typeof window) {var n=window.document.currentScript,l=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/) ;l&&(a.p=l[1])}var o=a("19dc"),r=a("8bbf"),i=["title"],c={class:"ui-confirm rate featureDialog"},s={key:0},d={key:0},u={key:1},b=Object(r["createElementVNode"])( "br",null,null,-1),k={class:"row"},m={style:{"text-align":"left","margin-top":"1 6px"}},p={for:"useful",class:"ratelabel"},j=Object(r["createElementVNode"])("br" ,null,null,-1),O={for:"easy",class:"ratelabel"},f=Object(r["createElementVNode"] )("br",null,null,-1),v={for:"configurable",class:"ratelabel"},g=Object(r["create ElementVNode"])("br",null,null,-1),h={for:"likeother",class:"ratelabel"},F={key: 1},V={key:0},N={key:1},y=Object(r["createElementVNode"])("br",null,null,-1),E={c lass:"row"},R={style:{"text-align":"left"}},M={for:"missingfeatures",class:"rate label"},w=Object(r["createElementVNode"])("br",null,null,-1),x={for:"makeeasier" ,class:"ratelabel"},D=Object(r["createElementVNode"])("br",null,null,-1),B={for: "speedup",class:"ratelabel"},_=Object(r["createElementVNode"])("br",null,null,-1 ),C={for:"fixbugs",class:"ratelabel"},T=Object(r["createElementVNode"])("br",nul l,null,-1),L={for:"dislikeother",class:"ratelabel"},H=Object(r["createElementVNo de"])("br",null,null,-1),S={key:2,class:"messageContainer",style:{"text-align":" left"}},U=["innerHTML"],q=["innerHTML"],Q=["innerHTML"],I=["innerHTML"],A=["inne rHTML"],z=["innerHTML"],P=["innerHTML"],$=["innerHTML"],G=["innerHTML"],J={key:9 ,class:"error-text"},Y=["innerHTML"],K=["title","value"],W=["value"],X={class:"u i-confirm ratefeatureDialog"},Z=["innerHTML"],ee={key:0},te={key:1},ae=["value"] ;function ne(e,t,a,n,l,o){var ne=Object(r["resolveComponent"])("MatomoDialog"),l e=Object(r["resolveComponent"])("ReviewLinks");return Object(r["openBlock"])(),O bject(r["createElementBlock"])("div",{title:e.translate("Feedback_RateFeatureTit le",e.$sanitize(e.title)),class:"ratefeature"},[Object(r["createElementVNode"])( "div",{class:"iconContainer",onMouseenter:t[2]||(t[2]=function(t){return e.expan ded=!0}),onMouseleave:t[3]||(t[3]=function(t){return e.expanded=!1})},[Object(r[ "createElementVNode"])("img",{onClick:t[0]||(t[0]=function(t){e.likeFeature()}), class:"like-icon",src:"plugins/Feedback/vue/src/RateFeature/thumbs-up.png"}),Obj ect(r["createElementVNode"])("img",{onClick:t[1]||(t[1]=function(t){e.dislikeFea ture()}),class:"dislike-icon",src:"plugins/Feedback/vue/src/RateFeature/thumbs-d own.png"})],32),Object(r["createVNode"])(ne,{modelValue:e.showFeedbackForm,"onUp date:modelValue":t[14]||(t[14]=function(t){return e.showFeedbackForm=t}),onYes:t [15]||(t[15]=function(t){return e.sendFeedback()}),onValidation:t[16]||(t[16]=fu nction(t){return e.sendFeedback()})},{default:Object(r["withCtx"])((function(){r eturn[Object(r["createElementVNode"])("div",c,[e.like?(Object(r["openBlock"])(), Object(r["createElementBlock"])("div",s,[e.title?(Object(r["openBlock"])(),Objec t(r["createElementBlock"])("h2",d,Object(r["toDisplayString"])(e.translate("Feed back_RateFeatureLeaveMessageLikeNamedFeature",e.title)),1)):Object(r["createComm entVNode"])("",!0),e.title?Object(r["createCommentVNode"])("",!0):(Object(r["ope nBlock"])(),Object(r["createElementBlock"])("h2",u,Object(r["toDisplayString"])( e.translate("Feedback_RateFeatureLeaveMessageLike")),1)),b,Object(r["createEleme ntVNode"])("div",k,[Object(r["createElementVNode"])("div",m,[Object(r["createEle mentVNode"])("label",p,[Object(r["withDirectives"])(Object(r["createElementVNode "])("input",{type:"radio",id:"useful",value:"useful","onUpdate:modelValue":t[4]| |(t[4]=function(t){return e.likeReason=t}),class:"rateradio"},null,512),[[r["vMo delRadio"],e.likeReason]]),Object(r["createTextVNode"])(" "+Object(r["toDisplayS tring"])(e.translate("Feedback_RateFeatureUsefulInfo")),1)]),j,Object(r["createE lementVNode"])("label",O,[Object(r["withDirectives"])(Object(r["createElementVNo de"])("input",{type:"radio",id:"easy",value:"easy","onUpdate:modelValue":t[5]||( t[5]=function(t){return e.likeReason=t}),class:"rateradio"},null,512),[[r["vMode lRadio"],e.likeReason]]),Object(r["createTextVNode"])(" "+Object(r["toDisplayStr ing"])(e.translate("Feedback_RateFeatureEasyToUse")),1)]),f,Object(r["createElem entVNode"])("label",v,[Object(r["withDirectives"])(Object(r["createElementVNode" ])("input",{type:"radio",id:"configurable",value:"configurable","onUpdate:modelV alue":t[6]||(t[6]=function(t){return e.likeReason=t}),class:"rateradio"},null,51 2),[[r["vModelRadio"],e.likeReason]]),Object(r["createTextVNode"])(" "+Object(r[ "toDisplayString"])(e.translate("Feedback_RateFeatureConfigurable")),1)]),g,Obje ct(r["createElementVNode"])("label",h,[Object(r["withDirectives"])(Object(r["cre ateElementVNode"])("input",{type:"radio",id:"likeother",value:"likeother","onUpd ate:modelValue":t[7]||(t[7]=function(t){return e.likeReason=t}),class:"rateradio "},null,512),[[r["vModelRadio"],e.likeReason]]),Object(r["createTextVNode"])(" " +Object(r["toDisplayString"])(e.translate("Feedback_RateFeatureOtherReason")),1) ])])])])):Object(r["createCommentVNode"])("",!0),e.like?Object(r["createCommentV Node"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",F ,[e.title?(Object(r["openBlock"])(),Object(r["createElementBlock"])("h2",V,Objec t(r["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageDislikeName dFeature",e.title)),1)):Object(r["createCommentVNode"])("",!0),e.title?Object(r[ "createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementB lock"])("h2",N,Object(r["toDisplayString"])(e.translate("Feedback_RateFeatureLea veMessageDislike")),1)),y,Object(r["createElementVNode"])("div",E,[Object(r["cre ateElementVNode"])("div",R,[Object(r["createElementVNode"])("label",M,[Object(r[ "withDirectives"])(Object(r["createElementVNode"])("input",{type:"radio",id:"mis singfeatures",value:"missingfeatures","onUpdate:modelValue":t[8]||(t[8]=function (t){return e.dislikeReason=t}),class:"rateradio"},null,512),[[r["vModelRadio"],e .dislikeReason]]),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])( e.translate("Feedback_RateFeatureDislikeAddMissingFeatures")),1)]),w,Object(r["c reateElementVNode"])("label",x,[Object(r["withDirectives"])(Object(r["createElem entVNode"])("input",{type:"radio",id:"makeeasier",value:"makeeasier","onUpdate:m odelValue":t[9]||(t[9]=function(t){return e.dislikeReason=t}),class:"rateradio"} ,null,512),[[r["vModelRadio"],e.dislikeReason]]),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("Feedback_RateFeatureDislikeMakeEasie r")),1)]),D,Object(r["createElementVNode"])("label",B,[Object(r["withDirectives" ])(Object(r["createElementVNode"])("input",{type:"radio",id:"speedup",value:"spe edup","onUpdate:modelValue":t[10]||(t[10]=function(t){return e.dislikeReason=t}) ,class:"rateradio"},null,512),[[r["vModelRadio"],e.dislikeReason]]),Object(r["cr eateTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("Feedback_RateFeat ureDislikeSpeedUp")),1)]),_,Object(r["createElementVNode"])("label",C,[Object(r[ "withDirectives"])(Object(r["createElementVNode"])("input",{type:"radio",id:"fix bugs",value:"fixbugs","onUpdate:modelValue":t[11]||(t[11]=function(t){return e.d islikeReason=t}),class:"rateradio"},null,512),[[r["vModelRadio"],e.dislikeReason ]]),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.translate("F eedback_RateFeatureDislikeFixBugs")),1)]),T,Object(r["createElementVNode"])("lab el",L,[Object(r["withDirectives"])(Object(r["createElementVNode"])("input",{type :"radio",id:"dislikeother",value:"dislikeother","onUpdate:modelValue":t[12]||(t[ 12]=function(t){return e.dislikeReason=t}),class:"rateradio"},null,512),[[r["vMo delRadio"],e.dislikeReason]]),Object(r["createTextVNode"])(" "+Object(r["toDispl ayString"])(e.translate("Feedback_RateFeatureOtherReason")),1)]),H])])])),e.like Reason||e.dislikeReason?(Object(r["openBlock"])(),Object(r["createElementBlock"] )("div",S,[e.likeReason&&"useful"==e.likeReason?(Object(r["openBlock"])(),Object (r["createElementBlock"])("p",{key:0,innerHTML:e.translate("Feedback_RateFeature LeaveMessageLikeExtraUseful")},null,8,U)):Object(r["createCommentVNode"])("",!0) ,e.likeReason&&"easy"==e.likeReason?(Object(r["openBlock"])(),Object(r["createEl ementBlock"])("p",{key:1,innerHTML:e.translate("Feedback_RateFeatureLeaveMessage LikeExtraEasy")},null,8,q)):Object(r["createCommentVNode"])("",!0),e.likeReason& &"configurable"==e.likeReason?(Object(r["openBlock"])(),Object(r["createElementB lock"])("p",{key:2,innerHTML:e.translate("Feedback_RateFeatureLeaveMessageLikeEx traConfigurable")},null,8,Q)):Object(r["createCommentVNode"])("",!0),e.likeReaso n&&"likeother"==e.likeReason?(Object(r["openBlock"])(),Object(r["createElementBl ock"])("p",{key:3,innerHTML:e.translate("Feedback_RateFeatureLeaveMessageLikeExt ra")},null,8,I)):Object(r["createCommentVNode"])("",!0),e.dislikeReason&&"missin gfeatures"==e.dislikeReason?(Object(r["openBlock"])(),Object(r["createElementBlo ck"])("p",{key:4,innerHTML:e.translate("Feedback_RateFeatureLeaveMessageDislikeE xtraMissing")},null,8,A)):Object(r["createCommentVNode"])("",!0),e.dislikeReason &&"makeeasier"==e.dislikeReason?(Object(r["openBlock"])(),Object(r["createElemen tBlock"])("p",{key:5,innerHTML:e.translate("Feedback_RateFeatureLeaveMessageDisl ikeExtraEasier")},null,8,z)):Object(r["createCommentVNode"])("",!0),e.dislikeRea son&&"fixbugs"==e.dislikeReason?(Object(r["openBlock"])(),Object(r["createElemen tBlock"])("p",{key:6,innerHTML:e.translate("Feedback_RateFeatureLeaveMessageDisl ikeExtraBugs")},null,8,P)):Object(r["createCommentVNode"])("",!0),e.dislikeReaso n&&"speedup"==e.dislikeReason?(Object(r["openBlock"])(),Object(r["createElementB lock"])("p",{key:7,innerHTML:e.translate("Feedback_RateFeatureLeaveMessageDislik eExtraSpeed")},null,8,$)):Object(r["createCommentVNode"])("",!0),e.dislikeReason &&"dislikeother"==e.dislikeReason?(Object(r["openBlock"])(),Object(r["createElem entBlock"])("p",{key:8,innerHTML:e.translate("Feedback_RateFeatureLeaveMessageDi slikeExtra")},null,8,G)):Object(r["createCommentVNode"])("",!0),e.errorMessage?( Object(r["openBlock"])(),Object(r["createElementBlock"])("div",J,Object(r["toDis playString"])(e.errorMessage),1)):Object(r["createCommentVNode"])("",!0),Object( r["withDirectives"])(Object(r["createElementVNode"])("textarea",{ref:"feedbackTe xt",class:Object(r["normalizeClass"])(["materialize-textarea",{"has-error":e.err orMessage}]),id:"feedbacktext","onUpdate:modelValue":t[13]||(t[13]=function(t){r eturn e.feedbackMessage=t})},null,2),[[r["vModelText"],e.feedbackMessage]]),e.li keReason||e.dislikeReason?(Object(r["openBlock"])(),Object(r["createElementBlock "])("p",{key:10,innerHTML:e.translate("Feedback_Policy","\n <a rel='n ofollow' href='https://matomo.org/privacy-policy/' target='_blank'>","</a>")},nu ll,8,Y)):Object(r["createCommentVNode"])("",!0)])):Object(r["createCommentVNode" ])("",!0),Object(r["createElementVNode"])("input",{class:"btn",type:"button",rol e:"validation",title:e.translate("Feedback_RateFeatureSendFeedbackInformation"), value:e.translate("Feedback_SendFeedback")},null,8,K),Object(r["createElementVNo de"])("input",{type:"button",role:"cancel",value:e.translate("General_Cancel")}, null,8,W)])]})),_:1},8,["modelValue"]),Object(r["createVNode"])(ne,{modelValue:e .ratingDone,"onUpdate:modelValue":t[17]||(t[17]=function(t){return e.ratingDone= t})},{default:Object(r["withCtx"])((function(){return[Object(r["createElementVNo de"])("div",X,[Object(r["createElementVNode"])("h2",{innerHTML:e.translate("Feed back_ThankYouHeart","<i class='icon-heart red-text'></i>")},null,8,Z),e.like?(Ob ject(r["openBlock"])(),Object(r["createElementBlock"])("div",ee,[Object(r["creat eVNode"])(le)])):Object(r["createCommentVNode"])("",!0),e.like?Object(r["createC ommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])( "p",te,Object(r["toDisplayString"])(e.translate("Feedback_AppreciateFeedback")), 1)),Object(r["createElementVNode"])("input",{type:"button",value:e.translate("Ge neral_Close"),role:"yes"},null,8,ae)])]})),_:1},8,["modelValue"])],8,i)}var le={ class:"requestReview"},oe=Object(r["createStaticVNode"])('<br><br><div class="re view-links"><div class="review-link"><a href="https://www.capterra.com/p/182627/ Matomo-Analytics/" target="_blank"><div class="image"><img loading="lazy" src="p lugins/Feedback/images/capterra.svg"></div><div class="link">Capterra</div></a>< /div><div class="review-link"><a href="https://www.g2crowd.com/products/matomo-f ormerly-piwik/details" target="_blank"><div class="image"><img loading="lazy" sr c="plugins/Feedback/images/g2crowd.svg"></div><div class="link">G2 Crowd</div></ a></div><div class="review-link"><a href="https://www.producthunt.com/posts/mato mo-2" target="_blank"><div class="image"><img loading="lazy" src="plugins/Feedba ck/images/producthunt.svg"></div><div class="link">Product Hunt</div></a></div>< div class="review-link"><a href="https://www.saasworthy.com/product/matomo" targ et="_blank"><div class="image"><img loading="lazy" src="plugins/Feedback/images/ saasworthy.png"></div><div class="link">SaaSworthy</div></a></div><div class="re view-link"><a href="https://www.trustradius.com/products/matomo/reviews" target= "_blank"><div class="image"><img loading="lazy" src="plugins/Feedback/images/tru stradius.svg"></div><div class="link">TrustRadius</div></a></div></div>',3);func tion re(e,t,a,n,l,o){return Object(r["openBlock"])(),Object(r["createElementBloc k"])("div",le,[Object(r["createElementVNode"])("p",null,Object(r["toDisplayStrin g"])(e.translate("Feedback_PleaseLeaveExternalReviewForMatomo")),1),oe])}var ie= Object(r["defineComponent"])({});ie.render=re;var ce=ie,se=window,de=se.$,ue=Obj ect(r["defineComponent"])({props:{title:String},components:{MatomoDialog:o["Mato moDialog"],ReviewLinks:ce},data:function(){return{like:!1,likeReason:null,dislik eReason:null,ratingDone:!1,expanded:!1,showFeedbackForm:!1,feedbackMessage:"",er rorMessage:null}},watch:{likeReason:"doFocusInput",dislikeReason:"doFocusInput"} ,methods:{dislikeFeature:function(){this.ratingDone=!1,this.like=!1,this.showFee dbackForm=!0,this.errorMessage=null,this.likeReason=null,this.dislikeReason=null ,this.feedbackMessage=""},likeFeature:function(){this.ratingDone=!1,this.like=!0 ,this.showFeedbackForm=!0,this.errorMessage=null,this.likeReason=null,this.disli keReason=null,this.feedbackMessage=""},doFocusInput:function(){var e=this;this.$ nextTick((function(){e.focusInput()}))},focusInput:function(){null!=this.$refs.f eedbackText&&this.$refs.feedbackText.focus()},sendFeedback:function(){var e=this ;this.errorMessage=null,o["AjaxHelper"].fetch({method:"Feedback.sendFeedbackForF eature",featureName:this.title,like:this.like?"1":"0",choice:this.like?this.like Reason:this.dislikeReason,message:this.feedbackMessage}).then((function(t){"succ ess"===t.value?(de(".modal").modal("close"),e.ratingDone=!0,e.feedbackMessage="" ):e.errorMessage=t.value}))}}});ue.render=ne;var be=ue,ke=(Object(o["createAngul arJsAdapter"])({component:be,scope:{title:{angularJsBind:"@"}},directiveName:"pi wikRateFeature"}),{key:0,class:"bannerHeader"}),me=Object(r["createElementVNode" ])("i",{class:"icon-heart red-text"},null,-1),pe=Object(r["createElementVNode"]) ("i",{class:"icon-close white-text"},null,-1),je=[pe],Oe={class:"ratefeature"},f e={class:"ui-confirm ratefeatureDialog"},ve=["innerHTML"],ge=Object(r["createEle mentVNode"])("br",null,null,-1),he={class:"messageContainer"},Fe={key:0,class:"e rror-text"},Ve=Object(r["createElementVNode"])("br",null,null,-1),Ne=["innerHTML "],ye=["value"],Ee=["value"],Re={class:"ui-confirm ratefeatureDialog"},Me=["inne rHTML"],we=["value"];
/*! /*!
* Matomo - free/libre analytics platform * Matomo - free/libre analytics platform
* *
* @link https://matomo.org * @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/function xe(e,t,a,n,l,o){var i=Object(r["resolveComponent"])("MatomoDialog"); return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",null,[e.is Hidden?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r ["createElementBlock"])("div",ke,[Object(r["createElementVNode"])("span",null,[O bject(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("Feedback_F eedbackTitle"))+" ",1),me]),Object(r["createElementVNode"])("a",{onClick:t[0]||( t[0]=function(){return e.showQuestion&&e.showQuestion.apply(e,arguments)}),class :"btn"},Object(r["toDisplayString"])(e.translate("Feedback_Question".concat(e.qu estion))),1),Object(r["createElementVNode"])("a",{class:"close-btn",onClick:t[1] ||(t[1]=function(){return e.disableReminder&&e.disableReminder.apply(e,arguments )})},je)])),Object(r["createElementVNode"])("div",Oe,[Object(r["createVNode"])(i ,{modelValue:e.showFeedbackForm,"onUpdate:modelValue":t[3]||(t[3]=function(t){re turn e.showFeedbackForm=t}),onValidation:t[4]||(t[4]=function(t){return e.sendFe edback()})},{default:Object(r["withCtx"])((function(){return[Object(r["createEle mentVNode"])("div",fe,[Object(r["createElementVNode"])("h2",null,Object(r["toDis playString"])(e.translate("Feedback_Question".concat(e.question))),1),Object(r[" createElementVNode"])("p",{innerHTML:e.translate("Feedback_FeedbackSubtitle","<i class='icon-heart red-text'></i>")},null,8,ve),ge,Object(r["createElementVNode" ])("div",he,[e.errorMessage?(Object(r["openBlock"])(),Object(r["createElementBlo ck"])("div",Fe,Object(r["toDisplayString"])(e.errorMessage),1)):Object(r["create CommentVNode"])("",!0),Object(r["withDirectives"])(Object(r["createElementVNode" ])("textarea",{id:"message",class:Object(r["normalizeClass"])({"has-error":e.err orMessage}),"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.feedbackMessa ge=t})},null,2),[[r["vModelText"],e.feedbackMessage]])]),Ve,Object(r["createElem entVNode"])("p",{innerHTML:e.translate("Feedback_Policy","<a rel='nofollow' href ='https://matomo.org/privacy-policy/' target='_blank'>","</a>")},null,8,ye),Obje ct(r["createElementVNode"])("input",{type:"button",role:"validation",value:e.tra nslate("Feedback_SendFeedback")},null,8,Ne),Object(r["createElementVNode"])("inp ut",{type:"button",role:"cancel",value:e.translate("General_Cancel")},null,8,Ee) ])]})),_:1},8,["modelValue"]),Object(r["createVNode"])(i,{modelValue:e.feedbackD one,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.feedbackDone=t})},{de fault:Object(r["withCtx"])((function(){return[Object(r["createElementVNode"])("d iv",Re,[Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e .translate("Feedback_ThankYou")),1),Object(r["createElementVNode"])("p",{innerHT ML:e.translate("Feedback_ThankYourForFeedback","<i class='icon-heart red-text'>< /i>")},null,8,Me),Object(r["createElementVNode"])("input",{type:"button",role:"c ancel",value:e.translate("General_Close")},null,8,we)])]})),_:1},8,["modelValue" ])])])}var De=window,Be=De.$,_e="feedback-question",Ce=Object(r["defineComponent "])({props:{showQuestionBanner:String},components:{MatomoDialog:o["MatomoDialog" ]},computed:{isHidden:function(){return"0"===this.showQuestionBanner||!!this.hid e}},data:function(){return{questionText:"",question:0,hide:null,feedbackDone:!1, expanded:!1,showFeedbackForm:!1,feedbackMessage:null,errorMessage:null}},watch:{ showFeedbackForm:function(e){this.questionText=Object(o["translate"])("Feedback_ Question".concat(this.question)),e&&setInterval((function(){Be("#message").focus ()}),500)}},created:function(){"0"!==this.showQuestionBanner&&this.initQuestion( )},methods:{initQuestion:function(){Object(o["getCookie"])(_e)?this.question=par seInt(Object(o["getCookie"])(_e)):this.question=this.getRandomIntBetween(0,4);va r e=(this.question+1)%4,t=6048e5;Object(o["setCookie"])(_e,e,t)},getRandomIntBet ween:function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random( )*(t-e+1)+e)},showQuestion:function(){this.showFeedbackForm=!0,this.errorMessage =null},disableReminder:function(){o["AjaxHelper"].fetch({method:"Feedback.update FeedbackReminderDate"}),this.hide=!0},sendFeedback:async function(){this.errorMe ssage=null;var e=await o["AjaxHelper"].fetch({method:"Feedback.sendFeedbackForSu rvey",question:this.questionText,message:this.feedbackMessage});"success"===e.va lue?(Be(".modal").modal("close"),this.feedbackDone=!0,this.hide=!0):this.errorMe ssage=e.value}}});Ce.render=xe;var Te=Ce; */function xe(e,t,a,n,l,o){var i=Object(r["resolveComponent"])("MatomoDialog"); return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",null,[e.is Hidden?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r ["createElementBlock"])("div",ke,[Object(r["createElementVNode"])("span",null,[O bject(r["createTextVNode"])(Object(r["toDisplayString"])(e.translate("Feedback_F eedbackTitle"))+" ",1),me]),Object(r["createElementVNode"])("a",{onClick:t[0]||( t[0]=function(){return e.showQuestion&&e.showQuestion.apply(e,arguments)}),class :"btn"},Object(r["toDisplayString"])(e.translate("Feedback_Question".concat(e.qu estion))),1),Object(r["createElementVNode"])("a",{class:"close-btn",onClick:t[1] ||(t[1]=function(){return e.disableReminder&&e.disableReminder.apply(e,arguments )})},je)])),Object(r["createElementVNode"])("div",Oe,[Object(r["createVNode"])(i ,{modelValue:e.showFeedbackForm,"onUpdate:modelValue":t[3]||(t[3]=function(t){re turn e.showFeedbackForm=t}),onValidation:t[4]||(t[4]=function(t){return e.sendFe edback()})},{default:Object(r["withCtx"])((function(){return[Object(r["createEle mentVNode"])("div",fe,[Object(r["createElementVNode"])("h2",null,Object(r["toDis playString"])(e.translate("Feedback_Question".concat(e.question))),1),Object(r[" createElementVNode"])("p",{innerHTML:e.translate("Feedback_FeedbackSubtitle","<i class='icon-heart red-text'></i>")},null,8,ve),ge,Object(r["createElementVNode" ])("div",he,[e.errorMessage?(Object(r["openBlock"])(),Object(r["createElementBlo ck"])("div",Fe,Object(r["toDisplayString"])(e.errorMessage),1)):Object(r["create CommentVNode"])("",!0),Object(r["withDirectives"])(Object(r["createElementVNode" ])("textarea",{id:"message",class:Object(r["normalizeClass"])({"has-error":e.err orMessage}),"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.feedbackMessa ge=t})},null,2),[[r["vModelText"],e.feedbackMessage]])]),Ve,Object(r["createElem entVNode"])("p",{innerHTML:e.translate("Feedback_Policy","<a rel='nofollow' href ='https://matomo.org/privacy-policy/' target='_blank'>","</a>")},null,8,Ne),Obje ct(r["createElementVNode"])("input",{type:"button",role:"validation",value:e.tra nslate("Feedback_SendFeedback")},null,8,ye),Object(r["createElementVNode"])("inp ut",{type:"button",role:"cancel",value:e.translate("General_Cancel")},null,8,Ee) ])]})),_:1},8,["modelValue"]),Object(r["createVNode"])(i,{modelValue:e.feedbackD one,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.feedbackDone=t})},{de fault:Object(r["withCtx"])((function(){return[Object(r["createElementVNode"])("d iv",Re,[Object(r["createElementVNode"])("h2",null,Object(r["toDisplayString"])(e .translate("Feedback_ThankYou")),1),Object(r["createElementVNode"])("p",{innerHT ML:e.translate("Feedback_ThankYourForFeedback","<i class='icon-heart red-text'>< /i>")},null,8,Me),Object(r["createElementVNode"])("input",{type:"button",role:"c ancel",value:e.translate("General_Close")},null,8,we)])]})),_:1},8,["modelValue" ])])])}var De=window,Be=De.$,_e="feedback-question",Ce=Object(r["defineComponent "])({props:{showQuestionBanner:String},components:{MatomoDialog:o["MatomoDialog" ]},computed:{isHidden:function(){return"0"===this.showQuestionBanner||!!this.hid e}},data:function(){return{questionText:"",question:0,hide:null,feedbackDone:!1, expanded:!1,showFeedbackForm:!1,feedbackMessage:null,errorMessage:null}},watch:{ showFeedbackForm:function(e){this.questionText=Object(o["translate"])("Feedback_ Question".concat(this.question)),e&&setInterval((function(){Be("#message").focus ()}),500)}},created:function(){"0"!==this.showQuestionBanner&&this.initQuestion( )},methods:{initQuestion:function(){Object(o["getCookie"])(_e)?this.question=par seInt(Object(o["getCookie"])(_e)):this.question=this.getRandomIntBetween(0,4);va r e=(this.question+1)%4,t=6048e5;Object(o["setCookie"])(_e,e,t)},getRandomIntBet ween:function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random( )*(t-e+1)+e)},showQuestion:function(){this.showFeedbackForm=!0,this.errorMessage =null},disableReminder:function(){o["AjaxHelper"].fetch({method:"Feedback.update FeedbackReminderDate"}),this.hide=!0},sendFeedback:function(){var e=this;this.er rorMessage=null,o["AjaxHelper"].fetch({method:"Feedback.sendFeedbackForSurvey",q uestion:this.questionText,message:this.feedbackMessage}).then((function(t){"succ ess"===t.value?(Be(".modal").modal("close"),e.feedbackDone=!0,e.hide=!0):e.error Message=t.value}))}}});Ce.render=xe;var Te=Ce;
/*! /*!
* Matomo - free/libre analytics platform * Matomo - free/libre analytics platform
* *
* @link https://matomo.org * @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/Object(o["createAngularJsAdapter"])({component:Te,scope:{showQuestionBanner:{ angularJsBind:"@"}},directiveName:"piwikFeedbackQuestion"})}})})); */Object(o["createAngularJsAdapter"])({component:Te,scope:{showQuestionBanner:{ angularJsBind:"@"}},directiveName:"piwikFeedbackQuestion"})}})}));
//# sourceMappingURL=Feedback.umd.min.js.map //# sourceMappingURL=Feedback.umd.min.js.map
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)