قرینه از
https://github.com/matomo-org/matomo.git
synced 2025-08-22 15:07:44 +00:00
![dependabot[bot]](/assets/img/avatar_default.png)
* [NPM] Bump the all-dependencies group across 1 directory with 18 updates Bumps the all-dependencies group with 17 updates in the / directory: | Package | From | To | | --- | --- | --- | | [@types/jquery](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jquery) | `3.5.6` | `3.5.32` | | [@types/jqueryui](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jqueryui) | `1.12.16` | `1.12.24` | | [jquery-ui-dist](https://github.com/jquery/jquery-ui) | `1.13.2` | `1.13.3` | | [sprintf-js](https://github.com/alexei/sprintf.js) | `1.1.2` | `1.1.3` | | [vue](https://github.com/vuejs/core) | `3.2.6` | `3.2.47` | | [@types/materialize-css](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/materialize-css) | `1.0.11` | `1.0.14` | | [@types/mousetrap](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mousetrap) | `1.6.8` | `1.6.15` | | [@vue/cli-plugin-babel](https://github.com/vuejs/vue-cli/tree/HEAD/packages/@vue/cli-plugin-babel) | `4.5.13` | `4.5.19` | | [@vue/cli-plugin-eslint](https://github.com/vuejs/vue-cli/tree/HEAD/packages/@vue/cli-plugin-eslint) | `4.5.13` | `4.5.19` | | [@vue/cli-plugin-typescript](https://github.com/vuejs/vue-cli/tree/HEAD/packages/@vue/cli-plugin-typescript) | `4.5.13` | `4.5.19` | | [@vue/cli-plugin-unit-jest](https://github.com/vuejs/vue-cli/tree/HEAD/packages/@vue/cli-plugin-unit-jest) | `4.5.13` | `4.5.19` | | [@vue/cli-service](https://github.com/vuejs/vue-cli/tree/HEAD/packages/@vue/cli-service) | `4.5.13` | `4.5.19` | | [abortcontroller-polyfill](https://github.com/mo/abortcontroller-polyfill) | `1.7.3` | `1.7.8` | | [babel-loader](https://github.com/babel/babel-loader) | `8.2.2` | `8.2.5` | | [dompurify](https://github.com/cure53/DOMPurify) | `3.2.4` | `3.2.5` | | [husky](https://github.com/typicode/husky) | `8.0.2` | `8.0.3` | | [less](https://github.com/less/less.js) | `4.1.2` | `4.1.3` | Updates `@types/jquery` from 3.5.6 to 3.5.32 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jquery) Updates `@types/jqueryui` from 1.12.16 to 1.12.24 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jqueryui) Updates `jquery-ui-dist` from 1.13.2 to 1.13.3 - [Release notes](https://github.com/jquery/jquery-ui/releases) - [Commits](https://github.com/jquery/jquery-ui/compare/1.13.2...1.13.3) Updates `sprintf-js` from 1.1.2 to 1.1.3 - [Changelog](https://github.com/alexei/sprintf.js/blob/master/CHANGELOG.md) - [Commits](https://github.com/alexei/sprintf.js/compare/1.1.2...1.1.3) Updates `vue` from 3.2.6 to 3.2.47 - [Release notes](https://github.com/vuejs/core/releases) - [Changelog](https://github.com/vuejs/core/blob/v3.2.47/CHANGELOG.md) - [Commits](https://github.com/vuejs/core/compare/v3.2.6...v3.2.47) Updates `@types/materialize-css` from 1.0.11 to 1.0.14 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/materialize-css) Updates `@types/mousetrap` from 1.6.8 to 1.6.15 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mousetrap) Updates `@vue/cli-plugin-babel` from 4.5.13 to 4.5.19 - [Release notes](https://github.com/vuejs/vue-cli/releases) - [Changelog](https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md) - [Commits](https://github.com/vuejs/vue-cli/commits/v4.5.19/packages/@vue/cli-plugin-babel) Updates `@vue/cli-plugin-eslint` from 4.5.13 to 4.5.19 - [Release notes](https://github.com/vuejs/vue-cli/releases) - [Changelog](https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md) - [Commits](https://github.com/vuejs/vue-cli/commits/v4.5.19/packages/@vue/cli-plugin-eslint) Updates `@vue/cli-plugin-typescript` from 4.5.13 to 4.5.19 - [Release notes](https://github.com/vuejs/vue-cli/releases) - [Changelog](https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md) - [Commits](https://github.com/vuejs/vue-cli/commits/v4.5.19/packages/@vue/cli-plugin-typescript) Updates `@vue/cli-plugin-unit-jest` from 4.5.13 to 4.5.19 - [Release notes](https://github.com/vuejs/vue-cli/releases) - [Changelog](https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md) - [Commits](https://github.com/vuejs/vue-cli/commits/v4.5.19/packages/@vue/cli-plugin-unit-jest) Updates `@vue/cli-service` from 4.5.13 to 4.5.19 - [Release notes](https://github.com/vuejs/vue-cli/releases) - [Changelog](https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md) - [Commits](https://github.com/vuejs/vue-cli/commits/v4.5.19/packages/@vue/cli-service) Updates `@vue/compiler-sfc` from 3.2.6 to 3.2.47 - [Release notes](https://github.com/vuejs/core/releases) - [Changelog](https://github.com/vuejs/core/blob/v3.2.47/CHANGELOG.md) - [Commits](https://github.com/vuejs/core/commits/v3.2.47/packages/compiler-sfc) Updates `abortcontroller-polyfill` from 1.7.3 to 1.7.8 - [Commits](https://github.com/mo/abortcontroller-polyfill/compare/v1.7.3...v1.7.8) Updates `babel-loader` from 8.2.2 to 8.2.5 - [Release notes](https://github.com/babel/babel-loader/releases) - [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel-loader/compare/v8.2.2...v8.2.5) Updates `dompurify` from 3.2.4 to 3.2.5 - [Release notes](https://github.com/cure53/DOMPurify/releases) - [Commits](https://github.com/cure53/DOMPurify/compare/3.2.4...3.2.5) Updates `husky` from 8.0.2 to 8.0.3 - [Release notes](https://github.com/typicode/husky/releases) - [Commits](https://github.com/typicode/husky/compare/v8.0.2...v8.0.3) Updates `less` from 4.1.2 to 4.1.3 - [Release notes](https://github.com/less/less.js/releases) - [Changelog](https://github.com/less/less.js/blob/master/CHANGELOG.md) - [Commits](https://github.com/less/less.js/compare/v4.1.2...v4.1.3) --- updated-dependencies: - dependency-name: "@types/jquery" dependency-version: 3.5.32 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: "@types/jqueryui" dependency-version: 1.12.24 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: jquery-ui-dist dependency-version: 1.13.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: sprintf-js dependency-version: 1.1.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: vue dependency-version: 3.2.47 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: "@types/materialize-css" dependency-version: 1.0.14 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: "@types/mousetrap" dependency-version: 1.6.15 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: "@vue/cli-plugin-babel" dependency-version: 4.5.19 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: "@vue/cli-plugin-eslint" dependency-version: 4.5.19 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: "@vue/cli-plugin-typescript" dependency-version: 4.5.19 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: "@vue/cli-plugin-unit-jest" dependency-version: 4.5.19 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: "@vue/cli-service" dependency-version: 4.5.19 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: "@vue/compiler-sfc" dependency-version: 3.2.47 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: abortcontroller-polyfill dependency-version: 1.7.8 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: babel-loader dependency-version: 8.2.5 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: dompurify dependency-version: 3.2.5 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: husky dependency-version: 8.0.3 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: less dependency-version: 4.1.3 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * Update babel.config.js * remove unneeded push target * Improve handling of password confirmation overlay * Improve handling of setting super user permission * fix failing UI test * Update npm dependencies * Build vue files --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stefan Giehl <stefan@matomo.org> Co-authored-by: innocraft-automation <innocraft-automation@users.noreply.github.com>
8 خطوط
21 KiB
JavaScript
Generated
8 خطوط
21 KiB
JavaScript
Generated
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("CoreHome"),require("vue")):"function"===typeof define&&define.amd?define(["CoreHome"],t):"object"===typeof exports?exports["Feedback"]=t(require("CoreHome"),require("vue")):e["Feedback"]=t(e["CoreHome"],e["Vue"])})("undefined"!==typeof self?self:this,(function(e,t){return function(e){var t={};function a(l){if(t[l])return t[l].exports;var o=t[l]={i:l,l:!1,exports:{}};return e[l].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=e,a.c=t,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{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 l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(l,o,function(t){return e[t]}.bind(null,o));return l},a.n=function(e){var t=e&&e.__esModule?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="plugins/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,"ReviewLinks",(function(){return d})),a.d(t,"RateFeature",(function(){return de})),a.d(t,"FeedbackQuestion",(function(){return Be})),"undefined"!==typeof window){var l=window.document.currentScript,o=l&&l.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(a.p=o[1])}var n=a("8bbf");const i={class:"requestReview"},c=Object(n["createStaticVNode"])('<br><br><div class="review-links"><div class="review-link"><a href="https://www.softwarereviews.com/6g24l" target="_blank"><div class="image"><img loading="lazy" src="plugins/Feedback/images/softwarereviews.svg"></div><div class="link">Software Reviews</div></a></div><div class="review-link"><a href="https://www.capterra.com/p/182627/Matomo-Analytics/" target="_blank"><div class="image"><img loading="lazy" src="plugins/Feedback/images/capterra.svg"></div><div class="link">Capterra</div></a></div><div class="review-link"><a href="https://www.g2crowd.com/products/matomo-formerly-piwik/details" target="_blank"><div class="image"><img loading="lazy" src="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/matomo-2" target="_blank"><div class="image"><img loading="lazy" src="plugins/Feedback/images/producthunt.svg"></div><div class="link">Product Hunt</div></a></div><div class="review-link"><a href="https://www.saasworthy.com/product/matomo" target="_blank"><div class="image"><img loading="lazy" src="plugins/Feedback/images/saasworthy.png"></div><div class="link">SaaSworthy</div></a></div><div class="review-link"><a href="https://www.trustradius.com/products/matomo/reviews" target="_blank"><div class="image"><img loading="lazy" src="plugins/Feedback/images/trustradius.svg"></div><div class="link">TrustRadius</div></a></div></div>',3);function s(e,t,a,l,o,s){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",i,[Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(e.translate("Feedback_PleaseLeaveExternalReviewForMatomo")),1),c])}var r=Object(n["defineComponent"])({});r.render=s;var d=r;const b=["title"],u={class:"ui-confirm ratefeatureDialog"},k={key:0},m={key:0},p={key:1},j=Object(n["createElementVNode"])("br",null,null,-1),O={class:"row"},g={style:{"text-align":"left","margin-top":"16px"}},v={for:"useful",class:"ratelabel"},h=Object(n["createElementVNode"])("br",null,null,-1),f={for:"easy",class:"ratelabel"},F=Object(n["createElementVNode"])("br",null,null,-1),V={for:"configurable",class:"ratelabel"},y=Object(n["createElementVNode"])("br",null,null,-1),E={for:"likeother",class:"ratelabel"},N={key:1},R={key:0},w={key:1},M=Object(n["createElementVNode"])("br",null,null,-1),x={class:"row"},D={style:{"text-align":"left"}},B={for:"missingfeatures",class:"ratelabel"},_=Object(n["createElementVNode"])("br",null,null,-1),C={for:"makeeasier",class:"ratelabel"},S=Object(n["createElementVNode"])("br",null,null,-1),T={for:"speedup",class:"ratelabel"},L=Object(n["createElementVNode"])("br",null,null,-1),H={for:"fixbugs",class:"ratelabel"},U=Object(n["createElementVNode"])("br",null,null,-1),q={for:"dislikeother",class:"ratelabel"},z=Object(n["createElementVNode"])("br",null,null,-1),Q={key:2,class:"messageContainer",style:{"text-align":"left"}},I={key:0},P={key:1},$={key:2},A={key:3},G={key:4},Y={key:5},J={key:6},K={key:7},W={key:8},X={key:9,class:"error-text"},Z=["innerHTML"],ee=["title","value"],te=["value"],ae={class:"ui-confirm ratefeatureDialog"},le=["innerHTML"],oe={key:0},ne={key:1},ie=["value"];function ce(e,t,a,l,o,i){const c=Object(n["resolveComponent"])("MatomoDialog"),s=Object(n["resolveComponent"])("ReviewLinks");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{title:e.translate("Feedback_RateFeatureTitle",e.htmlEntities(e.title)),class:"ratefeature"},[Object(n["createElementVNode"])("div",{class:"iconContainer",onMouseenter:t[2]||(t[2]=t=>e.expanded=!0),onMouseleave:t[3]||(t[3]=t=>e.expanded=!1)},[Object(n["createElementVNode"])("img",{onClick:t[0]||(t[0]=t=>{e.likeFeature()}),class:"like-icon",src:"plugins/Feedback/vue/src/RateFeature/thumbs-up.png"}),Object(n["createElementVNode"])("img",{onClick:t[1]||(t[1]=t=>{e.dislikeFeature()}),class:"dislike-icon",src:"plugins/Feedback/vue/src/RateFeature/thumbs-down.png"})],32),Object(n["createVNode"])(c,{modelValue:e.showFeedbackForm,"onUpdate:modelValue":t[14]||(t[14]=t=>e.showFeedbackForm=t),onYes:t[15]||(t[15]=t=>e.sendFeedback()),onValidation:t[16]||(t[16]=t=>e.sendFeedback())},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",u,[e.like?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",k,[e.title?(Object(n["openBlock"])(),Object(n["createElementBlock"])("h2",m,Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageLikeNamedFeature",e.title)),1)):Object(n["createCommentVNode"])("",!0),e.title?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createElementBlock"])("h2",p,Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageLike")),1)),j,Object(n["createElementVNode"])("div",O,[Object(n["createElementVNode"])("div",g,[Object(n["createElementVNode"])("label",v,[Object(n["withDirectives"])(Object(n["createElementVNode"])("input",{type:"radio",id:"useful",value:"useful","onUpdate:modelValue":t[4]||(t[4]=t=>e.likeReason=t),class:"rateradio"},null,512),[[n["vModelRadio"],e.likeReason]]),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureUsefulInfo")),1)]),h,Object(n["createElementVNode"])("label",f,[Object(n["withDirectives"])(Object(n["createElementVNode"])("input",{type:"radio",id:"easy",value:"easy","onUpdate:modelValue":t[5]||(t[5]=t=>e.likeReason=t),class:"rateradio"},null,512),[[n["vModelRadio"],e.likeReason]]),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureEasyToUse")),1)]),F,Object(n["createElementVNode"])("label",V,[Object(n["withDirectives"])(Object(n["createElementVNode"])("input",{type:"radio",id:"configurable",value:"configurable","onUpdate:modelValue":t[6]||(t[6]=t=>e.likeReason=t),class:"rateradio"},null,512),[[n["vModelRadio"],e.likeReason]]),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureConfigurable")),1)]),y,Object(n["createElementVNode"])("label",E,[Object(n["withDirectives"])(Object(n["createElementVNode"])("input",{type:"radio",id:"likeother",value:"likeother","onUpdate:modelValue":t[7]||(t[7]=t=>e.likeReason=t),class:"rateradio"},null,512),[[n["vModelRadio"],e.likeReason]]),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureOtherReason")),1)])])])])):Object(n["createCommentVNode"])("",!0),e.like?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",N,[e.title?(Object(n["openBlock"])(),Object(n["createElementBlock"])("h2",R,Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageDislikeNamedFeature",e.title)),1)):Object(n["createCommentVNode"])("",!0),e.title?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createElementBlock"])("h2",w,Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageDislike")),1)),M,Object(n["createElementVNode"])("div",x,[Object(n["createElementVNode"])("div",D,[Object(n["createElementVNode"])("label",B,[Object(n["withDirectives"])(Object(n["createElementVNode"])("input",{type:"radio",id:"missingfeatures",value:"missingfeatures","onUpdate:modelValue":t[8]||(t[8]=t=>e.dislikeReason=t),class:"rateradio"},null,512),[[n["vModelRadio"],e.dislikeReason]]),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureDislikeAddMissingFeatures")),1)]),_,Object(n["createElementVNode"])("label",C,[Object(n["withDirectives"])(Object(n["createElementVNode"])("input",{type:"radio",id:"makeeasier",value:"makeeasier","onUpdate:modelValue":t[9]||(t[9]=t=>e.dislikeReason=t),class:"rateradio"},null,512),[[n["vModelRadio"],e.dislikeReason]]),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureDislikeMakeEasier")),1)]),S,Object(n["createElementVNode"])("label",T,[Object(n["withDirectives"])(Object(n["createElementVNode"])("input",{type:"radio",id:"speedup",value:"speedup","onUpdate:modelValue":t[10]||(t[10]=t=>e.dislikeReason=t),class:"rateradio"},null,512),[[n["vModelRadio"],e.dislikeReason]]),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureDislikeSpeedUp")),1)]),L,Object(n["createElementVNode"])("label",H,[Object(n["withDirectives"])(Object(n["createElementVNode"])("input",{type:"radio",id:"fixbugs",value:"fixbugs","onUpdate:modelValue":t[11]||(t[11]=t=>e.dislikeReason=t),class:"rateradio"},null,512),[[n["vModelRadio"],e.dislikeReason]]),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureDislikeFixBugs")),1)]),U,Object(n["createElementVNode"])("label",q,[Object(n["withDirectives"])(Object(n["createElementVNode"])("input",{type:"radio",id:"dislikeother",value:"dislikeother","onUpdate:modelValue":t[12]||(t[12]=t=>e.dislikeReason=t),class:"rateradio"},null,512),[[n["vModelRadio"],e.dislikeReason]]),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureOtherReason")),1)]),z])])])),e.likeReason||e.dislikeReason?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",Q,[e.likeReason&&"useful"===e.likeReason?(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",I,Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageLikeExtraUseful")),1)):Object(n["createCommentVNode"])("",!0),e.likeReason&&"easy"===e.likeReason?(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",P,Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageLikeExtraEasy")),1)):Object(n["createCommentVNode"])("",!0),e.likeReason&&"configurable"===e.likeReason?(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",$,Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageLikeExtraConfigurable")),1)):Object(n["createCommentVNode"])("",!0),e.likeReason&&"likeother"===e.likeReason?(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",A,Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageLikeExtra")),1)):Object(n["createCommentVNode"])("",!0),e.dislikeReason&&"missingfeatures"===e.dislikeReason?(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",G,Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageDislikeExtraMissing")),1)):Object(n["createCommentVNode"])("",!0),e.dislikeReason&&"makeeasier"===e.dislikeReason?(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",Y,Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageDislikeExtraEasier")),1)):Object(n["createCommentVNode"])("",!0),e.dislikeReason&&"fixbugs"===e.dislikeReason?(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",J,Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageDislikeExtraBugs")),1)):Object(n["createCommentVNode"])("",!0),e.dislikeReason&&"speedup"===e.dislikeReason?(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",K,Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageDislikeExtraSpeed")),1)):Object(n["createCommentVNode"])("",!0),e.dislikeReason&&"dislikeother"===e.dislikeReason?(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",W,Object(n["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageDislikeExtra")),1)):Object(n["createCommentVNode"])("",!0),e.errorMessage?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",X,Object(n["toDisplayString"])(e.errorMessage),1)):Object(n["createCommentVNode"])("",!0),Object(n["withDirectives"])(Object(n["createElementVNode"])("textarea",{ref:"feedbackText",class:Object(n["normalizeClass"])(["materialize-textarea",{"has-error":e.errorMessage}]),id:"feedbacktext","onUpdate:modelValue":t[13]||(t[13]=t=>e.feedbackMessage=t)},null,2),[[n["vModelText"],e.feedbackMessage]]),e.likeReason||e.dislikeReason?(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",{key:10,innerHTML:e.$sanitize(e.translate("Feedback_Policy",e.externalLink("https://matomo.org/privacy-policy/"),"</a>"))},null,8,Z)):Object(n["createCommentVNode"])("",!0)])):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("input",{class:"btn",type:"button",role:"validation",title:e.translate("Feedback_RateFeatureSendFeedbackInformation"),value:e.translate("Feedback_SendFeedback")},null,8,ee),Object(n["createElementVNode"])("input",{type:"button",role:"cancel",value:e.translate("General_Cancel")},null,8,te)])]),_:1},8,["modelValue"]),Object(n["createVNode"])(c,{modelValue:e.ratingDone,"onUpdate:modelValue":t[17]||(t[17]=t=>e.ratingDone=t)},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",ae,[Object(n["createElementVNode"])("h2",{innerHTML:e.$sanitize(e.translate("Feedback_ThankYouHeart","<i class='icon-heart red-text'></i>"))},null,8,le),e.like?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",oe,[Object(n["createVNode"])(s)])):Object(n["createCommentVNode"])("",!0),e.like?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",ne,Object(n["toDisplayString"])(e.translate("Feedback_AppreciateFeedback")),1)),Object(n["createElementVNode"])("input",{type:"button",value:e.translate("General_Close"),role:"yes"},null,8,ie)])]),_:1},8,["modelValue"])],8,b)}var se=a("19dc"),re=Object(n["defineComponent"])({props:{title:String},components:{MatomoDialog:se["MatomoDialog"],ReviewLinks:d},data(){return{like:!1,likeReason:null,dislikeReason:null,ratingDone:!1,expanded:!1,showFeedbackForm:!1,feedbackMessage:"",errorMessage:null}},watch:{likeReason:"doFocusInput",dislikeReason:"doFocusInput"},methods:{dislikeFeature(){this.ratingDone=!1,this.like=!1,this.showFeedbackForm=!0,this.errorMessage=null,this.likeReason=null,this.dislikeReason=null,this.feedbackMessage=""},likeFeature(){this.ratingDone=!1,this.like=!0,this.showFeedbackForm=!0,this.errorMessage=null,this.likeReason=null,this.dislikeReason=null,this.feedbackMessage=""},doFocusInput(){this.$nextTick(()=>{this.focusInput()})},focusInput(){null!=this.$refs.feedbackText&&this.$refs.feedbackText.focus()},sendFeedback(){this.errorMessage=null,se["AjaxHelper"].fetch({method:"Feedback.sendFeedbackForFeature",featureName:this.title,like:this.like?1:0,choice:this.like?this.likeReason:this.dislikeReason,message:this.feedbackMessage}).then(e=>{"success"===e.value?(this.showFeedbackForm=!1,this.ratingDone=!0,this.feedbackMessage=""):this.errorMessage=e.value})},htmlEntities(e){return se["Matomo"].helper.htmlEntities(e)}}});re.render=ce;var de=re;const be={key:0,class:"bannerHeader"},ue=Object(n["createElementVNode"])("i",{class:"icon-heart red-text"},null,-1),ke=Object(n["createElementVNode"])("i",{class:"icon-close white-text"},null,-1),me=[ke],pe={class:"ratefeature"},je={class:"ui-confirm ratefeatureDialog"},Oe=["innerHTML"],ge=Object(n["createElementVNode"])("br",null,null,-1),ve={class:"messageContainer"},he={key:0,class:"error-text"},fe=Object(n["createElementVNode"])("br",null,null,-1),Fe=["innerHTML"],Ve=["value"],ye=["value"],Ee={class:"ui-confirm ratefeatureDialog"},Ne=["innerHTML"],Re=["value"];function we(e,t,a,l,o,i){const c=Object(n["resolveComponent"])("MatomoDialog");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",null,[e.isHidden?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",be,[Object(n["createElementVNode"])("span",null,[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.translate("Feedback_FeedbackTitle"))+" ",1),ue]),Object(n["createElementVNode"])("a",{onClick:t[0]||(t[0]=(...t)=>e.showQuestion&&e.showQuestion(...t)),class:"btn"},Object(n["toDisplayString"])(e.translate("Feedback_Question"+e.question)),1),Object(n["createElementVNode"])("a",{class:"close-btn",onClick:t[1]||(t[1]=(...t)=>e.disableReminder&&e.disableReminder(...t))},me)])),Object(n["createElementVNode"])("div",pe,[Object(n["createVNode"])(c,{modelValue:e.showFeedbackForm,"onUpdate:modelValue":t[3]||(t[3]=t=>e.showFeedbackForm=t),onValidation:t[4]||(t[4]=t=>e.sendFeedback())},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",je,[Object(n["createElementVNode"])("h2",null,Object(n["toDisplayString"])(e.translate("Feedback_Question"+e.question)),1),Object(n["createElementVNode"])("p",{innerHTML:e.$sanitize(e.translate("Feedback_FeedbackSubtitle","<i class='icon-heart red-text'></i>"))},null,8,Oe),ge,Object(n["createElementVNode"])("div",ve,[e.errorMessage?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",he,Object(n["toDisplayString"])(e.errorMessage),1)):Object(n["createCommentVNode"])("",!0),Object(n["withDirectives"])(Object(n["createElementVNode"])("textarea",{id:"message",class:Object(n["normalizeClass"])({"has-error":e.errorMessage}),"onUpdate:modelValue":t[2]||(t[2]=t=>e.feedbackMessage=t)},null,2),[[n["vModelText"],e.feedbackMessage]])]),fe,Object(n["createElementVNode"])("p",{innerHTML:e.$sanitize(e.feedbackPolicy)},null,8,Fe),Object(n["createElementVNode"])("input",{type:"button",role:"validation",value:e.translate("Feedback_SendFeedback")},null,8,Ve),Object(n["createElementVNode"])("input",{type:"button",role:"cancel",value:e.translate("General_Cancel")},null,8,ye)])]),_:1},8,["modelValue"]),Object(n["createVNode"])(c,{modelValue:e.feedbackDone,"onUpdate:modelValue":t[5]||(t[5]=t=>e.feedbackDone=t)},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",Ee,[Object(n["createElementVNode"])("h2",null,Object(n["toDisplayString"])(e.translate("Feedback_ThankYou")),1),Object(n["createElementVNode"])("p",{innerHTML:e.$sanitize(e.translate("Feedback_ThankYourForFeedback","<i class='icon-heart red-text'></i>"))},null,8,Ne),Object(n["createElementVNode"])("input",{type:"button",role:"cancel",value:e.translate("General_Close")},null,8,Re)])]),_:1},8,["modelValue"])])])}const{$:Me}=window,xe="feedback-question";var De=Object(n["defineComponent"])({props:{showQuestionBanner:Boolean},components:{MatomoDialog:se["MatomoDialog"]},computed:{isHidden(){return!this.showQuestionBanner||!!this.hide},feedbackPolicy(){return Object(se["translate"])("Feedback_Policy",Object(se["externalLink"])("https://matomo.org/privacy-policy/"),"</a>")}},data(){return{questionText:"",question:0,hide:null,feedbackDone:!1,expanded:!1,showFeedbackForm:!1,feedbackMessage:null,errorMessage:null}},watch:{showFeedbackForm(e){this.questionText=Object(se["translate"])("Feedback_Question"+this.question),e&&setInterval(()=>{Me("#message").focus()},500)}},created(){this.showQuestionBanner&&this.initQuestion()},methods:{initQuestion(){Object(se["getCookie"])(xe)?this.question=parseInt(Object(se["getCookie"])(xe)):this.question=this.getRandomIntBetween(0,4);const e=(this.question+1)%4,t=6048e5;Object(se["setCookie"])(xe,""+e,t)},getRandomIntBetween(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)},showQuestion(){this.showFeedbackForm=!0,this.errorMessage=null},disableReminder(){se["AjaxHelper"].fetch({method:"Feedback.updateFeedbackReminderDate"}),this.hide=!0},sendFeedback(){this.errorMessage=null,se["AjaxHelper"].fetch({method:"Feedback.sendFeedbackForSurvey",question:this.questionText,message:this.feedbackMessage}).then(e=>{"success"===e.value?(this.showFeedbackForm=!1,this.feedbackDone=!0,this.hide=!0):this.errorMessage=e.value})}}});De.render=we;var Be=De;
|
|
/*!
|
|
* Matomo - free/libre analytics platform
|
|
*
|
|
* @link https://matomo.org
|
|
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
|
*/}})}));
|
|
//# sourceMappingURL=Feedback.umd.min.js.map
|