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],_[n][1]])}})),h},E=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=u(r);n.push([a,t[0],t[1],t[4]])})),n},D=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},S=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},w={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},A={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"}]},N={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},P=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}},x=function(e){var t,n,r,a,i,o,c,s,l,u;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===(l=s[1])||void 0===l||null===(u=l.values)||void 0===u?void 0:u[0]}}},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 l})),n.d(t,"b",(function(){return u}));var r="modules/analytics",a="account_create",i="property_create",o="profile_create",c="analyticsAccountCreate",s="analyticsSetup",l="https://www.googleapis.com/auth/analytics.provision",u="https://www.googleapis.com/auth/analytics.edit"},,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))},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),l=n(9),u=n.n(l),d=n(3),g=n.n(d),f=n(1),p=n(2),m=n.n(p),h=n(13),b=n.n(h);function y(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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var v=function(t){s()(Link,t);var n=y(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,l=t.inverse,u=t.back,d=t.small,g=t.inherit,f=t.caps,p=t.danger,m=t.disabled,h=t.id,y=a&&!m,v=y?"a":"button";return e.createElement(v,{className:b()("googlesitekit-cta-link",o,{"googlesitekit-cta-link--arrow":c,"googlesitekit-cta-link--external":s,"googlesitekit-cta-link--inverse":l,"googlesitekit-cta-link--back":u,"googlesitekit-cta-link--small":d,"googlesitekit-cta-link--inherit":g,"googlesitekit-cta-link--caps":f,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":m}),onClick:r,id:h,href:y?a:void 0,target:y&&s?"_blank":void 0,rel:s?"noopener noreferrer":void 0,disabled:m,dangerouslySetInnerHTML:n},i)}}]),Link}(f.a);v.propTypes={dangerouslySetInnerHTML:m.a.shape({__html:m.a.string}),onClick:m.a.func,href:m.a.string,children:m.a.oneOfType([m.a.string.isRequired,m.a.array.isRequired]),className:m.a.string,arrow:m.a.bool,external:m.a.bool,inverse:m.a.bool,back:m.a.bool,small:m.a.bool,inherit:m.a.bool,caps:m.a.bool,danger:m.a.bool,disabled:m.a.bool},v.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=v}).call(this,n(10))},function(e,t,n){"use strict";(function(e){var r=n(90),a=n.n(r),i=n(6),o=n.n(i),c=n(7),s=n.n(c),l=n(8),u=n.n(l),d=n(9),g=n.n(d),f=n(3),p=n.n(f),m=n(1),h=n(16),b=n(18),y=n(0),v=n(5),_=n(70),k=n(71),O=n(130);function j(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 g()(this,n)}}t.a=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{inGrid:!1,fullWidth:!1,createGrid:!1},c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1},l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e){if(e&&e.error)return e.error.message?e.error.message:e.error.errors&&e.error.errors[0]&&e.error.errors[0].message?e.error.errors[0].message:Object(y.__)("Unidentified error","google-site-kit");if(e&&e.errors&&e.errors[0]&&e.errors[0].message)return e.errors[0].message;if(e&&e.error_data){var t=Object.values(e.error_data);if(t[0]&&"RateLimitExceeded"===t[0].reason)return Object(y.__)("Too many requests have been sent within a given time span. Please reload this page again in a few seconds","google-site-kit")}if(e&&e.errors){var n=Object.values(e.errors);if(n[0]&&n[0][0])return n[0][0]}return!!(e.code&&e.message&&e.data&&e.data.status)&&e.message};return function(d){u()(NewComponent,d);var g=j(NewComponent);function NewComponent(e){var t;o()(this,NewComponent),(t=g.call(this,e)).state={data:!1,zeroData:!1,errorMessage:!1},Object(b.a)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",(function(){t.setState({data:!1,errorMessage:!1,zeroData:!1})}));var r=function(e,n){var r=t.props,a=r.handleDataError,i=r.handleDataSuccess,o=n.datapoint,s=n.identifier,u=n.toState,d=l(e);d?(t.setState({errorMessage:d,errorObj:e,module:s}),a&&a(d,e)):c(e,o,n)?(a&&a(d,e),t.setState({zeroData:!0})):i&&i(),t.setState({requestDataToState:u,data:e,datapoint:o,module:s})};return Object(h.each)(n,(function(e){Array.isArray(e.context)?Object(h.each)(e.context,(function(t){Object(b.b)("googlesitekit.module".concat(t,"DataRequest"),"googlesitekit.data".concat(t),(function(t){return e.callback=function(t){r(t,e)},t.push(e),t}))})):Object(b.b)("googlesitekit.module".concat(e.context,"DataRequest"),"googlesitekit.data".concat(e.context),(function(t){return e.callback=function(t){r(t,e)},t.push(e),t}))})),t}return s()(NewComponent,[{key:"render",value:function(){var n=this.state,o=n.data,c=n.datapoint,s=n.module,l=n.zeroData,u=n.errorMessage,d=n.errorObj,g=n.requestDataToState;if(!o)return r;var f=Object(v.j)(),p=s?f[s].name:Object(y.__)("Site Kit","google-site-kit");return s&&f[s].active&&!f[s].setupComplete?Object(O.a)(s,i.inGrid,i.fullWidth,i.createGrid):u?"string"!=typeof u?u:Object(k.a)(s,u,i.inGrid,i.fullWidth,i.createGrid,d):l?Object(_.a)(p,i.inGrid,i.fullWidth,i.createGrid):e.createElement(t,a()({data:o,datapoint:c,requestDataToState:g},this.props))}}]),NewComponent}(m.a)}}).call(this,n(10))},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),l=n(9),u=n.n(l),d=n(3),g=n.n(d),f=n(1),p=n(2),m=n.n(p),h=n(13),b=n.n(h),y=n(132),v=n(133);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var k=function(t){s()(Layout,t);var n=_(Layout);function Layout(){return a()(this,Layout),n.apply(this,arguments)}return o()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,r=t.footer,a=t.children,i=t.title,o=t.headerCtaLabel,c=t.headerCtaLink,s=t.footerCtaLabel,l=t.footerCtaLink,u=t.footerContent,d=t.className,g=t.fill,f=t.relative;return e.createElement("div",{className:b()("googlesitekit-layout",d,{"googlesitekit-layout--fill":g,"googlesitekit-layout--relative":f})},n&&e.createElement(y.a,{title:i,ctaLabel:o,ctaLink:c}),a,r&&e.createElement(v.a,{ctaLabel:s,ctaLink:l,footerContent:u}))}}]),Layout}(f.a);k.propTypes={header:m.a.bool,footer:m.a.bool,children:m.a.node.isRequired,title:m.a.string,headerCtaLabel:m.a.string,headerCtaLink:m.a.string,footerCtaLabel:m.a.string,footerCtaLink:m.a.string,footerContent:m.a.node,className:m.a.string,fill:m.a.bool,relative:m.a.bool},k.defaultProps={header:!1,footer:!1,title:"",headerCtaLabel:"",headerCtaLink:"",footerCtaLabel:"",footerCtaLink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=k}).call(this,n(10))},function(e,t,n){"use strict";(function(e){n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return g}));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={})},l=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))}},u=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