PATH:
home
/
centosnipponia
/
public_html
/
nipponiacar
/
wp-content
/
plugins
/
google-site-kit
/
dist
/
assets
/
js
"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[15,290],{88933(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o,n=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},s.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 43 44"},e),o||(o=n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:"#FBBC05",d:"m2.253 12.252 7.399 5.658A13 13 0 0 0 9 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22 22 0 0 1 0 22c0-3.506.81-6.814 2.253-9.748"}),n.createElement("path",{fill:"#EA4335",d:"m9.652 17.91-7.4-5.658A21.94 21.94 0 0 1 22 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.91"}),n.createElement("path",{fill:"#34A853",d:"m2.25 31.742 7.396-5.67A12.975 12.975 0 0 0 22 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.94 21.94 0 0 1 2.25 31.742"}),n.createElement("path",{fill:"#4285F4",d:"m36.34 38.52-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.52"}))))},80452(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o,n=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},s.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 9"},e),o||(o=n.createElement("path",{stroke:"currentColor",strokeLinecap:"square",strokeWidth:1.6,d:"m2 5.309 1.474 2.14c.69 1.001 1.946 1.001 2.636 0L10 1.8"})))},19793(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o,n=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},s.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),o||(o=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1m4.806 8.592.592-.806-1.612-1.184-.592.806-3.89 5.296c-.166.226-.36.296-.512.296s-.346-.07-.512-.296l-1.474-2.007-.592-.806-1.612 1.184.592.806 1.474 2.007C9.191 15.6 9.971 16 10.792 16s1.6-.4 2.124-1.112z",clipRule:"evenodd"})))},72545(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o,n=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},s.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},e),o||(o=n.createElement("path",{fill:"currentColor",d:"M14 1.41 12.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 7z"})))},24560(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o,n=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},s.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},e),o||(o=n.createElement("g",{fill:"currentColor",fillRule:"evenodd"},n.createElement("path",{d:"M0 6.414 1.415 5l5.292 5.292-1.414 1.415z"}),n.createElement("path",{d:"m14.146.146 1.415 1.414L5.414 11.707 4 10.292z"}))))},18418(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o,n=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},s.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2 12"},e),o||(o=n.createElement("g",{fill:"currentColor",fillRule:"evenodd"},n.createElement("path",{d:"M0 0h2v7H0zM0 10h2v2H0z"}))))},83366(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o,n=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},s.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),o||(o=n.createElement("path",{d:"M5 21a2 2 0 0 1-1.425-.575A2 2 0 0 1 3 19V5q0-.825.575-1.4Q4.175 3 5 3h7v2H5v14h14v-7h2v7q0 .825-.6 1.425Q19.825 21 19 21zm4.7-5.3-1.4-1.4L17.6 5H14V3h7v7h-2V6.4z"})))},46467(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o,n,s,r=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},a.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),o||(o=r.createElement("rect",{width:18,height:12,x:3,y:6,stroke:"currentColor",strokeWidth:1.5,rx:2})),n||(n=r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m3.566 7.5 7.086 7.086a2 2 0 0 0 2.829 0l7.019-7.02"})),s||(s=r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M20.246 17.5 15.5 12.754M4 17.5l4.746-4.746"})))},42343(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o,n=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},s.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),o||(o=n.createElement("path",{fill:"currentColor",d:"m5.825 22 2.325-7.6L2 10h7.6L12 2l2.4 8H22l-6.15 4.4 2.325 7.6L12 17.3z"})))},85149(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o,n,s=i(63696);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},r.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>s.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-labelledby":"warning-title warning-desc",viewBox:"0 0 24 24"},e),o||(o=s.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),n||(n=s.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})))},41671(e,t,i){i.d(t,{A:()=>l});var o=i(62688),n=i.n(o),s=i(82871),r=i(38432),a=i(97015);const LearnMoreLink=({className:e,external:t=!0,href:i,label:o=(0,s.__)("Learn more","google-site-kit"),onClick:n=()=>{}})=>i?a.createElement(r.A,{href:i,className:e,onClick:n,external:t},o):null;LearnMoreLink.propTypes={href:n().string.isRequired,className:n().string,label:n().string,external:n().bool,onClick:n().func};const l=LearnMoreLink},3749(e,t,i){i.d(t,{Q:()=>o});let o=function(e){return e.NEW="new",e.SUCCESS="success",e.WARNING="warning",e.INFO="info",e.INFO_ALT="info-alt",e.INFO_ALT_2="info-alt-2",e.ERROR="error",e}({})},44148(e,t,i){i.d(t,{A:()=>f});var o=i(62688),n=i.n(o),s=i(4452),r=i.n(s),a=i(63696),l=i(13606),c=i(82871),g=i(38432),d=i(13047),u=i(4124),p=i(62659),h=i(92449);var m=i(97015);function SourceLink({name:e="",href:t="",className:i="",external:o=!1}){const n=(0,p.A)(),s=(0,u.A)(),f=(0,a.useContext)(h.Ay),k=(0,a.useCallback)(()=>{f.slug&&n&&(0,d.sx)(`${n}_widget`,"click_source_link",f.slug)},[n,f]);return s?null:m.createElement("div",{className:r()("googlesitekit-source-link",i)},(0,l.A)((0,c.sprintf)(/* translators: %s: source link */ /* translators: %s: source link */ (0,c.__)("Source: %s","google-site-kit"),`<a>${e}</a>`),{a:m.createElement(g.A,{key:"link",href:t,external:o,onClick:k})}))}SourceLink.propTypes={name:n().string,href:n().string,className:n().string,external:n().bool};const f=SourceLink},40194(e,t,i){i.d(t,{G:()=>k});var o=i(50539),n=i(88273),s=i(97345),r=i(8732),a=i(84730),l=i(22942),c=i(20697),g=i(62659),d=i(4124),u=i(82871),p=i(33213);function h(e,t,i){return e?{slug:"dashboard-sharing",target:".googlesitekit-header",floaterProps:{target:".googlesitekit-view-only-menu"},title:(0,u.__)("Get instant access to insights, no setup","google-site-kit"),content:t?(0,u.__)("See what’s been shared with you here, or sign in with Google to configure services and sharing access","google-site-kit"):(0,u.__)("Site admins have shared the dashboard with you, so you can keep track of how your site is doing. See what’s been shared with you here.","google-site-kit"),offset:0,spotlightPadding:0,placement:"bottom"}:{slug:"dashboard-sharing",target:".googlesitekit-header",floaterProps:{target:i?".googlesitekit-sharing-settings__button svg":".googlesitekit-sharing-settings__button"},title:(0,u.__)("Share insights with your team","google-site-kit"),content:(0,u.__)("Give access to your teammates or clients to view the dashboard instantly, no setup required. You control who sees what.","google-site-kit"),offset:0,spotlightPadding:0,placement:"bottom"}}function m({isViewOnly:e,canAuthenticate:t,isAnalyticsConnected:i,isActivateAnalyticsNotificationPresent:o,windowHeight:n}){if(!i){const i=[{target:".googlesitekit-widget--searchFunnelGA4",floaterProps:{target:"number"==typeof n&&n<930?".googlesitekit-widget--searchFunnelGA4 .googlesitekit-chart":".googlesitekit-widget--searchFunnelGA4 .googlesitekit-widget__body"},title:(0,u.__)("Track Search traffic trends, identify baselines","google-site-kit"),content:(0,u.__)("Know what’s normal for your site. This is how you spot trends and measure real growth.","google-site-kit"),offset:0,spotlightPadding:0,placement:"top"},{target:".googlesitekit-widget--searchConsolePopularKeywords",floaterProps:{target:".googlesitekit-widget--searchConsolePopularKeywords .googlesitekit-table__wrapper"},title:(0,u.__)("Track how your site is doing on Search","google-site-kit"),content:(0,u.__)("Know what’s driving growth and bringing your site more visitors","google-site-kit"),offset:0,spotlightPadding:0,placement:"top"},h(e,t,!1)];return!e&&o&&i.push({slug:"activate-analytics",target:"#activate-analytics-notification",floaterProps:{target:"#activate-analytics-notification .googlesitekit-banner__cta"},title:(0,u.__)("Want to know what people do once they land on your site?","google-site-kit"),content:(0,u.__)("Get insights on how visitors navigate your site and help you achieve your goals by connecting Analytics","google-site-kit"),offset:0,spotlightPadding:0,placement:"bottom"}),{slug:p.I.WITHOUT_ANALYTICS,isRepeatable:!0,contexts:[c.jU,c.Ax],gaEventCategory:e=>`${e}_dashboard-tour-sc`,steps:i}}return{slug:p.I.WITH_ANALYTICS,isRepeatable:!0,contexts:[c.jU,c.Ax],gaEventCategory:e=>`${e}_dashboard-tour-ga4`,steps:[{target:".googlesitekit-widget-area--mainDashboardKeyMetricsPrimary",floaterProps:{target:".googlesitekit-km-change-metrics-cta"},title:(0,u.__)("Your goals, measured and clear","google-site-kit"),content:(0,u.__)("These Key Metrics show you exactly how your site is performing against the goals you set. Watch these numbers to see what’s working and what’s not.","google-site-kit"),offset:-3,spotlightPadding:4,placement:"top-end"},{target:".googlesitekit-widget--analyticsAllTrafficGA4",floaterProps:{target:".googlesitekit-widget--analyticsAllTraffic__user-count-chart"},title:(0,u.__)("Track traffic trends, identify baselines","google-site-kit"),content:(0,u.__)("Know what’s normal for your site. This is how you spot trends and measure real growth.","google-site-kit"),offset:35,spotlightPadding:0,placement:"top"},{target:".googlesitekit-widget-area--mainDashboardTrafficAudienceSegmentation",floaterProps:{target:".googlesitekit-widget-audience-tiles__body .googlesitekit-widget--analyticsAudienceTiles:last-child .googlesitekit-audience-segmentation-tile__header-title"},title:(0,u.__)("Get to know your site visitors","google-site-kit"),content:(0,u.__)("Not all visitors are the same, tailor your strategy based on who you want to attract","google-site-kit"),offset:14,spotlightPadding:4,placement:"top"},{target:".googlesitekit-widget--analyticsModulePopularPagesGA4",floaterProps:{target:".googlesitekit-table__head-item--pageviews .googlesitekit-table__head-item-title"},title:(0,u.__)("Discover your most popular and engaging content","google-site-kit"),content:(0,u.__)("Find out what your audience loves and double down on what resonates most","google-site-kit"),offset:25,spotlightPadding:0,placement:"top"},h(e,t,!0)]}}var f=i(24355);function k(){const e=(0,d.A)(),t=(0,g.A)(),i=(0,f.xJ)();return m({isViewOnly:e,canAuthenticate:(0,o.useSelect)(e=>e(s.oR).hasCapability(s.ej),[]),isAnalyticsConnected:!!(0,o.useSelect)(e=>e(n.i).isModuleConnected(l.L1),[]),isActivateAnalyticsNotificationPresent:(0,o.useSelect)(e=>{if(t!==c.jU)return!1;const i=e(r.D).getQueuedNotifications(c.jU,a.He.DEFAULT);return"activate-analytics-notification"===i?.[0]?.id},[t]),windowHeight:i})}},92449(e,t,i){i.d(t,{Ay:()=>r,Kq:()=>s});const o=(0,i(63696).createContext)({}),{Consumer:n,Provider:s}=o,r=o},97513(e,t,i){i.d(t,{Fo:()=>s,Lg:()=>r,Qb:()=>n,dv:()=>l,mp:()=>a});var o=i(24355);const n="xlarge",s="desktop",r="tablet",a="small";function l(){const e=(0,o.SO)();return e>1280?n:e>960?s:e>600?r:a}},24355(e,t,i){i.d(t,{SO:()=>l,xJ:()=>a});var o=i(55620),n=i(99123);function s(){return[globalThis.innerWidth,globalThis.innerHeight]}function r({fps:e=60,leading:t=!1,initialWidth:i=0,initialHeight:r=0}={}){const[a,l]=(0,o._)("undefined"==typeof document?[i,r]:s,e,t);function c(){return l(s)}return(0,n.A)(window,"resize",c),(0,n.A)(window,"orientationchange",c),a}function a(e={}){return r(e)[1]}function l(e={}){return r(e)[0]}},5855(e,t,i){i.d(t,{A:()=>g});var o=i(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(63696),l=i(62540);const c=(0,a.forwardRef)(({label:e,className:t,hasLeftSpacing:i=!1,...o},s)=>(0,l.jsx)("span",{ref:s,...o,className:n()("googlesitekit-badge",t,{"googlesitekit-badge--has-left-spacing":i}),children:e}));c.displayName="Badge",c.propTypes={label:r().string.isRequired,hasLeftSpacing:r().bool};const g=c},71189(e,t,i){i.d(t,{A:()=>CTAButton});var o=i(62688),n=i.n(o),s=i(49383),r=i(83366),a=i(62540);function CTAButton({label:e,ariaLabel:t,disabled:i,inProgress:o,onClick:n,href:l,external:c=!1,hideExternalIndicator:g=!1}){if(!e||!n&&!l)return null;let d;return c&&!g&&(d=(0,a.jsx)(r.A,{width:14,height:14})),(0,a.jsx)(s.SpinnerButton,{className:"googlesitekit-banner__cta","aria-label":t,disabled:i||o,isSaving:o,onClick:n,href:l,target:c?"_blank":void 0,trailingIcon:d,children:e})}CTAButton.propTypes={label:n().string,ariaLabel:n().string,disabled:n().bool,inProgress:n().bool,onClick:n().func,href:n().string,dismissOnClick:n().bool,dismissOptions:n().shape({expiresInSeconds:n().number,skipHidingFromQueue:n().bool})}},61983(e,t,i){i.d(t,{A:()=>DismissButton});var o=i(62688),n=i.n(o),s=i(82871),r=i(49383),a=i(62540);function DismissButton({className:e,label:t=(0,s.__)("Maybe later","google-site-kit"),onClick:i,disabled:o,tertiary:n=!0}){return i?(0,a.jsx)(r.Button,{className:e,onClick:i,disabled:o,tertiary:n,children:t}):null}DismissButton.propTypes={className:n().string,label:n().string,onClick:n().func,disabled:n().bool,tertiary:n().bool,dismissOptions:n().shape({expiresInSeconds:n().number,skipHidingFromQueue:n().bool})}},83891(e,t,i){i.d(t,{A:()=>f});var o=i(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(63696),l=i(97513),c=i(62540);function TitleIcon({className:e,children:t}){return(0,c.jsx)("div",{className:n()("googlesitekit-banner__title-icon",e),children:t})}function Title({className:e,children:t}){return(0,c.jsx)("p",{className:n()("googlesitekit-banner__title",e),children:t})}TitleIcon.propTypes={className:r().string,children:r().node},Title.propTypes={className:r().string,children:r().node};var g=i(13047),d=i(41671);function Description({className:e,description:t,learnMoreLink:i,additionalDescription:o,children:s}){return(0,c.jsxs)("div",{className:n()("googlesitekit-banner__description",e),children:[(0,a.isValidElement)(t)?t:"string"==typeof t?(0,c.jsx)("span",{dangerouslySetInnerHTML:(0,g.p9)(t,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}):t," ",i?.href&&(0,c.jsx)(d.A,{...i}),o&&(0,c.jsx)("div",{className:"googlesitekit-banner__additional-description",children:o}),s]})}function HelpText({className:e,children:t}){return(0,c.jsx)("p",{className:n()("googlesitekit-banner__help-text",e),children:t})}Description.propTypes={className:r().string,description:r().oneOfType([r().string,r().node]),learnMoreLink:r().shape(d.A.propTypes),additionalDescription:r().oneOfType([r().string,r().node]),children:r().node},HelpText.propTypes={className:r().string,children:r().node};var u=i(71189),p=i(61983);function Footer({className:e,children:t}){return(0,c.jsx)("div",{className:n()("googlesitekit-banner__footer",e),children:t})}Footer.propTypes={className:r().string,children:r().node};var h=i(25797);const m=(0,a.forwardRef)(({className:e,titleIcon:t,title:i,description:o,additionalDescription:s,errorText:r,helpText:a,learnMoreLink:g,dismissButton:d,ctaButton:m,svg:f,footer:k},y)=>{const _=(0,l.dv)(),v=_===l.mp||_===l.Lg;let b=null;v&&f?.mobile?b=f.mobile:!v&&f?.desktop&&(b=f.desktop);const I=f?.verticalPosition?f.verticalPosition:"center";return(0,c.jsxs)("div",{ref:y,className:n()("googlesitekit-banner",e),children:[(0,c.jsxs)("div",{className:"googlesitekit-banner__content",children:[t&&(0,c.jsx)(TitleIcon,{children:t}),(0,c.jsx)(Title,{children:i}),(0,c.jsx)(Description,{description:o,learnMoreLink:g,additionalDescription:s}),a&&(0,c.jsx)(HelpText,{children:a}),r&&(0,c.jsx)(h.A,{type:"error",description:r}),(0,c.jsxs)("div",{className:"googlesitekit-notice__action",children:[m&&(0,c.jsx)(u.A,{...m}),d?.onClick&&(0,c.jsx)(p.A,{...d})]})]}),b&&(0,c.jsx)("div",{className:n()("googlesitekit-banner__svg-wrapper",{[`googlesitekit-banner__svg-wrapper--${I}`]:I}),style:{backgroundImage:`url(${b})`}}),k&&(0,c.jsx)(Footer,{children:k})]})});m.propTypes={titleIcon:r().node,title:r().string,description:r().oneOfType([r().string,r().node]),additionalDescription:r().oneOfType([r().string,r().node]),errorText:r().string,helpText:r().string,learnMoreLink:r().shape(d.A.propTypes),dismissButton:r().shape(p.A.propTypes),ctaButton:r().shape(u.A.propTypes),svg:r().shape({desktop:r().elementType,mobile:r().elementType,verticalPosition:r().oneOf(["top","center","bottom"])}),footer:r().node};const f=m},38017(e,t,i){i.d(t,{A:()=>l});var o=i(62688),n=i.n(o),s=i(4452),r=i.n(s),a=i(62540);function ChangeArrow({direction:e,invertColor:t,width:i,height:o}){return(0,a.jsx)("svg",{className:r()("googlesitekit-change-arrow",`googlesitekit-change-arrow--${e}`,{"googlesitekit-change-arrow--inverted-color":t}),width:i,height:o,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("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:n().string,invertColor:n().bool,width:n().number,height:n().number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9};const l=ChangeArrow},73198(e,t,i){i.d(t,{A:()=>ErrorNotice});var o=i(62688),n=i.n(o),s=i(63696),r=i(82871),a=i(84024),l=i(50539),c=i(13137),g=i(25797),d=i(13047),u=i(62540);function ErrorNotice({className:e,error:t,hasButton:i=!1,storeName:o,message:n=t.message,noPrefix:p=!1,skipRetryMessage:h,hideIcon:m=!1}){const f=(0,l.useDispatch)(),k=(0,l.useSelect)(e=>o?e(o).getSelectorDataForError(t):null),y=(0,s.useCallback)(()=>{f(k.storeName).invalidateResolution(k.name,k.args)},[f,k]);if(!n||(0,c.G)(t))return null;const _=i&&(0,c.vl)(t,k);let v=n;i||h||(v=(0,r.sprintf)(/* translators: %s: Error message from Google API. */ /* translators: %s: Error message from Google API. */ (0,r.__)("%s (Please try again.)","google-site-kit"),v)),p||(v=(0,r.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */ (0,r.__)("Error: %s","google-site-kit"),v));const b=t?.data?.reconnectURL;b&&(0,a.m)(b)&&(v=(0,r.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */ /* translators: 1: Original error message 2: Reconnect URL */ (0,r.__)('%1$s To fix this, <a href="%2$s">redo the plugin setup</a>.',"google-site-kit"),v,b));return(0,u.jsx)(g.A,{className:e,type:g.A.TYPES.ERROR,description:(0,u.jsx)("span",{dangerouslySetInnerHTML:(0,d.p9)(v,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:_?{label:(0,r.__)("Retry","google-site-kit"),onClick:y}:void 0,hideIcon:m})}ErrorNotice.propTypes={className:n().string,error:n().shape({message:n().string}),hasButton:n().bool,storeName:n().string,message:n().string,noPrefix:n().bool,skipRetryMessage:n().bool,hideIcon:n().bool}},79961(e,t,i){i.d(t,{A:()=>s});var o=i(63696),n=i(84895);const s=(0,o.createContext)(n.t)},6730(e,t,i){i.d(t,{A:()=>GenericErrorHandlerActions});var o=i(62688),n=i.n(o),s=i(82871),r=i(38432),a=i(38021),l=i.n(a),c=i(63696),g=i(12417),d=i(1027),u=i(65123),p=i(49383),h=i(62540);function ReportErrorButton({message:e,componentStack:t}){const[i,o]=(0,c.useState)(!1);return(0,h.jsx)(p.Button,{"aria-label":i?(0,s.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){l()(`\`\`\`\n${e}\n${t}\n\`\`\``),o(!0)},trailingIcon:(0,h.jsx)(g.A,{className:"mdc-button__icon",icon:i?d.A:u.A}),children:i?(0,s.__)("Copied to clipboard","google-site-kit"):(0,s.__)("Copy error contents","google-site-kit")})}ReportErrorButton.propTypes={message:n().string,componentStack:n().string};const m=ReportErrorButton;function GenericErrorHandlerActions({message:e,componentStack:t}){return(0,h.jsxs)("div",{className:"googlesitekit-generic-error-handler-actions",children:[(0,h.jsx)(m,{message:e,componentStack:t}),(0,h.jsx)(r.A,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0,children:(0,s.__)("Report this problem","google-site-kit")})]})}GenericErrorHandlerActions.propTypes={message:n().string,componentStack:n().string}},31265(e,t,i){i.d(t,{A:()=>Ke});var o=i(62688),n=i.n(o),s=i(4452),r=i.n(s),a=i(41814),l=i(82871),c=i(63696),g=i(50539),d=i(44436),u=i(21795),p=i(19266),h=i(49383),m=i(59865),f=i(62540);function Divider({className:e}){return(0,f.jsx)("li",{className:r()("mdc-list-divider",e),role:"separator"})}function MenuItem({id:e,className:t,role:i,isInteractive:o=!0,onClick:n,icon:s,label:a,description:l,trailing:c,children:g,itemClassName:d="googlesitekit-header-menu__item",iconClassName:u="googlesitekit-header-menu__item-icon",labelClassName:p="googlesitekit-header-menu__item-label",descriptionClassName:h="googlesitekit-header-menu__item-description",trailingClassName:m="googlesitekit-header-menu__item-trailing"}){const k=g||(0,f.jsxs)("div",{className:d,children:[s&&(0,f.jsx)("div",{className:u,children:s}),a&&(0,f.jsx)("span",{className:p,children:a}),l&&(0,f.jsx)("span",{className:h,children:l}),c&&(0,f.jsx)("span",{className:m,children:c})]}),y=void 0===i&&o?"menuitem":i,_=r()(t,{"mdc-list-item":o}),v="function"==typeof n;return(0,f.jsx)("li",{id:e,className:_||void 0,role:y,children:v?(0,f.jsx)("button",{type:"button",className:"googlesitekit-header-menu__item-button",onClick:n,children:k}):k})}function MenuSection({id:e,className:t,role:i,children:o}){return(0,f.jsx)("li",{id:e,className:t,role:i,children:o})}function MenuWithHeading({heading:e,className:t,children:i}){return(0,f.jsxs)(MenuSection,{className:t,children:[e,i]})}Divider.propTypes={className:n().string},MenuItem.propTypes={id:n().string,className:n().string,role:n().string,isInteractive:n().bool,onClick:n().func,icon:n().node,label:n().node,description:n().node,trailing:n().node,children:n().node,itemClassName:n().string,iconClassName:n().string,labelClassName:n().string,descriptionClassName:n().string,trailingClassName:n().string},MenuSection.propTypes={id:n().string,className:n().string,role:n().string,children:n().node},MenuWithHeading.propTypes={heading:n().node,className:n().string,children:n().node};var k,y,_=i(13047),v=i(49993),b=i(94656),I=i(97345);function Details(){const e=(0,g.useSelect)(e=>e(I.oR).getPicture()),t=(0,g.useSelect)(e=>e(I.oR).getFullName()),i=(0,g.useSelect)(e=>e(I.oR).getEmail());return(0,f.jsxs)("div",{className:"googlesitekit-user-menu__details","aria-label":(0,l.__)("Google account","google-site-kit"),children:[!!e&&(0,f.jsx)("img",{className:"googlesitekit-user-menu__details-avatar",src:e,alt:""}),(0,f.jsxs)("div",{className:"googlesitekit-user-menu__details-info",children:[(0,f.jsx)("p",{className:"googlesitekit-user-menu__details-info__name",children:t}),(0,f.jsx)("p",{className:"googlesitekit-user-menu__details-info__email","aria-label":(0,l.__)("Email","google-site-kit"),children:i})]})]})}function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},x.apply(null,arguments)}const N=e=>c.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),k||(k=c.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.7,d:"m11.775 5.701.58-.58a4.547 4.547 0 0 1 6.43 0v0a4.547 4.547 0 0 1 0 6.43l-.598.599m-12.504-.357-.562.562a4.547 4.547 0 0 0 0 6.43v0a4.547 4.547 0 0 0 6.43 0l.58-.58"})),y||(y=c.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"m8.543 15.363 1.118-1.118m5.684-5.684L14.226 9.68M5.107 5.134l13.664 13.664"})));var S,A,j,T,w;function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},M.apply(null,arguments)}const C=e=>c.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),S||(S=c.createElement("rect",{width:18,height:13,x:3,y:4,stroke:"currentColor",strokeWidth:1.5,rx:2})),A||(A=c.createElement("path",{fill:"currentColor",d:"M9 17h6v3H9z"})),j||(j=c.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M10 9h7M10 12h7"})),T||(T=c.createElement("circle",{cx:7,cy:9,r:1,fill:"currentColor"})),w||(w=c.createElement("circle",{cx:7,cy:12,r:1,fill:"currentColor"})));var E=i(46467),D=i(29785),O=i(7972),L=i(70301),R=i(80),P=i(76729),z=i(12896),B=i(62659),G=i(68832),U=i(30805);function UserMenu(){const e=(0,U.i)("proactiveUserEngagement"),t=(0,g.useSelect)(e=>e(D.O4).getProxyPermissionsURL()),i=(0,g.useSelect)(e=>e(I.oR).getEmail()),o=(0,g.useSelect)(e=>e(I.oR).getPicture()),n=(0,g.useSelect)(e=>e(I.oR).getFullName()),s=(0,g.useSelect)(e=>e(D.O4).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})),r=(0,G.A)(R.CV,"isAutoCreatingCustomDimensionsForAudience"),{isTooltipVisible:a=!1,className:d}=(0,g.useSelect)(e=>e(O.n).getValue("admin-screen-tooltip")||{isTooltipVisible:!1}),[k,y]=(0,c.useState)(!1),[x,S]=(0,c.useState)(!1),A=(0,c.useRef)(),j=(0,c.useRef)(),T=(0,B.A)(),{navigateTo:w}=(0,g.useDispatch)(L.M);(0,u.A)(A,()=>S(!1)),(0,z.l)([p._f,p.wn],A,()=>{S(!1),j.current?.focus()});const M=(0,c.useCallback)(()=>{y(!1),S(!1)},[y,S]),{setValue:H}=(0,g.useDispatch)(O.n),F=(0,c.useCallback)(()=>{x||((0,_.sx)(`${T}_headerbar`,"open_usermenu"),a&&d?.includes("googlesitekit-tour-tooltip--user-menu")&&H("admin-screen-tooltip",void 0)),S(!x)},[x,T,H,a,d]),V=(0,c.useCallback)(()=>{y(!k),S(!1)},[k]),W=(0,c.useCallback)(async(e,i)=>{const{detail:{item:o}}=i;switch(o?.id){case"manage-sites":t&&(await(0,_.sx)(`${T}_headerbar_usermenu`,"manage_sites"),w(t));break;case"disconnect":V();break;case"manage-email-reports":H(P.Q,!0);break;default:F()}},[t,F,V,w,H,T]),Y=(0,c.useCallback)(async()=>{y(!1),await(0,v.IL)(),await(0,_.sx)(`${T}_headerbar_usermenu`,"disconnect_user"),w(s)},[s,w,T]);if(!i)return null;let Z;return n&&i&&(Z=(0,l.sprintf)(/* translators: Account info text. 1: User's (full) name 2: User's email address. */ /* translators: Account info text. 1: User's (full) name 2: User's email address. */ (0,l.__)("Google Account for %1$s (Email: %2$s)","google-site-kit"),n,i)),n&&!i&&(Z=(0,l.sprintf)(/* translators: Account info text. 1: User's (full) name. */ /* translators: Account info text. 1: User's (full) name. */ (0,l.__)("Google Account for %1$s","google-site-kit"),n)),!n&&i&&(Z=(0,l.sprintf)(/* translators: Account info text. 1: User's email address. */ /* translators: Account info text. 1: User's email address. */ (0,l.__)("Google Account (Email: %1$s)","google-site-kit"),i)),(0,f.jsxs)(c.Fragment,{children:[(0,f.jsxs)("div",{ref:A,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,f.jsx)(h.Button,{disabled:r,ref:j,className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--tablet googlesitekit-border-radius-round--phone googlesitekit-border-radius-round googlesitekit-button-icon",onClick:F,icon:!!o&&(0,f.jsx)("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true",children:(0,f.jsx)("img",{className:"mdc-button__icon--image",src:o,alt:(0,l.__)("User Avatar","google-site-kit")})}),"aria-haspopup":"menu","aria-expanded":x,"aria-controls":"user-menu","aria-label":r?void 0:(0,l.__)("Account","google-site-kit"),tooltipEnterDelayInMS:500,customizedTooltip:r?null:(0,f.jsxs)("span",{"aria-label":Z,children:[(0,f.jsx)("strong",{children:(0,l.__)("Google Account","google-site-kit")}),(0,f.jsx)("br",{}),(0,f.jsx)("br",{}),n,n&&(0,f.jsx)("br",{}),i]}),text:!0,tooltip:!0}),(0,f.jsxs)(h.Menu,{className:"googlesitekit-user-menu",menuOpen:x,onSelected:W,id:"user-menu",children:[(0,f.jsx)(MenuSection,{children:(0,f.jsx)(Details,{})}),e&&(0,f.jsx)(MenuItem,{id:"manage-email-reports",icon:(0,f.jsx)(E.A,{width:"24"}),label:(0,l.__)("Manage email reports","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"}),!!t&&(0,f.jsx)(MenuItem,{id:"manage-sites",icon:(0,f.jsx)(C,{width:"24"}),label:(0,l.__)("Manage Sites","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"}),(0,f.jsx)(MenuItem,{id:"disconnect",icon:(0,f.jsx)(N,{width:"24"}),label:(0,l.__)("Disconnect","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"})]})]}),(0,f.jsx)(b.A,{children:(0,f.jsx)(m.A,{dialogActive:k,handleConfirm:Y,handleCancel:M,onClose:M,title:(0,l.__)("Disconnect","google-site-kit"),subtitle:(0,l.__)("Disconnecting Site Kit by Google will remove your access to all services. After disconnecting, you will need to re-authorize to restore service.","google-site-kit"),confirmButton:(0,l.__)("Disconnect","google-site-kit"),danger:!0,small:!0})})]})}var H=i(10740),F=i(4124),V=i(45257),W=i(15844),Y=i(31589),Z=i(39525),Q=i(30521),q=i(20697),$=i(7551),X=i(11883),K=i(97513);var J=i(59352),ee=i(4169);const te={[$.Oo]:{[q.SH]:J.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,[q.OT]:J.CONTEXT_MAIN_DASHBOARD_TRAFFIC,[q.x2]:J.CONTEXT_MAIN_DASHBOARD_SITE_GOALS,[q.en]:J.CONTEXT_MAIN_DASHBOARD_CONTENT,[q.Ej]:J.CONTEXT_MAIN_DASHBOARD_SPEED,[q.Gw]:J.CONTEXT_MAIN_DASHBOARD_MONETIZATION},[$.oE]:{[q.OT]:J.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,[q.en]:J.CONTEXT_ENTITY_DASHBOARD_CONTENT,[q.Ej]:J.CONTEXT_ENTITY_DASHBOARD_SPEED,[q.Gw]:J.CONTEXT_ENTITY_DASHBOARD_MONETIZATION}};var ie;function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},oe.apply(null,arguments)}const ne=e=>c.createElement("svg",oe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 18"},e),ie||(ie=c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M18 16V2c0-1.1-1-2-2.222-2H2.222C1 0 0 .9 0 2v14c0 1.1 1 2 2.222 2h13.556C17 18 18 17.1 18 16M9 7h5V5H9zm7-5H2v14h14zM4 4h4v4H4zm10 7H9v2h5zM4 10h4v4H4z",clipRule:"evenodd"})));var se,re,ae,le;function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},ce.apply(null,arguments)}const ge=e=>c.createElement("svg",ce({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 12"},e),se||(se=c.createElement("rect",{width:5,height:5,x:.5,fill:"currentColor",rx:1})),re||(re=c.createElement("rect",{width:5,height:5,x:7.5,fill:"currentColor",rx:1})),ae||(ae=c.createElement("rect",{width:5,height:5,x:.5,y:7,fill:"currentColor",rx:1})),le||(le=c.createElement("rect",{width:5,height:5,x:7.5,y:7,fill:"currentColor",rx:1})));var de,ue,pe,he,me;function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},fe.apply(null,arguments)}const ke=e=>c.createElement("svg",fe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 17"},e),de||(de=c.createElement("circle",{cx:6.3,cy:9.551,r:6.3,fill:"currentColor"})),ue||(ue=c.createElement("circle",{cx:6.302,cy:9.551,r:4.2,fill:"#fff"})),pe||(pe=c.createElement("mask",{id:"nav-site-goals-icon_svg__a",width:13,height:13,x:3.551,y:-.449,fill:"#000",maskUnits:"userSpaceOnUse"},c.createElement("path",{fill:"#fff",d:"M3.551-.449h13v13h-13z"}),c.createElement("path",{d:"m11.71 4.254 1.875-.065-2.295 2.06-.91.182L7.92 8.89a1.75 1.75 0 1 1-.564-.733L9.65 5.701l.183-1.093 2-2.058z"}))),he||(he=c.createElement("path",{fill:"currentColor",d:"m11.71 4.254 1.875-.065-2.295 2.06-.91.182L7.92 8.89a1.75 1.75 0 1 1-.564-.733L9.65 5.701l.183-1.093 2-2.058z"})),me||(me=c.createElement("path",{fill:"#fff",d:"m11.71 4.254-.954-.07-.076 1.063 1.064-.037zm1.875-.065.64.713 1.96-1.76-2.633.09zM11.29 6.25l.187.939.257-.052.195-.175zm-.91.182-.187-.939-.285.057-.205.205zM7.92 8.89l-.677-.677-.45.45.241.589zM6.3 11.3v.958zm0-3.5v-.956zm1.055.356-.577.763.687.521.59-.63zm2.296-2.454.7.654.197-.211.047-.285zm.183-1.093-.686-.667-.209.215-.049.295zm2-2.058.955.069.189-2.62-1.83 1.884zm-.123 1.703.033.956 1.874-.064-.033-.957-.033-.956-1.874.064zm1.874-.065-.64-.712-2.294 2.06.639.712.64.712 2.294-2.06zM11.29 6.25l-.187-.939-.91.182.187.939.187.938.91-.181zm-.91.182-.677-.677-2.46 2.459.677.677.677.677 2.46-2.46zM7.92 8.89l-.886.362q.06.143.06.299h1.914a2.7 2.7 0 0 0-.202-1.023zm.13.66h-.956a.793.793 0 0 1-.793.794v1.914A2.707 2.707 0 0 0 9.008 9.55zM6.3 11.3v-.956a.793.793 0 0 1-.792-.793H3.594A2.707 2.707 0 0 0 6.3 12.258zM4.55 9.55h.958c0-.437.355-.792.793-.792V6.844A2.707 2.707 0 0 0 3.594 9.55zM6.3 7.8v.958c.179 0 .342.059.478.161l.577-.763.578-.763a2.7 2.7 0 0 0-1.632-.55zm1.055.356.7.654 2.295-2.454-.699-.654-.699-.654-2.295 2.454zm2.296-2.454.944.158.183-1.093-.944-.158-.944-.157-.183 1.092zm.183-1.093.687.667 2-2.058-.687-.667-.686-.667-2 2.058zm2-2.058-.955-.07-.123 1.704.955.069.955.069.123-1.703z",mask:"url(#nav-site-goals-icon_svg__a)"})));var ye;function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},_e.apply(null,arguments)}const ve=e=>c.createElement("svg",_e({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 23 12"},e),ye||(ye=c.createElement("path",{fill:"currentColor",d:"M16.1 0v2h2.967l-5.946 5.17-4.6-4L0 10.59 1.622 12l6.9-6 4.6 4L20.7 3.42V6H23V0z"})));var be,Ie;function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},xe.apply(null,arguments)}const Ne=e=>c.createElement("svg",xe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 16"},e),be||(be=c.createElement("path",{fill:"currentColor",d:"m18.378 4.543-1.232 1.854a8.02 8.02 0 0 1-.22 7.598H3.043A8.02 8.02 0 0 1 4.154 4.49 8.01 8.01 0 0 1 13.57 2.82l1.853-1.233A10.01 10.01 0 0 0 3.117 2.758a10.026 10.026 0 0 0-1.797 12.24A2 2 0 0 0 3.043 16h13.873a2 2 0 0 0 1.742-1.002 10.03 10.03 0 0 0-.27-10.465z"})),Ie||(Ie=c.createElement("path",{fill:"currentColor",d:"M8.572 11.399a2.003 2.003 0 0 0 2.835 0l5.669-8.51-8.504 5.673a2.005 2.005 0 0 0 0 2.837"})));var Se;function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Ae.apply(null,arguments)}const je=e=>c.createElement("svg",Ae({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 16"},e),Se||(Se=c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 0h3.971v16H7zM0 8h4v8H0zm18-3h-4v11h4z",clipRule:"evenodd"})));function Navigation(){const e=(0,$.Ay)(),t=(0,c.useRef)(),i=(0,B.A)(),o=function(){const e=(0,$.Ay)(),t=(0,F.A)();return(0,g.useSelect)(i=>{const o=t?i(I.oR).getViewableModules():null,n=i(I.oR).isKeyMetricsWidgetHidden(),s={modules:o||void 0};return Object.keys(te[e]).reduce((t,o)=>(o===q.SH&&n||i(ee.aO).isWidgetContextActive(te[e][o],s)&&t.push(o),t),[])})}(),{calculateScrollPosition:n,defaultChipID:s,findClosestSection:a,isValidChipID:d,scrollToChip:u,updateURLHash:p}=function({visibleSections:e}){const t=(0,K.dv)(),i=(0,F.A)(),o=(0,c.useCallback)(()=>e.includes(q.SH)?q.SH:i?e[0]||"":q.OT,[i,e])(),n=(0,c.useCallback)(t=>e.includes(t),[e]),s=(0,c.useCallback)(e=>{globalThis.history.replaceState({},"",`#${e}`)},[]),r=(0,c.useCallback)(e=>e!==o?(0,X.YJ)(`#${e}`,t):0,[t,o]),a=(0,c.useCallback)(e=>{globalThis.scrollTo({top:r(e,t,o),behavior:"smooth"})},[t,r,o]),l=(0,c.useCallback)(t=>{const i=document.querySelector(".googlesitekit-entity-header")?.getBoundingClientRect?.()?.bottom,{bottom:n}=t?.current?.getBoundingClientRect?.()??{};let s,r=o;for(const t of e){const e=document.getElementById(t);if(!e)continue;const o=e.getBoundingClientRect().top-20-(i||n||0);o<0&&(void 0===s||s<o)&&(s=o,r=t)}return r},[o,e]);return{calculateScrollPosition:r,defaultChipID:o,findClosestSection:l,isValidChipID:n,scrollToChip:a,updateURLHash:s}}({visibleSections:o}),h=globalThis.location.hash?.substring(1),[m,k]=(0,c.useState)(h||void 0),[y,v]=(0,c.useState)(!1),[b,x]=(0,c.useState)(h),{setValue:N}=(0,g.useDispatch)(O.n),S=(0,c.useCallback)(({target:e})=>{const t=e.closest(".mdc-chip"),o=t?.dataset?.contextId;p(o),k(o),u(o),(0,_.sx)(`${i}_navigation`,"tab_select",o),setTimeout(()=>{N(O.F,o)},50)},[u,N,p,i]),A=(0,c.useCallback)(()=>{if(!t?.current)return;const{top:e}=t?.current?.getBoundingClientRect();if(0===globalThis.scrollY)v(!1);else{const t=document.querySelector(".googlesitekit-header")?.getBoundingClientRect?.()?.bottom;v(e===t)}},[]),j=(0,c.useCallback)(e=>{function o(e){N(O.F,void 0),x(e),k(void 0)}const n=a(t);if(m)m===n&&o(n);else{const{hash:t}=globalThis.location;n!==t?.substring(1)&&(e&&(0,_.sx)(`${i}_navigation`,"tab_scroll",n),p(n),o(n))}},[a,m,N,p,i]);(0,W.A)(()=>{if(!h)return x(s),void setTimeout(()=>p(s));const e=d(h)?h:s;x(e),N(O.F,e),setTimeout(()=>{const t=n(e);globalThis.scrollY!==t?u(e):N(O.F,void 0)},50)});const T=(0,c.useCallback)(e=>{A(),j(e)},[j,A]),w=(0,Q.A)(T,150);(0,Y.A)("scroll",w);const M={[q.SH]:{label:(0,l.__)("Key metrics","google-site-kit"),icon:(0,f.jsx)(ge,{width:"18",height:"16"})},[q.OT]:{label:(0,l.__)("Traffic","google-site-kit"),icon:(0,f.jsx)(je,{width:"18",height:"16"})},[q.x2]:{label:(0,l.__)("Site goals","google-site-kit"),icon:(0,f.jsx)(ke,{width:"17",height:"17"})},[q.en]:{label:(0,l.__)("Content","google-site-kit"),icon:(0,f.jsx)(ne,{width:"18",height:"18"})},[q.Ej]:{label:(0,l.__)("Speed","google-site-kit"),icon:(0,f.jsx)(Ne,{width:"20",height:"16"})},[q.Gw]:{label:(0,l.__)("Monetization","google-site-kit"),icon:(0,f.jsx)(ve,{width:"18",height:"16"})}};return(0,f.jsx)("nav",{className:r()("mdc-chip-set","googlesitekit-navigation",`googlesitekit-navigation--${e}`,{"googlesitekit-navigation--is-sticky":y}),ref:t,children:o.map(e=>(0,f.jsx)(Z.Chip,{id:e,label:M[e].label,leadingIcon:M[e].icon,onClick:S,selected:b===e,"data-context-id":e},e))})}function DashboardNavigation(){const e=(0,F.A)(),t=(0,g.useSelect)(t=>e?t(I.oR).getViewableModules():null),i=(0,g.useSelect)(e=>e(I.oR).getKeyMetrics());return(0,f.jsx)(V.A,{loading:void 0===t||void 0===i,width:"100%",smallHeight:"59px",height:"71px",children:(0,f.jsx)(Navigation,{})})}var Te,we;function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Me.apply(null,arguments)}const Ce=e=>c.createElement("svg",Me({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),Te||(Te=c.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),we||(we=c.createElement("path",{fill:"currentColor",d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"})));var Ee=i(38432),De=i(83880),Oe=i(48276);const Le=function EntityHeader(){const e=(0,B.A)(),t=(0,$.Ay)(),i=(0,g.useSelect)(e=>e(D.O4).getCurrentEntityTitle()),o=(0,g.useSelect)(e=>e(D.O4).getCurrentEntityURL()),n=(0,c.useRef)(),[s,r]=(0,c.useState)(o),a=(0,c.useCallback)(()=>{if(!n.current)return;const e=n.current.clientWidth-40,t=globalThis.getComputedStyle(n.current.lastChild,null).getPropertyValue("font-size"),i=2*e/parseFloat(t);r((0,Oe.r0)(o,i))},[o]),d=(0,Q.A)(a,150);(0,Y.A)("resize",d);const{navigateTo:u}=(0,g.useDispatch)(L.M),p=(0,g.useSelect)(e=>e(D.O4).getAdminURL("googlesitekit-dashboard")),m=(0,c.useCallback)(()=>{(0,_.sx)(`${e}_navigation`,"return_to_dashboard"),u(p)},[p,u,e]);return $.oE!==t||null===o||null===i?null:(0,f.jsxs)("div",{className:"googlesitekit-entity-header",children:[(0,f.jsx)("div",{className:"googlesitekit-entity-header__back",children:(0,f.jsx)(h.Button,{icon:(0,f.jsx)(Ce,{width:24,height:24}),"aria-label":(0,l.__)("Back to dashboard","google-site-kit"),onClick:m,text:!0,tertiary:!0,children:(0,l.__)("Back to dashboard","google-site-kit")})}),(0,f.jsxs)("div",{ref:n,className:"googlesitekit-entity-header__details",children:[(0,f.jsx)(De.A,{children:i}),(0,f.jsx)(Ee.A,{href:o,"aria-label":o,secondary:!0,external:!0,children:s})]})]})};var Re;function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Pe.apply(null,arguments)}const ze=e=>c.createElement("svg",Pe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 10"},e),Re||(Re=c.createElement("path",{fill:"currentColor",d:"M8 1.333c2.756 0 5.214 1.42 6.415 3.667-1.2 2.247-3.659 3.667-6.415 3.667S2.785 7.247 1.585 5C2.785 2.753 5.244 1.333 8 1.333M8 0C4.364 0 1.258 2.073 0 5c1.258 2.927 4.364 5 8 5s6.742-2.073 8-5c-1.258-2.927-4.364-5-8-5m0 3.333c1.004 0 1.818.747 1.818 1.667S9.004 6.667 8 6.667 6.182 5.92 6.182 5 6.996 3.333 8 3.333M8 2C6.196 2 4.727 3.347 4.727 5S6.197 8 8 8s3.273-1.347 3.273-3S9.803 2 8 2"})));var Be=i(13606);function Description(){const e=(0,B.A)(),t=(0,g.useSelect)(e=>e(I.oR).hasCapability(I.ej)),i=(0,g.useSelect)(e=>e(D.O4).getProxySetupURL()),o=(0,g.useSelect)(e=>e(D.O4).getDocumentationLinkURL("dashboard-sharing")),{navigateTo:n}=(0,g.useDispatch)(L.M),s=(0,c.useCallback)(async t=>{t.preventDefault(),await Promise.all([(0,v.SO)("start_user_setup",!0),(0,_.sx)(`${e}_headerbar_viewonly`,"start_user_setup",i?"proxy":"custom-oauth")]),n(i)},[i,n,e]),r=(0,c.useCallback)(()=>{(0,_.sx)(`${e}_headerbar_viewonly`,"click_learn_more_link")},[e]),a=t?(0,l.__)("You can see stats from all shared Google services, but you can't make any changes. Sign in to connect more services and control sharing access.","google-site-kit"):(0,Be.A)((0,l.__)("You can see stats from all shared Google services, but you can't make any changes. <a>Learn more</a>","google-site-kit"),{a:(0,f.jsx)(Ee.A,{href:o,onClick:r,"aria-label":(0,l.__)("Learn more about dashboard sharing","google-site-kit"),external:!0})});return(0,f.jsxs)(c.Fragment,{children:[(0,f.jsx)(De.A,{className:"googlesitekit-view-only-menu__signin",children:a}),t&&(0,f.jsx)(h.Button,{onClick:s,children:(0,l._x)("Sign in with Google","Service name","google-site-kit")})]})}var Ge=i(88273);function Service({module:e}){const t=(0,g.useSelect)(e=>e(I.oR).hasCapability(I.ej)),{name:i,owner:o}=(0,g.useSelect)(t=>t(Ge.i).getModule(e)||{}),n=(0,g.useSelect)(t=>t(Ge.i).getModuleIcon(e));return(0,f.jsxs)("li",{className:"googlesitekit-view-only-menu__service",children:[(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__service--icon",children:(0,f.jsx)(n,{height:26})}),(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__service--name",children:i}),t&&o?.login&&(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__service--owner",children:o.login})]})}function SharedServices({viewableModules:e}){return Array.isArray(e)?(0,f.jsx)("ul",{children:e.map(e=>(0,f.jsx)(Service,{module:e},e))}):null}Service.propTypes={module:n().string.isRequired},SharedServices.propTypes={viewableModules:n().arrayOf(n().string)};var Ue=i(11974);function Tracking(){const e=(0,B.A)();return(0,f.jsx)(Ue.A,{title:(0,l.__)("Help us improve Site Kit","google-site-kit"),description:(0,Be.A)((0,l.__)("Share anonymous usage data. All collected data is treated in accordance with the <a>Google Privacy Policy</a>","google-site-kit"),{a:(0,f.jsx)(Ee.A,{href:"https://policies.google.com/privacy",external:!0})}),trackEventCategory:`${e}_headerbar_viewonly`,layout:"stacked"})}var He=i(52696);function ManageEmailReports(){const{setValue:e}=(0,He.wA)(O.n);return(0,He.WM)(e=>{const t=e(I.oR).getViewableModules();if(void 0!==t)return t.includes("analytics-4")||t.includes("search-console")})?(0,f.jsxs)(c.Fragment,{children:[(0,f.jsx)(Divider,{}),(0,f.jsx)(MenuItem,{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__email-reporting",isInteractive:!1,children:(0,f.jsx)(h.Button,{className:"googlesitekit-view-only-menu__email-reporting-item",onClick:()=>e(P.Q,!0),icon:(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--icon",children:(0,f.jsx)(E.A,{width:"24"})}),tertiary:!0,children:(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--name",children:(0,l.__)("Manage email reports","google-site-kit")})})})]}):null}var Fe=i(33052);function ViewOnlyMenu(){const e=(0,U.i)("proactiveUserEngagement"),[t,i]=(0,c.useState)(!1),o=(0,c.useRef)(),n=(0,B.A)();(0,u.A)(o,()=>i(!1)),(0,z.l)([p._f,p.wn],o,()=>i(!1));const s=(0,c.useCallback)(()=>{t||(0,_.sx)(`${n}_headerbar`,"open_viewonly"),i(!t)},[t,n]),a=(0,g.useSelect)(e=>e(I.oR).hasCapability(I.ej)),d=(0,g.useSelect)(e=>e(I.oR).getViewableModules());return(0,f.jsxs)("div",{ref:o,className:r()("googlesitekit-view-only-menu","googlesitekit-dropdown-menu","googlesitekit-dropdown-menu__icon-menu","mdc-menu-surface--anchor",{"googlesitekit-view-only-menu--user-can-authenticate":a}),children:[(0,f.jsx)(h.Button,{className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--phone googlesitekit-button-icon",onClick:s,icon:(0,f.jsx)("span",{className:"mdc-button__icon","aria-hidden":"true",children:(0,f.jsx)(ze,{className:"mdc-button__icon--image"})}),"aria-haspopup":"menu","aria-expanded":t,"aria-controls":"view-only-menu","aria-label":(0,l.__)("View only","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:(0,l.__)("View only","google-site-kit")}),(0,f.jsxs)(h.Menu,{menuOpen:t,onSelected:s,id:"view-only-menu",nonInteractive:!0,children:[(0,f.jsx)(MenuSection,{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__description",children:(0,f.jsx)(Description,{})}),Array.isArray(d)&&(0,f.jsx)(MenuWithHeading,{className:"googlesitekit-view-only-menu__list-item",heading:(0,f.jsx)(Fe.A,{as:"h4",size:"medium",type:"label",children:(0,l.__)("Shared services","google-site-kit")}),children:(0,f.jsx)(SharedServices,{viewableModules:d})}),e&&(0,f.jsx)(ManageEmailReports,{}),(0,f.jsx)(Divider,{}),(0,f.jsx)(MenuSection,{className:"googlesitekit-view-only-menu__list-item",children:(0,f.jsx)(Tracking,{})})]})]})}var Ve=i(8732),We=i(84730),Ye=i(89766);function CoreSiteBannerNotification({id:e,...t}){const{dismissNotification:i,acceptNotification:o}=(0,g.useDispatch)(D.O4),n=(0,c.useCallback)(()=>{o(e)},[e,o]),s=(0,c.useCallback)(()=>{i(e)},[e,i]);return(0,f.jsx)(Ye.A,{onCTAClick:n,onDismissClick:s,...t,id:e})}CoreSiteBannerNotification.propTypes={content:n().string,ctaLabel:n().string,ctaTarget:n().string,ctaURL:n().string,dismissLabel:n().string,dismissible:n().bool,gaTrackingEventArgs:n().object,id:n().string.isRequired,learnMoreLabel:n().string,learnMoreURL:n().string,title:n().string.isRequired},CoreSiteBannerNotification.defaultProps={content:"",ctaLabel:"",ctaTarget:"",ctaURL:"",dismissLabel:(0,l.__)("OK, Got it!","google-site-kit"),dismissible:!0,learnMoreLabel:"",learnMoreURL:""};const Ze=CoreSiteBannerNotification;const Qe=function CoreSiteBannerNotifications(){const e=(0,B.A)(),[t,i]=(0,c.useState)(!1),[o,n]=(0,c.useState)(!1),s=(0,c.useRef)(Date.now()),r=(0,g.useSelect)(e=>e(D.O4).isUsingProxy()&&!1===e(I.oR).areSurveysOnCooldown()?e(I.oR).getCurrentSurvey():null),[a,l]=(0,c.useState)([]),{registerNotification:d}=(0,g.useDispatch)(Ve.D),u=(0,g.useSelect)(e=>e(D.O4).getNotifications());return(0,c.useEffect)(()=>{const e=setTimeout(()=>{o||i(!0)},5e3);return()=>{clearTimeout(e)}},[o]),(0,c.useEffect)(()=>{Math.floor((Date.now()-s.current)/1e3)<5&&r&&n(!0)},[s,r,n]),(0,c.useEffect)(()=>{t&&!o&&u?.forEach(t=>{if(a.includes(t.id))return;const i={category:`${e}_remote-site-notification`,label:t.id};d(t.id,{Component:({Notification:e})=>(0,f.jsx)(e,{gaTrackingEventArgs:i,children:(0,f.jsx)(Ze,{...t,gaTrackingEventArgs:i})}),priority:t.priority,areaSlug:We.bI.HEADER,isDismissible:t.dismissible}),l(e=>(e.push(t.id),e))})},[e,o,u,d,a,t]),null};var qe=i(67510),$e=i(67438);function InternalServerError(){const e=(0,g.useSelect)(e=>e(D.O4).getInternalServerError());return e?(0,f.jsx)($e.A,{id:"internal-server-error",children:(0,f.jsx)(qe.A,{notificationID:"internal-server-error",type:qe.Q.ERROR,title:e.title,description:e.description})}):null}function LegacyNotifications(){const e=(0,F.A)(),t=(0,$.Ay)(),i=(0,g.useSelect)(e=>e(I.oR).isAuthenticated());return(0,f.jsxs)(c.Fragment,{children:[(0,f.jsx)(InternalServerError,{}),!e&&t===$.Oo&&i&&(0,f.jsx)(Qe,{})]})}var Xe=i(37834);function Header({children:e,subHeader:t,showNavigation:i}){const o=!!(0,$.Ay)(),n=(0,F.A)();!function(){const e=(0,B.A)(),t=(0,g.useSelect)(e=>e(D.O4).isUsingProxy()),i=(0,g.useSelect)(e=>e(D.O4).getSetupErrorMessage()),o=(0,U.i)("setupFlowRefresh");(0,c.useEffect)(()=>{o||i||void 0===t||async function(){const i=await(0,v.Gq)("start_user_setup"),o=await(0,v.Gq)("start_site_setup");i.cacheHit&&(await(0,v.LD)("start_user_setup"),(0,_.sx)(`${e}_setup`,"complete_user_setup",t?"proxy":"custom-oauth")),o.cacheHit&&(await(0,v.LD)("start_site_setup"),(0,_.sx)(`${e}_setup`,"complete_site_setup",t?"proxy":"custom-oauth"))}()},[o,e,t,i])}();const s=(0,g.useSelect)(e=>e(D.O4).getAdminURL("googlesitekit-dashboard")),u=(0,g.useSelect)(e=>e(I.oR).isAuthenticated()),[p,h]=(0,a.A)({childList:!0}),m=!!h.target?.childElementCount;return(0,f.jsxs)(c.Fragment,{children:[(0,f.jsx)("header",{className:r()("googlesitekit-header",{"googlesitekit-header--has-subheader":m,"googlesitekit-header--has-navigation":i}),children:(0,f.jsx)(H.xA,{children:(0,f.jsxs)(H.fI,{children:[(0,f.jsx)(H.fh,{smSize:1,mdSize:2,lgSize:4,className:"googlesitekit-header__logo",alignMiddle:!0,children:(0,f.jsx)(Ee.A,{"aria-label":(0,l.__)("Go to dashboard","google-site-kit"),className:"googlesitekit-header__logo-link",href:s,children:(0,f.jsx)(d.A,{})})}),(0,f.jsxs)(H.fh,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0,children:[e,!u&&o&&n&&(0,f.jsx)(ViewOnlyMenu,{}),u&&!n&&(0,f.jsx)(UserMenu,{})]})]})})}),(0,f.jsx)("div",{className:"googlesitekit-subheader",ref:p,children:t}),i&&(0,f.jsx)(DashboardNavigation,{}),(0,f.jsx)(Le,{}),(0,f.jsx)(LegacyNotifications,{}),(0,f.jsx)(Xe.A,{areaSlug:We.bI.HEADER})]})}Header.displayName="Header",Header.propTypes={children:n().node,subHeader:n().element,showNavigation:n().bool},Header.defaultProps={children:null,subHeader:null};const Ke=Header},50304(e,t,i){i.d(t,{A:()=>IconWrapper});var o=i(62688),n=i.n(o),s=i(62540);function IconWrapper({children:e,marginLeft:t,marginRight:i}){return(0,s.jsx)("span",{className:"googlesitekit-icon-wrapper",style:{marginLeft:t,marginRight:i},children:e})}IconWrapper.propTypes={children:n().node.isRequired,marginLeft:n().number,marginRight:n().number}},52735(e,t,i){i.d(t,{A:()=>o});const o=(0,i(63696).createContext)(!1)},20762(e,t,i){i.d(t,{Ay:()=>r});var o=i(52735);const{Consumer:n,Provider:s}=o.A,r=s},12666(e,t,i){i.d(t,{A:()=>ChipTabGroup});var o=i(63696),n=i(81276),s=i(50539),r=i(7144),a=i(11999),l=i(80),c=i(22942),g=i(7972),d=i(97345),u=i(88273),p=i(97513),h=i(68832);var m=i(31589),f=i(7076);var k=i(62688),y=i.n(k),_=i(49383),v=i(4452),b=i.n(v),I=i(80452),x=i(42343),N=i(64515),S=i(62540);const A={[r.QJ.SLUG]:I.A,[r.KD.SLUG]:x.A};function Chip({slug:e,label:t,isActive:i,onClick:o,hasNewBadge:n=!1,selectedCount:s=0}){const r=A[e]||N.A;return(0,S.jsxs)(_.Button,{className:b()("googlesitekit-chip-tab-group__chip-item",{"googlesitekit-chip-tab-group__chip-item--active":i}),icon:(0,S.jsx)(r,{width:12,height:12,className:`googlesitekit-chip-tab-group__chip-item-svg googlesitekit-chip-tab-group__chip-item-svg__${e}`}),trailingIcon:s>0?(0,S.jsxs)("span",{className:"googlesitekit-chip-tab-group__chip-item-count",children:["(",s,")"]}):null,onClick:()=>o(e),children:[t,n&&(0,S.jsx)("span",{className:"googlesitekit-chip-tab-group__chip-item-new-dot"})]})}Chip.propTypes={slug:y().string.isRequired,label:y().string.isRequired,isActive:y().bool,hasNewBadge:y().bool,selectedCount:y().number,onClick:y().func.isRequired};const j={[r.QJ.SLUG]:I.A,[r.KD.SLUG]:x.A};function TabItems({containerRef:e,isMobileBreakpoint:t,chipItemRows:i,allGroups:o,isActive:n,onChipChange:s,selectedCounts:r,newlyDetectedMetrics:a,activeGroupIndex:l}){return(0,S.jsxs)("div",{className:"googlesitekit-chip-tab-group__tab-items",ref:e,children:[!t&&i.map(e=>(0,S.jsx)("div",{className:"googlesitekit-chip-tab-group__tab-items-row",children:e.map(e=>(0,S.jsx)(Chip,{slug:e.SLUG,label:e.LABEL,hasNewBadge:!!a?.[e.SLUG],isActive:e.SLUG===n,onClick:s,selectedCount:r[e.SLUG]},e.SLUG))},`row-${e[0].SLUG}`)),t&&(0,S.jsx)(_.TabBar,{activeIndex:l,handleActiveIndexUpdate:e=>s(null,e),children:o.map((e,t)=>{const i=j[e.SLUG]||N.A;return(0,S.jsxs)(_.Tab,{"aria-label":e.LABEL,children:[(0,S.jsx)(i,{width:12,height:12,className:`googlesitekit-chip-tab-group__chip-item-svg googlesitekit-chip-tab-group__tab-item-mobile-svg googlesitekit-chip-tab-group__chip-item-svg__${e.SLUG}`}),e.LABEL,r[e.SLUG]>0&&(0,S.jsxs)("span",{className:"googlesitekit-chip-tab-group__chip-item-count",children:["(",r[e.SLUG],")"]}),!!a?.[e.SLUG]&&(0,S.jsx)("span",{className:"googlesitekit-chip-tab-group__chip-item-new-dot"})]},t)})})]})}TabItems.propTypes={containerRef:y().object,isMobileBreakpoint:y().bool,chipItemRows:y().array.isRequired,allGroups:y().array.isRequired,isActive:y().string.isRequired,onChipChange:y().func.isRequired,selectedCounts:y().object.isRequired,newlyDetectedMetrics:y().object.isRequired,activeGroupIndex:y().number.isRequired};var T,w,M,C,E,D,O,L,R,P,z,B,G,U,H,F,V,W,Y,Z,Q,q,$=i(82871),X=i(4169),K=i(15650);function MetricItem({slug:e,title:t,description:i,isNewlyDetected:n,savedItemSlugs:l=[]}){const c=(0,s.useSelect)(t=>{const{getModule:i}=t(u.i),o=t(X.aO).getWidget(e);return o?.modules.reduce((e,t)=>{const o=i(t);return o?.connected||!o?.name?e:[...e,o.name]},[])}),g=(0,h.A)(r.Is,r.Y0),{getValue:d}=(0,s.useSelect)(e=>e(a.s)),{setValues:p}=(0,s.useDispatch)(a.s),m=(0,o.useCallback)(t=>{const i=d(r.Is,r.Y0),o=t.target.checked?i.concat([e]):i.filter(t=>t!==e);p(r.Is,{[r.Y0]:o,[r.NO]:o})},[d,p,e]),f=g?.includes(e),k=!l.includes(e)&&c.length>0,y=`key-metric-selection-checkbox-${e}`;return(0,S.jsx)(K.y3,{id:y,slug:e,title:t,description:i,isNewlyDetected:n,isItemSelected:f,isItemDisabled:k,onCheckboxChange:m,children:c.length>0&&(0,S.jsx)("div",{className:"googlesitekit-selection-panel-item-error",children:(0,$.sprintf)(/* translators: %s: module names. */ /* translators: %s: module names. */ (0,$._n)("%s is disconnected, no data to show","%s are disconnected, no data to show",c.length,"google-site-kit"),c.join((0,$.__)(" and ","google-site-kit")))})})}function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},J.apply(null,arguments)}MetricItem.propTypes={slug:y().string.isRequired,title:y().string.isRequired,description:y().string.isRequired,isNewlyDetected:y().bool,savedItemSlugs:y().array};const key_metrics_no_selected_items=e=>o.createElement("svg",J({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 383 238"},e),T||(T=o.createElement("path",{fill:"#B8E6CA",d:"M59.238 58.571c-2.136 20.178 4.272 29.099 20.48 53.216 16.209 24.118-29.092 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.443-3.208 57.819 12.98 90.86 5.9s46.385-42.599 43.153-68.059c-5.59-44.041-26.24-49.107-34.893-66.461s2.902-52.997-30.287-73.16-76.71 14.42-112.503 12.37c-20.651-1.182-40.932-4.995-59.264.86-18.53 5.918-32.662 22.571-34.335 38.621"})),w||(w=o.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__a)"},o.createElement("rect",{width:130.621,height:89.651,x:242.455,y:45.266,fill:"#fff",rx:10.957,transform:"rotate(15 242.455 45.266)"}))),M||(M=o.createElement("rect",{width:24.903,height:7.969,x:253.726,y:64.785,fill:"#EBEEF0",rx:3.985,transform:"rotate(15 253.726 64.785)"})),C||(C=o.createElement("rect",{width:49.806,height:19.923,x:249.342,y:81.144,fill:"#FFDED3",rx:9.961,transform:"rotate(15 249.342 81.144)"})),E||(E=o.createElement("rect",{width:99.428,height:8.773,x:240.436,y:114.357,fill:"#EBEEF0",rx:3.985,transform:"rotate(15 240.436 114.357)"})),D||(D=o.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m256.195 90.198 4.644 8.044m0 0 1.412-4.986m-1.412 4.986-5.023-1.27"})),O||(O=o.createElement("rect",{width:19.923,height:5.977,x:268.706,y:93.551,fill:"#fff",rx:1.992,transform:"rotate(15 268.706 93.55)"})),L||(L=o.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__b)"},o.createElement("rect",{width:130.621,height:89.68,x:13.887,y:79.094,fill:"#fff",rx:10.957,transform:"rotate(-15 13.887 79.094)"}))),R||(R=o.createElement("rect",{width:62.386,height:7.798,x:32.989,y:90.122,fill:"#EBEEF0",rx:3.899,transform:"rotate(-15 32.99 90.122)"})),P||(P=o.createElement("rect",{width:49.806,height:19.923,x:37.691,y:106.902,fill:"#FFDED3",rx:9.961,transform:"rotate(-15 37.691 106.902)"})),z||(z=o.createElement("rect",{width:99.428,height:7.798,x:46.612,y:140.967,fill:"#EBEEF0",rx:3.899,transform:"rotate(-15 46.612 140.967)"})),B||(B=o.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m48.152 111.318 8.044 4.645m0 0-1.27-5.024m1.27 5.024-4.986 1.411"})),G||(G=o.createElement("rect",{width:19.923,height:5.977,x:60.663,y:107.966,fill:"#fff",rx:1.992,transform:"rotate(-15 60.663 107.966)"})),U||(U=o.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__c)"},o.createElement("rect",{width:130.621,height:89.68,x:126.251,y:37.4,fill:"#fff",rx:10.957}))),H||(H=o.createElement("rect",{width:98.333,height:7.867,x:143.013,y:53.134,fill:"#EBEEF0",rx:3.933})),F||(F=o.createElement("rect",{width:49.806,height:19.923,x:142.369,y:70.423,fill:"#B8E6CA",rx:9.961})),V||(V=o.createElement("rect",{width:33.04,height:7.867,x:143.013,y:105.84,fill:"#EBEEF0",rx:3.933})),W||(W=o.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m151.336 84.036 6.568-6.567m0 0-5.182-.073m5.182.073.073 5.18"})),Y||(Y=o.createElement("rect",{width:19.923,height:5.977,x:164.287,y:77.395,fill:"#fff",rx:1.992})),o.createElement("mask",{id:"key-metrics-no-selected-items_svg__d",width:273,height:230,x:58,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},Z||(Z=o.createElement("path",{fill:"#B8E6CA",d:"M59.237 58.571C57.1 78.75 63.509 87.67 79.717 111.787c16.209 24.118-29.091 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.444-3.208 57.82 12.98 90.86 5.9s46.385-42.599 43.153-68.059c-5.59-44.041-26.24-49.107-34.893-66.461s2.902-52.997-30.287-73.16-76.71 14.42-112.503 12.37c-20.651-1.182-40.932-4.995-59.264.86C75.042 25.868 60.91 42.52 59.237 58.57"}))),Q||(Q=o.createElement("g",{mask:"url(#key-metrics-no-selected-items_svg__d)"},o.createElement("path",{stroke:"#CBD0D3",strokeMiterlimit:10,strokeWidth:3.147,d:"m227.674 108.973 11.312-8.418M218.925 98.852l2.868-12.68M205.623 102.87l-5.375-13.037"}),o.createElement("path",{stroke:"#3C7251",strokeLinejoin:"round",strokeWidth:9.44,d:"M63.953 190.487c16.127 12.193 38.716 10.349 55.335 5.162 16.618-5.187 31.107-14.61 45.314-23.791 6.717-4.337 13.617-8.738 21.496-11.119s17.057-2.39 22.958 1.658c3.392 2.328 5.205 5.923 5.36 9.702"}),o.createElement("path",{stroke:"#CBD0D3",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:9.44,d:"m215.831 109.67-19.169 71.73"}),o.createElement("path",{stroke:"#161B18",strokeMiterlimit:10,strokeWidth:9.44,d:"m213.975 116.472-19.169 71.731"}))),q||(q=o.createElement("defs",null,o.createElement("filter",{id:"key-metrics-no-selected-items_svg__a",width:176.33,height:147.36,x:205.773,y:35.772,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},o.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),o.createElement("feOffset",{dy:3.985}),o.createElement("feGaussianBlur",{stdDeviation:7.969}),o.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),o.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),o.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),o.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})),o.createElement("filter",{id:"key-metrics-no-selected-items_svg__b",width:176.337,height:147.388,x:.409,y:35.793,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},o.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),o.createElement("feOffset",{dy:3.985}),o.createElement("feGaussianBlur",{stdDeviation:7.969}),o.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),o.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),o.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),o.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})),o.createElement("filter",{id:"key-metrics-no-selected-items_svg__c",width:162.497,height:121.556,x:110.313,y:25.447,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},o.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),o.createElement("feOffset",{dy:3.985}),o.createElement("feGaussianBlur",{stdDeviation:7.969}),o.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),o.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),o.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),o.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})))));var ee=i(83880);function TabContent({activeMetricItems:e,newlyDetectedMetrics:t,savedItemSlugs:i}){return(0,S.jsxs)("div",{className:"googlesitekit-chip-tab-group__tab-item",children:[Object.keys(e).map(o=>{const n=e[o].group,s=t?.[n]?.includes(o);return(0,S.jsx)(MetricItem,{slug:o,savedItemSlugs:i,isNewlyDetected:s,...e[o]},o)}),!Object.keys(e).length&&(0,S.jsxs)("div",{className:"googlesitekit-chip-tab-group__graphic",children:[(0,S.jsx)(key_metrics_no_selected_items,{height:250}),(0,S.jsx)(ee.A,{children:(0,$.__)("No metrics were selected yet","google-site-kit")})]})]})}TabContent.propTypes={activeMetricItems:y().object.isRequired,newlyDetectedMetrics:y().object.isRequired,savedItemSlugs:y().array};const te=Object.freeze([]);function ChipTabGroup({allMetricItems:e,savedItemSlugs:t}){const i=(0,o.useRef)(),[k,y]=(0,o.useState)(r.QJ.SLUG),[_,v]=(0,o.useState)(0),b=(0,p.dv)()===p.mp,I=(0,h.A)(r.Is,r.Y0),x=(0,h.A)(r.Is,r.Nl)||te,N=(0,h.A)(r.Is,r.NO)||te,A=(0,s.useSelect)(e=>e(d.oR).isUserInputCompleted()),j=(0,s.useSelect)(e=>{const t=e(d.oR).getUserPickedMetrics();if(t?.length){const i=e(l.K9).getKeyMetricsConversionEventWidgets();return Object.keys(i).filter(e=>t.some(t=>i[e].includes(t)))}const i=e(d.oR).getUserInputSettings();return i?.includeConversionEvents?.values}),T=(0,s.useSelect)(e=>e(u.i).isModuleConnected(c.L1)),w=(0,s.useSelect)(e=>T?e(l.K9).getDetectedEvents():[]),M=(0,s.useSelect)(e=>e(d.oR).getAnswerBasedMetrics(null,[...j||[],...w||[]])),{keyMetricsGroups:C,dynamicGroups:E}=function({detectedEvents:e=[],currentlyActiveEvents:t=[],isUserInputCompleted:i,answerBasedMetrics:n=[]}){const s=[l.nc.SUBMIT_LEAD_FORM,l.nc.CONTACT,l.nc.GENERATE_LEAD].filter(i=>e?.includes(i)||t?.includes(i)),a=[l.nc.ADD_TO_CART,l.nc.PURCHASE].filter(i=>e?.includes(i)||t?.includes(i)),c=(0,o.useMemo)(()=>[r.IX,r.wb,...s?.length?[r.XU]:[],...a?.length?[r.GF]:[],r.hs],[s,a]),g=(0,o.useMemo)(()=>i&&n?.length?[r.QJ,r.KD]:[r.QJ],[i,n]);return{hasGeneratingLeadsGroup:s,hasSellingProductsGroup:a,keyMetricsGroups:c,dynamicGroups:g}}({detectedEvents:w,currentlyActiveEvents:j,isUserInputCompleted:A,answerBasedMetrics:M}),D=(0,o.useMemo)(()=>[...E,...C],[E,C]),O=(0,s.useSelect)(e=>{if(!e(u.i).isModuleConnected(c.L1))return[];const t=e(l.K9).getDetectedEvents(),i=e(l.K9).getNewBadgeEvents();if(t?.length&&i?.length){const e=t.filter(e=>l.fV.includes(e)),o=i.filter(e=>l.fV.includes(e)),n=i.filter(e=>!l.fV.includes(e));if(e?.length>1&&o.length>0)return n}return i}),L=(0,s.useSelect)(e=>T?e(l.K9).getKeyMetricsConversionEventWidgets():[]),{selectedCounts:R,activeMetricItems:P,newlyDetectedMetrics:z}=function({allMetricItems:e={},isActive:t,effectiveSelection:i=[],answerBasedMetrics:n=[],selectedMetrics:s=[],newBadgeEvents:a=[],conversionReportingEventWidgets:l={}}){return(0,o.useMemo)(()=>{const o={[r.QJ.SLUG]:0},c={},g={};for(const d in e){const u=e[d].group;if((u===t||t===r.QJ.SLUG&&i.includes(d))&&(c[d]=e[d]),t===r.KD.SLUG&&n.includes(d)&&n.includes(d)&&(c[d]=e[d]),!o[u]){const t=Object.keys(e).filter(t=>!(e[t].group!==u||!s?.includes(t))).length;o[u]=t}a?.length&&a.some(e=>l[e].includes(d))&&(g[u]=[...g[u]??[],d])}return{selectedCounts:o,activeMetricItems:c,newlyDetectedMetrics:g}},[e,t,i,n,s,a,l])}({allMetricItems:e,isActive:k,effectiveSelection:x,answerBasedMetrics:M,selectedMetrics:I,newBadgeEvents:O,conversionReportingEventWidgets:L}),{setValues:B}=(0,s.useDispatch)(a.s),G=(0,o.useCallback)(()=>{B(r.Is,{[r.Y0]:I,[r.Nl]:[...x,...N],[r.NO]:[]})},[I,x,N,B]),U=(0,o.useCallback)((e,t)=>{if(e)y(e);else{const e=D[t];v(t),y(e.SLUG)}N.length&&G()},[D,N,y,G]),H=(0,s.useSelect)(e=>e(g.n).getValue(r.EA)),F=(0,n.A)(H),V=Object.keys(z);(0,o.useEffect)(()=>{if(!F&&H)if(y(r.QJ.SLUG),v(0),V.length&&b){const e=D.find(e=>e.SLUG===V[0]);v(D.indexOf(e)),y(e.SLUG)}else v(0),y(r.QJ.SLUG);F&&!H&&G()},[H,F,N,D,b,V,G]),function({containerRef:e,isMobileBreakpoint:t,isSelectionPanelOpen:i,isSelectionPanelOpenPrevious:n}){const s=(0,o.useCallback)(()=>{const i=e.current?.querySelector(".mdc-tab-scroller__scroll-content");if(!t)return;const o=e.current?.querySelectorAll(".googlesitekit-chip-tab-group__tab-items .mdc-tab");if(!o?.length||!i)return;const n=e.current?.getBoundingClientRect(),r=[];o.forEach((e,t)=>{const i=e.getBoundingClientRect();i.left>=n.left&&i.right<=n.right&&r.push(t)});const a=o[r.length];if(!a)return;const l=a.getBoundingClientRect();(l.left>=n.right||l.left-n.right<0&&-(l.left-n.right)<=20)&&("2px"===i.style.columnGap?i.style.columnGap="20px":i.style.columnGap="2px",s())},[e,t]),r=(0,f.d)(s,50);(0,m.A)("resize",r),(0,o.useEffect)(()=>{!n&&i&&s()},[i,n,s])}({containerRef:i,isMobileBreakpoint:b,isSelectionPanelOpen:H,isSelectionPanelOpenPrevious:F});const W=[[...E,...C.slice(0,2)],[...C.slice(2)]];return(0,S.jsxs)("div",{className:"googlesitekit-chip-tab-group",children:[(0,S.jsx)(TabItems,{containerRef:i,isMobileBreakpoint:b,chipItemRows:W,allGroups:D,isActive:k,onChipChange:U,selectedCounts:R,newlyDetectedMetrics:z,activeGroupIndex:_}),(0,S.jsx)(TabContent,{activeMetricItems:P,newlyDetectedMetrics:z,savedItemSlugs:t})]})}},26464(e,t,i){i.d(t,{A:()=>PanelContent});var o=i(4452),n=i.n(o),s=i(17243),r=i(62688),a=i.n(r),l=i(63696),c=i(82871),g=i(81276),d=i(50539),u=i(97345),p=i(80),h=i(22942),m=i(7144),f=i(50454),k=i(62954),y=i(65385),_=i(68832),v=i(68329),b=i(3749),I=i(62540);const x=(0,y.A)({moduleName:h.L1})(function CustomDimensionsNotice(){const e=(0,_.A)(m.Is,m.Y0),t=e?.flatMap(e=>{const t=f.G[e];return t?.requiredCustomDimensions||[]}),i=(0,d.useInViewSelect)(e=>!!t?.length&&!e(p.K9).hasCustomDimensions(t),[t]),o=(0,d.useInViewSelect)(e=>e(u.oR).hasScope(p.S9));(0,d.useInViewSelect)(e=>e(p.K9).getAvailableCustomDimensions());const n=(0,g.A)(i),s=(0,l.useRef)();if((0,l.useEffect)(()=>{if(i&&!1===n){const e=globalThis.document.activeElement;e&&e.closest(".googlesitekit-selection-panel-item")&&(0,k.N)(s.current,e)&&e.scrollIntoView()}},[i,n]),!1===i)return null;const r=o?(0,c.__)("The metrics you selected require more data tracking. We will update your Analytics property after saving your selection.","google-site-kit"):(0,c.__)("The metrics you selected require more data tracking. You will be directed to update your Analytics property after saving your selection.","google-site-kit");return(0,I.jsx)(v.A,{ref:s,type:b.Q.WARNING,description:r,hideIcon:!0})});var N=i(13606),S=i(70301),A=i(29785),j=i(38432),T=i(15650),w=i(4124),M=i(83880);function Header({closePanel:e}){const t=(0,w.A)(),i=(0,d.useSelect)(e=>e(A.O4).getSiteKitAdminSettingsURL()),o=(0,d.useSelect)(e=>e(u.oR).isSavingKeyMetricsSettings()),{navigateTo:n}=(0,d.useDispatch)(S.M),s=(0,l.useCallback)(()=>n(i),[i,n]);return(0,I.jsx)(T.W4,{title:(0,c.sprintf)(/* translators: %d: number of max allowed metrics */ /* translators: %d: number of max allowed metrics */ (0,c.__)("Select up to %d metrics","google-site-kit"),m.Hl),onCloseClick:e,children:!t&&(0,I.jsx)(M.A,{children:(0,N.A)((0,c.__)("Edit your personalized goals or deactivate this widget in <link><strong>Settings</strong></link>","google-site-kit"),{link:(0,I.jsx)(j.A,{onClick:s,disabled:o,secondary:!0}),strong:(0,I.jsx)("strong",{})})})})}Header.propTypes={closePanel:a().func.isRequired};var C=i(11999),E=i(88273),D=i(13137),O=i(62659),L=i(78990),R=i(13047),P=i(49383),z=i(4751);function SelectionPanelFooter({savedItemSlugs:e=[],selectedItemSlugs:t=[],saveSettings:i=()=>{},minSelectedItemCount:o=0,maxSelectedItemCount:n=0,isBusy:r,onSaveSuccess:a=()=>{},onCancel:g=()=>{},isOpen:u,closePanel:h=()=>{},isFullScreen:m=!1}){const[f,k]=(0,l.useState)(null),[y,_]=(0,l.useState)(!1),v=(0,d.useSelect)(e=>e(p.K9).isFetchingSyncAvailableAudiences()),b=(0,l.useMemo)(()=>!(0,s.isEqual)((0,R.N9)(t),(0,R.N9)(e)),[e,t]);let x=e?.length>0&&b?(0,c.__)("Apply changes","google-site-kit"):(0,c.__)("Save selection","google-site-kit");m&&(x=(0,c.__)("Complete setup","google-site-kit"));const S=(0,l.useCallback)(async()=>{const{error:e}=await i(t);e||(a(),h(),m||(k(x),_(!0)))},[i,t,a,h,m,x]),A=(0,l.useCallback)(()=>{h(),g()},[h,g]),[j,T]=(0,l.useState)(null);(0,l.useEffect)(()=>{null!==j&&j!==u&&u&&(k(null),_(!1)),T(u)},[u,j]);const w=t?.length||0,M=v?(0,I.jsx)(z.A,{width:"89px",height:"20px"}):(0,I.jsx)("p",{className:"googlesitekit-selection-panel-footer__item-count",children:(0,N.A)((0,c.sprintf)(/* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */ /* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */ (0,c.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),w,n),{MaxCount:(0,I.jsx)("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})})});return(0,I.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,I.jsx)("div",{className:"googlesitekit-selection-panel-footer__content",children:(0,I.jsxs)("div",{className:"googlesitekit-selection-panel-footer__actions",children:[(0,I.jsx)(P.Button,{onClick:A,disabled:r,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),M,(0,I.jsx)(P.SpinnerButton,{onClick:S,isSaving:r,disabled:w<o||w>n||r||!u&&y,children:f||x})]})})})}function Footer({isOpen:e,closePanel:t=s.noop,savedMetrics:i,onNavigationToOAuthURL:o=()=>{},isFullScreen:n=!1}){const r=(0,d.useRegistry)(),a=(0,O.A)(),g=(0,_.A)(m.Is,m.Y0),k=(0,d.useSelect)(e=>e(u.oR).isSavingKeyMetricsSettings()),y=`${a}_kmw-sidebar`,v=g?.flatMap(e=>{const t=f.G[e];return t?.requiredCustomDimensions||[]}),b=(0,d.useInViewSelect)(e=>{if(!v?.length)return!1;return!e(p.K9).hasCustomDimensions(v)},[v]),x=(0,d.useInViewSelect)(e=>e(u.oR).hasScope(p.S9)),N=(0,d.useSelect)(e=>e(E.i).isModuleConnected(h.L1)),j=(0,d.useSelect)(e=>e(A.O4).getAdminURL("googlesitekit-dashboard",{notification:"custom_dimensions"})),T=(0,d.useSelect)(e=>{const t=e(u.oR).getConnectURL({additionalScopes:[p.S9],redirectURL:j});return!!t&&e(S.M).isNavigatingTo(t)}),w=(0,d.useSelect)(e=>e(A.O4).getAdminURL("googlesitekit-dashboard")),M=(0,d.useSelect)(e=>!!w&&e(S.M).isNavigatingTo(w)),{saveKeyMetricsSettings:P,setPermissionScopeError:z}=(0,d.useDispatch)(u.oR),{setValues:B}=(0,d.useDispatch)(C.s),{navigateTo:G}=(0,d.useDispatch)(S.M),U=(0,d.useSelect)(e=>e(p.K9).getKeyMetricsConversionEventWidgets()),H=(0,l.useCallback)(async e=>{const{error:t}=await P({widgetSlugs:e});return{error:t}},[P]),F=(0,l.useCallback)(async e=>{if(Object.values(U).flat().some(t=>e.includes(t))?(0,R.sx)(y,"metrics_sidebar_save","conversion_reporting"):(0,R.sx)(y,"metrics_sidebar_save"),N&&b){if(B(p.Kr,{autoSubmit:!0}),!x)return o(),t(),void z({code:D.db,message:(0,c.__)("Additional permissions are required to create new Analytics custom dimensions","google-site-kit"),data:{status:403,scopes:[p.S9],skipModal:!0,redirectURL:j}});n&&await(0,L.mR)(r)}n&&G(w)},[U,N,b,n,y,B,x,o,t,z,j,r,G,w]),V=(0,l.useCallback)(()=>{(0,R.sx)(y,"metrics_sidebar_cancel"),n&&G(w)},[n,w,G,y]);return(0,I.jsx)(SelectionPanelFooter,{savedItemSlugs:i,selectedItemSlugs:g,saveSettings:H,minSelectedItemCount:m.LO,maxSelectedItemCount:m.Hl,isBusy:k||T||M&&n,onSaveSuccess:()=>{F(g)},onCancel:V,isOpen:e,closePanel:t,isFullScreen:n})}SelectionPanelFooter.propTypes={savedItemSlugs:a().array,selectedItemSlugs:a().array,saveSettings:a().func,saveError:a().object,minSelectedItemCount:a().number,maxSelectedItemCount:a().number,isBusy:a().bool,onSaveSuccess:a().func,onCancel:a().func,isOpen:a().bool,closePanel:a().func,isFullScreen:a().bool},Footer.propTypes={isOpen:a().bool,closePanel:a().func,savedMetrics:a().array,onNavigationToOAuthURL:a().func,isFullScreen:a().bool};var B=i(12666);function SelectionPanelItems({savedItemSlugs:e=[],allMetricItems:t}){return(0,I.jsx)("div",{className:"googlesitekit-selection-panel-items",children:(0,I.jsx)(B.A,{savedItemSlugs:e,allMetricItems:t})})}function MetricItems({savedMetrics:e}){const t=(0,w.A)(),{isKeyMetricAvailable:i}=(0,d.useSelect)(e=>e(u.oR)),o=(0,d.useInViewSelect)(e=>i=>f.G[i].displayInSelectionPanel({select:e,isViewOnlyDashboard:t,slug:i}),[t]);const n=Object.keys(f.G).reduce(function(e,t){if(!i(t))return e;if(void 0===o||"function"==typeof f.G[t].displayInSelectionPanel&&!o(t))return e;const{title:n,description:s,metadata:{group:r}}=f.G[t];return{...e,[t]:{title:n,description:s,group:r}}},{});return(0,I.jsx)(SelectionPanelItems,{savedItemSlugs:e,allMetricItems:n})}SelectionPanelItems.propTypes={savedItemSlugs:a().array,allMetricItems:a().object.isRequired},MetricItems.propTypes={savedMetrics:a().array};var G=i(65695);const U=(0,y.A)({moduleName:h.L1})(function KeyMetricsError({savedMetrics:e}){const t=(0,_.A)(m.Is,m.Y0),i=(0,d.useInViewSelect)(e=>e(u.oR).getKeyMetricsSettings()),o=(0,l.useMemo)(()=>!(0,s.isEqual)((0,R.N9)(t),(0,R.N9)(e)),[e,t]),n=(0,d.useSelect)(e=>e(u.oR).getErrorForAction("saveKeyMetricsSettings",[{...i,widgetSlugs:t}])),r=t?.length||0;let a;r<m.LO?a=(0,c.sprintf)(/* translators: 1: Minimum number of metrics that can be selected. 2: Number of selected metrics. */ /* translators: 1: Minimum number of metrics that can be selected. 2: Number of selected metrics. */ (0,c.__)("Select at least %1$d metrics (%2$d selected)","google-site-kit"),m.LO,r):r>m.Hl&&(a=(0,c.sprintf)(/* translators: 1: Maximum number of metrics that can be selected. 2: Number of selected metrics. */ /* translators: 1: Maximum number of metrics that can be selected. 2: Number of selected metrics. */ (0,c.__)("Select up to %1$d metrics (%2$d selected)","google-site-kit"),m.Hl,r));let g=n;return o&&a&&(g={message:a}),(0,I.jsx)(G.A,{error:g,skipRetryMessage:!!a})});function PanelContent({isOpen:e=!1,closePanel:t,savedViewableMetrics:i,showHeader:o=!0,setIsNavigatingToOAuthURL:r=s.noop,isFullScreen:a=!1}){return(0,I.jsxs)(l.Fragment,{children:[o&&(0,I.jsx)(Header,{closePanel:t}),(0,I.jsxs)(T.kA,{children:[(0,I.jsx)(MetricItems,{savedMetrics:i}),(0,I.jsx)(x,{})]}),(0,I.jsxs)("div",{className:n()("googlesitekit-user-input__footer-container",{"googlesitekit-user-input__footer-container--fullscreen":a}),children:[(0,I.jsx)(U,{savedMetrics:i}),(0,I.jsx)(Footer,{isOpen:e,closePanel:t,savedMetrics:i,onNavigationToOAuthURL:()=>{r(!0)},isFullScreen:a})]})]})}PanelContent.propTypes={isOpen:a().bool,closePanel:a().func,savedViewableMetrics:a().array,showHeader:a().bool,setIsNavigatingToOAuthURL:a().func,isFullScreen:a().bool}},7144(e,t,i){i.d(t,{EA:()=>s,GF:()=>k,Hl:()=>d,IX:()=>h,Is:()=>r,KD:()=>p,LO:()=>g,NO:()=>c,Nl:()=>l,QJ:()=>u,Uf:()=>n,XU:()=>f,Y0:()=>a,hs:()=>y,wb:()=>m});var o=i(82871);const n="key-metrics-setup-cta-widget",s="googlesitekit-key-metrics-selection-panel-opened",r="key-metrics-selection-form",a="key-metrics-selected",l="key-metrics-effective-selection",c="key-metrics-unstaged-selection",g=2,d=8,u={SLUG:"current-selection",LABEL:(0,o.__)("Current selection","google-site-kit")},p={SLUG:"suggested",LABEL:(0,o.__)("Suggested","google-site-kit")},h={SLUG:"visitors",LABEL:(0,o.__)("Visitors","google-site-kit")},m={SLUG:"driving-traffic",LABEL:(0,o.__)("Driving traffic","google-site-kit")},f={SLUG:"generating-leads",LABEL:(0,o.__)("Generating leads","google-site-kit")},k={SLUG:"selling-products",LABEL:(0,o.__)("Selling products","google-site-kit")},y={SLUG:"content-performance",LABEL:(0,o.__)("Content performance","google-site-kit")}},50454(e,t,i){i.d(t,{G:()=>d});var o=i(82871),n=i(97345),s=i(29785),r=i(80);function a({select:e,slug:t}){return e(r.K9).hasConversionReportingEvents(this.requiredConversionEventName)||e(n.oR).isKeyMetricActive(t)}var l=i(7144);function c({select:e,isViewOnlyDashboard:t}){return!t||!(!t||!e(r.K9).getAdSenseLinked())}function g({select:e,isViewOnlyDashboard:t}){return!t||e(r.K9).hasCustomDimensions(this.requiredCustomDimensions)}const d={[n.p3]:{title:(0,o.__)("Top earning pages","google-site-kit"),description:(0,o.__)("Pages that generated the most AdSense revenue","google-site-kit"),infoTooltip:(0,o.__)("Pages that generated the most AdSense revenue","google-site-kit"),displayInSelectionPanel:c,displayInList:c,metadata:{group:l.hs.SLUG}},[n.BT]:{title:(0,o.__)("Top recent trending pages","google-site-kit"),description:(0,o.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),infoTooltip:(0,o.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_date"],displayInSelectionPanel:g,displayInWidgetArea:g,displayInList:g,metadata:{group:l.hs.SLUG}},[n.tB]:{title:(0,o.__)("Most popular authors by pageviews","google-site-kit"),description:(0,o.__)("Authors whose posts got the most visits","google-site-kit"),infoTooltip:(0,o.__)("Authors whose posts got the most visits","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_author"],displayInSelectionPanel:g,displayInWidgetArea:g,displayInList:g,metadata:{group:l.hs.SLUG}},[n.t1]:{title:(0,o.__)("Top categories by pageviews","google-site-kit"),description:(0,o.__)("Categories that your site visitors viewed the most","google-site-kit"),infoTooltip:(0,o.__)("Categories that your site visitors viewed the most","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_categories"],displayInSelectionPanel:g,displayInWidgetArea:g,displayInList:g,metadata:{group:l.hs.SLUG}},[n.ep]:{title:(0,o.__)("Most popular content by pageviews","google-site-kit"),description:(0,o.__)("Pages that brought in the most visitors","google-site-kit"),infoTooltip:(0,o.__)("Pages your visitors read the most","google-site-kit"),metadata:{group:l.hs.SLUG}},[n.pG]:{title:(0,o.__)("Most popular products by pageviews","google-site-kit"),description:(0,o.__)("Products that brought in the most visitors","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_type"],displayInSelectionPanel:({select:e})=>e(n.oR).isKeyMetricActive(n.pG)||e(s.O4).getProductPostType(),displayInWidgetArea:g,metadata:{group:l.GF.SLUG}},[n.nH]:{title:(0,o.__)("Pages per visit","google-site-kit"),description:(0,o.__)("Number of pages visitors viewed per session on average","google-site-kit"),infoTooltip:(0,o.__)("Number of pages visitors viewed per session on average","google-site-kit"),metadata:{group:l.IX.SLUG}},[n.J5]:{title:(0,o.__)("Visit length","google-site-kit"),description:(0,o.__)("Average duration of engaged visits","google-site-kit"),infoTooltip:(0,o.__)("Average duration of engaged visits","google-site-kit"),metadata:{group:l.IX.SLUG}},[n.Yw]:{title:(0,o.__)("Visits per visitor","google-site-kit"),description:(0,o.__)("Average number of sessions per site visitor","google-site-kit"),infoTooltip:(0,o.__)("Average number of sessions per site visitor","google-site-kit"),metadata:{group:l.IX.SLUG}},[n.UY]:{title:(0,o.__)("Most engaging pages","google-site-kit"),description:(0,o.__)("Pages with the highest engagement rate","google-site-kit"),infoTooltip:(0,o.__)("Pages with the highest engagement rate","google-site-kit"),metadata:{group:l.hs.SLUG}},[n.gC]:{title:(0,o.__)("Least engaging pages","google-site-kit"),description:(0,o.__)("Pages with the highest percentage of visitors that left without engagement with your site","google-site-kit"),infoTooltip:(0,o.__)("Percentage of visitors that left without engagement with your site","google-site-kit"),metadata:{group:l.hs.SLUG}},[n.tK]:{title:(0,o.__)("Top pages by returning visitors","google-site-kit"),description:(0,o.__)("Pages that attracted the most returning visitors","google-site-kit"),infoTooltip:(0,o.__)("Pages that attracted the most returning visitors","google-site-kit"),metadata:{group:l.IX.SLUG}},[n.fu]:{title:(0,o.__)("New visitors","google-site-kit"),description:(0,o.__)("How many new visitors you got and how the overall audience changed","google-site-kit"),infoTooltip:(0,o.__)("Portion of visitors who visited your site for the first time in this timeframe","google-site-kit"),metadata:{group:l.IX.SLUG}},[n.dX]:{title:(0,o.__)("Returning visitors","google-site-kit"),description:(0,o.__)("Portion of people who visited your site more than once","google-site-kit"),infoTooltip:(0,o.__)("Portion of your site’s visitors that returned at least once in this timeframe","google-site-kit"),metadata:{group:l.IX.SLUG}},[n.SS]:{title:(0,o.__)("Top traffic source","google-site-kit"),description:(0,o.__)("Channel which brought in the most visitors to your site","google-site-kit"),infoTooltip:(0,o.__)("Channel (e.g. social, paid, search) that brought in the most visitors to your site","google-site-kit"),metadata:{group:l.wb.SLUG}},[n.Vl]:{title:(0,o.__)("Top traffic source driving add to cart","google-site-kit"),description:(0,o.__)("Channel which brought in the most add to cart events to your site","google-site-kit"),infoTooltip:(0,o.__)("Channel (e.g. social, paid, search) that brought in the most add to cart events to your site","google-site-kit"),requiredConversionEventName:[r.nc.ADD_TO_CART],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[n.u_]:{title:(0,o.__)("Top traffic source driving leads","google-site-kit"),description:(0,o.__)("Channel which brought in the most leads to your site","google-site-kit"),infoTooltip:(0,o.__)("Channel (e.g. social, paid, search) that brought in the most leads to your site","google-site-kit"),requiredConversionEventName:[r.nc.SUBMIT_LEAD_FORM,r.nc.CONTACT,r.nc.GENERATE_LEAD],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.XU.SLUG}},[n.HA]:{title:(0,o.__)("Top traffic source driving purchases","google-site-kit"),description:(0,o.__)("Channel which brought in the most purchases to your site","google-site-kit"),infoTooltip:(0,o.__)("Channel (e.g. social, paid, search) that brought in the most purchases to your site","google-site-kit"),requiredConversionEventName:[r.nc.PURCHASE],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[n.GT]:{title:(0,o.__)("Most engaged traffic source","google-site-kit"),description:(0,o.__)("Visitors coming via this channel spent the most time on your site","google-site-kit"),infoTooltip:(0,o.__)("Channel (e.g. social, paid, search) that brought in the most visitors who had a meaningful engagement with your site","google-site-kit"),metadata:{group:l.wb.SLUG}},[n.qy]:{title:(0,o.__)("Top converting traffic source","google-site-kit"),description:(0,o.__)("Channel which brought in the most visits that resulted in key events","google-site-kit"),infoTooltip:(0,o.__)("Channel (e.g. social, paid, search) that brought in visitors who generated the most key events","google-site-kit"),metadata:{group:l.wb.SLUG}},[n.GM]:{title:(0,o.__)("Top cities driving traffic","google-site-kit"),description:(0,o.__)("Which cities you get the most visitors from","google-site-kit"),infoTooltip:(0,o.__)("The cities where most of your visitors came from","google-site-kit"),metadata:{group:l.wb.SLUG}},[n.CQ]:{title:(0,o.__)("Top cities driving leads","google-site-kit"),description:(0,o.__)("Cities driving the most contact form submissions","google-site-kit"),infoTooltip:(0,o.__)("Cities driving the most contact form submissions","google-site-kit"),requiredConversionEventName:[r.nc.SUBMIT_LEAD_FORM,r.nc.CONTACT,r.nc.GENERATE_LEAD],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.XU.SLUG}},[n.Xq]:{title:(0,o.__)("Top cities driving add to cart","google-site-kit"),description:(0,o.__)("Cities where visitors most frequently add products to their carts","google-site-kit"),infoTooltip:(0,o.__)("Cities where visitors most frequently add products to their carts","google-site-kit"),requiredConversionEventName:[r.nc.ADD_TO_CART],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[n.JF]:{title:(0,o.__)("Top cities driving purchases","google-site-kit"),description:(0,o.__)("Cities driving the most purchases","google-site-kit"),infoTooltip:(0,o.__)("Cities driving the most purchases","google-site-kit"),requiredConversionEventName:[r.nc.PURCHASE],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[n.YQ]:{title:(0,o.__)("Top device driving purchases","google-site-kit"),description:(0,o.__)("Top device driving the most purchases","google-site-kit"),infoTooltip:(0,o.__)("Top device driving the most purchases","google-site-kit"),requiredConversionEventName:[r.nc.PURCHASE],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[n.dV]:{title:(0,o.__)("Top countries driving traffic","google-site-kit"),description:(0,o.__)("Which countries you get the most visitors from","google-site-kit"),infoTooltip:(0,o.__)("The countries where most of your visitors came from","google-site-kit"),metadata:{group:l.wb.SLUG}},[n.t7]:{title:(0,o.__)("Top performing keywords","google-site-kit"),description:(0,o.__)("What people searched for before they came to your site","google-site-kit"),infoTooltip:(0,o.__)("The top search queries for your site by highest clickthrough rate","google-site-kit"),metadata:{group:l.wb.SLUG}},[n.HP]:{title:(0,o.__)("Top pages driving leads","google-site-kit"),description:(0,o.__)("Pages on which forms are most frequently submitted","google-site-kit"),requiredConversionEventName:[r.nc.SUBMIT_LEAD_FORM,r.nc.CONTACT,r.nc.GENERATE_LEAD],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.XU.SLUG}}}},38432(e,t,i){i.d(t,{A:()=>T});var o,n=i(4452),s=i.n(n),r=i(62688),a=i.n(r),l=i(39941),c=i(63696),g=i(82871);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},d.apply(null,arguments)}const u=e=>c.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),o||(o=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"currentColor"}),c.createElement("path",{fill:"#FFF",d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 0 0 .325.79.46.46 0 0 0 .325-.135l3.037-3.038a.46.46 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.46.46 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var p;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},h.apply(null,arguments)}const m=e=>c.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),p||(p=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"#FFF"}),c.createElement("path",{fill:"currentColor",d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 0 0 .325.79.46.46 0 0 0 .325-.135l3.037-3.038a.46.46 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.46.46 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var f;function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},k.apply(null,arguments)}const y=e=>c.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),f||(f=c.createElement("path",{d:"m12 20-8-8 8-8 1.425 1.4-5.6 5.6H20v2H7.825l5.6 5.6z"})));var _=i(83366),v=i(50304),b=i(62540);const I="BUTTON",x="BUTTON_DISABLED",N="EXTERNAL_LINK",S="LINK",A="ROUTER_LINK",j=(0,c.forwardRef)((e,t)=>{const{"aria-label":i,secondary:o=!1,arrow:n=!1,back:r=!1,caps:a=!1,children:c,className:d="",danger:p=!1,disabled:h=!1,external:f=!1,hideExternalIndicator:k=!1,href:j="",inverse:T=!1,noFlex:w=!1,onClick:M,small:C=!1,standalone:E=!1,linkButton:D=!1,to:O,leadingIcon:L,trailingIcon:R,...P}=e;const z=j||O||!M?O?A:f?N:S:h?x:I;const B=z===I||z===x?"button":z===A?l.N_:"a",G=function(){let e;return z===N&&(e=(0,g._x)("(opens in a new tab)","screen reader text","google-site-kit")),z===x&&(e=(0,g._x)("(disabled)","screen reader text","google-site-kit")),e?i?`${i} ${e}`:"string"==typeof c?`${c} ${e}`:void 0:i}();let U=L,H=R;return r&&(U=(0,b.jsx)(y,{width:14,height:14})),f&&!k&&(H=(0,b.jsx)(_.A,{width:14,height:14})),n&&!T&&(H=(0,b.jsx)(u,{width:14,height:14})),n&&T&&(H=(0,b.jsx)(m,{width:14,height:14})),(0,b.jsxs)(B,{"aria-label":G,className:s()("googlesitekit-cta-link",d,{"googlesitekit-cta-link--secondary":o,"googlesitekit-cta-link--inverse":T,"googlesitekit-cta-link--small":C,"googlesitekit-cta-link--caps":a,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":h,"googlesitekit-cta-link--standalone":E,"googlesitekit-cta-link--link-button":D,"googlesitekit-cta-link--no-flex":!!w}),disabled:h,href:z!==S&&z!==N||h?void 0:j,onClick:M,rel:z===N?"noopener noreferrer":void 0,ref:t,target:z===N?"_blank":void 0,to:O,...P,children:[!!U&&(0,b.jsx)(v.A,{marginRight:5,children:U}),(0,b.jsx)("span",{className:"googlesitekit-cta-link__contents",children:c}),!!H&&(0,b.jsx)(v.A,{marginLeft:5,children:H})]})});j.propTypes={arrow:a().bool,back:a().bool,caps:a().bool,children:a().node,className:a().string,danger:a().bool,disabled:a().bool,external:a().bool,hideExternalIndicator:a().bool,href:a().string,inverse:a().bool,leadingIcon:a().node,linkButton:a().bool,noFlex:a().bool,onClick:a().func,small:a().bool,standalone:a().bool,to:a().string,trailingIcon:a().node};const T=j},45257(e,t,i){i.d(t,{A:()=>LoadingWrapper});var o=i(62688),n=i.n(o),s=i(4751),r=i(62540);function LoadingWrapper({loading:e,children:t,...i}){return e?(0,r.jsx)(s.A,{...i}):t}LoadingWrapper.propTypes={loading:n().bool,children:n().node,...s.A.propTypes}},44436(e,t,i){i.d(t,{A:()=>d});var o,n=i(82871),s=i(88933),r=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},a.apply(null,arguments)}const l=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 80 21"},e),o||(o=r.createElement("path",{fill:"#5F6368",d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1zM69.985 3.117c0 .454-.167.853-.488 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.6 1.6 0 0 1-.488-1.175c0-.466.166-.854.488-1.176s.71-.488 1.175-.488c.455 0 .854.166 1.176.488.332.333.487.72.487 1.176m-.477 4.313v12.498h-2.351V7.43zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943q-1.014-.948-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333M2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974q-.883-.781-3.094-1.564l-1.22-.432Q3.371 9.997 2.04 8.716C1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673S2.75 1.209 3.693.72C4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676-.91 1.032-.91 1.742c0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6 6 0 0 1-2.495 1.919 8 8 0 0 1-3.116.621c-1.62 0-3.072-.466-4.358-1.408M15.969 3.449a1.95 1.95 0 0 1-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0 1 17.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 0 1-1.43.589c-.566-.012-1.043-.2-1.431-.588m-.067 2.595h2.994v13.883h-2.994zM25.406 19.85c-.544-.2-.987-.466-1.331-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122q.35-.116.765-.399v2.917c-.599.277-1.32.41-2.173.41a5 5 0 0 1-1.753-.3M33.623 19.407a6.63 6.63 0 0 1-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706s2.251-1.01 3.593-1.01c1.397 0 2.606.311 3.637.921a6.1 6.1 0 0 1 2.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.16 4.16 0 0 0 2.817 1.043c.854 0 1.597-.189 2.218-.588a4.27 4.27 0 0 0 1.508-1.597l2.528 1.198q-.981 1.713-2.561 2.694c-1.054.655-2.318.976-3.782.976q-2.046.033-3.66-.931m7.23-8.051a3.3 3.3 0 0 0-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296z"})));var c=i(55989),g=i(62540);const d=function Logo(){return(0,g.jsxs)("div",{className:"googlesitekit-logo","aria-hidden":"true",children:[(0,g.jsx)(s.A,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),(0,g.jsx)(l,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),(0,g.jsx)(c.A,{children:(0,n.__)("Site Kit by Google Logo","google-site-kit")})]})}},59865(e,t,i){i.d(t,{A:()=>p});var o=i(62688),n=i.n(o),s=i(4452),r=i.n(s),a=i(52684),l=i(13606),c=i(82871),g=i(49383),d=i(85149),u=i(62540);function ModalDialog({className:e="",dialogActive:t=!1,handleCancel:i=null,onOpen:o=null,onClose:n=null,title:s=null,provides:p,handleConfirm:h,subtitle:m,confirmButton:f=null,notes:k=[],danger:y=!1,inProgress:_=!1,small:v=!1,medium:b=!1,buttonLink:I=null}){const x=`googlesitekit-dialog-description-${(0,a.A)(ModalDialog)}`,N=!(!p||!p.length);return(0,u.jsxs)(g.Dialog,{open:t,onOpen:o,onClose:n,"aria-describedby":N?x:void 0,tabIndex:"-1",className:r()(e,{"googlesitekit-dialog-sm":v,"googlesitekit-dialog-md":b}),children:[(0,u.jsxs)(g.DialogTitle,{children:[y&&(0,u.jsx)(d.A,{width:28,height:28}),s]}),m?(0,u.jsx)("p",{className:"mdc-dialog__lead",children:m}):[],(0,u.jsxs)(g.DialogContent,{children:[N&&(0,u.jsx)("section",{id:x,className:"mdc-dialog__provides",children:(0,u.jsx)("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive",children:p.map(e=>(0,u.jsx)("li",{className:"mdc-list-item",children:(0,u.jsx)("span",{className:"mdc-list-item__text",children:e})},e))})}),k.length>0&&(0,u.jsx)("section",{className:"mdc-dialog__notes",children:k.map((e,t)=>(0,u.jsxs)("p",{className:"mdc-dialog__note",children:["string"==typeof e&&(0,l.A)((0,c.sprintf)(/* translators: %s is replaced with some sub-note text. */ /* translators: %s is replaced with some sub-note text. */ (0,c.__)("<strong>Note:</strong> %s","google-site-kit"),e),{strong:(0,u.jsx)("strong",{})}),"function"==typeof e&&(0,u.jsx)(e,{})]},`note-${t}`))})]}),(0,u.jsxs)(g.DialogFooter,{children:[(0,u.jsx)(g.Button,{className:"mdc-dialog__cancel-button",onClick:i,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),I?(0,u.jsx)(g.Button,{href:I,onClick:h,target:"_blank",danger:y,children:f}):(0,u.jsx)(g.SpinnerButton,{onClick:h,danger:y,disabled:_,isSaving:_,children:f||(0,c.__)("Disconnect","google-site-kit")})]})]})}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:n().string,dialogActive:n().bool,handleDialog:n().func,handleConfirm:n().func.isRequired,onOpen:n().func,onClose:n().func,title:n().string,provides:n().arrayOf(n().string),confirmButton:n().string,notes:n().arrayOf(n().oneOfType([n().string,n().elementType])),danger:n().bool,small:n().bool,medium:n().bool,buttonLink:n().string};const p=ModalDialog},25797(e,t,i){i.d(t,{A:()=>_});var o,n=i(62688),s=i.n(n),r=i(4452),a=i.n(r),l=i(63696),c=i(19793);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},g.apply(null,arguments)}const warning_notice=e=>l.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),o||(o=l.createElement("path",{fill:"currentColor",d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1m0 14a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m-1-2h2V6h-2z"})));var d=i(42343),u=i(3749),p=i(62540);const h={[u.Q.NEW]:d.A,[u.Q.SUCCESS]:c.A,[u.Q.INFO]:warning_notice,[u.Q.WARNING]:warning_notice,[u.Q.ERROR]:warning_notice};function Icon({type:e}){const t=h[e]||warning_notice;return(0,p.jsx)(t,{width:24,height:24})}function Title({className:e,children:t}){return(0,p.jsx)("p",{className:a()("googlesitekit-notice__title",e),children:t})}function Description({className:e,children:t}){return(0,p.jsx)("p",{className:a()("googlesitekit-notice__description",e),children:t})}Icon.propTypes={type:s().oneOf(Object.values(u.Q))},Title.propTypes={className:s().string,children:s().node},Description.propTypes={className:s().string,children:s().node};var m=i(49383),f=i(83366);function CTAButton({label:e,disabled:t,inProgress:i,onClick:o,href:n,external:s=!1,hideExternalIndicator:r=!1}){let l;return s&&!r&&(l=(0,p.jsx)(f.A,{width:14,height:14})),(0,p.jsx)(m.SpinnerButton,{className:a()("googlesitekit-notice__cta",{"googlesitekit-notice__cta--spinner__running":i}),disabled:t,isSaving:i,onClick:o,href:n,target:s?"_blank":void 0,trailingIcon:l,children:e})}CTAButton.propTypes={label:s().string.isRequired,disabled:s().bool,inProgress:s().bool,onClick:s().func,href:s().string,external:s().bool,hideExternalIndicator:s().bool};var k=i(82871);function DismissButton({label:e=(0,k.__)("Got it","google-site-kit"),onClick:t,disabled:i,href:o,external:n=!1}){return(0,p.jsx)(m.Button,{onClick:t,disabled:i,href:o,target:n?"_blank":void 0,tertiary:!0,children:e})}DismissButton.propTypes={label:s().string,onClick:s().func.isRequired,disabled:s().bool,href:s().string,external:s().bool};const y=(0,l.forwardRef)(({className:e,title:t,description:i,dismissButton:o,ctaButton:n,type:s=u.Q.INFO,children:r,hideIcon:l},c)=>(0,p.jsx)("div",{className:"googlesitekit-notice-container",ref:c,children:(0,p.jsxs)("div",{className:a()("googlesitekit-notice",`googlesitekit-notice--${s}`,e),role:"status",children:[!l&&(0,p.jsx)("div",{className:"googlesitekit-notice__icon",children:(0,p.jsx)(Icon,{type:s})}),(0,p.jsxs)("div",{className:"googlesitekit-notice__content",children:[t&&(0,p.jsx)(Title,{children:t}),i&&(0,p.jsx)(Description,{children:i})]}),(o?.label||o?.onClick||n?.label&&(n?.onClick||n?.href)||r)&&(0,p.jsxs)("div",{className:"googlesitekit-notice__action",children:[r,(o?.label||o?.onClick)&&(0,p.jsx)(DismissButton,{label:o.label,onClick:o.onClick,disabled:o.disabled,href:o.href,external:o.external}),n?.label&&(n?.onClick||n?.href)&&(0,p.jsx)(CTAButton,{label:n.label,onClick:n.onClick,inProgress:n.inProgress,disabled:n.disabled,href:n.href,external:n.external,hideExternalIndicator:n.hideExternalIndicator})]})]})}));y.TYPES=u.Q,y.propTypes={className:s().string,title:s().oneOfType([s().string,s().object]),description:s().node,type:s().oneOf(Object.values(u.Q)),dismissButton:s().shape(DismissButton.propTypes),ctaButton:s().shape({...CTAButton.propTypes,label:s().string}),children:s().node,hideIcon:s().bool};const _=y},89766(e,t,i){i.d(t,{A:()=>l});var o=i(62688),n=i.n(o),s=i(67510),r=i(13047),a=i(62540);function NotificationFromServer({id:e,titleIcon:t,title:i,content:o,ctaLabel:n,ctaTarget:l,ctaURL:c,dismissible:g,dismissLabel:d,learnMoreLabel:u,learnMoreURL:p,onCTAClick:h,onDismissClick:m,gaTrackingEventArgs:f}){const k={expiresInSeconds:r.Jg};return(0,a.jsx)(s.A,{notificationID:e,type:s.Q.WARNING,titleIcon:t||void 0,title:i,description:o,learnMoreLink:p?{label:u,href:p}:void 0,ctaButton:{label:n,href:c,onClick:h,dismissOptions:k,external:"_blank"===l},dismissButton:g?{label:d,onClick:m,dismissOptions:k}:void 0,gaTrackingEventArgs:f})}NotificationFromServer.propTypes={id:n().string.isRequired,title:n().string.isRequired,content:n().node,ctaLabel:n().string,ctaTarget:n().string,ctaURL:n().string,dismissible:n().bool,dismissLabel:n().string,learnMoreLabel:n().string,learnMoreURL:n().string,onCTAClick:n().func,onDismissClick:n().func,gaTrackingEventArgs:n().object};const l=NotificationFromServer},64515(e,t,i){function Null(){return null}i.d(t,{A:()=>Null})},11974(e,t,i){i.d(t,{A:()=>OptIn});var o=i(62688),n=i.n(o),s=i(4452),r=i.n(s),a=i(63696),l=i(13606),c=i(82871),g=i(50539),d=i(97345),u=i(65054),p=i(38432),h=i(62659),m=i(7076),f=i(49383),k=i(62540);function LayoutDefault({checkboxProps:e,label:t}){return(0,k.jsx)(f.Checkbox,{...e,children:t})}function LayoutStacked({checkboxProps:e,title:t,description:i}){return(0,k.jsxs)(a.Fragment,{children:[(0,k.jsx)(f.Checkbox,{...e,children:t}),(0,k.jsx)("div",{className:"googlesitekit-opt-in__description",children:i})]})}LayoutDefault.propTypes={checkboxProps:n().object.isRequired,label:n().node.isRequired},LayoutStacked.propTypes={checkboxProps:n().object.isRequired,title:n().node.isRequired,description:n().node.isRequired};const y="default",_="stacked";function OptIn({id:e="googlesitekit-opt-in",name:t="optIn",className:i,layout:o=y,title:n=null,description:s=null,trackEventCategory:f,trackEventAction:v="tracking_optin"}){const[b,I]=(0,a.useState)(),x=(0,g.useSelect)(e=>e(d.oR).isTrackingEnabled()),N=(0,g.useSelect)(e=>e(d.oR).getErrorForAction("setTrackingEnabled",[!x])),{setTrackingEnabled:S}=(0,g.useDispatch)(d.oR),A=(0,h.A)(),j=(0,a.useCallback)(async e=>{const{response:t,error:i}=await S(e);i?I(x):((0,u.M9)(t.enabled),t.enabled&&(0,u.sx)(f||A,v))},[x,S,f,v,A]);(0,a.useEffect)(()=>{void 0!==x&&void 0===b&&I(x)},[x,b]);const T=(0,m.d)(j,300),w=(0,a.useCallback)(e=>{const t=e.target.checked;I(t),T(t)},[T]),M=n??(0,k.jsx)("span",{children:(0,c.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")}),C=s??(0,l.A)((0,c.__)("<span>All collected data is treated in accordance with the <a>Google Privacy Policy</a></span>","google-site-kit"),{a:(0,k.jsx)(p.A,{href:"https://policies.google.com/privacy",external:!0},"link"),span:(0,k.jsx)("span",{})}),E={id:e,name:t,value:"1",checked:b,onChange:w,loading:void 0===x};return(0,k.jsxs)("div",{className:r()("googlesitekit-opt-in",i,o===_&&"googlesitekit-opt-in--layout-stacked"),children:[o===_?(0,k.jsx)(LayoutStacked,{checkboxProps:E,title:M,description:C}):(0,k.jsx)(LayoutDefault,{checkboxProps:E,label:(0,k.jsxs)(a.Fragment,{children:[M," ",C]})}),N?.message&&(0,k.jsx)("div",{className:"googlesitekit-error-text",children:N?.message})]})}OptIn.propTypes={id:n().string,name:n().string,className:n().string,title:n().node,description:n().node,layout:n().oneOf([y,_]),trackEventCategory:n().string}},85172(e,t,i){i.d(t,{A:()=>PageHeader});var o=i(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(10740),l=i(24560),c=i(18418),g=i(50304),d=i(33052),u=i(62540);function PageHeader(e){const{title:t,icon:i,className:o,status:s,statusText:r,fullWidth:p,children:h}=e,m=p?{size:12}:{smSize:4,mdSize:4,lgSize:6},f=""!==s||Boolean(h);return(0,u.jsx)("header",{className:"googlesitekit-page-header",children:(0,u.jsxs)(a.fI,{children:[t&&(0,u.jsxs)(a.fh,{...m,children:[i,(0,u.jsx)(d.A,{as:"h1",className:n()("googlesitekit-page-header__title",o),size:"medium",type:"title",children:t})]}),f&&(0,u.jsx)(a.fh,{smSize:4,mdSize:4,lgSize:6,alignBottom:!0,mdAlignRight:!0,children:(0,u.jsxs)("div",{className:"googlesitekit-page-header__details",children:[s&&(0,u.jsxs)("span",{className:n()("googlesitekit-page-header__status",`googlesitekit-page-header__status--${s}`),children:[r,(0,u.jsx)(g.A,{children:"connected"===s?(0,u.jsx)(l.A,{width:10,height:8}):(0,u.jsx)(c.A,{width:2,height:12})})]}),h]})})]})})}PageHeader.propTypes={title:r().string,icon:r().node,className:r().string,status:r().string,statusText:r().string,fullWidth:r().bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}},94656(e,t,i){i.d(t,{A:()=>l});var o=i(47209),n=i(62688),s=i.n(n),r=i(63696),a=i(78325);function Portal({children:e,slug:t}){const[i]=(0,r.useState)(document.createElement("div"));return(0,o.A)(()=>{t&&i.classList.add(`googlesitekit-portal-${t}`);const e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(i),()=>e.removeChild(i)}),(0,a.createPortal)(e,i)}Portal.propTypes={slug:s().string,children:s().node},Portal.defaultProps={slug:"",children:null};const l=Portal},4751(e,t,i){i.d(t,{A:()=>c});var o=i(62688),n=i.n(o),s=i(4452),r=i.n(s),a=i(97513),l=i(62540);function PreviewBlock({className:e,width:t,height:i,shape:o,padding:n,smallWidth:s,smallHeight:c,tabletWidth:g,tabletHeight:d,desktopWidth:u,desktopHeight:p}){const h=(0,a.dv)(),m={width:{[a.mp]:s,[a.Lg]:g,[a.Fo]:u,[a.Qb]:u},height:{[a.mp]:c,[a.Lg]:d,[a.Fo]:p,[a.Qb]:u}};return(0,l.jsx)("div",{className:r()("googlesitekit-preview-block",e,{"googlesitekit-preview-block--padding":n}),style:{width:m.width[h]||t,height:m.height[h]||i},children:(0,l.jsx)("div",{className:r()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===o})})})}PreviewBlock.propTypes={className:n().string,width:n().string,height:n().string,shape:n().string,padding:n().bool,smallWidth:n().string,smallHeight:n().string,tabletWidth:n().string,tabletHeight:n().string,desktopWidth:n().string,desktopHeight:n().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};const c=PreviewBlock},82246(e,t,i){i.d(t,{A:()=>d});var o=i(62688),n=i.n(o),s=i(63696),r=i(81276),a=i(49383),l=i(59865),c=i(62540);let g=null;function RefocusableModalDialog({dialogActive:e=!1,refocusQuerySelector:t=null,...i}){const o=(0,s.useCallback)(()=>{setTimeout(()=>{const e=t?document.querySelector(t):g;e&&document.body.contains(e)&&e.focus(),t||(g=null)})},[t]),n=(0,r.A)(e);return(0,s.useEffect)(()=>(!0===n&&!1===e&&o(),()=>{o()}),[n,e,o]),(0,c.jsx)(l.A,{dialogActive:e,...i})}!function(){function e(e){const t=e.target.closest("button, a, input");t&&!t.classList.contains("mdc-dialog__cancel-button")&&(g=t)}"undefined"!=typeof globalThis&&globalThis.document&&!globalThis._googlesitekitModalFocusTrackerInitialized&&(globalThis.document.addEventListener("mousedown",e),globalThis.document.addEventListener("keydown",t=>{"Enter"!==t.key&&" "!==t.key||e(t)}),globalThis._googlesitekitModalFocusTrackerInitialized=!0)}(),RefocusableModalDialog.propTypes={dialogActive:n().bool,refocusQuerySelector:n().string,...a.Dialog.propTypes};const d=RefocusableModalDialog},19826(e,t,i){i.d(t,{Ay:()=>r,Kq:()=>s});const o=(0,i(63696).createContext)(""),{Consumer:n,Provider:s}=o,r=o},63081(e,t,i){i.d(t,{A:()=>Root});var o=i(62688),n=i.n(o),s=i(44010),r=i(77105),a=i(63696),l=i(50539),c=i.n(l),g=i(82871),d=i(6730),u=i(19826),p=i(67510),h=i(13047),m=i(62540);class ErrorHandler extends a.Component{constructor(e){super(e),this.state={error:null,info:null,copied:!1}}componentDidCatch(e,t){globalThis.console.error("Caught an error:",e,t),this.setState({error:e,info:t}),(0,h.sx)("react_error",`handle_${this.context||"unknown"}_error`,`${e?.message}\n${t?.componentStack}`.slice(0,500))}render(){const{children:e,hideFilenamesInStack:t}=this.props,{error:i,info:o}=this.state;if(!i)return e;let n=o?.componentStack;return t&&n&&(n=n.replace(/\(.*\)/g,"(filtered)").replace(/at (.+) ?https?:\/\/.*/g,"at $1 (filtered)").replace(/at https?:\/\/.*/g,"").replace(/\n \n /g,"\n ")),(0,m.jsx)(p.A,{notificationID:"googlesitekit-error",className:"googlesitekit-error-handler",type:"error",title:(0,g.__)("Site Kit encountered an error","google-site-kit"),description:(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)(d.A,{message:i.message,componentStack:n}),(0,m.jsxs)("pre",{className:"googlesitekit-overflow-auto",children:[i.message,n]})]})})}}ErrorHandler.contextType=u.Ay,ErrorHandler.propTypes={children:n().node.isRequired};const f=ErrorHandler;var k=i(79961);const{Consumer:y,Provider:_}=k.A,v=_;var b=i(84895),I=i(82246),x=i(11999),N=i(70301),S=i(97345),A=i(78990),j=i(94656);const T=function AuthenticatedPermissionsModal(){const e=(0,l.useRegistry)(),t=(0,l.useSelect)(e=>e(S.oR).getPermissionScopeError()),i=(0,l.useSelect)(e=>e(S.oR).getUnsatisfiedScopes()),o=(0,l.useSelect)(e=>e(S.oR).getConnectURL({additionalScopes:t?.data?.scopes,redirectURL:t?.data?.redirectURL||globalThis.location.href,errorRedirectURL:t?.data?.errorRedirectURL})),{clearPermissionScopeError:n}=(0,l.useDispatch)(S.oR),{navigateTo:s}=(0,l.useDispatch)(N.M),{setValues:r}=(0,l.useDispatch)(x.s),c=(0,a.useCallback)(()=>{n()},[n]),d=(0,a.useCallback)(async()=>{r(S.$8,{permissionsError:t}),await(0,A.mR)(e),s(o)},[e,o,s,t,r]);return(0,a.useEffect)(()=>{!async function(){t?.data?.skipModal&&t?.data?.scopes?.length&&await d()}()},[d,t]),t?t?.data?.scopes?.length?t?.data?.skipModal||i&&t?.data?.scopes.every(e=>i.includes(e))?null:(0,m.jsx)(j.A,{children:(0,m.jsx)(I.A,{title:(0,g.__)("Additional Permissions Required","google-site-kit"),subtitle:t.message,confirmButton:(0,g.__)("Proceed","google-site-kit"),handleConfirm:d,handleCancel:c,onClose:c,dialogActive:!0,medium:!0})}):(globalThis.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",t),null):null};const w=function PermissionsModal(){return(0,l.useSelect)(e=>e(S.oR).isAuthenticated())?(0,m.jsx)(T,{}):null};const M=function RestoreSnapshots({children:e}){const t=(0,l.useRegistry)(),[i,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{i||(async()=>{await(0,A.P9)(t),o(!0)})()},[t,i]),i?e:null};var C=i(15844),E=i(62659),D=i(71264);function FeatureTours(){const e=(0,E.A)(),{triggerTourForView:t}=(0,l.useDispatch)(S.oR);(0,C.A)(()=>{t(e)});const i=(0,l.useSelect)(e=>e(S.oR).getCurrentTour());return(0,a.useEffect)(()=>{if(!i)return()=>{};const e=document.getElementById("js-googlesitekit-main-dashboard");if(!e)return()=>{};const t=new ResizeObserver(()=>{globalThis.dispatchEvent(new Event("resize"))});return t.observe(e),()=>{t.disconnect()}},[i]),i?(0,m.jsx)(D.Ay,{tourID:i.slug,steps:i.steps,gaEventCategory:i.gaEventCategory,isRepeatable:i.isRepeatable,callback:i.callback}):null}var O=i(20762),L=i(86582);function Root({children:e,registry:t,viewContext:i=null}){const o=s.D,[n]=(0,a.useState)({key:"Root",value:!0});return(0,m.jsx)(a.StrictMode,{children:(0,m.jsx)(O.Ay,{value:n,children:(0,m.jsx)(l.RegistryProvider,{value:t,children:(0,m.jsx)(v,{value:b.t,children:(0,m.jsx)(u.Kq,{value:i,children:(0,m.jsx)(r.A,{theme:o(),children:(0,m.jsxs)(f,{children:[(0,m.jsxs)(M,{children:[e,i&&(0,m.jsx)(FeatureTours,{})]}),(0,L.A)(i)&&(0,m.jsx)(w,{})]})})})})})})})}Root.propTypes={children:n().node,registry:n().object,viewContext:n().string.isRequired},Root.defaultProps={registry:c()}},65695(e,t,i){i.d(t,{A:()=>SelectionPanelError});var o=i(62688),n=i.n(o),s=i(63696),r=i(62954),a=i(73198),l=i(62540);function SelectionPanelError({error:e,noPrefix:t=!0,skipRetryMessage:i=!0}){const o=(0,s.useRef)();return(0,s.useEffect)(()=>{if(e){const e=globalThis.document.activeElement;e&&e.closest(".googlesitekit-selection-panel-item")&&(0,r.N)(o.current,e)&&e.scrollIntoView()}},[e]),e?(0,l.jsx)("div",{ref:o,children:(0,l.jsx)(a.A,{className:"googlesitekit-notice--square googlesitekit-notice--side-panel",error:e,noPrefix:t,skipRetryMessage:i})}):null}SelectionPanelError.propTypes={error:n().shape({message:n().string}),noPrefix:n().bool,skipRetryMessage:n().bool}},68329(e,t,i){i.d(t,{A:()=>a});var o=i(63696),n=i(25797),s=i(62540);const r=(0,o.forwardRef)((e,t)=>(0,s.jsx)(n.A,{className:"googlesitekit-notice--square googlesitekit-notice--side-panel",...e,ref:t})),a=r;r.propTypes={...n.A.propTypes}},15650(e,t,i){i.d(t,{kA:()=>SelectionPanelContent,gy:()=>SelectionPanelFooter,W4:()=>SelectionPanelHeader,y3:()=>SelectionPanelItem,DW:()=>SelectionPanelItems,Ay:()=>j});var o=i(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(4544),l=i.n(a),c=i(21795),g=i(78174),d=i(63696),u=i(19266),p=i(94656),h=i(62540);function SideSheet({className:e,children:t,isOpen:i,isLoading:o,onOpen:s=()=>{},closeSheet:r=()=>{},focusTrapOptions:a={}}){const m=(0,d.useRef)(),[f,k]=(0,d.useState)(0);return(0,d.useEffect)(()=>{i?(k(function(){const e=globalThis.document?.getElementById("wpadminbar");if(!e)return 0;const{top:t,bottom:i,height:o}=e.getBoundingClientRect();return t<0||i<=0?0:o}()),s(),document.body.classList.add("googlesitekit-side-sheet-scroll-lock")):(k(0),document.body.classList.remove("googlesitekit-side-sheet-scroll-lock"))},[i,s]),(0,c.A)(m,function(e){e.target.closest?.(".googlesitekit-tooltip-popper")||r()}),(0,g.A)(e=>i&&u._f===e.keyCode,r),(0,h.jsxs)(p.A,{children:[(0,h.jsx)(l(),{active:!!i&&!o,focusTrapOptions:{fallbackFocus:"body",allowOutsideClick:function(e){return!!e.target.closest?.(".googlesitekit-tooltip-popper")},...a},children:(0,h.jsx)("section",{ref:m,className:n()("googlesitekit-side-sheet",e,{"googlesitekit-side-sheet--open":i}),role:"dialog","aria-modal":"true","aria-hidden":!i,tabIndex:"0",style:{"--googlesitekit-side-sheet-top":`${f}px`},children:t})}),i&&(0,h.jsx)("span",{className:"googlesitekit-side-sheet-overlay"})]})}function SelectionPanel({children:e,isOpen:t,isLoading:i,onOpen:o,closePanel:s,className:r}){const a=r?.split(/\s+/).map(e=>`.${e}`).join(""),l=a?`${a} .googlesitekit-selection-panel-item .googlesitekit-selection-box input`:".googlesitekit-selection-panel-item .googlesitekit-selection-box input";return(0,h.jsx)(SideSheet,{className:n()("googlesitekit-selection-panel",r),isOpen:t,isLoading:i,onOpen:o,closeSheet:s,focusTrapOptions:{initialFocus:function(){return document.querySelector(l)||!1}},children:e})}SideSheet.propTypes={className:r().string,children:r().node,isOpen:r().bool,isLoading:r().bool,onOpen:r().func,closeSheet:r().func,focusTrapOptions:r().object},SelectionPanel.propTypes={children:r().node,isOpen:r().bool,isLoading:r().bool,onOpen:r().func,closePanel:r().func,className:r().string};var m=i(38432),f=i(72545),k=i(33052);function SelectionPanelHeader({children:e,title:t,onCloseClick:i}){return(0,h.jsxs)("header",{className:"googlesitekit-selection-panel-header",children:[(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-header__row",children:[(0,h.jsx)(k.A,{as:"h3",size:"small",type:"headline",children:t}),(0,h.jsx)(m.A,{className:"googlesitekit-selection-panel-header__close",onClick:i,linkButton:!0,children:(0,h.jsx)(f.A,{width:"15",height:"15"})})]}),e]})}SelectionPanelHeader.propTypes={children:r().node,title:r().string,onCloseClick:r().func};var y=i(82871),_=i(49383);function SelectionBox({badge:e,checked:t,children:i,disabled:o,id:s,onChange:r,title:a,value:l}){return(0,h.jsx)("div",{className:n()("googlesitekit-selection-box",{"googlesitekit-selection-box--disabled":o}),children:(0,h.jsx)(_.Checkbox,{checked:t,description:i,disabled:o,id:s,name:s,onChange:r,value:l,badge:e,children:a})})}SelectionBox.propTypes={badge:r().node,checked:r().bool,children:r().node,disabled:r().bool,id:r().string,onChange:r().func,title:r().string,value:r().string};var v=i(5855);function SelectionPanelItem({children:e,id:t,slug:i,title:o,description:n,isItemSelected:s,isItemDisabled:r,onCheckboxChange:a,subtitle:l,suffix:c,badge:g,isNewlyDetected:d}){return(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-item",children:[(0,h.jsxs)(SelectionBox,{badge:g,checked:s,disabled:r,id:t,onChange:a,title:o,value:i,children:[l&&(0,h.jsx)("span",{className:"googlesitekit-selection-panel-item__subtitle",children:l}),n,e]}),d&&(0,h.jsx)(v.A,{label:(0,y.__)("New","google-site-kit")}),c&&(0,h.jsx)("span",{className:"googlesitekit-selection-panel-item__suffix",children:c})]})}function SelectionPanelItems({currentSelectionTitle:e=(0,y.__)("Current selection","google-site-kit"),availableItemsTitle:t=(0,y.__)("Additional items","google-site-kit"),savedItemSlugs:i=[],availableSavedItems:o={},availableUnsavedItems:n={},ItemComponent:s,notice:r}){function a(e){return Object.keys(e).map(t=>(0,h.jsx)(s,{slug:t,savedItemSlugs:i,...e[t]},t))}const l=Object.keys(n).length;return(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-items",children:[0!==i.length&&(0,h.jsxs)(d.Fragment,{children:[(0,h.jsx)("p",{className:"googlesitekit-selection-panel-items__subheading",children:e}),(0,h.jsx)("div",{className:"googlesitekit-selection-panel-items__subsection",children:a(o)}),l>0&&(0,h.jsx)("p",{className:"googlesitekit-selection-panel-items__subheading",children:t})]}),l>0&&(0,h.jsx)("div",{className:"googlesitekit-selection-panel-items__subsection",children:a(n)}),r]})}SelectionPanelItem.propTypes={children:r().node,id:r().string,slug:r().string,title:r().string,description:r().string,isItemSelected:r().bool,isItemDisabled:r().bool,onCheckboxChange:r().func,subtitle:r().string,suffix:r().node,badge:r().node,isNewlyDetected:r().bool},SelectionPanelItems.propTypes={currentSelectionTitle:r().string,availableItemsTitle:r().string,savedItemSlugs:r().array,availableSavedItems:r().object,availableUnsavedItems:r().object,ItemComponent:r().elementType,notice:r().node};var b=i(17243),I=i(13606),x=i(50539),N=i(13047),S=i(80),A=i(4751);function SelectionPanelFooter({savedItemSlugs:e=[],selectedItemSlugs:t=[],saveSettings:i=()=>{},minSelectedItemCount:o=0,maxSelectedItemCount:n=0,isBusy:s,onSaveSuccess:r=()=>{},onCancel:a=()=>{},isOpen:l,closePanel:c=()=>{}}){const[g,u]=(0,d.useState)(null),[p,m]=(0,d.useState)(!1),f=(0,x.useSelect)(e=>e(S.K9).isFetchingSyncAvailableAudiences()),k=(0,d.useMemo)(()=>!(0,b.isEqual)((0,N.N9)(t),(0,N.N9)(e)),[e,t]),v=e?.length>0&&k?(0,y.__)("Apply changes","google-site-kit"):(0,y.__)("Save selection","google-site-kit"),j=(0,d.useCallback)(async()=>{const{error:e}=await i(t);e||(r(),c(),u(v),m(!0))},[i,t,r,c,v]),T=(0,d.useCallback)(()=>{c(),a()},[c,a]),[w,M]=(0,d.useState)(null);(0,d.useEffect)(()=>{null!==w&&w!==l&&l&&(u(null),m(!1)),M(l)},[l,w]);const C=t?.length||0,E=f?(0,h.jsx)(A.A,{width:"89px",height:"20px"}):(0,h.jsx)("p",{className:"googlesitekit-selection-panel-footer__item-count",children:(0,I.A)((0,y.sprintf)(/* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */ /* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */ (0,y.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),C,n),{MaxCount:(0,h.jsx)("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})})});return(0,h.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-footer__content",children:[E,(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-footer__actions",children:[(0,h.jsx)(_.Button,{onClick:T,disabled:s,tertiary:!0,children:(0,y.__)("Cancel","google-site-kit")}),(0,h.jsx)(_.SpinnerButton,{onClick:j,isSaving:s,disabled:C<o||C>n||s||!l&&p,children:g||v})]})]})})}function SelectionPanelContent({children:e,className:t}){return(0,h.jsx)("div",{className:n()("googlesitekit-selection-panel__content",t),children:e})}SelectionPanelFooter.propTypes={savedItemSlugs:r().array,selectedItemSlugs:r().array,saveSettings:r().func,minSelectedItemCount:r().number,maxSelectedItemCount:r().number,isBusy:r().bool,onSaveSuccess:r().func,onCancel:r().func,isOpen:r().bool,closePanel:r().func},SelectionPanelContent.propTypes={children:r().node,className:r().string};const j=SelectionPanel},83202(e,t,i){i.d(t,{A:()=>TourTooltip});var o=i(28056),n=i.n(o),s=i(4452),r=i.n(s),a=i(62688),l=i.n(a),c=i(82871),g=i(49383);var d=i(30805),u=i(72545),p=i(33052),h=i(62540);function TourTooltip({backProps:e,closeProps:t,index:i,primaryProps:s,size:a,step:l,tooltipProps:m}){const f=(0,d.i)("setupFlowRefresh"),k=a>1?function(e){return new Array(e??0).fill().map((e,t)=>t)}(a):[];function y(e){return r()("googlesitekit-tooltip-indicator",{active:e===i})}const _=f?10:14;return(0,h.jsx)("div",{className:r()("googlesitekit-tour-tooltip",l.className,{"googlesitekit-tour-tooltip--setupFlowRefresh":f}),...m,children:(0,h.jsxs)(n(),{className:"googlesitekit-tooltip-card",children:[(0,h.jsxs)("div",{className:"googlesitekit-tooltip-body",children:[(0,h.jsx)(p.A,{as:"h2",className:"googlesitekit-tooltip-title",size:"medium",type:"title",children:l.title}),(0,h.jsx)("div",{className:"googlesitekit-tooltip-content",children:l.content})]}),(0,h.jsxs)(o.CardActions,{className:"googlesitekit-tooltip-actions",children:[!f&&(0,h.jsx)("ul",{className:"googlesitekit-tooltip-indicators",children:k.map(e=>(0,h.jsx)("li",{className:y(e)},`indicator-${e}`))}),f&&(0,h.jsxs)("p",{className:"googlesitekit-tooltip-steps",children:[i+1," / ",a]}),(0,h.jsxs)("div",{className:"googlesitekit-tooltip-buttons",children:[0!==i&&(0,h.jsx)(g.Button,{className:"googlesitekit-tooltip-button",text:!f,tertiary:f,...e,children:e.title}),l.cta,s.title&&(0,h.jsx)(g.Button,{className:r()("googlesitekit-tooltip-button",{"googlesitekit-tooltip-button--primary":f}),text:!f,...s,children:s.title})]})]}),(0,h.jsx)(g.Button,{className:"googlesitekit-tooltip-close",icon:(0,h.jsx)(u.A,{width:_,height:_}),onClick:t.onClick,"aria-label":(0,c.__)("Close","google-site-kit"),text:!0,hideTooltipTitle:!0})]})})}TourTooltip.propTypes={backProps:l().object.isRequired,closeProps:l().object.isRequired,index:l().number.isRequired,isLastStep:l().bool.isRequired,primaryProps:l().object.isRequired,size:l().number.isRequired,step:l().shape({content:l().node,title:l().node,cta:l().oneOfType([l().element,l().bool]),className:l().string}).isRequired,tooltipProps:l().object.isRequired}},71264(e,t,i){i.d(t,{Ay:()=>TourTooltips,R0:()=>k,ei:()=>_});var o=i(15844),n=i(36703),s=i(62688),r=i.n(s),a=i(82871),l=i(50539),c=i(7972),g=i(97345),d=i(65054),u=i(83202),p=i(62659),h=i(84895),m=i(62540);const f=(0,h.G)("setupFlowRefresh"),k={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:f?"rgba(0, 0, 0, 0.25)":"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:f?"none":"2px solid #3c7251",backgroundColor:"#fff"}},y={back:(0,a.__)("Back","google-site-kit"),close:(0,a.__)("Close","google-site-kit"),last:(0,a.__)("Got it","google-site-kit"),next:(0,a.__)("Next","google-site-kit")},_={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)"}}},v="feature_tooltip_view",b="feature_tooltip_advance",I="feature_tooltip_return",x="feature_tooltip_dismiss",N="feature_tooltip_complete";function TourTooltips({steps:e,tourID:t,gaEventCategory:i,isRepeatable:s,callback:r}){const a=`${t}-step`,h=`${t}-run`,{setValue:S}=(0,l.useDispatch)(c.n),{dismissTour:A,receiveCurrentTour:j}=(0,l.useDispatch)(g.oR),T=(0,l.useRegistry)(),w=(0,p.A)(),M=(0,l.useSelect)(e=>e(c.n).getValue(a)||0),C=(0,l.useSelect)(e=>{const i=s||!1===e(g.oR).isTourDismissed(t);return e(c.n).getValue(h)&&i});function E(i){return`googlesitekit-showing-feature-tour--${t}-${e[i].slug||i}`}(0,o.A)(function(){globalThis.document.body.classList.add("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`,E(M)),S(h,!0)});const D=e.map(e=>({disableBeacon:!0,isFixed:!0,placement:"auto",...e})),O=f?{..._,styles:{..._.styles,floater:{filter:"drop-shadow(rgba(0, 0, 0, 0.25) 0px 4px 16px)"}}}:_;return(0,m.jsx)(n.Ay,{callback:function(o){!function({index:e,action:t,lifecycle:o,size:s,status:r,type:a}){const l=e+1,c="function"==typeof i?i(w):i;a===n.qY.TOOLTIP&&o===n.VD.TOOLTIP?(0,d.sx)(c,v,l):t===n.kl.CLOSE&&o===n.VD.COMPLETE?(0,d.sx)(c,x,l):t===n.kl.NEXT&&r===n.XQ.FINISHED&&a===n.qY.TOUR_END&&s===l&&(0,d.sx)(c,N,l),o===n.VD.COMPLETE&&r!==n.XQ.FINISHED&&(t===n.kl.PREV&&(0,d.sx)(c,I,l),t===n.kl.NEXT&&(0,d.sx)(c,b,l))}(o);const{action:l,index:c,status:g,step:u,type:p}=o,m=l===n.kl.CLOSE,f=!m&&[n.qY.STEP_AFTER,n.qY.TARGET_NOT_FOUND].includes(p),k=[n.XQ.FINISHED,n.XQ.SKIPPED].includes(g),y=m&&p===n.qY.STEP_AFTER,_=k||y;if(n.qY.STEP_BEFORE===p){let e=u.target;"string"==typeof u.target&&(e=globalThis.document.querySelector(u.target)),e?.scrollIntoView?.({block:"center"})}f?function(t,i){const o=t+(i===n.kl.PREV?-1:1);globalThis.document.body.classList.remove(E(t)),e[o]&&globalThis.document.body.classList.add(E(o)),S(a,o)}(c,l):_&&(globalThis.document.body.classList.remove("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),e[M]&&globalThis.document.body.classList.remove(E(M)),s?(S(h,!1),S(a,null),j(null)):A(t)),r&&r(o,T)},floaterProps:O,locale:y,run:C,stepIndex:M,steps:D,styles:k,tooltipComponent:u.A,showProgress:!f,continuous:!0,disableOverlayClose:!0,disableScrolling:!0})}TourTooltips.propTypes={steps:r().arrayOf(r().object).isRequired,tourID:r().string.isRequired,gaEventCategory:r().oneOfType([r().string,r().func]).isRequired,isRepeatable:r().bool,callback:r().func}},83880(e,t,i){i.d(t,{A:()=>c});var o=i(62688),n=i.n(o),s=i(97513),r=i(33052),a=i(8513),l=i(62540);function c({type:e=a.SZ,size:t,children:i,...o}){const n=(0,s.dv)();return(0,l.jsx)(r.A,{as:"p",type:e,size:t||(n===s.mp?a.Kk:a.Yw),...o,children:i})}c.propTypes={type:n().oneOf(a.tT),size:n().oneOf(a.oJ)}},8513(e,t,i){i.d(t,{Kk:()=>s,SZ:()=>o,Yw:()=>r,oJ:()=>a,tT:()=>n});const o="body",n=[o,"display","headline","label","title"],s="small",r="medium",a=[s,r,"large"]},33052(e,t,i){i.d(t,{A:()=>Typography});var o=i(62688),n=i.n(o),s=i(4452),r=i.n(s),a=i(8513),l=i(62540);function Typography({className:e,type:t,size:i,as:o="span",children:n,...s}){return(0,l.jsx)(o,{className:r()("googlesitekit-typography",e,{[`googlesitekit-typography--${t}`]:t&&a.tT.includes(t),[`googlesitekit-typography--${i}`]:i&&a.oJ.includes(i)}),...s,children:n})}Typography.propTypes={className:n().string,type:n().oneOf(a.tT),size:n().oneOf(a.oJ),as:n().oneOfType([n().string,n().elementType])}},55989(e,t,i){i.d(t,{A:()=>l});var o=i(62688),n=i.n(o),s=i(4452),r=i.n(s),a=i(62540);function VisuallyHidden({className:e,children:t,...i}){return t?(0,a.jsx)("span",{...i,className:r()("screen-reader-text",e),children:t}):null}VisuallyHidden.propTypes={className:n().string,children:n().node},VisuallyHidden.defaultProps={className:""};const l=VisuallyHidden},76729(e,t,i){i.d(t,{Q:()=>o});const o="emailReportingUserSettingsSelectionPanelOpened"},78307(e,t,i){i.d(t,{A:()=>HelpMenu});var o=i(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(21795),l=i(63696),c=i(19266),g=i(82871),d=i(50539),u=i(49383),p=i(13047),h=i(38432),m=i(62659),f=i(30805),k=i(62540);function HelpMenuLink({children:e,href:t,gaEventLabel:i,onClick:o,icon:n}){const s=(0,m.A)(),r=(0,f.i)("setupFlowRefresh"),a=(0,l.useCallback)(async()=>{o?.(),i&&await(0,p.sx)(`${s}_headerbar_helpmenu`,r?"click_menu_item":"click_outgoing_link",i)},[o,i,s,r]);return(0,k.jsx)("li",{className:"googlesitekit-help-menu-link mdc-list-item",role:"none",children:(0,k.jsx)(h.A,{className:"mdc-list-item__text",href:t,role:"menuitem",onClick:a,leadingIcon:n,external:!0,hideExternalIndicator:!0,children:e})})}HelpMenuLink.propTypes={children:r().node.isRequired,href:r().string,gaEventLabel:r().string,onClick:r().func};const y=HelpMenuLink;var _,v,b=i(88273),I=i(29785),x=i(97345),N=i(58718),S=i(12896),A=i(40194);function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},j.apply(null,arguments)}const T=e=>l.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),_||(_=l.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M5 5.75h14c.69 0 1.25.56 1.25 1.25v9.161c0 .69-.56 1.25-1.25 1.25H6.633l-.219.213-2.664 2.597V7c0-.69.56-1.25 1.25-1.25Z"})),v||(v=l.createElement("path",{fill:"currentColor",d:"M11.5 8.5H13v4h-1.5zM11.5 13.5H13V15h-1.5z"})));var w,M,C;function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},E.apply(null,arguments)}const D=e=>l.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),w||(w=l.createElement("circle",{cx:12,cy:11,r:8.25,stroke:"currentColor",strokeWidth:1.5})),M||(M=l.createElement("path",{fill:"currentColor",d:"m10 9 7-3-2.953 7.047L7 16z"})),C||(C=l.createElement("circle",{cx:12,cy:11,r:1,fill:"#fff"})));var O,L,R;function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},P.apply(null,arguments)}const z=e=>l.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),O||(O=l.createElement("mask",{id:"support_svg__a",fill:"#fff"},l.createElement("path",{d:"M12 2a9 9 0 0 1 2.128 17.745C10.508 21.823 5 23 5 23c.023-.017 2.69-2.024 3.053-3.911A9 9 0 0 1 3 11a9 9 0 0 1 9-9"}))),L||(L=l.createElement("path",{fill:"currentColor",d:"M12 2V.5zm9.001 9h1.5zm-2.25 5.953 1.125.993zm-1.802 1.566.826 1.252zm-2.3 1.086.441 1.433zm-.521.14-.354-1.458-.207.05-.186.107zM5 23l-.901-1.2-5.441 4.089 6.655-1.422zm3.053-3.911 1.473.284.217-1.128-1.031-.504zm-1.001-.57-.826 1.252zm-1.704-1.457-1.109 1.01zM3 11H1.5zm9-9v1.5a7.5 7.5 0 0 1 7.501 7.5h3C22.501 5.2 17.799.5 12 .5zm9.001 9h-1.5a7.47 7.47 0 0 1-1.875 4.96l1.125.993 1.125.993A10.47 10.47 0 0 0 22.5 11zm-2.25 5.953-1.125-.992a7.6 7.6 0 0 1-1.503 1.305l.826 1.253.826 1.252a10.6 10.6 0 0 0 2.1-1.825zm-1.802 1.566-.826-1.253a7.5 7.5 0 0 1-1.915.905l.441 1.434.441 1.433a10.5 10.5 0 0 0 2.685-1.267zm-2.3 1.086-.44-1.434c-.131.04-.273.077-.434.116l.353 1.458.353 1.458c.19-.046.397-.1.61-.165zm-.521.14-.747-1.3c-1.661.953-3.814 1.728-5.609 2.271a47 47 0 0 1-2.864.767l-.17.039-.04.009-.01.002h-.002L5 23l.314 1.467h.002l.004-.002.015-.003.052-.011.193-.044a49.75 49.75 0 0 0 3.062-.82c1.864-.564 4.275-1.417 6.233-2.541zM5 23l.901 1.2c.041-.032.783-.592 1.576-1.412.735-.76 1.777-2.007 2.049-3.415l-1.473-.284-1.473-.284c-.092.478-.564 1.178-1.26 1.898-.637.659-1.239 1.111-1.221 1.098zm3.053-3.911.659-1.348q-.438-.213-.834-.475l-.826 1.253-.826 1.252q.565.37 1.168.665zm-1.001-.57.826-1.253c-.523-.344-1.001-.753-1.422-1.215l-1.108 1.01-1.109 1.011a10.5 10.5 0 0 0 1.987 1.699zm-1.704-1.457 1.108-1.011A7.47 7.47 0 0 1 4.5 11h-3c0 2.723 1.039 5.207 2.74 7.072zM3 11h1.5A7.5 7.5 0 0 1 12 3.5v-3C6.2.5 1.5 5.2 1.5 11z",mask:"url(#support_svg__a)"})),R||(R=l.createElement("path",{fill:"currentColor",d:"M11.796 16q.487 0 .818-.312.332-.31.332-.767 0-.456-.332-.767a1.15 1.15 0 0 0-.818-.312q-.486 0-.817.312a1 1 0 0 0-.332.768q0 .457.332.766.33.312.817.312m.11-8.527q.62 0 1.006.311.387.312.387.788 0 .333-.243.706-.243.374-.685.726-.707.58-1.028 1.069-.32.486-.32.965 0 .31.221.518a.8.8 0 0 0 .574.208q.333 0 .586-.208a.9.9 0 0 0 .32-.56q.066-.332.299-.633.231-.3.762-.778.707-.622.961-1.11T15 8.407q0-1.08-.839-1.743Q13.321 6 11.951 6q-.928 0-1.624.343-.696.342-1.204 1.026a.53.53 0 0 0-.1.498q.078.27.32.456a.8.8 0 0 0 .652.136q.365-.073.608-.385.243-.29.564-.445t.74-.156"})));var B,G,U;function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},H.apply(null,arguments)}const F=e=>l.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),B||(B=l.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M19 8v11a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7z"})),G||(G=l.createElement("path",{fill:"currentColor",d:"M13.5 9V3L19 9z"})),U||(U=l.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M8.5 11.5h7M8.5 14.5h7M8.5 17.5H13"})));var V;function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},W.apply(null,arguments)}const Y=e=>l.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),V||(V=l.createElement("path",{fill:"currentColor",d:"M9 16h2v-2H9zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})));var Z,Q;function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},q.apply(null,arguments)}const $=e=>l.createElement("svg",q({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Z||(Z=l.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M15.244 10.59a2.156 2.156 0 0 1 2.95-.755 2.145 2.145 0 0 1 .76 2.935l-3.039 5.022-.004.006a2.153 2.153 0 0 1-2.95.756v-.001a2.144 2.144 0 0 1-.757-2.94v-.002l3.036-5.014zM8.854 5.635a2.157 2.157 0 0 1 2.95-.756 2.144 2.144 0 0 1 .756 2.94l-.003.005-5.8 9.977a2.153 2.153 0 0 1-2.95.756 2.145 2.145 0 0 1-.757-2.94l.003-.007z"})),Q||(Q=l.createElement("path",{fill:"currentColor",stroke:"currentColor",strokeWidth:1.5,d:"M4.887 14.595c1.18 0 2.135.955 2.135 2.13 0 1.176-.954 2.13-2.135 2.13a2.134 2.134 0 0 1-2.137-2.13c0-1.175.955-2.13 2.137-2.13Z"})));function HelpMenu({children:e}){const[t,i]=(0,l.useState)(!1),o=(0,l.useRef)(),s=(0,m.A)(),r=(0,f.i)("setupFlowRefresh");(0,a.A)(o,()=>i(!1)),(0,S.l)([c._f,c.wn],o,()=>i(!1));const h=(0,d.useSelect)(e=>e(b.i).isModuleActive(N.Py)),_=(0,l.useCallback)(()=>{t||(0,p.sx)(`${s}_headerbar`,"open_helpmenu"),i(!t)},[t,s]),v=(0,l.useCallback)(()=>{i(!1)},[]),j=(0,d.useSelect)(e=>e(I.O4).getDocumentationLinkURL("fix-common-issues")),{triggerOnDemandTour:w}=(0,d.useDispatch)(x.oR),M=(0,A.G)(),C=(0,l.useCallback)(()=>{w(M)},[w,M]),E=[{gaEventLabel:"fix_common_issues",href:j,children:(0,g.__)("Fix common issues","google-site-kit")},{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/",children:(0,g.__)("Read help docs","google-site-kit")},{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/",children:(0,g.__)("Get support","google-site-kit")},...h?[{gaEventLabel:"adsense_help",href:"https://support.google.com/adsense/",children:(0,g.__)("Get help with AdSense","google-site-kit")}]:[]],O=[{gaEventLabel:"browse_documentation",href:"https://sitekit.withgoogle.com/documentation/",icon:(0,k.jsx)(F,{width:24,height:24}),children:(0,g.__)("Browse documentation","google-site-kit")},{gaEventLabel:"get_support",href:"https://wordpress.org/support/plugin/google-site-kit/",icon:(0,k.jsx)(z,{width:24,height:24}),children:(0,g.__)("Get free support","google-site-kit")},{gaEventLabel:"start_tour",onClick:C,icon:(0,k.jsx)(D,{width:24,height:24}),children:(0,g.__)("Start a feature tour","google-site-kit")},{gaEventLabel:"send_feedback",href:"https://wordpress.org/support/plugin/google-site-kit/reviews/",icon:(0,k.jsx)(T,{width:24,height:24}),children:(0,g.__)("Send feedback","google-site-kit")},...h?[{gaEventLabel:"get_adsense_help",href:"https://support.google.com/adsense/",icon:(0,k.jsx)($,{width:24,height:24}),children:(0,g.__)("Get help with AdSense","google-site-kit")}]:[]];return(0,k.jsxs)("div",{ref:o,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,k.jsx)(u.Button,{"aria-controls":"googlesitekit-help-menu","aria-expanded":t,"aria-label":(0,g.__)("Help","google-site-kit"),"aria-haspopup":"menu",className:"googlesitekit-header__dropdown googlesitekit-border-radius-round googlesitekit-button-icon googlesitekit-help-menu__button mdc-button--dropdown",icon:(0,k.jsx)(Y,{width:"20",height:"20"}),onClick:_,tooltipEnterDelayInMS:500,text:!0}),(0,k.jsxs)(u.Menu,{className:n()("googlesitekit-width-auto",{"googlesitekit-help-menu":r}),menuOpen:t,id:"googlesitekit-help-menu",onSelected:v,children:[e,(r?O:E).map((e,t)=>(0,k.jsx)(y,{...e},t))]})]})}HelpMenu.propTypes={children:r().node}},75662(e,t,i){i.d(t,{A:()=>m});var o=i(62688),n=i.n(o),s=i(4452),r=i.n(s),a=i(63696),l=i(10740),c=i(38432),g=i(33052),d=i(62540);class LayoutHeader extends a.Component{render(){const{title:e,badge:t,ctaLabel:i,ctaLink:o}=this.props,n=o?{alignMiddle:!0,smSize:4,lgSize:6}:{alignMiddle:!0,smSize:4,mdSize:8,lgSize:12};return(0,d.jsx)("header",{className:"googlesitekit-layout__header",children:(0,d.jsx)(l.xA,{children:(0,d.jsxs)(l.fI,{children:[e&&(0,d.jsx)(l.fh,{...n,children:(0,d.jsxs)(g.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-subheading-1 googlesitekit-layout__header-title",children:[e,t]})}),o&&(0,d.jsx)(l.fh,{smSize:4,lgSize:6,alignMiddle:!0,mdAlignRight:!0,children:(0,d.jsx)(c.A,{href:o,external:!0,children:i})})]})})})}}LayoutHeader.propTypes={title:n().string,badge:n().node,ctaLabel:n().string,ctaLink:n().string},LayoutHeader.defaultProps={title:"",badge:null,ctaLabel:"",ctaLink:""};const u=LayoutHeader;var p=i(44148);class LayoutFooter extends a.Component{render(){const{ctaLabel:e,ctaLink:t,footerContent:i}=this.props;return(0,d.jsx)("footer",{className:"googlesitekit-layout__footer",children:(0,d.jsx)(l.xA,{children:(0,d.jsx)(l.fI,{children:(0,d.jsxs)(l.fh,{size:12,children:[t&&e&&(0,d.jsx)(p.A,{className:"googlesitekit-data-block__source",name:e,href:t,external:!0}),i]})})})})}}LayoutFooter.propTypes={ctaLabel:n().string,ctaLink:n().string};const h=LayoutFooter;class Layout extends a.Component{render(){const{header:e,footer:t,children:i,title:o,badge:n,headerCTALabel:s,headerCTALink:a,footerCTALabel:l,footerCTALink:c,footerContent:g,className:p,fill:m,relative:f,rounded:k=!1,transparent:y=!1,..._}=this.props;return(0,d.jsxs)("div",{className:r()("googlesitekit-layout",p,{"googlesitekit-layout--fill":m,"googlesitekit-layout--relative":f,"googlesitekit-layout--rounded":k,"googlesitekit-layout--transparent":y}),..._,children:[e&&(0,d.jsx)(u,{title:o,badge:n,ctaLabel:s,ctaLink:a}),i,t&&(0,d.jsx)(h,{ctaLabel:l,ctaLink:c,footerContent:g})]})}}Layout.propTypes={header:n().bool,footer:n().bool,children:n().node.isRequired,title:n().string,badge:n().node,headerCTALabel:n().string,headerCTALink:n().string,footerCTALabel:n().string,footerCTALink:n().string,footerContent:n().node,className:n().string,fill:n().bool,relative:n().bool,rounded:n().bool,transparent:n().bool},Layout.defaultProps={header:!1,footer:!1,title:"",badge:null,headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1};const m=Layout},37834(e,t,i){i.d(t,{A:()=>Notifications});var o=i(62688),n=i.n(o),s=i(50539),r=i(62659),a=i(8732),l=i(84730),c=i(50532),g=i.n(c),d=i(67438),u=i(62540);const p=g()(e=>({id:e,Notification:h(e)(d.A)}));function h(e){return t=>{function WithNotificationID(i){return(0,u.jsx)(t,{...i,id:e})}return WithNotificationID.displayName="WithNotificationID",(t.displayName||t.name)&&(WithNotificationID.displayName+=`(${t.displayName||t.name})`),WithNotificationID}}function Notifications({areaSlug:e,groupID:t=l.He.DEFAULT}){const i=(0,r.A)(),o=(0,s.useSelect)(e=>e(a.D).getQueuedNotifications(i,t));if(void 0===o?.[0]||o?.[0]?.areaSlug!==e)return null;const{id:n,Component:c}=o[0],g={...p(n)};return(0,u.jsx)(c,{...g})}Notifications.propTypes={viewContext:n().string,areaSlug:n().string}},33213(e,t,i){i.d(t,{I:()=>o});const o={WITH_ANALYTICS:"welcome-with-analytics",WITHOUT_ANALYTICS:"welcome-without-analytics"}},84895(e,t,i){i.d(t,{G:()=>n,t:()=>o});const o=new Set(globalThis?._googlesitekitBaseData?.enabledFeatures||[]);function n(e,t=o){return t instanceof Set&&t.has(e)}},52696(e,t,i){i.d(t,{WM:()=>o.WM,wA:()=>o.wA,ws:()=>o.ws});var o=i(49057);void 0===globalThis.googlesitekit&&(globalThis.googlesitekit={}),globalThis.googlesitekit.data=o.Ay},72091(e,t,i){var o=i(131),n=i(78325),s=i(63081),r=i(81276),a=i(63696),l=i(82871),c=i(50539),g=i(29785),d=i(97345),u=i(10740),p=i(31265),h=i(78307),m=i(75662),f=i(85172),k=i(26464),y=i(7144),_=i(11999),v=i(62540);function FullScreenMetricSelectionApp(){const{setValues:e}=(0,c.useDispatch)(_.s),t=(0,c.useSelect)(e=>(e(d.oR).getUserInputSettings(),e(d.oR).hasFinishedResolution("getUserInputSettings"))),i=(0,c.useSelect)(e=>{const t=e(d.oR).getKeyMetrics();if(!Array.isArray(t))return[];const{isKeyMetricAvailable:i}=e(d.oR);return t.filter(i)}),o=(0,c.useSelect)(e=>e(g.O4).isKeyMetricsSetupCompleted()),n=(0,r.A)(o),s=t&&!1===o||!n&&o;return(0,a.useEffect)(()=>{e(y.Is,{[y.Y0]:i})},[i,e]),(0,v.jsxs)(a.Fragment,{children:[(0,v.jsx)(p.A,{children:(0,v.jsx)(h.A,{})}),(0,v.jsx)("div",{className:"googlesitekit-metric-selection",children:(0,v.jsx)("div",{className:"googlesitekit-module-page",children:s&&(0,v.jsx)(u.xA,{children:(0,v.jsxs)(m.A,{rounded:!0,children:[(0,v.jsx)(u.xA,{className:"googlesitekit-user-input__header",children:(0,v.jsxs)(u.fI,{children:[(0,v.jsx)(u.fh,{lgSize:12,mdSize:8,smSize:6,children:(0,v.jsx)(f.A,{className:"googlesitekit-heading-3 googlesitekit-user-input__heading",title:(0,l.__)("Select up to 8 metrics that are most important for your business goals","google-site-kit"),fullWidth:!0})}),(0,v.jsx)(u.fh,{lgSize:12,mdSize:8,smSize:6,children:(0,v.jsx)("span",{className:"googlesitekit-user-input__subtitle",children:(0,l.__)("Site Kit will start collecting data and add them on your dashboard. You can change your selection later on from Site Kit’s main dashboard.","google-site-kit")})})]})}),(0,v.jsx)(u.xA,{className:"googlesitekit-user-input__content",children:(0,v.jsx)(u.fI,{children:(0,v.jsx)(u.fh,{lgSize:12,mdSize:8,smSize:6,children:(0,v.jsx)(k.A,{savedViewableMetrics:i,showHeader:!1,isFullScreen:!0})})})})]})})})})]})}var b=i(20697);(0,o.A)(()=>{const e=document.getElementById("js-googlesitekit-metric-selection");e&&(0,n.render)((0,v.jsx)(s.A,{viewContext:b.mo,children:(0,v.jsx)(FullScreenMetricSelectionApp,{})}),e)})},49993(e,t,i){i.d(t,{Gq:()=>d,IL:()=>m,LD:()=>p,SO:()=>u,a2:()=>n,xD:()=>h});var o=i(13047);const n="googlesitekit_",s=`${n}1.178.0_${globalThis._googlesitekitBaseData.storagePrefix}_`,r=["sessionStorage","localStorage"];let a,l=[...r];async function c(e){const t=globalThis[e];if(!t)return!1;try{const e="__storage_test__";return t.setItem(e,e),t.removeItem(e),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==t.length}}async function g(){if(void 0!==a)return a;for(const e of l)a||await c(e)&&(a=globalThis[e]);return void 0===a&&(a=null),a}async function d(e){const t=await g();if(t){const i=t.getItem(`${s}${e}`);if(i){const e=JSON.parse(i),{timestamp:t,ttl:o,value:n,isError:s}=e;if(t&&(!o||Math.round(Date.now()/1e3)-t<o))return{cacheHit:!0,value:n,isError:s}}}return{cacheHit:!1,value:void 0}}async function u(e,t,{ttl:i=o.Jg,timestamp:n=Math.round(Date.now()/1e3),isError:r=!1}={}){const a=await g();if(a)try{return a.setItem(`${s}${e}`,JSON.stringify({timestamp:n,ttl:i,value:t,isError:r})),!0}catch(e){return globalThis.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function p(e){const t=await g();if(t)try{const i=e.startsWith(n)?e:`${s}${e}`;return t.removeItem(i),!0}catch(e){return globalThis.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function h(){const e=await g();if(e)try{const t=[];for(let i=0;i<e.length;i++){const o=e.key(i);0===o.indexOf(n)&&t.push(o)}return t}catch(e){return globalThis.console.warn("Encountered an unexpected storage error:",e),[]}return[]}async function m(){if(await g()){const e=await h();for(const t of e)await p(t);return!0}return!1}},20697(e,t,i){i.d(t,{Ax:()=>s,CZ:()=>g,Ej:()=>N,Gw:()=>S,Is:()=>r,KK:()=>u,Nn:()=>j,OT:()=>b,SH:()=>v,Y$:()=>p,ZS:()=>a,bg:()=>f,en:()=>x,ep:()=>m,f7:()=>n,hi:()=>h,jU:()=>o,k$:()=>y,kz:()=>A,ly:()=>l,mo:()=>k,s3:()=>_,uR:()=>c,x2:()=>I,zx:()=>d});const o="mainDashboard",n="entityDashboard",s="mainDashboardViewOnly",r="entityDashboardViewOnly",a="userInput",l="activation",c="splash",g="adminBar",d="adminBarViewOnly",u="settings",p="adBlockingRecovery",h="wpDashboard",m="wpDashboardViewOnly",f="moduleSetup",k="metricSelection",y="wpBlockEditor",_="keyMetricsSetup",v="key-metrics",b="traffic",I="site-goals",x="content",N="speed",S="monetization",A=[o,n,s,r,a,c,u,f,k],j=[s,r,d,m]},78990(e,t,i){i.d(t,{P9:()=>k,k:()=>h,mR:()=>f});var o=i(32091),n=i.n(o),s=i(17243),r=i(50539),a=i.n(r),l=i(49993),c=i(13047);const g="CREATE_SNAPSHOT",d="DELETE_SNAPSHOT",u="RESTORE_SNAPSHOT",p="SET_STATE_FROM_SNAPSHOT";function h(e,{keysToSnapshot:t}={}){n()(e,"storeName is required to create a snapshot store.");const i={},o={*deleteSnapshot(){return yield{payload:{},type:d}},*restoreSnapshot(e={}){const{clearAfterRestore:t=!0}=e,{cacheHit:i,value:o}=yield{payload:{},type:u};return i&&(yield{payload:{snapshot:o},type:p},t&&(yield{payload:{},type:d})),i},*createSnapshot(){return yield{payload:{},type:g}}},a={[d]:()=>(0,l.LD)(`datastore::cache::${e}`),[g]:(0,r.createRegistryControl)(i=>()=>{const o=i.stores[e].store.getState(),n=t?.length>0?(0,s.pick)(o,t):o;return(0,l.SO)(`datastore::cache::${e}`,n)}),[u]:()=>(0,l.Gq)(`datastore::cache::${e}`,c.Jg)};return{initialState:i,actions:o,controls:a,reducer:function(e=i,{type:o,payload:n}){if(o===p){const{snapshot:i}=n,{error:o,...s}=i;return t?.length>0?{...e,...s}:s}return e}}}function m(e=a()){return Object.values(e.stores).filter(e=>Object.keys(e.getActions()).includes("restoreSnapshot"))}function f(e=a()){return Promise.all(m(e).map(e=>e.getActions().createSnapshot()))}function k(e=a()){return Promise.all(m(e).map(e=>e.getActions().restoreSnapshot()))}},49057(e,t,i){i.d(t,{Ay:()=>f,wA:()=>a.A,ws:()=>u.w,WM:()=>r.A});var o=i(66218),n=i(56805),s=i(78913),r=i(35470),a=i(63737),l=i(44319),c=i(45177),g=i(30043),d=i(66293),u=i(52721),p=i(8084),h=i(97241);const m=(0,o.I)({},globalThis.wp?.data);m.combineStores=p.o3,m.commonActions=p.jU,m.commonControls=p._5,m.commonStore=p.x0,m.createReducer=function(e){return(0,h.Ay)(e)},m.useInViewSelect=u.w,m.controls=n.n,m.createRegistryControl=s.b,m.createRegistrySelector=s.N,m.useSelect=r.A,m.useDispatch=a.A,m.useRegistry=l.A,m.withSelect=c.A,m.withDispatch=g.A,m.RegistryProvider=d.Ay;const f=m},74426(e,t,i){function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}function n(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()}function s(e){return e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}i.d(t,{Uf:()=>s,m2:()=>o,sP:()=>n})},8084(e,t,i){i.d(t,{$C:()=>j,RF:()=>A,WI:()=>N,_5:()=>b,jU:()=>v,o3:()=>_,x0:()=>x});var o=i(32091),n=i.n(o),s=i(50532),r=i.n(s),a=i(17243),l=i(78913);const c="GET_REGISTRY",g="AWAIT";function d(...e){const t=e.reduce((e,t)=>({...e,...t}),{}),i=I(e.reduce((e,t)=>[...e,...Object.keys(t)],[]));return n()(0===i.length,`collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ${i.join(", ")}. Check your data stores for duplicates.`),t}const u=d,p=d;function h(...e){const t=[...e];let i;return"function"!=typeof t[0]&&(i=t.shift()),(e=i,o={})=>t.reduce((e,t)=>t(e,o),e)}const m=d,f=d,k=d;function y(e){return e}function _(...e){const t=k(...e.map(e=>e.initialState||{}));return{initialState:t,controls:p(...e.map(e=>e.controls||{})),actions:u(...e.map(e=>e.actions||{})),reducer:h(t,...e.map(e=>e.reducer||y)),resolvers:m(...e.map(e=>e.resolvers||{})),selectors:f(...e.map(e=>e.selectors||{}))}}const v={getRegistry:()=>({payload:{},type:c}),*await(e){return{payload:{value:e},type:g}}},b={[c]:(0,l.b)(e=>()=>e),[g]:({payload:e})=>e.value};function I(e){const t=[],i={};for(let o=0;o<e.length;o++){const n=e[o];i[n]=i[n]>=1?i[n]+1:1,i[n]>1&&t.push(n)}return t}const x={actions:v,controls:b,reducer:y};function N(e){return t=>S(e(t))}const S=r()(e=>(0,a.mapValues)(e,(e,t)=>(...i)=>{const o=e(...i);return n()(void 0!==o,`${t}(...) is not resolved`),o}));function A(e,{negate:t=!1}={}){return{safeSelector:(0,l.N)(i=>(o,...n)=>{const s=!t,r=!!t;try{return e(i,o,...n),s}catch{return r}}),dangerousSelector:(0,l.N)(t=>(i,...o)=>{e(t,i,...o)})}}function j(e,t){return n()("function"==typeof e,"a validator function is required."),n()("function"==typeof t,"an action creator function is required."),n()("Generator"!==e[Symbol.toStringTag]&&"GeneratorFunction"!==e[Symbol.toStringTag],"an action’s validator function must not be a generator."),(...i)=>(e(...i),t(...i))}},11999(e,t,i){i.d(t,{s:()=>o});const o="core/forms"},70301(e,t,i){i.d(t,{M:()=>o});const o="core/location"},29785(e,t,i){i.d(t,{O4:()=>o,OQ:()=>s,qc:()=>n});const o="core/site",n="primary",s="secondary"},7972(e,t,i){i.d(t,{F:()=>n,n:()=>o});const o="core/ui",n="activeContextID"},97345(e,t,i){i.d(t,{$8:()=>r,$Q:()=>p,BT:()=>D,CQ:()=>A,D1:()=>Z,DF:()=>Y,GM:()=>S,GT:()=>y,GU:()=>Q,HA:()=>P,HD:()=>u,HP:()=>E,J5:()=>B,JF:()=>T,JK:()=>f,Ml:()=>m,SS:()=>O,UF:()=>g,UY:()=>F,Vl:()=>L,W6:()=>W,Xq:()=>j,YQ:()=>w,Yw:()=>H,dV:()=>C,dX:()=>N,ej:()=>c,em:()=>s,ep:()=>I,fu:()=>v,gC:()=>_,hz:()=>h,jx:()=>d,lV:()=>l,nH:()=>z,oR:()=>o,od:()=>a,p3:()=>k,pG:()=>x,qv:()=>n,qy:()=>M,t1:()=>V,t7:()=>U,tB:()=>b,tK:()=>G,u_:()=>R});const o="core/user",n="connected_url_mismatch",s="__global",r="temporary_persist_permission_error",a="adblocker_active",l=["weekly","monthly","quarterly"],c="googlesitekit_authenticate",g="googlesitekit_setup",d="googlesitekit_view_dashboard",u="googlesitekit_manage_options",p="googlesitekit_read_shared_module_data",h="googlesitekit_manage_module_sharing_options",m="googlesitekit_delegate_module_sharing_management",f="googlesitekit_update_plugins",k="kmAnalyticsAdSenseTopEarningContent",y="kmAnalyticsEngagedTrafficSource",_="kmAnalyticsLeastEngagingPages",v="kmAnalyticsNewVisitors",b="kmAnalyticsPopularAuthors",I="kmAnalyticsPopularContent",x="kmAnalyticsPopularProducts",N="kmAnalyticsReturningVisitors",S="kmAnalyticsTopCities",A="kmAnalyticsTopCitiesDrivingLeads",j="kmAnalyticsTopCitiesDrivingAddToCart",T="kmAnalyticsTopCitiesDrivingPurchases",w="kmAnalyticsTopDeviceDrivingPurchases",M="kmAnalyticsTopConvertingTrafficSource",C="kmAnalyticsTopCountries",E="kmAnalyticsTopPagesDrivingLeads",D="kmAnalyticsTopRecentTrendingPages",O="kmAnalyticsTopTrafficSource",L="kmAnalyticsTopTrafficSourceDrivingAddToCart",R="kmAnalyticsTopTrafficSourceDrivingLeads",P="kmAnalyticsTopTrafficSourceDrivingPurchases",z="kmAnalyticsPagesPerVisit",B="kmAnalyticsVisitLength",G="kmAnalyticsTopReturningVisitorPages",U="kmSearchConsolePopularKeywords",H="kmAnalyticsVisitsPerVisitor",F="kmAnalyticsMostEngagingPages",V="kmAnalyticsTopCategories",W=[k,y,_,v,b,I,x,N,V,S,A,j,T,w,M,C,D,O,L,z,B,G,H,F,V],Y=[...W,U],Z="welcome-modal-with-tour",Q="welcome-modal-gathering-data"},88273(e,t,i){i.d(t,{U:()=>n,i:()=>o});const o="core/modules",n="insufficient_module_dependencies"},67438(e,t,i){i.d(t,{A:()=>Notification});var o=i(62688),n=i.n(o),s=i(63696),r=i(50539),a=i(7972),l=i(8732),c=i(37133);function g(e){return`notification/${e}/viewed`}function d(e){return(0,r.useSelect)(t=>!!t(a.n).getValue(g(e)),[e])}function ViewedStateObserver({id:e,observeRef:t,threshold:i}){const o=(0,c.A)(t,{threshold:i}),{setValue:n}=(0,r.useDispatch)(a.n),{markNotificationSeen:g}=(0,r.useDispatch)(l.D),u=!!o?.isIntersecting,p=d(e),h=(0,s.useRef)();function m(){h.current&&clearTimeout(h.current)}return(0,s.useEffect)(()=>(!p&&u?(m(),h.current=setTimeout(()=>{o?.isIntersecting&&(n(d.getKey(e),!0),g(e))},3e3)):!u&&h.current&&m(),()=>{m()}),[p,u,n,g,e,o]),null}d.getKey=g,ViewedStateObserver.propTypes={id:n().string,observeRef:n().object,threshold:n().number};var u=i(68761),p=i(62540);function Notification({id:e,className:t,gaTrackingEventArgs:i,children:o,onView:n}){const a=(0,s.useRef)(),c=d(e),g=(0,u.A)(e,i?.category,{viewAction:i?.viewAction}),[h,m]=(0,s.useState)(!1),f=(0,r.useSelect)(t=>t(l.D).getNotificationSeenDates(e)),{dismissNotification:k}=(0,r.useDispatch)(l.D);return(0,s.useEffect)(()=>{!h&&c&&(g.view(i?.label,i?.value),n?.(),m(!0)),f?.length>=3&&k(e,{skipHidingFromQueue:!0})},[c,g,h,i,n,f,k,e]),(0,p.jsxs)("section",{id:e,ref:a,className:t,children:[o,!c&&(0,p.jsx)(ViewedStateObserver,{id:e,observeRef:a,threshold:.5})]})}Notification.propTypes={id:n().string,className:n().string,gaTrackingEventArgs:n().shape({category:n().string,viewAction:n().string,label:n().string,value:n().string}),children:n().node,onView:n().func}},67510(e,t,i){i.d(t,{Q:()=>f,A:()=>BannerNotification});var o=i(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(50539),l=i(8732),c=i(68761),g=i(83891),d=i(41671),u=i(71189),p=i(61983),h=i(10740);var m=i(62540);const f={INFO:"info",ERROR:"error",WARNING:"warning"};function BannerNotification({notificationID:e,type:t=f.INFO,learnMoreLink:i,dismissButton:o,ctaButton:s,gaTrackingEventArgs:r,...d}){const u=(0,c.A)(e,r?.category),{dismissNotification:p}=(0,a.useDispatch)(l.D);let k=d?.svg;return k||t===f.INFO||(k={desktop:void 0,mobile:void 0,verticalPosition:"center"},t===f.WARNING&&(k.desktop="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYwIiBoZWlnaHQ9IjIzNCIgdmlld0JveD0iMCAwIDM2MCAyMzQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03My4xMzAyIDE3MC42NjhDODkuMzcxOSAxODkuOTkgMTE1LjQ3NiAxOTUuMTEgMTMxLjg2NSAxODkuOTkxQzE1My4yNDYgMTgzLjMxMiAxNjYuNjcyIDE2Mi45NjcgMTg1LjUwMiAxNjAuNTQ0QzIwNC4zMzMgMTU4LjEyMSAyMTUuNDA2IDE2OC43MDYgMjM1Ljg5NyAxNzAuMjMzQzI1Ni4zODkgMTcxLjc2IDI4MS4yMzIgMTY3LjYzIDI5Mi43OTEgMTM3LjkzNUMzMDQuMzQ5IDEwOC4yMzkgMjkzLjk0OCA3OC4yMzIxIDI3MC4yMTQgNjQuMzYxNUMyNDYuNDgxIDUwLjQ5MDggMjMzLjI3MSA2Ni43Njk0IDIxMC41NjQgNjguMTIzN0MxODcuODU4IDY5LjQ3NzkgMTc4LjAyMyA0NS44NTI4IDE2MS4wMjMgNDQuMzUyOEMxNDQuMDIzIDQyLjg1MjggMTM0LjUyMyA0NS44NTMgMTI0LjUyMyA1OC44NTI5QzExNC41MjMgNzEuODUyOCAxMjAuMzcxIDg1Ljc2NDEgODkuNTIzNSA5OS44NTNDNTguNjc1OCAxMTMuOTQyIDU2Ljg4ODUgMTUxLjM0NSA3My4xMzAyIDE3MC42NjhaIiBmaWxsPSIjRkZFNEIxIi8+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIwX2RfMjcwNV8xNzY4NikiPgo8cmVjdCB4PSIxMTYuNTIzIiB5PSI1Ny45MTk5IiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOC41MzMiIHJ4PSI2Ljk4MjUyIiBmaWxsPSIjRUJFRUYwIi8+CjxtYXNrIGlkPSJtYXNrMF8yNzA1XzE3Njg2IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIxMTYiIHk9IjU3IiB3aWR0aD0iMTI5IiBoZWlnaHQ9IjEzMiI+CjxyZWN0IHg9IjExNi41MjMiIHk9IjU3LjkxOTkiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTMwLjEzMyIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2ODYpIj4KPHJlY3QgeD0iMTI1LjA1NyIgeT0iMTE3LjY1MyIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjkzMzMiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHg9IjEyNS4wNTciIHk9IjEwMy4yNTMiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC45MzMzIiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjUuMDU3IiB5PSIxNTYuMDUzIiB3aWR0aD0iMTEwLjQiIGhlaWdodD0iMzAuOTMzMyIgcng9IjMuNzUxMjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljk0NjUiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAyMDMuNDU3IDk1LjYyNDkpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTYzLjk5IDk1LjYyNTcpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTI0LjUyMyA5NS42MjU3KSIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxwYXRoIGQ9Ik0xMTYuNTIzIDY0LjkzNTVDMTE2LjUyMyA2MS4wNzkyIDExOS42NSA1Ny45NTMgMTIzLjUwNiA1Ny45NTNIMjM3LjM4M0MyNDEuMjM5IDU3Ljk1MyAyNDQuMzY1IDYxLjA3OTIgMjQ0LjM2NSA2NC45MzU1VjY4LjUzM0gxMTYuNTIzVjY0LjkzNTVaIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSIxMjEuODEzIiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjcuMTA0IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzIuNDM3IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE4MC41MjMiIGN5PSIxMjAuODUzIiByPSIxNy4zNzkzIiBmaWxsPSIjNEUzMzAwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNzU4NjIiLz4KPGNpcmNsZSBjeD0iMS42NTUxNyIgY3k9IjEuNjU1MTciIHI9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTE2Ljk5MSkiIGZpbGw9IiNGRkU0QjEiLz4KPHJlY3Qgd2lkdGg9IjMuMzEwMzQiIGhlaWdodD0iOS4zNzkzMSIgcng9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTI4LjU3NykiIGZpbGw9IiNGRkU0QjEiLz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8yNzA1XzE3Njg2IiB4PSIxMDcuOTkiIHk9IjUxLjUxOTkiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0Ni4xMzMiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2ODYiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzY4NiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K"),t===f.ERROR&&(k.desktop="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9IjIwMiIgdmlld0JveD0iMCAwIDQwMCAyMDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NC44NTc1IDk3LjYxNjZDMTA1Ljg1NyAxMzQuMDIgMTUzLjIwMSAxMDYuMTIzIDE4MS4zNTcgMTE0LjU3MkMyMDkuNTEzIDEyMy4wMiAyMTMuNDY4IDE2MS41NDUgMjM1Ljg1NyAxNjkuOTI1QzI1OC4yNDUgMTc4LjMwNiAzMDMuMDY4IDE3MS41MTUgMzE2LjAwMiAxMzguMTM1QzMyOC45MzYgMTA0Ljc1NCAzMTIuMTY3IDgzLjY1MjkgMjg3LjY1MiA3Mi4xNjk0QzI2My4xMzYgNjAuNjg1OSAyNjguOTc2IDM2Ljc4MzYgMjM0LjE2NiAyNy44MDA5QzE5OS4zNTcgMTguODE4MiAxNzguNjY1IDQxLjI2NTEgMTQwLjE2NSAzMC43OTI3QzEwMS42NjUgMjAuMzIwNCA2My44NTc4IDYxLjIxMzEgODQuODU3NSA5Ny42MTY2WiIgZmlsbD0iI0ZGREVEMyIvPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMF9kXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTI3LjY2NiIgeT0iMzcuODQxMSIgd2lkdGg9IjEyOCIgaGVpZ2h0PSIxMjguMTk0IiByeD0iNi45ODI1MiIgZmlsbD0iI0VCRUVGMCIvPgo8bWFzayBpZD0ibWFzazBfMjcwNV8xNzYzMyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTI3IiB5PSIzNyIgd2lkdGg9IjEyOSIgaGVpZ2h0PSIxMzEiPgo8cmVjdCB4PSIxMjcuNjY2IiB5PSIzNy44NDExIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOS43OSIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTM2LjIiIHk9Ijk3LjQxNjkiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC44NTE4IiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzYuMiIgeT0iODMuMDU0NiIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjg1MTgiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxwYXRoIGQ9Ik0xMzYuMiAxMzkuNDY3QzEzNi4yIDEzNy4zOTUgMTM3Ljg3OSAxMzUuNzE2IDEzOS45NTEgMTM1LjcxNkgyNDIuODQ5QzI0NC45MiAxMzUuNzE2IDI0Ni42IDEzNy4zOTUgMjQ2LjYgMTM5LjQ2N1YxNjUuOTM1SDEzNi4yVjEzOS40NjdaIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC44OTY2IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMjE0LjU5OSA3NS40NDY3KSIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMTguODk2NiIgcng9IjIuMzE1NjkiIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3NS4xMzMgNzUuNDQ3NikiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljg5NjYiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAxMzUuNjY2IDc1LjQ0NzYpIiBmaWxsPSIjRjNGNUY3Ii8+CjwvZz4KPHBhdGggZD0iTTEyNy42NjYgNDQuODU2N0MxMjcuNjY2IDQxLjAwMDQgMTMwLjc5MyAzNy44NzQyIDEzNC42NDkgMzcuODc0MkgyNDguNTI2QzI1Mi4zODIgMzcuODc0MiAyNTUuNTA4IDQxLjAwMDQgMjU1LjUwOCA0NC44NTY3VjQ4LjQyNjNIMTI3LjY2NlY0NC44NTY3WiIgZmlsbD0id2hpdGUiLz4KPHJlY3QgeD0iMTMyLjk1NiIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTM4LjI0NyIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTQzLjU4IiB5PSI0MS4zOTE1IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUxNzM3IiByeD0iMS43NTg2OCIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE5MS42NjYiIGN5PSIxMDAuOTE1IiByPSIxNi44IiBmaWxsPSIjQUM0MjIwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNjY2NjciLz4KPHBhdGggZD0iTTE5Mi45MTQgOTMuOTgxOEgxOTAuNDE4QzE5MC4wOTIgOTMuOTgxOCAxODkuODQzIDk0LjI3MTQgMTg5Ljg5MSA5NC41OTM2TDE5MS4xMzkgMTAyLjk3M0MxOTEuMjI5IDEwMy41OCAxOTIuMTA0IDEwMy41OCAxOTIuMTk0IDEwMi45NzNMMTkzLjQ0MiA5NC41OTM2QzE5My40OSA5NC4yNzE0IDE5My4yNCA5My45ODE4IDE5Mi45MTQgOTMuOTgxOFoiIGZpbGw9IiNGRkRFRDMiLz4KPGNpcmNsZSBjeD0iMTkxLjY2NiIgY3k9IjEwNi43ODIiIHI9IjEuNiIgZmlsbD0iI0ZGREVEMyIvPgo8ZGVmcz4KPGZpbHRlciBpZD0iZmlsdGVyMF9kXzI3MDVfMTc2MzMiIHg9IjExOS4xMzMiIHk9IjMxLjQ0MTEiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0NS4yNjEiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2MzMiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzYzMyIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K")),(0,m.jsx)("div",{className:n()("googlesitekit-banner-notification",`googlesitekit-banner-notification--${t}`),children:(0,m.jsx)(h.xA,{className:"googlesitekit-page-content",children:(0,m.jsx)(h.fI,{children:(0,m.jsx)(h.fh,{size:12,children:(0,m.jsx)(g.A,{learnMoreLink:i&&{...i,onClick:async function(e){u.clickLearnMore(r?.label,r?.value),await(i?.onClick?.(e))}},dismissButton:o&&{...o,onClick:async function(t){await(o?.onClick?.(t)),u.dismiss(r?.label,r?.value),p(e,{...o?.dismissOptions})}},ctaButton:s&&{...s,onClick:async function(t){u.confirm(r?.label,r?.value),await(s?.onClick?.(t)),s?.dismissOnClick&&p(e,{...s?.dismissOptions})}},svg:k,...d})})})})})}BannerNotification.propTypes={notificationID:r().string.isRequired,type:r().oneOf(Object.values(f)),titleIcon:r().node,title:r().string,description:r().oneOfType([r().string,r().node]),learnMoreLink:r().shape(d.A.propTypes),dismissButton:r().shape(p.A.propTypes),ctaButton:r().shape(u.A.propTypes),gaTrackingEventArgs:r().shape({category:r().string,label:r().string,value:r().number})}},84730(e,t,i){i.d(t,{Bp:()=>s,FQ:()=>r,He:()=>l,bI:()=>a,rq:()=>n,ui:()=>o});const o="warning-notification-gtg",n="gtg-setup-cta",s="setup-success-notification-site-kit",r={ERROR_HIGH:30,ERROR_LOW:60,WARNING:100,INFO:150,SETUP_CTA_HIGH:150,SETUP_CTA_LOW:200},a={HEADER:"notification-area-header",DASHBOARD_TOP:"notification-area-dashboard-top",OVERLAYS:"notification-area-overlays"},l={DEFAULT:"default",SETUP_CTAS:"setup-ctas"}},8732(e,t,i){i.d(t,{$:()=>s,D:()=>n});var o=i(20697);const n="core/notifications",s=[o.uR,o.jU,o.f7,o.Ax,o.Is]},68761(e,t,i){i.d(t,{A:()=>r});var o=i(63696),n=i(62659),s=i(13047);function r(e,t,{viewAction:i="view_notification",confirmAction:r="confirm_notification",dismissAction:a="dismiss_notification",clickLearnMoreAction:l="click_learn_more_link"}={}){const c=(0,n.A)(),g=t??`${c}_${e}`;return{view:(0,o.useCallback)((...e)=>(0,s.sx)(g,i,...e),[g,i]),confirm:(0,o.useCallback)((...e)=>(0,s.sx)(g,r,...e),[g,r]),dismiss:(0,o.useCallback)((...e)=>(0,s.sx)(g,a,...e),[g,a]),clickLearnMore:(0,o.useCallback)((...e)=>(0,s.sx)(g,l,...e),[g,l])}}},4169(e,t,i){i.d(t,{N$:()=>n,aO:()=>s,qB:()=>o});const o={BOXES:"boxes",COMPOSITE:"composite"},n={QUARTER:"quarter",HALF:"half",FULL:"full"},s="core/widgets"},59352(e,t,i){i.r(t),i.d(t,{CONTEXT_ENTITY_DASHBOARD_CONTENT:()=>g,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:()=>u,CONTEXT_ENTITY_DASHBOARD_SPEED:()=>d,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:()=>c,CONTEXT_MAIN_DASHBOARD_CONTENT:()=>r,CONTEXT_MAIN_DASHBOARD_KEY_METRICS:()=>o,CONTEXT_MAIN_DASHBOARD_MONETIZATION:()=>l,CONTEXT_MAIN_DASHBOARD_SITE_GOALS:()=>n,CONTEXT_MAIN_DASHBOARD_SPEED:()=>a,CONTEXT_MAIN_DASHBOARD_TRAFFIC:()=>s,default:()=>p});const o="mainDashboardKeyMetrics",n="mainDashboardSiteGoals",s="mainDashboardTraffic",r="mainDashboardContent",a="mainDashboardSpeed",l="mainDashboardMonetization",c="entityDashboardTraffic",g="entityDashboardContent",d="entityDashboardSpeed",u="entityDashboardMonetization",p={CONTEXT_MAIN_DASHBOARD_KEY_METRICS:o,CONTEXT_MAIN_DASHBOARD_SITE_GOALS:n,CONTEXT_MAIN_DASHBOARD_TRAFFIC:s,CONTEXT_MAIN_DASHBOARD_CONTENT:r,CONTEXT_MAIN_DASHBOARD_SPEED:a,CONTEXT_MAIN_DASHBOARD_MONETIZATION:l,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:c,CONTEXT_ENTITY_DASHBOARD_CONTENT:g,CONTEXT_ENTITY_DASHBOARD_SPEED:d,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:u}},7551(e,t,i){i.d(t,{Ay:()=>a,Oo:()=>s,oE:()=>r});var o=i(20697),n=i(62659);const s=o.jU,r=o.f7;function a(){const e=(0,n.A)();return e===o.jU||e===o.Ax?s:e===o.f7||e===o.Is?r:null}},7076(e,t,i){i.d(t,{d:()=>r});var o=i(18117),n=i(17243),s=i(63696);function r(...e){const t=(0,o.MA)(()=>(0,n.debounce)(...e),e);return(0,s.useEffect)(()=>()=>t.cancel(),[t]),t}},30805(e,t,i){i.d(t,{i:()=>r});var o=i(63696),n=i(79961),s=i(84895);function r(e){const t=(0,o.useContext)(n.A);return(0,s.G)(e,t)}},68832(e,t,i){i.d(t,{A:()=>s});var o=i(35470),n=i(11999);function s(e,t){return(0,o.A)(i=>{const{getValue:o}=i(n.s);return o(e,t)},[e,t])}},85097(e,t,i){i.d(t,{W:()=>l});var o=i(79257),n=i(35470),s=i(63696),r=i(52735),a=i(7972);function l({sticky:e=!1}={}){const t=(0,s.useContext)(r.A),[i,l]=(0,s.useState)(!1),c=(0,n.A)(e=>e(a.n).getInViewResetCount()),g=(0,n.A)(e=>e(a.n).getValue("forceInView"));return(0,s.useEffect)(()=>{t.value&&!i&&l(!0)},[i,t,l]),(0,s.useEffect)(()=>{g&&l(!0)},[g]),(0,o.A)(()=>{l(!1)},[c]),!(!e||!i)||!!t.value}},52721(e,t,i){i.d(t,{w:()=>a});var o=i(35470),n=i(63696),s=i(85097);function r(){}function a(e,t){const i=(0,s.W)({sticky:!0}),a=(0,n.useRef)(),l=(0,n.useCallback)(e,t),c=(0,o.A)(i?l:r);return i&&(a.current=c),a.current}},12896(e,t,i){i.d(t,{l:()=>n});var o=i(78174);function n(e,t,i){(0,o.A)(i=>e.includes(i.keyCode)&&t.current.contains(i.target),i)}},37133(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o=i(63696);const __WEBPACK_DEFAULT_EXPORT__=function(e,t){const[i,n]=(0,o.useState)(null);return(0,o.useEffect)(()=>{if(e.current&&"function"==typeof globalThis.IntersectionObserver){function i(e){n(e[e.length-1])}const o=new globalThis.IntersectionObserver(i,t);return o.observe(e.current),()=>{n(null),o.disconnect()}}return()=>{}},[e.current,t.threshold,t.root,t.rootMargin]),i}},62659(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o=i(63696),n=i(19826);const __WEBPACK_DEFAULT_EXPORT__=function(){return(0,o.useContext)(n.Ay)}},4124(e,t,i){i.d(t,{A:()=>s});var o=i(20697),n=i(62659);function s(){const e=(0,n.A)();return o.Nn.includes(e)}},10740(e,t,i){i.d(t,{$z:()=>n.$,CR:()=>a.C,Cf:()=>l.DialogContent,Es:()=>l.DialogFooter,Nv:()=>o.N,P3:()=>r.P,Si:()=>s.S,fI:()=>g.fI,fh:()=>g.fh,lG:()=>c.a,xA:()=>g.xA});var o=i(91046),n=i(3412),s=i(30454),r=i(26569),a=i(56655),l=i(12786),c=i.n(l),g=i(84984)},84984(e,t,i){i.d(t,{fh:()=>Cell,xA:()=>u,fI:()=>g});var o=i(62688),n=i.n(o),s=i(4452),r=i.n(s),a=i(62540);function Cell(e){const{className:t,alignTop:i,alignMiddle:o,alignBottom:n,alignRight:s,alignLeft:l,smAlignRight:c,mdAlignRight:g,lgAlignRight:d,smSize:u,smStart:p,smOrder:h,mdSize:m,mdStart:f,mdOrder:k,lgSize:y,lgStart:_,lgOrder:v,size:b,children:I,...x}=e;return(0,a.jsx)("div",{...x,className:r()(t,"mdc-layout-grid__cell",{"mdc-layout-grid__cell--align-top":i,"mdc-layout-grid__cell--align-middle":o,"mdc-layout-grid__cell--align-bottom":n,"mdc-layout-grid__cell--align-right":s,"mdc-layout-grid__cell--align-left":l,"mdc-layout-grid__cell--align-right-phone":c,"mdc-layout-grid__cell--align-right-tablet":g,"mdc-layout-grid__cell--align-right-desktop":d,[`mdc-layout-grid__cell--span-${b}`]:12>=b&&b>0,[`mdc-layout-grid__cell--span-${y}-desktop`]:12>=y&&y>0,[`mdc-layout-grid__cell--start-${_}-desktop`]:12>=_&&_>0,[`mdc-layout-grid__cell--order-${v}-desktop`]:12>=v&&v>0,[`mdc-layout-grid__cell--span-${m}-tablet`]:8>=m&&m>0,[`mdc-layout-grid__cell--start-${f}-tablet`]:8>=f&&f>0,[`mdc-layout-grid__cell--order-${k}-tablet`]:8>=k&&k>0,[`mdc-layout-grid__cell--span-${u}-phone`]:4>=u&&u>0,[`mdc-layout-grid__cell--start-${p}-phone`]:4>=p&&p>0,[`mdc-layout-grid__cell--order-${h}-phone`]:4>=h&&h>0}),children:I})}Cell.propTypes={smSize:n().number,smStart:n().number,smOrder:n().number,mdSize:n().number,mdStart:n().number,mdOrder:n().number,lgSize:n().number,lgStart:n().number,lgOrder:n().number,size:n().number,alignTop:n().bool,alignMiddle:n().bool,alignBottom:n().bool,alignRight:n().bool,alignLeft:n().bool,smAlignRight:n().bool,mdAlignRight:n().bool,lgAlignRight:n().bool,className:n().string,children:n().node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,smOrder:0,mdSize:0,mdStart:0,mdOrder:0,lgSize:0,lgStart:0,lgOrder:0};var l=i(63696);const c=(0,l.forwardRef)(({className:e,children:t,...i},o)=>(0,a.jsx)("div",{ref:o,className:r()("mdc-layout-grid__inner",e),...i,children:t}));c.displayName="Row",c.propTypes={className:n().string,children:n().node},c.defaultProps={className:""};const g=c,d=(0,l.forwardRef)(({alignLeft:e,fill:t,className:i,children:o,collapsed:n,...s},l)=>(0,a.jsx)("div",{className:r()("mdc-layout-grid",i,{"mdc-layout-grid--align-left":e,"mdc-layout-grid--collapsed":n,"mdc-layout-grid--fill":t}),...s,ref:l,children:o}));d.displayName="Grid",d.propTypes={alignLeft:n().bool,fill:n().bool,className:n().string,collapsed:n().bool,children:n().node},d.defaultProps={className:""};const u=d},58718(e,t,i){i.d(t,{CX:()=>n,Py:()=>r,SM:()=>o,kj:()=>s});const o="adsense-connect-cta",n="adsense-connect-cta-tooltip-state",s="adsense-ga4-top-earnings-notice",r="adsense"},22942(e,t,i){i.d(t,{A_:()=>g,DF:()=>u,L1:()=>p,M0:()=>r,Mc:()=>a,Ok:()=>c,U9:()=>l,iW:()=>s,ue:()=>n,wq:()=>o,xR:()=>d});const o=1,n=2,s=3,r="enhanced-measurement-activation-banner-tooltip-state",a="enhanced-measurement-activation-banner-dismissed-item",l="_r.explorerCard..selmet",c="_r.explorerCard..seldim",g="_r..dataFilters",d="_r..nav",u="key-metrics-connect-ga4-cta-widget",p="analytics-4"},80(e,t,i){i.d(t,{CV:()=>T,Cu:()=>I,K9:()=>o,Kr:()=>m,Lf:()=>p,Oh:()=>r,PW:()=>j,Rx:()=>D,S9:()=>f,TQ:()=>d,Vt:()=>C,Wl:()=>v,ZC:()=>n,ZY:()=>a,_p:()=>E,ag:()=>h,aj:()=>u,bz:()=>w,dC:()=>S,dq:()=>M,f2:()=>c,fB:()=>A,fV:()=>N,iB:()=>g,kc:()=>l,mo:()=>y,nc:()=>x,rm:()=>b,to:()=>s,wo:()=>k,yn:()=>_});const o="modules/analytics-4",n="account_create",s="property_create",r="webdatastream_create",a="analyticsSetup",l=10,c=0,g="https://www.googleapis.com/auth/tagmanager.readonly",d="enhanced-measurement-form",u="enhanced-measurement-enabled",p="enhanced-measurement-should-dismiss-activation-banner",h="analyticsAccountCreate",m="analyticsCustomDimensionsCreate",f="https://www.googleapis.com/auth/analytics.edit",k="dashboardAllTrafficWidgetDimensionName",y="dashboardAllTrafficWidgetDimensionColor",_="dashboardAllTrafficWidgetDimensionValue",v="dashboardAllTrafficWidgetActiveRowIndex",b="dashboardAllTrafficWidgetLoaded",I={googlesitekit_post_date:{parameterName:"googlesitekit_post_date",displayName:"WordPress Post Date",description:"Created by Site Kit: Date when a post was published",scope:"EVENT"},googlesitekit_post_author:{parameterName:"googlesitekit_post_author",displayName:"WordPress Post Author",description:"Created by Site Kit: WordPress name of the post author",scope:"EVENT"},googlesitekit_post_categories:{parameterName:"googlesitekit_post_categories",displayName:"WordPress Post Categories",description:"Created by Site Kit: Names of categories assigned to a post",scope:"EVENT"},googlesitekit_post_type:{parameterName:"googlesitekit_post_type",displayName:"WordPress Post Type",description:"Created by Site Kit: Content type of a post",scope:"EVENT"}},x={ADD_TO_CART:"add_to_cart",PURCHASE:"purchase",SUBMIT_LEAD_FORM:"submit_lead_form",GENERATE_LEAD:"generate_lead",CONTACT:"contact"},N=[x.CONTACT,x.GENERATE_LEAD,x.SUBMIT_LEAD_FORM],S=[x.PURCHASE,x.ADD_TO_CART],A={"new-visitors":{description:"People who visited the site for the first time",displayName:"New visitors",membershipDurationDays:-1,filterClauses:[{clauseType:"INCLUDE",simpleFilter:{scope:"AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS",filterExpression:{andGroup:{filterExpressions:[{orGroup:{filterExpressions:[{dimensionOrMetricFilter:{fieldName:"newVsReturning",stringFilter:{matchType:"EXACT",value:"new"}}}]}},{orGroup:{filterExpressions:[{notExpression:{dimensionOrMetricFilter:{fieldName:"groupId",stringFilter:{matchType:"EXACT",value:"created_by_googlesitekit:new_visitors"}}}}]}}]}}}}]},"returning-visitors":{description:"People who have visited your site at least once before",displayName:"Returning visitors",membershipDurationDays:-1,filterClauses:[{clauseType:"INCLUDE",simpleFilter:{scope:"AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS",filterExpression:{andGroup:{filterExpressions:[{orGroup:{filterExpressions:[{dimensionOrMetricFilter:{fieldName:"newVsReturning",stringFilter:{matchType:"EXACT",value:"returning"}}}]}},{orGroup:{filterExpressions:[{notExpression:{dimensionOrMetricFilter:{fieldName:"groupId",stringFilter:{matchType:"EXACT",value:"created_by_googlesitekit:returning_visitors"}}}}]}}]}}}}]}},j="audiencePermissionsSetup",T="audienceTileCustomDimensionCreate",w="audience-selection-panel-expirable-new-badge-",M="audience",C="customDimension",E="property",D=[M,C,E]},51193(e,t,i){i.d(t,{Du:()=>u,GH:()=>a,Gp:()=>l,IS:()=>k,Jg:()=>g,N_:()=>_,O5:()=>y,Ql:()=>p,Qr:()=>h,XH:()=>f,r0:()=>c,sq:()=>m,tt:()=>d});var o=i(32091),n=i.n(o),s=i(17243),r=i(82871);const a="Invalid dateString parameter, it must be a string.",l='Invalid date range, it must be a string with the format "last-x-days".',c=60,g=60*c,d=24*g,u=7*d;function p(){function e(e){return(0,r.sprintf)(/* translators: %s: number of days */ /* translators: %s: number of days */ (0,r._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}}}function h(e=""){if(!(0,s.isString)(e))return!1;if(3!==e.split("-").length)return!1;const t=new Date(e);return(0,s.isDate)(t)&&!isNaN(t)}function m(e){n()((0,s.isDate)(e)&&!isNaN(e),"Date param must construct to a valid date instance or be a valid date instance itself.");const t=`${e.getMonth()+1}`,i=`${e.getDate()}`;return[e.getFullYear(),t.length<2?`0${t}`:t,i.length<2?`0${i}`:i].join("-")}function f(e){n()(h(e),a);const[t,i,o]=e.split("-");return new Date(t,i-1,o)}function k(e,t){return m(_(e,t*d))}function y(e){const t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}function _(e,t){n()(h(e)||(0,s.isDate)(e)&&!isNaN(e),a);const i=h(e)?f(e).getTime():e.getTime();return new Date(i-1e3*t)}},13137(e,t,i){i.d(t,{G:()=>a,HY:()=>c,SG:()=>l,db:()=>n,e4:()=>d,vl:()=>g});i(17243);var o=i(82871);const n="missing_required_scopes",s="insufficientPermissions",r="forbidden";function a(e){return e?.code===n}function l(e){return[s,r].includes(e?.data?.reason)}function c(e){return!!e?.data?.reconnectURL}function g(e,t){return!(!t?.storeName||l(e)||a(e)||c(e))}function d(e){return"internal_server_error"===e?.code?(0,o.__)("There was a critical error on this website while fetching data","google-site-kit"):"invalid_json"===e?.code?(0,o.__)("The server provided an invalid response","google-site-kit"):e?.message}},62954(e,t,i){function o(e,t){const i=e.getBoundingClientRect(),o=t.getBoundingClientRect();return!(i.bottom<o.top||o.bottom<i.top||i.right<o.left||o.right<i.left)}i.d(t,{N:()=>o})},49746(e,t,i){i.d(t,{Eo:()=>d,JK:()=>m,K5:()=>h,jq:()=>p,mK:()=>g});var o=i(17243),n=i(50532),s=i.n(n),r=i(82871);function a(e,t={}){const{formatUnit:i,formatDecimal:o}=function(e,t={}){const{hours:i,minutes:o,seconds:n}=l(e);return{hours:i,minutes:o,seconds:n,formatUnit(){const{unitDisplay:s="short",...a}=t,l={unitDisplay:s,...a,style:"unit"};return 0===e?p(n,{...l,unit:"second"}):(0,r.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ (0,r._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),n?p(n,{...l,unit:"second"}):"",o?p(o,{...l,unit:"minute"}):"",i?p(i,{...l,unit:"hour"}):"").trim()},formatDecimal(){const t=(0,r.sprintf)( // translators: %s: number of seconds with "s" as the abbreviated unit. // translators: %s: number of seconds with "s" as the abbreviated unit. (0,r.__)("%ds","google-site-kit"),n);if(0===e)return t;const s=(0,r.sprintf)( // translators: %s: number of minutes with "m" as the abbreviated unit. // translators: %s: number of minutes with "m" as the abbreviated unit. (0,r.__)("%dm","google-site-kit"),o),a=(0,r.sprintf)( // translators: %s: number of hours with "h" as the abbreviated unit. // translators: %s: number of hours with "h" as the abbreviated unit. (0,r.__)("%dh","google-site-kit"),i);return(0,r.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ (0,r._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),n?t:"",o?s:"",i?a:"").trim()}}}(e,t);try{return i()}catch{return o()}}function l(e){e=parseInt(e,10),Number.isNaN(e)&&(e=0);return{hours:Math.floor(e/60/60),minutes:Math.floor(e/60%60),seconds:Math.floor(e%60)}}function c(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e}function g(e){let t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:(0,o.isPlainObject)(e)&&(t={...e}),t}function d(e,t={}){e=(0,o.isFinite)(e)?e:Number(e),(0,o.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const i=g(t),{style:n="metric"}=i;return"metric"===n?function(e){const t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?(0,r.sprintf)( // translators: %s: an abbreviated number in millions. // translators: %s: an abbreviated number in millions. (0,r.__)("%sM","google-site-kit"),p(c(e),e%10==0?{}:t)):1e4<=e?(0,r.sprintf)( // translators: %s: an abbreviated number in thousands. // translators: %s: an abbreviated number in thousands. (0,r.__)("%sK","google-site-kit"),p(c(e))):1e3<=e?(0,r.sprintf)( // translators: %s: an abbreviated number in thousands. // translators: %s: an abbreviated number in thousands. (0,r.__)("%sK","google-site-kit"),p(c(e),e%10==0?{}:t)):p(e,{signDisplay:"never",maximumFractionDigits:1})}(e):"duration"===n?a(e,i):"durationISO"===n?function(e){let{hours:t,minutes:i,seconds:o}=l(e);return o=("0"+o).slice(-2),i=("0"+i).slice(-2),t=("0"+t).slice(-2),"00"===t?`${i}:${o}`:`${t}:${i}:${o}`}(e):p(e,i)}const u=s()(console.warn);function p(e,t={}){const{locale:i=m(),...o}=t;try{return new Intl.NumberFormat(i,o).format(e)}catch(t){u(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(i)}, ${JSON.stringify(o)} ).format( ${typeof e} )`,t.message)}const n={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],r={};for(const[e,t]of Object.entries(o))n[e]&&t===n[e]||s.includes(e)||(r[e]=t);try{return new Intl.NumberFormat(i,r).format(e)}catch{return new Intl.NumberFormat(i).format(e)}}function h(e,t={}){const{locale:i=m(),style:o="long",type:n="conjunction"}=t;if(Intl.ListFormat){return new Intl.ListFormat(i,{style:o,type:n}).format(e)} /* translators: used between list items, there is a space after the comma. */const s=(0,r.__)(", ","google-site-kit");return e.join(s)}function m(e=globalThis){const t=(0,o.get)(e,["_googlesitekitLegacyData","locale"]);if(t){const e=t.match(/^(\w{2})?(_)?(\w{2})/);if(e&&e[0])return e[0].replace(/_/g,"-")}return e.navigator.language}},13047(e,t,i){i.d(t,{tt:()=>k.tt,Jg:()=>k.Jg,Gp:()=>k.Gp,GH:()=>k.GH,r0:()=>k.r0,Du:()=>k.Du,Zf:()=>T,Cn:()=>I,G7:()=>f,vH:()=>m,N_:()=>k.N_,zh:()=>M,mK:()=>g.mK,Ql:()=>k.Ql,vY:()=>b,sq:()=>k.sq,VZ:()=>x.VZ,JK:()=>g.JK,IS:()=>k.IS,pH:()=>x.pH,kf:()=>S,O5:()=>k.O5,Qr:()=>k.Qr,x6:()=>N,K5:()=>g.K5,S_:()=>h,dc:()=>x.dc,Eo:()=>g.Eo,jq:()=>g.jq,DK:()=>j.D,N9:()=>A,p9:()=>s.p,XH:()=>k.XH,Zm:()=>l,sx:()=>n.sx,BI:()=>n.BI,CZ:()=>s.C,BG:()=>w});var o=i(17243),n=i(65054),s=i(50477),r=i(10523),a=i.n(r);function l(e){return a()(JSON.stringify(c(e)))}function c(e){const t={};return Object.keys(e).sort().forEach(i=>{let o=e[i];o&&"object"==typeof o&&!Array.isArray(o)&&(o=c(o)),t[i]=o}),t}var g=i(49746);function d(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function u(e){return`<p>${e.replace(/\n{2,}/g,"</p><p>")}</p>`}function p(e){return e.replace(/\n/gi,"<br>")}function h(e){const t=[d,u,p];let i=e;for(const e of t)i=e(i);return i}function m(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)]}function f(e){const t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}var k=i(51193),y=i(30908),_=i(38017),v=i(62540);function b(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:i=!1}=t;return(0,y.Ay)((0,v.jsx)(_.A,{direction:e>0?"up":"down",invertColor:i}))}function I(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var x=i(48276);function N(e){const t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function S(e){if("number"==typeof e)return!0;const t=(e||"").toString();return!!t&&!isNaN(t)}function A(e){return Array.isArray(e)?[...e].sort():e}var j=i(11193);function T(e,t){function i(e){return"0"===e||0===e}if(i(e)&&i(t))return 0;if(i(e)||Number.isNaN(e))return null;const o=(t-e)/e;return Number.isNaN(o)||!Number.isFinite(o)?null:o}function w(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function M(e){if(!e)return"";const t=e.replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(t)).replace(/(\\)/g,"");return(0,o.unescape)(t)}},86582(e,t,i){i.d(t,{A:()=>n});var o=i(20697);function n(e){return o.kz.includes(e)}},11193(e,t,i){i.d(t,{D:()=>s});var o=i(32091),n=i.n(o);function s(e,{dateRangeLength:t}){n()(Array.isArray(e),"report must be an array to partition."),n()(Number.isInteger(t)&&t>0,"dateRangeLength must be a positive integer.");const i=-1*t;return{currentRange:e.slice(i),compareRange:e.slice(2*i,i)}}},55465(e,t,i){i.d(t,{O:()=>n});var o=i(31234);const n=i.n(o)()(globalThis)},50477(e,t,i){i.d(t,{C:()=>s,p:()=>n});var o=i(55465);function n(e,t={}){return{__html:o.O.sanitize(e,t)}}function s(e){const t="object"==typeof e?e.toString():e;return t?.replace?.(/\/+$/,"")}},11883(e,t,i){i.d(t,{YJ:()=>s,Eq:()=>r});var o=i(97513),n=i(17243);function s(e,t){const i=document.querySelector(e);if(!i)return 0;const o=i.getBoundingClientRect().top,n=r(t);return o+globalThis.scrollY-n}function r(e){let t=function(e){let t=0;const i=document.querySelector(".googlesitekit-header");t=i&&"sticky"===globalThis.getComputedStyle(i).position?function(e){const t=document.querySelector(".googlesitekit-header");if(t){if(e===o.mp)return t.offsetHeight;const i=t.getBoundingClientRect().bottom;return i<0?0:i}return 0}(e):function(e){const t=document.querySelector("#wpadminbar");if(t&&e!==o.mp)return t.offsetHeight;return 0}(e);return t=function(e){return(0,n.isFinite)(e)?e:0}(t),t<0?0:t}(e);const i=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(i).reduce((e,t)=>e+t.offsetHeight,0),t}},65054(e,t,i){i.d(t,{M9:()=>N,sx:()=>I,BI:()=>x});var o=i(17243);const n="_googlesitekitDataLayer",s="data-googlesitekit-gtag";function r(e){return function(){e[n]=e[n]||[],e[n].push(arguments)}}var a=i(84895);const l={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};const{activeModules:c=[],isSiteKitScreen:g,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:h,isAuthenticated:m,userRoles:f}=globalThis._googlesitekitTrackingData||{},k={activeModules:c,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:h,isSiteKitScreen:g,userRoles:f,isAuthenticated:m,pluginVersion:"1.178.0"},{enableTracking:y,disableTracking:_,isTrackingEnabled:v,initializeSnippet:b,trackEvent:I,trackEventOnce:x}=function(e,t=globalThis,i=globalThis){const c={...l,...e};c.referenceSiteURL&&(c.referenceSiteURL=c.referenceSiteURL.toString().replace(/\/+$/,""));const g=function(e,t){const i=r(t);let o;const{activeModules:l,referenceSiteURL:c,userIDHash:g,userRoles:d=[],isAuthenticated:u,pluginVersion:p}=e;return function(){const{document:t}=globalThis;if(void 0===o&&(o=!!t.querySelector(`script[${s}]`)),o)return!1;o=!0;const r=d?.length?d.join(","):"";i("js",new Date),i("config",e.trackingID,{groups:"site_kit",send_page_view:e.isSiteKitScreen,domain:c,plugin_version:p||"",enabled_features:Array.from(a.t).join(","),active_modules:l.join(","),authenticated:u?"1":"0",user_properties:{user_roles:r,user_identifier:g}});const h=t.createElement("script");return h.setAttribute(s,""),h.async=!0,h.src=`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${n}`,t.head.appendChild(h),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${n}`}}}(c,t),d=function(e,t,i,o){const n=r(t);return async function(t,s,r,a){const{trackingEnabled:l}=e;if(!l)return null;i();const c={send_to:"site_kit",event_category:t,event_label:r,value:a};return new Promise(e=>{const i=setTimeout(function(){o.console.warn(`Tracking event "${s}" (category "${t}") took too long to fire.`),e()},1e3);function r(){clearTimeout(i),e()}n("event",s,{...c,event_callback:r}),o._gaUserPrefs?.ioo?.()&&r()})}}(c,t,g,i),u={};return{enableTracking:function(){c.trackingEnabled=!0},disableTracking:function(){c.trackingEnabled=!1},initializeSnippet:g,isTrackingEnabled:function(){return!!c.trackingEnabled},trackEvent:d,trackEventOnce:function(...e){const t=JSON.stringify(e);u[t]||(u[t]=(0,o.once)(d)),u[t](...e)}}}(k);function N(e){e?y():_()}g&&d&&b()},48276(e,t,i){i.d(t,{VZ:()=>s,dc:()=>r,pH:()=>n,r0:()=>a});var o=i(84024);function n(e){try{return new URL(e).pathname}catch{}return null}function s(e,t){try{return new URL(t,e).href}catch{}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function r(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function a(e,t){if(!(0,o.m)(e))return e;if(e.length<=t)return e;const i=new URL(e),n=e.replace(i.origin,"");if(n.length<t)return n;const s=n.length-Math.floor(t)+1;return"…"+n.substr(s)}},65385(e,t,i){i.d(t,{A:()=>a});var o=i(50539),n=i(88273),s=i(74426),r=i(62540);function a({moduleName:e,FallbackComponent:t,IncompleteComponent:i}){return a=>{function WhenActiveComponent(s){const l=(0,o.useSelect)(t=>t(n.i).getModule(e),[e]);if(!l)return null;const c=t||s.WidgetNull||null;if(!1===l.active)return c&&(0,r.jsx)(c,{...s});if(!1===l.connected){const e=i||c;return e&&(0,r.jsx)(e,{...s})}return(0,r.jsx)(a,{...s})}return WhenActiveComponent.displayName=`When${(0,s.Uf)(e)}Active`,(a.displayName||a.name)&&(WhenActiveComponent.displayName+=`(${a.displayName||a.name})`),WhenActiveComponent}}},49383(e){e.exports=googlesitekit.components},50539(e){e.exports=googlesitekit.data},82871(e){e.exports=googlesitekit.i18n}},e=>{e.O(0,[660],()=>{return t=72091,e(e.s=t);var t});e.O()}]);
[+]
..
[-] 146-14c7e7fb4aa4ac50c311.js
[edit]
[-] 201-7f07b1f8a0c4733a0bd0.js
[edit]
[-] 314-78f708ec738779090f84.js
[edit]
[-] 315-10999111229d771cddc1.js
[edit]
[-] 379-77d19562846b6965319b.js
[edit]
[-] 590-695fc35f575d0203c096.js
[edit]
[-] 640-655cdd40c3e8e7242506.js
[edit]
[-] 909-f07466539fcb2ede760d.js
[edit]
[-] analytics-advanced-tracking-ec3ddfb411217bce5803.js
[edit]
[-] googlesitekit-activation-6df0e8c5a2092f0f0076.js
[edit]
[-] googlesitekit-ad-blocking-recovery-fbe06a609e35f0a4a683.js
[edit]
[-] googlesitekit-adminbar-a42543058a7c1e5d4d6f.js
[edit]
[-] googlesitekit-admin-pointers-tracking-24a7aef2b1109643baa9.js
[edit]
[-] googlesitekit-api-f6a1d481af25858dd1a0.js
[edit]
[-] googlesitekit-block-tracking-71bfaaa3cb1e1f902d0b.js
[edit]
[-] googlesitekit-components-e28e0fbf88266edd3ab6.js
[edit]
[-] googlesitekit-consent-mode-da15714e8829855bb7ce.js
[edit]
[-] googlesitekit-data-af9e836fbf5b0b1b11a8.js
[edit]
[-] googlesitekit-datastore-forms-e0bcc0f0a06d22145463.js
[edit]
[-] googlesitekit-datastore-location-66b28bc5667a350bb2f3.js
[edit]
[-] googlesitekit-datastore-site-7d1747c351e5b163e859.js
[edit]
[-] googlesitekit-datastore-ui-357c68935c4996893af3.js
[edit]
[-] googlesitekit-datastore-user-1f24e8e62a9152442ce3.js
[edit]
[-] googlesitekit-entity-dashboard-c34afee632c35a5b0b21.js
[edit]
[-] googlesitekit-events-provider-contact-form-7-08e8756782316cb65854.js
[edit]
[-] googlesitekit-events-provider-easy-digital-downloads-6f3a830f4e84342b04f0.js
[edit]
[-] googlesitekit-events-provider-mailchimp-55e506112a29131ad26e.js
[edit]
[-] googlesitekit-events-provider-ninja-forms-de64a20f79b99aba5219.js
[edit]
[-] googlesitekit-events-provider-optin-monster-fad3d5a89e2883db0a1d.js
[edit]
[-] googlesitekit-events-provider-popup-maker-4b3ee78127e8b950c3b3.js
[edit]
[-] googlesitekit-events-provider-woocommerce-a5f72561d6cdf416147d.js
[edit]
[-] googlesitekit-events-provider-wpforms-087b09462076035a76b2.js
[edit]
[-] googlesitekit-i18n-5a1db658648cbdfa2e58.js
[edit]
[-] googlesitekit-key-metrics-setup-c0401d7c1c273dd36caf.js
[edit]
[-] googlesitekit-main-dashboard-83ea9b01130ce90a42b7.js
[edit]
[-] googlesitekit-metric-selection-2291417eb95dd5d3383f.js
[edit]
[-] googlesitekit-modules-4fdf5676befa5951f97c.js
[edit]
[-] googlesitekit-modules-ads-093f9d5e5342dc4061d6.js
[edit]
[-] googlesitekit-modules-adsense-458f9484731f9afaa339.js
[edit]
[-] googlesitekit-modules-analytics-4-684176c25e524ba1ca3c.js
[edit]
[-] googlesitekit-modules-pagespeed-insights-bf5ad9a362afcd17e6cb.js
[edit]
[-] googlesitekit-modules-reader-revenue-manager-a92db641855ad478c976.js
[edit]
[-] googlesitekit-modules-search-console-c86628495c4d004d3c37.js
[edit]
[-] googlesitekit-modules-sign-in-with-google-98cc95d6cd994427ea10.js
[edit]
[-] googlesitekit-modules-tagmanager-eb2231c15cfa5990c0c5.js
[edit]
[-] googlesitekit-notifications-7499c54458036e1fff87.js
[edit]
[-] googlesitekit-polyfills-ce157741379ba7fef764.js
[edit]
[-] googlesitekit-settings-f234e3fa0b61ae33b799.js
[edit]
[-] googlesitekit-splash-a8526eec3f4205842388.js
[edit]
[-] googlesitekit-user-input-487f73f57e951262d1cf.js
[edit]
[-] googlesitekit-vendor-1604b65be3112b8dac04.js
[edit]
[-] googlesitekit-widgets-74df70ce2693396cc6cf.js
[edit]
[-] googlesitekit-wp-dashboard-844ce60b28c746d9db10.js
[edit]
[-] runtime-a3f442b3975b8a33d9bb.js
[edit]
[-] .htaccess.disabled
[edit]