Current Path : /home/theafprt/fnf.group/wp-content/uploads/psp-min/ |
Current File : //home/theafprt/fnf.group/wp-content/uploads/psp-min/2e349b62b0834ede2d016c4e296f7eff.js |
(window["monsterinsightsjsonp"]=window["monsterinsightsjsonp"]||[]).push([["chunk-common"],{"0044":function(t,e,n){var s=n("9cc2"),o=n.n(s);o.a},"014b":function(t,e,n){var s=n("46a2"),o=n.n(s);o.a},"088d":function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.componentClass},[n("label",{class:t.disabled?"monsterinsights-styled-checkbox-faux":"",on:{click:function(e){return e.preventDefault(),t.stopClick(e)},keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.stopClick(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.stopClick(e)}]}},[n("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltip_data,expression:"tooltip_data"}],class:t.labelClass(),attrs:{tabindex:t.faux?"":0}}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.checked,expression:"checked"}],attrs:{type:"checkbox",name:t.name,disabled:t.disabled},domProps:{checked:Array.isArray(t.checked)?t._i(t.checked,null)>-1:t.checked},on:{change:function(e){var n=t.checked,s=e.target,o=!!s.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);s.checked?a<0&&(t.checked=n.concat([i])):a>-1&&(t.checked=n.slice(0,a).concat(n.slice(a+1)))}else t.checked=o}}}),t.label?n("span",{staticClass:"monsterinsights-checkbox-label",domProps:{innerHTML:t._s(t.label)}}):t._e(),t.hasLabelSlot?n("span",{staticClass:"monsterinsights-checkbox-label"},[t._t("label")],2):t._e(),t.description?n("span",{staticClass:"monsterinsights-checkbox-description",domProps:{innerHTML:t._s(t.description)}}):t._e(),t.tooltip?n("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e(),t.hasCollapsibleSlot?n("span",{staticClass:"monsterinsights-settings-input-toggle-collapsible",attrs:{role:"button"},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggleCollapsible(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.toggleCollapsible(e)}]}},[n("i",{class:t.iconClass,attrs:{tabindex:"0",onkeypress:"if(event.keyCode==32||event.keyCode==13){return false;};"}})]):t._e()],1),n("slide-down-up",[t.slotCollapsibleVisible&&t.hasCollapsibleSlot?n("div",{staticClass:"monsterinsights-collapsible"},[t.hasCollapsibleSlot?n("div",{staticClass:"monsterinsights-separator"}):t._e(),n("div",{staticClass:"monsterinsights-collapsible-content"},[t._t("collapsible")],2)]):t._e()])],1)},o=[],i=(n("a4d3"),n("4de4"),n("4160"),n("b0c0"),n("e439"),n("dbb4"),n("b64b"),n("159b"),n("fc11")),a=n("2f62"),r=n("93ec"),c=n("d98d");function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p={name:"SettingsInputCheckbox",components:{SlideDownUp:c["a"],SettingsInfoTooltip:r["a"]},props:{name:String,label:String,description:String,tooltip:String,faux:Boolean,faux_tooltip:String,faux_tooltip_off:String,valueOn:String,valueOff:String,default:{type:Boolean,default:!0},auth_disabled:{type:Boolean,default:!0}},data:function(){return{is_loading:!1,has_error:!1,slotCollapsibleVisible:!1}},computed:u({},Object(a["b"])({settings:"$_settings/settings",auth:"$_auth/auth"}),{has_ua:function(){if(!this.auth_disabled)return!0;var t=this.auth.network_ua?this.auth.network_ua:this.auth.ua;return t||(t=this.auth.network_manual_ua?this.auth.network_manual_ua:this.auth.manual_ua),""!==t},hasCollapsibleSlot:function(){return this.$slots["collapsible"]},hasLabelSlot:function(){return this.$slots["label"]},iconClass:function(){var t="monstericon-arrow";return this.slotCollapsibleVisible&&(t+=" monstericon-down"),t},componentClass:function(){var t="monsterinsights-settings-input-checkbox";return this.$slots["collapsible"]&&(t+=" has-collapsible"),t},checked:{get:function(){var t=this.valueOn?this.valueOn===this.settings[this.name]:this.settings[this.name];return this.faux?this.default:t},set:function(t){var e=!!this.valueOff&&this.valueOff;t&&(e=!this.valueOn||this.valueOn),this.updateSetting(e)}},tooltip_data:function(){return{content:this.faux_tooltip_text,autoHide:!1,trigger:"hover focus click"}},faux_tooltip_text:function(){return this.has_ua?this.checked?this.faux_tooltip:this.faux_tooltip_off:this.$mi_need_to_auth},disabled:function(){return!this.has_ua||this.faux}}),watch:{checked:function(t){this.$emit("checkboxChange",t),this.slotCollapsibleVisible=t}},methods:{stopClick:function(t){t.target.classList.contains("monsterinsights-styled-checkbox")||t.target.classList.contains("monsterinsights-checkbox-label")?this.checked=!this.checked:(this.toggleCollapsible(t),t.stopPropagation())},updateSetting:function(t){var e=this;if(this.disabled)return!1;this.$mi_saving_toast({}),this.$store.dispatch("$_settings/updateSettings",{name:this.name,value:t}).then((function(t){t.success?(e.$emit("checkbox_option_updated"),e.$mi_success_toast({})):e.$mi_error_toast({})}))},toggleCollapsible:function(t){t.preventDefault(),t.stopPropagation(),this.slotCollapsibleVisible=!this.slotCollapsibleVisible},labelClass:function(){var t="monsterinsights-styled-checkbox";return this.checked&&(t+=" monsterinsights-styled-checkbox-checked"),t},mounted:function(){this.slotCollapsibleVisible=this.checked}}},d=p,f=n("2877"),h=Object(f["a"])(d,s,o,!1,null,null,null);e["a"]=h.exports},"0f8f":function(t,e,n){},"17be":function(t,e,n){var s=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[n("span",{staticClass:"monsterinsights-pro-pill"},[t._v("PRO")])])}],i={name:"PopularPostsProPill"},a=i,r=n("2877"),c=Object(r["a"])(a,s,o,!1,null,null,null);e["a"]=c.exports},1915:function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monsterinsights-notificationsv3-container"},[n("div",{staticClass:"monsterinsights-notificationsv3-inbox-button"},[n("button",{staticClass:"monsterinsights-button",on:{click:function(e){t.isShowSidebar=!0}}},[n("svg",{attrs:{width:"22",height:"14",viewBox:"0 0 22 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("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"}})])]),n("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(e){t.isShowSidebar=!0}}})]),t.isShowSidebar?n("div",{class:["monsterinsights-notificationsv3-sidebar",t.isShowSidebar?"monsterinsights-notificationsv3-sidebar-in":"monsterinsights-notificationsv3-sidebar-out"]},[n("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-top"},[n("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-top-title"},[n("svg",{attrs:{width:"24",height:"15",viewBox:"0 0 24 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("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():n("h3",{domProps:{textContent:t._s(t.text_inbox)}}),t.isShowDismissed?n("h3",{domProps:{textContent:t._s(t.text_dismissed)}}):t._e()]),n("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-top-actions"},[t.isShowDismissed?t._e():n("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.text_view_dismissed)},on:{click:function(e){t.isShowDismissed=!0}}}),t.isShowDismissed?n("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.text_back_to_inbox)},on:{click:function(e){t.isShowDismissed=!1}}}):t._e(),n("button",{staticClass:"monsterinsights-button monsterinsights-notificationsv3-sidebar-close",on:{click:t.closeSidebar}},[n("svg",{attrs:{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("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"}})])])])]),n("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-bottom"},[n("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-bottom-notifications-count"},[t.isShowDismissed?t._e():n("span",{staticClass:"monsterinsights-notificationsv3-inbox-number",domProps:{textContent:t._s(t.activeNotificationsNumber)}}),t.isShowDismissed?n("span",{staticClass:"monsterinsights-notificationsv3-dismissed-number",domProps:{textContent:t._s(t.dismissedNotificationsNumber)}}):t._e(),n("h4",{domProps:{textContent:t._s(t.text_notifications)}})]),!t.isShowDismissed&&t.activeNotificationsNumber>0?n("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-bottom-actions"},[n("span",{domProps:{textContent:t._s(t.text_dismiss_all)},on:{click:function(e){return t.dismiss("all")}}})]):t._e()]),t.isShowDismissed?t._e():n("div",{staticClass:"monsterinsights-notificationsv3-sidebar-notifications monsterinsights-notificationsv3-notifications-active"},[t.activeNotificationsNumber<1?n("div",{staticClass:"monsterinsights-notificationsv3-no-notifications"},[n("svg",{attrs:{width:"91",height:"74",viewBox:"0 0 91 74",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("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"}})]),n("h4",{domProps:{textContent:t._s(t.text_no_notifications)}})]):t._e(),t._l(t.notifications,(function(t,e){return n("notification",{key:e,attrs:{notification:t}})}))],2),t.isShowDismissed?n("div",{staticClass:"monsterinsights-notificationsv3-sidebar-notifications monsterinsights-notificationsv3-notifications-dismissed"},[t.dismissedNotificationsNumber<1?n("div",{staticClass:"monsterinsights-notificationsv3-no-notifications"},[n("svg",{attrs:{width:"91",height:"74",viewBox:"0 0 91 74",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("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"}})]),n("h4",{domProps:{textContent:t._s(t.text_no_notifications)}})]):t._e(),t._l(t.dismissed,(function(t,e){return n("notification",{key:e,attrs:{notification:t,dismissable:!1}})}))],2):t._e()]):t._e()])},o=[],i=(n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("ac1f"),n("3ca3"),n("841c"),n("159b"),n("ddb0"),n("2b3d"),n("fc11")),a=n("561c"),r=n("2f62"),c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monsterinsights-notificationsv3-single-notification"},[n("div",{staticClass:"monsterinsights-notificationsv3-notification-icon",domProps:{innerHTML:t._s(t.notification.icon)}}),n("div",{staticClass:"monsterinsights-notificationsv3-notification-details"},[n("div",{staticClass:"monsterinsights-notificationsv3-notification-title"},[n("h5",{domProps:{innerHTML:t._s(t.notification.title)}}),t.notification.start?n("span",{domProps:{innerHTML:t._s(t.notification.start)}}):t._e()]),n("div",{staticClass:"monsterinsights-notificationsv3-notification-content"},[n("p",{domProps:{innerHTML:t._s(t.notification.content)}})]),n("div",{staticClass:"monsterinsights-notificationsv3-notification-actions"},[t._l(t.notification.btns,(function(e,s){return n("a",{key:s,class:["monsterinsights-button",t.buttonClass(s)],attrs:{href:e.url},domProps:{textContent:t._s(e.text)}})})),t.dismissable?n("span",{domProps:{innerHTML:t._s(t.text_dismiss)},on:{click:function(e){return t.dismiss(t.notification.id)}}}):t._e()],2)])])},l=[];function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d={name:"Notification",props:{notification:Object,dismissable:{type:Boolean,default:!0}},data:function(){return{text_dismiss:Object(a["a"])("Dismiss","google-analytics-for-wordpress")}},computed:p({},Object(r["b"])({notifications:"$_notifications/notifications"}),{has_notifications:function(){return this.notifications&&this.notifications.length>0}}),methods:{buttonClass:function(t){return"monsterinsights-button monsterinsights-button-"+t},dismiss:function(t){var e=this;this.$store.dispatch("$_notifications/dismissNotification",t).then((function(){var t=document.querySelector(".monsterinsights-menu-notification-indicator");t&&!e.has_notifications?t.style.display="none":t.innerText=e.notifications.length}))}}},f=d,h=n("2877"),m=Object(h["a"])(f,c,l,!1,null,null,null),g=m.exports;function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var v={name:"Notifications",components:{Notification:g},data:function(){return{isShowSidebar:!1,isShowDismissed:!1,text_inbox:Object(a["a"])("Inbox","google-analytics-for-wordpress"),text_back_to_inbox:Object(a["a"])("Back to Inbox","google-analytics-for-wordpress"),text_view_dismissed:Object(a["a"])("View Dismissed","google-analytics-for-wordpress"),text_notifications:Object(a["a"])("Notifications","google-analytics-for-wordpress"),text_dismiss_all:Object(a["a"])("Dismiss All","google-analytics-for-wordpress"),text_dismissed:Object(a["a"])("Dismissed","google-analytics-for-wordpress"),text_no_notifications:Object(a["a"])("No Notifications","google-analytics-for-wordpress")}},computed:b({},Object(r["b"])({notifications:"$_notifications/notifications",dismissed:"$_notifications/dismissed"}),{activeNotificationsNumber:function(){return this.notifications.length},dismissedNotificationsNumber:function(){return this.dismissed.length}}),created:function(){var t=window.location.search;if("undefined"!==typeof t){var e=new URLSearchParams(t),n=e.get("open");"undefined"!==typeof n&&"monsterinsights_notification_sidebar"===n&&(this.isShowSidebar=!0)}},methods:{closeSidebar:function(){this.isShowSidebar=!1,this.isShowDismissed=!1},buttonClass:function(t){return"monsterinsights-button monsterinsights-button-"+t},dismiss:function(t){var e=this;this.$store.dispatch("$_notifications/dismissNotification",t).then((function(){var t=document.querySelector(".monsterinsights-menu-notification-indicator");t&&!e.notifications.length>0?t.style.display="none":t.innerText=e.notifications.length}))}}},y=v,w=Object(h["a"])(y,s,o,!1,null,null,null);e["a"]=w.exports},"3bc9":function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"settings-input settings-input-license"},[n("p",{domProps:{innerHTML:t._s(t.text_license_row_1)}}),n("p",{domProps:{innerHTML:t._s(t.text_license_row_2)}}),n("p",{domProps:{innerHTML:t._s(t.text_license_row_3)}}),n("div",{staticClass:"monsterinsights-settings-license-lite"},[n("label",{attrs:{for:"monsterinsights-license-key"},domProps:{innerHTML:t._s(t.text_license_label)}}),n("div",{staticClass:"inline-field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.connect_key,expression:"connect_key"}],attrs:{id:"monsterinsights-license-key",readonly:t.is_loading,type:"text",autocomplete:"off",placeholder:t.text_license_placeholder},domProps:{value:t.connect_key},on:{input:[function(e){e.target.composing||(t.connect_key=e.target.value)},t.fieldInput]}}),t.show_connect?n("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.text_upgrade_to_pro)},on:{click:function(e){return e.preventDefault(),t.startUpgradeToPro(e)}}}):t._e()])])])},o=[],i=n("561c"),a=n("f7fe"),r=n.n(a),c=n("dd62"),l={name:"SettingsInputLicense",props:{label:String},data:function(){return{is_network:this.$mi.network,text_license_row_1:Object(i["d"])(Object(i["a"])("You're using %1$sMonsterInsights Lite%2$s - no license needed. Enjoy! %3$s","google-analytics-for-wordpress"),"<strong>","</strong>",'<span class="monsterinsights-bg-img monsterinsights-smile"></span>'),text_license_row_2:Object(i["d"])(Object(i["a"])("To unlock more features consider %1$supgrading to PRO%2$s.","google-analytics-for-wordpress"),'<a href="'+this.$getUpgradeUrl("settings-panel","license")+'" class="monsterinsights-bold" target="_blank">',"</a>"),text_license_row_3:Object(i["d"])(Object(i["a"])("As a valued MonsterInsights Lite user you %1$sreceive 50%% off%2$s, automatically applied at checkout!","google-analytics-for-wordpress"),'<span class="monsterinsights-highlighted-text">',"</span>"),text_upgrade_to_pro:Object(i["a"])("Unlock PRO Features Now","google-analytics-for-wordpress"),text_license_placeholder:Object(i["a"])("Paste your license key here","google-analytics-for-wordpress"),text_license_verify:Object(i["a"])("Verify","google-analytics-for-wordpress"),text_license_label:Object(i["d"])(Object(i["a"])("Already purchased? Simply enter your license key below to connect with MonsterInsights PRO! %1$sRetrieve your license key%2$s.","google-analytics-for-wordpress"),'<a href="'+this.$getUrl("license","settings_panel","https://www.monsterinsights.com/my-account/")+'" target="_blank">',"</a>"),is_loading:!1,show_connect:!1,connect_key:""}},methods:{fieldInput:r()((function(){this.show_connect=""!==this.connect_key}),100),startUpgradeToPro:function(){var t=this;this.$swal({type:"info",title:Object(i["a"])("Please wait...","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,customContainerClass:"monsterinsights-swal",onOpen:function(){t.$swal.showLoading()}}),c["a"].getUpgradeLink(this.connect_key).then((function(e){if(e.success&&e.data.url)return window.location=e.data.url;var n=e.data.message?e.data.message:Object(i["a"])("There was an error unlocking MonsterInsights PRO please try again or install manually.","google-analytics-for-wordpress");t.$mi_error_toast({title:Object(i["a"])("Error","google-analytics-for-wordpress"),text:n,toast:!1,position:"center",showConfirmButton:!0,showCloseButton:!1,customClass:!1}).then((function(){e.data.reload&&window.location.reload()}))})).catch((function(){t.$swal.close()}))}}},u=l,p=n("2877"),d=Object(p["a"])(u,s,o,!1,null,null,null);e["a"]=d.exports},4360:function(t,e,n){var s=n("2b0e"),o=n("2f62"),i=n("dd62"),a=n("f7fe"),r=n.n(a),c=n("561c"),l=function(t){var e=i["a"].fetchLicense();e.then((function(e){e.network&&t.commit("LICENSE_NETWORK_UPDATED",e.network),e.site&&t.commit("LICENSE_UPDATED",e.site),_(t)})).catch((function(t){console.error(t)}))},u=function(t,e){return i["a"].verifyLicense(e,t)},p=function(t,e){return t.commit("LICENSE_KEY_UPDATED",e),f(e,t)},d=function(t,e){return t.commit("LICENSE_NETWORK_KEY_UPDATED",e),f(e,t,!0)},f=r()(i["a"].verifyLicense,500,{leading:!0}),h=function(t,e){return i["a"].validateLicense(e)},m=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i["a"].deactivateLicense(t,e)},g=function(t){t.dispatch("$_app/removeNotice","license_expired",{root:!0}),t.dispatch("$_app/removeNotice","license_disabled",{root:!0}),t.dispatch("$_app/removeNotice","license_invalid",{root:!0})},_=function(t){t.state.license.is_expired||t.state.license_network.is_expired?t.dispatch("$_app/addNotice",{id:"license_expired",content:Object(c["d"])(Object(c["a"])("Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s","google-analytics-for-wordpress"),'<a target="blank" href="'+s["a"].prototype.$getUrl("admin-notices","expired-license","https://www.monsterinsights.com/login/")+'">',"</a>"),type:"error"},{root:!0}):t.state.license.is_disabled||t.state.license_network.is_disabled?t.dispatch("$_app/addNotice",{id:"license_disabled",content:Object(c["a"])("Your license key for MonsterInsights has been disabled. Please use a different key.","google-analytics-for-wordpress"),type:"error"},{root:!0}):(t.state.license.is_invalid||t.state.license_network.is_invalid)&&t.dispatch("$_app/addNotice",{id:"license_invalid",content:Object(c["a"])("Your license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.","google-analytics-for-wordpress"),type:"error"},{root:!0})},b={getLicense:l,updateLicense:p,verifyLicense:u,updateNetworkLicense:d,validateLicense:h,deactivateLicense:m,removeLicenseNotices:g,addLicenseNotices:_},v=function(t){return t.license},y=function(t){return t.license_network},w={license:v,license_network:y},O=function(t,e){t.license=e},C=function(t,e){t.license_network=e},$=function(t,e){t.license.key=e},j=function(t,e){t.license.type=e},k=function(t,e){t.license_network.key=e},E=function(t,e){t.license_network.type=e},P={LICENSE_UPDATED:O,LICENSE_NETWORK_UPDATED:C,LICENSE_KEY_UPDATED:$,LICENSE_TYPE_UPDATED:j,LICENSE_NETWORK_KEY_UPDATED:k,LICENSE_NETWORK_TYPE_UPDATED:E},x={license:{key:"",type:"",is_expired:!1,is_disabled:!1,is_invalid:!0},license_network:{key:"",type:"",is_expired:!1,is_disabled:!1,is_invalid:!0}},T={namespaced:!0,state:x,actions:b,getters:w,mutations:P},S=(n("d3b7"),n("bc3a")),D=n.n(S),A=function(){return new Promise((function(t){var e=new FormData;e.append("action","monsterinsights_vue_get_profile"),e.append("nonce",s["a"].prototype.$mi.nonce),D.a.post(s["a"].prototype.$mi.ajax,e).then((function(e){t(e.data)})).catch((function(t){if(t.response){var e=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Can't load authentication details. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},N=function(t){return new Promise((function(e){var n=new FormData;n.append("action","monsterinsights_maybe_authenticate"),n.append("nonce",s["a"].prototype.$mi.nonce),t&&n.append("isnetwork",!0),D.a.post(s["a"].prototype.$mi.ajax,n).then((function(t){e(t.data)})).catch((function(t){if(t.response){var e=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Can't authenticate. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},L=function(t){return new Promise((function(e){var n=new FormData;n.append("action","monsterinsights_maybe_reauthenticate"),n.append("nonce",s["a"].prototype.$mi.nonce),t&&n.append("isnetwork",!0),D.a.post(s["a"].prototype.$mi.ajax,n).then((function(t){e(t.data)})).catch((function(t){if(t.response){var e=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Can't reauthenticate. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},I=function(t){return new Promise((function(e){var n=new FormData;n.append("action","monsterinsights_maybe_verify"),n.append("nonce",s["a"].prototype.$mi.nonce),n.append("isnetwork",t),D.a.post(s["a"].prototype.$mi.ajax,n).then((function(t){e(t.data)})).catch((function(t){if(t.response){var e=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Can't verify credentials. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},U=function(t,e,n){return new Promise((function(o){var i=new FormData;i.append("action","monsterinsights_maybe_delete"),i.append("nonce",s["a"].prototype.$mi.nonce),i.append("isnetwork",e),n&&i.append("forcedelete",!0),D.a.post(s["a"].prototype.$mi.ajax,i).then((function(n){n.data.success&&t.commit("AUTH_DELETED",e),o(n.data)})).catch((function(t){if(t.response){var e=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Can't deauthenticate. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},R=function(t,e,n){return new Promise((function(o){var i=new FormData;i.append("action","monsterinsights_update_manual_ua"),i.append("manual_ua_code",e),i.append("nonce",s["a"].prototype.$mi.nonce),n&&i.append("isnetwork",n),D.a.post(s["a"].prototype.$mi.ajax,i).then((function(s){t.commit("MANUAL_UA_UPDATE",e,n),o(s.data)})).catch((function(t){if(t.response){var e=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Can't save settings. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline. Settings not saved.","google-analytics-for-wordpress")})}))}))},M={fetchAuth:A,getAuthRedirect:N,getReAuthRedirect:L,verifyAuth:I,deleteAuth:U,updateManualUa:R},H=function(t){var e=M.fetchAuth();e.then((function(e){e&&t.commit("AUTH_UPDATED",e)})).catch((function(t){console.error(t)}))},B=function(t,e){return M.getAuthRedirect(e)},F=function(t,e){return M.getReAuthRedirect(e)},V=function(t,e){return M.verifyAuth(e)},Y=function(t,e){return M.deleteAuth(t,e.network,e.force)},K=function(t,e){return M.updateManualUa(t,e.ua,e.network)},W={getAuth:H,doAuth:B,doReAuth:F,verifyAuth:V,deleteAuth:Y,updateManualUa:K},G=function(t){return t.auth},q={auth:G},Z=function(t,e){t.auth=e},J=function(t,e){e?(t.auth.network_manual_ua=t.auth.network_ua,t.auth.network_ua=!1,t.auth.network_viewname=!1):(t.auth.manual_ua=t.auth.ua,t.auth.ua=!1,t.auth.viewname=!1)},Q=function(t,e,n){n?t.auth.network_manual_ua=e:t.auth.manual_ua=e},X={AUTH_UPDATED:Z,AUTH_DELETED:J,MANUAL_UA_UPDATE:Q},z={auth:{ua:"",viewname:"",network_ua:"",network_viewname:""}},tt={namespaced:!0,state:z,actions:W,getters:q,mutations:X},et=(n("c975"),function(){return new Promise((function(t){var e=new FormData;e.append("action","monsterinsights_vue_get_addons"),e.append("network",s["a"].prototype.$mi.network),e.append("nonce",s["a"].prototype.$mi.nonce),D.a.post(s["a"].prototype.$mi.ajax,e).then((function(e){t(e.data)}))}))}),nt=function(t,e){return new Promise((function(n,o){var i=new FormData;i.append("action","monsterinsights_install_addon"),i.append("nonce",s["a"].prototype.$mi.install_nonce),i.append("plugin",e.url),t.rootState.$_app.ftp_form.hostname&&i.append("hostname",t.rootState.$_app.ftp_form.hostname),t.rootState.$_app.ftp_form.username&&i.append("username",t.rootState.$_app.ftp_form.username),t.rootState.$_app.ftp_form.password&&i.append("password",t.rootState.$_app.ftp_form.password),t.rootState.$_app.ftp_form.connection_type&&i.append("connection_type",t.rootState.$_app.ftp_form.connection_type),D.a.post(s["a"].prototype.$mi.ajax,i).then((function(o){o.data.form?t.commit("$_app/SHOW_FTP_FORM",{action:"$_addons/installAddon",data:e},{root:!0}):o.data.error?s["a"].prototype.$mi_error_toast({title:o.data.error}):(t.commit("ADDON_INSTALLED",{slug:e.slug,basename:o.data.plugin}),ot(t,e)),n(o.data)})).catch((function(t){if(o(t),t.response){var e=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Can't install addon. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline. Addon not installed.","google-analytics-for-wordpress")})}))}))},st=function(t){return new Promise((function(e,n){var o=new FormData,i=s["a"].prototype.$addQueryArg(s["a"].prototype.$mi.ajax,"page","monsterinsights-onboarding");o.append("action","monsterinsights_onboarding_wpforms_install"),o.append("nonce",s["a"].prototype.$mi.install_nonce),D.a.post(i,o).then((function(n){n.data.error?s["a"].prototype.$mi_error_toast({title:n.data.error}):t.commit("ADDON_INSTALLED",{slug:"wpforms-lite",basename:""}),e(n.data)})).catch((function(t){if(n(t),t.response){var e=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Can't install WPForms. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline. WPForms not installed.","google-analytics-for-wordpress")})}))}))},ot=function(t,e){return new Promise((function(n,o){var i=new FormData;i.append("action","monsterinsights_activate_addon"),i.append("nonce",s["a"].prototype.$mi.activate_nonce),i.append("isnetwork",s["a"].prototype.$mi.network),i.append("plugin",e.basename),D.a.post(s["a"].prototype.$mi.ajax,i).then((function(o){o.data.error?s["a"].prototype.$mi_error_toast({title:o.data.error}):t.commit("ADDON_ACTIVATED",e.slug),n(o.data)})).catch((function(t){if(o(t),t.response){var e=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Can't activate addon. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline. Addon not activated.","google-analytics-for-wordpress")})}))}))},it=function(t,e){return new Promise((function(n,o){var i=new FormData;i.append("action","monsterinsights_deactivate_addon"),i.append("nonce",s["a"].prototype.$mi.deactivate_nonce),i.append("isnetwork",s["a"].prototype.$mi.network),i.append("plugin",e.basename),D.a.post(s["a"].prototype.$mi.ajax,i).then((function(o){o.data.error?s["a"].prototype.$mi_error_toast({title:o.data.error}):t.commit("ADDON_DEACTIVATED",e.slug),n(o.data)})).catch((function(t){if(o(t),t.response){var e=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Can't deactivate addon. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline. Addon not deactivated.","google-analytics-for-wordpress")})}))}))},at=function(t,e){return new Promise((function(n,o){var i=new FormData;i.append("action","monsterinsights_vue_install_plugin"),i.append("slug",e),i.append("nonce",s["a"].prototype.$mi.nonce),D.a.post(s["a"].prototype.$mi.ajax,i).then((function(o){o.data.error?s["a"].prototype.$mi_error_toast({title:o.data.error}):t.commit("ADDON_INSTALLED",{slug:e}),n(o.data)})).catch((function(t){if(o(t),t.response){var e=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Can't install plugin. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline. Plugin not installed.","google-analytics-for-wordpress")})}))}))},rt={fetchAddons:et,installAddon:nt,activateAddon:ot,deactivateAddon:it,installWPForms:st,installPlugin:at},ct=function(t){return new Promise((function(e){var n=rt.fetchAddons();n.then((function(n){n&&(t.commit("ADDONS_UPDATED",n),lt(t)),e(!0)})).catch((function(t){console.error(t),e(!1)}))}))},lt=function(t){if(t.dispatch("$_app/removeNotice","google_amp_addon",{root:!0}),t.dispatch("$_app/removeNotice","instant_articles_addon",{root:!0}),ut(t,"amp")&&!ut(t,"google_amp")){var e=t.rootGetters["$_app/mi"].install_amp_url,n=e.indexOf("activate")>0?Object(c["a"])("Activate","google-analytics-for-wordpress"):Object(c["a"])("Install","google-analytics-for-wordpress"),o=Object(c["d"])(Object(c["a"])("In order for the MonsterInsights Google AMP addon to work properly, please ask your webmaster to install the WordPress AMP plugin by Automattic. %1$sLearn More%2$s","google-analytics-for-wordpress"),'<a target="_blank" href="'+s["a"].prototype.$getUrl("settings-panel","amp-plugin-notice","https://www.monsterinsights.com/docs/how-to-get-started-with-the-google-amp-addon/")+'">',"</a>");s["a"].prototype.$mi.install_plugins&&(o=Object(c["d"])(Object(c["a"])("In order for the MonsterInsights Google AMP addon to work properly, you need to install the WordPress AMP plugin by Automattic. %1$s%2$s Plugin%3$s | %4$sLearn More%5$s","google-analytics-for-wordpress"),'<a href="'+e+'">',n,"</a>",'<a target="_blank" href="'+s["a"].prototype.$getUrl("settings-panel","amp-plugin-notice","https://www.monsterinsights.com/docs/how-to-get-started-with-the-google-amp-addon/")+'">',"</a>")),t.dispatch("$_app/addNotice",{id:"google_amp_addon",content:o,type:"error"},{root:!0})}if(ut(t,"facebook-instant-articles")&&!ut(t,"instant_articles")){var i=t.rootGetters["$_app/mi"].install_fbia_url,a=i.indexOf("activate")>0?Object(c["a"])("Activate","google-analytics-for-wordpress"):Object(c["a"])("Install","google-analytics-for-wordpress"),r=Object(c["d"])(Object(c["a"])("In order for the MonsterInsights Instant Articles addon to work properly, please ask your webmaster to install the Instant Articles for WP plugin by Automattic version 3.3.5 or newer. %1$sLearn More%2$s","google-analytics-for-wordpress"),'<a target="_blank" href="'+s["a"].prototype.$getUrl("settings-panel","fbia-plugin-notice","https://www.monsterinsights.com/docs/how-to-get-started-with-the-facebook-instant-articles-addon/")+'">',"</a>");s["a"].prototype.$mi.install_plugins&&(r=Object(c["d"])(Object(c["a"])("In order for the MonsterInsights Instant Articles addon to work properly, you need to install the Instant Articles for WP plugin by Automattic version 3.3.5 or newer. %1$s%2$s Plugin%3$s | %4$sLearn More%5$s","google-analytics-for-wordpress"),'<a href="'+i+'">',a,"</a>",'<a target="_blank" href="'+s["a"].prototype.$getUrl("settings-panel","fbia-plugin-notice","https://www.monsterinsights.com/docs/how-to-get-started-with-the-facebook-instant-articles-addon/")+'">',"</a>")),t.dispatch("$_app/addNotice",{id:"instant_articles_addon",content:r,type:"error"},{root:!0})}},ut=function(t,e){return!!t.state.addons[e]&&t.state.addons[e].active},pt=function(t,e){return rt.installAddon(t,e)},dt=function(t,e){return rt.installPlugin(t,e.slug)},ft=function(t,e){return rt.activateAddon(t,e).then((function(){lt(t)}))},ht=function(t,e){return rt.deactivateAddon(t,e).then((function(){lt(t)}))},mt=function(t){return rt.installWPForms(t)},gt={getAddons:ct,installAddon:pt,activateAddon:ft,deactivateAddon:ht,installWPForms:mt,installPlugin:dt},_t=(n("4e82"),n("ac1f"),n("841c"),function(t){return t.addons}),bt=function(t){return t.sort},vt=function(t){return t.search},yt={addons:_t,sort:bt,search:vt},wt=function(t,e){s["a"].set(t,"addons",e)},Ot=function(t,e){t.addons[e].active=!0},Ct=function(t,e){t.addons[e].active=!1},$t=function(t,e){t.addons[e.slug].installed=!0,e.basename&&(t.addons[e.slug].basename=e.basename)},jt=function(t,e){t.sort=e},kt=function(t,e){t.search=e},Et={ADDONS_UPDATED:wt,ADDON_ACTIVATED:Ot,ADDON_DEACTIVATED:Ct,ADDON_INSTALLED:$t,UPDATE_SORT:jt,UPDATE_SEARCH:kt},Pt={addons:{},search:""},xt={namespaced:!0,state:Pt,actions:gt,getters:yt,mutations:Et},Tt=n("7220"),St=function(){return new Promise((function(t){var e=s["a"].prototype.$mi.ajax,n=new FormData;n.append("action","monsterinsights_vue_get_notifications"),n.append("nonce",s["a"].prototype.$mi.nonce),D.a.post(e,n).then((function(e){if(!e.data.success)return!1;t(e.data.data)})).catch((function(){return!1}))}))},Dt=function(t){return new Promise((function(e){var n=s["a"].prototype.$mi.ajax,o=new FormData;o.append("action","monsterinsights_notification_dismiss"),o.append("nonce",s["a"].prototype.$mi.nonce),o.append("id",t),D.a.post(n,o).then((function(t){e(t.data)})).catch((function(){return!1}))}))},At={fetchNotifications:St,dismissNotification:Dt},Nt=function(t){At.fetchNotifications().then((function(e){e.notifications&&e.dismissed&&t.commit("NOTIFICATIONS_UPDATED",e),e.view_url&&t.commit("NOTIFICATIONS_URL_UPDATED",e.view_url),e.sidebar_url&&t.commit("NOTIFICATIONS_SIDEBAR_URL_UPDATED",e.sidebar_url)})).catch((function(t){console.error(t)}))},Lt=function(t,e){return new Promise((function(n,s){At.dismissNotification(e).then((function(s){s&&(t.commit("NOTIFICATION_DISMISSED",e),n(!0))})).catch((function(t){console.error(t),s(t)}))}))},It={getNotifications:Nt,dismissNotification:Lt},Ut=function(t){return t.notifications},Rt=function(t){return t.dismissed},Mt=function(t){return t.view_url},Ht=function(t){return t.sidebar_url},Bt={notifications:Ut,dismissed:Rt,view_url:Mt,sidebar_url:Ht},Ft=(n("4160"),n("a434"),n("159b"),function(t,e){t.notifications=e.notifications,t.dismissed=e.dismissed}),Vt=function(t,e){t.view_url=e},Yt=function(t,e){t.sidebar_url=e},Kt=function(t,e){t.notifications.forEach((function(n,s){n.id===e&&(t.notifications.splice(s,1),t.dismissed.splice(0,0,n)),"all"===e&&t.dismissed.splice(0,0,n)})),"all"===e&&(t.notifications=[])},Wt={NOTIFICATIONS_UPDATED:Ft,NOTIFICATIONS_URL_UPDATED:Vt,NOTIFICATIONS_SIDEBAR_URL_UPDATED:Yt,NOTIFICATION_DISMISSED:Kt},Gt={notifications:[],dismissed:[],view_url:"",sidebar_url:""},qt={namespaced:!0,state:Gt,actions:It,getters:Bt,mutations:Wt},Zt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"inline";return new Promise((function(e){var n=s["a"].prototype.$mi.ajax,o=new FormData;o.append("action","monsterinsights_get_popular_posts_themes"),o.append("nonce",s["a"].prototype.$mi.nonce),o.append("type",t),D.a.post(n,o).then((function(t){if(!t.data.success)return!1;e(t.data.data)})).catch((function(){return!1}))}))},Jt=function(t,e){return new Promise((function(t){var n=s["a"].prototype.$mi.ajax,o=new FormData;o.append("action","monsterinsights_vue_popular_posts_update_theme_setting"),o.append("nonce",s["a"].prototype.$mi.nonce),o.append("type",e.type),o.append("theme",e.theme),o.append("object",e.object),o.append("key",e.key),o.append("value",e.value),D.a.post(n,o).then((function(e){t(e.data)})).catch((function(t){if(t.response){var e=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Can't save settings. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("Network error encountered. Settings not saved.","google-analytics-for-wordpress")})}))}))},Qt={fetchThemes:Zt,updateThemeSetting:Jt},Xt=function(t,e){Qt.fetchThemes(e).then((function(n){n.themes&&t.commit("THEMES_UPDATED",{themes:n.themes,type:e})})).catch((function(t){console.error(t)}))},zt=function(t,e){t.commit("THEME_STYLE_UPDATE",e),t.commit("$_settings/SETTINGS_SAVE_START",!0,{root:!0});var n=Qt.updateThemeSetting(t,e);return n.then((function(){t.commit("$_settings/SETTINGS_SAVE_END",!0,{root:!0})})),n},te=function(t,e){e.type&&"undefined"!==typeof e.key&&t.commit("PREVIEW_UPDATED",e)},ee={getThemes:Xt,updatePreview:te,updateThemeSetting:zt},ne=function(t){return t.themes_inline},se=function(t){return t.themes_widget},oe=function(t){return t.themes_products},ie=function(t){return t.theme_preview_inline},ae=function(t){return t.theme_preview_widget},re=function(t){return t.theme_preview_products},ce={themes_inline:ne,themes_widget:se,themes_products:oe,theme_preview_inline:ie,theme_preview_widget:ae,theme_preview_products:re},le=function(t,e){e.type&&"undefined"!==typeof t["themes_"+e.type]&&(t["themes_"+e.type]=e.themes)},ue=function(t,e){e.type&&"undefined"!==typeof t["theme_preview_"+e.type]&&(t["theme_preview_"+e.type]=e.key)},pe=function(t,e){e.type&&e.theme&&e.object&&e.key&&e.value&&"undefined"!==typeof t["themes_"+e.type]&&(t["themes_"+e.type][e.theme]["styles"][e.object][e.key]=e.value)},de={THEMES_UPDATED:le,PREVIEW_UPDATED:ue,THEME_STYLE_UPDATE:pe},fe={themes_inline:{},themes_widget:{},themes_products:{},theme_preview_inline:"",theme_preview_widget:"",theme_preview_products:""},he={namespaced:!0,state:fe,actions:ee,getters:ce,mutations:de},me=function(t){t.commit("INIT")},ge=function(t){t.commit("BLOCK_APP")},_e=function(t){t.commit("UNBLOCK_APP")},be=function(t,e){t.commit("ADD_NOTICE",e)},ve=function(t,e){t.commit("REMOVE_NOTICE",e)},ye=function(t){t.commit("RESET_NOTICES")},we={init:me,block:ge,unblock:_e,addNotice:be,removeNotice:ve,resetNotices:ye},Oe=function(t){return t.blocked},Ce=function(t){return t.notices},$e=function(t){return t.mi},je=function(t){return t.ftp_form},ke={blocked:Oe,notices:Ce,mi:$e,ftp_form:je},Ee=function(){},Pe=function(t){t.blocked=!0},xe=function(t){t.blocked=!1},Te=function(t,e){e.id&&s["a"].set(t.notices,e.id,e)},Se=function(t,e){t.notices[e]&&s["a"].delete(t.notices,e)},De=function(t){t.notices={}},Ae=function(t,e){t.ftp_form.hostname=e},Ne=function(t,e){t.ftp_form.username=e},Le=function(t,e){t.ftp_form.password=e},Ie=function(t,e){t.ftp_form.connection_type=e},Ue=function(t,e){t.ftp_form.visible=!0,t.ftp_form.action=e.action,t.ftp_form.data=e.data},Re=function(t){t.ftp_form.visible=!1},Me={INIT:Ee,BLOCK_APP:Pe,UNBLOCK_APP:xe,ADD_NOTICE:Te,REMOVE_NOTICE:Se,RESET_NOTICES:De,UPDATE_HOSTNAME:Ae,UPDATE_USERNAME:Ne,UPDATE_PASSWORD:Le,UPDATE_CONNECTION_TYPE:Ie,SHOW_FTP_FORM:Ue,HIDE_FTP_FORM:Re},He={blocked:!1,notices:{},mi:window.monsterinsights?window.monsterinsights:{},ftp_form:{hostname:"",username:"",password:"",connection_type:"ftp",visible:!1,action:"",data:{}}},Be={namespaced:!0,state:He,actions:we,getters:ke,mutations:Me},Fe=function(t){t.subscribe((function(e,n){if("$_app/INIT"===e.type){var s=n["$_app"].mi.versions;s.php_version_below_54?t.commit("$_app/ADD_NOTICE",{title:Object(c["a"])("Yikes! PHP Update Required","google-analytics-for-wordpress"),content:Object(c["d"])(Object(c["a"])("MonsterInsights has detected that your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked. WordPress stopped supporting your PHP version in April, 2019. Updating to the recommended version (PHP %2$s) only takes a few minutes and will make your website significantly faster and more secure.","google-analytics-for-wordpress"),s.php_version,"7.4"),type:"error",button:{enabled:!0,text:Object(c["a"])("Learn more about updating PHP","google-analytics-for-wordpress"),link:s.php_update_link},dismissable:!0,id:"php_update_54"}):s.wp_version_below_46?t.commit("$_app/ADD_NOTICE",{title:Object(c["a"])("Yikes! WordPress Update Required","google-analytics-for-wordpress"),content:Object(c["d"])(Object(c["a"])("MonsterInsights has detected that your site is running an outdated version of WordPress (%s). MonsterInsights will stop supporting WordPress versions lower than 4.9 in 2020. Updating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.","google-analytics-for-wordpress"),s.wp_version),type:"error",button:{enabled:!0,text:Object(c["a"])("Learn more about updating WordPress","google-analytics-for-wordpress"),link:s.wp_update_link},dismissable:!0,id:"wp_update_46"}):s.php_version_below_56?t.commit("$_app/ADD_NOTICE",{title:Object(c["a"])("Yikes! PHP Update Required","google-analytics-for-wordpress"),content:Object(c["d"])(Object(c["a"])("MonsterInsights has detected that your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked. Updating to the recommended version (PHP %2$s) only takes a few minutes and will make your website significantly faster and more secure.","google-analytics-for-wordpress"),s.php_version,"7.4"),type:"error",button:{enabled:!0,text:Object(c["a"])("Learn more about updating PHP","google-analytics-for-wordpress"),link:s.php_update_link},dismissable:!0,id:"php_update_56"}):s.wp_version_below_49&&t.commit("$_app/ADD_NOTICE",{title:Object(c["a"])("Yikes! WordPress Update Required","google-analytics-for-wordpress"),content:Object(c["d"])(Object(c["a"])("MonsterInsights has detected that your site is running an outdated version of WordPress (%s). Updating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.","google-analytics-for-wordpress"),s.wp_version),type:"error",button:{enabled:!0,text:Object(c["a"])("Learn more about updating WordPress","google-analytics-for-wordpress"),link:s.wp_update_link},dismissable:!0,id:"wp_update_49"})}}))},Ve=Fe;s["a"].use(o["a"]);var Ye=[Ve];e["a"]=new o["a"].Store({modules:{$_app:Be,$_license:T,$_auth:tt,$_addons:xt,$_settings:Tt["a"],$_notifications:qt,$_popularposts:he},plugins:Ye})},"46a2":function(t,e,n){},"470e":function(t,e,n){var s=n("a1d2"),o=n.n(s);o.a},"48c7":function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.noauth?t._e():n("div",{staticClass:"monsterinsights-upsell-overlay"},[n("div",{staticClass:"monsterinsights-upsell-top"},[t.upsellData.title?n("h3",{domProps:{textContent:t._s(t.upsellData.title)}}):t._e(),t.upsellData.subtitle?n("p",{staticClass:"monsterinsights-upsell-subtitle",domProps:{textContent:t._s(t.upsellData.subtitle)}}):t._e()]),n("div",{staticClass:"monsterinsights-upsell-content"},[t.upsellData.features?n("ul",t._l(t.upsellData.features,(function(e,s){return n("li",{key:s,domProps:{textContent:t._s(e)}})})),0):t._e(),n("div",{staticClass:"monsterinsights-center"},[n("a",{staticClass:"monsterinsights-button",attrs:{href:t.upgrade_link,target:"_blank"},domProps:{textContent:t._s(t.text_upsell_button)}})])])])},o=[],i=(n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b"),n("fc11")),a=n("2f62"),r=n("561c");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={name:"ReportUpsellOverlay",props:{report:String},data:function(){return{upgrade_link:this.$getUpgradeUrl("report",this.report),text_upsell_button:Object(r["a"])("Upgrade to MonsterInsights Pro","google-analytics-for-wordpress")}},computed:l({},Object(a["b"])({noauth:"$_reports/noauth"}),{upsellData:function(){return this.$mi_get_upsell_content(this.report)}})},p=u,d=n("2877"),f=Object(d["a"])(p,s,o,!1,null,null,null);e["a"]=f.exports},"4bdc":function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monsterinsights-navigation-bar"},[n("div",{staticClass:"monsterinsights-container"},[t._t("default")],2)])},o=[],i={name:"TheAppNavigation"},a=i,r=n("2877"),c=Object(r["a"])(a,s,o,!1,null,null,null);e["a"]=c.exports},5443:function(t,e,n){var s=n("0f8f"),o=n.n(s);o.a},"54b6":function(t,e,n){var s={isThemeAvailable:function(t){return"lite"===t},canaccess:function(){return!1}};e["a"]=s},"5eda":function(t,e,n){},"6d70":function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("fieldset",[n("div",{staticClass:"monsterinsights-settings-input-radio"},t._l(t.options,(function(e){return n("span",{key:e.value},[n("label",{class:t.labelClass(e),attrs:{for:"monsterinsights-settings-radio-"+t.name+"["+e.value+"]"}},[n("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltip_data,expression:"tooltip_data"}],class:t.titleClass(e.value)}),n("input",{attrs:{id:"monsterinsights-settings-radio-"+t.name+"["+e.value+"]",type:"radio",name:t.name,autocomplete:"off",readonly:t.disabled||e.level&&!t.optionAvailable(e.level)},domProps:{value:e.value,checked:t.isChecked(e.value)},on:{change:t.updateSetting}}),n("span",{staticClass:"monsterinsights-settings-radio-text",domProps:{innerHTML:t._s(e.label)}}),e.level?n("PopularPostsProPill",{attrs:{level:e.level}}):t._e()],1),t.$slots[e.value]&&t.isChecked(e.value)?n("span",{staticClass:"monsterinsights-radio-sub-panel"},[t.isChecked(e.value)?t._t(e.value):t._e()],2):t._e()])})),0)])},o=[],i=(n("a4d3"),n("4de4"),n("4160"),n("b0c0"),n("e439"),n("dbb4"),n("b64b"),n("159b"),n("fc11")),a=n("2f62"),r=n("17be"),c=n("54b6");function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p={name:"SettingsInputRadio",components:{PopularPostsProPill:r["a"]},props:{options:Array,name:String,auth_disabled:{type:Boolean,default:!0}},data:function(){return{is_loading:!1,has_error:!1}},computed:u({},Object(a["b"])({settings:"$_settings/settings",auth:"$_auth/auth",license:"$_license/license",license_network:"$_license/license_network"}),{has_ua:function(){var t=this.auth.network_ua?this.auth.network_ua:this.auth.ua;return t||(t=this.auth.network_manual_ua?this.auth.network_manual_ua:this.auth.manual_ua),""!==t},tooltip_data:function(){return{content:this.disabled?this.$mi_need_to_auth:"",autoHide:!1,trigger:"hover focus click"}},disabled:function(){return!!this.auth_disabled&&!this.has_ua},licenseType:function(){return this.$mi.network?this.license_network.type:this.license.type}}),methods:{optionAvailable:function(t){return c["a"].canaccess(this.licenseType,t)},updateSetting:function(t){var e=this;if(this.disabled)return!1;this.$emit("change",t.target.value),this.$mi_saving_toast({}),this.$store.dispatch("$_settings/updateSettings",{name:this.name,value:t.target.value}).then((function(n){n.success?(e.$emit("updated",t.target.value),e.$mi_success_toast({})):e.$mi_error_toast({})}))},titleClass:function(t){var e="monsterinsights-styled-radio";return this.isChecked(t)&&(e+=" monsterinsights-styled-radio-checked"),e},labelClass:function(t){var e="";return this.isChecked(t.value)&&(e+=" monsterinsights-styled-radio-label-checked"),t.level&&!this.optionAvailable(t.level)&&(e+=" monsterinsights-styled-radio-label-disabled"),e},isChecked:function(t){return this.settings[this.name]?t===this.settings[this.name]:t===this.options[0].value}}},d=p,f=n("2877"),h=Object(f["a"])(d,s,o,!1,null,null,null);e["a"]=h.exports},"6ffa":function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monsterinsights-settings-input-repeater"},[t.rows.length?n("div",{staticClass:"monsterinsights-settings-input-repeater-labels monsterinsights-settings-input-repeater-row"},t._l(t.structure,(function(e,s){return n("label",{key:s,domProps:{textContent:t._s(e.label)}})})),0):t._e(),t._l(t.rows,(function(e,s){return[n("div",{key:s,staticClass:"monsterinsights-settings-input-repeater-row"},[t._l(t.structure,(function(e,o){return n("span",{key:o,class:t.errorClass(s,e.name)},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.rows[s][e.name],expression:"rows[index][input.name]"}],attrs:{type:"text",readonly:t.disabled},domProps:{value:t.rows[s][e.name]},on:{change:function(n){return t.updateSetting(!1,e.pattern)},input:function(n){n.target.composing||t.$set(t.rows[s],e.name,n.target.value)}}})])})),n("button",{attrs:{title:t.text_remove_row},on:{click:function(e){return e.preventDefault(),t.removeRow(s)}}},[n("i",{class:t.delete_icon})])],2),t.has_errors[s]?n("label",{key:s+"error",staticClass:"monsterinsights-error"},[n("i",{staticClass:"monstericon-warning-triangle"}),n("span",{domProps:{innerHTML:t._s(t.has_errors[s])}})]):t._e()]})),t.show_max_item_error?n("label",{staticClass:"monsterinsights-error"},[n("i",{staticClass:"monstericon-warning-triangle"}),n("span",{domProps:{innerHTML:t._s(t.max_item_error_notice)}})]):t._e(),t.show_min_item_error?n("label",{staticClass:"monsterinsights-error"},[n("i",{staticClass:"monstericon-warning-triangle"}),n("span",{domProps:{innerHTML:t._s(t.min_item_error_notice)}})]):t._e(),n("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltip_data,expression:"tooltip_data"}],class:t.button_class,domProps:{textContent:t._s(t.text_add_path)},on:{click:function(e){return e.preventDefault(),t.addRow(e)}}})],2)},o=[],i=(n("a4d3"),n("4de4"),n("4160"),n("c975"),n("a434"),n("b0c0"),n("a9e3"),n("e439"),n("dbb4"),n("b64b"),n("159b"),n("fc11")),a=n("2b0e"),r=n("561c"),c=n("2f62");function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p={name:"SettingsInputRepeater",props:{structure:Array,name:String,text_add:String,delete_icon:{type:String,default:"monstericon-times-circle"},max_items:{type:Number,default:-1},min_items:{type:Number,default:-1},max_item_error_notice:{type:String,default:Object(r["a"])("You can add maximum 5 items.","google-analytics-for-wordpress")},min_item_error_notice:{type:String,default:Object(r["a"])("At least 0 item required.","google-analytics-for-wordpress")}},data:function(){return{text_add_path:this.text_add?this.text_add:Object(r["a"])("Add Another Link Path","google-analytics-for-wordpress"),text_remove_row:Object(r["a"])("Remove row","google-analytics-for-wordpress"),has_errors:[],show_max_item_error:!1,show_min_item_error:!1}},computed:u({},Object(c["b"])({settings:"$_settings/settings",auth:"$_auth/auth"}),{rows:{get:function(){return this.settings[this.name]||a["a"].set(this.settings,this.name,[]),JSON.parse(JSON.stringify(this.settings[this.name]))},set:function(){this.updateSetting(!1)}},has_ua:function(){var t=this.auth.network_ua?this.auth.network_ua:this.auth.ua;return t||(t=this.auth.network_manual_ua?this.auth.network_manual_ua:this.auth.manual_ua),""!==t},disabled:function(){return!this.has_ua},tooltip_data:function(){return{content:this.has_ua?"":this.$mi_need_to_auth,autoHide:!1,trigger:"hover focus click"}},button_class:function(){var t="monsterinsights-button";return this.disabled&&(t+=" monsterinsights-button-disabled"),t}}),methods:{updateSetting:function(t){var e=this;return!this.disabled&&(!(!t&&!this.validateSettings())&&(this.$mi_saving_toast({}),void this.$store.dispatch("$_settings/updateSettings",{name:this.name,value:this.rows}).then((function(t){t.success?e.$mi_success_toast({}):e.$mi_error_toast({})}))))},addRow:function(){var t={};if(this.rows.length!==this.max_items){for(var e in this.structure)t[this.structure[e]["name"]]="";this.rows.push(t),this.rows.length!==this.min_items&&(this.show_min_item_error=!1),this.updateSetting(!0)}else this.show_max_item_error=!0},removeRow:function(t){this.rows.length!==this.min_items?(this.rows&&this.rows instanceof Array?this.rows.splice(t,1):this.rows="",this.rows.length!==this.max_items&&(this.show_max_item_error=!1),this.updateSetting()):this.show_min_item_error=!0},validateSettings:function(){var t=this;this.has_errors=[];var e={};for(var n in this.rows)for(var s in this.structure){if(""===this.rows[n][this.structure[s]["name"]]){this.has_errors[n]=Object(r["d"])(Object(r["a"])("%s can't be empty.","google-analytics-for-wordpress"),"<strong>"+this.structure[s]["label"]+"</strong>");break}if(this.structure[s]["pattern"]){var o=this.structure[s]["pattern"].test(this.rows[n][this.structure[s]["name"]]);if(!1===o){this.has_errors[n]=this.structure[s]["error"];break}}this.structure[s]["prevent_duplicates"]&&function(){"undefined"===typeof e[t.structure[s]["name"]]&&(e[t.structure[s]["name"]]=[]),e[t.structure[s]["name"]].push(t.rows[n][t.structure[s]["name"]]);var o=e[t.structure[s]["name"]],i=function(){return o.filter((function(t,e){return o.indexOf(t)===e}))};o.length!==i(o).length&&(t.has_errors[n]=Object(r["a"])("Duplicate values are not allowed.","google-analytics-for-wordpress"))}()}return 0===this.has_errors.length},errorClass:function(t,e){return""===this.rows[t][e]?"":this.has_errors[t]?"monsterinsights-input-error":"monsterinsights-input-valid"}}},d=p,f=n("2877"),h=Object(f["a"])(d,s,o,!1,null,null,null);e["a"]=h.exports},7220:function(t,e,n){n("4795"),n("b0c0"),n("d3b7");var s=n("bc3a"),o=n.n(s),i=n("2b0e"),a=n("561c"),r=function(t){return new Promise((function(e){var n=new FormData;n.append("action","monsterinsights_vue_get_settings"),n.append("nonce",i["a"].prototype.$mi.nonce),o.a.post(i["a"].prototype.$mi.ajax,n).then((function(t){i["a"].prototype.$swal.close(),e(t.data)})).catch((function(e){if(t.dispatch("$_app/block",!1,{root:!0}),e.response){var n=e.response;return i["a"].prototype.$mi_error_toast({title:Object(a["d"])(Object(a["a"])("Can't load settings. Error: %1$s, %2$s","google-analytics-for-wordpress"),n.status,n.statusText)})}i["a"].prototype.$mi_error_toast({title:Object(a["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},c=function(t,e){return new Promise((function(t){var n=new FormData;n.append("action","monsterinsights_vue_update_settings"),n.append("nonce",i["a"].prototype.$mi.nonce),n.append("setting",e.name),!1!==e.value&&(Array===e.value.constructor?n.append("value",JSON.stringify(e.value)):n.append("value",e.value)),o.a.post(i["a"].prototype.$mi.ajax,n).then((function(e){t(e.data)})).catch((function(t){if(t.response){var e=t.response;return i["a"].prototype.$mi_error_toast({title:Object(a["d"])(Object(a["a"])("Can't save settings. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}i["a"].prototype.$mi_error_toast({title:Object(a["a"])("Network error encountered. Settings not saved.","google-analytics-for-wordpress")})}))}))},l=function(t,e){return new Promise((function(t){var n=new FormData;n.append("action","monsterinsights_vue_update_settings_bulk"),n.append("nonce",i["a"].prototype.$mi.nonce),n.append("settings",JSON.stringify(e)),o.a.post(i["a"].prototype.$mi.ajax,n).then((function(e){t(e.data)})).catch((function(t){if(t.response){var e=t.response;return i["a"].prototype.$mi_error_toast({title:Object(a["d"])(Object(a["a"])("Can't save settings. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}i["a"].prototype.$mi_error_toast({title:Object(a["a"])("Network error encountered. Settings not saved.","google-analytics-for-wordpress")})}))}))},u={fetchSettings:r,saveSettings:c,saveBulkSettings:l},p=function(t){u.fetchSettings(t).then((function(e){t.commit("SETTINGS_UPDATED",e)})).catch((function(t){console.error(t)}))},d=function(t,e){t.commit("SETTING_UPDATE",e),t.commit("SETTINGS_SAVE_START");var n=u.saveSettings(t,e);return n.then((function(){t.commit("SETTINGS_SAVE_END")})),n},f=function(t,e){t.commit("SETTINGS_BULK_UPDATE",e),t.commit("SETTINGS_SAVE_START");var n=u.saveBulkSettings(t,e);return n.then((function(){t.commit("SETTINGS_SAVE_END")})),n},h=function(t,e){t.commit("SETTING_UPDATE_UNDO",e),t.commit("SETTINGS_SAVE_START");var n=u.saveSettings(t,e);return n.then((function(){t.commit("SETTINGS_SAVE_END")})),n},m=function(t,e){t.commit("SETTING_UPDATE_REDO",e),t.commit("SETTINGS_SAVE_START");var n=u.saveSettings(t,e);return n.then((function(){t.commit("SETTINGS_SAVE_END")})),n},g=function(t){t.commit("SETTINGS_SAVE_START"),i["a"].prototype.$mi_saving_toast({}),setTimeout((function(){t.commit("SETTINGS_SAVE_END"),i["a"].prototype.$mi_success_toast({})}),1e3)},_=function(t){t.dispatch("updateSettingsUndo",t.state.history[t.state.historyIndex-1])},b=function(t){t.dispatch("updateSettingsRedo",t.state.history[t.state.historyIndex+1])},v={getSettings:p,updateSettings:d,simulateSave:g,undo:_,redo:b,updateSettingsUndo:h,updateSettingsRedo:m,updateSettingsBulk:f},y=function(t){return t.settings},w=function(t){return t.history},O=function(t){return t.historyIndex},C={settings:y,history:w,historyIndex:O},$=(n("a434"),function(t,e){e.is_saving=!1,t.settings=e}),j=function(t,e){t.settings.is_saving=!0,t.history[t.historyIndex]&&t.history[t.historyIndex].name===e.name||(t.history.push({name:e.name,value:!!t.settings[e.name]&&t.settings[e.name]}),t.historyIndex++),t.historyIndex<t.history.length-1&&t.history.splice(t.historyIndex+1),t.history.push({name:e.name,value:e.value}),t.historyIndex++,i["a"].set(t.settings,e.name,e.value)},k=function(t,e){for(var n in t.settings.is_saving=!0,e)e.hasOwnProperty(n)&&i["a"].set(t.settings,n,e[n])},E=function(t,e){t.settings.is_saving=!0,t.historyIndex--,i["a"].set(t.settings,e.name,e.value)},P=function(t,e){t.settings.is_saving=!0,t.historyIndex++,i["a"].set(t.settings,e.name,e.value)},x=function(t){t.settings.is_saving=!0},T=function(t){t.settings.is_saving=!1},S={SETTINGS_UPDATED:$,SETTING_UPDATE:j,SETTINGS_SAVE_START:x,SETTINGS_SAVE_END:T,SETTING_UPDATE_UNDO:E,SETTING_UPDATE_REDO:P,SETTINGS_BULK_UPDATE:k},D={settings:{automatic_updates:"all"},history:[],historyIndex:-1};e["a"]={namespaced:!0,state:D,actions:v,getters:C,mutations:S}},7460:function(t,e,n){n("c975"),n("a9e3"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),n("5319");var s=n("2b0e"),o={install:function(t){window.monsterinsights&&(t.prototype.$mi=window.monsterinsights),t.prototype.$isPro=r,t.prototype.$addQueryArg=c,t.prototype.$getUrl=a,t.prototype.$getUpgradeUrl=i,t.prototype.$formatNumber=l}};function i(t,e,n){var s=a(t,e,n);return r()?s:"0"!==window.monsterinsights.shareasale_id?c(window.monsterinsights.shareasale_url,"urllink",s):s}function a(t,e,n){var o=r()?"proplugin":"liteplugin",i=r()?"my-account/":"lite/",a=s["a"].prototype.$mi.plugin_version;return t=t||"defaultmedium",e=e||"defaultcampaign",n=n||"https://www.monsterinsights.com/"+i,n=c(n,"utm_source",o),n=c(n,"utm_medium",t),n=c(n,"utm_campaign",e),n=c(n,"utm_content",a),n}function r(){return!1}function c(t,e,n){var s=new RegExp("([?&])"+e+"=.*?(&|#|$)","i");if(t.match(s))return t.replace(s,"$1"+e+"="+n+"$2");var o="";-1!==t.indexOf("#")&&(o=t.replace(/.*#/,"#"),t=t.replace(/#.*/,""));var i=-1!==t.indexOf("?")?"&":"?";return t+i+e+"="+n+o}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return"number"!==typeof t&&(t=Number(t||0)),t.toLocaleString("en-US",{maximumFractionDigits:e})}e["a"]=o},"7f78":function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monsterinsights-addon"},[n("div",{staticClass:"monsterinsights-addon-top"},[t.addon.icon?n("div",{staticClass:"monsterinsights-addon-image"},[n("img",{staticClass:"monsterinsights-addon-thumb",attrs:{src:t.addon.icon,alt:t.addon.title}})]):t._e(),n("div",{staticClass:"monsterinsights-addon-text"},[n("h3",{staticClass:"monsterinsights-addon-title",domProps:{textContent:t._s(t.addonTitle)}}),t.addon.excerpt?n("p",{staticClass:"monsterinsights-addon-excerpt",domProps:{textContent:t._s(t.addon.excerpt)}}):t._e()])]),n("div",{class:t.actionsClass()},[n("div",{staticClass:"monsterinsights-interior"},[n("span",{staticClass:"monsterinsights-addon-status",domProps:{innerHTML:t._s(t.statusText())}}),n("div",{staticClass:"monsterinsights-addon-action"},["licensed"===t.addon.type?n("button",{staticClass:"monsterinsights-button",on:{click:function(e){return e.preventDefault(),t.clickAction(e)}}},[n("span",{domProps:{innerHTML:t._s(t.textButtonAction())}})]):n("a",{staticClass:"monsterinsights-button",attrs:{href:t.upgrade_url,target:"_blank"},domProps:{textContent:t._s(t.textButtonAction())}})])])])])},o=[],i=(n("c975"),n("ac1f"),n("5319"),n("561c")),a={name:"AddonBlock",props:{addon:Object,isAddon:{type:Boolean,default:!0}},data:function(){return{text_status:Object(i["a"])("Status: %s","google-analytics-for-wordpress"),text_upgrade:Object(i["a"])("Upgrade Now","google-analytics-for-wordpress"),upgrade_url:this.$getUpgradeUrl(),activating:!1,deactivating:!1,installing:!1}},computed:{addonTitle:function(){var t=this.addon.title;return 0===t.indexOf("MonsterInsights")&&(t=t.replace("MonsterInsights ","")),t}},methods:{actionsClass:function(){var t="monsterinsights-addon-message ";return"licensed"===this.addon.type?this.addon.active?t+="monsterinsights-addon-active":!1===this.addon.installed?t+="monsterinsights-addon-not-installed":t+="monsterinsights-addon-inactive":t+="monsterinsights-addon-not-available",t},statusText:function(){var t=Object(i["a"])("Not Installed","google-analytics-for-wordpress");return"licensed"!==this.addon.type?t=Object(i["a"])("Not Available","google-analytics-for-wordpress"):this.addon.active?t=this.$mi.network?Object(i["a"])("Network Active","google-analytics-for-wordpress"):Object(i["a"])("Active","google-analytics-for-wordpress"):this.addon.installed&&(t=Object(i["a"])("Inactive","google-analytics-for-wordpress")),Object(i["d"])(this.text_status,"<span>"+t+"</span>")},textButtonAction:function(){return"licensed"!==this.addon.type?Object(i["a"])("Upgrade Now","google-analytics-for-wordpress"):this.activating?Object(i["a"])("Activating...","google-analytics-for-wordpress"):this.deactivating?Object(i["a"])("Deactivating...","google-analytics-for-wordpress"):this.installing?Object(i["a"])("Installing...","google-analytics-for-wordpress"):this.addon.active?Object(i["a"])("Deactivate","google-analytics-for-wordpress"):this.addon.installed?Object(i["a"])("Activate","google-analytics-for-wordpress"):Object(i["a"])("Install","google-analytics-for-wordpress")},clickAction:function(){if(this.activating||this.deactivating||this.installing)return!1;this.addon.installed?this.addon.active?this.deactivateAddon():this.activateAddon():this.installAddon()},installAddon:function(){var t=this,e=this.isAddon?"$_addons/installAddon":"$_addons/installPlugin";this.installing=!0,this.$store.dispatch(e,this.addon).then((function(){t.installing=!1})).catch((function(){t.installing=!1}))},activateAddon:function(){var t=this;this.activating=!0,this.$store.dispatch("$_addons/activateAddon",this.addon).then((function(){t.activating=!1})).catch((function(){t.activating=!1}))},deactivateAddon:function(){var t=this;this.deactivating=!0,this.$store.dispatch("$_addons/deactivateAddon",this.addon).then((function(){t.deactivating=!1})).catch((function(){t.deactivating=!1}))}}},r=a,c=n("2877"),l=Object(c["a"])(r,s,o,!1,null,null,null);e["a"]=l.exports},"8c1c":function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monsterinsights-not-authenticated-notice"},[n("h3",{domProps:{textContent:t._s(t.text_no_auth)}}),n("p",{domProps:{textContent:t._s(t.text_auth_label)}}),n("p",[n("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.text_button_reconnect)},on:{click:t.doReAuth}})])])},o=[],i=n("561c"),a={name:"ReportReAuth",data:function(){return{text_no_auth:Object(i["a"])("MonsterInsights encountered an error loading your report data","google-analytics-for-wordpress"),text_auth_label:Object(i["a"])("There is an issue with your Google Account authentication. Please use the button below to fix it by re-authenticating.","google-analytics-for-wordpress"),text_button_reconnect:Object(i["a"])("Reconnect MonsterInsights","google-analytics-for-wordpress")}},methods:{doReAuth:function(t){t.preventDefault();var e=this;this.$swal({type:"info",title:Object(i["a"])("Re-Authenticating","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,onOpen:function(){e.$swal.showLoading()}}),this.$store.dispatch("$_auth/doReAuth",this.is_network).then((function(t){t.data.redirect?window.location=t.data.redirect:e.$swal({type:"error",title:Object(i["a"])("Error","google-analytics-for-wordpress"),text:t.data.message,confirmButtonText:Object(i["a"])("Ok","google-analytics-for-wordpress")})}))}}},r=a,c=n("2877"),l=Object(c["a"])(r,s,o,!1,null,null,null);e["a"]=l.exports},"93ec":function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltip_data,expression:"tooltip_data"}],staticClass:"monsterinsights-info",attrs:{tabindex:"0"}},[n("i",{staticClass:"monstericon monstericon-info-circle-regular"})])},o=[],i={name:"SettingsInfoTooltip",props:{content:String},data:function(){return{tooltip_data:{content:this.content,autoHide:!1,trigger:"hover focus click"}}}},a=i,r=n("2877"),c=Object(r["a"])(a,s,o,!1,null,null,null);e["a"]=c.exports},"9cc2":function(t,e,n){},"9d59":function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monsterinsights-notices-area"},[n("div",{staticClass:"monsterinsights-container"},[n("slide-down-up",{attrs:{group:!0}},t._l(t.notices,(function(e,s){return n("div",{key:s,class:t.getNoticeClass(e.type)},[n("div",{staticClass:"monsterinsights-notice-inner"},[e.dismissable?n("button",{staticClass:"dismiss-notice",on:{click:function(e){return t.removeNotice(s)}}},[n("i",{staticClass:"monstericon-times"})]):t._e(),n("div",{staticClass:"notice-content"},[e.title?n("h2",{staticClass:"notice-title",domProps:{innerHTML:t._s(e.title)}}):t._e(),n("span",{domProps:{innerHTML:t._s(e.content)}}),e.button&&e.button.enabled?n("div",{staticClass:"monsterinsights-notice-button"},[n("a",{class:t.buttonClass(e.type),attrs:{target:"_blank",href:e.button.link},domProps:{textContent:t._s(e.button.text)}})]):t._e()])])])})),0)],1)])},o=[],i=(n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b"),n("fc11")),a=n("2f62"),r=n("d98d");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={name:"TheAppNotices",components:{SlideDownUp:r["a"]},computed:l({},Object(a["b"])({notices:"$_app/notices"})),methods:{removeNotice:function(t){this.$store.dispatch("$_app/removeNotice",t)},getNoticeClass:function(t){return"monsterinsights-notice monsterinsights-notice-"+t},buttonClass:function(t){var e="monsterinsights-button";return"success"===t&&(e+=" monsterinsights-button-green"),e}}},p=u,d=n("2877"),f=Object(d["a"])(p,s,o,!1,null,null,null);e["a"]=f.exports},a158:function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"tools-prettylinks-flow"!==t.route?n("header",{staticClass:"monsterinsights-header"},[n("the-floating-bar"),n("div",{staticClass:"monsterinsights-container"},[n("div",{staticClass:"monsterinsights-logo-area"},[n("img",{attrs:{src:t.logo,srcset:t.logo2x}})]),n("div",{staticClass:"monsterinsights-float-right"},[t._t("default")],2)])],1):t._e()},o=[],i=(n("b0c0"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"monsterinsights-slide"}},[t.showBar?n("div",{staticClass:"monsterinsights-floating-bar"},[n("span",{domProps:{innerHTML:t._s(t.barText)}}),n("button",{staticClass:"monsterinsights-floating-bar-close",on:{click:t.hideBar}},[n("span",{staticClass:"monstericon-times"})])]):t._e()])}),a=[],r=(n("4795"),n("c8cf"),n("561c")),c=n("bc3a"),l=n.n(c),u={name:"TheFloatingBar",data:function(){return{showBar:!1,barLink:this.$getUpgradeUrl("floatbar","upgrade")}},computed:{barText:function(){return Object(r["d"])(Object(r["a"])("You're using %1$s%2$s Lite%3$s. To unlock more features consider %4$supgrading to Pro%5$s.","google-analytics-for-wordpress"),"<span>","MonsterInsights","</span>",'<a href="'+this.barLink+'" target="_blank">',"</a>")}},methods:{hideBar:function(){this.showBar=!1;var t=new FormData;t.append("action","monsterinsights_hide_floatbar"),t.append("nonce",this.$mi.nonce),l.a.post(this.$mi.ajax,t)},getBarStatus:function(){var t=this,e=new FormData;e.append("action","monsterinsights_get_floatbar"),e.append("nonce",this.$mi.nonce),l.a.post(this.$mi.ajax,e).then((function(e){t.showBar=e.data.show})).catch((function(){t.showBar=!1}))}},mounted:function(){var t=this;setTimeout((function(){t.getBarStatus()}),1500)}},p=u,d=n("2877"),f=Object(d["a"])(p,i,a,!1,null,null,null),h=f.exports,m={name:"TheAppHeader",components:{TheFloatingBar:h},data:function(){return{logo:this.$mi.assets+"/img/logo-MonsterInsights.png",logo2x:this.$mi.assets+"/img/logo-MonsterInsights@2x.png 2x"}},computed:{route:function(){return this.$route.name}}},g=m,_=(n("014b"),Object(d["a"])(g,s,o,!1,null,"408df493",null));e["a"]=_.exports},a1d2:function(t,e,n){},a4cc:function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monsterinsights-welcome-overlay",attrs:{id:t.id},on:{click:t.maybeClose}},[n("div",{staticClass:"monsterinsights-welcome-overlay-inner"},[n("button",{staticClass:"monsterinsights-overlay-close",on:{click:t.close}},[n("span",{staticClass:"monstericon-times"})]),n("div",{staticClass:"monsterinsights-welcome-overlay-content"},[t._t("default")],2)])])},o=[],i={name:"WelcomeOverlay",props:{id:String},methods:{close:function(){this.$emit("close",this.id)},maybeClose:function(t){t.target.classList.contains("monsterinsights-welcome-overlay")&&this.close()}}},a=i,r=n("2877"),c=Object(r["a"])(a,s,o,!1,null,null,null);e["a"]=c.exports},aa9f:function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monsterinsights-settings-input-select"},[t.label?n("label",{attrs:{for:t.id}},[n("span",{staticClass:"monsterinsights-dark",domProps:{innerHTML:t._s(t.label)}}),t.description?n("span",{domProps:{innerHTML:t._s(t.description)}}):t._e(),t.tooltip?n("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e()],1):t._e(),n("div",{staticClass:"monsterinsights-settings-input-select-input"},[n("multiselect",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.disabled_tooltip,expression:"disabled_tooltip"}],attrs:{options:t.options,multiple:t.multiple,"track-by":"value",label:"label",searchable:!1,selectLabel:"",selectedLabel:"",deselectLabel:"",readonly:t.disabled},on:{input:t.updateSetting},scopedSlots:t._u([{key:"selection",fn:function(e){e.search;var s=e.remove,o=e.values;return[n("div",{staticClass:"multiselect__tags-wrap",attrs:{"data-text":t.addtext}},[t._l(o,(function(e,o){return[n("span",{key:o,class:t.tagClass(e)},[n("span",{domProps:{textContent:t._s(e.label)}}),n("i",{staticClass:"multiselect__tag-icon",attrs:{"aria-hidden":"true",tabindex:"0"},on:{keypress:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:(n.preventDefault(),s(e))},mousedown:function(t){return t.preventDefault(),s(e)}}})])]}))],2)]}}]),model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}})],1)])},o=[],i=(n("a4d3"),n("4de4"),n("4160"),n("c975"),n("b0c0"),n("e439"),n("dbb4"),n("b64b"),n("159b"),n("fc11")),a=n("561c"),r=n("2f62"),c=n("8e5f"),l=n.n(c),u=n("93ec");function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={name:"SettingsInputSelect",components:{SettingsInfoTooltip:u["a"],Multiselect:l.a},props:{options:Array,forced:{type:Array,default:function(){return[]}},name:String,label:String,description:String,multiple:{type:Boolean,default:!1},tooltip:String,disabled:{type:Boolean,default:!1},addtext:String},data:function(){return{is_loading:!1,has_error:!1,id:"input-"+this.name,text_no_options:Object(a["a"])("No options available","google-analytics-for-wordpress")}},computed:d({},Object(r["b"])({settings:"$_settings/settings"}),{selected:{get:function(){var t=JSON.parse(JSON.stringify(this.forced));if(this.settings[this.name])for(var e in this.options)this.settings[this.name].indexOf(this.options[e].value)>=0&&this.notForced(this.options[e])&&t.push(this.options[e]);return t},set:function(){}},disabled_tooltip:function(){return{content:this.disabled?this.$mi_need_to_auth:"",autoHide:!1,trigger:"hover focus click"}}}),methods:{updateSetting:function(t){var e=this;if(this.disabled)return!1;this.$mi_saving_toast({});var n=[];for(var s in t)n.push(t[s].value);this.$store.dispatch("$_settings/updateSettings",{name:this.name,value:n}).then((function(t){t.success?e.$mi_success_toast({}):e.$mi_error_toast({})}))},notForced:function(t){for(var e in this.forced)if(this.forced[e].value===t.value)return!1;return!0},tagClass:function(t){var e="multiselect__tag";return this.notForced(t)||(e+=" monsterinsights-tag-forced"),e}}},h=f,m=(n("470e"),n("2877")),g=Object(m["a"])(h,s,o,!1,null,"7262cc05",null);e["a"]=g.exports},ac39:function(t,e,n){},b333:function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monsterinsights-settings-network-notice"},[t._m(0),n("div",{staticClass:"monsterinsights-network-message"},[t._t("default")],2)])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"monsterinsights-bg-img monsterinsights-icon-warning"})])}],i={name:"SettingsNetworkNotice"},a=i,r=(n("5443"),n("2877")),c=Object(r["a"])(a,s,o,!1,null,"a9c27d52",null);e["a"]=c.exports},b52e:function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.boxClass},[n("button",{staticClass:"monsterinsights-quick-links-label",on:{click:function(e){e.stopPropagation(),t.showMenu=!t.showMenu}}},[n("span",{staticClass:"monsterinsights-bg-img monsterinsights-quick-links-mascot"}),n("span",{staticClass:"monsterinsights-quick-link-title",domProps:{textContent:t._s(t.text_see_quick)}})]),n("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(e,s){return n("a",{key:e.key,class:t.linksClass(e.key),attrs:{href:e.link,"data-index":s,target:"_blank"}},[n("span",{class:e.icon}),n("span",{staticClass:"monsterinsights-quick-link-title",domProps:{innerHTML:t._s(e.tooltip)}})])})):t._e()],2)],1)},o=[],i=(n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b"),n("4795"),n("fc11")),a=(n("ac39"),n("561c")),r=n("2f62");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={name:"TheQuickLinks",data:function(){return{showMenu:!1,text_see_quick:Object(a["a"])("See Quick Links","google-analytics-for-wordpress")}},computed:l({},Object(r["b"])({license:"$_license/license",license_network:"$_license/license_network"}),{boxClass:function(){var t="monsterinsights-quick-links";return this.showMenu&&(t+=" monsterinsights-quick-links-open"),t},licenseLevel:function(){return this.$mi.network?this.license_network.type:this.license.type},showUpsell:function(){return"plus"===this.licenseLevel||"basic"===this.licenseLevel||""===this.licenseLevel},menuItems:function(){var t=[{icon:"monstericon-lightbulb",tooltip:Object(a["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:Object(a["a"])("Join Our Community","google-analytics-for-wordpress"),link:"https://www.facebook.com/groups/wpbeginner/",key:"community"},{icon:"monstericon-life-ring",tooltip:Object(a["a"])("Support & Docs","google-analytics-for-wordpress"),link:this.$getUrl("quick-links","support","https://www.monsterinsights.com/docs/"),key:"support"}];return this.showUpsell&&t.push({icon:"monstericon-star",tooltip:Object(a["a"])("Upgrade to Pro »","google-analytics-for-wordpress"),link:this.$getUpgradeUrl("quick-links","upgrade"),key:"upgrade"}),t}}),methods:{enter:function(t,e){var n=50*t.dataset.index;setTimeout((function(){t.classList.add("monsterinsights-show"),e()}),n)},leave:function(t,e){t.classList.remove("monsterinsights-show"),setTimeout((function(){e()}),200)},linksClass:function(t){return"monsterinsights-quick-links-menu-item monsterinsights-quick-links-item-"+t}}},p=u,d=n("2877"),f=Object(d["a"])(p,s,o,!1,null,null,null);e["a"]=f.exports},bd74:function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monsterinsights-reports-infobox"},[t.title?n("div",{staticClass:"monsterinsights-report-title",domProps:{textContent:t._s(t.title)}}):t._e(),t.tooltip?n("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e(),n("div",{staticClass:"monsterinsights-reports-infobox-number",attrs:{title:t.value},domProps:{textContent:t._s(t.value)}}),n("div",{class:t.changeClass,domProps:{innerHTML:t._s(t.changeText)}}),t.days?n("div",{staticClass:"monsterinsights-reports-infobox-compare",domProps:{textContent:t._s(t.compare)}}):t._e()],1)},o=[],i=(n("a9e3"),n("561c")),a=n("93ec"),r={name:"ReportInfobox",components:{SettingsInfoTooltip:a["a"]},props:{title:String,value:{default:"0",type:String},days:Number,tooltip:String,change:Number,color:{default:"green",type:String},direction:{default:"up",type:String}},computed:{compare:function(){return Object(i["b"])("vs. Previous Day",Object(i["d"])("vs. Previous %s Days",this.days),this.days,"google-analytics-for-wordpress")},changeClass:function(){var t="monsterinsights-reports-infobox-prev ";return"undefined"===typeof this.change?t+" monsterinsights-prev-nochange":t+" monsterinsights-"+this.color},changeText:function(){return this.change?""===this.direction?this.change+"%":'<span class="monsterinsights-arrow monsterinsights-'+this.direction+" monsterinsights-"+this.color+'"></span> '+this.change+"%":Object(i["a"])("No change","google-analytics-for-wordpress")}}},c=r,l=n("2877"),u=Object(l["a"])(c,s,o,!1,null,null,null);e["a"]=u.exports},bef0:function(t,e,n){},c472:function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"settings-input-text"},[t.label||t.description||t.tooltip?n("label",{attrs:{for:t.id}},[n("span",{staticClass:"monsterinsights-dark",domProps:{innerHTML:t._s(t.label)}}),t.description?n("span",{domProps:{innerHTML:t._s(t.description)}}):t._e(),t.showReset()?n("a",{staticClass:"monsterinsights-reset-default",attrs:{href:"#"},domProps:{textContent:t._s(t.text_reset)},on:{click:function(e){return e.preventDefault(),t.resetValue(e)}}}):t._e(),t.tooltip?n("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e()],1):t._e(),n("div",{staticClass:"settings-input-text-input"},["checkbox"===t.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"},{name:"tooltip",rawName:"v-tooltip",value:t.tooltip_data,expression:"tooltip_data"}],attrs:{id:t.id,name:t.name,placeholder:t.placeholder,readonly:t.disabled,type:"checkbox"},domProps:{checked:Array.isArray(t.value)?t._i(t.value,null)>-1:t.value},on:{change:[function(e){var n=t.value,s=e.target,o=!!s.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);s.checked?a<0&&(t.value=n.concat([i])):a>-1&&(t.value=n.slice(0,a).concat(n.slice(a+1)))}else t.value=o},t.inputUpdate]}}):"radio"===t.type?n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"},{name:"tooltip",rawName:"v-tooltip",value:t.tooltip_data,expression:"tooltip_data"}],attrs:{id:t.id,name:t.name,placeholder:t.placeholder,readonly:t.disabled,type:"radio"},domProps:{checked:t._q(t.value,null)},on:{change:[function(e){t.value=null},t.inputUpdate]}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"},{name:"tooltip",rawName:"v-tooltip",value:t.tooltip_data,expression:"tooltip_data"}],attrs:{id:t.id,name:t.name,placeholder:t.placeholder,readonly:t.disabled,type:t.type},domProps:{value:t.value},on:{change:t.inputUpdate,input:function(e){e.target.composing||(t.value=e.target.value)}}})]),t.has_error?n("label",{staticClass:"monsterinsights-error"},[n("i",{staticClass:"monstericon-warning-triangle"}),n("span",{domProps:{innerHTML:t._s(t.text_error)}})]):t._e()])},o=[],i=(n("a4d3"),n("4de4"),n("4160"),n("b0c0"),n("e439"),n("dbb4"),n("b64b"),n("4d63"),n("ac1f"),n("25f0"),n("159b"),n("fc11")),a=n("561c"),r=n("2f62"),c=n("93ec");function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p={name:"SettingsInputText",components:{SettingsInfoTooltip:c["a"]},props:{name:String,label:String,description:String,placeholder:String,type:{type:String,default:"text"},tooltip:String,default_value:String,format:RegExp,auth_disabled:{type:Boolean,default:!0}},data:function(){return{is_loading:!1,has_error:!1,id:"input-"+this.name,text_reset:Object(a["a"])("Reset to default","google-analytics-for-wordpress"),text_error:Object(a["a"])("The value entered does not match the required format","google-analytics-for-wordpress"),updated_value:!1}},computed:u({},Object(r["b"])({settings:"$_settings/settings",auth:"$_auth/auth"}),{has_ua:function(){var t=this.auth.network_ua?this.auth.network_ua:this.auth.ua;return t||(t=this.auth.network_manual_ua?this.auth.network_manual_ua:this.auth.manual_ua),""!==t},value:{get:function(){return!1!==this.updated_value?this.updated_value:this.settings[this.name]},set:function(t){return this.updated_value=t}},tooltip_data:function(){return{content:this.disabled?this.$mi_need_to_auth:"",autoHide:!1,trigger:"hover focus click"}},disabled:function(){return!!this.auth_disabled&&!this.has_ua}}),methods:{inputUpdate:function(t){this.updateSetting(t.target.name,t.target.value)},updateSetting:function(t,e){var n=this;return!this.disabled&&(this.has_error=!1,this.format&&!this.format.test(e)?(this.has_error=!0,!1):(this.$mi_saving_toast({}),void this.$store.dispatch("$_settings/updateSettings",{name:t,value:e}).then((function(t){t.success?n.$mi_success_toast({}):n.$mi_error_toast({})}))))},showReset:function(){return this.default_value&&this.settings[this.name]!==this.default_value},resetValue:function(){return this.updateSetting(this.name,this.default_value)}}},d=p,f=(n("0044"),n("2877")),h=Object(f["a"])(d,s,o,!1,null,"e815e6e4",null);e["a"]=h.exports},c8cf:function(t,e,n){},d3fc:function(t,e,n){var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monsterinsights-widget-error"},[n("div",{staticClass:"swal2-header"},[t._m(0),n("h2",{staticClass:"swal2-title",attrs:{id:"monsterinsights-error-title"},domProps:{textContent:t._s(t.title)}})]),t.error.content?n("div",{staticClass:"monsterinsights-error-content",domProps:{innerHTML:t._s(t.error.content)}}):t._e(),t.error.footer?n("div",{staticClass:"monsterinsights-error-footer",domProps:{innerHTML:t._s(t.error.footer)}}):t._e()])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"swal2-icon swal2-error swal2-animate-error-icon",staticStyle:{display:"flex"}},[n("span",{staticClass:"swal2-x-mark"},[n("span",{staticClass:"swal2-x-mark-line-left"}),n("span",{staticClass:"swal2-x-mark-line-right"})])])}],i=n("561c"),a={props:{error:[Object,Boolean]},computed:{title:function(){return this.error.title.title?this.error.title.title:Object(i["a"])("Error","google-analytics-for-wordpress")}},name:"WidgetReportError"},r=a,c=n("2877"),l=Object(c["a"])(r,s,o,!1,null,null,null);e["a"]=l.exports},d429:function(t,e,n){n("d3b7");var s=n("bc3a"),o=n.n(s),i=n("2b0e"),a=n("561c"),r=function(t,e,n,s){return new Promise((function(r){var c=new FormData;c.append("action","monsterinsights_vue_get_report_data"),c.append("nonce",i["a"].prototype.$mi.nonce),c.append("report",e),c.append("start",n),c.append("end",s),o.a.post(i["a"].prototype.$mi.ajax,c).then((function(t){r(t.data)})).catch((function(e){if(t.dispatch("$_app/block",!1,{root:!0}),e.response){var n=e.response;return i["a"].prototype.$mi_error_toast({title:Object(a["d"])(Object(a["a"])("Can't load report data. Error: %1$s, %2$s","google-analytics-for-wordpress"),n.status,n.statusText)})}i["a"].prototype.$swal.hideLoading(),i["a"].prototype.$mi_error_toast({allowOutsideClick:!0,allowEscapeKey:!0,title:Object(a["a"])("Error loading report data","google-analytics-for-wordpress"),html:e.message})}))}))};e["a"]={fetchReportData:r}},d98d:function(t,e,n){n("4795");var s,o,i={name:"SlideDownUp",functional:!0,props:{group:{type:Boolean,default:!1},done:Function},render:function(t,e){var n={props:{name:"expand"},on:{afterEnter:function(t){t.style.height="auto"},enter:function(t){var n=getComputedStyle(t),s=n.width;t.style.width=s,t.style.position="absolute",t.style.visibility="hidden",t.style.height="auto";var o=getComputedStyle(t),i=o.height;t.style.width="auto",t.style.position="relative",t.style.visibility="visible",t.style.height=0,setTimeout((function(){t.style.height=i})),e.props.done&&setTimeout((function(){e.props.done()}),500)},leave:function(t){var e=getComputedStyle(t),n=e.height;t.style.height=n,setTimeout((function(){t.style.height=0}))}}},s="transition";return e.props.group&&(s="transition-group"),t(s,n,e.children)}},a=i,r=(n("dffc"),n("e8ca"),n("2877")),c=Object(r["a"])(a,s,o,!1,null,"6038a3d0",null);e["a"]=c.exports},dd62:function(t,e,n){n("d3b7");var s=n("bc3a"),o=n.n(s),i=n("2b0e"),a=n("561c"),r=function(){return new Promise((function(t){var e=i["a"].prototype.$mi.ajax,n=new FormData;n.append("action","monsterinsights_vue_get_license"),n.append("nonce",i["a"].prototype.$mi.nonce),o.a.post(e,n).then((function(e){t(e.data)})).catch((function(t){if(t.response){var e=t.response;return i["a"].prototype.$mi_error_toast({title:Object(a["d"])(Object(a["a"])("Can't load license details. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}i["a"].prototype.$mi_error_toast({allowOutsideClick:!0,allowEscapeKey:!0,title:Object(a["a"])("Error loading license details","google-analytics-for-wordpress"),html:t.message})}))}))},c=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(s){var r=new FormData;r.append("action","monsterinsights_verify_license"),r.append("nonce",i["a"].prototype.$mi.nonce),r.append("license",t),n&&r.append("network",!0),o.a.post(i["a"].prototype.$mi.ajax,r).then((function(t){t.data.success&&(n?e.commit("LICENSE_NETWORK_TYPE_UPDATED",t.data.data.license_type):e.commit("LICENSE_TYPE_UPDATED",t.data.data.license_type),e.dispatch("$_addons/getAddons","",{root:!0})),s(t)})).catch((function(t){if(t.response){var e=t.response;return i["a"].prototype.$mi_error_toast({title:Object(a["d"])(Object(a["a"])("Can't verify the license. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}i["a"].prototype.$mi_error_toast({title:Object(a["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},l=function(t){return new Promise((function(e){var n=new FormData;n.append("action","monsterinsights_validate_license"),n.append("nonce",i["a"].prototype.$mi.nonce),t&&n.append("network",!0),o.a.post(i["a"].prototype.$mi.ajax,n).then((function(t){e(t)})).catch((function(t){if(t.response){var e=t.response;return i["a"].prototype.$mi_error_toast({title:Object(a["d"])(Object(a["a"])("Can't validate the license. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}i["a"].prototype.$mi_error_toast({title:Object(a["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},u=function(t,e){return new Promise((function(n){var s=new FormData,r=e?t.state.license_network.key:t.state.license.key;s.append("action","monsterinsights_deactivate_license"),s.append("nonce",i["a"].prototype.$mi.nonce),s.append("license",r),e&&s.append("network",!0),o.a.post(i["a"].prototype.$mi.ajax,s).then((function(s){s.data.success&&(e?(t.commit("LICENSE_NETWORK_KEY_UPDATED",""),t.commit("LICENSE_NETWORK_TYPE_UPDATED","")):(t.commit("LICENSE_KEY_UPDATED",""),t.commit("LICENSE_TYPE_UPDATED",""))),n(s)})).catch((function(t){if(t.response){var e=t.response;return i["a"].prototype.$mi_error_toast({title:Object(a["d"])(Object(a["a"])("Can't deactivate the license. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}i["a"].prototype.$mi_error_toast({title:Object(a["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},p=function(t){return new Promise((function(e){var n=new FormData;n.append("action","monsterinsights_connect_url"),n.append("nonce",i["a"].prototype.$mi.nonce),n.append("network",i["a"].prototype.$mi.network),n.append("key",t),o.a.post(i["a"].prototype.$mi.ajax,n).then((function(t){t.data&&e(t.data)})).catch((function(t){if(e(!1),t.response){var n=t.response;return i["a"].prototype.$mi_error_toast({title:Object(a["d"])(Object(a["a"])("Can't upgrade to PRO please try again. Error: %1$s, %2$s","google-analytics-for-wordpress"),n.status,n.statusText)})}i["a"].prototype.$mi_error_toast({title:Object(a["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))};e["a"]={fetchLicense:r,verifyLicense:c,validateLicense:l,deactivateLicense:u,getUpgradeLink:p}},dffc:function(t,e,n){var s=n("f6e1"),o=n.n(s);o.a},e8ca:function(t,e,n){var s=n("bef0"),o=n.n(s);o.a},f284:function(t,e,n){n("c975"),n("fb6a"),n("d3b7"),n("4795");var s=n("d429"),o=n("2b0e"),i=n("561c"),a=function(t,e){return new Promise((function(n){return o["a"].prototype.$mi.authed?t.state[e]&&t.state[e].reportcurrentrange&&t.state[e].reportcurrentrange.startDate===t.state.date.start&&t.state[e].reportcurrentrange.endDate===t.state.date.end?(n(!1),t.commit("DISABLE_BLUR"),!1):(o["a"].prototype.$mi_loading_toast(),t.commit("ENABLE_BLUR"),void s["a"].fetchReportData(t,e,t.state.date.start,t.state.date.end).then((function(s){if("license_level"===s.data.message)return p(t),void n(!1);if(s.success)p(t),t.commit("DISABLE_BLUR"),t.commit("UPDATE_REPORT_DATA",{report:e,data:s.data}),n(!0);else{if("invalid_grant"===s.data.message)return p(t),n(!1),void t.commit("ENABLE_REAUTH");s.data.footer&&"install_addon"===s.data.footer?r(t,e).then((function(n){t.rootState.$_widget&&(t.commit("DISABLE_BLUR"),t.commit("$_widget/UPDATE_LOADED",!0,{root:!0}));var a=n?Object(i["a"])("activate","google-analytics-for-wordpress"):Object(i["a"])("install","google-analytics-for-wordpress");o["a"].prototype.$mi_error_toast({title:!1,html:Object(i["d"])(s.data.message,a),footer:'<a href="'+o["a"].prototype.$mi.addons_url+'">'+Object(i["a"])("Visit addons page","google-analytics-for-wordpress")+"</a>",report:e}),o["a"].prototype.$swal({type:"error",animation:!1,customContainerClass:"monsterinsights-swal",title:Object(i["a"])("Report Unavailable","google-analytics-for-wordpress"),html:Object(i["d"])(s.data.message,a),allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!1,showCancelButton:!0,confirmButtonText:Object(i["d"])(Object(i["a"])("%s Addon","google-analytics-for-wordpress"),a.charAt(0).toUpperCase()+a.slice(1)),cancelButtonText:Object(i["a"])("Dismiss","google-analytics-for-wordpress")}).then((function(s){s.value&&(n?l(t,t.rootState.$_addons.addons[e]):c(t,e))}))})):s.data.footer&&s.data.footer.indexOf("#/ecommerce")>0?(n(!1),o["a"].prototype.$mi_error_toast({title:!1,html:s.data.message,report:e,showCancelButton:!0,cancelButtonText:Object(i["a"])("Go Back To Reports","google-analytics-for-wordpress"),confirmButtonText:Object(i["a"])("Enable Enhanced eCommerce","google-analytics-for-wordpress")}).then((function(t){t.value&&(window.location=s.data.footer)}))):(n(!1),o["a"].prototype.$mi_error_toast({title:!1,html:s.data.message,footer:s.data.footer,report:e}))}}))):(n(!1),t.commit("ENABLE_BLUR"),t.commit("ENABLE_NOAUTH"),!1)}))};function r(t,e){return new Promise((function(n){t.dispatch("$_addons/getAddons","",{root:!0}).then((function(){t.rootState.$_addons.addons[e]&&t.rootState.$_addons.addons[e].installed?n(!0):n(!1)})).catch((function(){n(!1),u()}))}))}function c(t,e){o["a"].prototype.$swal({type:"info",customContainerClass:"monsterinsights-swal",title:Object(i["a"])("Installing Addon","google-analytics-for-wordpress"),html:Object(i["a"])("Please wait","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,onOpen:function(){o["a"].prototype.$swal.showLoading(),t.dispatch("$_addons/installAddon",t.rootState.$_addons.addons[e],{root:!0}).then((function(){l(t,t.rootState.$_addons.addons[e])})).catch((function(){u()}))}})}function l(t,e){o["a"].prototype.$swal({type:"info",customContainerClass:"monsterinsights-swal",title:Object(i["a"])("Activating Addon","google-analytics-for-wordpress"),html:Object(i["a"])("Please wait","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,onOpen:function(){o["a"].prototype.$swal.showLoading()}}),t.dispatch("$_addons/activateAddon",e,{root:!0}).then((function(){o["a"].prototype.$swal({type:"info",customContainerClass:"monsterinsights-swal",title:Object(i["a"])("Addon Activated","google-analytics-for-wordpress"),html:Object(i["a"])("Loading report data","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,onOpen:function(){o["a"].prototype.$swal.showLoading(),setTimeout((function(){window.location.reload()}),1e3)}})})).catch((function(t){u(t)}))}function u(t){var e=Object(i["a"])("Please activate manually","google-analytics-for-wordpress");t.response&&(e=Object(i["d"])(Object(i["a"])("Error: %1$s, %2$s","google-analytics-for-wordpress"),t.response.status,t.response.statusText)),o["a"].prototype.$swal({type:"error",customContainerClass:"monsterinsights-swal",title:Object(i["a"])("Error Activating Addon","google-analytics-for-wordpress"),html:e,allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,showCancelButton:!0,confirmButtonText:Object(i["a"])("View Addons","google-analytics-for-wordpress"),cancelButtonText:Object(i["a"])("Dismiss","google-analytics-for-wordpress")}).then((function(t){t.value&&(window.location=o["a"].prototype.$mi.addons_url,o["a"].prototype.$swal({type:"info",customContainerClass:"monsterinsights-swal",title:Object(i["a"])("Redirecting","google-analytics-for-wordpress"),html:Object(i["a"])("Please wait","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,onOpen:function(){o["a"].prototype.$swal.showLoading()}}))}))}function p(t){t.rootState.$_widget||o["a"].prototype.$swal.close()}var d={getReportData:a},f=function(t){return t.date},h=function(t){return t.activeReport},m=function(t){return t.blur},g=function(t){return t.mobileTableExpanded},_=function(t){return t.overview},b=function(t){return t.publisher},v=function(t){return t.ecommerce},y=function(t){return t.queries},w=function(t){return t.dimensions},O=function(t){return t.forms},C=function(t){return t.realtime},$=function(t){return t.yearinreview},j=function(t){return t.noauth},k=function(t){return t.reauth},E={date:f,activeReport:h,blur:m,mobileTableExpanded:g,overview:_,publisher:b,ecommerce:v,queries:y,dimensions:w,forms:O,realtime:C,noauth:j,yearinreview:$,reauth:k},P=function(t,e){e.report&&e.data&&t[e.report]&&o["a"].set(t,e.report,e.data)},x=function(t,e){e.start&&e.end&&(o["a"].set(t.date,"start",e.start),o["a"].set(t.date,"end",e.end))},T=function(t,e){o["a"].set(t.date,"interval",e)},S=function(t,e){o["a"].set(t.date,"text",e)},D=function(t,e){t.activeReport=e},A=function(t){t.blur=!0},N=function(t){t.blur=!1},L=function(t){t.mobileTableExpanded=!0},I=function(t){t.mobileTableExpanded=!1},U=function(t){t.noauth=!0},R=function(t){t.reauth=!0},M={UPDATE_REPORT_DATA:P,UPDATE_DATE:x,UPDATE_ACTIVE_REPORT:D,UPDATE_INTERVAL:T,UPDATE_DATE_TEXT:S,ENABLE_BLUR:A,DISABLE_BLUR:N,EXPAND_TABLES:L,CONTRACT_TABLES:I,ENABLE_NOAUTH:U,ENABLE_REAUTH:R},H={date:{start:"",end:"",interval:"last30days",text:""},blur:!1,activeReport:"overview",mobileTableExpanded:!1,overview:{},publisher:{},ecommerce:{},queries:{},dimensions:{},forms:{},realtime:{},yearinreview:{},noauth:!1,reauth:!1};e["a"]={namespaced:!0,state:H,actions:d,getters:E,mutations:M}},f6e1:function(t,e,n){}}]);;