/
var
/
www
/
barefootlaw.org
/
wp-content
/
plugins
/
google-analytics-for-wordpress
/
lite
/
assets
/
vue
/
js
/
Upload File
HOME
(function(t){function e(e){for(var o,r,a=e[0],l=e[1],c=e[2],d=0,f=[];d<a.length;d++)r=a[d],Object.prototype.hasOwnProperty.call(s,r)&&s[r]&&f.push(s[r][0]),s[r]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(t[o]=l[o]);u&&u(e);while(f.length)f.shift()();return i.push.apply(i,c||[]),n()}function n(){for(var t,e=0;e<i.length;e++){for(var n=i[e],o=!0,a=1;a<n.length;a++){var l=n[a];0!==s[l]&&(o=!1)}o&&(i.splice(e--,1),t=r(r.s=n[0]))}return t}var o={},s={frontend:0},i=[];function r(e){if(o[e])return o[e].exports;var n=o[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=t,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="";var a=window["monsterinsightsjsonp"]=window["monsterinsightsjsonp"]||[],l=a.push.bind(a);a.push=e,a=a.slice();for(var c=0;c<a.length;c++)e(a[c]);var u=l;i.push([4,"chunk-frontend-vendors","chunk-common"]),n()})({4:function(t,e,n){t.exports=n("d67f")},d67f:function(t,e,n){"use strict";n.r(e);n("e260"),n("e6cf"),n("cca6"),n("a79d");var o=function(){var t=this,e=t._self._c;return e("li",{staticClass:"monsterinsights-adminbar-menu-item",attrs:{id:"wp-admin-bar-monsterinsights_frontend_button"}},[e("div",{class:t.toggleButtonClass,on:{click:t.toggleStatsVisibility}},[e("span",{staticClass:"ab-icon dashicons-before dashicons-chart-bar"}),e("span",{staticClass:"monsterinsights-admin-bar-handle-text",domProps:{textContent:t._s(t.text_insights)}}),t.has_notifications?e("span",{staticClass:"monsterinsights-menu-notification-indicator",domProps:{textContent:t._s(t.notifications.length)}}):t._e()]),t.statsVisible?e("div",{staticClass:"monsterinsights-frontend-stats"},[t.noauth?e("frontend-no-auth"):t.error?e("widget-report-error",{attrs:{error:t.error}}):e("frontend-stats-content"),t.loaded?t._e():e("div",{staticClass:"monsterinsights-frontend-stats-loading"},[e("span",{staticClass:"monsterinsights-frontend-spinner"})]),e("frontend-powered-by")],1):t._e()])},s=[],i=n("5530"),r=(n("d3b7"),n("bc3a")),a=n.n(r),l=n("2b0e"),c=function(t){return new Promise((function(e){var n=new FormData,o=l["a"].prototype.$mi.page_id?l["a"].prototype.$mi.page_id:window.location.pathname;n.append("action","monsterinsights_pageinsights_refresh_report"),n.append("security",l["a"].prototype.$mi.nonce),n.append("report","pageinsights"),n.append("post_id",o),n.append("json",1),a.a.post(l["a"].prototype.$mi.ajax,n).then((function(t){e(t.data)})).catch((function(e){t.dispatch("$_app/block",!1,{root:!0}),e.response}))}))},u={fetchReportData:c},d=function(t){return new Promise((function(e){t.dispatch("$_queue/add",(function(){return u.fetchReportData(t).then((function(n){"license_level"!==n.data.message?n.success?(t.commit("UPDATE_REPORT_DATA",{report:"pageinsights",data:n.data}),e(!0)):(l["a"].prototype.$mi_error_toast(!1,n.data.message,n.data.footer),e(!1)):e(!1)}))}),{root:!0})}))},f={getReportData:d},p=function(t){return t.date},h=function(t){return t.pageinsights},_=function(t){return t.loaded},g=function(t){return t.error},m=function(t){return t.noauth},b={date:p,pageinsights:h,loaded:_,error:g,noauth:m},v=function(t,e){e.report&&e.data&&t[e.report]&&l["a"].set(t,e.report,e.data)},w=function(t,e){e.start&&e.end&&(l["a"].set(t.date,"start",e.start),l["a"].set(t.date,"end",e.end))},y=function(t,e){l["a"].set(t.date,"interval",e)},x=function(t,e){t.loaded=e},O=function(t,e){t.error=e},C=function(t){t.noauth=!0,t.loaded=!0},$={UPDATE_REPORT_DATA:v,UPDATE_DATE:w,UPDATE_INTERVAL:y,UPDATE_LOADED:x,SET_ERROR:O,ENABLE_NOAUTH:C},j={loaded:!1,pageinsights:{},error:!1,noauth:!1},P={namespaced:!0,state:j,actions:f,getters:b,mutations:$},E=n("561c"),A=n("2f62"),D=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-content-lite"},[e("frontend-stats-general")],1)},T=[],S=function(){var t=this,e=t._self._c;return t.overview.infobox?e("div",{staticClass:"monsterinsights-frontend-stats-inner"},[e("frontend-stats-column",{attrs:{label:t.text_insights_for,value:t.text_your_website}}),e("frontend-stats-column",{attrs:{label:t.text_sessions,value:t.overview.infobox.sessions.value}}),e("frontend-stats-column",{attrs:{label:t.text_pageviews,value:t.overview.infobox.pageviews.value}}),e("frontend-stats-column",{attrs:{label:t.text_session_duration,value:t.overview.infobox.duration.value}}),t.hasBounceData?e("frontend-stats-column",{attrs:{label:t.text_bounce_rate,value:t.overview.infobox.bounce.value}}):t._e(),!t.hasBounceData&&t.hasTotalUsersData?e("frontend-stats-column",{attrs:{label:t.text_total_users,value:t.overview.infobox.totalusers.value}}):t._e(),e("frontend-stats-column",{staticClass:"monsterinsights-frontend-column-button",attrs:{label:t.text_upsell_title}},[e("frontend-upsell")],1),e("frontend-stats-column",{staticClass:"monsterinsights-frontend-column-notifications"},[e("notifications-indicator")],1)],1):t._e()},U=[],M=function(){var t=this,e=t._self._c;return e("div",{class:t.columnClass},[t.label?e("div",{staticClass:"monsterinsights-stats-label",domProps:{textContent:t._s(t.label)}}):t._e(),t.value?e("div",{staticClass:"monsterinsights-stats-value",domProps:{innerHTML:t._s(t.value)}}):t._e(),t._t("default")],2)},R=[],F={name:"FrontendStatsColumn",props:{extraClass:{type:String,default:""},label:String,value:String},computed:{columnClass:function(){return"monsterinsights-stats-column "+this.extraClass}}},B=F,V=n("2877"),k=Object(V["a"])(B,M,R,!1,null,null,null),I=k.exports,L=function(){var t=this,e=t._self._c;return e("a",{staticClass:"monsterinsights-button",attrs:{target:"_blank",rel:"noopener",href:t.buttonLink},domProps:{textContent:t._s(t.buttonText)}})},N=[],W={name:"FrontendUpsell",data:function(){return{text_button:Object(E["a"])("Upgrade to PRO","google-analytics-for-wordpress"),is_admin:this.$mi.is_admin,text_view_reports:Object(E["a"])("View All Reports","google-analytics-for-wordpress")}},computed:{upgradeUrl:function(){return this.$getUpgradeUrl("frontend-reports","admin-bar")},reportsUrl:function(){return this.$mi.reports_url},canManageOptions:function(){return!(!this.$mi.roles_manage_options||0===this.$mi.roles_manage_options.length)},buttonText:function(){return!this.$mi.is_admin&&this.canManageOptions||this.$mi.is_admin||this.canManageOptions?this.text_button:this.text_view_reports},buttonLink:function(){return!this.$mi.is_admin&&this.canManageOptions||this.$mi.is_admin||this.canManageOptions?this.upgradeUrl:this.reportsUrl}}},z=W,H=Object(V["a"])(z,L,N,!1,null,null,null),K=H.exports,G=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-notifications-indicator"},[e("a",{attrs:{href:t.sidebar_url,title:t.text_view_notifications}},[e("svg",{attrs:{width:"35",height:"39",viewBox:"0 0 35 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M17.6898 39C20.3431 39 22.4954 36.8177 22.4954 34.125H12.8841C12.8841 36.8177 15.0364 39 17.6898 39ZM33.8706 27.5963C32.4192 26.015 29.7035 23.6361 29.7035 15.8438C29.7035 9.9252 25.6108 5.18731 20.0922 4.02492V2.4375C20.0922 1.09154 19.0164 0 17.6898 0C16.3631 0 15.2873 1.09154 15.2873 2.4375V4.02492C9.76874 5.18731 5.67602 9.9252 5.67602 15.8438C5.67602 23.6361 2.96031 26.015 1.50893 27.5963C1.05818 28.0876 0.858356 28.6749 0.862112 29.25C0.870376 30.4992 1.83721 31.6875 3.27357 31.6875H32.1059C33.5423 31.6875 34.5099 30.4992 34.5174 29.25C34.5212 28.6749 34.3213 28.0869 33.8706 27.5963Z",fill:"#393F4C"}})]),t.has_notifications?e("span",{staticClass:"monsterinsights-notifications-unread",domProps:{textContent:t._s(t.notifications.length)}}):t._e()])])},q=[],Z={name:"NotificationsIndicator",data:function(){return{text_view_notifications:Object(E["a"])("View notifications","google-analytics-for-wordpress")}},computed:Object(i["a"])(Object(i["a"])({},Object(A["b"])({notifications:"$_notifications/notifications",view_url:"$_notifications/view_url",sidebar_url:"$_notifications/sidebar_url"})),{},{has_notifications:function(){return this.notifications&&this.notifications.length>0}})},Y=Z,J=Object(V["a"])(Y,G,q,!1,null,null,null),Q=J.exports,X={name:"FrontendStatsGeneral",components:{NotificationsIndicator:Q,FrontendUpsell:K,FrontendStatsColumn:I},data:function(){return{text_insights_for:Object(E["a"])("Last 30 Days Insights for:","google-analytics-for-wordpress"),text_your_website:Object(E["a"])("Your Website","google-analytics-for-wordpress"),text_sessions:Object(E["a"])("Sessions","google-analytics-for-wordpress"),text_pageviews:Object(E["a"])("Pageviews","google-analytics-for-wordpress"),text_session_duration:Object(E["a"])("Avg. Duration","google-analytics-for-wordpress"),text_bounce_rate:Object(E["a"])("Bounce Rate","google-analytics-for-wordpress"),text_total_users:Object(E["a"])("Total Users","google-analytics-for-wordpress")}},computed:Object(i["a"])(Object(i["a"])({},Object(A["b"])({overview:"$_reports/overview",addons:"$_addons/addons"})),{},{text_upsell_title:function(){return this.$mi.is_admin||!this.is_admin&&this.$mi.roles_manage_options&&0===this.$mi.roles_manage_options.length?Object(E["a"])("More data is available","google-analytics-for-wordpress"):Object(E["a"])("Want to see page-specific stats?","google-analytics-for-wordpress")},hasBounceData:function(){return"undefined"!==typeof this.overview.infobox.bounce&&"undefined"!==typeof this.overview.infobox.bounce.value&&"ua"===this.$mi.auth_connected_type},hasTotalUsersData:function(){return"undefined"!==typeof this.overview.infobox.totalusers&&"undefined"!==typeof this.overview.infobox.totalusers.value}}),mounted:function(){var t=this;this.$mi.authed?this.$store.dispatch("$_reports/getReportData","overview").then((function(){t.$store.commit("$_frontend/UPDATE_LOADED",!0)})):this.$store.commit("$_frontend/ENABLE_NOAUTH")}},tt=X,et=Object(V["a"])(tt,S,U,!1,null,null,null),nt=et.exports,ot={name:"FrontendStatsContent",components:{FrontendStatsGeneral:nt}},st=ot,it=Object(V["a"])(st,D,T,!1,null,null,null),rt=it.exports,at=n("f284"),lt=n("d3fc"),ct=function(){var t=this,e=t._self._c;return e("a",{staticClass:"monsterinsights-powered-by",attrs:{href:t.upgrade_url},domProps:{textContent:t._s(t.text_powered_by)}})},ut=[],dt={name:"FrontendPoweredBy",data:function(){return{text_powered_by:Object(E["a"])("Powered by MonsterInsights","google-analytics-for-wordpress"),upgrade_url:this.$getUpgradeUrl("admin-bar","powered-by")}}},ft=dt,pt=Object(V["a"])(ft,ct,ut,!1,null,null,null),ht=pt.exports,_t=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("p",{domProps:{textContent:t._s(t.text_auth_label)}}),e("div",[e("a",{staticClass:"monsterinsights-wp-button monsterinsights-wp-button-primary",attrs:{href:t.wizard_url},domProps:{textContent:t._s(t.text_wizard)}}),e("a",{staticClass:"monsterinsights-wp-button",attrs:{href:t.learn_link},domProps:{textContent:t._s(t.text_learn)}})])])])},gt=[],mt={name:"FrontendNoAuth",data:function(){return{text_no_auth:Object(E["a"])("Please Setup Website Analytics to See Audience Insights","google-analytics-for-wordpress"),text_auth_label:Object(E["a"])("MonsterInsights, the #1 WordPress Analytics Plugin, helps you connect your website with Google Analytics, so you can see how people find and use your website. Over 3 million website owners use MonsterInsights to see the stats that matter and grow their business.","google-analytics-for-wordpress"),text_wizard:Object(E["a"])("Connect MonsterInsights and Setup Website Analytics","google-analytics-for-wordpress"),text_learn:Object(E["a"])("Learn More","google-analytics-for-wordpress"),wizard_url:this.$mi.wizard_url,learn_link:this.$mi.getting_started_url}}},bt=mt,vt=Object(V["a"])(bt,_t,gt,!1,null,null,null),wt=vt.exports,yt={name:"ModuleFrontendReports",components:{FrontendNoAuth:wt,FrontendPoweredBy:ht,WidgetReportError:lt["a"],FrontendStatsContent:rt},data:function(){return{statsVisible:!1,page_id:this.$mi.page_id,text_insights:Object(E["a"])("Insights","google-analytics-for-wordpress")}},created:function(){var t="$_reports";t in this.$store._modules.root._children||this.$store.registerModule(t,at["a"]);var e="$_frontend";e in this.$store._modules.root._children||this.$store.registerModule(e,P)},computed:Object(i["a"])(Object(i["a"])({},Object(A["b"])({reportdata:"$_frontend/pageinsights",loaded:"$_frontend/loaded",error:"$_frontend/error",noauth:"$_frontend/noauth"})),{},{toggleButtonClass:function(){var t="ab-item ab-empty-item monsterinsights-toggle";return this.statsVisible&&(t+=" monsterinsights-toggle-active"),t},has_notifications:function(){return this.notifications&&this.notifications.length>0}}),methods:{toggleStatsVisibility:function(){this.statsVisible=!this.statsVisible}}},xt=yt,Ot=Object(V["a"])(xt,o,s,!1,null,null,null),Ct=Ot.exports,$t=n("7460"),jt=n("6c6b"),Pt=(n("f531"),n("4360")),Et={install:function(t,e){var n=e.store;t.prototype.$mi_loading_toast=function(){},t.prototype.$mi_error_toast=function(t){var e=t,o=e.type,s=void 0===o?"error":o,i=e.customContainerClass,r=void 0===i?"monsterinsights-swal":i,a=e.allowOutsideClick,l=void 0!==a&&a,c=e.allowEscapeKey,u=void 0!==c&&c,d=e.allowEnterKey,f=void 0!==d&&d,p=e.title,h=void 0===p?Object(E["a"])("Error","google-analytics-for-wordpress"):p,_=e.html,g=void 0===_?Object(E["a"])("Please try again.","google-analytics-for-wordpress"):_,m=e.footer,b=void 0!==m&&m;t={type:s,customContainerClass:r,allowOutsideClick:l,allowEscapeKey:u,allowEnterKey:f,title:h,html:g,footer:b},n.commit("$_frontend/SET_ERROR",{title:t.title,content:t.html,footer:t.footer})},t.prototype.$swal={close:function(){}}}},At=Et;window.addEventListener("load",(function(){var t=document.getElementById("wp-admin-bar-monsterinsights_frontend_button");(l["a"].config.productionTip=!1,t)&&(Object(jt["a"])({ctrl:!0}),l["a"].use($t["a"]),l["a"].use(At,{store:Pt["a"]}),Object(E["c"])(window.monsterinsights.translations,"google-analytics-for-wordpress"),new l["a"]({store:Pt["a"],mounted:function(){window.pagenow&&"dashboard"!==window.pagenow&&Pt["a"].dispatch("$_queue/add",(function(){return Pt["a"].dispatch("$_notifications/getNotifications")}))},render:function(t){return t(Ct)}}).$mount(t))}))},f531:function(t,e,n){}});