Sid Gifari File Manager
🏠Root
/
home2
/
meumer25
/
www
/
wp-content
/
plugins
/
google-analytics-for-wordpress
/
lite
/
assets
/
vue
/
js
/
Editing: reports.min.js
import{g as j,h,m as y,n as p,_ as r,V as m,s as d,j as et,y as l,H as st,k as D,l as rt,o as Y,a as A,M as ot,c as L,r as it,q as at,b as z,t as nt,i as lt,e as ct,p as pt,f as dt}from"./chunks/vendor-abf23f8e.min.js";import{a as gt,i as mt,R as ht}from"./chunks/index-3b247c04.min.js";import{S as T}from"./chunks/SettingsInfoTooltip-8ce0e85d.min.js";import{R as W,a as f,b as ut,D as _t}from"./chunks/date-intervals-99bc51b5.min.js";import{S as q,b as J,c as R,g as ft,A as vt,U as wt,T as yt,d as bt,e as Ct,f as xt,N as Rt,L as kt}from"./chunks/index-999d9e4f.min.js";import{u as $t,M as B,s as $}from"./chunks/index-9dee18c5.min.js";import"./chunks/SlideDownUp-80f4c9d9.min.js";const Dt={name:"ReportOverviewLineChartApex",props:{chartData:Object,tooltipDescriptor:String,chartStyles:{type:Object,default(){return{foreColor:"#999",borderColor:"#f3f6fa",colors:["#3a93dd","#5CC0A5"],markersStrokeColor:["#3a93dd"],markersColors:["#ffffff"],markersStrokeColorHover:["#ffffff"],markersColorsHover:["#3a93dd"],fontSize:"12px",fontFamily:'"Helvetica Neue", Helvetica, Arial, sans-serif'}}}},components:{apexchart:j},methods:{chartOptions(){const s=this.chartData,t=this.tooltipDescriptor,e=this.$formatNumber,o=this.siteNotes,i=this.chartStyles,a=s.datasets?Math.min(...s.data):1;let n=this;return{chart:{type:"area",foreColor:i.foreColor,stacked:!1,dropShadow:{enabled:!0,enabledSeries:[0],top:-2,left:2,blur:5,opacity:.06},animations:{enabled:!1},toolbar:{show:!1},width:"100%",height:355,zoom:!1},padding:{left:0},colors:i.colors,stroke:{curve:"straight",width:3},dataLabels:{enabled:!1},markers:{size:4,colors:i.markersColors,strokeColor:i.markersStrokeColor,strokeWidth:1,strokeOpacity:1,fillOpacity:1,hover:{size:5,strokeColor:i.markersStrokeColorHover,colors:i.markersColorsHover}},xaxis:{type:"datetime",axisTicks:{show:!1},labels:{format:"d MMM"},tooltip:{enabled:!1}},yaxis:{tooltip:{enabled:!1},labels:{formatter(c){return a>0&&a<1?c.toFixed(1):c&&c.toFixed(0)}}},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!0}},borderColor:i.borderColor,strokeDashArray:0,position:"back",padding:{top:0,right:24,bottom:0,left:20}},tooltip:{custom({dataPointIndex:c}){let _=s.labels[c]?s.labels[c]:"0",u=e(s.data[c]),b=c>0?parseInt(s.trend[c-1]):0,w="";b===0?w="0%":b>0?w='<span class="monsterinsights-green"><span class="monsterinsights-arrow monsterinsights-up"></span>'+b+"%</span>":w='<span class="monsterinsights-red"><span class="monsterinsights-arrow monsterinsights-down"></span>'+Math.abs(b)+"%</span>";let C=s.timestamps[c]*1e3,x="";o[C]&&(o[C].forEach(function(M){x+="<span>"+M.title+"</span><br />"}),x!==""&&(x='<div class="monsterinsights-reports-apex-datagraph-tooltip-sitenotes"><hr />'+x+"</div>"));let k="";if(n.date.compareReport&&n.chartData.compare&&n.chartData.compare[c]){let I=h.unix(n.chartData.compare[c][0]),M=n.chartData.compare[c][1];k=k+'<div class="monsterinsights-reports-overview-datagraph-tooltip-title monsterinsights-reports-overview-datagraph-tooltip-title-compare">'+I.format("D MMM")+'</div><div class="monsterinsights-reports-overview-datagraph-tooltip-number">'+M+"</div>"}return'<div id="monsterinsights-chartjs-line-apex-tooltip" class="monsterinsights-line-chart-apex-tooltip top"><div class="monsterinsights-reports-datagraph-tooltip-container monsterinsights-reports-tooltip" > <div class="monsterinsights-reports-overview-datagraph-tooltip-title">'+_+'</div><div class="monsterinsights-reports-overview-datagraph-tooltip-number">'+u+"</div>"+k+'<div class="monsterinsights-reports-overview-datagraph-tooltip-descriptor">'+t+'</div><div class="monsterinsights-reports-overview-datagraph-tooltip-trend">'+w+"</div>"+x+"</div></div>"},x:{show:!0,format:"dd MMM yyyy",formatter:void 0},style:{fontSize:i.fontSize,fontFamily:i.fontFamily}},legend:{position:"bottom",horizontalAlign:"center"},fill:{type:"solid",opacity:.15},annotations:{points:this.chartAnnotationsPoints()}}},chartSeries(){const s=this.date.intervalText;if(typeof this.chartData.data>"u")return[{name:s,data:[]}];const t=[];for(let o=0;o<this.chartData.data.length;o++)t.push([this.chartData.timestamps[o]*1e3,this.chartData.data[o]]);let e=[{name:s,data:t,zIndex:2}];if(this.date.compareReport&&this.chartData.compare){let o=[];t.forEach((i,a)=>{let n=this.chartData.compare[a]?this.chartData.compare[a][1]:0;o.push([i[0],n])}),e.push({name:this.date.intervalCompareText,data:o,zIndex:1})}return e},chartAnnotationsPoints(){let s=[];const t=this.siteNotes;for(let e in t){let o=t[e];if(!o[0])continue;let i=o[0].important,a=o[0].color?o[0].color:"#3a93dd".replace("#",""),n="";i?n='data:image/svg+xml,%3C%3Fxml version="1.0" encoding="utf-8"%3F%3E%3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 25 25" style="enable-background:new 0 0 25 25;" xml:space="preserve"%3E%3Cstyle type="text/css"%3E.st0%7Bfill:%23'+a+';%7D.st1%7Bfill:%23FFFFFF;%7D.st2%7Bfill:%23FFD74B;%7D%3C/style%3E%3Cg%3E%3Cg%3E%3Cpath class="st0" d="M22.5,0.7H2.5c-0.6,0-1.1,0.5-1.1,1v18.6c0,0.6,0.5,1,1.1,1h6.4c0.2,0,0.4,0.1,0.5,0.2l2.5,2.6 c0.3,0.3,0.8,0.3,1.1,0l2.5-2.6c0.1-0.1,0.3-0.2,0.5-0.2h6.4c0.6,0,1.1-0.5,1.1-1V1.7C23.6,1.1,23.1,0.7,22.5,0.7z"/%3E%3Cpath class="st1" d="M12.5,24.6C12.5,24.6,12.5,24.6,12.5,24.6c-0.3,0-0.6-0.1-0.8-0.3l-2.5-2.6c-0.1-0.1-0.2-0.1-0.3-0.1H2.5 c-0.8,0-1.4-0.6-1.4-1.3V1.7c0-0.7,0.6-1.3,1.4-1.3h19.9c0.8,0,1.4,0.6,1.4,1.3v18.6c0,0.7-0.6,1.3-1.4,1.3h-6.4 c-0.1,0-0.2,0-0.3,0.1l-2.5,2.6C13.1,24.5,12.8,24.6,12.5,24.6z M2.5,1C2.1,1,1.7,1.3,1.7,1.7v18.6c0,0.4,0.4,0.7,0.8,0.7h6.4 c0.3,0,0.6,0.1,0.8,0.3l2.5,2.6c0.1,0.1,0.2,0.1,0.3,0.1c0,0,0,0,0,0c0.1,0,0.2,0,0.3-0.1l2.5-2.6c0.2-0.2,0.5-0.3,0.8-0.3h6.4 c0.4,0,0.8-0.3,0.8-0.7V1.7c0-0.4-0.4-0.7-0.8-0.7H2.5z"/%3E%3C/g%3E%3Cpath class="st2" d="M13.1,4.9l1.7,3.2c0.1,0.2,0.3,0.3,0.5,0.3L19.1,9c0.6,0.1,0.8,0.7,0.4,1.1l-2.7,2.5c-0.2,0.1-0.2,0.4-0.2,0.6 l0.6,3.5c0.1,0.5-0.5,0.9-1,0.7l-3.4-1.7c-0.2-0.1-0.4-0.1-0.6,0l-3.4,1.7c-0.5,0.2-1.1-0.2-1-0.7l0.6-3.5c0-0.2,0-0.4-0.2-0.6 l-2.7-2.5C5.1,9.7,5.3,9,5.9,9l3.8-0.5c0.2,0,0.4-0.2,0.5-0.3l1.7-3.2C12.1,4.4,12.9,4.4,13.1,4.9L13.1,4.9z"/%3E%3C/g%3E%3C/svg%3E%0A':n="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2042.4%2047.9%22%20style%3D%22enable-background%3Anew%200%200%2042.4%2047.9%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E.st0%7Bfill%3A%23"+a+"%3B%7D.st1%7Bfill%3A%23FFFFFF%3B%7D%3C%2Fstyle%3E%3Cg%3E%3Cg%3E%3Cpath%20class%3D%22st0%22%20d%3D%22M38.9%2C1.6H3.5c-1.1%2C0-1.9%2C0.9-1.9%2C1.9V39c0%2C1.1%2C0.9%2C1.9%2C1.9%2C1.9h12.8l4.9%2C5.1l4.9-5.1h12.8c1.1%2C0%2C1.9-0.9%2C1.9-1.9V3.6C40.9%2C2.5%2C40%2C1.6%2C38.9%2C1.6z%22%2F%3E%3Cpath%20class%3D%22st1%22%20d%3D%22M21.2%2C46.6l-5.1-5.3H3.5c-1.3%2C0-2.3-1-2.3-2.3V3.6c0-1.3%2C1-2.3%2C2.3-2.3h35.4c1.3%2C0%2C2.3%2C1%2C2.3%2C2.3V39c0%2C1.3-1%2C2.3-2.3%2C2.3H26.3L21.2%2C46.6z%20M3.5%2C2C2.6%2C2%2C1.9%2C2.7%2C1.9%2C3.6V39c0%2C0.9%2C0.7%2C1.6%2C1.6%2C1.6h12.9l4.8%2C5l4.8-5h12.9c0.9%2C0%2C1.6-0.7%2C1.6-1.6V3.6c0-0.9-0.7-1.6-1.6-1.6H3.5z%22%2F%3E%3C%2Fg%3E%3Cg%3E%3Cg%3E%3Cpath%20class%3D%22st1%22%20d%3D%22M33.1%2C14.6H9.3c-0.6%2C0-1.2-0.6-1.2-1.2s0.5-1.2%2C1.2-1.2h23.7c0.6%2C0%2C1.2%2C0.6%2C1.2%2C1.2S33.7%2C14.6%2C33.1%2C14.6z%22%2F%3E%3C%2Fg%3E%3Cg%3E%3Cpath%20class%3D%22st1%22%20d%3D%22M33.1%2C22H9.3c-0.6%2C0-1.2-0.6-1.2-1.2s0.5-1.2%2C1.2-1.2h23.7c0.6%2C0%2C1.2%2C0.6%2C1.2%2C1.2S33.7%2C22%2C33.1%2C22z%22%2F%3E%3C%2Fg%3E%3Cg%3E%3Cpath%20class%3D%22st1%22%20d%3D%22M33.1%2C29.4H9.3c-0.6%2C0-1.2-0.6-1.2-1.2s0.5-1.2%2C1.2-1.2h23.7c0.6%2C0%2C1.2%2C0.6%2C1.2%2C1.2S33.7%2C29.4%2C33.1%2C29.4z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E",s.push({x:e,y:0,marker:0,image:{path:n}})}return s}},computed:{...y({date:"$_reports/date"}),siteNotes(){let s=this.chartData.datasets?this.chartData.notes:[];if(typeof s>"u")return[];if(s.length==0)return s;let t={...s},e=this.chartData,o=[];return Object.keys(t).forEach(i=>{const a=e.labels.indexOf(i),n=this.chartData.timestamps[a]*1e3;o[n]=[...t[i]]}),o}}};var Pt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"apexchart-overview apexchart-line-chart"},[e("apexchart",{attrs:{options:t.chartOptions(),series:t.chartSeries(),height:"355"}})],1)},St=[],Tt=p(Dt,Pt,St,!1,null,null,null,null);const N=Tt.exports,Et={COLORS:["#2870C8","#489DFF","#BDDEFF","#7AAEE3","#5FB2F2","#9FCAFF","#166BAF","#80B9FF","#007EFF","#DBEDFF","#4CA6BC","#5E2CEC","#CB4CD0","#F164F6","#FDC5FF","#BDE9F3","#B79EFF","#5DC8E2","#FCA4FF","#BDE2FF","#4CA6BC","#5E2CEC","#CB4CD0","#F164F6","#FDC5FF","#BDE9F3","#B79EFF","#5DC8E2","#FCA4FF","#BDE2FF"]},Mt=null,Ft=null;var Lt=p(Et,Mt,Ft,!1,null,null,null,null);const G=Lt.exports,At={name:"ReportPieChartApex",props:{chartData:Object,height:{type:Number,required:!0},width:{type:Number,required:!0},size:{type:Number,required:!0},colors:{type:Array,required:!1},withLegend:{type:Boolean,required:!1}},components:{apexchart:j},methods:{chartOptions(){return{chart:{type:"donut"},colors:this.chartColors(),plotOptions:{pie:{donut:{size:this.size+"%"}}},labels:this.chartLabels(),legend:{show:this.withLegend,position:"bottom",horizontalAlign:"left",offsetY:8},dataLabels:{enabled:!1},grid:{padding:{top:0,bottom:0,left:0,right:0}}}},chartSeries(){let s=[];return typeof this.chartData.values<"u"&&this.chartData.values.forEach(function(t){typeof t<"u"?s.push(t):s.push(0)}),s},chartLabels(){let s=[];return typeof this.chartData.labels<"u"&&this.chartData.labels.forEach(function(t){typeof t<"u"?s.push(t):s.push("")}),s},chartColors(){return this.colors||G.COLORS}}};var Nt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"apexchart-overview apexchart-pie-chart"},[e("apexchart",{attrs:{options:t.chartOptions(),series:t.chartSeries(),width:t.width,height:t.height}})],1)},It=[],Yt=p(At,Nt,It,!1,null,null,null,null);const Bt=Yt.exports,Ot={name:"ReportOverviewPieChartApex",components:{SettingsInfoTooltip:T,ReportPieChartApex:Bt},props:{chartData:[Object,Boolean],title:String,tooltip:String,legend:{type:Boolean,default:!0},id:String,enableTooltips:{type:Boolean,default:!0},cutoutPercentage:Number,width:{type:Number,default:200},height:{type:Number,default:200},size:{type:Number,default:50},icon:{default:"",type:String}},computed:{...y({date:"$_reports/date"}),titleClass(){return"monsterinsights-report-title "+this.icon},tooltipId(){return"monsterinsights-chartjs-pie-"+this.id+"-tooltip"},style(){return this.date.compareReport?"":"max-width: "+this.width+"px; max-height: "+this.width+"px;"},colors(){return G.COLORS},chartWidth(){return this.width},chartHeight(){return this.height},chartSize(){return this.size},compareReportChartData(){if(this.date.compareReport&&this.chartData.compare){if(this.chartData.compare.length&&!this.chartData.compare.labels)return{values:this.chartData.compare,labels:this.chartData.labels};if(this.chartData.compare.values&&this.chartData.compare.labels)return this.chartData.compare}return{}}},methods:{labelBackground(s){return"background-color: "+s+";"},chartClasses(){let s="monsterinsights-reports-pie-chart";return typeof this.chartData.values<"u"&&this.chartData.values.length>7&&(s+=" --long-list"),s}}};var Ut=function(){var t=this,e=t._self._c;return t.chartData?e("div",{class:t.chartClasses(),attrs:{id:t.id}},[t.title?e("h3",{class:t.titleClass,domProps:{textContent:t._s(t.title)}}):t._e(),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e(),e("div",{class:{"monsterinsights-reports-compare-pie-charts":t.date.compareReport}},[e("div",{staticClass:"monsterinsights-reports-pie-chart-holder"},[t.date.compareReport?e("p",{staticClass:"monsterinsights-reports-pie-chart-holder-compare-date"},[t._v(" "+t._s(t.date.intervalText)+" ")]):t._e(),e("div",{staticClass:"monsterinsights-reports-pie-chart-and-legend"},[e("report-pie-chart-apex",{staticClass:"monsterinsights-pie-chart",style:t.style,attrs:{"chart-data":t.chartData,width:t.chartWidth,height:t.chartHeight,size:t.chartSize}}),t.legend?e("ul",{staticClass:"monsterinsights-pie-chart-legend"},t._l(t.chartData.values,function(o,i){return e("li",{key:i},[e("span",{staticClass:"monsterinsights-pie-chart-legend-color",style:t.labelBackground(t.colors[i])}),e("span",{staticClass:"monsterinsights-pie-chart-legend-text-and-value"},[e("span",{staticClass:"monsterinsights-pie-chart-legend-text",domProps:{textContent:t._s(t.chartData.labels[i])}}),e("span",{staticClass:"monsterinsights-pie-chart-legend-value"},[t._v(" "+t._s(o||0)+"% ")])])])}),0):t._e()],1),e("div",{staticClass:"monsterinsights-pie-chart-tooltip",attrs:{id:t.tooltipId}})]),t.date.compareReport?e("div",{staticClass:"monsterinsights-reports-pie-chart-holder monsterinsights-reports-compare-pie-chart-holder"},[e("p",{staticClass:"monsterinsights-reports-pie-chart-holder-compare-date"},[t._v(" "+t._s(t.date.intervalCompareText)+" ")]),e("div",{staticClass:"monsterinsights-reports-pie-chart-and-legend"},[e("report-pie-chart-apex",{staticClass:"monsterinsights-pie-chart",style:t.style,attrs:{"chart-data":t.compareReportChartData,width:t.chartWidth,height:t.chartHeight,size:t.chartSize}}),t.legend?e("ul",{staticClass:"monsterinsights-pie-chart-legend"},t._l(t.compareReportChartData.values,function(o,i){return e("li",{key:i},[e("span",{staticClass:"monsterinsights-pie-chart-legend-color",style:t.labelBackground(t.colors[i])}),e("span",{staticClass:"monsterinsights-pie-chart-legend-text-and-value"},[e("span",{staticClass:"monsterinsights-pie-chart-legend-text",domProps:{textContent:t._s(t.chartData.labels[i])}}),e("span",{staticClass:"monsterinsights-pie-chart-legend-value"},[t._v(" "+t._s(o||0)+"% ")])])])}),0):t._e()],1),e("div",{staticClass:"monsterinsights-pie-chart-tooltip",attrs:{id:t.tooltipId}})]):t._e()])],1):t._e()},Ht=[],Vt=p(Ot,Ut,Ht,!1,null,null,null,null);const K=Vt.exports,jt={name:"ReportsPagination",props:{limit:Number,length:Number},data(){return{currentLimit:this.limit,text_show:r("Show","google-analytics-for-wordpress"),text_all:r("All","google-analytics-for-wordpress")}},methods:{sendUpdate(s){this.currentLimit=s,this.$emit("updated",s)},getButtonClass(s){let t="monsterinsights-button";return s===this.currentLimit&&(t+=" monsterinsights-selected-interval"),t}}};var zt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-table-box-pagination"},[e("span",{domProps:{textContent:t._s(t.text_show)}}),e("div",{staticClass:"monsterinsights-buttons-toggle"},[e("button",{class:t.getButtonClass(10),on:{click:function(o){return t.sendUpdate(10)}}},[t._v(" 10 ")]),t.length>10?e("button",{class:t.getButtonClass(25),on:{click:function(o){return t.sendUpdate(25)}}},[t._v(" 25 ")]):t._e(),t.length>25?e("button",{class:t.getButtonClass(50),on:{click:function(o){return t.sendUpdate(50)}}},[t._v(" 50 ")]):t._e(),t.length>50?e("button",{class:t.getButtonClass(t.length),on:{click:function(o){return t.sendUpdate(t.length)}}},[t._v(" "+t._s(t.text_all)+" ")]):t._e()])])},Wt=[],qt=p(jt,zt,Wt,!1,null,null,null,null);const Z=qt.exports,Jt={name:"ReportListBox",components:{ReportsPagination:Z,SettingsInfoTooltip:T},props:{title:String,id:String,tooltip:String,rows:Array,icon:{default:"",type:String},withPagination:{default:!0,type:Boolean}},data(){return{limit:10,text_date_1:r("Date 1","google-analytics-for-wordpress"),text_date_2:r("Date 2","google-analytics-for-wordpress")}},computed:{...y({date:"$_reports/date"}),componentClass(){let s="monsterinsights-table-box";return this.paginate&&(s+=" monsterinsights-has-pagination"),s},titleClass(){let s="monsterinsights-report-title ";return this.icon&&(s+=this.icon),this.paginate&&(s+=" monsterinsights-has-pagination"),s},paginate(){return this.withPagination&&this.rows.length>10},tableRows(){let s=[...this.rows];if(s.length<10)for(;s.length<10;)s.push({number:"",text:"",right:""});return s=s.slice(0,this.limit),s}},methods:{hasButtonSlot(){return this.$slots.button},changeLimit(s){this.limit=s},compareChange(s){if(typeof s.compare_change>"u")return"";let t=s.compare_change>0?"up":"down",e=s.compare_change>0?"green":"red";return'<span class="monsterinsights-arrow monsterinsights-'+t+" monsterinsights-"+e+'"></span> '+Math.abs(s.compare_change)+"%"}}};var Gt=function(){var t=this,e=t._self._c;return e("div",{class:t.componentClass,attrs:{id:t.id}},[t.title?e("h3",{class:t.titleClass,domProps:{textContent:t._s(t.title)}}):t._e(),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e(),e("div",{staticClass:"monsterinsights-table-box-list"},[t.date.compareReport&&t.rows.length?[e("ul",{staticClass:"monsterinsights-table-box-list-compare-date-legends"},[e("li",[e("strong",{domProps:{textContent:t._s(t.text_date_1)}}),t._v(": "+t._s(t.date.intervalText))]),e("li",[e("strong",{domProps:{textContent:t._s(t.text_date_2)}}),t._v(": "+t._s(t.date.intervalCompareText))])]),e("div",{staticClass:"monsterinsights-table-box-list-compare-thead"},[e("div",{staticClass:"monsterinsights-table-box-list-compare-th monsterinsights-table-box-list-compare-th-text"}),e("div",{staticClass:"monsterinsights-table-box-list-compare-th monsterinsights-table-box-list-compare-th-date"},[t._v(" "+t._s(t.text_date_1)+" ")]),e("div",{staticClass:"monsterinsights-table-box-list-compare-th monsterinsights-table-box-list-compare-th-date"},[t._v(" "+t._s(t.text_date_2)+" ")]),e("div",{staticClass:"monsterinsights-table-box-list-compare-th monsterinsights-table-box-list-compare-th-change"},[t._v(" Change% ")])])]:t._e(),t._l(t.tableRows,function(o,i){return e("div",{key:i,class:{"monsterinsights-table-list-item":!0,"monsterinsights-table-list-item-compare":t.date.compareReport}},[e("div",{staticClass:"monsterinsights-table-list-item-td-text"},[e("span",{staticClass:"monsterinsights-reports-list-count",domProps:{textContent:t._s(o.number)}}),e("span",{staticClass:"monsterinsights-reports-list-text",domProps:{innerHTML:t._s(o.text)}})]),e("div",{staticClass:"monsterinsights-table-list-item-td-number"},[e("span",{staticClass:"monsterinsights-reports-list-number",domProps:{innerHTML:t._s(o.number?t.$formatNumber(o.right):"")}})]),t.date.compareReport?e("div",{staticClass:"monsterinsights-table-list-item-td-number"},[e("span",{staticClass:"monsterinsights-reports-list-number",domProps:{innerHTML:t._s(typeof o.compare_value>"u"?"":t.$formatNumber(o.compare_value))}})]):t._e(),t.date.compareReport?e("div",{staticClass:"monsterinsights-table-list-item-td-change",domProps:{innerHTML:t._s(t.compareChange(o))}}):t._e()])})],2),t.hasButtonSlot()||t.paginate?e("div",{staticClass:"monsterinsights-table-box-footer"},[t._t("button"),t.paginate?e("reports-pagination",{attrs:{limit:t.limit,length:t.rows.length},on:{updated:t.changeLimit}}):t._e()],2):t._e()],1)},Kt=[],Zt=p(Jt,Gt,Kt,!1,null,null,null,null);const Qt=Zt.exports;m.directive("click-outside",{bind:function(s,t,e){s.clickOutsideEvent=function(o){s===o.target||s.contains(o.target)||e.context[t.expression](o)},document.body.addEventListener("click",s.clickOutsideEvent)},unbind:function(s){document.body.removeEventListener("click",s.clickOutsideEvent)}});const Xt={name:"ReportsPdfExport",props:{buttonText:{type:String,default:r("Export PDF Report","google-analytics-for-wordpress")}},data(){return{dropdownVisible:!1,text_upgrade:r("Upgrade to PRO","google-analytics-for-wordpress"),upgrade_url:this.$getUpgradeUrl("reports","pdfexport"),text_customize_date:r("You can export PDF reports only in the PRO version.","google-analytics-for-wordpress")}},computed:{dropdownClass(){let s="monsterinsights-reports-intervals-dropdown";return this.dropdownVisible||(s+=" monsterinsights-hide"),s}},methods:{maybeHideDropdown(){this.dropdownVisible&&(this.dropdownVisible=!1)}}};var te=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-export-pdf-report monsterinsights-export-pdf-report-lite"},[e("div",{staticClass:"monsterinsights-reports-interval-dropdown-container"},[e("button",{class:["monsterinsights-button"],domProps:{innerHTML:t._s(t.buttonText)},on:{click:function(o){o.stopPropagation(),t.dropdownVisible=!t.dropdownVisible}}}),e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.maybeHideDropdown,expression:"maybeHideDropdown"}],class:t.dropdownClass},[e("div",{staticClass:"monsterinsights-lite-datepicker"},[e("p",{domProps:{innerHTML:t._s(t.text_customize_date)}}),e("a",{staticClass:"monsterinsights-button monsterinsights-button-text",attrs:{href:t.upgrade_url,target:"_blank"}},[e("span",{domProps:{textContent:t._s(t.text_upgrade)}}),e("i",{staticClass:"monstericon-long-arrow-right-light"})])])])])])},ee=[],se=p(Xt,te,ee,!1,null,null,null,null);const re=se.exports,oe={name:"ReportUpsellInline",props:{title:String}};var ie=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-report-box monsterinsights-upsell-inline"},[e("div",{staticClass:"monsterinsights-upsell-inline-content"},[e("h3",{domProps:{textContent:t._s(t.title)}}),e("div",{staticClass:"monsterinsights-upsell-content"},[t._t("default")],2)])])},ae=[],ne=p(oe,ie,ae,!1,null,null,null,null);const le=ne.exports,ce={name:"ReportOverviewUpsell",components:{ReportUpsellInline:le},data(){return{text_upsell_title:r("Upgrade to MonsterInsights Pro to Unlock More Actionable Insights","google-analytics-for-wordpress"),text_upsell_content_1:r("It's easy to double your traffic and sales when you know exactly how people find and use your website. MonsterInsights Pro shows you the stats that matter!","google-analytics-for-wordpress"),text_upsell_content_2:r("Upgrade to MonsterInsights Pro and Save 50% OFF!","google-analytics-for-wordpress"),text_upsell_content_3:d(r("Use coupon code %1$sLITEUPGRADE%2$s","google-analytics-for-wordpress"),"<b>","</b>"),text_upsell_button:r("Upgrade to MonsterInsights Pro","google-analytics-for-wordpress"),upgrade_link:this.$getUpgradeUrl("report","overview")}}};var pe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-report-row monsterinsights-overview-upsell-desktop"},[e("report-upsell-inline",{attrs:{title:t.text_upsell_title}},[e("p",{domProps:{textContent:t._s(t.text_upsell_content_1)}}),e("p",[e("span",{staticClass:"monsterinsights-green-text"},[e("b",{domProps:{innerHTML:t._s(t.text_upsell_content_2)}})]),e("br"),e("span",{staticClass:"monsterinsights-light",domProps:{innerHTML:t._s(t.text_upsell_content_3)}})]),e("a",{staticClass:"monsterinsights-button monsterinsights-button-green",attrs:{href:t.upgrade_link,target:"_blank"},domProps:{textContent:t._s(t.text_upsell_button)}})])],1)},de=[],ge=p(ce,pe,de,!1,null,null,null,null);const me=ge.exports;m.directive("click-outside",{bind:function(s,t,e){s.clickOutsideEvent=function(o){s===o.target||s.contains(o.target)||e.context[t.expression](o)},document.body.addEventListener("click",s.clickOutsideEvent)},unbind:function(s){document.body.removeEventListener("click",s.clickOutsideEvent)}});const he={name:"ReportsDatePicker",data(){return{dropdownVisible:!1,text_30_days:r("Last 30 days","google-analytics-for-wordpress"),text_customize_date:d(r("You can customize your %sdate range only in the PRO version.","google-analytics-for-wordpress"),"<br />"),text_upgrade:r("Upgrade to PRO","google-analytics-for-wordpress"),upgrade_url:this.$getUpgradeUrl("reports","datepicker")}},computed:{...y({date:"$_reports/date",activeReport:"$_reports/activeReport"}),selectedIntervalText(){return this.getIntervalFormatted(this.text_30_days,h().subtract(30,"days"),h().subtract(1,"days"))},local_date(){return this.date.text},dropdownClass(){let s="monsterinsights-reports-intervals-dropdown";return this.dropdownVisible||(s+=" monsterinsights-hide"),s}},methods:{getFormattedDate(s){if(s instanceof Date){let t=this.addLeadingZero(s.getMonth()+1),e=this.addLeadingZero(s.getDate());s=s.getFullYear()+"-"+t+"-"+e}return s},addLeadingZero(s){return s<10&&s>0?0+s.toString():s},getInterval(s,t,e,o){this.dropdownVisible=!1,this.interval=o,this.$store.commit("$_reports/UPDATE_DATE",{start:s.format("YYYY-MM-DD"),end:t.format("YYYY-MM-DD")}),window.blur(),this.$store.dispatch("$_reports/getReportData",this.activeReport),this.local_date=""},getIntervalText(s,t){return s.format("YYYYMMDD")===t.format("YYYYMMDD")?s.format("MMMM D, YYYY"):s.format("MMMM D")+" - "+t.format("MMMM D, YYYY")},getIntervalFormatted(s,t,e){return"<b>"+s+":</b> "+this.getIntervalText(t,e)},getButtonClass(s){let t="monsterinsights-button";return s===this.interval&&(t+=" monsterinsights-selected-interval"),t},maybeHideDropdown(){this.dropdownVisible&&(this.dropdownVisible=!1)}}};var ue=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-reports-datepicker"},[e("div",{staticClass:"monsterinsights-reports-interval-dropdown-container"},[e("button",{staticClass:"monsterinsights-reports-interval-date-info",on:{click:function(o){o.stopPropagation(),t.dropdownVisible=!t.dropdownVisible}}},[e("span",{domProps:{innerHTML:t._s(t.selectedIntervalText)}}),e("i",{staticClass:"monstericon-calendar-alt"})]),e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.maybeHideDropdown,expression:"maybeHideDropdown"}],class:t.dropdownClass},[e("div",{staticClass:"monsterinsights-lite-datepicker"},[e("p",{domProps:{innerHTML:t._s(t.text_customize_date)}}),e("a",{staticClass:"monsterinsights-button monsterinsights-button-text",attrs:{href:t.upgrade_url,target:"_blank"}},[e("span",{domProps:{textContent:t._s(t.text_upgrade)}}),e("i",{staticClass:"monstericon-long-arrow-right-light"})])])])])])},_e=[],fe=p(he,ue,_e,!1,null,null,null,null);const ve=fe.exports,we={name:"ReportOverviewUpsellMobile",data(){return{text_upsell_title:d(r("Upgrade to Pro and unlock addons and other great features. %1$sSave 50%% automatically!%2$s","google-analytics-for-wordpress"),'<span class="monsterinsights-green-text"><b>',"</b></span>"),text_upsell_button:r("Upgrade Now","google-analytics-for-wordpress"),upgrade_link:this.$getUpgradeUrl("report","overview-mobile")}}};var ye=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-report-row monsterinsights-mobile-upsell"},[e("div",{staticClass:"monsterinsights-notice monsterinsights-notice-success"},[e("div",{staticClass:"monsterinsights-notice-inner"},[e("span",{domProps:{innerHTML:t._s(t.text_upsell_title)}}),e("div",{staticClass:"monsterinsights-notice-button"},[e("a",{staticClass:"monsterinsights-button monsterinsights-button-green",attrs:{href:t.upgrade_link,target:"_blank",rel:"noopener"},domProps:{textContent:t._s(t.text_upsell_button)}})])])])])},be=[],Ce=p(we,ye,be,!1,null,null,null,null);const xe=Ce.exports,Re={name:"SiteNotesMediaIconField"};var ke=function(){var t=this;return t._self._c,t._e()},$e=[],De=p(Re,ke,$e,!1,null,null,null,null);const Pe=De.exports,Se={name:"SiteNotesOverviewList",components:{Fragment:et,SiteNotesDatePickerField:q,SiteNotesMediasField:J,SiteNotesMediaIconField:Pe},data(){return{notes:[],notes_all_count:0,notes_important_count:0,filters:{important:null,date_range:{start:null,end:null,interval:"last30days"}},showProgressBar:!1,texts:{note_date:r("Date","google-analytics-for-wordpress"),note_title:r("Site Note","google-analytics-for-wordpress"),note_category:r("Category","google-analytics-for-wordpress"),show:r("Show:","google-analytics-for-wordpress"),all:r("All","google-analytics-for-wordpress"),important:r("Important","google-analytics-for-wordpress"),add_new:r("+ Add New Site Note","google-analytics-for-wordpress"),empty:r("There aren’t any site notes. Go ahead and create one!","google-analytics-for-wordpress"),edit:r("Edit","google-analytics-for-wordpress"),selectCategories:r("Select Category","google-analytics-for-wordpress"),save_changes:r("Save Changes","google-analytics-for-wordpress"),cancel:r("Cancel","google-analytics-for-wordpress")},selectedNote:null,isSaving:!1,noteCategories:[],selectedCategory:null}},computed:{...y({date:"$_reports/date"}),starClasses(){return"monsterinsights-star"+(this.selectedNote.important?"":"-empty")},categoryChoices(){return this.noteCategories?this.noteCategories.map(s=>(s.text=s.name,s.handle=this.selectCategory,s)):[]}},methods:{toggleImportant(s){let t=s;s.important?t.important=!1:t.important=!0,R.saveNote(t).then(()=>{this.fetchNotes({},!0)})},importantClass(s){return"monsterinsights-star"+(s.important?"":"-empty")},categoryStyle(s){return{backgroundColor:s.category&&s.category.background_color?s.category.background_color:"#E2EFFB"}},fetchNotes(s,t){t||(this.showProgressBar=!0),this.filters.date_range=this.date;const e=Object.assign({orderby:"id",order:"asc",per_page:"-1",filter:this.filters},s);R.getNotes(e).then(o=>{this.notes=[],this.notes_all_count=o.pagination.total_published?o.pagination.total_published:0,this.notes_important_count=o.pagination.total_important?o.pagination.total_important:0,this.notes=o.items}).finally(()=>{t||(this.showProgressBar=!1)})},removeFilters(){this.filters.important=null,this.fetchNotes()},filterImportant(){this.filters.important=!0,this.fetchNotes()},AddNewClick(){this.$emit("monsterinsights-site-notes-overview-show-create")},filtersClass(s=null){return s===this.filters.important?"selected":""},toggleStar(){this.selectedNote.important=!this.selectedNote.important},fetchCategories(s){const t=Object.assign({page:1,orderby:"name",order:"asc",select:["name"]},s);R.getCategories(t).then(e=>{this.noteCategories=e.items})},saveNote(){this.isSaving=!0,R.saveNote(this.selectedNote).then(()=>{this.fetchNotes(),this.$store.dispatch("$_reports/getReportData","overview").then(()=>{this.$emit("refresh-overview-report")})}).finally(()=>{this.isSaving=!1,this.cancelEdit()})},cancelEdit(){this.selectedNote={id:null,note_title:"",category:null,note_date:null,note_date_ymd:null,important:!1,medias:[]}},selectCategory(s){this.selectedNote.category=s},formatDate(s,t="YYYY-MM-DD"){return h(new Date(s)).format(t)}},watch:{date:{handler(){this.fetchNotes()},deep:!0}},mounted(){this.fetchNotes(),this.fetchCategories()}};var Te=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"monsterinsights-overview-notes__header"},[e("div",{staticClass:"monsterinsights-overview-notes__header-left"},[e("div",{staticClass:"monsterinsights-overview-notes__header-left-links"},[t._v(" "+t._s(t.texts.show)+" "),e("a",{class:t.filtersClass(),attrs:{href:"#"},on:{click:function(o){return o.preventDefault(),t.removeFilters()}}},[e("span",{staticClass:"text",domProps:{textContent:t._s(t.texts.all)}}),t._v(" "),e("span",{domProps:{textContent:t._s(`(${t.notes_all_count})`)}})]),e("a",{class:t.filtersClass(!0),attrs:{href:"#"},on:{click:function(o){return o.preventDefault(),t.filterImportant()}}},[e("span",{staticClass:"text important",domProps:{textContent:t._s(t.texts.important)}}),t._v(" "),e("span",{domProps:{textContent:t._s(`(${t.notes_important_count})`)}})])])]),e("div",{staticClass:"monsterinsights-overview-notes__header-right"},[e("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.texts.add_new)},on:{click:t.AddNewClick}})])]),e("div",{staticClass:"monsterinsights-overview-notes__body"},[e("div",{staticClass:"monsterinsights-overview-notes__body-list"},[t.showProgressBar?e("div",{staticClass:"monsterinsights-loader"}):t._e(),t.showProgressBar?t._e():e("table",{staticClass:"monsterinsights-overview-notes__body-list-table"},[e("thead",[e("tr",[e("th",{domProps:{textContent:t._s(t.texts.note_date)}}),e("th",{domProps:{textContent:t._s(t.texts.note_title)}}),e("th",{domProps:{textContent:t._s(t.texts.note_category)}})])]),e("tbody",[t._l(t.notes,function(o){return e("fragment",{key:o.id},[e("tr",[e("td",{staticClass:"monsterinsights-overview-notes__body-list-table-column-notedate"},[e("div",{staticClass:"monsterinsights-flex-container"},[e("div",{staticClass:"monsterinsights-flex-container",staticStyle:{"flex-grow":"1"}},[e("a",{staticClass:"monsterinsights-toggle-note-important",attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),t.toggleImportant(o)}}},[e("div",{class:t.importantClass(o)})]),e("div",{domProps:{textContent:t._s(t.formatDate(o.note_date,"DD MMM"))}})]),e("site-notes-media-icon-field",{attrs:{medias:o.medias}})],1)]),e("td",{staticClass:"monsterinsights-overview-notes__body-list-table-column-note"},[e("div",{staticClass:"monsterinsights-flex-container"},[e("div",{domProps:{innerHTML:t._s(o.note_title)}}),e("a",{staticClass:"monsterinsights-overview-notes__body-list-table-column-note-edit",attrs:{href:"#"},domProps:{textContent:t._s(t.texts.edit)},on:{click:function(i){i.preventDefault(),t.selectedNote={...o}}}})])]),e("td",{staticClass:"monsterinsights-overview-notes__body-list-table-column-notecategory"},[o.category&&o.category.background_color?e("span",{staticClass:"monsterinsights-category-with-bg",style:{backgroundColor:o.category.background_color},domProps:{textContent:t._s(o.category?o.category.name:"")}}):e("span",{staticClass:"monsterinsights-category-without-bg",domProps:{textContent:t._s(o.category?o.category.name:"")}})])]),t.selectedNote&&t.selectedNote.id===o.id?e("tr",{staticClass:"edit-row"},[e("td",{staticClass:"monsterinsights-overview-notes__body-list-table-column-notedate"},[e("div",{staticClass:"monsterinsights-flex-container"},[e("a",{class:t.starClasses,attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),t.toggleStar()}}}),e("site-notes-date-picker-field",{attrs:{disabled:t.isSaving},model:{value:t.selectedNote.note_date_ymd,callback:function(i){t.$set(t.selectedNote,"note_date_ymd",i)},expression:"selectedNote.note_date_ymd"}})],1)]),e("td",{staticClass:"monsterinsights-overview-notes__body-list-table-column-note"},[e("div",{staticClass:"monsterinsights-flex-container"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.selectedNote.note_title,expression:"selectedNote.note_title"}],attrs:{disabled:t.isSaving,rows:"1"},domProps:{value:t.selectedNote.note_title},on:{input:function(i){i.target.composing||t.$set(t.selectedNote,"note_title",i.target.value)}}}),e("site-notes-medias-field",{attrs:{"show-label":!1},model:{value:t.selectedNote.medias,callback:function(i){t.$set(t.selectedNote,"medias",i)},expression:"selectedNote.medias"}})],1),e("div",{staticClass:"monsterinsights-buttons"},[e("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.texts.save_changes)},on:{click:t.saveNote}}),e("a",{staticClass:"monsterinsights-button monsterinsights-button-secondary",attrs:{href:"#"},domProps:{textContent:t._s(t.texts.cancel)},on:{click:function(i){return i.preventDefault(),t.cancelEdit.apply(null,arguments)}}})])]),e("td",{staticClass:"monsterinsights-overview-notes__body-list-table-column-notecategory"},[e("select",{directives:[{name:"model",rawName:"v-model",value:o.category.id,expression:"note.category.id"}],on:{change:function(i){var a=Array.prototype.filter.call(i.target.options,function(n){return n.selected}).map(function(n){var g="_value"in n?n._value:n.value;return g});t.$set(o.category,"id",i.target.multiple?a:a[0])}}},[e("option",{attrs:{value:"0"},domProps:{textContent:t._s(t.texts.selectCategories)}}),t._l(t.noteCategories,function(i,a){return e("option",{key:a,domProps:{value:i.id,textContent:t._s(i.name)}})})],2)])]):t._e()])}),t.notes.length<=0&&!t.showProgressBar?e("tr",[e("td",{attrs:{colspan:"3"}},[e("div",{staticClass:"monsterinsights-overview-notes__body-list-table-empty",domProps:{textContent:t._s(t.texts.empty)}})])]):t._e()],2)])])])])},Ee=[],Me=p(Se,Te,Ee,!1,null,null,null,null);const Fe=Me.exports,Le={name:"SiteNotesOverviewCreate",components:{SiteNotesMediasField:J,SiteNotesDatePickerField:q},data(){return{note:{id:null,note_title:"",category:{id:0},note_date:null,note_date_ymd:null,important:!1,medias:{}},texts:{note_date:r("Date","google-analytics-for-wordpress"),note_title:r("Site Note","google-analytics-for-wordpress"),note_category:r("Category","google-analytics-for-wordpress"),selectCategories:r("Select Category","google-analytics-for-wordpress"),save_changes:r("Add Site Note","google-analytics-for-wordpress"),site_notes:r("Site Notes","google-analytics-for-wordpress"),add_new:r("Add New","google-analytics-for-wordpress"),edit:r("Edit Note","google-analytics-for-wordpress"),cancel:r("Cancel","google-analytics-for-wordpress")},noteCategories:[],message:"",isEdit:!1,isSaving:!1}},methods:{fetchCategories(s){const t=Object.assign({page:1,orderby:"name",order:"asc",select:["name"]},s);R.getCategories(t).then(e=>{this.noteCategories=e.items})},saveNote(){this.isSaving=!0,R.saveNote(this.note).then(()=>{this.$store.dispatch("$_reports/getReportData","overview").then(()=>{this.$emit("refresh-overview-report")})}).finally(()=>{this.isSaving=!1,this.note={id:null,note_title:"",category:{id:0},note_date:null,note_date_ymd:null,important:!1,medias:{}},this.updateDatepickerDate()})},toggleStar(){this.note.important=!this.note.important},showListClick(){this.$emit("monsterinsights-site-notes-overview-show-list")},isPro(){return this.$isPro()},updateDatepickerDate(){this.date.end===""?this.note.note_date_ymd=h().subtract(1,"day").format("YYYY-MM-DD"):this.note.note_date_ymd=this.date.end}},computed:{...y({date:"$_reports/date"}),starClasses(){return"monsterinsights-star"+(this.note.important?"":"-empty")},datepickerEndDate(){return this.date.end}},mounted(){this.fetchCategories(),this.updateDatepickerDate()},watch:{datepickerEndDate(){this.updateDatepickerDate()}}};var Ae=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"monsterinsights-overview-notes__header"},[e("div",{staticClass:"monsterinsights-overview-notes__header-left"}),e("div",{staticClass:"monsterinsights-overview-notes__header-right"},[e("div",{staticClass:"monsterinsights-button-group"},[e("button",{staticClass:"monsterinsights-button monsterinsights-button-secondary",domProps:{textContent:t._s(t.texts.cancel)},on:{click:t.showListClick}}),e("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.texts.save_changes)},on:{click:t.saveNote}})])])]),e("div",{staticClass:"monsterinsights-overview-notes__body"},[e("table",{staticClass:"monsterinsights-site-notes-create__table",class:t.isSaving?"loading":""},[e("thead",[e("tr",[e("th",{domProps:{textContent:t._s(t.texts.note_date)}}),e("th",{domProps:{textContent:t._s(t.texts.note_title)}}),e("th",{domProps:{textContent:t._s(t.texts.note_category)}})])]),e("tbody",[e("tr",[e("td",{staticClass:"monsterinsights-site-notes-create__table-column-notedate"},[e("div",{staticClass:"monsterinsights-flex-container"},[e("a",{class:t.starClasses,attrs:{href:"#"},on:{click:function(o){return o.preventDefault(),t.toggleStar()}}}),e("site-notes-date-picker-field",{attrs:{disabled:t.isSaving},model:{value:t.note.note_date_ymd,callback:function(o){t.$set(t.note,"note_date_ymd",o)},expression:"note.note_date_ymd"}})],1)]),e("td",{staticClass:"monsterinsights-site-notes-create__table-column-note"},[e("div",{staticClass:"monsterinsights-flex-container"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.note.note_title,expression:"note.note_title"}],attrs:{disabled:t.isSaving,rows:"1"},domProps:{value:t.note.note_title},on:{input:function(o){o.target.composing||t.$set(t.note,"note_title",o.target.value)}}}),e("site-notes-medias-field",{attrs:{"show-label":!1},model:{value:t.note.medias,callback:function(o){t.$set(t.note,"medias",o)},expression:"note.medias"}})],1)]),e("td",{staticClass:"monsterinsights-site-notes-create__table-column-notecategory"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.note.category.id,expression:"note.category.id"}],on:{change:function(o){var i=Array.prototype.filter.call(o.target.options,function(a){return a.selected}).map(function(a){var n="_value"in a?a._value:a.value;return n});t.$set(t.note.category,"id",o.target.multiple?i:i[0])}}},[e("option",{attrs:{value:"0"},domProps:{textContent:t._s(t.texts.selectCategories)}}),t._l(t.noteCategories,function(o,i){return e("option",{key:i,domProps:{value:o.id,textContent:t._s(o.name)}})})],2)])])])])])])},Ne=[],Ie=p(Le,Ae,Ne,!1,null,null,null,null);const Ye=Ie.exports,Be={name:"SiteNotesOverview",components:{SiteNotesOverviewList:Fe,SiteNotesOverviewCreate:Ye},data(){return{toggle_list_add:!0,texts:{}}},computed:{},methods:{showListClick(){this.toggle_list_add=!0},AddNewClick(){this.toggle_list_add=!1},siteNoteSaved(){this.showListClick(),this.$emit("refresh-overview-report")}},mounted(){}};var Oe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-overview-notes"},[t.toggle_list_add?e("site-notes-overview-list",{on:{"monsterinsights-site-notes-overview-show-create":t.AddNewClick,"refresh-overview-report":t.siteNoteSaved}}):t._e(),t.toggle_list_add?t._e():e("site-notes-overview-create",{on:{"monsterinsights-site-notes-overview-show-list":t.showListClick,"refresh-overview-report":t.siteNoteSaved}})],1)},Ue=[],He=p(Be,Oe,Ue,!1,null,null,null,null);const Ve=He.exports,je={name:"ReportOverview",mixins:[ft],components:{ReportOverviewUpsellMobile:xe,ReportOverviewDatePicker:ve,ReportOverviewUpsell:me,ReportListBox:Qt,ReportsPdfExport:re,ReportOverviewPieChartApex:K,ReportInfobox:W,ReportOverviewLineChartApex:N,SiteNotesOverview:Ve},computed:{...y({overview:"$_reports/overview",date:"$_reports/date",license:"$_license/license",license_network:"$_license/license_network"}),gaLinks(){return!!this.overview.galinks},infoboxRange(){return this.overview.infobox&&this.overview.infobox.range?this.overview.infobox.range:0},infoboxSessionsData(){return this.infoboxData("sessions")},infoboxPageviewsData(){return this.infoboxData("pageviews")},infoboxDurationData(){return this.infoboxData("duration")},infoboxBounceData(){return this.infoboxData("bounce_rate",!0)},infoboxTotalUsersData(){return this.infoboxData("totalusers")},infoboxNewUsersData(){return this.infoboxData("new_users")},newVsReturningData(){if(this.overview.newvsreturn){let s={values:[this.overview.newvsreturn.new,this.overview.newvsreturn.returning],labels:[r("New","google-analytics-for-wordpress"),r("Returning","google-analytics-for-wordpress")]};return this.date.compareReport&&(this.overview.newvsreturn.compare?s.compare=[this.overview.newvsreturn.compare.new,this.overview.newvsreturn.compare.returning]:s.compare=s.values),s}return{values:[],labels:[]}},devicesData(){if(this.overview.devices){let s={values:[this.overview.devices.desktop,this.overview.devices.tablet,this.overview.devices.mobile],labels:[r("Desktop","google-analytics-for-wordpress"),r("Tablet","google-analytics-for-wordpress"),r("Mobile","google-analytics-for-wordpress")]};return this.date.compareReport&&(this.overview.compare&&this.overview.compare.devices?s.compare=[this.overview.compare.devices.desktop,this.overview.compare.devices.tablet,this.overview.compare.devices.mobile]:s.compare=s.values),s}return{values:[],labels:[]}},countriesData(){let s=[],t=0;return this.overview.countries&&this.overview.countries.forEach(function(e){t++,s.push({number:t+".",text:'<span class="monsterinsights-flag monsterinsights-flag-'+e.iso.toLowerCase()+'"></span> '+e.name,right:e.sessions,compare_value:typeof e.compare_sessions>"u"?e.sessions:e.compare_sessions,compare_change:typeof e.compare_change>"u"?100:e.compare_change})}),s},referralsData(){let s=[],t=0;return this.overview.referrals&&this.overview.referrals.forEach(function(e){t++,s.push({number:t+".",text:'<img src="https://www.google.com/s2/favicons?domain=http://'+e.url+'" />'+e.url,right:e.sessions,compare_value:typeof e.compare_sessions>"u"?e.sessions:e.compare_sessions,compare_change:typeof e.compare_change>"u"?100:e.compare_change})}),s},topPostsData(){let s=[],t=0;return this.overview.toppages&&this.overview.toppages.forEach(function(e){t++;let o=e.hostname?'<a href="'+e.hostname+e.url+'" target="_blank" rel="noreferrer noopener">'+e.title+"</a>":e.title;s.push({number:t+".",text:o,right:e.sessions,compare_value:typeof e.compare_sessions>"u"?e.sessions:e.compare_sessions,compare_change:typeof e.compare_change>"u"?100:e.compare_change})}),s}},data(){return{show_overview_notes:!1,chart_style:{foreColor:"#999",borderColor:"#f3f6fa",colors:["#3a93dd","#5CC0A5"],markersStrokeColor:["#3a93dd"],markersColors:["#ffffff"],markersStrokeColorHover:["#ffffff"],markersColorsHover:["#3a93dd"],fontSize:"12px",fontFamily:'"Helvetica Neue", Helvetica, Arial, sans-serif'},text_site_notes:r("Site Notes","google-analytics-for-wordpress"),text_overview:r("Overview Report","google-analytics-for-wordpress"),text_sessions:r("Sessions","google-analytics-for-wordpress"),text_sessions_tooltip:d(r("Unique %s Sessions","google-analytics-for-wordpress"),"<br />"),text_pageviews:r("Pageviews","google-analytics-for-wordpress"),text_pageviews_tooltip:d(r("Unique %s Pageviews","google-analytics-for-wordpress"),"<br />"),text_duration:r("Avg. Session Duration","google-analytics-for-wordpress"),text_bounce:r("Bounce Rate","google-analytics-for-wordpress"),text_total_users:r("Total Users","google-analytics-for-wordpress"),text_new_vs_returning:r("New vs. Returning Visitors","google-analytics-for-wordpress"),text_device_breakdown:r("Device Breakdown","google-analytics-for-wordpress"),text_countries:r("Top 10 Countries","google-analytics-for-wordpress"),text_countries_button:r("View Countries Report","google-analytics-for-wordpress"),text_referrals:r("Top 10 Referrals","google-analytics-for-wordpress"),text_referral_button:r("View All Referral Sources","google-analytics-for-wordpress"),text_top_posts:r("Top Posts/Pages","google-analytics-for-wordpress"),text_top_posts_button:r("View Full Posts/Pages Report","google-analytics-for-wordpress"),current_tab:"sessions",text_infobox_tooltip_sessions:r("A session is the browsing session of a single user to your site.","google-analytics-for-wordpress"),text_infobox_tooltip_pageviews:r("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:r("Average session duration is calculated by dividing the total time spent by all users on your site (in seconds) by the number of sessions.","google-analytics-for-wordpress"),text_infobox_tooltip_bounce:r("Bounce Rate represents the percentage of sessions that don't meet the criteria for an engaged session. A session counts as engaged if the visitor completes an event (like a click or form submission), stays on your site for 10 seconds or longer, or views more than one page.","google-analytics-for-wordpress"),text_infobox_tooltip_totalusers:r("The number of distinct tracked users","google-analytics-for-wordpress"),text_pie_tooltip_newvsreturning:r("This graph shows what percent of your user sessions come from new versus repeat visitors.","google-analytics-for-wordpress"),text_pie_tooltip_devices:r("This graph shows the percentage of sessions on your site from different types of devices: traditional desktops/laptops, tablets, and mobile phones.","google-analytics-for-wordpress"),text_countries_tooltip:r("This list shows the top countries based on the number of sessions, showing where your website's visitors are from.","google-analytics-for-wordpress"),text_referral_tooltip:r("This list shows the top websites that send users to your website, known as referral traffic.","google-analytics-for-wordpress"),text_top_posts_tooltip:r("This list shows your website's most viewed posts and pages based on pageviews.","google-analytics-for-wordpress"),text_export_pdf_overview_report:r("Export PDF Overview Report","google-analytics-for-wordpress"),text_waiting_for_your_stats:r("We're Waiting for Your Stats!","google-analytics-for-wordpress"),text_waiting_to_process_your_data:r("We're waiting to process your data which might take up to 24 hours.","google-analytics-for-wordpress"),text_close_site_notes:r("Close Site Notes","google-analytics-for-wordpress"),overviewKey:1,text_new_users:r("New Users","google-analytics-for-wordpress"),text_infobox_tooltip_newusers:r("Users who interacted with your site for the first time.","google-analytics-for-wordpress")}},methods:{infoboxData(s,t=!1){let e={};return this.overview.infobox&&this.overview.infobox[s]&&(e.change=this.overview.infobox[s].prev,e.value=this.overview.infobox[s].value.toString(),typeof this.overview.infobox[s].compare_value>"u"?e.compareValue=e.value:e.compareValue=this.overview.infobox[s].compare_value?this.overview.infobox[s].compare_value.toString():"0",this.overview.infobox[s].prev===0?e.direction="":this.overview.infobox[s].prev>0?(e.direction="up",e.color="green"):(e.direction="down",e.color="red")),t&&(e.direction==="down"?e.color="green":e.color="red"),e},switchTab(s){this.current_tab=s},activeTabButtonClass(s){return s===this.current_tab?"monsterinsights-active-tab-button":"monsterinsights-deactive-tab-button"},sessionsData(){return this.overview.overviewgraph?{labels:this.overview.overviewgraph.labels,data:this.overview.overviewgraph.sessions.datapoints,timestamps:this.overview.overviewgraph.timestamps,trend:this.overview.overviewgraph.sessions.trendpoints,notes:this.overview.overviewgraph.notes,compare:this.overview.compare?this.overview.compare.overviewgraph.sessions:[]}:{}},pageviewsData(){return this.overview.overviewgraph?{labels:this.overview.overviewgraph.labels,data:this.overview.overviewgraph.pageviews.datapoints,timestamps:this.overview.overviewgraph.timestamps,trend:this.overview.overviewgraph.pageviews.trendpoints,notes:this.overview.overviewgraph.notes,compare:this.overview.compare?this.overview.compare.overviewgraph.pageviews:[]}:{}},showChart(){let s=!0;return this.overview.overviewgraph&&this.overview.overviewgraph.count===0&&(s=!1),s},toggleNotes(){this.show_overview_notes=!this.show_overview_notes},changeOverviewKey(){this.overviewKey=Math.random()}},mounted(){this.$store.dispatch("$_reports/getReportData","overview")}};var ze=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-overview"},[e("report-overview-upsell-mobile"),e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_overview)}}),e("report-overview-date-picker"),e("reports-pdf-export")],1),t.showChart()?e("div",{staticClass:"monsterinsights-report-tabs monsterinsights-report-row",attrs:{id:"monsterinsights-report-overview"}},[e("div",{staticClass:"monsterinsights-report-tabs-navigation"},[e("button",{class:t.activeTabButtonClass("sessions"),on:{click:function(o){return t.switchTab("sessions")}}},[e("i",{staticClass:"monstericon-user"}),e("span",{domProps:{textContent:t._s(t.text_sessions)}})]),e("button",{class:t.activeTabButtonClass("pageviews"),on:{click:function(o){return t.switchTab("pageviews")}}},[e("i",{staticClass:"monstericon-eye"}),e("span",{domProps:{textContent:t._s(t.text_pageviews)}})])]),e("div",{staticClass:"monsterinsights-report-tabs-content"},[t.current_tab==="sessions"?e("div",[e("report-overview-line-chart-apex",{attrs:{id:"chart-overview-sessions","chart-data":t.sessionsData(),tooltipDescriptor:t.text_sessions_tooltip,chartStyles:t.chart_style}})],1):t._e(),t.current_tab==="pageviews"?e("div",[e("report-overview-line-chart-apex",{attrs:{id:"chart-overview-pageviews","chart-data":t.pageviewsData(),tooltipDescriptor:t.text_sessions_tooltip,chartStyles:t.chart_style}})],1):t._e(),t.overview.show_chart_overlay?e("div",{staticClass:"monsterinsights-report-tabs-content-overlay"},[e("div",{staticClass:"monsterinsights-report-tabs-content-overlay-box"},[e("div",{staticClass:"monsterinsights-report-tabs-content-overlay-box-icon"},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.40686 12.8342C1.88862 12.8197 1.3904 12.5195 1.12016 11.9178C0.844361 11.305 0.925545 10.7056 1.38262 10.2007C1.82635 9.71029 2.3924 9.56127 3.02296 9.76145C3.23204 9.82817 3.36216 9.80371 3.52563 9.65913C4.85793 8.48142 6.19801 7.31149 7.54142 6.1449C7.70157 6.00589 7.76051 5.87799 7.72158 5.65557C7.567 4.77702 8.09859 4.01634 8.96714 3.83507C9.79343 3.66158 10.5897 4.16091 10.7921 5.02057C10.8555 5.28747 10.9834 5.39089 11.2236 5.47097C12.1933 5.79681 13.1564 6.14045 14.1195 6.48631C14.3019 6.55193 14.4287 6.54637 14.5877 6.40402C15.0314 6.00922 15.563 5.91358 16.1179 6.11265C16.3259 6.18716 16.4404 6.14045 16.5872 6.01478L17.0591 5.60925C18.1158 4.7009 19.1722 3.79274 20.2438 2.90313C20.424 2.75363 20.4056 2.61111 20.3856 2.4555L20.3856 2.45544L20.3856 2.45538L20.3856 2.45532C20.3816 2.42462 20.3776 2.39341 20.3751 2.36154C20.305 1.48965 20.8221 0.796812 21.6629 0.636669C22.4491 0.487648 23.2142 0.94472 23.4478 1.72653C23.6213 2.30815 23.5056 2.84307 23.0786 3.28124C22.656 3.71385 22.1333 3.89735 21.5461 3.70495C21.2603 3.61154 21.0801 3.66269 20.8622 3.85286C19.7067 4.85931 18.539 5.85242 17.369 6.84107C17.1867 6.99565 17.1199 7.12466 17.1622 7.386C17.3023 8.26567 16.6962 9.03969 15.811 9.1776C15.0158 9.30104 14.2218 8.74054 14.065 7.91536C14.025 7.70629 13.9393 7.61954 13.7514 7.55393C12.7449 7.20918 11.7429 6.85331 10.7409 6.49743C10.5786 6.4396 10.4607 6.43182 10.3072 6.5675C9.85348 6.97119 9.31522 7.07906 8.74138 6.8711C8.56789 6.80771 8.46892 6.84107 8.34436 6.95006C6.96647 8.16002 5.58858 9.36887 4.2029 10.5699C4.06327 10.691 4.08094 10.7961 4.10685 10.9501L4.10837 10.9592C4.27852 11.9712 3.55788 12.8353 2.41131 12.8353L2.40686 12.8342ZM20.0248 14.9084V7.8922C20.0248 7.10817 20.235 6.90132 21.0235 6.90132C21.2299 6.90132 21.4361 6.90089 21.6424 6.90047H21.6425C22.1064 6.89953 22.57 6.89858 23.0342 6.90243C23.5791 6.90688 23.8515 7.16266 23.8515 7.70091C23.856 12.5163 23.856 17.3317 23.8515 22.146C23.8515 22.6687 23.5858 22.9189 23.062 22.9233C22.3235 22.93 21.5851 22.9289 20.8455 22.9233C20.2639 22.9189 20.027 22.6687 20.0259 22.0492C20.0235 20.3493 20.024 18.6487 20.0244 16.9484V16.9483V16.9482C20.0246 16.2682 20.0248 15.5883 20.0248 14.9084ZM11.185 18.7474L11.1847 16.9545H11.1858C11.1858 16.3521 11.1861 15.7498 11.1863 15.1475V15.1456V15.1455C11.1868 13.9418 11.1873 12.7382 11.1858 11.5341C11.1858 10.9058 10.9456 10.6522 10.3317 10.6456C9.62 10.6367 8.90826 10.6367 8.19651 10.6456C7.60265 10.6533 7.34131 10.9114 7.34131 11.5008C7.33797 15.1284 7.33797 18.755 7.34131 22.3827C7.34131 22.9632 7.61933 23.2323 8.20207 23.2368C8.90047 23.2423 9.59776 23.2412 10.2962 23.2368C10.9312 23.2334 11.1847 22.9765 11.1847 22.3337C11.1855 21.1386 11.1852 19.9429 11.185 18.7474ZM17.5182 17.893L17.5184 19.3144V19.3198C17.5187 20.2666 17.5189 21.2136 17.5182 22.1601C17.5182 22.8441 17.2858 23.0776 16.6163 23.0787L16.268 23.0793H16.2676C15.6862 23.0804 15.1044 23.0815 14.5233 23.0787C13.9573 23.0754 13.6848 22.8218 13.6826 22.2558C13.6759 19.3554 13.6759 16.4551 13.6826 13.5547C13.6837 12.9942 13.9628 12.7395 14.53 12.7362C15.2417 12.7317 15.9524 12.7317 16.6641 12.7362C17.258 12.7395 17.516 12.992 17.5171 13.5836C17.5195 14.6098 17.519 15.6355 17.5186 16.6614V16.6615C17.5184 17.072 17.5182 17.4824 17.5182 17.893ZM1.00389 19.2723C1.00426 19.5411 1.00463 19.8098 1.00463 20.0785L1.00352 20.0774C1.00352 20.3295 1.0031 20.5818 1.00268 20.8341C1.00173 21.4019 1.00078 21.9699 1.00463 22.5373C1.00797 23.099 1.27265 23.3759 1.8287 23.3837C2.55268 23.3937 3.27777 23.3925 4.00174 23.3837C4.58337 23.377 4.85028 23.1056 4.85139 22.5207C4.85584 20.8937 4.85584 19.2678 4.85139 17.6408C4.85028 17.0758 4.59116 16.8111 4.02732 16.8034C3.30334 16.7945 2.57826 16.7956 1.85428 16.8034C1.26375 16.81 1.00797 17.0703 1.00463 17.6586C1.00241 18.1969 1.00315 18.7347 1.00389 19.2723Z",fill:"#FEFEFE"}})])]),e("h3",{domProps:{textContent:t._s(t.text_waiting_for_your_stats)}}),e("p",{domProps:{textContent:t._s(t.text_waiting_to_process_your_data)}})])]):t._e()]),t.show_overview_notes?t._e():e("a",{staticClass:"monsterinsights-notes-show",attrs:{href:"#"},on:{click:function(o){return o.preventDefault(),t.toggleNotes()}}},[e("span",[t._v(t._s(t.text_site_notes))])])]):t._e(),t.show_overview_notes?e("div",{staticClass:"monsterinsights-overview-notes-container",attrs:{id:"monsterinsights_site_notes"}},[e("site-notes-overview",{on:{"refresh-overview-report":t.changeOverviewKey}}),t.show_overview_notes?e("a",{staticClass:"monsterinsights-notes-hide",attrs:{href:"#"},domProps:{textContent:t._s(t.text_close_site_notes)},on:{click:function(o){return o.preventDefault(),t.toggleNotes()}}}):t._e()],1):t._e(),e("div",{staticClass:"monsterinsights-report-row monsterinsights-report-infobox-row",attrs:{id:"monsterinsights-report-infobox"}},[e("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,"compare-value":t.$formatNumber(t.infoboxSessionsData.compareValue)}}),e("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,"compare-value":t.$formatNumber(t.infoboxPageviewsData.compareValue)}}),e("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,"compare-value":t.infoboxDurationData.compareValue}}),e("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,"compare-value":t.infoboxBounceData.compareValue}})],1),e("report-overview-upsell"),e("div",{staticClass:"monsterinsights-report-row monsterinsights-report-flex"},[e("report-overview-pie-chart-apex",{attrs:{id:"newvsreturning",chartData:t.newVsReturningData,title:t.text_new_vs_returning,tooltip:t.text_pie_tooltip_newvsreturning,width:200,height:200,size:50}}),e("report-overview-pie-chart-apex",{attrs:{id:"devices",chartData:t.devicesData,title:t.text_device_breakdown,tooltip:t.text_pie_tooltip_devices,width:200,height:200,size:50}})],1),e("div",{staticClass:"monsterinsights-report-row monsterinsights-report-flex monsterinsights-report-2-columns"},[e("report-list-box",{attrs:{id:"monsterinsights-report-top-countries",title:t.text_countries,rows:t.countriesData,tooltip:t.text_countries_tooltip}},[t.gaLinks?e("a",{staticClass:"monsterinsights-button",attrs:{slot:"button",href:t.overview.galinks.countries,target:"_blank"},domProps:{textContent:t._s(t.text_countries_button)},slot:"button"}):t._e()]),e("report-list-box",{attrs:{id:"monsterinsights-report-top-referrals",title:t.text_referrals,rows:t.referralsData,tooltip:t.text_referral_tooltip}},[t.gaLinks?e("a",{staticClass:"monsterinsights-button",attrs:{slot:"button",href:t.overview.galinks.referrals,target:"_blank"},domProps:{textContent:t._s(t.text_referral_button)},slot:"button"}):t._e()])],1),e("div",{staticClass:"monsterinsights-report-row"},[e("report-list-box",{attrs:{title:t.text_top_posts,rows:t.topPostsData,tooltip:t.text_top_posts_tooltip}},[t.gaLinks?e("a",{staticClass:"monsterinsights-button",attrs:{slot:"button",href:t.overview.galinks.topposts,target:"_blank"},domProps:{textContent:t._s(t.text_top_posts_button)},slot:"button"}):t._e()])],1)],1)},We=[],qe=p(je,ze,We,!1,null,null,null,null);const Je=qe.exports,Ge={name:"ReportTableBox",components:{ReportsPagination:Z,SettingsInfoTooltip:T},props:{title:String,tooltip:String,rows:Array,headers:Array,button:Object,emptytext:String,error:String,mobileWidth:{default:783,type:Number},icon:{default:"",type:String},compareSingleColumns:{type:Array,default:()=>[0]},hasCompareChangeColumn:{type:Boolean,default:!1},compareChangeOpposite:{type:Array,default:()=>[]}},data(){return{paginate:!1,limit:10,text_show:r("Show","google-analytics-for-wordpress"),activeRow:"",isMobile:!1,resizing:!1}},computed:{...y({mobileTableExpanded:"$_reports/mobileTableExpanded",date:"$_reports/date"}),mobileHeaders(){let s=[];return this.headers.forEach(function(t,e){e>0&&s.push(t)}),s},emptyTable(){let s=[[this.emptytext]];for(;s.length<10;)s.push([" "]);return s},componentClass(){let s="monsterinsights-table-box";return this.isMobile&&(s+=" monsterinsights-table-box-mobile"),this.title||(s+=" monsterinsights-table-box-no-title"),this.date.compareReport&&(s+=" monsterinsights-table-box-compare-report"),this.paginate&&(s+=" monsterinsights-has-pagination"),s},tableRows(){let s=this.rows.filter(()=>!0);if(s.length<10){let t=[],e=0;for(;e<this.headers.length;){let o=[""];e>0&&this.date.compareReport&&(o.push(""),this.hasCompareChangeColumn&&o.push("")),t.push(o),e++}for(;s.length<10;)s.push(t)}return s=s.slice(0,this.limit),s},titleClass(){let s="monsterinsights-report-title ";return this.icon&&(s+=this.icon),this.paginate&&(s+=" monsterinsights-has-pagination"),s},compareDateColumns(){if(!this.date.compareReport)return[];let s=[];return this.headers.forEach((t,e)=>{this.compareSingleColumns.includes(e)||(s.push(this.date.intervalText,this.date.intervalCompareText),this.hasCompareChangeColumn&&s.push(r("Change%","google-analytics-for-wordpress")))}),s}},methods:{hasButtonSlot(){return this.rows.length>10&&(this.paginate=!0),this.$slots.button},getButtonClass(s){let t="monsterinsights-button";return s===this.limit&&(t+=" monsterinsights-selected-interval"),t},cellText(s,t,e){return s===""?" ":t===0?'<span class="monsterinsights-reports-list-count">'+(e+1)+'.</span><span class="monsterinsights-reports-list-title">'+s+"</span>":s},rowClass(s){let t="monsterinsights-table-list-item";return(this.mobileTableExpanded||this.activeRow===s)&&window.innerWidth<this.mobileWidth&&(t+=" monsterinsights-table-list-item-active"),this.tableRows[s][0]===""&&(t+=" monsterinsights-table-list-item-empty"),t},showMobileRow(s,t){return window.innerWidth<this.mobileWidth&&t>0&&(this.mobileTableExpanded||s===this.activeRow)},handleResize(){this.resizing||(this.resizing=!0,window.requestAnimationFrame?window.requestAnimationFrame(this.resizeCallback):setTimeout(this.resizeCallback,66))},resizeCallback(){this.isMobile=window.innerWidth<this.mobileWidth,this.resizing=!1},cellClass(s){return s++,"monsterinsights-table-cell-"+s},toggleMobileTables(s){if(this.mobileTableExpanded)return!1;this.activeRow=this.activeRow===s?"":s},changeLimit(s){this.limit=s},getRowSpan(s){return this.compareSingleColumns.includes(s)&&this.date.compareReport?2:1},getColSpan(s){return!this.compareSingleColumns.includes(s)&&this.date.compareReport?this.hasCompareChangeColumn?3:2:1}},mounted(){window.addEventListener("resize",this.handleResize),this.handleResize()},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)}};var Ke=function(){var t=this,e=t._self._c;return e("div",{class:t.componentClass},[t.title?e("h3",{class:t.titleClass,domProps:{textContent:t._s(t.title)}}):t._e(),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e(),e("div",{staticClass:"monsterinsights-table-box-list monsterinsights-table-box-table"},[t.error?e("div",[e("h3",{domProps:{textContent:t._s(t.error)}})]):t.rows.length>0?e("table",{class:{"monsterinsights-report-box-table-compare-report":t.date.compareReport}},[t.headers.length>0?e("thead",{class:{"monsterinsights-report-table-head-compare-report":t.date.compareReport}},[e("tr",{staticClass:"monsterinsights-report-box-table-head-columns"},t._l(t.headers,function(o,i){return e("th",{key:i,attrs:{rowspan:t.getRowSpan(i),colspan:t.getColSpan(i)},domProps:{textContent:t._s(o)}})}),0),t.date.compareReport?e("tr",{class:{"monsterinsights-report-table-head-date-range-row":!0,"monsterinsights-report-table-head-date-range-row-has-change-col":t.hasCompareChangeColumn}},t._l(t.compareDateColumns,function(o,i){return e("th",{key:i},[t._v(" "+t._s(o)+" ")])}),0):t._e()]):t._e(),e("tbody",{class:{"monsterinsights-report-table-body-compare-report":t.date.compareReport}},t._l(t.tableRows,function(o,i){return e("tr",{key:i,class:t.rowClass(i),on:{click:function(a){return t.toggleMobileTables(i)}}},t._l(t.tablePrepareColumnItems(o),function(a,n){return e("td",{key:n+"td"+i,class:t.cellClass(n)},[t.tableIsCurrentColumn(n)?[t.showMobileRow(i,n)?e("div",{staticClass:"monsterinsights-table-mobile-heading",domProps:{textContent:t._s(t.headers[n])}}):t._e(),e("div",{staticClass:"monsterinsights-table-item-content",domProps:{innerHTML:t._s(t.cellText(a,n,i))}})]:t._e(),t.tableIsPreviousColumn(n)?[e("span",{staticClass:"monsterinsights-table-item-compare-report-content",domProps:{innerHTML:t._s(a)}})]:t._e(),t.tableIsChangeColumn(a,n)?[e("div",{staticClass:"monsterinsights-table-item-compare-report-change",domProps:{innerHTML:t._s(t.tableCompareChange(a,n))}})]:t._e()],2)}),0)}),0)]):e("div",{staticClass:"monsterinsights-table-no-data"},[e("h3",{domProps:{textContent:t._s(t.emptytext)}})])]),t.hasButtonSlot()||t.paginate?e("div",{staticClass:"monsterinsights-table-box-footer"},[t._t("button"),t.paginate?e("reports-pagination",{attrs:{limit:t.limit,length:t.rows.length},on:{updated:t.changeLimit}}):t._e()],2):t._e()],1)},Ze=[],Qe=p(Ge,Ke,Ze,!1,null,null,null,null);const v=Qe.exports,Xe={name:"ReportEcommerce",components:{ReportUpsellOverlay:f,ReportTableBox:v,ReportInfobox:W},data(){return{text_ecommerce:"eCommerce Report",text_conversion_rate:"Conversion Rate",text_transactions:"Transactions",text_revenue:"Revenue",text_average_order_value:"Avg. Order Value",text_top_products:"Top Products",top_products_headers:["Product Name","Quantity","% of Sales","Total Revenue"],text_top_conversions:"Top Conversion Sources",topConversionsHeaders:["Sources","Total Users","% of Users","Revenue"]}},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},methods:{topProductsRows(){let s=[];for(let t=0;t<10;t++)s.push([l.lorem.words(3),l.datatype.number(),l.datatype.number(),l.datatype.number()]);return s},topConversionsRows(){let s=[];for(let t=0;t<10;t++)s.push([l.lorem.words(2),l.datatype.number(),l.datatype.number(),l.datatype.number()]);return s}}};var ts=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-ecommerce"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_ecommerce)}})]),e("div",{staticClass:"monsterinsights-report-row monsterinsights-report-infobox-row",attrs:{id:"monsterinsights-report-ecommerce-infobox"}},[e("report-infobox",{attrs:{id:"monsterinsights-report-ecommerce-conversion-rate",title:t.text_conversion_rate,value:"5",change:6}}),e("report-infobox",{attrs:{title:t.text_transactions,value:"5",change:6}}),e("report-infobox",{attrs:{id:"monsterinsights-report-ecommerce-revenue",title:t.text_revenue,value:"5",change:6}}),e("report-infobox",{attrs:{title:t.text_average_order_value,value:"5",change:6}})],1),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{title:t.text_top_products,headers:t.top_products_headers,rows:t.topProductsRows()}})],1),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{title:t.text_top_conversions,headers:t.topConversionsHeaders,rows:t.topConversionsRows()}})],1),e("report-upsell-overlay",{attrs:{report:"ecommerce"}})],1)},es=[],ss=p(Xe,ts,es,!1,null,null,null,null);const rs=ss.exports,os={name:"ReportEcommerceCoupons",components:{ReportUpsellOverlay:f,ReportTableBox:v},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},data(){return{text_upsell_title:r("eCommerce","google-analytics-for-wordpress"),text_ecommerce:r("eCommerce Coupons Report","google-analytics-for-wordpress"),fake_headers:["Coupon","Qty"]}}};var is=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-ecommerce-coupons"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_ecommerce)}})]),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.fake_headers,title:t.text_upsell_title,rows:[]}})],1),e("report-upsell-overlay",{attrs:{report:"ecommerce"}})],1)},as=[],ns=p(os,is,as,!1,null,null,null,null);const ls=ns.exports,cs={name:"ReportEcommerceFunnel",components:{ReportUpsellOverlay:f,ReportTableBox:v},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},data(){return{text_ecommerce_funnel:r("eCommerce Funnel","google-analytics-for-wordpress")}}};var ps=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-ecommerce-funnel"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_ecommerce_funnel)}})]),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:[],title:t.text_ecommerce_funnel,rows:[]}})],1),e("report-upsell-overlay",{attrs:{report:"ecommerce_funnel"}})],1)},ds=[],gs=p(cs,ps,ds,!1,null,null,null,null);const ms=gs.exports,hs={name:"ReportSearchConsole",components:{ReportUpsellOverlay:f,ReportTableBox:v},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},data(){return{text_top_search_terms:"Top 50 Google Search Terms",text_search_console:"Search Console Report",fake_headers:["Terms","Clicks","Impressions","CTR","Avg. Position"]}},methods:{topSearchTermsRows(){let s=[];for(let t=0;t<10;t++)s.push([l.lorem.words(3),l.datatype.number(),l.datatype.number(),l.datatype.number(),l.datatype.number()]);return s}}};var us=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-search-console"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_search_console)}})]),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.fake_headers,title:t.text_top_search_terms,rows:t.topSearchTermsRows()}})],1),e("report-upsell-overlay",{attrs:{report:"queries"}})],1)},_s=[],fs=p(hs,us,_s,!1,null,null,null,null);const vs=fs.exports,ws={name:"ReportDimensions",components:{ReportUpsellOverlay:f,ReportTableBox:v},data(){return{text_dimensions_upsell:"Dimensions",text_dimensions:"Dimensions Report",fake_headers:["Author","Percent"]}},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},methods:{dimensionRows(){let s=[];for(let t=0;t<10;t++)s.push([l.lorem.words(2),l.datatype.number()]);return s}}};var ys=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-dimensions"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_dimensions)}})]),e("div",{staticClass:"monsterinsights-report-row monsterinsights-report-flex monsterinsights-report-2-columns"},[e("report-table-box",{attrs:{title:t.text_dimensions_upsell,rows:t.dimensionRows(),headers:t.fake_headers}}),e("report-table-box",{attrs:{title:t.text_dimensions_upsell,rows:t.dimensionRows(),headers:t.fake_headers}}),e("report-table-box",{attrs:{title:t.text_dimensions_upsell,rows:t.dimensionRows(),headers:t.fake_headers}}),e("report-table-box",{attrs:{title:t.text_dimensions_upsell,rows:t.dimensionRows(),headers:t.fake_headers}})],1),e("report-upsell-overlay",{attrs:{report:"dimensions"}})],1)},bs=[],Cs=p(ws,ys,bs,!1,null,null,null,null);const xs=Cs.exports,Rs={name:"ReportSearchConsole",components:{ReportUpsellOverlay:f,ReportTableBox:v},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},data(){return{text_forms:"Forms Report",text_forms_upsell:"Forms",fake_headers:["Form Name or ID","Impressions","Conversions","Conversion Rate"]}},methods:{formsRows(){let s=[];for(let t=0;t<20;t++)s.push([l.lorem.words(2),l.datatype.number(),l.datatype.number(),l.datatype.number()]);return s}}};var ks=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-forms"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_forms)}})]),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.fake_headers,title:t.text_forms_upsell,rows:t.formsRows()}})],1),e("report-upsell-overlay",{attrs:{report:"forms"}})],1)},$s=[],Ds=p(Rs,ks,$s,!1,null,null,null,null);const Ps=Ds.exports,Ss={name:"ReportRealTime",components:{ReportUpsellOverlay:f,SettingsInfoTooltip:T,ReportTableBox:v},data(){return{text_realtime:r("Real-Time Report","google-analytics-for-wordpress"),text_right_now:r("Right Now","google-analytics-for-wordpress"),text_active:r("Active users on site","google-analytics-for-wordpress"),text_graph_not_available:r("The real-time graph of visitors over time is not currently available for this site. Please try again later.","google-analytics-for-wordpress"),text_active_explainer:r("Important: this only includes users who are tracked in real-time. Not all users are tracked in real-time including (but not limited to) logged-in site administrators, certain mobile users, and users who match a Google Analytics filter.","google-analytics-for-wordpress"),text_refresh_explainer:r("The real-time report automatically updates approximately every 60 seconds.","google-analytics-for-wordpress"),text_refresh_ago:r("The real-time report was last updated %s seconds ago.","google-analytics-for-wordpress"),text_refresh_explainer_2:r("The latest data will be automatically shown on this page when it becomes available.","google-analytics-for-wordpress"),text_refresh_explainer_3:r("There is no need to refresh the browser (doing so won't have any effect).","google-analytics-for-wordpress"),text_graph_title:r("Pageviews Per Minute","google-analytics-for-wordpress"),text_chart_tooltip:d(r("Unique %s Pageviews","google-analytics-for-wordpress"),"<br />"),text_top_pages:r("Top Pages","google-analytics-for-wordpress"),text_top_pages_empty:r("No pageviews currently.","google-analytics-for-wordpress"),top_pages_headers:[r("Page","google-analytics-for-wordpress"),r("Pageview Count","google-analytics-for-wordpress"),r("Percent of Total","google-analytics-for-wordpress")],text_right_now_tooltip:r("This is the number of active users in the last 30 minutes on your site.","google-analytics-for-wordpress"),text_pageviews_tooltip:r("This graph shows the number of pageviews for each of the last 30 minutes.","google-analytics-for-wordpress"),text_top_pages_tooltip:r("This list shows the top pages users visited in the last 30 minutes.","google-analytics-for-wordpress"),text_top_pages_button:r("View All Real-Time Pageviews","google-analytics-for-wordpress"),text_referrals_button:r("View All Real-Time Traffic Sources","google-analytics-for-wordpress"),text_countries_button:r("View All Real-Time Traffic by Country","google-analytics-for-wordpress"),text_city_button:r("View All Real-Time Traffic by City","google-analytics-for-wordpress"),seconds:12}},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},methods:{sprintf:d}};var Ts=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-realtime"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_realtime)}})]),e("div",{staticClass:"monsterinsights-report-row monsterinsights-report-flex monsterinsights-report-2-columns"},[e("div",{staticClass:"monsterinsights-report-box"},[e("h3",{domProps:{textContent:t._s(t.text_right_now)}}),e("settings-info-tooltip",{attrs:{content:t.text_right_now_tooltip}}),e("div",{staticClass:"monsterinsights-realtime-box-content"},[e("div",{staticClass:"monsterinsights-realtime-large",domProps:{textContent:t._s(0)}}),e("div",{staticClass:"monsterinsights-realtime-active",domProps:{textContent:t._s(t.text_active)}}),e("p",{domProps:{textContent:t._s(t.text_active_explainer)}}),e("p",[e("span",{domProps:{textContent:t._s(t.text_refresh_explainer)}}),e("span",{domProps:{textContent:t._s(t.sprintf(t.text_refresh_ago,t.seconds))}}),e("span",{domProps:{textContent:t._s(t.text_refresh_explainer_2)}}),e("span",{domProps:{textContent:t._s(t.text_refresh_explainer_3)}})])])],1),e("div",{staticClass:"monsterinsights-report-box"},[e("h3",{domProps:{textContent:t._s(t.text_graph_title)}}),e("settings-info-tooltip",{attrs:{content:t.text_pageviews_tooltip}}),e("div",{staticClass:"monsterinsights-realtime-box-content"})],1)]),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{title:t.text_top_pages,headers:t.top_pages_headers,rows:[],emptytext:t.text_top_pages_empty,tooltip:t.text_top_pages_tooltip}})],1),e("report-upsell-overlay",{attrs:{report:"realtime"}})],1)},Es=[],Ms=p(Ss,Ts,Es,!1,null,null,null,null);const Fs=Ms.exports,Ls={name:"ReportYearInReviewBarChart",data(){}},As=null,Ns=null;var Is=p(Ls,As,Ns,!1,null,null,null,null);const Ys=Is.exports,Bs={name:"ReportYearInReviewByMonth",components:{ReportYearInReviewBarChart:Ys},props:{chartData:[Object,Boolean],title:String,subTitle:String,id:String,icon:{type:String,default:"map"}},computed:{tooltipId(){return"monsterinsights-chartjs-pie-"+this.id+"-tooltip"},titleClassName(){return"monsterinsights-report-title with-outbound-icon with-icon-"+this.icon}}};var Os=function(){var t=this,e=t._self._c;return t.chartData?e("div",{staticClass:"monsterinsights-reports-visitorbymonth-chart monsterinsights-yir-chart"},[e("div",{staticClass:"monsterinsights-reports-visitorbymonth-header monsterinsights-yir-chart-header"},[e("div",{staticClass:"monsterinsights-reports-visitorbymonth-title monsterinsights-yir-chart-header-title"},[e("h3",{class:t.titleClassName,domProps:{textContent:t._s(t.title)}})]),e("div",{staticClass:"monsterinsights-reports-visitorbymonth-subtitle monsterinsights-yir-chart-header-subtitle"},[e("h4",{staticClass:"monsterinsights-report-subtitle",domProps:{textContent:t._s(t.subTitle)}})])]),e("div",{staticClass:"monsterinsights-reports-visitorbymonth-chart-content monsterinsights-yir-chart-content"},[e("div",{staticClass:"monsterinsights-reports-bar-chart-holder"},[e("div",{staticClass:"monsterinsights-chart-tooltip",attrs:{id:t.tooltipId}}),e("report-year-in-review-bar-chart",{attrs:{"chart-data":t.chartData,tooltipid:t.id}})],1)])]):t._e()},Us=[],Hs=p(Bs,Os,Us,!1,null,null,null,null);const Vs=Hs.exports,js={name:"ReportYearInReviewTip",props:{title:String,summary:String,link:String,linkText:String}};var zs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-yir-year-in-review-tip monsterinsights-yir-tip"},[e("div",{staticClass:"monsterinsights-yir-tip-icon"}),e("div",{staticClass:"monsterinsights-yir-tip-content"},[e("h3",{staticClass:"monsterinsights-yir-tip-content-title",domProps:{textContent:t._s(t.title)}}),e("p",{staticClass:"monsterinsights-yir-tip-content-summary",domProps:{textContent:t._s(t.summary)}}),e("div",{staticClass:"monsterinsights-yir-tip-content-link-wrapper"},[e("a",{staticClass:"monsterinsights-yir-tip-content-link",attrs:{href:t.link,target:"_blank"},domProps:{textContent:t._s(t.linkText)}})])])])},Ws=[],qs=p(js,zs,Ws,!1,null,null,null,null);const Js=qs.exports,Gs={name:"ReportYearInReviewListBox",props:{title:String,subTitle:String,tooltip:String,rows:Array},data(){return{limit:5,text_show:r("Show","google-analytics-for-wordpress"),text_no_records:r("No records found.","google-analytics-for-wordpress")}},methods:{tableRows(){let s=this.rows;if(s.length<5)for(;s.length<5;)s.push({number:"",text:"",right:""});return s=s.slice(0,this.limit),s}}};var Ks=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-year-in-review-table-box monsterinsights-yir-chart"},[e("div",{staticClass:"monsterinsights-year-in-review-table-box-header monsterinsights-yir-chart-header"},[e("div",{staticClass:"monsterinsights-year-in-review-table-box-title monsterinsights-yir-chart-header-title"},[t.title?e("h3",{staticClass:"monsterinsights-report-title",domProps:{textContent:t._s(t.title)}}):t._e()]),e("div",{staticClass:"monsterinsights-year-in-review-table-box-subtitle monsterinsights-yir-chart-header-subtitle"},[t.subTitle?e("h4",{staticClass:"monsterinsights-report-subtitle",domProps:{textContent:t._s(t.subTitle)}}):t._e()])]),e("div",{staticClass:"monsterinsights-year-in-review-table-box-list"},[t.rows.length>0?e("div",t._l(t.tableRows(),function(o,i){return e("div",{key:i,staticClass:"monsterinsights-table-list-item"},[e("span",{staticClass:"monsterinsights-reports-list-count",domProps:{textContent:t._s(o.number)}}),e("span",{staticClass:"monsterinsights-reports-list-text",domProps:{innerHTML:t._s(o.text)}}),e("span",{staticClass:"monsterinsights-reports-list-number"},[o.right?e("span",{domProps:{innerHTML:t._s(parseFloat(o.right).toLocaleString("en"))}}):t._e()])])}),0):t._e(),t.rows.length===0?e("div",{staticClass:"monsterinsights-table-list-item"},[e("span",{staticClass:"monsterinsights-reports-list-text",domProps:{innerHTML:t._s(t.text_no_records)}})]):t._e()]),t.tooltip?e("div",{staticClass:"monsterinsights-year-in-review-table-box-footer"},[e("span",{staticClass:"monsterinsights-yir-tooltip"},[e("span",{domProps:{textContent:t._s(t.tooltip)}})])]):t._e()])},Zs=[],Qs=p(Gs,Ks,Zs,!1,null,null,null,null);const Xs=Qs.exports,tr={name:"ReportYearInReviewDeviceUsage",props:{deviceData:[Object,Boolean],title:String,subtitle:String,id:String},data(){return{labels:{mobile:r("Mobile","google-analytics-for-wordpress"),desktop:r("Desktop","google-analytics-for-wordpress"),tablet:r("Tablet","google-analytics-for-wordpress")}}},computed:{},methods:{}};var er=function(){var t=this,e=t._self._c;return t.deviceData?e("div",{staticClass:"monsterinsights-reports-device-usage"},[t.title?e("h3",{staticClass:"monsterinsights-report-title",domProps:{textContent:t._s(t.title)}}):t._e(),t.subtitle?e("h3",{staticClass:"monsterinsights-report-subtitle",domProps:{innerHTML:t._s(t.subtitle)}}):t._e(),e("div",{staticClass:"monsterinsights-reports-device-usage-cards"},[e("div",{staticClass:"monsterinsights-yir-card monsterinsights-yir-green2-card"},[e("h4",{staticClass:"monsterinsights-yir-card-title with-small-mobile-icon",domProps:{textContent:t._s(t.labels.mobile)}}),e("span",{staticClass:"monsterinsights-yir-number",domProps:{textContent:t._s((t.deviceData.mobile.value||0)+"%")}})]),e("div",{staticClass:"monsterinsights-yir-card monsterinsights-yir-orange-card"},[e("h4",{staticClass:"monsterinsights-yir-card-title with-small-desktop-icon",domProps:{textContent:t._s(t.labels.desktop)}}),e("span",{staticClass:"monsterinsights-yir-number",domProps:{textContent:t._s((t.deviceData.desktop.value||0)+"%")}})]),e("div",{staticClass:"monsterinsights-yir-card monsterinsights-yir-blue2-card"},[e("h4",{staticClass:"monsterinsights-yir-card-title with-small-tablet-icon",domProps:{textContent:t._s(t.labels.tablet)}}),e("span",{staticClass:"monsterinsights-yir-number",domProps:{textContent:t._s((t.deviceData.tablet.value||0)+"%")}})])])]):t._e()},sr=[],rr=p(tr,er,sr,!1,null,null,null,null);const or=rr.exports,ir={name:"YearInReviewReportsPdfExport",components:{},props:{reportTitle:{type:String,default:r("Overview Report","google-analytics-for-wordpress")},buttonText:{type:String,default:r("Download as PDF","google-analytics-for-wordpress")},reportContainer:{type:String,default:".monsterinsights-reports-page"},filename:{type:String,default:"monsterinsights-report.pdf"},quality:{type:Number,default:1},pdfdpi:{type:Number,default:300},orientation:{type:String,default:"portrait"},ignoreClasses:{type:Array,default(){return[".monsterinsights-yir-export-link",".monsterinsights-header",".monsterinsights-notices-area",".monsterinsights-navigation-bar",".monsterinsights-yir-year-in-review-plugins-block",".monsterinsights-yir-join-communities",".with-behavior-icon"]}},ignoreHeightOfClasses:{type:Array,default(){return[".monsterinsights-header",".monsterinsights-notices-area",".monsterinsights-navigation-bar",".monsterinsights-yir-year-in-review-plugins-block",".monsterinsights-yir-join-communities",".with-behavior-icon"]}}},data(){return{logo:this.$mi.assets+"/img/logo-MonsterInsights.png",downloading:!1,mobileWidth:783}},computed:{...y({date:"$_reports/date",activeReport:"$_reports/activeReport",settings:"$_settings/settings"}),getDateRange(){let s=h().subtract(30,"days").format("MMMM Do YYYY"),t=h().subtract(1,"days").format("MMMM Do YYYY");return this.date.end&&this.date.start&&(s=h(this.date.start).format("MMMM Do YYYY"),t=h(this.date.end).format("MMMM Do YYYY")),d("%1$s - %2$s",s,t)}},methods:{exportPDFReport(){let s=this;if(!document.querySelector(s.reportContainer)){s.downloading=!1,s.$swal({icon:"error",title:r("Download Failed","google-analytics-for-wordpress"),text:r("Download Failed, no report found!","google-analytics-for-wordpress"),confirmButtonText:r("Ok","google-analytics-for-wordpress")});return}document.body.classList.add("monsterinsights-downloading-pdf-report"),s.downloading=!0,s.$swal({customClass:{container:"monsterinsights-swal monsterinsights-swal-loading monsterinsights-pdf-report-swal"},icon:"info",title:r("Generating PDF Report","google-analytics-for-wordpress"),didOpen:function(){s.$swal.showLoading()}}),s.ignoreContents(),setTimeout(()=>{s.doExport()},2e3)},async doExport(){let s=this,t=document.querySelector(s.reportContainer),e=s.getOuterHeight(t)-25-s.ignoreElementsHeight()+15,o={margin:[0,-70],filename:s.filename,image:{type:"jpeg",quality:this.quality},enableLinks:!1,html2canvas:{dpi:s.pdfdpi,scale:2,scrollY:0,height:e,onclone:a=>{a.querySelectorAll("[data-html2canvas-class]").forEach(g=>{const c=g.getAttribute("data-html2canvas-class");c&&(g.className=[g.className.trim(),c.trim()].join(" "))})}},jsPDF:{orientation:s.orientation,format:[980,e],unit:"px"}};try{await st().from(t).set(o).toPdf().get("pdf").then(function(a){a.setPage(1),a.setFontSize(20),a.setFont(void 0,"bold"),a.setTextColor("#393f4c")}).save()}catch(a){this.downloading=!1,s.pageBreaks("reset"),document.body.classList.remove("monsterinsights-downloading-pdf-report"),s.$swal({icon:"error",title:r("Download Failed","google-analytics-for-wordpress"),text:a,confirmButtonText:r("Ok","google-analytics-for-wordpress")});return}this.downloading=!1,s.pageBreaks("reset"),document.body.classList.remove("monsterinsights-downloading-pdf-report");let i=document.querySelectorAll(".monsterinsights-accordion-item");i.length&&i.forEach(function(a){a.setAttribute("style","margin-bottom: 0")}),s.$swal({customClass:{container:"monsterinsights-swal monsterinsights-swal-succcess monsterinsights-pdf-report-swal"},icon:"success",title:r("Downloaded PDF report successfully!","google-analytics-for-wordpress"),confirmButtonText:r("Ok","google-analytics-for-wordpress")})},ignoreContents(){this.ignoreClasses.length&&this.ignoreClasses.forEach(s=>{let t=document.querySelectorAll(s);t.length&&t.forEach(function(e){if(s===".monsterinsights-active-tab-button")e.removeAttribute("data-html2canvas-ignore");else{let o=document.createAttribute("data-html2canvas-ignore");o.value="",e.setAttributeNode(o)}})})},ignoreElementsHeight(){let s=this,t=0;return s.ignoreHeightOfClasses.forEach(e=>{let o=document.querySelectorAll(e);o.length&&o.forEach(function(i){e===".monsterinsights-table-box-footer"&&i.parentNode.parentNode.querySelectorAll(e).length===2?t+=s.getOuterHeight(i)/2:e===".monsterinsights-mobile-upsell"?i.children.length===0||window.innerWidth>s.mobileWidth||screen.width>s.mobileWidth||(t+=s.getOuterHeight(i)):e===".monsterinsights-overview-upsell-desktop"&&(i.children.length===0||window.innerWidth<s.mobileWidth||screen.width<s.mobileWidth)||(t+=s.getOuterHeight(i))})}),t},getOuterHeight(s){let t=s.offsetHeight,e=getComputedStyle(s);return t+=parseInt(e.marginTop)+parseInt(e.marginBottom),t},getHeaderImage(){let s=new Image;return s.src=this.logo,this.settings.pdf_reports_header_image&&(s.src=this.settings.pdf_reports_header_image),document.location.protocol=="https:"&&s.src.startsWith("http://")&&(s.src="https://"+s.src.substring(7)),document.location.protocol=="http:"&&s.src.startsWith("https://")&&(s.src="http://"+s.src.substring(8)),s},mmToPx(s){return s*3.779527559055},pxToMm(s){return s*.2645833333},pageBreaks(s="add"){let t=this,e=document.querySelectorAll(".monsterinsights-report-row"),o=t.mmToPx(210.0015555555555),i=105,a=0;if(s==="reset"){e.forEach(function(g){g.setAttribute("style","margin-bottom: 25px;")});return}for(var n=0;n<e.length;n++){let g=t.getOuterHeight(e[n]),c=e[n].querySelector(".monsterinsights-table-box-footer");if(c&&(g=t.getOuterHeight(e[n])-t.getOuterHeight(c)),n===0&&(a+=i),e[n].classList.contains("monsterinsights-overview-upsell-desktop")||e[n].classList.contains("monsterinsights-mobile-upsell")||(a+=g,a<o))continue;let _=o-(a-g);_+=50;let u=n>0?n-1:0;(e[u].classList.contains("monsterinsights-overview-upsell-desktop")||e[n].classList.contains("monsterinsights-mobile-upsell"))&&(u=u>0?u-1:0),e[u].setAttribute("style","margin-bottom:"+Math.round(_)+"px;"),e.length===1&&e[0].setAttribute("style","margin-bottom: 0;"),a=g+25}}}};var ar=function(){var t=this,e=t._self._c;return e("span",{attrs:{data:"html2canvas-ignore"}},[e("a",{staticClass:"monsterinsights-yir-export-link",domProps:{innerHTML:t._s(t.buttonText)},on:{click:function(o){return o.preventDefault(),t.exportPDFReport.apply(null,arguments)}}})])},nr=[],lr=p(ir,ar,nr,!1,null,null,null,null);const cr=lr.exports,pr={name:"YearInReview",components:{ReportYearInReviewByMonth:Vs,ReportYearInReviewTip:Js,ReportYearInReviewListBox:Xs,ReportYearInReviewDeviceUsage:or,AddonBlock:vt,YearInReviewReportsPdfExport:cr},data(){return{text_calculating:r("Still Calculating...","google-analytics-for-wordpress"),text_back_to_overview_report:r("Back to Overview Report","google-analytics-for-wordpress"),text_audience_section_title:r("Audience","google-analytics-for-wordpress"),text_congrats:r("Congrats","google-analytics-for-wordpress"),text_popular:r("Congrats! This year your website had ","google-analytics-for-wordpress"),text_you_had:r("You had ","google-analytics-for-wordpress"),text_visitors:r(" visitors","google-analytics-for-wordpress"),text_best_month_visitors:r(" visitors","google-analytics-for-wordpress"),text_total_visitors:r("Total Visitors","google-analytics-for-wordpress"),text_total_sessions:r("Total Sessions","google-analytics-for-wordpress"),text_visitor_by_month_chart_title:r("Visitors by Month","google-analytics-for-wordpress"),text_section_demographics_title:r("Demographics","google-analytics-for-wordpress"),text_number_one:r("#1","google-analytics-for-wordpress"),text_countries:r("You Top 5 Countries","google-analytics-for-wordpress"),text_know_your_visitors:r("Let’s get to know your visitors a little better, shall we?","google-analytics-for-wordpress"),text_gender:r("Gender","google-analytics-for-wordpress"),text_female:r("Female","google-analytics-for-wordpress"),text_women:r("Women","google-analytics-for-wordpress"),text_male:r("Male","google-analytics-for-wordpress"),text_unknown:r("Unknown","google-analytics-for-wordpress"),text_average_age:r("Average Age","google-analytics-for-wordpress"),text_section_behavior_title:r("Behavior","google-analytics-for-wordpress"),text_top_pages_graph_title:r("Your Top 5 Pages","google-analytics-for-wordpress"),text_top_pages_graph_subtitle:r("Pageviews","google-analytics-for-wordpress"),text_time_spent:r("Time Spent on Site","google-analytics-for-wordpress"),text_minutes:r("minutes","google-analytics-for-wordpress"),text_device_type:r("Device Type","google-analytics-for-wordpress"),text_grow_traffic_tip_summary:r("Did you know that using internal links can give you huge SEO gains? Get the scoop on internal links and how to build them in our guide.","google-analytics-for-wordpress"),text_grow_traffic_tip_link_text:r("How to Add WordPress Internal Links to Improve Your SEO","google-analytics-for-wordpress"),text_grow_traffic_tip_link:this.$getUrl("yearinreview","tips","https://www.monsterinsights.com/how-to-add-wordpress-internal-links-to-improve-your-seo/?utm_source=drip&utm_medium=email&utm_campaign=newsletter&utm_content=YIR"),text_visitors_come_from:r("So, where did all of these visitors come from?","google-analytics-for-wordpress"),text_clicks:r("Clicks","google-analytics-for-wordpress"),text_top_keywords:r("Your Top 5 Keywords","google-analytics-for-wordpress"),text_top_keywords_tooltip:r("What keywords visitors searched for to find your site","google-analytics-for-wordpress"),text_top_referrals:r("Your Top 5 Referrals","google-analytics-for-wordpress"),text_pageviews:r("Pageviews","google-analytics-for-wordpress"),text_top_referrals_tooltip:r("The websites that link back to your website","google-analytics-for-wordpress"),text_opportunity_tip_title:r("Opportunity","google-analytics-for-wordpress"),text_opportunity_tip_summary:r("Did you know you might have direct traffic that's getting counted wrong by Google Analytics? Learn how to track it correctly in our direct traffic guide.","google-analytics-for-wordpress"),text_opportunity_tip_link_text:r("What is Direct Traffic in Google Analytics? (GA4 Updates)","google-analytics-for-wordpress"),text_opportunity_tip_link:this.$getUrl("yearinreview","tips","https://www.monsterinsights.com/what-is-direct-traffic-in-google-analytics/"),text_thank_you_section_title:r("Thank you for using MonsterInsights!","google-analytics-for-wordpress"),text_thank_you_section_summary:r("We’re grateful for your continued support. If there’s anything we can do to help you grow your business, please don’t hesitate to contact our team.","google-analytics-for-wordpress"),text_enjoying_monsterinsights:r("Enjoying MonsterInsights?","google-analytics-for-wordpress"),text_leave_review:r("Leave a five star review!","google-analytics-for-wordpress"),text_syed_balkhi:r("Syed Balkhi","google-analytics-for-wordpress"),text_chris_christoff:r("Chris Christoff","google-analytics-for-wordpress"),text_write_review:r("Write Review","google-analytics-for-wordpress"),text_plugins_section_title:r("Did you know over 10 million websites use our plugins?","google-analytics-for-wordpress"),text_communities_section_title:r("Join our Communities!","google-analytics-for-wordpress"),text_facebook_group:r("Facebook Group","google-analytics-for-wordpress"),text_facebook_group_summary:r("Join our team of WordPress experts and other motivated website owners in the WPBeginner Engage Facebook Group.","google-analytics-for-wordpress"),text_facebook_join_button:r("Join Now...It’s Free!","google-analytics-for-wordpress"),text_wpbeginner_community_title:r("WordPress Tutorials by WPBeginner","google-analytics-for-wordpress"),text_wpbeginner_community_summary:r("WPBeginner is the largest free WordPress resource site for beginners and non-techy users.","google-analytics-for-wordpress"),text_visit_wpbeginner:r("Visit WPBeginner","google-analytics-for-wordpress"),text_follow_us:r("Follow Us!","google-analytics-for-wordpress"),text_sunset_warning:r("Hey! 👋 <br />Your Year in Review Report is only showing statistics after July 1, 2023 due to the Google Analytics 3 sunset!","google-analytics-for-wordpress"),text_follow_us_summary:r("Follow MonsterInsights on social media to stay up to date with latest updates, trends, and tutorials on how to make the most out of analytics.","google-analytics-for-wordpress"),text_search_console_upsell_overlay_details:r("Upgrade to MonsterInsights Pro to Unlock Additional Actionable Insights","google-analytics-for-wordpress"),text_search_console_upsell_overlay_btn_text:r("Upgrade to MonsterInsights Pro","google-analytics-for-wordpress"),text_search_console_upsell_overlay_btn_link:this.$getUrl("yearinreview","searchconsole","https://www.monsterinsights.com/lite/"),months:{Jan:r("January","google-analytics-for-wordpress"),Feb:r("February","google-analytics-for-wordpress"),Mar:r("March","google-analytics-for-wordpress"),Apr:r("April","google-analytics-for-wordpress"),May:r("May","google-analytics-for-wordpress"),Jun:r("June","google-analytics-for-wordpress"),Jul:r("July","google-analytics-for-wordpress"),Aug:r("August","google-analytics-for-wordpress"),Sep:r("September","google-analytics-for-wordpress"),Oct:r("October","google-analytics-for-wordpress"),Nov:r("November","google-analytics-for-wordpress"),Dec:r("December","google-analytics-for-wordpress")},logo:this.$mi.assets+"/img/logo-MonsterInsights.png",logo2x:this.$mi.assets+"/img/logo-MonsterInsights@2x.png 2x"}},mounted(){this.$store.dispatch("$_reports/getReportData","yearinreview")},computed:{...y({yearinreview_data:"$_reports/yearinreview_data",addons:"$_addons/addons",yearInReview:"$_reports/yearinreview",date:"$_reports/date",license:"$_license/license",license_network:"$_license/license_network"}),link(){return this.$getUrl("logo","header","https://www.monsterinsights.com/lite/")},stringsWithYear(){return{text_year_in_review_still_calculating:d(r("Your %s Year in Review is still calculating. Please check back later to see how your website performed last year.","google-analytics-for-wordpress"),this.yearinreview_data.report_year),text_title:d(r("Your %s Analytics Report","google-analytics-for-wordpress"),this.yearinreview_data.report_year),text_sub_title:d(r("%s Year in Review","google-analytics-for-wordpress"),this.yearinreview_data.report_year),text_visitor_by_month_chart_tooltip:d(r("January 1, %1$s - December 31, %2$s","google-analytics-for-wordpress"),this.yearinreview_data.report_year,this.yearinreview_data.report_year),text_summary:d(r("See how your website performed this year and find tips along the way to help grow even more in %s!","google-analytics-for-wordpress"),this.yearinreview_data.next_year),text_audience_tip_title:d(r("A Tip for %s","google-analytics-for-wordpress"),this.yearinreview_data.next_year),text_grow_traffic_tip_title:d(r("A Tip For %s","google-analytics-for-wordpress"),this.yearinreview_data.next_year),text_plugins_section_summary:d(r("Try our other popular WordPress plugins to grow your website in %s.","google-analytics-for-wordpress"),this.yearinreview_data.next_year),text_communities_section_summary:d(r("Become a WordPress expert in %s. Join our amazing communities and take your website to the next level.","google-analytics-for-wordpress"),this.yearinreview_data.next_year),text_copyright_monsterinsights:d(r("Copyright MonsterInsights, %s MonsterInsights, LLC","google-analytics-for-wordpress"),this.yearinreview_data.next_year),text_amazing_next_year:d(r("Here's to an amazing %s!","google-analytics-for-wordpress"),this.yearinreview_data.next_year),report_title:d(r("Year In Review %s!","google-analytics-for-wordpress"),this.yearinreview_data.report_year)}},visitorByMonthData(){return{datasets:[{backgroundColor:"#338EEF",data:this.yearInReview.usersgraph.datapoints}],labels:this.yearInReview.usersgraph.labels}},bestMonthVisitorsSummary(){return d(D("Your best month was <strong>%1$s</strong> with <strong>%2$s visitor!</strong>","Your best month was <strong>%1$s</strong> with <strong>%2$s visitors!</strong>",this.yearInReview.usersgraph.max,"google-analytics-for-wordpress"),this.months[this.yearInReview.usersgraph.bestmonth],this.commaNumbers(this.yearInReview.usersgraph.max))},bestMonthTip(){return d(r("See the top Traffic Sources and Top Pages for the Month of %s in the Overview Report to replicate your success.","google-analytics-for-wordpress"),this.months[this.yearInReview.usersgraph.bestmonth])},countriesData(){let s=[],t=0;return this.yearInReview.countries&&this.yearInReview.countries.forEach(function(e){t++,s.push({number:t+".",text:'<span class="monsterinsights-flag monsterinsights-flag-'+e.iso.toLowerCase()+'"></span> '+e.name,right:e.sessions})}),s},demoGraphicsSummary(){return d(r("Your <strong>%1$s</strong> visitors came from <strong>%2$s</strong> different countries.","google-analytics-for-wordpress"),this.commaNumbers(this.yearInReview.info.users.value),this.commaNumbers(this.yearInReview.countries.length))},topCountryFlagClass(){return"monsterinsights-flag-"+this.yearInReview.countries[0].iso.toLowerCase()},topCountryVisitors(){return d(r("%s Visitors","google-analytics-for-wordpress"),this.commaNumbers(this.yearInReview.countries[0].sessions))},maxVisitorGender(){let s="",t=this.getMaxVisitorGenderObj();return t.gender==="male"&&(s=this.text_male.toLowerCase()),t.gender==="female"&&(s=this.text_female.toLowerCase()),t.gender==="unknown"&&(s=this.text_unknown.toLowerCase()),s},maxVisitorGenderSummary(){return d(r("%1$s% of your visitors were %2$s","google-analytics-for-wordpress"),this.getMaxVisitorGenderObj().percent,this.maxVisitorGender)},maxVisitorAverageAge(){return this.getMaxVisitorAgeObj().age},maxVisitorAgeSummary(){return d(r("%1$s% of your visitors were between the ages of %2$s","google-analytics-for-wordpress"),this.getMaxVisitorGenderObj().percent,this.maxVisitorAverageAge)},behaviourSummary(){const s=parseInt(this.yearInReview.info.users.value),t=parseInt(this.yearInReview.info.pageviews.value),e=s===0?0:t/s,o=d(D("Your <strong>%s</strong> visitor","Your <strong>%s</strong> visitors",s,"google-analytics-for-wordpress"),this.commaNumbers(s)),i=d(D("viewed a total of <strong>%s</strong> page.","viewed a total of <strong>%s</strong> pages.",t,"google-analytics-for-wordpress"),this.commaNumbers(t)),a=d(D("That's an average of %s page for each visitor!","That's an average of %s pages for each visitor!",e,"google-analytics-for-wordpress"),this.commaNumbers(e,2));return o+" "+i+"<br /><span class='average-page-per-user'>"+a+"</span>"},topPages(){let s=[],t=0;return this.yearInReview.toppages&&this.yearInReview.toppages.forEach(function(e){t++;let o=e.hostname?'<a href="'+e.hostname+e.url+'" target="_blank" rel="noreferrer noopener">'+e.title+"</a>":e.title;s.push({number:t+".",text:o,right:e.sessions})}),s},eachVisitorSpentSummary(){return d(r("Each visitor spent an average of <strong>%1$s minutes</strong> on your website in <strong>%2$s</strong>.","google-analytics-for-wordpress"),this.commaNumbers(this.yearInReview.info.duration.avg_minutes,2),this.yearinreview_data.report_year)},mostVisitorsDevice(){if(this.yearInReview.devices){let s=this.yearInReview.devices,t=0,e=[];for(let o in s)s.hasOwnProperty(o)&&s[o]>t&&(e.name=o,e.percent=s[o],t=s[o]);return e}return!1},mostVisitorsDeviceClassName(){return"monsterinsights-yir-most-visitors-device is-device-"+this.mostVisitorsDevice.name},mostVisitorsDeviceSummary(){return d(r("Most of your visitors viewed your website from their <strong>%s</strong> device.","google-analytics-for-wordpress"),this.mostVisitorsDevice.name)},mostVisitorsDevicePercent(){return d(r("%1$s% of your visitors were on a %2$s device.","google-analytics-for-wordpress"),this.mostVisitorsDevice.percent,this.mostVisitorsDevice.name)},devicesData(){return this.yearInReview.devices?{desktop:{label:r("Desktop","google-analytics-for-wordpress"),value:this.yearInReview.devices.desktop,color:"#6AB1FC"},tablet:{label:r("Tablet","google-analytics-for-wordpress"),value:this.yearInReview.devices.tablet,color:"#AAD3FF"},mobile:{label:r("Mobile","google-analytics-for-wordpress"),value:this.yearInReview.devices.mobile,color:"#338EEF"}}:!1},referralsData(){let s=[],t=0;return this.yearInReview.referrals&&this.yearInReview.referrals.forEach(function(e){t++,s.push({number:t+".",text:'<img src="https://www.google.com/s2/favicons?domain=http://'+e.url+'" />'+e.url,right:e.sessions})}),s},searchConsoleSampleData(){return[{number:1,text:"search term one",right:7978},{number:2,text:"search term two",right:79789},{number:3,text:"search three",right:897},{number:4,text:"search four",right:797},{number:5,text:"search term five",right:299}]}},methods:{isAddonActive(s){return this.addons[s]?this.addons[s].active:!1},commaNumbers(s,t=0){return parseFloat(parseFloat(s).toFixed(t)).toLocaleString("en")},isMoreVisitors(){return this.yearInReview.info.users.value>this.yearInReview.info.users.prev},getMaxVisitorGenderObj(){let s=this.yearInReview.gender,t=0,e={};return s===void 0||s.forEach(function(o){o.percent>t&&(t=o.percent,e=o)}),e},getMaxVisitorAgeObj(){let s=this.yearInReview.age,t=0,e={};return s.forEach(function(o){o.percent>t&&(t=o.percent,e=o)}),e},pluginsList(){let s=["optinmonster","wpforms-lite","userfeedback-lite","wp-mail-smtp","all-in-one-seo-pack","coming-soon","rafflepress","pushengage","instagram-feed","custom-facebook-feed","feeds-for-youtube","custom-twitter-feeds","trustpulse-api","searchwp-live-ajax-search","affiliate-wp","stripe","easy-digital-downloads","sugar-calendar-lite","charitable","insert-headers-and-footers","duplicator"],t=[];return s.forEach(e=>{if(this.addons[e]){let o=Object.create(this.addons[e]);o.type="licensed",t.push(o)}}),t},hasSunsetData(){return!1}}};var dr=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-reports-page",class:["monsterinsights-report-year-in-review","monsterinsights-report-row",t.yearInReview.is_enabled?"":"monsterinsights-yir-report-calculating-row"]},[t.yearInReview.is_enabled?t._e():e("div",{staticClass:"monsterinsights-yir-top-header monsterinsights-yir-report-calculating"},[e("p",{staticClass:"monsterinsights-yir-summary",domProps:{textContent:t._s(t.stringsWithYear.text_year_in_review_still_calculating)}}),e("router-link",{staticClass:"monsterinsights-navigation-tab-link",attrs:{to:"/"},domProps:{textContent:t._s(t.text_back_to_overview_report)}})],1),t.yearInReview.is_enabled?e("div",[e("div",{staticClass:"monsterinsights-logo-area",attrs:{"data-html2canvas-class":"display-flex-important"}},[e("a",{attrs:{href:t.link,target:"_blank",rel:"noopener"}},[e("img",{attrs:{src:t.logo,srcset:t.logo2x}})])]),t.hasSunsetData()?e("div",{staticClass:"monsterinsights-sunset-warning monsterinsights-blue-warning",domProps:{innerHTML:t._s(t.text_sunset_warning)}}):t._e(),e("header",{staticClass:"monsterinsights-yir-top-header"},[e("h1",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.stringsWithYear.text_title)}})]),e("section",{staticClass:"monsterinsights-yir-audience"},[e("year-in-review-reports-pdf-export",{staticClass:"monsterinsights-export-button",attrs:{"report-title":t.stringsWithYear.report_title}}),e("h2",{staticClass:"monsterinsights-yir-purple-title monsterinsights-yir-title",domProps:{textContent:t._s(t.text_audience_section_title)}}),e("h3",{staticClass:"monsterinsights-yir-summary"},[t.isMoreVisitors?e("span",{domProps:{textContent:t._s(t.text_popular)}}):t._e(),e("span",[e("strong",{domProps:{textContent:t._s(t.commaNumbers(t.yearInReview.info.users.value)+t.text_visitors)}}),t._v(".")]),e("br"),e("span",{domProps:{innerHTML:t._s(t.bestMonthVisitorsSummary)}})]),e("div",{staticClass:"monsterinsights-yir-total-visitors-sessions"},[e("div",{staticClass:"monsterinsights-yir-visitors monsterinsights-yir-card monsterinsights-yir-blue-card"},[e("h4",{staticClass:"monsterinsights-yir-card-title",domProps:{textContent:t._s(t.text_total_visitors)}}),e("span",{staticClass:"monsterinsights-yir-number",domProps:{textContent:t._s(t.commaNumbers(t.yearInReview.info.users.value))}})]),e("div",{staticClass:"monsterinsights-yir-sessions monsterinsights-yir-card monsterinsights-yir-green-card"},[e("h4",{staticClass:"monsterinsights-yir-card-title",domProps:{textContent:t._s(t.text_total_sessions)}}),e("span",{staticClass:"monsterinsights-yir-number",domProps:{textContent:t._s(t.commaNumbers(t.yearInReview.info.sessions.value))}})])]),e("div",{staticClass:"monsterinsights-yir-visitor-by-chart monsterinsights-yir-chart"},[e("report-year-in-review-by-month",{attrs:{id:"visitorbymonth",chartData:t.visitorByMonthData,title:t.text_visitor_by_month_chart_title,"sub-title":t.stringsWithYear.text_visitor_by_month_chart_tooltip}})],1),e("report-year-in-review-tip",{attrs:{title:t.stringsWithYear.text_audience_tip_title,summary:t.bestMonthTip}})],1),e("section",{staticClass:"monsterinsights-yir-demographics monsterinsights-yir-map-bg"},[e("h2",{staticClass:"monsterinsights-yir-title monsterinsights-yir-purple-title",domProps:{textContent:t._s(t.text_section_demographics_title)}}),e("h3",{staticClass:"monsterinsights-yir-summary",domProps:{innerHTML:t._s(t.demoGraphicsSummary)}}),e("div",{staticClass:"monsterinsights-yir-countries"},[e("div",{staticClass:"monsterinsights-yir-top-country"},[e("h4",{staticClass:"monsterinsights-yir-top-country-name",domProps:{textContent:t._s(t.yearInReview.countries[0].name)}}),e("h5",{staticClass:"monsterinsights-yir-top-country-visitors",domProps:{textContent:t._s(t.topCountryVisitors)}})]),e("div",{staticClass:"monsterinsights-yir-top-countries-graph monsterinsights-yir-chart"},[e("report-year-in-review-list-box",{attrs:{title:t.text_countries,"sub-title":t.text_best_month_visitors,rows:t.countriesData}})],1)])]),e("section",{staticClass:"monsterinsights-yir-behavior"},[e("h2",{staticClass:"monsterinsights-yir-title monsterinsights-yir-purple-title",domProps:{textContent:t._s(t.text_section_behavior_title)}}),e("h3",{staticClass:"monsterinsights-yir-summary",domProps:{innerHTML:t._s(t.behaviourSummary)}}),e("div",{staticClass:"monsterinsights-yir-pages-data"},[e("div",{staticClass:"monsterinsights-yir-pages-summary"},[e("div",{staticClass:"with-behavior-icon"}),e("br"),e("span",{staticClass:"monsterinsights-yir-time-spent",domProps:{textContent:t._s(t.text_time_spent)}}),e("div",{staticClass:"monsterinsights-yir-total-time-spent-wrapper"},[e("h4",{staticClass:"monsterinsights-yir-total-time-spent"},[e("span",{staticClass:"monsterinsights-yir-number",domProps:{textContent:t._s(t.commaNumbers(t.yearInReview.info.duration.total_minutes))}}),e("span",{staticClass:"monsterinsights-yir-type",domProps:{textContent:t._s(t.text_minutes)}})]),e("h5",{staticClass:"monsterinsights-yir-each-visitor-spent monsterinsights-blue-warning",domProps:{innerHTML:t._s(t.eachVisitorSpentSummary)}})])]),e("div",{staticClass:"monsterinsights-yir-top-pages-graph monsterinsights-yir-chart"},[e("report-year-in-review-list-box",{attrs:{title:t.text_top_pages_graph_title,"sub-title":t.text_top_pages_graph_subtitle,rows:t.topPages}})],1)]),e("h3",{class:t.mostVisitorsDeviceClassName,domProps:{innerHTML:t._s(t.mostVisitorsDeviceSummary)}}),e("div",{staticClass:"monsterinsights-yir-visitors-info"},[e("report-year-in-review-device-usage",{attrs:{id:"devices",deviceData:t.devicesData,title:t.text_device_type,subtitle:t.mostVisitorsDevicePercent}})],1),e("div",{staticClass:"monsterinsights-yir-grow-traffic-tip"},[e("report-year-in-review-tip",{attrs:{title:t.stringsWithYear.text_grow_traffic_tip_title,summary:t.text_grow_traffic_tip_summary,"link-text":t.text_grow_traffic_tip_link_text,link:t.text_grow_traffic_tip_link}})],1)]),e("div",{staticClass:"monsterinsights-yir-visitors-come-from"},[e("h2",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_visitors_come_from)}}),e("div",{staticClass:"monsterinsights-yir-keywords-referrals"},[e("div",{staticClass:"monsterinsights-yir-referrals"},[e("report-year-in-review-list-box",{attrs:{title:t.text_top_referrals,"sub-title":t.text_pageviews,tooltip:t.text_top_referrals_tooltip,rows:t.referralsData}})],1)])]),e("div",{staticClass:"monsterinsights-yir-grow-traffic-tip"},[e("report-year-in-review-tip",{attrs:{title:t.text_opportunity_tip_title,summary:t.text_opportunity_tip_summary,"link-text":t.text_opportunity_tip_link_text,link:t.text_opportunity_tip_link}})],1),e("section",{staticClass:"monsterinsights-yir-thank-you"},[e("h2",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_thank_you_section_title)}}),e("h3",{staticClass:"monsterinsights-yir-summary",domProps:{textContent:t._s(t.text_thank_you_section_summary)}}),e("div",{staticClass:"monsterinsights-yir-dashboard-preview"}),e("h4",{staticClass:"monsterinsights-yir-amazing-year",domProps:{textContent:t._s(t.stringsWithYear.text_amazing_next_year)}}),e("div",{staticClass:"monsterinsights-yir-authors"},[e("div",{staticClass:"monsterinsights-yir-author"},[e("div",{staticClass:"monsterinsights-yir-thumbnail syed"}),e("span",{staticClass:"monsterinsights-yir-name",domProps:{textContent:t._s(t.text_syed_balkhi)}})]),e("div",{staticClass:"monsterinsights-yir-author"},[e("div",{staticClass:"monsterinsights-yir-thumbnail chris"}),e("span",{staticClass:"monsterinsights-yir-name",domProps:{textContent:t._s(t.text_chris_christoff)}})])]),e("div",{staticClass:"monsterinsights-yir-write-review"},[e("div",{staticClass:"monsterinsights-yir-content"},[e("span",{domProps:{textContent:t._s(t.text_enjoying_monsterinsights)}}),e("h3",{domProps:{textContent:t._s(t.text_leave_review)}})]),t._m(0),e("div",{staticClass:"monsterinsights-yir-review-button"},[e("a",{attrs:{href:"https://wordpress.org/support/view/plugin-reviews/google-analytics-for-wordpress?filter=5",target:"_blank"},domProps:{textContent:t._s(t.text_write_review)}})])])]),e("section",{staticClass:"monsterinsights-yir-year-in-review-plugins-block",attrs:{data:"html2canvas-ignore"}},[e("h2",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_plugins_section_title)}}),e("div",{staticClass:"monsterinsights-yir-plugins"},t._l(t.pluginsList(),function(o,i){return e("addon-block",{key:i,attrs:{addon:o,"is-addon":!1}})}),1)]),e("section",{staticClass:"monsterinsights-yir-join-communities",attrs:{data:"html2canvas-ignore"}},[e("h2",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_communities_section_title)}}),e("div",{staticClass:"monsterinsights-yir-communities"},[e("div",{staticClass:"monsterinsights-yir-community"},[e("div",{staticClass:"monsterinsights-yir-thumbnail with-chat-icon"}),e("h3",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_facebook_group)}}),e("p",{staticClass:"monsterinsights-yir-details",domProps:{textContent:t._s(t.text_facebook_group_summary)}}),e("a",{staticClass:"monsterinsights-yir-link",attrs:{href:"https://www.facebook.com/groups/wpbeginner/",target:"_blank"},domProps:{textContent:t._s(t.text_facebook_join_button)}})]),e("div",{staticClass:"monsterinsights-yir-community"},[e("div",{staticClass:"monsterinsights-yir-thumbnail with-pen-icon"}),e("h3",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_wpbeginner_community_title)}}),e("p",{staticClass:"monsterinsights-yir-details",domProps:{textContent:t._s(t.text_wpbeginner_community_summary)}}),e("a",{staticClass:"monsterinsights-yir-link",attrs:{href:"https://www.wpbeginner.com/",target:"_blank"},domProps:{textContent:t._s(t.text_visit_wpbeginner)}})]),e("div",{staticClass:"monsterinsights-yir-community"},[e("div",{staticClass:"monsterinsights-yir-thumbnail with-global-icon"}),e("h3",{staticClass:"monsterinsights-yir-title",domProps:{textContent:t._s(t.text_follow_us)}}),e("p",{staticClass:"monsterinsights-yir-details",domProps:{textContent:t._s(t.text_follow_us_summary)}}),t._m(1)])])]),e("footer",{staticClass:"monsterinsights-yir-footer"},[e("div",{domProps:{textContent:t._s(t.stringsWithYear.text_copyright_monsterinsights)}}),e("div",{staticClass:"monsterinsights-yir-text-right"},[e("div",{staticClass:"monsterinsights-footer-logo"},[e("a",{attrs:{href:t.link,target:"_blank",rel:"noopener"}},[e("img",{attrs:{src:t.logo,srcset:t.logo2x}})])])])])]):t._e()])},gr=[function(){var s=this,t=s._self._c;return t("div",{staticClass:"monsterinsights-yir-rating"},[t("ul",{staticClass:"monsterinsights-yir-five-star"},[t("li",{staticClass:"monsterinsights-yir-five-star-icon"}),t("li",{staticClass:"monsterinsights-yir-five-star-icon"}),t("li",{staticClass:"monsterinsights-yir-five-star-icon"}),t("li",{staticClass:"monsterinsights-yir-five-star-icon"}),t("li",{staticClass:"monsterinsights-yir-five-star-icon"})])])},function(){var s=this,t=s._self._c;return t("ul",{staticClass:"monsterinsights-yir-social-links"},[t("li",[t("a",{staticClass:"with-small-youtube-icon",attrs:{href:"https://www.youtube.com/channel/UCnB-GV6lyQYgBLLhQr-kuVw",target:"_blank"}})]),t("li",[t("a",{staticClass:"with-small-fb-icon",attrs:{href:"https://www.facebook.com/monsterinsights",target:"_blank"}})]),t("li",[t("a",{staticClass:"with-small-twitter-icon",attrs:{href:"https://twitter.com/monsterinsights",target:"_blank"}})]),t("li",[t("a",{staticClass:"with-small-linkedin-icon",attrs:{href:"https://www.linkedin.com/company/awesome-motive-inc./",target:"_blank"}})])])}],mr=p(pr,dr,gr,!1,null,null,null,null);const hr=mr.exports,ur={name:"ReportSearchConsole",components:{ReportUpsellOverlay:f},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},data(){return{text_sitespeed:r("Site Speed","google-analytics-for-wordpress"),text_sitespeed_upsell:"",fake_headers:["Form Name or ID","Impressions","Conversions","Conversion Rate"]}}};var _r=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-site-speed"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_sitespeed)}})]),e("div",{staticClass:"monsterinsights-report-row monsterinsights-site-speed-blur"}),e("report-upsell-overlay",{attrs:{report:"sitespeed"}})],1)},fr=[],vr=p(ur,_r,fr,!1,null,null,null,null);const wr=vr.exports;m.directive("click-outside",{bind:function(s,t,e){s.clickOutsideEvent=function(o){s===o.target||s.contains(o.target)||e.context[t.expression](o)},document.body.addEventListener("click",s.clickOutsideEvent)},unbind:function(s){document.body.removeEventListener("click",s.clickOutsideEvent)}});const O=783;let F=!1;const yr={name:"ReportsDatePicker",data(){const s=this;return{config:{mode:"range",disableMobile:"true",dateFormat:"Y-m-d",disable:[function(t){let e=t,o=h(h().tz(s.$mi.timezone).format("YYYY-MM-DD")),a=h.duration(o.diff(e)).asDays();a=a+1;let g=h(t).tz(s.$mi.timezone).subtract(a,"d").tz(s.$mi.timezone),c=h(),_=g.isBetween(h("01-01-2005","MM-DD-YYYY").tz(s.$mi.timezone),c),u=h(t).isBetween(h("01-01-2005","MM-DD-YYYY").tz(s.$mi.timezone),c);return!_||!u}],static:!0,inline:!0},isMobile:window.innerWidth<O,dropdownVisible:!1,isCalendarOpen:!1,dateInputStart:"",dateInputEnd:"",dateCompareStart:"",dateCompareEnd:"",text_compare_to_previous:r("Compare to Previous","google-analytics-for-wordpress"),text_cancel:r("Cancel","google-analytics-for-wordpress"),text_apply:r("Apply","google-analytics-for-wordpress"),text_date_range:r("Date Range","google-analytics-for-wordpress"),text_compare_to:r("Compare To","google-analytics-for-wordpress"),selectedInterval:"last30days",compareDateLocal:!1}},props:{isGetReportData:{type:Boolean,default:!0},compareOptions:{type:Boolean,default:!0}},computed:{...y({date:"$_reports/date",activeReport:"$_reports/activeReport",mobileTableExpanded:"$_reports/mobileTableExpanded"}),selectedIntervalText(){if(this.date.compareReport)return d(r("%1$sComparison:%2$s %3$s To %4$s","google-analytics-for-wordpress"),'<b class="monsterinsights-custom-dates-label">',"</b>",this.date.intervalText,this.date.intervalCompareText);if(this.interval){let e=this.intervals[this.interval];return this.getIntervalFormatted(e.text,e.start,e.end)}let s=h(this.date.start),t=h(this.date.end);return d(r("%1$sCustom dates:%2$s %3$s - %4$s","google-analytics-for-wordpress"),'<b class="monsterinsights-custom-dates-label">',"</b>",s.format("MMMM D"),t.format("MMMM D, YYYY"))},text_datepicker_placeholder(){return this.isMobile?r("Custom Date Range","google-analytics-for-wordpress"):r("Set Custom Date Range","google-analytics-for-wordpress")},text_mobile_details(){return this.mobileTableExpanded?r("Hide Details","google-analytics-for-wordpress"):r("Show Details","google-analytics-for-wordpress")},interval:{set(s){this.$store.commit("$_reports/UPDATE_INTERVAL",s)},get(){let s=this.date.interval;return(s===30||s==="false")&&(s="last30days"),s===7&&(s="last7days"),s}},local_date:{set(s){this.$store.commit("$_reports/UPDATE_DATE_TEXT",s)},get(){return this.date.text}},comparePickerDate:{set(s){this.$store.commit("$_reports/UPDATE_DATE_STORE",{compareText:s})},get(){return this.date.compareText}},dropdownClass(){let s="monsterinsights-reports-intervals-dropdown";return this.dropdownVisible||(s+=" monsterinsights-hide"),s},intervals(){let s=this.$mi_intervals();return typeof this.$route<"u"&&this.$route.name==="queries"&&(delete s.today,delete s.yesterday),s},compareDate:{set(s){this.compareDateLocal=s,s||this.$store.commit("$_reports/UPDATE_DATE_STORE",{compareReport:s}),this.selectedInterval&&(this.dropdownVisible=!1,this.sendReportRequest())},get(){return this.compareDateLocal}}},components:{flatPickr:rt},methods:{updateDates(s){if(this.compareDate)return;const t=this;this.dropdownVisible=!1;let e={};s[0]&&s[1]&&(e.start=this.getFormattedDate(s[0]),e.end=this.getFormattedDate(s[1]),this.interval=!1,document.activeElement.blur(),this.$store.commit("$_reports/UPDATE_DATE",e),t.$emit("date-changed"),this.sendReportRequest())},getFormattedDate(s){if(s instanceof Date){let t=this.addLeadingZero(s.getMonth()+1),e=this.addLeadingZero(s.getDate());s=s.getFullYear()+"-"+t+"-"+e}return s},addLeadingZero(s){return s<10&&s>0?0+s.toString():s},getInterval(s){const t=this;this.dropdownVisible=!1,this.interval=s.interval,this.selectedInterval=s.interval,this.$store.commit("$_reports/UPDATE_DATE_STORE",{start:s.start.format("YYYY-MM-DD"),end:s.end.format("YYYY-MM-DD"),compareStart:s.compareStart.format("YYYY-MM-DD"),compareEnd:s.compareEnd.format("YYYY-MM-DD")}),t.$emit("date-changed",s.interval),window.blur(),this.sendReportRequest(),this.defaultSelectClear()},getIntervalText(s,t){return s.format("YYYYMMDD")===t.format("YYYYMMDD")?s.format("MMMM D, YYYY"):s.format("MMMM D")+" - "+t.format("MMMM D, YYYY")},getIntervalFormatted(s,t,e){return"<b>"+s+'<span class="monsterinsights-datepicker-colon">:</span></b> <span class="monsterinsights-datepicker-interval-dates">'+this.getIntervalText(t,e)+"</span>"},getButtonClass(s){let t="monsterinsights-button";return s===this.interval&&(t+=" monsterinsights-selected-interval"),t},hideMobileTables(){this.mobileTableExpanded&&this.$store.commit("$_reports/CONTRACT_TABLES")},showMobileTables(){this.mobileTableExpanded||this.$store.commit("$_reports/EXPAND_TABLES")},toggleMobileTables(){this.mobileTableExpanded?this.hideMobileTables():this.showMobileTables()},handleResize(){F||(F=!0,window.requestAnimationFrame?window.requestAnimationFrame(this.resizeCallback):setTimeout(this.resizeCallback,66))},resizeCallback(){this.isMobile=window.innerWidth<O,F=!1},openFlatPicker(){this.isCalendarOpen=!0,this.selectedInterval=!1,this.$store.commit("$_reports/UPDATE_DATE_STORE",{start:"",end:"",compareStart:"",compareEnd:""})},showIfFlatpickr(){return this.$refs.datePicker&&(this.isCalendarOpen||!this.interval)?"":"monsterinsights-hide"},maybeHideDropdown(){this.isCalendarOpen=!1,this.dropdownVisible&&(this.dropdownVisible=!1)},intervalButtonClass(s){let t="monsterinsights-button ";return this.interval===s&&(t+=" monsterinsights-interval-active"),t},toggleDropdown(){this.dropdownVisible=!this.dropdownVisible,this.isCalendarOpen=!1},onCancelDatepicker(){this.isCalendarOpen=!1,this.dropdownVisible=!1},onApplyDatepicker(){this.isReadyToApplyDatepicker()&&(this.dropdownVisible=!1,this.interval=!1,window.blur(),this.sendReportRequest())},onComparePickerChange(s){s[0]&&(this.dateCompareStart=h(s[0]).format("MMMM D, YYYY"),this.updateDateToStore(s[0],"compareStart")),s[1]&&(this.dateCompareEnd=h(s[1]).format("MMMM D, YYYY"),this.updateDateToStore(s[1],"compareEnd"))},onDatePickerChange(s){s[0]&&(this.dateInputStart=h(s[0]).format("MMMM D, YYYY"),this.updateDateToStore(s[0],"start")),s[1]&&(this.dateInputEnd=h(s[1]).format("MMMM D, YYYY"),this.updateDateToStore(s[1],"end"))},updateDateToStore(s,t){this.$store.commit("$_reports/UPDATE_DATE_STORE",{[t]:this.getFormattedDate(s)})},sendReportRequest(){this.isGetReportData&&(this.$store.commit("$_reports/UPDATE_DATE_STORE",{compareReport:this.compareDateLocal}),this.$store.dispatch("$_reports/getReportData",this.activeReport).then(()=>{this.$emit("reports-updated")}))},isReadyToApplyDatepicker(){return this.compareDate?this.date.compareStart&&this.date.compareEnd:!0},defaultSelectClear(){this.dateInputStart="",this.dateInputEnd="",this.dateCompareStart="",this.dateCompareEnd="",this.local_date="",this.comparePickerDate=""}},mounted(){this.compareDateLocal=this.date.compareReport,this.selectedInterval=this.date.interval,this.selectedInterval===!1&&(this.date.start&&(this.dateInputStart=h(this.date.start).format("MMMM D, YYYY")),this.date.end&&(this.dateInputEnd=h(this.date.end).format("MMMM D, YYYY"))),this.date.compareReport&&(this.date.compareStart&&(this.dateCompareStart=h(this.date.compareStart).format("MMMM D, YYYY")),this.date.compareEnd&&(this.dateCompareEnd=h(this.date.compareEnd).format("MMMM D, YYYY"))),window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)}};var br=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-reports-datepicker"},[e("div",{staticClass:"monsterinsights-reports-interval-dropdown-container"},[e("button",{staticClass:"monsterinsights-reports-interval-date-info",on:{click:function(o){return o.stopPropagation(),t.toggleDropdown.apply(null,arguments)}}},[e("span",{domProps:{innerHTML:t._s(t.selectedIntervalText)}}),e("i",{staticClass:"monstericon-calendar-alt"})]),e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.maybeHideDropdown,expression:"maybeHideDropdown"}],class:t.dropdownClass},[e("div",{staticClass:"monsterinsights-datepicker-default-buttons"},[t._l(t.intervals,function(o,i){return e("div",{key:i},[e("button",{class:t.intervalButtonClass(o.interval),domProps:{innerHTML:t._s(t.getIntervalFormatted(o.text,o.start,o.end))},on:{click:function(a){return t.getInterval(o)}}})])}),t._t("beforeinterval"),e("div",[e("button",{class:t.intervalButtonClass(!1),on:{click:t.openFlatPicker}},[e("i",{staticClass:"monstericon-calendar-alt"}),t._v(" "),e("span",{domProps:{textContent:t._s(t.text_datepicker_placeholder)}})])]),t.compareOptions?e("div",[e("div",{staticClass:"monsterinsights-datepicker-input-switch"},[e("label",[e("span",{class:{"monsterinsights-styled-checkbox":!0,"monsterinsights-styled-checkbox-checked":t.compareDate}}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.compareDate,expression:"compareDate"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.compareDate)?t._i(t.compareDate,null)>-1:t.compareDate},on:{change:function(o){var i=t.compareDate,a=o.target,n=!!a.checked;if(Array.isArray(i)){var g=null,c=t._i(i,g);a.checked?c<0&&(t.compareDate=i.concat([g])):c>-1&&(t.compareDate=i.slice(0,c).concat(i.slice(c+1)))}else t.compareDate=n}}}),e("span",{staticClass:"monsterinsights-checkbox-label",domProps:{textContent:t._s(t.text_compare_to_previous)}})])])]):t._e()],2),e("div",{class:["monsterinsights-datepicker-range-wrapper",t.showIfFlatpickr()]},[e("div",{staticClass:"monsterinsights-datepicker-range-inputs"},[e("div",{staticClass:"monsterinsights-datepicker-range-input"},[e("h3",{domProps:{textContent:t._s(t.text_date_range)}}),e("div",{staticClass:"monsterinsights-datepicker-range-input-fields"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.dateInputStart,expression:"dateInputStart"}],attrs:{type:"text"},domProps:{value:t.dateInputStart},on:{input:function(o){o.target.composing||(t.dateInputStart=o.target.value)}}}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.dateInputEnd,expression:"dateInputEnd"}],attrs:{type:"text"},domProps:{value:t.dateInputEnd},on:{input:function(o){o.target.composing||(t.dateInputEnd=o.target.value)}}})])]),t.compareDate?e("div",{staticClass:"monsterinsights-datepicker-range-input"},[e("h3",{domProps:{textContent:t._s(t.text_compare_to)}}),e("div",{staticClass:"monsterinsights-datepicker-range-input-fields"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.dateCompareStart,expression:"dateCompareStart"}],attrs:{type:"text"},domProps:{value:t.dateCompareStart},on:{input:function(o){o.target.composing||(t.dateCompareStart=o.target.value)}}}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.dateCompareEnd,expression:"dateCompareEnd"}],attrs:{type:"text"},domProps:{value:t.dateCompareEnd},on:{input:function(o){o.target.composing||(t.dateCompareEnd=o.target.value)}}})])]):t._e()]),e("div",{staticClass:"monsterinsights-datepicker-calender-wrapper"},[e("div",{staticClass:"monsterinsights-datepicker-calenders"},[e("div",{staticClass:"monsterinsights-datepicker-calender"},[e("flat-pickr",{ref:"datePicker",staticClass:"monsterinsights-datepicker",attrs:{config:t.config},on:{"on-close":t.updateDates,"on-change":t.onDatePickerChange},model:{value:t.local_date,callback:function(o){t.local_date=o},expression:"local_date"}})],1),t.compareDate?e("div",{staticClass:"monsterinsights-datepicker-calender"},[e("flat-pickr",{ref:"comparePicker",staticClass:"monsterinsights-datepicker",attrs:{config:t.config},on:{"on-change":t.onComparePickerChange},model:{value:t.comparePickerDate,callback:function(o){t.comparePickerDate=o},expression:"comparePickerDate"}})],1):t._e()]),t.compareDate?e("div",{staticClass:"monsterinsights-datepicker-calenders-bottom"},[e("button",{staticClass:"monsterinsights-button monsterinsights-button-secondary",domProps:{textContent:t._s(t.text_cancel)},on:{click:t.onCancelDatepicker}}),e("button",{class:{"monsterinsights-button":!0,"monsterinsights-button-primary":!0,"monsterinsights-button-disabled":!t.isReadyToApplyDatepicker()},attrs:{disabled:!t.isReadyToApplyDatepicker()},domProps:{textContent:t._s(t.text_apply)},on:{click:t.onApplyDatepicker}})]):t._e()])])])]),e("button",{staticClass:"monsterinsights-button monsterinsights-mobile-details-toggle",domProps:{textContent:t._s(t.text_mobile_details)},on:{click:t.toggleMobileTables}})])},Cr=[],xr=p(yr,br,Cr,!1,null,null,null,null);const Rr=xr.exports,kr={name:"MIReportsDatePicker",extends:Rr},$r=null,Dr=null;var Pr=p(kr,$r,Dr,!1,null,null,null,null);const Q=Pr.exports,Sr={name:"ReportMedia",components:{ReportsDatePicker:Q,ReportOverviewLineChartApex:N,ReportTableBox:v,ReportUpsellOverlay:f},data(){return{text_media_report:"Media Report",text_graph_title:"Video Plays",text_chart_tooltip:d(r("Video %s Plays","google-analytics-for-wordpress"),"<br />"),video_plays_headers:["Video Details","Video Plays","Avg. Watch Time","Avg. % Watched","Completion Rate"]}},methods:{chartData(){let s={labels:[],datasets:[{labels:[],data:[],trend:[],timestamps:[]}]},t=l.date.month();for(let e=1;e<=30;e++){let o=String(e)+" "+t;s.labels.push(o),s.datasets[0].labels.push(o),s.datasets[0].data.push(l.datatype.number({min:5,max:10})),s.datasets[0].trend.push(l.datatype.number({min:50,max:100})),s.datasets[0].timestamps.push(Math.floor(new Date(o).getTime()/1e3))}return s},videoPlaysRows(){let s=[];for(let t=0;t<10;t++)s.push([l.lorem.words(3),l.datatype.number(),l.datatype.number(),l.datatype.number(),l.datatype.number()]);return s}},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")}};var Tr=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-media"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_media_report)}}),e("reports-date-picker")],1),e("div",{staticClass:"monsterinsights-report-box monsterinsights-report-row"},[e("h3",{domProps:{textContent:t._s(t.text_graph_title)}}),e("ReportOverviewLineChartApex",{attrs:{id:"media-chart","chart-data":t.chartData(),tooltipDescriptor:t.text_chart_tooltip}})],1),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.video_plays_headers,rows:t.videoPlaysRows()}})],1),e("report-upsell-overlay",{attrs:{report:"media"}})],1)},Er=[],Mr=p(Sr,Tr,Er,!1,null,null,null,null);const Fr=Mr.exports,Lr={date:{start:Y().subtract(29,"days").format("YYYY-MM-DD"),end:Y().format("YYYY-MM-DD"),interval:!1,text:""},mobileTableExpanded:!1,activeReport:"user-journey",journeyReports:{items:{},pagination:{}},filterForm:{search:"",sources:{value:"",label:"All Sources"},mediums:{value:"",label:"All Mediums"},campaigns:{value:"",label:"All Campaigns"}},noauth:!1,blur:!1,reauth:!1},Ar={date:s=>s.date,activeReport:s=>s.activeReport,mobileTableExpanded:s=>s.mobileTableExpanded,journeyReports:s=>s.journeyReports,filterForm:s=>s.filterForm,noauth:s=>s.noauth,reauth:s=>s.reauth,blur:s=>s.blur},Nr={UPDATE_INTERVAL:(s,t)=>{m.set(s.date,"interval",t)},UPDATE_DATE:(s,t)=>{t.start&&t.end&&(m.set(s.date,"start",t.start),m.set(s.date,"end",t.end))},UPDATE_DATE_TEXT:(s,t)=>{m.set(s.date,"text",t)},UPDATE_REPORT_DATA:(s,t)=>{s.journeyReports=t},updateFilterForm(s,t){s.filterForm[t.name]=t.value},ENABLE_BLUR(s){s.blur=!0},DISABLE_BLUR(s){s.blur=!1}};function P(s,t,e,o){let i=e?r("activate","google-analytics-for-wordpress"):r("install","google-analytics-for-wordpress");m.prototype.$swal({icon:"error",customClass:{container:"monsterinsights-swal"},title:r("Report Unavailable","google-analytics-for-wordpress"),html:d(r("Please %1$s the <strong>%2$s</strong> addon to view User journey reports.","google-analytics-for-wordpress"),i,o),allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!1,showCancelButton:!0,confirmButtonText:d(r("%s Addon","google-analytics-for-wordpress"),i.charAt(0).toUpperCase()+i.slice(1)),cancelButtonText:r("Dismiss","google-analytics-for-wordpress")}).then(function(a){a.value&&(e?gt(s,s.rootState.$_addons.addons[t]):mt(s,t))})}function Ir(s){s.dispatch("$_addons/getAddons",null,{root:!0}).then(t=>{if(!t)return;let e=s.rootState.$_addons.addons["user-journey"],o=s.rootState.$_addons.addons.ecommerce;if(!e.installed){P(s,"user-journey",!1,e.title);return}if(!e.active){P(s,"user-journey",!0,e.title);return}if(!o.installed){P(s,"ecommerce",!1,o.title);return}o.active||P(s,"ecommerce",!0,o.title)})}const Yr={getReportData(s,t={}){return new Promise(e=>{let o=new FormData;o.append("action","monsterinsights_user_journey_report"),o.append("nonce",m.prototype.$mi.nonce),o.append("search",s.state.filterForm.search),o.append("start_date",s.state.date.start),o.append("end_date",s.state.date.end),o.append("sources",s.state.filterForm.sources.value),o.append("mediums",s.state.filterForm.mediums.value),o.append("campaigns",s.state.filterForm.campaigns.value),o.append("page",t.page?t.page:1),A.post(m.prototype.$mi.ajax,o).then(i=>{i.data.success&&(s.commit("UPDATE_REPORT_DATA",{items:i.data.items,pagination:i.data.pagination}),e(!0)),i.data.demo&&(s.commit("UPDATE_REPORT_DATA",{items:i.data.items,pagination:{}}),e(!0),s.commit("$_app/ADD_NOTICE",{content:r("This is a demo report. The demo report will replaced after the first sale is tracked.","google-analytics-for-wordpress"),type:"warning",dismissable:!1,id:"user_journey_report_notice"},{root:!0})),e(!1)}).catch(i=>{s.commit("ENABLE_BLUR"),i.response.status===400&&Ir(s)})})}},U={namespaced:!0,state:Lr,actions:Yr,getters:Ar,mutations:Nr},Br={name:"AdminTableNavigation",props:{pagination:{type:Object,default:()=>({})}},data(){return{currentPage:1,filterValues:{},keywords:"",keywordsTimeout:null}},computed:{texts(){return{currentPage:r("Current Page",this.$_textDomain),firstPage:r("First Page",this.$_textDomain),prevPage:r("Previous Page",this.$_textDomain),nextPage:r("Next Page",this.$_textDomain),lastPage:r("Last Page",this.$_textDomain),of:r("of",this.$_textDomain)}}},methods:{goToPrev(){this.$emit("page-change",Number.parseInt(this.pagination.page)-1)},goToNext(){this.$emit("page-change",Number.parseInt(this.pagination.page)+1)},goToPage(s){this.$emit("page-change",s)}},mounted(){this.currentPage=this.pagination.page,this.filters&&this.filters.forEach(s=>{this.filterValues[s.id]=0})},watch:{"pagination.page"(s){this.currentPage=s}}};var Or=function(){var t=this,e=t._self._c;return e("div",{staticClass:"user-journey-report-pagination tablenav"},[e("div",{staticClass:"tablenav-pages",class:{"one-page":t.pagination.pages===1}},[t.pagination.pages>1?e("span",{staticClass:"pagination-links"},[t.pagination.page==1?[e("span",{staticClass:"tablenav-pages-navspan button disabled",attrs:{"aria-hidden":"true"}},[t._v("«")]),e("span",{staticClass:"tablenav-pages-navspan button disabled",attrs:{"aria-hidden":"true"}},[t._v("‹")])]:[e("a",{staticClass:"first-page button",attrs:{href:"#",role:"button"},on:{click:function(o){return o.preventDefault(),t.goToPage(1)}}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])]),e("a",{staticClass:"prev-page button",attrs:{href:"#",role:"button"},on:{click:function(o){return o.preventDefault(),t.goToPrev.apply(null,arguments)}}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("‹")])])],e("span",{staticClass:"paging-input"},[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(o){return!o.type.indexOf("key")&&t._k(o.keyCode,"enter",13,o.key,"Enter")?null:t.goToPage(t.currentPage)},input:function(o){o.target.composing||(t.currentPage=o.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:"#",role:"button"},on:{click:function(o){return o.preventDefault(),t.goToNext.apply(null,arguments)}}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("›")])]),e("a",{staticClass:"last-page button",attrs:{href:"#",role:"button"},on:{click:function(o){return o.preventDefault(),t.goToPage(t.pagination.pages)}}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])]],2):t._e()])])},Ur=[],Hr=p(Br,Or,Ur,!1,null,null,null,null);const X=Hr.exports,Vr={name:"UserJourneyReport",components:{ReportsDatePicker:Q,Multiselect:ot,Pagination:X},data(){return{parameters:{sources:[{value:"",label:"All Sources"}],mediums:[{value:"",label:"All Mediums"}],campaigns:[{value:"",label:"All Campaigns"}]},isMobileView:!1,currentExpandedRow:null,noItemText:r("No User Journey's matched your filters. Please remove some conditions and try again.","google-analytics-for-wordpress"),dataFetched:!1}},computed:{...y({journeyReports:"$_reports/journeyReports",filterForm:"$_reports/filterForm"}),searchJourneysField:{get(){return this.filterForm.search},set(s){this.$store.commit("$_reports/updateFilterForm",{name:"search",value:s})}},filterFieldCampaigns:{get(){return this.filterForm.campaigns},set(s){this.$store.commit("$_reports/updateFilterForm",{name:"campaigns",value:s})}},filterFieldMediums:{get(){return this.filterForm.mediums},set(s){this.$store.commit("$_reports/updateFilterForm",{name:"mediums",value:s})}},filterFieldSources:{get(){return this.filterForm.sources},set(s){this.$store.commit("$_reports/updateFilterForm",{name:"sources",value:s})}},showUpsell(){if(!this.$isPro())return!0;let s=this.$store.getters["$_license/license"];return!!(s&&s.type==="plus")}},methods:{getFilterParams(){if(this.showUpsell)return;let s=new FormData;s.append("action","monsterinsights_user_journey_report_filter_params"),s.append("nonce",this.$mi.nonce),A.post(this.$mi.ajax,s).then(t=>{if(t.data.success){let e=t.data.data;e.campaigns.forEach(o=>{this.parameters.campaigns.push({value:o,label:o})}),e.mediums.forEach(o=>{this.parameters.mediums.push({value:o,label:o})}),e.sources.forEach(o=>{this.parameters.sources.push({value:o,label:o})})}})},searchJourneys(){this.$mi_loading_toast(r("Searching Journeys","google-analytics-for-wordpress")),this.$store.dispatch("$_reports/getReportData").then(()=>{this.$swal.close()})},onDateChanged(){this.$mi_loading_toast(r("Searching Journeys","google-analytics-for-wordpress"))},onReportsUpdated(){this.$swal.close()},onFilterClick(){this.$mi_loading_toast(r("Searching Journeys","google-analytics-for-wordpress")),this.$store.dispatch("$_reports/getReportData").then(()=>{this.$swal.close()})},pageChange(s){this.$mi_loading_toast(r("Loading Journeys","google-analytics-for-wordpress")),this.$store.dispatch("$_reports/getReportData",{page:s}).then(()=>{this.$swal.close()})},handleResize(){window.innerWidth<783?this.isMobileView=!0:this.isMobileView=!1},expandCurrentRow(s){this.currentExpandedRow===s?this.currentExpandedRow=null:this.currentExpandedRow=s}},created(){this.$isPro()&&(this.$store.dispatch("$_reports/getReportData").then(()=>{this.dataFetched=!0}),this.getFilterParams())},mounted(){window.addEventListener("resize",this.handleResize),this.handleResize()},beforeDestroy(){window.removeEventListener("resize",this.handleResize),this.$store.commit("$_app/REMOVE_NOTICE","user_journey_report_notice",{root:!0})}};var jr=function(){var t=this,e=t._self._c;return e("main",{class:{"monsterinsights-user-journey-report":!0,"monsterinsights-blur":t.showUpsell},attrs:{id:"monsterinsights-user-journey-report"}},[e("div",{staticClass:"monsterinsights-container"},[t._t("em-heading"),e("div",{staticClass:"monsterinsights-user-journey-report-filters"},[e("div",{staticClass:"monsterinsights-user-journey-report-filters-left"},[e("reports-date-picker",{on:{"date-changed":t.onDateChanged,"reports-updated":t.onReportsUpdated}}),e("multiselect",{attrs:{options:t.parameters.campaigns,multiple:!1,"track-by":"value",label:"label",searchable:!1,selectLabel:"",selectedLabel:"",deselectLabel:"","allow-empty":!1},model:{value:t.filterFieldCampaigns,callback:function(o){t.filterFieldCampaigns=o},expression:"filterFieldCampaigns"}}),e("multiselect",{attrs:{options:t.parameters.mediums,multiple:!1,"track-by":"value",label:"label",searchable:!1,selectLabel:"",selectedLabel:"",deselectLabel:"","allow-empty":!1},model:{value:t.filterFieldMediums,callback:function(o){t.filterFieldMediums=o},expression:"filterFieldMediums"}}),e("multiselect",{attrs:{options:t.parameters.sources,multiple:!1,"track-by":"value",label:"label",searchable:!1,selectLabel:"",selectedLabel:"",deselectLabel:"","allow-empty":!1},model:{value:t.filterFieldSources,callback:function(o){t.filterFieldSources=o},expression:"filterFieldSources"}}),e("button",{staticClass:"monsterinsights-button monsterinsights-button-outline",on:{click:t.onFilterClick}},[t._v(" Filter ")])],1),e("div",{staticClass:"monsterinsights-user-journey-report-filters-right"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchJourneysField,expression:"searchJourneysField"}],staticClass:"monsterinsights-search-transaction-id",attrs:{type:"text",placeholder:"Transaction ID"},domProps:{value:t.searchJourneysField},on:{keyup:function(o){return!o.type.indexOf("key")&&t._k(o.keyCode,"enter",13,o.key,"Enter")?null:t.searchJourneys.apply(null,arguments)},input:function(o){o.target.composing||(t.searchJourneysField=o.target.value)}}}),e("button",{staticClass:"monsterinsights-button",on:{click:t.searchJourneys}},[t._v(" Search Journeys ")])])]),t.journeyReports.items.length>0?e("table",{staticClass:"monsterinsights-user-journey-report-table",class:{"monsterinsights-ujr-table-small-device":t.isMobileView}},[t._m(0),e("tbody",t._l(t.journeyReports.items,function(o,i){return e("tr",{key:String(o.transaction_id)+i,class:{"monsterinsights-ujr-table-small-device-row":t.isMobileView,"monsterinsights-ujr-table-small-device-row-expanded":t.currentExpandedRow===i}},[e("td",{staticClass:"monsterinsights-ujr-table-small-device-heading",on:{click:function(a){return t.expandCurrentRow(i)}}},[e("span",{staticClass:"monsterinsights-ujr-table-small-device-label"},[t._v("Transaction ID")]),e("span",{staticClass:"monsterinsights-ujr-table-small-device-value"},[e("a",{attrs:{href:o.edit_order_url}},[t._v(" "+t._s(o.transaction_id)+" ")])])]),e("td",{staticClass:"monsterinsights-ujr-table-small-device-content"},[e("span",{staticClass:"monsterinsights-ujr-table-small-device-label"},[t._v("Purchase Date")]),e("span",{staticClass:"monsterinsights-ujr-table-small-device-value"},[t._v(t._s(o.purchase_date))])]),e("td",{staticClass:"monsterinsights-ujr-table-small-device-content"},[e("span",{staticClass:"monsterinsights-ujr-table-small-device-label"},[t._v("UTM Campaign")]),e("span",{staticClass:"monsterinsights-ujr-table-small-device-value"},[t._v(t._s(o.utm_campaign))])]),e("td",{staticClass:"monsterinsights-ujr-table-small-device-content"},[e("span",{staticClass:"monsterinsights-ujr-table-small-device-label"},[t._v("UTM Medium")]),e("span",{staticClass:"monsterinsights-ujr-table-small-device-value"},[t._v(t._s(o.utm_medium))])]),e("td",{staticClass:"monsterinsights-ujr-table-small-device-content"},[e("span",{staticClass:"monsterinsights-ujr-table-small-device-label"},[t._v("UTM Source")]),e("span",{staticClass:"monsterinsights-ujr-table-small-device-value"},[t._v(t._s(o.utm_source))])]),e("td",{staticClass:"monsterinsights-ujr-table-small-device-content"},[e("span",{staticClass:"monsterinsights-ujr-table-small-device-label"},[t._v("Order Total")]),e("span",{staticClass:"monsterinsights-ujr-table-small-device-value",domProps:{innerHTML:t._s(o.order_total)}})]),e("td",{staticClass:"monsterinsights-ujr-table-small-device-content"},[e("span",{staticClass:"monsterinsights-ujr-table-small-device-label"},[t._v("Steps to Purchase")]),e("span",{staticClass:"monsterinsights-ujr-table-small-device-value"},[t._v(t._s(o.steps))])])])}),0)]):t.dataFetched&&t.journeyReports.items.length==0?e("div",{staticClass:"monsterinsights-notice monsterinsights-notice-info"},[e("div",{staticClass:"monsterinsights-notice-inner"},[e("div",{staticClass:"notice-content"},[e("span",{staticClass:"monsterinsights-notice-content"},[t._v(t._s(t.noItemText))])])])]):t._e(),e("Pagination",{attrs:{pagination:t.journeyReports.pagination},on:{"page-change":t.pageChange}})],2),t._t("mi-upsell-overlay")],2)},zr=[function(){var s=this,t=s._self._c;return t("thead",[t("tr",[t("th",[s._v("Transaction ID")]),t("th",[s._v("Purchase Date")]),t("th",[s._v("UTM Campaign")]),t("th",[s._v("UTM Medium")]),t("th",[s._v("UTM Source")]),t("th",[s._v("Order Total")]),t("th",[s._v("Steps to Purchase")])])])}],Wr=p(Vr,jr,zr,!1,null,null,null,null);const qr=Wr.exports,Jr={name:"MonsterInsightsUserJourneyReport",components:{UserJourneyReport:qr,ReportUpsellOverlay:f},beforeCreate(){const s="$_reports";s in this.$store._modules.root._children?(this.$store.unregisterModule(s),this.$store.registerModule(s,U)):this.$store.registerModule(s,U)},beforeDestroy(){this.$store.unregisterModule("$_reports")},computed:{showUpsell(){if(!this.$isPro())return!0;let s=this.$store.getters["$_license/license"];return!!(s&&s.type==="plus")}}};var Gr=function(){var t=this,e=t._self._c;return e("UserJourneyReport",{scopedSlots:t._u([{key:"mi-upsell-overlay",fn:function(){return[t.showUpsell?e("report-upsell-overlay",{attrs:{report:"userjourney"}}):t._e()]},proxy:!0}])})},Kr=[],Zr=p(Jr,Gr,Kr,!1,null,null,null,null);const Qr=Zr.exports,Xr={components:{ReportOverviewLineChartApex:N},data(){return{chart_style:{foreColor:"#999",borderColor:"#f3f6fa",colors:["#3a93dd"],markersStrokeColor:["#3a93dd"],markersColors:["#ffffff"],markersStrokeColorHover:["#ffffff"],markersColorsHover:["#3a93dd"],fontSize:"12px",fontFamily:'"Helvetica Neue", Helvetica, Arial, sans-serif'}}},methods:{sessionsData(){let s=[],t=[],e=[],o=[],i=l.date.month();for(let a=1;a<=30;a++){let n=String(a)+" "+i;t.push(n),s.push(l.datatype.number({min:20,max:100})),o.push(l.datatype.number({min:50,max:100})),e.push(Math.floor(Date.now()/1e3)+86400*a)}return{labels:t,datasets:[{labels:t,data:s,timestamps:e,trend:o,notes:[]}]}}}};var to=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-report-row monsterinsights-report-tabs"},[t._m(0),e("div",{staticClass:"monsterinsights-report-tabs-content"},[e("report-overview-line-chart-apex",{attrs:{id:"chart-overview-sessions","chart-data":t.sessionsData(),tooltipDescriptor:"Unique <br> Sessionsss",chartStyles:t.chart_style}})],1)])},eo=[function(){var s=this,t=s._self._c;return t("div",{staticClass:"monsterinsights-report-tabs-navigation"},[t("button",{staticClass:"monsterinsights-active-tab-button"},[t("i",{staticClass:"monstericon-user"}),t("span",[s._v("Sessions")])]),t("button",{staticClass:"monsterinsights-deactive-tab-button"},[t("i",{staticClass:"monstericon-eye"}),t("span",[s._v("Pageviews")])])])}],so=p(Xr,to,eo,!1,null,null,null,null);const E=so.exports,ro={name:"ReportTrafficOverview",components:{ReportUpsellOverlay:f,ReportTableBox:v,LiteFakeSessionChart:E},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},data(){return{text_traffic_overview:"Traffic Overview Report",text_traffic_details:"Traffic Details",fake_headers:["Channel","Sessions","Engaged Sessions","Page / Sessions","Purchase","Conversion Rate","Revenue"]}},methods:{trafficDetailsRows(){let s=[];for(let t=0;t<10;t++)s.push([l.lorem.word(),l.datatype.number(),l.datatype.number(),l.datatype.number(),l.datatype.number(),l.datatype.number(),l.datatype.number()]);return s}}};var oo=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-publishers"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_traffic_overview)}})]),e("LiteFakeSessionChart"),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.fake_headers,title:t.text_traffic_details,rows:t.trafficDetailsRows()}})],1),e("report-upsell-overlay",{attrs:{report:"traffic",level:"plus"}})],1)},io=[],ao=p(ro,oo,io,!1,null,null,null,null);const no=ao.exports,lo={name:"ReportTrafficLandingPages",components:{ReportUpsellOverlay:f,ReportTableBox:v,LiteFakeSessionChart:E},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},data(){return{text_publishers:r("Traffic Landing Pages","google-analytics-for-wordpress"),fake_headers:["Landing Page","Sessions","Engaged Sessions","Page / Sessions","Purchase","Conversion Rate","Revenue"]}},methods:{trafficDetailsRows(){let s=[];for(let t=0;t<10;t++)s.push([l.lorem.slug(4),l.datatype.number(),l.datatype.number(),l.datatype.number(),l.datatype.number(),l.datatype.number(),l.datatype.number()]);return s}}};var co=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-traffic-landing-pages"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_publishers)}})]),e("LiteFakeSessionChart"),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.fake_headers,title:t.text_publishers,rows:t.trafficDetailsRows()}})],1),e("report-upsell-overlay",{attrs:{report:"traffic_landing_pages",level:"plus"}})],1)},po=[],go=p(lo,co,po,!1,null,null,null,null);const mo=go.exports,ho={name:"ReportTrafficTechnology",components:{ReportUpsellOverlay:f,ReportOverviewPieChartApex:K},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},data(){return{text_publishers:"Traffic Technology",text_browser_breakdown:"Browser Breakdown",text_device_breakdown:"Device Breakdown"}},methods:{browserBreakdown(){let s={labels:["Chrome","Firefox","Edge"],series:[51,30,19]};return{datasets:s,values:s.series,labels:s.labels}}}};var uo=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-traffic-technology"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_publishers)}})]),e("div",{staticClass:"monsterinsights-report-row monsterinsights-report-flex"},[e("report-overview-pie-chart-apex",{attrs:{id:"browserBreakdown",chartData:t.browserBreakdown(),title:t.text_browser_breakdown}}),e("report-overview-pie-chart-apex",{attrs:{id:"deviceBreakdown",chartData:t.browserBreakdown(),title:t.text_device_breakdown}})],1),e("report-upsell-overlay",{attrs:{report:"traffic_technology",level:"plus"}})],1)},_o=[],fo=p(ho,uo,_o,!1,null,null,null,null);const vo=fo.exports,wo={name:"ReportTrafficOverview",components:{ReportUpsellOverlay:f,ReportTableBox:v,LiteFakeSessionChart:E},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},data(){return{text_publishers:r("Traffic Landing Pages","google-analytics-for-wordpress"),fake_headers:["Landing Page","Sessions","Engaged Sessions","Page / Sessions","Purchase","Conversion Rate","Revenue"]}},methods:{trafficDetailsRows(){let s=[];for(let t=0;t<10;t++)s.push([l.lorem.slug(2),l.datatype.number(),l.datatype.number(),l.datatype.number(),l.datatype.number(),l.datatype.number(),l.datatype.number()]);return s}}};var yo=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-traffic-landing-pages"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_publishers)}})]),e("LiteFakeSessionChart"),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.fake_headers,title:t.text_publishers,rows:t.trafficDetailsRows()}})],1),e("report-upsell-overlay",{attrs:{report:"traffic_campaign",level:"plus"}})],1)},bo=[],Co=p(wo,yo,bo,!1,null,null,null,null);const xo=Co.exports,Ro={name:"ReportTrafficOverview",components:{ReportUpsellOverlay:f,ReportTableBox:v,LiteFakeSessionChart:E},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},data(){return{text_publishers:r("Traffic Landing Pages","google-analytics-for-wordpress"),fake_headers:["Landing Page","Sessions","Engaged Sessions","Page / Sessions","Purchase","Conversion Rate","Revenue"]}},methods:{trafficDetailsRows(){let s=[];for(let t=0;t<10;t++)s.push([l.lorem.slug(2),l.datatype.number(),l.datatype.number(),l.datatype.number(),l.datatype.number(),l.datatype.number(),l.datatype.number()]);return s}}};var ko=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-traffic-source-medium"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_publishers)}})]),e("LiteFakeSessionChart"),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.fake_headers,title:t.text_publishers,rows:t.trafficDetailsRows()}})],1),e("report-upsell-overlay",{attrs:{report:"traffic_source_medium",level:"plus"}})],1)},$o=[],Do=p(Ro,ko,$o,!1,null,null,null,null);const Po=Do.exports,So={name:"MILiteReportTrafficSocial",components:{ReportUpsellOverlay:f,ReportTableBox:v},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},data(){return{text_social_media_report:r("Social Media Report","google-analytics-for-wordpress")}}};var To=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-traffic-social"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_social_media_report)}})]),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:[],title:t.text_social_media_report,rows:[]}})],1),e("report-upsell-overlay",{attrs:{report:"traffic_social"}})],1)},Eo=[],Mo=p(So,To,Eo,!1,null,null,null,null);const Fo=Mo.exports,Lo={name:"ReportEngagementOverview",components:{ReportUpsellOverlay:f,ReportTableBox:v},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},data(){return{text_engagement:r("Engagement Overview","google-analytics-for-wordpress"),fake_headers:["Page Titles","Visits","Avg. Duration","Bounce Rate"],text_outbound_links:r("Top Outbound Links","google-analytics-for-wordpress"),outbound_links_headers:[r("Links","google-analytics-for-wordpress"),r("Total Clicks","google-analytics-for-wordpress")],text_affiliate_links:r("Top Affiliate Links","google-analytics-for-wordpress"),affiliate_links_headers:[r("Label","google-analytics-for-wordpress"),r("Link","google-analytics-for-wordpress"),r("Total Clicks","google-analytics-for-wordpress")]}},methods:{landingPagesRows(){let s=[];for(let t=0;t<10;t++)s.push([l.lorem.sentence(5),l.datatype.number(),l.datatype.number(),l.datatype.number()]);return s},outboundLinksRows(){let s=[];for(let t=0;t<10;t++)s.push([l.internet.url(),l.datatype.number()]);return s},affiliateLinksRows(){let s=[];for(let t=0;t<10;t++)s.push([l.lorem.word(),l.internet.url(),l.datatype.number()]);return s}}};var Ao=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-engagement-overview"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_engagement)}})]),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.fake_headers,title:t.text_engagement,rows:t.landingPagesRows()}},[e("a",{staticClass:"monsterinsights-button",attrs:{slot:"button",href:"#",target:"_blank"},slot:"button"},[t._v("View Full Top Landing Pages Report")])])],1),e("div",{staticClass:"monsterinsights-report-row monsterinsights-report-flex"},[e("report-table-box",{attrs:{title:t.text_outbound_links,headers:t.outbound_links_headers,rows:t.outboundLinksRows()}},[e("a",{staticClass:"monsterinsights-button",attrs:{slot:"button",href:"#",target:"_blank"},slot:"button"},[t._v("Top Outbound Links")])]),e("report-table-box",{attrs:{title:t.text_affiliate_links,headers:t.affiliate_links_headers,rows:t.affiliateLinksRows()}},[e("a",{staticClass:"monsterinsights-button",attrs:{slot:"button",href:"#",target:"_blank"},slot:"button"},[t._v("Top Affiliate Links")])])],1),e("report-upsell-overlay",{attrs:{report:"engagement_overview",level:"plus"}})],1)},No=[],Io=p(Lo,Ao,No,!1,null,null,null,null);const Yo=Io.exports,Bo={name:"ReportEngagementPages",components:{ReportUpsellOverlay:f,ReportTableBox:v},mounted(){this.$store.commit("$_reports/ENABLE_BLUR")},data(){return{text_engagement:r("Engagement Pages","google-analytics-for-wordpress"),fake_headers:["Page Titles","Visits","Avg. Duration","Bounce Rate"]}},methods:{landingPagesRows(){let s=[];for(let t=0;t<40;t++)s.push([l.lorem.slug(5),l.datatype.number(),l.datatype.number(),l.datatype.number()]);return s}}};var Oo=function(){var t=this,e=t._self._c;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-engagement-pages"},[e("div",{staticClass:"monsterinsights-report-top"},[e("h2",{domProps:{textContent:t._s(t.text_engagement)}})]),e("div",{staticClass:"monsterinsights-report-row"},[e("report-table-box",{attrs:{headers:t.fake_headers,title:t.text_engagement,rows:t.landingPagesRows()}})],1),e("report-upsell-overlay",{attrs:{report:"engagement_pages",level:"plus"}})],1)},Uo=[],Ho=p(Bo,Oo,Uo,!1,null,null,null,null);const Vo=Ho.exports,jo={__name:"ExceptionsStatus",props:{status:{type:String,default:"false"}},setup(s){const t=s,e=L(()=>t.status!=="true");return{__sfc:!0,props:t,status:e}}};var zo=function(){var t=this,e=t._self._c,o=t._self._setupProxy;return o.status?e("svg",{attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M10 0C4.47715 0 0 4.47715 0 10C0 15.5229 4.47715 20 10 20C15.5229 20 20 15.5229 20 10C20 4.47715 15.5229 0 10 0ZM14.2908 4.68383L16.3684 6.76147L9.87915 13.252L7.81372 15.3162L5.73608 13.2385L3.63158 11.1328L5.6958 9.06858L7.8003 11.1743L14.2908 4.68383Z",fill:"#4CAF50"}})]):e("svg",{attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M10 0C4.47717 0 0 4.47717 0 10C0 15.5228 4.47717 20 10 20C15.5228 20 20 15.5228 20 10C20 4.47717 15.5228 0 10 0ZM10 2.17285C14.3228 2.17285 17.8259 5.67827 17.8259 10C17.8259 14.3218 14.3228 17.8259 10 17.8259C5.67717 17.8259 2.17407 14.3218 2.17407 10C2.17408 5.67827 5.67717 2.17285 10 2.17285ZM13.8318 5.25147L8.03588 11.0486L6.156 9.1687L4.31152 11.012L6.1914 12.8919L8.04808 14.7485L9.89137 12.9041L15.6885 7.10815L13.8318 5.25147Z",fill:"#BDBDBD"}})])},Wo=[],qo=p(jo,zo,Wo,!1,null,null,null,null);const Jo=qo.exports,Go={__name:"ExceptionsDelete",props:{exceptionId:{type:Number,required:!0}},emits:["exception-deleted"],setup(s,{emit:t}){const e=s;function o(){m.prototype.$mi_loading_toast(r("Deleting Exception","google-analytics-for-wordpress"));let i=new FormData;i.append("action","monsterinsights_exceptions_delete"),i.append("nonce",m.prototype.$mi.nonce),i.append("exception_id",e.exceptionId),A.post(m.prototype.$mi.ajax,i).then(a=>{a.data.success?t("exception-deleted"):m.prototype.$swal.close()}).catch(()=>{m.prototype.$swal.close()})}return{__sfc:!0,props:e,emit:t,onClick:o}}};var Ko=function(){var t=this,e=t._self._c,o=t._self._setupProxy;return e("a",{attrs:{href:"javascript:void(0);"},on:{click:function(i){return i.stopPropagation(),i.preventDefault(),o.onClick.apply(null,arguments)}}},[e("svg",{attrs:{width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M10.9688 2.15625H8.86133L7.99805 0.734375C7.79492 0.404297 7.33789 0.125 6.95703 0.125H4.39258C4.01172 0.125 3.55469 0.404297 3.35156 0.734375L2.48828 2.15625H0.40625C0.177734 2.15625 0 2.35938 0 2.5625V2.96875C0 3.19727 0.177734 3.375 0.40625 3.375H0.8125L1.3457 11.9824C1.37109 12.6172 1.92969 13.125 2.56445 13.125H8.78516C9.41992 13.125 9.97852 12.6172 10.0039 11.9824L10.5625 3.375H10.9688C11.1719 3.375 11.375 3.19727 11.375 2.96875V2.5625C11.375 2.35938 11.1719 2.15625 10.9688 2.15625ZM4.39258 1.34375H6.95703L7.43945 2.15625H3.91016L4.39258 1.34375ZM8.78516 11.9062H2.56445L2.03125 3.375H9.31836L8.78516 11.9062Z",fill:"#EB5757"}})]),e("span",[t._v("Delete")])])},Zo=[],Qo=p(Go,Ko,Zo,!1,null,null,null,null);const Xo=Qo.exports,ti={__name:"ExceptionsTable",props:{tableRows:{type:Array,required:!0},pagination:{type:Object,default:()=>({})},perPage:{type:String,required:!0}},emits:["per-page-change"],setup(s,{emit:t}){const e=s,o=r("Category","google-analytics-for-wordpress"),i=r("Time","google-analytics-for-wordpress"),a=r("Recurring","google-analytics-for-wordpress"),n=r("Description","google-analytics-for-wordpress"),g=r("Action","google-analytics-for-wordpress"),c=r("No data currently for the report.","google-analytics-for-wordpress"),_=r("Items per page:","google-analytics-for-wordpress"),u=L(()=>e.tableRows),b=L(()=>e.pagination),w=it(e.perPage),C=[20,50,100,200,500];function x(k){t("per-page-change",k.target.value)}return{__sfc:!0,text_category:o,text_time:i,text_resolved:a,text_description:n,text_action:g,text_empty:c,text_number_of_items:_,props:e,emit:t,tableRows:u,tablePagination:b,itemsPerPage:w,itemsPerPageOptions:C,onItemsPerPageChange:x,ExceptionsStatus:Jo,ExceptionsDelete:Xo,Pagination:X}}};var ei=function(){var t=this,e=t._self._c,o=t._self._setupProxy;return e("div",{staticClass:"monsterinsights-table-box"},[o.tableRows.length>0?e("div",{staticClass:"monsterinsights-table-box-table"},[e("table",{staticClass:"monsterinsights-has-th-border"},[e("thead",[e("tr",[e("th",[t._v(t._s(o.text_category))]),e("th",[t._v(t._s(o.text_time))]),e("th",[t._v(t._s(o.text_resolved))]),e("th",[t._v(t._s(o.text_description))]),e("th",[t._v(t._s(o.text_action))])])]),e("tbody",t._l(o.tableRows,function(i,a){return e("tr",{key:a,staticClass:"monsterinsights-table-list-item"},[e("td",[t._v(t._s(i.category))]),e("td",[t._v(t._s(i.time))]),e("td",{staticClass:"text-align-center"},[e(o.ExceptionsStatus,{attrs:{status:String(i.resolved)}})],1),e("td",[t._v(t._s(i.description))]),e("td",{staticClass:"monsterinsights-table-exceptions-action"},[e(o.ExceptionsDelete,{attrs:{"exception-id":i.id},on:{"exception-deleted":function(n){return t.$emit("exception-deleted")}}})],1)])}),0)])]):e("div",{staticClass:"monsterinsights-table-no-data"},[e("h3",{domProps:{textContent:t._s(o.text_empty)}})]),o.tableRows.length>0?e("div",{staticClass:"monsterinsights-table-box-footer"},[e("div",{staticClass:"monsterinsights-table-box-footer-items-per-page"},[e("label",{domProps:{textContent:t._s(o.text_number_of_items)}}),e("select",{directives:[{name:"model",rawName:"v-model",value:o.itemsPerPage,expression:"itemsPerPage"}],on:{change:[function(i){var a=Array.prototype.filter.call(i.target.options,function(n){return n.selected}).map(function(n){var g="_value"in n?n._value:n.value;return g});o.itemsPerPage=i.target.multiple?a:a[0]},o.onItemsPerPageChange]}},t._l(o.itemsPerPageOptions,function(i){return e("option",{key:"option-"+i,domProps:{textContent:t._s(i)}})}),0)]),o.tablePagination.pages>1?e(o.Pagination,{attrs:{pagination:o.tablePagination},on:{"page-change":function(i){return t.$emit("page-change",i)}}}):t._e()],1):t._e()])},si=[],ri=p(ti,ei,si,!1,null,null,null,null);const oi=ri.exports,ii={__name:"monsterinsights-ExceptionsReport-Lite",setup(s){const t=$t(),e=r("Exceptions Report","google-analytics-for-wordpress");function o(){let a=[];for(let n=1;n<=10;n++)a.push({category:"eCommerce",time:l.date.past(),resolved:!1,description:l.lorem.sentence(5),id:n});return a}at(()=>{t.commit("$_reports/ENABLE_BLUR")});function i(){return m.prototype.$isPro()?m.prototype.$getAgencyUpgradeUrl("reports","exceptions"):null}return{__sfc:!0,store:t,text_main_heading:e,reportData:o,getUpgradeHref:i,ExceptionsTable:oi,ReportUpsellOverlay:f}}};var ai=function(){var t=this,e=t._self._c,o=t._self._setupProxy;return e("main",{staticClass:"monsterinsights-report monsterinsights-report-exceptions"},[e("div",{staticClass:"monsterinsights-report-top monsterinsights-report-exceptions-top"},[e("h2",{domProps:{textContent:t._s(o.text_main_heading)}})]),e("div",{staticClass:"monsterinsights-report-row monsterinsights-report-table-wrapper"},[e(o.ExceptionsTable,{attrs:{"table-rows":o.reportData(),pagination:{}}})],1),e(o.ReportUpsellOverlay,{attrs:{report:"exceptions","upgrade-href":o.getUpgradeHref(),"is-agency":!0}})],1)},ni=[],li=p(ii,ai,ni,!1,null,null,null,null);const ci=li.exports;let tt={routes:[{path:"*",redirect:"/"},{path:"/",name:"overview",component:Je,meta:{title:r("Overview Report","google-analytics-for-wordpress")}},{path:"/publishers",name:"publisher",component:Yo,meta:{title:r("Engagement Overview Report","google-analytics-for-wordpress")}},{path:"/publishers-pages",name:"engagement_pages",component:Vo,meta:{title:r("Pages Report","google-analytics-for-wordpress")}},{path:"/ecommerce",name:"ecommerce",component:rs,meta:{title:r("eCommerce Report","google-analytics-for-wordpress")}},{path:"/ecommerce-coupons",name:"ecommerce_coupons",component:ls,meta:{title:r("eCommerce Coupons Report","google-analytics-for-wordpress")}},{path:"/ecommerce-funnel",name:"ecommerce_funnel",component:ms,meta:{title:r("eCommerce Funnel Report","google-analytics-for-wordpress")}},{path:"/search-console",name:"queries",component:vs,meta:{title:r("Search Console Report","google-analytics-for-wordpress")}},{path:"/dimensions",name:"dimensions",component:xs,meta:{title:r("Dimensions Report","google-analytics-for-wordpress")}},{path:"/forms",name:"forms",component:Ps,meta:{title:r("Forms Report","google-analytics-for-wordpress")}},{path:"/real-time",name:"realtime",component:Fs,meta:{title:r("Real-Time Report","google-analytics-for-wordpress")}},{path:"/site-speed",name:"sitespeed",component:wr,meta:{title:r("Site Speed Report","google-analytics-for-wordpress")}},{path:"/media",name:"media",component:Fr,meta:{title:r("Media Report","google-analytics-for-wordpress")}},{path:"/user-journey-report",name:"user-journey-report",component:Qr},{path:"/traffic-overview",name:"traffic_overview",component:no,meta:{title:r("Traffic Overview","google-analytics-for-wordpress")}},{path:"/traffic-landing-pages",name:"traffic_landing_pages",component:mo,meta:{title:r("Top Landing Pages","google-analytics-for-wordpress")}},{path:"/traffic-technology",name:"traffic_technology",component:vo,meta:{title:r("Technology","google-analytics-for-wordpress")}},{path:"/traffic-campaign",name:"traffic_campaign",component:xo,meta:{title:r("Campaigns","google-analytics-for-wordpress")}},{path:"/traffic-source-medium",name:"traffic_source_medium",component:Po,meta:{title:r("Source / Medium","google-analytics-for-wordpress")}},{path:"/traffic-social",name:"traffic_social",component:Fo,meta:{title:r("Social","google-analytics-for-wordpress")}},{path:"/exceptions",name:"exceptions",component:ci,meta:{title:r("Exceptions","google-analytics-for-wordpress")}}]};window.monsterinsights.yearinreview.show_report&&tt.routes.push({path:"/year-in-review",name:"yearinreview",component:hr,meta:{title:r("Year in Review","google-analytics-for-wordpress")}});const pi=new z(tt),di={name:"ReportNavigationSubmenu",props:{menu_id:String,items:Array,submenu_index:Number},inject:["sharedState"],computed:{active(){return this.sharedState.active==this.submenu_index}},methods:{closeMenu(){this.sharedState=null}}};var gi=function(){var t=this,e=t._self._c;return t.active?e("ul",{staticClass:"submenu"},t._l(t.items,function(o,i){return e("li",{key:t.menu_id+i},[e("router-link",{attrs:{to:o.to},on:{click:function(a){return t.closeMenu()}}},[e("span",{staticClass:"submenu_title"},[t._v(t._s(o.label))]),e("span",{staticClass:"submenu_text"},[t._v(t._s(o.description))])])],1)}),0):t._e()},mi=[],hi=p(di,gi,mi,!1,null,null,null,null);const ui=hi.exports,_i={name:"ReportNavigationMenu",components:{ReportNavigationSubmenu:ui},mixins:[nt],props:{menu_id:String,menu_data:Array,nav_class:String,route_title:String,with_arrows:{default:!1,type:Boolean}},provide(){return{sharedState:this.sharedState}},data(){return{sharedState:{active:null}}},methods:{hasActiveChild(s){return s.length==0?!1:s.find(t=>t.to==this.$route.path)},itemClasses(s){return this.hasActiveChild(s.children)?"active":""},menuToggle(s){this.sharedState.active!=s?this.sharedState.active=s:this.sharedState.active=null},closeMenu(){this.sharedState.active=null}}};var fi=function(){var t=this,e=t._self._c;return e("div",[e("ul",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:t.closeMenu,expression:"closeMenu"}],class:t.nav_class},[t.with_arrows?e("li",{staticClass:"dashicons-before dashicons-arrow-left-alt2",attrs:{"data-direction":"left"}}):t._e(),t._l(t.menu_data,function(o,i){return e("li",{key:t.menu_id+i},[o.children.length==0?e("router-link",{class:o.class,attrs:{to:o.to},nativeOn:{click:function(a){return t.closeMenu()}}},[t._v(" "+t._s(o.label)+" ")]):e("div",{class:t.itemClasses(o),on:{click:function(a){return t.menuToggle(i)}}},[t._t("menuToggler",function(){return[e("button",[t._v(" "+t._s(o.label)+" "),e("span",{staticClass:"caret"},[e("svg",{attrs:{width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M9 1L5 5L1 1",stroke:"#8EA4B4","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])])])]}),e("ReportNavigationSubmenu",{attrs:{items:o.children,menu_id:t.menu_id,submenu_index:i}})],2)],1)}),t.with_arrows?e("li",{staticClass:"dashicons-before dashicons-arrow-right-alt2",attrs:{"data-direction":"right"}}):t._e()],2)])},vi=[],wi=p(_i,fi,vi,!1,null,null,null,null);const yi=wi.exports,bi={MENU:[{id:"overview",label:r("Overview","google-analytics-for-wordpress"),to:"/",children:[],class:"monsterinsights-navigation-tab-link"},{id:"traffic",label:r("Traffic","google-analytics-for-wordpress"),children:[{label:r("Overview","google-analytics-for-wordpress"),to:"/traffic-overview",children:[],class:"monsterinsights-navigation-submenu-link",description:"See how customers find your website."},{label:r("Technology","google-analytics-for-wordpress"),to:"/traffic-technology",children:[],class:"monsterinsights-navigation-submenu-link",description:r("Uncover the devices and browsers your visitors are utilizing.","google-analytics-for-wordpress")},{label:r("Landing Page Details","google-analytics-for-wordpress"),to:"/traffic-landing-pages",children:[],class:"monsterinsights-navigation-submenu-link",description:r("See the first page visitors land when visiting your website.","google-analytics-for-wordpress")},{label:r("Campaigns","google-analytics-for-wordpress"),to:"/traffic-campaign",children:[],class:"monsterinsights-navigation-submenu-link",description:r("Easily measure the effectiveness of your marketing efforts.","google-analytics-for-wordpress")},{label:r("Source / Medium","google-analytics-for-wordpress"),to:"/traffic-source-medium",children:[],class:"monsterinsights-navigation-submenu-link",description:r("Details about referring traffic to your website.","google-analytics-for-wordpress")},{label:r("Social","google-analytics-for-wordpress"),to:"/traffic-social",children:[],class:"monsterinsights-navigation-submenu-link",description:r("Details about social traffic to your website.","google-analytics-for-wordpress")}],class:"monsterinsights-navigation-tab-link"},{id:"Publishers",label:r("Publishers","google-analytics-for-wordpress"),children:[{label:r("Overview","google-analytics-for-wordpress"),to:"/publishers",children:[],class:"monsterinsights-navigation-submenu-link",description:"See how visitors interact with your website."},{label:r("Pages Report","google-analytics-for-wordpress"),to:"/publishers-pages",children:[],class:"monsterinsights-navigation-submenu-link",description:r("The most popular pages on your website.","google-analytics-for-wordpress")}],class:"monsterinsights-navigation-tab-link"},{id:"search-console",label:r("Search Console","google-analytics-for-wordpress"),to:"search-console",children:[],class:"monsterinsights-navigation-tab-link"},{id:"ecommerce",label:r("eCommerce","google-analytics-for-wordpress"),children:[{label:r("Overview","google-analytics-for-wordpress"),to:"/ecommerce",children:[],class:"monsterinsights-navigation-submenu-link",description:"See how your store is performing."},{label:r("Coupons","google-analytics-for-wordpress"),to:"/ecommerce-coupons",children:[],class:"monsterinsights-navigation-submenu-link",description:r("See the coupons and discounts being used on your website.","google-analytics-for-wordpress")},{label:r("Funnel","google-analytics-for-wordpress"),to:"/ecommerce-funnel",children:[],class:"monsterinsights-navigation-submenu-link",description:r("Visually measure how customers convert in your store.","google-analytics-for-wordpress")}],class:"monsterinsights-navigation-tab-link"},{id:"dimensions",label:r("Dimensions","google-analytics-for-wordpress"),to:"/dimensions",children:[],class:"monsterinsights-navigation-tab-link"},{id:"forms",label:r("Forms","google-analytics-for-wordpress"),to:"/forms",children:[],class:"monsterinsights-navigation-tab-link"},{id:"realtime",label:r("Realtime ","google-analytics-for-wordpress"),to:"/real-time",children:[],class:"monsterinsights-navigation-tab-link"},{id:"site-speed",label:r("Site Speed","google-analytics-for-wordpress"),to:"/site-speed",children:[],class:"monsterinsights-navigation-tab-link"},{id:"media",label:r("Media","google-analytics-for-wordpress"),to:"/media",children:[],class:"monsterinsights-navigation-tab-link"},{id:"exceptions",label:r("Exceptions","google-analytics-for-wordpress"),to:"/exceptions",children:[],class:"monsterinsights-navigation-tab-link"}]},Ci=null,xi=null;var Ri=p(bi,Ci,xi,!1,null,null,null,null);const ki=Ri.exports,H=document.querySelector('a.current[href="admin.php?page=monsterinsights_reports"]'),S=document.querySelector('[href*="monsterinsights_reports#/user-journey-report"]'),$i={name:"ReportsNavigation",components:{ReportNavigationMenu:yi,UserJourneyNavigation:wt},data(){return{menu_id:"monsterinsights-top-menu",nav_open:!1}},computed:{...y({addons:"$_addons/addons",license:"$_license/license",license_network:"$_license/license_network",yearinreview_data:"$_reports/yearinreview_data"}),menuData(){let s=ki.MENU;const t=s.find(e=>e.to==="year-in-review");return this.isYearInReviewVisible()&&typeof t!="object"&&s.push({label:this.textYearInReview,to:"year-in-review",children:[],class:"monsterinsights-navigation-tab-link year-in-review"}),s},textYearInReview(){return d(r("%s Year in Review","google-analytics-for-wordpress"),this.yearinreview_data.report_year)},routeTitle(){return this.$route.meta.title?this.$route.meta.title:!1},navClass(){let s="monsterinsights-main-navigation monsterinsights-reports-navigation";return this.nav_open&&(s+=" monsterinsights-main-navigation-open"),s},buttonIconClass(){let s="monstericon-arrow";return this.nav_open&&(s+=" monstericon-down"),s},triggerClass(){let s="monsterinsights-mobile-nav-trigger";return this.nav_open&&(s+=" monsterinsights-mobile-nav-trigger-open"),s},licenseLevel(){return this.$mi.network?this.license_network.type:this.license.type},routeName(){return this.$route.name}},methods:{isAddonActive(s){return this.addons[s]?this.addons[s].active:!1},isYearInReviewVisible(){return this.yearinreview_data.show_report},sprintf:d,handleRouteChange(s){s.indexOf("user-journey-report")>=0&&(this.removeActiveClasses(),S&&S.parentElement.classList.add("current"))},removeActiveClasses(){S&&S.parentElement.classList.remove("current"),H&&H.parentElement.classList.remove("current")}},watch:{$route(s){this.handleRouteChange(s.name),this.nav_open=!1}},created(){this.handleRouteChange(this.routeName)}};var Di=function(){var t=this,e=t._self._c;return t.routeName.indexOf("user-journey-report")===0?e("nav",{class:t.navClass},[e("user-journey-navigation")],1):e("nav",[e("button",{class:t.triggerClass,on:{click:function(o){t.nav_open=!t.nav_open}}},[t.routeTitle?e("span",{staticClass:"monsterinsights-route-title",domProps:{textContent:t._s(t.routeTitle)}}):t._e(),e("i",{class:t.buttonIconClass})]),e("ReportNavigationMenu",{class:t.navClass,attrs:{menu_id:"monsterinsights-top-menu",menu_data:t.menuData,nav_open:!1,route_title:t.routeTitle}})],1)},Pi=[],Si=p($i,Di,Pi,!1,null,null,null,null);const Ti=Si.exports,Ei={name:"ReportNoAuth",data(){return{text_no_auth:r("You must connect with MonsterInsights before you can view reports.","google-analytics-for-wordpress"),text_auth_label:r("MonsterInsights makes it effortless for you to connect your site with Google Analytics and see reports right here in the WordPress dashboard.","google-analytics-for-wordpress"),text_wizard:r("Launch Setup Wizard","google-analytics-for-wordpress"),text_ask_webmaster:r("Please ask your webmaster to connect MonsterInsights to Google Analytics.","google-analytics-for-wordpress"),wizard_url:this.$mi.wizard_url,update_settings:this.$mi.update_settings}}};var Mi=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("div",{staticClass:"monsterinsights-settings-input monsterinsights-settings-input-authenticate"},[e("span",{staticClass:"monsterinsights-dark",domProps:{textContent:t._s(t.text_auth_label)}}),t.update_settings?e("div",[e("a",{staticClass:"monsterinsights-button-alt monsterinsights-button",attrs:{slot:"before_connect",href:t.wizard_url},domProps:{textContent:t._s(t.text_wizard)},slot:"before_connect"})]):e("div",[e("p",{staticClass:"monsterinsights-dark"},[e("strong",{domProps:{textContent:t._s(t.text_ask_webmaster)}})])])])])},Fi=[],Li=p(Ei,Mi,Fi,!1,null,null,null,null);const Ai=Li.exports,Ni={name:"ModuleReports",router:pi,components:{TheQuickLinks:yt,ReportReAuth:ut,ReportNoAuth:Ai,TheAppNotices:bt,ReportsNavigation:Ti,TheAppNavigation:Ct,TheAppHeader:xt,Notifications:Rt},computed:{...y({blocked:"$_app/blocked",blur:"$_reports/blur",noauth:"$_reports/noauth",reauth:"$_reports/reauth",isLoaded:"$_reports/isLoaded"}),route(){return this.$route.name},mainClass(){let s="monsterinsights-admin-page monsterinsights-reports-page";return this.blur&&(s+=" monsterinsights-blur"),s}},beforeCreate(){const s="$_reports";s in this.$store._modules.root._children||this.$store.registerModule(s,ht)},created(){this.updateSelectedReport(this.route),this.$store.dispatch("$_notifications/getNotifications")},watch:{$route(s){this.updateSelectedReport(s.name)}},methods:{updateSelectedReport(s){this.$mi.authed||(this.$store.commit("$_reports/ENABLE_BLUR"),this.$store.commit("$_reports/ENABLE_NOAUTH")),this.$store.commit("$_reports/UPDATE_ACTIVE_REPORT",s)}}};var Ii=function(){var t=this,e=t._self._c;return e("div",{class:t.mainClass},[e("the-app-header",[e("Notifications")],1),e("the-app-navigation",[e("reports-navigation")],1),e("the-app-notices"),e("router-view"),t.blocked?e("div",{staticClass:"monsterinsights-blocked"}):t._e(),t.noauth?e("report-no-auth"):t._e(),t.reauth?e("report-re-auth"):t._e(),e("the-quick-links")],1)},Yi=[],Bi=p(Ni,Ii,Yi,!1,null,null,null,null);const Oi=Bi.exports,Ui={install(s){s.prototype.$miOverviewTooltips=function(t){if(!t.title)return document.querySelectorAll(".monsterinsights-line-chart-tooltip").forEach(function(C){C.style.opacity=0}),!1;let e=t.title[0],o=t.title[1],i=parseInt(t.title[2]),a=t.title[3],n=t.title[4],g=t.title[5]?t.title[5]:[],c=document.getElementById("monsterinsights-chartjs-line-"+n+"-tooltip");if(c===null&&(c=document.createElement("div"),document.body.appendChild(c),c.setAttribute("id","monsterinsights-chartjs-line-"+n+"-tooltip"),c.classList.add("monsterinsights-line-chart-tooltip")),!t.opacity){c.style.opacity=0;return}c.classList.remove("above"),c.classList.remove("below"),c.classList.remove("no-transform"),t.yAlign?c.classList.add(t.yAlign):c.classList.add("no-transform");let _="";i===0?_+="0%":i>0?_+='<span class="monsterinsights-green"><span class="monsterinsights-arrow monsterinsights-up"></span>'+i+"%</span>":_+='<span class="monsterinsights-red"><span class="monsterinsights-arrow monsterinsights-down"></span>'+Math.abs(i)+"%</span>";let u='<div class="monsterinsights-reports-overview-datagraph-tooltip-container monsterinsights-reports-tooltip">';u+='<div class="monsterinsights-reports-overview-datagraph-tooltip-title">'+e+"</div>",u+='<div class="monsterinsights-reports-overview-datagraph-tooltip-number">'+o+"</div>",u+='<div class="monsterinsights-reports-overview-datagraph-tooltip-descriptor">'+a+"</div>",u+='<div class="monsterinsights-reports-overview-datagraph-tooltip-trend">'+_+"</div>",g&&(u+="<hr>",g.forEach(w=>{w.title&&(u+=w.title+"<br>")})),u+="</div>",c.innerHTML=u;const b=this._chart.canvas.getBoundingClientRect();c.style.opacity="1",c.style.left=b.left+window.pageXOffset+t.x+"px",c.style.top=b.top+window.pageYOffset+t.y+"px",c.style.fontFamily="Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;",c.style.fontSize=t.fontSize,c.style.fontStyle=t._fontStyle,c.style.padding=t.yPadding+"px "+t.xPadding+"px",c.style.zIndex=99999,c.style.pointerEvents="none"},s.prototype.$miPieTooltips=function(t){if(!t.title)return document.querySelectorAll(".monsterinsights-pie-chart-tooltip").forEach(function(_){_.style.opacity=0}),!1;let e=t.title[0],o=t.title[1],i=t.title[2],a=document.getElementById("monsterinsights-chartjs-pie-"+i+"-tooltip");a===null&&(a=document.createElement("div"),document.body.appendChild(a),a.setAttribute("id","monsterinsights-chartjs-pie-"+i+"-tooltip")),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");let n='<div class="monsterinsights-reports-overview-datagraph-tooltip-container monsterinsights-reports-tooltip">';n+='<div class="monsterinsights-reports-overview-datagraph-tooltip-title">'+e+"</div>",n+='<div class="monsterinsights-reports-overview-datagraph-tooltip-number">'+o+"%</div>",n+="</div>",a.innerHTML=n;let g=0;if(t.yAlign){let c=0;t.caretHeight&&(c=t.caretHeight),t.yAlign==="above"?g=t.y-c-t.caretPadding:g=t.y+c+t.caretPadding}a.style.opacity=1,a.style.left=t.x-50+"px",a.style.top=g-40+"px",a.style.padding=t.yPadding+"px "+t.xPadding+"px",a.style.zIndex="99999"},s.prototype.$miyearInReviewTooltips=function(t){if(!t.title)return document.querySelectorAll(".monsterinsights-line-chart-tooltip").forEach(function(_){_.style.opacity=0}),!1;let e=t.title[0],o=t.title[1],i=t.title[4],a=document.getElementById("monsterinsights-chartjs-line-"+i+"-tooltip");if(a===null&&(a=document.createElement("div"),document.body.appendChild(a),a.setAttribute("id","monsterinsights-chartjs-line-"+i+"-tooltip"),a.classList.add("monsterinsights-line-chart-tooltip")),!t.opacity){a.style.opacity=0;return}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");let n='<div class="monsterinsights-reports-overview-datagraph-tooltip-container monsterinsights-reports-tooltip">';n+='<div class="monsterinsights-reports-overview-datagraph-tooltip-title">'+e+"</div>",n+='<div class="monsterinsights-reports-overview-datagraph-tooltip-number">'+o+"</div>",n+="</div>",a.innerHTML=n;const g=this._chart.canvas.getBoundingClientRect();a.style.opacity="1",a.style.left=g.left+window.pageXOffset+t.x+"px",a.style.top=g.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"},s.prototype.$mi_loading_toast=function(t,e){s.prototype.$swal({icon:"info",customClass:{container:"monsterinsights-swal"},title:t||r("Refreshing Report","google-analytics-for-wordpress"),html:e||r("Loading new report data...","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,didOpen:function(){s.prototype.$swal.showLoading()}})},s.prototype.$mi_error_toast=function(t){let{icon:e="error",customContainerClass:o="monsterinsights-swal",allowOutsideClick:i=!1,allowEscapeKey:a=!1,allowEnterKey:n=!1,title:g=r("Error","google-analytics-for-wordpress"),html:c=r("Please try again.","google-analytics-for-wordpress"),confirmButtonText:_="OK",showCancelButton:u=!1,cancelButtonText:b="Cancel",footer:w=!1,willClose:C=()=>{}}=t;return s.prototype.$swal({icon:e,customClass:{container:o},allowOutsideClick:i,allowEscapeKey:a,allowEnterKey:n,title:g,html:c,footer:w,showCancelButton:u,cancelButtonText:b,confirmButtonText:_,didOpen:function(){s.prototype.$swal.hideLoading()},willClose:C})},s.prototype.$mi_success_toast=function(t){let{toast:e=!0,position:o="top-end",showConfirmButton:i=!1,icon:a="success",timer:n=3e3,showCloseButton:g=!0,title:c=r("Settings Updated","google-analytics-for-wordpress"),showCancelButton:_=!1,confirmButtonText:u="",cancelButtonText:b="",text:w=""}=t;return s.prototype.$swal({customClass:{container:"monsterinsights-swal"},toast:e,position:o,showConfirmButton:i,icon:a,showCloseButton:g,title:c,timer:n,showCancelButton:_,confirmButtonText:u,cancelButtonText:b,text:w,showClass:{popup:""},hideClass:{popup:""}})},s.prototype.$mi_get_upsell_content=function(t){let e={};const o={overview:{mainheading:r("Publishers Report","google-analytics-for-wordpress"),title:r("Improve Your Conversion Rate With Insights Into Which Content Works Best.","google-analytics-for-wordpress"),subtitle:r("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"),features:[r("Top Landing Pages","google-analytics-for-wordpress"),r("Top Affilliate Links","google-analytics-for-wordpress"),r("Top Exit Pages","google-analytics-for-wordpress"),r("Top Download Links","google-analytics-for-wordpress"),r("Top Outbound Links","google-analytics-for-wordpress"),r("Scroll Depth","google-analytics-for-wordpress")]},publisher:{mainheading:r("Publishers Report","google-analytics-for-wordpress"),title:r("Improve Your Conversion Rate With Insights Into Which Content Works Best.","google-analytics-for-wordpress"),features:[r("Top Landing Pages","google-analytics-for-wordpress"),r("Top Affilliate Links","google-analytics-for-wordpress"),r("Top Exit Pages","google-analytics-for-wordpress"),r("Top Download Links","google-analytics-for-wordpress"),r("Top Outbound Links","google-analytics-for-wordpress"),r("Scroll Depth","google-analytics-for-wordpress")]},ecommerce:{mainheading:r("eCommerce Report","google-analytics-for-wordpress"),title:r("Increase Sales and Make More Money With Enhanced eCommerce Insights.","google-analytics-for-wordpress"),features:[r("10+ eCommerce Integrations","google-analytics-for-wordpress"),r("Average Order Value","google-analytics-for-wordpress"),r("Total Revenue","google-analytics-for-wordpress"),r("Sessions to Purchase","google-analytics-for-wordpress"),r("Top Conversion Sources","google-analytics-for-wordpress"),r("Top Products","google-analytics-for-wordpress"),r("Number of Transactions","google-analytics-for-wordpress"),r("Time to Purchase","google-analytics-for-wordpress")]},ecommerce_product_sales:{mainheading:r("Product Sales Report","google-analytics-for-wordpress"),title:r("See which products are the most popular with your customers.","google-analytics-for-wordpress"),features:[r("Products","google-analytics-for-wordpress"),r("Quantity Counts","google-analytics-for-wordpress"),r("Easy Filtering","google-analytics-for-wordpress"),r("PDF Exporting","google-analytics-for-wordpress")]},ecommerce_funnel:{mainheading:r("eCommerce Funnel Report","google-analytics-for-wordpress"),title:r("Visually see how customers move through your eCommerce website to make a purchase.","google-analytics-for-wordpress"),features:[r("Step by Step Funnel View","google-analytics-for-wordpress"),r("Conversion Rates","google-analytics-for-wordpress"),r("Breakdowns by Devices","google-analytics-for-wordpress"),r("Abandonment Rates","google-analytics-for-wordpress"),r("Breakdowns by Channel","google-analytics-for-wordpress"),r("Date Picker","google-analytics-for-wordpress")]},ecommerce_coupons:{mainheading:r("Coupon Report","google-analytics-for-wordpress"),title:r("Learn which coupons are generating the most sales for your store.","google-analytics-for-wordpress"),features:[r("Coupons","google-analytics-for-wordpress"),r("Average Order Value","google-analytics-for-wordpress"),r("Total Revenue","google-analytics-for-wordpress"),r("Sessions to Purchase","google-analytics-for-wordpress"),r("Top Conversion Sources","google-analytics-for-wordpress"),r("Top Products","google-analytics-for-wordpress"),r("Number of Transactions","google-analytics-for-wordpress"),r("Time to Purchase","google-analytics-for-wordpress")]},dimensions:{mainheading:r("Dimensions Report","google-analytics-for-wordpress"),title:r("Increase Engagement and Unlock New Insights About Your Site.","google-analytics-for-wordpress"),features:[r("Author Tracking","google-analytics-for-wordpress"),r("User ID Tracking","google-analytics-for-wordpress"),r("Post Types","google-analytics-for-wordpress"),r("Tag Tracking","google-analytics-for-wordpress"),r("Categories","google-analytics-for-wordpress"),r("SEO Scores","google-analytics-for-wordpress"),r("Publish Times","google-analytics-for-wordpress"),r("Focus Keywords","google-analytics-for-wordpress")]},forms:{mainheading:r("Forms Report","google-analytics-for-wordpress"),title:r("Track Every Type of Web Form and Gain Visibility Into Your Customer Journey.","google-analytics-for-wordpress"),columns:1,features:[r("Conversion Counts","google-analytics-for-wordpress"),r("Impression Counts","google-analytics-for-wordpress"),r("Conversion Rates","google-analytics-for-wordpress")]},queries:{mainheading:r("Search Console Report","google-analytics-for-wordpress"),title:r("See Exactly How Visitors Find Your Website From Google.","google-analytics-for-wordpress"),columns:1,features:[r("Top Google Search Terms","google-analytics-for-wordpress"),r("Number of Clicks","google-analytics-for-wordpress"),r("Click-through Ratio","google-analytics-for-wordpress"),r("Average Results Position","google-analytics-for-wordpress")]},realtime:{mainheading:r("Realtime Report","google-analytics-for-wordpress"),title:r("See Who And What is Happening on Your Website in Realtime.","google-analytics-for-wordpress"),features:[r("Top Page Views","google-analytics-for-wordpress"),r("Current Active Users","google-analytics-for-wordpress"),r("Top Referral Sources","google-analytics-for-wordpress"),r("Pageviews Per Minute","google-analytics-for-wordpress"),r("Top Countries","google-analytics-for-wordpress"),r("Top Cities","google-analytics-for-wordpress")]},sitespeed:{mainheading:r("Site Speed Report","google-analytics-for-wordpress"),title:r("Improve Your User Experience and Improve Search Engine Rankings.","google-analytics-for-wordpress"),features:[r("Overall Site Speed Score","google-analytics-for-wordpress"),r("Server Response Times","google-analytics-for-wordpress"),r("Mobile and Desktop Scores","google-analytics-for-wordpress"),r("First Contentful Paint","google-analytics-for-wordpress"),r("Automatic Recommendations","google-analytics-for-wordpress"),r("Total Blocking Time","google-analytics-for-wordpress"),r("On-Demand Audits","google-analytics-for-wordpress"),r("Time to Interactive","google-analytics-for-wordpress")]},media:{mainheading:r("Media Report","google-analytics-for-wordpress"),title:r("Easily See Which Videos Are Most Popular.","google-analytics-for-wordpress"),features:[r("Videos Plays, Average Duration, and Completions","google-analytics-for-wordpress"),r("Works with YouTube, Vimeo, and HTML 5 Videos","google-analytics-for-wordpress"),r("Compare stats over time","google-analytics-for-wordpress")]},userjourney:{mainheading:r("User Journey Report","google-analytics-for-wordpress"),title:r("See the exact steps your customers took to purchase, and how they arrived at your website.","google-analytics-for-wordpress"),features:[r("Step-by-Step Purchase Paths","google-analytics-for-wordpress"),r("Purchase Dates","google-analytics-for-wordpress"),r("Campaign Filtering","google-analytics-for-wordpress"),r("Order Totals","google-analytics-for-wordpress"),r("Medium & Source Filtering","google-analytics-for-wordpress"),r("Average Steps to Purchase","google-analytics-for-wordpress")]},traffic:{mainheading:r("Traffic Report","google-analytics-for-wordpress"),title:r("Learn how visitors arrive to your website and which are the most engaged or profitable.","google-analytics-for-wordpress"),features:[r("Channel Breakdowns","google-analytics-for-wordpress"),r("Session Counts","google-analytics-for-wordpress"),r("Pages/Session","google-analytics-for-wordpress"),r("Conversion Rate","google-analytics-for-wordpress"),r("Revenue","google-analytics-for-wordpress"),r("Engaged Sessions","google-analytics-for-wordpress")]},traffic_landing_pages:{mainheading:r("Landing Page Report","google-analytics-for-wordpress"),title:r("Find out which pages are making your first impression.","google-analytics-for-wordpress"),features:[r("Page Name","google-analytics-for-wordpress"),r("Pages/Session","google-analytics-for-wordpress"),r("Sessions","google-analytics-for-wordpress"),r("Purchases","google-analytics-for-wordpress"),r("Session Counts","google-analytics-for-wordpress"),r("Conversion Rates","google-analytics-for-wordpress")]},traffic_technology:{mainheading:r("Technology Report","google-analytics-for-wordpress"),title:r("Optimize your website for your top devices and browsers.","google-analytics-for-wordpress"),features:[r("Browser Names","google-analytics-for-wordpress"),r("Device Types","google-analytics-for-wordpress"),r("Export to PDF","google-analytics-for-wordpress"),r("Date Filtering","google-analytics-for-wordpress")]},traffic_campaign:{mainheading:r("Campaigns Report","google-analytics-for-wordpress"),title:r("Measure how effective your marketing campaigns are performing.","google-analytics-for-wordpress"),features:[r("Campaign Names","google-analytics-for-wordpress"),r("Easy Filtering","google-analytics-for-wordpress"),r("Pages / Session","google-analytics-for-wordpress"),r("Purchases","google-analytics-for-wordpress"),r("eCommerce Conversion Rates","google-analytics-for-wordpress"),r("Revenue","google-analytics-for-wordpress")]},traffic_source_medium:{mainheading:r("Source and Medium Report","google-analytics-for-wordpress"),title:r("Uncover which traffic sources are creating engagement and sales from your website.","google-analytics-for-wordpress"),features:[r("Source Name","google-analytics-for-wordpress"),r("Pages / Sessions","google-analytics-for-wordpress"),r("Session Counts","google-analytics-for-wordpress"),r("Purchases","google-analytics-for-wordpress"),r("Easy Filtering","google-analytics-for-wordpress"),r("Conversion Rates","google-analytics-for-wordpress")]},engagement_overview:{mainheading:r("Engagement Report","google-analytics-for-wordpress"),title:r("Improve Your Conversion Rate With Insights Into Which Content Works Best.","google-analytics-for-wordpress"),features:[r("Top Landing Pages","google-analytics-for-wordpress"),r("Top Affilliate Links","google-analytics-for-wordpress"),r("Top Exit Pages","google-analytics-for-wordpress"),r("Top Download Links","google-analytics-for-wordpress"),r("Top Outbound Links","google-analytics-for-wordpress"),r("Scroll Depth","google-analytics-for-wordpress")]},engagement_pages:{mainheading:r("Pages Report","google-analytics-for-wordpress"),title:r("View the most popular pages on your website.","google-analytics-for-wordpress"),features:[r("Page Name","google-analytics-for-wordpress"),r("New Sessions","google-analytics-for-wordpress"),r("Sessions","google-analytics-for-wordpress"),r("Bounce Rate","google-analytics-for-wordpress"),r("Engaged Sessions","google-analytics-for-wordpress"),r("Exits","google-analytics-for-wordpress")]},traffic_social:{mainheading:r("Social Media Report","google-analytics-for-wordpress"),title:r("See Which Social Media Networks are Making You Money.","google-analytics-for-wordpress"),features:[r("Social Networks","google-analytics-for-wordpress"),r("Sessions","google-analytics-for-wordpress"),r("Bounce Rate","google-analytics-for-wordpress"),r("Purchases","google-analytics-for-wordpress"),r("Revenue","google-analytics-for-wordpress"),r("Conversion Rate","google-analytics-for-wordpress")]},exceptions:{mainheading:r("Exceptions Report","google-analytics-for-wordpress"),title:r("Be Notified About Important Website Events","google-analytics-for-wordpress"),features:[r("Traffic Changes","google-analytics-for-wordpress"),r("Conversion Rate Changes","google-analytics-for-wordpress"),r("Revenue Changes","google-analytics-for-wordpress"),r("Landing Page Changes","google-analytics-for-wordpress"),r("Engagement Rates","google-analytics-for-wordpress"),r("Email Notifications","google-analytics-for-wordpress"),r("Campaign Alerts","google-analytics-for-wordpress"),r("Site Notes Integration","google-analytics-for-wordpress")]}};return o[t]&&(e=o[t]),e},s.prototype.$mi_intervals=function(){return _t}}},Hi={install(s){s.mixin({methods:{tablePrepareColumnItems(t){let e=[];return Array.isArray(t)&&t.forEach(o=>{Array.isArray(o)&&o.forEach((i,a)=>{!this.date.compareReport&&a>0||e.push(i)})}),e},tableIsCurrentColumn(t){return!this.date.compareReport||this.compareSingleColumns.includes(t)?!0:(t-=this.compareSingleColumns.length,this.hasCompareChangeColumn?t%3===0:t%2===0)},tableIsPreviousColumn(t){return this.date.compareReport?(t-=this.compareSingleColumns.length,this.hasCompareChangeColumn?[1,4,7,10,13,16].includes(t):[1,3,5,7,9,11,13].includes(t)):!1},tableIsChangeColumn(t,e){return t===""||!this.hasCompareChangeColumn||!this.date.compareReport?!1:(e-=this.compareSingleColumns.length,[2,5,8,11,14,17].includes(e))},tableCompareChange(t,e){let o=Number(t),i=o>0?"up":"down",a=o>0?"green":"red";return this.compareChangeOpposite.includes(e)&&(a=o<=0?"green":"red"),'<span class="monsterinsights-arrow monsterinsights-'+i+" monsterinsights-"+a+'"></span> '+Math.abs(o)+"%"},tableFormatRowData(t,e=null,o=null){if(Array.isArray(t))return t.map((i,a)=>{if(a==2)return i;let n=o?o(i):i;return e&&(n+=e),n});if(typeof t<"u"){let i=o?o(t):t;return e&&(i+=e),[i]}return["--"]}}})}};const V=document.getElementById("monsterinsights-reports");m.config.productionTip=!1;V&&(lt({ctrl:!0}),m.use(z),m.use(ct),m.use(pt,{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"}),m.use(B),m.use(Ui),m.use(Hi),m.use(B),m.use(kt,{componentPrefix:"monsterinsights",classPrefix:"monsterinsights",textDomain:"google-analytics-for-wordpress"}),dt(window.monsterinsights.translations,"google-analytics-for-wordpress"),new m({store:$,mounted:()=>{$.dispatch("$_app/init"),$.dispatch("$_addons/getAddons"),$.dispatch("$_settings/getSettings"),m.prototype.$isPro()&&$.dispatch("$_license/getLicense")},render:s=>s(Oi)}).$mount(V));
Save
Cancel