0,"googlesitekit-visualization-tooltip--down":a<0}),'">\n\t\t\t\t
').concat(c,"
\n\t\t\t\t
").concat(s,"
\n\t\t\t
"),e[1],k[n][1]])}})),m},w=function(e){if(!e||!e.length)return null;var t=e[0].data.rows,n=[[{type:"date",label:"Day"},{type:"number",label:"Users"},{type:"number",label:"Sessions"},{type:"number",label:"Goals Completed"}]];return Object(r.each)(t,(function(e){var t=e.metrics[0].values,r=e.dimensions[0],a=l(r);n.push([a,t[0],t[1],t[4]])})),n},E=function(e){var t;return e.error&&e.error.status?function(e,t){var n="";switch(e){case"INVALID_ARGUMENT":n=Object(o.__)("Analytics module needs to be configured.","google-site-kit");break;case"UNAUTHENTICATED":n=Object(o.__)("You need to be authenticated to get this data.","google-site-kit");break;case"PERMISSION_DENIED":n=Object(o.__)("Your account does not have sufficient permission to access this data, please consult to your web administrator.","google-site-kit");break;case"RESOURCE_EXHAUSTED":n=Object(o.__)("Your account exceeded the maximum quota. Please try again later.","google-site-kit");break;case"INTERNAL":n=Object(o.__)("Unexpected internal server error occurred.","google-site-kit");break;case"BACKEND_ERROR":n=Object(o.__)("Analytics server returned unknown error. Please try again later.","google-site-kit");break;case"UNAVAILABLE":n=Object(o.__)("The service was unable to process the request. Please try again later.","google-site-kit");break;default:n=t}return n}(e.error.status,e.error.message):!!(e.code&&e.message&&(null===(t=e.data)||void 0===t?void 0:t.status))&&e.message},D=function(e){if(!e||!e.length)return!0;if(e&&e[0]&&e[0].data&&e[0].data.totals&&e[0].data.totals[0]){var t=e[0].data.totals[0].values,n=!0;return Object(r.each)(t,(function(e){0!==parseInt(e,10)&&(n=!1)})),n}return!1},S={dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:adsenseRevenue",alias:"Earnings"},{expression:"ga:adsenseECPM",alias:"Page RPM"},{expression:"ga:adsensePageImpressions",alias:"Impressions"}],orderby:[{fieldName:"ga:adsenseRevenue",sortOrder:"DESCENDING"}],limit:10},R={compareDateRanges:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"}],limit:180},N={multiDateRange:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"},{expression:"ga:pageviews",alias:"Pageviews"}],limit:10},C={multiDateRange:1,metrics:[{expression:"ga:users",alias:"Total Users"}]},P={dimensions:"ga:channelGrouping",metrics:[{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:users",alias:"Users"},{expression:"ga:newUsers",alias:"New Users"}],orderby:[{fieldName:"ga:users",sortOrder:"DESCENDING"}],limit:10},x=function(){return{dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:pageviews",alias:"Pageviews"},{expression:"ga:uniquePageviews",alias:"Unique Pageviews"},{expression:"ga:bounceRate",alias:"Bounce rate"}],orderby:[{fieldName:"ga:pageviews",sortOrder:"DESCENDING"}],limit:10}},A=function(e){var t,n,r,a,i,o,c,s,u,l;return{totalUsers:null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.totals)||void 0===r||null===(a=r[0])||void 0===a||null===(i=a.values)||void 0===i?void 0:i[0],previousTotalUsers:null==e||null===(o=e[0])||void 0===o||null===(c=o.data)||void 0===c||null===(s=c.totals)||void 0===s||null===(u=s[1])||void 0===u||null===(l=u.values)||void 0===l?void 0:l[0]}}},22:function(e,t,n){"use strict";n.d(t,"h",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"g",(function(){return u})),n.d(t,"b",(function(){return l}));var r="modules/analytics",a="account_create",i="property_create",o="profile_create",c="analyticsAccountCreate",s="analyticsSetup",u="https://www.googleapis.com/auth/analytics.provision",l="https://www.googleapis.com/auth/analytics.edit"},24:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(90),a=n.n(r),i=n(1),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.f)(i.b,{},"",Object(i.f)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(10))},244:function(e,t,n){"use strict";(function(e,t){n(1);var r=n(18),a=n(24),i=n(5),o=n(175),c=n(176),s=n(178),u=n(180),l=n(103),d=e._googlesitekitLegacyData.setup,f=Object(i.k)("notification"),g=Object(a.a)(t.createElement(o.a,null)),p=Object(a.a)(t.createElement(c.a,null)),h=Object(a.a)(t.createElement(s.a,null)),m=Object(a.a)(t.createElement(u.a,null)),b=Object(a.a)(t.createElement(l.a,null));Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",g,10),d.needReauthenticate&&Object(r.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",b,1),"authentication_success"===f||"authentication_failure"===f?Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",p,1):d.isAuthenticated&&d.isVerified&&(Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",h,1),Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.WinsNotification",m,1))}).call(this,n(15),n(10))},25:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(7),o=n.n(i),c=n(8),s=n.n(c),u=n(9),l=n.n(u),d=n(3),f=n.n(d),g=n(1),p=n(2),h=n.n(p),m=n(13),b=n.n(m);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return l()(this,n)}}var y=function(t){s()(Link,t);var n=v(Link);function Link(){return a()(this,Link),n.apply(this,arguments)}return o()(Link,[{key:"render",value:function(){var t=this.props,n=t.dangerouslySetInnerHTML,r=t.onClick,a=t.href,i=t.children,o=t.className,c=t.arrow,s=t.external,u=t.inverse,l=t.back,d=t.small,f=t.inherit,g=t.caps,p=t.danger,h=t.disabled,m=t.id,v=a&&!h,y=v?"a":"button";return e.createElement(y,{className:b()("googlesitekit-cta-link",o,{"googlesitekit-cta-link--arrow":c,"googlesitekit-cta-link--external":s,"googlesitekit-cta-link--inverse":u,"googlesitekit-cta-link--back":l,"googlesitekit-cta-link--small":d,"googlesitekit-cta-link--inherit":f,"googlesitekit-cta-link--caps":g,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":h}),onClick:r,id:m,href:v?a:void 0,target:v&&s?"_blank":void 0,rel:s?"noopener noreferrer":void 0,disabled:h,dangerouslySetInnerHTML:n},i)}}]),Link}(g.a);y.propTypes={dangerouslySetInnerHTML:h.a.shape({__html:h.a.string}),onClick:h.a.func,href:h.a.string,children:h.a.oneOfType([h.a.string.isRequired,h.a.array.isRequired]),className:h.a.string,arrow:h.a.bool,external:h.a.bool,inverse:h.a.bool,back:h.a.bool,small:h.a.bool,inherit:h.a.bool,caps:h.a.bool,danger:h.a.bool,disabled:h.a.bool},y.defaultProps={dangerouslySetInnerHTML:void 0,onClick:null,href:"",className:"",arrow:!1,external:!1,inverse:!1,back:!1,small:!1,inherit:!1,caps:!1,danger:!1,disabled:!1},t.a=y}).call(this,n(10))},265:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(7),o=n.n(i),c=n(23),s=n.n(c),u=n(8),l=n.n(u),d=n(9),f=n.n(d),g=n(3),p=n.n(g),h=n(1),m=n(13),b=n.n(m),v=n(0),y=n(18),k=n(84);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var O=function(t){l()(NotificationCounter,t);var n=_(NotificationCounter);function NotificationCounter(e){var t;return a()(this,NotificationCounter),(t=n.call(this,e)).state={count:0},t.handleIncrement=t.handleIncrement.bind(s()(t)),t.handleDecrement=t.handleDecrement.bind(s()(t)),t}return o()(NotificationCounter,[{key:"componentDidMount",value:function(){var e=this;Object(y.a)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications",(function(){Object(y.f)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications"),Object(k.c)().then((function(t){e.setState({count:t})}))})),document.addEventListener("notificationDismissed",this.handleDecrement,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("notificationDismissed",this.handleDecrement)}},{key:"handleIncrement",value:function(){this.setState(k.e)}},{key:"handleDecrement",value:function(){this.setState(k.a)}},{key:"render",value:function(){var t=Object(v.sprintf)(
/* translators: %d: the number of notifications */
Object(v._n)("%d notification","%d notifications",this.state.count,"google-site-kit"),this.state.count),n=e.createElement("span",{className:b()("googlesitekit-notifications-counter","update-plugins","count-".concat(this.state.count))},e.createElement("span",{className:"plugin-count","aria-hidden":"true"},this.state.count),e.createElement("span",{className:"screen-reader-text"},t));return Object(h.g)(n,document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"))}}]),NotificationCounter}(h.a);t.a=O}).call(this,n(10))},28:function(e,t,n){"use strict";(function(e){n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return f}));var r=n(34),a=n.n(r),i=n(16),o=n(41),c=n(60),s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem("googlesitekit_"+t,JSON.stringify(r))}},l=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem("googlesitekit_"+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date