/
var
/
www
/
barefootlaw.org
/
wp-content
/
plugins
/
google-analytics-for-wordpress
/
lite
/
assets
/
vue
/
js
/
Upload File
HOME
(window["monsterinsightsjsonp"]=window["monsterinsightsjsonp"]||[]).push([["chunk-common"],{"027a":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"screen-header"},[e("div",{staticClass:"screen-header__start"},[t._t("header-start")],2),e("div",{staticClass:"screen-header__end"},[t._t("header-end")],2),e("div",{staticClass:"screen-header__bottom"},[t._t("header-bottom")],2)])},i=[],a={name:"ScreenHeader"},o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["default"]=c.exports},"0377":function(t,e,n){"use strict";n("d3b7");var s=n("bc3a"),i=n.n(s),a=n("2b0e"),o=function(){return new Promise((function(t){var e=a["a"].prototype.$mi.ajax,n=new FormData;n.append("action","monsterinsights_vue_get_notifications"),n.append("nonce",a["a"].prototype.$mi.nonce),i.a.post(e,n).then((function(e){if(!e.data.success)return!1;t(e.data.data)})).catch((function(){return!1}))}))},r=function(t){return new Promise((function(e){var n=a["a"].prototype.$mi.ajax,s=new FormData;s.append("action","monsterinsights_notification_dismiss"),s.append("nonce",a["a"].prototype.$mi.nonce),s.append("id",t),i.a.post(n,s).then((function(t){e(t.data)})).catch((function(){return!1}))}))};e["a"]={fetchNotifications:o,dismissNotification:r}},"088d":function(t,e,n){"use strict";n("b0c0"),n("99af"),n("fb6a"),n("a4d3"),n("e01a");var s=function(){var t=this,e=t._self._c;return e("div",{class:t.componentClass},[e("label",{class:t.disabled?"monsterinsights-styled-checkbox-faux":"",on:{click:function(e){return e.preventDefault(),t.stopClick.apply(null,arguments)},keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.stopClick.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.stopClick.apply(null,arguments)}]}},[e("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltip_data,expression:"tooltip_data"}],class:t.labelClass(),attrs:{tabindex:t.faux?"":0}}),e("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,i=!!s.checked;if(Array.isArray(n)){var a=null,o=t._i(n,a);s.checked?o<0&&(t.checked=n.concat([a])):o>-1&&(t.checked=n.slice(0,o).concat(n.slice(o+1)))}else t.checked=i}}}),t.label?e("span",{staticClass:"monsterinsights-checkbox-label",domProps:{innerHTML:t._s(t.label)}}):t._e(),t.hasLabelSlot?e("span",{staticClass:"monsterinsights-checkbox-label"},[t._t("label")],2):t._e(),t.description?e("span",{staticClass:"monsterinsights-checkbox-description",domProps:{innerHTML:t._s(t.description)}}):t._e(),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e(),t.hasCollapsibleSlot?e("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.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.toggleCollapsible.apply(null,arguments)}]}},[e("i",{class:t.iconClass,attrs:{tabindex:"0",onkeypress:"if(event.keyCode==32||event.keyCode==13){return false;};"}})]):t._e()],1),e("slide-down-up",[t.slotCollapsibleVisible&&t.hasCollapsibleSlot?e("div",{staticClass:"monsterinsights-collapsible"},[t.hasCollapsibleSlot?e("div",{staticClass:"monsterinsights-separator"}):t._e(),e("div",{staticClass:"monsterinsights-collapsible-content"},[t._t("collapsible")],2)]):t._e()])],1)},i=[],a=n("5530"),o=n("2f62"),r=n("93ec"),c=n("d98d"),l={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:Object(a["a"])(Object(a["a"])({},Object(o["b"])({settings:"$_settings/settings",auth:"$_auth/auth"})),{},{has_ua_or_v4:function(){return!this.auth_disabled||(this.$mi.network?this.auth.network_ua||this.auth.network_v4||this.auth.network_manual_ua||this.auth.network_manual_v4:this.auth.ua||this.auth.v4||this.auth.manual_ua||this.auth.manual_v4)},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_or_v4?this.checked?this.faux_tooltip:this.faux_tooltip_off:this.$mi_need_to_auth},disabled:function(){return!this.has_ua_or_v4||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}}},u=l,d=n("2877"),p=Object(d["a"])(u,s,i,!1,null,null,null);e["a"]=p.exports},"155d":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("label",{staticClass:"color-picker"},[e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{type:"color"},domProps:{value:t.innerValue},on:{input:function(e){e.target.composing||(t.innerValue=e.target.value)}}},"input",t.$attrs,!1)),e("span",{staticClass:"color-picker__skin",style:t.skinStyles}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],staticClass:"color-picker__desc",attrs:{type:"text",autocomplete:"false",spellcheck:"false",disabled:t.$attrs.disabled},domProps:{value:t.innerValue},on:{input:function(e){e.target.composing||(t.innerValue=e.target.value)}}})])},i=[],a={inheritAttrs:!1,name:"ColorPicker",props:{value:{type:String}},computed:{skinStyles:function(){return{backgroundColor:this.value}},innerValue:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}}},o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["default"]=c.exports},"17be":function(t,e,n){"use strict";var s=function(){var t=this;t._self._c;return t._m(0)},i=[function(){var t=this,e=t._self._c;return e("span",[e("span",{staticClass:"monsterinsights-pro-pill"},[t._v("PRO")])])}],a={name:"PopularPostsProPill"},o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["a"]=c.exports},1892:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"restricted-access-overlay"},[e("div",{staticClass:"restricted-access-modal"},[e("div",{staticClass:"restricted-access-modal__body"},[t._t("modal-content")],2),e("div",{staticClass:"restricted-access-modal__footer"},[t._t("modal-footer")],2)])])},i=[],a={name:"RestrictedAccessOverlay"},o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["default"]=c.exports},1915:function(t,e,n){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-notificationsv3-container"},[e("div",{staticClass:"monsterinsights-notificationsv3-inbox-button"},[e("button",{staticClass:"monsterinsights-button",on:{click:function(e){t.isShowSidebar=!0}}},[e("svg",{attrs:{width:"22",height:"14",viewBox:"0 0 22 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M21.6944 6.5625C21.8981 6.85417 22 7.18229 22 7.54687V12.25C22 12.7361 21.8218 13.1493 21.4653 13.4896C21.1088 13.8299 20.6759 14 20.1667 14H1.83333C1.32407 14 0.891204 13.8299 0.534722 13.4896C0.178241 13.1493 0 12.7361 0 12.25V7.54687C0 7.18229 0.101852 6.85417 0.305556 6.5625L4.35417 0.765625C4.45602 0.644097 4.58333 0.522569 4.73611 0.401042C4.91435 0.279514 5.10532 0.182292 5.30903 0.109375C5.51273 0.0364583 5.7037 0 5.88194 0H16.1181C16.3981 0 16.6782 0.0850694 16.9583 0.255208C17.2639 0.401042 17.4931 0.571181 17.6458 0.765625L21.6944 6.5625ZM6.1875 2.33333L2.94097 7H7.63889L8.86111 9.33333H13.1389L14.3611 7H19.059L15.8125 2.33333H6.1875Z",fill:"#2679C1"}})])]),e("span",{class:["monsterinsights-notificationsv3-inbox-number",t.activeNotificationsNumber>9?"number-greater-than-10":"number-less-than-10"],domProps:{textContent:t._s(t.activeNotificationsNumber)},on:{click:function(e){t.isShowSidebar=!0}}})]),t.isShowSidebar?e("div",{class:["monsterinsights-notificationsv3-sidebar",t.isShowSidebar?"monsterinsights-notificationsv3-sidebar-in":"monsterinsights-notificationsv3-sidebar-out"]},[e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-top"},[e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-top-title"},[e("svg",{attrs:{width:"24",height:"15",viewBox:"0 0 24 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M23.6667 7.03125C23.8889 7.34375 24 7.69531 24 8.08594V13.125C24 13.6458 23.8056 14.0885 23.4167 14.4531C23.0278 14.8177 22.5556 15 22 15H2C1.44444 15 0.972222 14.8177 0.583333 14.4531C0.194444 14.0885 0 13.6458 0 13.125V8.08594C0 7.69531 0.111111 7.34375 0.333333 7.03125L4.75 0.820312C4.86111 0.690104 5 0.559896 5.16667 0.429688C5.36111 0.299479 5.56944 0.195312 5.79167 0.117188C6.01389 0.0390625 6.22222 0 6.41667 0H17.5833C17.8889 0 18.1944 0.0911458 18.5 0.273438C18.8333 0.429688 19.0833 0.611979 19.25 0.820312L23.6667 7.03125ZM6.75 2.5L3.20833 7.5H8.33333L9.66667 10H14.3333L15.6667 7.5H20.7917L17.25 2.5H6.75Z",fill:"white"}})]),t.isShowDismissed?t._e():e("h3",{domProps:{textContent:t._s(t.text_inbox)}}),t.isShowDismissed?e("h3",{domProps:{textContent:t._s(t.text_dismissed)}}):t._e()]),e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-top-actions"},[t.isShowDismissed?t._e():e("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.text_view_dismissed)},on:{click:function(e){t.isShowDismissed=!0}}}),t.isShowDismissed?e("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.text_back_to_inbox)},on:{click:function(e){t.isShowDismissed=!1}}}):t._e(),e("button",{staticClass:"monsterinsights-button monsterinsights-notificationsv3-sidebar-close",on:{click:t.closeSidebar}},[e("svg",{attrs:{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M8.28409 6L11.6932 9.40909C11.8977 9.61364 12 9.86364 12 10.1591C12 10.4545 11.8977 10.7159 11.6932 10.9432L10.9432 11.6932C10.7159 11.8977 10.4545 12 10.1591 12C9.86364 12 9.61364 11.8977 9.40909 11.6932L6 8.28409L2.59091 11.6932C2.38636 11.8977 2.13636 12 1.84091 12C1.54545 12 1.28409 11.8977 1.05682 11.6932L0.306818 10.9432C0.102273 10.7159 0 10.4545 0 10.1591C0 9.86364 0.102273 9.61364 0.306818 9.40909L3.71591 6L0.306818 2.59091C0.102273 2.38636 0 2.13636 0 1.84091C0 1.54545 0.102273 1.28409 0.306818 1.05682L1.05682 0.306818C1.28409 0.102273 1.54545 0 1.84091 0C2.13636 0 2.38636 0.102273 2.59091 0.306818L6 3.71591L9.40909 0.306818C9.61364 0.102273 9.86364 0 10.1591 0C10.4545 0 10.7159 0.102273 10.9432 0.306818L11.6932 1.05682C11.8977 1.28409 12 1.54545 12 1.84091C12 2.13636 11.8977 2.38636 11.6932 2.59091L8.28409 6Z",fill:"white"}})])])])]),e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-bottom"},[e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-bottom-notifications-count"},[t.isShowDismissed?t._e():e("span",{staticClass:"monsterinsights-notificationsv3-inbox-number",domProps:{textContent:t._s(t.activeNotificationsNumber)}}),t.isShowDismissed?e("span",{staticClass:"monsterinsights-notificationsv3-dismissed-number",domProps:{textContent:t._s(t.dismissedNotificationsNumber)}}):t._e(),e("h4",{domProps:{textContent:t._s(t.text_notifications)}})]),!t.isShowDismissed&&t.activeNotificationsNumber>0?e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-header-bottom-actions"},[e("span",{domProps:{textContent:t._s(t.text_dismiss_all)},on:{click:function(e){return t.dismiss("all")}}})]):t._e()]),t.isShowDismissed?t._e():e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-notifications monsterinsights-notificationsv3-notifications-active"},[t.activeNotificationsNumber<1?e("div",{staticClass:"monsterinsights-notificationsv3-no-notifications"},[e("svg",{attrs:{width:"91",height:"74",viewBox:"0 0 91 74",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M89.2969 65.4062C90.4219 66.3438 90.5625 67.4219 89.7188 68.6406L86.9062 72.1562C85.9688 73.2812 84.9375 73.4219 83.8125 72.5781L0.984375 8.59375C-0.140625 7.65625 -0.28125 6.57813 0.5625 5.35938L3.375 1.84375C4.3125 0.71875 5.34375 0.578125 6.46875 1.42188L26.8594 17.1719C30.3281 12.5781 34.9219 9.67188 40.6406 8.45312V5.5C40.6406 4.28125 41.0625 3.25 41.9062 2.40625C42.8438 1.46875 43.9219 1 45.1406 1C46.3594 1 47.3906 1.46875 48.2344 2.40625C49.1719 3.25 49.6406 4.28125 49.6406 5.5V8.45312C54.8906 9.48437 59.2031 12.0156 62.5781 16.0469C65.9531 20.0781 67.6406 24.8125 67.6406 30.25C67.6406 34.375 68.1094 38.0312 69.0469 41.2188C69.9844 44.3125 70.8281 46.4219 71.5781 47.5469C72.4219 48.6719 73.5469 49.9375 74.9531 51.3438C75.1406 51.625 75.2812 51.8125 75.375 51.9062C76.2188 52.8438 76.6406 53.875 76.6406 55C76.6406 55.0938 76.5938 55.2344 76.5 55.4219C76.5 55.5156 76.5 55.5625 76.5 55.5625L89.2969 65.4062ZM22.2188 36.4375L52.1719 59.5H18.1406C17.2969 59.5 16.5 59.3125 15.75 58.9375C15.0938 58.4688 14.5781 57.9062 14.2031 57.25C13.8281 56.5 13.6406 55.75 13.6406 55C13.6406 53.875 14.0625 52.8438 14.9062 51.9062C16.2188 50.5 17.1562 49.4688 17.7188 48.8125C18.2812 48.1562 19.0781 46.6562 20.1094 44.3125C21.1406 41.9688 21.8438 39.3438 22.2188 36.4375ZM45.1406 73C42.7031 73 40.5938 72.1094 38.8125 70.3281C37.0312 68.6406 36.1406 66.5312 36.1406 64H54.1406C54.1406 65.5938 53.7188 67.0938 52.875 68.5C52.125 69.9062 51.0469 70.9844 49.6406 71.7344C48.2344 72.5781 46.7344 73 45.1406 73Z",fill:"#E2E4E9"}})]),e("h4",{domProps:{textContent:t._s(t.text_no_notifications)}})]):t._e(),t._l(t.notifications,(function(t,n){return e("notification",{key:n,attrs:{notification:t}})}))],2),t.isShowDismissed?e("div",{staticClass:"monsterinsights-notificationsv3-sidebar-notifications monsterinsights-notificationsv3-notifications-dismissed"},[t.dismissedNotificationsNumber<1?e("div",{staticClass:"monsterinsights-notificationsv3-no-notifications"},[e("svg",{attrs:{width:"91",height:"74",viewBox:"0 0 91 74",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M89.2969 65.4062C90.4219 66.3438 90.5625 67.4219 89.7188 68.6406L86.9062 72.1562C85.9688 73.2812 84.9375 73.4219 83.8125 72.5781L0.984375 8.59375C-0.140625 7.65625 -0.28125 6.57813 0.5625 5.35938L3.375 1.84375C4.3125 0.71875 5.34375 0.578125 6.46875 1.42188L26.8594 17.1719C30.3281 12.5781 34.9219 9.67188 40.6406 8.45312V5.5C40.6406 4.28125 41.0625 3.25 41.9062 2.40625C42.8438 1.46875 43.9219 1 45.1406 1C46.3594 1 47.3906 1.46875 48.2344 2.40625C49.1719 3.25 49.6406 4.28125 49.6406 5.5V8.45312C54.8906 9.48437 59.2031 12.0156 62.5781 16.0469C65.9531 20.0781 67.6406 24.8125 67.6406 30.25C67.6406 34.375 68.1094 38.0312 69.0469 41.2188C69.9844 44.3125 70.8281 46.4219 71.5781 47.5469C72.4219 48.6719 73.5469 49.9375 74.9531 51.3438C75.1406 51.625 75.2812 51.8125 75.375 51.9062C76.2188 52.8438 76.6406 53.875 76.6406 55C76.6406 55.0938 76.5938 55.2344 76.5 55.4219C76.5 55.5156 76.5 55.5625 76.5 55.5625L89.2969 65.4062ZM22.2188 36.4375L52.1719 59.5H18.1406C17.2969 59.5 16.5 59.3125 15.75 58.9375C15.0938 58.4688 14.5781 57.9062 14.2031 57.25C13.8281 56.5 13.6406 55.75 13.6406 55C13.6406 53.875 14.0625 52.8438 14.9062 51.9062C16.2188 50.5 17.1562 49.4688 17.7188 48.8125C18.2812 48.1562 19.0781 46.6562 20.1094 44.3125C21.1406 41.9688 21.8438 39.3438 22.2188 36.4375ZM45.1406 73C42.7031 73 40.5938 72.1094 38.8125 70.3281C37.0312 68.6406 36.1406 66.5312 36.1406 64H54.1406C54.1406 65.5938 53.7188 67.0938 52.875 68.5C52.125 69.9062 51.0469 70.9844 49.6406 71.7344C48.2344 72.5781 46.7344 73 45.1406 73Z",fill:"#E2E4E9"}})]),e("h4",{domProps:{textContent:t._s(t.text_no_notifications)}})]):t._e(),t._l(t.dismissed,(function(t,n){return e("notification",{key:n,attrs:{notification:t,dismissable:!1}})}))],2):t._e()]):t._e()])},i=[],a=n("5530"),o=(n("ac1f"),n("841c"),n("d3b7"),n("3ca3"),n("ddb0"),n("9861"),n("561c")),r=n("2f62"),c=(n("2ca0"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-notificationsv3-single-notification"},[e("div",{staticClass:"monsterinsights-notificationsv3-notification-icon",domProps:{innerHTML:t._s(t.icon)}}),e("div",{staticClass:"monsterinsights-notificationsv3-notification-details"},[e("div",{staticClass:"monsterinsights-notificationsv3-notification-title"},[e("h5",{domProps:{innerHTML:t._s(t.notification.title)}}),t.notification.start?e("span",{domProps:{innerHTML:t._s(t.notification.start)}}):t._e()]),e("div",{staticClass:"monsterinsights-notificationsv3-notification-content"},[e("div",{domProps:{innerHTML:t._s(t.notification.content)}})]),e("div",{staticClass:"monsterinsights-notificationsv3-notification-actions"},[t._l(t.notification.btns,(function(n,s){return e("a",{key:s,class:["monsterinsights-button",t.buttonClass(s)],attrs:{href:s.startsWith("cta_")?"#":n.url,target:n.is_external?"_blank":"_self"},domProps:{textContent:t._s(t.triggerButtonText(s,n.text))},on:{click:function(e){return t.buttonAction(s,n.url)}}})})),t.dismissable?e("span",{domProps:{innerHTML:t._s(t.text_dismiss)},on:{click:function(e){return t.dismiss(t.notification.id)}}}):t._e()],2)])])}),l=[],u=n("c7eb"),d=n("1da1"),p=(n("4795"),n("c23d")),f={name:"Notification",props:{notification:Object,dismissable:{type:Boolean,default:!0}},data:function(){return{text_dismiss:Object(o["a"])("Dismiss","google-analytics-for-wordpress"),text_install_activated:Object(o["a"])("Installed & Active","google-analytics-for-wordpress"),text_install_processing:Object(o["a"])("Installing & Activating","google-analytics-for-wordpress"),installedAndActivated:!1,processing:!1}},computed:Object(a["a"])(Object(a["a"])({},Object(r["b"])({notifications:"$_notifications/notifications",addons:"$_addons/addons"})),{},{userFeedbackInstalled:function(){return this.addons&&this.addons["userfeedback-lite"]&&this.addons["userfeedback-lite"].installed},userFeedbackActive:function(){return this.addons&&this.addons["userfeedback-lite"]&&this.addons["userfeedback-lite"].active},has_notifications:function(){return this.notifications&&this.notifications.length>0},icon:function(){var t={default:'<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="16" fill="#D3F8EA"/><path d="M21.8634 18.6429C21.8634 18.8571 21.7831 19.0268 21.6224 19.1518C21.5688 19.3482 21.542 19.6786 21.542 20.1429C21.542 20.6071 21.5688 20.9375 21.6224 21.1339C21.7831 21.2768 21.8634 21.4464 21.8634 21.6429V22.0714C21.8634 22.25 21.8009 22.4018 21.6759 22.5268C21.5509 22.6518 21.3992 22.7143 21.2206 22.7143H12.4349C11.7206 22.7143 11.1134 22.4643 10.6134 21.9643C10.1134 21.4643 9.86345 20.8571 9.86345 20.1429V11.5714C9.86345 10.8571 10.1134 10.25 10.6134 9.75C11.1134 9.25 11.7206 9 12.4349 9H21.2206C21.3992 9 21.5509 9.0625 21.6759 9.1875C21.8009 9.3125 21.8634 9.46429 21.8634 9.64286V18.6429ZM13.292 12.5893V13.125C13.292 13.2321 13.3456 13.2857 13.4527 13.2857H19.1313C19.2384 13.2857 19.292 13.2321 19.292 13.125V12.5893C19.292 12.4821 19.2384 12.4286 19.1313 12.4286H13.4527C13.3456 12.4286 13.292 12.4821 13.292 12.5893ZM13.292 14.3036V14.8393C13.292 14.9464 13.3456 15 13.4527 15H19.1313C19.2384 15 19.292 14.9464 19.292 14.8393V14.3036C19.292 14.1964 19.2384 14.1429 19.1313 14.1429H13.4527C13.3456 14.1429 13.292 14.1964 13.292 14.3036ZM20.0688 21C20.0152 20.4286 20.0152 19.8571 20.0688 19.2857H12.4349C12.2027 19.2857 11.9974 19.375 11.8188 19.5536C11.6581 19.7143 11.5777 19.9107 11.5777 20.1429C11.5777 20.375 11.6581 20.5804 11.8188 20.7589C11.9974 20.9196 12.2027 21 12.4349 21H20.0688Z" fill="#1EC185"/></svg>',star:'<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="16" fill="#D4E7F7"/><path d="M15.0867 9.48214C15.2474 9.16071 15.5063 9 15.8634 9C16.2206 9 16.4795 9.16071 16.6402 9.48214L18.3813 13.0179L22.292 13.6071C22.6492 13.6429 22.8813 13.8304 22.9884 14.1696C23.0956 14.5089 23.0242 14.8036 22.7742 15.0536L19.9349 17.8125L20.6045 21.7232C20.6581 22.0625 20.542 22.3304 20.2563 22.5268C19.9706 22.7411 19.6759 22.7679 19.3724 22.6071L15.8634 20.7857L12.3545 22.6071C12.0509 22.7857 11.7563 22.7679 11.4706 22.5536C11.1849 22.3393 11.0688 22.0625 11.1224 21.7232L11.792 17.8125L8.95274 15.0536C8.70274 14.8036 8.63131 14.5089 8.73845 14.1696C8.84559 13.8304 9.07774 13.6429 9.43488 13.6071L13.3456 13.0179L15.0867 9.48214Z" fill="#2679C1"/></svg>',warning:'<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="16" fill="#FAD1D1"/><path d="M17.3634 19.0714C17.792 19.4821 18.0063 19.9821 18.0063 20.5714C18.0063 21.1607 17.792 21.6607 17.3634 22.0714C16.9527 22.5 16.4527 22.7143 15.8634 22.7143C15.2742 22.7143 14.7652 22.5 14.3367 22.0714C13.9259 21.6607 13.7206 21.1607 13.7206 20.5714C13.7206 19.9821 13.9259 19.4821 14.3367 19.0714C14.7652 18.6429 15.2742 18.4286 15.8634 18.4286C16.4527 18.4286 16.9527 18.6429 17.3634 19.0714ZM13.9617 9.66964C13.9617 9.49107 14.0242 9.33929 14.1492 9.21429C14.2742 9.07143 14.4259 9 14.6045 9H17.1224C17.3009 9 17.4527 9.07143 17.5777 9.21429C17.7027 9.33929 17.7652 9.49107 17.7652 9.66964L17.3902 16.9554C17.3902 17.1339 17.3277 17.2857 17.2027 17.4107C17.0777 17.5179 16.9259 17.5714 16.7474 17.5714H14.9795C14.8009 17.5714 14.6492 17.5179 14.5242 17.4107C14.3992 17.2857 14.3367 17.1339 14.3367 16.9554L13.9617 9.66964Z" fill="#EB5757"/></svg>',lightning:'<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="16" fill="#E1DAF1"/><path d="M20.0331 13.2857C20.2831 13.2857 20.4706 13.3929 20.5956 13.6071C20.7206 13.8214 20.7206 14.0357 20.5956 14.25L15.8813 22.3929C15.7563 22.6071 15.5688 22.7143 15.3188 22.7143C15.1045 22.7143 14.9349 22.6339 14.8099 22.4732C14.6849 22.3125 14.6492 22.125 14.7027 21.9107L15.9349 16.7143H12.7474C12.6224 16.7143 12.5063 16.6786 12.3992 16.6071C12.292 16.5357 12.2117 16.4464 12.1581 16.3393C12.1045 16.2321 12.0867 16.1161 12.1045 15.9911L12.9617 9.5625C12.9795 9.45536 13.0152 9.35714 13.0688 9.26786C13.1402 9.17857 13.2206 9.11607 13.3099 9.08036C13.3992 9.02679 13.4974 9 13.6045 9H17.4617C17.6759 9 17.8456 9.08929 17.9706 9.26786C18.0956 9.42857 18.1313 9.60714 18.0777 9.80357L16.9527 13.2857H20.0331Z" fill="#6F4BBB"/></svg>'};return t[this.notification.icon]?t[this.notification.icon]:t.default},userFeedbackInstalledAndActivated:function(){return this.installedAndActivated||this.userFeedbackInstalled&&this.userFeedbackActive},loading:function(){return this.processing}}),methods:{buttonClass:function(t){return"monsterinsights-button monsterinsights-button-"+t},dismiss:function(t){var e=this;this.$store.commit("$_notifications/NOTIFICATION_DISMISSED",t),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}))},buttonAction:function(t,e){if("cta_install_user_feedback"===t){if(this.userFeedbackInstalledAndActivated)return!1;this.processing=!0;var n=this.installUserFeedback();if(n){var s=this.activateUserFeedback();s&&setTimeout((function(){this.processing=!1,this.installedAndActivated=!0,location.href=e}),3e3)}}return!0},triggerButtonText:function(t,e){if("cta_install_user_feedback"===t){if(this.userFeedbackInstalledAndActivated)return this.text_install_activated;if(this.loading)return this.text_install_processing}return e},installUserFeedback:function(){var t=Object(d["a"])(Object(u["a"])().mark((function t(){var e;return Object(u["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p["a"].installUserFeedback();case 3:if(e=t.sent,!("success"in e)||!e.success){t.next=6;break}return t.abrupt("return",!0);case 6:t.next=11;break;case 8:return t.prev=8,t.t0=t["catch"](0),t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}(),activateUserFeedback:function(){var t=Object(d["a"])(Object(u["a"])().mark((function t(){var e;return Object(u["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p["a"].activatelUserFeedback();case 3:if(e=t.sent,!("success"in e)||!e.success){t.next=6;break}return t.abrupt("return",!0);case 6:t.next=11;break;case 8:return t.prev=8,t.t0=t["catch"](0),t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}()}},m=f,h=n("2877"),g=Object(h["a"])(m,c,l,!1,null,null,null),_=g.exports,v={name:"Notifications",components:{Notification:_},data:function(){return{isShowSidebar:!1,isShowDismissed:!1,text_inbox:Object(o["a"])("Inbox","google-analytics-for-wordpress"),text_back_to_inbox:Object(o["a"])("Back to Inbox","google-analytics-for-wordpress"),text_view_dismissed:Object(o["a"])("View Dismissed","google-analytics-for-wordpress"),text_notifications:Object(o["a"])("Notifications","google-analytics-for-wordpress"),text_dismiss_all:Object(o["a"])("Dismiss All","google-analytics-for-wordpress"),text_dismissed:Object(o["a"])("Dismissed","google-analytics-for-wordpress"),text_no_notifications:Object(o["a"])("No Notifications","google-analytics-for-wordpress")}},computed:Object(a["a"])(Object(a["a"])({},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.commit("$_notifications/NOTIFICATION_DISMISSED",t),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}))}}},b=v,y=Object(h["a"])(b,s,i,!1,null,null,null);e["a"]=y.exports},"19e8":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("header",{staticClass:"admin-header",class:"admin-header--".concat(t.type)},["workflow"===t.type?[e("figure",{staticClass:"admin-header__branding is-small"},[e("img",{attrs:{src:t.logoSmall,alt:""}})]),e("".concat(t.$_componentPrefix,"AdminHeaderWorkflow"),{tag:"component",attrs:{workflow:t.workflow}},[e("template",{slot:"workflow-step-separator"},[t._t("workflow-step-separator")],2)],2),e("button",{staticClass:"admin-header__close",on:{click:t.onClose}},[t._t("header-close",(function(){return[e("span",[t._v(t._s(t.texts.close))])]}))],2)]:"custom"===t.type?t._t("default"):[e("figure",{staticClass:"admin-header__branding"},[e("img",{attrs:{src:t.logo,alt:""}})]),e("div",{staticClass:"admin-header__end"},[t._t("header-end")],2)]],2)},i=[],a=n("561c"),o={name:"AdminHeader",props:{workflow:{type:Object},useSmallLogo:{type:Boolean,default:!1},type:{type:String,default:"default",validator:function(t){return-1!==["default","workflow","custom"].indexOf(t)}},logo:{type:String},logoSmall:{type:String}},computed:{texts:function(){return{close:Object(a["a"])("Close",this.$_textDomain)}}},methods:{onClose:function(){this.$emit("close")}}},r=o,c=n("2877"),l=Object(c["a"])(r,s,i,!1,null,null,null);e["default"]=l.exports},"1c32":function(t,e,n){},"20b9":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("nav",{staticClass:"page-navigator"},[e("div",{staticClass:"page-navigator__desc"},[t._t("desc")],2),e("div",{staticClass:"page-navigator__widget"},[e("button",{staticClass:"button page-navigator__button",attrs:{role:"button",disabled:!t.canGoBack},on:{click:t.goToPrev}},[t._t("prev-button",(function(){return[e("span",[t._v(t._s(t.texts.previous))])]}))],2),e("span",{staticClass:"page-navigator__current"},[t._v(t._s(t.currentPage))]),e("button",{staticClass:"button page-navigator__button",attrs:{role:"button",disabled:!t.canGoNext},on:{click:t.goToNext}},[t._t("next-button",(function(){return[e("span",[t._v(t._s(t.texts.next))])]}))],2)])])},i=[],a=(n("a9e3"),n("561c")),o={name:"PageNavigator",props:{currentPage:{type:Number,required:!0},totalPages:{type:Number,required:!0}},computed:{canGoBack:function(){return this.currentPage>1},canGoNext:function(){return this.currentPage<this.totalPages},texts:function(){return{previous:Object(a["a"])("Previous",this.$_textDomain),next:Object(a["a"])("Next",this.$_textDomain)}}},methods:{goToPrev:function(){this.$emit("prev")},goToNext:function(){this.$emit("next")}}},r=o,c=n("2877"),l=Object(c["a"])(r,s,i,!1,null,null,null);e["default"]=l.exports},"260d":function(t,e,n){"use strict";n("89da")},2728:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("article",{staticClass:"expandable-card",class:{"is-open":t.isOpen}},[e("header",{staticClass:"expandable-card__header"},[e("div",{staticClass:"expandable-card__title"},[t._t("title")],2),e("button",{staticClass:"expandable-card__toggle",attrs:{type:"button"},on:{click:t.toggleCard}},[t._t("toggle",(function(){return[e("span",[t._v(t._s(t.texts.toggle))])]}))],2)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}]},[t._t("before-content"),e("div",{staticClass:"expandable-card__content",class:{"is-slim":t.slim}},[t._t("content")],2),e("div",{staticClass:"expandable-card__footer"},[t._t("footer")],2)],2)])},i=[],a=n("561c"),o={name:"ExpandableCard",props:{startOpen:{type:Boolean,default:!1},slim:{type:Boolean,default:!1},locked:{type:Boolean,default:!1}},data:function(){return{isOpen:!1}},computed:{texts:function(){return{toggle:Object(a["a"])("Toggle",this.$_textDomain)}}},methods:{toggleCard:function(){this.isOpen?this.closeCard():this.openCard()},openCard:function(){this.locked||(this.isOpen=!0)},closeCard:function(){this.isOpen=!1}},mounted:function(){this.startOpen&&!this.locked&&this.openCard()}},r=o,c=n("2877"),l=Object(c["a"])(r,s,i,!1,null,null,null);e["default"]=l.exports},"2af8":function(t,e,n){"use strict";n.r(e);n("99af"),n("fb6a");var s=function(){var t=this,e=t._self._c;return e("tfoot",[e("tr",[t.allowSelectAll?e("td",{staticClass:"manage-column column-cb check-column"},[e("label",{staticClass:"screen-reader-text",attrs:{for:"cb-select-all-2"}},[t._v(t._s(t.texts.selectAll))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.isSelectingAll,expression:"isSelectingAll"}],attrs:{id:"cb-select-all-2",type:"checkbox"},domProps:{checked:Array.isArray(t.isSelectingAll)?t._i(t.isSelectingAll,null)>-1:t.isSelectingAll},on:{click:function(e){return e.stopPropagation(),t.selectAll.apply(null,arguments)},change:function(e){var n=t.isSelectingAll,s=e.target,i=!!s.checked;if(Array.isArray(n)){var a=null,o=t._i(n,a);s.checked?o<0&&(t.isSelectingAll=n.concat([a])):o>-1&&(t.isSelectingAll=n.slice(0,o).concat(n.slice(o+1)))}else t.isSelectingAll=i}}})]):t._e(),t._l(t.columns,(function(n,s){return e("th",{key:s,staticClass:"manage-column column-title column-primary",class:{"sortable desc":n.sortable},attrs:{id:n.key,scope:"col"}},[n.sortable?[e("a",{attrs:{href:"javascript:",role:"button"}},[e("span",[t._v(t._s("function"===typeof n.title?n.title():n.title))]),e("span",{staticClass:"sorting-indicator"})])]:e("span",[t._v(t._s("function"===typeof n.title?n.title():n.title))])],2)})),t.hasActionsColumn?e("th",[t._v(" "+t._s(t.texts.actions)+" ")]):t._e()],2)])},i=[],a=n("561c"),o=n("557c"),r={name:"AdminTableFoot",mixins:[o["a"]],props:{allowSelectAll:{type:Boolean,default:!0},columns:{type:Array,required:!0}},computed:{texts:function(){return{selectAll:Object(a["a"])("Select All",this.$_textDomain),actions:Object(a["a"])("Actions",this.$_textDomain)}}}},c=r,l=n("2877"),u=Object(l["a"])(c,s,i,!1,null,null,null);e["default"]=u.exports},"2d5c":function(t,e,n){"use strict";n("6a42")},3780:function(t,e,n){"use strict";n.r(e);var s=n("ade3"),i=(n("99af"),n("fb6a"),function(){var t=this,e=t._self._c;return e("thead",[e("tr",[t.allowSelectAll?e("th",{staticClass:"manage-column column-cb check-column",attrs:{id:"cb"}},[e("label",{staticClass:"screen-reader-text",attrs:{for:"cb-select-all-1"}},[t._v(t._s(t.texts.selectAll))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.isSelectingAll,expression:"isSelectingAll"}],attrs:{id:"cb-select-all-1",type:"checkbox"},domProps:{checked:Array.isArray(t.isSelectingAll)?t._i(t.isSelectingAll,null)>-1:t.isSelectingAll},on:{click:function(e){return e.stopPropagation(),t.selectAll.apply(null,arguments)},change:function(e){var n=t.isSelectingAll,s=e.target,i=!!s.checked;if(Array.isArray(n)){var a=null,o=t._i(n,a);s.checked?o<0&&(t.isSelectingAll=n.concat([a])):o>-1&&(t.isSelectingAll=n.slice(0,o).concat(n.slice(o+1)))}else t.isSelectingAll=i}}})]):t._e(),t._l(t.columns,(function(n,i){return e("th",{key:i,staticClass:"manage-column column-title column-primary",class:Object(s["a"])({sortable:n.sortable,sorted:t.orderby===n.key},t.order,!0),attrs:{id:n.key,scope:"col"}},[n.sortable?[e("a",{attrs:{href:"javascript:",role:"button"},on:{click:function(e){t.changeSort(n.key,e)}}},[e("span",[t._v(t._s("function"===typeof n.title?n.title():n.title))]),e("span",{staticClass:"sorting-indicator"})])]:e("span",[t._v(t._s("function"===typeof n.title?n.title():n.title))])],2)})),t.hasActionsColumn?e("th",[t._v(" "+t._s(t.texts.actions)+" ")]):t._e()],2)])}),a=[],o=n("561c"),r=n("557c"),c={name:"AdminTableHead",mixins:[r["a"]],props:{allowSelectAll:{type:Boolean,default:!0},columns:{type:Array,required:!0},orderby:{type:String},order:{type:String}},computed:{texts:function(){return{selectAll:Object(o["a"])("Select All",this.$_textDomain),actions:Object(o["a"])("Actions",this.$_textDomain)}}},methods:{changeSort:function(t,e){e.target.closest("a").blur(),t===this.orderby?this.$emit("update:order","desc"===this.order?"asc":"desc"):this.$emit("update:orderby",t)}}},l=c,u=n("2877"),d=Object(u["a"])(l,i,a,!1,null,null,null);e["default"]=d.exports},"38de":function(t,e,n){"use strict";n.r(e);n("ac1f"),n("841c"),n("d3b7"),n("ddb0");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-select field"},[e("div",{staticClass:"input-select__label"},[t._t("label")],2),e("div",{staticClass:"input-select__field"},[e("multiselect",{attrs:{options:t.options,multiple:t.multiple,"track-by":"value",label:"label",searchable:!1,selectLabel:"",selectedLabel:"",deselectLabel:"",disabled:t.disabled},scopedSlots:t._u([{key:"selection",fn:function(n){n.search;var s=n.remove,i=n.values;return[e("div",{staticClass:"multiselect__tags-wrap"},[t._l(i,(function(n,i){return[e("span",{key:i,class:t.tagClass(n.value)},[e("span",{domProps:{textContent:t._s(n.label)}}),e("i",{staticClass:"multiselect__tag-icon",attrs:{"aria-hidden":"true",tabindex:"0",role:"button"},on:{keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),s(n))},mousedown:function(t){return t.preventDefault(),s(n)}}})])]}))],2)]}}]),model:{value:t.innerValue,callback:function(e){t.innerValue=e},expression:"innerValue"}})],1)])},i=[],a=n("b85c"),o=n("2909"),r=(n("c740"),n("3c65"),n("14d9"),n("8e5f")),c=n.n(r),l={name:"InputSelect",components:{Multiselect:c.a},props:{options:{type:Array,required:!0},forced:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},value:{type:[Object,Array,String]}},computed:{innerValue:{get:function(){return this.value},set:function(t){var e,n=Object(o["a"])(t),s=Object(a["a"])(this.forced);try{var i=function(){var t=e.value;-1===n.findIndex((function(e){return e.value===t.value}))&&n.unshift(t)};for(s.s();!(e=s.n()).done;)i()}catch(r){s.e(r)}finally{s.f()}this.$emit("input",n)}}},methods:{isForced:function(t){return this.forced.findIndex((function(e){return e.value===t}))>-1},tagClass:function(t){var e=["multiselect__tag"];return this.isForced(t)&&e.push("is-forced"),e}}},u=l,d=n("2877"),p=Object(d["a"])(u,s,i,!1,null,null,null);e["default"]=p.exports},"3bc9":function(t,e,n){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"settings-input settings-input-license"},[e("p",{domProps:{innerHTML:t._s(t.text_license_row_1)}}),e("p",{domProps:{innerHTML:t._s(t.text_license_row_2)}}),e("p",{domProps:{innerHTML:t._s(t.text_license_row_3)}}),e("div",{staticClass:"monsterinsights-settings-license-lite"},[e("label",{attrs:{for:"monsterinsights-license-key"},domProps:{innerHTML:t._s(t.text_license_label)}}),e("div",{staticClass:"inline-field"},[e("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?e("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.text_upgrade_to_pro)},on:{click:function(e){return e.preventDefault(),t.startUpgradeToPro.apply(null,arguments)}}}):t._e()])])])},i=[],a=n("561c"),o=n("f7fe"),r=n.n(o),c=n("dd62"),l={name:"SettingsInputLicense",props:{label:String},data:function(){return{is_network:this.$mi.network,text_license_row_1:Object(a["d"])(Object(a["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(a["d"])(Object(a["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(a["d"])(Object(a["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(a["a"])("Unlock PRO Features Now","google-analytics-for-wordpress"),text_license_placeholder:Object(a["a"])("Paste your license key here","google-analytics-for-wordpress"),text_license_verify:Object(a["a"])("Verify","google-analytics-for-wordpress"),text_license_label:Object(a["d"])(Object(a["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(a["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(a["a"])("There was an error unlocking MonsterInsights PRO please try again or install manually.","google-analytics-for-wordpress");t.$mi_error_toast({title:Object(a["a"])("Error","google-analytics-for-wordpress"),text:n,toast:!1,position:"center",showConfirmButton:!0,showCloseButton:!1,customClass:!1,confirmButtonText:Object(a["a"])("Ok","google-analytics-for-wordpress")}).then((function(){e.data.reload&&window.location.reload()}))})).catch((function(){t.$swal.close()}))}}},u=l,d=n("2877"),p=Object(d["a"])(u,s,i,!1,null,null,null);e["a"]=p.exports},"3c38":function(t,e,n){"use strict";n.r(e);n("d81d"),n("4de4"),n("d3b7");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"admin-table__navigation tablenav"},[t.bulkActions.length>0?e("div",{staticClass:"alignleft actions bulkactions"},[e("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v(t._s(t.texts.selectBulkAction))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.ownSelectedAction,expression:"ownSelectedAction"}],attrs:{id:"bulk-action-selector-top",name:"action"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.ownSelectedAction=e.target.multiple?n:n[0]}}},[e("option",{attrs:{value:"-1"}},[t._v(" "+t._s(t.texts.bulkActions)+" ")]),t._l(t.bulkActions,(function(n){return e("option",{key:n.value,domProps:{value:n.value}},[t._v(" "+t._s(n.label)+" ")])}))],2),e("input",{staticClass:"button action",attrs:{id:"doaction",type:"button",value:t.texts.apply},on:{click:function(e){return t.$emit("apply-action")}}})]):t._e(),t.filters.length>0?e("div",{staticClass:"alignleft filters"},t._l(t.filters,(function(n){return e("div",{key:n.id,class:"filter-"+n.id},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.filterValues[n.id],expression:"filterValues[filter.id]"}],attrs:{name:"filter["+n.id+"]"},on:{change:[function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.filterValues,n.id,e.target.multiple?s:s[0])},function(e){return t.$emit("filter-values",t.filterValues)}]}},t._l(n.options,(function(n,s){return e("option",{key:s,domProps:{value:s,textContent:t._s(n)}})})),0)])})),0):t._e(),e("div",{staticClass:"tablenav-pages",class:{"one-page":1===t.pagination.pages}},[t.pagination.pages>1?e("span",{staticClass:"pagination-links"},[1==t.pagination.page?[e("span",{staticClass:"tablenav-pages-navspan button disabled",attrs:{"aria-hidden":"true"}},[t._v("«")]),e("span",{staticClass:"tablenav-pages-navspan button disabled",attrs:{"aria-hidden":"true"}},[t._v("‹")])]:[e("a",{staticClass:"first-page button",attrs:{href:"javascript:",role:"button"},on:{click:function(e){return t.goToPage(1)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.texts.firstPage))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])]),e("a",{staticClass:"prev-page button",attrs:{href:"javascript:",role:"button"},on:{click:t.goToPrev}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.texts.prevPage))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("‹")])])],e("span",{staticClass:"paging-input"},[e("label",{staticClass:"screen-reader-text",attrs:{for:"current-page-selector"}},[t._v(t._s(t.texts.currentPage))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.currentPage,expression:"currentPage"}],staticClass:"current-page",attrs:{id:"current-page-selector",type:"text",name:"paged",size:"1","aria-describedby":"table-paging",max:t.pagination.pages},domProps:{value:t.currentPage},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.goToPage(t.currentPage)},input:function(e){e.target.composing||(t.currentPage=e.target.value)}}}),e("span",{staticClass:"tablenav-paging-text"},[t._v(" "+t._s(t.texts.of)+" "),e("span",{staticClass:"total-pages"},[t._v(t._s(t.pagination.pages))])])]),t.pagination.page==t.pagination.pages?[e("span",{staticClass:"tablenav-pages-navspan button disabled",attrs:{"aria-hidden":"true"}},[t._v("›")]),e("span",{staticClass:"tablenav-pages-navspan button disabled",attrs:{"aria-hidden":"true"}},[t._v("»")])]:[e("a",{staticClass:"next-page button",attrs:{href:"javascript:",role:"button"},on:{click:t.goToNext}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.texts.nextPage))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("›")])]),e("a",{staticClass:"last-page button",attrs:{href:"javascript:",role:"button"},on:{click:function(e){return t.goToPage(t.pagination.pages)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.texts.lastPage))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])]],2):t._e()]),t.allowSearch?e("div",{staticClass:"alignright filters search-filters"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.keywords,expression:"keywords"}],attrs:{placeholder:t.texts.search_placeholder,type:"search"},domProps:{value:t.keywords},on:{input:[function(e){e.target.composing||(t.keywords=e.target.value)},t.emitKeywords]}})]):t._e()])},i=[],a=(n("a9e3"),n("25eb"),n("4795"),n("159b"),n("561c")),o={name:"AdminTableNavigation",props:{selectedAction:{type:[String,Number]},bulkActions:{type:Array,default:function(){return[]}},filters:{type:Array,default:function(){return[]}},pagination:{type:Object,default:function(){return{}}},allowSearch:{type:Boolean,default:!1}},data:function(){return{currentPage:1,filterValues:{},keywords:"",keywordsTimeout:null}},computed:{texts:function(){return{selectBulkAction:Object(a["a"])("Select bulk action",this.$_textDomain),bulkActions:Object(a["a"])("Bulk Actions",this.$_textDomain),apply:Object(a["a"])("Apply",this.$_textDomain),currentPage:Object(a["a"])("Current Page",this.$_textDomain),firstPage:Object(a["a"])("First Page",this.$_textDomain),prevPage:Object(a["a"])("Previous Page",this.$_textDomain),nextPage:Object(a["a"])("Next Page",this.$_textDomain),lastPage:Object(a["a"])("Last Page",this.$_textDomain),of:Object(a["a"])("of",this.$_textDomain),search_placeholder:Object(a["a"])("Search..",this.$_textDomain)}},ownSelectedAction:{get:function(){return this.selectedAction},set:function(t){this.$emit("update:selectedAction",t)}}},methods:{goToPrev:function(){this.$emit("page-change",Number.parseInt(this.pagination.page)-1)},goToNext:function(){this.$emit("page-change",Number.parseInt(this.pagination.page)+1)},goToPage:function(t){this.$emit("page-change",t)},emitKeywords:function(){var t=this;clearTimeout(this.keywordsTimeout),this.keywordsTimeout=setTimeout((function(){t.$emit("search",t.keywords)}),500)}},mounted:function(){var t=this;this.currentPage=this.pagination.page,this.filters&&this.filters.forEach((function(e){t.filterValues[e.id]=0}))},watch:{"pagination.page":function(t){this.currentPage=t}}},r=o,c=n("2877"),l=Object(c["a"])(r,s,i,!1,null,null,null);e["default"]=l.exports},4095:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"radio-cards"},t._l(t.options,(function(n,s){return e("label",{key:s,staticClass:"radio-card"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{type:"radio"},domProps:{value:n.value,checked:t._q(t.innerValue,n.value)},on:{change:function(e){t.innerValue=n.value}}}),e("span",{staticClass:"radio-card__content"},[t._t("card-content",null,{item:n})],2)])})),0)},i=[],a=(n("d3b7"),n("a9e3"),{name:"RadioCards",props:{options:{type:Array,required:!0,validator:function(t){return t.every((function(t){return t.hasOwnProperty("value")}))}},value:{type:[String,Number]}},computed:{innerValue:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}}}),o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["default"]=c.exports},4360:function(t,e,n){"use strict";var s=n("2b0e"),i=n("2f62"),a=n("dd62"),o=n("f7fe"),r=n.n(o),c=n("561c"),l=function(t){var e=a["a"].fetchLicense();e.then((function(e){e.network&&t.commit("LICENSE_NETWORK_UPDATED",e.network),e.site&&t.commit("LICENSE_UPDATED",e.site),v(t)})).catch((function(t){console.error(t)}))},u=function(t,e){return a["a"].verifyLicense(e,t)},d=function(t,e){return t.commit("LICENSE_KEY_UPDATED",e),f(e,t)},p=function(t,e){return t.commit("LICENSE_NETWORK_KEY_UPDATED",e),f(e,t,!0)},f=r()(a["a"].verifyLicense,500,{leading:!0}),m=function(t,e){return a["a"].validateLicense(e)},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a["a"].deactivateLicense(t,e)},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a["a"].deactivateExpiredLicense(t,e)},_=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})},v=function(t){t.state.license.is_expired||t.state.license_network.is_expired?t.dispatch("$_app/addNotice",{id:"license_expired",title:"Your license has expired.",content:Object(c["a"])("To ensure tracking works properly, reactivate your license","google-analytics-for-wordpress"),button:{enabled:!0,text:Object(c["a"])("Reactivate License","google-analytics-for-wordpress"),link:s["a"].prototype.$getUrl("admin-notices","expired-license","https://www.monsterinsights.com/login/")},icon:'<svg width="27" height="23" viewBox="0 0 27 23" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M25.5742 19.6992L15.2617 1.78125C14.4883 0.449219 12.4688 0.40625 11.6953 1.78125L1.38281 19.6992C0.609375 21.0312 1.59766 22.75 3.1875 22.75H23.7695C25.3594 22.75 26.3477 21.0742 25.5742 19.6992ZM13.5 15.9609C14.5742 15.9609 15.4766 16.8633 15.4766 17.9375C15.4766 19.0547 14.5742 19.9141 13.5 19.9141C12.3828 19.9141 11.5234 19.0547 11.5234 17.9375C11.5234 16.8633 12.3828 15.9609 13.5 15.9609ZM11.6094 8.87109C11.5664 8.57031 11.8242 8.3125 12.125 8.3125H14.832C15.1328 8.3125 15.3906 8.57031 15.3477 8.87109L15.0469 14.7148C15.0039 15.0156 14.7891 15.1875 14.5312 15.1875H12.4258C12.168 15.1875 11.9531 15.0156 11.9102 14.7148L11.6094 8.87109Z" fill="#E64949"/></svg>',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:d,verifyLicense:u,updateNetworkLicense:p,validateLicense:m,deactivateLicense:h,deactivateExpiredLicense:g,removeLicenseNotices:_,addLicenseNotices:v},y=function(t){return t.license},w=function(t){return t.license_network},C={license:y,license_network:w},k=function(t,e){t.license=e},x=function(t,e){t.license_network=e},$=function(t,e){t.license.key=e},O=function(t,e){t.license.type=e},A=function(t,e){t.license_network.key=e},j=function(t,e){t.license_network.type=e},S={LICENSE_UPDATED:k,LICENSE_NETWORK_UPDATED:x,LICENSE_KEY_UPDATED:$,LICENSE_TYPE_UPDATED:O,LICENSE_NETWORK_KEY_UPDATED:A,LICENSE_NETWORK_TYPE_UPDATED:j},T={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}},P={namespaced:!0,state:T,actions:b,getters:C,mutations:S},E=(n("d3b7"),n("bc3a")),D=n.n(E),N=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){var e=s["a"].prototype.$getUrl("admin-notices","error-loading-auth","https://www.monsterinsights.com/my-account/support");if(t.response){var n=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. Please try again in a few minutes. If the issue persists, please %3$scontact our support%4$s team. ","google-analytics-for-wordpress"),n.status,n.statusText,'<a target="_blank" href="'+e+'">',"</a>")})}s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Oops! There was an error loading your site details. Please refresh the page and try again. If the issue persists, please contact our support team.","google-analytics-for-wordpress"),'<a target="_blank" href="'+e+'">',"</a>")})}))}))},I=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){var e=s["a"].prototype.$getUrl("admin-notices","error-loading-auth","https://www.monsterinsights.com/my-account/support");if(t.response){var n=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Oops! We can't authenticate. Error: %1$s, %2$s. Please try again in a few minutes. If the issue persists, please %3$scontact our support%4$s team. ","google-analytics-for-wordpress"),n.status,n.statusText,'<a target="_blank" href="'+e+'">',"</a>")})}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){var e=s["a"].prototype.$getUrl("admin-notices","error-loading-auth","https://www.monsterinsights.com/my-account/support");if(t.response){var n=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Oops! We can't reauthenticate. Error: %1$s, %2$s. Please try again in a few minutes. If the issue persists, please %3$scontact our support%4$s team","google-analytics-for-wordpress"),n.status,n.statusText,'<a target="_blank" href="'+e+'">',"</a>")})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},U=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){var e=s["a"].prototype.$getUrl("admin-notices","error-loading-auth","https://www.monsterinsights.com/my-account/support");if(t.response){var n=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Oops! We can't verify credentials. Error: %1$s, %2$s. Please try again in a few minutes. If the issue persists, please %3$scontact our support%4$s team.","google-analytics-for-wordpress"),n.status,n.statusText,'<a target="_blank" href="'+e+'">',"</a>")})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},B=function(t,e,n){return new Promise((function(i){var a=new FormData;a.append("action","monsterinsights_maybe_delete"),a.append("nonce",s["a"].prototype.$mi.nonce),a.append("isnetwork",e),n&&a.append("forcedelete",!0),D.a.post(s["a"].prototype.$mi.ajax,a).then((function(n){n.data.success&&t.commit("AUTH_DELETED",e),i(n.data)})).catch((function(t){var e=s["a"].prototype.$getUrl("admin-notices","error-loading-auth","https://www.monsterinsights.com/my-account/support");if(t.response){var n=t.response;return s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Oops! We can't verify deauthentication. Error: %1$s, %2$s. Please try again in a few minutes. If the issue persists, please %3$scontact our support%4$s team.","google-analytics-for-wordpress"),n.status,n.statusText,'<a target="_blank" href="'+e+'">',"</a>")})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},V=function(t,e,n){return new Promise((function(i){var a=new FormData;a.append("action","monsterinsights_update_manual_ua"),a.append("manual_ua_code",e),a.append("nonce",s["a"].prototype.$mi.nonce),n&&a.append("isnetwork",n),D.a.post(s["a"].prototype.$mi.ajax,a).then((function(s){t.commit("MANUAL_UA_UPDATE",{ua:e,network:n}),i(s.data)})).catch((function(t){var e=s["a"].prototype.$getUrl("admin-notices","error-loading-auth","https://www.monsterinsights.com/my-account/support");if(t.response){var n=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. Please try again in a few minutes. If the issue persists, please %3$scontact our support%4$s team.","google-analytics-for-wordpress"),n.status,n.statusText,'<a target="_blank" href="'+e+'">',"</a>")})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline. Settings not saved.","google-analytics-for-wordpress")})}))}))},R=function(t,e,n){return new Promise((function(i){var a=new FormData;a.append("action","monsterinsights_update_manual_v4"),a.append("manual_v4_code",e),a.append("nonce",s["a"].prototype.$mi.nonce),n&&a.append("isnetwork",n),D.a.post(s["a"].prototype.$mi.ajax,a).then((function(s){t.commit("MANUAL_V4_UPDATE",{v4:e,network:n}),i(s.data)})).catch((function(t){var e=s["a"].prototype.$getUrl("admin-notices","error-loading-auth","https://www.monsterinsights.com/my-account/support");if(t.response){var n=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. Please try again in a few minutes. If the issue persists, please %3$scontact our support%4$s team.","google-analytics-for-wordpress"),n.status,n.statusText,'<a target="_blank" href="'+e+'">',"</a>")})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline. Settings not saved.","google-analytics-for-wordpress")})}))}))},F=function(t,e,n){return new Promise((function(i){var a=new FormData;a.append("action","monsterinsights_update_dual_tracking_id"),a.append("value",e),a.append("nonce",s["a"].prototype.$mi.nonce),n&&a.append("isnetwork",n),D.a.post(s["a"].prototype.$mi.ajax,a).then((function(s){t.commit("DUAL_TRACKING_ID_UPDATE",{value:e,network:n}),i(s.data)})).catch((function(t){var e=s["a"].prototype.$getUrl("admin-notices","error-loading-auth","https://www.monsterinsights.com/my-account/support");if(t.response){var n=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. Please try again in a few minutes. If the issue persists, please %3$scontact our support%4$s team.","google-analytics-for-wordpress"),n.status,n.statusText,'<a target="_blank" href="'+e+'">',"</a>")})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline. Settings not saved.","google-analytics-for-wordpress")})}))}))},M=function(t,e,n){return new Promise((function(i){var a=new FormData;a.append("action","monsterinsights_update_measurement_protocol_secret"),a.append("value",e),a.append("nonce",s["a"].prototype.$mi.nonce),n&&a.append("isnetwork",n),D.a.post(s["a"].prototype.$mi.ajax,a).then((function(s){t.commit("MEASUREMENT_PROTOCOL_SECRET",e,n),i(s.data)})).catch((function(t){var e=s["a"].prototype.$getUrl("admin-notices","error-loading-auth","https://www.monsterinsights.com/my-account/support");if(t.response){var n=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. Please try again in a few minutes. If the issue persists, please %3$scontact our support%4$s team.","google-analytics-for-wordpress"),n.status,n.statusText,'<a target="_blank" href="'+e+'">',"</a>")})}s["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline. Settings not saved.","google-analytics-for-wordpress")})}))}))},H={fetchAuth:N,getAuthRedirect:I,getReAuthRedirect:L,verifyAuth:U,deleteAuth:B,updateManualUa:V,updateManualV4:R,updateDualTrackingId:F,updateMeasurementProtocolSecret:M},q=function(t){var e=H.fetchAuth();e.then((function(e){e&&t.commit("AUTH_UPDATED",e)})).catch((function(t){console.error(t)}))},Y=function(t,e){return H.getAuthRedirect(e)},K=function(t,e){return H.getReAuthRedirect(e)},W=function(t,e){return H.verifyAuth(e)},G=function(t,e){return H.deleteAuth(t,e.network,e.force)},Z=function(t,e){return H.updateManualUa(t,e.ua,e.network)},J=function(t,e){return H.updateManualV4(t,e.v4,e.network)},Q=function(t,e){return H.updateDualTrackingId(t,e.value,e.network)},z=function(t,e){return H.updateMeasurementProtocolSecret(t,e.value,e.network)},X={getAuth:q,doAuth:Y,doReAuth:K,verifyAuth:W,deleteAuth:G,updateManualUa:Z,updateManualV4:J,updateDualTrackingId:Q,updateMeasurementProtocolSecret:z},tt=function(t){return t.auth},et={auth:tt},nt=function(t,e){t.auth=e},st=function(t,e){e?(t.auth.network_manual_ua=t.auth.network_ua,t.auth.network_manual_v4=t.auth.network_v4,t.auth.network_ua=!1,t.auth.network_v4=!1,t.auth.network_viewname=!1,t.auth.connected_type=!1,t.auth.network_measurement_protocol_secret=""):(t.auth.manual_ua=t.auth.ua,t.auth.manual_v4=t.auth.v4,t.auth.ua=!1,t.auth.v4=!1,t.auth.viewname=!1,t.auth.connected_type=!1,t.auth.measurement_protocol_secret="")},it=function(t,e){e.network?t.auth.network_manual_ua=e.ua:t.auth.manual_ua=e.ua},at=function(t,e){e.network?t.auth.network_manual_v4=e.v4:t.auth.manual_v4=e.v4},ot=function(t,e){var n=e.value,s=e.network,i="ua"===t.auth["connected_type"]?"v4":"ua";s?t.auth["network_"+i]=n:t.auth[i]=n},rt=function(t,e,n){n?t.auth.network_measurement_protocol_secret=e:t.auth.measurement_protocol_secret=e},ct={AUTH_UPDATED:nt,AUTH_DELETED:st,MANUAL_UA_UPDATE:it,MANUAL_V4_UPDATE:at,DUAL_TRACKING_ID_UPDATE:ot,MEASUREMENT_PROTOCOL_UPDATE:rt},lt={auth:{ua:"",v4:"",viewname:"",network_ua:"",network_viewname:""}},ut={namespaced:!0,state:lt,actions:X,getters:et,mutations:ct},dt=n("f0a3"),pt=function(t){return new Promise((function(e){var n=dt["a"].fetchAddons();n.then((function(n){n&&(t.commit("ADDONS_UPDATED",n),ft(t)),e(!0)})).catch((function(t){console.error(t),e(!1)}))}))},ft=function(t){if(t.dispatch("$_app/removeNotice","google_amp_addon",{root:!0}),t.dispatch("$_app/removeNotice","instant_articles_addon",{root:!0}),mt(t,"amp")&&!mt(t,"google_amp")){var e=t.rootGetters["$_app/mi"].install_amp_url,n=void 0!==e&&e.indexOf("activate")>0?Object(c["a"])("Activate","google-analytics-for-wordpress"):Object(c["a"])("Install","google-analytics-for-wordpress"),i=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&&(i=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:i,type:"error"},{root:!0})}if(mt(t,"facebook-instant-articles")&&!mt(t,"instant_articles")){var a=t.rootGetters["$_app/mi"].install_fbia_url,o=void 0!==a&&a.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="'+a+'">',o,"</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})}},mt=function(t,e){return!!t.state.addons[e]&&t.state.addons[e].active},ht=function(t,e){return dt["a"].installAddon(t,e)},gt=function(t,e){return dt["a"].installPlugin(t,e.slug,e.id)},_t=function(t,e){return dt["a"].installOnboardingPlugin(t,e.slug)},vt=function(t,e){return dt["a"].activateAddon(t,e).then((function(){ft(t)}))},bt=function(t,e){return dt["a"].activateAddon(t,e)},yt=function(t,e){return dt["a"].deactivateAddon(t,e).then((function(){ft(t)}))},wt=function(t){return dt["a"].installWPForms(t)},Ct={getAddons:pt,installAddon:ht,activateAddon:vt,activateOnboardingAddon:bt,deactivateAddon:yt,installWPForms:wt,installPlugin:gt,installOnboardingPlugin:_t},kt=(n("4e82"),n("ac1f"),n("841c"),function(t){return t.addons}),xt=function(t){return t.sort},$t=function(t){return t.search},Ot={addons:kt,sort:xt,search:$t},At=function(t,e){s["a"].set(t,"addons",e)},jt=function(t,e){void 0!==t.addons[e]&&(t.addons[e].active=!0)},St=function(t,e){t.addons[e].active=!1},Tt=function(t,e){var n=e.id?e.id:e.slug;t.addons[n].installed=!0,e.basename&&(t.addons[n].basename=e.basename)},Pt=function(t,e){t.sort=e},Et=function(t,e){t.search=e},Dt={ADDONS_UPDATED:At,ADDON_ACTIVATED:jt,ADDON_DEACTIVATED:St,ADDON_INSTALLED:Tt,UPDATE_SORT:Pt,UPDATE_SEARCH:Et},Nt={addons:{},search:""},It={namespaced:!0,state:Nt,actions:Ct,getters:Ot,mutations:Dt},Lt=n("7220"),Ut=n("0377"),Bt=function(t){Ut["a"].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)}))},Vt=function(t,e){return new Promise((function(n,s){Ut["a"].dismissNotification(e).then((function(s){s&&(t.commit("NOTIFICATION_DISMISSED",e),n(!0))})).catch((function(t){console.error(t),s(t)}))}))},Rt={getNotifications:Bt,dismissNotification:Vt},Ft=function(t){return t.notifications},Mt=function(t){return t.dismissed},Ht=function(t){return t.view_url},qt=function(t){return t.sidebar_url},Yt={notifications:Ft,dismissed:Mt,view_url:Ht,sidebar_url:qt},Kt=(n("159b"),n("a434"),function(t,e){t.notifications=e.notifications,t.dismissed=e.dismissed}),Wt=function(t,e){t.view_url=e},Gt=function(t,e){t.sidebar_url=e},Zt=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=[])},Jt={NOTIFICATIONS_UPDATED:Kt,NOTIFICATIONS_URL_UPDATED:Wt,NOTIFICATIONS_SIDEBAR_URL_UPDATED:Gt,NOTIFICATION_DISMISSED:Zt},Qt={notifications:[],dismissed:[],view_url:"",sidebar_url:""},zt={namespaced:!0,state:Qt,actions:Rt,getters:Yt,mutations:Jt},Xt=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,i=new FormData;i.append("action","monsterinsights_get_popular_posts_themes"),i.append("nonce",s["a"].prototype.$mi.nonce),i.append("type",t),D.a.post(n,i).then((function(t){if(!t.data.success)return!1;e(t.data.data)})).catch((function(){return!1}))}))},te=function(t,e){return new Promise((function(t){var n=s["a"].prototype.$mi.ajax,i=new FormData;i.append("action","monsterinsights_vue_popular_posts_update_theme_setting"),i.append("nonce",s["a"].prototype.$mi.nonce),i.append("type",e.type),i.append("theme",e.theme),i.append("object",e.object),i.append("key",e.key),i.append("value",e.value),D.a.post(n,i).then((function(e){t(e.data)})).catch((function(t){var e=s["a"].prototype.$getUrl("admin-notices","error-verifying-license","https://www.monsterinsights.com/my-account/support");if(t.response){var n=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. Please %3$scontact our support%4$s team for assistance.","google-analytics-for-wordpress"),n.status,n.statusText,'<a target="_blank" href="'+e+'">',"</a>")})}s["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Oops! There was an error, your settings were not saved. Please try again in a few minutes. If the issue persists, please %1$scontact our support%2$s team.","google-analytics-for-wordpress"),'<a target="_blank" href="'+e+'">',"</a>")})}))}))},ee={fetchThemes:Xt,updateThemeSetting:te},ne=function(t,e){ee.fetchThemes(e).then((function(n){n.themes&&t.commit("THEMES_UPDATED",{themes:n.themes,type:e})})).catch((function(t){console.error(t)}))},se=function(t,e){t.commit("THEME_STYLE_UPDATE",e),t.commit("$_settings/SETTINGS_SAVE_START",!0,{root:!0});var n=ee.updateThemeSetting(t,e);return n.then((function(){t.commit("$_settings/SETTINGS_SAVE_END",!0,{root:!0})})),n},ie=function(t,e){e.type&&"undefined"!==typeof e.key&&t.commit("PREVIEW_UPDATED",e)},ae={getThemes:ne,updatePreview:ie,updateThemeSetting:se},oe=function(t){return t.themes_inline},re=function(t){return t.themes_widget},ce=function(t){return t.themes_products},le=function(t){return t.theme_preview_inline},ue=function(t){return t.theme_preview_widget},de=function(t){return t.theme_preview_products},pe={themes_inline:oe,themes_widget:re,themes_products:ce,theme_preview_inline:le,theme_preview_widget:ue,theme_preview_products:de},fe=function(t,e){e.type&&"undefined"!==typeof t["themes_"+e.type]&&(t["themes_"+e.type]=e.themes)},me=function(t,e){e.type&&"undefined"!==typeof t["theme_preview_"+e.type]&&(t["theme_preview_"+e.type]=e.key)},he=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)},ge={THEMES_UPDATED:fe,PREVIEW_UPDATED:me,THEME_STYLE_UPDATE:he},_e={themes_inline:{},themes_widget:{},themes_products:{},theme_preview_inline:"",theme_preview_widget:"",theme_preview_products:""},ve={namespaced:!0,state:_e,actions:ae,getters:pe,mutations:ge},be=n("c7eb"),ye=n("1da1"),we=(n("4795"),function(){var t=Object(ye["a"])(Object(be["a"])().mark((function t(e){var n,s,i,a;return Object(be["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.state,s=e.commit,i=e.dispatch,!n.is_running){t.next=3;break}return t.abrupt("return");case 3:if(!(n.queue&&n.queue.length>0)){t.next=11;break}return s("SET_IS_RUNNING",!0),a=n.queue[0],t.next=8,a();case 8:s("SHIFT"),s("SET_IS_RUNNING",!1),setTimeout((function(){return i("next")}),0);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),Ce=function(t,e){var n=t.state,s=t.commit,i=t.dispatch;s("PUSH",e),n.is_running||i("next")},ke={next:we,add:Ce},xe=function(t){return t.queue},$e=function(t){return t.is_running},Oe={queue:xe,is_running:$e},Ae=n("2909"),je=(n("fb6a"),n("99af"),function(t){t.queue&&t.queue.length>0&&(t.queue=t.queue.slice(1))}),Se=function(t,e){t.queue&&(t.queue=[].concat(Object(Ae["a"])(t.queue),[e]))},Te=function(t,e){t.is_running=e},Pe={SHIFT:je,PUSH:Se,SET_IS_RUNNING:Te},Ee={queue:[],is_running:!1},De={namespaced:!0,state:Ee,actions:ke,getters:Oe,mutations:Pe},Ne=function(t){t.commit("INIT")},Ie=function(t){t.commit("BLOCK_APP")},Le=function(t){t.commit("UNBLOCK_APP")},Ue=function(t,e){t.commit("ADD_NOTICE",e)},Be=function(t,e){t.commit("REMOVE_NOTICE",e)},Ve=function(t){t.commit("RESET_NOTICES")},Re={init:Ne,block:Ie,unblock:Le,addNotice:Ue,removeNotice:Be,resetNotices:Ve},Fe=function(t){return t.blocked},Me=function(t){return t.notices},He=function(t){return t.mi},qe=function(t){return t.ftp_form},Ye={blocked:Fe,notices:Me,mi:He,ftp_form:qe},Ke=function(){},We=function(t){t.blocked=!0},Ge=function(t){t.blocked=!1},Ze=function(t,e){e.id&&s["a"].set(t.notices,e.id,e)},Je=function(t,e){t.notices[e]&&s["a"].delete(t.notices,e)},Qe=function(t){t.notices={}},ze=function(t,e){t.ftp_form.hostname=e},Xe=function(t,e){t.ftp_form.username=e},tn=function(t,e){t.ftp_form.password=e},en=function(t,e){t.ftp_form.connection_type=e},nn=function(t,e){t.ftp_form.visible=!0,t.ftp_form.action=e.action,t.ftp_form.data=e.data},sn=function(t){t.ftp_form.visible=!1},an={INIT:Ke,BLOCK_APP:We,UNBLOCK_APP:Ge,ADD_NOTICE:Ze,REMOVE_NOTICE:Je,RESET_NOTICES:Qe,UPDATE_HOSTNAME:ze,UPDATE_USERNAME:Xe,UPDATE_PASSWORD:tn,UPDATE_CONNECTION_TYPE:en,SHOW_FTP_FORM:nn,HIDE_FTP_FORM:sn},on={blocked:!1,notices:{},mi:window.monsterinsights?window.monsterinsights:{},ftp_form:{hostname:"",username:"",password:"",connection_type:"ftp",visible:!1,action:"",data:{}}},rn={namespaced:!0,state:on,actions:Re,getters:Ye,mutations:an},cn=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"})}}))},ln=cn;s["a"].use(i["a"]);var un=[ln];e["a"]=new i["a"].Store({modules:{$_app:rn,$_license:P,$_auth:ut,$_addons:It,$_settings:Lt["a"],$_notifications:zt,$_popularposts:ve,$_queue:De},plugins:un})},4368:function(t,e,n){"use strict";var s=n("5530");n("a9e3");e["a"]={props:{disabled:{type:Boolean,default:!1},inputValue:{type:[String,Number]},value:{type:[Boolean,Array,String,Number],default:!1},faux:{type:Boolean,default:!1}},computed:{innerValue:{get:function(){return this.faux?void 0===this.inputValue||this.inputValue:this.value},set:function(t){this.faux||this.$emit("input",t)}},fieldId:function(){return this.$attrs.id?this.$attrs.id:"field-toggle-".concat(this._uid)},fieldBindings:function(){return Object(s["a"])(Object(s["a"])({},this.$attrs),{},{id:this.fieldId})}}}},4501:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("div",[t.hasValue?t._e():e("div",{staticClass:"inline-fields"},[e("div",{staticClass:"field"},[e("a",{staticClass:"monsterinsights-upload-button",attrs:{href:"#"},domProps:{textContent:t._s(t.texts.uploadImage)},on:{click:function(e){return e.preventDefault(),t.uploadImage.apply(null,arguments)}}})])]),t._t("before-preview"),t.hasValue?e("div",{staticClass:"inline-fields"},[e("div",{staticClass:"field"},[e("a",{staticClass:"monsterinsights-upload-button",attrs:{href:"#"},domProps:{textContent:t._s(t.uploadedBtnText)},on:{click:function(e){return e.preventDefault(),t.uploadImage.apply(null,arguments)}}})])]):t._e()],2)},i=[],a=n("5530"),o=(n("b64b"),n("07ac"),n("b0c0"),n("fb6a"),n("d3b7"),n("159b"),n("561c")),r=(n("6c3b"),{name:"ImageUploader",props:{value:{type:Object,default:function(){return{}}},uploaderSettings:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{texts:function(){return{uploadImage:Object(o["a"])("Select Media",this.$textDomain),chooseAnother:Object(o["a"])("Change Media",this.$_textDomain)}},hasValue:function(){return this.value&&0!==Object.keys(this.value).length},uploadedBtnText:function(){return Object.values(this.value)[0]&&Object.values(this.value)[0].name?Object.values(this.value)[0].name.slice(0,13):this.texts.chooseAnother}},methods:{reset:function(){this.$emit("input",[])},uploadImage:function(){var t=this,e=Object(a["a"])({uploaderTitle:Object(o["a"])("Select or upload image",this.$_textDomain),uploaderButton:Object(o["a"])("Set Image",this.$_textDomain),multiple:!1},this.uploaderSettings),n=wp.media({title:e.uploaderTitle,button:{text:e.uploaderButton},multiple:e.multiple}).on("select",(function(){var e=n.state().get("selection"),s={};e.forEach((function(t){s[t.id]={url:t.changed.url,name:t.changed.filename}})),t.$emit("input",s)})).open()}}}),c=r,l=n("2877"),u=Object(l["a"])(c,s,i,!1,null,null,null);e["default"]=u.exports},"48c7":function(t,e,n){"use strict";var s=function(){var t=this,e=t._self._c;return t.noauth?t._e():e("div",{staticClass:"monsterinsights-upsell-overlay"},[e("div",{staticClass:"monsterinsights-upsell-top"},[t.upsellData.mainheading?e("h3",{domProps:{textContent:t._s(t.upsellData.mainheading)}}):t._e()]),e("div",{staticClass:"monsterinsights-upsell-content"},[e("div",{staticClass:"monsterinsights-upsell-content__features"},[t.upsellData.title?e("h3",{domProps:{textContent:t._s(t.upsellData.title)}}):t._e(),t.subHeading?e("h4",{domProps:{textContent:t._s(t.subHeading)}}):t._e(),t.upsellData.features?e("ul",{class:t.featuresClass},t._l(t.upsellData.features,(function(n,s){return e("li",{key:s,domProps:{textContent:t._s(n)}})})),0):t._e(),e("p",{domProps:{innerHTML:t._s(t.footer_notice)}}),e("a",{staticClass:"monsterinsights-button",attrs:{href:t.upgrade_link,target:"_blank"},domProps:{textContent:t._s(t.text_upsell_button)}})]),t.noImage?t._e():e("div",{staticClass:"monsterinsights-upsell-content__img",class:t.report_class})])])},i=[],a=n("5530"),o=n("2f62"),r=n("561c"),c={name:"ReportUpsellOverlay",props:{report:String,noImage:{type:Boolean,default:!1}},data:function(){return{upgrade_link:this.$getUpgradeUrl("report",this.report),text_upsell_button:Object(r["a"])("Upgrade and Unlock","google-analytics-for-wordpress"),report_class:"upsell-"+this.report}},computed:Object(a["a"])(Object(a["a"])({},Object(o["b"])({noauth:"$_reports/noauth"})),{},{upsellData:function(){return this.$mi_get_upsell_content(this.report)},subHeading:function(){return Object(r["d"])(Object(r["a"])("What’s in the %1$s?","google-analytics-for-wordpress"),this.upsellData.mainheading)},featuresClass:function(){return this.upsellData.features.length>4?"columns-2":"columns-1"},footer_notice:function(){return Object(r["d"])(Object(r["a"])("%1$sPlus%2$s, upgrading to Pro will unlock %1$sall%2$s advanced reports, tracking, and integrations. %3$sLearn more about Pro%4$s","google-analytics-for-wordpress"),"<strong>","</strong>",'<a target="_blank" href="'+this.upgrade_link+'">',"</a>")}})},l=c,u=n("2877"),d=Object(u["a"])(l,s,i,!1,null,null,null);e["a"]=d.exports},4929:function(t,e,n){"use strict";n("4c17")},"4a03":function(t,e,n){"use strict";n("a20b")},"4a98":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.close,expression:"close"}],staticClass:"button-dropdown"},[e("button",{class:"button "+t.buttonClass+(t.selected&&t.selected.id?"":" default"),style:t.getSelectedStyles,attrs:{type:"button"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.close.apply(null,arguments)},click:t.toggle}},[t._t("button")],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],staticClass:"button-dropdown__list"},t._l(t.choices,(function(n,s){return e("button",{key:s,class:"button button-dropdown__item"+(t.selected&&t.selected.id===n.id?" selected":""),attrs:{type:"button",disabled:n.disabled},on:{click:function(e){return t.onChoiceClick(n)}}},[t._t("item-content",(function(){return[e("span",{style:t.getButtonStyles(n)},[t._v(t._s(n.text))])]}),{item:n})],2)})),0)])},i=[],a=(n("d3b7"),{name:"ButtonDropdown",props:{buttonClass:{type:[String]},choices:{type:Array,required:!0,validator:function(t){return t.every((function(t){return t.hasOwnProperty("text")&&t.hasOwnProperty("handle")}))}},selectedChoice:{type:Object,default:function(){return{id:null,name:"",background_color:null,text_color:null}}}},data:function(){return{isOpen:!1,selected:null}},methods:{toggle:function(){this.isOpen=!this.isOpen},open:function(){this.isOpen=!0},close:function(){this.isOpen=!1},onChoiceClick:function(t){this.isOpen=!1,t.handle(t),this.selected=t},getButtonStyles:function(t){var e={};return t.background_color&&(e.backgroundColor=t.background_color),t.text_color&&(e.color=t.text_color),e}},computed:{getSelectedStyles:function(){var t={};return this.selected&&this.selected.background_color&&(t.backgroundColor=this.selected.background_color),this.selected&&this.selected.text_color&&(t.color=this.selected.text_color),t}},mounted:function(){this.selectedChoice&&(this.selected=this.selectedChoice)}}),o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["default"]=c.exports},"4bdc":function(t,e,n){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-navigation-bar"},[e("div",{staticClass:"monsterinsights-container"},[t._t("default")],2)])},i=[],a={name:"TheAppNavigation"},o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["a"]=c.exports},"4c17":function(t,e,n){},5441:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("aside",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],staticClass:"notifications-drawer"},[e("section",{staticClass:"notifications-drawer__wrapper"},[e("header",{staticClass:"notifications-drawer__header"},[e("div",{staticClass:"notifications-drawer__header-start"},[e("span",{directives:[{name:"icon",rawName:"v-icon:inbox",arg:"inbox"}]}),e("h4",{staticClass:"notifications-drawer__title"},[t._v(" "+t._s(t.title)+" ")])]),e("div",{staticClass:"notifications-drawer__header-end"},[e("button",{staticClass:"button is-link",class:"".concat(t.$_classPrefix,"-button"),on:{click:t.toggleDismissed}},[t._v(" "+t._s(t.dismissedToggleText)+" ")]),e("button",{staticClass:"button is-link notifications-drawer__close",class:"".concat(t.$_classPrefix,"-button"),on:{click:t.emitClose}},[e("span",{directives:[{name:"icon",rawName:"v-icon:close",arg:"close"}]})])])]),e("section",{staticClass:"notifications-drawer__content"},[e("header",{staticClass:"notifications-drawer__subheader"},[e("div",{staticClass:"notifications-drawer__subheader-start"},[e("span",{staticClass:"notifications-count",class:{"is-dismissed":t.showDismissed,"is-empty":!t.showDismissed&&!t.notificationsCount}},[t.showDismissed?e("span",[t._v(t._s(t.dismissedCount))]):e("span",[t._v(t._s(t.notificationsCount))])]),e("h5",[t._v(t._s(t.texts.notifications))])]),e("div",{staticClass:"notifications-drawer__subheader-end"},[!t.showDismissed&&t.notificationsCount?e("button",{staticClass:"button is-link",class:"".concat(t.$_classPrefix,"-button"),on:{click:t.dismissAll}},[t._v(" "+t._s(t.texts.dismissAll)+" ")]):t._e()])]),t.displayedNotifications.length>0?e("section",{staticClass:"notifications-drawer__list"},t._l(t.displayedNotifications,(function(n){return e("notification-item",{key:n.id,attrs:{"is-dismissed":t.showDismissed,notification:n},on:{dismiss:t.dismissNotification,action:t.performNotificationAction,"action-clicked":t.emitClose}})})),1):e("section",{staticClass:"notifications-drawer__empty"},[t._t("empty-notifications")],2)])])])},i=[],a=n("561c"),o=n("6cd8"),r={name:"NotificationsDrawer",components:{NotificationItem:o["default"]},props:{isOpen:{type:Boolean,default:!1},activeNotifications:{type:Array,required:!0},dismissedNotifications:{type:Array,required:!0}},data:function(){return{showDismissed:!1}},computed:{displayedNotifications:function(){return this.showDismissed?this.dismissedNotifications:this.activeNotifications},notificationsCount:function(){return this.activeNotifications.length},dismissedCount:function(){return this.dismissedNotifications.length},title:function(){return this.showDismissed?this.texts.dismissed:this.texts.inbox},dismissedToggleText:function(){return this.showDismissed?this.texts.backToInbox:this.texts.viewDismissed},texts:function(){return{inbox:Object(a["a"])("Inbox",this.$_textDomain),dismissed:Object(a["a"])("Dismissed",this.$_textDomain),viewDismissed:Object(a["a"])("View Dismissed",this.$_textDomain),backToInbox:Object(a["a"])("Back to Inbox",this.$_textDomain),notifications:Object(a["a"])("Notifications",this.$_textDomain),dismissAll:Object(a["a"])("Dismiss All",this.$_textDomain)}}},methods:{dismissNotification:function(t){this.$emit("dismiss",t)},dismissAll:function(){this.$emit("dismiss","all")},toggleDismissed:function(){this.showDismissed=!this.showDismissed},emitClose:function(){this.$emit("close")},performNotificationAction:function(t){this.$emit("action",t)}}},c=r,l=n("2877"),u=Object(l["a"])(c,s,i,!1,null,null,null);e["default"]=u.exports},"54b6":function(t,e,n){"use strict";var s={isThemeAvailable:function(t){return"lite"===t},canaccess:function(){return!1}};e["a"]=s},"557c":function(t,e,n){"use strict";e["a"]={props:{hasActionsColumn:{type:Boolean,default:!1},isSelectingAll:{type:Boolean,default:!1}},methods:{selectAll:function(){this.$emit("select-all")}}}},"5b08":function(t,e,n){"use strict";n.r(e);n("99af");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"selection-cards"},t._l(t.options,(function(n,s){return e("div",{key:s,staticClass:"selection-card",class:{"is-selected":t.value===n[t.valueKey],"is-disabled":n.disabled}},[e("label",{staticClass:"selection-card__label",attrs:{for:"radio-".concat(t.inputName,"-").concat(n[t.valueKey])}},[t._v(t._s(t.getLocalizedText("Select %s",n[t.titleKey])))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{id:"radio-".concat(t.inputName,"-").concat(n[t.valueKey]),type:"radio",name:"cards",disabled:n.disabled},domProps:{value:n[t.valueKey],checked:t._q(t.innerValue,n[t.valueKey])},on:{change:function(e){t.innerValue=n[t.valueKey]}}}),e("div",{staticClass:"admin-card"},[e("div",{staticClass:"admin-card__body"},[t._t("card-contents",null,{item:n,selected:t.value===n[t.valueKey]})],2)])])})),0)},i=[],a=(n("a9e3"),n("561c")),o={name:"SelectionCards",props:{inputName:{type:String,required:!0},value:{type:[String,Number]},options:{type:Array,required:!0},valueKey:{type:String,default:"value"},titleKey:{type:String,default:"title"}},data:function(){return{innerValue:""}},methods:{getLocalizedText:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(a["d"])(Object(a["a"])(t,this.$_textDomain),e)}},watch:{value:function(t){this.innerValue=t},innerValue:function(t){this.$emit("input",t)}},beforeMount:function(){void 0!==this.value&&(this.innerValue=this.value)}},r=o,c=n("2877"),l=Object(c["a"])(r,s,i,!1,null,null,null);e["default"]=l.exports},"5eda":function(t,e,n){},"632e":function(t,e,n){"use strict";n("92d5")},"6a42":function(t,e,n){},"6a8e":function(t,e,n){"use strict";var s=function(){var t=this,e=t._self._c;return e("date-picker",{attrs:{id:"note_date",disabled:t.disabled,valueType:"format",format:"YYYY-MM-DD","disabled-date":t.disableAfterToday},model:{value:t.innerValue,callback:function(e){t.innerValue=e},expression:"innerValue"}})},i=[],a=n("ec45"),o=n("c1df"),r=n.n(o),c={name:"SiteNotesDatePickerField",components:{DatePicker:a["a"]},props:{disabled:Boolean,value:{type:[String],default:""}},computed:{innerValue:{get:function(){return this.value?this.value:r()().format("YYYY-MM-DD")},set:function(t){this.$emit("input",t)}}},methods:{disableAfterToday:function(t){var e=new Date;return e.setHours(0,0,0,0),t>e}}},l=c,u=n("2877"),d=Object(u["a"])(l,s,i,!1,null,null,null);e["a"]=d.exports},"6c3b":function(t,e,n){},"6cd8":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("article",{staticClass:"notification-item",class:"is-".concat(t.notification.category)},[e("span",{staticClass:"notification-item__icon"},[e("span",{directives:[{name:"icon",rawName:"v-icon:[`notification-${notification.icon}`]",arg:"notification-".concat(t.notification.icon)}]})]),e("div",{staticClass:"notification-item__content"},[e("header",{staticClass:"notification-item__header"},[e("h6",{staticClass:"notification-item__title"},[t._v(" "+t._s(t.notification.title)+" ")]),e("span",{staticClass:"notification-item__date"},[t._v(t._s(t.notification.active_from.split(" ")[0]))])]),e("div",{staticClass:"notification-item__body"},[e("div",{domProps:{innerHTML:t._s(t.notification.content)}})]),e("div",{staticClass:"notification-item__actions"},[t._l(t.actions,(function(n,s){return["action"===n.type?e("button",{key:s,staticClass:"button is-secondary",class:"".concat(t.$_classPrefix,"-button"),attrs:{type:"button"},on:{click:function(e){return t.performAction(n)}}},[t._v(" "+t._s(n.text)+" ")]):e("a",{key:s,staticClass:"button is-secondary",class:"".concat(t.$_classPrefix,"-button"),attrs:{href:n.url,target:n.is_external?"_blank":"_self",rel:n.is_external?"noopener":""},on:{click:function(e){return t.$emit("action-clicked")}}},[t._v(" "+t._s(n.text)+" ")])]})),t.isDismissed?t._e():e("button",{staticClass:"button is-link",class:"".concat(t.$_classPrefix,"-button"),on:{click:t.dismiss}},[t._v(" "+t._s(t.texts.dismiss)+" ")])],2)])])},i=[],a=(n("07ac"),n("561c")),o={disableAutoload:!0,name:"NotificationItem",props:{isDismissed:{type:Boolean,default:!1},notification:{type:Object,required:!0}},computed:{actions:function(){return Array.isArray(this.notification.buttons)?this.notification.buttons:Object.values(this.notification.buttons)},texts:function(){return{dismiss:Object(a["a"])("Dismiss",this.$_textDomain)}}},methods:{dismiss:function(){this.$emit("dismiss",this.notification.id)},performAction:function(t){this.$emit("action",t)}}},r=o,c=n("2877"),l=Object(c["a"])(r,s,i,!1,null,null,null);e["default"]=l.exports},"6d70":function(t,e,n){"use strict";n("b0c0");var s=function(){var t=this,e=t._self._c;return e("fieldset",[e("div",{staticClass:"monsterinsights-settings-input-radio",class:t.classes},t._l(t.options,(function(n){return e("span",{key:n.value},[e("label",{class:t.labelClass(n),attrs:{for:"monsterinsights-settings-radio-"+t.name+"["+n.value+"]"}},[e("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltip_data,expression:"tooltip_data"}],class:t.titleClass(n.value)}),e("input",{attrs:{id:"monsterinsights-settings-radio-"+t.name+"["+n.value+"]",type:"radio",name:t.name,autocomplete:"off",readonly:t.disabled||n.level&&!t.optionAvailable(n.level)},domProps:{value:n.value,checked:t.isChecked(n.value)},on:{change:t.updateSetting}}),e("span",{staticClass:"monsterinsights-settings-radio-text",domProps:{innerHTML:t._s(n.label)}}),n.level?e("PopularPostsProPill",{attrs:{level:n.level}}):t._e()],1),t.$slots[n.value]&&t.isChecked(n.value)?e("span",{staticClass:"monsterinsights-radio-sub-panel"},[t.isChecked(n.value)?t._t(n.value):t._e()],2):t._e()])})),0)])},i=[],a=n("5530"),o=n("2f62"),r=n("17be"),c=n("54b6"),l={name:"SettingsInputRadio",components:{PopularPostsProPill:r["a"]},props:{options:Array,name:String,auth_disabled:{type:Boolean,default:!0},classes:String},data:function(){return{is_loading:!1,has_error:!1}},computed:Object(a["a"])(Object(a["a"])({},Object(o["b"])({settings:"$_settings/settings",auth:"$_auth/auth",license:"$_license/license",license_network:"$_license/license_network"})),{},{has_ua_or_v4:function(){return this.$mi.network?this.auth.network_ua||this.auth.network_v4||this.auth.network_manual_ua||this.auth.network_manual_v4:this.auth.ua||this.auth.v4||this.auth.manual_ua||this.auth.manual_v4},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_or_v4},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}}},u=l,d=n("2877"),p=Object(d["a"])(u,s,i,!1,null,null,null);e["a"]=p.exports},"6da2":function(t,e,n){"use strict";n.r(e);n("ac1f"),n("841c");var s=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.close,expression:"close"}],staticClass:"search-select",class:{"is-disabled":t.disabled}},[e("a",{staticClass:"search-select__fake",attrs:{href:"javascript:",role:"button"},on:{click:t.toggle}},[t.value?e("span",[t._v(t._s(t.value.label))]):e("span",[t._v(t._s(t.emptyStateText))])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],staticClass:"search-select__body"},[e("div",{staticClass:"search-select__field"},[t._t("before-input"),e("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],ref:"search",attrs:{placeholder:t.searchPlaceholder,type:"text",disabled:t.disabled},domProps:{value:t.search},on:{input:function(e){e.target.composing||(t.search=e.target.value)}}})],2),e("div",{staticClass:"search-select__list"},t._l(t.items,(function(n){return e("a",{key:n.id,attrs:{href:"javascript:"},on:{click:function(e){return t.select(n)}}},[t._v(t._s(n.label))])})),0)])])},i=[],a=n("c7eb"),o=n("1da1"),r=n("561c"),c=(n("4795"),void 0),l=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;return function(){for(var s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];clearTimeout(e),e=setTimeout((function(){t.apply(c,i)}),n)}},u={name:"SearchSelect",props:{disabled:{type:Boolean,default:!1},value:{type:Object},getItems:{type:Function,required:!0},emptyStateText:{type:String,default:function(){return Object(r["a"])("Choose",this.$_textDomain)}},searchPlaceholder:{type:String,default:function(){return Object(r["a"])("Search...",this.$_textDomain)}}},data:function(){return{isOpen:!1,firstOpened:!1,search:"",items:[]}},methods:{open:function(){var t=this;this.isOpen=!0,this.$refs.search.focus(),this.firstOpened||this.getItems().then((function(e){t.items=e}))},close:function(){this.isOpen=!1,this.search=""},toggle:function(){return this.isOpen?this.close():this.open()},select:function(t){this.close(),this.$emit("input",t)}},created:function(){var t=this;this.unwatch=this.$watch("search",l(function(){var e=Object(o["a"])(Object(a["a"])().mark((function e(n){return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(n.length>0)){e.next=4;break}return e.next=3,t.getItems(n);case 3:t.items=e.sent;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()))},beforeDestroy:function(){this.unwatch()}},d=u,p=n("2877"),f=Object(p["a"])(d,s,i,!1,null,null,null);e["default"]=f.exports},"6ffa":function(t,e,n){"use strict";n("b0c0");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-settings-input-repeater"},[t.rows.length?e("div",{staticClass:"monsterinsights-settings-input-repeater-labels monsterinsights-settings-input-repeater-row"},t._l(t.structure,(function(n,s){return e("label",{key:s,domProps:{textContent:t._s(n.label)}})})),0):t._e(),t._l(t.rows,(function(n,s){return[e("div",{key:s,staticClass:"monsterinsights-settings-input-repeater-row"},[t._l(t.structure,(function(n,i){return e("span",{key:i,class:t.errorClass(s,n.name)},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.rows[s][n.name],expression:"rows[index][input.name]"}],attrs:{type:"text",readonly:t.disabled},domProps:{value:t.rows[s][n.name]},on:{change:function(e){return t.updateSetting(!1,n.pattern)},input:function(e){e.target.composing||t.$set(t.rows[s],n.name,e.target.value)}}})])})),e("button",{attrs:{title:t.text_remove_row},on:{click:function(e){return e.preventDefault(),t.removeRow(s)}}},[e("i",{class:t.delete_icon})])],2),t.has_errors[s]?e("label",{key:s+"error",staticClass:"monsterinsights-error"},[e("i",{staticClass:"monstericon-warning-triangle"}),e("span",{domProps:{innerHTML:t._s(t.has_errors[s])}})]):t._e()]})),t.show_max_item_error?e("label",{staticClass:"monsterinsights-error"},[e("i",{staticClass:"monstericon-warning-triangle"}),e("span",{domProps:{innerHTML:t._s(t.max_item_error_notice)}})]):t._e(),t.show_min_item_error?e("label",{staticClass:"monsterinsights-error"},[e("i",{staticClass:"monstericon-warning-triangle"}),e("span",{domProps:{innerHTML:t._s(t.min_item_error_notice)}})]):t._e(),e("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.apply(null,arguments)}}})],2)},i=[],a=n("5530"),o=(n("a9e3"),n("e9c4"),n("14d9"),n("a434"),n("ac1f"),n("00b4"),n("4de4"),n("d3b7"),n("2b0e")),r=n("561c"),c=n("2f62"),l={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:Object(a["a"])(Object(a["a"])({},Object(c["b"])({settings:"$_settings/settings",auth:"$_auth/auth"})),{},{rows:{get:function(){return this.settings[this.name]||o["a"].set(this.settings,this.name,[]),JSON.parse(JSON.stringify(this.settings[this.name]))},set:function(){this.updateSetting(!1)}},has_ua_or_v4:function(){return this.$mi.network?this.auth.network_ua||this.auth.network_v4||this.auth.network_manual_ua||this.auth.network_manual_v4:this.auth.ua||this.auth.v4||this.auth.manual_ua||this.auth.manual_v4},disabled:function(){return!this.has_ua_or_v4},tooltip_data:function(){return{content:this.has_ua_or_v4?"":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){var s=function(){if(""===t.rows[n][t.structure[i]["name"]])return t.has_errors[n]=Object(r["d"])(Object(r["a"])("%s can't be empty.","google-analytics-for-wordpress"),"<strong>"+t.structure[i]["label"]+"</strong>"),"break";if(t.structure[i]["pattern"]){var s=t.structure[i]["pattern"].test(t.rows[n][t.structure[i]["name"]]);if(!1===s)return t.has_errors[n]=t.structure[i]["error"],"break"}if(t.structure[i]["prevent_duplicates"]){"undefined"===typeof e[t.structure[i]["name"]]&&(e[t.structure[i]["name"]]=[]),e[t.structure[i]["name"]].push(t.rows[n][t.structure[i]["name"]]);var a=e[t.structure[i]["name"]],o=function(){return a.filter((function(t,e){return a.indexOf(t)===e}))};a.length!==o(a).length&&(t.has_errors[n]=Object(r["a"])("Duplicate values are not allowed.","google-analytics-for-wordpress"))}};for(var i in this.structure){var a=s();if("break"===a)break}}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"}}},u=l,d=n("2877"),p=Object(d["a"])(u,s,i,!1,null,null,null);e["a"]=p.exports},"703b":function(t,e,n){"use strict";n.r(e);n("99af"),n("fb6a"),n("9911");var s=function(){var t=this,e=t._self._c;return e("fragment",[e("tr",[t.allowSelect?e("th",{staticClass:"check-column",attrs:{scope:"row"}},[e("label",{staticClass:"screen-reader-text",attrs:{for:"cb-select-".concat(t.item[t.itemIdAttribute])}},[t._v(t._s(t.texts.selectItem))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedItems,expression:"selectedItems"}],attrs:{id:"cb-select-".concat(t.item[t.itemIdAttribute]),type:"checkbox",name:"".concat(t.checkboxGroupName,"[]")},domProps:{value:t.item[t.itemIdAttribute],checked:Array.isArray(t.selectedItems)?t._i(t.selectedItems,t.item[t.itemIdAttribute])>-1:t.selectedItems},on:{change:function(e){var n=t.selectedItems,s=e.target,i=!!s.checked;if(Array.isArray(n)){var a=t.item[t.itemIdAttribute],o=t._i(n,a);s.checked?o<0&&(t.selectedItems=n.concat([a])):o>-1&&(t.selectedItems=n.slice(0,o).concat(n.slice(o+1)))}else t.selectedItems=i}}})]):t._e(),t._l(t.columns,(function(n,s){return e("td",{key:s,class:[{"has-row-actions column-primary page-title":n.isRowTitle},"column-cell-".concat(n.key)]},[n.isRowTitle?[t._t("row-before-title",null,{item:t.item}),n.link?[n.link.isVue?e("router-link",{staticClass:"row-title",attrs:{to:n.link.path(t.item)}},[t._v(" "+t._s(t.getColumnValue(n))+" ")]):e("span",{staticClass:"row-title"},[n.link.path&&"function"===typeof n.link.path?e("a",{attrs:{href:n.link.path(t.item)}},[t._v(t._s(t.getColumnValue(n)))]):n.link.handle&&"function"===typeof n.link.handle?e("a",{attrs:{href:"javascript:"},domProps:{textContent:t._s(t.getColumnValue(n))},on:{click:function(e){return e.preventDefault(),n.link.handle(t.item[t.itemIdAttribute])}}}):e("span",{domProps:{textContent:t._s(t.getColumnValue(n))}})])]:e("span",{staticClass:"row-title",domProps:{innerHTML:t._s(t.getColumnValue(n))}}),t.rowActions.length?e("div",{staticClass:"row-actions"},[t._l(t.rowActions,(function(n,s){return["function"===typeof n.hide&&n.hide(t.item)?t._e():e("span",{key:s,class:n.path},[n.handle&&"function"===typeof n.handle?e("a",{attrs:{href:"javascript:"},on:{click:function(e){return n.handle(t.item[t.itemIdAttribute])}}},[e("span",[t._v(t._s(n.label))])]):n.isVue?e("router-link",{attrs:{to:n.path(t.item[t.itemIdAttribute])}},[e("span",[t._v(t._s(n.label))])]):e("a",{attrs:{href:"function"===typeof n.path?n.path(t.item[t.itemIdAttribute]):n.path}},[e("span",[t._v(t._s(n.label))])])],1)]}))],2):t._e()]:e("div",{domProps:{innerHTML:t._s(t.getColumnValue(n))}})],2)})),t._t("row-end-actions",null,{item:t.item})],2),t._t("row-below",null,{item:t.item})],2)},i=[],a=(n("7db0"),n("d3b7"),n("561c")),o=n("76e6"),r={name:"AdminTableRow",components:{Fragment:o["a"]},props:{checkboxGroupName:{type:String,default:"post"},selected:{type:Array,required:!0},item:{type:Object,required:!0},itemIdAttribute:{type:String,default:"id"},columns:{type:Array,required:!0},rowActions:{type:Array,default:function(){return[]}},allowSelect:{type:Boolean,default:!0}},computed:{selectedItems:{get:function(){return this.selected},set:function(t){this.$emit("update:selected",t)}},rowTitle:function(){var t=this.columns.find((function(t){return t.isRowTitle}));return this.item[t.key]},texts:function(){return{selectItem:Object(a["d"])(Object(a["a"])("Select %s",this.$_textDomain),this.rowTitle)}}},methods:{getColumnValue:function(t){return t.value&&"function"===typeof t.value?t.value(this.item):this.item[t.key]}}},c=r,l=n("2877"),u=Object(l["a"])(c,s,i,!1,null,null,null);e["default"]=u.exports},"70fd":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("li",{staticClass:"admin-header-step-item",class:{"is-current":t.isCurrent,"is-clickable":t.step.hasOwnProperty("click")}},[e("a",{attrs:{href:"javascript:"},on:{click:function(){t.step.click&&t.step.click()}}},[t._v(t._s(t.step.title))]),t.isLast?e("span",{staticClass:"admin-header-step-item__separator"},[t._t("default")],2):t._e()])},i=[],a={name:"AdminHeaderWorkflowItem",props:{step:{type:Object,required:!0},isCurrent:{type:Boolean,default:!1},isLast:{type:Boolean,default:!1}}},o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["default"]=c.exports},7220:function(t,e,n){"use strict";n("4795"),n("d3b7"),n("3ca3"),n("ddb0"),n("9861"),n("ac1f"),n("841c"),n("b0c0"),n("e9c4");var s=n("bc3a"),i=n.n(s),a=n("2b0e"),o=n("561c"),r=function(t){return new Promise((function(e){var n=new FormData;n.append("action","monsterinsights_vue_get_settings"),n.append("nonce",a["a"].prototype.$mi.nonce),i.a.post(a["a"].prototype.$mi.ajax,n).then((function(t){var n=new URLSearchParams(window.location.search),s=n.get("page");s&&"monsterinsights_reports"!==s&&a["a"].prototype.$swal.close(),e(t.data)})).catch((function(e){t.dispatch("$_app/block",!1,{root:!0});var n=a["a"].prototype.$getUrl("admin-notices","error-verifying-license","https://www.monsterinsights.com/my-account/support");if(e.response){var s=e.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Can't load settings. Error: %1$s, %2$s. Please %3$scontact our support%4$s team for assistance. ","google-analytics-for-wordpress"),s.status,s.statusText,'<a target="_blank" href="'+n+'">',"</a>")})}a["a"].prototype.$mi_error_toast({title:Object(o["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",a["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)),i.a.post(a["a"].prototype.$mi.ajax,n).then((function(e){t(e.data)})).catch((function(t){var e=a["a"].prototype.$getUrl("admin-notices","error-verifying-license","https://www.monsterinsights.com/my-account/support");if(t.response){var n=t.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Can't save settings. Error: %1$s, %2$s. Please %3$scontact our support%4$s team for assistance.","google-analytics-for-wordpress"),n.status,n.statusText,'<a target="_blank" href="'+e+'">',"</a>")})}a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Oops! There was an error, your settings were not saved. Please try again in a few minutes. If the issue persists, please %1$scontact our support%2$s team.","google-analytics-for-wordpress"),'<a target="_blank" href="'+e+'">',"</a>")})}))}))},l=function(t,e){return new Promise((function(t){var n=new FormData;n.append("action","monsterinsights_vue_update_settings_bulk"),n.append("nonce",a["a"].prototype.$mi.nonce),n.append("settings",JSON.stringify(e)),i.a.post(a["a"].prototype.$mi.ajax,n).then((function(e){t(e.data)})).catch((function(t){var e=a["a"].prototype.$getUrl("admin-notices","error-verifying-license","https://www.monsterinsights.com/my-account/support");if(t.response){var n=t.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Can't save settings. Error: %1$s, %2$s. Please %3$scontact our support%4$s team for assistance.","google-analytics-for-wordpress"),n.status,n.statusText,'<a target="_blank" href="'+e+'">',"</a>")})}a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Oops! There was an error, your settings were not saved. Please try again in a few minutes. If the issue persists, please %1$scontact our support%2$s team.","google-analytics-for-wordpress"),'<a target="_blank" href="'+e+'">',"</a>")})}))}))},u=function(){return new Promise((function(t){var e=new FormData;e.append("action","monsterinsights_vue_get_local_gtag_js_from_remote"),e.append("nonce",a["a"].prototype.$mi.nonce),i.a.post(a["a"].prototype.$mi.ajax,e).then((function(e){t(e.data)}))}))},d={fetchSettings:r,saveSettings:c,saveBulkSettings:l,fetchLocalGtagRemote:u},p=function(t){d.fetchSettings(t).then((function(e){t.commit("SETTINGS_UPDATED",e)})).catch((function(t){console.error(t)}))},f=function(t,e){t.commit("SETTING_UPDATE",e),t.commit("SETTINGS_SAVE_START");var n=d.saveSettings(t,e);return n.then((function(){t.commit("SETTINGS_SAVE_END")})),n},m=function(t,e){t.commit("SETTINGS_BULK_UPDATE",e),t.commit("SETTINGS_SAVE_START");var n=d.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=d.saveSettings(t,e);return n.then((function(){t.commit("SETTINGS_SAVE_END")})),n},g=function(t,e){t.commit("SETTING_UPDATE_REDO",e),t.commit("SETTINGS_SAVE_START");var n=d.saveSettings(t,e);return n.then((function(){t.commit("SETTINGS_SAVE_END")})),n},_=function(t){t.commit("SETTINGS_SAVE_START"),a["a"].prototype.$mi_saving_toast({}),setTimeout((function(){t.commit("SETTINGS_SAVE_END"),a["a"].prototype.$mi_success_toast({})}),1e3)},v=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])},y={getSettings:p,updateSettings:f,simulateSave:_,undo:v,redo:b,updateSettingsUndo:h,updateSettingsRedo:g,updateSettingsBulk:m},w=function(t){return t.settings},C=function(t){return t.history},k=function(t){return t.historyIndex},x={settings:w,history:C,historyIndex:k},$=(n("14d9"),n("a434"),function(t,e){e.is_saving=!1,t.settings=e}),O=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++,a["a"].set(t.settings,e.name,e.value)},A=function(t,e){for(var n in t.settings.is_saving=!0,e)e.hasOwnProperty(n)&&a["a"].set(t.settings,n,e[n])},j=function(t,e){t.settings.is_saving=!0,t.historyIndex--,a["a"].set(t.settings,e.name,e.value)},S=function(t,e){t.settings.is_saving=!0,t.historyIndex++,a["a"].set(t.settings,e.name,e.value)},T=function(t){t.settings.is_saving=!0},P=function(t){t.settings.is_saving=!1},E={SETTINGS_UPDATED:$,SETTING_UPDATE:O,SETTINGS_SAVE_START:T,SETTINGS_SAVE_END:P,SETTING_UPDATE_UNDO:j,SETTING_UPDATE_REDO:S,SETTINGS_BULK_UPDATE:A},D={settings:{automatic_updates:"all"},history:[],historyIndex:-1};e["a"]={namespaced:!0,state:D,actions:y,getters:x,mutations:E}},7460:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r}));n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("25f0"),n("466d"),n("5319"),n("a9e3");var s=n("2b0e"),i={install:function(t){window.monsterinsights&&(t.prototype.$mi=window.monsterinsights),t.prototype.$isPro=r,t.prototype.$addQueryArg=c,t.prototype.$getUrl=o,t.prototype.$getUpgradeUrl=a,t.prototype.$formatNumber=l}};function a(t,e,n){var s=o(t,e,n);return r()?s:"0"!==window.monsterinsights.shareasale_id?c(window.monsterinsights.shareasale_url,"urllink",s):s}function o(t,e,n){var i=r()?"proplugin":"liteplugin",a=r()?"my-account/":"lite/",o=s["a"].prototype.$mi.plugin_version;return t=t||"defaultmedium",e=e||"defaultcampaign",n=n||"https://www.monsterinsights.com/"+a,n=c(n,"utm_source",i),n=c(n,"utm_medium",t),n=c(n,"utm_campaign",e),n=c(n,"utm_content",o),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 i="";-1!==t.indexOf("#")&&(i=t.replace(/.*#/,"#"),t=t.replace(/#.*/,""));var a=-1!==t.indexOf("?")?"&":"?";return t+a+e+"="+n+i}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"]=i},"7ca2":function(t,e,n){},"7f78":function(t,e,n){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-addon",attrs:{id:"monsterinsights-addon-".concat(t.addon.slug)}},[e("div",{staticClass:"monsterinsights-addon-top"},[t.addon.icon?e("div",{staticClass:"monsterinsights-addon-image"},[e("img",{staticClass:"monsterinsights-addon-thumb",attrs:{src:t.addon.icon,alt:t.addon.title}})]):t._e(),e("div",{staticClass:"monsterinsights-addon-text"},[e("h3",{staticClass:"monsterinsights-addon-title",domProps:{textContent:t._s(t.addonTitle)}}),t.addon.excerpt?e("p",{staticClass:"monsterinsights-addon-excerpt",domProps:{textContent:t._s(t.addon.excerpt)}}):t._e()])]),e("div",{class:t.actionsClass()},[e("div",{staticClass:"monsterinsights-interior"},["unlicensed"===t.addon.type?e("span",{staticClass:"monsterinsights-addon-status monsterinsights-green-text",domProps:{innerHTML:t._s(t.text_upgrade_required)}}):e("span",{staticClass:"monsterinsights-addon-status",domProps:{innerHTML:t._s(t.statusText())}}),e("div",{staticClass:"monsterinsights-addon-action"},["addons"===t.currentRouteName?e("div",[t.isLicenseExpired()||t.isNetworkLicenseExpired()?e("div",["licensed"===t.addon.type?e("button",{staticClass:"monsterinsights-button"},[e("span",{domProps:{textContent:t._s(t.text_expired)}})]):t._e()]):e("div",["licensed"===t.addon.type?e("button",{staticClass:"monsterinsights-button",on:{click:function(e){return e.preventDefault(),t.clickAction.apply(null,arguments)}}},[e("span",{domProps:{innerHTML:t._s(t.textButtonAction())}})]):e("a",{staticClass:"monsterinsights-button",attrs:{href:t.upgrade_url,target:"_blank"},domProps:{textContent:t._s(t.textButtonAction())}})])]):e("div",["licensed"===t.addon.type?e("button",{staticClass:"monsterinsights-button",on:{click:function(e){return e.preventDefault(),t.clickAction.apply(null,arguments)}}},[e("span",{domProps:{innerHTML:t._s(t.textButtonAction())}})]):e("a",{staticClass:"monsterinsights-button",attrs:{href:t.upgrade_url,target:"_blank"},domProps:{textContent:t._s(t.textButtonAction())}})])])])])])},i=[],a=n("5530"),o=(n("ac1f"),n("5319"),n("b0c0"),n("2f62")),r=n("561c"),c={name:"AddonBlock",props:{addon:Object,isAddon:{type:Boolean,default:!0}},data:function(){return{text_status:Object(r["a"])("Status: %s","google-analytics-for-wordpress"),text_upgrade:Object(r["a"])("Upgrade Now","google-analytics-for-wordpress"),upgrade_url:this.$getUpgradeUrl(),activating:!1,deactivating:!1,installing:!1,text_expired:Object(r["a"])("License Expired","google-analytics-for-wordpress"),text_upgrade_required:Object(r["a"])("Status: Upgrade Required","google-analytics-for-wordpress")}},computed:Object(a["a"])(Object(a["a"])({},Object(o["b"])({license:"$_license/license",license_network:"$_license/license_network"})),{},{addonTitle:function(){var t=this.addon.title;return 0===t.indexOf("MonsterInsights")&&(t=t.replace("MonsterInsights ","")),t},currentRouteName:function(){return this.$route.name}}),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(r["a"])("Not Installed","google-analytics-for-wordpress");return"licensed"!==this.addon.type?t=Object(r["a"])("Not Available","google-analytics-for-wordpress"):this.addon.active?t=this.$mi.network?Object(r["a"])("Network Active","google-analytics-for-wordpress"):Object(r["a"])("Active","google-analytics-for-wordpress"):this.addon.installed&&(t=Object(r["a"])("Inactive","google-analytics-for-wordpress")),Object(r["d"])(this.text_status,"<span>"+t+"</span>")},textButtonAction:function(){return"licensed"!==this.addon.type?Object(r["a"])("Upgrade Now","google-analytics-for-wordpress"):this.activating?Object(r["a"])("Activating...","google-analytics-for-wordpress"):this.deactivating?Object(r["a"])("Deactivating...","google-analytics-for-wordpress"):this.installing?Object(r["a"])("Installing...","google-analytics-for-wordpress"):this.addon.active?Object(r["a"])("Deactivate","google-analytics-for-wordpress"):this.addon.installed?Object(r["a"])("Activate","google-analytics-for-wordpress"):Object(r["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}))},isLicenseExpired:function(){return!("undefined"===typeof this.license||!this.license||!this.license.is_expired)},isNetworkLicenseExpired:function(){return!("undefined"===typeof this.license_network||!this.license_network||!this.license_network.is_expired)}}},l=c,u=n("2877"),d=Object(u["a"])(l,s,i,!1,null,null,null);e["a"]=d.exports},"844b":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"admin-table",class:{"brand-table":t.brandTable}},[t.quickFilters.length&&t.pagination?e("ul",{staticClass:"subsubsub"},t._l(t.quickFilters,(function(n,s){return e("li",{key:s,class:n.value},[e("a",{staticClass:"admin-table__quick-filter",class:t.getFilterClass(n),attrs:{href:"javascript:"},on:{click:function(e){return t.applyQuickFilter(n)}}},[t._v(" "+t._s(n.label)+" "),e("span",{staticClass:"count"},[t._v("("+t._s(n.count)+")")])])])})),0):t._e(),t.hasPagination?e("".concat(t.$_componentPrefix,"AdminTableNavigation"),t._b({tag:"component",staticClass:"top",attrs:{"allow-search":t.allowSearch,"selected-action":t.selectedAction},on:{"update:selectedAction":function(e){t.selectedAction=e},"update:selected-action":function(e){t.selectedAction=e},search:t.emitSearchKeywords,"apply-action":t.applyBulkAction,"page-change":t.emitPageChange,"filter-values":t.applyFilterChange}},"component",t.navigationStaticBindings,!1)):t._e(),e("table",{staticClass:"wp-list-table widefat striped table-view-list"},[t.noHeader?t._e():e("".concat(t.$_componentPrefix,"AdminTableHead"),t._b({tag:"component",attrs:{orderby:t.orderby,order:t.order,"has-actions-column":t.hasActionsColumn,"is-selecting-all":t.isSelectingAll},on:{"update:orderby":function(e){t.orderby=e},"update:order":function(e){t.order=e},"select-all":t.onSelectAll}},"component",t.headAndFootStaticBindings,!1)),t._t("before-body"),e("tbody",[t.isLoading?e("tr",[e("td",{attrs:{colspan:t.columns.length+1}},[e("div",{staticClass:"admin-table__empty"},[t._t("table-loading")],2)])]):t.items.length?t._l(t.items,(function(n){return e("".concat(t.$_componentPrefix,"AdminTableRow"),{key:n[t.itemIdAttribute],tag:"component",attrs:{item:n,columns:t.columns,selected:t.selected,"checkbox-group-name":t.checkboxGroupName,"item-id-attribute":t.itemIdAttribute,"allow-select":t.allowItemsSelect,"row-actions":t.rowActions},on:{"update:selected":function(e){t.selected=e}},scopedSlots:t._u([{key:"before-row",fn:function(e){var n=e.item;return[t._t("before-row",null,{item:n})]}},{key:"row-before-title",fn:function(e){var n=e.item;return[t._t("row-before-title",null,{item:n})]}},{key:"row-end-actions",fn:function(e){var n=e.item;return[t._t("row-end-actions",null,{item:n})]}},{key:"row-below",fn:function(e){var n=e.item;return[t._t("row-below",null,{item:n})]}}],null,!0)})})):e("tr",[e("td",{attrs:{colspan:t.columns.length+1}},[e("div",{staticClass:"admin-table__empty"},[t._t("table-empty")],2)])])],2),t.noFooter?t._e():e("".concat(t.$_componentPrefix,"AdminTableFoot"),t._b({tag:"component",attrs:{"is-selecting-all":t.isSelectingAll,"has-actions-column":t.hasActionsColumn},on:{"select-all":t.onSelectAll}},"component",t.headAndFootStaticBindings,!1))],2),t.hasPagination?e("".concat(t.$_componentPrefix,"AdminTableNavigation"),t._b({tag:"component",staticClass:"bottom",attrs:{"selected-action":t.selectedAction},on:{"update:selectedAction":function(e){t.selectedAction=e},"update:selected-action":function(e){t.selectedAction=e},"apply-action":t.applyBulkAction,"page-change":t.emitPageChange}},"component",t.navigationStaticBindings,!1)):t._e()],1)},i=[],a=n("5530"),o=(n("d3b7"),n("99af"),n("7db0"),n("d81d"),n("1c32"),n("561c")),r={name:"AdminTable",props:{brandTable:{type:Boolean,default:!1},checkboxGroupName:{type:String,default:"post"},itemIdAttribute:{type:String,default:"id"},allowSelectAll:{type:Boolean,default:!0},allowItemsSelect:{type:Boolean,default:!0},hasPagination:{type:Boolean,default:!0},noHeader:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},columns:{type:Array,required:!0,validator:function(t){return t.every((function(t){var e=t.hasOwnProperty("title");return(t.sortable||t.isRowTitle)&&(e=e&&t.hasOwnProperty("key")),e}))}},rowActions:{type:Array,default:function(){return[]}},items:{type:Array,required:!0},bulkActions:{type:Array,default:function(){return[]}},filters:{type:Array,default:function(){return[]}},pagination:{type:Object,default:function(){return{}}},quickFilters:{type:Array,default:function(){return[]},validator:function(t){return t.every((function(t){return t.hasOwnProperty("attribute")&&t.hasOwnProperty("value")}))}},currentQuickFilter:{type:String,default:"all"},isLoading:{type:Boolean,default:!1},allowSearch:{type:Boolean,default:!1}},data:function(){return{selected:[],orderby:null,order:"desc",selectedAction:-1}},computed:{navigationStaticBindings:function(){return{bulkActions:this.bulkActions,filters:this.filters,pagination:this.pagination?this.pagination:{page:1,pages:1,per_page:10,total:1}}},headAndFootStaticBindings:function(){return{allowSelectAll:this.allowSelectAll,columns:this.columns}},isSelectingAll:function(){return this.items.length>0&&this.selected.length===this.items.length},hasActionsColumn:function(){return void 0!==this.$scopedSlots["row-end-actions"]},texts:function(){return{all:Object(o["a"])("All",this.$_textDomain)}}},methods:{getCodedFilter:function(t){var e=t.attribute,n=t.value;return"".concat(e,":").concat(n)},getFilterClass:function(t){var e=this.getCodedFilter(t);return e===this.currentQuickFilter?"current":null},applyBulkAction:function(){var t=this,e=this.bulkActions.find((function(e){return e.value===t.selectedAction}));e&&"function"===typeof e.handle&&(e.handle(this.selected),this.selected=[])},applyFilterChange:function(t){this.$emit("filter-change",t)},onSelectAll:function(){var t=this;this.selected.length===this.items.length?this.selected=[]:this.selected=this.items.map((function(e){return e[t.itemIdAttribute]}))},emitSortChange:function(){this.$emit("sort-change",{orderby:this.orderby,order:this.order})},emitPageChange:function(t){var e=Object(a["a"])(Object(a["a"])({},this.pagination),{},{page:t});this.$emit("page-change",e)},applyQuickFilter:function(t){var e=this.getCodedFilter(t);this.$emit("update:currentQuickFilter",e),this.$emit("quick-filter",e)},emitSearchKeywords:function(t){this.$emit("search",t)}},watch:{currentQuickFilter:function(){this.selectedAction=-1,this.selected=[]},orderby:function(){this.emitSortChange()},order:function(){this.emitSortChange()},quickFilters:function(t){if("all"===this.currentQuickFilter||null===this.currentQuickFilter){var e=t.find((function(t){return"all"===t.value}));e&&this.$emit("update:currentQuickFilter",this.getCodedFilter(e))}}}},c=r,l=n("2877"),u=Object(l["a"])(c,s,i,!1,null,null,null);e["default"]=u.exports},8879:function(t,e,n){var s={"./PageNavigator.vue":"20b9","./ScreenHeader.vue":"027a","./comparison-table/ComparisonTable.vue":"ddf4","./controls/ButtonDropdown.vue":"4a98","./controls/Checkbox.vue":"9849","./controls/ColorPicker.vue":"155d","./controls/ColorPickerPredefined.vue":"9042","./controls/EditableText.vue":"8a9a","./controls/ImageUploader.vue":"4501","./controls/InputSelect.vue":"38de","./controls/OptionsCreator.vue":"9dd7","./controls/Radio.vue":"cd4d","./controls/RadioButtons.vue":"c6c6","./controls/RadioCards.vue":"4095","./controls/SearchSelect.vue":"6da2","./controls/SelectionCards.vue":"5b08","./controls/Toggle.vue":"97fb","./expandable-card/ExpandableCard.vue":"2728","./header/AdminHeader.vue":"19e8","./header/AdminHeaderWorkflow.vue":"d22b","./header/AdminHeaderWorkflowItem.vue":"70fd","./notification-banner/NotificationBanner.vue":"9b51","./notifications-drawer/NotificationItem.vue":"6cd8","./notifications-drawer/NotificationsDrawer.vue":"5441","./overlays/RestrictedAccessOverlay.vue":"1892","./table/AdminTable.vue":"844b","./table/AdminTableFoot.vue":"2af8","./table/AdminTableHead.vue":"3780","./table/AdminTableNavigation.vue":"3c38","./table/AdminTableRow.vue":"703b"};function i(t){var e=a(t);return n(e)}function a(t){if(!n.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}i.keys=function(){return Object.keys(s)},i.resolve=a,t.exports=i,i.id="8879"},"89da":function(t,e,n){},"8a9a":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"editable-text",class:{"is-editing":t.isEditing}},[e(t.tag,{ref:"element",tag:"component",staticClass:"editable-text__content",class:t.elementClass,attrs:{contenteditable:t.isEditing},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.saveEdit.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.preventDefault(),t.cancelEdit.apply(null,arguments))}]}},[t._v(" "+t._s(t.value)+" ")]),t.isEditing?t._e():e("button",{staticClass:"editable-text__button",class:t.editButtonClass,on:{click:t.enableEdit}},[t._t("edit-button",(function(){return[t._v(" "+t._s(t.texts.edit)+" ")]}))],2),t.isEditing?e("button",{staticClass:"editable-text__button",class:t.saveButtonClass,on:{click:t.saveEdit}},[t._t("save-button",(function(){return[t._v(" "+t._s(t.texts.save)+" ")]}))],2):t._e()],1)},i=[],a=n("561c"),o={inheritAttrs:!1,name:"EditableText",data:function(){return{originalValue:"",isEditing:!1}},props:{value:{type:String},tag:{type:String,default:"p"},elementClass:{type:[String,Array,Object]},editButtonClass:{type:[String,Array,Object],default:function(){return["button","".concat(this.$_classPrefix,"-button")]}},saveButtonClass:{type:[String,Array,Object],default:function(){return["button","".concat(this.$_classPrefix,"-button")]}}},computed:{texts:function(){return{edit:Object(a["a"])("Edit",this.$_textDomain),save:Object(a["a"])("Save",this.$_textDomain)}}},methods:{focusElement:function(){var t=this.$refs.element;t.focus();var e=document.createRange();e.selectNodeContents(t),e.collapse(!1);var n=window.getSelection();n.removeAllRanges(),n.addRange(e)},enableEdit:function(){var t=this;this.isEditing=!0,this.$nextTick((function(){t.focusElement()}))},cancelEdit:function(){this.isEditing=!1,this.$refs.element.innerText=this.originalValue},saveEdit:function(){this.isEditing=!1;var t=this.$refs.element.innerText;t.length>0?(this.originalValue=t,this.$emit("input",t)):this.$refs.element.innerText=this.originalValue}},mounted:function(){this.originalValue=this.$refs.element.innerText}},r=o,c=n("2877"),l=Object(c["a"])(r,s,i,!1,null,null,null);e["default"]=l.exports},"8c1c":function(t,e,n){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-not-authenticated-notice"},[e("h3",{domProps:{textContent:t._s(t.text_no_auth)}}),e("p",{domProps:{textContent:t._s(t.text_auth_label)}}),e("p",[e("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.text_button_reconnect)},on:{click:t.doReAuth}})])])},i=[],a=n("561c"),o={name:"ReportReAuth",data:function(){return{text_no_auth:Object(a["a"])("MonsterInsights encountered an error loading your report data","google-analytics-for-wordpress"),text_auth_label:Object(a["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(a["a"])("Reconnect MonsterInsights","google-analytics-for-wordpress")}},methods:{doReAuth:function(t){t.preventDefault();var e=this;this.$swal({type:"info",title:Object(a["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(a["a"])("Error","google-analytics-for-wordpress"),text:t.data.message,confirmButtonText:Object(a["a"])("Ok","google-analytics-for-wordpress")})}))}}},r=o,c=n("2877"),l=Object(c["a"])(r,s,i,!1,null,null,null);e["a"]=l.exports},9042:function(t,e,n){"use strict";n.r(e);n("fb6a");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"color-picker-predefined"},[e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{type:"hidden"},domProps:{value:t.innerValue},on:{input:function(e){e.target.composing||(t.innerValue=e.target.value)}}},"input",t.$attrs,!1)),e("a",{class:"color-picker-predefined-"+(t.isOpen?"hide":"show"),attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleList.apply(null,arguments)}}}),e("div",{staticClass:"color-picker-predefined__list main-list"},t._l(t.predefined.slice(0,6),(function(n,s){return e("a",{key:s,class:t.itemClass(n),style:{backgroundColor:n},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.chooseColor(n)}}})})),0),t.isOpen?e("div",{staticClass:"color-picker-predefined__list additional-list"},t._l(t.predefined.slice(6,18),(function(n,s){return e("a",{key:s,class:t.itemClass(n),style:{backgroundColor:n},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.chooseColor(n)}}})})),0):t._e()])},i=[],a=(n("ce26"),{inheritAttrs:!1,name:"ColorPickerPredefined",props:{value:{type:String},predefined:{type:Array,default:function(){return["#E9AF00","#FF893A","#F072B2","#8D87E5","#1EC185","#26A69A","#754FF6","#1230DF","#8BB1FA","#5195D8","#497FB2","#55B9D1","#E432E3","#D32D1F","#8D0F03","#A8803D","#A8AFB6","#697683"]}}},data:function(){return{isOpen:!1}},computed:{innerValue:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},methods:{chooseColor:function(t){this.innerValue=t,this.isOpen=!1},itemClass:function(t){return this.innerValue===t?"selected":""},toggleList:function(){this.isOpen=!this.isOpen},showList:function(){this.isOpen=!0},hideList:function(){this.isOpen=!1}}}),o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["default"]=c.exports},"92d5":function(t,e,n){},"93ec":function(t,e,n){"use strict";var s=function(){var t=this,e=t._self._c;return e("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltip_data,expression:"tooltip_data"}],staticClass:"monsterinsights-info",attrs:{tabindex:"0"}},[e("i",{staticClass:"monstericon monstericon-info-circle-regular"})])},i=[],a={name:"SettingsInfoTooltip",props:{content:String},computed:{tooltip_data:function(){return{content:this.content,autoHide:!1,trigger:"hover focus click"}}}},o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["a"]=c.exports},"97fb":function(t,e,n){"use strict";n.r(e);n("99af"),n("fb6a");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"field toggle",class:{"is-faux":t.faux}},[e("label",{staticClass:"toggle__field",attrs:{for:t.fieldId}},[e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{type:"checkbox",disabled:t.disabled||t.faux},domProps:{checked:Array.isArray(t.innerValue)?t._i(t.innerValue,null)>-1:t.innerValue},on:{change:function(e){var n=t.innerValue,s=e.target,i=!!s.checked;if(Array.isArray(n)){var a=null,o=t._i(n,a);s.checked?o<0&&(t.innerValue=n.concat([a])):o>-1&&(t.innerValue=n.slice(0,o).concat(n.slice(o+1)))}else t.innerValue=i}}},"input",t.fieldBindings,!1)),e("span",{staticClass:"toggle__skin"}),e("span",{staticClass:"toggle__label"},[t._t("default")],2)]),t.$slots["help"]?e("div",{staticClass:"toggle__help"},[t._t("help")],2):t._e()])},i=[],a=n("4368"),o={inheritAttrs:!1,name:"Toggle",mixins:[a["a"]]},r=o,c=n("2877"),l=Object(c["a"])(r,s,i,!1,null,null,null);e["default"]=l.exports},9849:function(t,e,n){"use strict";n.r(e);n("99af"),n("fb6a");var s=function(){var t=this,e=t._self._c;return e("label",{staticClass:"checkbox",class:{"is-disabled":t.disabled},attrs:{for:t.fieldId}},[e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{type:"checkbox",disabled:t.disabled},domProps:{value:t.inputValue,checked:Array.isArray(t.innerValue)?t._i(t.innerValue,t.inputValue)>-1:t.innerValue},on:{change:function(e){var n=t.innerValue,s=e.target,i=!!s.checked;if(Array.isArray(n)){var a=t.inputValue,o=t._i(n,a);s.checked?o<0&&(t.innerValue=n.concat([a])):o>-1&&(t.innerValue=n.slice(0,o).concat(n.slice(o+1)))}else t.innerValue=i}}},"input",t.fieldBindings,!1)),e("span",{staticClass:"checkbox__skin"},[e("svg",{attrs:{width:"11",height:"8",viewBox:"0 0 11 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M3.9627 7.84921L0.831445 4.72042C0.743945 4.63246 0.700195 4.51937 0.700195 4.38115C0.700195 4.24293 0.743945 4.12984 0.831445 4.04188L1.5252 3.36335C1.6127 3.26283 1.71895 3.21256 1.84395 3.21256C1.98145 3.21256 2.1002 3.26283 2.2002 3.36335L4.3002 5.47434L8.8002 0.950785C8.9002 0.850261 9.0127 0.799999 9.1377 0.799999C9.2752 0.799999 9.3877 0.850261 9.4752 0.950785L10.1689 1.62932C10.2564 1.71728 10.3002 1.83037 10.3002 1.96859C10.3002 2.10681 10.2564 2.21989 10.1689 2.30785L4.6377 7.84921C4.5502 7.94974 4.4377 8 4.3002 8C4.1627 8 4.0502 7.94974 3.9627 7.84921Z",fill:"currentColor"}})])]),e("span",[t._t("default"),t._t("after-label")],2)])},i=[],a=n("4368"),o={inheritAttrs:!1,name:"Checkbox",mixins:[a["a"]]},r=o,c=n("2877"),l=Object(c["a"])(r,s,i,!1,null,null,null);e["default"]=l.exports},"9b51":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"slide"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"notification-banner",class:t.bannerClasses},[e("div",{staticClass:"notification-banner__content"},[e(t.beforeContentComponent,{tag:"div"}),e(t.contentComponent,{tag:"div"})],1)])])},i=[],a=(n("a9e3"),n("4795"),{disableAutoload:!0,name:"NotificationBanner",props:{eventBus:{type:Object,required:!0},type:{type:String,default:"info",validator:function(t){return-1!==["info","success","warning"].indexOf(t)}},content:{type:String},timeout:{type:Number,default:-1},parentEl:{type:[String,Element],default:function(){return document.body}},slots:{type:Object},exclusive:{type:Boolean,default:!0}},data:function(){return{isActive:!1}},computed:{bannerClasses:function(){return["is-".concat(this.type)]},beforeContentComponent:function(){var t=this.slots.beforeContent;return t?{template:t}:null},contentComponent:function(){var t="<div>".concat(this.content,"</div>");return t?{template:t}:null}},methods:{close:function(){var t=this;this.isActive=!1,setTimeout((function(){t.$el.remove()}),2e3)}},beforeMount:function(){this.parentEl.appendChild(this.$el),this.exclusive&&this.eventBus.$emit("add-banner",this._uid)},mounted:function(){var t=this;this.isActive=!0,this.eventBus.$on("add-banner",(function(e){e!==t._uid&&t.close()})),this.timeout>-1&&setTimeout(this.close,1e3*this.timeout)}}),o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["default"]=c.exports},"9cc9":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));n("4795");var s=n("2b0e"),i=n("f13c"),a=n.n(i),o=(n("d81d"),n("ac1f"),n("5319"),n("841c"),n("1276"),n("a434"),n("a15b"),n("4d63"),n("c607"),n("2c3e"),n("25f0"),n("466d"),function(t){return(t||document.location.search).replace(/(^\?)/,"").split("&").map(function(t){return t=t.split("="),this[t[0]]=t[1],this}.bind({}))[0]}),r=function(t,e){e=e||document.location.href;var n=e.split("?");if(2>n.length)return e;for(var s=encodeURIComponent(t)+"=",i=n[1].split(/[&;]/g),a=i.length;0<a--;)-1!==i[a].lastIndexOf(s,0)&&i.splice(a,1);var o=n[0]+(0<i.length?"?"+i.join("&"):"");window.history.replaceState(null,null,o)};s["a"].use(a.a,{container:"body",duration:1e3,easing:"ease-in-out",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0});var c={mounted:function(){var t=this;if(o()["monsterinsights-scroll"]&&setTimeout((function(){t.$scrollTo("#".concat(o()["monsterinsights-scroll"]),{offset:-130}),r("monsterinsights-scroll")}),1500),o()["monsterinsights-highlight"]){var e=o()["monsterinsights-scroll"]?2500:1500;setTimeout((function(){var t=document.querySelector("#".concat(o()["monsterinsights-highlight"]));t&&(t.classList.add("monsterinsights-row-highlight"),setTimeout((function(){t.classList.remove("monsterinsights-row-highlight")}),2500)),r("monsterinsights-highlight")}),e)}},methods:{scrollToID:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;setTimeout((function(){e.$scrollTo("#".concat(t),{offset:n})}),100)}}}},"9d59":function(t,e,n){"use strict";n("9911");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-notices-area"},[e("div",{staticClass:"monsterinsights-container"},[e("slide-down-up",{attrs:{group:!0}},t._l(t.notices,(function(n,s){return e("div",{key:s,class:t.getNoticeClass(n.type,n.id)},[e("div",{staticClass:"monsterinsights-notice-inner"},[n.dismissable?e("button",{staticClass:"dismiss-notice",on:{click:function(e){return t.removeNotice(s)}}},[e("i",{staticClass:"monstericon-times"})]):t._e(),e("div",{staticClass:"notice-content"},[e("div",{class:n.icon?"monsterinsights-flex":""},[n.icon?e("div",{class:"monsterinsights-notice-icon monsterinsights-"+n.id+"-icon"},[e("span",{domProps:{innerHTML:t._s(n.icon)}})]):t._e(),e("div",[n.title?e("h2",{staticClass:"notice-title",domProps:{innerHTML:t._s(n.title)}}):t._e(),e("span",{staticClass:"monsterinsights-notice-content",domProps:{innerHTML:t._s(n.content)}}),n.button&&n.button.enabled?e("div",{staticClass:"monsterinsights-notice-button"},[e("a",{class:t.buttonClass(n.type),attrs:{target:"_blank",href:n.button.link},domProps:{textContent:t._s(n.button.text)}})]):t._e()])])])])])})),0)],1)])},i=[],a=n("5530"),o=n("2f62"),r=n("d98d"),c={name:"TheAppNotices",components:{SlideDownUp:r["a"]},computed:Object(a["a"])({},Object(o["b"])({notices:"$_app/notices"})),methods:{removeNotice:function(t){this.$store.dispatch("$_app/removeNotice",t)},getNoticeClass:function(t,e){return"monsterinsights-notice monsterinsights-notice-"+t+" monsterinsights-"+e},buttonClass:function(t){var e="monsterinsights-button";return"success"===t&&(e+=" monsterinsights-button-green"),"error"===t&&(e+=" monsterinsights-button-error"),e}}},l=c,u=n("2877"),d=Object(u["a"])(l,s,i,!1,null,null,null);e["a"]=d.exports},"9dd7":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"options-creator"},[e("div",{staticClass:"field"},[e("label",[t._t("label",(function(){return[t._v(t._s(t.texts.possibleAnswers))]}))],2)]),t._l(t.value,(function(n,s){return e("div",{key:s,staticClass:"field"},[e("input",{attrs:{type:"text",placeholder:t.fieldsPlaceholder},domProps:{value:n},on:{input:function(e){t.updateAnswerByIndex(s,e.target.value)}}}),s>=t.minOptions?e("button",{staticClass:"options-creator__remove",on:{click:function(e){return t.removeAnswerByIndex(s)}}},[t._t("button-remove",(function(){return[t._v(" "+t._s(t.texts.remove)+" ")]}))],2):t._e()])})),t.canAddMore?e("div",{staticClass:"field"},[e("button",{staticClass:"options-creator__add",attrs:{type:"button"},on:{click:t.addAnswer}},[t._t("button-add",(function(){return[t._v(" "+t._s(t.texts.addAnswer)+" ")]}))],2)]):t._e()],2)},i=[],a=(n("a9e3"),n("14d9"),n("a434"),n("498a"),n("cb29"),n("561c")),o={name:"OptionsCreator",props:{fieldsPlaceholder:{type:String},name:{type:String,required:!0},value:{type:Array},minOptions:{type:Number,default:2},maxOptions:{type:Number,default:-1}},computed:{canAddMore:function(){return-1===this.maxOptions||this.value&&this.value.length<this.maxOptions},canRemove:function(){return this.value.length>this.minOptions},texts:function(){return{possibleAnswers:Object(a["a"])("Possible Answers",this.$_textDomain),addAnswer:Object(a["a"])("Add Answer",this.$_textDomain),remove:Object(a["a"])("Remove",this.$_textDomain)}}},methods:{addAnswer:function(){if(this.canAddMore){var t=this.value;t.push(""),this.$emit("input",t)}},removeAnswerByIndex:function(t){if(this.canRemove){var e=this.value;e.splice(t,1),this.$emit("input",e)}},updateAnswerByIndex:function(t,e){var n=this.value;n[t]=e.trim(),this.$emit("input",n)}},mounted:function(){if(!this.value||!this.value.length){var t=Array(this.minOptions).fill("",0);this.$emit("input",t)}}},r=o,c=n("2877"),l=Object(c["a"])(r,s,i,!1,null,null,null);e["default"]=l.exports},a158:function(t,e,n){"use strict";n("9911");var s=function(){var t=this,e=t._self._c;return"tools-prettylinks-flow"!==t.route&&"woocommerce-insights"!==t.route?e("header",{staticClass:"monsterinsights-header"},[e("the-floating-bar"),e("div",{staticClass:"monsterinsights-container"},[e("div",{staticClass:"monsterinsights-logo-area"},[e("a",{attrs:{href:t.link,target:"_blank",rel:"noopener"}},[e("img",{attrs:{src:t.logo,srcset:t.logo2x}})])]),e("div",{staticClass:"monsterinsights-float-right"},[t._t("default")],2)])],1):t._e()},i=[],a=(n("b0c0"),n("9cc9")),o=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"monsterinsights-slide"}},[t.showBar?e("div",{staticClass:"monsterinsights-floating-bar"},[e("span",{domProps:{innerHTML:t._s(t.barText)}}),e("button",{staticClass:"monsterinsights-floating-bar-close",on:{click:t.hideBar}},[e("span",{staticClass:"monstericon-times"})])]):t._e()])},r=[],c=(n("4795"),n("c8cf"),n("561c")),l=n("bc3a"),u=n.n(l),d={name:"TheFloatingBar",data:function(){return{showBar:!1,barLink:this.$getUpgradeUrl("floatbar","upgrade")}},computed:{barText:function(){return Object(c["d"])(Object(c["a"])("%1$sYou're using %2$s Lite%3$s. To unlock all reports, consider %4$supgrading to Pro%5$s.","google-analytics-for-wordpress"),"<strong>","MonsterInsights","</strong>",'<a href="'+this.barLink+'" target="_blank">',"</a>")}},methods:{hideBar:function(){this.showBar=!1;var t=new FormData;t.append("action","monsterinsights_hide_floatbar"),t.append("nonce",this.$mi.nonce),u.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),u.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=d,f=n("2877"),m=Object(f["a"])(p,o,r,!1,null,null,null),h=m.exports,g=n("7460"),_={mixins:[a["a"]],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},link:function(){return this.$getUrl("logo","header","https://www.monsterinsights.com/"+(Object(g["c"])()?"":"lite/"))}}},v=_,b=(n("4929"),Object(f["a"])(v,s,i,!1,null,"18fdf54c",null));e["a"]=b.exports},a20b:function(t,e,n){},a4cc:function(t,e,n){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-welcome-overlay",attrs:{id:t.id},on:{click:t.maybeClose}},[e("div",{staticClass:"monsterinsights-welcome-overlay-inner"},[e("button",{staticClass:"monsterinsights-overlay-close",on:{click:t.close}},[e("span",{staticClass:"monstericon-times"})]),e("div",{staticClass:"monsterinsights-welcome-overlay-content"},[t._t("default")],2)])])},i=[],a={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()}}},o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["a"]=c.exports},aa9f:function(t,e,n){"use strict";n("a4d3"),n("e01a"),n("ac1f"),n("841c"),n("d3b7"),n("ddb0");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-settings-input-select"},[t.label?e("label",{attrs:{for:t.id}},[e("span",{staticClass:"monsterinsights-dark",domProps:{innerHTML:t._s(t.label)}}),t.description?e("span",{domProps:{innerHTML:t._s(t.description)}}):t._e(),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e()],1):t._e(),e("div",{staticClass:"monsterinsights-settings-input-select-input"},[e("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(n){n.search;var s=n.remove,i=n.values;return[e("div",{staticClass:"multiselect__tags-wrap",attrs:{"data-text":t.addtext}},[t._l(i,(function(n,i){return[e("span",{key:i,class:t.tagClass(n)},[e("span",{domProps:{textContent:t._s(n.label)}}),e("i",{staticClass:"multiselect__tag-icon",attrs:{"aria-hidden":"true",tabindex:"0"},on:{keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),s(n))},mousedown:function(t){return t.preventDefault(),s(n)}}})])]}))],2)]}}]),model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}})],1)])},i=[],a=n("5530"),o=(n("b0c0"),n("e9c4"),n("14d9"),n("561c")),r=n("2f62"),c=n("8e5f"),l=n.n(c),u=n("93ec"),d={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(o["a"])("No options available","google-analytics-for-wordpress")}},computed:Object(a["a"])(Object(a["a"])({},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}}},p=d,f=(n("2d5c"),n("2877")),m=Object(f["a"])(p,s,i,!1,null,"3b6b71fa",null);e["a"]=m.exports},aab3:function(t,e,n){"use strict";n("d3b7"),n("e9c4");var s=n("bc3a"),i=n.n(s),a=n("2b0e"),o=n("561c"),r=function(t){return new Promise((function(e){var n=new FormData;n.append("action","monsterinsights_vue_get_notes"),n.append("nonce",a["a"].prototype.$mi.nonce),n.append("params",JSON.stringify(t)),i.a.post(a["a"].prototype.$mi.ajax,n).then((function(t){e(t.data)}))}))},c=function(t){return new Promise((function(e){var n=new FormData;n.append("action","monsterinsights_vue_get_note"),n.append("nonce",a["a"].prototype.$mi.nonce),n.append("id",t),i.a.post(a["a"].prototype.$mi.ajax,n).then((function(t){e(t.data)}))}))},l=function(t){return new Promise((function(e){var n=new FormData;n.append("action","monsterinsights_vue_get_categories"),n.append("nonce",a["a"].prototype.$mi.nonce),n.append("params",JSON.stringify(t)),i.a.post(a["a"].prototype.$mi.ajax,n).then((function(t){e(t.data)}))}))},u=function(t){return new Promise((function(e,n){var s=new FormData;s.append("action","monsterinsights_vue_save_note"),s.append("nonce",a["a"].prototype.$mi.nonce),s.append("note",JSON.stringify(t)),i.a.post(a["a"].prototype.$mi.ajax,s).then((function(s){s.data.published?(a["a"].prototype.$mi_success_toast({title:t.id?Object(o["a"])("Site note is updated successfully.","google-analytics-for-wordpress"):Object(o["a"])("Site note is added successfully.","google-analytics-for-wordpress")}),e(s.data)):(a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("%1$s","google-analytics-for-wordpress"),s.data.message),html:Object(o["a"])("Please add some information into your site notes.","google-analytics-for-wordpress")}),n(s.data))})).catch((function(t){if(t.response){var e=t.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("%1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText),html:Object(o["a"])("Please add some information into your site notes.","google-analytics-for-wordpress")})}a["a"].prototype.$mi_error_toast({title:Object(o["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},d=function(t){return new Promise((function(e,n){var s=new FormData;s.append("action","monsterinsights_vue_save_category"),s.append("nonce",a["a"].prototype.$mi.nonce),s.append("category",JSON.stringify(t)),i.a.post(a["a"].prototype.$mi.ajax,s).then((function(t){t.data.published?(a["a"].prototype.$mi_success_toast({title:Object(o["a"])("Site note category is added successfully.","google-analytics-for-wordpress")}),e(t.data)):(a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Error: %1$s","google-analytics-for-wordpress"),t.data.message)}),n(t.data))})).catch((function(t){if(t.response){var e=t.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}a["a"].prototype.$mi_error_toast({title:Object(o["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},p=function(t){return new Promise((function(e,n){var s=new FormData;s.append("action","monsterinsights_vue_trash_notes"),s.append("nonce",a["a"].prototype.$mi.nonce),s.append("ids",JSON.stringify(t)),i.a.post(a["a"].prototype.$mi.ajax,s).then((function(t){t.data.success?(a["a"].prototype.$mi_success_toast({title:Object(o["a"])("Trashed successfully.","google-analytics-for-wordpress")}),e(t.data)):(a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Error: %1$s","google-analytics-for-wordpress"),t.data.message)}),n(t.data))})).catch((function(t){if(t.response){var e=t.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}a["a"].prototype.$mi_error_toast({title:Object(o["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},f=function(t){return new Promise((function(e,n){var s=new FormData;s.append("action","monsterinsights_vue_restore_notes"),s.append("nonce",a["a"].prototype.$mi.nonce),s.append("ids",JSON.stringify(t)),i.a.post(a["a"].prototype.$mi.ajax,s).then((function(t){t.data.success?(a["a"].prototype.$mi_success_toast({title:Object(o["a"])("Restored successfully.","google-analytics-for-wordpress")}),e(t.data)):(a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Error: %1$s","google-analytics-for-wordpress"),t.data.message)}),n(t.data))})).catch((function(t){if(t.response){var e=t.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}a["a"].prototype.$mi_error_toast({title:Object(o["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},m=function(t){return new Promise((function(e,n){var s=new FormData;s.append("action","monsterinsights_vue_delete_notes"),s.append("nonce",a["a"].prototype.$mi.nonce),s.append("ids",JSON.stringify(t)),i.a.post(a["a"].prototype.$mi.ajax,s).then((function(t){t.data.success?(a["a"].prototype.$mi_success_toast({title:Object(o["a"])("Deleted successfully.","google-analytics-for-wordpress")}),e(t.data)):(a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Error: %1$s","google-analytics-for-wordpress"),t.data.message)}),n(t.data))})).catch((function(t){if(t.response){var e=t.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}a["a"].prototype.$mi_error_toast({title:Object(o["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))},h=function(t){return new Promise((function(e,n){var s=new FormData;s.append("action","monsterinsights_vue_delete_categories"),s.append("nonce",a["a"].prototype.$mi.nonce),s.append("ids",JSON.stringify(t)),i.a.post(a["a"].prototype.$mi.ajax,s).then((function(t){t.data.success?(a["a"].prototype.$mi_success_toast({title:Object(o["a"])("Deleted successfully.","google-analytics-for-wordpress")}),e(t.data)):(a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Error: %1$s","google-analytics-for-wordpress"),t.data.message)}),n(t.data))})).catch((function(t){if(t.response){var e=t.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}a["a"].prototype.$mi_error_toast({title:Object(o["a"])("You appear to be offline.","google-analytics-for-wordpress")})}))}))};e["a"]={getNotes:r,getNote:c,getCategories:l,saveNote:u,saveCategory:d,trashNotes:p,restoreNotes:f,deleteNotes:m,deleteCategories:h}},ac39:function(t,e,n){},adcb:function(t,e,n){"use strict";var s=function(){var t=this;t._self._c;return t._e()},i=[],a={name:"SiteNotesMediasField"},o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["a"]=c.exports},ae15:function(t,e,n){"use strict";n("7ca2")},b333:function(t,e,n){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-settings-network-notice"},[t._m(0),e("div",{staticClass:"monsterinsights-network-message"},[t._t("default")],2)])},i=[function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"monsterinsights-bg-img monsterinsights-icon-warning"})])}],a={name:"SettingsNetworkNotice"},o=a,r=(n("ae15"),n("2877")),c=Object(r["a"])(o,s,i,!1,null,"1c1718a8",null);e["a"]=c.exports},b52e:function(t,e,n){"use strict";n("9911");var s=function(){var t=this,e=t._self._c;return e("div",{class:t.boxClass},[e("button",{staticClass:"monsterinsights-quick-links-label",on:{click:function(e){e.stopPropagation(),t.showMenu=!t.showMenu}}},[e("span",{staticClass:"monsterinsights-bg-img monsterinsights-quick-links-mascot"}),e("span",{staticClass:"monsterinsights-quick-link-title",domProps:{textContent:t._s(t.text_see_quick)}})]),e("transition-group",{staticClass:"monsterinsights-quick-links-menu",attrs:{tag:"div",name:"monsterinsights-staggered-fade"},on:{enter:t.enter,leave:t.leave}},[t.showMenu?t._l(t.menuItems,(function(n,s){return e("a",{key:n.key,class:t.linksClass(n.key),attrs:{href:n.link,"data-index":s,target:"_blank"}},[e("span",{class:n.icon}),e("span",{staticClass:"monsterinsights-quick-link-title",domProps:{innerHTML:t._s(n.tooltip)}})])})):t._e()],2)],1)},i=[],a=n("5530"),o=(n("14d9"),n("4795"),n("ac39"),n("561c")),r=n("2f62"),c={name:"TheQuickLinks",data:function(){return{showMenu:!1,text_see_quick:Object(o["a"])("See Quick Links","google-analytics-for-wordpress")}},computed:Object(a["a"])(Object(a["a"])({},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(o["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(o["a"])("Join Our Community","google-analytics-for-wordpress"),link:"https://www.facebook.com/groups/wpbeginner/",key:"community"},{icon:"monstericon-life-ring",tooltip:Object(o["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(o["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}}},l=c,u=n("2877"),d=Object(u["a"])(l,s,i,!1,null,null,null);e["a"]=d.exports},bd74:function(t,e,n){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-reports-infobox",attrs:{id:t.id}},[t.title?e("div",{staticClass:"monsterinsights-report-title",domProps:{textContent:t._s(t.title)}}):t._e(),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e(),""!==t.value?e("div",{staticClass:"monsterinsights-reports-infobox-number",attrs:{title:t.value},domProps:{textContent:t._s(t.value)}}):t._e(),""===t.value?e("div",{staticClass:"monsterinsights-reports-infobox-number",attrs:{title:t.value},domProps:{textContent:t._s(0)}}):t._e(),e("div",{class:t.changeClass,domProps:{innerHTML:t._s(t.changeText)}}),t.days?e("div",{staticClass:"monsterinsights-reports-infobox-compare",domProps:{textContent:t._s(t.compare)}}):t._e()],1)},i=[],a=(n("a9e3"),n("561c")),o=n("93ec"),r={name:"ReportInfobox",components:{SettingsInfoTooltip:o["a"]},props:{title:String,value:{default:"0",type:String},id:String,days:Number,tooltip:String,change:Number,color:{default:"green",type:String},direction:{default:"up",type:String}},computed:{compare:function(){return Object(a["b"])("vs. Previous Day",Object(a["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(a["a"])("No change","google-analytics-for-wordpress")}}},c=r,l=n("2877"),u=Object(l["a"])(c,s,i,!1,null,null,null);e["a"]=u.exports},c0cc:function(t,e,n){"use strict";n("d3b7"),n("159b"),n("ddb0"),n("99af");var s=n("2b0e"),i=n("9b51"),a=new s["a"],o={eventBus:a,type:"info",slot:"",parentEl:void 0,slots:{beforeContent:""}},r=function(t){return{show:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(o,e),s=t.extend(i["default"]);return new s({el:document.createElement("div"),propsData:n})}}},c=r,l={"click-outside":{bind:function(t,e,n){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||n.context[e.expression](s)},document.body.addEventListener("click",t.clickOutsideEvent)},unbind:function(t){document.body.removeEventListener("click",t.clickOutsideEvent)}}},u=l,d={componentPrefix:"",classPrefix:"",textDomain:"default"},p={install:function(t,e){var s=Object.assign(d,e),i=s.componentPrefix,a=s.classPrefix;t.prototype.$_componentPrefix=i,t.prototype.$_classPrefix=a,t.prototype.$_textDomain=i;var o=n("8879");for(var r in o.keys().forEach((function(e){if(!o(e).default.disableAutoload){var n=e.split("/").pop().split(".")[0];t.component("".concat(i).concat(n),o(e).default)}})),t.prototype.$notificationBanner=c(t),u)u.hasOwnProperty(r)&&t.directive(r,u[r])}};e["a"]=p},c23d:function(t,e,n){"use strict";n("d3b7");var s=n("bc3a"),i=n.n(s),a=n("2b0e"),o=function(){return new Promise((function(t,e){var n=new FormData;n.append("action","monsterinsights_vue_install_plugin"),n.append("slug","userfeedback-lite"),n.append("nonce",a["a"].prototype.$mi.nonce),i.a.post(a["a"].prototype.$mi.ajax,n).then((function(e){t(e.data)})).catch((function(t){e(t),console.log(t)}))}))},r=function(){return new Promise((function(t,e){var n=new FormData;n.append("action","monsterinsights_activate_addon"),n.append("nonce",a["a"].prototype.$mi.activate_nonce),n.append("isnetwork",a["a"].prototype.$mi.network),n.append("plugin","userfeedback-lite/userfeedback.php"),i.a.post(a["a"].prototype.$mi.ajax,n).then((function(e){t(e.data)})).catch((function(t){e(t)}))}))};e["a"]={installUserFeedback:o,activatelUserFeedback:r}},c472:function(t,e,n){"use strict";n("a4d3"),n("e01a"),n("b0c0"),n("99af"),n("fb6a");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"settings-input-text"},[t.label||t.description||t.tooltip?e("label",{attrs:{for:t.id}},[e("span",{staticClass:"monsterinsights-dark",domProps:{innerHTML:t._s(t.label)}}),t.description?e("span",{domProps:{innerHTML:t._s(t.description)}}):t._e(),t.showReset()?e("a",{staticClass:"monsterinsights-reset-default",attrs:{href:"#"},domProps:{textContent:t._s(t.text_reset)},on:{click:function(e){return e.preventDefault(),t.resetValue.apply(null,arguments)}}}):t._e(),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e()],1):t._e(),e("div",{staticClass:"settings-input-text-input"},["checkbox"===t.type?e("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||t.readonly,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,i=!!s.checked;if(Array.isArray(n)){var a=null,o=t._i(n,a);s.checked?o<0&&(t.value=n.concat([a])):o>-1&&(t.value=n.slice(0,o).concat(n.slice(o+1)))}else t.value=i},t.inputUpdate]}}):"radio"===t.type?e("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||t.readonly,type:"radio"},domProps:{checked:t._q(t.value,null)},on:{change:[function(e){t.value=null},t.inputUpdate]}}):e("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||t.readonly,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?e("label",{staticClass:"monsterinsights-error"},[e("i",{staticClass:"monstericon-warning-triangle"}),e("span",{domProps:{innerHTML:t._s(t.text_error)}})]):t._e()])},i=[],a=n("5530"),o=(n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("25f0"),n("00b4"),n("561c")),r=n("2f62"),c=n("93ec"),l={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},readonly:{type:Boolean,default:!1}},data:function(){return{is_loading:!1,has_error:!1,id:"input-"+this.name,text_reset:Object(o["a"])("Reset to default","google-analytics-for-wordpress"),text_error:Object(o["a"])("The value entered does not match the required format","google-analytics-for-wordpress"),updated_value:!1}},computed:Object(a["a"])(Object(a["a"])({},Object(r["b"])({settings:"$_settings/settings",auth:"$_auth/auth"})),{},{has_ua_or_v4:function(){return this.$mi.network?this.auth.network_ua||this.auth.network_v4||this.auth.network_manual_ua||this.auth.network_manual_v4:this.auth.ua||this.auth.v4||this.auth.manual_ua||this.auth.manual_v4},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_or_v4}}),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({}),this.value=e,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)}}},u=l,d=(n("632e"),n("2877")),p=Object(d["a"])(u,s,i,!1,null,"3253c54f",null);e["a"]=p.exports},c6c6:function(t,e,n){"use strict";n.r(e);n("99af");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"radio-buttons"},t._l(t.options,(function(n){return e("label",{key:n.value,staticClass:"radio-button",class:[t.buttonClass,{"is-disabled":n.disabled}],attrs:{for:"".concat(t.fieldNamePrefix,"-").concat(n.value)}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{id:"".concat(t.fieldNamePrefix,"-").concat(n.value),type:"radio",disabled:n.disabled},domProps:{value:n.value,checked:t._q(t.innerValue,n.value)},on:{change:function(e){t.innerValue=n.value}}}),e("span",{staticClass:"radio-button__skin"},[t._t("default",(function(){return[t._v(t._s(n.label))]}),{option:n})],2)])})),0)},i=[],a=(n("a9e3"),n("d3b7"),{inheritAttrs:!1,name:"RadioButtons",props:{value:{type:[String,Number,Boolean]},buttonClass:{type:[String,Object,Array]},fieldNamePrefix:{type:String,required:!0},options:{type:Array,required:!0,validator:function(t){return t.every((function(t){return t.hasOwnProperty("label")&&t.hasOwnProperty("value")}))}}},computed:{innerValue:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}}}),o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["default"]=c.exports},c8cf:function(t,e,n){},cd4d:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("label",{staticClass:"radio",class:{"is-disabled":t.disabled,"is-selected":t.innerValue===t.inputValue},attrs:{for:t.fieldId}},[e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.innerValue,expression:"innerValue"}],attrs:{type:"radio",disabled:t.disabled},domProps:{value:t.inputValue,checked:t._q(t.innerValue,t.inputValue)},on:{change:function(e){t.innerValue=t.inputValue}}},"input",t.fieldBindings,!1)),e("span",{staticClass:"radio__skin"}),e("span",{staticClass:"radio__content"},[t._t("default")],2)])},i=[],a=n("4368"),o={inheritAttrs:!1,name:"Radio",mixins:[a["a"]]},r=o,c=n("2877"),l=Object(c["a"])(r,s,i,!1,null,null,null);e["default"]=l.exports},ce26:function(t,e,n){},d22b:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("nav",{staticClass:"admin-header__nav"},[e("div",{staticClass:"admin-header__nav-start"},[e("ul",{staticClass:"admin-header-steps"},t._l(t.workflow.steps,(function(n,s){return e("".concat(t.$_componentPrefix,"AdminHeaderWorkflowItem"),{key:n.key,tag:"component",attrs:{step:n,"is-current":n.key===t.workflow.currentStep,"is-last":s!==t.workflow.steps.length-1}},[t._t("workflow-step-separator")],2)})),1)]),e("div",{staticClass:"admin-header__nav-end"},t._l(t.workflow.actions,(function(n,s){return e("button",{key:s,staticClass:"button",class:"".concat(t.$_classPrefix,"-button is-small"),attrs:{disabled:n.disabled},on:{click:n.handler}},[t._v(" "+t._s(n.label)+" ")])})),0)])},i=[],a={name:"AdminHeaderWorkflow",components:{},props:{workflow:{type:Object}}},o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["default"]=c.exports},d3fc:function(t,e,n){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-widget-error",class:t.isLicenseExpired()||t.isNetworkLicenseExpired()?"monsterinsights-license-expired-notice":""},[e("div",{staticClass:"swal2-header"},[t._m(0),e("h2",{staticClass:"swal2-title",attrs:{id:"monsterinsights-error-title"},domProps:{textContent:t._s(t.title)}})]),t.error.content?e("div",{staticClass:"monsterinsights-error-content",domProps:{innerHTML:t._s(t.error.content)}}):t._e(),t.error.footer?e("div",{staticClass:"monsterinsights-error-footer",domProps:{innerHTML:t._s(t.error.footer)}}):t._e()])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"swal2-icon swal2-error swal2-animate-error-icon",staticStyle:{display:"flex"}},[e("span",{staticClass:"swal2-x-mark"},[e("span",{staticClass:"swal2-x-mark-line-left"}),e("span",{staticClass:"swal2-x-mark-line-right"})])])}],a=n("5530"),o=n("561c"),r=n("2f62"),c={props:{error:[Object,Boolean]},computed:Object(a["a"])(Object(a["a"])({},Object(r["b"])({license:"$_license/license",license_network:"$_license/license_network"})),{},{title:function(){return this.error.title.title?this.error.title.title:Object(o["a"])("Error","google-analytics-for-wordpress")}}),name:"WidgetReportError",methods:{isLicenseExpired:function(){return!("undefined"===typeof this.license||!this.license||!this.license.is_expired)},isNetworkLicenseExpired:function(){return!("undefined"===typeof this.license_network||!this.license_network||!this.license_network.is_expired)}}},l=c,u=n("2877"),d=Object(u["a"])(l,s,i,!1,null,null,null);e["a"]=d.exports},d98d:function(t,e,n){"use strict";n("4795");var s,i,a={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 i=getComputedStyle(t),a=i.height;t.style.width="auto",t.style.position="relative",t.style.visibility="visible",t.style.height=0,setTimeout((function(){t.style.height=a})),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)}},o=a,r=(n("260d"),n("4a03"),n("2877")),c=Object(r["a"])(o,s,i,!1,null,"8d2cb686",null);e["a"]=c.exports},dd62:function(t,e,n){"use strict";n("d3b7");var s=n("bc3a"),i=n.n(s),a=n("2b0e"),o=n("561c"),r=function(){return new Promise((function(t){var e=a["a"].prototype.$mi.ajax,n=new FormData;n.append("action","monsterinsights_vue_get_license"),n.append("nonce",a["a"].prototype.$mi.nonce),i.a.post(e,n).then((function(e){t(e.data)})).catch((function(t){var e=a["a"].prototype.$getUrl("admin-notices","error-loading-license","https://www.monsterinsights.com/my-account/support");if(t.response){var n=t.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Oops! There was an issue loading your license details, please try again. If the issue persists please %1$scontact our support team%2$s. Error: %3$s, %4$s","google-analytics-for-wordpress"),'<a target="_blank" href="'+e+'">',"</a>",n.status,n.statusText)})}a["a"].prototype.$mi_error_toast({allowOutsideClick:!0,allowEscapeKey:!0,title:Object(o["d"])(Object(o["a"])("Oops! There was an issue loading your license details, please try again. If the issue persists, please %1$scontact our support team%2$s.","google-analytics-for-wordpress"),'<a target="_blank" href="'+e+'">',"</a>"),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",a["a"].prototype.$mi.nonce),r.append("license",t),n&&r.append("network",!0),i.a.post(a["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){var e=a["a"].prototype.$getUrl("admin-notices","error-verifying-license","https://www.monsterinsights.com/my-account/support");if(t.response){var n=t.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Oops! There was an issue verifying your license, please try again. If the issue persists, please %1$scontact our support team%2$s. Error: %3$s, %4$s","google-analytics-for-wordpress"),'<a target="_blank" href="'+e+'">',"</a>",n.status,n.statusText)})}a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Oops! There was an issue verifying your license, please try again. If the issue persists, please %1$scontact our support team%2$s.","google-analytics-for-wordpress"),'<a target="_blank" href="'+e+'">',"</a>")})}))}))},l=function(t){return new Promise((function(e){var n=new FormData;n.append("action","monsterinsights_validate_license"),n.append("nonce",a["a"].prototype.$mi.nonce),t&&n.append("network",!0),i.a.post(a["a"].prototype.$mi.ajax,n).then((function(t){e(t)})).catch((function(t){var e=a["a"].prototype.$getUrl("admin-notices","error-validating-license","https://www.monsterinsights.com/my-account/support");if(t.response){var n=t.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Oops! There was an issue validating your license, please try again. If the issue persists, please %1$scontact our support team%2$s. Error: %3$s, %4$s","google-analytics-for-wordpress"),'<a target="_blank" href="'+e+'">',"</a>",n.status,n.statusText)})}a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Oops! There was an issue validating your license, please try again. If the issue persists, please %1$scontact our support team%2$s.","google-analytics-for-wordpress"),'<a target="_blank" href="'+e+'">',"</a>")})}))}))},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",a["a"].prototype.$mi.nonce),s.append("license",r),e&&s.append("network",!0),i.a.post(a["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){var e=a["a"].prototype.$getUrl("admin-notices","error-deactivating-license","https://www.monsterinsights.com/my-account/support");if(t.response){var n=t.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Oops! There was an issue deactivating your license, please try again. If the issue persists, please %1$scontact our support team%2$s. Error: %3$s, %4$s","google-analytics-for-wordpress"),'<a target="_blank" href="'+e+'">',"</a>",n.status,n.statusText)})}a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Oops! There was an issue deactivating your license, please try again. If the issue persists, please %1$scontact our support team%2$s.","google-analytics-for-wordpress"),'<a target="_blank" href="'+e+'">',"</a>")})}))}))},d=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_expired_license"),s.append("nonce",a["a"].prototype.$mi.nonce),s.append("license",r),e&&s.append("network",!0),i.a.post(a["a"].prototype.$mi.ajax,s).then((function(t){n(t)})).catch((function(t){if(t.response){var e=t.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Can't deactivate the license. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}a["a"].prototype.$mi_error_toast({title:Object(o["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",a["a"].prototype.$mi.nonce),n.append("network",a["a"].prototype.$mi.network),n.append("key",t),i.a.post(a["a"].prototype.$mi.ajax,n).then((function(t){t.data&&e(t.data)})).catch((function(t){e(!1);var n=a["a"].prototype.$getUrl("admin-notices","error-upgrading-license","https://www.monsterinsights.com/my-account/support");if(t.response){var s=t.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Oops! There was an issue verifying your license upgrade, please try again. If the issue persists, please %1$scontact our support team%2$s. Error: %3$s, %4$s","google-analytics-for-wordpress"),'<a target="_blank" href="'+n+'">',"</a>",s.status,s.statusText)})}a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Oops! There was an issue verifying your license upgrade, please try again. If the issue persists, please %1$scontact our support team%2$s.","google-analytics-for-wordpress"),'<a target="_blank" href="'+n+'">',"</a>")})}))}))};e["a"]={fetchLicense:r,verifyLicense:c,validateLicense:l,deactivateLicense:u,deactivateExpiredLicense:d,getUpgradeLink:p}},ddf4:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("section",{staticClass:"comparison-table"},[e("header",{staticClass:"comparison-table__header"},[e("div",{staticClass:"content"},[t._t("header")],2)]),e("section",{staticClass:"comparison-table__table"},[e("table",[e("thead",[e("tr",t._l(t.columns,(function(n){return e("th",{key:n.key,attrs:{scope:"col"},domProps:{innerHTML:t._s(n.label)}})})),0)]),e("tbody",t._l(t.rows,(function(n,s){return e("tr",{key:s},[t._t("rows",null,{row:n})],2)})),0)])]),e("footer",{staticClass:"comparison-table__footer"},[e("div",{staticClass:"content"},[t._t("footer")],2)])])},i=[],a={name:"ComparisonTable",props:{columns:{type:Array,required:!0},rows:{type:Array,required:!0}}},o=a,r=n("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["default"]=c.exports},f0a3:function(t,e,n){"use strict";var s=n("c7eb"),i=n("1da1"),a=(n("d3b7"),n("bc3a")),o=n.n(a),r=n("2b0e"),c=n("561c"),l=function(){return new Promise((function(t){var e=new FormData;e.append("action","monsterinsights_vue_get_addons"),e.append("network",r["a"].prototype.$mi.network),e.append("nonce",r["a"].prototype.$mi.nonce),o.a.post(r["a"].prototype.$mi.ajax,e).then((function(e){t(e.data)}))}))},u=function(t,e){return new Promise((function(n,s){var i=new FormData;i.append("action","monsterinsights_install_addon"),i.append("nonce",r["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),o.a.post(r["a"].prototype.$mi.ajax,i).then((function(s){s.data.form?t.commit("$_app/SHOW_FTP_FORM",{action:"$_addons/installAddon",data:e},{root:!0}):s.data.error?r["a"].prototype.$mi_error_toast({title:s.data.error}):(t.commit("ADDON_INSTALLED",{slug:e.slug,basename:s.data.plugin}),p(t,e)),n(s.data)})).catch((function(t){if(s(t),t.response){var e=t.response;return r["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Oops! Can't install addon. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}r["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline. Addon not installed.","google-analytics-for-wordpress")})}))}))},d=function(t){return new Promise((function(e,n){var s=new FormData,i=r["a"].prototype.$addQueryArg(r["a"].prototype.$mi.ajax,"page","monsterinsights-onboarding");s.append("action","monsterinsights_onboarding_wpforms_install"),s.append("nonce",r["a"].prototype.$mi.install_nonce),o.a.post(i,s).then((function(n){n.data.error?r["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 r["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Oops! Can't install WPForms. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}r["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline. WPForms not installed.","google-analytics-for-wordpress")})}))}))},p=function(t,e){return new Promise((function(n,s){var i=new FormData;i.append("action","monsterinsights_activate_addon"),i.append("nonce",r["a"].prototype.$mi.activate_nonce),i.append("isnetwork",r["a"].prototype.$mi.network),i.append("plugin",e.basename),o.a.post(r["a"].prototype.$mi.ajax,i).then((function(s){s.data.error?r["a"].prototype.$mi_error_toast({title:s.data.error}):t.commit("ADDON_ACTIVATED",e.slug),n(s.data)})).catch((function(t){s(t);var e=r["a"].prototype.$getUrl("admin-notices","error-upgrading-license","https://www.monsterinsights.com/my-account/support");if(t.response){var n=t.response;return r["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Oops! Can't activate addon. Error: %1$s, %2$s","google-analytics-for-wordpress"),n.status,n.statusText)})}r["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Oops! There was an error activating the addon. Please try again. If the issue persists, please %1$scontact our support%2$s team.","google-analytics-for-wordpress"),'<a target="_blank" href="'+e+'">',"</a>")})}))}))},f=function(t,e){return new Promise((function(n,s){var i=new FormData;i.append("action","monsterinsights_deactivate_addon"),i.append("nonce",r["a"].prototype.$mi.deactivate_nonce),i.append("isnetwork",r["a"].prototype.$mi.network),i.append("plugin",e.basename),o.a.post(r["a"].prototype.$mi.ajax,i).then((function(s){s.data.error?r["a"].prototype.$mi_error_toast({title:s.data.error}):t.commit("ADDON_DEACTIVATED",e.slug),n(s.data)})).catch((function(t){if(s(t),t.response){var e=t.response;return r["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Oops! Can't deactivate addon. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}r["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline. Addon not deactivated.","google-analytics-for-wordpress")})}))}))},m=function(t,e,n){return new Promise((function(s,i){var a=new FormData;a.append("action","monsterinsights_vue_install_plugin"),a.append("slug",e),a.append("nonce",r["a"].prototype.$mi.nonce),o.a.post(r["a"].prototype.$mi.ajax,a).then((function(i){i.data.error?r["a"].prototype.$mi_error_toast({title:i.data.error}):t.commit("ADDON_INSTALLED",{slug:e,id:n}),s(i.data)})).catch((function(t){if(i(t),t.response){var e=t.response;return r["a"].prototype.$mi_error_toast({title:Object(c["d"])(Object(c["a"])("Oops! Can't install plugin. Error: %1$s, %2$s","google-analytics-for-wordpress"),e.status,e.statusText)})}r["a"].prototype.$mi_error_toast({title:Object(c["a"])("You appear to be offline. Plugin not installed.","google-analytics-for-wordpress")})}))}))},h=function(t,e){return new Promise((function(t,n){var s=new FormData;s.append("action","monsterinsights_vue_install_plugin"),s.append("slug",e),s.append("nonce",r["a"].prototype.$mi.nonce),o.a.post(r["a"].prototype.$mi.ajax,s).then((function(e){t(e.data)})).catch((function(t){n(t)}))}))},g=function(){var t=Object(i["a"])(Object(s["a"])().mark((function t(e){var n;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.fetchAddons();case 2:if(n=t.sent,!n){t.next=5;break}return t.abrupt("return",n[e]);case 5:return t.abrupt("return",null);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}();e["a"]={fetchAddons:l,installAddon:u,activateAddon:p,deactivateAddon:f,installWPForms:d,installPlugin:m,installOnboardingPlugin:h,getAddon:g}},f284:function(t,e,n){"use strict";n("d3b7"),n("fb6a"),n("4795"),n("ac1f"),n("5319"),n("25f0"),n("159b"),n("b64b"),n("a15b");var s=n("bc3a"),i=n.n(s),a=n("2b0e"),o=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",a["a"].prototype.$mi.nonce),c.append("report",e),c.append("start",n),c.append("end",s),i.a.post(a["a"].prototype.$mi.ajax,c).then((function(t){r(t.data)})).catch((function(e){t.dispatch("$_app/block",!1,{root:!0});var n=a["a"].prototype.$getUrl("admin-notices","error-verifying-license","https://www.monsterinsights.com/my-account/support");if(e.response){var s=e.response;return a["a"].prototype.$mi_error_toast({title:Object(o["d"])(Object(o["a"])("Can't load report data. Error: %1$s, %2$s. Please try again in a few minutes. If the issue persists, please %3$scontact our support%4$s team.","google-analytics-for-wordpress"),s.status,s.statusText,'<a target="_blank" href="'+n+'">',"</a>")})}a["a"].prototype.$swal.hideLoading(),a["a"].prototype.$mi_error_toast({allowOutsideClick:!0,allowEscapeKey:!0,title:Object(o["a"])("Error loading report data","google-analytics-for-wordpress"),html:e.message})}))}))},c=function(t){if("undefined"!==typeof t){var e=parseInt(t.toString().replace(".",""),10),n=e.toString().length;return 1===n?1===e?parseInt(e+"00"):parseInt(e+"0"):e}},l=function(t){if("undefined"!==typeof t){var e={};return Object.keys(t).forEach((function(n){var s=n.toString().split("-").join("_");e[s]=t[n]})),e}},u={fetchReportData:r,getFormattedScore:c,keysReplaceHyphensWithUnderscores:l},d=function(t,e){return new Promise((function(n){return a["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):(a["a"].prototype.$mi_loading_toast(),t.commit("ENABLE_BLUR"),void t.dispatch("$_queue/add",(function(){return u.fetchReportData(t,e,t.state.date.start,t.state.date.end).then((function(s){if(t.commit("SET_IS_LOADED"),"license_level"===s.data.message)return g(t),void n(!1);if(s.success)g(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 g(t),n(!1),void t.commit("ENABLE_REAUTH");s.data.footer&&"install_addon"===s.data.footer?p(t,e).then((function(n){t.rootState.$_widget&&(t.commit("DISABLE_BLUR"),t.commit("$_widget/UPDATE_LOADED",!0,{root:!0}));var i=n?Object(o["a"])("activate","google-analytics-for-wordpress"):Object(o["a"])("install","google-analytics-for-wordpress");a["a"].prototype.$mi_error_toast({title:!1,html:Object(o["d"])(s.data.message,i),footer:'<a href="'+a["a"].prototype.$mi.addons_url+'">'+Object(o["a"])("Visit addons page","google-analytics-for-wordpress")+"</a>",report:e}),a["a"].prototype.$swal({type:"error",animation:!1,customContainerClass:"monsterinsights-swal",title:Object(o["a"])("Report Unavailable","google-analytics-for-wordpress"),html:Object(o["d"])(s.data.message,i),allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!1,showCancelButton:!0,confirmButtonText:Object(o["d"])(Object(o["a"])("%s Addon","google-analytics-for-wordpress"),i.charAt(0).toUpperCase()+i.slice(1)),cancelButtonText:Object(o["a"])("Dismiss","google-analytics-for-wordpress")}).then((function(s){s.value&&(n?m(t,t.rootState.$_addons.addons[e]):f(t,e))}))})):s.data.footer&&s.data.footer.indexOf("#/ecommerce")>0?(n(!1),a["a"].prototype.$mi_error_toast({title:!1,html:s.data.message,report:e,showCancelButton:!0,cancelButtonText:Object(o["a"])("Go Back To Reports","google-analytics-for-wordpress"),confirmButtonText:Object(o["a"])("Enable Enhanced eCommerce","google-analytics-for-wordpress")}).then((function(t){t.value&&(window.location=s.data.footer)}))):s.data.type&&"expired_license"===s.data.type?(n(!1),a["a"].prototype.$mi_error_toast({type:"",customContainerClass:"monsterinsights-expired-license-alert-toast",confirmButtonText:"",title:!1,html:s.data.message,footer:s.data.footer,report:e})):(n(!1),a["a"].prototype.$mi_error_toast({title:!1,html:s.data.message,footer:s.data.footer,report:e,onClose:function(){if(s.data.type&&"INVALID_DATE_RANGE"===s.data.type&&"last30days"!==t.state.date){var e=a["a"].prototype.$mi_intervals().last30days;t.commit("UPDATE_INTERVAL","last30days"),t.commit("UPDATE_DATE",{start:e.start.format("YYYY-MM-DD"),end:e.end.format("YYYY-MM-DD")}),t.dispatch("getReportData",t.state.activeReport)}}}))}}))}),{root:!0})):(n(!1),t.commit("ENABLE_BLUR"),t.commit("ENABLE_NOAUTH"),!1)}))};function p(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),h()}))}))}function f(t,e){a["a"].prototype.$swal({type:"info",customContainerClass:"monsterinsights-swal",title:Object(o["a"])("Installing Addon","google-analytics-for-wordpress"),html:Object(o["a"])("Please wait","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,onOpen:function(){a["a"].prototype.$swal.showLoading(),t.dispatch("$_addons/installAddon",t.rootState.$_addons.addons[e],{root:!0}).then((function(){m(t,t.rootState.$_addons.addons[e])})).catch((function(){h()}))}})}function m(t,e){a["a"].prototype.$swal({type:"info",customContainerClass:"monsterinsights-swal",title:Object(o["a"])("Activating Addon","google-analytics-for-wordpress"),html:Object(o["a"])("Please wait","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,onOpen:function(){a["a"].prototype.$swal.showLoading()}}),t.dispatch("$_addons/activateAddon",e,{root:!0}).then((function(){a["a"].prototype.$swal({type:"info",customContainerClass:"monsterinsights-swal",title:Object(o["a"])("Addon Activated","google-analytics-for-wordpress"),html:Object(o["a"])("Loading report data","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,onOpen:function(){a["a"].prototype.$swal.showLoading(),setTimeout((function(){window.location.reload()}),1e3)}})})).catch((function(t){h(t)}))}function h(t){var e=Object(o["a"])("Please activate manually","google-analytics-for-wordpress");t.response&&(e=Object(o["d"])(Object(o["a"])("Error: %1$s, %2$s","google-analytics-for-wordpress"),t.response.status,t.response.statusText)),a["a"].prototype.$swal({type:"error",customContainerClass:"monsterinsights-swal",title:Object(o["a"])("Error Activating Addon","google-analytics-for-wordpress"),html:e,allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,showCancelButton:!0,confirmButtonText:Object(o["a"])("View Addons","google-analytics-for-wordpress"),cancelButtonText:Object(o["a"])("Dismiss","google-analytics-for-wordpress")}).then((function(t){t.value&&(window.location=a["a"].prototype.$mi.addons_url,a["a"].prototype.$swal({type:"info",customContainerClass:"monsterinsights-swal",title:Object(o["a"])("Redirecting","google-analytics-for-wordpress"),html:Object(o["a"])("Please wait","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,onOpen:function(){a["a"].prototype.$swal.showLoading()}}))}))}function g(t){t.rootState.$_widget||a["a"].prototype.$swal.close()}var _={getReportData:d},v=function(t){return t.yearinreview_data},b=function(t){return t.date},y=function(t){return t.activeReport},w=function(t){return t.isLoaded},C=function(t){return t.blur},k=function(t){return t.mobileTableExpanded},x=function(t){return t.overview},$=function(t){return t.publisher},O=function(t){return t.ecommerce},A=function(t){return t.queries},j=function(t){return t.dimensions},S=function(t){return t.forms},T=function(t){return t.realtime},P=function(t){return t.yearinreview},E=function(t){return t.sitespeed},D=function(t){return t.sitespeedmobile},N=function(t){return t.noauth},I=function(t){return t.reauth},L=function(t){return t.media},U=function(){return"v4"===a["a"].prototype.$mi.auth_connected_type},B={yearinreview_data:v,date:b,activeReport:y,isLoaded:w,blur:C,mobileTableExpanded:k,overview:x,publisher:$,ecommerce:O,queries:A,dimensions:j,forms:S,realtime:T,noauth:N,yearinreview:P,reauth:I,sitespeed:E,sitespeedmobile:D,media:L,isGA4:U},V=function(t,e){e.report&&e.data&&t[e.report]&&a["a"].set(t,e.report,e.data)},R=function(t,e){e.start&&e.end&&(a["a"].set(t.date,"start",e.start),a["a"].set(t.date,"end",e.end))},F=function(t,e){a["a"].set(t.date,"interval",e)},M=function(t,e){a["a"].set(t.date,"text",e)},H=function(t,e){t.activeReport=e},q=function(t){t.isLoaded=!0},Y=function(t){t.blur=!0},K=function(t){t.blur=!1},W=function(t){t.mobileTableExpanded=!0},G=function(t){t.mobileTableExpanded=!1},Z=function(t){t.noauth=!0},J=function(t){t.reauth=!0},Q={UPDATE_REPORT_DATA:V,UPDATE_DATE:R,UPDATE_ACTIVE_REPORT:H,UPDATE_INTERVAL:F,UPDATE_DATE_TEXT:M,SET_IS_LOADED:q,ENABLE_BLUR:Y,DISABLE_BLUR:K,EXPAND_TABLES:W,CONTRACT_TABLES:G,ENABLE_NOAUTH:Z,ENABLE_REAUTH:J},z={yearinreview_data:window.monsterinsights.yearinreview,date:{start:"",end:"",interval:"last30days",text:""},blur:!1,activeReport:"overview",mobileTableExpanded:!1,overview:{},publisher:{},ecommerce:{},queries:{},dimensions:{},forms:{},realtime:{},yearinreview:{},sitespeed:{},sitespeedmobile:{},noauth:!1,reauth:!1,isLoaded:!1,media:{line_chart_report:{},video_details_rows:[]}};e["a"]={namespaced:!0,state:z,actions:_,getters:B,mutations:Q}}}]);