(function(e){function t(t){for(var s,a,c=t[0],u=t[1],i=t[2],l=0,f=[];l<c.length;l++)a=c[l],Object.prototype.hasOwnProperty.call(n,a)&&n[a]&&f.push(n[a][0]),n[a]=0;for(s in u)Object.prototype.hasOwnProperty.call(u,s)&&(e[s]=u[s]);d&&d(t);while(f.length)f.shift()();return o.push.apply(o,i||[]),r()}function r(){for(var e,t=0;t<o.length;t++){for(var r=o[t],s=!0,c=1;c<r.length;c++){var u=r[c];0!==n[u]&&(s=!1)}s&&(o.splice(t--,1),e=a(a.s=r[0]))}return e}var s={},n={settings:0},o=[];function a(t){if(s[t])return s[t].exports;var r=s[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=s,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)a.d(r,s,function(t){return e[t]}.bind(null,s));return r},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="";var c=window["webpackJsonp"]=window["webpackJsonp"]||[],u=c.push.bind(c);c.push=t,c=c.slice();for(var i=0;i<c.length;i++)t(c[i]);var d=u;o.push([7,"chunk-vendors","chunk-common"]),r()})({2884:function(e,t,r){"use strict";r.r(t);r("e9f5"),r("7d54");var s=r("a026"),n=r("8c4f"),o=r("f9d5"),a=r.n(o),c=r("003c"),u=r("c0cc"),i=r("918d"),d=r("0eb0"),l=r("af2a"),f=r("0486"),h=function(){var e=this,t=e._self._c;return t("div",{staticClass:"user-feedback user-feedback-settings"},[t("user-feedback-notices"),t("user-feedback-admin-header",{attrs:{logo:e.headerLogo},scopedSlots:e._u([{key:"header-end",fn:function(){return[t("user-feedback-notifications-toggle")]},proxy:!0}])}),e._t("default"),t("router-view"),t("user-feedback-notifications")],2)},p=[],b=r("53ad"),g=r("3e90"),m=r("3e71");const v=document.querySelector('[href*="userfeedback_settings#/about"]'),k=document.querySelector('[href*="admin.php?page=userfeedback_addons"]'),y=document.querySelector('[href="admin.php?page=userfeedback_settings"]'),w=document.querySelector('[href*="userfeedback_settings#/integrations"]'),_=document.querySelector('[href*="userfeedback_settings#/growth-tools"]');var S={name:"UserFeedbackSettings",components:{UserFeedbackNotifications:b["a"],UserFeedbackNotificationsToggle:g["a"],UserFeedbackNotices:m["a"]},computed:{headerLogo(){return this.$uf.assets+"/img/user-feedback-logo-full.svg"}},methods:{handleRouteChange(){const e=this.$route,t=e.path.includes("about"),r=e.path.includes("addons"),s=e.path.includes("integrations"),n=e.path.includes("growth-tools"),o=document.querySelector("#toplevel_page_userfeedback_surveys .wp-submenu li.current");t&&v?(o.classList.remove("current"),v.closest("li").classList.add("current")):r&&k?(o.classList.remove("current"),k.closest("li").classList.add("current")):s&&w?(o.classList.remove("current"),w.closest("li").classList.add("current")):n&&_?(o.classList.remove("current"),_.closest("li").classList.add("current")):(o.classList.remove("current"),y.closest("li").classList.add("current"))}},watch:{$route(){this.handleRouteChange()}},created(){this.handleRouteChange()}},L=S,O=r("2877"),x=Object(O["a"])(L,h,p,!1,null,null,null),j=x.exports,P=(r("459b"),r("7220")),$=r("5943");(()=>{const e=document.getElementById("userfeedback-settings");e&&(s["a"].use(n["a"]),s["a"].use(c["a"],{themes:{uf:{$extend:"tooltip",autoHide:!0,hideTriggers:["click"]}}}),s["a"].use(u["a"],{componentPrefix:"UserFeedback",classPrefix:"user-feedback"}),window.userfeedback_addons&&window.userfeedback_addons.forEach(e=>{s["a"].use(e)}),s["a"].use(i["a"],{store:P["a"]}),s["a"].use(l["a"],{store:P["a"]}),s["a"].use(f["a"],{store:P["a"]}),s["a"].use(a.a),s["a"].use(d["a"]),new s["a"]({router:$["router"],store:P["a"],mounted(){this.$store.dispatch("config/fetchSettings"),this.$store.dispatch("license/getLicense"),this.$store.dispatch("addons/fetchAddons")},render:e=>e(j)}).$mount(e))})()},"459b":function(e,t,r){},7:function(e,t,r){e.exports=r("2884")}});