OwlCyberSecurity - MANAGER
Edit File: index-71743d89.min.js
import{V as r,a as p,_ as a,m,s as _,n as l,D as x,h as $,w as k,M as A,g as S}from"./vendor-008d034f.min.js";import{S as P}from"./SlideDownUp-38353d0b.min.js";const T=function(){return new Promise((n,t)=>{let e=new FormData;e.append("action","monsterinsights_vue_install_plugin"),e.append("slug","userfeedback-lite"),e.append("nonce",r.prototype.$mi.nonce),p.post(r.prototype.$mi.ajax,e).then(s=>{n(s.data)}).catch(function(s){t(s),console.log(s)})})},O=function(){return new Promise((n,t)=>{let e=new FormData;e.append("action","monsterinsights_activate_addon"),e.append("nonce",r.prototype.$mi.activate_nonce),e.append("isnetwork",r.prototype.$mi.network),e.append("plugin","userfeedback-lite/userfeedback.php"),p.post(r.prototype.$mi.ajax,e).then(s=>{n(s.data)}).catch(function(s){t(s)})})},v={installUserFeedback:T,activatelUserFeedback:O},N={name:"AddonBlock",props:{addon:Object,isAddon:{type:Boolean,default:!0}},data(){return{text_status:a("Status: %s","google-analytics-for-wordpress"),text_upgrade:a("Upgrade Now","google-analytics-for-wordpress"),activating:!1,deactivating:!1,installing:!1,text_expired:a("License Expired","google-analytics-for-wordpress"),text_upgrade_required:a("Status: Upgrade Required","google-analytics-for-wordpress")}},computed:{...m({license:"$_license/license",license_network:"$_license/license_network"}),addonTitle(){let n=this.addon.title;return n.indexOf("MonsterInsights")===0&&(n=n.replace("MonsterInsights ","")),n},currentRouteName(){return this.$route.name},upgradeUrl(){return this.$getUpgradeUrl("addons-page",String(this.addonTitle).toLocaleLowerCase().replaceAll(/\s+/g,"-"))}},methods:{actionsClass(){let n="monsterinsights-addon-message ";return this.addon.type==="licensed"?this.addon.active?n+="monsterinsights-addon-active":this.addon.installed===!1?n+="monsterinsights-addon-not-installed":n+="monsterinsights-addon-inactive":n+="monsterinsights-addon-not-available",n},statusText(){let n=a("Not Installed","google-analytics-for-wordpress");return this.addon.type!=="licensed"?n=a("Not Available","google-analytics-for-wordpress"):this.addon.active?n=this.$mi.network?a("Network Active","google-analytics-for-wordpress"):a("Active","google-analytics-for-wordpress"):this.addon.installed&&(n=a("Inactive","google-analytics-for-wordpress")),_(this.text_status,"<span>"+n+"</span>")},textButtonAction(){let n=a("Install","google-analytics-for-wordpress");return this.addon.redirect&&(n=a("Visit Website","google-analytics-for-wordpress")),this.addon.type!=="licensed"?a("Upgrade Now","google-analytics-for-wordpress"):this.activating?a("Activating...","google-analytics-for-wordpress"):this.deactivating?a("Deactivating...","google-analytics-for-wordpress"):this.installing?a("Installing...","google-analytics-for-wordpress"):this.addon.active?a("Deactivate","google-analytics-for-wordpress"):this.addon.installed?a("Activate","google-analytics-for-wordpress"):n},clickAction(){if(this.activating||this.deactivating||this.installing)return!1;this.addon.installed?this.addon.active?this.deactivateAddon():this.activateAddon():this.installAddon()},installAddon(){const n=this,t=this.isAddon?"$_addons/installAddon":"$_addons/installPlugin";this.installing=!0,this.$store.dispatch(t,this.addon).then(function(){n.installing=!1}).catch(function(){n.installing=!1})},activateAddon(){const n=this;this.activating=!0,this.$store.dispatch("$_addons/activateAddon",this.addon).then(function(){n.activating=!1}).catch(function(){n.activating=!1})},deactivateAddon(){const n=this;this.deactivating=!0,this.$store.dispatch("$_addons/deactivateAddon",this.addon).then(function(){n.deactivating=!1}).catch(function(){n.deactivating=!1})},isLicenseExpired(){return!!(typeof this.license<"u"&&this.license&&this.license.is_expired)},isNetworkLicenseExpired(){return!!(typeof this.license_network<"u"&&this.license_network&&this.license_network.is_expired)}}};var D=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-addon",attrs:{id:`monsterinsights-addon-${t.addon.slug}`}},[e("div",{staticClass:"monsterinsights-addon-top"},[t.addon.icon?e("div",{staticClass:"monsterinsights-addon-image"},[e("img",{staticClass:"monsterinsights-addon-thumb",attrs:{src:t.addon.icon,alt:t.addon.title}})]):t._e(),e("div",{staticClass:"monsterinsights-addon-text"},[e("h3",{staticClass:"monsterinsights-addon-title",domProps:{textContent:t._s(t.addonTitle)}}),t.addon.excerpt?e("p",{staticClass:"monsterinsights-addon-excerpt",domProps:{textContent:t._s(t.addon.excerpt)}}):t._e()])]),e("div",{class:t.actionsClass()},[e("div",{staticClass:"monsterinsights-interior"},[t.addon.type==="unlicensed"?e("span",{staticClass:"monsterinsights-addon-status monsterinsights-green-text",domProps:{innerHTML:t._s(t.text_upgrade_required)}}):e("span",{staticClass:"monsterinsights-addon-status",domProps:{innerHTML:t._s(t.statusText())}}),e("div",{staticClass:"monsterinsights-addon-action"},[t.currentRouteName==="addons"?e("div",[t.isLicenseExpired()||t.isNetworkLicenseExpired()?e("div",[t.addon.type==="licensed"?e("button",{staticClass:"monsterinsights-button"},[e("span",{domProps:{textContent:t._s(t.text_expired)}})]):t._e()]):e("div",[t.addon.type==="licensed"?e("button",{staticClass:"monsterinsights-button",on:{click:function(s){return s.preventDefault(),t.clickAction.apply(null,arguments)}}},[e("span",{domProps:{innerHTML:t._s(t.textButtonAction())}})]):e("a",{staticClass:"monsterinsights-button",attrs:{href:t.upgradeUrl,target:"_blank"},domProps:{textContent:t._s(t.textButtonAction())}})])]):e("div",[t.addon.redirect&&!t.addon.installed?e("div",[e("a",{staticClass:"monsterinsights-button",attrs:{href:t.addon.redirect,target:"_blank"},domProps:{textContent:t._s(t.textButtonAction())}})]):e("div",[t.addon.type==="licensed"?e("button",{staticClass:"monsterinsights-button",on:{click:function(s){return s.preventDefault(),t.clickAction.apply(null,arguments)}}},[e("span",{domProps:{innerHTML:t._s(t.textButtonAction())}})]):e("a",{staticClass:"monsterinsights-button",attrs:{href:t.upgradeUrl,target:"_blank"},domProps:{textContent:t._s(t.textButtonAction())}})])])])])])])},L=[],B=l(N,D,L,!1,null,null,null,null);const ni=B.exports,F=function(n){return new Promise(t=>{let e=new FormData;e.append("action","monsterinsights_vue_get_notes"),e.append("nonce",r.prototype.$mi.nonce),e.append("params",JSON.stringify(n)),p.post(r.prototype.$mi.ajax,e).then(s=>{t(s.data)})})},V=function(n){return new Promise(t=>{let e=new FormData;e.append("action","monsterinsights_vue_get_note"),e.append("nonce",r.prototype.$mi.nonce),e.append("id",n),p.post(r.prototype.$mi.ajax,e).then(s=>{t(s.data)})})},j=function(n){return new Promise(t=>{let e=new FormData;e.append("action","monsterinsights_vue_get_categories"),e.append("nonce",r.prototype.$mi.nonce),e.append("params",JSON.stringify(n)),p.post(r.prototype.$mi.ajax,e).then(s=>{t(s.data)})})},M=function(n){return new Promise((t,e)=>{let s=new FormData;s.append("action","monsterinsights_vue_save_note"),s.append("nonce",r.prototype.$mi.nonce),s.append("note",JSON.stringify(n)),p.post(r.prototype.$mi.ajax,s).then(i=>{i.data.published?(r.prototype.$mi_success_toast({title:n.id?a("Site note is updated successfully.","google-analytics-for-wordpress"):a("Site note is added successfully.","google-analytics-for-wordpress")}),t(i.data)):(r.prototype.$mi_error_toast({title:_(a("%1$s","google-analytics-for-wordpress"),i.data.message),html:a("Please add some information into your site notes.","google-analytics-for-wordpress")}),e(i.data))}).catch(function(i){if(i.response){const o=i.response;return r.prototype.$mi_error_toast({title:_(a("%1$s, %2$s","google-analytics-for-wordpress"),o.status,o.statusText),html:a("Please add some information into your site notes.","google-analytics-for-wordpress")})}r.prototype.$mi_error_toast({title:a("You appear to be offline.","google-analytics-for-wordpress")})})})},I=function(n){return new Promise((t,e)=>{let s=new FormData;s.append("action","monsterinsights_vue_save_category"),s.append("nonce",r.prototype.$mi.nonce),s.append("category",JSON.stringify(n)),p.post(r.prototype.$mi.ajax,s).then(i=>{i.data.published?(r.prototype.$mi_success_toast({title:a("Site note category is added successfully.","google-analytics-for-wordpress")}),t(i.data)):(r.prototype.$mi_error_toast({title:_(a("Error: %1$s","google-analytics-for-wordpress"),i.data.message)}),e(i.data))}).catch(function(i){if(i.response){const o=i.response;return r.prototype.$mi_error_toast({title:_(a("Error: %1$s, %2$s","google-analytics-for-wordpress"),o.status,o.statusText)})}r.prototype.$mi_error_toast({title:a("You appear to be offline.","google-analytics-for-wordpress")})})})},R=function(n){return new Promise((t,e)=>{let s=new FormData;s.append("action","monsterinsights_vue_trash_notes"),s.append("nonce",r.prototype.$mi.nonce),s.append("ids",JSON.stringify(n)),p.post(r.prototype.$mi.ajax,s).then(i=>{i.data.success?(r.prototype.$mi_success_toast({title:a("Trashed successfully.","google-analytics-for-wordpress")}),t(i.data)):(r.prototype.$mi_error_toast({title:_(a("Error: %1$s","google-analytics-for-wordpress"),i.data.message)}),e(i.data))}).catch(function(i){if(i.response){const o=i.response;return r.prototype.$mi_error_toast({title:_(a("Error: %1$s, %2$s","google-analytics-for-wordpress"),o.status,o.statusText)})}r.prototype.$mi_error_toast({title:a("You appear to be offline.","google-analytics-for-wordpress")})})})},E=function(n){return new Promise((t,e)=>{let s=new FormData;s.append("action","monsterinsights_vue_restore_notes"),s.append("nonce",r.prototype.$mi.nonce),s.append("ids",JSON.stringify(n)),p.post(r.prototype.$mi.ajax,s).then(i=>{i.data.success?(r.prototype.$mi_success_toast({title:a("Restored successfully.","google-analytics-for-wordpress")}),t(i.data)):(r.prototype.$mi_error_toast({title:_(a("Error: %1$s","google-analytics-for-wordpress"),i.data.message)}),e(i.data))}).catch(function(i){if(i.response){const o=i.response;return r.prototype.$mi_error_toast({title:_(a("Error: %1$s, %2$s","google-analytics-for-wordpress"),o.status,o.statusText)})}r.prototype.$mi_error_toast({title:a("You appear to be offline.","google-analytics-for-wordpress")})})})},H=function(n){return new Promise((t,e)=>{let s=new FormData;s.append("action","monsterinsights_vue_delete_notes"),s.append("nonce",r.prototype.$mi.nonce),s.append("ids",JSON.stringify(n)),p.post(r.prototype.$mi.ajax,s).then(i=>{i.data.success?(r.prototype.$mi_success_toast({title:a("Deleted successfully.","google-analytics-for-wordpress")}),t(i.data)):(r.prototype.$mi_error_toast({title:_(a("Error: %1$s","google-analytics-for-wordpress"),i.data.message)}),e(i.data))}).catch(function(i){if(i.response){const o=i.response;return r.prototype.$mi_error_toast({title:_(a("Error: %1$s, %2$s","google-analytics-for-wordpress"),o.status,o.statusText)})}r.prototype.$mi_error_toast({title:a("You appear to be offline.","google-analytics-for-wordpress")})})})},q=function(n){return new Promise((t,e)=>{let s=new FormData;s.append("action","monsterinsights_vue_delete_categories"),s.append("nonce",r.prototype.$mi.nonce),s.append("ids",JSON.stringify(n)),p.post(r.prototype.$mi.ajax,s).then(i=>{i.data.success?(r.prototype.$mi_success_toast({title:a("Deleted successfully.","google-analytics-for-wordpress")}),t(i.data)):(r.prototype.$mi_error_toast({title:_(a("Error: %1$s","google-analytics-for-wordpress"),i.data.message)}),e(i.data))}).catch(function(i){if(i.response){const o=i.response;return r.prototype.$mi_error_toast({title:_(a("Error: %1$s, %2$s","google-analytics-for-wordpress"),o.status,o.statusText)})}r.prototype.$mi_error_toast({title:a("You appear to be offline.","google-analytics-for-wordpress")})})})},ii={getNotes:F,getNote:V,getCategories:j,saveNote:M,saveCategory:I,trashNotes:R,restoreNotes:E,deleteNotes:H,deleteCategories:q};const z={name:"SiteNotesMediasField"};var U=function(){var t=this;return t._self._c,t._e()},Z=[],Y=l(z,U,Z,!1,null,null,null,null);const ai=Y.exports,K={name:"SiteNotesDatePickerField",components:{DatePicker:x},props:{disabled:Boolean,value:{type:[String],default:""}},computed:{innerValue:{get(){return this.value?this.value:$().format("YYYY-MM-DD")},set(n){this.$emit("input",n)}}},methods:{disableAfterToday(n){const t=new Date;return t.setHours(0,0,0,0),n>t}}};var W=function(){var t=this,e=t._self._c;return e("date-picker",{attrs:{id:"note_date",disabled:t.disabled,valueType:"format",format:"YYYY-MM-DD","disabled-date":t.disableAfterToday,clearable:!1},model:{value:t.innerValue,callback:function(s){t.innerValue=s},expression:"innerValue"}})},Q=[],J=l(K,W,Q,!1,null,null,null,null);const oi=J.exports,f=n=>(n||document.location.search).replace(/(^\?)/,"").split("&").map((function(t){return t=t.split("="),this[t[0]]=t[1],this}).bind({}))[0],b=(n,t)=>{t=t||document.location.href;const e=t.split("?");if(2>e.length)return t;const s=encodeURIComponent(n)+"=",i=e[1].split(/[&;]/g);for(var o=i.length;0<o--;)i[o].lastIndexOf(s,0)!==-1&&i.splice(o,1);const c=e[0]+(0<i.length?"?"+i.join("&"):"");window.history.replaceState(null,null,c)};r.use(k,{container:"body",duration:1e3,easing:"ease-in-out",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0});const G={mounted(){if(f()["monsterinsights-scroll"]&&setTimeout(()=>{this.$scrollTo(`#${f()["monsterinsights-scroll"]}`,{offset:-130}),b("monsterinsights-scroll")},1500),f()["monsterinsights-highlight"]){const n=f()["monsterinsights-scroll"]?2500:1500;setTimeout(()=>{const t=document.querySelector(`#${f()["monsterinsights-highlight"]}`);t&&(t.classList.add("monsterinsights-row-highlight"),setTimeout(()=>{t.classList.remove("monsterinsights-row-highlight")},2500)),b("monsterinsights-highlight")},n)}},methods:{scrollToID(n,t=30){setTimeout(()=>{this.$scrollTo(`#${n}`,{offset:t})},100)}}};const X={name:"TheFloatingBar",props:{showBar:{default:!1,type:Boolean},hideBar:{type:Function}},data(){return{barLink:this.$getUpgradeUrl("floatbar","upgrade")}},computed:{barText(){return _(a("%1$sYou're using %2$s Lite%3$s. To unlock all reports, consider %4$supgrading to Pro%5$s.","google-analytics-for-wordpress"),"<strong>","MonsterInsights","</strong>",'<a href="'+this.barLink+'" target="_blank">',"</a>")}}};var tt=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"monsterinsights-slide"}},[t.showBar?e("div",{staticClass:"monsterinsights-floating-bar"},[e("span",{domProps:{innerHTML:t._s(t.barText)}}),e("button",{staticClass:"monsterinsights-floating-bar-close",on:{click:t.hideBar}},[e("span",{staticClass:"dashicons dashicons-before dashicons-no-alt"})])]):t._e()])},et=[],st=l(X,tt,et,!1,null,null,null,null);const nt=st.exports;const it={mixins:[G],name:"TheAppHeader",components:{TheFloatingBar:nt},data:function(){return{showBar:!1}},computed:{route(){return this.$route.name},link(){return this.$getUrl("logo","header","https://www.monsterinsights.com/lite/")},logo:()=>new URL(""+new URL("../../img/logo-MonsterInsights.png",import.meta.url).href,self.location).href,logo2x:()=>new URL(""+new URL("../../img/logo-MonsterInsights@2x.png",import.meta.url).href,self.location).href+" 2x",headerClassNames(){return{"monsterinsights-header":!0,"monsterinsights-header-with-floating-bar":this.showBar}}},methods:{registerResponsiveNavigation(){const n=this.$el.querySelector(".monsterinsights-with-responsive-navigation");n.scrollWidth>n.clientWidth?n.classList.add("monsterinsights-with-responsive-navigation-with-scroll"):n.classList.remove("monsterinsights-with-responsive-navigation-with-scroll"),this.registerScrollArrows()},registerArrowsClick(n){const t=this.$el.querySelector(".monsterinsights-with-responsive-navigation"),e=t.getBoundingClientRect(),s=n.target.getAttribute("data-direction");if(!s)return;let i=s==="left"?t.children[1]:t.children[t.children.length-2];for(let o=1;o<t.children.length-1;o++){const c=t.children[o].getBoundingClientRect();if(s==="left"){if(c.right<e.left)continue;i=t.children[o-1];break}else{if(e.right>c.left)continue;i=t.children[o];break}}i.scrollIntoView({behavior:"smooth",block:"nearest"})},registerScrollArrows(){const n=this.$el.querySelector(".monsterinsights-with-responsive-navigation"),t=()=>{const e=n.scrollWidth-(n.scrollLeft+n.clientWidth);n.scrollLeft>30?n.classList.add("with-scroll-left"):n.classList.remove("with-scroll-left"),e>30?n.classList.add("with-scroll-right"):n.classList.remove("with-scroll-right")};t(),n.addEventListener("scroll",t)},hideFloatingBar(){this.showBar=!1;let n=new FormData;n.append("action","monsterinsights_hide_floatbar"),n.append("nonce",this.$mi.nonce),p.post(this.$mi.ajax,n)},getFloatingBarStatus(){const n=this;let t=new FormData;t.append("action","monsterinsights_get_floatbar"),t.append("nonce",this.$mi.nonce),p.post(this.$mi.ajax,t).then(function(e){n.showBar=e.data.show}).catch(function(){n.showBar=!1})}},mounted(){const n=this;setTimeout(function(){n.getFloatingBarStatus()},1500),this.with_responsive_nav&&(setTimeout(()=>{this.registerResponsiveNavigation(),this.registerScrollArrows(),this.$el.addEventListener("click",this.registerArrowsClick)},100),window.addEventListener("resize",this.registerResponsiveNavigation))},destroyed(){window.removeEventListener("resize",this.registerResponsiveNavigation)}};var at=function(){var t=this,e=t._self._c;return t.route!=="tools-prettylinks-flow"&&t.route!=="woocommerce-insights"?e("header",{class:t.headerClassNames},[e("the-floating-bar",{attrs:{showBar:t.showBar,hideBar:t.hideFloatingBar}}),e("div",{staticClass:"monsterinsights-container monsterinsights-header-container"},[e("div",{staticClass:"monsterinsights-logo-area"},[e("a",{attrs:{href:t.link,target:"_blank",rel:"noopener"}},[e("img",{attrs:{src:t.logo,srcset:t.logo2x}})])]),e("div",{staticClass:"monsterinsights-float-right"},[t._t("default")],2)])],1):t._e()},ot=[],rt=l(it,at,ot,!1,null,"8d5ffdc1",null,null);const ri=rt.exports,lt={data(){return{text_heading:a("User Journey Report","google-analytics-for-wordpress")}}};var ct=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-user-journey-navbar"},[e("h1",{domProps:{textContent:t._s(t.text_heading)}})])},dt=[],ut=l(lt,ct,dt,!1,null,null,null,null);const li=ut.exports,_t={name:"TheAppNavigation"};var pt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-navigation-bar"},[e("div",{staticClass:"monsterinsights-container"},[t._t("default")],2)])},ft=[],mt=l(_t,pt,ft,!1,null,null,null,null);const ci=mt.exports,ht={name:"TheAppNotices",components:{SlideDownUp:P},computed:{...m({notices:"$_app/notices"})},methods:{removeNotice(n){this.$store.dispatch("$_app/removeNotice",n)},getNoticeClass(n,t){return"monsterinsights-notice monsterinsights-notice-"+n+" monsterinsights-"+t},buttonClass(n){let t="monsterinsights-button";return n==="success"&&(t+=" monsterinsights-button-green"),n==="error"&&(t+=" monsterinsights-button-error"),t}}};var gt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-notices-area"},[e("div",{staticClass:"monsterinsights-container"},[e("slide-down-up",{attrs:{group:!0}},t._l(t.notices,function(s,i){return e("div",{key:i,class:t.getNoticeClass(s.type,s.id)},[e("div",{staticClass:"monsterinsights-notice-inner"},[s.dismissable?e("button",{staticClass:"dismiss-notice",on:{click:function(o){return t.removeNotice(i)}}},[e("i",{staticClass:"monstericon-times"})]):t._e(),e("div",{staticClass:"notice-content"},[e("div",{class:s.icon?"monsterinsights-flex":""},[s.icon?e("div",{class:"monsterinsights-notice-icon monsterinsights-"+s.id+"-icon"},[e("span",{domProps:{innerHTML:t._s(s.icon)}})]):t._e(),e("div",[s.title?e("h2",{staticClass:"notice-title",domProps:{innerHTML:t._s(s.title)}}):t._e(),e("span",{staticClass:"monsterinsights-notice-content",domProps:{innerHTML:t._s(s.content)}}),s.button&&s.button.enabled?e("div",{staticClass:"monsterinsights-notice-button"},[e("a",{class:t.buttonClass(s.type),attrs:{target:"_blank",href:s.button.link},domProps:{textContent:t._s(s.button.text)}})]):t._e()])])])])])}),0)],1)])},vt=[],bt=l(ht,gt,vt,!1,null,null,null,null);const di=bt.exports,Ct={name:"Notification",props:{notification:Object,dismissable:{type:Boolean,default:!0}},data(){return{text_dismiss:a("Dismiss","google-analytics-for-wordpress"),text_install_activated:a("Installed & Active","google-analytics-for-wordpress"),text_install_processing:a("Installing & Activating","google-analytics-for-wordpress"),installedAndActivated:!1,processing:!1}},computed:{...m({notifications:"$_notifications/notifications",addons:"$_addons/addons"}),userFeedbackInstalled(){return this.addons&&this.addons["userfeedback-lite"]&&this.addons["userfeedback-lite"].installed},userFeedbackActive(){return this.addons&&this.addons["userfeedback-lite"]&&this.addons["userfeedback-lite"].active},has_notifications(){return this.notifications&&this.notifications.length>0},icon(){const t={default:'<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="16" fill="#D3F8EA"/><path d="M21.8634 18.6429C21.8634 18.8571 21.7831 19.0268 21.6224 19.1518C21.5688 19.3482 21.542 19.6786 21.542 20.1429C21.542 20.6071 21.5688 20.9375 21.6224 21.1339C21.7831 21.2768 21.8634 21.4464 21.8634 21.6429V22.0714C21.8634 22.25 21.8009 22.4018 21.6759 22.5268C21.5509 22.6518 21.3992 22.7143 21.2206 22.7143H12.4349C11.7206 22.7143 11.1134 22.4643 10.6134 21.9643C10.1134 21.4643 9.86345 20.8571 9.86345 20.1429V11.5714C9.86345 10.8571 10.1134 10.25 10.6134 9.75C11.1134 9.25 11.7206 9 12.4349 9H21.2206C21.3992 9 21.5509 9.0625 21.6759 9.1875C21.8009 9.3125 21.8634 9.46429 21.8634 9.64286V18.6429ZM13.292 12.5893V13.125C13.292 13.2321 13.3456 13.2857 13.4527 13.2857H19.1313C19.2384 13.2857 19.292 13.2321 19.292 13.125V12.5893C19.292 12.4821 19.2384 12.4286 19.1313 12.4286H13.4527C13.3456 12.4286 13.292 12.4821 13.292 12.5893ZM13.292 14.3036V14.8393C13.292 14.9464 13.3456 15 13.4527 15H19.1313C19.2384 15 19.292 14.9464 19.292 14.8393V14.3036C19.292 14.1964 19.2384 14.1429 19.1313 14.1429H13.4527C13.3456 14.1429 13.292 14.1964 13.292 14.3036ZM20.0688 21C20.0152 20.4286 20.0152 19.8571 20.0688 19.2857H12.4349C12.2027 19.2857 11.9974 19.375 11.8188 19.5536C11.6581 19.7143 11.5777 19.9107 11.5777 20.1429C11.5777 20.375 11.6581 20.5804 11.8188 20.7589C11.9974 20.9196 12.2027 21 12.4349 21H20.0688Z" fill="#1EC185"/></svg>',star:'<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="16" fill="#D4E7F7"/><path d="M15.0867 9.48214C15.2474 9.16071 15.5063 9 15.8634 9C16.2206 9 16.4795 9.16071 16.6402 9.48214L18.3813 13.0179L22.292 13.6071C22.6492 13.6429 22.8813 13.8304 22.9884 14.1696C23.0956 14.5089 23.0242 14.8036 22.7742 15.0536L19.9349 17.8125L20.6045 21.7232C20.6581 22.0625 20.542 22.3304 20.2563 22.5268C19.9706 22.7411 19.6759 22.7679 19.3724 22.6071L15.8634 20.7857L12.3545 22.6071C12.0509 22.7857 11.7563 22.7679 11.4706 22.5536C11.1849 22.3393 11.0688 22.0625 11.1224 21.7232L11.792 17.8125L8.95274 15.0536C8.70274 14.8036 8.63131 14.5089 8.73845 14.1696C8.84559 13.8304 9.07774 13.6429 9.43488 13.6071L13.3456 13.0179L15.0867 9.48214Z" fill="#2679C1"/></svg>',warning:'<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="16" fill="#FAD1D1"/><path d="M17.3634 19.0714C17.792 19.4821 18.0063 19.9821 18.0063 20.5714C18.0063 21.1607 17.792 21.6607 17.3634 22.0714C16.9527 22.5 16.4527 22.7143 15.8634 22.7143C15.2742 22.7143 14.7652 22.5 14.3367 22.0714C13.9259 21.6607 13.7206 21.1607 13.7206 20.5714C13.7206 19.9821 13.9259 19.4821 14.3367 19.0714C14.7652 18.6429 15.2742 18.4286 15.8634 18.4286C16.4527 18.4286 16.9527 18.6429 17.3634 19.0714ZM13.9617 9.66964C13.9617 9.49107 14.0242 9.33929 14.1492 9.21429C14.2742 9.07143 14.4259 9 14.6045 9H17.1224C17.3009 9 17.4527 9.07143 17.5777 9.21429C17.7027 9.33929 17.7652 9.49107 17.7652 9.66964L17.3902 16.9554C17.3902 17.1339 17.3277 17.2857 17.2027 17.4107C17.0777 17.5179 16.9259 17.5714 16.7474 17.5714H14.9795C14.8009 17.5714 14.6492 17.5179 14.5242 17.4107C14.3992 17.2857 14.3367 17.1339 14.3367 16.9554L13.9617 9.66964Z" fill="#EB5757"/></svg>',lightning:'<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="16" fill="#E1DAF1"/><path d="M20.0331 13.2857C20.2831 13.2857 20.4706 13.3929 20.5956 13.6071C20.7206 13.8214 20.7206 14.0357 20.5956 14.25L15.8813 22.3929C15.7563 22.6071 15.5688 22.7143 15.3188 22.7143C15.1045 22.7143 14.9349 22.6339 14.8099 22.4732C14.6849 22.3125 14.6492 22.125 14.7027 21.9107L15.9349 16.7143H12.7474C12.6224 16.7143 12.5063 16.6786 12.3992 16.6071C12.292 16.5357 12.2117 16.4464 12.1581 16.3393C12.1045 16.2321 12.0867 16.1161 12.1045 15.9911L12.9617 9.5625C12.9795 9.45536 13.0152 9.35714 13.0688 9.26786C13.1402 9.17857 13.2206 9.11607 13.3099 9.08036C13.3992 9.02679 13.4974 9 13.6045 9H17.4617C17.6759 9 17.8456 9.08929 17.9706 9.26786C18.0956 9.42857 18.1313 9.60714 18.0777 9.80357L16.9527 13.2857H20.0331Z" fill="#6F4BBB"/></svg>',exception:'<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><circle opacity="0.1" cx="14" cy="14" r="14" fill="#C84B29" /><path d="M12.4422 19.6174H16.3814C16.3026 20.1192 16.0617 20.5748 15.7011 20.9033C15.3406 21.2319 14.8838 21.4121 14.4118 21.4121C13.9398 21.4121 13.483 21.2319 13.1224 20.9033C12.7619 20.5748 12.5209 20.1192 12.4422 19.6174ZM14.4118 7.41211C15.7362 7.41211 17.0064 7.97942 17.943 8.98925C18.8795 9.99907 19.4056 11.3687 19.4056 12.7968V15.6686L20.3498 17.9374C20.3927 18.0411 20.4109 18.1548 20.4028 18.2681C20.3946 18.3814 20.3603 18.4906 20.303 18.586C20.2457 18.6814 20.1673 18.7598 20.0747 18.8142C19.9822 18.8685 19.8785 18.8971 19.7732 18.8973H9.05306C8.94755 18.8973 8.84371 18.8688 8.75101 18.8144C8.65831 18.7601 8.5797 18.6816 8.52232 18.5861C8.46494 18.4906 8.43062 18.3812 8.42249 18.2678C8.41436 18.1543 8.43268 18.0405 8.47578 17.9366L9.41795 15.6679V12.7875L9.42128 12.608C9.46682 11.2136 10.0125 9.89271 10.9435 8.92362C11.8744 7.95453 13.1178 7.41217 14.4118 7.41211ZM21.7361 11.8972C21.8626 11.8972 21.9844 11.9491 22.0769 12.0422C22.1693 12.1353 22.2255 12.2628 22.2342 12.399C22.2428 12.5351 22.2032 12.6696 22.1233 12.7755C22.0435 12.8813 21.9293 12.9505 21.804 12.9691L21.7361 12.9741H20.4044C20.2779 12.9741 20.1561 12.9223 20.0636 12.8291C19.9712 12.736 19.9149 12.6085 19.9063 12.4724C19.8977 12.3362 19.9373 12.2017 20.0172 12.0958C20.097 11.99 20.2111 11.9208 20.3365 11.9022L20.4044 11.8972H21.7361ZM8.41918 11.8972C8.54571 11.8972 8.6675 11.9491 8.75995 12.0422C8.85241 12.1353 8.90862 12.2628 8.91725 12.399C8.92587 12.5351 8.88626 12.6696 8.80641 12.7755C8.72657 12.8813 8.61244 12.9505 8.4871 12.9691L8.41918 12.9741H7.08749C6.96096 12.9741 6.83917 12.9223 6.74671 12.8291C6.65426 12.736 6.59804 12.6085 6.58942 12.4724C6.58079 12.3362 6.62041 12.2017 6.70025 12.0958C6.7801 11.99 6.89423 11.9208 7.01957 11.9022L7.08749 11.8972H8.41918ZM21.4697 7.80483C21.5416 7.90803 21.5767 8.03561 21.5686 8.16435C21.5605 8.29309 21.5099 8.41443 21.4258 8.50628L21.3699 8.55869L20.0382 9.63562C19.9374 9.71755 19.8115 9.75527 19.686 9.74119C19.5604 9.72712 19.4445 9.66229 19.3614 9.55976C19.2784 9.45723 19.2345 9.3246 19.2385 9.18855C19.2425 9.05251 19.2941 8.92314 19.383 8.82649L19.4389 8.77407L20.7706 7.69714C20.8766 7.61145 21.0097 7.57466 21.1409 7.59486C21.272 7.61505 21.3903 7.69058 21.4697 7.80483ZM8.05296 7.69714L9.38465 8.77407C9.43712 8.8165 9.48132 8.86966 9.51473 8.9305C9.54814 8.99135 9.57011 9.0587 9.57939 9.1287C9.58866 9.1987 9.58506 9.26999 9.56878 9.33849C9.55251 9.40699 9.52388 9.47136 9.48453 9.52793C9.44518 9.5845 9.39589 9.63216 9.33946 9.66819C9.28303 9.70421 9.22057 9.72791 9.15565 9.73791C9.09073 9.74791 9.02461 9.74402 8.96109 9.72647C8.89756 9.70892 8.83786 9.67805 8.78539 9.63562L7.4537 8.55869C7.40124 8.51626 7.35704 8.46311 7.32363 8.40226C7.29021 8.34141 7.26824 8.27407 7.25897 8.20406C7.24969 8.13406 7.2533 8.06278 7.26957 7.99428C7.28585 7.92578 7.31448 7.8614 7.35383 7.80483C7.39317 7.74826 7.44247 7.7006 7.4989 7.66457C7.55533 7.62855 7.61779 7.60486 7.68271 7.59486C7.74763 7.58486 7.81374 7.58874 7.87727 7.60629C7.9408 7.62384 8.0005 7.65471 8.05296 7.69714Z" fill="#C84B29" /></svg>',"ai-insight":'<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_26_4726)"><circle cx="16" cy="16" r="16" fill="#D4E7F7"/><path fill-rule="evenodd" clip-rule="evenodd" d="M19.1968 8.80096C19.4039 7.8549 20.7517 7.84925 20.9678 8.79417L20.9768 8.83831L20.9972 8.92657C21.2462 9.98353 22.1017 10.7904 23.1722 10.9771C24.159 11.1491 24.159 12.566 23.1722 12.738C22.6458 12.8296 22.1582 13.0747 21.7706 13.4426C21.3831 13.8104 21.1128 14.2846 20.9938 14.8055L20.9667 14.9209C20.7517 15.8658 19.405 15.8602 19.1968 14.9141L19.1753 14.8145C19.061 14.2916 18.7935 13.8145 18.4069 13.4442C18.0203 13.0739 17.5322 12.8273 17.0048 12.7357C16.0202 12.5648 16.0202 11.1503 17.0048 10.9794C17.5303 10.8882 18.0169 10.643 18.4029 10.2749C18.7889 9.90685 19.0569 9.43245 19.173 8.91186L19.1888 8.83717L19.1968 8.80096ZM20.0195 16.856C19.4803 16.8455 18.9649 16.6317 18.5766 16.2574C18.4913 16.3137 18.4169 16.385 18.3571 16.4679C17.8478 17.1423 17.2515 17.8315 16.577 18.5048C16.0655 19.0163 15.5472 19.4814 15.0357 19.8968C14.5242 19.4814 14.0059 19.0163 13.4944 18.5048C13.0043 18.0157 12.5397 17.5016 12.1025 16.9647C12.5178 16.452 12.984 15.9349 13.4944 15.4234C14.1317 14.7839 14.8123 14.1891 15.5314 13.6433C15.6065 13.5895 15.6722 13.5237 15.726 13.4486C15.5109 13.2525 15.3385 13.0141 15.2198 12.7483C15.101 12.4825 15.0383 12.195 15.0357 11.9039C13.9256 11.1265 12.8279 10.5505 11.8479 10.2506C10.7864 9.92582 9.54156 9.83868 8.72564 10.6535C8.19716 11.1831 8.05344 11.9028 8.09418 12.5875C8.13492 13.2732 8.36464 14.0269 8.71206 14.7919C9.06646 15.5531 9.48957 16.2804 9.97611 16.9647C9.48968 17.6483 9.06658 18.3748 8.71206 19.1352C8.36464 19.9002 8.13492 20.6538 8.09418 21.3396C8.05344 22.0243 8.19603 22.744 8.72564 23.2736C9.25525 23.8021 9.97498 23.9458 10.6596 23.9051C11.3443 23.8632 12.0991 23.6346 12.8641 23.2872C13.5544 22.9737 14.2888 22.5459 15.0368 22.0231C15.7837 22.5459 16.517 22.9737 17.2085 23.2872C17.9723 23.6346 18.7271 23.8643 19.4129 23.9051C20.0976 23.9458 20.8162 23.8021 21.3458 23.2725C22.1617 22.4577 22.0745 21.2129 21.7498 20.1514C21.4397 19.1397 20.8365 18.0024 20.0195 16.856ZM11.3511 11.8734C12.0029 12.0726 12.7803 12.4505 13.6223 12.9982C12.703 13.7782 11.8492 14.632 11.0693 15.5512C10.7628 15.0846 10.4912 14.5959 10.2568 14.0891C9.95913 13.4328 9.81315 12.8896 9.78826 12.4856C9.76449 12.0793 9.86408 11.9164 9.92632 11.8541C10.0282 11.7523 10.4039 11.5848 11.3511 11.8734ZM10.2568 19.839C10.465 19.3807 10.7377 18.8885 11.0693 18.377C11.8496 19.2962 12.7038 20.1501 13.6234 20.93C13.1571 21.2368 12.6688 21.5087 12.1625 21.7436C11.5061 22.0412 10.9629 22.1872 10.5589 22.2121C10.1515 22.2359 9.98969 22.1363 9.92745 22.0741C9.86521 22.0118 9.76562 21.8477 9.78939 21.4426C9.81428 21.0386 9.95913 20.4954 10.2579 19.839H10.2568ZM17.9101 21.7436C17.4039 21.509 16.916 21.2371 16.4503 20.93C17.3687 20.1499 18.2218 19.2961 19.001 18.377C19.5476 19.22 19.9255 19.9975 20.1247 20.6493C20.4144 21.5954 20.2469 21.9722 20.1451 22.0741C20.0817 22.1363 19.9188 22.2359 19.5136 22.211C19.1085 22.1883 18.5664 22.0412 17.9101 21.7436ZM13.9041 16.9647C13.9041 16.6645 14.0233 16.3767 14.2355 16.1645C14.4477 15.9522 14.7356 15.833 15.0357 15.833C15.3358 15.833 15.6237 15.9522 15.8359 16.1645C16.0481 16.3767 16.1673 16.6645 16.1673 16.9647C16.1673 17.2648 16.0481 17.5526 15.8359 17.7649C15.6237 17.9771 15.3358 18.0963 15.0357 18.0963C14.7356 18.0963 14.4477 17.9771 14.2355 17.7649C14.0233 17.5526 13.9041 17.2648 13.9041 16.9647Z" fill="#489BE8"/></g><defs><clipPath id="clip0_26_4726"><rect width="32" height="32" fill="white"/></clipPath></defs></svg>'};return t[this.notification.icon]?t[this.notification.icon]:t.default},userFeedbackInstalledAndActivated(){return this.installedAndActivated||this.userFeedbackInstalled&&this.userFeedbackActive},loading(){return this.processing}},methods:{buttonClass(n){return"monsterinsights-button monsterinsights-button-"+n},dismiss(n){this.$store.commit("$_notifications/NOTIFICATION_DISMISSED",n),this.$store.dispatch("$_notifications/dismissNotification",n).then(()=>{let t=document.querySelector(".monsterinsights-menu-notification-indicator");t&&!this.has_notifications?t.style.display="none":t.innerText=this.notifications.length})},buttonAction(n,t){if(n==="cta_install_user_feedback"){if(this.userFeedbackInstalledAndActivated)return!1;this.processing=!0,this.installUserFeedback()&&this.activateUserFeedback()&&setTimeout(function(){this.processing=!1,this.installedAndActivated=!0,location.href=t},3e3)}return!0},triggerButtonText(n,t){if(n==="cta_install_user_feedback"){if(this.userFeedbackInstalledAndActivated)return this.text_install_activated;if(this.loading)return this.text_install_processing}return t},installUserFeedback:async()=>{try{const n=await v.installUserFeedback();if("success"in n&&n.success)return!0}catch{return!1}},activateUserFeedback:async()=>{try{const n=await v.activatelUserFeedback();if("success"in n&&n.success)return!0}catch{return!1}}}};var yt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-notificationsv3-single-notification"},[e("div",{staticClass:"monsterinsights-notificationsv3-notification-icon",domProps:{innerHTML:t._s(t.icon)}}),e("div",{staticClass:"monsterinsights-notificationsv3-notification-details"},[e("div",{staticClass:"monsterinsights-notificationsv3-notification-title"},[e("h5",{domProps:{innerHTML:t._s(t.notification.title)}}),t.notification.start?e("span",{domProps:{innerHTML:t._s(t.notification.start)}}):t._e()]),e("div",{staticClass:"monsterinsights-notificationsv3-notification-content"},[e("div",{domProps:{innerHTML:t._s(t.notification.content)}})]),e("div",{staticClass:"monsterinsights-notificationsv3-notification-actions"},[t._l(t.notification.btns,function(s,i){return e("a",{key:i,class:["monsterinsights-button",t.buttonClass(i)],attrs:{href:i.startsWith("cta_")?"#":s.url,target:s.is_external?"_blank":"_self"},domProps:{textContent:t._s(t.triggerButtonText(i,s.text))},on:{click:function(o){return t.buttonAction(i,s.url)}}})}),t.dismissable?e("span",{domProps:{innerHTML:t._s(t.text_dismiss)},on:{click:function(s){return t.dismiss(t.notification.id)}}}):t._e()],2)])])},wt=[],xt=l(Ct,yt,wt,!1,null,null,null,null);const $t=xt.exports,kt={name:"Notifications",components:{Notification:$t},data(){return{isShowSidebar:!1,isShowDismissed:!1,text_inbox:a("Inbox","google-analytics-for-wordpress"),text_back_to_inbox:a("Back to Inbox","google-analytics-for-wordpress"),text_view_dismissed:a("View Dismissed","google-analytics-for-wordpress"),text_notifications:a("Notifications","google-analytics-for-wordpress"),text_dismiss_all:a("Dismiss All","google-analytics-for-wordpress"),text_dismissed:a("Dismissed","google-analytics-for-wordpress"),text_no_notifications:a("No Notifications","google-analytics-for-wordpress")}},computed:{...m({notifications:"$_notifications/notifications",dismissed:"$_notifications/dismissed"}),activeNotificationsNumber(){return this.notifications.length},dismissedNotificationsNumber(){return this.dismissed.length}},created(){const n=window.location.search;if(typeof n<"u"){const e=new URLSearchParams(n).get("open");typeof e<"u"&&e==="monsterinsights_notification_sidebar"&&(this.isShowSidebar=!0)}},methods:{closeSidebar(){this.isShowSidebar=!1,this.isShowDismissed=!1},buttonClass(n){return"monsterinsights-button monsterinsights-button-"+n},dismiss(n){this.$store.commit("$_notifications/NOTIFICATION_DISMISSED",n),this.$store.dispatch("$_notifications/dismissNotification",n).then(()=>{let t=document.querySelector(".monsterinsights-menu-notification-indicator");t&&!this.notifications.length>0?t.style.display="none":t.innerText=this.notifications.length})}}};var At=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-notificationsv3-container"},[e("div",{staticClass:"monsterinsights-notificationsv3-inbox-button"},[e("button",{staticClass:"monsterinsights-button",on:{click:function(s){t.isShowSidebar=!0}}},[e("svg",{attrs:{width:"22",height:"14",viewBox:"0 0 22 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M21.6944 6.5625C21.8981 6.85417 22 7.18229 22 7.54687V12.25C22 12.7361 21.8218 13.1493 21.4653 13.4896C21.1088 13.8299 20.6759 14 20.1667 14H1.83333C1.32407 14 0.891204 13.8299 0.534722 13.4896C0.178241 13.1493 0 12.7361 0 12.25V7.54687C0 7.18229 0.101852 6.85417 0.305556 6.5625L4.35417 0.765625C4.45602 0.644097 4.58333 0.522569 4.73611 0.401042C4.91435 0.279514 5.10532 0.182292 5.30903 0.109375C5.51273 0.0364583 5.7037 0 5.88194 0H16.1181C16.3981 0 16.6782 0.0850694 16.9583 0.255208C17.2639 0.401042 17.4931 0.571181 17.6458 0.765625L21.6944 6.5625ZM6.1875 2.33333L2.94097 7H7.63889L8.86111 9.33333H13.1389L14.3611 7H19.059L15.8125 2.33333H6.1875Z",fill:"#2679C1"}})])]),e("span",{class:["monsterinsights-notificationsv3-inbox-number",t.activeNotificationsNumber>9?"number-greater-than-10":"number-less-than-10"],domProps:{textContent:t._s(t.activeNotificationsNumber)},on:{click:function(s){t.isShowSidebar=!0}}})]),t.isShowSidebar?e("div",{class:["monsterinsights-notificationsv3-sidebar",t.isShowSidebar?"monsterinsights-notificationsv3-sidebar-in":"monsterinsights-notificationsv3-sidebar-out"]},[e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-top"},[e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-top-title"},[e("svg",{attrs:{width:"24",height:"15",viewBox:"0 0 24 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M23.6667 7.03125C23.8889 7.34375 24 7.69531 24 8.08594V13.125C24 13.6458 23.8056 14.0885 23.4167 14.4531C23.0278 14.8177 22.5556 15 22 15H2C1.44444 15 0.972222 14.8177 0.583333 14.4531C0.194444 14.0885 0 13.6458 0 13.125V8.08594C0 7.69531 0.111111 7.34375 0.333333 7.03125L4.75 0.820312C4.86111 0.690104 5 0.559896 5.16667 0.429688C5.36111 0.299479 5.56944 0.195312 5.79167 0.117188C6.01389 0.0390625 6.22222 0 6.41667 0H17.5833C17.8889 0 18.1944 0.0911458 18.5 0.273438C18.8333 0.429688 19.0833 0.611979 19.25 0.820312L23.6667 7.03125ZM6.75 2.5L3.20833 7.5H8.33333L9.66667 10H14.3333L15.6667 7.5H20.7917L17.25 2.5H6.75Z",fill:"white"}})]),t.isShowDismissed?t._e():e("h3",{domProps:{textContent:t._s(t.text_inbox)}}),t.isShowDismissed?e("h3",{domProps:{textContent:t._s(t.text_dismissed)}}):t._e()]),e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-top-actions"},[t.isShowDismissed?t._e():e("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.text_view_dismissed)},on:{click:function(s){t.isShowDismissed=!0}}}),t.isShowDismissed?e("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.text_back_to_inbox)},on:{click:function(s){t.isShowDismissed=!1}}}):t._e(),e("button",{staticClass:"monsterinsights-button monsterinsights-notificationsv3-sidebar-close",on:{click:t.closeSidebar}},[e("svg",{attrs:{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M8.28409 6L11.6932 9.40909C11.8977 9.61364 12 9.86364 12 10.1591C12 10.4545 11.8977 10.7159 11.6932 10.9432L10.9432 11.6932C10.7159 11.8977 10.4545 12 10.1591 12C9.86364 12 9.61364 11.8977 9.40909 11.6932L6 8.28409L2.59091 11.6932C2.38636 11.8977 2.13636 12 1.84091 12C1.54545 12 1.28409 11.8977 1.05682 11.6932L0.306818 10.9432C0.102273 10.7159 0 10.4545 0 10.1591C0 9.86364 0.102273 9.61364 0.306818 9.40909L3.71591 6L0.306818 2.59091C0.102273 2.38636 0 2.13636 0 1.84091C0 1.54545 0.102273 1.28409 0.306818 1.05682L1.05682 0.306818C1.28409 0.102273 1.54545 0 1.84091 0C2.13636 0 2.38636 0.102273 2.59091 0.306818L6 3.71591L9.40909 0.306818C9.61364 0.102273 9.86364 0 10.1591 0C10.4545 0 10.7159 0.102273 10.9432 0.306818L11.6932 1.05682C11.8977 1.28409 12 1.54545 12 1.84091C12 2.13636 11.8977 2.38636 11.6932 2.59091L8.28409 6Z",fill:"white"}})])])])]),e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-bottom"},[e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-bottom-notifications-count"},[t.isShowDismissed?t._e():e("span",{staticClass:"monsterinsights-notificationsv3-inbox-number",domProps:{textContent:t._s(t.activeNotificationsNumber)}}),t.isShowDismissed?e("span",{staticClass:"monsterinsights-notificationsv3-dismissed-number",domProps:{textContent:t._s(t.dismissedNotificationsNumber)}}):t._e(),e("h4",{domProps:{textContent:t._s(t.text_notifications)}})]),!t.isShowDismissed&&t.activeNotificationsNumber>0?e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-bottom-actions"},[e("span",{domProps:{textContent:t._s(t.text_dismiss_all)},on:{click:function(s){return t.dismiss("all")}}})]):t._e()]),t.isShowDismissed?t._e():e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-notifications monsterinsights-notificationsv3-notifications-active"},[t.activeNotificationsNumber<1?e("div",{staticClass:"monsterinsights-notificationsv3-no-notifications"},[e("svg",{attrs:{width:"91",height:"74",viewBox:"0 0 91 74",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M89.2969 65.4062C90.4219 66.3438 90.5625 67.4219 89.7188 68.6406L86.9062 72.1562C85.9688 73.2812 84.9375 73.4219 83.8125 72.5781L0.984375 8.59375C-0.140625 7.65625 -0.28125 6.57813 0.5625 5.35938L3.375 1.84375C4.3125 0.71875 5.34375 0.578125 6.46875 1.42188L26.8594 17.1719C30.3281 12.5781 34.9219 9.67188 40.6406 8.45312V5.5C40.6406 4.28125 41.0625 3.25 41.9062 2.40625C42.8438 1.46875 43.9219 1 45.1406 1C46.3594 1 47.3906 1.46875 48.2344 2.40625C49.1719 3.25 49.6406 4.28125 49.6406 5.5V8.45312C54.8906 9.48437 59.2031 12.0156 62.5781 16.0469C65.9531 20.0781 67.6406 24.8125 67.6406 30.25C67.6406 34.375 68.1094 38.0312 69.0469 41.2188C69.9844 44.3125 70.8281 46.4219 71.5781 47.5469C72.4219 48.6719 73.5469 49.9375 74.9531 51.3438C75.1406 51.625 75.2812 51.8125 75.375 51.9062C76.2188 52.8438 76.6406 53.875 76.6406 55C76.6406 55.0938 76.5938 55.2344 76.5 55.4219C76.5 55.5156 76.5 55.5625 76.5 55.5625L89.2969 65.4062ZM22.2188 36.4375L52.1719 59.5H18.1406C17.2969 59.5 16.5 59.3125 15.75 58.9375C15.0938 58.4688 14.5781 57.9062 14.2031 57.25C13.8281 56.5 13.6406 55.75 13.6406 55C13.6406 53.875 14.0625 52.8438 14.9062 51.9062C16.2188 50.5 17.1562 49.4688 17.7188 48.8125C18.2812 48.1562 19.0781 46.6562 20.1094 44.3125C21.1406 41.9688 21.8438 39.3438 22.2188 36.4375ZM45.1406 73C42.7031 73 40.5938 72.1094 38.8125 70.3281C37.0312 68.6406 36.1406 66.5312 36.1406 64H54.1406C54.1406 65.5938 53.7188 67.0938 52.875 68.5C52.125 69.9062 51.0469 70.9844 49.6406 71.7344C48.2344 72.5781 46.7344 73 45.1406 73Z",fill:"#E2E4E9"}})]),e("h4",{domProps:{textContent:t._s(t.text_no_notifications)}})]):t._e(),t._l(t.notifications,function(s,i){return e("notification",{key:i,attrs:{notification:s}})})],2),t.isShowDismissed?e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-notifications monsterinsights-notificationsv3-notifications-dismissed"},[t.dismissedNotificationsNumber<1?e("div",{staticClass:"monsterinsights-notificationsv3-no-notifications"},[e("svg",{attrs:{width:"91",height:"74",viewBox:"0 0 91 74",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M89.2969 65.4062C90.4219 66.3438 90.5625 67.4219 89.7188 68.6406L86.9062 72.1562C85.9688 73.2812 84.9375 73.4219 83.8125 72.5781L0.984375 8.59375C-0.140625 7.65625 -0.28125 6.57813 0.5625 5.35938L3.375 1.84375C4.3125 0.71875 5.34375 0.578125 6.46875 1.42188L26.8594 17.1719C30.3281 12.5781 34.9219 9.67188 40.6406 8.45312V5.5C40.6406 4.28125 41.0625 3.25 41.9062 2.40625C42.8438 1.46875 43.9219 1 45.1406 1C46.3594 1 47.3906 1.46875 48.2344 2.40625C49.1719 3.25 49.6406 4.28125 49.6406 5.5V8.45312C54.8906 9.48437 59.2031 12.0156 62.5781 16.0469C65.9531 20.0781 67.6406 24.8125 67.6406 30.25C67.6406 34.375 68.1094 38.0312 69.0469 41.2188C69.9844 44.3125 70.8281 46.4219 71.5781 47.5469C72.4219 48.6719 73.5469 49.9375 74.9531 51.3438C75.1406 51.625 75.2812 51.8125 75.375 51.9062C76.2188 52.8438 76.6406 53.875 76.6406 55C76.6406 55.0938 76.5938 55.2344 76.5 55.4219C76.5 55.5156 76.5 55.5625 76.5 55.5625L89.2969 65.4062ZM22.2188 36.4375L52.1719 59.5H18.1406C17.2969 59.5 16.5 59.3125 15.75 58.9375C15.0938 58.4688 14.5781 57.9062 14.2031 57.25C13.8281 56.5 13.6406 55.75 13.6406 55C13.6406 53.875 14.0625 52.8438 14.9062 51.9062C16.2188 50.5 17.1562 49.4688 17.7188 48.8125C18.2812 48.1562 19.0781 46.6562 20.1094 44.3125C21.1406 41.9688 21.8438 39.3438 22.2188 36.4375ZM45.1406 73C42.7031 73 40.5938 72.1094 38.8125 70.3281C37.0312 68.6406 36.1406 66.5312 36.1406 64H54.1406C54.1406 65.5938 53.7188 67.0938 52.875 68.5C52.125 69.9062 51.0469 70.9844 49.6406 71.7344C48.2344 72.5781 46.7344 73 45.1406 73Z",fill:"#E2E4E9"}})]),e("h4",{domProps:{textContent:t._s(t.text_no_notifications)}})]):t._e(),t._l(t.dismissed,function(s,i){return e("notification",{key:i,attrs:{notification:s,dismissable:!1}})})],2):t._e()]):t._e()])},St=[],Pt=l(kt,At,St,!1,null,null,null,null);const ui=Pt.exports;const Tt={name:"TheQuickLinks",data(){return{showMenu:!1,text_see_quick:a("See Quick Links","google-analytics-for-wordpress")}},computed:{...m({license:"$_license/license",license_network:"$_license/license_network"}),boxClass(){let n="monsterinsights-quick-links";return this.showMenu&&(n+=" monsterinsights-quick-links-open"),n},licenseLevel(){return this.$mi.network?this.license_network.type:this.license.type},showUpsell(){return this.licenseLevel==="plus"||this.licenseLevel==="basic"||this.licenseLevel===""},menuItems(){let n=[{icon:"monstericon-lightbulb",tooltip:a("Suggest a Feature","google-analytics-for-wordpress"),link:this.$getUrl("quick-links","suggest-feature","https://www.monsterinsights.com/customer-feedback/"),key:"suggest"},{icon:"monstericon-wpbeginner",tooltip:a("Join Our Community","google-analytics-for-wordpress"),link:"https://www.facebook.com/groups/wpbeginner/",key:"community"},{icon:"monstericon-life-ring",tooltip:a("Support & Docs","google-analytics-for-wordpress"),link:this.$getUrl("quick-links","support","https://www.monsterinsights.com/docs/"),key:"support"}];return this.showUpsell&&n.push({icon:"monstericon-star",tooltip:a("Upgrade to Pro »","google-analytics-for-wordpress"),link:this.$getUpgradeUrl("quick-links","upgrade"),key:"upgrade"}),n}},methods:{enter:function(n,t){const e=n.dataset.index*50;setTimeout(function(){n.classList.add("monsterinsights-show"),t()},e)},leave:function(n,t){n.classList.remove("monsterinsights-show"),setTimeout(function(){t()},200)},linksClass(n){return"monsterinsights-quick-links-menu-item monsterinsights-quick-links-item-"+n}}};var Ot=function(){var t=this,e=t._self._c;return e("div",{class:t.boxClass},[e("button",{staticClass:"monsterinsights-quick-links-label",on:{click:function(s){s.stopPropagation(),t.showMenu=!t.showMenu}}},[e("span",{staticClass:"monsterinsights-bg-img monsterinsights-quick-links-mascot"}),e("span",{staticClass:"monsterinsights-quick-link-title",domProps:{textContent:t._s(t.text_see_quick)}})]),e("transition-group",{staticClass:"monsterinsights-quick-links-menu",attrs:{tag:"div",name:"monsterinsights-staggered-fade"},on:{enter:t.enter,leave:t.leave}},[t.showMenu?t._l(t.menuItems,function(s,i){return e("a",{key:s.key,class:t.linksClass(s.key),attrs:{href:s.link,"data-index":i,target:"_blank"}},[e("span",{class:s.icon}),e("span",{staticClass:"monsterinsights-quick-link-title",domProps:{innerHTML:t._s(s.tooltip)}})])}):t._e()],2)],1)},Nt=[],Dt=l(Tt,Ot,Nt,!1,null,null,null,null);const _i=Dt.exports;const Lt={name:"PageNavigator",props:{currentPage:{type:Number,required:!0},totalPages:{type:Number,required:!0}},computed:{canGoBack(){return this.currentPage>1},canGoNext(){return this.currentPage<this.totalPages},texts(){return{previous:a("Previous",this.$_textDomain),next:a("Next",this.$_textDomain)}}},methods:{goToPrev(){this.$emit("prev")},goToNext(){this.$emit("next")}}};var Bt=function(){var t=this,e=t._self._c;return e("nav",{staticClass:"page-navigator"},[e("div",{staticClass:"page-navigator__desc"},[t._t("desc")],2),e("div",{staticClass:"page-navigator__widget"},[e("button",{staticClass:"button page-navigator__button",attrs:{role:"button",disabled:!t.canGoBack},on:{click:t.goToPrev}},[t._t("prev-button",function(){return[e("span",[t._v(t._s(t.texts.previous))])]})],2),e("span",{staticClass:"page-navigator__current"},[t._v(t._s(t.currentPage))]),e("button",{staticClass:"button page-navigator__button",attrs:{role:"button",disabled:!t.canGoNext},on:{click:t.goToNext}},[t._t("next-button",function(){return[e("span",[t._v(t._s(t.texts.next))])]})],2)])])},Ft=[],Vt=l(Lt,Bt,Ft,!1,null,null,null,null);const jt=Vt.exports,Mt=Object.freeze(Object.defineProperty({__proto__:null,default:jt},Symbol.toStringTag,{value:"Module"})),It={name:"ScreenHeader"};var Rt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"screen-header"},[e("div",{staticClass:"screen-header__start"},[t._t("header-start")],2),e("div",{staticClass:"screen-header__end"},[t._t("header-end")],2),e("div",{staticClass:"screen-header__bottom"},[t._t("header-bottom")],2)])},Et=[],Ht=l(It,Rt,Et,!1,null,null,null,null);const qt=Ht.exports,zt=Object.freeze(Object.defineProperty({__proto__:null,default:qt},Symbol.toStringTag,{value:"Module"})),Ut={name:"ComparisonTable",props:{columns:{type:Array,required:!0},rows:{type:Array,required:!0}}};var Zt=function(){var t=this,e=t._self._c;return e("section",{staticClass:"comparison-table"},[e("header",{staticClass:"comparison-table__header"},[e("div",{staticClass:"content"},[t._t("header")],2)]),e("section",{staticClass:"comparison-table__table"},[e("table",[e("thead",[e("tr",t._l(t.columns,function(s){return e("th",{key:s.key,attrs:{scope:"col"},domProps:{innerHTML:t._s(s.label)}})}),0)]),e("tbody",t._l(t.rows,function(s,i){return e("tr",{key:i},[t._t("rows",null,{row:s})],2)}),0)])]),e("footer",{staticClass:"comparison-table__footer"},[e("div",{staticClass:"content"},[t._t("footer")],2)])])},Yt=[],Kt=l(Ut,Zt,Yt,!1,null,null,null,null);const Wt=Kt.exports,Qt=Object.freeze(Object.defineProperty({__proto__:null,default:Wt},Symbol.toStringTag,{value:"Module"})),Jt={name:"ButtonDropdown",props:{buttonClass:{type:[String]},choices:{type:Array,required:!0,validator(n){return n.every(t=>t.hasOwnProperty("text")&&t.hasOwnProperty("handle"))}},selectedChoice:{type:Object,default:()=>({id:null,name:"",background_color:null,text_color:null})}},data(){return{isOpen:!1,selected:null}},methods:{toggle(){this.isOpen=!this.isOpen},open(){this.isOpen=!0},close(){this.isOpen=!1},onChoiceClick(n){this.isOpen=!1,n.handle(n),this.selected=n},getButtonStyles(n){let t={};return n.background_color&&(t.backgroundColor=n.background_color),n.text_color&&(t.color=n.text_color),t}},computed:{getSelectedStyles(){let n={};return this.selected&&this.selected.background_color&&(n.backgroundColor=this.selected.background_color),this.selected&&this.selected.text_color&&(n.color=this.selected.text_color),n}},mounted(){this.selectedChoice&&(this.selected=this.selectedChoice)}};var Gt=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.close,expression:"close"}],staticClass:"button-dropdown"},[e("button",{class:"button "+t.buttonClass+(!t.selected||!t.selected.id?" default":""),style:t.getSelectedStyles,attrs:{type:"button"},on:{keydown:function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"esc",27,s.key,["Esc","Escape"])?null:t.close.apply(null,arguments)},click:t.toggle}},[t._t("button")],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],staticClass:"button-dropdown__list"},t._l(t.choices,function(s,i){return e("button",{key:i,class:"button button-dropdown__item"+(t.selected&&t.selected.id===s.id?" selected":""),attrs:{type:"button",disabled:s.disabled},on:{click:function(o){return t.onChoiceClick(s)}}},[t._t("item-content",function(){return[e("span",{style:t.getButtonStyles(s)},[t._v(t._s(s.text))])]},{item:s})],2)}),0)])},Xt=[],te=l(Jt,Gt,Xt,!1,null,null,null,null);const ee=te.exports,se=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"})),g={props:{disabled:{type:Boolean,default:!1},inputValue:{type:[String,Number]},value:{type:[Boolean,Array,String,Number],default:!1},faux:{type:Boolean,default:!1}},computed:{innerValue:{get(){return this.faux?this.inputValue!==void 0?this.inputValue:!0:this.value},set(n){this.faux||this.$emit("input",n)}},fieldId(){return this.$attrs.id?this.$attrs.id:`field-toggle-${this._uid}`},fieldBindings(){return{...this.$attrs,id:this.fieldId}}}},ne={inheritAttrs:!1,name:"Checkbox",mixins:[g]};var ie=function(){var t=this,e=t._self._c;return e("label",{staticClass:"checkbox",class:{"is-disabled":t.disabled},attrs:{for:t.fieldId}},[e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{type:"checkbox",disabled:t.disabled},domProps:{value:t.inputValue,checked:Array.isArray(t.innerValue)?t._i(t.innerValue,t.inputValue)>-1:t.innerValue},on:{change:function(s){var i=t.innerValue,o=s.target,c=!!o.checked;if(Array.isArray(i)){var d=t.inputValue,u=t._i(i,d);o.checked?u<0&&(t.innerValue=i.concat([d])):u>-1&&(t.innerValue=i.slice(0,u).concat(i.slice(u+1)))}else t.innerValue=c}}},"input",t.fieldBindings,!1)),e("span",{staticClass:"checkbox__skin"},[e("svg",{attrs:{width:"11",height:"8",viewBox:"0 0 11 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M3.9627 7.84921L0.831445 4.72042C0.743945 4.63246 0.700195 4.51937 0.700195 4.38115C0.700195 4.24293 0.743945 4.12984 0.831445 4.04188L1.5252 3.36335C1.6127 3.26283 1.71895 3.21256 1.84395 3.21256C1.98145 3.21256 2.1002 3.26283 2.2002 3.36335L4.3002 5.47434L8.8002 0.950785C8.9002 0.850261 9.0127 0.799999 9.1377 0.799999C9.2752 0.799999 9.3877 0.850261 9.4752 0.950785L10.1689 1.62932C10.2564 1.71728 10.3002 1.83037 10.3002 1.96859C10.3002 2.10681 10.2564 2.21989 10.1689 2.30785L4.6377 7.84921C4.5502 7.94974 4.4377 8 4.3002 8C4.1627 8 4.0502 7.94974 3.9627 7.84921Z",fill:"currentColor"}})])]),e("span",[t._t("default"),t._t("after-label")],2)])},ae=[],oe=l(ne,ie,ae,!1,null,null,null,null);const re=oe.exports,le=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"})),ce={inheritAttrs:!1,name:"ColorPicker",props:{value:{type:String}},computed:{skinStyles(){return{backgroundColor:this.value}},innerValue:{get(){return this.value},set(n){this.$emit("input",n)}}}};var de=function(){var t=this,e=t._self._c;return e("label",{staticClass:"color-picker"},[e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{type:"color"},domProps:{value:t.innerValue},on:{input:function(s){s.target.composing||(t.innerValue=s.target.value)}}},"input",t.$attrs,!1)),e("span",{staticClass:"color-picker__skin",style:t.skinStyles}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],staticClass:"color-picker__desc",attrs:{type:"text",autocomplete:"false",spellcheck:"false",disabled:t.$attrs.disabled},domProps:{value:t.innerValue},on:{input:function(s){s.target.composing||(t.innerValue=s.target.value)}}})])},ue=[],_e=l(ce,de,ue,!1,null,null,null,null);const pe=_e.exports,fe=Object.freeze(Object.defineProperty({__proto__:null,default:pe},Symbol.toStringTag,{value:"Module"}));const me={inheritAttrs:!1,name:"ColorPickerPredefined",props:{value:{type:String},predefined:{type:Array,default:()=>["#E9AF00","#FF893A","#F072B2","#8D87E5","#1EC185","#26A69A","#754FF6","#1230DF","#8BB1FA","#5195D8","#497FB2","#55B9D1","#E432E3","#D32D1F","#8D0F03","#A8803D","#A8AFB6","#697683"]}},data(){return{isOpen:!1}},computed:{innerValue:{get(){return this.value},set(n){this.$emit("input",n)}}},methods:{chooseColor(n){this.innerValue=n,this.isOpen=!1},itemClass(n){return this.innerValue===n?"selected":""},toggleList(){this.isOpen=!this.isOpen},showList(){this.isOpen=!0},hideList(){this.isOpen=!1}}};var he=function(){var t=this,e=t._self._c;return e("div",{staticClass:"color-picker-predefined"},[e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{type:"hidden"},domProps:{value:t.innerValue},on:{input:function(s){s.target.composing||(t.innerValue=s.target.value)}}},"input",t.$attrs,!1)),e("a",{class:"color-picker-predefined-"+(t.isOpen?"hide":"show"),attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.toggleList.apply(null,arguments)}}}),e("div",{staticClass:"color-picker-predefined__list main-list"},t._l(t.predefined.slice(0,6),function(s,i){return e("a",{key:i,class:t.itemClass(s),style:{backgroundColor:s},attrs:{href:"#"},on:{click:function(o){return o.preventDefault(),t.chooseColor(s)}}})}),0),t.isOpen?e("div",{staticClass:"color-picker-predefined__list additional-list"},t._l(t.predefined.slice(6,18),function(s,i){return e("a",{key:i,class:t.itemClass(s),style:{backgroundColor:s},attrs:{href:"#"},on:{click:function(o){return o.preventDefault(),t.chooseColor(s)}}})}),0):t._e()])},ge=[],ve=l(me,he,ge,!1,null,null,null,null);const be=ve.exports,Ce=Object.freeze(Object.defineProperty({__proto__:null,default:be},Symbol.toStringTag,{value:"Module"})),ye={inheritAttrs:!1,name:"EditableText",data(){return{originalValue:"",isEditing:!1}},props:{value:{type:String},tag:{type:String,default:"p"},elementClass:{type:[String,Array,Object]},editButtonClass:{type:[String,Array,Object],default(){return["button",`${this.$_classPrefix}-button`]}},saveButtonClass:{type:[String,Array,Object],default(){return["button",`${this.$_classPrefix}-button`]}}},computed:{texts(){return{edit:a("Edit",this.$_textDomain),save:a("Save",this.$_textDomain)}}},methods:{focusElement(){const{element:n}=this.$refs;n.focus();const t=document.createRange();t.selectNodeContents(n),t.collapse(!1);const e=window.getSelection();e.removeAllRanges(),e.addRange(t)},enableEdit(){this.isEditing=!0,this.$nextTick(()=>{this.focusElement()})},cancelEdit(){this.isEditing=!1,this.$refs.element.innerText=this.originalValue},saveEdit(){this.isEditing=!1;const n=this.$refs.element.innerText;n.length>0?(this.originalValue=n,this.$emit("input",n)):this.$refs.element.innerText=this.originalValue}},mounted(){this.originalValue=this.$refs.element.innerText}};var we=function(){var t=this,e=t._self._c;return e("div",{staticClass:"editable-text",class:{"is-editing":t.isEditing}},[e(t.tag,{ref:"element",tag:"component",staticClass:"editable-text__content",class:t.elementClass,attrs:{contenteditable:t.isEditing},on:{keydown:[function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"enter",13,s.key,"Enter")?null:(s.preventDefault(),t.saveEdit.apply(null,arguments))},function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"esc",27,s.key,["Esc","Escape"])?null:(s.preventDefault(),t.cancelEdit.apply(null,arguments))}]}},[t._v(" "+t._s(t.value)+" ")]),t.isEditing?t._e():e("button",{staticClass:"editable-text__button",class:t.editButtonClass,on:{click:t.enableEdit}},[t._t("edit-button",function(){return[t._v(" "+t._s(t.texts.edit)+" ")]})],2),t.isEditing?e("button",{staticClass:"editable-text__button",class:t.saveButtonClass,on:{click:t.saveEdit}},[t._t("save-button",function(){return[t._v(" "+t._s(t.texts.save)+" ")]})],2):t._e()],1)},xe=[],$e=l(ye,we,xe,!1,null,null,null,null);const ke=$e.exports,Ae=Object.freeze(Object.defineProperty({__proto__:null,default:ke},Symbol.toStringTag,{value:"Module"}));const Se={name:"ImageUploader",props:{value:{type:Object,default:()=>({})},uploaderSettings:{type:Object,default:()=>({})}},data(){return{}},computed:{texts(){return{uploadImage:a("Select Media",this.$textDomain),chooseAnother:a("Change Media",this.$_textDomain)}},hasValue(){return this.value&&Object.keys(this.value).length!==0},uploadedBtnText(){return!Object.values(this.value)[0]||!Object.values(this.value)[0].name?this.texts.chooseAnother:Object.values(this.value)[0].name.slice(0,13)}},methods:{reset(){this.$emit("input",[])},uploadImage(){const n={uploaderTitle:a("Select or upload image",this.$_textDomain),uploaderButton:a("Set Image",this.$_textDomain),multiple:!1,...this.uploaderSettings},t=wp.media({title:n.uploaderTitle,button:{text:n.uploaderButton},multiple:n.multiple}).on("select",()=>{const e=t.state().get("selection");let s={};e.forEach(i=>{s[i.id]={url:i.changed.url,name:i.changed.filename}}),this.$emit("input",s)}).open()}}};var Pe=function(){var t=this,e=t._self._c;return e("div",[t.hasValue?t._e():e("div",{staticClass:"inline-fields"},[e("div",{staticClass:"field"},[e("a",{staticClass:"monsterinsights-upload-button",attrs:{href:"#"},domProps:{textContent:t._s(t.texts.uploadImage)},on:{click:function(s){return s.preventDefault(),t.uploadImage.apply(null,arguments)}}})])]),t._t("before-preview"),t.hasValue?e("div",{staticClass:"inline-fields"},[e("div",{staticClass:"field"},[e("a",{staticClass:"monsterinsights-upload-button",attrs:{href:"#"},domProps:{textContent:t._s(t.uploadedBtnText)},on:{click:function(s){return s.preventDefault(),t.uploadImage.apply(null,arguments)}}})])]):t._e()],2)},Te=[],Oe=l(Se,Pe,Te,!1,null,null,null,null);const Ne=Oe.exports,De=Object.freeze(Object.defineProperty({__proto__:null,default:Ne},Symbol.toStringTag,{value:"Module"})),Le={name:"InputSelect",components:{Multiselect:A},props:{options:{type:Array,required:!0},forced:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},value:{type:[Object,Array,String]}},computed:{innerValue:{get(){return this.value},set(n){const t=[...n];for(const e of this.forced)t.findIndex(s=>s.value===e.value)===-1&&t.unshift(e);this.$emit("input",t)}}},methods:{isForced(n){return this.forced.findIndex(t=>t.value===n)>-1},tagClass(n){const t=["multiselect__tag"];return this.isForced(n)&&t.push("is-forced"),t}}};var Be=function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-select field"},[e("div",{staticClass:"input-select__label"},[t._t("label")],2),e("div",{staticClass:"input-select__field"},[e("multiselect",{attrs:{options:t.options,multiple:t.multiple,"track-by":"value",label:"label",searchable:!1,selectLabel:"",selectedLabel:"",deselectLabel:"",disabled:t.disabled},scopedSlots:t._u([{key:"selection",fn:function({remove:s,values:i}){return[e("div",{staticClass:"multiselect__tags-wrap"},t._l(i,function(o,c){return e("span",{key:c,class:t.tagClass(o.value),on:{mousedown:function(d){d.preventDefault()}}},[e("span",{domProps:{textContent:t._s(o.label)}}),e("i",{staticClass:"multiselect__tag-icon",attrs:{"aria-hidden":"true",tabindex:"0",role:"button"},on:{keypress:function(d){return!d.type.indexOf("key")&&t._k(d.keyCode,"enter",13,d.key,"Enter")?null:(d.preventDefault(),s(o))},mousedown:function(d){return d.preventDefault(),s(o)}}})])}),0)]}}]),model:{value:t.innerValue,callback:function(s){t.innerValue=s},expression:"innerValue"}})],1)])},Fe=[],Ve=l(Le,Be,Fe,!1,null,null,null,null);const je=Ve.exports,Me=Object.freeze(Object.defineProperty({__proto__:null,default:je},Symbol.toStringTag,{value:"Module"})),Ie={name:"OptionsCreator",props:{fieldsPlaceholder:{type:String},name:{type:String,required:!0},value:{type:Array},minOptions:{type:Number,default:2},maxOptions:{type:Number,default:-1}},computed:{canAddMore(){return this.maxOptions===-1||this.value&&this.value.length<this.maxOptions},canRemove(){return this.value.length>this.minOptions},texts(){return{possibleAnswers:a("Possible Answers",this.$_textDomain),addAnswer:a("Add Answer",this.$_textDomain),remove:a("Remove",this.$_textDomain)}}},methods:{addAnswer(){if(!this.canAddMore)return;const n=this.value;n.push(""),this.$emit("input",n)},removeAnswerByIndex(n){if(!this.canRemove)return;const t=this.value;t.splice(n,1),this.$emit("input",t)},updateAnswerByIndex(n,t){const e=this.value;e[n]=t.trim(),this.$emit("input",e)}},mounted(){if(!this.value||!this.value.length){const n=Array(this.minOptions).fill("",0);this.$emit("input",n)}}};var Re=function(){var t=this,e=t._self._c;return e("div",{staticClass:"options-creator"},[e("div",{staticClass:"field"},[e("label",[t._t("label",function(){return[t._v(t._s(t.texts.possibleAnswers))]})],2)]),t._l(t.value,function(s,i){return e("div",{key:i,staticClass:"field"},[e("input",{attrs:{type:"text",placeholder:t.fieldsPlaceholder},domProps:{value:s},on:{input:o=>{t.updateAnswerByIndex(i,o.target.value)}}}),i>=t.minOptions?e("button",{staticClass:"options-creator__remove",on:{click:function(o){return t.removeAnswerByIndex(i)}}},[t._t("button-remove",function(){return[t._v(" "+t._s(t.texts.remove)+" ")]})],2):t._e()])}),t.canAddMore?e("div",{staticClass:"field"},[e("button",{staticClass:"options-creator__add",attrs:{type:"button"},on:{click:t.addAnswer}},[t._t("button-add",function(){return[t._v(" "+t._s(t.texts.addAnswer)+" ")]})],2)]):t._e()],2)},Ee=[],He=l(Ie,Re,Ee,!1,null,null,null,null);const qe=He.exports,ze=Object.freeze(Object.defineProperty({__proto__:null,default:qe},Symbol.toStringTag,{value:"Module"})),Ue={inheritAttrs:!1,name:"Radio",mixins:[g]};var Ze=function(){var t=this,e=t._self._c;return e("label",{staticClass:"radio",class:{"is-disabled":t.disabled,"is-selected":t.innerValue===t.inputValue},attrs:{for:t.fieldId}},[e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{type:"radio",disabled:t.disabled},domProps:{value:t.inputValue,checked:t._q(t.innerValue,t.inputValue)},on:{change:function(s){t.innerValue=t.inputValue}}},"input",t.fieldBindings,!1)),e("span",{staticClass:"radio__skin"}),e("span",{staticClass:"radio__content"},[t._t("default")],2)])},Ye=[],Ke=l(Ue,Ze,Ye,!1,null,null,null,null);const We=Ke.exports,Qe=Object.freeze(Object.defineProperty({__proto__:null,default:We},Symbol.toStringTag,{value:"Module"})),Je={inheritAttrs:!1,name:"RadioButtons",props:{value:{type:[String,Number,Boolean]},buttonClass:{type:[String,Object,Array]},fieldNamePrefix:{type:String,required:!0},options:{type:Array,required:!0,validator(n){return n.every(t=>t.hasOwnProperty("label")&&t.hasOwnProperty("value"))}}},computed:{innerValue:{get(){return this.value},set(n){this.$emit("input",n)}}}};var Ge=function(){var t=this,e=t._self._c;return e("div",{staticClass:"radio-buttons"},t._l(t.options,function(s){return e("label",{key:s.value,staticClass:"radio-button",class:[t.buttonClass,{"is-disabled":s.disabled}],attrs:{for:`${t.fieldNamePrefix}-${s.value}`}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{id:`${t.fieldNamePrefix}-${s.value}`,type:"radio",disabled:s.disabled},domProps:{value:s.value,checked:t._q(t.innerValue,s.value)},on:{change:function(i){t.innerValue=s.value}}}),e("span",{staticClass:"radio-button__skin"},[t._t("default",function(){return[t._v(t._s(s.label))]},{option:s})],2)])}),0)},Xe=[],ts=l(Je,Ge,Xe,!1,null,null,null,null);const es=ts.exports,ss=Object.freeze(Object.defineProperty({__proto__:null,default:es},Symbol.toStringTag,{value:"Module"})),ns={name:"RadioCards",props:{options:{type:Array,required:!0,validator:n=>n.every(t=>t.hasOwnProperty("value"))},value:{type:[String,Number]}},computed:{innerValue:{get(){return this.value},set(n){this.$emit("input",n)}}}};var is=function(){var t=this,e=t._self._c;return e("div",{staticClass:"radio-cards"},t._l(t.options,function(s,i){return e("label",{key:i,staticClass:"radio-card"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{type:"radio"},domProps:{value:s.value,checked:t._q(t.innerValue,s.value)},on:{change:function(o){t.innerValue=s.value}}}),e("span",{staticClass:"radio-card__content"},[t._t("card-content",null,{item:s})],2)])}),0)},as=[],os=l(ns,is,as,!1,null,null,null,null);const rs=os.exports,ls=Object.freeze(Object.defineProperty({__proto__:null,default:rs},Symbol.toStringTag,{value:"Module"})),cs=(n,t=300)=>{let e;return(...s)=>{clearTimeout(e),e=setTimeout(()=>{n.apply(globalThis,s)},t)}},ds={name:"SearchSelect",props:{disabled:{type:Boolean,default:!1},value:{type:Object},getItems:{type:Function,required:!0},emptyStateText:{type:String,default:function(){return a("Choose",this.$_textDomain)}},searchPlaceholder:{type:String,default:function(){return a("Search...",this.$_textDomain)}}},data(){return{isOpen:!1,firstOpened:!1,search:"",items:[]}},methods:{open(){this.isOpen=!0,this.$refs.search.focus(),this.firstOpened||this.getItems().then(n=>{this.items=n})},close(){this.isOpen=!1,this.search=""},toggle(){return this.isOpen?this.close():this.open()},select(n){this.close(),this.$emit("input",n)}},created(){this.unwatch=this.$watch("search",cs(async n=>{n.length>0&&(this.items=await this.getItems(n))}))},beforeDestroy(){this.unwatch()}};var us=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.close,expression:"close"}],staticClass:"search-select",class:{"is-disabled":t.disabled}},[e("a",{staticClass:"search-select__fake",attrs:{href:"javascript:",role:"button"},on:{click:t.toggle}},[t.value?e("span",[t._v(t._s(t.value.label))]):e("span",[t._v(t._s(t.emptyStateText))])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],staticClass:"search-select__body"},[e("div",{staticClass:"search-select__field"},[t._t("before-input"),e("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],ref:"search",attrs:{placeholder:t.searchPlaceholder,type:"text",disabled:t.disabled},domProps:{value:t.search},on:{input:function(s){s.target.composing||(t.search=s.target.value)}}})],2),e("div",{staticClass:"search-select__list"},t._l(t.items,function(s){return e("a",{key:s.id,attrs:{href:"javascript:"},on:{click:function(i){return t.select(s)}}},[t._v(t._s(s.label))])}),0)])])},_s=[],ps=l(ds,us,_s,!1,null,null,null,null);const fs=ps.exports,ms=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"})),hs={name:"SelectionCards",props:{inputName:{type:String,required:!0},value:{type:[String,Number]},options:{type:Array,required:!0},valueKey:{type:String,default:"value"},titleKey:{type:String,default:"title"}},data(){return{innerValue:""}},methods:{getLocalizedText(n,t=[]){return _(a(n,this.$_textDomain),t)}},watch:{value(n){this.innerValue=n},innerValue(n){this.$emit("input",n)}},beforeMount(){this.value!==void 0&&(this.innerValue=this.value)}};var gs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"selection-cards"},t._l(t.options,function(s,i){return e("div",{key:i,staticClass:"selection-card",class:{"is-selected":t.value===s[t.valueKey],"is-disabled":s.disabled}},[e("label",{staticClass:"selection-card__label",attrs:{for:`radio-${t.inputName}-${s[t.valueKey]}`}},[t._v(t._s(t.getLocalizedText("Select %s",s[t.titleKey])))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{id:`radio-${t.inputName}-${s[t.valueKey]}`,type:"radio",name:"cards",disabled:s.disabled},domProps:{value:s[t.valueKey],checked:t._q(t.innerValue,s[t.valueKey])},on:{change:function(o){t.innerValue=s[t.valueKey]}}}),e("div",{staticClass:"admin-card"},[e("div",{staticClass:"admin-card__body"},[t._t("card-contents",null,{item:s,selected:t.value===s[t.valueKey]})],2)])])}),0)},vs=[],bs=l(hs,gs,vs,!1,null,null,null,null);const Cs=bs.exports,ys=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"})),ws={inheritAttrs:!1,name:"Toggle",mixins:[g]};var xs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"field toggle",class:{"is-faux":t.faux}},[e("label",{staticClass:"toggle__field",attrs:{for:t.fieldId}},[e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{type:"checkbox",disabled:t.disabled||t.faux},domProps:{checked:Array.isArray(t.innerValue)?t._i(t.innerValue,null)>-1:t.innerValue},on:{change:function(s){var i=t.innerValue,o=s.target,c=!!o.checked;if(Array.isArray(i)){var d=null,u=t._i(i,d);o.checked?u<0&&(t.innerValue=i.concat([d])):u>-1&&(t.innerValue=i.slice(0,u).concat(i.slice(u+1)))}else t.innerValue=c}}},"input",t.fieldBindings,!1)),e("span",{staticClass:"toggle__skin"}),e("span",{staticClass:"toggle__label"},[t._t("default")],2)]),t.$slots.help?e("div",{staticClass:"toggle__help"},[t._t("help")],2):t._e()])},$s=[],ks=l(ws,xs,$s,!1,null,null,null,null);const As=ks.exports,Ss=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),Ps={name:"ExpandableCard",props:{startOpen:{type:Boolean,default:!1},slim:{type:Boolean,default:!1},locked:{type:Boolean,default:!1}},data(){return{isOpen:!1}},computed:{texts(){return{toggle:a("Toggle",this.$_textDomain)}}},methods:{toggleCard(){this.isOpen?this.closeCard():this.openCard()},openCard(){this.locked||(this.isOpen=!0)},closeCard(){this.isOpen=!1}},mounted(){this.startOpen&&!this.locked&&this.openCard()}};var Ts=function(){var t=this,e=t._self._c;return e("article",{staticClass:"expandable-card",class:{"is-open":t.isOpen}},[e("header",{staticClass:"expandable-card__header"},[e("div",{staticClass:"expandable-card__title"},[t._t("title")],2),e("button",{staticClass:"expandable-card__toggle",attrs:{type:"button"},on:{click:t.toggleCard}},[t._t("toggle",function(){return[e("span",[t._v(t._s(t.texts.toggle))])]})],2)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}]},[t._t("before-content"),e("div",{staticClass:"expandable-card__content",class:{"is-slim":t.slim}},[t._t("content")],2),e("div",{staticClass:"expandable-card__footer"},[t._t("footer")],2)],2)])},Os=[],Ns=l(Ps,Ts,Os,!1,null,null,null,null);const Ds=Ns.exports,Ls=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),Bs={name:"AdminHeader",props:{workflow:{type:Object},useSmallLogo:{type:Boolean,default:!1},type:{type:String,default:"default",validator:function(n){return["default","workflow","custom"].indexOf(n)!==-1}},logo:{type:String},logoSmall:{type:String}},computed:{texts(){return{close:a("Close",this.$_textDomain)}}},methods:{onClose(){this.$emit("close")}}};var Fs=function(){var t=this,e=t._self._c;return e("header",{staticClass:"admin-header",class:`admin-header--${t.type}`},[t.type==="workflow"?[e("figure",{staticClass:"admin-header__branding is-small"},[e("img",{attrs:{src:t.logoSmall,alt:""}})]),e(`${t.$_componentPrefix}AdminHeaderWorkflow`,{tag:"component",attrs:{workflow:t.workflow}},[e("template",{slot:"workflow-step-separator"},[t._t("workflow-step-separator")],2)],2),e("button",{staticClass:"admin-header__close",on:{click:t.onClose}},[t._t("header-close",function(){return[e("span",[t._v(t._s(t.texts.close))])]})],2)]:t.type==="custom"?t._t("default"):[e("figure",{staticClass:"admin-header__branding"},[e("img",{attrs:{src:t.logo,alt:""}})]),e("div",{staticClass:"admin-header__end"},[t._t("header-end")],2)]],2)},Vs=[],js=l(Bs,Fs,Vs,!1,null,null,null,null);const Ms=js.exports,Is=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),Rs={name:"AdminHeaderWorkflow",components:{},props:{workflow:{type:Object}}};var Es=function(){var t=this,e=t._self._c;return e("nav",{staticClass:"admin-header__nav"},[e("div",{staticClass:"admin-header__nav-start"},[e("ul",{staticClass:"admin-header-steps"},t._l(t.workflow.steps,function(s,i){return e(`${t.$_componentPrefix}AdminHeaderWorkflowItem`,{key:s.key,tag:"component",attrs:{step:s,"is-current":s.key===t.workflow.currentStep,"is-last":i!==t.workflow.steps.length-1}},[t._t("workflow-step-separator")],2)}),1)]),e("div",{staticClass:"admin-header__nav-end"},t._l(t.workflow.actions,function(s,i){return e("button",{key:i,staticClass:"button",class:`${t.$_classPrefix}-button is-small`,attrs:{disabled:s.disabled},on:{click:s.handler}},[t._v(" "+t._s(s.label)+" ")])}),0)])},Hs=[],qs=l(Rs,Es,Hs,!1,null,null,null,null);const zs=qs.exports,Us=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),Zs={name:"AdminHeaderWorkflowItem",props:{step:{type:Object,required:!0},isCurrent:{type:Boolean,default:!1},isLast:{type:Boolean,default:!1}}};var Ys=function(){var t=this,e=t._self._c;return e("li",{staticClass:"admin-header-step-item",class:{"is-current":t.isCurrent,"is-clickable":t.step.hasOwnProperty("click")}},[e("a",{attrs:{href:"javascript:"},on:{click:()=>{t.step.click&&t.step.click()}}},[t._v(t._s(t.step.title))]),t.isLast?e("span",{staticClass:"admin-header-step-item__separator"},[t._t("default")],2):t._e()])},Ks=[],Ws=l(Zs,Ys,Ks,!1,null,null,null,null);const Qs=Ws.exports,Js=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),Gs={disableAutoload:!0,name:"NotificationBanner",props:{eventBus:{type:Object,required:!0},type:{type:String,default:"info",validator:function(n){return["info","success","warning"].indexOf(n)!==-1}},content:{type:String},timeout:{type:Number,default:-1},parentEl:{type:[String,Element],default:()=>document.body},slots:{type:Object},exclusive:{type:Boolean,default:!0}},data(){return{isActive:!1}},computed:{bannerClasses(){return[`is-${this.type}`]},beforeContentComponent(){const n=this.slots.beforeContent;return n?{template:n}:null},contentComponent(){const n=`<div>${this.content}</div>`;return n?{template:n}:null}},methods:{close(){this.isActive=!1,setTimeout(()=>{this.$el.remove()},2e3)}},beforeMount(){this.parentEl.appendChild(this.$el),this.exclusive&&this.eventBus.$emit("add-banner",this._uid)},mounted(){this.isActive=!0,this.eventBus.$on("add-banner",n=>{n!==this._uid&&this.close()}),this.timeout>-1&&setTimeout(this.close,this.timeout*1e3)}};var Xs=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"slide"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"notification-banner",class:t.bannerClasses},[e("div",{staticClass:"notification-banner__content"},[e(t.beforeContentComponent,{tag:"div"}),e(t.contentComponent,{tag:"div"})],1)])])},tn=[],en=l(Gs,Xs,tn,!1,null,null,null,null);const C=en.exports,sn=Object.freeze(Object.defineProperty({__proto__:null,default:C},Symbol.toStringTag,{value:"Module"})),nn={disableAutoload:!0,name:"NotificationItem",props:{isDismissed:{type:Boolean,default:!1},notification:{type:Object,required:!0}},computed:{actions(){return Array.isArray(this.notification.buttons)?this.notification.buttons:Object.values(this.notification.buttons)},texts(){return{dismiss:a("Dismiss",this.$_textDomain)}}},methods:{dismiss(){this.$emit("dismiss",this.notification.id)},performAction(n){this.$emit("action",n)}}};var an=function(){var t=this,e=t._self._c;return e("article",{staticClass:"notification-item",class:`is-${t.notification.category}`},[e("span",{staticClass:"notification-item__icon"},[e("span",{directives:[{name:"icon",rawName:"v-icon:[`notification-${notification.icon}`]",arg:`notification-${t.notification.icon}`}]})]),e("div",{staticClass:"notification-item__content"},[e("header",{staticClass:"notification-item__header"},[e("h6",{staticClass:"notification-item__title"},[t._v(" "+t._s(t.notification.title)+" ")]),e("span",{staticClass:"notification-item__date"},[t._v(t._s(t.notification.active_from.split(" ")[0]))])]),e("div",{staticClass:"notification-item__body"},[e("div",{domProps:{innerHTML:t._s(t.notification.content)}})]),e("div",{staticClass:"notification-item__actions"},[t._l(t.actions,function(s,i){return[s.type==="action"?e("button",{key:i,staticClass:"button is-secondary",class:`${t.$_classPrefix}-button`,attrs:{type:"button"},on:{click:function(o){return t.performAction(s)}}},[t._v(" "+t._s(s.text)+" ")]):e("a",{key:i,staticClass:"button is-secondary",class:`${t.$_classPrefix}-button`,attrs:{href:s.url,target:s.is_external?"_blank":"_self",rel:s.is_external?"noopener":""},on:{click:function(o){return t.$emit("action-clicked")}}},[t._v(" "+t._s(s.text)+" ")])]}),t.isDismissed?t._e():e("button",{staticClass:"button is-link",class:`${t.$_classPrefix}-button`,on:{click:t.dismiss}},[t._v(" "+t._s(t.texts.dismiss)+" ")])],2)])])},on=[],rn=l(nn,an,on,!1,null,null,null,null);const y=rn.exports,ln=Object.freeze(Object.defineProperty({__proto__:null,default:y},Symbol.toStringTag,{value:"Module"})),cn={name:"NotificationsDrawer",components:{NotificationItem:y},props:{isOpen:{type:Boolean,default:!1},activeNotifications:{type:Array,required:!0},dismissedNotifications:{type:Array,required:!0}},data(){return{showDismissed:!1}},computed:{displayedNotifications(){return this.showDismissed?this.dismissedNotifications:this.activeNotifications},notificationsCount(){return this.activeNotifications.length},dismissedCount(){return this.dismissedNotifications.length},title(){return this.showDismissed?this.texts.dismissed:this.texts.inbox},dismissedToggleText(){return this.showDismissed?this.texts.backToInbox:this.texts.viewDismissed},texts(){return{inbox:a("Inbox",this.$_textDomain),dismissed:a("Dismissed",this.$_textDomain),viewDismissed:a("View Dismissed",this.$_textDomain),backToInbox:a("Back to Inbox",this.$_textDomain),notifications:a("Notifications",this.$_textDomain),dismissAll:a("Dismiss All",this.$_textDomain)}}},methods:{dismissNotification(n){this.$emit("dismiss",n)},dismissAll(){this.$emit("dismiss","all")},toggleDismissed(){this.showDismissed=!this.showDismissed},emitClose(){this.$emit("close")},performNotificationAction(n){this.$emit("action",n)}}};var dn=function(){var t=this,e=t._self._c;return e("aside",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],staticClass:"notifications-drawer"},[e("section",{staticClass:"notifications-drawer__wrapper"},[e("header",{staticClass:"notifications-drawer__header"},[e("div",{staticClass:"notifications-drawer__header-start"},[e("span",{directives:[{name:"icon",rawName:"v-icon:inbox",arg:"inbox"}]}),e("h4",{staticClass:"notifications-drawer__title"},[t._v(" "+t._s(t.title)+" ")])]),e("div",{staticClass:"notifications-drawer__header-end"},[e("button",{staticClass:"button is-link",class:`${t.$_classPrefix}-button`,on:{click:t.toggleDismissed}},[t._v(" "+t._s(t.dismissedToggleText)+" ")]),e("button",{staticClass:"button is-link notifications-drawer__close",class:`${t.$_classPrefix}-button`,on:{click:t.emitClose}},[e("span",{directives:[{name:"icon",rawName:"v-icon:close",arg:"close"}]})])])]),e("section",{staticClass:"notifications-drawer__content"},[e("header",{staticClass:"notifications-drawer__subheader"},[e("div",{staticClass:"notifications-drawer__subheader-start"},[e("span",{staticClass:"notifications-count",class:{"is-dismissed":t.showDismissed,"is-empty":!t.showDismissed&&!t.notificationsCount}},[t.showDismissed?e("span",[t._v(t._s(t.dismissedCount))]):e("span",[t._v(t._s(t.notificationsCount))])]),e("h5",[t._v(t._s(t.texts.notifications))])]),e("div",{staticClass:"notifications-drawer__subheader-end"},[!t.showDismissed&&t.notificationsCount?e("button",{staticClass:"button is-link",class:`${t.$_classPrefix}-button`,on:{click:t.dismissAll}},[t._v(" "+t._s(t.texts.dismissAll)+" ")]):t._e()])]),t.displayedNotifications.length>0?e("section",{staticClass:"notifications-drawer__list"},t._l(t.displayedNotifications,function(s){return e("notification-item",{key:s.id,attrs:{"is-dismissed":t.showDismissed,notification:s},on:{dismiss:t.dismissNotification,action:t.performNotificationAction,"action-clicked":t.emitClose}})}),1):e("section",{staticClass:"notifications-drawer__empty"},[t._t("empty-notifications")],2)])])])},un=[],_n=l(cn,dn,un,!1,null,null,null,null);const pn=_n.exports,fn=Object.freeze(Object.defineProperty({__proto__:null,default:pn},Symbol.toStringTag,{value:"Module"})),mn={name:"RestrictedAccessOverlay"};var hn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"restricted-access-overlay"},[e("div",{staticClass:"restricted-access-modal"},[e("div",{staticClass:"restricted-access-modal__body"},[t._t("modal-content")],2),e("div",{staticClass:"restricted-access-modal__footer"},[t._t("modal-footer")],2)])])},gn=[],vn=l(mn,hn,gn,!1,null,null,null,null);const bn=vn.exports,Cn=Object.freeze(Object.defineProperty({__proto__:null,default:bn},Symbol.toStringTag,{value:"Module"}));const yn={name:"AdminTable",props:{brandTable:{type:Boolean,default:!1},checkboxGroupName:{type:String,default:"post"},itemIdAttribute:{type:String,default:"id"},allowSelectAll:{type:Boolean,default:!0},allowItemsSelect:{type:Boolean,default:!0},hasPagination:{type:Boolean,default:!0},noHeader:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},columns:{type:Array,required:!0,validator(n){return n.every(t=>{let e=t.hasOwnProperty("title");return(t.sortable||t.isRowTitle)&&(e=e&&t.hasOwnProperty("key")),e})}},rowActions:{type:Array,default:()=>[]},items:{type:Array,required:!0},bulkActions:{type:Array,default:()=>[]},filters:{type:Array,default:()=>[]},pagination:{type:Object,default:()=>({})},quickFilters:{type:Array,default:()=>[],validator(n){return n.every(t=>t.hasOwnProperty("attribute")&&t.hasOwnProperty("value"))}},currentQuickFilter:{type:String,default:"all"},isLoading:{type:Boolean,default:!1},allowSearch:{type:Boolean,default:!1}},data(){return{selected:[],orderby:null,order:"desc",selectedAction:-1}},computed:{navigationStaticBindings(){return{bulkActions:this.bulkActions,filters:this.filters,pagination:this.pagination?this.pagination:{page:1,pages:1,per_page:10,total:1}}},headAndFootStaticBindings(){return{allowSelectAll:this.allowSelectAll,columns:this.columns}},isSelectingAll(){return this.items.length>0&&this.selected.length===this.items.length},hasActionsColumn(){return this.$scopedSlots["row-end-actions"]!==void 0},texts(){return{all:a("All",this.$_textDomain)}}},methods:{getCodedFilter({attribute:n,value:t}){return`${n}:${t}`},getFilterClass(n){return this.getCodedFilter(n)===this.currentQuickFilter?"current":null},applyBulkAction(){const n=this.bulkActions.find(t=>t.value===this.selectedAction);n&&typeof n.handle=="function"&&(n.handle(this.selected),this.selected=[])},applyFilterChange(n){this.$emit("filter-change",n)},onSelectAll(){this.selected.length===this.items.length?this.selected=[]:this.selected=this.items.map(n=>n[this.itemIdAttribute])},emitSortChange(){this.$emit("sort-change",{orderby:this.orderby,order:this.order})},emitPageChange(n){const t={...this.pagination,page:n};this.$emit("page-change",t)},applyQuickFilter(n){const t=this.getCodedFilter(n);this.$emit("update:currentQuickFilter",t),this.$emit("quick-filter",t)},emitSearchKeywords(n){this.$emit("search",n)}},watch:{currentQuickFilter(){this.selectedAction=-1,this.selected=[]},orderby(){this.emitSortChange()},order(){this.emitSortChange()},quickFilters(n){if(this.currentQuickFilter!=="all"&&this.currentQuickFilter!==null)return;const t=n.find(e=>e.value==="all");t&&this.$emit("update:currentQuickFilter",this.getCodedFilter(t))}}};var wn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"admin-table",class:{"brand-table":t.brandTable}},[t.quickFilters.length&&t.pagination?e("ul",{staticClass:"subsubsub"},t._l(t.quickFilters,function(s,i){return e("li",{key:i,class:s.value},[e("a",{staticClass:"admin-table__quick-filter",class:t.getFilterClass(s),attrs:{href:"javascript:"},on:{click:function(o){return t.applyQuickFilter(s)}}},[t._v(" "+t._s(s.label)+" "),e("span",{staticClass:"count"},[t._v("("+t._s(s.count)+")")])])])}),0):t._e(),t.hasPagination?e(`${t.$_componentPrefix}AdminTableNavigation`,t._b({tag:"component",staticClass:"top",attrs:{"allow-search":t.allowSearch,"selected-action":t.selectedAction},on:{"update:selectedAction":function(s){t.selectedAction=s},"update:selected-action":function(s){t.selectedAction=s},search:t.emitSearchKeywords,"apply-action":t.applyBulkAction,"page-change":t.emitPageChange,"filter-values":t.applyFilterChange}},"component",t.navigationStaticBindings,!1)):t._e(),e("table",{staticClass:"wp-list-table widefat striped table-view-list"},[t.noHeader?t._e():e(`${t.$_componentPrefix}AdminTableHead`,t._b({tag:"component",attrs:{orderby:t.orderby,order:t.order,"has-actions-column":t.hasActionsColumn,"is-selecting-all":t.isSelectingAll},on:{"update:orderby":function(s){t.orderby=s},"update:order":function(s){t.order=s},"select-all":t.onSelectAll}},"component",t.headAndFootStaticBindings,!1)),t._t("before-body"),e("tbody",[t.isLoading?e("tr",[e("td",{attrs:{colspan:t.columns.length+1}},[e("div",{staticClass:"admin-table__empty"},[t._t("table-loading")],2)])]):t.items.length?t._l(t.items,function(s){return e(`${t.$_componentPrefix}AdminTableRow`,{key:s[t.itemIdAttribute],tag:"component",attrs:{item:s,columns:t.columns,selected:t.selected,"checkbox-group-name":t.checkboxGroupName,"item-id-attribute":t.itemIdAttribute,"allow-select":t.allowItemsSelect,"row-actions":t.rowActions},on:{"update:selected":function(i){t.selected=i}},scopedSlots:t._u([{key:"before-row",fn:function(){return[t._t("before-row",null,{item:s})]},proxy:!0},{key:"row-before-title",fn:function(){return[t._t("row-before-title",null,{item:s})]},proxy:!0},{key:"row-end-actions",fn:function(){return[t._t("row-end-actions",null,{item:s})]},proxy:!0},{key:"row-below",fn:function(){return[t._t("row-below",null,{item:s})]},proxy:!0}],null,!0)})}):e("tr",[e("td",{attrs:{colspan:t.columns.length+1}},[e("div",{staticClass:"admin-table__empty"},[t._t("table-empty")],2)])])],2),t.noFooter?t._e():e(`${t.$_componentPrefix}AdminTableFoot`,t._b({tag:"component",attrs:{"is-selecting-all":t.isSelectingAll,"has-actions-column":t.hasActionsColumn},on:{"select-all":t.onSelectAll}},"component",t.headAndFootStaticBindings,!1))],2),t.hasPagination?e(`${t.$_componentPrefix}AdminTableNavigation`,t._b({tag:"component",staticClass:"bottom",attrs:{"selected-action":t.selectedAction},on:{"update:selectedAction":function(s){t.selectedAction=s},"update:selected-action":function(s){t.selectedAction=s},"apply-action":t.applyBulkAction,"page-change":t.emitPageChange}},"component",t.navigationStaticBindings,!1)):t._e()],1)},xn=[],$n=l(yn,wn,xn,!1,null,null,null,null);const kn=$n.exports,An=Object.freeze(Object.defineProperty({__proto__:null,default:kn},Symbol.toStringTag,{value:"Module"})),w={props:{hasActionsColumn:{type:Boolean,default:!1},isSelectingAll:{type:Boolean,default:!1}},methods:{selectAll(){this.$emit("select-all")}}},Sn={name:"AdminTableFoot",mixins:[w],props:{allowSelectAll:{type:Boolean,default:!0},columns:{type:Array,required:!0}},computed:{texts(){return{selectAll:a("Select All",this.$_textDomain),actions:a("Actions",this.$_textDomain)}}}};var Pn=function(){var t=this,e=t._self._c;return e("tfoot",[e("tr",[t.allowSelectAll?e("td",{staticClass:"manage-column column-cb check-column"},[e("label",{staticClass:"screen-reader-text",attrs:{for:"cb-select-all-2"}},[t._v(t._s(t.texts.selectAll))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.isSelectingAll,expression:"isSelectingAll"}],attrs:{id:"cb-select-all-2",type:"checkbox"},domProps:{checked:Array.isArray(t.isSelectingAll)?t._i(t.isSelectingAll,null)>-1:t.isSelectingAll},on:{click:function(s){return s.stopPropagation(),t.selectAll.apply(null,arguments)},change:function(s){var i=t.isSelectingAll,o=s.target,c=!!o.checked;if(Array.isArray(i)){var d=null,u=t._i(i,d);o.checked?u<0&&(t.isSelectingAll=i.concat([d])):u>-1&&(t.isSelectingAll=i.slice(0,u).concat(i.slice(u+1)))}else t.isSelectingAll=c}}})]):t._e(),t._l(t.columns,function(s,i){return e("th",{key:i,staticClass:"manage-column column-title column-primary",class:{"sortable desc":s.sortable},attrs:{id:s.key,scope:"col"}},[s.sortable?[e("a",{attrs:{href:"javascript:",role:"button"}},[e("span",[t._v(t._s(typeof s.title=="function"?s.title():s.title))]),e("span",{staticClass:"sorting-indicator"})])]:e("span",[t._v(t._s(typeof s.title=="function"?s.title():s.title))])],2)}),t.hasActionsColumn?e("th",[t._v(" "+t._s(t.texts.actions)+" ")]):t._e()],2)])},Tn=[],On=l(Sn,Pn,Tn,!1,null,null,null,null);const Nn=On.exports,Dn=Object.freeze(Object.defineProperty({__proto__:null,default:Nn},Symbol.toStringTag,{value:"Module"})),Ln={name:"AdminTableHead",mixins:[w],props:{allowSelectAll:{type:Boolean,default:!0},columns:{type:Array,required:!0},orderby:{type:String},order:{type:String}},computed:{texts(){return{selectAll:a("Select All",this.$_textDomain),actions:a("Actions",this.$_textDomain)}}},methods:{changeSort(n,t){t.target.closest("a").blur(),n===this.orderby?this.$emit("update:order",this.order==="desc"?"asc":"desc"):this.$emit("update:orderby",n)}}};var Bn=function(){var t=this,e=t._self._c;return e("thead",[e("tr",[t.allowSelectAll?e("th",{staticClass:"manage-column column-cb check-column",attrs:{id:"cb"}},[e("label",{staticClass:"screen-reader-text",attrs:{for:"cb-select-all-1"}},[t._v(t._s(t.texts.selectAll))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.isSelectingAll,expression:"isSelectingAll"}],attrs:{id:"cb-select-all-1",type:"checkbox"},domProps:{checked:Array.isArray(t.isSelectingAll)?t._i(t.isSelectingAll,null)>-1:t.isSelectingAll},on:{click:function(s){return s.stopPropagation(),t.selectAll.apply(null,arguments)},change:function(s){var i=t.isSelectingAll,o=s.target,c=!!o.checked;if(Array.isArray(i)){var d=null,u=t._i(i,d);o.checked?u<0&&(t.isSelectingAll=i.concat([d])):u>-1&&(t.isSelectingAll=i.slice(0,u).concat(i.slice(u+1)))}else t.isSelectingAll=c}}})]):t._e(),t._l(t.columns,function(s,i){return e("th",{key:i,staticClass:"manage-column column-title column-primary",class:{sortable:s.sortable,sorted:t.orderby===s.key,[t.order]:!0},attrs:{id:s.key,scope:"col"}},[s.sortable?[e("a",{attrs:{href:"javascript:",role:"button"},on:{click:o=>{t.changeSort(s.key,o)}}},[e("span",[t._v(t._s(typeof s.title=="function"?s.title():s.title))]),e("span",{staticClass:"sorting-indicator"})])]:e("span",[t._v(t._s(typeof s.title=="function"?s.title():s.title))])],2)}),t.hasActionsColumn?e("th",[t._v(" "+t._s(t.texts.actions)+" ")]):t._e()],2)])},Fn=[],Vn=l(Ln,Bn,Fn,!1,null,null,null,null);const jn=Vn.exports,Mn=Object.freeze(Object.defineProperty({__proto__:null,default:jn},Symbol.toStringTag,{value:"Module"})),In={name:"AdminTableNavigation",props:{selectedAction:{type:[String,Number]},bulkActions:{type:Array,default:()=>[]},filters:{type:Array,default:()=>[]},pagination:{type:Object,default:()=>({})},allowSearch:{type:Boolean,default:!1}},data(){return{currentPage:1,filterValues:{},keywords:"",keywordsTimeout:null}},computed:{texts(){return{selectBulkAction:a("Select bulk action",this.$_textDomain),bulkActions:a("Bulk Actions",this.$_textDomain),apply:a("Apply",this.$_textDomain),currentPage:a("Current Page",this.$_textDomain),firstPage:a("First Page",this.$_textDomain),prevPage:a("Previous Page",this.$_textDomain),nextPage:a("Next Page",this.$_textDomain),lastPage:a("Last Page",this.$_textDomain),of:a("of",this.$_textDomain),search_placeholder:a("Search..",this.$_textDomain)}},ownSelectedAction:{get(){return this.selectedAction},set(n){this.$emit("update:selectedAction",n)}}},methods:{goToPrev(){this.$emit("page-change",Number.parseInt(this.pagination.page)-1)},goToNext(){this.$emit("page-change",Number.parseInt(this.pagination.page)+1)},goToPage(n){this.$emit("page-change",n)},emitKeywords(){clearTimeout(this.keywordsTimeout),this.keywordsTimeout=setTimeout(()=>{this.$emit("search",this.keywords)},500)}},mounted(){this.currentPage=this.pagination.page,this.filters&&this.filters.forEach(n=>{this.filterValues[n.id]=0})},watch:{"pagination.page"(n){this.currentPage=n}}};var Rn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"admin-table__navigation tablenav"},[t.bulkActions.length>0?e("div",{staticClass:"alignleft actions bulkactions"},[e("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v(t._s(t.texts.selectBulkAction))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.ownSelectedAction,expression:"ownSelectedAction"}],attrs:{id:"bulk-action-selector-top",name:"action"},on:{change:function(s){var i=Array.prototype.filter.call(s.target.options,function(o){return o.selected}).map(function(o){var c="_value"in o?o._value:o.value;return c});t.ownSelectedAction=s.target.multiple?i:i[0]}}},[e("option",{attrs:{value:"-1"}},[t._v(" "+t._s(t.texts.bulkActions)+" ")]),t._l(t.bulkActions,function(s){return e("option",{key:s.value,domProps:{value:s.value}},[t._v(" "+t._s(s.label)+" ")])})],2),e("input",{staticClass:"button action",attrs:{id:"doaction",type:"button",value:t.texts.apply},on:{click:function(s){return t.$emit("apply-action")}}})]):t._e(),t.filters.length>0?e("div",{staticClass:"alignleft filters"},t._l(t.filters,function(s){return e("div",{key:s.id,class:"filter-"+s.id},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.filterValues[s.id],expression:"filterValues[filter.id]"}],attrs:{name:"filter["+s.id+"]"},on:{change:[function(i){var o=Array.prototype.filter.call(i.target.options,function(c){return c.selected}).map(function(c){var d="_value"in c?c._value:c.value;return d});t.$set(t.filterValues,s.id,i.target.multiple?o:o[0])},function(i){return t.$emit("filter-values",t.filterValues)}]}},t._l(s.options,function(i,o){return e("option",{key:o,domProps:{value:o,textContent:t._s(i)}})}),0)])}),0):t._e(),e("div",{staticClass:"tablenav-pages",class:{"one-page":t.pagination.pages===1}},[t.pagination.pages>1?e("span",{staticClass:"pagination-links"},[t.pagination.page==1?[e("span",{staticClass:"tablenav-pages-navspan button disabled",attrs:{"aria-hidden":"true"}},[t._v("«")]),e("span",{staticClass:"tablenav-pages-navspan button disabled",attrs:{"aria-hidden":"true"}},[t._v("‹")])]:[e("a",{staticClass:"first-page button",attrs:{href:"javascript:",role:"button"},on:{click:function(s){return t.goToPage(1)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.texts.firstPage))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])]),e("a",{staticClass:"prev-page button",attrs:{href:"javascript:",role:"button"},on:{click:t.goToPrev}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.texts.prevPage))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("‹")])])],e("span",{staticClass:"paging-input"},[e("label",{staticClass:"screen-reader-text",attrs:{for:"current-page-selector"}},[t._v(t._s(t.texts.currentPage))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.currentPage,expression:"currentPage"}],staticClass:"current-page",attrs:{id:"current-page-selector",type:"text",name:"paged",size:"1","aria-describedby":"table-paging",max:t.pagination.pages},domProps:{value:t.currentPage},on:{keyup:function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"enter",13,s.key,"Enter")?null:t.goToPage(t.currentPage)},input:function(s){s.target.composing||(t.currentPage=s.target.value)}}}),e("span",{staticClass:"tablenav-paging-text"},[t._v(" "+t._s(t.texts.of)+" "),e("span",{staticClass:"total-pages"},[t._v(t._s(t.pagination.pages))])])]),t.pagination.page==t.pagination.pages?[e("span",{staticClass:"tablenav-pages-navspan button disabled",attrs:{"aria-hidden":"true"}},[t._v("›")]),e("span",{staticClass:"tablenav-pages-navspan button disabled",attrs:{"aria-hidden":"true"}},[t._v("»")])]:[e("a",{staticClass:"next-page button",attrs:{href:"javascript:",role:"button"},on:{click:t.goToNext}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.texts.nextPage))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("›")])]),e("a",{staticClass:"last-page button",attrs:{href:"javascript:",role:"button"},on:{click:function(s){return t.goToPage(t.pagination.pages)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.texts.lastPage))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])]],2):t._e()]),t.allowSearch?e("div",{staticClass:"alignright filters search-filters"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.keywords,expression:"keywords"}],attrs:{placeholder:t.texts.search_placeholder,type:"search"},domProps:{value:t.keywords},on:{input:[function(s){s.target.composing||(t.keywords=s.target.value)},t.emitKeywords]}})]):t._e()])},En=[],Hn=l(In,Rn,En,!1,null,null,null,null);const qn=Hn.exports,zn=Object.freeze(Object.defineProperty({__proto__:null,default:qn},Symbol.toStringTag,{value:"Module"})),Un={name:"AdminTableRow",components:{Fragment:S},props:{checkboxGroupName:{type:String,default:"post"},selected:{type:Array,required:!0},item:{type:Object,required:!0},itemIdAttribute:{type:String,default:"id"},columns:{type:Array,required:!0},rowActions:{type:Array,default:()=>[]},allowSelect:{type:Boolean,default:!0}},computed:{selectedItems:{get(){return this.selected},set(n){this.$emit("update:selected",n)}},rowTitle(){const n=this.columns.find(t=>t.isRowTitle);return this.item[n.key]},texts(){return{selectItem:_(a("Select %s",this.$_textDomain),this.rowTitle)}}},methods:{getColumnValue(n){return n.value&&typeof n.value=="function"?n.value(this.item):this.item[n.key]}}};var Zn=function(){var t=this,e=t._self._c;return e("fragment",[e("tr",[t.allowSelect?e("th",{staticClass:"check-column",attrs:{scope:"row"}},[e("label",{staticClass:"screen-reader-text",attrs:{for:`cb-select-${t.item[t.itemIdAttribute]}`}},[t._v(t._s(t.texts.selectItem))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedItems,expression:"selectedItems"}],attrs:{id:`cb-select-${t.item[t.itemIdAttribute]}`,type:"checkbox",name:`${t.checkboxGroupName}[]`},domProps:{value:t.item[t.itemIdAttribute],checked:Array.isArray(t.selectedItems)?t._i(t.selectedItems,t.item[t.itemIdAttribute])>-1:t.selectedItems},on:{change:function(s){var i=t.selectedItems,o=s.target,c=!!o.checked;if(Array.isArray(i)){var d=t.item[t.itemIdAttribute],u=t._i(i,d);o.checked?u<0&&(t.selectedItems=i.concat([d])):u>-1&&(t.selectedItems=i.slice(0,u).concat(i.slice(u+1)))}else t.selectedItems=c}}})]):t._e(),t._l(t.columns,function(s,i){return e("td",{key:i,class:[{"has-row-actions column-primary page-title":s.isRowTitle},`column-cell-${s.key}`]},[s.isRowTitle?[t._t("row-before-title",null,{item:t.item}),s.link?[s.link.isVue?e("router-link",{staticClass:"row-title",attrs:{to:s.link.path(t.item)}},[t._v(" "+t._s(t.getColumnValue(s))+" ")]):e("span",{staticClass:"row-title"},[s.link.path&&typeof s.link.path=="function"?e("a",{attrs:{href:s.link.path(t.item)}},[t._v(t._s(t.getColumnValue(s)))]):s.link.handle&&typeof s.link.handle=="function"?e("a",{attrs:{href:"javascript:"},domProps:{textContent:t._s(t.getColumnValue(s))},on:{click:function(o){return o.preventDefault(),s.link.handle(t.item[t.itemIdAttribute])}}}):e("span",{domProps:{textContent:t._s(t.getColumnValue(s))}})])]:e("span",{staticClass:"row-title",domProps:{innerHTML:t._s(t.getColumnValue(s))}}),t.rowActions.length?e("div",{staticClass:"row-actions"},[t._l(t.rowActions,function(o,c){return[typeof o.hide!="function"||!o.hide(t.item)?e("span",{key:c,class:o.path},[o.handle&&typeof o.handle=="function"?e("a",{attrs:{href:"javascript:"},on:{click:function(d){return o.handle(t.item[t.itemIdAttribute])}}},[e("span",[t._v(t._s(o.label))])]):o.isVue?e("router-link",{attrs:{to:o.path(t.item[t.itemIdAttribute])}},[e("span",[t._v(t._s(o.label))])]):e("a",{attrs:{href:typeof o.path=="function"?o.path(t.item[t.itemIdAttribute]):o.path}},[e("span",[t._v(t._s(o.label))])])],1):t._e()]})],2):t._e()]:e("div",{domProps:{innerHTML:t._s(t.getColumnValue(s))}})],2)}),t._t("row-end-actions",null,{item:t.item})],2),t._t("row-below",null,{item:t.item})],2)},Yn=[],Kn=l(Un,Zn,Yn,!1,null,null,null,null);const Wn=Kn.exports,Qn=Object.freeze(Object.defineProperty({__proto__:null,default:Wn},Symbol.toStringTag,{value:"Module"})),Jn=new r,Gn={eventBus:Jn,type:"info",slot:"",parentEl:void 0,slots:{beforeContent:""}},Xn=n=>({show(t={}){const e=Object.assign(Gn,t),s=n.extend(C);return new s({el:document.createElement("div"),propsData:e})}}),h={"click-outside":{bind:function(n,t,e){n.clickOutsideEvent=function(s){n===s.target||n.contains(s.target)||e.context[t.expression](s)},document.body.addEventListener("click",n.clickOutsideEvent)},unbind:function(n){document.body.removeEventListener("click",n.clickOutsideEvent)}}},ti={componentPrefix:"",classPrefix:"",textDomain:"default"},pi={install:(n,t)=>{const e=Object.assign(ti,t),{componentPrefix:s,classPrefix:i}=e;n.prototype.$_componentPrefix=s,n.prototype.$_classPrefix=i,n.prototype.$_textDomain=s;const o=Object.assign({"./components/PageNavigator.vue":Mt,"./components/ScreenHeader.vue":zt,"./components/comparison-table/ComparisonTable.vue":Qt,"./components/controls/ButtonDropdown.vue":se,"./components/controls/Checkbox.vue":le,"./components/controls/ColorPicker.vue":fe,"./components/controls/ColorPickerPredefined.vue":Ce,"./components/controls/EditableText.vue":Ae,"./components/controls/ImageUploader.vue":De,"./components/controls/InputSelect.vue":Me,"./components/controls/OptionsCreator.vue":ze,"./components/controls/Radio.vue":Qe,"./components/controls/RadioButtons.vue":ss,"./components/controls/RadioCards.vue":ls,"./components/controls/SearchSelect.vue":ms,"./components/controls/SelectionCards.vue":ys,"./components/controls/Toggle.vue":Ss,"./components/expandable-card/ExpandableCard.vue":Ls,"./components/header/AdminHeader.vue":Is,"./components/header/AdminHeaderWorkflow.vue":Us,"./components/header/AdminHeaderWorkflowItem.vue":Js,"./components/notification-banner/NotificationBanner.vue":sn,"./components/notifications-drawer/NotificationItem.vue":ln,"./components/notifications-drawer/NotificationsDrawer.vue":fn,"./components/overlays/RestrictedAccessOverlay.vue":Cn,"./components/table/AdminTable.vue":An,"./components/table/AdminTableFoot.vue":Dn,"./components/table/AdminTableHead.vue":Mn,"./components/table/AdminTableNavigation.vue":zn,"./components/table/AdminTableRow.vue":Qn});for(let c in o){let d=o[c].default;if(!d.disableAutoload){const u=c.split("/").pop().split(".")[0];n.component(`${s}${u}`,d)}}n.prototype.$notificationBanner=Xn(n);for(const c in h)h.hasOwnProperty(c)&&n.directive(c,h[c])}};export{ni as A,pi as L,ui as N,oi as S,_i as T,li as U,v as a,ai as b,ii as c,di as d,ci as e,ri as f,G as g};