(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[19],{11:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o}));var r="core/user",a="connected_url_mismatch",i="googlesitekit_view_dashboard",o="googlesitekit_manage_options"},113:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var r=n(0),a=n.n(r),i=n(2),o=n(5),c=n.n(o),s=n(20),u=n(87),l=c.a.useSelect;function ReportZero(t){var n=t.moduleSlug,r=l((function(e){return e(s.a).getModule(n)}));return e.createElement(u.a,{title:Object(i.sprintf)(
/* translators: %s: Module name */
Object(i.__)("%s Gathering Data","google-site-kit"),null==r?void 0:r.name),description:Object(i.sprintf)(
/* translators: %s: Module name */
Object(i.__)("%s data is not yet available, please check back later","google-site-kit"),null==r?void 0:r.name)})}ReportZero.propTypes={moduleSlug:a.a.string.isRequired}}).call(this,n(1))},115:function(e,t,n){"use strict";function Null(){return null}n.d(t,"a",(function(){return Null}))},116:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(1),o=n(2),c=n(87),s=n(5),u=n.n(s),l=n(11),d=n(20),g=n(38),f=u.a.useSelect,p=u.a.useDispatch,m=function CompleteModuleActivationCTA(t){var n=t.moduleSlug,r=t.title,a=t.description,s=f((function(e){return e(d.a).getModule(n)})),u=f((function(e){return e(d.a).getModuleStoreName(n)})),m=f((function(e){var t;return null===(t=e(u))||void 0===t?void 0:t.getAdminReauthURL()})),b=f((function(e){return e(l.a).hasCapability(l.c)})),v=p(g.a).navigateTo,h=Object(i.useCallback)((function(){return v(m)}),[m,v]);return(null==s?void 0:s.name)&&m&&b?e.createElement(c.a,{title:r||Object(o.sprintf)(
/* translators: %s: Module name */
Object(o.__)("Complete %s activation","google-site-kit"),s.name),description:a||Object(o.sprintf)(
/* translators: %s: Module name */
Object(o.__)("%s module setup needs to be completed","google-site-kit"),s.name),ctaLabel:Object(o.__)("Complete setup","google-site-kit"),"aria-label":Object(o.sprintf)(
/* translators: %s: Module name */
Object(o.__)("Complete %s setup","google-site-kit"),s.name),onClick:h}):null};m.propTypes={moduleSlug:a.a.string.isRequired,title:a.a.string,description:a.a.string},t.a=m}).call(this,n(1))},117:function(e,t,n){"use strict";(function(e){var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(0),s=n.n(c),u=n(1),l=n(2),d=n(87),g=n(5),f=n.n(g),p=n(14),m=n(11),b=n(20),v=n(38),h=f.a.useSelect,y=f.a.useDispatch,O=function ActivateModuleCTA(t){var n=t.moduleSlug,r=t.title,i=t.description,c=h((function(e){return e(b.a).getModule(n)})),s=h((function(e){return e(m.a).hasCapability(m.c)})),g=y(b.a).activateModule,f=y(v.a).navigateTo,O=y(p.c).setInternalServerError,_=Object(u.useCallback)(o()(a.a.mark((function e(){var t,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(n);case 2:t=e.sent,r=t.error,i=t.response,r?O({id:"".concat(n,"-setup-error"),description:r.message}):f(i.moduleReauthURL);case 6:case"end":return e.stop()}}),e)}))),[g,n,f,O]);if(!(null==c?void 0:c.name)||!s)return null;switch(n){case"analytics":r||(r=Object(l.__)("Learn more about what visitors do on your site","google-site-kit")),i||(i=Object(l.__)("Connect with Google Analytics to see unique visitors, goal completions, top pages and more","google-site-kit"));break;case"pagespeed-insights":i||(i=Object(l.__)("Google PageSpeed Insights gives you metrics about performance, accessibility, SEO and PWA","google-site-kit"))}return e.createElement(d.a,{title:r||Object(l.sprintf)(
/* translators: %s: Module name */
Object(l.__)("Activate %s","google-site-kit"),c.name),description:i||Object(l.sprintf)(
/* translators: %s: Module name */
Object(l.__)("%s module needs to be configured","google-site-kit"),c.name),ctaLabel:Object(l.sprintf)(
/* translators: %s: Module name */
Object(l.__)("Set up %s","google-site-kit"),c.name),onClick:_})};O.propTypes={moduleSlug:s.a.string.isRequired,title:s.a.string,description:s.a.string},t.a=O}).call(this,n(1))},119:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"h",(function(){return s})),n.d(t,"g",(function(){return u})),n.d(t,"f",(function(){return l})),n.d(t,"i",(function(){return d}));var r="dashboardAllTraffic",a="dashboardSearchFunnel",i="dashboardAcquisition",o="dashboardSpeed",c="dashboardEarnings",s="pageDashboardSearchFunnel",u="pageDashboardAllTraffic",l="pageDashboardAcquisition",d="pageDashboardSpeed"},12:function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return s})),n.d(t,"k",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"s",(function(){return g})),n.d(t,"r",(function(){return f})),n.d(t,"t",(function(){return p})),n.d(t,"p",(function(){return m})),n.d(t,"q",(function(){return b})),n.d(t,"n",(function(){return v})),n.d(t,"o",(function(){return h})),n.d(t,"l",(function(){return y})),n.d(t,"m",(function(){return O})),n.d(t,"j",(function(){return _})),n.d(t,"i",(function(){return S}));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",d=1,g="dashboardAllTrafficWidgetDimensionName",f="dashboardAllTrafficWidgetDimensionColor",p="dashboardAllTrafficWidgetDimensionValue",m="dashboardAllTrafficWidgetActiveRowIndex",b="dashboardAllTrafficWidgetLoaded",v="legacy",h="ua",y="ga4",O="ga4-transitional",_="ua",S="ga4"},120:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return StoreErrorNotices}));var r=n(6),a=n.n(r),i=n(0),o=n.n(i),c=n(5),s=n.n(c),u=n(182),l=n(20),d=n(84),g=n(136);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=s.a.useSelect;function StoreErrorNotices(t){var n=t.moduleSlug,r=t.storeName,a=t.shouldDisplayError,i=m((function(e){return e(r).getErrors()})),o=m((function(e){return e(l.a).getModule(n)}));return i.map((function(e){return Object(d.b)(e)&&(e=p(p({},e),{},{message:Object(g.a)(e.message,o)})),e})).map((function(t,n){return e.createElement(u.a,{key:n,error:t,shouldDisplayError:a})}))}StoreErrorNotices.propTypes={storeName:o.a.string.isRequired,shouldDisplayError:o.a.func,moduleSlug:o.a.string}}).call(this,n(1))},122:function(e,t){e.exports=googlesitekit.modules},131:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(7),a=n.n(r),i=function(e,t){var n=t.dateRangeLength;a()(Array.isArray(e),"report must be an array to partition."),a()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var r=-1*n;return{currentRange:e.slice(r),compareRange:e.slice(2*r,r)}}},133:function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"i",(function(){return l})),n.d(t,"h",(function(){return d})),n.d(t,"k",(function(){return g})),n.d(t,"m",(function(){return f})),n.d(t,"j",(function(){return p})),n.d(t,"l",(function(){return m})),n.d(t,"o",(function(){return b})),n.d(t,"n",(function(){return v}));var r="none",a="multiple",i="disapproved",o="graylisted",c="pending",s="no-client",u="approved",l="none",d="added";function g(e){var t=e.accounts,n=e.clients,i=e.alerts,c=e.urlChannels,l=e.accountsError,d=e.alertsError,g=e.urlChannelsError,f=e.previousAccountID,b=e.previousClientID;return void 0===t||void 0===f?h(l):p({accounts:t,previousAccountID:f})?void 0!==n&&void 0!==b?void 0===i?y(d):i.some((function(e){return"graylisted-publisher"===e.type}))?o:m({clients:n,previousClientID:b})?void 0===c?O(g):u:s:void 0:t.length?a:r}var f=function(e){var t=e.urlChannels,n=e.siteURL;if(void 0!==t&&void 0!==n){var r=n.toLowerCase();return t.some((function(e){return 0<=r.indexOf(e.uriPattern.toLowerCase())}))?d:l}},p=function(e){var t=e.accounts,n=e.previousAccountID;if(void 0!==t&&t.length){if(t.length>1){if(!n)return;return t.reduce((function(e,t){return t._id===n?n:e}),void 0)}return t[0]._id}},m=function(e){var t=e.clients,n=e.previousClientID;if(void 0!==t){var r=t.filter((function(e){return"AFC"===e.productCode}));if(r.length){if(r.length>1&&n){var a=r.reduce((function(e,t){return t._id===n?n:e}),"");if(a)return a}return r[0]._id}}},b=function(e){return e===o||e===c},v=function(e){return h(e)||y(e)||O(e)},h=function(e){return _(e,"noAdSenseAccount")?r:_(e,"disapprovedAccount")?i:void 0},y=function(e){if(_(e,"accountPendingReview"))return c};function O(e){if((null==e?void 0:e.message)&&"ad client not found."===e.message.toLowerCase())return c}var _=function(e,t){return!(!e||!e.data)&&t===e.data.reason}},134:function(e,t,n){"use strict";n.d(t,"c",(function(){return v})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return y})),n.d(t,"d",(function(){return _}));var r=n(6),a=n.n(r),i=n(1);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=i.createElement("path",{d:"M10 15.27L16.18 19l-1.64-7.03L20 7.24l-7.19-.61L10 0 7.19 6.63 0 7.24l5.46 4.73L3.82 19 10 15.27z"});var s=function SvgInfoIcon(e){return i.createElement("svg",o({viewBox:"0 0 20 20",fill:"currentColor"},e),c)};function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=i.createElement("path",{d:"M0 4h2v7H0zm0-4h2v2H0z",fill:"currentColor",fillRule:"evenodd"});var d=function SvgSuggestionIcon(e){return i.createElement("svg",u({viewBox:"0 0 2 11"},e),l)};function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=i.createElement("path",{d:"M0 0h2v7H0zm0 10h2v2H0z",fill:"currentColor",fillRule:"evenodd"});var p,m=function SvgWarningIcon(e){return i.createElement("svg",g({viewBox:"0 0 2 12"},e),f)},b=n(115),v="warning",h="info",y="suggestion",O=(p={},a()(p,h,s),a()(p,v,m),a()(p,y,d),p),_=function(e){return O[e]||b.a}},135:function(e,t,n){"use strict";var r=n(554);n.d(t,"a",(function(){return r.a}));var a=n(352);n.d(t,"b",(function(){return a.a}));var i=n(555);n.d(t,"d",(function(){return i.a}));n(353);var o=n(556);n.d(t,"f",(function(){return o.a}));var c=n(557);n.d(t,"e",(function(){return c.a}));n(422);var s=n(294);n.d(t,"c",(function(){return s.c}))},136:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2);function a(e,t){var n=t||{},a=n.slug,i=void 0===a?"":a,o=n.name,c=void 0===o?"":o,s=n.owner,u=void 0===s?null:s;if(!i||!c)return e;var l="",d="";return"analytics"===i?e.match(/account/i)?l=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"):e.match(/property/i)?l=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"):e.match(/view/i)&&(l=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit")):"search-console"===i&&(l=Object(r.__)("Your Google account does not have sufficient permissions for this Search Console property, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit")),l||(l=Object(r.sprintf)(
/* translators: %s: module name */
Object(r.__)("Your Google account does not have sufficient permissions to access %s data, so you won't be able to see stats from it on the Site Kit dashboard","google-site-kit"),c)),u&&u.login&&(d=Object(r.sprintf)(
/* translators: %s: owner name */
Object(r.__)('This service was originally connected by the administrator "%s" — you can contact them for more information',"google-site-kit"),u.login)),d||(d=Object(r.__)("This service was originally connected by an administrator — you can contact them for more information","google-site-kit")),"".concat(l," ").concat(d).trim()}},138:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var r=n(5),a=n.n(r),i=n(20),o=n(67),c=a.a.useSelect;function s(t){var n=t.moduleName,r=t.FallbackComponent,a=t.IncompleteComponent,s=void 0===a?null:a;return function(t){var a=function WhenActiveComponent(a){var o=a.WidgetNull,u=c((function(e){return e(i.a).getModule(n)})),l=r||o;return u?!1===u.active?e.createElement(l,a):!1===u.connected?null!==s?e.createElement(s,a):e.createElement(l,a):e.createElement(t,a):null};return a.displayName="When".concat(Object(o.c)(n),"Active"),(t.displayName||t.name)&&(a.displayName+="(".concat(t.displayName||t.name,")")),a}}}).call(this,n(1))},14:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r="core/site",a="primary",i="secondary"},143:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(7),a=n.n(r),i=n(39),o=function(e){var t=e.startDate,n=e.endDate,r=e.compareStartDate,o=e.compareEndDate;a()(Object(i.a)(t),"A valid startDate is required."),a()(Object(i.a)(n),"A valid endDate is required.");var c={"_u.date00":t.replace(/-/g,""),"_u.date01":n.replace(/-/g,"")};return(r||o)&&(a()(Object(i.a)(r)&&Object(i.a)(o),"Valid compareStartDate and compareEndDate values are required."),c["_u.date10"]=r.replace(/-/g,""),c["_u.date11"]=o.replace(/-/g,"")),c}},145:function(e,t,n){"use strict";n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return N})),n.d(t,"e",(function(){return C})),n.d(t,"d",(function(){return T}));var r=n(10),a=n.n(r),i=n(3),o=n.n(i),c=n(6),s=n.n(c),u=n(7),l=n.n(u),d=n(53),g=n.n(d),f=n(212),p=n.n(f),m=n(26),b=n.n(m),v=n(5),h=n.n(v),y=n(68),O=n(67),_=n(40),S=n(49);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j=h.a.createRegistrySelector,A=S.a.clearError,w=S.a.receiveError,D="cannot submit changes while submitting changes",R="cannot submit changes if settings have not changed",N=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.storeName,i=void 0===a?void 0:a,c=r.settingSlugs,u=void 0===c?[]:c;l()(e,"type is required."),l()(t,"identifier is required."),l()(n,"datapoint is required.");var d=i||"".concat(e,"/").concat(t),f={settings:void 0,savedSettings:void 0},m=Object(_.a)({baseName:"getSettings",controlCallback:function(){return b.a.get(e,t,n,{},{useCache:!1})},reducerCallback:function(e,t){return k(k({},e),{},{savedSettings:k({},t),settings:k(k({},t),e.settings||{})})}}),v=Object(_.a)({baseName:"saveSettings",controlCallback:function(r){var a=r.values;return b.a.set(e,t,n,a)},reducerCallback:function(e,t){return k(k({},e),{},{savedSettings:k({},t),settings:k({},t)})},argsToParams:function(e){return{values:e}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.values;l()(g()(t),"values is required.")}}),y={},S={setSettings:function(e){return l()(g()(e),"values is required."),{payload:{values:e},type:"SET_SETTINGS"}},rollbackSettings:function(){return{payload:{},type:"ROLLBACK_SETTINGS"}},saveSettings:o.a.mark((function e(){var t,n,r,a,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.a.commonActions.getRegistry();case 2:return t=e.sent,e.next=5,A("saveSettings",[]);case 5:return n=t.select(d).getSettings(),e.next=8,v.actions.fetchSaveSettings(n);case 8:if(r=e.sent,a=r.response,!(i=r.error)){e.next=14;break}return e.next=14,w(i,"saveSettings",[]);case 14:return e.abrupt("return",{response:a,error:i});case 15:case"end":return e.stop()}}),e)}))},E={},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case"SET_SETTINGS":var a=r.values;return k(k({},e),{},{settings:k(k({},e.settings||{}),a)});case"ROLLBACK_SETTINGS":return k(k({},e),{},{settings:e.savedSettings});default:return void 0!==y[n]?y[n](e,{type:n,payload:r}):e}},R={getSettings:o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.a.commonActions.getRegistry();case 2:if(t=e.sent,t.select(d).getSettings()){e.next=7;break}return e.next=7,m.actions.fetchGetSettings();case 7:case"end":return e.stop()}}),e)}))},N={getSettings:function(e){return e.settings},haveSettingsChanged:function(e){var t=e.settings,n=e.savedSettings;return!p()(t,n)},isDoingSaveSettings:function(e){return Object.values(e.isFetchingSaveSettings).some(Boolean)}};u.forEach((function(e){var t=Object(O.b)(e),n=Object(O.a)(e);S["set".concat(t)]=function(e){return l()(void 0!==e,"value is required for calls to set".concat(t,"().")),{payload:{value:e},type:"SET_".concat(n)}},y["SET_".concat(n)]=function(t,n){var r=n.payload.value;return k(k({},t),{},{settings:k(k({},t.settings||{}),{},s()({},e,r))})},N["get".concat(t)]=j((function(t){return function(){return(t(d).getSettings()||{})[e]}}))}));var C=h.a.combineStores(h.a.commonStore,m,v,{initialState:f,actions:S,controls:E,reducer:D,resolvers:R,selectors:N});return k(k({},C),{},{STORE_NAME:d})};function C(e,t){return function(){var n=a()(o.a.mark((function n(r){var a,i,c,s;return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=r.select,i=r.dispatch,!a(t).haveSettingsChanged()){n.next=8;break}return n.next=4,i(t).saveSettings();case 4:if(c=n.sent,!(s=c.error)){n.next=8;break}return n.abrupt("return",{error:s});case 8:return n.next=10,b.a.invalidateCache("modules",e);case 10:return n.abrupt("return",{});case 11:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}function T(e){return function(t){var n=Object(y.e)(t)(e),r=n.haveSettingsChanged,a=n.isDoingSubmitChanges;l()(!a(),D),l()(r(),R)}}},148:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M3.332 24.75h21.335c2.182 0 3.542-2.366 2.451-4.25L16.451 2.07C15.36.184 12.64.184 11.549 2.07L.882 20.5c-1.091 1.884.269 4.25 2.45 4.25zM14 14.833a1.42 1.42 0 01-1.417-1.416v-2.834c0-.779.638-1.416 1.417-1.416.78 0 1.417.637 1.417 1.416v2.834A1.42 1.42 0 0114 14.833zm1.417 5.667h-2.834v-2.833h2.834V20.5z",fill:"#EA4336",fillRule:"nonzero"});t.a=function SvgError(e){return r.createElement("svg",a({viewBox:"0 0 28 25"},e),i)}},17:function(e,t,n){"use strict";var r=n(82),a=n.n(r);n.d(t,"n",(function(){return a.a})),n.d(t,"c",(function(){return r.HelperText})),n.d(t,"d",(function(){return r.Input}));var i=n(176);n.d(t,"i",(function(){return i.a}));var o=n(241);n.d(t,"f",(function(){return o.a}));var c=n(242);n.d(t,"h",(function(){return c.a}));var s=n(101),u=n.n(s);n.d(t,"m",(function(){return u.a})),n.d(t,"k",(function(){return s.Option}));var l=n(243);n.d(t,"j",(function(){return l.a}));var d=n(240);n.d(t,"e",(function(){return d.a}));var g=n(239);n.d(t,"g",(function(){return g.a}));var f=n(88);n.d(t,"a",(function(){return f.a})),n.d(t,"b",(function(){return f.b})),n.d(t,"l",(function(){return f.c}))},170:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(80);function PreviewTable(t){for(var n=t.rows,r=t.rowHeight,a=t.padding,i=[],s=0;n>s;s++)i.push(e.createElement("div",{className:"googlesitekit-preview-table__row",key:"table-row-"+s},e.createElement(c.a,{width:"100%",height:r+"px"})));return e.createElement("div",{className:o()("googlesitekit-preview-table",{"googlesitekit-preview-table--padding":a})},i)}PreviewTable.propTypes={rows:a.a.number,rowHeight:a.a.number,padding:a.a.bool},PreviewTable.defaultProps={rows:11,rowHeight:35,padding:!1},t.a=PreviewTable}).call(this,n(1))},173:function(e,t,n){"use strict";function r(e){var t,n,r,a,i,o,c,s;if(void 0!==e)return!(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||!(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.totals)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.values)||void 0===s?void 0:s.length)||!e[0].data.totals.some((function(e){return e.values.some((function(e){return e>0}))}))}n.d(t,"a",(function(){return r}))},182:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ErrorNotice}));var r=n(0),a=n.n(r),i=n(84),o=n(83);function ErrorNotice(t){var n,r=t.error,a=t.shouldDisplayError,c=void 0===a?function(){return!0}:a;return r&&!Object(i.c)(r)&&c(r)?e.createElement(o.a,{message:r.message,reconnectURL:null===(n=r.data)||void 0===n?void 0:n.reconnectURL}):null}ErrorNotice.propTypes={error:a.a.shape({message:a.a.string}),shouldDisplayError:a.a.func}}).call(this,n(1))},184:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GoogleChart}));var r=n(6),a=n.n(r),i=n(18),o=n.n(i),c=n(25),s=n.n(c),u=n(16),l=n.n(u),d=n(8),g=n.n(d),f=n(0),p=n.n(f),m=n(307),b=n(1),v=n(80);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GoogleChart(t){var n=t.chartEvents,r=t.chartType,a=t.children,i=t.className,c=t.data,u=t.getChartWrapper,d=t.height,f=t.loaded,p=t.loadingHeight,h=t.loadingWidth,y=t.onMouseOver,O=t.onMouseOut,_=t.onReady,S=t.onSelect,E=t.selectedStats,k=t.width,j=l()(t,["chartEvents","chartType","children","className","data","getChartWrapper","height","loaded","loadingHeight","loadingWidth","onMouseOver","onMouseOut","onReady","onSelect","selectedStats","width"]),A=[];(null==c?void 0:c.length)&&(A=c[0].reduce((function(e,t,n){return(null==t?void 0:t.role)?[].concat(s()(e),[n]):e}),[]));var w=c;(null==E?void 0:E.length)>0&&(w=c.map((function(e){return e.filter((function(e,t){return 0===t||E.includes(t-1)||A.includes(t-1)}))})));var D=p||d,R=h||k;D&&!R&&(R="100%"),R&&!D&&(D="100%");var N="PieChart"===r?"circular":"square",C=e.createElement("div",{className:"googlesitekit-chart-loading"},e.createElement(v.a,{className:"googlesitekit-chart-loading__wrapper",height:D,shape:N,width:R})),T=Object(b.useRef)(),P=Object(b.useRef)();if(Object(b.useEffect)((function(){return function(){if(P.current&&T.current){var e=P.current.visualization.events;e.removeAllListeners(T.current.getChart()),e.removeAllListeners(T.current)}}}),[]),Object(b.useLayoutEffect)((function(){var e,t;y&&(null===(e=P.current)||void 0===e||e.visualization.events.addListener(T.current.getChart(),"onmouseover",(function(e){y(e,{chartWrapper:T.current,google:P.current})})));O&&(null===(t=P.current)||void 0===t||t.visualization.events.addListener(T.current.getChart(),"onmouseout",(function(e){O(e,{chartWrapper:T.current,google:P.current})})))}),[y,O]),!f)return e.createElement("div",{className:g()("googlesitekit-chart","googlesitekit-chart-loading__forced",i)},C);var I=s()(n||[]);return _&&I.push({eventName:"ready",callback:_}),S&&I.push({eventName:"select",callback:S}),e.createElement("div",{className:g()("googlesitekit-chart","googlesitekit-chart--".concat(r),i)},e.createElement(m.a,o()({className:"googlesitekit-chart__inner",chartEvents:I,chartType:r,chartVersion:"49",data:w,loader:C,height:d,getChartWrapper:function(e,t){var n,r,a;e!==T.current&&(null===(n=P.current)||void 0===n||n.visualization.events.removeAllListeners(null===(r=T.current)||void 0===r?void 0:r.getChart()),null===(a=P.current)||void 0===a||a.visualization.events.removeAllListeners(T.current));T.current=e,P.current=t,u&&u(e,t)},width:k},j)),a)}GoogleChart.propTypes={className:p.a.string,children:p.a.node,chartEvents:p.a.arrayOf(p.a.shape({eventName:p.a.string,callback:p.a.func})),chartType:p.a.oneOf(["LineChart","PieChart"]).isRequired,data:p.a.array,getChartWrapper:p.a.func,height:p.a.string,loaded:p.a.bool,loadingHeight:p.a.string,loadingWidth:p.a.string,onMouseOut:p.a.func,onMouseOver:p.a.func,onReady:p.a.func,onSelect:p.a.func,selectedStats:p.a.arrayOf(p.a.number),width:p.a.string},GoogleChart.defaultProps=y(y({},m.a.defaultProps),{},{loaded:!0})}).call(this,n(1))},185:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(216),s=n(1),u=n(81),l=n(17),d=function Switch(t){var n=t.onClick,r=t.label,a=t.checked,i=t.disabled,d=t.hideLabel,g=Object(c.a)(Switch),f=Object(s.useCallback)((function(e){null!==e&&l.j.attachTo(e)}),[]),p=Object(s.useCallback)((function(e){"function"==typeof n&&u.b===e.keyCode&&n(e)}),[n]),m="googlesitekit-switch-".concat(g);return e.createElement(s.Fragment,null,e.createElement("div",{"aria-checked":a?"true":"false",className:o()("mdc-switch",{"mdc-switch--checked":a,"mdc-switch--disabled":i}),onClick:n,onKeyDown:p,role:"switch",ref:f,tabIndex:0},e.createElement("div",{className:"mdc-switch__track"}," "),e.createElement("div",{className:"mdc-switch__thumb-underlay"},e.createElement("div",{className:"mdc-switch__thumb"},e.createElement("input",{type:"checkbox",id:m,className:"mdc-switch__native-control",role:"switch",checked:a,disabled:i,readOnly:!0})))),e.createElement("label",{className:o()({"screen-reader-only":d}),htmlFor:m},r))};d.propTypes={id:a.a.string,onClick:a.a.func,label:a.a.string.isRequired,checked:a.a.bool,disabled:a.a.bool,hideLabel:a.a.bool},d.defaultProps={checked:!1,disabled:!1,hideLabel:!0},t.a=d}).call(this,n(1))},186:function(e,t,n){"use strict";var r=n(0),a=n.n(r),i=function DisplaySetting(e){return e.value||" "};i.propTypes={value:a.a.oneOfType([a.a.string,a.a.bool,a.a.number])},t.a=i},19:function(e,t,n){"use strict";(function(e){var r=n(18),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),u=n(8),l=n.n(u),d=n(107),g=n(2);function Link(t){var n,r=t["aria-label"],i=t.arrow,c=t.back,s=t.caps,u=t.children,f=t.className,p=t.danger,m=t.disabled,b=t.external,v=t.hideExternalIndicator,h=t.href,y=t.inherit,O=t.inverse,_=t.onClick,S=t.small,E=t.to,k=o()(t,["aria-label","arrow","back","caps","children","className","danger","disabled","external","hideExternalIndicator","href","inherit","inverse","onClick","small","to"]),j=h||E||!_?E?"ROUTER_LINK":b?"EXTERNAL_LINK":"LINK":m?"BUTTON_DISABLED":"BUTTON",A="BUTTON"===j||"BUTTON_DISABLED"===j?"button":"ROUTER_LINK"===j?d.b:"a",w=("EXTERNAL_LINK"===j&&(n=Object(g._x)("(opens in a new tab)","screen reader text","google-site-kit")),"BUTTON_DISABLED"===j&&(n=Object(g._x)("(disabled)","screen reader text","google-site-kit")),n?r?"".concat(r," ").concat(n):"string"==typeof u?"".concat(u," ").concat(n):void 0:r);return e.createElement(A,a()({"aria-label":w,className:l()("googlesitekit-cta-link",f,{"googlesitekit-cta-link--arrow":i,"googlesitekit-cta-link--external":b&&!v,"googlesitekit-cta-link--inverse":O,"googlesitekit-cta-link--back":c,"googlesitekit-cta-link--small":S,"googlesitekit-cta-link--inherit":y,"googlesitekit-cta-link--caps":s,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":m}),disabled:m,href:"LINK"===j||"EXTERNAL_LINK"===j?h:void 0,onClick:_,rel:"EXTERNAL_LINK"===j?"noopener noreferrer":void 0,target:"EXTERNAL_LINK"===j?"_blank":void 0,to:E},k),u)}Link.propTypes={arrow:s.a.bool,back:s.a.bool,caps:s.a.bool,children:s.a.node,className:s.a.string,danger:s.a.bool,disabled:s.a.bool,external:s.a.bool,hideExternalIndicator:s.a.bool,href:s.a.string,inherit:s.a.bool,inverse:s.a.bool,onClick:s.a.func,small:s.a.bool,to:s.a.string},Link.defaultProps={arrow:!1,back:!1,caps:!1,className:"",danger:!1,disabled:!1,external:!1,hideExternalIndicator:!1,href:"",inherit:!1,inverse:!1,small:!1},t.a=Link}).call(this,n(1))},194:function(e,t,n){"use strict";(function(e){var r=n(41),a=n.n(r),i=n(195),o=e._googlesitekitAPIFetchData||{},c=o.nonce,s=o.nonceEndpoint,u=o.preloadedData,l=o.rootURL;a.a.nonceEndpoint=s,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(l),a.a.preloadingMiddleware=Object(i.a)(u),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(15))},195:function(e,t,n){"use strict";var r=n(187);t.a=function(e){var t=Object.keys(e).reduce((function(t,n){return t[Object(r.getStablePath)(n)]=e[n],t}),{}),n=!1;return function(e,a){if(n)return a(e);setTimeout((function(){n=!0}),1e3);var i=e.parse,o=void 0===i||i,c=e.path;if("string"==typeof e.path){var s,u=(null===(s=e.method)||void 0===s?void 0:s.toUpperCase())||"GET",l=Object(r.getStablePath)(c);if(o&&"GET"===u&&t[l]){var d=Promise.resolve(t[l].body);return delete t[l],d}if("OPTIONS"===u&&t[u]&&t[u][l]){var g=Promise.resolve(t[u][l]);return delete t[u][l],g}}return a(e)}}},2:function(e,t){e.exports=googlesitekit.i18n},20:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core/modules",a="insufficient_module_dependencies"},218:function(e,t,n){"use strict";t.a=function(e){if("string"==typeof e&&e.match(/[0-9]{8}/)){var t=e.slice(0,4),n=Number(e.slice(4,6))-1,r=e.slice(6,8);return new Date(t,n.toString(),r)}return!1}},219:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportTable}));var r=n(8),a=n.n(r),i=n(261),o=n.n(i),c=n(7),s=n.n(c),u=n(0),l=n.n(u);function ReportTable(t){var n=t.rows,r=t.columns,i=t.className,c=t.limit;s()(Array.isArray(n),"rows must be an array."),s()(Array.isArray(r),"columns must be an array."),r.forEach((function(e){var t=e.Component,n=e.field,r=void 0===n?null:n;s()(t||null!==r,"each column must define a Component and/or a field.")})),s()(Number.isInteger(c)||void 0===c,"limit must be an integer, if provided.");var u=r.filter((function(e){return!e.hideOnMobile}));return e.createElement("div",{className:a()("googlesitekit-table","googlesitekit-table--with-list",i)},e.createElement("table",{className:a()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(r.length,"-col"),"googlesitekit-table__wrapper--mobile-".concat(u.length,"-col"))},e.createElement("thead",{className:"googlesitekit-table__head"},e.createElement("tr",{className:"googlesitekit-table__head-row"},r.map((function(t,n){var r=t.title,i=t.description,o=t.primary,c=t.hideOnMobile,s=t.className;return e.createElement("th",{className:a()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":o},{"hidden-on-mobile":c},s),"data-tooltip":i,key:"googlesitekit-table__head-row-".concat(n)},r)})))),e.createElement("tbody",{className:"googlesitekit-table__body"},n.slice(0,c).map((function(t,n){return e.createElement("tr",{className:"googlesitekit-table__body-row",key:"googlesitekit-table__body-row-".concat(n)},r.map((function(n,r){var i=n.Component,c=n.field,s=n.hideOnMobile,u=n.className,l=void 0!==c?o()(t,c):void 0;return e.createElement("td",{key:"googlesitekit-table__body-item-".concat(r),className:a()("googlesitekit-table__body-item",{"hidden-on-mobile":s},u)},e.createElement("div",{className:"googlesitekit-table__body-item-content"},i&&e.createElement(i,{row:t,fieldValue:l}),!i&&l))})))})))))}ReportTable.propTypes={rows:l.a.arrayOf(l.a.oneOfType([l.a.array,l.a.object])).isRequired,columns:l.a.arrayOf(l.a.shape({title:l.a.string,description:l.a.string,primary:l.a.bool,className:l.a.string,field:l.a.string,hideOnMobile:l.a.bool,Component:l.a.componentType})).isRequired,className:l.a.string,limit:l.a.number}}).call(this,n(1))},22:function(e,t,n){"use strict";(function(e){var r=n(18),a=n.n(r),i=n(16),o=n.n(i),c=n(8),s=n.n(c),u=n(0),l=n.n(u),d=n(112),g=n(266),f=n(1),p=n(2),m=n(17),b=Object(f.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,u=t.className,l=t.danger,b=t.disabled,v=t.target,h=t.icon,y=t.trailingIcon,O=t["aria-label"],_=t.title,S=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon","aria-label","title"]),E=Object(f.useCallback)((function(e){null!==e&&m.i.attachTo(e)}),[]),k=Object(d.a)(n,E),j=i&&!b?"a":"button",A=e.createElement(j,a()({className:s()("mdc-button",u,{"mdc-button--raised":!c,"mdc-button--danger":l}),href:b?void 0:i,ref:k,disabled:!!b,"aria-label":function(){var e=O;if("_blank"!==v)return e;var t=Object(p._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof r&&(e=e||r),e?"".concat(e," ").concat(t):t}(),target:v||"_self",role:"a"===j?"button":void 0},S),h,r&&e.createElement("span",{className:"mdc-button__label"},r),y);return h&&(_||O)&&void 0===r?e.createElement(g.a,{title:_||O,classes:{popper:"googlesitekit-tooltip-popper",tooltip:"googlesitekit-tooltip"}},A):A}));b.displayName="Button",b.propTypes={onClick:l.a.func,children:l.a.node,href:l.a.string,text:l.a.bool,className:l.a.string,danger:l.a.bool,disabled:l.a.bool,icon:l.a.element,trailingIcon:l.a.element,title:l.a.string},b.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null,title:null},t.a=b}).call(this,n(1))},220:function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return g.a})),n.d(t,"c",(function(){return g.b})),n.d(t,"e",(function(){return f}));var r=n(327),a=n.n(r);function i(e){var t;if(void 0!==e){var n=e||{},r=n.rows,a=n.totals;return!(null==r?void 0:r.length)||(!(null==a||null===(t=a.cells)||void 0===t?void 0:t.length)||!a.cells.some((function(e){return(null==e?void 0:e.value)>0})))}}n(315);var o=n(8),c=n.n(o),s=n(2),u=n(9);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.year,n=void 0===t?0:t,r=e.month,a=void 0===r?1:r,i=e.day,o=void 0===i?0:i;return new Date(n,a-1,o)}function d(e,t,n,r,a){for(var i=[[{type:"date",label:Object(s.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:"number",label:n},{type:"number",label:Object(s.__)("Previous period","google-site-kit")}]],o=function(e){var t=new Date(e);return t.setDate(e.getDate()+1),t},d=function(e){return function(t){return e.getTime()===Object(u.t)(t.cells[0].value).getTime()}},g=l(e.startDate),f=l(t.startDate),p=l(e.endDate),m=Object(u.h)(),b={weekday:"short",month:"short",day:"numeric"};g<=p;){var v,h,y,O,_,S,E=parseFloat((null===(v=((null==e?void 0:e.rows)||[]).find(d(g)))||void 0===v||null===(h=v.cells)||void 0===h||null===(y=h[r])||void 0===y?void 0:y.value)||0),k=parseFloat((null===(O=((null==t?void 0:t.rows)||[]).find(d(f)))||void 0===O||null===(_=O.cells)||void 0===_||null===(S=_[r])||void 0===S?void 0:S.value)||0),j=0!==k?E/k-1:1,A=Object(u.f)(j),w=Object(s.sprintf)(
/* translators: 1: date for user stats, 2: previous date for user stats comparison */
Object(s._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),g.toLocaleDateString(m,b),f.toLocaleDateString(m,b)),D=Object(u.q)(E,null==a?void 0:a.currencyCode);"METRIC_RATIO"===(null==a?void 0:a.type)&&(D=Object(u.q)(E,"%"));var R=Object(s.sprintf)(
/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage, %%: percent symbol */
Object(s._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s%%</em>","Stat information for chart tooltip","google-site-kit"),n,D,A,Math.abs(j).toFixed(2).replace(/(.00|0)$/,""));i.push([g,'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":j>0,"googlesitekit-visualization-tooltip--down":j<0}),'">\n\t\t\t\t<p>').concat(w,"</p>\n\t\t\t\t<p>").concat(R,"</p>\n\t\t\t</div>"),E,k]),g=o(g),f=o(f)}return i}n(133);var g=n(421);n(339);function f(e){var t=[[{type:"date",label:"Day"},{type:"number",label:"RPM"},{type:"number",label:"Earnings"},{type:"number",label:"Impressions"}]];return a()(e,(function(e){var n=new Date(e.cells[0].value);t.push([n,e.cells[2].value,e.cells[1].value,e.cells[3].value])})),{dataMap:t}}},221:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return b}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(7),s=n.n(c),u=n(292),l=n.n(u),d=n(194),g=n(191),f=n(285),p=n(14),m=function(e,t){var n=t.find((function(t){return t.test(e)}));return!!n&&n.exec(e)[1]},b=l()(function(){var e=o()(a.a.mark((function e(t){var n,r,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.homeURL,r=t.ampMode,s()(Object(g.a)(n),"homeURL must be valid URL"),i=[n],p.b!==r){e.next=14;break}return e.prev=4,e.next=7,Object(d.default)({path:"/wp/v2/posts?per_page=1"}).then((function(e){return e.slice(0,1).map((function(e){return Object(f.a)(e.link,{amp:1})})).pop()}));case 7:(o=e.sent)&&i.push(o),e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(4),e.abrupt("return",i);case 14:return e.abrupt("return",i);case 15:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(t){return e.apply(this,arguments)}}())},228:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(142),a=function(){var e=Object(r.a)();return e>1280?"xlarge":e>960?"desktop":e>600?"tablet":"small"}},235:function(e,t,n){"use strict";(function(e,r){var a=n(13),i=n.n(a),o=n(0),c=n.n(o),s=n(23),u=n(8),l=n.n(u),d=n(1);function TableOverflowContainer(t){var n=t.children,a=Object(d.useState)(!1),o=i()(a,2),c=o[0],u=o[1],g=Object(d.useRef)();Object(d.useEffect)((function(){f();var t=Object(s.debounce)(f,100);return e.addEventListener("resize",t),function(){return e.removeEventListener("resize",t)}}),[]);var f=function(){if(g.current){var e=g.current,t=e.scrollLeft,n=e.scrollWidth-e.offsetWidth;u(t<n-16&&0<n-16)}};return r.createElement("div",{onScroll:Object(s.debounce)(f,100),className:l()("googlesitekit-table-overflow",{"googlesitekit-table-overflow--gradient":c})},r.createElement("div",{ref:g,className:"googlesitekit-table-overflow__container"},n))}TableOverflowContainer.propTypes={children:c.a.element},t.a=TableOverflowContainer}).call(this,n(15),n(1))},245:function(e,t,n){"use strict";(function(e){var r=n(0),a=function WidgetHeaderTitle(t){var n=t.title;return e.createElement("h3",{className:"googlesitekit-subheading-1 googlesitekit-widget__header-title"},n)};a.propTypes={title:n.n(r).a.string.isRequired},t.a=a}).call(this,n(1))},246:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(19),o=function WidgetHeaderCTA(t){var n=t.href,r=t.label,a=t.external;return e.createElement("div",{className:"googlesitekit-widget__header--cta"},e.createElement(i.a,{href:n,external:a},r))};o.propTypes={href:a.a.string,label:a.a.string.isRequired,external:a.a.bool},o.defaultProps={href:"",external:!0},t.a=o}).call(this,n(1))},248:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(184);function Sparkline(t){var n=t.change,r=t.data,a=t.invertChangeColor,o=t.loadingHeight;if(!r)return null;var c=a?"red":"green",s=a?"green":"red",u={title:"",backgroundColor:"transparent",curveType:"line",width:"100%",height:"50",enableInteractivity:!1,chartArea:{height:"100%",width:"100%"},legend:{position:"none"},axisFontSize:0,hAxis:{baselineColor:"none",ticks:[]},vAxis:{baselineColor:"none",ticks:[]},axes:[],colors:[0<=(parseFloat(n)||0)?c:s]};return r.slice(1).some((function(e){return e[1]>0}))||(u.vAxis.minValue=0,u.vAxis.maxValue=1),e.createElement("div",{className:"googlesitekit-analytics-sparkline-chart-wrap"},e.createElement(i.a,{chartType:"LineChart",data:r,loadingHeight:o,options:u}))}Sparkline.propTypes={invertChangeColor:a.a.bool,loadingHeight:a.a.string},Sparkline.defaultProps={invertChangeColor:!1,loadingHeight:"46px"},t.a=Sparkline}).call(this,n(1))},249:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return s}));var r=n(21),a=n.n(r);function i(e,t){return"string"==typeof e||(!("object"!==a()(e)||!t(e))||!!Array.isArray(e)&&e.every((function(e){return"string"==typeof e||"object"===a()(e)&&t(e)})))}function o(e){var t=e.dateRange,n=e.startDate,r=e.endDate,a=n&&n.match(/^\d{4}-\d{2}-\d{2}$/),i=r&&r.match(/^\d{4}-\d{2}-\d{2}$/),o=t&&t.match(/^last-\d+-days$/);return a&&i||o}function c(e){var t=function(e){var t=e.hasOwnProperty("fieldName")&&!!e.fieldName,n=e.hasOwnProperty("sortOrder")&&e.sortOrder.toString().match(/(ASCENDING|DESCENDING)/i);return t&&n};return Array.isArray(e)?e.every((function(e){return"object"===a()(e)&&t(e)})):"object"===a()(e)&&t(e)}function s(e){return"string"==typeof e||!!Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}},26:function(e,t){e.exports=googlesitekit.api},268:function(e,t){e.exports=googlesitekit.widgets},27:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},277:function(e,t,n){"use strict";var r=n(313);n.d(t,"b",(function(){return r.a}));var a=n(134);n.d(t,"a",(function(){return a.a}))},29:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="modules/adsense",a=1},291:function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(6),a=n.n(r),i=n(10),o=n.n(i),c=n(3),s=n.n(c),u=n(7),l=n.n(u),d=n(5),g=n.n(d),f=n(14),p=n(221);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var y=g.a.createRegistryControl,O=g.a.createRegistrySelector,_=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.storeName,r=t.isValidTag,i=t.tagMatchers;l()("string"==typeof n&&n,"storeName is required."),l()("function"==typeof r,"isValidTag must be a function."),l()(Array.isArray(i),"tagMatchers must be an Array.");var c={existingTag:void 0},u={fetchGetExistingTag:function(){return{payload:{},type:"FETCH_GET_EXISTING_TAG"}},receiveGetExistingTag:function(e){return l()(null===e||"string"==typeof e,"existingTag must be a tag string or null."),{payload:{existingTag:r(e)?e:null},type:"RECEIVE_GET_EXISTING_TAG"}},waitForExistingTag:s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"WAIT_FOR_EXISTING_TAG"};case 2:case"end":return e.stop()}}),e)}))},d=(e={},a()(e,"FETCH_GET_EXISTING_TAG",y((function(e){return o()(s.a.mark((function t(){var n,r,a,o,c,u,l,d;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.select(f.c).getHomeURL(),r=e.select(f.c).getAMPMode(),t.next=4,Object(p.b)({homeURL:n,ampMode:r});case 4:a=t.sent,o=v(a),t.prev=6,o.s();case 8:if((c=o.n()).done){t.next=18;break}return u=c.value,t.next=12,e.dispatch(f.c).waitForHTMLForURL(u);case 12:if(l=e.select(f.c).getHTMLForURL(u),!(d=Object(p.a)(l,i))){t.next=16;break}return t.abrupt("return",d);case 16:t.next=8;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(6),o.e(t.t0);case 23:return t.prev=23,o.f(),t.finish(23);case 26:return t.abrupt("return",null);case 27:case"end":return t.stop()}}),t,null,[[6,20,23,26]])})))}))),a()(e,"WAIT_FOR_EXISTING_TAG",y((function(e){return function(){var t=function(){return void 0!==e.select(n).getExistingTag()};return!!t()||new Promise((function(n){var r=e.subscribe((function(){t()&&(r(),n())}))}))}}))),e),m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case"RECEIVE_GET_EXISTING_TAG":var a=r.existingTag;return b(b({},e),{},{existingTag:a});default:return e}},h={getExistingTag:s.a.mark((function e(){var t,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.a.commonActions.getRegistry();case 2:if(void 0!==(t=e.sent).select(n).getExistingTag()){e.next=8;break}return e.next=6,u.fetchGetExistingTag();case 6:r=e.sent,t.dispatch(n).receiveGetExistingTag(r);case 8:case"end":return e.stop()}}),e)}))},_={getExistingTag:function(e){return e.existingTag},hasExistingTag:O((function(e){return function(){var t=e(n).getExistingTag();if(void 0!==t)return!!t}}))},S={initialState:c,actions:u,controls:d,reducer:m,resolvers:h,selectors:_};return b(b({},S),{},{STORE_NAME:n})}},294:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return AutoAdExclusionSwitches}));var r,a=n(6),i=n.n(a),o=n(1),c=n(2),s=n(5),u=n.n(s),l=n(29),d=n(185),g=u.a.useSelect,f=u.a.useDispatch,p="loggedinUsers",m="contentCreators",b=(r={},i()(r,p,Object(c.__)("All logged-in users","google-site-kit")),i()(r,m,Object(c.__)("Users who can write posts","google-site-kit")),r);function AutoAdExclusionSwitches(){var t,n=g((function(e){return e(l.b).getAutoAdsDisabled()})),r=f(l.b).setAutoAdsDisabled;t=n&&n.includes(p)?Object(c.__)("Ads will not be displayed for all logged-in users.","google-site-kit"):n&&n.includes(m)?Object(c.__)("Ads will not be displayed for users that can write posts.","google-site-kit"):Object(c.__)("Ads will be displayed for all users.","google-site-kit");var a=Object(o.useCallback)((function(e,t){var a=t?n.concat(e):n.filter((function(t){return t!==e}));r(a)}),[n,r]),i=Object(o.useCallback)((function(e){var t=e.target.checked;a(m,t)}),[a]),s=Object(o.useCallback)((function(e){var t=e.target.checked;a(p,t)}),[a]);return Array.isArray(n)?e.createElement("fieldset",{className:"googlesitekit-analytics-auto-ads-disabled"},e.createElement("legend",{className:"googlesitekit-setup-module__text"},Object(c.__)("Don’t display ads for:","google-site-kit")),e.createElement("div",{className:"googlesitekit-settings-module__inline-items"},e.createElement("div",{className:"googlesitekit-settings-module__inline-item"},e.createElement(d.a,{label:b[p],checked:n.includes(p),onClick:s,hideLabel:!1})),!n.includes(p)&&e.createElement("div",{className:"googlesitekit-settings-module__inline-item"},e.createElement(d.a,{label:b[m],checked:n.includes(m),onClick:i,hideLabel:!1}))),e.createElement("p",{className:"googlesitekit-margin-top-0"},t)):null}}).call(this,n(1))},304:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(261),a=n.n(r);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e.map((function(e,r){return[a()(e,n),a()(e,t,0===r?"":0)]}))}},31:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},313:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsNotice}));var r=n(8),a=n.n(r),i=n(0),o=n.n(i),c=n(316),s=n(317),u=n(134);function SettingsNotice(t){var n=t.children,r=t.type,i=t.Icon,o=void 0===i?Object(u.d)(r):i,l=n?s.a:c.a;return e.createElement("div",{className:a()("googlesitekit-settings-notice","googlesitekit-settings-notice--".concat(r),{"googlesitekit-settings-notice--single-row":!n,"googlesitekit-settings-notice--multi-row":n})},e.createElement("div",{className:"googlesitekit-settings-notice__icon"},e.createElement(o,{width:"20",height:"20"})),e.createElement("div",{className:"googlesitekit-settings-notice__body"},e.createElement(l,t)))}SettingsNotice.propTypes={children:o.a.node,notice:o.a.node.isRequired,type:o.a.oneOf([u.a,u.c,u.b]),Icon:o.a.elementType,LearnMore:o.a.elementType},SettingsNotice.defaultProps={type:u.a}}).call(this,n(1))},315:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(421);function a(e){if(Object(r.b)(e))return e.match(/pub-\d+$/)[0]}},316:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsNoticeSingleRow}));var r=n(0),a=n.n(r),i=n(1);function SettingsNoticeSingleRow(t){var n=t.notice,r=t.LearnMore;return e.createElement(i.Fragment,null,e.createElement("div",{className:"googlesitekit-settings-notice__text"},n),r&&e.createElement("div",{className:"googlesitekit-settings-notice__learn-more"},e.createElement(r,null)))}SettingsNoticeSingleRow.propTypes={notice:a.a.node.isRequired,LearnMore:a.a.elementType}}).call(this,n(1))},317:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsNoticeMultiRow}));var r=n(0),a=n.n(r),i=n(1);function SettingsNoticeMultiRow(t){var n=t.notice,r=t.LearnMore,a=t.children;return e.createElement(i.Fragment,null,e.createElement("div",{className:"googlesitekit-settings-notice__text"},n),e.createElement("div",{className:"googlesitekit-settings-notice__inner-row"},e.createElement("div",{className:"googlesitekit-settings-notice__children-container"},a),r&&e.createElement("div",{className:"googlesitekit-settings-notice__learn-more"},e.createElement(r,null))))}SettingsNoticeMultiRow.propTypes={children:a.a.node.isRequired,notice:a.a.node.isRequired,LearnMore:a.a.elementType}}).call(this,n(1))},32:function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(15))},336:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdSenseLinkCTA}));var r=n(2),a=n(5),i=n.n(a),o=n(87),c=n(14),s=i.a.useSelect;function AdSenseLinkCTA(){var t=s((function(e){return e(c.c).getGoogleSupportURL({path:"/adsense/answer/6084409"})}));return e.createElement(o.a,{title:Object(r.__)("Link Analytics and AdSense","google-site-kit"),description:Object(r.__)("Get reports for your top earning pages by linking your Analytics and AdSense accounts","google-site-kit"),ctaLink:t,ctaLabel:Object(r.__)("Learn more","google-site-kit")})}}).call(this,n(1))},339:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(651),a=function(e){var t=new URL(e);return Object(r.parse)(t.hostname).domain}},352:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdBlockerWarning}));var r=n(6),a=n.n(r),i=n(0),o=n.n(i),c=n(8),s=n.n(c),u=n(2),l=n(5),d=n.n(l),g=n(148),f=n(29),p=d.a.useSelect;function AdBlockerWarning(t){var n,r=t.context,i=p((function(e){return e(f.b).isAdBlockerActive()})),o=p((function(e){return e(f.b).getAccountSetupComplete()})),c=p((function(e){return e(f.b).getSiteSetupComplete()}));return i?(n=o&&c?Object(u.__)("Ad blocker detected, you need to disable it to get the AdSense latest data.","google-site-kit"):Object(u.__)("Ad blocker detected, you need to disable it in order to set up AdSense.","google-site-kit"),e.createElement("div",{className:s()("googlesitekit-settings-module-warning",a()({},"googlesitekit-settings-module-warning--".concat(r),r))},e.createElement(g.a,{height:"20",width:"23"})," ",n)):null}AdBlockerWarning.propTypes={context:o.a.string},AdBlockerWarning.defaultProps={context:""}}).call(this,n(1))},353:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SiteSteps}));var r=n(2),a=n(5),i=n.n(a),o=n(19),c=n(29),s=i.a.useSelect;function SiteSteps(){var t=s((function(e){return e(c.b).getServiceAccountManageSitesURL()})),n=s((function(e){return e(c.b).getServiceAccountSiteAdsPreviewURL()})),a=[{linkText:Object(r.__)("Enabled auto ads for your site","google-site-kit"),linkURL:n},{linkText:Object(r.__)('Verified that your site is marked as "Ready"',"google-site-kit"),linkURL:t}];return e.createElement("div",{className:"googlesitekit-setup-module__list-wrapper"},e.createElement("ol",{className:"googlesitekit-setup-module__list"},a.map((function(t,n){return e.createElement("li",{className:"googlesitekit-setup-module__list-item",key:n},e.createElement(o.a,{href:t.linkURL,external:!0,inherit:!0},t.linkText))}))))}}).call(this,n(1))},36:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return g}));var r=n(75),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},s=Object(r.a)(c),u=s.enableTracking,l=s.disableTracking,d=s.isTrackingEnabled,g=s.trackEvent;function f(e){e?u():l()}!0===o&&f(d())}).call(this,n(15))},360:function(e,t,n){"use strict";function r(e,t){var n,r;return!(400!==(null==e?void 0:e.code)||!(null===(n=e.message)||void 0===n||null===(r=n.startsWith)||void 0===r?void 0:r.call(n,"Restricted metric")))&&(!(t instanceof RegExp||"string"==typeof t)||e.message.match(/ga:[a-z]+/gi).some((function(e){return e.match(t)})))}n.d(t,"a",(function(){return r}))},371:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Header}));var r=n(2),a=n(1),i=n(5),o=n.n(i),c=n(29),s=n(11),u=n(12),l=n(143),d=n(245),g=n(246),f=o.a.useSelect;function Header(){var t=f((function(e){var t=e(s.a).getDateRangeDates({offsetDays:c.a}),n=t.startDate,r=t.endDate;return{currentDayCount:e(s.a).getDateRangeNumberOfDays(),analyticsMainURL:e(u.f).getServiceReportURL("content-publisher-overview",Object(l.a)({startDate:n,endDate:r}))}})),n=t.currentDayCount,i=t.analyticsMainURL,o=Object(r.sprintf)(
/* translators: %s: number of days */
Object(r._n)("Performance by page over the last %s day","Performance by page over the last %s days",n,"google-site-kit"),n),p=Object(r.sprintf)(
/* translators: %s: module name. */
Object(r.__)("See full stats in %s","google-site-kit"),Object(r._x)("Analytics","Service name","google-site-kit"));return e.createElement(a.Fragment,null,e.createElement(d.a,{title:o}),e.createElement(g.a,{href:i,label:p,external:!0}))}}).call(this,n(1))},377:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupSiteAdded}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(0),s=n.n(c),u=n(1),l=n(2),d=n(5),g=n.n(d),f=n(22),p=n(9),m=n(29),b=n(353),v=n(135),h=g.a.useSelect,y=g.a.useDispatch;function SetupSiteAdded(t){var n=t.finishSetup,r=h((function(e){return e(m.b).isDoingSubmitChanges()})),i=y(m.b).completeSiteSetup,c=Object(u.useCallback)(o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,i();case 4:if(!e.sent){e.next=9;break}return e.next=8,Object(p.v)("adsense_setup","complete_adsense_setup");case 8:n();case 9:case"end":return e.stop()}}),e)}))),[r,n,i]);return e.createElement(u.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(l.__)("Let’s get your site ready for ads","google-site-kit")),e.createElement(v.d,null),e.createElement("p",null,Object(l.__)("In order for your site to display ads, make sure you’ve completed these steps in AdSense","google-site-kit")),e.createElement(b.a,null),e.createElement("div",{className:"googlesitekit-setup-module__action"},e.createElement(f.a,{onClick:c,disabled:r},Object(l.__)("Continue","google-site-kit"))))}SetupSiteAdded.propTypes={finishSetup:s.a.func},SetupSiteAdded.defaultProps={finishSetup:function(){}}}).call(this,n(1))},38:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="core/location"},39:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(31),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(r.a)(new Date(e))}},40:function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(3),a=n.n(r),i=n(6),o=n.n(i),c=n(7),s=n.n(c),u=n(53),l=n.n(u),d=n(49),g=n(67),f=n(9);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function(e){return e},v=function(){return{}},h=function(){},y=d.a.clearError,O=d.a.receiveError,_=function(e){var t,n,r=a.a.mark(x),i=e.baseName,c=e.controlCallback,u=e.reducerCallback,d=void 0===u?b:u,p=e.argsToParams,_=void 0===p?v:p,S=e.validateParams,E=void 0===S?h:S;s()(i,"baseName is required."),s()("function"==typeof c,"controlCallback is required and must be a function."),s()("function"==typeof d,"reducerCallback must be a function."),s()("function"==typeof _,"argsToParams must be a function."),s()("function"==typeof E,"validateParams must be a function.");try{E(_()),n=!1}catch(e){n=!0}var k=Object(g.b)(i),j=Object(g.a)(i),A="FETCH_".concat(j),w="START_".concat(A),D="FINISH_".concat(A),R="CATCH_".concat(A),N="RECEIVE_".concat(j),C="fetch".concat(k),T="receive".concat(k),P="isFetching".concat(k),I=o()({},P,{});function x(e,t){var n,o;return a.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,{payload:{params:e},type:w};case 2:return r.next=4,y(i,t);case 4:return r.prev=4,r.next=7,{payload:{params:e},type:A};case 7:return n=r.sent,r.next=10,L[T](n,e);case 10:return r.next=12,{payload:{params:e},type:D};case 12:r.next=23;break;case 14:return r.prev=14,r.t0=r.catch(4),o=r.t0,r.next=19,O(o,i,t);case 19:return r.next=21,O(o);case 21:return r.next=23,{payload:{params:e},type:R};case 23:return r.abrupt("return",{response:n,error:o});case 24:case"end":return r.stop()}}),r,null,[[4,14]])}var L=(t={},o()(t,C,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=_.apply(void 0,t);return E(r),x(r,t)})),o()(t,T,(function(e,t){return s()(void 0!==e,"response is required."),n?(s()(l()(t),"params is required."),E(t)):t={},{payload:{response:e,params:t},type:N}})),t),U=o()({},A,(function(e){var t=e.payload;return c(t.params)})),M=o()({},P,(function(e){if(void 0===e[P])return!1;var t;try{for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];t=_.apply(void 0,r),E(t)}catch(e){return!1}return!!e[P][Object(f.u)(t)]}));return{initialState:I,actions:L,controls:U,reducer:function(e,t){var n=t.type,r=t.payload;switch(n){case w:var a=r.params;return m(m({},e),{},o()({},P,m(m({},e[P]),{},o()({},Object(f.u)(a),!0))));case N:var i=r.response,c=r.params;return d(e,i,c);case D:var s=r.params;return m(m({},e),{},o()({},P,m(m({},e[P]),{},o()({},Object(f.u)(s),!1))));case R:var u=r.params;return m(m({},e),{},o()({},P,m(m({},e[P]),{},o()({},Object(f.u)(u),!1))));default:return e}},resolvers:{},selectors:M}}},420:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupAccountApproved}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(1),s=n(2),u=n(5),l=n.n(u),d=n(22),g=n(29),f=n(315),p=n(133),m=n(135),b=l.a.useSelect,v=l.a.useDispatch;function SetupAccountApproved(){var t=b((function(e){return e(g.b).getExistingTag()})),n=b((function(e){return e(g.b).hasExistingTagPermission()})),r=b((function(e){return e(g.b).getOriginalAccountStatus()})),i=b((function(e){return e(g.b).isDoingSubmitChanges()})),u=v(g.b).completeAccountSetup,l=Object(c.useCallback)(o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,u();case 4:case"end":return e.stop()}}),e)}))),[i,u]);if(void 0===t||void 0===r)return null;var h,y,O,_,S=""===r||p.a===r;return h=S?Object(s.__)("Let Site Kit place AdSense code on your site to get your site approved","google-site-kit"):Object(s.__)("Keep AdSense code placed by Site Kit","google-site-kit"),t&&n?(y=!1,_=O=Object(s.__)("You’ve already got an AdSense code on your site for this account, we recommend you use Site Kit to place code to get the most out of AdSense.","google-site-kit")):t?(y=!0,O=Object(s.sprintf)(
/* translators: %s: account ID */
Object(s.__)("Site Kit detected AdSense code for a different account %s on your site. For a better ads experience, you should remove AdSense code that’s not linked to this AdSense account.","google-site-kit"),Object(f.a)(t)),_=Object(s.__)("Please note that AdSense will not show ads on your website unless you’ve already placed the code.","google-site-kit")):(y=!1,_=Object(s.__)("Please note that AdSense will not show ads on your website unless you’ve already placed the code.","google-site-kit")),e.createElement(c.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},S&&e.createElement("span",null,Object(s.__)("Looks like you’re already using AdSense","google-site-kit")),!S&&e.createElement("span",null,Object(s.__)("Your account is ready to use AdSense","google-site-kit"))),e.createElement(m.d,null),e.createElement("p",null,S&&e.createElement("span",null,Object(s.__)("Site Kit will place AdSense code on your site to connect your site to AdSense and help you get the most out of ads. This means Google will automatically place ads for you in all the best places.","google-site-kit")),!S&&e.createElement("span",null,Object(s.__)("Site Kit has placed AdSense code on your site to connect your site to AdSense and help you get the most out of ads. This means Google will automatically place ads for you in all the best places.","google-site-kit"))),y&&e.createElement(m.f,null),e.createElement(m.e,{label:h,checkedMessage:O,uncheckedMessage:_,saveOnChange:!0}),e.createElement("div",{className:"googlesitekit-setup-module__action"},e.createElement(d.a,{onClick:l,disabled:i},Object(s.__)("Continue","google-site-kit"))))}}).call(this,n(1))},421:function(e,t,n){"use strict";function r(e){return"string"==typeof e&&/^pub-\d+$/.test(e)}function a(e){return"string"==typeof e&&/^ca-pub-\d+$/.test(e)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}))},422:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WebStoriesAdUnitSelect}));var r=n(1),a=n(2),i=n(5),o=n.n(i),c=n(17),s=n(66),u=n(29),l=o.a.useSelect,d=o.a.useDispatch;function WebStoriesAdUnitSelect(){var t=l((function(e){return e(u.b).getAccountID()})),n=l((function(e){return e(u.b).getClientID()})),i=l((function(e){return e(u.b).getWebStoriesAdUnit()})),o=l((function(e){return{adunits:e(u.b).getAdUnits(t,n),hasResolvedAdUnits:e(u.b).hasFinishedResolution("getAdUnits",[t,n])}})),g=o.adunits,f=o.hasResolvedAdUnits,p=d(u.b).setWebStoriesAdUnit,m=Object(r.useCallback)((function(e,t){var n=t.dataset.value;i!==n&&p(n)}),[i,p]);return f?e.createElement(c.m,{className:"googlesitekit-adsense__select-field",label:Object(a.__)("Web Stories Ad Unit","google-site-kit"),value:i,onEnhancedChange:m,enhanced:!0,outlined:!0},e.createElement(c.k,{value:""},Object(a.__)("Select ad unit","google-site-kit")),(g||[]).map((function(t){var n=t._id,r=t.displayName;return e.createElement(c.k,{key:n,value:n},r)}))):e.createElement(s.a,{small:!0})}}).call(this,n(1))},423:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return SetupAccountCreate}));var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(1),u=n(2),l=n(5),d=n.n(l),g=n(22),f=n(19),p=n(9),m=n(315),b=n(29),v=n(14),h=n(11),y=n(135),O=d.a.useSelect;function SetupAccountCreate(){var t=O((function(e){return e(v.c).getReferenceSiteURL()})),n=O((function(e){return e(h.a).getEmail()})),a=O((function(e){return e(b.b).getExistingTag()})),o=O((function(e){return e(b.b).getServiceCreateAccountURL()})),l=O((function(e){return e(v.c).getGoogleSupportURL({path:"/adsense/answer/2659101"})})),d=Object(s.useCallback)(function(){var t=c()(i.a.mark((function t(n){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),t.next=3,Object(p.v)("adsense_setup","create_adsense_account");case 3:e.open(o,"_blank");case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[o]);return t&&n&&void 0!==a?r.createElement(s.Fragment,null,r.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(u.__)("Create your AdSense account","google-site-kit")),r.createElement(y.d,null),r.createElement("p",null,Object(u.__)("Site Kit will place AdSense code on every page across your site. This means Google will automatically place ads for you in all the best places.","google-site-kit")),r.createElement(y.f,null),r.createElement("div",{className:"googlesitekit-setup-module__action"},r.createElement(g.a,{onClick:d,href:o},Object(u.__)("Create AdSense Account","google-site-kit"))),r.createElement("p",{className:"googlesitekit-setup-module__footer-text"},a&&Object(u.sprintf)(
/* translators: 1: client ID, 2: user email address, 3: account ID */
Object(u.__)("Site Kit detected AdSense code %1$s on your page. We recommend you remove that code or add %2$s as a user to the AdSense account %3$s.","google-site-kit"),a,n,Object(m.a)(a)),!a&&Object(u.sprintf)(
/* translators: %s: user email address */
Object(u.__)("Already use AdSense? Add %s as a user to an existing AdSense account.","google-site-kit"),n)," ",r.createElement(f.a,{href:l,inherit:!0,external:!0,"aria-label":Object(u.__)("Learn more about adding a user to an existing AdSense account","google-site-kit")},Object(u.__)("Learn more","google-site-kit")))):null}}).call(this,n(15),n(1))},424:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupAccountDisapproved}));var r=n(1),a=n(2),i=n(5),o=n.n(i),c=n(19),s=n(29),u=n(135),l=o.a.useSelect;function SetupAccountDisapproved(){var t=l((function(e){return e(s.b).getAccountID()})),n=l((function(e){return e(s.b).getServiceAccountURL()}));return void 0!==t&&n?e.createElement(r.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(a.__)("Your site isn’t ready to show ads yet","google-site-kit")),e.createElement(u.d,null),e.createElement("p",null,Object(a.__)("You need to fix some things before we can connect Site Kit to your AdSense account.","google-site-kit")),e.createElement("div",{className:"googlesitekit-setup-module__action"},e.createElement(c.a,{href:n,external:!0},Object(a.__)("Go to AdSense to find out how to fix the issue","google-site-kit")))):null}}).call(this,n(1))},425:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupAccountNoClient}));var r=n(1),a=n(2),i=n(5),o=n.n(i),c=n(19),s=n(135),u=n(14),l=o.a.useSelect;function SetupAccountNoClient(){var t=l((function(e){return e(u.c).getGoogleSupportURL({path:"/adsense/answer/6023158"})}));return e.createElement(r.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(a.__)("Looks like you have an AdMob account","google-site-kit")),e.createElement(s.d,null),e.createElement("p",null,Object(a.__)("To start using AdSense, you need to update your account so that you can connect your site to AdSense.","google-site-kit")),e.createElement("div",{className:"googlesitekit-setup-module__action"},e.createElement(c.a,{href:t,external:!0,"aria-label":Object(a.__)("Learn more about updating your AdSense account","google-site-kit")},Object(a.__)("Learn more","google-site-kit"))))}}).call(this,n(1))},426:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupAccountPending}));var r=n(1),a=n(2),i=n(5),o=n.n(i),c=n(19),s=n(29),u=n(135),l=o.a.useSelect;function SetupAccountPending(){var t=l((function(e){return e(s.b).getServiceAccountManageSiteURL()}));return t?e.createElement(r.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(a.__)("Your account is getting ready","google-site-kit")),e.createElement(u.d,null),e.createElement("p",null,Object(a.__)("Site Kit has placed AdSense code on every page across your site.","google-site-kit")," ",Object(a.__)("After you’ve finished setting up your account, we’ll let you know when your site is ready to show ads. This usually takes less than a day, but it can sometimes take a bit longer.","google-site-kit")),e.createElement("div",{className:"googlesitekit-setup-module__action"},e.createElement(c.a,{href:t,external:!0},Object(a.__)("Go to your AdSense account to check on your site’s status or to complete setting up","google-site-kit")))):null}}).call(this,n(1))},427:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupAccountSelect}));var r=n(1),a=n(2),i=n(135);function SetupAccountSelect(){return e.createElement(r.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(a.__)("Select your AdSense account","google-site-kit")),e.createElement(i.d,null),e.createElement("p",null,Object(a.__)("Looks like you have multiple AdSense accounts associated with your Google account. Select the account to use with Site Kit below.","google-site-kit")),e.createElement("div",{className:"googlesitekit-setup-module__inputs"},e.createElement(i.a,null)))}}).call(this,n(1))},428:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return SetupSiteAdd}));var a=n(1),i=n(2),o=n(5),c=n.n(o),s=n(22),u=n(29),l=n(135),d=c.a.useSelect;function SetupSiteAdd(){var t=d((function(e){return e(u.b).getAccountID()})),n=d((function(e){return e(u.b).getServiceAccountManageSiteURL()})),o=Object(a.useCallback)((function(t){t.preventDefault(),e.open(n,"_blank")}),[n]);return t&&n?r.createElement(a.Fragment,null,r.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(i.__)("Add site to your AdSense account","google-site-kit")),r.createElement(l.d,null),r.createElement("p",null,Object(i.__)("We’ve detected that you haven’t added this site to your AdSense account yet.","google-site-kit")),r.createElement("div",{className:"googlesitekit-setup-module__action"},r.createElement(s.a,{onClick:o,href:n},Object(i.__)("Add site to AdSense","google-site-kit")))):null}}).call(this,n(15),n(1))},429:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsForm}));var r=n(2),a=n(1),i=n(5),o=n.n(i),c=n(29),s=n(315),u=n(135),l=n(66),d=n(422),g=n(19),f=n(14),p=o.a.useSelect;function SettingsForm(){var t,n,i=p((function(e){return e(f.c).isWebStoriesActive()})),o=p((function(e){return e(c.b).getClientID()})),m=p((function(e){return{existingTag:e(c.b).getExistingTag(),hasResolvedGetExistingTag:e(c.b).hasFinishedResolution("getExistingTag")}})),b=m.existingTag;if(!m.hasResolvedGetExistingTag)return e.createElement(l.a,null);b&&b===o?n=t=Object(r.__)("You’ve already got an AdSense code on your site for this account, we recommend you use Site Kit to place code to get the most out of AdSense.","google-site-kit"):b?(t=Object(r.sprintf)(
/* translators: %s: account ID */
Object(r.__)("Site Kit detected AdSense code for a different account %s on your site. For a better ads experience, you should remove AdSense code that’s not linked to this AdSense account.","google-site-kit"),Object(s.a)(b)),n=Object(r.__)("Please note that AdSense will not show ads on your website unless you’ve already placed the code.","google-site-kit")):n=Object(r.__)("Please note that AdSense will not show ads on your website unless you’ve already placed the code.","google-site-kit");return e.createElement("div",{className:"googlesitekit-adsense-settings-fields"},e.createElement(u.d,null),e.createElement(u.e,{checkedMessage:t,uncheckedMessage:n}),i&&e.createElement(a.Fragment,null,e.createElement(d.a,null),e.createElement("p",null,Object(r.__)("This ad unit will be used for your Web Stories.","google-site-kit")," ",e.createElement(g.a,{href:"https://support.google.com/adsense/answer/10175505#create-an-ad-unit-for-web-stories",external:!0,inherit:!0,"aria-label":Object(r.__)("Learn more about Ad Sense Web Stories.","google-site-kit")},Object(r.__)("Learn more","google-site-kit")))),e.createElement(u.c,null))}}).call(this,n(1))},43:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var r={BOXES:"boxes",COMPOSITE:"composite"},a={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},430:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardZeroData}));var r=n(2),a=n(353);function DashboardZeroData(){return e.createElement("div",{className:"mdc-layout-grid mdc-layout-grid--fill"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(r.__)("No ad impressions yet","google-site-kit")),e.createElement("p",null,Object(r.__)("You don’t have any ad impressions yet. Make sure you’ve completed these steps in AdSense:","google-site-kit")),e.createElement(a.a,null))))}}).call(this,n(1))},431:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(5),o=n.n(i),c=n(170),s=n(336),u=n(29),l=n(11),d=n(12),g=n(173),f=n(138),p=n(360),m=n(371),b=n(653),v=o.a.useSelect;function ModuleTopEarningPagesWidget(t){var n=t.Widget,r=t.WidgetReportZero,a=t.WidgetReportError,i=v((function(e){var t=e(l.a).getDateRangeDates({offsetDays:u.a}),n={startDate:t.startDate,endDate:t.endDate,dimensions:["ga:pageTitle","ga:pagePath"],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};return{isAdSenseLinked:e(d.f).getAdsenseLinked(),data:e(d.f).getReport(n),error:e(d.f).getErrorForSelector("getReport",[n]),isLoading:!e(d.f).hasFinishedResolution("getReport",[n])}})),o=i.isAdSenseLinked,f=i.data,h=i.isLoading,y=i.error;return o?h?e.createElement(n,{noPadding:!0,Header:m.a},e.createElement(c.a,{padding:!0})):y&&!Object(p.a)(y)?e.createElement(n,{Header:m.a},e.createElement(a,{error:y,moduleSlug:"adsense"})):Object(g.a)(f)||Object(p.a)(y)?e.createElement(n,{Header:m.a},e.createElement(r,{moduleSlug:"adsense"})):e.createElement(n,{noPadding:!0,Header:m.a},e.createElement(b.a,{report:f})):e.createElement(n,{Header:m.a},e.createElement(s.a,null))}ModuleTopEarningPagesWidget.propTypes={Widget:a.a.func.isRequired,WidgetReportZero:a.a.func.isRequired,WidgetReportError:a.a.func.isRequired},t.a=Object(f.a)({moduleName:"analytics"})(ModuleTopEarningPagesWidget)}).call(this,n(1))},44:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(27);function a(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},455:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M107.91 41.72c7.73-13.22 3.14-30.12-10.24-37.75C84.29-3.66 67.18.87 59.45 14.09c-.35.59-.66 1.2-.96 1.81l-26.1 44.66a27.172 27.172 0 00-1.6 2.75L3.67 110.1l48.45 27.16 26.98-46.4c.29-.44.57-.89.84-1.35.27-.46.52-.93.76-1.39l26.11-44.67c.38-.57.76-1.14 1.1-1.73z",fill:"#FBBC04"}),r.createElement("path",{d:"M52.34 137.11c-7.68 13.43-25 18.38-38.31 10.62-13.31-7.76-18.02-24.57-10.34-38s24.86-18.39 38.16-10.64c13.3 7.75 18.18 24.59 10.49 38.02z",fill:"#34A853"}),r.createElement("path",{d:"M158.79 51.86c-13.23-7.62-30.15-3.1-37.79 10.1l-27.66 47.8c-7.64 13.2-3.11 30.08 10.13 37.7 13.23 7.62 30.15 3.1 37.79-10.1l27.66-47.8c7.63-13.2 3.1-30.08-10.13-37.7z",fill:"#4285F4"}));t.a=function SvgAdsense(e){return r.createElement("svg",a({viewBox:"0 0 173 152"},e),i)}},456:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(7),a=n.n(r),i=n(39),o=function(e){a()(e,"A dates object is required.");var t=e.startDate,n=e.endDate;return a()(Object(i.a)(t),"A valid startDate is required."),a()(Object(i.a)(n),"A valid endDate is required."),{d:"".concat(t.replace(/-/g,"/"),"-").concat(n.replace(/-/g,"/"))}}},457:function(e,t,n){"use strict";function r(e){var t,n=null==e||null===(t=e.headers)||void 0===t?void 0:t[0].currencyCode;return n?{style:"currency",currency:n}:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}}n.d(t,"a",(function(){return r}))},47: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(18),a=n.n(r),i=n(1),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(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(1))},475:function(e,t,n){"use strict";(function(e){var r=n(1),a=n(2),i=n(29),o=n(11),c=n(456),s=n(245),u=n(246),l=n(5),d=n.n(l).a.useSelect;t.a=function Header(){var t=d((function(e){return e(o.a).getDateRangeDates({offsetDays:i.a})})),n=d((function(e){return e(i.b).getServiceReportURL(Object(c.a)(t))})),l=d((function(e){return e(o.a).getDateRangeNumberOfDays()}));return e.createElement(r.Fragment,null,e.createElement(s.a,{title:Object(a.sprintf)(
/* translators: %s: number of days */
Object(a._n)("Performance over the last %s day","Performance over the last %s days",l,"google-site-kit"),l)}),e.createElement(u.a,{href:n,label:Object(a.sprintf)(
/* translators: %s: module name. */
Object(a.__)("See full stats in %s","google-site-kit"),Object(a._x)("AdSense","Service name","google-site-kit"))}))}}).call(this,n(1))},49:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return b}));var r=n(6),a=n.n(r),i=n(21),o=n.n(i),c=n(7),s=n.n(c),u=n(64),l=n.n(u),d=n(9);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(t&&Array.isArray(t)){var n=t.map((function(e){return"object"===o()(e)?Object(d.u)(e):e}));return"".concat(e,"::").concat(l()(JSON.stringify(n)))}return e}var m={receiveError:function(e,t,n){return s()(e,"error is required."),t&&s()(n&&Array.isArray(n),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:e,baseName:t,args:n}}},clearError:function(e,t){return e&&s()(t&&Array.isArray(t),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:e,args:t}}},clearErrors:function(e){return{type:"CLEAR_ERRORS",payload:{baseName:e}}}};function b(){var e={getErrorForSelector:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return s()(n,"selectorName is required."),e.getError(t,n,r)},getErrorForAction:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return s()(n,"actionName is required."),e.getError(t,n,r)},getError:function(e,t,n){var r=e.error,a=e.errors;return t||n?(s()(t,"baseName is required."),a[p(t,n)]):r},getErrors:function(e){var t=new Set(Object.values(e.errors));return void 0!==e.error&&t.add(e.error),Array.from(t)},hasErrors:function(t){return e.getErrors(t).length>0}};return{initialState:{errors:{},error:void 0},actions:m,controls:{},reducer:function(e,t){var n=t.type,r=t.payload;switch(n){case"RECEIVE_ERROR":var i=r.baseName,o=r.args,c=r.error;return f(f({},e),{},i?{errors:f(f({},e.errors||{}),{},a()({},p(i,o),c))}:{error:c});case"CLEAR_ERROR":var s=r.baseName,u=r.args,l=f({},e);if(s){var d=p(s,u);l.errors=f({},e.errors||{}),delete l.errors[d]}else l.error=void 0;return l;case"CLEAR_ERRORS":var g=r.baseName,m=f({},e);if(g)for(var b in m.errors=f({},e.errors||{}),m.errors)(b===g||b.startsWith("".concat(g,"::")))&&delete m.errors[b];else m.errors={},m.error=void 0;return m;default:return e}},resolvers:{},selectors:e}}},5:function(e,t){e.exports=googlesitekit.data},50:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return d.a})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"i",(function(){return g}));var r="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',i=n(7),o=n.n(i),c=n(31),s=function(e){var t=new Date(e);o()(Object(c.a)(t),"Date param must construct to a valid date instance or be a valid date instance itself.");var n="".concat(t.getMonth()+1),r="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")},u=n(13),l=n.n(u),d=n(39),g=function(e){o()(Object(d.a)(e),r);var t=e.split("-"),n=l()(t,3),a=n[0],i=n[1],c=n[2];return new Date(a,i-1,c)},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=g(e);return n.setDate(n.getDate()-t),s(n)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]};function m(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var b=n(2);function v(){var e=function(e){return Object(b.sprintf)(
/* translators: %s: number of days */
Object(b._n)("Last %s day","Last %s days",e,"google-site-kit"),e)};return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}},55:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(21),a=n.n(r),i=n(78),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===a()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},554:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AccountSelect}));var r=n(1),a=n(2),i=n(5),o=n.n(i),c=n(17),s=n(66),u=n(29),l=o.a.useSelect,d=o.a.useDispatch;function AccountSelect(){var t=l((function(e){return e(u.b).getAccountID()})),n=l((function(e){return{accounts:e(u.b).getAccounts(),hasResolvedAccounts:e(u.b).hasFinishedResolution("getAccounts")}})),i=n.accounts,o=n.hasResolvedAccounts,g=d(u.b).setAccountID,f=Object(r.useCallback)((function(e,n){var r=n.dataset.value;t!==r&&g(r)}),[t,g]);return o?e.createElement(c.m,{className:"googlesitekit-adsense__select-account",label:Object(a.__)("Account","google-site-kit"),value:t,onEnhancedChange:f,enhanced:!0,outlined:!0},(i||[]).map((function(t,n){var r=t._id,a=t.displayName;return e.createElement(c.k,{key:n,value:r},a)}))):e.createElement(s.a,{small:!0})}}).call(this,n(1))},555:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ErrorNotices}));var r=n(1),a=n(29),i=n(133),o=n(120);function ErrorNotices(){var t=Object(r.useCallback)((function(e){return void 0===Object(i.n)(e)}),[]);return e.createElement(o.a,{moduleSlug:"adsense",storeName:a.b,shouldDisplayError:t})}}).call(this,n(1))},556:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserProfile}));var r=n(5),a=n.n(r),i=n(66),o=n(11),c=a.a.useSelect;function UserProfile(){var t=c((function(e){return e(o.a).getEmail()})),n=c((function(e){return e(o.a).getPicture()}));return c((function(e){return e(o.a).hasFinishedResolution("getUser")}))?e.createElement("p",{className:"googlesitekit-setup-module__user"},e.createElement("img",{className:"googlesitekit-setup-module__user-image",src:n,alt:""}),e.createElement("span",{className:"googlesitekit-setup-module__user-email"},t)):e.createElement(i.a,{small:!0})}}).call(this,n(1))},557:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UseSnippetSwitch}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(0),s=n.n(c),u=n(1),l=n(2),d=n(5),g=n.n(d),f=n(185),p=n(277),m=n(9),b=n(29),v=g.a.useSelect,h=g.a.useDispatch;function UseSnippetSwitch(t){var n=t.label,r=void 0===n?Object(l.__)("Let Site Kit place AdSense code on your site","google-site-kit"):n,i=t.checkedMessage,c=t.uncheckedMessage,s=t.saveOnChange,d=v((function(e){return e(b.b).getUseSnippet()})),g=v((function(e){return e(b.b).isDoingSubmitChanges()})),y=h(b.b),O=y.setUseSnippet,_=y.saveSettings,S=Object(u.useCallback)(o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O(!d),Object(m.v)("adsense_setup",d?"adsense_tag_enabled":"adsense_tag_disabled"),!s){e.next=5;break}return e.next=5,_();case 5:case"end":return e.stop()}}),e)}))),[d,s,O,_]);return void 0===d?null:e.createElement(u.Fragment,null,e.createElement("div",{className:"googlesitekit-setup-module__switch"},e.createElement(f.a,{label:r,onClick:S,checked:d,disabled:g,hideLabel:!1})," ",e.createElement("span",{className:"googlesitekit-recommended"},Object(l.__)("Recommended","google-site-kit"))),d&&i&&e.createElement(p.b,{notice:i}),!d&&c&&e.createElement(p.b,{notice:c}))}UseSnippetSwitch.propTypes={label:s.a.string,checkedMessage:s.a.string,uncheckedMessage:s.a.string,saveOnChange:s.a.bool},UseSnippetSwitch.defaultProps={saveOnChange:!1}}).call(this,n(1))},558:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return SetupMain}));var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(13),u=n.n(s),l=n(0),d=n.n(l),g=n(1),f=n(2),p=n(5),m=n.n(p),b=n(455),v=n(66),h=n(83),y=n(29),O=n(14),_=n(38),S=n(133),E=n(423),k=n(427),j=n(424),A=n(426),w=n(425),D=n(420),R=n(428),N=n(377),C=n(135),T=m.a.useSelect,P=m.a.useDispatch;function SetupMain(t){var n=t.finishSetup,a=T((function(e){return e(O.c).getReferenceSiteURL()})),o=T((function(e){return e(_.a).isNavigating()})),s=T((function(e){return e(y.b).getAccountID()})),l=T((function(e){return e(y.b).getClientID()})),d=T((function(e){return e(y.b).getAccountStatus()})),p=T((function(e){return e(y.b).getSiteStatus()})),m=T((function(e){return e(y.b).getAccountSetupComplete()})),I=T((function(e){return e(y.b).getSiteSetupComplete()})),x=T((function(e){return e(y.b).isDoingSubmitChanges()})),L=T((function(e){return e(y.b).canSubmitChanges()})),U=T((function(e){return e(y.b).getAccounts()})),M=Object(S.j)({accounts:U,previousAccountID:s}),F=T((function(e){return e(y.b).getClients(M)})),W=Object(S.l)({clients:F,previousClientID:l}),G=T((function(e){return e(y.b).getAlerts(M)})),q=T((function(e){return e(y.b).getURLChannels(M,W)})),B=T((function(e){return e(y.b).getErrorForSelector("getURLChannels",[M,W])})),H=T((function(e){return e(y.b).getError("getAccounts",[])})),z=T((function(e){return e(y.b).getError("getAlerts",[M])})),K=T((function(e){return e(y.b).hasErrors()})),V=Object(S.k)({accounts:U,clients:F,alerts:G,urlChannels:q,accountsError:H,alertsError:z,urlChannelsError:B,previousAccountID:s,previousClientID:l}),Y=Object(S.m)({urlChannels:q,siteURL:a}),$=P(y.b),Z=$.clearError,Q=$.setAccountID,X=$.setClientID,J=$.setAccountStatus,ee=$.setSiteStatus,te=$.setAccountSetupComplete,ne=$.setSiteSetupComplete,re=$.setUseSnippet,ae=$.submitChanges,ie=$.resetAccounts,oe=$.resetAlerts,ce=$.resetClients,se=$.resetURLChannels,ue=Object(g.useState)(!1),le=u()(ue,2),de=le[0],ge=le[1];Object(g.useEffect)((function(){void 0!==s&&void 0!==M&&s!==M&&(Q(M),ge(!0))}),[s,M,Q]),Object(g.useEffect)((function(){void 0!==l&&void 0!==W&&l!==W&&(X(W),ge(!0))}),[l,W,X]),Object(g.useEffect)((function(){void 0!==d&&void 0!==V&&d!==V&&(V!==S.a&&(te(!1),ne(!1),re(!0)),J(V),ge(!0))}),[d,V,te,ne,re,J]),Object(g.useEffect)((function(){void 0!==p&&void 0!==Y&&p!==Y&&(Y!==S.h&&ne(!1),ee(Y),ge(!0))}),[p,Y,ne,ee]);var fe=Object(g.useState)(!1),pe=u()(fe,2),me=pe[0],be=pe[1];Object(g.useEffect)((function(){de&&!me&&L&&(ge(!1),c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return be(!0),e.next=3,ae();case 3:be(!1);case 4:case"end":return e.stop()}}),e)})))())}),[de,me,L,ae]);var ve=T((function(e){return e(y.b).isAdBlockerActive()}));Object(g.useEffect)((function(){var t,n=0,r=function(){t=e.setInterval((function(){n++}),1e3)},a=function(){e.clearTimeout(t),n<15?n=0:(n=0,void 0!==V&&S.a!==V&&(Z(),ie(),oe(),ce(),se()))};return e.addEventListener("focus",a),e.addEventListener("blur",r),function(){e.removeEventListener("focus",a),e.removeEventListener("blur",r),e.clearTimeout(t)}}),[V,Z,ie,oe,ce,se]);var he,ye=T((function(e){return e(y.b).getExistingTag()}));if(void 0===V&&!K||void 0===ye||x&&!me||o)he=r.createElement(v.a,null);else if(V===S.a&&m)if(void 0===Y)he=r.createElement(v.a,null);else if(Y===S.h&&I)he=r.createElement(N.a,{finishSetup:n});else switch(Y){case S.i:he=r.createElement(R.a,null);break;case S.h:he=r.createElement(N.a,{finishSetup:n});break;default:he=K?r.createElement(C.d,null):r.createElement(h.a,{message:Object(f.sprintf)(
/* translators: %s: invalid site status identifier */
Object(f.__)("Invalid site status: %s","google-site-kit"),Y)})}else switch(V){case S.e:he=r.createElement(E.a,null);break;case S.d:he=r.createElement(k.a,null);break;case S.b:he=r.createElement(j.a,null);break;case S.c:case S.g:he=r.createElement(A.a,null);break;case S.f:he=r.createElement(w.a,null);break;case S.a:he=r.createElement(D.a,null);break;default:he=K?r.createElement(C.d,null):r.createElement(h.a,{message:Object(f.sprintf)(
/* translators: %s: invalid account status identifier */
Object(f.__)("Invalid account status: %s","google-site-kit"),V)})}return r.createElement("div",{className:"googlesitekit-setup-module googlesitekit-setup-module--adsense"},r.createElement("div",{className:"googlesitekit-setup-module__step"},r.createElement("div",{className:"googlesitekit-setup-module__logo"},r.createElement(b.a,{width:"33",height:"33"})),r.createElement("h2",{className:"googlesitekit-heading-3 googlesitekit-setup-module__title"},Object(f._x)("AdSense","Service name","google-site-kit"))),r.createElement("div",{className:"googlesitekit-setup-module__step"},r.createElement(C.b,null),!ve&&he))}SetupMain.propTypes={finishSetup:d.a.func},SetupMain.defaultProps={finishSetup:function(){}}}).call(this,n(15),n(1))},559:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsEdit}));var r=n(5),a=n.n(r),i=n(29),o=n(429),c=n(66),s=a.a.useSelect;function SettingsEdit(){var t;return t=s((function(e){return e(i.b).isDoingSubmitChanges()}))?e.createElement(c.a,null):e.createElement(o.a,null),e.createElement("div",{className:"googlesitekit-setup-module googlesitekit-setup-module--adsense"},t)}}).call(this,n(1))},56:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"}))}ChangeArrow.propTypes={direction:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(1))},560:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsSetupIncomplete}));var r=n(1),a=n(132),i=n(2),o=n(5),c=n.n(o),s=n(19),u=n(29),l=n(133),d=n(135),g=c.a.useSelect;function SettingsSetupIncomplete(){var t,n,o=g((function(e){return e(u.b).getAccountStatus()})),c=Object(l.o)(o),f=g((function(e){return e(u.b).getAdminReauthURL()}));return c?(
/* translators: %s: link with next step */
t=Object(i.__)("Site Kit has placed AdSense code on your site: %s","google-site-kit"),n=Object(i.__)("check module page","google-site-kit")):(
/* translators: %s: link with next step */
t=Object(i.__)("Setup incomplete: %s","google-site-kit"),n=Object(i.__)("continue module setup","google-site-kit")),e.createElement(r.Fragment,null,e.createElement(d.b,null),Object(a.a)(Object(i.sprintf)(t,"<a>".concat(n,"</a>")),{a:e.createElement(s.a,{className:"googlesitekit-settings-module__edit-button",href:f,inherit:!0})}))}}).call(this,n(1))},561:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsView}));var r=n(2),a=n(5),i=n.n(a),o=n(186),c=n(19),s=n(14),u=n(294),l=n(29),d=n(133),g=n(135),f=i.a.useSelect;function SettingsView(){var t,n,a=f((function(e){return e(l.b).getAccountID()})),i=f((function(e){return e(l.b).getClientID()})),p=f((function(e){return e(l.b).getAccountStatus()})),m=f((function(e){return e(l.b).getUseSnippet()})),b=f((function(e){return e(l.b).getExistingTag()})),v=f((function(e){return e(l.b).getServiceAccountManageSitesURL()})),h=f((function(e){return e(s.c).isWebStoriesActive()})),y=f((function(e){return e(l.b).getWebStoriesAdUnit()})),O=f((function(e){return e(l.b).getAutoAdsDisabled()||[]}));switch(p){case d.a:t=Object(r.__)("Your account has been approved","google-site-kit");break;case d.g:case d.c:t=Object(r.__)("We’re getting your site ready for ads. This usually takes less than a day, but it can sometimes take a bit longer","google-site-kit");break;case d.f:case d.b:t=Object(r.__)("You need to fix some issues before your account is approved. Go to AdSense to find out how to fix it","google-site-kit");break;default:t=Object(r.__)("Your site isn’t ready to show ads yet","google-site-kit")}n=m?Object(r.__)("The AdSense code has been placed on your site","google-site-kit"):b&&b===i?Object(r.__)("The AdSense code has been placed by another plugin or theme","google-site-kit"):Object(r.__)("The AdSense code has not been placed on your site","google-site-kit");var _=Object(r.__)("Ads are currently displayed for all visitors.","google-site-kit");return O.includes(u.b)&&O.includes(u.a)?_=Object(r.__)("All logged-in users and users who can write posts","google-site-kit"):O.includes(u.b)?_=u.d[u.b]:O.includes(u.a)&&(_=u.d[u.a]),e.createElement("div",{className:"googlesitekit-setup-module googlesitekit-setup-module--adsense"},e.createElement(g.d,null),e.createElement("div",{className:"googlesitekit-settings-module__meta-items"},e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("h5",{className:"googlesitekit-settings-module__meta-item-type"},Object(r.__)("Publisher ID","google-site-kit")),e.createElement("p",{className:"googlesitekit-settings-module__meta-item-data"},e.createElement(o.a,{value:a}))),e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("h5",{className:"googlesitekit-settings-module__meta-item-type"},Object(r.__)("Account Status","google-site-kit")),e.createElement("p",{className:"googlesitekit-settings-module__meta-item-data"},t)),e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("h5",{className:"googlesitekit-settings-module__meta-item-type"},Object(r.__)("Site Status","google-site-kit")),e.createElement("p",{className:"googlesitekit-settings-module__meta-item-data"},e.createElement(c.a,{href:v,className:"googlesitekit-settings-module__cta-button",inherit:!0,external:!0},Object(r.__)("Check your site status","google-site-kit"))))),e.createElement("div",{className:"googlesitekit-settings-module__meta-items"},e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("h5",{className:"googlesitekit-settings-module__meta-item-type"},Object(r.__)("AdSense Code","google-site-kit")),e.createElement("p",{className:"googlesitekit-settings-module__meta-item-data"},n))),e.createElement("div",{className:"googlesitekit-settings-module__meta-items"},e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("h5",{className:"googlesitekit-settings-module__meta-item-type"},Object(r.__)("Excluded from ads","google-site-kit")),e.createElement("p",{className:"googlesitekit-settings-module__meta-item-data"},_))),h&&e.createElement("div",{className:"googlesitekit-settings-module__meta-items"},e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("h5",{className:"googlesitekit-settings-module__meta-item-type"},Object(r.__)("Web Stories Ad Unit","google-site-kit")),e.createElement("p",{className:"googlesitekit-settings-module__meta-item-data"},!y&&e.createElement("span",null,Object(r.__)("None","google-site-kit")),y&&e.createElement(o.a,{value:y}))))))}}).call(this,n(1))},562:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(2),o=n(5),c=n.n(o),s=n(29),u=n(11),l=n(220),d=n(304),g=n(138),f=n(80),p=n(79),m=n(248),b=n(456),v=n(352);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=c.a.useSelect;t.a=Object(g.a)({moduleName:"adsense"})((function DashboardSummaryWidget(t){var n,r,a,o,c,g,h,_,S,E=t.Widget,k=t.WidgetReportZero,j=t.WidgetReportError,A=O((function(e){var t=e(u.a).getDateRangeDates({offsetDays:s.a,compare:!0}),n=t.startDate,r=t.endDate,a={startDate:t.compareStartDate,endDate:t.compareEndDate,metrics:["ESTIMATED_EARNINGS","PAGE_VIEWS_RPM","IMPRESSIONS"]},i={startDate:n,endDate:r,metrics:["ESTIMATED_EARNINGS","PAGE_VIEWS_RPM","IMPRESSIONS"]},o=y(y({},i),{},{dimensions:["DATE"]}),c=Object(b.a)({startDate:n,endDate:r});return{period:e(s.b).getReport(i),previousPeriod:e(s.b).getReport(a),daily:e(s.b).getReport(o),loading:!e(s.b).hasFinishedResolution("getReport",[i])||!e(s.b).hasFinishedResolution("getReport",[a])||!e(s.b).hasFinishedResolution("getReport",[o]),error:e(s.b).getErrorForSelector("getReport",[i])||e(s.b).getErrorForSelector("getReport",[a])||e(s.b).getErrorForSelector("getReport",[o]),rpmReportURL:e(s.b).getServiceReportURL(y(y({},c),{},{gm:"pageViewsRpm"})),earningsURL:e(s.b).getServiceReportURL(y(y({},c),{},{gm:"earnings"})),impressionsURL:e(s.b).getServiceReportURL(y(y({},c),{},{gm:"monetizableImpressions"})),isAdblockerActive:e(s.b).isAdBlockerActive()}})),w=A.error,D=A.loading,R=A.period,N=A.previousPeriod,C=A.daily,T=A.rpmReportURL,P=A.earningsURL,I=A.impressionsURL;if(A.isAdblockerActive)return e.createElement(E,null,e.createElement(v.a,null));if(D)return e.createElement(E,null,e.createElement(f.a,{width:"100%",height:"276px"}));if(w)return e.createElement(E,null,e.createElement(j,{moduleSlug:"adsense",error:w}));if(Object(l.d)(N)&&Object(l.d)(R)&&Object(l.d)(C))return e.createElement(E,null,e.createElement(k,{moduleSlug:"adsense"}));var x=Object(l.e)(C.rows),L=R.headers.find((function(e){return null!==e.currencyCode&&0<e.currencyCode.length})),U=!!L&&L.currencyCode;return e.createElement(E,{className:"googlesitekit-dashboard-adsense-stats mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},e.createElement(p.a,{className:"overview-adsense-rpm",title:Object(i.__)("Page RPM","google-site-kit"),datapoint:(null===(n=R.totals)||void 0===n?void 0:n.cells[1].value)||0,datapointUnit:U,change:(null===(r=R.totals)||void 0===r?void 0:r.cells[1].value)||0-(null===(a=N.totals)||void 0===a?void 0:a.cells[1].value)||0,changeDataUnit:U,source:{name:Object(i._x)("AdSense","Service name","google-site-kit"),link:T,external:!0},sparkline:C&&e.createElement(m.a,{data:Object(d.a)(x.dataMap,2),change:1}),context:"compact"})),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},e.createElement(p.a,{className:"overview-adsense-earnings",title:Object(i.__)("Total Earnings","google-site-kit"),datapoint:(null===(o=R.totals)||void 0===o?void 0:o.cells[0].value)||0,datapointUnit:U,source:{name:Object(i._x)("AdSense","Service name","google-site-kit"),link:P,external:!0},change:(null===(c=R.totals)||void 0===c?void 0:c.cells[0].value)||0-(null===(g=N.totals)||void 0===g?void 0:g.cells[0].value)||0,changeDataUnit:U,sparkline:C&&e.createElement(m.a,{data:Object(d.a)(x.dataMap,1),change:1}),context:"compact"})),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},e.createElement(p.a,{className:"overview-adsense-impressions",title:Object(i.__)("Ad Impressions","google-site-kit"),datapoint:(null===(h=R.totals)||void 0===h?void 0:h.cells[2].value)||0,change:(null===(_=R.totals)||void 0===_?void 0:_.cells[2].value)||0-(null===(S=N.totals)||void 0===S?void 0:S.cells[2].value)||0,changeDataUnit:!0,source:{name:Object(i._x)("AdSense","Service name","google-site-kit"),link:I,external:!0},sparkline:C&&e.createElement(m.a,{data:Object(d.a)(x.dataMap,3),change:1}),context:"compact"}))))}))}).call(this,n(1))},565:function(e,t,n){"use strict";(function(e){var r=n(13),a=n.n(r),i=n(2),o=n(779),c=n(5),s=n.n(c),u=n(12),l=n(11),d=n(29),g=n(138),f=n(170),p=n(93),m=n(336),b=n(63),v=n(235),h=n(219),y=n(19),O=n(352),_=n(143),S=n(9),E=n(457),k=s.a.useSelect;t.a=Object(o.a)(Object(g.a)({moduleName:"adsense"}),Object(g.a)({moduleName:"analytics"}))((function DashboardTopEarningPagesWidget(t){var n=t.Widget,r=t.WidgetReportZero,o=t.WidgetReportError,c=k((function(e){var t=e(l.a).getDateRangeDates({offsetDays:u.b}),n=t.startDate,r=t.endDate,a={startDate:n,endDate:r,dimensions:["ga:pageTitle","ga:pagePath"],metrics:[{expression:"ga:adsenseRevenue",alias:"Earnings"},{expression:"ga:adsenseECPM",alias:"Page RPM"},{expression:"ga:adsensePageImpressions",alias:"Impressions"}],orderby:{fieldName:"ga:adsenseRevenue",sortOrder:"DESCENDING"},limit:5},i=e(d.b).getReport({startDate:n,endDate:r,metrics:"ESTIMATED_EARNINGS"}),o=e(u.f).getAdsenseLinked();return{analyticsMainURL:e(u.f).getServiceReportURL("content-publisher-overview",Object(_.a)({startDate:n,endDate:r})),data:e(u.f).getReport(a),error:e(u.f).getErrorForSelector("getReport",[a]),loading:!e(u.f).hasFinishedResolution("getReport",[a]),isAdSenseLinked:o,isAdblockerActive:e(d.b).isAdBlockerActive(),currencyFormat:Object(E.a)(i)}})),s=c.analyticsMainURL,g=c.data,j=c.error,A=c.loading,w=c.isAdSenseLinked,D=c.isAdblockerActive,R=c.currencyFormat,N=function Footer(){return e.createElement(p.a,{className:"googlesitekit-data-block__source",name:Object(i._x)("Analytics","Service name","google-site-kit"),href:s,external:!0})};if(D)return e.createElement(n,{Footer:N},e.createElement(O.a,null));if(A)return e.createElement(n,{noPadding:!0,Footer:N},e.createElement(f.a,{rows:5,padding:!0}));if(!w)return e.createElement(n,{Footer:N},e.createElement(m.a,null));if(j)return e.createElement(n,{Footer:N},e.createElement(o,{moduleSlug:"analytics",error:j}));if(Object(b.l)(g))return e.createElement(n,{Footer:N},e.createElement(r,{moduleSlug:"analytics"}));var C=[{title:Object(i.__)("Top Earning Pages","google-site-kit"),tooltip:Object(i.__)("Top Earning Pages","google-site-kit"),primary:!0,Component:function Component(t){var n=t.row,r=a()(n.dimensions,2),i=r[0],o=r[1];return e.createElement(y.a,{href:o,children:i,external:!0,inherit:!0})}},{title:Object(i.__)("Earnings","google-site-kit"),tooltip:Object(i.__)("Earnings","google-site-kit"),field:"metrics.0.values.0",Component:function Component(t){var n=t.fieldValue;return e.createElement("span",null,Object(S.q)(n,R))}}];return e.createElement(n,{noPadding:!0,Footer:N},e.createElement(v.a,null,e.createElement(h.a,{rows:g[0].data.rows,columns:C})))}))}).call(this,n(1))},566:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(13),o=n.n(i),c=n(0),s=n.n(c),u=n(1),l=n(2),d=n(29),g=n(11),f=n(220),p=n(430),m=n(94),b=n(80),v=n(475),h=n(654),y=n(655),O=n(5);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=n.n(O).a.useSelect,k=function ModuleOverviewWidget(t){var n=t.Widget,r=t.WidgetReportZero,a=t.WidgetReportError,i=Object(u.useState)(0),c=o()(i,2),s=c[0],l=c[1],O=E((function(e){return e(g.a).getDateRangeDates({compare:!0})})),_=O.startDate,k=O.endDate,j=O.compareStartDate,A=O.compareEndDate,w={metrics:Object.keys(ModuleOverviewWidget.metrics),startDate:_,endDate:k},D={metrics:Object.keys(ModuleOverviewWidget.metrics),startDate:j,endDate:A},R=S(S({},w),{},{dimensions:["DATE"]}),N=S(S({},D),{},{dimensions:["DATE"]}),C=E((function(e){return e(d.b).getReport(w)})),T=E((function(e){return e(d.b).getReport(D)})),P=E((function(e){return e(d.b).getReport(R)})),I=E((function(e){return e(d.b).getReport(N)})),x=E((function(e){return!(e(d.b).hasFinishedResolution("getReport",[w])&&e(d.b).hasFinishedResolution("getReport",[D])&&e(d.b).hasFinishedResolution("getReport",[R])&&e(d.b).hasFinishedResolution("getReport",[N]))})),L=E((function(e){return e(d.b).getErrorForSelector("getReport",[w])||e(d.b).getErrorForSelector("getReport",[D])||e(d.b).getErrorForSelector("getReport",[R])||e(d.b).getErrorForSelector("getReport",[N])}));return x?e.createElement(n,{Header:v.a,noPadding:!0},e.createElement(b.a,{width:"100%",height:"190px",padding:!0}),e.createElement(b.a,{width:"100%",height:"270px",padding:!0})):L?e.createElement(n,{Header:v.a},e.createElement(a,{moduleSlug:"adsense",error:L})):Object(f.d)(C)||Object(f.d)(P)?e.createElement(n,{noPadding:!0},e.createElement(p.a,null),e.createElement("div",{className:m.a},e.createElement(r,{moduleSlug:"adsense"}))):e.createElement(n,{noPadding:!0,Header:v.a},e.createElement(h.a,{metrics:ModuleOverviewWidget.metrics,currentRangeData:C,previousRangeData:T,selectedStats:s,handleStatsSelection:l}),e.createElement(y.a,{metrics:ModuleOverviewWidget.metrics,currentRangeData:P,previousRangeData:I,selectedStats:s}))};k.propTypes={Widget:s.a.elementType.isRequired,WidgetReportZero:s.a.elementType.isRequired,WidgetReportError:s.a.elementType.isRequired},k.metrics={ESTIMATED_EARNINGS:Object(l.__)("Earnings","google-site-kit"),PAGE_VIEWS_RPM:Object(l.__)("Page RPM","google-site-kit"),IMPRESSIONS:Object(l.__)("Impressions","google-site-kit"),PAGE_VIEWS_CTR:Object(l.__)("Page CTR","google-site-kit")},t.a=k}).call(this,n(1))},60:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}))},61:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return E})),n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return j}));var r=n(13),a=n.n(r),i=n(21),o=n.n(i),c=n(6),s=n.n(c),u=n(16),l=n.n(u),d=n(23),g=n(59),f=n.n(g),p=n(2);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=h(e,t),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(e){return a()}},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var n=Math.floor(e/60/60),r=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:n,minutes:r,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=b(b({unitDisplay:void 0===i?"short":i},l()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?E(a,b(b({},o),{},{unit:"second"})):Object(p.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?E(a,b(b({},o),{},{unit:"second"})):"",r?E(r,b(b({},o),{},{unit:"minute"})):"",n?E(n,b(b({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(p.sprintf)(// translators: %s number of seconds with "s" as the abbreviated unit.
Object(p.__)("%ds","google-site-kit"),a);if(0===e)return t;var i=Object(p.sprintf)(// translators: %s number of minutes with "m" as the abbreviated unit.
Object(p.__)("%dm","google-site-kit"),r),o=Object(p.sprintf)(// translators: %s number of hours with "h" as the abbreviated unit.
Object(p.__)("%dh","google-site-kit"),n);return Object(p.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?t:"",r?i:"",n?o:"").trim()}}},y=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},O=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in millions.
Object(p.__)("%sM","google-site-kit"),E(y(e),e%10==0?{}:t)):1e4<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(p.__)("%sK","google-site-kit"),E(y(e))):1e3<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(p.__)("%sK","google-site-kit"),E(y(e),e%10==0?{}:t)):E(e,{signDisplay:"never",maximumFractionDigits:1})},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return v(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(n=b({},t))}var r=n,a=r.style,i=void 0===a?"metric":a;return"metric"===i?O(e):"duration"===i?v(e,t):E(e,n)},S=f()(console.warn),E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?j():n,i=l()(t,["locale"]);try{return new Intl.NumberFormat(r,i).format(e)}catch(t){S("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],u={},d=0,g=Object.entries(i);d<g.length;d++){var f=a()(g[d],2),p=f[0],m=f[1];c[p]&&m===c[p]||(s.includes(p)||(u[p]=m))}try{return new Intl.NumberFormat(r,u).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?j():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:i,type:c});return s.format(e)}
/* translators: used between list items, there is a space after the comma. */var u=Object(p.__)(", ","google-site-kit");return e.join(u)},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(15))},63:function(e,t,n){"use strict";n.d(t,"n",(function(){return E})),n.d(t,"l",(function(){return k.a})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return v})),n.d(t,"j",(function(){return h})),n.d(t,"k",(function(){return y})),n.d(t,"i",(function(){return O})),n.d(t,"h",(function(){return _})),n.d(t,"g",(function(){return b})),n.d(t,"f",(function(){return S})),n.d(t,"c",(function(){return j})),n.d(t,"m",(function(){return R})),n.d(t,"b",(function(){return N})),n.d(t,"a",(function(){return T}));var r=n(25),a=n.n(r),i=n(23),o=n(8),c=n.n(o),s=n(2),u=n(61),l=n(218),d=n(9),g=n(131),f=n(13),p=n.n(f),m=n(12),b=function(e){return(parseInt(e,10)||0)>0};function v(e){return e===m.a||b(e)}function h(e){return"string"==typeof e&&/^UA-\d+-\d+$/.test(e)}function y(e){return e===m.h||h(e)}function O(e){return e===m.g||b(e)}function _(e){return"string"==typeof e&&e.trim().length>0}function S(e){return"string"==typeof e&&/^AW-[0-9]+$/.test(e)}function E(e){if(!h(e))return!1;var t=e.match(/^UA-(\d+)-(\d+)/),n=p()(t,3);return{accountID:n[1],propertyID:e,number:n[2]}}var k=n(173);function j(e,t){for(var n=1;n<e.length;n++){var r,a;if(null===(r=e[n])||void 0===r||null===(a=r[t])||void 0===a?void 0:a[0])return"HH:mm:ss"}return"mm:ss"}var A=n(60);function w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function R(e,t){var n,r=(Array.isArray(t)?t:[t]).map(A.c),a=w(e);try{for(a.s();!(n=a.n()).done;){var i=n.value,o=i.websiteUrl;if(o){var c,s=w(r);try{for(s.s();!(c=s.n()).done;){if(c.value===Object(A.c)(o))return i}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){a.e(e)}finally{a.f()}return null}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return null;var n=t.keyColumnIndex,r=void 0===n?0:n,a=t.maxSlices,i=t.withOthers,o=void 0!==i&&i,c=t.tooltipCallback,u=e[0].data,l=u.rows,d="function"==typeof c,g=["Source","Percent"];d&&g.push({type:"string",role:"tooltip",p:{html:!0}});var f=u.totals[0].values[r],p=[g],m=o,b=l.length,v=1;a>0?(m=o&&l.length>a,b=Math.min(l.length,m?a-1:a)):(m=!1,b=l.length);for(var h=0;h<b;h++){var y=l[h],O=y.metrics[0].values[r],_=O/f;v-=_;var S=[y.dimensions[0],_];d&&S.push(c(y,S)),p.push(S)}if(m&&v>0){var E=[Object(s.__)("Others","google-site-kit"),v];d&&E.push(c(null,E)),p.push(E)}return p}function C(e,t,n){var r=[];return Object(i.each)(e,(function(e){if(e.metrics){var a=e.metrics[t].values,i=e.dimensions[0],o=Object(l.a)(i);r.push([o,a[n]])}})),r}function T(e,t,n){var r,o,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Array.isArray(null===(r=e[0])||void 0===r||null===(o=r.data)||void 0===o?void 0:o.rows))return!1;var p=a()(e[0].data.rows),m=p.length;if(2*n>m){for(var b=new Date,v=0;n>v;v++){var h=(b.getMonth()+1).toString(),y=b.getDate().toString(),O=b.getFullYear().toString()+(2>h.length?"0":"")+h+(2>y.length?"0":"")+y;if(v>m){var _={dimensions:[O],metrics:[{values:[0,0,0,0,0]}]};p.unshift(_)}b.setDate(b.getDate()-1)}p.push([0,0])}var S=[Object(s.__)("Users","google-site-kit"),Object(s.__)("Sessions","google-site-kit"),Object(s.__)("Bounce Rate %","google-site-kit"),Object(s.__)("Session Duration","google-site-kit")],E=[function(e){return parseFloat(e).toLocaleString()},function(e){return parseFloat(e).toLocaleString()},function(e){return Object(d.q)(e/100,{style:"percent",signDisplay:"never",maximumFractionDigits:2})},function(e){return Object(d.q)(e,"s")}],k=S[t]===Object(s.__)("Session Duration","google-site-kit"),j=k?"timeofday":"number",A=[[{type:"date",label:Object(s.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:j,label:S[t]},{type:j,label:Object(s.__)("Previous period","google-site-kit")}]],w=Object(g.a)(p,{dateRangeLength:n}),D=w.compareRange,R=w.currentRange,N=C(R,l,t),T=C(D,f,t),P=Object(u.a)(),I={weekday:"short",month:"short",day:"numeric"};return Object(i.each)(N,(function(e,n){if(e[0]&&e[1]&&T[n]){var r=parseFloat(T[n][1]),a=0!==r?e[1]/r-1:1,i=Object(d.f)(a),o=Object(s.sprintf)(
/* translators: 1: date for user stats, 2: previous date for user stats comparison */
Object(s._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(P,I),T[n][0].toLocaleDateString(P,I)),u=Object(s.sprintf)(
/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
Object(s._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),S[t],E[t](e[1]),i,Object(d.q)(Math.abs(a),"%"));A.push([e[0],'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":a>0,"googlesitekit-visualization-tooltip--down":a<0}),'">\n\t\t\t\t<p>').concat(o,"</p>\n\t\t\t\t<p>").concat(u,"</p>\n\t\t\t</div>"),k?Object(d.c)(e[1]):e[1],k?Object(d.c)(T[n][1]):T[n][1]])}})),A}},65:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return d}));var r=n(13),a=n.n(r),i=n(2);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===n)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var s=document.createElement("span");return s.setAttribute("class","screen-reader-text"),s.textContent=Object(i.sprintf)(
/* translators: %d is the number of notifications */
Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(s),t&&null===r&&t.appendChild(o),n&&null===a&&n.appendChild(o),o},u=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},l=function(e){for(var t=location.search.substr(1).split("&"),n={},r=0;r<t.length;r++)n[t[r].split("=")[0]]=decodeURIComponent(t[r].split("=")[1]);return e?n.hasOwnProperty(e)?decodeURIComponent(n[e].replace(/\+/g," ")):"":n},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(t.href);if(e)return n.searchParams&&n.searchParams.get?n.searchParams.get(e):l(e);var r,i={},c=o(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var s=a()(r.value,2),u=s[0],d=s[1];i[u]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,n(15))},653:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Table}));var r=n(6),a=n.n(r),i=n(13),o=n.n(i),c=n(2),s=n(0),u=n.n(s),l=n(5),d=n.n(l),g=n(219),f=n(235),p=n(19),m=n(12),b=n(29),v=n(11),h=n(457),y=n(143),O=n(9);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var S=d.a.useSelect;function Table(t){var n=t.report,r=S((function(e){var t=e(v.a).getDateRangeDates({offsetDays:m.b}),n=t.startDate,r=t.endDate,a=e(b.b).getReport({startDate:n,endDate:r,metrics:"ESTIMATED_EARNINGS"});return Object(h.a)(a)})),i=[{title:Object(c.__)("Page Title","google-site-kit"),description:Object(c.__)("Page Title","google-site-kit"),primary:!0,Component:function Component(t){var n=t.row,r=o()(n.dimensions,2),i=r[0],c=r[1],s=S((function(e){return e(v.a).getDateRangeDates({offsetDays:m.b})})),u=S((function(e){return e(m.f).getServiceReportURL("content-pages",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"explorer-table.plotKeys":"[]","_r.drilldown":"analytics.pagePath:".concat(c)},Object(y.a)(s)))}));return e.createElement(p.a,{href:u,external:!0,inherit:!0},i)}},{title:Object(c.__)("Earnings","google-site-kit"),description:Object(c.__)("Earnings","google-site-kit"),field:"metrics.0.values.0",Component:function Component(t){var n=t.fieldValue;return e.createElement("span",null,Object(O.q)(n,r))}},{title:Object(c.__)("Page RPM","google-site-kit"),description:Object(c.__)("Page RPM","google-site-kit"),field:"metrics.0.values.1",Component:function Component(t){var n=t.fieldValue;return e.createElement("span",null,Object(O.q)(n,r))}},{title:Object(c.__)("Impressions","google-site-kit"),description:Object(c.__)("Impressions","google-site-kit"),field:"metrics.0.values.2",Component:function Component(t){var n=t.fieldValue;return e.createElement("span",null,Object(O.q)(n,{style:"decimal"}))}}];return e.createElement(f.a,null,e.createElement(g.a,{rows:n[0].data.rows,columns:i}))}Table.propTypes={report:u.a.arrayOf(u.a.object).isRequired}}).call(this,n(1))},654:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(17),o=n(9),c=n(79),s=function Overview(t){var n,r,a=t.metrics,s=t.currentRangeData,u=t.previousRangeData,l=t.selectedStats,d=t.handleStatsSelection,g=s.totals,f=s.headers,p=u.totals,m={smSize:2,mdSize:2,lgSize:3};return e.createElement(i.b,null,e.createElement(i.l,null,e.createElement(i.a,m,e.createElement(c.a,{stat:0,className:"googlesitekit-data-block--page-rpm googlesitekit-data-block--button-1",title:a[f[0].name],datapoint:(null==g?void 0:g.cells[0].value)||0,datapointUnit:null===(n=f[0])||void 0===n?void 0:n.currencyCode,change:Object(o.a)((null==p?void 0:p.cells[0].value)||0,(null==g?void 0:g.cells[0].value)||0),changeDataUnit:"%",context:"button",selected:0===l,handleStatSelection:d})),e.createElement(i.a,m,e.createElement(c.a,{stat:1,className:"googlesitekit-data-block--page-rpm googlesitekit-data-block--button-2",title:a[f[1].name],datapoint:(null==g?void 0:g.cells[1].value)||0,datapointUnit:null===(r=f[1])||void 0===r?void 0:r.currencyCode,change:Object(o.a)((null==p?void 0:p.cells[1].value)||0,(null==g?void 0:g.cells[1].value)||0),changeDataUnit:"%",context:"button",selected:1===l,handleStatSelection:d})),e.createElement(i.a,m,e.createElement(c.a,{stat:2,className:"googlesitekit-data-block--page-rpm googlesitekit-data-block--button-3",title:a[f[2].name],datapoint:(null==g?void 0:g.cells[2].value)||0,change:Object(o.a)((null==p?void 0:p.cells[2].value)||0,(null==g?void 0:g.cells[2].value)||0),changeDataUnit:"%",context:"button",selected:2===l,handleStatSelection:d})),e.createElement(i.a,m,e.createElement(c.a,{stat:3,className:"googlesitekit-data-block--impression googlesitekit-data-block--button-4",title:a[f[3].name],datapoint:(null==g?void 0:g.cells[3].value)||0,datapointUnit:"%",change:Object(o.a)((null==p?void 0:p.cells[3].value)||0,(null==g?void 0:g.cells[3].value)||0),changeDataUnit:"%",context:"button",selected:3===l,handleStatSelection:d}))))};s.propTypes={metrics:a.a.object,currentRangeData:a.a.object,previousRangeData:a.a.object,selectedStats:a.a.number.isRequired,handleStatsSelection:a.a.func.isRequired},t.a=s}).call(this,n(1))},655:function(e,t,n){"use strict";(function(e){var r=n(13),a=n.n(r),i=n(0),o=n.n(i),c=n(220),s=n(17),u=n(184),l=function Stats(t){var n=t.metrics,r=t.currentRangeData,i=t.previousRangeData,o=t.selectedStats,l=Object(c.a)(r,i,Object.values(n)[o],o+1,r.headers[o+1]),d=["#4285f4","#27bcd4","#1b9688","#673ab7"],g={curveType:"function",height:270,width:"100%",chartArea:{height:"80%",width:"100%",left:60},legend:{position:"top",textStyle:{color:"#616161",fontSize:12}},hAxis:{format:"M/d/yy",gridlines:{color:"#fff"},textStyle:{color:"#616161",fontSize:12},ticks:l.slice(1).map((function(e){return a()(e,1)[0]}))},vAxis:{format:{METRIC_TALLY:void 0,METRIC_CURRENCY:"currency",METRIC_RATIO:"percent",METRIC_DECIMAL:"decimal",METRIC_MILLISECONDS:void 0}[r.headers[o+1].type],gridlines:{color:"#eee"},minorGridlines:{color:"#eee"},textStyle:{color:"#616161",fontSize:12},titleTextStyle:{color:"#616161",fontSize:12,italic:!1},viewWindow:{min:0}},focusTarget:"category",crosshair:{color:"gray",opacity:.1,orientation:"vertical",trigger:"both"},tooltip:{isHtml:!0,trigger:"both"},series:{0:{color:d[o],targetAxisIndex:0},1:{color:d[o],targetAxisIndex:0,lineDashStyle:[3,3],lineWidth:1}}};return e.createElement(s.b,{className:"googlesitekit-adsense-site-stats"},e.createElement(s.l,null,e.createElement(s.a,{size:12},e.createElement(u.a,{chartType:"LineChart",data:l,loadingHeight:"270px",loadingWidth:"100%",options:g}))))};l.propTypes={metrics:o.a.object,currentRangeData:o.a.object,previousRangeData:o.a.object,selectedStats:o.a.number.isRequired},t.a=l}).call(this,n(1))},66:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProgressBar}));var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ProgressBar(t){var n=t.className,r=t.small,a=t.compress,i=t.indeterminate,c=t.height,s=t.progress,u=void 0!==c?Math.round(c/2):void 0,l=s?"scaleX(".concat(s,")"):void 0;return e.createElement("div",{role:"progressbar",style:{marginTop:u,marginBottom:u},className:o()("mdc-linear-progress",n,{"mdc-linear-progress--indeterminate":i,"mdc-linear-progress--small":r,"mdc-linear-progress--compress":a})},e.createElement("div",{className:"mdc-linear-progress__buffering-dots"}),e.createElement("div",{className:"mdc-linear-progress__buffer"}),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:{transform:l}},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})))}ProgressBar.propTypes={className:a.a.string,small:a.a.bool,compress:a.a.bool,indeterminate:a.a.bool,progress:a.a.number,height:a.a.number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0}}).call(this,n(1))},67:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}));var r=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},a=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},68:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return D})),n.d(t,"c",(function(){return R})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return T})),n.d(t,"g",(function(){return I})),n.d(t,"f",(function(){return x}));var r,a=n(3),i=n.n(a),o=n(25),c=n.n(o),s=n(6),u=n.n(s),l=n(7),d=n.n(l),g=n(211),f=n.n(g),p=n(59),m=n.n(p),b=n(100);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return h(h({},e),t)}),{}),a=t.reduce((function(e,t){return[].concat(c()(e),c()(Object.keys(t)))}),[]),i=N(a);return d()(0===i.length,"collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ".concat(i.join(", "),". Check your data stores for duplicates.")),r},O=y,_=y,S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,a=[].concat(t);return"function"!=typeof a[0]&&(r=a.shift()),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a.reduce((function(e,n){return n(e,t)}),e)}},E=y,k=y,j=y,A=function(e){return e},w=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=j.apply(void 0,c()(t.map((function(e){return e.initialState||{}}))));return{initialState:r,controls:_.apply(void 0,c()(t.map((function(e){return e.controls||{}})))),actions:O.apply(void 0,c()(t.map((function(e){return e.actions||{}})))),reducer:S.apply(void 0,[r].concat(c()(t.map((function(e){return e.reducer||A}))))),resolvers:E.apply(void 0,c()(t.map((function(e){return e.resolvers||{}})))),selectors:k.apply(void 0,c()(t.map((function(e){return e.selectors||{}}))))}},D={getRegistry:function(){return{payload:{},type:"GET_REGISTRY"}},await:i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{payload:{value:t},type:"AWAIT"});case 1:case"end":return e.stop()}}),e)}))},R=(r={},u()(r,"GET_REGISTRY",Object(b.d)((function(e){return function(){return e}}))),u()(r,"AWAIT",(function(e){return e.payload.value})),r),N=function(e){for(var t=[],n={},r=0;r<e.length;r++){var a=e[r];n[a]=n[a]>=1?n[a]+1:1,n[a]>1&&t.push(a)}return t},C={actions:D,controls:R,reducer:A},T=function(e){return function(t){return P(e(t))}},P=m()((function(e){return f()(e,(function(e,t){return function(){var n=e.apply(void 0,arguments);return d()(void 0!==n,"".concat(t,"(...) is not resolved")),n}}))}));function I(e){return{safeSelector:Object(b.e)((function(t){return function(n){try{for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return e.apply(void 0,[t,n].concat(a)),!0}catch(e){return!1}}})),dangerousSelector:Object(b.e)((function(t){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];e.apply(void 0,[t,n].concat(a))}}))}}function x(e,t){return d()("function"==typeof e,"a validator function is required."),d()("function"==typeof t,"an action creator function is required."),d()("Generator"!==e[Symbol.toStringTag]&&"GeneratorFunction"!==e[Symbol.toStringTag],"an action’s validator function must not be a generator."),function(){return e.apply(void 0,arguments),t.apply(void 0,arguments)}}},70:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(21),a=n.n(r),i=n(64),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))}},71:function(e,t,n){"use strict";(function(e){n(33),n(34)}).call(this,n(15))},72:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},73:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]}},74:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(179),a=n(56),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,s,u,l,d,g,f,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.metrics)||void 0===s||null===(u=s[0])||void 0===u||null===(l=u.values)||void 0===l?void 0:l[0])===(null==e||null===(d=e[0])||void 0===d||null===(g=d.data)||void 0===g||null===(f=g.totals)||void 0===f||null===(p=f[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(1))},75:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(6),a=n.n(r),i=n(76),o=n(77);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=s(s({},u),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(15))},76:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(44),a=n(27);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(15))},77:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f}));var r=n(3),a=n.n(r),i=n(6),o=n.n(i),c=n(10),s=n.n(c),u=n(44),l=n(32);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(t,n,r){var i=Object(u.a)(n);return function(){var n=s()(a.a.mark((function n(o,c,s,u){var d,f,p,m,b,v,h,y;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,b=t.trackingEnabled,v=t.trackingID,h=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(f=d.ioo)||void 0===f?void 0:f.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(b){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:v,event_category:o,event_label:s,value:u,dimension1:m,dimension2:p?"true":"false",dimension3:h,dimension4:"1.39.0",dimension5:Array.from(l.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,g(g({},y),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(15))},78:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(103),a=n.n(r)()(e)}).call(this,n(15))},79:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(62),s=n.n(c),u=n(45),l=n.n(u),d=n(46),g=n.n(d),f=n(30),p=n.n(f),m=n(0),b=n.n(m),v=n(8),h=n.n(v),y=n(1),O=n(2),_=n(56),S=n(93),E=n(9);function k(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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)}}var j=function(t){l()(DataBlock,t);var n=k(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(s()(t)),t.handleKeyPress=t.handleKeyPress.bind(s()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,s=t.context,u=t.period,l=t.selected,d=t.handleStatSelection,g=t.source,f=t.sparkline,p=t.invertChangeColor,m="button"===s?"button":"",b=f;b&&p&&(b=Object(y.cloneElement)(f,{invertChangeColor:p}));var v=o;c&&(v="%"===c?Object(E.q)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(E.q)(o,c)),u&&(v=Object(O.sprintf)(u,v));var k=a&&Object(E.q)(a,i||void 0);return e.createElement("div",{className:h()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(s),{"googlesitekit-data-block--selected":l}),tabIndex:"button"===s?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&l},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},k)),b&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},b),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:h()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(_.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),g&&e.createElement(S.a,{className:"googlesitekit-data-block__source",name:g.name,href:g.link,external:null==g?void 0:g.external})))}}]),DataBlock}(y.Component);j.propTypes={stat:b.a.number,onClick:b.a.func,className:b.a.string,title:b.a.string,datapoint:b.a.oneOfType([b.a.string,b.a.number]),datapointUnit:b.a.string,change:b.a.oneOfType([b.a.string,b.a.number]),changeDataUnit:b.a.oneOfType([b.a.string,b.a.bool]),context:b.a.string,period:b.a.string,selected:b.a.bool,handleStatSelection:b.a.func,invertChangeColor:b.a.bool},j.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=j}).call(this,n(1))},80:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(228);function PreviewBlock(t){var n=t.className,r=t.width,a=t.height,i=t.shape,s=t.padding,u=t.smallWidth,l=t.smallHeight,d=t.tabletWidth,g=t.tabletHeight,f=t.desktopWidth,p=t.desktopHeight,m=Object(c.a)(),b=r,v=a;return"small"===m&&u&&l&&(b=u,v=l),"tablet"===m&&d&&g&&(b=d,v=g),("xlarge"===m||"desktop"===m)&&f&&p&&(b=f,v=p),e.createElement("div",{className:o()("googlesitekit-preview-block",n,{"googlesitekit-preview-block--padding":s}),style:{width:b,height:v}},e.createElement("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===i})}))}PreviewBlock.propTypes={className:a.a.string,width:a.a.string,height:a.a.string,shape:a.a.string,padding:a.a.bool,smallWidth:a.a.string,smallHeight:a.a.string,tabletWidth:a.a.string,tabletHeight:a.a.string,desktopWidth:a.a.string,desktopHeight:a.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,n(1))},83:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(191),o=n(2),c=n(9);function ErrorText(t){var n=t.message,r=t.reconnectURL;if(!n)return null;var a=Object(o.sprintf)(
/* translators: %s: Error message */
Object(o.__)("Error: %s","google-site-kit"),n);r&&Object(i.a)(r)&&(a=a+" "+Object(o.sprintf)(
/* translators: %s: Reconnect URL */
Object(o.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),r));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.s)(a,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:a.a.string.isRequired,reconnectURL:a.a.string},ErrorText.defaultProps={reconnectURL:""},t.a=ErrorText}).call(this,n(1))},84:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return i}));n(53);var r="missing_required_scopes";function a(e){return(null==e?void 0:e.code)===r}function i(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},87:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(19),s=function CTA(t){var n=t.title,r=t.description,a=t.ctaLink,i=t.ctaLabel,s=t.error,u=t.onClick,l=t["aria-label"];return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":s})},n&&e.createElement("h3",{className:"googlesitekit-cta__title"},n),r&&"string"==typeof r&&e.createElement("p",{className:"googlesitekit-cta__description"},r),r&&"string"!=typeof r&&e.createElement("div",{className:"googlesitekit-cta__description"},r),i&&e.createElement(c.a,{href:a,onClick:u,inverse:!s,caps:!0,arrow:!0,"aria-label":l},i))};s.propTypes={title:a.a.string.isRequired,description:a.a.oneOfType([a.a.string,a.a.node]),ctaLink:a.a.string,ctaLabel:a.a.string,"aria-label":a.a.string,error:a.a.bool,onClick:a.a.func},s.defaultProps={title:"",description:"",ctaLink:"",ctaLabel:"",error:!1,onClick:function(){}},t.a=s}).call(this,n(1))},88:function(e,t,n){"use strict";var r=n(96);n.d(t,"a",(function(){return r.a}));var a=n(97);n.d(t,"c",(function(){return a.a}));var i=n(98);n.d(t,"b",(function(){return i.a}))},9:function(e,t,n){"use strict";(function(e){n.d(t,"k",(function(){return k})),n.d(t,"a",(function(){return j})),n.d(t,"i",(function(){return A})),n.d(t,"x",(function(){return w})),n.d(t,"d",(function(){return D}));var r=n(6),a=n.n(r),i=n(21),o=n.n(i),c=n(102),s=n.n(c),u=n(99),l=n.n(u),d=n(36);n.d(t,"v",(function(){return d.b}));var g=n(55);n.d(t,"s",(function(){return g.a})),n.d(t,"w",(function(){return g.b}));var f=n(70);n.d(t,"u",(function(){return f.a}));var p=n(65);n.d(t,"b",(function(){return p.b})),n.d(t,"j",(function(){return p.c}));n(71);var m=n(61);n.d(t,"h",(function(){return m.a})),n.d(t,"n",(function(){return m.b})),n.d(t,"q",(function(){return m.c})),n.d(t,"r",(function(){return m.d}));var b=n(47);n.d(t,"e",(function(){return b.b}));var v=n(72);n.d(t,"o",(function(){return v.a}));var h=n(73);n.d(t,"c",(function(){return h.a}));var y=n(50);n.d(t,"t",(function(){return y.i}));var O=n(74);n.d(t,"f",(function(){return O.a})),n.d(t,"m",(function(){return O.b}));var _=n(60);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,"g",(function(){return _.a})),n.d(t,"l",(function(){return _.b})),n.d(t,"p",(function(){return _.c}));var k=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},j=function(e,t){if("0"===e||0===e||isNaN(e))return null;var n=(t-e)/e;return isNaN(n)||!s()(n)?null:n},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,n=t.modules;return n?Object.keys(n).reduce((function(e,t){return"object"!==o()(n[t])||void 0===n[t].slug||void 0===n[t].name||n[t].slug!==t?e:E(E({},e),{},a()({},t,n[t]))}),{}):{}},w=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},D=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return l()(t)}}).call(this,n(15))},93:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(132),s=n(2),u=n(19);function SourceLink(t){var n=t.name,r=t.href,a=t.className,i=t.external;return e.createElement("div",{className:o()("googlesitekit-source-link",a)},Object(c.a)(Object(s.sprintf)(
/* translators: %s: source link */
Object(s.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(u.a,{key:"link",href:r,external:i,inherit:!0})}))}SourceLink.propTypes={name:a.a.string,href:a.a.string,className:a.a.string,external:a.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(1))},94:function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return g}));var r,a=n(6),i=n.n(a),o=n(43),c=n(113),s=n(116),u=n(117),l=(r={},i()(r,o.c.QUARTER,3),i()(r,o.c.HALF,6),i()(r,o.c.FULL,12),r),d="googlesitekit-hidden",g=[u.a,s.a,c.a]},96:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Cell}));var r=n(18),a=n.n(r),i=n(6),o=n.n(i),c=n(16),s=n.n(c),u=n(0),l=n.n(u),d=n(8),g=n.n(d);function Cell(t){var n,r=t.className,i=t.alignTop,c=t.alignMiddle,u=t.alignBottom,l=t.alignRight,d=t.alignLeft,f=t.smSize,p=t.smStart,m=t.mdSize,b=t.mdStart,v=t.lgSize,h=t.lgStart,y=t.size,O=t.children,_=s()(t,["className","alignTop","alignMiddle","alignBottom","alignRight","alignLeft","smSize","smStart","mdSize","mdStart","lgSize","lgStart","size","children"]);return e.createElement("div",a()({},_,{className:g()(r,"mdc-layout-grid__cell",(n={"mdc-layout-grid__cell--align-top":i,"mdc-layout-grid__cell--align-middle":c,"mdc-layout-grid__cell--align-bottom":u,"mdc-layout-grid__cell--align-right":l,"mdc-layout-grid__cell--align-left":d},o()(n,"mdc-layout-grid__cell--span-".concat(y),12>=y&&y>0),o()(n,"mdc-layout-grid__cell--span-".concat(v,"-desktop"),12>=v&&v>0),o()(n,"mdc-layout-grid__cell--start-".concat(h,"-desktop"),12>=h&&h>0),o()(n,"mdc-layout-grid__cell--span-".concat(m,"-tablet"),8>=m&&m>0),o()(n,"mdc-layout-grid__cell--start-".concat(b,"-tablet"),8>=b&&b>0),o()(n,"mdc-layout-grid__cell--span-".concat(f,"-phone"),4>=f&&f>0),o()(n,"mdc-layout-grid__cell--start-".concat(p,"-phone"),4>=p&&p>0),n))}),O)}Cell.propTypes={smSize:l.a.number,smStart:l.a.number,mdSize:l.a.number,mdStart:l.a.number,lgSize:l.a.number,lgStart:l.a.number,size:l.a.number,alignTop:l.a.bool,alignMiddle:l.a.bool,alignBottom:l.a.bool,alignRight:l.a.bool,alignLeft:l.a.bool,className:l.a.string,children:l.a.node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,mdSize:0,mdStart:0,lgSize:0,lgStart:0}}).call(this,n(1))},964:function(e,t,n){"use strict";n.r(t);var r=n(5),a=n.n(r),i=n(122),o=n.n(i),c=n(268),s=n.n(c),u=n(3),l=n.n(u),d=n(10),g=n.n(d),f=n(51),p=n(2),m=n(119),b=n(9),v=(n(420),n(423),n(424),n(425),n(426),n(427),n(558)),h=(n(428),n(377),n(559)),y=(n(429),n(560)),O=n(561),_=n(33),S=n.n(_),E=n(34),k=n.n(E),j=n(45),A=n.n(j),w=n(46),D=n.n(w),R=n(30),N=n.n(R),C=n(977);function T(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N()(e);if(t){var a=N()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return D()(this,n)}}var P,I=function(e){A()(LegacyDashboardAdSenseTopPages,e);var t=T(LegacyDashboardAdSenseTopPages);function LegacyDashboardAdSenseTopPages(){return S()(this,LegacyDashboardAdSenseTopPages),t.apply(this,arguments)}return k()(LegacyDashboardAdSenseTopPages,[{key:"render",value:function(){return null}}]),LegacyDashboardAdSenseTopPages}(n(1).Component),x=(Object(C.a)("googlesitekit.AnalyticsAdSenseTopPagesTable")(I),n(430)),L=n(562),U=n(565),M=n(431),F=n(566),W=n(455),G=n(29),q=n(43),B=n(6),H=n.n(B),z=n(7),K=n.n(z),V=n(145),Y=n(220),$=n(68);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){H()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var X=a.a.commonActions,J=a.a.createRegistryControl,ee={originalAccountStatus:void 0},te={completeAccountSetup:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"COMPLETE_ACCOUNT_SETUP"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),completeSiteSetup:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"COMPLETE_SITE_SETUP"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),receiveOriginalAccountStatus:function(e){return K()(e,"originalAccountStatus is required."),{payload:{originalAccountStatus:e},type:"RECEIVE_ORIGINAL_ACCOUNT_STATUS"}}},ne=(P={},H()(P,"COMPLETE_ACCOUNT_SETUP",J((function(e){return g()(l.a.mark((function t(){var n;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(G.b).setAccountSetupComplete(!0);case 2:if(e.select(G.b).canSubmitChanges()){t.next=6;break}return t.next=5,e.dispatch(G.b).setAccountSetupComplete(!1);case 5:return t.abrupt("return",!1);case 6:return t.next=8,e.dispatch(G.b).submitChanges();case 8:if(n=t.sent,!n.error){t.next=14;break}return t.next=13,e.dispatch(G.b).setAccountSetupComplete(!1);case 13:return t.abrupt("return",!1);case 14:return t.abrupt("return",!0);case 15:case"end":return t.stop()}}),t)})))}))),H()(P,"COMPLETE_SITE_SETUP",J((function(e){return g()(l.a.mark((function t(){var n;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(G.b).setSiteSetupComplete(!0);case 2:if(e.select(G.b).canSubmitChanges()){t.next=6;break}return t.next=5,e.dispatch(G.b).setSiteSetupComplete(!1);case 5:return t.abrupt("return",!1);case 6:return t.next=8,e.dispatch(G.b).submitChanges();case 8:if(n=t.sent,!n.error){t.next=14;break}return t.next=13,e.dispatch(G.b).setSiteSetupComplete(!1);case 13:return t.abrupt("return",!1);case 14:return t.abrupt("return",!0);case 15:case"end":return t.stop()}}),t)})))}))),P),re={getOriginalAccountStatus:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X.getRegistry();case 2:if(t=e.sent,void 0===t.select(G.b).getOriginalAccountStatus()){e.next=6;break}return e.abrupt("return");case 6:t.select(G.b).getSettings();case 7:case"end":return e.stop()}}),e)}))},ae={isDoingSaveUseSnippet:function(e){return Object.values(e.isFetchingSaveUseSnippet).some(Boolean)},getOriginalAccountStatus:function(e){return e.originalAccountStatus}};var ie=a.a.combineStores({initialState:ee,actions:te,controls:ne,reducer:function(e,t){var n=t.type,r=t.payload;switch(n){case"RECEIVE_ORIGINAL_ACCOUNT_STATUS":var a=r.originalAccountStatus;return Q(Q({},e),{},{originalAccountStatus:a});case"RECEIVE_GET_SETTINGS":var i=r.response.accountStatus;return void 0===e.originalAccountStatus?Q(Q({},e),{},{originalAccountStatus:i}):e;default:return e}},resolvers:re,selectors:ae}),oe=(ie.initialState,ie.actions,ie.controls,ie.reducer,ie.resolvers,ie.selectors,ie),ce=o.a.createModuleStore("adsense",{storeName:G.b,settingSlugs:["accountID","clientID","useSnippet","accountStatus","siteStatus","accountSetupComplete","siteSetupComplete","ownerID","webStoriesAdUnit","autoAdsDisabled"],adminPage:"googlesitekit-module-adsense",validateCanSubmitChanges:function(e){var t=Object($.e)(e)(G.b),n=t.getAccountID,r=t.getClientID,a=t.getAccountStatus,i=t.haveSettingsChanged,o=t.isDoingSubmitChanges;K()(!o(),V.a),K()(i(),V.b),K()(a(),"require an account status to be present");var c=n();K()(""===c||Object(Y.b)(c),"require account ID to be either empty (if impossible to determine) or valid");var s=r();K()(""===s||Object(Y.c)(s),"require client ID to be either empty (if impossible to determine) or valid")}}),se=n(25),ue=n.n(se),le=n(26),de=n.n(le),ge=n(40),fe=n(49);function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach((function(t){H()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var be=Object(ge.a)({baseName:"getAccounts",controlCallback:function(){return de.a.get("modules","adsense","accounts",void 0,{useCache:!1})},reducerCallback:function(e,t){return me(me({},e),{},{accounts:ue()(t)})}}),ve={accounts:void 0},he={resetAccounts:l.a.mark((function e(){var t,n;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.getRegistry();case 2:return t=e.sent,n=t.dispatch,e.next=6,{payload:{},type:"RESET_ACCOUNTS"};case 6:return e.next=8,fe.a.clearErrors("getAccounts");case 8:return e.abrupt("return",n(G.b).invalidateResolutionForStoreSelector("getAccounts"));case 9:case"end":return e.stop()}}),e)}))},ye={getAccounts:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.getRegistry();case 2:if(t=e.sent,!t.select(G.b).getAccounts()){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,be.actions.fetchGetAccounts();case 8:case"end":return e.stop()}}),e)}))},Oe=a.a.combineStores(be,{initialState:ve,actions:he,reducer:function(e,t){switch(t.type){case"RESET_ACCOUNTS":var n=e.savedSettings||{},r=n.accountID,a=n.clientID,i=n.accountStatus,o=n.siteStatus,c=n.accountSetupComplete,s=n.siteSetupComplete;return me(me({},e),{},{accounts:ve.accounts,settings:me(me({},e.settings||{}),{},{accountID:r,clientID:a,accountStatus:i,siteStatus:o,accountSetupComplete:c,siteSetupComplete:s})});default:return e}},resolvers:ye,selectors:{getAccounts:function(e){return e.accounts}}}),_e=(Oe.initialState,Oe.actions,Oe.controls,Oe.reducer,Oe.resolvers,Oe.selectors,Oe);function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){H()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ke=Object(ge.a)({baseName:"getAdUnits",controlCallback:function(e){var t=e.accountID,n=e.clientID;return de.a.get("modules","adsense","adunits",{accountID:t,clientID:n},{useCache:!1})},reducerCallback:function(e,t,n){var r=n.accountID,a=n.clientID;return Ee(Ee({},e),{},{adunits:Ee(Ee({},e.adunits),{},H()({},"".concat(r,"::").concat(a),t))})},argsToParams:function(e,t){return{accountID:e,clientID:t}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.accountID,n=e.clientID;K()(t,"accountID is required."),K()(n,"clientID is required.")}}),je={getAdUnits:l.a.mark((function e(t,n){var r;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t&&void 0!==n){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,a.a.commonActions.getRegistry();case 4:if(r=e.sent,!r.select(G.b).getAdUnits(t,n)){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,ke.actions.fetchGetAdUnits(t,n);case 10:case"end":return e.stop()}}),e)}))},Ae={getAdUnits:function(e,t,n){if(void 0!==t&&void 0!==n)return e.adunits["".concat(t,"::").concat(n)]}},we=a.a.combineStores(ke,{initialState:{adunits:{}},actions:{},reducer:function(e,t){t.type;return e},resolvers:je,selectors:Ae}),De=(we.initialState,we.actions,we.controls,we.reducer,we.resolvers,we.selectors,we);function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){H()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ce=Object(ge.a)({baseName:"getAlerts",controlCallback:function(e){var t=e.accountID;return de.a.get("modules","adsense","alerts",{accountID:t},{useCache:!1})},reducerCallback:function(e,t,n){var r=n.accountID;return Ne(Ne({},e),{},{alerts:Ne(Ne({},e.alerts),{},H()({},r,ue()(t)))})},argsToParams:function(e){return{accountID:e}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.accountID;K()(t,"accountID is required.")}}),Te={resetAlerts:l.a.mark((function e(){var t,n;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.getRegistry();case 2:return t=e.sent,n=t.dispatch,e.next=6,{payload:{},type:"RESET_ALERTS"};case 6:return e.next=8,fe.a.clearErrors("getAlerts");case 8:return e.abrupt("return",n(G.b).invalidateResolutionForStoreSelector("getAlerts"));case 9:case"end":return e.stop()}}),e)}))},Pe={getAlerts:l.a.mark((function e(t){var n;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t&&Object(Y.b)(t)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,a.a.commonActions.getRegistry();case 4:if(n=e.sent,!n.select(G.b).getAlerts(t)){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,Ce.actions.fetchGetAlerts(t);case 10:case"end":return e.stop()}}),e)}))},Ie={getAlerts:function(e,t){if(void 0!==t)return e.alerts[t]}},xe=a.a.combineStores(Ce,{initialState:{alerts:{}},actions:Te,reducer:function(e,t){switch(t.type){case"RESET_ALERTS":var n=e.savedSettings||{},r=n.accountStatus,a=n.siteStatus,i=n.accountSetupComplete,o=n.siteSetupComplete;return Ne(Ne({},e),{},{alerts:Le.alerts,settings:Ne(Ne({},e.settings||{}),{},{accountStatus:r,siteStatus:a,accountSetupComplete:i,siteSetupComplete:o})});default:return e}},resolvers:Pe,selectors:Ie}),Le=xe.initialState,Ue=(xe.actions,xe.controls,xe.reducer,xe.resolvers,xe.selectors,xe);function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){H()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var We=Object(ge.a)({baseName:"getClients",controlCallback:function(e){var t=e.accountID;return de.a.get("modules","adsense","clients",{accountID:t},{useCache:!1})},reducerCallback:function(e,t,n){var r=n.accountID;return Fe(Fe({},e),{},{clients:Fe(Fe({},e.clients),{},H()({},r,ue()(t)))})},argsToParams:function(e){return{accountID:e}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.accountID;K()(t,"accountID is required.")}}),Ge={resetClients:l.a.mark((function e(){var t,n;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.getRegistry();case 2:return t=e.sent,n=t.dispatch,e.next=6,{payload:{},type:"RESET_CLIENTS"};case 6:return e.next=8,fe.a.clearErrors("getClients");case 8:return e.abrupt("return",n(G.b).invalidateResolutionForStoreSelector("getClients"));case 9:case"end":return e.stop()}}),e)}))},qe={getClients:l.a.mark((function e(t){var n;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t&&Object(Y.b)(t)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,a.a.commonActions.getRegistry();case 4:if(n=e.sent,!n.select(G.b).getClients(t)){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,We.actions.fetchGetClients(t);case 10:case"end":return e.stop()}}),e)}))},Be={getClients:function(e,t){if(void 0!==t)return e.clients[t]}},He=a.a.combineStores(We,{initialState:{clients:{}},actions:Ge,reducer:function(e,t){switch(t.type){case"RESET_CLIENTS":var n=e.savedSettings||{},r=n.clientID,a=n.accountStatus,i=n.siteStatus,o=n.accountSetupComplete,c=n.siteSetupComplete;return Fe(Fe({},e),{},{clients:ze.clients,settings:Fe(Fe({},e.settings||{}),{},{clientID:r,accountStatus:a,siteStatus:i,accountSetupComplete:o,siteSetupComplete:c})});default:return e}},resolvers:qe,selectors:Be}),ze=He.initialState,Ke=(He.actions,He.controls,He.reducer,He.resolvers,He.selectors,He),Ve=n(53),Ye=n.n(Ve),$e=n(249),Ze=n(369),Qe=n.n(Ze),Xe=["ACTIVE_VIEW_MEASURABILITY","ACTIVE_VIEW_TIME","ACTIVE_VIEW_VIEWABILITY","AD_REQUESTS_COVERAGE","AD_REQUESTS_CTR","AD_REQUESTS_RPM","AD_REQUESTS_SPAM_RATIO","AD_REQUESTS","ADS_PER_IMPRESSION","CLICKS_SPAM_RATIO","CLICKS","COST_PER_CLICK","ESTIMATED_EARNINGS","IMPRESSIONS_CTR","IMPRESSIONS_RPM","IMPRESSIONS_SPAM_RATIO","IMPRESSIONS","INDIVIDUAL_AD_IMPRESSIONS_CTR","INDIVIDUAL_AD_IMPRESSIONS_RPM","INDIVIDUAL_AD_IMPRESSIONS_SPAM_RATIO","INDIVIDUAL_AD_IMPRESSIONS","MATCHED_AD_REQUESTS_CTR","MATCHED_AD_REQUESTS_RPM","MATCHED_AD_REQUESTS_SPAM_RATIO","MATCHED_AD_REQUESTS","METRIC_UNSPECIFIED","PAGE_VIEWS_CTR","PAGE_VIEWS_RPM","PAGE_VIEWS_SPAM_RATIO","PAGE_VIEWS","TOTAL_EARNINGS","TOTAL_IMPRESSIONS","WEBSEARCH_RESULT_PAGES"],Je=["ACCOUNT_NAME","AD_CLIENT_ID","AD_FORMAT_CODE","AD_FORMAT_NAME","AD_PLACEMENT_CODE","AD_PLACEMENT_NAME","AD_UNIT_ID","AD_UNIT_NAME","AD_UNIT_SIZE_CODE","AD_UNIT_SIZE_NAME","BID_TYPE_CODE","BID_TYPE_NAME","BUYER_NETWORK_ID","BUYER_NETWORK_NAME","CONTENT_PLATFORM_CODE","CONTENT_PLATFORM_NAME","COUNTRY_CODE","COUNTRY_NAME","CREATIVE_SIZE_CODE","CREATIVE_SIZE_NAME","CUSTOM_CHANNEL_ID","CUSTOM_CHANNEL_NAME","CUSTOM_SEARCH_STYLE_ID","CUSTOM_SEARCH_STYLE_NAME","DATE","DIMENSION_UNSPECIFIED","DOMAIN_CODE","DOMAIN_NAME","DOMAIN_REGISTRANT","MONTH","OWNED_SITE_DOMAIN_NAME","OWNED_SITE_ID","PLATFORM_TYPE_CODE","PLATFORM_TYPE_NAME","PRODUCT_CODE","PRODUCT_NAME","REQUESTED_AD_TYPE_CODE","REQUESTED_AD_TYPE_NAME","SERVED_AD_TYPE_CODE","SERVED_AD_TYPE_NAME","TARGETING_TYPE_CODE","TARGETING_TYPE_NAME","URL_CHANNEL_ID","URL_CHANNEL_NAME","WEBSEARCH_QUERY_STRING","WEEK"];function et(e){var t=Qe()(e);K()(t.length,"at least one metric is required.");var n=t.filter((function(e){return!Xe.includes(e)}));K()(0===n.length,"invalid AdSense metrics requested: ".concat(n.toString()))}function tt(e){var t=Qe()(e);K()(t.length,"at least one dimension is required.");var n=t.filter((function(e){return!Je.includes(e)}));K()(0===n.length,"invalid AdSense dimensions requested: ".concat(n.toString()))}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){H()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var at=Object(ge.a)({baseName:"getReport",controlCallback:function(e){var t=e.options;return de.a.get("modules","adsense","earnings",t)},reducerCallback:function(e,t,n){var r=n.options;return rt(rt({},e),{},{reports:rt(rt({},e.reports),{},H()({},Object(b.u)(r),t))})},argsToParams:function(e){return{options:e}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.options;K()(Ye()(t),"options must be an object."),K()("today"===t.dateRange||Object($e.a)(t),"Either date range or start/end dates must be provided for AdSense report.");var n=t.orderby,r=t.metrics,a=t.dimensions;K()(Object($e.d)(r),"Metrics for an AdSense report must be either a string or an array of strings."),et(r),a&&(K()(Object($e.d)(a),"Dimensions for an AdSense report must be either a string or an array of strings."),tt(a)),n&&K()(Object($e.b)(n),'Orders for an AdSense report must be either an object or an array of objects where each object should have "fieldName" and "sortOrder" properties.')}}),it={getReport:l.a.mark((function e(){var t,n,r=arguments;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,a.a.commonActions.getRegistry();case 3:if(n=e.sent,!n.select(G.b).getReport(t)){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,at.actions.fetchGetReport(t);case 9:case"end":return e.stop()}}),e)}))},ot={getReport:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.reports;return n[Object(b.u)(t)]}},ct=a.a.combineStores(at,{initialState:{reports:{}},resolvers:it,selectors:ot}),st=(ct.initialState,ct.actions,ct.controls,ct.reducer,ct.resolvers,ct.selectors,ct),ut=n(291);function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach((function(t){H()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gt=a.a.commonActions,ft=a.a.createRegistrySelector,pt=Object(ge.a)({baseName:"getTagPermission",controlCallback:function(e){var t=e.clientID;return de.a.get("modules","adsense","tag-permission",{clientID:t},{useCache:!1})},reducerCallback:function(e,t,n){var r=t.accountID,a=t.permission,i=n.clientID;return dt(dt({},e),{},{tagPermissions:dt(dt({},e.tagPermissions||{}),{},H()({},i,{accountID:r,permission:a}))})},argsToParams:function(e){return{clientID:e}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.clientID;K()(t,"clientID is required.")}}),mt=Object(ut.a)({storeName:G.b,tagMatchers:[/google_ad_client: ?["|'](.*?)["|']/,/<(?:script|amp-auto-ads) [^>]*data-ad-client="([^"]+)"/],isValidTag:Y.c}),bt={getTagPermission:l.a.mark((function e(t){var n;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,gt.getRegistry();case 4:if(n=e.sent,void 0===n.select(G.b).getTagPermission(t)){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,pt.actions.fetchGetTagPermission(t);case 10:case"end":return e.stop()}}),e)}))},vt={hasExistingTagPermission:ft((function(e){return function(){var t=e(G.b).hasExistingTag();if(void 0!==t){if(t){var n=e(G.b).getExistingTag();return e(G.b).hasTagPermission(n)}return null}}})),hasTagPermission:ft((function(e){return function(t,n){return(e(G.b).getTagPermission(n)||{}).permission}})),getTagPermission:function(e,t){return e.tagPermissions[t]}},ht=a.a.combineStores(mt,pt,{initialState:{tagPermissions:{}},resolvers:bt,selectors:vt}),yt=(ht.initialState,ht.actions,ht.controls,ht.reducer,ht.resolvers,ht.selectors,ht);function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){H()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var St=Object(ge.a)({baseName:"getURLChannels",controlCallback:function(e){var t=e.accountID,n=e.clientID;return de.a.get("modules","adsense","urlchannels",{accountID:t,clientID:n},{useCache:!1})},reducerCallback:function(e,t,n){var r=n.accountID,a=n.clientID;return _t(_t({},e),{},{urlchannels:_t(_t({},e.urlchannels),{},H()({},"".concat(r,"::").concat(a),ue()(t)))})},argsToParams:function(e,t){return{accountID:e,clientID:t}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.accountID,n=e.clientID;K()(t,"accountID is required."),K()(n,"clientID is required.")}}),Et={resetURLChannels:l.a.mark((function e(){var t,n;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.a.commonActions.getRegistry();case 2:return t=e.sent,n=t.dispatch,e.next=6,{payload:{},type:"RESET_URLCHANNELS"};case 6:return e.next=8,fe.a.clearErrors("getURLChannels");case 8:return e.abrupt("return",n(G.b).invalidateResolutionForStoreSelector("getURLChannels"));case 9:case"end":return e.stop()}}),e)}))},kt={getURLChannels:l.a.mark((function e(t,n){var r,i,o;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t&&void 0!==n){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,a.a.commonActions.getRegistry();case 4:if(r=e.sent,!r.select(G.b).getURLChannels(t,n)){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,St.actions.fetchGetURLChannels(t,n);case 10:if(i=e.sent,!(o=i.error)){e.next=15;break}return e.next=15,fe.a.receiveError(o,"getURLChannels",[t,n]);case 15:case"end":return e.stop()}}),e)}))},jt={getURLChannels:function(e,t,n){if(void 0!==t&&void 0!==n)return e.urlchannels["".concat(t,"::").concat(n)]}},At=a.a.combineStores(St,{initialState:{urlchannels:{}},actions:Et,reducer:function(e,t){switch(t.type){case"RESET_URLCHANNELS":var n=e.savedSettings||{},r=n.siteStatus,a=n.siteSetupComplete;return _t(_t({},e),{},{urlchannels:wt.urlchannels,settings:_t(_t({},e.settings||{}),{},{siteStatus:r,siteSetupComplete:a})});default:return e}},resolvers:kt,selectors:jt}),wt=At.initialState,Dt=(At.actions,At.controls,At.reducer,At.resolvers,At.selectors,At),Rt=n(656);function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){H()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tt={isAdBlockerActive:void 0},Pt={checkAdBlocker:l.a.mark((function e(){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CHECK_ADBLOCKER"};case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})),receiveIsAdBlockerActive:function(e){return K()("boolean"==typeof e,"isAdBlockerActive must be boolean."),{payload:{isAdBlockerActive:e},type:"RECEIVE_IS_ADBLOCKER_ACTIVE"}}},It=H()({},"CHECK_ADBLOCKER",g()(l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Rt.detectAnyAdblocker)();case 2:if(!e.sent){e.next=4;break}return e.abrupt("return",!0);case 4:return e.prev=4,t=["google-site-kit=/adsense/pagead2.googlesyndication.com/pagead/js/adsbygoogle.js","timestamp=".concat(Date.now())],e.next=8,fetch("/favicon.ico?".concat(t.join("&")),{credentials:"omit",redirect:"manual"});case 8:e.next=13;break;case 10:return e.prev=10,e.t0=e.catch(4),e.abrupt("return",!0);case 13:return e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[4,10]])})))),xt={isAdBlockerActive:l.a.mark((function(){var e,t,n;return l.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.a.commonActions.getRegistry();case 2:if(e=r.sent,t=e.select(G.b).isAdBlockerActive(),void 0===t){r.next=6;break}return r.abrupt("return");case 6:return r.next=8,Pt.checkAdBlocker();case 8:return n=r.sent,r.next=11,Pt.receiveIsAdBlockerActive(n);case 11:case"end":return r.stop()}}),t)}))},Lt={initialState:Tt,actions:Pt,controls:It,reducer:function(e,t){var n=t.payload;switch(t.type){case"RECEIVE_IS_ADBLOCKER_ACTIVE":var r=n.isAdBlockerActive;return Ct(Ct({},e),{},{isAdBlockerActive:r});default:return e}},resolvers:xt,selectors:{isAdBlockerActive:function(e){var t=e.isAdBlockerActive;return t}}},Ut=n(285),Mt=n(11),Ft=n(14),Wt=n(339);function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){H()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bt=a.a.createRegistrySelector,Ht={selectors:{getServiceURL:Bt((function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.path,a=n.query,i=e(Mt.a).getEmail();if(void 0!==i){var o="https://www.google.com/adsense/new/u/0",c=a?qt(qt({},a),{},{authuser:i}):{authuser:i};if(r){var s="/".concat(r.replace(/^\//,""));return Object(Ut.a)("".concat(o).concat(s),c)}return Object(Ut.a)(o,c)}}})),getServiceCreateAccountURL:Bt((function(e){return function(){var t=e(Ft.c).getReferenceSiteURL(),n={source:"site-kit",utm_source:"site-kit",utm_medium:"wordpress_signup"};return void 0!==t&&(n.url=t),Object(Ut.a)("https://www.google.com/adsense/signup/new",n)}})),getServiceAccountURL:Bt((function(e){return function(){var t=e(G.b).getAccountID();if(void 0!==t){var n="".concat(t,"/home");return e(G.b).getServiceURL({path:n,query:{source:"site-kit"}})}}})),getServiceAccountSiteURL:Bt((function(e){return function(){var t=e(G.b).getAccountID(),n=e(Ft.c).getReferenceSiteURL();if(void 0!==t&&void 0!==n){var r="".concat(t,"/home"),a={source:"site-kit",url:Object(Wt.a)(n)||n};return e(G.b).getServiceURL({path:r,query:a})}}})),getServiceReportURL:Bt((function(e){return function(t,n){var r=e(G.b).getAccountID();if(void 0!==r){var a=qt({},n),i=e(Ft.c).getReferenceSiteURL(),o=i&&Object(Wt.a)(i);o&&(a.dd="1YsiteY1Y".concat(o,"Y").concat(o));var c="".concat(r,"/reporting");return e(G.b).getServiceURL({path:c,query:a})}}})),getServiceAccountManageSiteURL:Bt((function(e){return function(){var t=e(G.b).getAccountID(),n=e(Ft.c).getReferenceSiteURL();if(void 0!==t&&void 0!==n){var r="".concat(t,"/sites/my-sites"),a={source:"site-kit",url:Object(Wt.a)(n)||n};return e(G.b).getServiceURL({path:r,query:a})}}})),getServiceAccountManageSitesURL:Bt((function(e){return function(){var t=e(G.b).getAccountID();if(void 0!==t){var n="".concat(t,"/sites/my-sites");return e(G.b).getServiceURL({path:n,query:{source:"site-kit"}})}}})),getServiceAccountSiteAdsPreviewURL:Bt((function(e){return function(){var t=e(G.b).getAccountID(),n=e(Ft.c).getReferenceSiteURL();if(void 0!==t&&void 0!==n){var r="".concat(t,"/myads/sites/preview"),a={source:"site-kit",url:Object(Wt.a)(n)||n};return e(G.b).getServiceURL({path:r,query:a})}}}))}},zt=a.a.combineStores(ce,_e,De,Ue,Ke,st,yt,Dt,oe,Lt,Ht);zt.initialState,zt.actions,zt.controls,zt.reducer,zt.resolvers,zt.selectors;Object(f.b)("googlesitekit.AdSenseDashboardZeroData","googlesitekit.AdSenseDashboardZeroDataRefactored",Object(b.e)(x.a));var Kt,Vt;a.a.registerStore(G.b,zt),o.a.registerModule("adsense",{storeName:G.b,SettingsEditComponent:h.a,SettingsViewComponent:O.a,SettingsSetupIncompleteComponent:y.a,SetupComponent:v.a,Icon:W.a,features:[Object(p.__)("Intelligent, automatic ad placement","google-site-kit"),Object(p.__)("Revenue from ads placed on your site","google-site-kit"),Object(p.__)("AdSense insights through Site Kit","google-site-kit")],checkRequirements:(Kt=g()(l.a.mark((function e(t){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.__experimentalResolveSelect(G.b).isAdBlockerActive();case 2:if(e.sent){e.next=5;break}return e.abrupt("return");case 5:throw{code:"adblocker_active",message:Object(p.__)("Ad blocker detected, you need to disable it in order to set up AdSense.","google-site-kit"),data:null};case 6:case"end":return e.stop()}}),e)}))),function(e){return Kt.apply(this,arguments)}),screenWidgetContext:"moduleAdsense"}),(Vt=s.a).registerWidget("adsenseSummary",{Component:L.a,width:Vt.WIDGET_WIDTHS.HALF,priority:1,wrapWidget:!1},[m.c]),Vt.registerWidget("adsenseTopEarningPages",{Component:U.a,width:Vt.WIDGET_WIDTHS.HALF,priority:2,wrapWidget:!1},[m.c]),Vt.registerWidget("adsenseModuleOverview",{Component:F.a,width:Vt.WIDGET_WIDTHS.FULL,priority:1,wrapWidget:!1},["moduleAdsenseMain"]),Vt.registerWidgetArea("moduleAdsenseMain",{priority:1,style:q.b.BOXES,title:Object(p.__)("Overview","google-site-kit")},"moduleAdsense"),Vt.registerWidget("adsenseModuleTopEarningPages",{Component:M.a,width:Vt.WIDGET_WIDTHS.FULL,priority:2,wrapWidget:!1},["moduleAdsenseMain"])},97:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Row}));var r=n(18),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),u=n(8),l=n.n(u);function Row(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("div",a()({className:l()("mdc-layout-grid__inner",n)},i),r)}Row.propTypes={className:s.a.string,children:s.a.node},Row.defaultProps={className:""}}).call(this,n(1))},98:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Grid}));var r=n(18),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),u=n(8),l=n.n(u);function Grid(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("div",a()({className:l()("mdc-layout-grid",n)},i),r)}Grid.propTypes={className:s.a.string,children:s.a.node},Grid.defaultProps={className:""}}).call(this,n(1))}},[[964,1,0]]]);