Files
2026-04-28 15:13:50 +02:00

1 line
8.9 KiB
JavaScript

(function(e){function t(t){for(var n,r,i=t[0],u=t[1],l=t[2],d=0,f=[];d<i.length;d++)r=i[d],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&f.push(a[r][0]),a[r]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);c&&c(t);while(f.length)f.shift()();return s.push.apply(s,l||[]),o()}function o(){for(var e,t=0;t<s.length;t++){for(var o=s[t],n=!0,i=1;i<o.length;i++){var u=o[i];0!==a[u]&&(n=!1)}n&&(s.splice(t--,1),e=r(r.s=o[0]))}return e}var n={},a={"post-ratings-upsell":0},s=[];function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=n,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="";var i=window["webpackJsonp"]=window["webpackJsonp"]||[],u=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l<i.length;l++)t(i[l]);var c=u;s.push([2,"chunk-vendors","chunk-common"]),o()})({2:function(e,t,o){e.exports=o("97ba")},"97ba":function(e,t,o){"use strict";o.r(t);var n=o("a026"),a=o("8c4f"),s=o("003c"),r=o("f9d5"),i=o.n(r),u=o("c0cc"),l=o("918d"),c=o("af2a"),d=o("0486"),f=function(){var e,t,o=this,n=o._self._c;return n("div",{staticClass:"user-feedback post-ratings-report"},[n("div",{staticClass:"uf-post-ratings-upsell-trigger",on:{click:function(e){o.showUpsell=!0}}}),n("user-feedback-upgrade-to-pro",{attrs:{show:o.showUpsell,feature:o.texts.upgrade_modal_feature,campaign:"post-ratings",layout:"absolute","required-plan":"pro"},on:{close:function(e){o.showUpsell=!1}},scopedSlots:o._u(["licensed"===(null===(e=o.$uf.addons)||void 0===e||null===(e=e["post-ratings"])||void 0===e?void 0:e.type)?{key:"heading",fn:function(){return[n("span",{directives:[{name:"icon",rawName:"v-icon:info-colored",arg:"info-colored"}],staticClass:"install-addon-info-icon"})]},proxy:!0}:null,{key:"body",fn:function(){var e;return["licensed"===(null===(e=o.$uf.addons)||void 0===e||null===(e=e["post-ratings"])||void 0===e?void 0:e.type)?n("div",{domProps:{innerHTML:o._s(o.texts.bodyText)}}):n("div",[o._v(o._s(o.texts.bodyTextPro))])]},proxy:!0},"licensed"===(null===(t=o.$uf.addons)||void 0===t||null===(t=t["post-ratings"])||void 0===t?void 0:t.type)?{key:"upgrade-button",fn:function(){return[n("button",{staticClass:"button user-feedback-button is-large",on:{click:function(e){var t;return o.activateAddon(null===(t=o.$uf.addons)||void 0===t?void 0:t["post-ratings"])}}},[o._v(o._s(o.texts.installAndActive))])]},proxy:!0}:null],null,!0)}),n("user-feedback-notices"),n("user-feedback-admin-header",{attrs:{logo:o.headerLogo},scopedSlots:o._u([{key:"header-end",fn:function(){return[n("user-feedback-notifications-toggle")]},proxy:!0}])}),o._t("default"),n("router-view"),n("user-feedback-notifications")],2)},p=[],L=o("561c"),b=o("53ad"),g=o("3e90"),h=o("3e71"),v=o("10db"),_={name:"UserFeedbackPostRatings",components:{UserFeedbackNotifications:b["a"],UserFeedbackNotificationsToggle:g["a"],UserFeedbackNotices:h["a"]},data(){return{showUpsell:!1}},computed:{headerLogo(){return this.$uf.assets+"/img/user-feedback-logo-full.svg"},texts(){return{installAndActive:Object(L["a"])("Install & Activate",this.$textDomain),upgrade_modal_feature:Object(L["a"])("Post Ratings",this.$textDomain),bodyText:Object(L["a"])("Get valuable feedback on all your post content. Please install the post ratings addon to unlock all the awesome features.",this.$textDomain),bodyTextPro:Object(L["a"])("We're sorry, post ratings is not available on your plan. Please upgrade to the pro plan to unlock all these awesome features.",this.$textDomain)}}},methods:{activateAddon(e){Object(v["b"])(e)}}},m=_,y=o("2877"),k=Object(y["a"])(m,f,p,!1,null,null,null),C=k.exports,x=o("2f62");n["a"].use(x["a"]);const w=new x["a"].Store({modules:{post_ratings:{namespaced:!0,state:()=>({defaults:{rating_question:Object(L["a"])("How useful was this post?","userfeedback-text-domain"),rating_instruction_message:Object(L["a"])("Click on the stars to rate","userfeedback-text-domain"),thank_you_message:Object(L["a"])("Thanks for your rating!","userfeedback-text-domain"),background_color:"#fff",text_color:"#000",icon_id:1,icon_color:"#23282D",icons:[{id:1,viewBox:"0 0 14 14",fill:"#A7A7A7",path:"M8.78597 5.06145L7.5871 1.11416C7.35059 0.339387 6.25775 0.339387 6.02939 1.11416L4.82237 5.06145H1.19316C0.402068 5.06145 0.0758463 6.08089 0.720134 6.5376L3.68875 8.65804L2.52251 12.4177C2.286 13.1762 3.1668 13.7879 3.79477 13.3067L6.80417 11.0231L9.81356 13.3149C10.4415 13.796 11.3223 13.1844 11.0858 12.4259L9.91959 8.6662L12.8882 6.54575C13.5325 6.08089 13.2063 5.0696 12.4152 5.0696H8.78597V5.06145Z"},{id:2,viewBox:"0 0 15 15",fill:"#A7A7A7",path:"M6.15122 10.9831L7.80444 9.70879L9.45767 10.9831L8.83771 8.88218L10.3876 7.78003H8.45884L7.80444 5.64462L7.15004 7.78003H5.22128L6.77118 8.88218L6.15122 10.9831ZM3.55084 14.6685L5.1524 9.43325L0.916016 6.40234H6.15122L7.80444 0.891602L9.45767 6.40234H14.6929L10.4565 9.43325L12.058 14.6685L7.80444 11.4309L3.55084 14.6685Z"},{id:3,viewBox:"0 0 15 15",fill:"#A7A7A7",path:"M9.49626 6.37456L7.80493 0.806396L6.1136 6.37456H0.844727L5.14613 9.44401L3.51048 14.7268L7.80493 11.4625L12.1063 14.7268L10.4707 9.44401L14.7651 6.37456H9.49626Z"},{id:4,viewBox:"0 0 15 15",fill:"#A7A7A7",path:"M5.60188 11.1772L7.8043 9.84879L10.0067 11.1947L9.4299 8.67767L11.3701 6.99963L8.81811 6.7724L7.8043 4.39519L6.79049 6.75492L4.23848 6.98215L6.17871 8.67767L5.60188 11.1772ZM3.48686 14.0963L4.62303 9.18457L0.8125 5.88095L5.8466 5.44396L7.8043 0.81189L9.76201 5.44396L14.7961 5.88095L10.9856 9.18457L12.1217 14.0963L7.8043 11.4919L3.48686 14.0963Z"},{id:5,viewBox:"0 0 15 15",fill:"#A7A7A7",path:"M14.6386 5.86371C14.5649 5.63628 14.4254 5.43583 14.2377 5.28773C14.0501 5.13963 13.8227 5.05053 13.5843 5.03171L10.2213 4.76013L8.9234 1.62173C8.83218 1.39992 8.67711 1.21022 8.47786 1.07672C8.27862 0.943223 8.0442 0.871948 7.80436 0.871948C7.56453 0.871948 7.33011 0.943223 7.13087 1.07672C6.93162 1.21022 6.77655 1.39992 6.68533 1.62173L5.38861 4.76072L2.02557 5.03171C1.7868 5.0514 1.55918 5.14123 1.37131 5.2899C1.18344 5.43857 1.0437 5.63945 0.969655 5.8673C0.89561 6.09515 0.890562 6.33981 0.955146 6.57052C1.01973 6.80123 1.15106 7.0077 1.33264 7.16399L3.89875 9.3771L3.1143 12.6872C3.05708 12.9206 3.07062 13.1658 3.15318 13.3914C3.23574 13.6171 3.38359 13.8131 3.5779 13.9544C3.77222 14.0958 4.00421 14.1761 4.24433 14.1852C4.48445 14.1942 4.72183 14.1316 4.92626 14.0054L7.80436 12.2338L10.6825 14.0054C10.8868 14.1308 11.1238 14.1928 11.3635 14.1835C11.6031 14.1741 11.8345 14.0939 12.0285 13.953C12.2226 13.8121 12.3704 13.6167 12.4533 13.3917C12.5362 13.1667 12.5506 12.9222 12.4944 12.689L11.71 9.37888L14.2761 7.16578C14.4587 7.0091 14.5907 6.80168 14.6553 6.56985C14.7198 6.33802 14.714 6.09223 14.6386 5.86371ZM10.4507 8.57957C10.3517 8.66488 10.2781 8.77573 10.2379 8.90002C10.1976 9.02432 10.1923 9.15728 10.2225 9.28439L10.9885 12.5197L8.17817 10.7915C8.06576 10.7223 7.93636 10.6857 7.80436 10.6857C7.67237 10.6857 7.54297 10.7223 7.43056 10.7915L4.6202 12.5197L5.38623 9.28677C5.41641 9.15965 5.41108 9.02669 5.37084 8.9024C5.33059 8.77811 5.25698 8.66726 5.15803 8.58195L2.646 6.41282L5.93832 6.14718C6.06934 6.13665 6.1949 6.09012 6.30113 6.01273C6.40737 5.93533 6.49015 5.83008 6.54033 5.7086L7.80436 2.64805L9.0684 5.7086C9.11858 5.83008 9.20136 5.93533 9.3076 6.01273C9.41383 6.09012 9.53939 6.13665 9.67041 6.14718L12.9627 6.41282L10.4507 8.57957Z"}]},settings:{display_settings:"manual",icon_id:1,icon_color:"#F2B500",rating_question:Object(L["a"])("How useful was this post?","userfeedback-text-domain"),rating_instruction_message:Object(L["a"])("Click on the stars to rate","userfeedback-text-domain"),thank_you_message:Object(L["a"])("Thanks for your rating!","userfeedback-text-domain"),font:{value:"Roboto",label:"Roboto"},background_color:"#fff",text_color:"#000",use_review_schema:"yes",show_uf_logo:"no",show_vote_count:"yes",show_rating:"yes"}}),mutations:{UPDATE_SETTINGS(e,t){e.settings=t},UPDATE_ICON(e,t){e.settings.icon_id=t}}}}});var A=o("0fe5");(()=>{const e=document.getElementById("userfeedback-post-ratings");e&&(n["a"].use(s["a"],{themes:{uf:{$extend:"tooltip",autoHide:!0,hideTriggers:["click"]}}}),n["a"].use(a["a"]),n["a"].use(u["a"],{componentPrefix:"UserFeedback",classPrefix:"user-feedback"}),n["a"].use(l["a"],{store:w}),n["a"].use(c["a"],{store:w}),n["a"].use(i.a),n["a"].use(d["a"],{store:w}),new n["a"]({router:A["router"],store:w,render:e=>e(C)}).$mount(e))})()}});