(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[3],{106:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),a=n(91),i=n(32),o=function(e){var t=Object(r.useContext)(a.a);return Object(i.b)(e,t)}},108:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var r=n(18),a=n.n(r),i=n(16),o=n.n(i),c=n(0),l=n.n(c),s=n(5),u=n.n(s),d=n(20),f=u.a.useSelect;function ModuleIcon(t){var n=t.slug,r=t.size,i=o()(t,["slug","size"]),c=f((function(e){return e(d.a).getModuleIcon(n)}));return c?e.createElement(c,a()({width:r,height:r},i)):null}ModuleIcon.propTypes={slug:l.a.string.isRequired,size:l.a.number},ModuleIcon.defaultProps={size:33}}).call(this,n(1))},109:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(225),o=n.n(i),c=n(8),l=n.n(c),s=n(216),u=n(1),d=n(2),f=n(22),g=n(19),p=n(17),m=n(141),v=function Dialog(t){var n=t.dialogActive,r=t.handleDialog,a=t.title,i=t.provides,c=t.handleConfirm,v=t.subtitle,b=t.confirmButton,h=t.dependentModules,y=t.danger,O=t.inProgress,_=void 0!==O&&O,k=Object(u.useCallback)((function(e){null!==e&&p.e.attachTo(e)}),[]),E=Object(s.a)(Dialog),j="googlesitekit-dialog-label-".concat(E),w="googlesitekit-dialog-description-".concat(E),S=!(!i||!i.length);return e.createElement("div",{ref:k,className:l()("mdc-dialog",{"mdc-dialog--open":n}),role:"alertdialog","aria-modal":"true","aria-labelledby":a?j:void 0,"aria-describedby":S?w:void 0,"aria-hidden":n?"false":"true",tabIndex:"-1"},e.createElement("div",{className:"mdc-dialog__scrim"}," "),e.createElement(o.a,{active:n},e.createElement("div",null,e.createElement("div",{className:"mdc-dialog__container"},e.createElement("div",{className:"mdc-dialog__surface"},a&&e.createElement("h2",{id:j,className:"mdc-dialog__title"},a),v&&e.createElement("p",{className:"mdc-dialog__lead"},v),S&&e.createElement("section",{id:w,className:"mdc-dialog__content"},e.createElement("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive"},i.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},t))})))),h&&e.createElement("p",{className:"mdc-dialog__dependecies"},e.createElement("strong",null,Object(d.__)("Note: ","google-site-kit")),h),e.createElement("footer",{className:"mdc-dialog__actions"},e.createElement(f.a,{onClick:c,danger:y,disabled:_},b||Object(d.__)("Disconnect","google-site-kit")),e.createElement(m.a,{isSaving:_}),e.createElement(g.a,{className:"googlesitekit-margin-left-auto mdc-dialog__cancel-button",onClick:r,inherit:!0,disabled:_},Object(d.__)("Cancel","google-site-kit"))))))))};v.displayName="Dialog",v.propTypes={dialogActive:a.a.bool,handleDialog:a.a.func,handleConfirm:a.a.func.isRequired,title:a.a.string,description:a.a.string,confirmButton:a.a.string,danger:a.a.bool},v.defaultProps={dialogActive:!1,handleDialog:null,title:null,description:null,confirmButton:null,danger:!1},t.a=v}).call(this,n(1))},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"},110:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(2),o=n(192),c=n(312),l=n(22),s=n(85),u=function SurveyHeader(t){var n=t.title,r=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__header"},e.createElement("div",{className:"googlesitekit-survey__header-logo"},e.createElement(s.a,{width:24,height:24})),e.createElement("div",{className:"googlesitekit-survey__header-details"},e.createElement("h3",null,n),e.createElement(l.a,{"aria-label":Object(i.__)("Dismiss","google-site-kit"),icon:e.createElement(o.a,{icon:c.a,size:40}),onClick:r,className:"googlesitekit-survey__header-close"})))};u.propTypes={title:a.a.string.isRequired,dismissSurvey:a.a.func.isRequired},t.a=u}).call(this,n(1))},111:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),a=n(5),i=n.n(a),o=n(43),c=i.a.useDispatch;function l(e,t,n){var a=c(o.a),i=a.setWidgetState,l=a.unsetWidgetState;Object(r.useEffect)((function(){return i(e,t,n),function(){l(e,t,n)}}),[e,t,n,i,l])}},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),l=n(20),s=n(87),u=c.a.useSelect;function ReportZero(t){var n=t.moduleSlug,r=u((function(e){return e(l.a).getModule(n)}));return e.createElement(s.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),l=n(5),s=n.n(l),u=n(11),d=n(20),f=n(38),g=s.a.useSelect,p=s.a.useDispatch,m=function CompleteModuleActivationCTA(t){var n=t.moduleSlug,r=t.title,a=t.description,l=g((function(e){return e(d.a).getModule(n)})),s=g((function(e){return e(d.a).getModuleStoreName(n)})),m=g((function(e){var t;return null===(t=e(s))||void 0===t?void 0:t.getAdminReauthURL()})),v=g((function(e){return e(u.a).hasCapability(u.c)})),b=p(f.a).navigateTo,h=Object(i.useCallback)((function(){return b(m)}),[m,b]);return(null==l?void 0:l.name)&&m&&v?e.createElement(c.a,{title:r||Object(o.sprintf)(
/* translators: %s: Module name */
Object(o.__)("Complete %s activation","google-site-kit"),l.name),description:a||Object(o.sprintf)(
/* translators: %s: Module name */
Object(o.__)("%s module setup needs to be completed","google-site-kit"),l.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"),l.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),l=n.n(c),s=n(1),u=n(2),d=n(87),f=n(5),g=n.n(f),p=n(14),m=n(11),v=n(20),b=n(38),h=g.a.useSelect,y=g.a.useDispatch,O=function ActivateModuleCTA(t){var n=t.moduleSlug,r=t.title,i=t.description,c=h((function(e){return e(v.a).getModule(n)})),l=h((function(e){return e(m.a).hasCapability(m.c)})),f=y(v.a).activateModule,g=y(b.a).navigateTo,O=y(p.c).setInternalServerError,_=Object(s.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,f(n);case 2:t=e.sent,r=t.error,i=t.response,r?O({id:"".concat(n,"-setup-error"),description:r.message}):g(i.moduleReauthURL);case 6:case"end":return e.stop()}}),e)}))),[f,n,g,O]);if(!(null==c?void 0:c.name)||!l)return null;switch(n){case"analytics":r||(r=Object(u.__)("Learn more about what visitors do on your site","google-site-kit")),i||(i=Object(u.__)("Connect with Google Analytics to see unique visitors, goal completions, top pages and more","google-site-kit"));break;case"pagespeed-insights":i||(i=Object(u.__)("Google PageSpeed Insights gives you metrics about performance, accessibility, SEO and PWA","google-site-kit"))}return e.createElement(d.a,{title:r||Object(u.sprintf)(
/* translators: %s: Module name */
Object(u.__)("Activate %s","google-site-kit"),c.name),description:i||Object(u.sprintf)(
/* translators: %s: Module name */
Object(u.__)("%s module needs to be configured","google-site-kit"),c.name),ctaLabel:Object(u.sprintf)(
/* translators: %s: Module name */
Object(u.__)("Set up %s","google-site-kit"),c.name),onClick:_})};O.propTypes={moduleSlug:l.a.string.isRequired,title:l.a.string,description:l.a.string},t.a=O}).call(this,n(1))},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 l})),n.d(t,"k",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"s",(function(){return f})),n.d(t,"r",(function(){return g})),n.d(t,"t",(function(){return p})),n.d(t,"p",(function(){return m})),n.d(t,"q",(function(){return v})),n.d(t,"n",(function(){return b})),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 k}));var r="modules/analytics",a="account_create",i="property_create",o="profile_create",c="analyticsAccountCreate",l="analyticsSetup",s="https://www.googleapis.com/auth/analytics.provision",u="https://www.googleapis.com/auth/analytics.edit",d=1,f="dashboardAllTrafficWidgetDimensionName",g="dashboardAllTrafficWidgetDimensionColor",p="dashboardAllTrafficWidgetDimensionValue",m="dashboardAllTrafficWidgetActiveRowIndex",v="dashboardAllTrafficWidgetLoaded",b="legacy",h="ua",y="ga4",O="ga4-transitional",_="ua",k="ga4"},128:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureTours}));var r=n(0),a=n.n(r),i=n(5),o=n.n(i),c=n(11),l=n(156),s=o.a.useSelect;function FeatureTours(t){var n=t.viewContext,r=s((function(e){var t;return null===(t=e(c.a).getFeatureToursForView(n))||void 0===t?void 0:t[0]})),a=s((function(e){return e(c.a).areFeatureToursOnCooldown()}));return!r||a?null:e.createElement(l.a,{tourID:r.slug,steps:r.steps,gaEventCategory:r.gaEventCategory,callback:r.callback})}FeatureTours.propTypes={viewContext:a.a.string}}).call(this,n(1))},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)}}},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,l=n.owner,s=void 0===l?null:l;if(!i||!c)return e;var u="",d="";return"analytics"===i?e.match(/account/i)?u=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)?u=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)&&(u=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&&(u=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")),u||(u=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)),s&&s.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"),s.login)),d||(d=Object(r.__)("This service was originally connected by an administrator — you can contact them for more information","google-site-kit")),"".concat(u," ").concat(d).trim()}},137: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:"M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7 14 1.41z",fill:"#fff"});t.a=function SvgClose(e){return r.createElement("svg",a({viewBox:"0 0 14 14",fill:"none"},e),i)}},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"},140:function(e,t,n){"use strict";(function(e){t.a=function Warning(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#F9BB2D",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))}}).call(this,n(1))},141:function(e,t,n){"use strict";(function(e){t.a=function Spinner(t){var n=t.isSaving;return e.createElement("span",{className:"spinner",style:{display:n?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible"}})}}).call(this,n(1))},149:function(e,t,n){"use strict";(function(e){t.a=function Error(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#EA4336",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"error-title error-desc"},e.createElement("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"}))}}).call(this,n(1))},150:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Root}));var r=n(0),a=n.n(r),i=n(5),o=n.n(i),c=n(151),l=n(152),s=n(32),u=n(153),d=n(154),f=n(155),g=n(106),p=n(159);function Root(t){var n=t.children,r=t.registry,a=t.viewContext,i=void 0===a?null:a,m=Object(g.a)("userFeedback");return e.createElement(o.a.RegistryProvider,{value:r},e.createElement(l.a,{value:s.a},e.createElement(c.a,{viewContext:i},e.createElement(d.a,null,n,i&&e.createElement(f.a,{viewContext:i}),m&&e.createElement(p.a,null)),e.createElement(u.a,null))))}Root.propTypes={children:a.a.node.isRequired,registry:a.a.object,viewContext:a.a.string},Root.defaultProps={registry:o.a}}).call(this,n(1))},151:function(e,t,n){"use strict";(function(e,r){var a=n(33),i=n.n(a),o=n(34),c=n.n(o),l=n(62),s=n.n(l),u=n(45),d=n.n(u),f=n(46),g=n.n(f),p=n(30),m=n.n(p),v=n(224),b=n.n(v),h=n(0),y=n.n(h),O=n(1),_=n(2),k=n(192),E=n(310),j=n(311),w=n(35),S=n(19),N=n(22),C=n(9);function P(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=m()(e);if(t){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var R=function(t){d()(ErrorHandler,t);var n=P(ErrorHandler);function ErrorHandler(e){var t;return i()(this,ErrorHandler),(t=n.call(this,e)).state={error:null,info:null,copied:!1},t.onErrorClick=t.onErrorClick.bind(s()(t)),t}return c()(ErrorHandler,[{key:"componentDidCatch",value:function(t,n){var r=this.props.viewContext,a=void 0===r?"unknown":r;e.console.error("Caught an error:",t,n),this.setState({error:t,info:n}),Object(C.v)("react_error","handle_".concat(a,"_error"),"".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack).slice(0,500))}},{key:"onErrorClick",value:function(){var e=this.state,t=e.error,n=e.info;b()("`".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack,"`")),this.setState({copied:!0})}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.error,a=t.info,i=t.copied;if(!n)return e;var o=r.createElement(k.a,{className:"mdc-button__icon",icon:i?E.a:j.a});return r.createElement(w.a,{id:"googlesitekit-error",title:Object(_.__)("Site Kit encountered an error","google-site-kit"),description:r.createElement(O.Fragment,null,r.createElement(N.a,{trailingIcon:o,onClick:this.onErrorClick},Object(_.__)("Copy error to clipboard","google-site-kit")),r.createElement(S.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(_.__)("Report this problem","google-site-kit"))),isDismissable:!1,format:"small",type:"win-error"},r.createElement("pre",{className:"googlesitekit-overflow-auto"},n.message,a.componentStack))}}]),ErrorHandler}(O.Component);R.propTypes={children:y.a.node.isRequired},t.a=R}).call(this,n(15),n(1))},152:function(e,t,n){"use strict";var r=n(91),a=(r.a.Consumer,r.a.Provider);t.a=a},153:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),l=n(2),s=n(1),u=n(5),d=n.n(u),f=n(11),g=n(38),p=n(89),m=n(109),v=n(86),b=d.a.useSelect,h=d.a.useDispatch,y=d.a.useRegistry;t.a=function PermissionsModal(){var t,n,a,o=y(),u=b((function(e){return e(f.a).getPermissionScopeError()})),d=b((function(t){var n;return t(f.a).getConnectURL({additionalScopes:null==u||null===(n=u.data)||void 0===n?void 0:n.scopes,redirectURL:e.location.href})})),O=h(f.a).clearPermissionScopeError,_=h(g.a).navigateTo,k=Object(s.useCallback)((function(){O()}),[O]),E=Object(s.useCallback)(c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.c)(o);case 2:_(d);case 3:case"end":return e.stop()}}),e)}))),[o,d,_]);return Object(s.useEffect)((function(){(function(){var e=c()(i.a.mark((function e(){var t,n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==u||null===(t=u.data)||void 0===t?void 0:t.skipModal)||!(null==u||null===(n=u.data)||void 0===n||null===(r=n.scopes)||void 0===r?void 0:r.length)){e.next=3;break}return e.next=3,E();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[E,u]),u?(null==u||null===(t=u.data)||void 0===t||null===(n=t.scopes)||void 0===n?void 0:n.length)?(null==u||null===(a=u.data)||void 0===a?void 0:a.skipModal)?null:r.createElement(v.a,null,r.createElement(m.a,{title:Object(l.__)("Additional Permissions Required","google-site-kit"),subtitle:u.message,confirmButton:Object(l.__)("Proceed","google-site-kit"),dialogActive:!0,handleConfirm:E,handleDialog:k})):(e.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",u),null):null}}).call(this,n(15),n(1))},154:function(e,t,n){"use strict";var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(13),l=n.n(c),s=n(1),u=n(5),d=n.n(u),f=n(89),g=d.a.useRegistry;t.a=function RestoreSnapshots(e){var t=e.children,n=g(),r=Object(s.useState)(!1),i=l()(r,2),c=i[0],u=i[1];return Object(s.useEffect)((function(){c||o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(f.b)(n);case 2:u(!0);case 3:case"end":return e.stop()}}),e)})))()}),[n,c]),c?t:null}},155:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureToursDesktop}));var r=n(6),a=n.n(r),i=n(142),o=n(128);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 FeatureToursDesktop(t){return Object(i.a)()<783?null:e.createElement(o.a,t)}FeatureToursDesktop.propTypes=function(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}({},o.a.propTypes)}).call(this,n(1))},156:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return TourTooltips}));var a=n(6),i=n.n(a),o=n(125),c=n(28),l=n(0),s=n.n(l),u=n(2),d=n(5),f=n.n(d),g=n(57),p=n(11),m=n(36),v=n(157);function b(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 h=f.a.useSelect,y=f.a.useDispatch,O={options:{arrowColor:"#1A73E8",backgroundColor:"#1A73E8",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#ffffff"}},_={back:Object(u.__)("Back","google-site-kit"),close:Object(u.__)("Close","google-site-kit"),last:Object(u.__)("Got it","google-site-kit"),next:Object(u.__)("Next","google-site-kit")},k={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},E="feature_tooltip_view",j="feature_tooltip_advance",w="feature_tooltip_return",S="feature_tooltip_dismiss",N="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,a=t.tourID,l=t.gaEventCategory,s=t.callback,u="".concat(a,"-step"),d="".concat(a,"-run"),f=y(g.a).setValue,C=y(p.a).dismissTour,P=h((function(e){return e(g.a).getValue(u)})),R=h((function(e){return e(g.a).getValue(d)&&!1===e(p.a).isTourDismissed(a)}));Object(o.a)((function(){f(d,!0)}));var D=n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return r.createElement(c.e,{callback:function(t){!function(e){var t=e.index,n=e.action,r=e.lifecycle,a=e.size,i=e.status,o=e.type,s=t+1;o===c.b.TOOLTIP&&r===c.c.TOOLTIP?Object(m.b)(l,E,s):n===c.a.CLOSE&&r===c.c.COMPLETE?Object(m.b)(l,S,s):n===c.a.NEXT&&i===c.d.FINISHED&&o===c.b.TOUR_END&&a===s&&Object(m.b)(l,N,s),r===c.c.COMPLETE&&i!==c.d.FINISHED&&(n===c.a.PREV&&Object(m.b)(l,w,s),n===c.a.NEXT&&Object(m.b)(l,j,s))}(t);var n=t.action,r=t.index,i=t.status,o=t.step,d=t.type,g=n===c.a.CLOSE,p=!g&&[c.b.STEP_AFTER,c.b.TARGET_NOT_FOUND].includes(d),v=[c.d.FINISHED,c.d.SKIPPED].includes(i),b=g&&d===c.b.STEP_AFTER,h=v||b;if(c.b.STEP_BEFORE===d){var y,O,_=o.target;"string"==typeof o.target&&(_=e.document.querySelector(o.target)),null===(y=_)||void 0===y||null===(O=y.scrollIntoView)||void 0===O||O.call(y,{block:"center"})}p?function(e,t){f(u,e+(t===c.a.PREV?-1:1))}(r,n):h&&C(a),s&&s(t)},continuous:!0,disableOverlayClose:!0,disableScrolling:!0,floaterProps:k,locale:_,run:R,showProgress:!0,stepIndex:P,steps:D,styles:O,tooltipComponent:v.a})}TourTooltips.propTypes={steps:s.a.arrayOf(s.a.object).isRequired,tourID:s.a.string.isRequired,gaEventCategory:s.a.string.isRequired,callback:s.a.func}}).call(this,n(15),n(1))},157:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TourTooltip}));var r=n(18),a=n.n(r),i=n(147),o=n.n(i),c=n(8),l=n.n(c),s=n(0),u=n.n(s),d=n(158),f=n(137),g=n(22);function TourTooltip(t){var n=t.backProps,r=t.closeProps,c=t.index,s=t.primaryProps,u=t.size,p=t.step,m=t.tooltipProps,v=u>1?Object(d.a)(u):[],b=function(e){return l()("googlesitekit-tooltip-indicator",{active:e===c})};return e.createElement("div",a()({className:"googlesitekit-tour-tooltip"},m),e.createElement(o.a,{className:"googlesitekit-tooltip-card"},e.createElement("div",{className:"googlesitekit-tooltip-body"},e.createElement("h2",{className:"googlesitekit-tooltip-title"},p.title),e.createElement("div",{className:"googlesitekit-tooltip-content"},p.content)),e.createElement(i.CardActions,{className:"googlesitekit-tooltip-actions"},e.createElement("ul",{className:"googlesitekit-tooltip-indicators"},v.map((function(t){return e.createElement("li",{key:"indicator-".concat(t),className:b(t)})}))),e.createElement("div",{className:"googlesitekit-tooltip-buttons"},0!==c&&e.createElement(g.a,a()({className:"googlesitekit-tooltip-button",text:!0},n),n.title),e.createElement(g.a,a()({className:"googlesitekit-tooltip-button",text:!0},s),s.title))),e.createElement(g.a,a()({className:"googlesitekit-tooltip-close",text:!0,icon:e.createElement(f.a,{width:"14",height:"14"})},r))))}TourTooltip.propTypes={backProps:u.a.object.isRequired,closeProps:u.a.object.isRequired,index:u.a.number.isRequired,isLastStep:u.a.bool.isRequired,primaryProps:u.a.object.isRequired,size:u.a.number.isRequired,step:u.a.shape({content:u.a.node.isRequired,title:u.a.node.isRequired}).isRequired,tooltipProps:u.a.object.isRequired}}).call(this,n(1))},158:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return new Array(null!=e?e:0).fill().map((function(e,t){return t}))}},159:function(e,t,n){"use strict";(function(e){var r=n(5),a=n.n(r),i=n(14),o=n(11),c=n(160),l=n(86),s=a.a.useSelect;t.a=function CurrentSurveyPortal(){var t=s((function(e){return e(i.c).isUsingProxy()})),n=s((function(e){return e(o.a).getCurrentSurvey()}));return t&&n?e.createElement(l.a,{slug:"survey"},e.createElement(c.a,null)):null}}).call(this,n(1))},160:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CurrentSurvey}));var r=n(6),a=n.n(r),i=n(25),o=n.n(i),c=n(13),l=n.n(c),s=n(125),u=n(227),d=n(1),f=n(5),g=n.n(f),p=n(52),m=n(11),v=n(161),b=n(162),h=n(169);function y(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 O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=g.a.useDispatch,k=g.a.useSelect,E={rating:b.a};function CurrentSurvey(){var t=Object(d.useState)(!1),n=l()(t,2),r=n[0],i=n[1],c=Object(d.useState)(!1),f=l()(c,2),g=f[0],b=f[1],y=Object(d.useState)(!1),j=l()(y,2),w=j[0],S=j[1],N=Object(d.useState)(!1),C=l()(N,2),P=C[0],R=C[1],D=k((function(e){return e(m.a).getCurrentSurveyCompletions()})),T=k((function(e){return e(m.a).getCurrentSurveyQuestions()})),x=k((function(e){return e(m.a).getCurrentSurveySession()})),A=k((function(e){return e(m.a).isTrackingEnabled()})),L=x?"survey-".concat(x.session_id):null,I=k((function(e){return e(p.a).getValue(L,"hideSurvey")})),M=k((function(e){return e(p.a).getValue(L,"answers")})),q=_(p.a).setValues,z=_(m.a).sendSurveyEvent;Object(d.useEffect)((function(){(null==T?void 0:T.length)&&!r&&(i(!0),z("survey_shown"))}),[T,r,z]);var U,F=Math.max.apply(Math,[0].concat(o()((M||[]).map((function(e){return e.question_ordinal})))))+1,W=null==T?void 0:T.find((function(e){return e.question_ordinal===F})),B=Object(d.useCallback)((function(e){P||(R(!0),z("question_answered",{question_ordinal:null==W?void 0:W.question_ordinal,answer:e}),setTimeout((function(){q(L,{answers:[].concat(o()(M||[]),[{question_ordinal:null==W?void 0:W.question_ordinal,answer:e}])}),R(!1)}),300))}),[M,W,L,z,q,P]),H=(null==M?void 0:M.length)?M.reduce((function(e,t){return O(O({},e),{},a()({},t.question_ordinal,t.answer.answer.answer_ordinal))}),{}):[];(null==T?void 0:T.length)&&F>(null==T?void 0:T.length)&&(null==D||D.some((function(e){return e.trigger_condition.some((function(t){return!!t.answer_ordinal.includes(H[t.question_ordinal])&&(U=e,!0)})),!!U})),U||(U=D[0]));var G=Object(d.useCallback)((function(){var e;z("follow_up_link_clicked",{completion_ordinal:null===(e=U)||void 0===e?void 0:e.completion_ordinal}),z("survey_closed"),q(L,{hideSurvey:!0})}),[L,z,q,U]),K=Object(d.useCallback)((function(){z("survey_closed"),S(!1)}),[z]),V=Object(d.useCallback)((function(){q(L,{hideSurvey:!0})}),[L,q]);if(Object(d.useEffect)((function(){var e;U&&!g&&(b(!0),z("completion_shown",{completion_ordinal:null===(e=U)||void 0===e?void 0:e.completion_ordinal}))}),[g,z,U]),Object(s.a)((function(){S(!0)})),I||!T||!D||void 0===A)return null;if(U)return e.createElement(u.a,{direction:"up",in:w,onExited:V},e.createElement("div",{className:"googlesitekit-survey"},e.createElement(v.a,{dismissSurvey:K,ctaOnClick:G,ctaText:U.follow_up_text,ctaURL:U.follow_up_url,title:U.completion_title},U.completion_text)));var $=E[null==W?void 0:W.question_type];return $?e.createElement(u.a,{direction:"up",in:w,onExited:V},e.createElement("div",{className:"googlesitekit-survey"},e.createElement($,{key:W.question_text,answerQuestion:B,choices:W.question.answer_choice,dismissSurvey:K,question:W.question_text}),!1===A&&1===(null==W?void 0:W.question_ordinal)&&e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(h.a,null)))):null}}).call(this,n(1))},161:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(22),o=n(110),c=function SurveyCompletion(t){var n=t.title,r=t.children,a=t.ctaText,c=t.ctaURL,l=t.ctaOnClick,s=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__completion"},e.createElement(o.a,{title:n,dismissSurvey:s}),e.createElement("div",{className:"googlesitekit-survey__body"},r),c&&a&&e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(i.a,{href:c,onClick:l,target:"_blank"},a)))};c.propTypes={title:a.a.string.isRequired,children:a.a.node,ctaText:a.a.string,ctaURL:a.a.string,ctaOnClick:a.a.func,dismissSurvey:a.a.func.isRequired},c.defaultProps={title:"",children:null,ctaText:"",ctaURL:"",ctaOnClick:null},t.a=c}).call(this,n(1))},162:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(110),o=n(163),c=function SurveyQuestionRating(t){var n=t.question,r=t.choices,a=t.answerQuestion,c=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__question-rating"},e.createElement(i.a,{title:n,dismissSurvey:c}),e.createElement("div",{className:"googlesitekit-survey__body"},e.createElement("div",{className:"googlesitekit-survey__choices"},r.map((function(t,n){return e.createElement(o.a,{key:n,choice:t,answerQuestion:a})})))))};c.propTypes={question:a.a.string.isRequired,choices:a.a.arrayOf(a.a.shape({answer_ordinal:a.a.oneOfType([a.a.string,a.a.number]),text:a.a.string})).isRequired,answerQuestion:a.a.func.isRequired,dismissSurvey:a.a.func.isRequired},t.a=c}).call(this,n(1))},163:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(1),o=n(22),c=n(164),l=n(165),s=n(166),u=n(167),d=n(168),f={1:c.a,2:l.a,3:s.a,4:u.a,5:d.a},g=function SurveyQuestionRatingChoice(t){var n=t.choice,r=t.answerQuestion,a=Object(i.useCallback)((function(){"function"==typeof r&&r({answer:{answer_ordinal:n.answer_ordinal}})}),[r,n]),c=f[n.answer_ordinal];return c?e.createElement("div",{className:"googlesitekit-survey__choice"},e.createElement(o.a,{icon:e.createElement(c,{width:30,height:30}),"aria-label":n.text,onClick:a}),e.createElement("p",null,n.text)):null};g.propTypes={choice:a.a.shape({answer_ordinal:a.a.oneOfType([a.a.string,a.a.number]),text:a.a.string}).isRequired},t.a=g}).call(this,n(1))},164: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",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.985 0C6.705 0 0 6.72 0 15c0 8.28 6.705 15 14.985 15C23.28 30 30 23.28 30 15c0-8.28-6.72-15-15.015-15zM15 27C8.37 27 3 21.63 3 15S8.37 3 15 3s12 5.37 12 12-5.37 12-12 12zm7.5-15.75a2.247 2.247 0 01-2.25 2.25A2.247 2.247 0 0118 11.25 2.247 2.247 0 0120.25 9a2.247 2.247 0 012.25 2.25zM9.75 13.5A2.247 2.247 0 0012 11.25 2.247 2.247 0 009.75 9a2.247 2.247 0 00-2.25 2.25 2.247 2.247 0 002.25 2.25zm-2.415 9c1.2-3.06 4.17-5.25 7.665-5.25s6.465 2.19 7.665 5.25H7.335z",fill:"currentColor"});t.a=function SvgSurveyUnhappy(e){return r.createElement("svg",a({fill:"none"},e),i)}},165: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",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zm-9.75-1.5a2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9 2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25zm-13.725 9c1.245-3.495 4.56-6 8.49-6 3.915 0 7.23 2.505 8.475 6h-3.315c-1.035-1.785-2.955-3-5.16-3-2.22 0-4.125 1.215-5.175 3H6.525zM12 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9 2.247 2.247 0 0112 11.25zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveyDissatisfied(e){return r.createElement("svg",a({fill:"none"},e),i)}},166: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",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zM9.75 9A2.247 2.247 0 0112 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9zm10.5 0A2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25 2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9zM10.5 22.5v-3h9v3h-9zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveyNeutral(e){return r.createElement("svg",a({fill:"none"},e),i)}},167: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",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zm-9.75-1.5a2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9 2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25zm3.225 4.5c-1.245 3.495-4.56 6-8.49 6-3.915 0-7.23-2.505-8.475-6h3.315c1.035 1.785 2.955 3 5.16 3 2.22 0 4.125-1.215 5.175-3h3.315zM12 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9 2.247 2.247 0 0112 11.25zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveySatisfied(e){return r.createElement("svg",a({fill:"none"},e),i)}},168: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",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.985 0C6.705 0 0 6.72 0 15c0 8.28 6.705 15 14.985 15C23.28 30 30 23.28 30 15c0-8.28-6.72-15-15.015-15zM15 27C8.37 27 3 21.63 3 15S8.37 3 15 3s12 5.37 12 12-5.37 12-12 12zm7.5-15.75a2.247 2.247 0 01-2.25 2.25A2.247 2.247 0 0118 11.25 2.247 2.247 0 0120.25 9a2.247 2.247 0 012.25 2.25zM9.75 13.5A2.247 2.247 0 0012 11.25 2.247 2.247 0 009.75 9a2.247 2.247 0 00-2.25 2.25 2.247 2.247 0 002.25 2.25zM22.665 18c-1.2 3.06-4.17 5.25-7.665 5.25S8.535 21.06 7.335 18h15.33z",fill:"currentColor"});t.a=function SvgSurveyDelighted(e){return r.createElement("svg",a({fill:"none"},e),i)}},169:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SurveyTerms}));var r=n(2),a=n(132),i=n(5),o=n.n(i),c=n(14),l=n(19),s=o.a.useSelect;function SurveyTerms(){var t=s((function(e){return e(c.c).getGooglePrivacyPolicyURL()})),n=s((function(e){return e(c.c).getGoogleTermsURL()}));return e.createElement("p",{className:"googlesitekit-survey__terms"},Object(a.a)(Object(r.__)("By continuing, you agree to allow Google to use your answers and account info to improve services, per our <privacy>Privacy</privacy> & <terms>Terms</terms>.","google-site-kit"),{privacy:e.createElement(l.a,{href:t,inherit:!0,external:!0}),terms:e.createElement(l.a,{href:n,inherit:!0,external:!0})}))}}).call(this,n(1))},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 l=n(101),s=n.n(l);n.d(t,"m",(function(){return s.a})),n.d(t,"k",(function(){return l.Option}));var u=n(243);n.d(t,"j",(function(){return u.a}));var d=n(240);n.d(t,"e",(function(){return d.a}));var f=n(239);n.d(t,"g",(function(){return f.a}));var g=n(88);n.d(t,"a",(function(){return g.a})),n.d(t,"b",(function(){return g.b})),n.d(t,"l",(function(){return g.c}))},171:function(e,t,n){"use strict";n.d(t,"e",(function(){return s.a})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m.a})),n.d(t,"d",(function(){return v})),n.d(t,"a",(function(){return h}));var r=n(327),a=n.n(r),i=n(308),o=n.n(i),c=n(9),l=n(131),s=n(297),u=n(8),d=n.n(u),f=n(2),g=n(50),p=function(e,t,n,r,a){var i=[[{type:"date",label:Object(f.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:"number",label:n},{type:"number",label:Object(f.__)("Previous period","google-site-kit")}]],o=Object(c.h)(),l={weekday:"short",month:"short",day:"numeric"};return e.forEach((function(e,s){var u,p,m=e[r],v=e.keys[0],b=(null===(u=t[s])||void 0===u?void 0:u[r])||0,h=(null===(p=t[s])||void 0===p?void 0:p.keys[0])||Object(g.f)(v,a),y=Object(f.sprintf)(
/* translators: 1: date for user stats, 2: previous date for user stats comparison */
Object(f._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),Object(g.i)(v).toLocaleDateString(o,l),Object(g.i)(h).toLocaleDateString(o,l)),O=Object(c.a)(b,m),_=0!==b?m/b-1:1,k=Object(c.f)(_),E=Object(f.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(f._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s%%</em>","Stat information for chart tooltip","google-site-kit"),n,Math.abs(m).toFixed(2).replace(/(.00|0)$/,""),k,Object(c.q)(O));i.push([Object(g.i)(v),'<div class="'.concat(d()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":_>0,"googlesitekit-visualization-tooltip--down":_<0}),'">\n\t\t\t\t<p>').concat(y,"</p>\n\t\t\t\t<p>").concat(E,"</p>\n\t\t\t</div>"),m,b])})),i},m=n(188);function v(e){return"string"==typeof e&&e.length>0}function b(e){var t=[[{type:"string",label:"Day"},{type:"number",label:"Clicks"},{type:"number",label:"Impressions"},{type:"number",label:"CTR"},{type:"number",label:"Position"}]],n=0,r=0,i=0,c=0,l=e.length;return a()(e,(function(e){var a=new Date(e.keys[0]);t.push([a.getMonth()+1+"/"+a.getUTCDate(),e.clicks,e.impressions,o()(e.ctr,3),o()(e.position,3)]),n+=e.clicks,r+=e.impressions,i+=e.ctr,c+=e.position})),{dataMap:t,totalClicks:n,totalImpressions:r,averageCTR:l>0?i/l:0,averagePosition:l>0?c/l:0}}var h=function(e,t){var n=Object(l.a)(e,{dateRangeLength:t}),r=n.compareRange,a=b(n.currentRange),i=b(r);return{dataMap:a.dataMap,totalClicks:a.totalClicks,totalImpressions:a.totalImpressions,averageCTR:a.averageCTR,averagePosition:a.averagePosition,totalClicksChange:Object(c.a)(i.totalClicks,a.totalClicks),totalImpressionsChange:Object(c.a)(i.totalImpressions,a.totalImpressions),averageCTRChange:Object(c.a)(i.averageCTR,a.averageCTR),averagePositionChange:Object(c.a)(i.averagePosition,a.averagePosition)}}},173:function(e,t,n){"use strict";function r(e){var t,n,r,a,i,o,c,l;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===(l=c.values)||void 0===l?void 0:l.length)||!e[0].data.totals.some((function(e){return e.values.some((function(e){return e>0}))}))}n.d(t,"a",(function(){return r}))},177:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var r=n(0),a=n.n(r),i=n(2),o=n(5),c=n.n(o),l=n(20),s=n(84),u=n(136),d=n(83),f=n(87),g=c.a.useSelect;function ReportError(t){var n,r=t.moduleSlug,a=t.error,o=g((function(e){return e(l.a).getModule(r)})),c=Object(i.sprintf)(
/* translators: %s: module name */
Object(i.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name),p=a.message;Object(s.b)(a)&&(c=Object(i.sprintf)(
/* translators: %s: module name */
Object(i.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),p=Object(u.a)(p,o));var m=null==a||null===(n=a.data)||void 0===n?void 0:n.reconnectURL,v=m?e.createElement(d.a,{message:p,reconnectURL:m}):p;return e.createElement(f.a,{title:c,description:v,error:!0})}ReportError.propTypes={moduleSlug:a.a.string.isRequired,error:a.a.object.isRequired}}).call(this,n(1))},188: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;return a()(Object(i.a)(t),"A valid startDate is required."),a()(Object(i.a)(n),"A valid endDate is required."),{start_date:t.replace(/-/g,""),end_date:n.replace(/-/g,"")}}},189:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m}));var r=n(18),a=n.n(r),i=n(59),o=n.n(i),c=n(210),l=n(269),s=n(270),u=n(271),d=n(272),f=n(273),g=o()((function(e){return{Widget:p(e)(c.a),WidgetReportZero:p(e)(l.a),WidgetReportError:p(e)(s.a),WidgetActivateModuleCTA:p(e)(u.a),WidgetCompleteModuleActivationCTA:p(e)(d.a),WidgetNull:p(e)(f.a)}}));function p(t){return function(n){var r=function WithWidgetSlug(r){return e.createElement(n,a()({},r,{widgetSlug:t}))};return r.displayName="WithWidgetSlug",(n.displayName||n.name)&&(r.displayName+="(".concat(n.displayName||n.name,")")),r}}var m=function(t){var n=g(t);return function(t){var r=function DecoratedComponent(r){return e.createElement(t,a()({},r,n))};return r.displayName="WithWidgetComponentProps",(t.displayName||t.name)&&(r.displayName+="(".concat(t.displayName||t.name,")")),r}}}).call(this,n(1))},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),l=n.n(c),s=n(8),u=n.n(s),d=n(107),f=n(2);function Link(t){var n,r=t["aria-label"],i=t.arrow,c=t.back,l=t.caps,s=t.children,g=t.className,p=t.danger,m=t.disabled,v=t.external,b=t.hideExternalIndicator,h=t.href,y=t.inherit,O=t.inverse,_=t.onClick,k=t.small,E=t.to,j=o()(t,["aria-label","arrow","back","caps","children","className","danger","disabled","external","hideExternalIndicator","href","inherit","inverse","onClick","small","to"]),w=h||E||!_?E?"ROUTER_LINK":v?"EXTERNAL_LINK":"LINK":m?"BUTTON_DISABLED":"BUTTON",S="BUTTON"===w||"BUTTON_DISABLED"===w?"button":"ROUTER_LINK"===w?d.b:"a",N=("EXTERNAL_LINK"===w&&(n=Object(f._x)("(opens in a new tab)","screen reader text","google-site-kit")),"BUTTON_DISABLED"===w&&(n=Object(f._x)("(disabled)","screen reader text","google-site-kit")),n?r?"".concat(r," ").concat(n):"string"==typeof s?"".concat(s," ").concat(n):void 0:r);return e.createElement(S,a()({"aria-label":N,className:u()("googlesitekit-cta-link",g,{"googlesitekit-cta-link--arrow":i,"googlesitekit-cta-link--external":v&&!b,"googlesitekit-cta-link--inverse":O,"googlesitekit-cta-link--back":c,"googlesitekit-cta-link--small":k,"googlesitekit-cta-link--inherit":y,"googlesitekit-cta-link--caps":l,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":m}),disabled:m,href:"LINK"===w||"EXTERNAL_LINK"===w?h:void 0,onClick:_,rel:"EXTERNAL_LINK"===w?"noopener noreferrer":void 0,target:"EXTERNAL_LINK"===w?"_blank":void 0,to:E},j),s)}Link.propTypes={arrow:l.a.bool,back:l.a.bool,caps:l.a.bool,children:l.a.node,className:l.a.string,danger:l.a.bool,disabled:l.a.bool,external:l.a.bool,hideExternalIndicator:l.a.bool,href:l.a.string,inherit:l.a.bool,inverse:l.a.bool,onClick:l.a.func,small:l.a.bool,to:l.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))},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"},210:function(e,t,n){"use strict";(function(e){var r=n(8),a=n.n(r),i=n(0),o=n.n(i),c=function Widget(t){var n=t.children,r=t.className,i=t.widgetSlug,o=t.noPadding,c=t.Header,l=t.Footer;return e.createElement("div",{className:a()("googlesitekit-widget","googlesitekit-widget--".concat(i),{"googlesitekit-widget--no-padding":o},r)},c&&e.createElement("div",{className:"googlesitekit-widget__header"},e.createElement(c,null)),e.createElement("div",{className:"googlesitekit-widget__body"},n),l&&e.createElement("div",{className:"googlesitekit-widget__footer"},e.createElement(l,null)))};c.defaultProps={children:void 0,noPadding:!1},c.propTypes={children:o.a.node,widgetSlug:o.a.string.isRequired,noPadding:o.a.bool,Header:o.a.elementType,Footer:o.a.elementType},t.a=c}).call(this,n(1))},215:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(365),a=n.n(r);function i(e,t){return a()(e,t)||0}},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),l=n.n(c),s=n(0),u=n.n(s),d=n(112),f=n(266),g=n(1),p=n(2),m=n(17),v=Object(g.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,v=t.disabled,b=t.target,h=t.icon,y=t.trailingIcon,O=t["aria-label"],_=t.title,k=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon","aria-label","title"]),E=Object(g.useCallback)((function(e){null!==e&&m.i.attachTo(e)}),[]),j=Object(d.a)(n,E),w=i&&!v?"a":"button",S=e.createElement(w,a()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:v?void 0:i,ref:j,disabled:!!v,"aria-label":function(){var e=O;if("_blank"!==b)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:b||"_self",role:"a"===w?"button":void 0},k),h,r&&e.createElement("span",{className:"mdc-button__label"},r),y);return h&&(_||O)&&void 0===r?e.createElement(f.a,{title:_||O,classes:{popper:"googlesitekit-tooltip-popper",tooltip:"googlesitekit-tooltip"}},S):S}));v.displayName="Button",v.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element,title:u.a.string},v.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null,title:null},t.a=v}).call(this,n(1))},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"}},269:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportZero}));var r=n(6),a=n.n(r),i=n(18),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(111),g=n(113);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 WidgetReportZero(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetReportZero.propTypes=function(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){a()(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}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},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"},270:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportError}));var r=n(6),a=n.n(r),i=n(16),o=n.n(i),c=n(0),l=n.n(c),s=n(177);function u(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 WidgetReportError(t){t.widgetSlug;var n=o()(t,["widgetSlug"]);return e.createElement(s.a,n)}WidgetReportError.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:l.a.string.isRequired},s.a.propTypes)}).call(this,n(1))},271:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetActivateModuleCTA}));var r=n(6),a=n.n(r),i=n(18),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(111),g=n(117);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 WidgetActivateModuleCTA(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetActivateModuleCTA.propTypes=function(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){a()(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}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},272:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetCompleteModuleActivationCTA}));var r=n(6),a=n.n(r),i=n(18),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(111),g=n(116);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 WidgetCompleteModuleActivationCTA(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetCompleteModuleActivationCTA.propTypes=function(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){a()(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}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},273:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetNull}));var r=n(6),a=n.n(r),i=n(0),o=n.n(i),c=n(111),l=n(115);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}var u={};function WidgetNull(t){var n=t.widgetSlug;return Object(c.a)(n,l.a,u),e.createElement(l.a,null)}WidgetNull.propTypes=function(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}({widgetSlug:o.a.string.isRequired},l.a.propTypes)}).call(this,n(1))},297:function(e,t,n){"use strict";function r(e){if(void 0!==e)return!Array.isArray(e)||!e.length||!e.some((function(e){return e.clicks>0||e.ctr>0||e.impressions>0||e.position>0}))}n.d(t,"a",(function(){return r}))},31:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},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))},35:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(3),o=n.n(i),c=n(10),l=n.n(c),s=n(13),u=n.n(s),d=n(0),f=n.n(d),g=n(8),p=n.n(g),m=n(223),v=n.n(m),b=n(125),h=n(1),y=n(85),O=n(55),_=n(79),k=n(22),E=n(140),j=n(149),w=n(19),S=n(108),N=n(37);function Notification(t){var n,r=t.anchorLink,i=t.anchorLinkLabel,c=t.blockData,s=t.children,d=t.className,f=t.ctaLabel,g=t.ctaLink,m=t.ctaTarget,C=t.description,P=t.dismiss,R=t.dismissExpires,D=t.format,T=t.id,x=t.isDismissable,A=t.learnMoreDescription,L=t.learnMoreLabel,I=t.learnMoreURL,M=t.logo,q=t.module,z=t.moduleName,U=t.onCTAClick,F=t.onDismiss,W=t.pageIndex,B=t.showOnce,H=t.SmallImageSVG,G=t.title,K=t.type,V=t.WinImageSVG,$=Object(h.useState)(!1),Z=u()($,2),Q=Z[0],J=Z[1],X=Object(h.useState)(!1),Y=u()(X,2),ee=Y[0],te=Y[1],ne=Object(h.useRef)(),re="notification::dismissed::".concat(T),ae=function(){return Object(N.d)(re,new Date,{ttl:null})};function ie(){return(ie=l()(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!F){e.next=5;break}return e.next=5,F(t);case 5:oe();case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oe(){var e=ne.current;J(!0),setTimeout(l()(o.a.mark((function t(){var n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ae();case 2:(null==e?void 0:e.style)&&(e.style.display="none"),n=new Event("notificationDismissed"),document.dispatchEvent(n);case 5:case"end":return t.stop()}}),t)}))),350)}function ce(){return(ce=l()(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),!U){e.next=4;break}return e.next=4,U(t);case 4:x&&oe();case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function le(){return se.apply(this,arguments)}function se(){return(se=l()(o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(N.b)(re);case 2:if(t=e.sent,!(n=t.value)){e.next=10;break}if((r=new Date(n)).setSeconds(r.getSeconds()+parseInt(R,10)),!(r<new Date)){e.next=10;break}return e.next=10,Object(N.a)(re);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}if(Object(b.a)(l()(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(R>0)){e.next=3;break}return e.next=3,le();case 3:if(!x){e.next=9;break}return e.next=6,Object(N.b)(re);case 6:t=e.sent,n=t.cacheHit,te(n);case 9:if(!B){e.next=12;break}return e.next=12,ae();case 12:case"end":return e.stop()}}),e)})))),x&&(void 0===ee||ee))return null;var ue,de=Q?"is-closed":"is-open",fe="large"===D&&"win-stats-increase"===K,ge="mdc-layout-grid__cell--span-12";"large"===D?(ge="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",fe&&(ge="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===D&&(ge="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),ue="win-warning"===K?e.createElement(E.a,null):"win-error"===K?e.createElement(j.a,null):"";var pe=e.createElement(h.Fragment,null,c&&e.createElement("div",{className:"mdc-layout-grid__inner"},v()(c,(function(t,n){return e.createElement("div",{key:n,className:p()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":fe,"mdc-layout-grid__cell--span-4-desktop":!fe})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(_.a,t)))})))),me=e.createElement(h.Fragment,null,G&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},G),r&&i&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(w.a,{href:r},i)),C&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(h.isValidElement)(C)?C:e.createElement("span",{dangerouslySetInnerHTML:Object(O.a)(C,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),L&&e.createElement(h.Fragment,null," ",e.createElement(w.a,{href:I,external:!0,inherit:!0},L),A),W&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},W))),s),ve=q?e.createElement(S.a,{slug:q,size:19}):e.createElement(y.a,{height:"34",width:"32"});return e.createElement("section",{id:T,ref:ne,className:p()(d,"googlesitekit-publisher-win",(n={},a()(n,"googlesitekit-publisher-win--".concat(D),D),a()(n,"googlesitekit-publisher-win--".concat(K),K),a()(n,"googlesitekit-publisher-win--".concat(de),de),n))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},M&&e.createElement("div",{className:p()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":fe,"mdc-layout-grid__cell--order-1-tablet":fe})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},ve),z&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},z)),H&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(H,null)),e.createElement("div",{className:p()("mdc-layout-grid__cell",ge)},fe?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},me),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},pe)):e.createElement(h.Fragment,null,me,pe),g&&e.createElement(k.a,{className:"googlesitekit-notification__cta",href:g,target:m,onClick:function(e){return ce.apply(this,arguments)}},f),x&&P&&e.createElement(w.a,{onClick:function(e){return ie.apply(this,arguments)}},P)),V&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(V,null))),("win-error"===K||"win-warning"===K)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},ue)))))}Notification.propTypes={id:f.a.string.isRequired,className:f.a.string,title:f.a.string.isRequired,description:f.a.node,learnMoreURL:f.a.string,learnMoreDescription:f.a.string,learnMoreLabel:f.a.string,blockData:f.a.array,WinImageSVG:f.a.elementType,SmallImageSVG:f.a.elementType,format:f.a.string,ctaLink:f.a.string,ctaLabel:f.a.string,type:f.a.string,dismiss:f.a.string,isDismissable:f.a.bool,logo:f.a.bool,module:f.a.string,moduleName:f.a.string,pageIndex:f.a.string,dismissExpires:f.a.number,showOnce:f.a.bool,onCTAClick:f.a.func,onDismiss:f.a.func,anchorLink:f.a.string,anchorLinkLabel:f.a.string},Notification.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=Notification}).call(this,n(1))},36:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return f}));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},l=Object(r.a)(c),s=l.enableTracking,u=l.disableTracking,d=l.isTrackingEnabled,f=l.trackEvent;function g(e){e?s():u()}!0===o&&g(d())}).call(this,n(15))},37:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return b})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i);n(25);function c(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 l(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 l(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 l(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,u="googlesitekit_".concat("1.39.0","_"),d=["sessionStorage","localStorage"],f=[].concat(d),g=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}();function p(){return m.apply(this,arguments)}function m(){return(m=o()(a.a.mark((function t(){var n,r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===s){t.next=2;break}return t.abrupt("return",s);case 2:n=c(f),t.prev=3,n.s();case 5:if((r=n.n()).done){t.next=15;break}if(i=r.value,!s){t.next=9;break}return t.abrupt("continue",13);case 9:return t.next=11,g(i);case 11:if(!t.sent){t.next=13;break}s=e[i];case 13:t.next=5;break;case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(3),n.e(t.t0);case 20:return t.prev=20,n.f(),t.finish(20);case 23:return void 0===s&&(s=null),t.abrupt("return",s);case 25:case"end":return t.stop()}}),t,null,[[3,17,20,23]])})))).apply(this,arguments)}var v=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,l,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,l=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:l,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,l,s,d,f,g,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,l=i.timestamp,s=void 0===l?Math.round(Date.now()/1e3):l,d=i.isError,f=void 0!==d&&d,t.next=3,p();case 3:if(!(g=t.sent)){t.next=14;break}return t.prev=5,g.setItem("".concat(u).concat(n),JSON.stringify({timestamp:s,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),y=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(15))},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))}},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"},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)}}},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))},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 l})),n.d(t,"f",(function(){return g})),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 b})),n.d(t,"i",(function(){return f}));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),l=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("-")},s=n(13),u=n.n(s),d=n(39),f=function(e){o()(Object(d.a)(e),r);var t=e.split("-"),n=u()(t,3),a=n[0],i=n[1],c=n[2];return new Date(a,i-1,c)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=f(e);return n.setDate(n.getDate()-t),l(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 v=n(2);function b(){var e=function(e){return Object(v.sprintf)(
/* translators: %s: number of days */
Object(v._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}}}},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="core/forms"},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,/\/+$/,"")}},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))},57:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="core/ui"},58:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="modules/search-console",a=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 j})),n.d(t,"a",(function(){return w}));var r=n(13),a=n.n(r),i=n(21),o=n.n(i),c=n(6),l=n.n(c),s=n(16),u=n.n(s),d=n(23),f=n(59),g=n.n(f),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 v(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){l()(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 b=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=v(v({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?E(a,v(v({},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,v(v({},o),{},{unit:"second"})):"",r?E(r,v(v({},o),{},{unit:"minute"})):"",n?E(n,v(v({},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 b(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(n=v({},t))}var r=n,a=r.style,i=void 0===a?"metric":a;return"metric"===i?O(e):"duration"===i?b(e,t):E(e,n)},k=g()(console.warn),E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(r,i).format(e)}catch(t){k("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"},l=["signDisplay","compactDisplay"],s={},d=0,f=Object.entries(i);d<f.length;d++){var g=a()(f[d],2),p=g[0],m=g[1];c[p]&&m===c[p]||(l.includes(p)||(s[p]=m))}try{return new Intl.NumberFormat(r,s).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(r,{style:i,type:c});return l.format(e)}
/* translators: used between list items, there is a space after the comma. */var s=Object(p.__)(", ","google-site-kit");return e.join(s)},w=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))},65:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s})),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,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)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 l=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 l=document.createElement("span");return l.setAttribute("class","screen-reader-text"),l.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(l),t&&null===r&&t.appendChild(o),n&&null===a&&n.appendChild(o),o},s=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=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):u(e);var r,i={},c=o(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var l=a()(r.value,2),s=l[0],d=l[1];i[s]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,n(15))},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}))},727:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdminBarApp}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(1),l=n(2),s=n(5),u=n.n(s),d=n(19),f=n(14),g=n(11),p=n(9),m=n(728),v=u.a.useSelect;function AdminBarApp(){var t=v((function(e){return e(f.c).getCurrentEntityURL()})),n=v((function(e){return e(f.c).getCurrentEntityTitle()})),r=v((function(e){return e(f.c).getAdminURL("googlesitekit-dashboard",{permaLink:t})})),i=v((function(e){return e(g.a).getDateRangeNumberOfDays()})),s=Object(c.useCallback)(o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.v)("admin_bar","post_details_click");case 2:document.location.assign(r);case 3:case"end":return e.stop()}}),e)}))),[r]);return r&&t?e.createElement(c.Fragment,null,e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-3 mdc-layout-grid__cell--align-middle "},e.createElement("div",{className:"googlesitekit-adminbar__subtitle"},Object(l.__)("Stats for","google-site-kit")),e.createElement("div",{className:"googlesitekit-adminbar__title"},n?Object(p.d)(n):t,e.createElement("p",{className:"googlesitekit-adminbar__title--date-range"},Object(l.sprintf)(
/* translators: %s: number of days */
Object(l._n)("over the last %s day","over the last %s days",i,"google-site-kit"),i)))),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--align-middle "},e.createElement(m.a,null)),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2 mdc-layout-grid__cell--align-middle "},e.createElement(d.a,{className:"googlesitekit-adminbar__link",href:"#",onClick:s},Object(l.__)("More details","google-site-kit"))))),e.createElement(d.a,{className:"googlesitekit-adminbar__link googlesitekit-adminbar__link--mobile",href:"#",onClick:s},Object(l.__)("More details","google-site-kit"))):null}}).call(this,n(1))},728:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdminBarWidgets}));var r=n(6),a=n.n(r),i=n(8),o=n.n(i),c=n(1),l=n(5),s=n.n(l),u=n(729),d=n(730),f=n(731),g=n(732),p=n(117),m=n(116),v=n(733),b=n(20),h=n(17),y=n(43),O=n(94),_=n(113),k=n(189),E=s.a.useSelect,j=Object(k.b)("adminBarImpressions")(u.a),w=Object(k.b)("adminBarClicks")(d.a),S=Object(k.b)("adminBarUniqueVisitors")(f.a),N=Object(k.b)("adminBarSessions")(g.a);function AdminBarWidgets(){var t=E((function(e){return e(b.a).isModuleConnected("analytics")})),n=E((function(e){return e(b.a).isModuleActive("analytics")})),r=E((function(e){var t,n;return(null===(t=e(y.a).getWidgetState("adminBarImpressions"))||void 0===t?void 0:t.Component)===_.a&&(null===(n=e(y.a).getWidgetState("adminBarClicks"))||void 0===n?void 0:n.Component)===_.a})),i=E((function(e){var t,n;return(null===(t=e(y.a).getWidgetState("adminBarUniqueVisitors"))||void 0===t?void 0:t.Component)===_.a&&(null===(n=e(y.a).getWidgetState("adminBarSessions"))||void 0===n?void 0:n.Component)===_.a})),l=r&&i||r&&!t;return e.createElement(c.Fragment,null,l&&e.createElement(v.a,null),e.createElement(h.l,{className:o()(a()({},O.a,l))},e.createElement(h.a,{lgSize:r?6:3,mdSize:r?4:2},e.createElement(j,null)),e.createElement(h.a,{lgSize:3,mdSize:2,className:o()(a()({},O.a,r))},e.createElement(w,null)),t&&n&&e.createElement(c.Fragment,null,e.createElement(h.a,{lgSize:3,mdSize:2},e.createElement(S,null)),e.createElement(h.a,{lgSize:3,mdSize:2},e.createElement(N,null))),(!t||!n)&&e.createElement(h.a,{lgSize:6,mdSize:4},!n&&e.createElement(p.a,{moduleSlug:"analytics"}),n&&!t&&e.createElement(m.a,{moduleSlug:"analytics"}))))}}).call(this,n(1))},729:function(e,t,n){"use strict";(function(e){var r=n(2),a=n(5),i=n.n(a),o=n(79),c=n(80),l=n(11),s=n(14),u=n(58),d=n(9),f=n(171),g=n(215),p=n(131),m=i.a.useSelect;t.a=function AdminBarImpressions(t){var n=t.WidgetReportZero,a=t.WidgetReportError,i=m((function(e){return e(s.c).getCurrentEntityURL()})),v=m((function(e){return e(l.a).getDateRangeDates({compare:!0,offsetDays:u.a})})),b=v.compareStartDate,h=v.endDate,y=m((function(e){return e(l.a).getDateRangeNumberOfDays()})),O={startDate:b,endDate:h,dimensions:"date",url:i},_=m((function(e){return e(u.b).getReport(O)})),k=m((function(e){return e(u.b).hasFinishedResolution("getReport",[O])})),E=m((function(e){return e(u.b).getErrorForSelector("getReport",[O])}));if(!k)return e.createElement(c.a,{width:"auto",height:"59px"});if(E)return e.createElement(a,{moduleSlug:"search-console",error:E});if(Object(f.e)(_))return e.createElement(n,{moduleSlug:"search-console"});var j=Object(p.a)(_,{dateRangeLength:y}),w=j.compareRange,S=j.currentRange,N=Object(g.a)(S,"impressions"),C=Object(g.a)(w,"impressions"),P=Object(d.a)(C,N);return e.createElement(o.a,{className:"overview-total-impressions",title:Object(r.__)("Total Impressions","google-site-kit"),datapoint:N,change:P,changeDataUnit:"%"})}}).call(this,n(1))},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)]}},730:function(e,t,n){"use strict";(function(e){var r=n(2),a=n(5),i=n.n(a),o=n(11),c=n(14),l=n(58),s=n(9),u=n(171),d=n(80),f=n(79),g=n(215),p=n(131),m=i.a.useSelect;t.a=function AdminBarClicks(t){var n=t.WidgetReportZero,a=t.WidgetReportError,i=m((function(e){return e(c.c).getCurrentEntityURL()})),v=m((function(e){return e(o.a).getDateRangeDates({compare:!0,offsetDays:l.a})})),b=v.compareStartDate,h=v.endDate,y=m((function(e){return e(o.a).getDateRangeNumberOfDays()})),O={startDate:b,endDate:h,dimensions:"date",url:i},_=m((function(e){return e(l.b).getReport(O)})),k=m((function(e){return e(l.b).hasFinishedResolution("getReport",[O])})),E=m((function(e){return e(l.b).getErrorForSelector("getReport",[O])}));if(!k)return e.createElement(d.a,{width:"auto",height:"59px"});if(E)return e.createElement(a,{moduleSlug:"search-console",error:E});if(Object(u.e)(_))return e.createElement(n,{moduleSlug:"search-console"});var j=Object(p.a)(_,{dateRangeLength:y}),w=j.compareRange,S=j.currentRange,N=Object(g.a)(S,"clicks"),C=Object(g.a)(w,"clicks"),P=Object(s.a)(C,N);return e.createElement(f.a,{className:"overview-total-clicks",title:Object(r.__)("Total Clicks","google-site-kit"),datapoint:N,change:P,changeDataUnit:"%"})}}).call(this,n(1))},731:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(2),o=n(79),c=n(5),l=n.n(c),s=n(80),u=n(11),d=n(14),f=n(12),g=n(9),p=n(173);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 v(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}var b=l.a.useSelect;t.a=function AdminBarUniqueVisitors(t){var n=t.WidgetReportZero,r=t.WidgetReportError,a=b((function(e){return e(d.c).getCurrentEntityURL()})),c=v(v({},b((function(e){return e(u.a).getDateRangeDates({compare:!0,offsetDays:f.b})}))),{},{metrics:[{expression:"ga:users",alias:"Total Users"}],url:a}),l=b((function(e){return e(f.f).getReport(c)})),m=b((function(e){return e(f.f).hasFinishedResolution("getReport",[c])})),h=b((function(e){return e(f.f).getErrorForSelector("getReport",[c])}));if(!m)return e.createElement(s.a,{width:"auto",height:"59px"});if(h)return e.createElement(r,{moduleSlug:"analytics",error:h});if(Object(p.a)(l))return e.createElement(n,{moduleSlug:"analytics"});var y=l[0].data.totals,O=y[0].values,_=y[1].values,k=O[0],E=_[0];return e.createElement(o.a,{className:"overview-total-users",title:Object(i.__)("Total Users","google-site-kit"),datapoint:k,change:Object(g.a)(E,k),changeDataUnit:"%"})}}).call(this,n(1))},732: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),l=n(79),s=n(80),u=n(11),d=n(14),f=n(12),g=n(9),p=n(173);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 v(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}var b=c.a.useSelect;t.a=function AdminBarSessions(t){var n=t.WidgetReportZero,r=t.WidgetReportError,a=b((function(e){return e(d.c).getCurrentEntityURL()})),o=v(v({},b((function(e){return e(u.a).getDateRangeDates({compare:!0,offsetDays:f.b})}))),{},{dimensions:"ga:date",limit:10,metrics:[{expression:"ga:sessions",alias:"Sessions"}],url:a}),c=b((function(e){return e(f.f).getReport(o)})),m=b((function(e){return e(f.f).hasFinishedResolution("getReport",[o])})),h=b((function(e){return e(f.f).getErrorForSelector("getReport",[o])}));if(!m)return e.createElement(s.a,{width:"auto",height:"59px"});if(h)return e.createElement(r,{moduleSlug:"analytics",error:h});if(Object(p.a)(c))return e.createElement(n,{moduleSlug:"analytics"});var y=c[0].data.totals,O=y[0].values,_=y[1].values,k=O[0],E=Object(g.a)(_[0],O[0]);return e.createElement(l.a,{className:"overview-total-sessions",title:Object(i.__)("Total Sessions","google-site-kit"),datapoint:k,change:E,changeDataUnit:"%"})}}).call(this,n(1))},733:function(e,t,n){"use strict";(function(e){var r=n(2);t.a=function AdminBarZeroData(){return e.createElement("div",null,e.createElement("div",{className:"googlesitekit-adminbar__subtitle googlesitekit-font-weight-bold"},Object(r.__)("No data available yet","google-site-kit")),e.createElement("div",{className:"googlesitekit-adminbar__subtitle"},Object(r.__)("There is no data available for this content yet. This could be because it was recently created or because nobody has accessed it so far.","google-site-kit")))}}).call(this,n(1))},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,l,s,u,d,f,g,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===(l=c.metrics)||void 0===l||null===(s=l[0])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(g=f.totals)||void 0===g||null===(p=g[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 u}));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 l(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 s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(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=l(l({},s),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 g}));var r=n(3),a=n.n(r),i=n(6),o=n.n(i),c=n(10),l=n.n(c),s=n(44),u=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 f(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 g(t,n,r){var i=Object(s.a)(n);return function(){var n=l()(a.a.mark((function n(o,c,l,s){var d,g,p,m,v,b,h,y;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,v=t.trackingEnabled,b=t.trackingID,h=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(g=d.ioo)||void 0===g?void 0:g.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(v){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:b,event_category:o,event_label:l,value:s,dimension1:m,dimension2:p?"true":"false",dimension3:h,dimension4:"1.39.0",dimension5:Array.from(u.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,f(f({},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),l=n.n(c),s=n(45),u=n.n(s),d=n(46),f=n.n(d),g=n(30),p=n.n(g),m=n(0),v=n.n(m),b=n(8),h=n.n(b),y=n(1),O=n(2),_=n(56),k=n(93),E=n(9);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return 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 f()(this,n)}}var w=function(t){u()(DataBlock,t);var n=j(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(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,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,g=t.sparkline,p=t.invertChangeColor,m="button"===l?"button":"",v=g;v&&p&&(v=Object(y.cloneElement)(g,{invertChangeColor:p}));var b=o;c&&(b="%"===c?Object(E.q)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(E.q)(o,c)),s&&(b=Object(O.sprintf)(s,b));var j=a&&Object(E.q)(a,i||void 0);return e.createElement("div",{className:h()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},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"},j)),v&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},v),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"},b))),f&&e.createElement(k.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(y.Component);w.propTypes={stat:v.a.number,onClick:v.a.func,className:v.a.string,title:v.a.string,datapoint:v.a.oneOfType([v.a.string,v.a.number]),datapointUnit:v.a.string,change:v.a.oneOfType([v.a.string,v.a.number]),changeDataUnit:v.a.oneOfType([v.a.string,v.a.bool]),context:v.a.string,period:v.a.string,selected:v.a.bool,handleStatSelection:v.a.func,invertChangeColor:v.a.bool},w.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=w}).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,l=t.padding,s=t.smallWidth,u=t.smallHeight,d=t.tabletWidth,f=t.tabletHeight,g=t.desktopWidth,p=t.desktopHeight,m=Object(c.a)(),v=r,b=a;return"small"===m&&s&&u&&(v=s,b=u),"tablet"===m&&d&&f&&(v=d,b=f),("xlarge"===m||"desktop"===m)&&g&&p&&(v=g,b=p),e.createElement("div",{className:o()("googlesitekit-preview-block",n,{"googlesitekit-preview-block--padding":l}),style:{width:v,height:b}},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)}},85: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:"M2.253 12.252l7.399 5.658A13.055 13.055 0 009 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22.02 22.02 0 010 22c0-3.506.81-6.814 2.253-9.748z",fill:"#FBBC05"}),r.createElement("path",{d:"M9.652 17.91l-7.4-5.658A21.935 21.935 0 0122 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91z",fill:"#EA4335"}),r.createElement("path",{d:"M2.25 31.742l7.396-5.67A12.975 12.975 0 0022 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.935 21.935 0 012.25 31.742z",fill:"#34A853"}),r.createElement("path",{d:"M36.34 38.52l-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52z",fill:"#4285F4"}));t.a=function SvgLogoG(e){return r.createElement("svg",a({viewBox:"0 0 43 44"},e),i)}},86:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(238),o=n(0),c=n.n(o),l=n(1),s=n(105);function Portal(e){var t=e.children,n=e.slug,r=Object(l.useState)(document.createElement("div")),o=a()(r,1)[0];return Object(i.a)((function(){n&&o.classList.add("googlesitekit-portal-".concat(n));var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(o),function(){return e.removeChild(o)}})),Object(s.createPortal)(t,o)}Portal.propTypes={slug:c.a.string,children:c.a.node},Portal.defaultProps={slug:"",children:null},t.a=Portal},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),l=function CTA(t){var n=t.title,r=t.description,a=t.ctaLink,i=t.ctaLabel,l=t.error,s=t.onClick,u=t["aria-label"];return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":l})},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:s,inverse:!l,caps:!0,arrow:!0,"aria-label":u},i))};l.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},l.defaultProps={title:"",description:"",ctaLink:"",ctaLabel:"",error:!1,onClick:function(){}},t.a=l}).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}))},89:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return h}));var r=n(16),a=n.n(r),i=n(6),o=n.n(i),c=n(3),l=n.n(c),s=n(7),u=n.n(s),d=n(5),f=n.n(d),g=n(37),p=f.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},r={deleteSnapshot: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:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:l.a.mark((function e(){var t,n,r,a,i,o,c=arguments;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,r=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(a=e.sent,i=a.cacheHit,o=a.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!r){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})),createSnapshot: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:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},i=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(g.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",p((function(t){return function(){return Object(g.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(g.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:r,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,r=t.type,i=t.payload;switch(r){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,a()(o,["error"]));return c;default:return e}}}},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(v(e).map((function(e){return e.getActions().createSnapshot()})))},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(v(e).map((function(e){return e.getActions().restoreSnapshot()})))}},9:function(e,t,n){"use strict";(function(e){n.d(t,"k",(function(){return j})),n.d(t,"a",(function(){return w})),n.d(t,"i",(function(){return S})),n.d(t,"x",(function(){return N})),n.d(t,"d",(function(){return C}));var r=n(6),a=n.n(r),i=n(21),o=n.n(i),c=n(102),l=n.n(c),s=n(99),u=n.n(s),d=n(36);n.d(t,"v",(function(){return d.b}));var f=n(55);n.d(t,"s",(function(){return f.a})),n.d(t,"w",(function(){return f.b}));var g=n(70);n.d(t,"u",(function(){return g.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 v=n(47);n.d(t,"e",(function(){return v.b}));var b=n(72);n.d(t,"o",(function(){return b.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 k(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?k(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(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 j=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}},w=function(e,t){if("0"===e||0===e||isNaN(e))return null;var n=(t-e)/e;return isNaN(n)||!l()(n)?null:n},S=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]))}),{}):{}},N=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},C=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return u()(t)}}).call(this,n(15))},91:function(e,t,n){"use strict";var r=n(1),a=n(32),i=Object(r.createContext)(a.a);t.a=i},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),l=n(2),s=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(l.sprintf)(
/* translators: %s: source link */
Object(l.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(s.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 u})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return f}));var r,a=n(6),i=n.n(a),o=n(43),c=n(113),l=n(116),s=n(117),u=(r={},i()(r,o.c.QUARTER,3),i()(r,o.c.HALF,6),i()(r,o.c.FULL,12),r),d="googlesitekit-hidden",f=[s.a,l.a,c.a]},955:function(e,t,n){"use strict";n.r(t),function(e){var t=n(726),r=n.n(t),a=n(213),i=n(105),o=n(9),c=n(150),l=n(727),s=r()((function(){var t=document.getElementById("js-googlesitekit-adminbar-modules");t&&(Object(i.render)(e.createElement(c.a,null,e.createElement(l.a,null)),t),Object(o.v)("admin_bar","page_stats_view"))}));Object(a.a)((function(){var e=document.getElementById("wp-admin-bar-google-site-kit");e&&(e.addEventListener("mouseover",s,{once:!0}),e.addEventListener("focusin",s,{once:!0}))}))}.call(this,n(1))},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),l=n.n(c),s=n(0),u=n.n(s),d=n(8),f=n.n(d);function Cell(t){var n,r=t.className,i=t.alignTop,c=t.alignMiddle,s=t.alignBottom,u=t.alignRight,d=t.alignLeft,g=t.smSize,p=t.smStart,m=t.mdSize,v=t.mdStart,b=t.lgSize,h=t.lgStart,y=t.size,O=t.children,_=l()(t,["className","alignTop","alignMiddle","alignBottom","alignRight","alignLeft","smSize","smStart","mdSize","mdStart","lgSize","lgStart","size","children"]);return e.createElement("div",a()({},_,{className:f()(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":s,"mdc-layout-grid__cell--align-right":u,"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(b,"-desktop"),12>=b&&b>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(v,"-tablet"),8>=v&&v>0),o()(n,"mdc-layout-grid__cell--span-".concat(g,"-phone"),4>=g&&g>0),o()(n,"mdc-layout-grid__cell--start-".concat(p,"-phone"),4>=p&&p>0),n))}),O)}Cell.propTypes={smSize:u.a.number,smStart:u.a.number,mdSize:u.a.number,mdStart:u.a.number,lgSize:u.a.number,lgStart:u.a.number,size:u.a.number,alignTop:u.a.bool,alignMiddle:u.a.bool,alignBottom:u.a.bool,alignRight:u.a.bool,alignLeft:u.a.bool,className:u.a.string,children:u.a.node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,mdSize:0,mdStart:0,lgSize:0,lgStart:0}}).call(this,n(1))},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),l=n.n(c),s=n(8),u=n.n(s);function Row(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("div",a()({className:u()("mdc-layout-grid__inner",n)},i),r)}Row.propTypes={className:l.a.string,children:l.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),l=n.n(c),s=n(8),u=n.n(s);function Grid(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("div",a()({className:u()("mdc-layout-grid",n)},i),r)}Grid.propTypes={className:l.a.string,children:l.a.node},Grid.defaultProps={className:""}}).call(this,n(1))}},[[955,1,0]]]);