"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;tn.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;tn.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;tn.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;tn.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;tn.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;tn.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;tn.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;tr.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;tn.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;ts.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},39866(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o=i(4452),n=i.n(o),s=i(97015);const __WEBPACK_DEFAULT_EXPORT__=({as:e="p",className:t,children:i})=>{const o=e;return s.createElement(o,{className:n()("googlesitekit-notice__description",t)},i)}},3749(e,t,i){i.d(t,{L:()=>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}({})},37325(e,t,i){i.d(t,{A:()=>A});var o=i(4452),n=i.n(o),s=i(63696),r=i(3749),a=i(62688),l=i.n(a),c=i(49383),g=i(83366),d=i(62540);function CTAButton({label:e,disabled:t,inProgress:i,onClick:o,href:s,external:r=!1,hideExternalIndicator:a=!1,tertiary:l=!1}){let u;return r&&!a&&(u=(0,d.jsx)(g.A,{width:14,height:14})),(0,d.jsx)(c.SpinnerButton,{className:n()("googlesitekit-notice__cta",{"googlesitekit-notice__cta--spinner__running":i}),disabled:t,isSaving:i,onClick:o,href:s,target:r?"_blank":void 0,trailingIcon:u,tertiary:l,children:e})}CTAButton.propTypes={label:l().string.isRequired,disabled:l().bool,inProgress:l().bool,onClick:l().func,href:l().string,external:l().bool,hideExternalIndicator:l().bool,tertiary:l().bool};var u=i(39866),p=i(82871),h=i(97015);const Notice_DismissButton=({label:e=(0,p.__)("Got it","google-site-kit"),onClick:t,disabled:i,href:o,external:s=!1,variant:r="text",icon:a,ariaLabel:l})=>h.createElement(c.Button,{className:n()({"googlesitekit-notice__dismiss":"icon"===r,"googlesitekit-notice__dismiss--icon":"icon"===r}),onClick:t,disabled:i,href:o,target:s?"_blank":void 0,tertiary:"icon"!==r,icon:"icon"===r?a:void 0,"aria-label":"icon"===r?l:void 0,hideTooltipTitle:"icon"===r},"icon"!==r?e:void 0);var m,f=i(19793),_=i(42343);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),m||(m=s.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"}))),k={[r.L.NEW]:_.A,[r.L.SUCCESS]:f.A,[r.L.INFO]:warning_notice,[r.L.WARNING]:warning_notice,[r.L.ERROR]:warning_notice};function Icon({type:e}){const t=k[e]||warning_notice;return(0,d.jsx)(t,{width:24,height:24})}Icon.propTypes={type:l().oneOf(Object.values(r.L))};var v=i(97015);const Notice_Title=({className:e,children:t})=>v.createElement("p",{className:n()("googlesitekit-notice__title",e)},t);var b=i(97015);const A=(0,s.forwardRef)(({actionContent:e,className:t,title:i,description:o,dismissButton:s,ctaButton:a,type:l=r.L.INFO,children:c,hideIcon:g},d)=>{const p=function(e){return"icon"===e?.variant?!!e.icon&&!!e.ariaLabel&&(e.onClick||e.href):!!e?.label||!!e?.onClick||!!e?.href}(s),h=!!a?.label&&(a?.onClick||a?.href),m=!!e||p||h;return b.createElement("div",{className:"googlesitekit-notice-container",ref:d},b.createElement("div",{className:n()("googlesitekit-notice",`googlesitekit-notice--${l}`,t),role:"status"},!g&&b.createElement("div",{className:"googlesitekit-notice__icon"},b.createElement(Icon,{type:l})),b.createElement("div",{className:"googlesitekit-notice__content"},i&&b.createElement(Notice_Title,null,i),o&&b.createElement(u.A,null,o),c),m&&b.createElement("div",{className:"googlesitekit-notice__action"},e,p&&b.createElement(Notice_DismissButton,s||{}),h&&b.createElement(CTAButton,{label:a.label,onClick:a.onClick,inProgress:a.inProgress,disabled:a.disabled,href:a.href,external:a.external,hideExternalIndicator:a.hideExternalIndicator,tertiary:a.tertiary}))))})},44148(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(13606),c=i(82871),g=i(92449);var d=i(62659),u=i(4124),p=i(13047),h=i(38432),m=i(97015);function SourceLink({name:e="",href:t="",className:i="",external:o=!1}){const s=(0,d.A)(),r=(0,u.A)(),f=(0,a.useContext)(g.Ay),_=(0,a.useCallback)(()=>{f.slug&&s&&(0,p.sx)(`${s}_widget`,"click_source_link",f.slug)},[s,f]);return r?null:m.createElement("div",{className:n()("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"),`${e}`),{a:m.createElement(h.A,{key:"link",href:t,external:o,onClick:_})}))}SourceLink.propTypes={name:r().string,href:r().string,className:r().string,external:r().bool};const f=SourceLink},40194(e,t,i){i.d(t,{G:()=>v});var o=i(50539),n=i(82871),s=i(20697),r=i(69908),a=i(33213);function l(e,t,i){return e?{slug:"dashboard-sharing",target:".googlesitekit-header",floaterProps:{target:".googlesitekit-view-only-menu",styles:{arrow:{margin:8}}},title:(0,n.__)("Get instant access to insights, no setup","google-site-kit"),content:t?(0,n.__)("See what’s been shared with you here, or sign in with Google to configure services and sharing access","google-site-kit"):(0,n.__)("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,n.__)("Share insights with your team","google-site-kit"),content:(0,n.__)("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 c(){return{target:".googlesitekit-widget--searchConsolePopularKeywords",floaterProps:{target:".googlesitekit-widget--searchConsolePopularKeywords .googlesitekit-table__wrapper"},title:(0,n.__)("Track how your site is doing on Search","google-site-kit"),content:(0,n.__)("Know what’s driving growth and bringing your site more visitors","google-site-kit"),offset:0,spotlightPadding:0,placement:"top",isResponsive:!0}}function g({isViewOnly:e,canAuthenticate:t,isAnalyticsConnected:i,isActivateAnalyticsNotificationPresent:o,isKeyMetricsWidgetPresent:g,isAudienceSegmentationWidgetPresent:d}){if(!i){const i=[{target:".googlesitekit-widget--searchFunnelGA4",floaterProps:{target:".googlesitekit-widget--searchFunnelGA4 .googlesitekit-widget__body"},title:(0,n.__)("Track Search traffic trends, identify baselines","google-site-kit"),content:(0,n.__)("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",isResponsive:!0},c(),l(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,n.__)("Want to know what people do once they land on your site?","google-site-kit"),content:(0,n.__)("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:a.I.WITHOUT_ANALYTICS,isRepeatable:!0,contexts:[s.jU,s.Ax],gaEventCategory:e=>`${e}_dashboard-tour-sc`,preloadWidgetAreas:[r.AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY,r.AREA_MAIN_DASHBOARD_CONTENT_PRIMARY],steps:i}}return{slug:a.I.WITH_ANALYTICS,isRepeatable:!0,contexts:[s.jU,s.Ax],gaEventCategory:e=>`${e}_dashboard-tour-ga4`,preloadWidgetAreas:[r.AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY,r.AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY,r.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION,r.AREA_MAIN_DASHBOARD_CONTENT_PRIMARY],steps:[g&&{target:".googlesitekit-widget-area--mainDashboardKeyMetricsPrimary",floaterProps:{target:".googlesitekit-km-change-metrics-cta"},title:(0,n.__)("Your goals, measured and clear","google-site-kit"),content:(0,n.__)("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",isResponsive:!0},{target:".googlesitekit-widget--analyticsAllTrafficGA4",floaterProps:{target:".googlesitekit-widget--analyticsAllTraffic__user-count-chart"},title:(0,n.__)("Track traffic trends, identify baselines","google-site-kit"),content:(0,n.__)("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",isResponsive:!0},d&&{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,n.__)("Get to know your site visitors","google-site-kit"),content:(0,n.__)("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",isResponsive:!0},(!g||!d)&&c(),{target:".googlesitekit-widget--analyticsModulePopularPagesGA4",floaterProps:{target:".googlesitekit-table__head-item--pageviews .googlesitekit-table__head-item-title"},title:(0,n.__)("Discover your most popular and engaging content","google-site-kit"),content:(0,n.__)("Find out what your audience loves and double down on what resonates most","google-site-kit"),offset:25,spotlightPadding:0,placement:"top",isResponsive:!0},l(e,t,!0)].filter(Boolean)}}var d=i(29785),u=i(97345),p=i(88273),h=i(84730),m=i(8732),f=i(62659),_=i(4124),y=i(22942),k=i(99893);function v(){const e=(0,_.A)(),t=(0,f.A)(),i=(0,o.useSelect)(e=>e(u.oR).hasCapability(u.ej),[]),n=(0,o.useSelect)(e=>e(p.i).isModuleConnected(y.L1)&&e(u.oR).hasAccessToShareableModule(y.L1),[]),r=(0,o.useSelect)(e=>{if(t!==s.jU)return!1;const i=e(m.D).getQueuedNotifications(s.jU,h.He.DEFAULT);return"activate-analytics-notification"===i?.[0]?.id},[t]),a=(0,o.useSelect)(e=>n&&!!e(d.O4).isKeyMetricsSetupCompleted()&&!e(u.oR).isKeyMetricsWidgetHidden(),[n]),l=(0,o.useSelect)(e=>n&&!!e(k.K9).isAudienceSegmentationSetupCompleted()&&!e(u.oR).isAudienceSegmentationWidgetHidden(),[n]);return g({isViewOnly:e,canAuthenticate:i,isAnalyticsConnected:!!n,isActivateAnalyticsNotificationPresent:r,isKeyMetricsWidgetPresent:a,isAudienceSegmentationWidgetPresent:l})}},75971(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},58920(e,t,i){var o=i(50037),n=i(78325),s=i(81276),r=i(63696),a=i(82871),l=i(50539),c=i(72904),g=i(78307),d=i(7144),u=i(26464),p=i(75662),h=i(85172),m=i(11999),f=i(29785),_=i(97345),y=i(10740),k=i(62540);function FullScreenMetricSelectionApp(){const{setValues:e}=(0,l.useDispatch)(m.s),t=(0,l.useSelect)(e=>(e(_.oR).getUserInputSettings(),e(_.oR).hasFinishedResolution("getUserInputSettings"))),i=(0,l.useSelect)(e=>{const t=e(_.oR).getKeyMetrics();if(!Array.isArray(t))return[];const{isKeyMetricAvailable:i}=e(_.oR);return t.filter(i)}),o=(0,l.useSelect)(e=>e(f.O4).isKeyMetricsSetupCompleted()),n=(0,s.A)(o),v=t&&!1===o||!n&&o;return(0,r.useEffect)(()=>{e(d.Is,{[d.Y0]:i})},[i,e]),(0,k.jsxs)(r.Fragment,{children:[(0,k.jsx)(c.A,{children:(0,k.jsx)(g.A,{})}),(0,k.jsx)("div",{className:"googlesitekit-metric-selection",children:(0,k.jsx)("div",{className:"googlesitekit-module-page",children:v&&(0,k.jsx)(y.xA,{children:(0,k.jsxs)(p.A,{rounded:!0,children:[(0,k.jsx)(y.xA,{className:"googlesitekit-user-input__header",children:(0,k.jsxs)(y.fI,{children:[(0,k.jsx)(y.fh,{lgSize:12,mdSize:8,smSize:6,children:(0,k.jsx)(h.A,{className:"googlesitekit-heading-3 googlesitekit-user-input__heading",title:(0,a.__)("Select up to 8 metrics that are most important for your business goals","google-site-kit"),fullWidth:!0})}),(0,k.jsx)(y.fh,{lgSize:12,mdSize:8,smSize:6,children:(0,k.jsx)("span",{className:"googlesitekit-user-input__subtitle",children:(0,a.__)("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,k.jsx)(y.xA,{className:"googlesitekit-user-input__content",children:(0,k.jsx)(y.fI,{children:(0,k.jsx)(y.fh,{lgSize:12,mdSize:8,smSize:6,children:(0,k.jsx)(u.A,{savedViewableMetrics:i,showHeader:!1,isFullScreen:!0})})})})]})})})})]})}var v=i(63081),b=i(20697),A=i(97015);(0,o.A)(()=>{const e=document.getElementById("js-googlesitekit-metric-selection");e&&(0,n.render)(A.createElement(v.A,{viewContext:b.mo},A.createElement(FullScreenMetricSelectionApp,null)),e)})},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:()=>a});var o=i(99123),n=i(55620);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,n._)("undefined"==typeof document?[i,r]:s,e,t);function c(){return l(s)}return(0,o.A)(window,"resize",c),(0,o.A)(window,"orientationchange",c),a}function a(e={}){return r(e)[0]}},14777(e,t,i){i.d(t,{fh:()=>a,xA:()=>u,fI:()=>g});var o=i(68102),n=i(4452),s=i.n(n),r=i(97015);const a=({className:e="",alignTop:t=!1,alignMiddle:i=!1,alignBottom:n=!1,alignRight:a=!1,alignLeft:l=!1,smAlignRight:c=!1,mdAlignRight:g=!1,lgAlignRight:d=!1,smSize:u=0,smStart:p=0,smOrder:h=0,mdSize:m=0,mdStart:f=0,mdOrder:_=0,lgSize:y=0,lgStart:k=0,lgOrder:v=0,size:b=0,children:A,...I})=>r.createElement("div",(0,o.A)({},I,{className:s()(e,"mdc-layout-grid__cell",{"mdc-layout-grid__cell--align-top":t,"mdc-layout-grid__cell--align-middle":i,"mdc-layout-grid__cell--align-bottom":n,"mdc-layout-grid__cell--align-right":a,"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-${k}-desktop`]:12>=k&&k>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-${_}-tablet`]:8>=_&&_>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})}),A);var l=i(63696),c=i(97015);const g=(0,l.forwardRef)(({className:e="",children:t,...i},n)=>c.createElement("div",(0,o.A)({ref:n,className:s()("mdc-layout-grid__inner",e)},i),t));var d=i(97015);const u=(0,l.forwardRef)(({alignLeft:e=!1,fill:t=!1,className:i="",children:n,collapsed:r=!1,...a},l)=>d.createElement("div",(0,o.A)({className:s()("mdc-layout-grid",i,{"mdc-layout-grid--align-left":e,"mdc-layout-grid--collapsed":r,"mdc-layout-grid--fill":t})},a,{ref:l}),n))},99893(e,t,i){i.d(t,{CV:()=>M,Cu:()=>b,K9:()=>o,Kr:()=>h,Lf:()=>u,Oh:()=>r,PW:()=>T,Rx:()=>D,S9:()=>m,TQ:()=>g,Vt:()=>C,Wl:()=>k,ZC:()=>n,ZY:()=>a,_p:()=>E,ag:()=>p,aj:()=>d,bz:()=>w,dC:()=>S,dq:()=>j,fB:()=>x,fV:()=>N,iB:()=>c,kc:()=>l,mo:()=>_,nc:()=>I,pL:()=>A,rm:()=>v,to:()=>s,wo:()=>f,yn:()=>y});const o="modules/analytics-4",n="account_create",s="property_create",r="webdatastream_create",a="analyticsSetup",l=10,c="https://www.googleapis.com/auth/tagmanager.readonly",g="enhanced-measurement-form",d="enhanced-measurement-enabled",u="enhanced-measurement-should-dismiss-activation-banner",p="analyticsAccountCreate",h="analyticsCustomDimensionsCreate",m="https://www.googleapis.com/auth/analytics.edit",f="dashboardAllTrafficWidgetDimensionName",_="dashboardAllTrafficWidgetDimensionColor",y="dashboardAllTrafficWidgetDimensionValue",k="dashboardAllTrafficWidgetActiveRowIndex",v="dashboardAllTrafficWidgetLoaded",b={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"},googlesitekit_event_provider:{parameterName:"googlesitekit_event_provider",displayName:"WordPress Event Provider",description:"Created by Site Kit: Plugin source that triggered a conversion event",scope:"EVENT"},googlesitekit_form_id:{parameterName:"googlesitekit_form_id",displayName:"WordPress Form ID",description:"Created by Site Kit: ID of the form that triggered a lead generation event",scope:"EVENT"}},A=Object.keys(b),I={ADD_TO_CART:"add_to_cart",PURCHASE:"purchase",SUBMIT_LEAD_FORM:"submit_lead_form",GENERATE_LEAD:"generate_lead",CONTACT:"contact"},N=[I.CONTACT,I.GENERATE_LEAD,I.SUBMIT_LEAD_FORM],S=[I.PURCHASE,I.ADD_TO_CART],x={"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"}}}}]}}]}}}}]}},T="audiencePermissionsSetup",M="audienceTileCustomDimensionCreate",w="audience-selection-panel-expirable-new-badge-",j="audience",C="customDimension",E="property",D=[j,C,E]},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(37325),c=i(97513),g=i(71189),d=i(13047),u=i(41671),p=i(62540);function Description({className:e,description:t,learnMoreLink:i,additionalDescription:o,children:s}){return(0,p.jsxs)("div",{className:n()("googlesitekit-banner__description",e),children:[(0,a.isValidElement)(t)?t:"string"==typeof t?(0,p.jsx)("span",{dangerouslySetInnerHTML:(0,d.p9)(t,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}):t," ",i?.href&&(0,p.jsx)(u.A,{...i}),o&&(0,p.jsx)("div",{className:"googlesitekit-banner__additional-description",children:o}),s]})}Description.propTypes={className:r().string,description:r().oneOfType([r().string,r().node]),learnMoreLink:r().shape(u.A.propTypes),additionalDescription:r().oneOfType([r().string,r().node]),children:r().node};var h=i(61983);function Footer({className:e,children:t}){return(0,p.jsx)("div",{className:n()("googlesitekit-banner__footer",e),children:t})}function HelpText({className:e,children:t}){return(0,p.jsx)("p",{className:n()("googlesitekit-banner__help-text",e),children:t})}function Title({className:e,children:t}){return(0,p.jsx)("p",{className:n()("googlesitekit-banner__title",e),children:t})}function TitleIcon({className:e,children:t}){return(0,p.jsx)("div",{className:n()("googlesitekit-banner__title-icon",e),children:t})}Footer.propTypes={className:r().string,children:r().node},HelpText.propTypes={className:r().string,children:r().node},Title.propTypes={className:r().string,children:r().node},TitleIcon.propTypes={className:r().string,children:r().node};const m=(0,a.forwardRef)(({className:e,titleIcon:t,title:i,description:o,additionalDescription:s,errorText:r,helpText:a,learnMoreLink:d,dismissButton:u,ctaButton:m,svg:f,footer:_},y)=>{const k=(0,c.dv)(),v=k===c.mp||k===c.Lg;let b=null;v&&f?.mobile?b=f.mobile:!v&&f?.desktop&&(b=f.desktop);const A=f?.verticalPosition?f.verticalPosition:"center";return(0,p.jsxs)("div",{ref:y,className:n()("googlesitekit-banner",e),children:[(0,p.jsxs)("div",{className:"googlesitekit-banner__content",children:[t&&(0,p.jsx)(TitleIcon,{children:t}),(0,p.jsx)(Title,{children:i}),(0,p.jsx)(Description,{description:o,learnMoreLink:d,additionalDescription:s}),a&&(0,p.jsx)(HelpText,{children:a}),r&&(0,p.jsx)(l.A,{type:"error",description:r}),(0,p.jsxs)("div",{className:"googlesitekit-notice__action",children:[m&&(0,p.jsx)(g.A,{...m}),u?.onClick&&(0,p.jsx)(h.A,{...u})]})]}),b&&(0,p.jsx)("div",{className:n()("googlesitekit-banner__svg-wrapper",{[`googlesitekit-banner__svg-wrapper--${A}`]:A}),style:{backgroundImage:`url(${b})`}}),_&&(0,p.jsx)(Footer,{children:_})]})});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(u.A.propTypes),dismissButton:r().shape(h.A.propTypes),ctaButton:r().shape(g.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(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(62540);function ChangeArrow({direction:e,invertColor:t,width:i,height:o}){return(0,a.jsx)("svg",{className:n()("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:r().string,invertColor:r().bool,width:r().number,height:r().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(3749),g=i(13047),d=i(13137),u=i(37325),p=i(62540);function ErrorNotice({className:e,error:t,hasButton:i=!1,storeName:o,message:n=t.message,noPrefix:h=!1,skipRetryMessage:m,hideIcon:f=!1}){const _=(0,l.useDispatch)(),y=(0,l.useSelect)(e=>o?e(o).getSelectorDataForError(t):null),k=(0,s.useCallback)(()=>{_(y.storeName).invalidateResolution(y.name,y.args)},[_,y]);if(!n||(0,d.G)(t))return null;const v=i&&(0,d.vl)(t,y);let b=n;i||m||(b=(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"),b)),h||(b=(0,r.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */ (0,r.__)("Error: %s","google-site-kit"),b));const A=t?.data?.reconnectURL;A&&(0,a.m)(A)&&(b=(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, redo the plugin setup.',"google-site-kit"),b,A));return(0,p.jsx)(u.A,{className:e,type:c.L.ERROR,description:(0,p.jsx)("span",{dangerouslySetInnerHTML:(0,g.p9)(b,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:v?{label:(0,r.__)("Retry","google-site-kit"),onClick:k}:void 0,hideIcon:f})}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}},72904(e,t,i){i.d(t,{A:()=>$e});var o=i(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(41814),l=i(63696),c=i(82871),g=i(50539),d=i(29785),u=i(97345),p=i(84730),h=i(7551),m=i(49993),f=i(13047),_=i(30805),y=i(62659);var k,v=i(4124),b=i(10740),A=i(45257),I=i(39525),N=i(15844),S=i(31589),x=i(30521),T=i(20697),M=i(7972);function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),k||(k=l.createElement("path",{d:"M10.953 8.464h2.12q.33 0 .573-.243a.79.79 0 0 0 .243-.574.78.78 0 0 0-.243-.573.78.78 0 0 0-.574-.244h-2.12a.79.79 0 0 0-.573.244.78.78 0 0 0-.243.573q0 .33.243.574a.79.79 0 0 0 .574.243m0 4.706h2.12q.33 0 .573-.244a.78.78 0 0 0 .243-.573.79.79 0 0 0-.243-.574.78.78 0 0 0-.574-.243h-2.12q-.33 0-.573.243a.79.79 0 0 0-.243.574q0 .33.243.573a.79.79 0 0 0 .574.244M6.79 9.32h1.712q.33 0 .573-.244a.78.78 0 0 0 .244-.573V6.79a.78.78 0 0 0-.244-.573.78.78 0 0 0-.573-.243H6.79a.78.78 0 0 0-.573.243.78.78 0 0 0-.243.573v1.712q0 .33.243.573a.78.78 0 0 0 .573.244Zm0 4.704h1.712q.33 0 .573-.242a.78.78 0 0 0 .244-.573v-1.712a.78.78 0 0 0-.244-.573.78.78 0 0 0-.573-.244H6.79a.78.78 0 0 0-.573.244.78.78 0 0 0-.243.573v1.712q0 .33.243.573a.78.78 0 0 0 .573.242M4.633 17q-.68 0-1.157-.476A1.58 1.58 0 0 1 3 15.367V4.633q0-.68.476-1.157A1.58 1.58 0 0 1 4.633 3h10.734q.68 0 1.157.476.476.477.476 1.157v10.734q0 .68-.476 1.157a1.58 1.58 0 0 1-1.157.476zm0-1.633h10.734V4.633H4.633z"})));var C,E,D,R;function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),C||(C=l.createElement("rect",{width:5.833,height:5.833,x:3,y:3,rx:1.167})),E||(E=l.createElement("rect",{width:5.833,height:5.833,x:11.167,y:3,rx:1.167})),D||(D=l.createElement("rect",{width:5.833,height:5.833,x:3,y:11.167,rx:1.167})),R||(R=l.createElement("rect",{width:5.833,height:5.833,x:11.167,y:11.167,rx:1.167})));var P;function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",z({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),P||(P=l.createElement("path",{d:"M2.313 14.375a.84.84 0 0 1-.25-.615q0-.364.25-.614l3.75-3.75q.75-.75 1.803-.75 1.051 0 1.78.75l.958.958a.78.78 0 0 0 .574.229q.344 0 .572-.229l3.604-3.604h-1.228a.84.84 0 0 1-.615-.26.84.84 0 0 1-.26-.615.84.84 0 0 1 .26-.615.84.84 0 0 1 .615-.26h3.333q.354 0 .614.26a.84.84 0 0 1 .26.615v3.333a.84.84 0 0 1-.26.615.84.84 0 0 1-.614.26.84.84 0 0 1-.614-.26.84.84 0 0 1-.261-.615V7.979l-3.625 3.604q-.75.75-1.803.75-1.051 0-1.78-.75l-.98-.979a.75.75 0 0 0-.552-.229.75.75 0 0 0-.551.229L3.52 14.375a.82.82 0 0 1-.603.25.82.82 0 0 1-.606-.25Z"})));var G,H,U;function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",F({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),G||(G=l.createElement("path",{d:"M10 3c1.023 0 1.994.22 2.87.615l-.13.135-.053.322-.146.877-.71.758a4.667 4.667 0 1 0 2.316 2.156l.677-.676.963-.19.368-.333A7 7 0 1 1 10 3"})),H||(H=l.createElement("path",{d:"M12 10a2 2 0 1 1-4 0 2 2 0 0 1 4 0"})),U||(U=l.createElement("path",{d:"m15.76 3.856 2.042-.07-2.5 2.243-.992.199-4.563 4.563-.642-.642 4.412-4.715.198-1.19L15.895 2z"})));var W;function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",V({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),W||(W=l.createElement("path",{d:"M8.668 12.938q.5.48 1.323.489.822.011 1.218-.594l3.417-5.125q.208-.312-.063-.583-.27-.27-.583-.063l-5.167 3.396q-.604.375-.624 1.177-.02.803.479 1.303m-4.334 3.729q-.48 0-.895-.209a1.47 1.47 0 0 1-.646-.625 8.5 8.5 0 0 1-.834-1.989 8.2 8.2 0 0 1-.291-2.198q0-1.709.656-3.219a8.5 8.5 0 0 1 1.792-2.646A8.5 8.5 0 0 1 6.772 3.99a8.1 8.1 0 0 1 3.229-.657q.938 0 1.812.188a7.3 7.3 0 0 1 1.688.583.76.76 0 0 1 .458.604q.063.417-.25.771a.82.82 0 0 1-.489.261.95.95 0 0 1-.573-.073 6.4 6.4 0 0 0-2.646-.584q-2.73 0-4.656 1.927-1.927 1.927-1.927 4.636 0 .854.25 1.698a7.4 7.4 0 0 0 .666 1.573h11.334a6 6 0 0 0 .687-1.615 6.8 6.8 0 0 0 .229-1.74q0-.645-.156-1.322a5.4 5.4 0 0 0-.469-1.282.82.82 0 0 1-.073-.583.87.87 0 0 1 .303-.479q.354-.27.75-.188.395.084.583.48a9.5 9.5 0 0 1 .594 1.604 6.6 6.6 0 0 1 .218 1.708 8.5 8.5 0 0 1-.26 2.281 8 8 0 0 1-.844 2.052 1.45 1.45 0 0 1-.667.625q-.437.21-.895.209z"})));var q;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",Q({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),q||(q=l.createElement("path",{d:"M4.94 17a1.4 1.4 0 0 1-1.02-.418 1.4 1.4 0 0 1-.418-1.022V8.226q0-.604.418-1.022a1.39 1.39 0 0 1 1.02-.418q.605 0 1.022.418.418.419.418 1.022v7.334q0 .605-.418 1.022A1.4 1.4 0 0 1 4.94 17m5.077-.002a1.4 1.4 0 0 1-1.022-.417 1.4 1.4 0 0 1-.418-1.022l-.016-11.12q0-.603.418-1.021A1.4 1.4 0 0 1 10.001 3q.604 0 1.022.418.417.418.418 1.02l.015 11.12q0 .605-.418 1.023a1.4 1.4 0 0 1-1.021.418Zm5.045.002a1.4 1.4 0 0 1-1.022-.418 1.4 1.4 0 0 1-.418-1.022v-3.62q0-.605.418-1.022a1.4 1.4 0 0 1 1.022-.418q.603 0 1.02.418t.418 1.021v3.621q0 .605-.418 1.022a1.39 1.39 0 0 1-1.02.418"})));var $=i(97513),K=i(11883);var J=i(4169),ee=i(59352);const te={[h.Oo]:{[T.SH]:ee.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,[T.OT]:ee.CONTEXT_MAIN_DASHBOARD_TRAFFIC,[T.x2]:ee.CONTEXT_MAIN_DASHBOARD_SITE_GOALS,[T.en]:ee.CONTEXT_MAIN_DASHBOARD_CONTENT,[T.Ej]:ee.CONTEXT_MAIN_DASHBOARD_SPEED,[T.Gw]:ee.CONTEXT_MAIN_DASHBOARD_MONETIZATION},[h.oE]:{[T.OT]:ee.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,[T.en]:ee.CONTEXT_ENTITY_DASHBOARD_CONTENT,[T.Ej]:ee.CONTEXT_ENTITY_DASHBOARD_SPEED,[T.Gw]:ee.CONTEXT_ENTITY_DASHBOARD_MONETIZATION}};var ie=i(62540);function Navigation(){const e=(0,h.Ay)(),t=(0,l.useRef)(),i=(0,y.A)(),o=function(){const e=(0,h.Ay)(),t=(0,v.A)();return(0,g.useSelect)(i=>{const o=t?i(u.oR).getViewableModules():null,n=i(u.oR).isKeyMetricsWidgetHidden(),s={modules:o||void 0};return Object.keys(te[e]).reduce((t,o)=>(o===T.SH&&n||i(J.aO).isWidgetContextActive(te[e][o],s)&&t.push(o),t),[])})}(),{calculateScrollPosition:s,defaultChipID:r,findClosestSection:a,isValidChipID:d,scrollToChip:p,updateURLHash:m}=function({visibleSections:e}){const t=(0,$.dv)(),i=(0,v.A)(),o=(0,l.useCallback)(()=>e.includes(T.SH)?T.SH:i?e[0]||"":T.OT,[i,e])(),n=(0,l.useCallback)(t=>e.includes(t),[e]),s=(0,l.useCallback)(e=>{globalThis.history.replaceState({},"",`#${e}`)},[]),r=(0,l.useCallback)(e=>e!==o?(0,K.YJ)(`#${e}`,t):0,[t,o]),a=(0,l.useCallback)(e=>{globalThis.scrollTo({top:r(e,t,o),behavior:"smooth"})},[t,r,o]),c=(0,l.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{const t=e.closest(".mdc-chip"),o=t?.dataset?.contextId;m(o),b(o),p(o),(0,f.sx)(`${i}_navigation`,"tab_select",o),setTimeout(()=>{D(M.Fc,o)},50)},[p,D,m,i]),O=(0,l.useCallback)(()=>{if(!t?.current)return;const{top:e}=t?.current?.getBoundingClientRect();if(0===globalThis.scrollY)w(!1);else{const t=document.querySelector(".googlesitekit-header")?.getBoundingClientRect?.()?.bottom;w(e===t)}},[]),P=(0,l.useCallback)(e=>{function o(e){D(M.Fc,void 0),E(e),b(void 0)}const n=a(t);if(k)k===n&&o(n);else{const{hash:t}=globalThis.location;n!==t?.substring(1)&&(e&&(0,f.sx)(`${i}_navigation`,"tab_scroll",n),m(n),o(n))}},[a,k,D,m,i]);(0,N.A)(()=>{if(!_)return E(r),void setTimeout(()=>m(r));const e=d(_)?_:r;E(e),D(M.Fc,e),setTimeout(()=>{const t=s(e);globalThis.scrollY!==t?p(e):D(M.Fc,void 0)},50)});const z=(0,l.useCallback)(e=>{O(),P(e)},[P,O]),G=(0,x.A)(z,150);(0,S.A)("scroll",G);const H=20,U={[T.SH]:{label:(0,c.__)("Key metrics","google-site-kit"),icon:(0,ie.jsx)(L,{width:H,height:H})},[T.OT]:{label:(0,c.__)("Traffic","google-site-kit"),icon:(0,ie.jsx)(X,{width:H,height:H})},[T.x2]:{label:(0,c.__)("Site goals","google-site-kit"),icon:(0,ie.jsx)(Y,{width:H,height:H})},[T.en]:{label:(0,c.__)("Content","google-site-kit"),icon:(0,ie.jsx)(j,{width:H,height:H})},[T.Ej]:{label:(0,c.__)("Speed","google-site-kit"),icon:(0,ie.jsx)(Z,{width:H,height:H})},[T.Gw]:{label:(0,c.__)("Monetization","google-site-kit"),icon:(0,ie.jsx)(B,{width:H,height:H})}};return(0,ie.jsx)("nav",{className:n()("mdc-chip-set","googlesitekit-navigation",`googlesitekit-navigation--${e}`,{"googlesitekit-navigation--is-sticky":A}),ref:t,children:o.map(e=>(0,ie.jsx)(I.Chip,{id:e,label:U[e].label,leadingIcon:U[e].icon,onClick:R,selected:C===e,"data-context-id":e},e))})}function DashboardNavigation(){const e=(0,v.A)(),t=(0,g.useSelect)(t=>e?t(u.oR).getViewableModules():null),i=(0,g.useSelect)(e=>e(u.oR).getKeyMetrics());return(0,ie.jsx)(A.A,{loading:void 0===t||void 0===i,width:"100%",smallHeight:"59px",height:"71px",children:(0,ie.jsx)(Navigation,{})})}var oe,ne,se=i(49383),re=i(70301),ae=i(48276);function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",le({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),oe||(oe=l.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),ne||(ne=l.createElement("path",{fill:"currentColor",d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"})));var ge=i(38432),de=i(83880);const ue=function EntityHeader(){const e=(0,y.A)(),t=(0,h.Ay)(),i=(0,g.useSelect)(e=>e(d.O4).getCurrentEntityTitle()),o=(0,g.useSelect)(e=>e(d.O4).getCurrentEntityURL()),n=(0,l.useRef)(),[s,r]=(0,l.useState)(o),a=(0,l.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,ae.r0)(o,i))},[o]),u=(0,x.A)(a,150);(0,S.A)("resize",u);const{navigateTo:p}=(0,g.useDispatch)(re.M),m=(0,g.useSelect)(e=>e(d.O4).getAdminURL("googlesitekit-dashboard")),_=(0,l.useCallback)(()=>{(0,f.sx)(`${e}_navigation`,"return_to_dashboard"),p(m)},[m,p,e]);return h.oE!==t||null===o||null===i?null:(0,ie.jsxs)("div",{className:"googlesitekit-entity-header",children:[(0,ie.jsx)("div",{className:"googlesitekit-entity-header__back",children:(0,ie.jsx)(se.Button,{icon:(0,ie.jsx)(ce,{width:24,height:24}),"aria-label":(0,c.__)("Back to dashboard","google-site-kit"),onClick:_,text:!0,tertiary:!0,children:(0,c.__)("Back to dashboard","google-site-kit")})}),(0,ie.jsxs)("div",{ref:n,className:"googlesitekit-entity-header__details",children:[(0,ie.jsx)(de.A,{children:i}),(0,ie.jsx)(ge.A,{href:o,"aria-label":o,secondary:!0,external:!0,children:s})]})]})};var pe=i(44436),he=i(8732),me=i(89766);function CoreSiteBannerNotification({id:e,ctaURL:t,ctaTarget:i,...o}){const[n,s]=(0,l.useState)(!1),{dismissNotification:r,acceptNotification:a}=(0,g.useDispatch)(d.O4),{dismissNotification:c}=(0,g.useDispatch)(he.D),u=(0,l.useCallback)(async o=>{t&&o.preventDefault(),s(!0);const{error:n}=await a(e);n||await c(e,{expiresInSeconds:f.Jg}),s(!1),!n&&t&&("_blank"!==i?window.location.assign(t):window.open(t,"_blank"))},[e,a,c,t,i]),p=(0,l.useCallback)(async()=>{await r(e)},[e,r]);return(0,ie.jsx)(me.A,{onCTAClick:u,onDismissClick:p,ctaInProgress:n,...o,id:e,ctaURL:t,ctaTarget:i})}CoreSiteBannerNotification.propTypes={content:r().string,ctaLabel:r().string,ctaTarget:r().string,ctaURL:r().string,dismissLabel:r().string,dismissible:r().bool,gaTrackingEventArgs:r().object,id:r().string.isRequired,learnMoreLabel:r().string,learnMoreURL:r().string,title:r().string.isRequired},CoreSiteBannerNotification.defaultProps={content:"",ctaLabel:"",ctaTarget:"",ctaURL:"",dismissLabel:(0,c.__)("OK, Got it!","google-site-kit"),dismissible:!0,learnMoreLabel:"",learnMoreURL:""};const fe=CoreSiteBannerNotification;const _e=function CoreSiteBannerNotifications(){const e=(0,y.A)(),[t,i]=(0,l.useState)(!1),[o,n]=(0,l.useState)(!1),s=(0,l.useRef)(Date.now()),r=(0,g.useSelect)(e=>e(d.O4).isUsingProxy()&&!1===e(u.oR).areSurveysOnCooldown()?e(u.oR).getCurrentSurvey():null),[a,c]=(0,l.useState)([]),{registerNotification:h}=(0,g.useDispatch)(he.D),m=(0,g.useSelect)(e=>e(d.O4).getNotifications());return(0,l.useEffect)(()=>{const e=setTimeout(()=>{o||i(!0)},5e3);return()=>{clearTimeout(e)}},[o]),(0,l.useEffect)(()=>{Math.floor((Date.now()-s.current)/1e3)<5&&r&&n(!0)},[s,r,n]),(0,l.useEffect)(()=>{t&&!o&&m?.forEach(t=>{if(a.includes(t.id))return;const i={category:`${e}_remote-site-notification`,label:t.id};h(t.id,{Component:({Notification:e})=>(0,ie.jsx)(e,{gaTrackingEventArgs:i,children:(0,ie.jsx)(fe,{...t,gaTrackingEventArgs:i})}),priority:t.priority,areaSlug:p.bI.HEADER,isDismissible:t.dismissible}),c(e=>(e.push(t.id),e))})},[e,o,m,h,a,t]),null};var ye=i(67510),ke=i(67438);const ve="internal-server-error";function InternalServerError(){const e=(0,$.dv)(),t=(0,g.useSelect)(e=>e(d.O4).getInternalServerError());return(0,l.useEffect)(()=>{t&&globalThis.scrollTo({top:(0,K.YJ)(`#${ve}`,e),behavior:"smooth"})},[t,e]),t?(0,ie.jsx)(ke.A,{id:ve,children:(0,ie.jsx)(ye.A,{notificationID:ve,type:ye.Q.ERROR,title:t.title,description:t.description})}):null}function LegacyNotifications(){const e=(0,v.A)(),t=(0,h.Ay)(),i=(0,g.useSelect)(e=>e(u.oR).isAuthenticated());return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsx)(InternalServerError,{}),!e&&t===h.Oo&&i&&(0,ie.jsx)(_e,{})]})}var be=i(37834),Ae=i(21795),Ie=i(53328),Ne=i(76729);function Divider({className:e}){return(0,ie.jsx)("li",{className:n()("mdc-list-divider",e),role:"separator"})}function MenuItem({id:e,className:t,role:i,isInteractive:o=!0,onClick:s,icon:r,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 f=g||(0,ie.jsxs)("div",{className:d,children:[r&&(0,ie.jsx)("div",{className:u,children:r}),a&&(0,ie.jsx)("span",{className:p,children:a}),l&&(0,ie.jsx)("span",{className:h,children:l}),c&&(0,ie.jsx)("span",{className:m,children:c})]}),_=void 0===i&&o?"menuitem":i,y=n()(t,{"mdc-list-item":o}),k="function"==typeof s;return(0,ie.jsx)("li",{id:e,className:y||void 0,role:_,children:k?(0,ie.jsx)("button",{type:"button",className:"googlesitekit-header-menu__item-button",onClick:s,children:f}):f})}function MenuSection({id:e,className:t,role:i,children:o}){return(0,ie.jsx)("li",{id:e,className:t,role:i,children:o})}function MenuWithHeading({heading:e,className:t,children:i}){return(0,ie.jsxs)(MenuSection,{className:t,children:[e,i]})}Divider.propTypes={className:r().string},MenuItem.propTypes={id:r().string,className:r().string,role:r().string,isInteractive:r().bool,onClick:r().func,icon:r().node,label:r().node,description:r().node,trailing:r().node,children:r().node,itemClassName:r().string,iconClassName:r().string,labelClassName:r().string,descriptionClassName:r().string,trailingClassName:r().string},MenuSection.propTypes={id:r().string,className:r().string,role:r().string,children:r().node},MenuWithHeading.propTypes={heading:r().node,className:r().string,children:r().node};var Se,xe,Te=i(59865),Me=i(94656),we=i(68832),je=i(12896),Ce=i(37467),Ee=i(99893);function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",De({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Se||(Se=l.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"})),xe||(xe=l.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 Oe,Le,Pe,ze,Be,Ge=i(46467);function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",He({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Oe||(Oe=l.createElement("rect",{width:18,height:13,x:3,y:4,stroke:"currentColor",strokeWidth:1.5,rx:2})),Le||(Le=l.createElement("path",{fill:"currentColor",d:"M9 17h6v3H9z"})),Pe||(Pe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M10 9h7M10 12h7"})),ze||(ze=l.createElement("circle",{cx:7,cy:9,r:1,fill:"currentColor"})),Be||(Be=l.createElement("circle",{cx:7,cy:12,r:1,fill:"currentColor"})));function Details(){const e=(0,g.useSelect)(e=>e(u.oR).getPicture()),t=(0,g.useSelect)(e=>e(u.oR).getFullName()),i=(0,g.useSelect)(e=>e(u.oR).getEmail());return(0,ie.jsxs)("div",{className:"googlesitekit-user-menu__details","aria-label":(0,c.__)("Google account","google-site-kit"),children:[!!e&&(0,ie.jsx)("img",{className:"googlesitekit-user-menu__details-avatar",src:e,alt:""}),(0,ie.jsxs)("div",{className:"googlesitekit-user-menu__details-info",children:[(0,ie.jsx)("p",{className:"googlesitekit-user-menu__details-info__name",children:t}),(0,ie.jsx)("p",{className:"googlesitekit-user-menu__details-info__email","aria-label":(0,c.__)("Email","google-site-kit"),children:i})]})]})}function UserMenu(){const e=(0,_.i)("proactiveUserEngagement"),t=(0,_.i)("setupFlowRefresh"),[i]=(0,Ce.A)("showProgress"),o=t&&"true"===i,n=(0,g.useSelect)(e=>e(d.O4).getProxyPermissionsURL()),s=(0,g.useSelect)(e=>e(u.oR).getEmail()),r=(0,g.useSelect)(e=>e(u.oR).getPicture()),a=(0,g.useSelect)(e=>e(u.oR).getFullName()),p=(0,g.useSelect)(e=>e(d.O4).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})),[h]=(0,we.A)(Ee.CV,"isAutoCreatingCustomDimensionsForAudience"),{isTooltipVisible:k=!1,className:v}=(0,g.useSelect)(e=>e(M.nX).getValue("admin-screen-tooltip")||{isTooltipVisible:!1}),[b,A]=(0,l.useState)(!1),[I,N]=(0,l.useState)(!1),S=(0,l.useRef)(),x=(0,l.useRef)(),T=(0,y.A)(),{navigateTo:w}=(0,g.useDispatch)(re.M),j=e&&!o;(0,Ae.A)(S,()=>N(!1)),(0,je.l)([Ie._f,Ie.wn],S,()=>{N(!1),x.current?.focus()});const C=(0,l.useCallback)(()=>{A(!1),N(!1)},[A,N]),{setValue:E}=(0,g.useDispatch)(M.nX),D=(0,l.useCallback)(()=>{I||((0,f.sx)(`${T}_headerbar`,"open_usermenu"),k&&v?.includes("googlesitekit-tour-tooltip--user-menu")&&E("admin-screen-tooltip",void 0)),N(!I)},[I,T,E,k,v]),R=(0,l.useCallback)(()=>{A(!b),N(!1)},[b]),O=(0,l.useCallback)(async(e,t)=>{const{detail:{item:i}}=t;switch(i?.id){case"manage-sites":n&&(await(0,f.sx)(`${T}_headerbar_usermenu`,"manage_sites"),w(n));break;case"disconnect":R();break;case"manage-email-reports":E(Ne.Q,!0);break;default:D()}},[n,D,R,w,E,T]),L=(0,l.useCallback)(async()=>{A(!1),await(0,m.IL)(),await(0,f.sx)(`${T}_headerbar_usermenu`,"disconnect_user"),w(p)},[p,w,T]);if(!s)return null;const P=function(e,t){return e&&t?(0,c.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,c.__)("Google Account for %1$s (Email: %2$s)","google-site-kit"),e,t):e&&!t?(0,c.sprintf)(/* translators: Account info text. 1: User's (full) name. */ /* translators: Account info text. 1: User's (full) name. */ (0,c.__)("Google Account for %1$s","google-site-kit"),e):!e&&t?(0,c.sprintf)(/* translators: Account info text. 1: User's email address. */ /* translators: Account info text. 1: User's email address. */ (0,c.__)("Google Account (Email: %1$s)","google-site-kit"),t):void 0}(a,s);return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsxs)("div",{ref:S,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,ie.jsx)(se.Button,{disabled:h,ref:x,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:D,icon:!!r&&(0,ie.jsx)("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true",children:(0,ie.jsx)("img",{className:"mdc-button__icon--image",src:r,alt:(0,c.__)("User Avatar","google-site-kit")})}),"aria-haspopup":"menu","aria-expanded":I,"aria-controls":"user-menu","aria-label":h?void 0:(0,c.__)("Account","google-site-kit"),tooltipEnterDelayInMS:500,customizedTooltip:h?null:(0,ie.jsxs)("span",{"aria-label":P,children:[(0,ie.jsx)("strong",{children:(0,c.__)("Google Account","google-site-kit")}),(0,ie.jsx)("br",{}),(0,ie.jsx)("br",{}),a,a&&(0,ie.jsx)("br",{}),s]}),text:!0,tooltip:!0}),(0,ie.jsxs)(se.Menu,{className:"googlesitekit-user-menu",menuOpen:I,onSelected:O,id:"user-menu",children:[(0,ie.jsx)(MenuSection,{children:(0,ie.jsx)(Details,{})}),j&&(0,ie.jsx)(MenuItem,{id:"manage-email-reports",icon:(0,ie.jsx)(Ge.A,{width:"24"}),label:(0,c.__)("Manage email reports","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"}),!!n&&(0,ie.jsx)(MenuItem,{id:"manage-sites",icon:(0,ie.jsx)(Ue,{width:"24"}),label:(0,c.__)("Manage Sites","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"}),(0,ie.jsx)(MenuItem,{id:"disconnect",icon:(0,ie.jsx)(Re,{width:"24"}),label:(0,c.__)("Disconnect","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"})]})]}),(0,ie.jsx)(Me.A,{children:(0,ie.jsx)(Te.A,{dialogActive:b,handleConfirm:L,handleCancel:C,onClose:C,title:(0,c.__)("Disconnect","google-site-kit"),subtitle:(0,c.__)("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,c.__)("Disconnect","google-site-kit"),danger:!0,small:!0})})]})}var Fe,Ye=i(33052),We=i(75971);function ManageEmailReports(){const{setValue:e}=(0,We.wA)(M.nX);return(0,We.WM)(e=>{const t=e(u.oR).getViewableModules();if(void 0!==t)return t.includes("analytics-4")||t.includes("search-console")})?(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsx)(Divider,{}),(0,ie.jsx)(MenuItem,{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__email-reporting",isInteractive:!1,children:(0,ie.jsx)(se.Button,{className:"googlesitekit-view-only-menu__email-reporting-item",onClick:()=>e(Ne.Q,!0),icon:(0,ie.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--icon",children:(0,ie.jsx)(Ge.A,{width:"24"})}),tertiary:!0,children:(0,ie.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--name",children:(0,c.__)("Manage email reports","google-site-kit")})})})]}):null}function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",Ve({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 10"},e),Fe||(Fe=l.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 qe=i(13606);function Description(){const e=(0,y.A)(),t=(0,g.useSelect)(e=>e(u.oR).hasCapability(u.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)(re.M),s=(0,l.useCallback)(async t=>{t.preventDefault(),await Promise.all([(0,m.SO)("start_user_setup",!0),(0,f.sx)(`${e}_headerbar_viewonly`,"start_user_setup",i?"proxy":"custom-oauth")]),n(i)},[i,n,e]),r=(0,l.useCallback)(()=>{(0,f.sx)(`${e}_headerbar_viewonly`,"click_learn_more_link")},[e]),a=t?(0,c.__)("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,qe.A)((0,c.__)("You can see stats from all shared Google services, but you can't make any changes. Learn more","google-site-kit"),{a:(0,ie.jsx)(ge.A,{href:o,onClick:r,"aria-label":(0,c.__)("Learn more about dashboard sharing","google-site-kit"),external:!0})});return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsx)(de.A,{className:"googlesitekit-view-only-menu__signin",children:a}),t&&(0,ie.jsx)(se.Button,{onClick:s,children:(0,c._x)("Sign in with Google","Service name","google-site-kit")})]})}var Qe=i(88273);function Service({module:e}){const t=(0,g.useSelect)(e=>e(u.oR).hasCapability(u.ej)),{name:i,owner:o}=(0,g.useSelect)(t=>t(Qe.i).getModule(e)||{}),n=(0,g.useSelect)(t=>t(Qe.i).getModuleIcon(e));return(0,ie.jsxs)("li",{className:"googlesitekit-view-only-menu__service",children:[(0,ie.jsx)("span",{className:"googlesitekit-view-only-menu__service--icon",children:(0,ie.jsx)(n,{height:26})}),(0,ie.jsx)("span",{className:"googlesitekit-view-only-menu__service--name",children:i}),t&&o?.login&&(0,ie.jsx)("span",{className:"googlesitekit-view-only-menu__service--owner",children:o.login})]})}function SharedServices({viewableModules:e}){return Array.isArray(e)?(0,ie.jsx)("ul",{children:e.map(e=>(0,ie.jsx)(Service,{module:e},e))}):null}Service.propTypes={module:r().string.isRequired},SharedServices.propTypes={viewableModules:r().arrayOf(r().string)};var Xe=i(11974);function Tracking(){const e=(0,y.A)();return(0,ie.jsx)(Xe.A,{title:(0,c.__)("Help us improve Site Kit","google-site-kit"),description:(0,qe.A)((0,c.__)("Share anonymous usage data. All collected data is treated in accordance with the Google Privacy Policy","google-site-kit"),{a:(0,ie.jsx)(ge.A,{href:"https://policies.google.com/privacy",external:!0})}),trackEventCategory:`${e}_headerbar_viewonly`,layout:"stacked"})}function ViewOnlyMenu(){const e=(0,_.i)("proactiveUserEngagement"),[t,i]=(0,l.useState)(!1),o=(0,l.useRef)(),s=(0,y.A)();(0,Ae.A)(o,()=>i(!1)),(0,je.l)([Ie._f,Ie.wn],o,()=>i(!1));const r=(0,l.useCallback)(()=>{t||(0,f.sx)(`${s}_headerbar`,"open_viewonly"),i(!t)},[t,s]),a=(0,g.useSelect)(e=>e(u.oR).hasCapability(u.ej)),d=(0,g.useSelect)(e=>e(u.oR).getViewableModules());return(0,ie.jsxs)("div",{ref:o,className:n()("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,ie.jsx)(se.Button,{className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--phone googlesitekit-button-icon",onClick:r,icon:(0,ie.jsx)("span",{className:"mdc-button__icon","aria-hidden":"true",children:(0,ie.jsx)(Ze,{className:"mdc-button__icon--image"})}),"aria-haspopup":"menu","aria-expanded":t,"aria-controls":"view-only-menu","aria-label":(0,c.__)("View only","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:(0,c.__)("View only","google-site-kit")}),(0,ie.jsxs)(se.Menu,{menuOpen:t,onSelected:r,id:"view-only-menu",nonInteractive:!0,children:[(0,ie.jsx)(MenuSection,{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__description",children:(0,ie.jsx)(Description,{})}),Array.isArray(d)&&(0,ie.jsx)(MenuWithHeading,{className:"googlesitekit-view-only-menu__list-item",heading:(0,ie.jsx)(Ye.A,{as:"h4",size:"medium",type:"label",children:(0,c.__)("Shared services","google-site-kit")}),children:(0,ie.jsx)(SharedServices,{viewableModules:d})}),e&&(0,ie.jsx)(ManageEmailReports,{}),(0,ie.jsx)(Divider,{}),(0,ie.jsx)(MenuSection,{className:"googlesitekit-view-only-menu__list-item",children:(0,ie.jsx)(Tracking,{})})]})]})}function Header({children:e,subHeader:t,showNavigation:i}){const o=!!(0,h.Ay)(),s=(0,v.A)();!function(){const e=(0,y.A)(),t=(0,g.useSelect)(e=>e(d.O4).isUsingProxy()),i=(0,g.useSelect)(e=>e(d.O4).getSetupErrorMessage()),o=(0,_.i)("setupFlowRefresh");(0,l.useEffect)(()=>{o||i||void 0===t||async function(){const i=await(0,m.Gq)("start_user_setup"),o=await(0,m.Gq)("start_site_setup");i.cacheHit&&(await(0,m.LD)("start_user_setup"),(0,f.sx)(`${e}_setup`,"complete_user_setup",t?"proxy":"custom-oauth")),o.cacheHit&&(await(0,m.LD)("start_site_setup"),(0,f.sx)(`${e}_setup`,"complete_site_setup",t?"proxy":"custom-oauth"))}()},[o,e,t,i])}();const r=(0,g.useSelect)(e=>e(d.O4).getAdminURL("googlesitekit-dashboard")),k=(0,g.useSelect)(e=>e(u.oR).isAuthenticated()),[A,I]=(0,a.A)({childList:!0}),N=!!I.target?.childElementCount;return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsx)("header",{className:n()("googlesitekit-header",{"googlesitekit-header--has-subheader":N,"googlesitekit-header--has-navigation":i}),children:(0,ie.jsx)(b.xA,{children:(0,ie.jsxs)(b.fI,{children:[(0,ie.jsx)(b.fh,{smSize:1,mdSize:2,lgSize:4,className:"googlesitekit-header__logo",alignMiddle:!0,children:(0,ie.jsx)(ge.A,{"aria-label":(0,c.__)("Go to dashboard","google-site-kit"),className:"googlesitekit-header__logo-link",href:r,children:(0,ie.jsx)(pe.A,{})})}),(0,ie.jsxs)(b.fh,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0,children:[e,!k&&o&&s&&(0,ie.jsx)(ViewOnlyMenu,{}),k&&!s&&(0,ie.jsx)(UserMenu,{})]})]})})}),(0,ie.jsx)("div",{className:"googlesitekit-subheader",ref:A,children:t}),i&&(0,ie.jsx)(DashboardNavigation,{}),(0,ie.jsx)(ue,{}),(0,ie.jsx)(LegacyNotifications,{}),(0,ie.jsx)(be.A,{areaSlug:p.bI.HEADER})]})}Header.displayName="Header",Header.propTypes={children:r().node,subHeader:r().element,showNavigation:r().bool},Header.defaultProps={children:null,subHeader:null};const $e=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(81276),n=i(63696),s=i(50539),r=i(7144),a=i(97345),l=i(99893);var c=i(88273),g=i(22942);var d=i(31589),u=i(7076);var p=i(7972),h=i(97513),m=i(68832),f=i(62688),_=i.n(f),y=i(82871),k=i(15650),v=i(4169),b=i(62540);function MetricItem({slug:e,title:t,description:i,isNewlyDetected:o,savedItemSlugs:a=[]}){const l=(0,s.useSelect)(t=>{const{getModule:i}=t(c.i),o=t(v.aO).getWidget(e);return o?.modules.reduce((e,t)=>{const o=i(t);return o?.connected||!o?.name?e:[...e,o.name]},[])}),[g,d]=(0,m.A)(r.Is,r.Y0),[,u]=(0,m.A)(r.Is,r.NO),p=(0,n.useCallback)(t=>{const i=t.target.checked?g.concat([e]):g.filter(t=>t!==e);d(i),u(i)},[e,g,d,u]),h=g?.includes(e),f=!a.includes(e)&&l.length>0,_=`key-metric-selection-checkbox-${e}`;return(0,b.jsx)(k.y3,{id:_,slug:e,title:t,description:i,isNewlyDetected:o,isItemSelected:h,isItemDisabled:f,onCheckboxChange:p,children:l.length>0&&(0,b.jsx)("div",{className:"googlesitekit-selection-panel-item-error",children:(0,y.sprintf)(/* translators: %s: module names. */ /* translators: %s: module names. */ (0,y._n)("%s is disconnected, no data to show","%s are disconnected, no data to show",l.length,"google-site-kit"),l.join((0,y.__)(" and ","google-site-kit")))})})}MetricItem.propTypes={slug:_().string.isRequired,title:_().string.isRequired,description:_().string.isRequired,isNewlyDetected:_().bool,savedItemSlugs:_().array};var A,I,N,S,x,T,M,w,j,C,E,D,R,O,L,P,z,B,G,H,U,F,Y=i(83880);function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 383 238"},e),A||(A=n.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"})),I||(I=n.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__a)"},n.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)"}))),N||(N=n.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)"})),S||(S=n.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)"})),x||(x=n.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)"})),T||(T=n.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"})),M||(M=n.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)"})),w||(w=n.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__b)"},n.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)"}))),j||(j=n.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)"})),C||(C=n.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)"})),E||(E=n.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)"})),D||(D=n.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"})),R||(R=n.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)"})),O||(O=n.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__c)"},n.createElement("rect",{width:130.621,height:89.68,x:126.251,y:37.4,fill:"#fff",rx:10.957}))),L||(L=n.createElement("rect",{width:98.333,height:7.867,x:143.013,y:53.134,fill:"#EBEEF0",rx:3.933})),P||(P=n.createElement("rect",{width:49.806,height:19.923,x:142.369,y:70.423,fill:"#B8E6CA",rx:9.961})),z||(z=n.createElement("rect",{width:33.04,height:7.867,x:143.013,y:105.84,fill:"#EBEEF0",rx:3.933})),B||(B=n.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"})),G||(G=n.createElement("rect",{width:19.923,height:5.977,x:164.287,y:77.395,fill:"#fff",rx:1.992})),n.createElement("mask",{id:"key-metrics-no-selected-items_svg__d",width:273,height:230,x:58,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},H||(H=n.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"}))),U||(U=n.createElement("g",{mask:"url(#key-metrics-no-selected-items_svg__d)"},n.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"}),n.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"}),n.createElement("path",{stroke:"#CBD0D3",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:9.44,d:"m215.831 109.67-19.169 71.73"}),n.createElement("path",{stroke:"#161B18",strokeMiterlimit:10,strokeWidth:9.44,d:"m213.975 116.472-19.169 71.731"}))),F||(F=n.createElement("defs",null,n.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"},n.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),n.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"}),n.createElement("feOffset",{dy:3.985}),n.createElement("feGaussianBlur",{stdDeviation:7.969}),n.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),n.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),n.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),n.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})),n.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"},n.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),n.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"}),n.createElement("feOffset",{dy:3.985}),n.createElement("feGaussianBlur",{stdDeviation:7.969}),n.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),n.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),n.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),n.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})),n.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"},n.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),n.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"}),n.createElement("feOffset",{dy:3.985}),n.createElement("feGaussianBlur",{stdDeviation:7.969}),n.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),n.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),n.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),n.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})))));function TabContent({activeMetricItems:e,newlyDetectedMetrics:t,savedItemSlugs:i}){return(0,b.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,b.jsx)(MetricItem,{slug:o,savedItemSlugs:i,isNewlyDetected:s,...e[o]},o)}),!Object.keys(e).length&&(0,b.jsxs)("div",{className:"googlesitekit-chip-tab-group__graphic",children:[(0,b.jsx)(key_metrics_no_selected_items,{height:250}),(0,b.jsx)(Y.A,{children:(0,y.__)("No metrics were selected yet","google-site-kit")})]})]})}TabContent.propTypes={activeMetricItems:_().object.isRequired,newlyDetectedMetrics:_().object.isRequired,savedItemSlugs:_().array};var V=i(49383),Z=i(64515),q=i(80452),Q=i(42343),X=i(4452),$=i.n(X);const K={[r.QJ.SLUG]:q.A,[r.KD.SLUG]:Q.A};function Chip({slug:e,label:t,isActive:i,onClick:o,hasNewBadge:n=!1,selectedCount:s=0}){const r=K[e]||Z.A;return(0,b.jsxs)(V.Button,{className:$()("googlesitekit-chip-tab-group__chip-item",{"googlesitekit-chip-tab-group__chip-item--active":i}),icon:(0,b.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,b.jsxs)("span",{className:"googlesitekit-chip-tab-group__chip-item-count",children:["(",s,")"]}):null,onClick:()=>o(e),children:[t,n&&(0,b.jsx)("span",{className:"googlesitekit-chip-tab-group__chip-item-new-dot"})]})}Chip.propTypes={slug:_().string.isRequired,label:_().string.isRequired,isActive:_().bool,hasNewBadge:_().bool,selectedCount:_().number,onClick:_().func.isRequired};const J={[r.QJ.SLUG]:q.A,[r.KD.SLUG]:Q.A};function TabItems({containerRef:e,isMobileBreakpoint:t,chipItemRows:i,allGroups:o,isActive:n,onChipChange:s,selectedCounts:r,newlyDetectedMetrics:a,activeGroupIndex:l}){return(0,b.jsxs)("div",{className:"googlesitekit-chip-tab-group__tab-items",ref:e,children:[!t&&i.map(e=>(0,b.jsx)("div",{className:"googlesitekit-chip-tab-group__tab-items-row",children:e.map(e=>(0,b.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,b.jsx)(V.TabBar,{activeIndex:l,handleActiveIndexUpdate:e=>s(null,e),children:o.map((e,t)=>{const i=J[e.SLUG]||Z.A;return(0,b.jsxs)(V.Tab,{"aria-label":e.LABEL,children:[(0,b.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,b.jsxs)("span",{className:"googlesitekit-chip-tab-group__chip-item-count",children:["(",r[e.SLUG],")"]}),!!a?.[e.SLUG]&&(0,b.jsx)("span",{className:"googlesitekit-chip-tab-group__chip-item-new-dot"})]},t)})})]})}TabItems.propTypes={containerRef:_().object,isMobileBreakpoint:_().bool,chipItemRows:_().array.isRequired,allGroups:_().array.isRequired,isActive:_().string.isRequired,onChipChange:_().func.isRequired,selectedCounts:_().object.isRequired,newlyDetectedMetrics:_().object.isRequired,activeGroupIndex:_().number.isRequired};const ee=Object.freeze([]);function ChipTabGroup({allMetricItems:e,savedItemSlugs:t}){const i=(0,n.useRef)(),[f,_]=(0,n.useState)(r.QJ.SLUG),[y,k]=(0,n.useState)(0),v=(0,h.dv)()===h.mp,[A]=(0,m.A)(r.Is,r.Y0),[I,N]=(0,m.A)(r.Is,r.Nl),S=I||ee,[x,T]=(0,m.A)(r.Is,r.NO),M=x||ee,w=(0,s.useSelect)(e=>e(a.oR).isUserInputCompleted()),j=(0,s.useSelect)(e=>{const t=e(a.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(a.oR).getUserInputSettings();return i?.includeConversionEvents?.values}),C=(0,s.useSelect)(e=>e(c.i).isModuleConnected(g.L1)),E=(0,s.useSelect)(e=>C?e(l.K9).getDetectedEvents():[]),D=(0,s.useSelect)(e=>e(a.oR).getAnswerBasedMetrics(null,[...j||[],...E||[]])),{keyMetricsGroups:R,dynamicGroups:O}=function({detectedEvents:e=[],currentlyActiveEvents:t=[],isUserInputCompleted:i,answerBasedMetrics:o=[]}){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,n.useMemo)(()=>[r.IX,r.wb,...s?.length?[r.XU]:[],...a?.length?[r.GF]:[],r.hs],[s,a]),g=(0,n.useMemo)(()=>i&&o?.length?[r.QJ,r.KD]:[r.QJ],[i,o]);return{hasGeneratingLeadsGroup:s,hasSellingProductsGroup:a,keyMetricsGroups:c,dynamicGroups:g}}({detectedEvents:E,currentlyActiveEvents:j,isUserInputCompleted:w,answerBasedMetrics:D}),L=(0,n.useMemo)(()=>[...O,...R],[O,R]),P=(0,s.useSelect)(e=>{if(!e(c.i).isModuleConnected(g.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}),z=(0,s.useSelect)(e=>C?e(l.K9).getKeyMetricsConversionEventWidgets():[]),{selectedCounts:B,activeMetricItems:G,newlyDetectedMetrics:H}=function({allMetricItems:e={},isActive:t,effectiveSelection:i=[],answerBasedMetrics:o=[],selectedMetrics:s=[],newBadgeEvents:a=[],conversionReportingEventWidgets:l={}}){return(0,n.useMemo)(()=>{const n={[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&&o.includes(d)&&o.includes(d)&&(c[d]=e[d]),!n[u]){const t=Object.keys(e).filter(t=>!(e[t].group!==u||!s?.includes(t))).length;n[u]=t}a?.length&&a.some(e=>l[e].includes(d))&&(g[u]=[...g[u]??[],d])}return{selectedCounts:n,activeMetricItems:c,newlyDetectedMetrics:g}},[e,t,i,o,s,a,l])}({allMetricItems:e,isActive:f,effectiveSelection:S,answerBasedMetrics:D,selectedMetrics:A,newBadgeEvents:P,conversionReportingEventWidgets:z}),U=(0,n.useCallback)(()=>{N([...S,...M]),T([])},[S,M,N,T]),F=(0,n.useCallback)((e,t)=>{if(e)_(e);else{const e=L[t];k(t),_(e.SLUG)}M.length&&U()},[L,M,_,U]),Y=(0,s.useSelect)(e=>e(p.nX).getValue(r.EA)),W=(0,o.A)(Y),V=Object.keys(H);(0,n.useEffect)(()=>{if(!W&&Y)if(_(r.QJ.SLUG),k(0),V.length&&v){const e=L.find(e=>e.SLUG===V[0]);k(L.indexOf(e)),_(e.SLUG)}else k(0),_(r.QJ.SLUG);W&&!Y&&U()},[Y,W,M,L,v,V,U]),function({containerRef:e,isMobileBreakpoint:t,isSelectionPanelOpen:i,isSelectionPanelOpenPrevious:o}){const s=(0,n.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,u.d)(s,50);(0,d.A)("resize",r),(0,n.useEffect)(()=>{!o&&i&&s()},[i,o,s])}({containerRef:i,isMobileBreakpoint:v,isSelectionPanelOpen:Y,isSelectionPanelOpenPrevious:W});const Z=[[...O,...R.slice(0,2)],[...R.slice(2)]];return(0,b.jsxs)("div",{className:"googlesitekit-chip-tab-group",children:[(0,b.jsx)(TabItems,{containerRef:i,isMobileBreakpoint:v,chipItemRows:Z,allGroups:L,isActive:f,onChipChange:F,selectedCounts:B,newlyDetectedMetrics:H,activeGroupIndex:y}),(0,b.jsx)(TabContent,{activeMetricItems:G,newlyDetectedMetrics:H,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(15650),g=i(81276),d=i(82871),u=i(50539),p=i(7144),h=i(50454),m=i(3749),f=i(68329),_=i(97345),y=i(68832),k=i(22942),v=i(99893),b=i(62954),A=i(65385),I=i(62540);const N=(0,A.A)({moduleName:k.L1})(function CustomDimensionsNotice(){const[e]=(0,y.A)(p.Is,p.Y0),t=e?.flatMap(e=>{const t=h.G[e];return t?.requiredCustomDimensions||[]}),i=(0,u.useInViewSelect)(e=>!!t?.length&&!e(v.K9).hasCustomDimensions(t),[t]),o=(0,u.useInViewSelect)(e=>e(_.oR).hasScope(v.S9));(0,u.useInViewSelect)(e=>e(v.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,b.N)(s.current,e)&&e.scrollIntoView()}},[i,n]),!1===i)return null;const r=o?(0,d.__)("The metrics you selected require more data tracking. We will update your Analytics property after saving your selection.","google-site-kit"):(0,d.__)("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)(f.A,{ref:s,type:m.L.WARNING,description:r,hideIcon:!0})});var S=i(78990),x=i(70301),T=i(29785),M=i(88273),w=i(62659),j=i(13047),C=i(13137),E=i(13606),D=i(49383),R=i(4751);function SelectionPanelFooter({savedItemSlugs:e=[],selectedItemSlugs:t=[],saveSettings:i=()=>{},minSelectedItemCount:o=0,maxSelectedItemCount:n=0,isBusy:r,onSaveSuccess:a=()=>{},onCancel:c=()=>{},isOpen:g,closePanel:p=()=>{},isFullScreen:h=!1}){const[m,f]=(0,l.useState)(null),[_,y]=(0,l.useState)(!1),k=(0,u.useSelect)(e=>e(v.K9).isFetchingSyncAvailableAudiences()),b=(0,l.useMemo)(()=>!(0,s.isEqual)((0,j.N9)(t),(0,j.N9)(e)),[e,t]);let A=e?.length>0&&b?(0,d.__)("Apply changes","google-site-kit"):(0,d.__)("Save selection","google-site-kit");h&&(A=(0,d.__)("Complete setup","google-site-kit"));const N=(0,l.useCallback)(async()=>{const{error:e}=await i(t);e||(a(),p(),h||(f(A),y(!0)))},[i,t,a,p,h,A]),S=(0,l.useCallback)(()=>{p(),c()},[p,c]),[x,T]=(0,l.useState)(null);(0,l.useEffect)(()=>{null!==x&&x!==g&&g&&(f(null),y(!1)),T(g)},[g,x]);const M=t?.length||0,w=k?(0,I.jsx)(R.A,{width:"89px",height:"20px"}):(0,I.jsx)("p",{className:"googlesitekit-selection-panel-footer__item-count",children:(0,E.A)((0,d.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,d.__)("%1$d selected (up to %2$d)","google-site-kit"),M,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)(D.Button,{onClick:S,disabled:r,tertiary:!0,children:(0,d.__)("Cancel","google-site-kit")}),w,(0,I.jsx)(D.SpinnerButton,{onClick:N,isSaving:r,disabled:Mn||r||!g&&_,children:m||A})]})})})}function Footer({isOpen:e,closePanel:t=s.noop,savedMetrics:i,onNavigationToOAuthURL:o=()=>{},isFullScreen:n=!1}){const r=(0,u.useRegistry)(),a=(0,w.A)(),[c]=(0,y.A)(p.Is,p.Y0),[,g]=(0,y.A)(v.Kr,"autoSubmit"),m=(0,u.useSelect)(e=>e(_.oR).isSavingKeyMetricsSettings()),f=`${a}_kmw-sidebar`,b=c?.flatMap(e=>{const t=h.G[e];return t?.requiredCustomDimensions||[]}),A=(0,u.useInViewSelect)(e=>{if(!b?.length)return!1;return!e(v.K9).hasCustomDimensions(b)},[b]),N=(0,u.useInViewSelect)(e=>e(_.oR).hasScope(v.S9)),E=(0,u.useSelect)(e=>e(M.i).isModuleConnected(k.L1)),D=(0,u.useSelect)(e=>e(T.O4).getAdminURL("googlesitekit-dashboard",{notification:"custom_dimensions"})),R=(0,u.useSelect)(e=>{const t=e(_.oR).getConnectURL({additionalScopes:[v.S9],redirectURL:D});return!!t&&e(x.M).isNavigatingTo(t)}),O=(0,u.useSelect)(e=>e(T.O4).getAdminURL("googlesitekit-dashboard")),L=(0,u.useSelect)(e=>!!O&&e(x.M).isNavigatingTo(O)),{saveKeyMetricsSettings:P,setPermissionScopeError:z}=(0,u.useDispatch)(_.oR),{navigateTo:B}=(0,u.useDispatch)(x.M),G=(0,u.useSelect)(e=>e(v.K9).getKeyMetricsConversionEventWidgets()),H=(0,l.useCallback)(async e=>{const{error:t}=await P({widgetSlugs:e});return{error:t}},[P]),U=(0,l.useCallback)(async e=>{if(Object.values(G).flat().some(t=>e.includes(t))?(0,j.sx)(f,"metrics_sidebar_save","conversion_reporting"):(0,j.sx)(f,"metrics_sidebar_save"),E&&A){if(g(!0),!N)return o(),t(),void z({code:C.db,message:(0,d.__)("Additional permissions are required to create new Analytics custom dimensions","google-site-kit"),data:{status:403,scopes:[v.S9],skipModal:!0,redirectURL:D}});n&&await(0,S.mR)(r)}n&&B(O)},[G,E,A,n,f,g,N,o,t,z,D,r,B,O]),F=(0,l.useCallback)(()=>{(0,j.sx)(f,"metrics_sidebar_cancel"),n&&B(O)},[n,O,B,f]);return(0,I.jsx)(SelectionPanelFooter,{savedItemSlugs:i,selectedItemSlugs:c,saveSettings:H,minSelectedItemCount:p.LO,maxSelectedItemCount:p.Hl,isBusy:m||R||L&&n,onSaveSuccess:()=>{U(c)},onCancel:F,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 O=i(38432),L=i(83880),P=i(30805),z=i(4124);function Header({closePanel:e}){const t=(0,z.A)(),i=(0,P.i)("setupFlowRefresh"),o=(0,u.useSelect)(e=>e(T.O4).getSiteKitAdminSettingsURL()),n=(0,u.useSelect)(e=>e(_.oR).isSavingKeyMetricsSettings()),{navigateTo:s}=(0,u.useDispatch)(x.M),r=(0,l.useCallback)(()=>s(o),[o,s]);return(0,I.jsx)(c.W4,{title:(0,d.sprintf)(/* translators: %d: number of max allowed metrics */ /* translators: %d: number of max allowed metrics */ (0,d.__)("Select up to %d metrics","google-site-kit"),p.Hl),onCloseClick:e,children:!t&&(0,I.jsx)(L.A,{children:(0,E.A)(i?(0,d.__)("Edit your personalized goals in Settings","google-site-kit"):(0,d.__)("Edit your personalized goals or deactivate this widget in Settings","google-site-kit"),{link:(0,I.jsx)(O.A,{onClick:r,disabled:n,secondary:!0}),strong:(0,I.jsx)("strong",{})})})})}Header.propTypes={closePanel:a().func.isRequired};var B=i(65695);const G=(0,A.A)({moduleName:k.L1})(function KeyMetricsError({savedMetrics:e}){const[t]=(0,y.A)(p.Is,p.Y0),i=(0,u.useInViewSelect)(e=>e(_.oR).getKeyMetricsSettings()),o=(0,l.useMemo)(()=>!(0,s.isEqual)((0,j.N9)(t),(0,j.N9)(e)),[e,t]),n=(0,u.useSelect)(e=>e(_.oR).getErrorForAction("saveKeyMetricsSettings",[{...i,widgetSlugs:t}])),r=t?.length||0;let a;rp.Hl&&(a=(0,d.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,d.__)("Select up to %1$d metrics (%2$d selected)","google-site-kit"),p.Hl,r));let c=n;return o&&a&&(c={message:a}),(0,I.jsx)(B.A,{error:c,skipRetryMessage:!!a})});var H=i(12666);function SelectionPanelItems({savedItemSlugs:e=[],allMetricItems:t}){return(0,I.jsx)("div",{className:"googlesitekit-selection-panel-items",children:(0,I.jsx)(H.A,{savedItemSlugs:e,allMetricItems:t})})}function MetricItems({savedMetrics:e}){const t=(0,z.A)(),{isKeyMetricAvailable:i}=(0,u.useSelect)(e=>e(_.oR)),o=(0,u.useInViewSelect)(e=>i=>h.G[i].displayInSelectionPanel({select:e,isViewOnlyDashboard:t,slug:i}),[t]);const n=Object.keys(h.G).reduce(function(e,t){if(!i(t))return e;if(void 0===o||"function"==typeof h.G[t].displayInSelectionPanel&&!o(t))return e;const{title:n,description:s,metadata:{group:r}}=h.G[t];return{...e,[t]:{title:n,description:s,group:r}}},{});return(0,I.jsx)(SelectionPanelItems,{savedItemSlugs:e,allMetricItems:n})}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)(c.kA,{children:[(0,I.jsx)(MetricItems,{savedMetrics:i}),(0,I.jsx)(N,{})]}),(0,I.jsxs)("div",{className:n()("googlesitekit-user-input__footer-container",{"googlesitekit-user-input__footer-container--fullscreen":a}),children:[(0,I.jsx)(G,{savedMetrics:i}),(0,I.jsx)(Footer,{isOpen:e,closePanel:t,savedMetrics:i,onNavigationToOAuthURL:()=>{r(!0)},isFullScreen:a})]})]})}SelectionPanelItems.propTypes={savedItemSlugs:a().array,allMetricItems:a().object.isRequired},MetricItems.propTypes={savedMetrics:a().array},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:()=>_,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")},_={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(29785),s=i(97345),r=i(99893),a=i(7144);function l({select:e,slug:t}){return e(r.K9).hasConversionReportingEvents(this.requiredConversionEventName)||e(s.oR).isKeyMetricActive(t)}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={[s.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:a.hs.SLUG}},[s.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:a.hs.SLUG}},[s.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:a.hs.SLUG}},[s.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:a.hs.SLUG}},[s.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:a.hs.SLUG}},[s.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(s.oR).isKeyMetricActive(s.pG)||e(n.O4).getProductPostType(),displayInWidgetArea:g,metadata:{group:a.GF.SLUG}},[s.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:a.IX.SLUG}},[s.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:a.IX.SLUG}},[s.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:a.IX.SLUG}},[s.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:a.hs.SLUG}},[s.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:a.hs.SLUG}},[s.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:a.IX.SLUG}},[s.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:a.IX.SLUG}},[s.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:a.IX.SLUG}},[s.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:a.wb.SLUG}},[s.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:l,displayInList:l,metadata:{group:a.GF.SLUG}},[s.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:l,displayInList:l,metadata:{group:a.XU.SLUG}},[s.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:l,displayInList:l,metadata:{group:a.GF.SLUG}},[s.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:a.wb.SLUG}},[s.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:a.wb.SLUG}},[s.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:a.wb.SLUG}},[s.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:l,displayInList:l,metadata:{group:a.XU.SLUG}},[s.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:l,displayInList:l,metadata:{group:a.GF.SLUG}},[s.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:l,displayInList:l,metadata:{group:a.GF.SLUG}},[s.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:l,displayInList:l,metadata:{group:a.GF.SLUG}},[s.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:a.wb.SLUG}},[s.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:a.wb.SLUG}},[s.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:l,displayInList:l,metadata:{group:a.XU.SLUG}}}},38432(e,t,i){i.d(t,{A:()=>M});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;tc.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:"#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 p;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.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:"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 f;function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",_({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 k=i(83366),v=i(50304),b=i(62540);const A="BUTTON",I="BUTTON_DISABLED",N="EXTERNAL_LINK",S="LINK",x="ROUTER_LINK",T=(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:_=!1,href:T="",inverse:M=!1,noFlex:w=!1,onClick:j,small:C=!1,standalone:E=!1,linkButton:D=!1,to:R,leadingIcon:O,trailingIcon:L,...P}=e;const z=T||R||!j?R?x:f?N:S:h?I:A;const B=z===A||z===I?"button":z===x?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===I&&(e=(0,g._x)("(disabled)","screen reader text","google-site-kit")),e?i?`${i} ${e}`:"string"==typeof c?`${c} ${e}`:void 0:i}();let H=O,U=L;return r&&(H=(0,b.jsx)(y,{width:14,height:14})),f&&!_&&(U=(0,b.jsx)(k.A,{width:14,height:14})),n&&!M&&(U=(0,b.jsx)(m,{width:14,height:14})),n&&M&&(U=(0,b.jsx)(u,{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":M,"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:T,onClick:j,rel:z===N?"noopener noreferrer":void 0,ref:t,target:z===N?"_blank":void 0,to:R,...P,children:[!!H&&(0,b.jsx)(v.A,{marginRight:5,children:H}),(0,b.jsx)("span",{className:"googlesitekit-cta-link__contents",children:c}),!!U&&(0,b.jsx)(v.A,{marginLeft:5,children:U})]})});T.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 M=T},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;tr.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(4452),n=i.n(o),s=i(62688),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:s=null,title:r=null,provides:p,handleConfirm:h,subtitle:m,confirmButton:f=null,notes:_=[],danger:y=!1,inProgress:k=!1,small:v=!1,medium:b=!1,buttonLink:A=null}){const I=`googlesitekit-dialog-description-${(0,a.A)(ModalDialog)}`,N=!(!p||!p.length);return(0,u.jsxs)(g.Dialog,{open:t,onOpen:o,onClose:s,"aria-describedby":N?I:void 0,tabIndex:"-1",className:n()(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}),r]}),m?(0,u.jsx)("p",{className:"mdc-dialog__lead",children:m}):[],(0,u.jsxs)(g.DialogContent,{children:[N&&(0,u.jsx)("section",{id:I,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))})}),_.length>0&&(0,u.jsx)("section",{className:"mdc-dialog__notes",children:_.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.__)("Note: %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")}),A?(0,u.jsx)(g.Button,{href:A,onClick:h,target:"_blank",danger:y,children:f}):(0,u.jsx)(g.SpinnerButton,{onClick:h,danger:y,disabled:k,isSaving:k,children:f||(0,c.__)("Disconnect","google-site-kit")})]})]})}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:r().string,dialogActive:r().bool,handleDialog:r().func,handleConfirm:r().func.isRequired,onOpen:r().func,onClose:r().func,title:r().string,provides:r().arrayOf(r().string),confirmButton:r().string,notes:r().arrayOf(r().oneOfType([r().string,r().elementType])),danger:r().bool,small:r().bool,medium:r().bool,buttonLink:r().string};const p=ModalDialog},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,ctaInProgress:m,onDismissClick:f,gaTrackingEventArgs:_}){const y={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,inProgress:m,dismissOptions:y,external:"_blank"===l},dismissButton:g?{label:d,onClick:f,dismissOptions:y}:void 0,gaTrackingEventArgs:_})}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,ctaInProgress:n().bool,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(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(63696),l=i(13606),c=i(82871),g=i(50539),d=i(38432),u=i(97345),p=i(7076),h=i(62659),m=i(65054),f=i(49383),_=i(62540);function LayoutDefault({checkboxProps:e,label:t}){return(0,_.jsx)(f.Checkbox,{...e,children:t})}function LayoutStacked({checkboxProps:e,title:t,description:i}){return(0,_.jsxs)(a.Fragment,{children:[(0,_.jsx)(f.Checkbox,{...e,children:t}),(0,_.jsx)("div",{className:"googlesitekit-opt-in__description",children:i})]})}LayoutDefault.propTypes={checkboxProps:r().object.isRequired,label:r().node.isRequired},LayoutStacked.propTypes={checkboxProps:r().object.isRequired,title:r().node.isRequired,description:r().node.isRequired};const y="default",k="stacked";function OptIn({id:e="googlesitekit-opt-in",name:t="optIn",className:i,layout:o=y,title:s=null,description:r=null,trackEventCategory:f,trackEventAction:v="tracking_optin"}){const[b,A]=(0,a.useState)(),I=(0,g.useSelect)(e=>e(u.oR).isTrackingEnabled()),N=(0,g.useSelect)(e=>e(u.oR).getErrorForAction("setTrackingEnabled",[!I])),{setTrackingEnabled:S}=(0,g.useDispatch)(u.oR),x=(0,h.A)(),T=(0,a.useCallback)(async e=>{const{response:t,error:i}=await S(e);i?A(I):((0,m.M9)(t.enabled),t.enabled&&(0,m.sx)(f||x,v))},[I,S,f,v,x]);(0,a.useEffect)(()=>{void 0!==I&&void 0===b&&A(I)},[I,b]);const M=(0,p.d)(T,300),w=(0,a.useCallback)(e=>{const t=e.target.checked;A(t),M(t)},[M]),j=s??(0,_.jsx)("span",{children:(0,c.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")}),C=r??(0,l.A)((0,c.__)("All collected data is treated in accordance with the Google Privacy Policy","google-site-kit"),{a:(0,_.jsx)(d.A,{href:"https://policies.google.com/privacy",external:!0},"link"),span:(0,_.jsx)("span",{})}),E={id:e,name:t,value:"1",checked:b,onChange:w,loading:void 0===I};return(0,_.jsxs)("div",{className:n()("googlesitekit-opt-in",i,o===k&&"googlesitekit-opt-in--layout-stacked"),children:[o===k?(0,_.jsx)(LayoutStacked,{checkboxProps:E,title:j,description:C}):(0,_.jsx)(LayoutDefault,{checkboxProps:E,label:(0,_.jsxs)(a.Fragment,{children:[j," ",C]})}),N?.message&&(0,_.jsx)("div",{className:"googlesitekit-error-text",children:N?.message})]})}OptIn.propTypes={id:r().string,name:r().string,className:r().string,title:r().node,description:r().node,layout:r().oneOf([y,k]),trackEventCategory:r().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(62688),n=i.n(o),s=i(47209),r=i(63696),a=i(78325);function Portal({children:e,slug:t}){const[i]=(0,r.useState)(document.createElement("div"));return(0,s.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:n().string,children:n().node},Portal.defaultProps={slug:"",children:null};const l=Portal},4751(e,t,i){i.d(t,{A:()=>c});var o=i(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(97513),l=i(62540);function PreviewBlock({className:e,width:t,height:i,shape:o,padding:s,smallWidth:r,smallHeight:c,tabletWidth:g,tabletHeight:d,desktopWidth:u,desktopHeight:p}){const h=(0,a.dv)(),m={width:{[a.mp]:r,[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:n()("googlesitekit-preview-block",e,{"googlesitekit-preview-block--padding":s}),style:{width:m.width[h]||t,height:m.height[h]||i},children:(0,l.jsx)("div",{className:n()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===o})})})}PreviewBlock.propTypes={className:r().string,width:r().string,height:r().string,shape:r().string,padding:r().bool,smallWidth:r().string,smallHeight:r().string,tabletWidth:r().string,tabletHeight:r().string,desktopWidth:r().string,desktopHeight:r().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(81276),r=i(63696),a=i(49383),l=i(59865),c=i(62540);let g=null;function RefocusableModalDialog({dialogActive:e=!1,refocusQuerySelector:t=null,...i}){const o=(0,r.useCallback)(()=>{setTimeout(()=>{const e=t?document.querySelector(t):g;e&&document.body.contains(e)&&e.focus(),t||(g=null)})},[t]),n=(0,s.A)(e);return(0,r.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(44010),n=i(77105),s=i(62688),r=i.n(s),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:r().node.isRequired};const f=ErrorHandler;var _=i(79961);const{Consumer:y,Provider:k}=_.A,v=k;var b=i(15844),A=i(97345),I=i(62659),N=i(71264);function FeatureTours(){const e=(0,I.A)(),{triggerTourForView:t}=(0,l.useDispatch)(A.oR);(0,b.A)(()=>{t(e)});const i=(0,l.useSelect)(e=>e(A.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)(N.Ay,{tourID:i.slug,steps:i.steps,gaEventCategory:i.gaEventCategory,isRepeatable:i.isRepeatable,callback:i.callback}):null}var S=i(20762),x=i(94656),T=i(82246),M=i(78990),w=i(11999),j=i(70301);const C=function AuthenticatedPermissionsModal(){const e=(0,l.useRegistry)(),t=(0,l.useSelect)(e=>e(A.oR).getPermissionScopeError()),i=(0,l.useSelect)(e=>e(A.oR).getUnsatisfiedScopes()),o=(0,l.useSelect)(e=>e(A.oR).getConnectURL({additionalScopes:t?.data?.scopes,redirectURL:t?.data?.redirectURL||globalThis.location.href,errorRedirectURL:t?.data?.errorRedirectURL})),{clearPermissionScopeError:n}=(0,l.useDispatch)(A.oR),{navigateTo:s}=(0,l.useDispatch)(j.M),{setValues:r}=(0,l.useDispatch)(w.s),c=(0,a.useCallback)(()=>{n()},[n]),d=(0,a.useCallback)(async()=>{r(A.$8,{permissionsError:t}),await(0,M.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)(x.A,{children:(0,m.jsx)(T.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 E=function PermissionsModal(){return(0,l.useSelect)(e=>e(A.oR).isAuthenticated())?(0,m.jsx)(C,{}):null};const D=function RestoreSnapshots({children:e}){const t=(0,l.useRegistry)(),[i,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{i||(async()=>{await(0,M.P9)(t),o(!0)})()},[t,i]),i?e:null};var R=i(84895),O=i(86582);function Root({children:e,registry:t,viewContext:i=null}){const s=o.D,[r]=(0,a.useState)({key:"Root",value:!0});return(0,m.jsx)(a.StrictMode,{children:(0,m.jsx)(S.Ay,{value:r,children:(0,m.jsx)(l.RegistryProvider,{value:t,children:(0,m.jsx)(v,{value:R.t,children:(0,m.jsx)(u.Kq,{value:i,children:(0,m.jsx)(n.A,{theme:s(),children:(0,m.jsxs)(f,{children:[(0,m.jsxs)(D,{children:[e,i&&(0,m.jsx)(FeatureTours,{})]}),(0,O.A)(i)&&(0,m.jsx)(E,{})]})})})})})})})}Root.propTypes={children:r().node,registry:r().object,viewContext:r().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(73198),a=i(62954),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,a.N)(o.current,e)&&e.scrollIntoView()}},[e]),e?(0,l.jsx)("div",{ref:o,children:(0,l.jsx)(r.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(37325),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:()=>T});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(53328),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,_]=(0,d.useState)(0);return(0,d.useEffect)(()=>{i?(_(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")):(_(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(33052),_=i(72545);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)(f.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)(_.A,{width:"15",height:"15"})})]}),e]})}SelectionPanelHeader.propTypes={children:r().node,title:r().string,onCloseClick:r().func};var y=i(82871),k=i(5855),v=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)(v.Checkbox,{checked:t,description:i,disabled:o,id:s,name:s,onChange:r,value:l,badge:e,children:a})})}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)(k.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]})}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},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),A=i(13606),I=i(50539),N=i(4751),S=i(99893),x=i(13047);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,I.useSelect)(e=>e(S.K9).isFetchingSyncAvailableAudiences()),_=(0,d.useMemo)(()=>!(0,b.isEqual)((0,x.N9)(t),(0,x.N9)(e)),[e,t]),k=e?.length>0&&_?(0,y.__)("Apply changes","google-site-kit"):(0,y.__)("Save selection","google-site-kit"),T=(0,d.useCallback)(async()=>{const{error:e}=await i(t);e||(r(),c(),u(k),m(!0))},[i,t,r,c,k]),M=(0,d.useCallback)(()=>{c(),a()},[c,a]),[w,j]=(0,d.useState)(null);(0,d.useEffect)(()=>{null!==w&&w!==l&&l&&(u(null),m(!1)),j(l)},[l,w]);const C=t?.length||0,E=f?(0,h.jsx)(N.A,{width:"89px",height:"20px"}):(0,h.jsx)("p",{className:"googlesitekit-selection-panel-footer__item-count",children:(0,A.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 (up to %2$d)","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)(v.Button,{onClick:M,disabled:s,tertiary:!0,children:(0,y.__)("Cancel","google-site-kit")}),(0,h.jsx)(v.SpinnerButton,{onClick:T,isSaving:s,disabled:Cn||s||!l&&p,children:g||k})]})]})})}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 T=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),d=i(30805);var 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"),_=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 k=f?10:14;return(0,h.jsx)("div",{className:r()("googlesitekit-tour-tooltip",l.className,{"googlesitekit-tour-tooltip--no-title":!l.title,"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:[l.title&&(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:_.map(e=>(0,h.jsx)("li",{className:y(e)},`indicator-${e}`))}),f&&(0,h.jsx)("p",{className:"googlesitekit-tooltip-steps",children:a>1&&`${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:k,height:k}),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:()=>y,ei:()=>v});var o=i(62688),n=i.n(o),s=i(36703),r=i(15844),a=i(82871),l=i(50539),c=i(84895),g=i(7972),d=i(97345),u=i(97513),p=i(62659),h=i(65054),m=i(83202),f=i(62540);const _=(0,c.G)("setupFlowRefresh"),y={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:_?"rgba(0, 0, 0, 0.25)":"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:_?"none":"2px solid #3c7251",backgroundColor:"#fff"}},k={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")},v={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)"}}},b={disableBeacon:!0,isFixed:!0,placement:"auto"},A={placement:"top",offset:0},I="feature_tooltip_view",N="feature_tooltip_advance",S="feature_tooltip_return",x="feature_tooltip_dismiss",T="feature_tooltip_complete";function TourTooltips({steps:e,tourID:t,gaEventCategory:i,isRepeatable:o,callback:n}){const a=`${t}-step`,c=`${t}-run`,{setValue:M}=(0,l.useDispatch)(g.nX),{dismissTour:w,receiveCurrentTour:j}=(0,l.useDispatch)(d.oR),C=(0,l.useRegistry)(),E=(0,p.A)(),D=(0,u.dv)(),R=(0,l.useSelect)(e=>e(g.nX).getValue(a)||0),O=(0,l.useSelect)(e=>{const i=o||!1===e(d.oR).isTourDismissed(t);return e(g.nX).getValue(c)&&i});function L(i){return`googlesitekit-showing-feature-tour--${t}-${e[i].slug||i}`}(0,r.A)(function(){globalThis.document.body.classList.add("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`,L(R)),M(c,!0)});const P=e.map(e=>e.isResponsive&&D===u.mp?{...b,...e,...A,floaterProps:{...e.floaterProps,target:e.target}}:{...b,...e}),z=_?{...v,styles:{...v.styles,floater:{filter:"drop-shadow(rgba(0, 0, 0, 0.25) 0px 4px 16px)"}}}:v;return(0,f.jsx)(s.Ay,{callback:function(r){!function({index:e,action:t,lifecycle:o,size:n,status:r,type:a}){const l=e+1,c="function"==typeof i?i(E):i;a===s.qY.TOOLTIP&&o===s.VD.TOOLTIP?(0,h.sx)(c,I,l):t===s.kl.CLOSE&&o===s.VD.COMPLETE?(0,h.sx)(c,x,l):t===s.kl.NEXT&&r===s.XQ.FINISHED&&a===s.qY.TOUR_END&&n===l&&(0,h.sx)(c,T,l),o===s.VD.COMPLETE&&r!==s.XQ.FINISHED&&(t===s.kl.PREV&&(0,h.sx)(c,S,l),t===s.kl.NEXT&&(0,h.sx)(c,N,l))}(r);const{action:l,index:g,status:d,step:p,type:m}=r,f=l===s.kl.CLOSE,_=!f&&[s.qY.STEP_AFTER,s.qY.TARGET_NOT_FOUND].includes(m),y=[s.XQ.FINISHED,s.XQ.SKIPPED].includes(d),k=f&&m===s.qY.STEP_AFTER,v=y||k;s.qY.STEP_BEFORE===m&&function(e){let t=e.target;if("string"==typeof e.target&&(t=globalThis.document.querySelector(e.target)),!(t instanceof Element))return;if(!e.isResponsive||D!==u.mp)return void t.scrollIntoView({block:"center"});const i=document.querySelector(".__floater");if(!i)return;const{top:o,bottom:n}=t.getBoundingClientRect(),{height:s}=i.getBoundingClientRect(),r=o-s-60+window.scrollY;if(r>=0)window.scrollTo({top:r});else{const e=n-window.innerHeight+s+60+window.scrollY;window.scrollTo({top:e})}}(p),_?function(t,i){const o=t+(i===s.kl.PREV?-1:1);globalThis.document.body.classList.remove(L(t)),e[o]&&globalThis.document.body.classList.add(L(o)),M(a,o)}(g,l):v&&(globalThis.document.body.classList.remove("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),e[R]&&globalThis.document.body.classList.remove(L(R)),o?(M(c,!1),M(a,null),j(null)):w(t)),n&&n(r,C)},floaterProps:z,locale:k,run:O,stepIndex:R,steps:P,styles:y,tooltipComponent:m.A,showProgress:!_,continuous:!0,disableOverlayClose:!0,disableScrolling:!0})}TourTooltips.propTypes={steps:n().arrayOf(n().object).isRequired,tourID:n().string.isRequired,gaEventCategory:n().oneOfType([n().string,n().func]).isRequired,isRepeatable:n().bool,callback:n().func}},83880(e,t,i){i.d(t,{A:()=>c});var o=i(62688),n=i.n(o),s=i(97513),r=i(8513),a=i(33052),l=i(62540);function c({type:e=r.SZ,size:t,children:i,...o}){const n=(0,s.dv)();return(0,l.jsx)(a.A,{as:"p",type:e,size:t||(n===s.mp?r.Kk:r.Yw),...o,children:i})}c.propTypes={type:n().oneOf(r.tT),size:n().oneOf(r.oJ)}},8513(e,t,i){i.d(t,{Kk:()=>r,SZ:()=>o,Yw:()=>a,oJ:()=>l,s7:()=>n,tT:()=>s});const o="body",n="label",s=[o,"display","headline",n,"title"],r="small",a="medium",l=[r,a,"large"]},33052(e,t,i){i.d(t,{A:()=>Typography});var o=i(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(8513),l=i(62540);function Typography({className:e,type:t,size:i,as:o="span",children:s,...r}){return(0,l.jsx)(o,{className:n()("googlesitekit-typography",e,{[`googlesitekit-typography--${t}`]:t&&a.tT.includes(t),[`googlesitekit-typography--${i}`]:i&&a.oJ.includes(i)}),...r,children:s})}Typography.propTypes={className:r().string,type:r().oneOf(a.tT),size:r().oneOf(a.oJ),as:r().oneOfType([r().string,r().elementType])}},55989(e,t,i){i.d(t,{A:()=>l});var o=i(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(62540);function VisuallyHidden({className:e,children:t,...i}){return t?(0,a.jsx)("span",{...i,className:n()("screen-reader-text",e),children:t}):null}VisuallyHidden.propTypes={className:r().string,children:r().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,n,s=i(4452),r=i.n(s),a=i(62688),l=i.n(a),c=i(21795),g=i(63696),d=i(82871),u=i(53328),p=i(49383),h=i(50539),m=i(40194),f=i(29785),_=i(97345),y=i(88273),k=i(30805),v=i(12896),b=i(62659),A=i(58718),I=i(22942),N=i(99893),S=i(49481),x=i(13047);function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),o||(o=g.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"})),n||(n=g.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"})));var w,j,C;function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),w||(w=g.createElement("circle",{cx:12,cy:11,r:8.25,stroke:"currentColor",strokeWidth:1.5})),j||(j=g.createElement("path",{fill:"currentColor",d:"m10 9 7-3-2.953 7.047L7 16z"})),C||(C=g.createElement("circle",{cx:12,cy:11,r:1,fill:"#fff"})));var R,O,L;function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),R||(R=g.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"})),O||(O=g.createElement("path",{fill:"currentColor",d:"M13.5 9V3L19 9z"})),L||(L=g.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M8.5 11.5h7M8.5 14.5h7M8.5 17.5H13"})));var B,G;function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),B||(B=g.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"})),G||(G=g.createElement("path",{fill:"currentColor",d:"M11.5 8.5H13v4h-1.5zM11.5 13.5H13V15h-1.5z"})));var F;function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement("svg",Y({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),F||(F=g.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 V,Z,q;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement("svg",Q({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),V||(V=g.createElement("mask",{id:"support_svg__a",fill:"#fff"},g.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"}))),Z||(Z=g.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)"})),q||(q=g.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 $=i(38432),K=i(62540);function HelpMenuLink({children:e,href:t,gaEventLabel:i,onClick:o,icon:n}){const s=(0,b.A)(),r=(0,k.i)("setupFlowRefresh"),a=(0,g.useCallback)(async()=>{o?.(),i&&await(0,x.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)($.A,{className:"mdc-list-item__text",href:t,role:"menuitem",onClick:a,leadingIcon:n,external:!0,hideExternalIndicator:!0,children:e})})}HelpMenuLink.propTypes={children:l().node.isRequired,href:l().string,gaEventLabel:l().string,onClick:l().func};const J=HelpMenuLink;function HelpMenu({children:e,showFeatureTour:t=!1}){const[i,o]=(0,g.useState)(!1),n=(0,g.useRef)(),s=(0,b.A)(),a=(0,k.i)("setupFlowRefresh");(0,c.A)(n,()=>o(!1)),(0,v.l)([u._f,u.wn],n,()=>o(!1));const l=(0,h.useSelect)(e=>e(y.i).isModuleActive(A.Py)),T=(0,h.useSelect)(e=>{if(!t||!a)return!1;return e(y.i).isModuleConnected(I.L1)?!1===e(N.K9).isGatheringData():!1===e(S.n).isGatheringData()},[t,a]),w=(0,g.useCallback)(()=>{i||(0,x.sx)(`${s}_headerbar`,"open_helpmenu"),o(!i)},[i,s]),j=(0,g.useCallback)(()=>{o(!1)},[]),C=(0,h.useSelect)(e=>e(f.O4).getDocumentationLinkURL("fix-common-issues")),{triggerOnDemandTour:E}=(0,h.useDispatch)(_.oR),R=(0,m.G)(),O=(0,g.useCallback)(()=>{E(R)},[E,R]),L=[{gaEventLabel:"fix_common_issues",href:C,children:(0,d.__)("Fix common issues","google-site-kit")},{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/",children:(0,d.__)("Read help docs","google-site-kit")},{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/",children:(0,d.__)("Get support","google-site-kit")},...l?[{gaEventLabel:"adsense_help",href:"https://support.google.com/adsense/",children:(0,d.__)("Get help with AdSense","google-site-kit")}]:[]],P=[{gaEventLabel:"browse_documentation",href:"https://sitekit.withgoogle.com/documentation/",icon:(0,K.jsx)(z,{width:24,height:24}),children:(0,d.__)("Browse documentation","google-site-kit")},{gaEventLabel:"get_support",href:"https://wordpress.org/support/plugin/google-site-kit/",icon:(0,K.jsx)(X,{width:24,height:24}),children:(0,d.__)("Get free support","google-site-kit")},...T?[{gaEventLabel:"start_tour",onClick:O,icon:(0,K.jsx)(D,{width:24,height:24}),children:(0,d.__)("Start a feature tour","google-site-kit")}]:[],{gaEventLabel:"send_feedback",href:"https://wordpress.org/support/plugin/google-site-kit/reviews/",icon:(0,K.jsx)(U,{width:24,height:24}),children:(0,d.__)("Send feedback","google-site-kit")},...l?[{gaEventLabel:"get_adsense_help",href:"https://support.google.com/adsense/",icon:(0,K.jsx)(M,{width:24,height:24}),children:(0,d.__)("Get help with AdSense","google-site-kit")}]:[]];return(0,K.jsxs)("div",{ref:n,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,K.jsx)(p.Button,{"aria-controls":"googlesitekit-help-menu","aria-expanded":i,"aria-label":(0,d.__)("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)(W,{width:"20",height:"20"}),onClick:w,tooltipEnterDelayInMS:500,text:!0}),(0,K.jsxs)(p.Menu,{className:r()("googlesitekit-width-auto",{"googlesitekit-help-menu":a}),menuOpen:i,id:"googlesitekit-help-menu",onSelected:j,children:[e,(a?P:L).map((e,t)=>(0,K.jsx)(J,{...e},t))]})]})}HelpMenu.propTypes={children:l().node,showFeatureTour:l().bool}},75662(e,t,i){i.d(t,{A:()=>m});var o=i(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(63696),l=i(44148),c=i(10740),g=i(62540);class LayoutFooter extends a.Component{render(){const{ctaLabel:e,ctaLink:t,footerContent:i}=this.props;return(0,g.jsx)("footer",{className:"googlesitekit-layout__footer",children:(0,g.jsx)(c.xA,{children:(0,g.jsx)(c.fI,{children:(0,g.jsxs)(c.fh,{size:12,children:[t&&e&&(0,g.jsx)(l.A,{className:"googlesitekit-data-block__source",name:e,href:t,external:!0}),i]})})})})}}LayoutFooter.propTypes={ctaLabel:r().string,ctaLink:r().string};const d=LayoutFooter;var u=i(38432),p=i(33052);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,g.jsx)("header",{className:"googlesitekit-layout__header",children:(0,g.jsx)(c.xA,{children:(0,g.jsxs)(c.fI,{children:[e&&(0,g.jsx)(c.fh,{...n,children:(0,g.jsxs)(p.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-subheading-1 googlesitekit-layout__header-title",children:[e,t]})}),o&&(0,g.jsx)(c.fh,{smSize:4,lgSize:6,alignMiddle:!0,mdAlignRight:!0,children:(0,g.jsx)(u.A,{href:o,external:!0,children:i})})]})})})}}LayoutHeader.propTypes={title:r().string,badge:r().node,ctaLabel:r().string,ctaLink:r().string},LayoutHeader.defaultProps={title:"",badge:null,ctaLabel:"",ctaLink:""};const h=LayoutHeader;class Layout extends a.Component{render(){const{header:e,footer:t,children:i,title:o,badge:s,headerCTALabel:r,headerCTALink:a,footerCTALabel:l,footerCTALink:c,footerContent:u,className:p,fill:m,relative:f,rounded:_=!1,transparent:y=!1,...k}=this.props;return(0,g.jsxs)("div",{className:n()("googlesitekit-layout",p,{"googlesitekit-layout--fill":m,"googlesitekit-layout--relative":f,"googlesitekit-layout--rounded":_,"googlesitekit-layout--transparent":y}),...k,children:[e&&(0,g.jsx)(h,{title:o,badge:s,ctaLabel:r,ctaLink:a}),i,t&&(0,g.jsx)(d,{ctaLabel:l,ctaLink:c,footerContent:u})]})}}Layout.propTypes={header:r().bool,footer:r().bool,children:r().node.isRequired,title:r().string,badge:r().node,headerCTALabel:r().string,headerCTALink:r().string,footerCTALabel:r().string,footerCTALink:r().string,footerContent:r().node,className:r().string,fill:r().bool,relative:r().bool,rounded:r().bool,transparent:r().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(84730),a=i(8732),l=i(50532),c=i.n(l),g=i(67438),d=i(62540);const u=c()(e=>({id:e,Notification:p(e)(g.A)}));function p(e){return t=>{function WithNotificationID(i){return(0,d.jsx)(t,{...i,id:e})}return WithNotificationID.displayName="WithNotificationID",(t.displayName||t.name)&&(WithNotificationID.displayName+=`(${t.displayName||t.name})`),WithNotificationID}}var h=i(62659);function Notifications({areaSlug:e,groupID:t=r.He.DEFAULT}){const i=(0,h.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:l}=o[0],c={...u(n)};return(0,d.jsx)(l,{...c})}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)}},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.181.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)-ts,CZ:()=>g,Ej:()=>N,Gw:()=>S,Is:()=>r,KK:()=>u,Nn:()=>T,OT:()=>b,SH:()=>v,Y$:()=>p,ZS:()=>a,bg:()=>f,en:()=>I,ep:()=>m,f7:()=>n,hi:()=>h,jU:()=>o,k$:()=>y,kz:()=>x,ly:()=>l,mo:()=>_,s3:()=>k,uR:()=>c,x2:()=>A,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",_="metricSelection",y="wpBlockEditor",k="keyMetricsSetup",v="key-metrics",b="traffic",A="site-goals",I="content",N="speed",S="monetization",x=[o,n,s,r,a,c,u,f,_],T=[s,r,d,m]},78990(e,t,i){i.d(t,{P9:()=>_,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 _(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(97241);var h=i(8084);const m=(0,o.I)({},globalThis.wp?.data);m.combineStores=h.o3,m.commonActions=h.jU,m.commonControls=h._5,m.commonStore=h.x0,m.createReducer=function(e){return(0,p.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:()=>T,RF:()=>x,WI:()=>N,_5:()=>b,jU:()=>v,o3:()=>k,x0:()=>I});var o=i(32091),n=i.n(o),s=i(17243),r=i(50532),a=i.n(r),l=i(78913);const c="GET_REGISTRY",g="AWAIT";function d(...e){const t=e.reduce((e,t)=>({...e,...t}),{}),i=A(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,_=d;function y(e){return e}function k(...e){const t=_(...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 A(e){const t=[],i={};for(let o=0;o=1?i[n]+1:1,i[n]>1&&t.push(n)}return t}const I={actions:v,controls:b,reducer:y};function N(e){return t=>S(e(t))}const S=a()(e=>(0,s.mapValues)(e,(e,t)=>(...i)=>{const o=e(...i);return n()(void 0!==o,`${t}(...) is not resolved`),o}));function x(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 T(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,{Fc:()=>n,Yg:()=>s,nX:()=>o});const o="core/ui",n="activeContextID",s="forced-in-view-widget-areas"},97345(e,t,i){i.d(t,{$8:()=>r,$Q:()=>p,BT:()=>D,CQ:()=>x,D1:()=>Z,DF:()=>V,GM:()=>S,GT:()=>y,GU:()=>q,HA:()=>P,HD:()=>u,HP:()=>E,J5:()=>B,JF:()=>M,JK:()=>f,Ml:()=>m,SS:()=>R,UF:()=>g,UY:()=>F,Vl:()=>O,W6:()=>W,Xq:()=>T,YQ:()=>w,Yw:()=>U,dV:()=>C,dX:()=>N,ej:()=>c,em:()=>s,ep:()=>A,fu:()=>v,gC:()=>k,hz:()=>h,jN:()=>Q,jx:()=>d,lV:()=>l,nH:()=>z,oR:()=>o,od:()=>a,p3:()=>_,pG:()=>I,qv:()=>n,qy:()=>j,t1:()=>Y,t7:()=>H,tB:()=>b,tK:()=>G,u_:()=>L});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",_="kmAnalyticsAdSenseTopEarningContent",y="kmAnalyticsEngagedTrafficSource",k="kmAnalyticsLeastEngagingPages",v="kmAnalyticsNewVisitors",b="kmAnalyticsPopularAuthors",A="kmAnalyticsPopularContent",I="kmAnalyticsPopularProducts",N="kmAnalyticsReturningVisitors",S="kmAnalyticsTopCities",x="kmAnalyticsTopCitiesDrivingLeads",T="kmAnalyticsTopCitiesDrivingAddToCart",M="kmAnalyticsTopCitiesDrivingPurchases",w="kmAnalyticsTopDeviceDrivingPurchases",j="kmAnalyticsTopConvertingTrafficSource",C="kmAnalyticsTopCountries",E="kmAnalyticsTopPagesDrivingLeads",D="kmAnalyticsTopRecentTrendingPages",R="kmAnalyticsTopTrafficSource",O="kmAnalyticsTopTrafficSourceDrivingAddToCart",L="kmAnalyticsTopTrafficSourceDrivingLeads",P="kmAnalyticsTopTrafficSourceDrivingPurchases",z="kmAnalyticsPagesPerVisit",B="kmAnalyticsVisitLength",G="kmAnalyticsTopReturningVisitorPages",H="kmSearchConsolePopularKeywords",U="kmAnalyticsVisitsPerVisitor",F="kmAnalyticsMostEngagingPages",Y="kmAnalyticsTopCategories",W=[_,y,k,v,b,A,I,N,Y,S,x,T,M,w,j,C,D,R,O,z,B,G,U,F,Y],V=[...W,H],Z="welcome-modal-with-tour",q="welcome-modal-gathering-data",Q="initial-setup-notification-timeout"},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(8732),l=i(7972);function c(e){return`notification/${e}/viewed`}function g(e){return(0,r.useSelect)(t=>!!t(l.nX).getValue(c(e)),[e])}g.getKey=c;var d=i(68761),u=i(37133);function ViewedStateObserver({id:e,observeRef:t,threshold:i}){const o=(0,u.A)(t,{threshold:i}),{setValue:n}=(0,r.useDispatch)(l.nX),{markNotificationSeen:c}=(0,r.useDispatch)(a.D),d=!!o?.isIntersecting,p=g(e),h=(0,s.useRef)();function m(){h.current&&clearTimeout(h.current)}return(0,s.useEffect)(()=>(!p&&d?(m(),h.current=setTimeout(()=>{o?.isIntersecting&&(n(g.getKey(e),!0),c(e))},3e3)):!d&&h.current&&m(),()=>{m()}),[p,d,n,c,e,o]),null}ViewedStateObserver.propTypes={id:n().string,observeRef:n().object,threshold:n().number};var p=i(62540);function Notification({id:e,className:t,gaTrackingEventArgs:i,children:o,onView:n}){const l=(0,s.useRef)(),c=g(e),u=(0,d.A)(e,i?.category,{viewAction:i?.viewAction}),[h,m]=(0,s.useState)(!1),f=(0,r.useSelect)(t=>t(a.D).getNotificationSeenDates(e)),{dismissNotification:_}=(0,r.useDispatch)(a.D);return(0,s.useEffect)(()=>{!h&&c&&(u.view(i?.label,i?.value),n?.(),m(!0)),f?.length>=3&&_(e,{skipHidingFromQueue:!0})},[c,u,h,i,n,f,_,e]),(0,p.jsxs)("section",{id:e,ref:l,className:t,children:[o,!c&&(0,p.jsx)(ViewedStateObserver,{id:e,observeRef:l,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(83891),c=i(71189),g=i(61983),d=i(41671),u=i(8732),p=i(68761),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,...c}){const g=(0,p.A)(e,r?.category),{dismissNotification:d}=(0,a.useDispatch)(u.D);let _=c?.svg;return _||t===f.INFO||(_={desktop:void 0,mobile:void 0,verticalPosition:"center"},t===f.WARNING&&(_.desktop="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYwIiBoZWlnaHQ9IjIzNCIgdmlld0JveD0iMCAwIDM2MCAyMzQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03My4xMzAyIDE3MC42NjhDODkuMzcxOSAxODkuOTkgMTE1LjQ3NiAxOTUuMTEgMTMxLjg2NSAxODkuOTkxQzE1My4yNDYgMTgzLjMxMiAxNjYuNjcyIDE2Mi45NjcgMTg1LjUwMiAxNjAuNTQ0QzIwNC4zMzMgMTU4LjEyMSAyMTUuNDA2IDE2OC43MDYgMjM1Ljg5NyAxNzAuMjMzQzI1Ni4zODkgMTcxLjc2IDI4MS4yMzIgMTY3LjYzIDI5Mi43OTEgMTM3LjkzNUMzMDQuMzQ5IDEwOC4yMzkgMjkzLjk0OCA3OC4yMzIxIDI3MC4yMTQgNjQuMzYxNUMyNDYuNDgxIDUwLjQ5MDggMjMzLjI3MSA2Ni43Njk0IDIxMC41NjQgNjguMTIzN0MxODcuODU4IDY5LjQ3NzkgMTc4LjAyMyA0NS44NTI4IDE2MS4wMjMgNDQuMzUyOEMxNDQuMDIzIDQyLjg1MjggMTM0LjUyMyA0NS44NTMgMTI0LjUyMyA1OC44NTI5QzExNC41MjMgNzEuODUyOCAxMjAuMzcxIDg1Ljc2NDEgODkuNTIzNSA5OS44NTNDNTguNjc1OCAxMTMuOTQyIDU2Ljg4ODUgMTUxLjM0NSA3My4xMzAyIDE3MC42NjhaIiBmaWxsPSIjRkZFNEIxIi8+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIwX2RfMjcwNV8xNzY4NikiPgo8cmVjdCB4PSIxMTYuNTIzIiB5PSI1Ny45MTk5IiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOC41MzMiIHJ4PSI2Ljk4MjUyIiBmaWxsPSIjRUJFRUYwIi8+CjxtYXNrIGlkPSJtYXNrMF8yNzA1XzE3Njg2IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIxMTYiIHk9IjU3IiB3aWR0aD0iMTI5IiBoZWlnaHQ9IjEzMiI+CjxyZWN0IHg9IjExNi41MjMiIHk9IjU3LjkxOTkiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTMwLjEzMyIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2ODYpIj4KPHJlY3QgeD0iMTI1LjA1NyIgeT0iMTE3LjY1MyIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjkzMzMiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHg9IjEyNS4wNTciIHk9IjEwMy4yNTMiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC45MzMzIiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjUuMDU3IiB5PSIxNTYuMDUzIiB3aWR0aD0iMTEwLjQiIGhlaWdodD0iMzAuOTMzMyIgcng9IjMuNzUxMjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljk0NjUiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAyMDMuNDU3IDk1LjYyNDkpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTYzLjk5IDk1LjYyNTcpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTI0LjUyMyA5NS42MjU3KSIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxwYXRoIGQ9Ik0xMTYuNTIzIDY0LjkzNTVDMTE2LjUyMyA2MS4wNzkyIDExOS42NSA1Ny45NTMgMTIzLjUwNiA1Ny45NTNIMjM3LjM4M0MyNDEuMjM5IDU3Ljk1MyAyNDQuMzY1IDYxLjA3OTIgMjQ0LjM2NSA2NC45MzU1VjY4LjUzM0gxMTYuNTIzVjY0LjkzNTVaIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSIxMjEuODEzIiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjcuMTA0IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzIuNDM3IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE4MC41MjMiIGN5PSIxMjAuODUzIiByPSIxNy4zNzkzIiBmaWxsPSIjNEUzMzAwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNzU4NjIiLz4KPGNpcmNsZSBjeD0iMS42NTUxNyIgY3k9IjEuNjU1MTciIHI9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTE2Ljk5MSkiIGZpbGw9IiNGRkU0QjEiLz4KPHJlY3Qgd2lkdGg9IjMuMzEwMzQiIGhlaWdodD0iOS4zNzkzMSIgcng9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTI4LjU3NykiIGZpbGw9IiNGRkU0QjEiLz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8yNzA1XzE3Njg2IiB4PSIxMDcuOTkiIHk9IjUxLjUxOTkiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0Ni4xMzMiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2ODYiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzY4NiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K"),t===f.ERROR&&(_.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)(l.A,{learnMoreLink:i&&{...i,onClick:async function(e){g.clickLearnMore(r?.label,r?.value),await(i?.onClick?.(e))}},dismissButton:o&&{...o,onClick:async function(t){await(o?.onClick?.(t)),g.dismiss(r?.label,r?.value),d(e,{...o?.dismissOptions})}},ctaButton:s&&{...s,onClick:async function(t){g.confirm(r?.label,r?.value),await(s?.onClick?.(t)),s?.dismissOnClick&&d(e,{...s?.dismissOptions})}},svg:_,...c})})})})})}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(g.A.propTypes),ctaButton:r().shape(c.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"},69908(e,t,i){i.r(t),i.d(t,{AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:()=>d,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:()=>p,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:()=>u,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:()=>g,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:()=>a,AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:()=>o,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:()=>c,AREA_MAIN_DASHBOARD_SITE_GOALS_PRIMARY:()=>n,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:()=>l,AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION:()=>r,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:()=>s,default:()=>h});const o="mainDashboardKeyMetricsPrimary",n="mainDashboardSiteGoalsPrimary",s="mainDashboardTrafficPrimary",r="mainDashboardTrafficAudienceSegmentation",a="mainDashboardContentPrimary",l="mainDashboardSpeedPrimary",c="mainDashboardMonetizationPrimary",g="entityDashboardTrafficPrimary",d="entityDashboardContentPrimary",u="entityDashboardSpeedPrimary",p="entityDashboardMonetizationPrimary",h={AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:o,AREA_MAIN_DASHBOARD_SITE_GOALS_PRIMARY:n,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:s,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:a,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:l,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:c,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:g,AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:d,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:u,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:p}},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(17243),n=i(18117),s=i(63696);function r(...e){const t=(0,n.MA)(()=>(0,o.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:()=>a});var o=i(63737),n=i(35470),s=i(63696),r=i(11999);function a(e,t){const{setValues:i}=(0,o.A)(r.s),a=(0,s.useCallback)(o=>{i(e,{[t]:o})},[i,e,t]);return[(0,n.A)(i=>{const{getValue:o}=i(r.s);return o(e,t)},[e,t]),a]}},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.nX).getInViewResetCount()),g=(0,n.A)(e=>e(a.nX).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}},37467(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o=i(63696),n=i(51568),s=i(82286);const __WEBPACK_DEFAULT_EXPORT__=function(e,t,i=globalThis){const[r,a]=(0,o.useState)((0,s.d)(i.location.href,e)||t);return[r,function(t){a(t);const o=(0,n.F)(i.location.href,{[e]:t});i.history.replaceState(null,"",o)}]}},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:()=>o.$,CR:()=>n.C,Cf:()=>r.DialogContent,Es:()=>r.DialogFooter,Nv:()=>l.N,P3:()=>c.P,Si:()=>s.S,fI:()=>g.fI,fh:()=>g.fh,lG:()=>a.a,xA:()=>g.xA});var o=i(3412),n=i(56655),s=i(30454),r=i(12786),a=i.n(r),l=i(91046),c=i(26569),g=i(14777)},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"},49481(e,t,i){i.d(t,{n:()=>o});const o="modules/search-console"},51193(e,t,i){i.d(t,{Du:()=>u,GH:()=>a,Gp:()=>l,IS:()=>_,Jg:()=>g,N_:()=>k,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 _(e,t){return m(k(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 k(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.bottomo})},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:()=>_.tt,Jg:()=>_.Jg,Gp:()=>_.Gp,GH:()=>_.GH,r0:()=>_.r0,Du:()=>_.Du,Zf:()=>M,Cn:()=>A,G7:()=>f,vH:()=>m,N_:()=>_.N_,zh:()=>j,mK:()=>g.mK,Ql:()=>_.Ql,vY:()=>b,sq:()=>_.sq,VZ:()=>I.VZ,JK:()=>g.JK,IS:()=>_.IS,pH:()=>I.pH,kf:()=>S,O5:()=>_.O5,Qr:()=>_.Qr,x6:()=>N,K5:()=>g.K5,S_:()=>h,dc:()=>I.dc,Eo:()=>g.Eo,jq:()=>g.jq,DK:()=>T.D,N9:()=>x,p9:()=>s.p,XH:()=>_.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"),'$1')}function u(e){return`

${e.replace(/\n{2,}/g,"

")}

`}function p(e){return e.replace(/\n/gi,"
")}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 _=i(51193),y=i(30908),k=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)(k.A,{direction:e>0?"up":"down",invertColor:i}))}function A(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var I=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 x(e){return Array.isArray(e)?[...e].sort():e}var T=i(11193);function M(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 j(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:()=>A,BI:()=>I});var o=i(17243),n=i(84895);const s="_googlesitekitDataLayer",r="data-googlesitekit-gtag";function a(e){return function(){e[s]=e[s]||[],e[s].push(arguments)}}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||{},_={activeModules:c,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:h,isSiteKitScreen:g,userRoles:f,isAuthenticated:m,pluginVersion:"1.181.0"},{enableTracking:y,disableTracking:k,isTrackingEnabled:v,initializeSnippet:b,trackEvent:A,trackEventOnce:I}=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=a(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[${r}]`)),o)return!1;o=!0;const a=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(n.t).join(","),active_modules:l.join(","),authenticated:u?"1":"0",user_properties:{user_roles:a,user_identifier:g}});const h=t.createElement("script");return h.setAttribute(r,""),h.async=!0,h.src=`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${s}`,t.head.appendChild(h),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${s}`}}}(c,t),d=function(e,t,i,o){const n=a(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)}}}(_);function N(e){e?y():k()}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.lengtha});var o=i(50539),n=i(74426),s=i(88273),r=i(62540);function a({moduleName:e,FallbackComponent:t,IncompleteComponent:i}){return a=>{function WhenActiveComponent(n){const l=(0,o.useSelect)(t=>t(s.i).getModule(e),[e]);if(!l)return null;const c=t||n.WidgetNull||null;if(!1===l.active)return c&&(0,r.jsx)(c,{...n});if(!1===l.connected){const e=i||c;return e&&(0,r.jsx)(e,{...n})}return(0,r.jsx)(a,{...n})}return WhenActiveComponent.displayName=`When${(0,n.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=58920,e(e.s=t);var t});e.O()}]);