"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[290,551,998],{41270(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.25253805,12.2519409 L9.65186195,17.9102474 C9.228777,19.1952969 9,20.5700374 9,22 C9,23.4299626 9.228777,24.8047031 9.65186195,26.0897526 L2.25253805,31.7480591 C0.809393905,28.8140208 0,25.5061199 0,22 C0,18.4938801 0.809393905,15.1859792 2.25253805,12.2519409 Z"}),n.createElement("path",{fill:"#EA4335",d:"M9.65186195,17.9102474 L2.25253805,12.2519409 C5.83100163,4.97661119 13.3061199,0 22,0 C27.6,0 32.6,2.1 36.5,5.5 L30.1,11.9 C27.9,10.1 25.1,9 22,9 C16.2299626,9 11.3590507,12.7249484 9.65186195,17.9102474 Z"}),n.createElement("path",{fill:"#34A853",d:"M2.24956066,31.7420035 L9.64586796,26.0715012 C11.3476258,31.2663086 16.223195,35 22,35 C28.1,35 32.7,31.9 33.8,26.5 L22,26.5 L22,18 L42.5,18 C42.8,19.3 43,20.7 43,22 C43,36 33,44 22,44 C13.3037079,44 5.82685413,39.0206271 2.24956066,31.7420035 Z"}),n.createElement("path",{fill:"#4285F4",d:"M36.3394527,38.5208666 L29.3149064,33.0825082 C31.6117078,31.6329963 33.209743,29.3976252 33.8,26.5 L22,26.5 L22,18 L42.5,18 C42.8,19.3 43,20.7 43,22 C43,29.170479 40.3767465,34.7670059 36.3394527,38.5208666 Z"}))))},72524(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.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM16.8059 9.592L17.3979 8.78606L15.7861 7.60206L15.1941 8.408L11.3039 13.704C11.1378 13.9302 10.944 14 10.7919 14C10.6399 14 10.4461 13.9302 10.28 13.704L8.80594 11.6973L8.21394 10.8914L6.60206 12.0754L7.19406 12.8813L8.66808 14.888C9.19137 15.6004 9.9708 16 10.7919 16C11.6131 16 12.3925 15.6005 12.9158 14.888L16.8059 9.592Z",clipRule:"evenodd"})))},37858(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:"M2.354 4.611H4.354V12.096H2.354z",transform:"rotate(-45 3.354 8.354)"}),n.createElement("path",{d:"M8.78-1.248H10.78V13.101H8.78z",transform:"rotate(45 9.78 5.927)"}))))},23966(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.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"})))},14565(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 10H2V12H0z"}))))},54399(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 21C4.45 21 3.975 20.8083 3.575 20.425C3.19167 20.025 3 19.55 3 19V5C3 4.45 3.19167 3.98333 3.575 3.6C3.975 3.2 4.45 3 5 3H12V5H5V19H19V12H21V19C21 19.55 20.8 20.025 20.4 20.425C20.0167 20.8083 19.55 21 19 21H5ZM9.7 15.7L8.3 14.3L17.6 5H14V3H21V10H19V6.4L9.7 15.7Z"})))},84543(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 23 22"},e),o||(o=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.5 22C9.97833 22 8.54833 21.7158 7.21 21.1475C5.87167 20.5608 4.7075 19.7725 3.7175 18.7825C2.7275 17.7925 1.93917 16.6283 1.3525 15.29C0.784167 13.9517 0.5 12.5217 0.5 11C0.5 9.47833 0.784167 8.04833 1.3525 6.71C1.93917 5.37167 2.7275 4.2075 3.7175 3.2175C4.7075 2.2275 5.87167 1.44833 7.21 0.879999C8.54833 0.293333 9.97833 0 11.5 0C13.0217 0 14.4517 0.293333 15.79 0.879999C17.1283 1.44833 18.2925 2.2275 19.2825 3.2175C20.2725 4.2075 21.0517 5.37167 21.62 6.71C22.2067 8.04833 22.5 9.47833 22.5 11C22.5 12.5217 22.2067 13.9517 21.62 15.29C21.0517 16.6283 20.2725 17.7925 19.2825 18.7825C18.2925 19.7725 17.1283 20.5608 15.79 21.1475C14.4517 21.7158 13.0217 22 11.5 22ZM11.5004 7.7C11.8121 7.7 12.0687 7.59917 12.2704 7.3975C12.4904 7.1775 12.6004 6.91167 12.6004 6.6C12.6004 6.28833 12.4904 6.03167 12.2704 5.83C12.0687 5.61 11.8121 5.5 11.5004 5.5C11.1887 5.5 10.9229 5.61 10.7029 5.83C10.5012 6.03167 10.4004 6.28833 10.4004 6.6C10.4004 6.91167 10.5012 7.1775 10.7029 7.3975C10.9229 7.59917 11.1887 7.7 11.5004 7.7ZM10.4004 16.5V9.9H12.6004V16.5H10.4004Z",clipRule:"evenodd"})))},84410(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.56625 7.49997L10.652 14.5858C11.4331 15.3668 12.6994 15.3668 13.4805 14.5858L20.5 7.56625"})),s||(s=r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M20.2461 17.5 15.5 12.7539M4 17.5 8.74607 12.7539"})))},49500(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 22L8.15 14.4L2 10H9.6L12 2L14.4 10H22L15.85 14.4L18.175 22L12 17.3L5.825 22Z"})))},84470(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 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})))},48858(e,t,i){i.d(t,{A:()=>l});var o=i(62688),n=i.n(o),s=i(82871),r=i(22994),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},62925(e,t,i){i.d(t,{A:()=>g});var o,n=i(4452),s=i.n(n),r=i(49383),a=i(63696);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),o||(o=a.createElement("path",{fill:"currentColor",d:"M7.33398 11.333H8.66732V7.33301H7.33398V11.333ZM8.00065 5.99967C8.18954 5.99967 8.3451 5.93856 8.46732 5.81634C8.60065 5.68301 8.66732 5.5219 8.66732 5.33301C8.66732 5.14412 8.60065 4.98856 8.46732 4.86634C8.3451 4.73301 8.18954 4.66634 8.00065 4.66634C7.81176 4.66634 7.65065 4.73301 7.51732 4.86634C7.3951 4.98856 7.33398 5.14412 7.33398 5.33301C7.33398 5.5219 7.3951 5.68301 7.51732 5.81634C7.65065 5.93856 7.81176 5.99967 8.00065 5.99967ZM8.00065 14.6663C7.07843 14.6663 6.21176 14.4941 5.40065 14.1497C4.58954 13.7941 3.88398 13.3163 3.28398 12.7163C2.68398 12.1163 2.20621 11.4108 1.85065 10.5997C1.50621 9.78856 1.33398 8.9219 1.33398 7.99967C1.33398 7.07745 1.50621 6.21078 1.85065 5.39967C2.20621 4.58856 2.68398 3.88301 3.28398 3.28301C3.88398 2.68301 4.58954 2.21078 5.40065 1.86634C6.21176 1.51079 7.07843 1.33301 8.00065 1.33301C8.92287 1.33301 9.78954 1.51079 10.6007 1.86634C11.4118 2.21078 12.1173 2.68301 12.7173 3.28301C13.3173 3.88301 13.7895 4.58856 14.134 5.39967C14.4895 6.21078 14.6673 7.07745 14.6673 7.99967C14.6673 8.9219 14.4895 9.78856 14.134 10.5997C13.7895 11.4108 13.3173 12.1163 12.7173 12.7163C12.1173 13.3163 11.4118 13.7941 10.6007 14.1497C9.78954 14.4941 8.92287 14.6663 8.00065 14.6663ZM8.00065 13.333C9.48954 13.333 10.7507 12.8163 11.784 11.783C12.8173 10.7497 13.334 9.48856 13.334 7.99967C13.334 6.51079 12.8173 5.24967 11.784 4.21634C10.7507 3.18301 9.48954 2.66634 8.00065 2.66634C6.51176 2.66634 5.25065 3.18301 4.21732 4.21634C3.18398 5.24967 2.66732 6.51079 2.66732 7.99967C2.66732 9.48856 3.18398 10.7497 4.21732 11.783C5.25065 12.8163 6.51176 13.333 8.00065 13.333Z"})));var d=i(97015);const g=({onOpen:e,title:t,tooltipClassName:i})=>t?d.createElement(r.Tooltip,{className:"googlesitekit-info-tooltip",tooltipClassName:s()("googlesitekit-info-tooltip__content",i),title:t,placement:"top",enterTouchDelay:0,leaveTouchDelay:5e3,onOpen:e,interactive:!0},d.createElement("span",{tabIndex:0,role:"tooltip"},d.createElement(c,{width:"16",height:"16"}))):null},12187(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)}},57814(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_CIRCLE="info-circle",e.INFO_ALT="info-alt",e.INFO_ALT_2="info-alt-2",e.ERROR="error",e}({})},56848(e,t,i){i.d(t,{A:()=>C});var o=i(4452),n=i.n(o),s=i(63696),r=i(57814),a=i(62688),l=i.n(a),c=i(49383),d=i(54399),g=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,g.jsx)(d.A,{width:14,height:14})),(0,g.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(12187),h=i(82871),p=i(97015);const Notice_DismissButton=({label:e=(0,h.__)("Got it","google-site-kit"),onClick:t,disabled:i,href:o,external:s=!1,variant:r="text",icon:a,ariaLabel:l})=>p.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(72524),_=i(84543),k=i(49500);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),m||(m=s.createElement("path",{fill:"currentColor",d:"M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM12 15C11.1716 15 10.5 15.6716 10.5 16.5C10.5 17.3284 11.1716 18 12 18C12.8284 18 13.5 17.3284 13.5 16.5C13.5 15.6716 12.8284 15 12 15ZM11 13H13V6H11V13Z"}))),y={[r.L.NEW]:k.A,[r.L.SUCCESS]:f.A,[r.L.INFO]:warning_notice,[r.L.INFO_CIRCLE]:_.A,[r.L.WARNING]:warning_notice,[r.L.ERROR]:warning_notice};function Icon({type:e}){const t=y[e]||warning_notice;return(0,g.jsx)(t,{width:24,height:24})}Icon.propTypes={type:l().oneOf(Object.values(r.L))};var b=i(97015);const Notice_Title=({className:e,children:t})=>b.createElement("p",{className:n()("googlesitekit-notice__title",e)},t);var x=i(97015);const C=(0,s.forwardRef)(({actionContent:e,className:t,title:i,description:o,dismissButton:s,ctaButton:a,type:l=r.L.INFO,children:c,hideIcon:d},g)=>{const h=function(e){return"icon"===e?.variant?!!e.icon&&!!e.ariaLabel&&(e.onClick||e.href):!!e?.label||!!e?.onClick||!!e?.href}(s),p=!!a?.label&&(a?.onClick||a?.href),m=!!e||h||p;return x.createElement("div",{className:"googlesitekit-notice-container",ref:g},x.createElement("div",{className:n()("googlesitekit-notice",`googlesitekit-notice--${l}`,t),role:"status"},!d&&x.createElement("div",{className:"googlesitekit-notice__icon"},x.createElement(Icon,{type:l})),x.createElement("div",{className:"googlesitekit-notice__content"},i&&x.createElement(Notice_Title,null,i),o&&x.createElement(u.A,null,o),c),m&&x.createElement("div",{className:"googlesitekit-notice__action"},e,h&&x.createElement(Notice_DismissButton,s||{}),p&&x.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}))))})},50940(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),d=i(79558);var g=i(32200),u=i(50509),h=i(75865),p=i(22994),m=i(97015);function SourceLink({name:e="",href:t="",className:i="",external:o=!1}){const s=(0,g.A)(),r=(0,u.A)(),f=(0,a.useContext)(d.Ay),_=(0,a.useCallback)(()=>{f.slug&&s&&(0,h.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(p.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},85507(e,t,i){i.d(t,{Q:()=>o});const o="emailReportingUserSettingsSelectionPanelOpened"},58475(e,t,i){i.d(t,{G:()=>y});var o=i(50539),n=i(82871),s=i(25084),r=i(5205),a=i(34740);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 d({isViewOnly:e,canAuthenticate:t,isAnalyticsConnected:i,isActivateAnalyticsNotificationPresent:o,isKeyMetricsWidgetPresent:d,isAudienceSegmentationWidgetPresent:g}){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:[d&&{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},g&&{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},(!d||!g)&&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 g=i(55258),u=i(96530),h=i(71764),p=i(92255),m=i(7029),f=i(32200),_=i(50509),k=i(99295),v=i(44446);function y(){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(h.i).isModuleConnected(k.L1)&&e(u.oR).hasAccessToShareableModule(k.L1),[]),r=(0,o.useSelect)(e=>{if(t!==s.jU)return!1;const i=e(m.D).getQueuedNotifications(s.jU,p.He.DEFAULT);return"activate-analytics-notification"===i?.[0]?.id},[t]),a=(0,o.useSelect)(e=>n&&!!e(g.O4).isKeyMetricsSetupCompleted()&&!e(u.oR).isKeyMetricsWidgetHidden(),[n]),l=(0,o.useSelect)(e=>n&&!!e(v.K9).isAudienceSegmentationSetupCompleted()&&!e(u.oR).isAudienceSegmentationWidgetHidden(),[n]);return d({isViewOnly:e,canAuthenticate:i,isAnalyticsConnected:!!n,isActivateAnalyticsNotificationPresent:r,isKeyMetricsWidgetPresent:a,isAudienceSegmentationWidgetPresent:l})}},84980(e,t,i){i.d(t,{$n:()=>P});var o=i(12786),n=i.n(o),s=i(91310),r=i.n(s),a=i(26805),l=i.n(a),c=i(65165),d=i.n(c),g=i(66593),u=i(3789),h=i(39525),p=i(4452),m=i.n(p),f=i(62688),_=i.n(f),k=i(62540);function Chip({id:e,label:t,onClick:i,selected:o,className:n,CheckMark:s=h.ChipCheckmark,disabled:r,...a}){return(0,k.jsx)(h.Chip,{chipCheckmark:(0,k.jsx)(s,{}),"data-chip-id":e,id:e,label:t,onClick:e=>{r||i?.(e)},selected:o,className:m()("googlesitekit-chip",n,{"googlesitekit-chip--disabled":r}),...a})}Chip.propTypes={id:_().string.isRequired,label:_().string.isRequired,onClick:_().func,selected:_().bool,className:_().string,CheckMark:_().elementType};var v=i(11375),y=i(47485),b=i(63696),x=i(25533);const C=(0,b.forwardRef)(({children:e,className:t,menuOpen:i,menuItems:o,onSelected:n,nonInteractive:s,id:r},a)=>{const[l,c]=(0,b.useState)(null),d=(0,b.useRef)(null),g=(0,y.A)(a,d),u=(0,b.useCallback)(e=>{const{detail:{index:t}}=e;n(t,e)},[n]);return(0,b.useEffect)(()=>{if(!d?.current)return()=>{};const e=new x.CR(d.current);return e.listen("MDCMenu:selected",u),e.quickOpen=!0,c(e),()=>{e.unlisten("MDCMenu:selected",u),e.destroy()}},[d,u,s]),(0,b.useEffect)(()=>{l&&(l.open=i,l.setDefaultFocusState(1))},[l,i]),(0,k.jsx)("div",{className:m()("mdc-menu","mdc-menu-surface",t),ref:g,children:(0,k.jsxs)("ul",{"aria-hidden":!i,"aria-orientation":"vertical",className:m()("mdc-list",{"mdc-list--non-interactive":s}),id:r,role:"menu",tabIndex:"-1",children:[!e&&o.map((e,t)=>(0,k.jsx)("li",{className:"mdc-list-item",role:"menuitem",children:(0,k.jsx)("span",{className:"mdc-list-item__text",children:e})},t)),e]})})});C.displayName="Menu",C.propTypes={className:_().string,children:_().node,menuOpen:_().bool.isRequired,menuItems:_().array,id:_().string.isRequired,onSelected:_().func,nonInteractive:_().bool},C.defaultProps={onSelected:()=>{},nonInteractive:!1};const A=C;var M=i(49456),S=i(64510);function ProgressBar({className:e,small:t,compress:i,indeterminate:o,height:n,verticalSpacing:s,mobileVerticalSpacing:r,tabletVerticalSpacing:a,desktopVerticalSpacing:l,progress:c}){const d=(0,S.dv)();let g,u,h=s;if(S.mp===d&&void 0!==r?h=r:S.Lg===d&&void 0!==a?h=a:S.Qb!==d&&S.Fo!==d||void 0===l||(h=l),void 0!==h&&(g=0===h?0:Math.round(h/2)),o)c&&(u={transform:`scaleX(${c})`});else{u={transform:"none",width:100*Math.max(0,Math.min(1,c||0))+"%"}}return(0,k.jsxs)("div",{role:"progressbar",style:{marginTop:g,marginBottom:g,...n&&{height:`${n}px`}},className:m()("mdc-linear-progress",e,{"mdc-linear-progress--indeterminate":o,"mdc-linear-progress--small":t,"mdc-linear-progress--compress":i}),children:[(0,k.jsx)("div",{className:"mdc-linear-progress__buffering-dots"}),(0,k.jsx)("div",{className:"mdc-linear-progress__buffer"}),(0,k.jsx)("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:u,children:(0,k.jsx)("span",{className:"mdc-linear-progress__bar-inner"})}),(0,k.jsx)("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar",children:(0,k.jsx)("span",{className:"mdc-linear-progress__bar-inner"})})]})}function Radio(e){const{id:t,name:i,value:o,checked:n=!1,disabled:s=!1,children:r,tabIndex:a,onKeyDown:l=null,onClick:c=null,onChange:d=null,alignLeft:g=!1,description:u}=e,h=(0,b.useCallback)(e=>{if(null!==e){const t=new x.$z(e),i=e.querySelector(".mdc-radio");i&&(t.input=new x.Si(i))}},[]);return(0,k.jsxs)("div",{className:"mdc-form-field",ref:h,children:[(0,k.jsxs)("div",{className:m()("mdc-radio",{"mdc-radio--disabled":s,"mdc-radio--align-left":g}),children:[(0,k.jsx)("input",{className:"mdc-radio__native-control",onClick:c,onKeyDown:l,type:"radio",id:t,name:i,value:o,checked:n,disabled:s,tabIndex:a,onChange:d,readOnly:!0}),(0,k.jsxs)("div",{className:"mdc-radio__background",children:[(0,k.jsx)("div",{className:"mdc-radio__outer-circle"}),(0,k.jsx)("div",{className:"mdc-radio__inner-circle"})]})]}),!u&&(0,k.jsx)("label",{htmlFor:t,children:r}),u&&(0,k.jsxs)("div",{className:"mdc-radio__content",children:[(0,k.jsx)("label",{htmlFor:t,children:r}),(0,k.jsx)("div",{className:"mdc-radio__description",children:u})]})]})}ProgressBar.propTypes={className:_().string,small:_().bool,compress:_().bool,indeterminate:_().bool,progress:_().number,height:_().number,verticalSpacing:_().number,mobileVerticalSpacing:_().number,tabletVerticalSpacing:_().number,desktopVerticalSpacing:_().number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0,height:4},Radio.propTypes={onClick:_().func,onKeyDown:_().func,onChange:_().func,id:_().string.isRequired,name:_().string.isRequired,value:_().string.isRequired,checked:_().bool,disabled:_().bool,children:_().string.isRequired,tabIndex:_().oneOfType([_().number,_().string]),description:_().node};var N=i(52684);var w=i(38416),j=i(53328);function Switch({onClick:e,label:t,checked:i,disabled:o,hideLabel:n}){const s=(0,N.A)(Switch),r=(0,b.useCallback)(e=>{null!==e&&x.P3.attachTo(e)},[]),a=(0,b.useCallback)(t=>{"function"==typeof e&&j.Fm===t.keyCode&&e(t)},[e]),l=`googlesitekit-switch-${s}`;return(0,k.jsxs)(b.Fragment,{children:[(0,k.jsxs)("div",{"aria-checked":i?"true":"false",className:m()("mdc-switch",{"mdc-switch--checked":i,"mdc-switch--disabled":o}),onClick:e,onKeyDown:a,role:"switch",ref:r,tabIndex:0,children:[(0,k.jsx)("div",{className:"mdc-switch__track",children:" "}),(0,k.jsx)("div",{className:"mdc-switch__thumb-underlay",children:(0,k.jsx)("div",{className:"mdc-switch__thumb",children:(0,k.jsx)("input",{type:"checkbox",id:l,className:"mdc-switch__native-control",role:"switch",checked:i,disabled:o,readOnly:!0})})})]}),(0,k.jsx)("label",{className:m()({"screen-reader-only":n}),htmlFor:l,children:t})]})}Switch.propTypes={id:_().string,onClick:_().func,label:_().node.isRequired,checked:_().bool,disabled:_().bool,hideLabel:_().bool},Switch.defaultProps={checked:!1,disabled:!1,hideLabel:!0};const E=Switch;var I=i(38748),T=i.n(I);function TextField({className:e,name:t,label:i,noLabel:o,outlined:n,textarea:s,leadingIcon:r,trailingIcon:a,helperText:l,id:c,inputType:d,value:g,size:u,maxLength:h,tabIndex:p,disabled:m,onChange:f,onKeyDown:_}){const v=(0,N.A)(TextField,"googlesitekit-textfield");return(0,k.jsx)(T(),{className:e,name:t,label:i,noLabel:o,outlined:n,textarea:s,leadingIcon:r,trailingIcon:a,helperText:l&&(0,k.jsx)(I.HelperText,{persistent:!0,children:l}),children:(0,k.jsx)(I.Input,{id:c||v,inputType:d,value:g,size:u,maxLength:h,tabIndex:p,disabled:m,onChange:f,onKeyDown:_})})}TextField.propTypes={className:_().string,name:_().string,label:_().string,noLabel:_().bool,outlined:_().bool,textarea:_().bool,leadingIcon:_().element,trailingIcon:_().oneOfType([_().bool,_().element]),helperText:_().oneOfType([_().bool,_().string]),id:_().string,inputType:_().string,value:_().oneOfType([_().string,_().number]),size:_().number,maxLength:_().number,tabIndex:_().oneOfType([_().number,_().string]),disabled:_().bool,onChange:_().func,onKeyDown:_().func};const R=TextField;var L=i(41794);const D={Button:g.A,Checkbox:u.A,Chip,CircularProgress:v.A,Dialog:n(),DialogTitle:o.DialogTitle,DialogContent:o.DialogContent,DialogFooter:o.DialogFooter,HelperText:I.HelperText,Menu:A,Option:s.Option,Popper:M.A,ProgressBar,Radio,Select:function Select({id:e,helperText:t,...i}){const o=(0,N.A)(Select,"googlesitekit-select");return(0,k.jsx)(r(),{id:e||o,helperText:t?(0,k.jsx)(s.SelectHelperText,{children:t}):void 0,...i})},SpinnerButton:w.A,SPINNER_POSITION:w.k,Switch:E,Tab:l(),TabBar:d(),TextField:R,Tooltip:L.A},O=D;void 0===globalThis.googlesitekit&&(globalThis.googlesitekit={}),globalThis.googlesitekit.components=O;const{Button:P,Checkbox:Z,Chip:z,CircularProgress:H,Dialog:B,DialogTitle:F,DialogContent:V,DialogFooter:U,Menu:G,Option:W,ProgressBar:Y,Radio:$,Select:K,SpinnerButton:Q,Switch:X,Tab:q,TabBar:J,TextField:ee,HelperText:te,Tooltip:ie}=O},85110(e,t,i){i.d(t,{WM:()=>o.WM,wA:()=>o.wA,ws:()=>o.ws});var o=i(66266);void 0===globalThis.googlesitekit&&(globalThis.googlesitekit={}),globalThis.googlesitekit.data=o.Ay},14907(e,t,i){var o=i(50037),n=i(78325),s=i(50539),r=i(17243),a=i(39016),l=i(63696),c=i(82871),d=i(54419),g=i(49383),u=i(68575),h=i(69231),p=i(76466),m=i(17417),f=i(36160),_=i(55258),k=i(96530),v=i(25533),y=i(4452),b=i.n(y),x=i(62688),C=i.n(x),A=i(37858),M=i(14565),S=i(62540);class WizardProgressStep extends l.Component{render(){const{currentStep:e,step:t,title:i,status:o,warning:n,error:s,stepKey:r}=this.props;let a=o;n?a="warning":s&&(a="error");let l=!1;switch(a){case"warning":case"error":l=(0,S.jsx)(M.A,{height:"12",width:"2"});break;case"completed":l=(0,S.jsx)(A.A,{height:"12",width:"16"})}return(0,S.jsxs)("div",{className:b()("googlesitekit-wizard-progress-step",`googlesitekit-wizard-progress-step--${t}`,`googlesitekit-wizard-progress-step--${r}`,{"googlesitekit-wizard-progress-step--current":e}),children:[(0,S.jsx)("div",{className:"googlesitekit-wizard-progress-step__number-wrapper",children:(0,S.jsxs)("div",{className:b()("googlesitekit-wizard-progress-step__number",`googlesitekit-wizard-progress-step__number--${a}`),children:[(0,S.jsx)("span",{className:b()("googlesitekit-wizard-progress-step__number-text",`googlesitekit-wizard-progress-step__number-text--${a}`),children:t}),l&&(0,S.jsx)("span",{className:b()("googlesitekit-wizard-progress-step__number-icon",`googlesitekit-wizard-progress-step__number-icon--${a}`),children:l})]})}),(0,S.jsx)("p",{className:"googlesitekit-wizard-progress-step__text",children:i})]})}}WizardProgressStep.propTypes={currentStep:C().bool.isRequired,step:C().number.isRequired,title:C().string,status:C().string,warning:C().bool,error:C().bool},WizardProgressStep.defaultProps={title:"",status:"",warning:!1,error:!1,removeFirstStep:!1};const N=WizardProgressStep;var w=i(22855),j=i(13057),E=i(25084),I=i(75865);class WizardStepAuthentication extends l.Component{constructor(e){super(e),this.onButtonClick=this.onButtonClick.bind(this)}async onButtonClick(){const{connectURL:e,isSiteKitConnected:t}=this.props;await Promise.all([(0,f.SO)("start_user_setup",!0),(0,I.sx)(`${E.uR}_setup`,"start_user_setup","custom-oauth")]),t||await Promise.all([(0,f.SO)("start_site_setup",!0),(0,I.sx)(`${E.uR}_setup`,"start_site_setup","custom-oauth")]),document.location=e}render(){const{needReauthenticate:e,resetAndRestart:t}=this.props;return(0,S.jsx)("section",{className:"googlesitekit-wizard-step googlesitekit-wizard-step--two",children:(0,S.jsx)(v.xA,{children:(0,S.jsx)(v.fI,{children:(0,S.jsxs)(v.fh,{size:12,children:[(0,S.jsx)(m.A,{as:"h3",className:"googlesitekit-wizard-step__title",size:"small",type:"headline",children:(0,c.__)("Authenticate with Google","google-site-kit")}),(0,S.jsx)(j.A,{children:(0,c.__)("Please sign into your Google account to begin.","google-site-kit")}),e&&(0,S.jsx)("p",{className:"googlesitekit-error-text",children:(0,c.__)("You did not grant access to one or more of the requested scopes. Please grant all scopes that you are prompted for.","google-site-kit")}),(0,S.jsxs)(j.A,{children:[(0,S.jsx)(g.Button,{onClick:this.onButtonClick,children:(0,c._x)("Sign in with Google","Service name","google-site-kit")}),t&&(0,S.jsx)(g.Button,{className:"googlesitekit-wizard-step__back",onClick:t,tertiary:!0,children:(0,c.__)("Back","google-site-kit")})]}),(0,S.jsx)("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify",children:(0,S.jsx)(w.A,{})})]})})})})}}WizardStepAuthentication.propTypes={connectURL:C().string.isRequired,resetAndRestart:C().func};const T=WizardStepAuthentication;class WizardStepCompleteSetup extends l.Component{constructor(e){super(e);const{hasSearchConsoleProperty:t}=globalThis._googlesitekitLegacyData.setup;t?(0,I.sx)("plugin_setup","user_verified"):(0,I.sx)("plugin_setup","site_verified")}render(){return(0,S.jsx)("section",{className:"googlesitekit-wizard-step googlesitekit-wizard-step--five",children:(0,S.jsx)(v.xA,{children:(0,S.jsx)(v.fI,{children:(0,S.jsxs)(v.fh,{size:12,children:[(0,S.jsx)(m.A,{as:"h3",className:"googlesitekit-wizard-step__title",size:"small",type:"headline",children:(0,c.__)("Congratulations!","google-site-kit")}),(0,S.jsx)(j.A,{children:(0,c.__)("You successfully completed the Site Kit setup and connected Search Console. Check the dashboard for more services to connect.","google-site-kit")}),(0,S.jsx)("div",{className:"googlesitekit-wizard-step__action",children:(0,S.jsx)(g.Button,{id:"wizard-step-five-proceed",onClick:this.props.completeSetup,children:(0,c.__)("Go to dashboard","google-site-kit")})})]})})})})}}WizardStepCompleteSetup.propTypes={completeSetup:C().func.isRequired};const R=WizardStepCompleteSetup;var L=i(40356);class SearchConsole extends l.Component{constructor(e){super(e);const{siteURL:t}=globalThis._googlesitekitLegacyData.admin;this.state={loading:!0,sites:!1,selectedURL:t,siteURL:t,connected:!1,errorCode:!1,errorMsg:""},this.handleURLSelect=this.handleURLSelect.bind(this),this.insertPropertyToSearchConsole=this.insertPropertyToSearchConsole.bind(this),this.submitPropertyEventHandler=this.submitPropertyEventHandler.bind(this)}componentDidMount(){const{isAuthenticated:e,shouldSetup:t}=this.props;e&&t&&this.requestSearchConsoleSiteList()}requestSearchConsoleSiteList(){const{setErrorMessage:e}=this.props;(async()=>{try{const t=await(0,d.get)("modules",L.Y,"matched-sites",void 0,{useCache:!1});if(1===t.length)return await this.insertPropertyToSearchConsole({siteURL:t[0].siteURL}),void this.props.searchConsoleSetup(t[0].siteURL);if(!t.length)throw{code:"no_property_matched",message:(0,c.__)("Your site has not been added to Search Console yet. Would you like to add it now?","google-site-kit")};throw e(""),this.setState({loading:!1,selectedURL:t[0].siteURL,sites:t}),{code:"multiple_properties_matched",message:(0,c.sprintf)(/* translators: %s: the number of matching properties */ /* translators: %s: the number of matching properties */ (0,c.__)("We found %d existing accounts. Please choose which one to use below.","google-site-kit"),t.length)}}catch(t){e(t.message),this.setState({loading:!1,errorCode:t.code,errorMsg:t.message})}})()}async insertPropertyToSearchConsole({siteURL:e,isNew:t=!1}){await(0,d.set)("modules",L.Y,"site",{siteURL:e}),t&&await(0,I.sx)("search_console_setup","add_new_sc_property"),this.setState({loading:!1,connected:!0})}submitPropertyEventHandler(){const{selectedURL:e,errorCode:t}=this.state,{setErrorMessage:i}=this.props;(async()=>{try{await this.insertPropertyToSearchConsole({siteURL:e,isNew:"no_property_matched"===t}),i(""),this.props.searchConsoleSetup(e)}catch(e){i(e.message[0].message),this.setState({loading:!1,errorCode:e.code,errorMsg:e.message[0].message})}})()}handleURLSelect(e,t){this.setState({selectedURL:t.getAttribute("data-value")})}matchedForm(){const{sites:e,selectedURL:t}=this.state;if(!e)return null;const i=e.map(e=>{let t=e.siteURL;return t.startsWith("sc-domain:")&&(t=(0,c.sprintf)(/* translators: %s: Search Console property domain name */ /* translators: %s: Search Console property domain name */ (0,c.__)("%s (domain property)","google-site-kit"),t.replace(/^sc-domain:/,""))),{label:t,value:e.siteURL}});return(0,S.jsxs)(l.Fragment,{children:[(0,S.jsx)("div",{className:"googlesitekit-setup-module__inputs",children:(0,S.jsx)(g.Select,{name:"siteProperty",label:(0,c.__)("Choose URL","google-site-kit"),onEnhancedChange:this.handleURLSelect,options:i,value:t,enhanced:!0,outlined:!0})}),(0,S.jsx)("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify",children:(0,S.jsx)(g.Button,{onClick:this.submitPropertyEventHandler,children:(0,c.__)("Continue","google-site-kit")})})]})}static connected(){return(0,S.jsxs)("section",{className:"googlesitekit-setup-module googlesitekit-setup-module--search-console",children:[(0,S.jsx)(m.A,{as:"h3",className:"googlesitekit-setup-module__title",size:"small",type:"headline",children:(0,c._x)("Search Console","Service name","google-site-kit")}),(0,S.jsx)("p",{className:"googlesitekit-setup-module__text--no-margin",children:(0,c.__)("Your Search Console is set up with Site Kit.","google-site-kit")})]})}noSiteForm(){const{siteURL:e}=this.state;return(0,S.jsxs)(l.Fragment,{children:[(0,S.jsx)("div",{className:"googlesitekit-setup-module__inputs",children:(0,S.jsx)(g.TextField,{label:(0,c.__)("Website Address","google-site-kit"),name:"siteProperty",value:e,outlined:!0})}),(0,S.jsx)("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify",children:(0,S.jsx)(g.Button,{onClick:this.submitPropertyEventHandler,children:(0,c.__)("Continue","google-site-kit")})})]})}renderForm(){const{loading:e,sites:t}=this.state;return e?(0,S.jsxs)(l.Fragment,{children:[(0,S.jsx)(j.A,{children:(0,c.__)("We’re locating your Search Console account.","google-site-kit")}),(0,S.jsx)(g.ProgressBar,{})]}):0===t.length?this.noSiteForm():this.matchedForm()}render(){const{isAuthenticated:e,shouldSetup:t}=this.props,{errorMsg:i,connected:o}=this.state;return!t||o?SearchConsole.connected():(0,S.jsxs)("section",{className:"googlesitekit-setup-module googlesitekit-setup-module--search-console",children:[(0,S.jsx)(m.A,{as:"h3",className:"googlesitekit-setup-module__title",size:"small",type:"headline",children:(0,c._x)("Search Console","Service name","google-site-kit")}),i&&0{try{const{verified:e,identifier:t}=await(0,d.get)("modules","site-verification","verification",void 0,{useCache:!1});if(e){await(0,I.sx)("verification_setup","verification_check_true");if(!0===(await this.insertSiteVerification(t)).verified)return void this.props.siteVerificationSetup(!0)}else await(0,I.sx)("verification_setup","verification_check_false");return void this.setState({loading:!1,siteURL:t})}catch(t){let i=t.message;if((0,I.BG)(t.message)){i=JSON.parse(t.message).error.message||t.message}e(i),this.setState({loading:!1,errorCode:t.code,errorMsg:i,siteURL:globalThis._googlesitekitLegacyData.admin.siteURL})}})()}async insertSiteVerification(e){return await(0,d.set)("modules","site-verification","verification",{siteURL:e})}async onProceed(){const{setErrorMessage:e}=this.props,t=this.state.siteURL?this.state.siteURL:globalThis._googlesitekitLegacyData.admin.siteURL;e(""),this.setState({loading:!0,loadingMsg:(0,c.__)("Verifying…","google-site-kit"),errorCode:!1,errorMsg:""});try{!0===(await this.insertSiteVerification(t)).verified&&((0,I.sx)("verification_setup","verification_insert_tag"),this.props.siteVerificationSetup(!0))}catch(t){let i=t.message;if((0,I.BG)(t.message)){i=JSON.parse(t.message).error.message||t.message}e(i),this.setState({loading:!1,errorCode:t.code,errorMsg:i})}}renderForm(){const{loading:e,loadingMsg:t,siteURL:i}=this.state,o=(0,S.jsxs)(l.Fragment,{children:[t&&(0,S.jsx)(j.A,{children:t}),(0,S.jsx)(g.ProgressBar,{})]});return e?o:(0,S.jsxs)(l.Fragment,{children:[(0,S.jsx)("div",{className:"googlesitekit-wizard-step__inputs",children:(0,S.jsx)(g.TextField,{label:(0,c.__)("Website Address","google-site-kit"),name:"siteProperty",value:i,outlined:!0})}),(0,S.jsx)("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify",children:(0,S.jsx)(g.Button,{onClick:this.onProceed,children:(0,c.__)("Continue","google-site-kit")})})]})}static renderSetupDone(){return(0,S.jsxs)(l.Fragment,{children:[(0,S.jsx)(m.A,{as:"h3",className:"googlesitekit-wizard-step__title",size:"small",type:"headline",children:(0,c.__)("Verify URL","google-site-kit")}),(0,S.jsx)("p",{className:"googlesitekit-wizard-step__text",children:(0,c.__)("Congratulations, your site has been verified!","google-site-kit")})]})}render(){const{isAuthenticated:e,shouldSetup:t}=this.props,{errorMsg:i}=this.state;return t?(0,S.jsxs)(l.Fragment,{children:[(0,S.jsx)(m.A,{as:"h3",className:"googlesitekit-wizard-step__title",size:"small",type:"headline",children:(0,c.__)("Verify URL","google-site-kit")}),(0,S.jsx)("p",{className:"googlesitekit-wizard-step__text",children:(0,c.__)("We will need to verify your URL for Site Kit.","google-site-kit")}),i&&0!0,isCompleted:e=>e.isSiteKitConnected&&e.isAuthenticated&&!e.needReauthenticate,Component:T},verification:{title:(0,c.__)("Verify URL","google-site-kit"),required:!0,isApplicable:()=>!0,isCompleted:e=>e.isSiteKitConnected&&e.isAuthenticated&&e.isVerified,Component:Z},seachConsoleProperty:{title:(0,c.__)("Connect Search Console","google-site-kit"),required:!0,isApplicable:()=>!0,isCompleted:e=>e.isSiteKitConnected&&e.isAuthenticated&&e.isVerified&&e.hasSearchConsoleProperty,Component:O},completeSetup:{title:(0,c._x)("Finish","complete module setup","google-site-kit"),required:!1,isApplicable:()=>!0,isCompleted:e=>e.isSiteKitConnected&&e.isAuthenticated&&e.isVerified&&e.hasSearchConsoleProperty,Component:R}};class SetupUsingGCP extends l.Component{constructor(e){super(e);const{connectURL:t}=globalThis._googlesitekitLegacyData.admin,{isAuthenticated:i,hasSearchConsoleProperty:o,isSiteKitConnected:n,isVerified:s,needReauthenticate:r}=globalThis._googlesitekitLegacyData.setup;this.state={isAuthenticated:i,isVerified:s,needReauthenticate:r,hasSearchConsoleProperty:o,hasSearchConsolePropertyFromTheStart:o,connectURL:t,errorMsg:"",isSiteKitConnected:n,completeSetup:!1},this.siteConnectedSetup=this.siteConnectedSetup.bind(this),this.siteVerificationSetup=this.siteVerificationSetup.bind(this),this.searchConsoleSetup=this.searchConsoleSetup.bind(this),this.resetAndRestart=this.resetAndRestart.bind(this),this.completeSetup=this.completeSetup.bind(this),this.setErrorMessage=this.setErrorMessage.bind(this),this.onButtonClick=this.onButtonClick.bind(this)}async resetAndRestart(){await(0,d.set)("core","site","reset"),await(0,f.IL)(),this.setState({isSiteKitConnected:!1,isAuthenticated:!1,isVerified:!1,hasSearchConsoleProperty:!1,completeSetup:!1,errorMsg:""})}completeSetup(){this.setState({completeSetup:!0})}siteConnectedSetup(e){this.setState({isSiteKitConnected:e})}siteVerificationSetup(e){this.setState({isVerified:e})}searchConsoleSetup(e){this.setState({hasSearchConsoleProperty:e})}isSetupFinished(){const{isSiteKitConnected:e,isAuthenticated:t,isVerified:i,hasSearchConsoleProperty:o,completeSetup:n}=this.state;return e&&t&&i&&o&&n}setErrorMessage(e){this.setState({errorMsg:e})}getApplicableSteps(){const e=z,t=Object.keys(e);let i;for(i=0;i{globalThis.location.replace(d)},500,"later");const f=this.getApplicableSteps(),_=this.currentStep(f),k=f[_].Component,y=(0,S.jsx)(k,{siteConnectedSetup:this.siteConnectedSetup,connectURL:n,siteVerificationSetup:this.siteVerificationSetup,searchConsoleSetup:this.searchConsoleSetup,completeSetup:this.completeSetup,isSiteKitConnected:s,isAuthenticated:e,isVerified:t,needReauthenticate:i,hasSearchConsoleProperty:o,setErrorMessage:this.setErrorMessage,resetAndRestart:f.clientCredentials?this.resetAndRestart:void 0}),b=a,x=!b&&!e;return(0,S.jsxs)(l.Fragment,{children:[(0,S.jsx)(u.A,{children:(0,S.jsx)(h.A,{})}),(0,S.jsx)("div",{className:"googlesitekit-wizard",children:(0,S.jsx)(v.xA,{children:(0,S.jsx)(v.fI,{children:(0,S.jsx)(v.fh,{size:12,children:(0,S.jsxs)(p.A,{children:[(0,S.jsxs)("section",{className:"googlesitekit-wizard-progress",children:[(0,S.jsx)(v.xA,{children:(0,S.jsx)(v.fI,{children:b&&(0,S.jsx)(v.fh,{size:12,children:(0,S.jsx)("div",{className:"googlesitekit-wizard-progress__steps",children:Object.keys(f).map((e,t)=>(0,S.jsx)(N,{currentStep:_===e,title:f[e].title,step:t+1,status:this.stepStatus(f,e),warning:f[e].warning,error:f[e].error,stepKey:e},f[e].title))})})})}),x&&(0,S.jsx)("div",{className:"googlesitekit-setup__footer",children:(0,S.jsx)(v.xA,{children:(0,S.jsx)(v.fI,{children:(0,S.jsxs)(v.fh,{size:12,children:[(0,S.jsx)(m.A,{as:"h1",className:"googlesitekit-setup__title",size:"large",type:"headline",children:(0,c.__)("Authenticate Site Kit","google-site-kit")}),(0,S.jsx)("p",{className:"googlesitekit-setup__description",children:(0,c.__)("Please sign into your Google account to begin.","google-site-kit")}),(0,S.jsx)(g.Button,{href:"#",onClick:this.onButtonClick,children:(0,c._x)("Sign in with Google","Service name","google-site-kit")})]})})})})]}),b&&y]})})})})})]})}}const H=(0,a.A)((0,s.withSelect)(e=>({canSetup:e(k.oR).hasCapability(k.UF),redirectURL:e(_.O4).getAdminURL("googlesitekit-dashboard",{notification:"authentication_success"})})))(SetupUsingGCP);var B=i(51568),F=i(89675);const V="connect-analytics-setup-splash",U="analytics-setup-opt-in",G="shared_dashboard_splash";var W=i(57958),Y=i(45822),$=i(41595),K=i(32200),Q=i(42676);function Header_Header(){const e=(0,Y.i)("setupFlowRefreshPhase4"),t=(0,K.A)();return(0,S.jsx)(u.A,{children:e?(0,S.jsx)(Q.A,{gaTrackingEventArgs:{category:t,label:"splash"}}):(0,S.jsx)(h.A,{})})}var X,q,J,ee,te,ie,oe,ne,se,re,ae,le,ce,de,ge,ue,he,pe,me,fe,_e,ke,ve,ye,be,xe,Ce,Ae,Me,Se,Ne,we,je,Ee,Ie,Te,Re,Le,De,Oe,Pe,Ze,ze,He,Be,Fe,Ve,Ue,Ge,We,Ye,$e,Ke,Qe,Xe,qe,Je,et,tt,it=i(13606),ot=i(22994);function nt(){return nt=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",nt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 398 280"},e),X||(X=l.createElement("path",{fill:"#F1F3F4",d:"M357.758 250.137H101.493V60.904h260.113v185.384a3.849 3.849 0 0 1-3.848 3.849Z"})),q||(q=l.createElement("path",{fill:"#5F6368",d:"M31.5 60.908h69.997v189.234H35.349a3.849 3.849 0 0 1-3.849-3.849V60.908Z"})),J||(J=l.createElement("path",{fill:"#FBBC04",fillRule:"evenodd",d:"M119.339 7.235a12.14 12.14 0 0 1 1.813 6.392l-1.283-.001h1.283v.001c0 .285-.01.569-.029.852l-.96-.338-.427 1.21 1.267.196c.056-.354.095-.71.12-1.068l5.497 1.94a8.564 8.564 0 0 1 5.215 10.925l-1.21-.427-1.209-.428v.001a6 6 0 0 0-3.653-7.652l-7.459-2.632.164-1.053a9.884 9.884 0 0 0 .118-1.527v-.001a9.56 9.56 0 0 0-1.43-5.041l2.183-1.35Zm2.425 22.906-.427 1.21.428-1.21h-.001Zm0 0a6 6 0 0 0 7.652-3.651l1.209.427 1.21.429a8.567 8.567 0 0 1-10.925 5.215L91.611 22.184l.857-2.419 29.296 10.376Z",clipRule:"evenodd"})),ee||(ee=l.createElement("path",{fill:"#FBBC04",fillRule:"evenodd",d:"M84.252 8.566a9.53 9.53 0 0 0-1.434 5.039v.003c0 .508.04 1.015.122 1.516l.173 1.059-7.464 2.636a5.995 5.995 0 0 0-3.656 7.668l-1.209.431 1.21-.428a5.999 5.999 0 0 0 7.652 3.652l29.296-10.376.857 2.419L80.5 32.562a8.565 8.565 0 0 1-10.924-5.214 8.56 8.56 0 0 1 5.221-10.949l5.485-1.937c-.02-.285-.03-.57-.03-.856v-.001l1.284.001-1.283.002v-.002a12.095 12.095 0 0 1 1.82-6.393l2.18 1.353Z",clipRule:"evenodd"})),te||(te=l.createElement("path",{fill:"#F9AB00",d:"M85.738 0v46.35a22.272 22.272 0 0 0 29.934 0V0H85.738Z"})),ie||(ie=l.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M106.634 26.66c-4.462 2.815-8.852 2.28-11.968-.222l1.286-1.6c2.406 1.93 5.836 2.452 9.586.085l1.096 1.736Z",clipRule:"evenodd"})),oe||(oe=l.createElement("path",{fill:"#3C4043",fillRule:"evenodd",d:"M84.43 12.376c.69.158 1.12.847.962 1.537l-4.3 18.717a1.319 1.319 0 0 0 1.284 1.615m2.053-21.87a1.283 1.283 0 0 0-1.538.964l1.538-.963Zm-1.538.964-4.3 18.714 4.3-18.714Zm-4.3 18.715v-.001Zm0 0a3.886 3.886 0 1 0 7.67.872V25.64a1.283 1.283 0 0 0-2.566 0v7.287a1.318 1.318 0 0 1-1.319 1.32",clipRule:"evenodd"})),ne||(ne=l.createElement("path",{fill:"#202124",fillRule:"evenodd",d:"M116.979 12.376a1.283 1.283 0 0 1 1.539.961l4.321 18.716a3.881 3.881 0 0 1-3.785 4.758 3.883 3.883 0 0 1-3.885-3.885V25.64a1.283 1.283 0 1 1 2.566 0v7.287a1.32 1.32 0 0 0 1.319 1.32m0 0a1.321 1.321 0 0 0 1.285-1.616l-4.321-18.715c-.16-.69.271-1.38.961-1.54",clipRule:"evenodd"})),se||(se=l.createElement("path",{fill:"#3C4043",d:"M115.338 13.625c0-5.373-6.43-9.581-14.64-9.581-8.211 0-14.636 4.213-14.636 9.58h29.276Z"})),re||(re=l.createElement("path",{fill:"#8AB4F8",d:"M92.425 21.905a8.282 8.282 0 0 0 8.282-8.283 8.282 8.282 0 1 0-16.565 0 8.283 8.283 0 0 0 8.283 8.283Z"})),ae||(ae=l.createElement("path",{fill:"#202124",fillRule:"evenodd",d:"M92.425 6.624a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm-9.566 7a9.566 9.566 0 0 1 9.566-9.566c5.283 0 9.566 4.283 9.566 9.566 0 5.282-4.283 9.565-9.566 9.565a9.566 9.566 0 0 1-9.566-9.566Z",clipRule:"evenodd"})),le||(le=l.createElement("path",{fill:"#8AB4F8",d:"M108.99 21.905a8.283 8.283 0 1 0 0-16.567 8.283 8.283 0 0 0 0 16.567Z"})),ce||(ce=l.createElement("path",{fill:"#202124",fillRule:"evenodd",d:"M108.991 6.624a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm-9.566 7c0-5.283 4.283-9.566 9.566-9.566s9.565 4.283 9.565 9.566c0 5.282-4.282 9.565-9.565 9.565-5.283 0-9.566-4.283-9.566-9.566Z",clipRule:"evenodd"})),de||(de=l.createElement("path",{fill:"#D0E2FC",fillRule:"evenodd",d:"M92.445 9.236a4.392 4.392 0 0 0-4.393 4.388h-1.026a5.42 5.42 0 0 1 5.419-5.414v1.026ZM108.99 9.236a4.395 4.395 0 0 0-4.393 4.388h-1.026a5.417 5.417 0 0 1 5.419-5.414v1.026Z",clipRule:"evenodd"})),ge||(ge=l.createElement("path",{fill:"#639AF8",fillRule:"evenodd",d:"M93.066 77.73H39.988V72.6h53.078v5.131Z",clipRule:"evenodd"})),ue||(ue=l.createElement("path",{fill:"#80858A",fillRule:"evenodd",d:"M93.066 95.556H39.988v-5.132h53.078v5.132ZM93.066 113.386H39.988v-5.131h53.078v5.131ZM93.066 131.214H39.988v-5.132h53.078v5.132Z",clipRule:"evenodd"})),he||(he=l.createElement("path",{fill:"#3C4043",d:"M35.35 44.416h322.412a3.85 3.85 0 0 1 3.849 3.848V60.91H31.501V48.285a3.847 3.847 0 0 1 3.848-3.87Z"})),pe||(pe=l.createElement("path",{fill:"#3E81F6",d:"M114.61 74.35c0-.324-.029-.647-.088-.965h-4.315v1.77h2.478a2.132 2.132 0 0 1-.924 1.427v1.15h1.478a4.483 4.483 0 0 0 1.371-3.382Z"})),me||(me=l.createElement("path",{fill:"#2DA84F",d:"M111.772 76.58a2.784 2.784 0 0 1-3.488-.385 2.79 2.79 0 0 1-.659-1.067h-1.539v1.18a4.585 4.585 0 0 0 4.105 2.535 4.38 4.38 0 0 0 3.043-1.113l-1.462-1.15Z"})),fe||(fe=l.createElement("path",{fill:"#FCBC00",d:"M107.482 74.246c0-.299.049-.595.143-.878v-1.185h-1.539a4.612 4.612 0 0 0 0 4.105l1.539-1.18a2.837 2.837 0 0 1-.143-.862Z"})),_e||(_e=l.createElement("path",{fill:"#EB402D",d:"M110.206 71.469a2.525 2.525 0 0 1 1.766.688l1.308-1.314a4.397 4.397 0 0 0-3.079-1.196 4.587 4.587 0 0 0-4.105 2.53l1.539 1.186a2.749 2.749 0 0 1 2.571-1.894Z"})),ke||(ke=l.createElement("path",{fill:"#fff",d:"M42.975 55.648a2.987 2.987 0 1 0 0-5.974 2.987 2.987 0 0 0 0 5.974ZM54.922 55.648a2.987 2.987 0 1 0 0-5.974 2.987 2.987 0 0 0 0 5.974ZM66.87 55.648a2.987 2.987 0 1 0 0-5.974 2.987 2.987 0 0 0 0 5.974Z"})),ve||(ve=l.createElement("path",{fill:"#F1F3F4",d:"m105.991 75.162-4.492-4.492-4.493 4.492 4.493 4.493 4.492-4.493Z"})),ye||(ye=l.createElement("path",{fill:"#fff",d:"M225.394 87.245h-107.11v67.226h107.11V87.245Z"})),be||(be=l.createElement("path",{fill:"#E7E9EC",fillRule:"evenodd",d:"M213.036 107.626h-79.891V97.362h79.891v10.264ZM202.275 126.728h-69.13v-10.264h69.13v10.264ZM186.346 146.543h-53.201v-10.264h53.201v10.264Z",clipRule:"evenodd"})),xe||(xe=l.createElement("path",{fill:"#fff",d:"M344.826 87.245H237.715v67.226h107.111V87.245Z"})),Ce||(Ce=l.createElement("path",{fill:"#F1F3F4",d:"M74.187 280c20.486 0 37.092-1.725 37.092-3.854 0-2.128-16.606-3.854-37.092-3.854-20.485 0-37.092 1.726-37.092 3.854 0 2.129 16.607 3.854 37.092 3.854Z"})),Ae||(Ae=l.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M312.629 54.763c2.286.74 4.947.381 7.318-.968l1.015 1.785c-2.791 1.587-6.047 2.081-8.966 1.136-2.95-.956-5.42-3.34-6.667-7.232l1.955-.626c1.068 3.334 3.091 5.175 5.345 5.905Z",clipRule:"evenodd"})),Me||(Me=l.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M306.584 47.852c.884.047 1.659.3 2.485.725l-.938 1.826c-.642-.33-1.134-.474-1.655-.501-.544-.03-1.194.064-2.163.323l-.53-1.983c1.048-.28 1.94-.436 2.801-.39Z",clipRule:"evenodd"})),Se||(Se=l.createElement("path",{fill:"#C5221F",fillRule:"evenodd",d:"m281.545 27.907.243 1.023c.7 2.945 1.41 5.798 2.586 8.418 1.164 2.595 2.874 4.915 5.156 6.346 2.284 1.432 5.162 1.851 7.463.85l1.024 2.352c-3.24 1.41-7.013.752-9.851-1.028-2.84-1.782-4.834-4.573-6.133-7.47-1.139-2.538-1.863-5.238-2.496-7.852l-7.573.27-.091-2.564 9.672-.345ZM294.678 23.44l.243 1.023c.699 2.949 1.41 5.793 2.586 8.42 1.164 2.599 2.874 4.918 5.155 6.349 2.283 1.432 5.162 1.847 7.466.849l1.02 2.354c-3.238 1.403-7.01.752-9.849-1.03-2.84-1.78-4.835-4.573-6.134-7.474-1.139-2.543-1.863-5.235-2.496-7.852l-7.572.27-.092-2.564 9.673-.345Z",clipRule:"evenodd"})),Ne||(Ne=l.createElement("path",{fill:"#E7E9EC",fillRule:"evenodd",d:"M248.148 97.601h4.105v44.082h83.002v4.105h-87.107V97.601Z",clipRule:"evenodd"})),we||(we=l.createElement("path",{fill:"#D93025",d:"M317.853 64.668c12.666 0 22.933-10.267 22.933-22.933S330.519 18.8 317.853 18.8s-22.934 10.268-22.934 22.934 10.268 22.933 22.934 22.933Z"})),je||(je=l.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M311.83 51.34c2.281.74 4.934.38 7.307-.97l1.014 1.785c-2.789 1.586-6.038 2.083-8.954 1.139-2.947-.955-5.415-3.337-6.677-7.226l1.952-.634c1.083 3.337 3.107 5.178 5.358 5.907Z",clipRule:"evenodd"})),Ee||(Ee=l.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M305.773 44.424c.884.047 1.661.302 2.488.73l-.944 1.823c-.64-.332-1.131-.475-1.652-.503-.544-.029-1.194.065-2.165.322l-.525-1.985c1.046-.277 1.938-.432 2.798-.387Z",clipRule:"evenodd"})),Ie||(Ie=l.createElement("path",{fill:"#D93025",fillRule:"evenodd",d:"M319.709 102.472c7.531-11.92 10.7-28.343 8.132-42.188l2.522-.468c2.687 14.483-.61 31.56-8.485 44.026l-2.169-1.37Z",clipRule:"evenodd"})),Te||(Te=l.createElement("path",{fill:"#E7E9EC",fillRule:"evenodd",d:"M297.648 117.474c3.936-7.731 9.27-16.845 20.308-16.845 6.889 0 11.512 4.768 14.266 8.997 1.403 2.154 2.408 4.293 3.061 5.885.327.8.57 1.469.732 1.944a24.745 24.745 0 0 1 .232.717l.014.045.004.014.002.007c0 .001 0 .002-1.972.572l-1.971.572-.001-.002-.007-.024-.015-.049-.02-.063c-.032-.103-.082-.26-.152-.464a30.225 30.225 0 0 0-.645-1.711c-.587-1.432-1.479-3.325-2.702-5.203-2.499-3.836-6.046-7.132-10.826-7.132-8.263 0-12.579 6.609-16.65 14.603-.392.769-.782 1.553-1.174 2.34-1.544 3.099-3.111 6.246-4.87 8.726-2.23 3.144-5.152 5.778-9.333 5.778-3.211 0-5.678-.646-7.723-1.676-2.012-1.012-3.517-2.351-4.798-3.525l-.266-.244c-1.205-1.106-2.188-2.008-3.384-2.694-1.212-.695-2.689-1.185-4.823-1.185-1.27 0-2.659.682-4.147 2.127-1.472 1.429-2.829 3.405-3.998 5.488-1.16 2.066-2.086 4.148-2.724 5.721a52.117 52.117 0 0 0-.908 2.407l-.044.131-.011.031-.002.006-1.95-.639-1.951-.639.002-.006.004-.012.015-.044.054-.159c.046-.137.115-.333.204-.581a58.52 58.52 0 0 1 .782-2.037c.679-1.675 1.678-3.924 2.949-6.189 1.262-2.248 2.845-4.604 4.718-6.423 1.857-1.803 4.219-3.287 7.007-3.287 2.848 0 5.029.675 6.865 1.729 1.614.925 2.924 2.131 4.066 3.182l.315.29c1.264 1.157 2.409 2.15 3.871 2.885 1.427.719 3.255 1.238 5.877 1.238 2.182 0 4.032-1.296 5.985-4.048 1.556-2.194 2.933-4.957 4.459-8.016.412-.826.835-1.674 1.275-2.538Z",clipRule:"evenodd"})),Re||(Re=l.createElement("path",{fill:"#D93025",fillRule:"evenodd",d:"M302.748 110.621c-9.086-16.362-9.222-37.328-.347-53.806l2.259 1.217c-8.46 15.708-8.33 35.746.331 51.344l-2.243 1.245Z",clipRule:"evenodd"})),Le||(Le=l.createElement("path",{fill:"#4285F4",fillRule:"evenodd",d:"M49.792 239.931c-2.575-.265-4.53-1.209-6.084-2.629l6.084 2.629Zm-6.084-2.629c-1.575-1.439-2.794-3.417-3.786-5.821l3.786 5.821Zm-3.786-5.821-2.372.978 2.372-.978Zm-2.372.978c1.077 2.61 2.478 4.957 4.427 6.737l-4.427-6.737Zm4.427 6.737c1.97 1.799 4.443 2.967 7.554 3.287l-7.554-3.287Zm7.816.735c3.095.316 6.85-.569 8.764-2.743l1.926 1.695c-2.674 3.04-7.417 3.961-10.952 3.6",clipRule:"evenodd"})),De||(De=l.createElement("path",{fill:"#1967D2",fillRule:"evenodd",d:"m70.674 235.279 2.405.894-5.085 13.671a21.812 21.812 0 0 0 .017 15.251l5.21 10.017h-7.59v-2.566h3.363l-3.33-6.403-.026-.071a24.374 24.374 0 0 1-.049-17.122l5.085-13.671Z",clipRule:"evenodd"})),Oe||(Oe=l.createElement("path",{fill:"#185ABC",fillRule:"evenodd",d:"m66.749 245.824 3.926-10.545 2.404.895-3.925 10.545-2.405-.895Z",clipRule:"evenodd"})),Pe||(Pe=l.createElement("path",{fill:"#1967D2",fillRule:"evenodd",d:"M78.682 239.576h2.566v32.971h3.807v2.566h-6.373v-35.537Z",clipRule:"evenodd"})),Ze||(Ze=l.createElement("path",{fill:"#185ABC",fillRule:"evenodd",d:"M78.682 243.671v-4.095h2.566v4.095h-2.566Z",clipRule:"evenodd"})),ze||(ze=l.createElement("path",{fill:"#4285F4",fillRule:"evenodd",d:"M123.654 199.8a44.213 44.213 0 0 1-31.383 23.942l-.482-2.521a41.642 41.642 0 0 0 29.562-22.552l2.303 1.131Z",clipRule:"evenodd"})),He||(He=l.createElement("path",{fill:"#E7E9EC",fillRule:"evenodd",d:"M128.988 149.77V92.992h4.106v56.778h-4.106Z",clipRule:"evenodd"})),Be||(Be=l.createElement("path",{fill:"#F9AB00",d:"M27.012 229.683c-3.233 2.643-6.31 5.096-9.265 7.221-1.544 1.129-4.354-.4-4.683-2.494-.566-3.926-.921-7.995-1.112-12.162a365.303 365.303 0 0 0-10.86-6.826c-1.821-1.134-1.265-3.818.927-4.726 4.076-1.601 8.168-3.192 12.255-4.701 1.296-4.223 2.573-8.488 3.71-12.65.608-2.257 3.191-2.73 4.56-.831 2.527 3.495 5.255 7.026 7.967 10.515 4.36-.031 8.75 0 13.13.067 2.367.056 3.87 2.376 2.51 4.074a373.058 373.058 0 0 0-7.72 10.223c1.303 3.967 2.415 7.893 3.28 11.767.437 2.053-1.637 4.495-3.49 3.987-3.5-.928-7.247-2.14-11.21-3.464Z"})),Fe||(Fe=l.createElement("path",{fill:"#fff",d:"M344.825 165.928H118.284v66.738h226.541v-66.738Z"})),Ve||(Ve=l.createElement("path",{fill:"#F0F2F3",fillRule:"evenodd",d:"M147.858 182.147c-6.991 0-12.66 5.668-12.66 12.66s5.669 12.66 12.66 12.66c6.992 0 12.66-5.668 12.66-12.66s-5.668-12.66-12.66-12.66Zm-16.765 12.66c0-9.259 7.506-16.765 16.765-16.765 9.26 0 16.766 7.506 16.766 16.765 0 9.26-7.506 16.766-16.766 16.766-9.259 0-16.765-7.506-16.765-16.766ZM162.761 220.552h-29.805v-4.105h29.805v4.105ZM218.522 220.552h-29.805v-4.105h29.805v4.105ZM203.62 182.147c-6.992 0-12.66 5.668-12.66 12.66s5.668 12.66 12.66 12.66 12.66-5.668 12.66-12.66-5.668-12.66-12.66-12.66Zm-16.766 12.66c0-9.259 7.507-16.765 16.766-16.765 9.259 0 16.765 7.506 16.765 16.765 0 9.26-7.506 16.766-16.765 16.766s-16.766-7.506-16.766-16.766ZM274.284 220.552h-29.805v-4.105h29.805v4.105ZM259.382 182.147c-6.992 0-12.66 5.668-12.66 12.66s5.668 12.66 12.66 12.66 12.66-5.668 12.66-12.66-5.668-12.66-12.66-12.66Zm-16.766 12.66c0-9.259 7.506-16.765 16.766-16.765 9.259 0 16.765 7.506 16.765 16.765 0 9.26-7.506 16.766-16.765 16.766-9.26 0-16.766-7.506-16.766-16.766Z",clipRule:"evenodd"})),Ue||(Ue=l.createElement("path",{fill:"#D9DBDF",fillRule:"evenodd",d:"M147.867 182.147a12.658 12.658 0 0 0-12.527 10.776 12.656 12.656 0 1 0 24.725-1.448 12.656 12.656 0 0 0-5.134-7.164l2.296-3.404a16.76 16.76 0 1 1-9.357-2.865l-.003 4.105ZM203.619 182.147a12.654 12.654 0 1 0 8.39 3.184l2.722-3.073a16.757 16.757 0 0 1 3.226 21.217 16.764 16.764 0 0 1-8.877 7.172 16.765 16.765 0 0 1-20.064-7.614 16.758 16.758 0 0 1 3.873-21.109 16.763 16.763 0 0 1 10.731-3.882l-.001 4.105ZM259.385 182.147a12.681 12.681 0 1 0 2.049.164l.657-4.053a16.783 16.783 0 0 1 13.979 18.582 16.786 16.786 0 1 1-16.692-18.798l.007 4.105Z",clipRule:"evenodd"})),Ge||(Ge=l.createElement("path",{fill:"#F1F3F4",d:"M360.265 277.44c20.619 0 37.333-1.726 37.333-3.854 0-2.129-16.714-3.854-37.333-3.854s-37.333 1.725-37.333 3.854c0 2.128 16.714 3.854 37.333 3.854Z"})),We||(We=l.createElement("path",{fill:"#148E3A",fillRule:"evenodd",d:"M368.44 274.877c-3.725-9.645-4.194-20.648-3.16-32.153l2.556.23c-.988 10.992-.552 21.25 2.69 30.178h7.199v2.565h-8.088c-.53 0-1.006-.326-1.197-.82ZM353.45 273.133c-2.955-9.536-3.569-19.756-2.589-30.41l2.555.235c-1.015 11.035-.267 21.456 3.015 31.043a1.282 1.282 0 0 1-1.214 1.698h-7.497v-2.566h5.73Z",clipRule:"evenodd"})),Ye||(Ye=l.createElement("path",{fill:"#0D8034",fillRule:"evenodd",d:"M364.824 251.252c.042-2.823.203-5.646.457-8.525l2.556.225c-.25 2.828-.407 5.588-.447 8.338l-2.566-.038ZM350.45 253.719a97.088 97.088 0 0 1 .411-10.999l2.555.241a94.514 94.514 0 0 0-.4 10.708l-2.566.05Z",clipRule:"evenodd"})),$e||($e=l.createElement("path",{fill:"#1E8E3E",d:"m355.371 215.214-34.619 3.285 3.285 34.618 34.618-3.284 34.619-3.284-3.284-34.619-34.619 3.284Z"})),Ke||(Ke=l.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M369.015 230.76c-4.262 5.173-10.96 4.737-14.975 1.418l1.226-1.483c3.334 2.756 8.788 3.06 12.264-1.159l1.485 1.224Z",clipRule:"evenodd"})),Qe||(Qe=l.createElement("path",{fill:"#34A853",fillRule:"evenodd",d:"M328.231 204.378c5.679 8.162 23.612 20.419 62.34 16.852l.235 2.555c-39.275 3.618-58.291-8.758-64.681-17.941l2.106-1.466ZM309.013 218.496a19.03 19.03 0 0 0 15.577 13.611l-.367 2.539a21.592 21.592 0 0 1-17.677-15.446l2.467-.704Z",clipRule:"evenodd"})),Xe||(Xe=l.createElement("path",{fill:"#1E8E3E",fillRule:"evenodd",d:"M317.868 229.814a17.951 17.951 0 0 0 6.705 2.29l-.334 2.544a20.518 20.518 0 0 1-7.663-2.617l1.292-2.217Z",clipRule:"evenodd"})),qe||(qe=l.createElement("path",{fill:"#F0F2F3",fillRule:"evenodd",d:"M312.465 192.451c-6.992 0-12.66 5.668-12.66 12.66s5.668 12.66 12.66 12.66c6.991 0 12.66-5.668 12.66-12.66s-5.669-12.66-12.66-12.66Zm-16.766 12.66c0-9.26 7.506-16.766 16.766-16.766 9.259 0 16.765 7.506 16.765 16.766 0 9.259-7.506 16.765-16.765 16.765-9.26 0-16.766-7.506-16.766-16.765Z",clipRule:"evenodd"})),Je||(Je=l.createElement("path",{fill:"#D9DBDF",fillRule:"evenodd",d:"M312.464 192.454a12.66 12.66 0 0 0-8.079 2.916 12.66 12.66 0 0 0-2.983 15.881 12.651 12.651 0 0 0 15.056 5.867 12.655 12.655 0 0 0 4.572-21.326l2.779-3.022a16.758 16.758 0 0 1 2.88 21.206 16.755 16.755 0 0 1-8.937 7.038 16.754 16.754 0 0 1-11.371-.288 16.763 16.763 0 0 1-4.617-28.515 16.758 16.758 0 0 1 10.7-3.862v4.105Z",clipRule:"evenodd"})),et||(et=l.createElement("path",{fill:"#1A73E8",d:"M78.538 240.807a23.669 23.669 0 0 1-30.98-12.691l43.67-18.289a23.665 23.665 0 0 1-12.69 30.98Z"})),tt||(tt=l.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"m86.154 223.843-.068 1.599c-.166 3.926-2.048 7.594-5.4 9.468l-1.001-1.791c2.174-1.216 3.644-3.458 4.158-6.114l-15.149 6.194-.777-1.9 18.237-7.456Z",clipRule:"evenodd"})));function LegacySplashViewOnlyContent({documentationURL:e,onButtonClick:t}){return(0,S.jsxs)(v.fI,{className:"googlesitekit-setup__content",children:[(0,S.jsx)(v.fh,{smSize:4,mdSize:8,lgSize:4,lgOrder:2,className:"googlesitekit-setup__icon",children:(0,S.jsx)(st,{width:398,height:280})}),(0,S.jsxs)(v.fh,{smSize:4,mdSize:8,lgSize:8,lgOrder:1,children:[(0,S.jsx)(m.A,{as:"h1",className:"googlesitekit-setup__title",size:"large",type:"headline",children:(0,c.__)("View-only Dashboard Access","google-site-kit")}),(0,S.jsx)("p",{className:"googlesitekit-setup__description",children:(0,it.A)((0,c.__)("An administrator has granted you access to view this site's dashboard to view stats from all shared Google services. Learn more","google-site-kit"),{a:(0,S.jsx)(ot.A,{"aria-label":(0,c.__)("Learn more about dashboard sharing","google-site-kit"),href:e,external:!0})})}),(0,S.jsx)(j.A,{children:(0,c.__)("Get insights about how people find and use your site as well as how to improve and monetize your content, directly in your WordPress dashboard","google-site-kit")}),(0,S.jsx)(w.A,{}),(0,S.jsx)("div",{className:"googlesitekit-start-setup-wrap",children:(0,S.jsx)(g.Button,{onClick:t,children:(0,c.__)("Go to dashboard","google-site-kit")})})]})]})}LegacySplashViewOnlyContent.propTypes={documentationURL:C().string,onButtonClick:C().func.isRequired};var rt=i(15844),at=i(71764),lt=i(97015);function Services(){const e=(0,s.useSelect)(e=>{const t=e(k.oR).getViewableModules();if(void 0!==t)return t.map(t=>{const i=e(at.i).getModule(t);if(!i)return null;const o=e(at.i).getModuleIcon(t);return{slug:t,name:i.name,order:i.order,Icon:o}}).filter(e=>null!==e).sort((e,t)=>e.order-t.order)},[]);return e?.length?lt.createElement("ul",{className:"googlesitekit-setup__services-list"},e.map(({slug:e,name:t,Icon:i})=>lt.createElement("li",{key:e,className:"googlesitekit-setup__services-list-item"},i&<.createElement("span",{className:"googlesitekit-setup__services-list-item-icon"},lt.createElement(i,{width:24,height:24})),lt.createElement("span",{className:"googlesitekit-setup__services-list-item-name"},t)))):null}var ct=i(59914),dt=i(63074),gt=i(64510);const ut=(0,l.lazy)(()=>i.e(187).then(i.bind(i,27187))),ht=(0,l.lazy)(()=>i.e(658).then(i.bind(i,76658)));function SetupFlowSVG(){const e=(0,gt.dv)(),t=e===gt.mp||e===gt.Lg?ht:ut;return(0,S.jsx)(l.Suspense,{fallback:(0,S.jsx)(dt.A,{width:"100%",height:"100%"}),children:(0,S.jsx)(ct.A,{errorMessage:(0,c.__)("Failed to load graphic","google-site-kit"),children:(0,S.jsx)(t,{})})})}var pt;function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",mt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 595 466"},e),pt||(pt=l.createElement("path",{fill:"#D0FBE1",d:"M511.46 27.2684C472.402 -4.66964 412.901 -7.73003 359.991 15.0972C307.081 37.9245 294.029 76.9588 243.944 142.845C212.49 184.224 111.357 154.532 49.1765 204.729C-20.3783 260.879 -25.9452 417.513 98.8281 455.453C235.437 496.991 313.593 391.737 463.627 426.117C559.207 448.019 598.486 384.992 593.931 322.063C589.772 264.614 542.365 255.213 550.518 186.608C558.671 118.004 550.518 59.2064 511.46 27.2684Z"})));function SplashViewOnlyContent({documentationURL:e,onButtonClick:t}){(0,rt.A)(()=>{globalThis.document.body.classList.add("googlesitekit-setup-flow")});const i=(0,gt.dv)(),o=i===gt.mp||i===gt.Lg;return(0,S.jsxs)(v.fI,{className:"googlesitekit-setup__content",children:[(0,S.jsxs)(v.fh,{smSize:4,mdSize:8,lgSize:6,children:[(0,S.jsx)(m.A,{as:"h1",className:"googlesitekit-setup__title",size:o?"small":"medium",type:"headline",children:(0,c.__)("View-only Dashboard Access","google-site-kit")}),(0,S.jsx)("p",{className:"googlesitekit-setup__description googlesitekit-setup__description--view-only",children:(0,it.A)((0,c.__)("Get insights about how people find and use your site as well as how to improve and monetize your content, directly in your WordPress dashboard.
An administrator has granted you access to view this site's dashboard containing stats from these shared Google services. Learn more","google-site-kit"),{a:(0,S.jsx)(ot.A,{"aria-label":(0,c.__)("Learn more about dashboard sharing","google-site-kit"),href:e,external:!0,hideExternalIndicator:!0}),br:(0,S.jsx)("br",{})})}),(0,S.jsx)(Services,{}),(0,S.jsx)(w.A,{}),(0,S.jsx)("div",{className:"googlesitekit-start-setup-wrap",children:(0,S.jsx)(g.Button,{onClick:t,children:(0,c.__)("Go to dashboard","google-site-kit")})})]}),(0,S.jsxs)(v.fh,{smSize:4,mdSize:8,lgSize:6,className:"googlesitekit-setup__screenshot",children:[(0,S.jsx)(ft,{className:"googlesitekit-setup__splash-graphic-background",width:"508",height:"466"}),(0,S.jsx)("div",{className:"googlesitekit-setup__splash-graphic-screenshot",children:(0,S.jsx)(SetupFlowSVG,{})})]})]})}function SetupUsingProxyViewOnly(){const e=(0,Y.i)("setupFlowRefresh"),t=(0,Y.i)("setupFlowRefreshPhase4"),i=(0,K.A)(),{dismissItem:o}=(0,s.useDispatch)(k.oR),{navigateTo:n}=(0,s.useDispatch)(W.M),r=(0,$.A)(),a=(0,s.useSelect)(e=>e(_.O4).getAdminURL("googlesitekit-dashboard",r)),c=(0,s.useSelect)(e=>e(_.O4).getDocumentationLinkURL("dashboard-sharing")),d=(0,l.useCallback)(()=>{Promise.all([o(G),(0,I.sx)(i,"confirm_viewonly")]).finally(()=>{const t=e?(0,B.F)(a,{notification:r.notification||"initial_setup_success"}):a;n(t)})},[e,r.notification,a,o,n,i]);if(!a)return null;const g=t?(0,S.jsx)(SplashViewOnlyContent,{documentationURL:c,onButtonClick:d}):(0,S.jsx)(LegacySplashViewOnlyContent,{documentationURL:c,onButtonClick:d}),u=t?"googlesitekit-splash":"googlesitekit-setup__splash",h=(0,S.jsx)(p.A,{rounded:!t,children:(0,S.jsx)("section",{className:u,children:(0,S.jsx)(v.xA,{children:g})})});return(0,S.jsxs)(l.Fragment,{children:[(0,S.jsx)(Header_Header,{}),(0,S.jsx)("div",{className:b()("googlesitekit-setup googlesitekit-view-only-splash",{"googlesitekit-initial-setup":t}),children:t?(0,S.jsxs)(l.Fragment,{children:[(0,S.jsx)(F.A,{}),h]}):(0,S.jsx)(v.xA,{children:(0,S.jsx)(v.fI,{children:(0,S.jsx)(v.fh,{size:12,children:h})})})})]})}SplashViewOnlyContent.propTypes={documentationURL:C().string,onButtonClick:C().func.isRequired};var _t=i(82286),kt=i(56848),vt=i(57814),yt=i(97015);const SetupUsingProxyWithSignIn_AnalyticsActivationErrorNotification=({onRetry:e})=>yt.createElement(kt.A,{className:"googlesitekit-setup__analytics-activation-error-notification",title:(0,c.__)("Connecting Site Kit failed","google-site-kit"),description:(0,c.__)("Something went wrong while connecting Site Kit to your site. Please try again.","google-site-kit"),ctaButton:{label:(0,c.__)("Retry plugin setup","google-site-kit"),onClick:e},type:vt.L.ERROR});var bt=i(92255),xt=i(7029),Ct=i(80867),At=i(99295),Mt=i(85376),St=i(26113);function Actions({proxySetupURL:e,onButtonClick:t,forwardableParams:i={},complete:o,inProgressFeedback:n,ctaFeedback:r}){const a=(0,Y.i)("setupFlowRefresh"),d=(0,K.A)(),{dismissItem:u}=(0,s.useDispatch)(k.oR),{navigateTo:h}=(0,s.useDispatch)(W.M),p=(0,s.useSelect)(e=>e(_.O4).hasConnectedAdmins()),m=(0,s.useSelect)(e=>e(_.O4).hasMultipleAdmins()),f=(0,s.useSelect)(e=>!!e(k.oR).getViewableModules()?.length),v=(0,s.useSelect)(e=>e(_.O4).isResettable()),y=(0,s.useSelect)(e=>e(_.O4).getAdminURL("googlesitekit-dashboard",i)),b=(0,l.useCallback)(()=>{Promise.all([u(G),(0,I.sx)(d,a?"setup_flow_v3_skip_to_viewonly":"skip_setup_to_viewonly")]).finally(()=>{const e=a?(0,B.F)(y,{notification:i.notification||"initial_setup_success"}):y;h(e)})},[y,i.notification,u,h,a,d]),x=(0,s.useSelect)(e=>e(_.O4).getDocumentationLinkURL("why-connect-google-account")),C=a?{trackEventAction:"setup_flow_v3_tracking_optin"}:{};return(0,S.jsxs)(l.Fragment,{children:[r,(0,S.jsx)(w.A,{...C}),(0,S.jsxs)("div",{className:"googlesitekit-start-setup-wrap",children:[(0,S.jsx)(g.Button,{className:"googlesitekit-start-setup",href:e,onClick:t,disabled:!o,children:(0,c._x)("Sign in with Google","Prompt to authenticate Site Kit with Google Account","google-site-kit")}),n,m&&p&&f&&o&&(0,S.jsx)(g.Button,{onClick:b,tertiary:!0,children:(0,c.__)("Skip sign-in and view limited dashboard","google-site-kit")}),!p&&v&&o&&(0,S.jsx)(Mt.A,{})]}),a&&(0,S.jsx)(St.A,{leadingText:(0,c.__)("Why is this required?","google-site-kit"),tooltipText:(0,it.A)((0,c.__)("Site Kit needs to connect to your Google account to access data from Google products like Search Console or Analytics and display it on your dashboard. Learn more","google-site-kit"),{a:(0,S.jsx)(ot.A,{href:x,onClick:()=>{(0,I.sx)(d,"click_learn_more_link","cta_tooltip")},external:!0,hideExternalIndicator:!0})})})]})}function SetupUsingProxyWithSignIn_Header_Header(){const e=(0,Y.i)("setupFlowRefresh"),t=(0,K.A)();return(0,S.jsx)(u.A,{children:e?(0,S.jsx)(Q.A,{gaTrackingEventArgs:{category:t,label:"splash"}}):(0,S.jsx)(h.A,{})})}var Nt=i(97015);function ResetNotice(){return Nt.createElement(kt.A,{id:"reset_success",title:(0,c.__)("Site Kit by Google was successfully reset.","google-site-kit"),type:vt.L.SUCCESS})}var wt,jt,Et,It,Tt,Rt,Lt,Dt,Ot,Pt,Zt,zt,Ht,Bt,Ft,Vt,Ut,Gt,Wt,Yt,$t,Kt,Qt,Xt=i(86751);function qt(){return qt=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",qt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 378 196"},e),wt||(wt=l.createElement("g",{filter:"url(#analytics-setup-sidekick_svg__a)"},l.createElement("rect",{width:148,height:122,x:135,y:2,fill:"#fff",rx:3.976}))),jt||(jt=l.createElement("path",{fill:"#202124",d:"M147.754 25.902v-7.98h1.939l2.118 5.607h.089l2.118-5.606h1.95v7.98h-1.494v-3.935l.09-1.326h-.09l-2.028 5.26h-1.17l-2.04-5.26h-.089l.089 1.326v3.934h-1.482Zm12.456.179c-.595 0-1.122-.13-1.583-.39a2.93 2.93 0 0 1-1.07-1.081 3.164 3.164 0 0 1-.379-1.55 3.1 3.1 0 0 1 .379-1.537c.26-.461.617-.822 1.07-1.082.461-.267.988-.4 1.583-.4.594 0 1.118.133 1.571.4a2.85 2.85 0 0 1 1.059 1.082c.26.453.39.965.39 1.537 0 .573-.13 1.089-.39 1.55a2.85 2.85 0 0 1-1.059 1.08c-.453.26-.977.39-1.571.39Zm0-1.36c.282 0 .538-.063.769-.19.237-.133.427-.323.568-.568.148-.252.223-.553.223-.903 0-.349-.075-.646-.223-.891a1.494 1.494 0 0 0-.568-.569 1.506 1.506 0 0 0-.769-.2 1.61 1.61 0 0 0-.781.2 1.573 1.573 0 0 0-.579.569c-.141.245-.212.542-.212.891 0 .35.071.65.212.903.148.245.342.435.579.569.246.126.506.189.781.189Zm6.244 1.36c-.49 0-.91-.07-1.259-.212a2.36 2.36 0 0 1-.836-.557 2.299 2.299 0 0 1-.479-.758l1.304-.569c.245.543.669.814 1.27.814.238 0 .454-.037.647-.111a.438.438 0 0 0 .29-.435.414.414 0 0 0-.156-.346.933.933 0 0 0-.368-.2 3.213 3.213 0 0 0-.457-.123l-.669-.145a2.524 2.524 0 0 1-.78-.312 2.04 2.04 0 0 1-.602-.58 1.508 1.508 0 0 1-.223-.813c0-.342.097-.639.29-.891.201-.253.468-.45.803-.591a2.916 2.916 0 0 1 1.125-.212c.565 0 1.048.1 1.449.301.401.2.702.513.903.936l-1.249.546a1.01 1.01 0 0 0-.468-.468 1.369 1.369 0 0 0-.601-.133c-.253 0-.454.048-.602.144-.149.097-.223.212-.223.346 0 .141.074.264.223.368.148.104.327.182.535.234l.836.2c.564.134.988.35 1.27.647.29.297.435.654.435 1.07 0 .371-.108.698-.323.98-.216.275-.506.49-.87.647a3.187 3.187 0 0 1-1.215.223Zm5.885-.09c-.587 0-1.048-.167-1.382-.501-.334-.342-.502-.81-.502-1.404v-2.62h-.991V20.22h.991v-1.605h1.46v1.605h1.393v1.248h-1.393v2.351c0 .26.056.46.168.602.111.134.297.2.557.2a.884.884 0 0 0 .368-.066 3.06 3.06 0 0 0 .345-.178v1.426c-.319.126-.658.19-1.014.19Zm4.751 2.319v-8.091h1.371v.69h.089c.141-.222.357-.423.647-.601.297-.179.65-.268 1.058-.268.521 0 .985.13 1.394.39.416.253.742.606.98 1.059.245.453.368.977.368 1.571 0 .595-.123 1.119-.368 1.572-.238.453-.564.81-.98 1.07a2.596 2.596 0 0 1-1.394.379c-.408 0-.761-.086-1.058-.257-.29-.178-.506-.379-.647-.602h-.089l.089.803v2.285h-1.46Zm2.909-3.578a1.481 1.481 0 0 0 1.326-.791 1.7 1.7 0 0 0 .223-.88c0-.342-.074-.636-.223-.881a1.488 1.488 0 0 0-.568-.568 1.464 1.464 0 0 0-1.516 0c-.23.133-.42.327-.568.58a1.714 1.714 0 0 0-.212.868c0 .335.071.628.212.88.148.246.338.44.568.58.238.142.491.212.758.212Zm6.842 1.349c-.594 0-1.121-.13-1.582-.39a2.93 2.93 0 0 1-1.07-1.081 3.164 3.164 0 0 1-.379-1.55 3.1 3.1 0 0 1 .379-1.537c.26-.461.617-.822 1.07-1.082.461-.267.988-.4 1.582-.4.595 0 1.119.133 1.572.4a2.85 2.85 0 0 1 1.059 1.082c.26.453.39.965.39 1.537 0 .573-.13 1.089-.39 1.55a2.85 2.85 0 0 1-1.059 1.08c-.453.26-.977.39-1.572.39Zm0-1.36c.283 0 .539-.063.769-.19a1.49 1.49 0 0 0 .569-.568c.148-.252.223-.553.223-.903 0-.349-.075-.646-.223-.891a1.49 1.49 0 0 0-.569-.569 1.604 1.604 0 0 0-1.549 0 1.573 1.573 0 0 0-.579.569c-.141.245-.212.542-.212.891 0 .35.071.65.212.903.148.245.342.435.579.569.245.126.505.189.78.189Zm4.039 3.589v-8.091h1.37v.69h.09c.141-.222.356-.423.646-.601.297-.179.65-.268 1.059-.268.52 0 .984.13 1.393.39.416.253.743.606.981 1.059.245.453.367.977.367 1.571 0 .595-.122 1.119-.367 1.572-.238.453-.565.81-.981 1.07a2.595 2.595 0 0 1-1.393.379c-.409 0-.762-.086-1.059-.257-.29-.178-.505-.379-.646-.602h-.09l.09.803v2.285h-1.46Zm2.908-3.578a1.481 1.481 0 0 0 1.327-.791 1.71 1.71 0 0 0 .223-.88c0-.342-.075-.636-.223-.881a1.49 1.49 0 0 0-.569-.568 1.457 1.457 0 0 0-1.515 0c-.231.133-.42.327-.569.58a1.714 1.714 0 0 0-.212.868c0 .335.071.628.212.88.149.246.338.44.569.58.237.142.49.212.757.212Zm6.12 1.349c-.699 0-1.223-.216-1.572-.647-.349-.43-.524-1.018-.524-1.76v-3.455h1.46v3.276c0 .386.093.691.279.914a.944.944 0 0 0 .736.323c.431 0 .765-.156 1.003-.468.237-.312.356-.695.356-1.148V20.22h1.46v5.683h-1.371v-.713h-.089a1.83 1.83 0 0 1-.724.658 2.194 2.194 0 0 1-1.014.234Zm4.632-.179v-7.98H206v7.98h-1.46Zm4.579.179c-.402 0-.758-.078-1.07-.234a1.88 1.88 0 0 1-.725-.68 1.877 1.877 0 0 1-.267-1.003c0-.394.1-.732.301-1.014.208-.283.483-.502.825-.658a2.806 2.806 0 0 1 1.159-.234c.349 0 .65.03.902.09.253.051.454.107.602.166v-.245a.93.93 0 0 0-.345-.746c-.231-.201-.546-.301-.948-.301-.267 0-.527.063-.78.189a1.788 1.788 0 0 0-.613.48l-.936-.736c.275-.357.62-.632 1.037-.825.416-.193.869-.29 1.359-.29.869 0 1.531.2 1.984.602.453.401.68.988.68 1.76v3.5h-1.438v-.58h-.089a1.955 1.955 0 0 1-.646.536c-.268.148-.599.223-.992.223Zm.345-1.137c.297 0 .546-.063.747-.19.208-.133.364-.304.468-.512.111-.208.167-.427.167-.658a2.331 2.331 0 0 0-.557-.19 2.61 2.61 0 0 0-.635-.077c-.431 0-.728.081-.892.245a.82.82 0 0 0-.245.602c0 .223.078.408.234.557.163.149.401.223.713.223Zm4.163.958V20.22h1.371v.757h.089c.141-.26.357-.479.647-.657.297-.178.627-.268.991-.268.149 0 .283.012.402.034.119.022.223.052.312.089v1.46a3.776 3.776 0 0 0-.468-.145 1.67 1.67 0 0 0-.48-.067c-.438 0-.783.16-1.036.48-.245.319-.368.709-.368 1.17v2.83h-1.46Zm-63.399 16.179c-.579 0-1.096-.127-1.549-.38a2.874 2.874 0 0 1-1.059-1.07c-.252-.46-.378-.984-.378-1.57 0-.587.126-1.108.378-1.56.261-.454.613-.81 1.059-1.07.453-.26.97-.39 1.549-.39.632 0 1.174.133 1.627.4.454.268.781.654.981 1.16l-1.337.557a1.183 1.183 0 0 0-.502-.569 1.49 1.49 0 0 0-.769-.19c-.431 0-.795.153-1.092.458-.29.297-.435.698-.435 1.203 0 .513.145.922.435 1.226.297.298.661.446 1.092.446.327 0 .598-.07.814-.212.215-.148.39-.349.524-.601l1.304.58a2.698 2.698 0 0 1-1.015 1.147c-.453.29-.995.435-1.627.435Zm6.379 0c-.594 0-1.122-.13-1.582-.39a2.922 2.922 0 0 1-1.07-1.081 3.164 3.164 0 0 1-.379-1.55 3.1 3.1 0 0 1 .379-1.538c.26-.46.616-.82 1.07-1.08.46-.268.988-.402 1.582-.402.594 0 1.118.134 1.571.401.454.268.807.628 1.059 1.081.26.454.39.966.39 1.538 0 .572-.13 1.089-.39 1.55a2.835 2.835 0 0 1-1.059 1.08c-.453.26-.977.39-1.571.39Zm0-1.36c.282 0 .539-.063.769-.19.238-.133.427-.323.568-.568.149-.252.223-.553.223-.903 0-.349-.074-.646-.223-.891a1.487 1.487 0 0 0-.568-.569 1.604 1.604 0 0 0-1.549 0 1.575 1.575 0 0 0-.58.569c-.141.245-.211.542-.211.891 0 .35.07.65.211.903.149.245.342.435.58.569.245.126.505.189.78.189Zm4.029 1.181V36.22h1.37v.713h.089c.171-.275.413-.49.725-.647.312-.163.65-.245 1.014-.245.698 0 1.222.212 1.571.636.35.423.524.988.524 1.694v3.532h-1.46v-3.354c0-.372-.096-.654-.289-.847-.186-.2-.443-.301-.769-.301-.409 0-.732.156-.97.468-.23.312-.346.69-.346 1.137v2.897h-1.459Zm8.862.09c-.587 0-1.047-.168-1.382-.502-.334-.342-.501-.81-.501-1.404v-2.62h-.992V36.22h.992v-1.605h1.46v1.605h1.393v1.248h-1.393v2.351c0 .26.055.46.167.602.111.134.297.2.557.2a.88.88 0 0 0 .368-.066 3.06 3.06 0 0 0 .345-.178v1.426a2.73 2.73 0 0 1-1.014.19Zm4.652.089c-.572 0-1.085-.13-1.538-.39a2.868 2.868 0 0 1-1.059-1.07 3.134 3.134 0 0 1-.379-1.55c0-.542.127-1.043.379-1.504.253-.46.598-.828 1.037-1.103.438-.283.94-.424 1.504-.424.609 0 1.122.13 1.538.39.416.26.732.61.947 1.048.216.43.324.91.324 1.438 0 .118-.004.223-.011.312a1.825 1.825 0 0 1-.023.178h-4.257c.067.446.245.788.535 1.025.29.238.631.357 1.025.357.349 0 .643-.074.881-.223.237-.156.423-.35.557-.58l1.181.58c-.267.468-.616.84-1.047 1.114-.431.268-.963.402-1.594.402Zm-.045-4.848c-.334 0-.631.1-.891.3-.26.201-.442.48-.546.837h2.83a1.108 1.108 0 0 0-.189-.513 1.344 1.344 0 0 0-.468-.446 1.422 1.422 0 0 0-.736-.178Zm3.922 4.67v-5.684h1.371v.713h.089c.171-.275.413-.49.725-.647.312-.163.65-.245 1.014-.245.698 0 1.222.212 1.571.636.349.423.524.988.524 1.694v3.532h-1.46v-3.354c0-.372-.096-.654-.29-.847-.185-.2-.442-.301-.769-.301-.408 0-.731.156-.969.468-.231.312-.346.69-.346 1.137v2.897h-1.46Zm8.863.089c-.587 0-1.048-.168-1.382-.502-.334-.342-.501-.81-.501-1.404v-2.62h-.992V36.22h.992v-1.605h1.46v1.605h1.393v1.248h-1.393v2.351c0 .26.055.46.167.602.111.134.297.2.557.2a.88.88 0 0 0 .368-.066 3.06 3.06 0 0 0 .345-.178v1.426a2.73 2.73 0 0 1-1.014.19Z"})),Et||(Et=l.createElement("path",{fill:"#C7C7C7",d:"M149.749 64.817h-.742v-4.92l-1.488.546v-.67l2.115-.794h.115v5.838Zm1.381 15h-3.807v-.53l2.011-2.236c.298-.338.503-.612.615-.822.114-.213.172-.432.172-.658 0-.303-.092-.552-.276-.746-.183-.195-.428-.292-.734-.292-.367 0-.653.105-.858.316-.202.207-.303.497-.303.87h-.739c0-.535.172-.968.515-1.297.346-.33.808-.495 1.385-.495.54 0 .967.142 1.281.427.314.282.471.658.471 1.13 0 .571-.365 1.252-1.094 2.042l-1.556 1.688h2.917v.603Zm-2.733 11.736h.554c.349-.006.623-.097.822-.276.2-.178.3-.419.3-.722 0-.681-.339-1.022-1.018-1.022-.319 0-.575.092-.766.276-.189.18-.283.421-.283.722h-.739c0-.46.168-.842.503-1.145.338-.306.766-.46 1.285-.46.548 0 .978.146 1.289.436.311.29.467.693.467 1.209 0 .253-.082.497-.247.734a1.475 1.475 0 0 1-.667.53c.319.102.565.27.738.504.176.234.264.52.264.858 0 .521-.17.935-.511 1.24-.341.307-.784.46-1.329.46-.545 0-.99-.148-1.333-.443-.34-.296-.511-.685-.511-1.17h.743c0 .306.099.551.299.735.2.183.467.275.802.275.357 0 .629-.093.818-.28.189-.185.284-.453.284-.801 0-.338-.104-.598-.312-.778-.207-.181-.507-.275-.898-.28h-.554v-.602Zm2.043 16.312h.806v.603h-.806v1.349h-.742v-1.349h-2.646v-.435l2.602-4.026h.786v3.858Zm-2.55 0h1.808v-2.849l-.088.16-1.72 2.689Z"})),It||(It=l.createElement("path",{fill:"#C7C7C7",d:"M149 62.227c0-1.23 1.104-2.227 2.465-2.227h51.464c1.362 0 2.465.997 2.465 2.227s-1.103 2.227-2.465 2.227h-51.464c-1.361 0-2.465-.997-2.465-2.227ZM149 77.076c0-1.23 1.104-2.227 2.465-2.227h80.07c1.361 0 2.465.997 2.465 2.227s-1.104 2.227-2.465 2.227h-80.07c-1.361 0-2.465-.997-2.465-2.227ZM149 91.924c0-1.23 1.104-2.227 2.465-2.227h44.109c1.361 0 2.464.997 2.464 2.227s-1.103 2.227-2.464 2.227h-44.109c-1.361 0-2.465-.997-2.465-2.227ZM149 106.773c0-1.23 1.104-2.228 2.465-2.228h59.637c1.362 0 2.465.998 2.465 2.228 0 1.23-1.103 2.227-2.465 2.227h-59.637c-1.361 0-2.465-.997-2.465-2.227Z"})),Tt||(Tt=l.createElement("g",{filter:"url(#analytics-setup-sidekick_svg__b)"},l.createElement("rect",{width:148,height:122,x:4,y:52,fill:"#fff",rx:3.976}))),Rt||(Rt=l.createElement("path",{fill:"#202124",d:"M19.707 75.08c-.624 0-1.17-.133-1.638-.4a2.783 2.783 0 0 1-1.08-1.149c-.253-.505-.38-1.107-.38-1.805v-4.803h1.494v4.892c0 .528.133.966.4 1.315.276.35.677.524 1.204.524.528 0 .925-.174 1.193-.524.275-.349.412-.787.412-1.315v-4.892h1.494v4.803c0 .661-.127 1.245-.38 1.75-.252.505-.608.899-1.069 1.181-.46.282-1.01.424-1.65.424Zm4.585-.178V69.22h1.37v.713h.09c.17-.275.412-.49.724-.647.312-.163.65-.245 1.014-.245.699 0 1.223.212 1.572.635.349.424.523.989.523 1.695v3.532h-1.46v-3.354c0-.372-.096-.654-.29-.847-.185-.2-.441-.301-.768-.301-.409 0-.732.156-.97.468-.23.312-.345.69-.345 1.137v2.897h-1.46Zm7.496-6.308a.912.912 0 0 1-.669-.278.912.912 0 0 1-.278-.669c0-.26.093-.48.278-.657a.912.912 0 0 1 .669-.279c.26 0 .48.093.658.279a.876.876 0 0 1 .278.657c0 .26-.093.483-.278.669a.876.876 0 0 1-.658.278Zm-.736 6.308V69.22h1.46v5.683h-1.46Zm7.072 2.408v-2.285l.089-.803h-.09c-.14.223-.356.424-.645.602-.29.171-.643.257-1.06.257-.52 0-.987-.127-1.404-.38a2.811 2.811 0 0 1-.991-1.07c-.238-.452-.357-.976-.357-1.57 0-.595.119-1.119.357-1.572.245-.453.575-.806.991-1.059.417-.26.885-.39 1.405-.39.416 0 .769.09 1.059.268.29.178.505.379.646.601h.089v-.69h1.36v8.09h-1.45Zm-1.46-3.578c.275 0 .527-.07.758-.212.238-.14.427-.334.568-.58.149-.252.223-.545.223-.88 0-.334-.074-.624-.223-.869a1.471 1.471 0 0 0-.568-.58 1.46 1.46 0 0 0-1.516 0c-.23.134-.42.324-.568.569a1.736 1.736 0 0 0-.212.88c0 .335.07.628.212.88.148.254.338.45.568.591.238.134.49.201.758.201Zm6.352 1.349c-.698 0-1.222-.216-1.572-.647-.349-.43-.523-1.018-.523-1.76v-3.455h1.46v3.276c0 .386.093.691.278.914a.945.945 0 0 0 .736.323c.43 0 .765-.156 1.003-.468.238-.312.356-.695.356-1.148V69.22h1.46v5.683h-1.37v-.713h-.09a1.83 1.83 0 0 1-.724.658 2.192 2.192 0 0 1-1.014.234Zm7.23 0c-.572 0-1.085-.13-1.538-.39a2.868 2.868 0 0 1-1.059-1.07c-.252-.453-.379-.97-.379-1.55 0-.542.127-1.043.38-1.504.252-.46.597-.828 1.036-1.103.438-.283.94-.424 1.504-.424.61 0 1.122.13 1.538.39.416.26.732.61.947 1.048.216.43.324.91.324 1.438 0 .118-.004.222-.011.312a1.913 1.913 0 0 1-.023.178h-4.257c.067.446.245.787.535 1.025.29.238.631.357 1.025.357.35 0 .643-.074.88-.223.238-.156.424-.35.558-.58l1.181.58c-.267.468-.616.84-1.047 1.114-.431.268-.963.402-1.594.402Zm-.045-4.848c-.334 0-.631.1-.891.3-.26.201-.442.48-.546.837h2.83a1.114 1.114 0 0 0-.189-.513 1.35 1.35 0 0 0-.468-.446 1.42 1.42 0 0 0-.736-.178Zm8.306 4.67L56.1 69.218h1.66l1.438 3.7h.09l1.46-3.7h1.638l-2.43 5.683h-1.449Zm5.496-6.309a.912.912 0 0 1-.669-.278.912.912 0 0 1-.278-.669c0-.26.093-.48.279-.657a.912.912 0 0 1 .668-.279c.26 0 .48.093.658.279a.876.876 0 0 1 .278.657c0 .26-.093.483-.278.669a.876.876 0 0 1-.658.278Zm-.735 6.308V69.22h1.46v5.683h-1.46Zm5.142.179c-.49 0-.91-.07-1.26-.212a2.356 2.356 0 0 1-.836-.557 2.293 2.293 0 0 1-.479-.758l1.304-.569c.245.543.669.814 1.27.814.238 0 .454-.037.647-.111a.437.437 0 0 0 .29-.435.414.414 0 0 0-.156-.346.925.925 0 0 0-.368-.2 3.198 3.198 0 0 0-.457-.123l-.669-.145a2.526 2.526 0 0 1-.78-.312 2.04 2.04 0 0 1-.602-.58 1.504 1.504 0 0 1-.222-.813c0-.341.096-.639.29-.891.2-.253.467-.45.802-.591a2.92 2.92 0 0 1 1.125-.212c.565 0 1.048.1 1.45.301.4.2.701.513.902.936l-1.248.546a1.019 1.019 0 0 0-.468-.468 1.373 1.373 0 0 0-.602-.133c-.253 0-.453.048-.602.145-.149.096-.223.211-.223.345 0 .141.074.264.223.368.149.104.327.182.535.234l.836.2c.564.134.988.35 1.27.647.29.297.435.654.435 1.07 0 .371-.108.698-.323.98-.216.275-.505.49-.87.647a3.186 3.186 0 0 1-1.214.223Zm4.235-6.487a.912.912 0 0 1-.669-.278.912.912 0 0 1-.279-.669c0-.26.093-.48.279-.657a.912.912 0 0 1 .669-.279c.26 0 .479.093.657.279a.876.876 0 0 1 .279.657c0 .26-.093.483-.279.669a.876.876 0 0 1-.657.278Zm-.736 6.308V69.22h1.46v5.683h-1.46Zm5.4.09c-.587 0-1.048-.168-1.382-.502-.335-.342-.502-.81-.502-1.404v-2.62h-.992V69.22h.992v-1.605h1.46v1.605h1.393v1.248h-1.393v2.351c0 .26.056.46.167.602.112.134.298.2.558.2a.88.88 0 0 0 .368-.066 3.09 3.09 0 0 0 .345-.178v1.426c-.32.126-.658.19-1.014.19Zm4.707.089c-.594 0-1.122-.13-1.582-.39a2.929 2.929 0 0 1-1.07-1.081 3.168 3.168 0 0 1-.38-1.55c0-.572.127-1.084.38-1.538.26-.46.616-.82 1.07-1.08.46-.268.988-.402 1.582-.402.595 0 1.118.134 1.572.401.453.268.806.628 1.058 1.081.26.454.39.966.39 1.538 0 .572-.13 1.089-.39 1.55a2.844 2.844 0 0 1-1.058 1.08c-.454.26-.977.39-1.572.39Zm0-1.36c.282 0 .539-.063.77-.19a1.49 1.49 0 0 0 .567-.568 1.75 1.75 0 0 0 .223-.903c0-.349-.074-.646-.222-.891a1.49 1.49 0 0 0-.569-.569 1.605 1.605 0 0 0-1.55 0 1.573 1.573 0 0 0-.579.569c-.14.245-.211.542-.211.891 0 .35.07.65.212.903.148.245.341.435.58.569.244.126.504.189.78.189Zm4.029 1.181V69.22h1.37v.757h.09c.14-.26.356-.479.646-.657a1.89 1.89 0 0 1 .992-.268c.148 0 .282.011.401.034.119.022.223.052.312.089v1.46a3.772 3.772 0 0 0-.468-.145 1.663 1.663 0 0 0-.48-.067c-.438 0-.783.16-1.036.48-.245.319-.367.709-.367 1.17v2.83h-1.46Zm6.7.179c-.49 0-.91-.07-1.26-.212a2.356 2.356 0 0 1-.835-.557 2.293 2.293 0 0 1-.48-.758l1.305-.569c.245.543.668.814 1.27.814.238 0 .453-.037.646-.111a.437.437 0 0 0 .29-.435.414.414 0 0 0-.156-.346.924.924 0 0 0-.368-.2 3.196 3.196 0 0 0-.456-.123l-.67-.145a2.528 2.528 0 0 1-.78-.312 2.038 2.038 0 0 1-.601-.58 1.503 1.503 0 0 1-.223-.813c0-.341.097-.639.29-.891.2-.253.468-.45.802-.591a2.92 2.92 0 0 1 1.126-.212c.565 0 1.047.1 1.449.301.4.2.702.513.902.936l-1.248.546a1.018 1.018 0 0 0-.468-.468 1.374 1.374 0 0 0-.602-.133c-.252 0-.453.048-.602.145-.148.096-.222.211-.222.345 0 .141.074.264.222.368.149.104.327.182.535.234l.836.2c.565.134.988.35 1.27.647.29.297.435.654.435 1.07 0 .371-.107.698-.323.98-.215.275-.505.49-.87.647a3.187 3.187 0 0 1-1.214.223ZM17.166 88.902v-4.435h-1.014v-1.248h1.014v-.313c0-.66.197-1.17.591-1.526.394-.364.895-.546 1.505-.546.186 0 .36.01.524.033.163.022.297.052.4.09v1.426a5.375 5.375 0 0 0-.322-.112 1.206 1.206 0 0 0-.424-.067.847.847 0 0 0-.59.212c-.15.141-.224.335-.224.58v.223h1.394v1.248h-1.393v4.435h-1.46Zm3.991 0V83.22h1.371v.757h.09c.14-.26.356-.479.646-.657a1.89 1.89 0 0 1 .992-.268c.148 0 .282.011.4.034.12.022.224.052.313.089v1.46a3.778 3.778 0 0 0-.468-.145 1.663 1.663 0 0 0-.48-.067c-.438 0-.783.16-1.036.48-.245.319-.368.709-.368 1.17v2.83h-1.46Zm7.138.179c-.594 0-1.122-.13-1.582-.39a2.927 2.927 0 0 1-1.07-1.081 3.169 3.169 0 0 1-.38-1.55c0-.572.127-1.084.38-1.538.26-.46.616-.82 1.07-1.08.46-.268.988-.402 1.582-.402.595 0 1.118.134 1.572.401.453.268.806.628 1.058 1.081.26.454.39.966.39 1.538 0 .572-.13 1.089-.39 1.55a2.844 2.844 0 0 1-1.058 1.08c-.454.26-.977.39-1.572.39Zm0-1.36c.283 0 .539-.063.77-.19.237-.133.426-.323.568-.568a1.75 1.75 0 0 0 .223-.903c0-.349-.075-.646-.223-.891a1.492 1.492 0 0 0-.569-.569 1.606 1.606 0 0 0-1.55 0 1.572 1.572 0 0 0-.578.569c-.142.245-.212.542-.212.891 0 .35.07.65.212.903.148.245.341.435.58.569.244.126.504.189.78.189Zm4.029 1.181V83.22h1.37v.713h.09c.17-.268.405-.483.702-.647a2.093 2.093 0 0 1 1.025-.245c.416 0 .77.097 1.059.29.297.193.505.43.624.713.17-.275.412-.509.724-.702.32-.2.714-.3 1.182-.3.661 0 1.155.2 1.482.601.334.401.502.936.502 1.605v3.655h-1.45v-3.388c0-.364-.085-.639-.256-.824-.17-.194-.4-.29-.69-.29-.387 0-.692.152-.915.457-.222.304-.334.698-.334 1.181v2.864h-1.46v-3.388c0-.364-.089-.639-.267-.824-.171-.194-.416-.29-.736-.29-.364 0-.654.152-.87.457-.215.304-.322.698-.322 1.181v2.864h-1.46Zm14.917.179c-.49 0-.91-.07-1.26-.212a2.356 2.356 0 0 1-.835-.557 2.291 2.291 0 0 1-.48-.758l1.305-.569c.245.543.669.814 1.27.814.238 0 .453-.037.647-.111a.438.438 0 0 0 .29-.435.414.414 0 0 0-.157-.346.925.925 0 0 0-.367-.2 3.198 3.198 0 0 0-.457-.123l-.669-.145a2.527 2.527 0 0 1-.78-.312 2.038 2.038 0 0 1-.602-.58 1.503 1.503 0 0 1-.223-.813c0-.341.097-.639.29-.891.2-.253.468-.45.802-.591a2.92 2.92 0 0 1 1.126-.212c.565 0 1.048.1 1.449.301.401.2.702.513.902.936l-1.248.546a1.019 1.019 0 0 0-.468-.468 1.373 1.373 0 0 0-.602-.133c-.252 0-.453.048-.601.145-.149.096-.223.211-.223.345 0 .141.074.264.223.368.148.104.327.182.535.234l.835.2c.565.134.989.35 1.27.647.29.297.435.654.435 1.07 0 .371-.107.698-.323.98-.215.275-.505.49-.869.647a3.186 3.186 0 0 1-1.215.223Zm6.183 0c-.572 0-1.085-.13-1.538-.39a2.868 2.868 0 0 1-1.059-1.07c-.252-.453-.379-.97-.379-1.55 0-.542.127-1.043.38-1.504.252-.46.597-.828 1.036-1.103.438-.283.94-.424 1.504-.424.61 0 1.122.13 1.538.39.416.26.732.61.947 1.048.216.43.324.91.324 1.438 0 .118-.004.222-.011.312a1.913 1.913 0 0 1-.023.178h-4.257c.067.446.245.787.535 1.025.29.238.632.357 1.025.357.35 0 .643-.074.88-.223.238-.156.424-.35.558-.58l1.181.58c-.267.468-.616.84-1.047 1.114-.431.268-.962.402-1.594.402Zm-.045-4.848c-.334 0-.631.1-.891.3-.26.201-.442.48-.546.837h2.83a1.114 1.114 0 0 0-.189-.513 1.351 1.351 0 0 0-.468-.446 1.42 1.42 0 0 0-.736-.178Zm5.715 4.848a2.36 2.36 0 0 1-1.07-.234 1.876 1.876 0 0 1-.724-.68 1.875 1.875 0 0 1-.267-1.003c0-.394.1-.732.3-1.014a2.07 2.07 0 0 1 .825-.658c.35-.156.736-.234 1.16-.234.348 0 .65.03.902.09.253.051.453.107.602.166v-.245a.93.93 0 0 0-.346-.747c-.23-.2-.546-.3-.947-.3-.268 0-.528.063-.78.189-.245.119-.45.279-.613.48l-.936-.736a2.75 2.75 0 0 1 1.036-.825c.416-.193.87-.29 1.36-.29.87 0 1.53.2 1.984.602.453.401.68.988.68 1.76v3.5h-1.438v-.58h-.09a1.948 1.948 0 0 1-.646.536c-.267.148-.598.223-.992.223Zm.346-1.137c.297 0 .546-.063.747-.19.208-.133.364-.304.468-.512.111-.208.167-.427.167-.658a2.34 2.34 0 0 0-.558-.19 2.609 2.609 0 0 0-.635-.077c-.43 0-.728.082-.891.245a.818.818 0 0 0-.245.602c0 .223.078.408.234.557.163.149.4.223.713.223Zm4.163.958V83.22h1.37v.757h.09c.141-.26.356-.479.646-.657a1.89 1.89 0 0 1 .992-.268c.149 0 .282.011.401.034.12.022.223.052.312.089v1.46a3.778 3.778 0 0 0-.468-.145 1.663 1.663 0 0 0-.479-.067c-.438 0-.784.16-1.036.48-.246.319-.368.709-.368 1.17v2.83h-1.46Zm7.093.179c-.58 0-1.096-.127-1.549-.38a2.868 2.868 0 0 1-1.059-1.07c-.252-.46-.378-.984-.378-1.57 0-.588.126-1.108.379-1.56.26-.454.612-.81 1.058-1.07.453-.26.97-.39 1.55-.39.63 0 1.173.133 1.626.4.454.268.78.654.981 1.16l-1.337.557a1.184 1.184 0 0 0-.502-.569 1.494 1.494 0 0 0-.769-.19c-.43 0-.795.153-1.092.458-.29.297-.434.698-.434 1.203 0 .513.144.922.434 1.226.297.298.661.446 1.092.446.327 0 .598-.07.814-.212.215-.148.39-.349.524-.601l1.304.58a2.7 2.7 0 0 1-1.015 1.147c-.453.29-.995.435-1.627.435Zm3.714-.179v-7.98h1.46v2.018l-.089.992h.09c.163-.26.397-.472.701-.635a2.1 2.1 0 0 1 1.026-.257c.705 0 1.237.212 1.593.635.364.417.546.981.546 1.695v3.532h-1.46v-3.354c0-.372-.1-.654-.3-.847-.201-.2-.461-.301-.78-.301-.26 0-.491.074-.692.223-.2.14-.356.334-.468.58a1.944 1.944 0 0 0-.167.813v2.886h-1.46Z"})),Lt||(Lt=l.createElement("path",{stroke:"#CCC",strokeWidth:1.486,d:"m22.5 144.244 5.55-4.092 4.44 1.86 5.92-1.86 8.14 5.58 6.66-1.488 3.33-4.092 5.18 5.58 3.7-1.488 8.51 3.347 8.51-7.439 4.81 1.86 5.92-2.976 2.22 1.116h6.66l9.62-13.762 2.96 5.579 2.59-1.487 2.96 4.463 13.32-4.463"})),Dt||(Dt=l.createElement("g",{filter:"url(#analytics-setup-sidekick_svg__c)"},l.createElement("rect",{width:148,height:122,x:226,y:69,fill:"#fff",rx:3.976}))),Ot||(Ot=l.createElement("path",{fill:"#DEDEDE",d:"M331.315 120.007a23.387 23.387 0 0 1 6.546-1.154l.216 8.328a15.2 15.2 0 0 0-4.255.75l-2.507-7.924Z"})),Pt||(Pt=l.createElement("path",{fill:"#C6C6C6",d:"M319.491 128.654a23.758 23.758 0 0 1 11.122-8.405l2.753 7.839a15.44 15.44 0 0 0-7.229 5.464l-6.646-4.898Z"})),Zt||(Zt=l.createElement("path",{fill:"#F1F1F1",d:"M319.348 156.639a23.871 23.871 0 0 1-4.426-13.619 24.068 24.068 0 0 1 4.141-13.754l6.795 4.683a15.646 15.646 0 0 0-2.691 8.94 15.51 15.51 0 0 0 2.877 8.852l-6.696 4.898Z"})),zt||(zt=l.createElement("path",{fill:"#959595",d:"M352.229 161.904a23.453 23.453 0 0 1-17.188 4.31 23.358 23.358 0 0 1-15.25-8.976l6.541-5.107a15.182 15.182 0 0 0 9.912 5.834 15.24 15.24 0 0 0 11.173-2.801l4.812 6.74Z"})),Ht||(Ht=l.createElement("path",{fill:"#C7C7C7",d:"M338.601 118.842c4.912 0 9.693 1.551 13.674 4.437a23.611 23.611 0 0 1 8.532 11.657 24.032 24.032 0 0 1 .208 14.531 23.977 23.977 0 0 1-8.192 11.989l-5.021-6.583a15.626 15.626 0 0 0 5.19-17.239 15.35 15.35 0 0 0-5.545-7.577 15.145 15.145 0 0 0-8.889-2.884l.043-8.331Z"})),Bt||(Bt=l.createElement("ellipse",{cx:327.009,cy:174.262,fill:"#959595",rx:1.85,ry:1.86})),Ft||(Ft=l.createElement("ellipse",{cx:334.41,cy:174.262,fill:"#C7C7C7",rx:1.85,ry:1.86})),Vt||(Vt=l.createElement("ellipse",{cx:341.81,cy:174.262,fill:"#DEDEDE",rx:1.85,ry:1.86})),Ut||(Ut=l.createElement("ellipse",{cx:349.209,cy:174.262,fill:"#F1F1F1",rx:1.85,ry:1.86})),Gt||(Gt=l.createElement("path",{stroke:"#ECE9F1",strokeLinecap:"round",strokeWidth:.994,d:"M238.336 175.624h58.206"})),Wt||(Wt=l.createElement("path",{stroke:"#ECE9F1",strokeLinecap:"round",strokeWidth:.497,d:"M238.088 160.995h58.703M238.088 146.117h58.703M238.088 131.24h58.703"})),Yt||(Yt=l.createElement("path",{fill:"url(#analytics-setup-sidekick_svg__d)",d:"M264.829 164.08c-4.374-1.37-6.29-5.044-10.433-5.568-4.285-.542-7.612 13.315-16.557 14.64v2.97h59.2V150.691c-2.378-.516-4.616-19.012-9.777-17.643-5.162 1.369-8.961 22.202-13.073 15.493-4.111-6.71-4.985 16.908-9.36 15.539Z",opacity:.08})),$t||($t=l.createElement("path",{fill:"#B8B8B8",d:"M241.722 119.374h-2.434l-.547 1.516h-.79l2.219-5.81h.67l2.223 5.81h-.786l-.555-1.516Zm-2.203-.631h1.976l-.99-2.717-.986 2.717Zm5.013 2.147h-.739v-6.129h.739v6.129Zm1.987 0h-.738v-6.129h.738v6.129Zm5.878-.427c-.287.338-.709.507-1.265.507-.46 0-.811-.133-1.053-.399-.24-.269-.361-.665-.364-1.189v-2.809h.739v2.789c0 .654.266.982.798.982.564 0 .939-.211 1.125-.631v-3.14h.738v4.317h-.702l-.016-.427Zm4.358-.718a.537.537 0 0 0-.228-.463c-.149-.112-.411-.207-.786-.287a3.813 3.813 0 0 1-.89-.287 1.29 1.29 0 0 1-.487-.4.966.966 0 0 1-.155-.55c0-.354.149-.653.447-.898.3-.245.684-.367 1.149-.367.49 0 .886.126 1.189.379.306.253.459.576.459.97h-.742a.666.666 0 0 0-.259-.523.956.956 0 0 0-.647-.22c-.269 0-.479.059-.63.176a.552.552 0 0 0-.228.459c0 .178.071.312.212.403.141.09.395.177.762.259.37.083.669.181.898.296.228.114.397.252.507.415a1 1 0 0 1 .167.586c0 .386-.154.696-.463.93-.308.231-.709.347-1.201.347a2.18 2.18 0 0 1-.918-.183 1.514 1.514 0 0 1-.626-.511 1.254 1.254 0 0 1-.224-.714h.738a.773.773 0 0 0 .296.59c.186.144.431.216.734.216.279 0 .503-.056.67-.168a.524.524 0 0 0 .256-.455Zm3.492 1.225c-.586 0-1.062-.191-1.429-.574-.367-.386-.551-.901-.551-1.545v-.136c0-.428.081-.81.244-1.145.165-.338.393-.601.686-.79.295-.191.615-.287.958-.287.561 0 .998.185 1.309.554.311.37.467.9.467 1.589v.307h-2.925c.01.426.134.77.371 1.034.239.26.542.391.91.391.26 0 .481-.054.662-.16.181-.106.339-.247.475-.423l.451.351c-.362.556-.905.834-1.628.834Zm-.092-3.871a.979.979 0 0 0-.75.328c-.203.215-.328.518-.376.909h2.163v-.055c-.021-.376-.122-.666-.303-.87-.181-.208-.426-.312-.734-.312Zm4.721.136a2.175 2.175 0 0 0-.363-.028c-.485 0-.813.206-.986.619v3.064h-.738v-4.317h.718l.012.498c.242-.385.585-.578 1.03-.578.143 0 .252.018.327.056v.686Zm3.196 2.51a.539.539 0 0 0-.227-.463c-.149-.112-.411-.207-.786-.287a3.797 3.797 0 0 1-.89-.287 1.283 1.283 0 0 1-.487-.4.958.958 0 0 1-.156-.55c0-.354.149-.653.447-.898.301-.245.684-.367 1.149-.367.49 0 .886.126 1.19.379.306.253.459.576.459.97h-.743a.663.663 0 0 0-.259-.523.954.954 0 0 0-.647-.22c-.268 0-.478.059-.63.176a.552.552 0 0 0-.228.459c0 .178.071.312.212.403.141.09.395.177.762.259.37.083.669.181.898.296.229.114.398.252.507.415a.993.993 0 0 1 .167.586c0 .386-.154.696-.462.93-.309.231-.709.347-1.202.347-.345 0-.651-.061-.917-.183a1.524 1.524 0 0 1-.627-.511 1.253 1.253 0 0 1-.223-.714h.738a.772.772 0 0 0 .295.59c.186.144.431.216.734.216.28 0 .503-.056.671-.168a.525.525 0 0 0 .255-.455Z"})),Kt||(Kt=l.createElement("path",{fill:"#202124",d:"M240.358 92.903V86.35h-2.229v-1.427h5.963v1.427h-2.229v6.553h-1.505Zm4.072 0v-5.684h1.37v.758h.09c.141-.26.356-.48.646-.658.297-.178.628-.267.992-.267.149 0 .282.01.401.033.119.022.223.052.312.09v1.46a3.743 3.743 0 0 0-.468-.146 1.654 1.654 0 0 0-.479-.067c-.438 0-.784.16-1.037.48-.245.32-.367.71-.367 1.17v2.83h-1.46Zm6.32.178c-.401 0-.758-.078-1.07-.234a1.877 1.877 0 0 1-.724-.68 1.878 1.878 0 0 1-.268-1.003c0-.394.101-.732.301-1.014.208-.282.483-.502.825-.658a2.81 2.81 0 0 1 1.159-.234c.349 0 .65.03.903.09.252.051.453.107.602.167v-.246a.931.931 0 0 0-.346-.746c-.23-.2-.546-.301-.947-.301-.268 0-.528.063-.78.19-.245.118-.45.278-.613.478l-.936-.735a2.75 2.75 0 0 1 1.036-.825 3.19 3.19 0 0 1 1.36-.29c.869 0 1.53.201 1.983.602.454.401.68.989.68 1.761v3.5h-1.437v-.58h-.09a1.946 1.946 0 0 1-.646.535c-.267.149-.598.223-.992.223Zm.346-1.137c.297 0 .546-.063.746-.19a1.29 1.29 0 0 0 .468-.512c.112-.208.168-.427.168-.657a2.355 2.355 0 0 0-.558-.19 2.604 2.604 0 0 0-.635-.078c-.431 0-.728.082-.891.245a.817.817 0 0 0-.246.602c0 .223.078.409.234.557.164.149.402.223.714.223Zm12.814-5.294a.932.932 0 0 1-.669-.267.933.933 0 0 1-.268-.669c0-.26.09-.479.268-.657a.913.913 0 0 1 .669-.279c.26 0 .479.093.657.279a.875.875 0 0 1 .279.657c0 .26-.093.483-.279.669a.892.892 0 0 1-.657.267Zm-8.147 6.253v-4.436h-1.014v-1.248h1.014v-.312c0-.661.197-1.17.591-1.527.393-.364.895-.546 1.504-.546a2.603 2.603 0 0 1 .624.067v1.404a6.55 6.55 0 0 0-.212-.056.961.961 0 0 0-.323-.044.713.713 0 0 0-.524.211c-.133.142-.2.335-.2.58v.223h2.251v-.312c0-.661.197-1.17.591-1.527.394-.364.895-.546 1.504-.546a2.593 2.593 0 0 1 .624.067v1.404a7.12 7.12 0 0 0-.211-.056.972.972 0 0 0-.324-.044.71.71 0 0 0-.523.211c-.134.142-.201.335-.201.58v.223h3.7v5.684h-1.449v-4.436h-2.251v4.436h-1.46v-4.436h-2.251v4.436h-1.46Zm13.01.178c-.579 0-1.095-.126-1.549-.379a2.873 2.873 0 0 1-1.058-1.07c-.253-.46-.379-.984-.379-1.571s.126-1.107.379-1.56c.26-.454.613-.81 1.058-1.07.454-.26.97-.39 1.549-.39.632 0 1.174.133 1.628.4.453.268.78.654.98 1.16l-1.337.557a1.183 1.183 0 0 0-.502-.568 1.49 1.49 0 0 0-.769-.19c-.43 0-.795.152-1.092.457-.29.297-.434.698-.434 1.204 0 .512.144.921.434 1.226.297.297.662.445 1.092.445.327 0 .599-.07.814-.211.215-.149.39-.35.524-.602l1.304.58a2.703 2.703 0 0 1-1.014 1.147c-.454.29-.996.435-1.628.435Z"})),Qt||(Qt=l.createElement("defs",null,l.createElement("filter",{id:"analytics-setup-sidekick_svg__a",width:152.97,height:126.97,x:132.515,y:.012,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},l.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),l.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"}),l.createElement("feMorphology",{in:"SourceAlpha",operator:"dilate",radius:.497,result:"effect1_dropShadow_532_12388"}),l.createElement("feOffset",{dy:.497}),l.createElement("feGaussianBlur",{stdDeviation:.994}),l.createElement("feColorMatrix",{values:"0 0 0 0 0.423529 0 0 0 0 0.443137 0 0 0 0 0.458824 0 0 0 0.15 0"}),l.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_532_12388"}),l.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"}),l.createElement("feOffset",{dy:.994}),l.createElement("feGaussianBlur",{stdDeviation:.746}),l.createElement("feColorMatrix",{values:"0 0 0 0 0.337255 0 0 0 0 0.352941 0 0 0 0 0.360784 0 0 0 0.25 0"}),l.createElement("feBlend",{in2:"effect1_dropShadow_532_12388",result:"effect2_dropShadow_532_12388"}),l.createElement("feBlend",{in:"SourceGraphic",in2:"effect2_dropShadow_532_12388",result:"shape"})),l.createElement("filter",{id:"analytics-setup-sidekick_svg__b",width:154.431,height:128.431,x:.784,y:49.588,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},l.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),l.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"}),l.createElement("feOffset",{dy:.804}),l.createElement("feGaussianBlur",{stdDeviation:1.608}),l.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),l.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_532_12388"}),l.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_532_12388",result:"shape"})),l.createElement("filter",{id:"analytics-setup-sidekick_svg__c",width:154.431,height:128.431,x:222.784,y:66.588,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},l.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),l.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"}),l.createElement("feOffset",{dy:.804}),l.createElement("feGaussianBlur",{stdDeviation:1.608}),l.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),l.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_532_12388"}),l.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_532_12388",result:"shape"})),l.createElement("linearGradient",{id:"analytics-setup-sidekick_svg__d",x1:258.024,x2:258.024,y1:132.976,y2:184.15,gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#4F4F4F"}),l.createElement("stop",{offset:1,stopColor:"#4F4F4F",stopOpacity:0})))));function ActivateAnalyticsNotice(){const[e,t]=(0,Ct.A)(V,U),i=(0,l.useCallback)(e=>{t(e.target.checked)},[t]);return(0,S.jsxs)("div",{className:"googlesitekit-setup-analytics-notice",children:[(0,S.jsx)("div",{className:"googlesitekit-setup-analytics-notice__opt-in",children:(0,S.jsx)(g.Checkbox,{id:"googlesitekit-analytics-setup-opt-in",name:"googlesitekit-analytics-setup-opt-in",value:"1",checked:e,onChange:i,children:(0,it.A)((0,c.__)("Connect Google Analytics as part of your setup. Activate Google Analytics to track how much traffic you’re getting and how people navigate your site.","google-site-kit"),{strong:(0,S.jsx)("strong",{})})})}),(0,S.jsx)("div",{className:"googlesitekit-setup-analytics-notice__icon",children:(0,S.jsx)(Jt,{})})]})}var ei=i(84470);function ti(e){const t=e.split(".");return(+t[0]<<24)+(+t[1]<<16)+(+t[2]<<8)+ +t[3]}function ii(e,t,i){return(ti(e)&-1<<32-i)===ti(t)}const oi="amp_cdn_restricted",ni="check_api_unavailable",si="check_fetch_failed",ri="google_api_connection_fail",ai="invalid_hostname",li="setup_token_mismatch",ci="google_sk_service_connection_fail",di=/^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$/,gi=/\.(example|invalid|localhost|test)$/,ui=[{subnet:"10.0.0.0",mask:8},{subnet:"127.0.0.0",mask:8},{subnet:"172.16.0.0",mask:12},{subnet:"192.168.0.0",mask:16}];async function hi(){const{hostname:e,port:t}=globalThis.location;if(t)throw ai;if(di.test(e)){for(const{mask:t,subnet:i}of ui)if(ii(e,i,t))throw ai}else if(!e.includes(".")||e.match(gi))throw ai}function pi(e){return async()=>{if((await e.dispatch(_.O4).checkForSetupTag()).error)throw li}}async function mi(){const e=await(0,d.get)("core","site","health-checks",void 0,{useCache:!1}).catch(e=>{if("fetch_error"===e.code)throw si;throw ni});if(!e?.checks?.googleAPI?.pass)throw ri;if(!e?.checks?.skService?.pass)throw ci}async function fi(){if(!(await fetch("https://cdn.ampproject.org/v0.js").catch(()=>{throw oi})).ok)throw oi}var _i=i(12968);const ki={[oi]:"amp_cdn_restricted",[ni]:"check_api_unavailable",[li]:"setup_token_mismatch"};function GetHelpLink({errorCode:e}){const t=(0,s.useSelect)(t=>t(_.O4).getErrorTroubleshootingLinkURL({code:ki[e]}));return t?(0,S.jsx)(ot.A,{href:t,external:!0,children:(0,c.__)("Get help","google-site-kit")}):null}function vi(e,t){const{installed:i,active:o,installURL:n,activateURL:s,configureURL:r}=e;return!i&&n?{"aria-label":(0,c.__)("Install the helper plugin","google-site-kit"),children:(0,c.__)("Install","google-site-kit"),href:n,external:!1}:i&&!o&&s?{"aria-label":(0,c.__)("Activate the helper plugin","google-site-kit"),children:(0,c.__)("Activate","google-site-kit"),href:s,external:!1}:i&&o&&r?{"aria-label":(0,c.__)("Configure the helper plugin","google-site-kit"),children:(0,c.__)("Configure","google-site-kit"),href:r,external:!1}:{"aria-label":(0,c.__)("Learn how to install and use the helper plugin","google-site-kit"),children:(0,c.__)("Learn how","google-site-kit"),href:t,external:!0}}function CompatibilityErrorNotice({error:e}){const t=(0,s.useSelect)(e=>e(_.O4).getDeveloperPluginState())||{},{installed:i}=t,o=(0,s.useSelect)(e=>e(_.O4).getDocumentationLinkURL("staging")),n=(0,s.useSelect)(e=>e(_.O4).getErrorTroubleshootingLinkURL({code:ri}));switch(e){case ni:return(0,S.jsx)(j.A,{children:(0,it.A)((0,c.__)("Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site. ","google-site-kit"),{GetHelpLink:(0,S.jsx)(GetHelpLink,{errorCode:e})})});case ai:case si:return(0,S.jsxs)(j.A,{children:[!i&&(0,S.jsx)("span",{children:(0,it.A)((0,c.__)("Looks like this may be a staging environment. If so, you’ll need to install a helper plugin and verify your production site in Search Console. ","google-site-kit"),{GetHelpLink:(0,S.jsx)(ot.A,{...vi(t,o)})})}),i&&(0,S.jsx)("span",{children:(0,it.A)((0,c.__)("Looks like this may be a staging environment and you already have the helper plugin. Before you can use Site Kit, please make sure you’ve provided the necessary credentials in the Authentication section and verified your production site in Search Console. ","google-site-kit"),{GetHelpLink:(0,S.jsx)(ot.A,{...vi(t,o)})})})]});case li:return(0,S.jsx)(j.A,{children:(0,it.A)((0,c.__)("Looks like Site Kit is unable to place or detect tags on your site. This can be caused by using certain caching or maintenance mode plugins or your site’s frontend is configured on a different host or infrastructure than your administration dashboard. ","google-site-kit"),{GetHelpLink:(0,S.jsx)(GetHelpLink,{errorCode:e})})});case ri:return(0,S.jsx)(j.A,{dangerouslySetInnerHTML:(0,_i.p)(`\n\t\t\t\t\t\t${(0,c.__)("Looks like your site is having a technical issue with requesting data from Google services.","google-site-kit")}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t${(0,c.sprintf)(/* translators: 1: Help URL, 2: Support Forum URL, 3: Error message */ /* translators: 1: Help URL, 2: Support Forum URL, 3: Error message */ (0,c.__)('Click here for more information, or to get more help, ask a question on our support forum and include the text of the original error message: %3$s',"google-site-kit"),n,"https://wordpress.org/support/plugin/google-site-kit/",`
${e}`)}\n\t\t\t\t\t\t`,{ALLOWED_TAGS:["a","br"],ALLOWED_ATTR:["href"]})});case oi:return(0,S.jsx)(j.A,{children:(0,it.A)((0,c.__)("Looks like the AMP CDN is restricted in your region, which could interfere with setup on the Site Kit service. ","google-site-kit"),{GetHelpLink:(0,S.jsx)(GetHelpLink,{errorCode:e})})});case ci:return(0,S.jsx)(j.A,{dangerouslySetInnerHTML:(0,_i.p)(`\n\t\t\t\t\t\t${(0,c.__)("Looks like your site is having a technical issue with connecting to the Site Kit authentication service.","google-site-kit")}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t${(0,c.sprintf)(/* translators: 1: Support Forum URL, 2: Error message */ /* translators: 1: Support Forum URL, 2: Error message */ (0,c.__)('To get more help, ask a question on our support forum and include the text of the original error message: %2$s',"google-site-kit"),"https://wordpress.org/support/plugin/google-site-kit/",`
${e}`)}\n\t\t\t\t\t\t`,{ALLOWED_TAGS:["a","br"],ALLOWED_ATTR:["href"]})})}}function CompatibilityChecks({children:e,...t}){const i=(0,s.useRegistry)(),{complete:o,error:n}=function(e){const[t]=(0,l.useState)(e),[i,o]=(0,l.useState)(!t?.length),[n,s]=(0,l.useState)(void 0);return(0,rt.A)(()=>{i||async function(){try{for(const e of t)await e()}catch(e){s(e)}o(!0)}()}),{complete:i,error:n}}(function(e){return e.select(_.O4).isConnected()?[]:[hi,mi,pi(e),fi]}(i)),r=n&&(0,S.jsxs)(v.xA,{className:"googlesitekit-setup-compat",alignLeft:!0,children:[(0,S.jsxs)("div",{className:"googlesitekit-setup__warning",children:[(0,S.jsx)(ei.A,{}),(0,S.jsx)("div",{className:"googlesitekit-heading-4",children:(0,c.__)("Your site may not be ready for Site Kit","google-site-kit")})]}),(0,S.jsx)(CompatibilityErrorNotice,{error:n})]});return e({props:t,complete:o,error:n,inProgressFeedback:!o&&(0,S.jsxs)("div",{className:"googlesitekit-margin-left-1rem googlesitekit-align-self-center",children:[(0,S.jsx)("small",{children:(0,c.__)("Checking Compatibility…","google-site-kit")}),(0,S.jsx)(g.ProgressBar,{small:!0,compress:!0})]}),ctaFeedback:r})}var yi,bi,xi,Ci,Ai,Mi,Si,Ni,wi,ji,Ei,Ii;function Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",Ti({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 174 167"},e),yi||(yi=l.createElement("path",{fill:"#F1F3F4",d:"M158.121 0H0v87.697h158.121V0Z"})),bi||(bi=l.createElement("path",{stroke:"#fff",strokeMiterlimit:10,strokeWidth:8,d:"M40.314 67.99c13.594 0 24.614-11.007 24.614-24.586 0-13.58-11.02-24.587-24.614-24.587-13.593 0-24.613 11.008-24.613 24.587S26.72 67.99 40.314 67.99Z"})),xi||(xi=l.createElement("path",{stroke:"#D9DBDF",strokeMiterlimit:10,strokeWidth:8,d:"M54.075 23.024c6.546 4.417 10.853 11.903 10.853 20.386 0 13.58-11.019 24.588-24.614 24.588S15.701 56.984 15.701 43.404c0-13.58 11.018-24.58 24.613-24.58"})),Ci||(Ci=l.createElement("path",{stroke:"#fff",strokeMiterlimit:10,strokeWidth:8,d:"M115.103 68.029c13.594 0 24.613-11.008 24.613-24.587 0-13.58-11.019-24.587-24.613-24.587S90.489 29.863 90.489 43.442s11.02 24.587 24.614 24.587Z"})),Ai||(Ai=l.createElement("path",{stroke:"#D9DBDF",strokeMiterlimit:10,strokeWidth:8,d:"M119.085 19.179c11.7 1.9 20.631 12.043 20.631 24.263 0 13.58-11.018 24.587-24.613 24.587-13.595 0-24.614-11.007-24.614-24.587s11.019-24.587 24.614-24.587"})),Mi||(Mi=l.createElement("path",{fill:"#F1F3F4",d:"M115.332 167c32.405 0 58.674-2.726 58.674-6.088s-26.269-6.088-58.674-6.088-58.674 2.726-58.674 6.088S82.928 167 115.332 167Z"})),Si||(Si=l.createElement("path",{stroke:"#148E3A",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:6,d:"M125.237 111.026c-1.584 18.042-.865 35.066 4.899 49.886h12.787M102.424 111.026c-1.622 17.635-.439 34.406 4.898 49.886H95.426"})),Ni||(Ni=l.createElement("path",{stroke:"#0D8034",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:6,d:"M125.237 111.026c-.394 4.512-.649 8.954-.712 13.32M102.424 111.026c-.534 5.815-.763 11.534-.642 17.146"})),wi||(wi=l.createElement("path",{fill:"#1E8E3E",d:"m107.539 67.374-54.756 5.192 5.191 54.697 54.762-5.186 54.756-5.192-5.198-54.696-54.755 5.185Z"})),ji||(ji=l.createElement("path",{stroke:"#fff",strokeMiterlimit:10,strokeWidth:5,d:"M106.406 93.01c5.815 4.798 15.402 5.376 21.541-2.04"})),Ei||(Ei=l.createElement("path",{stroke:"#34A853",strokeMiterlimit:10,strokeWidth:6,d:"M163.427 77.631c-65.246 6.006-90.973-8.801-101.07-23.297M58.903 95.787c-12.959-1.652-26.248-17.412-29.626-30.014"})),Ii||(Ii=l.createElement("path",{stroke:"#148E3A",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:6,d:"M58.903 95.787c-3.88-.496-7.793-2.256-11.457-4.817"})));var Li,Di,Oi,Pi,Zi,zi,Hi,Bi,Fi,Vi,Ui,Gi,Wi,Yi,$i,Ki,Qi,Xi,qi,Ji,eo,to,io,oo,no,so,ro,ao,lo,co,go,uo,ho,po,mo,fo,_o,ko,vo,yo,bo,xo,Co,Ao,Mo,So,No,wo,jo,Eo,Io,To;function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",Ro({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 570 336"},e),Li||(Li=l.createElement("path",{stroke:"#4285F4",strokeLinejoin:"round",strokeWidth:7,d:"M170.78,167.21c11.36-5.5,21.2,1.59,22.73,7"})),Di||(Di=l.createElement("ellipse",{cx:292.73,cy:307.44,fill:"#F1F3F4",rx:252.51,ry:10.01})),Oi||(Oi=l.createElement("path",{stroke:"#4285F4",strokeLinejoin:"round",strokeWidth:7,d:"M93.23,212.44c-6,6.78-17,9.12-25.62,8.24-14.77-1.52-23-11-28.38-24"})),Pi||(Pi=l.createElement("path",{stroke:"#1A73E8",strokeLinejoin:"round",strokeWidth:7,d:"M93.23,212.44a24.66,24.66,0,0,1-11.81,7"})),Zi||(Zi=l.createElement("path",{stroke:"#1967D2",strokeLinejoin:"round",strokeWidth:7,d:"M125.33 206.44 112.12 242a60 60 0 0 0 .12 42.15l11.09 21.34H109.11M125.33 206.44 115.78 232.11M146.34 216.44 146.34 305.44 159.57 305.44M125.33 206.44a72.1 72.1 0 0 0-5.25 13.5M146.34 216.44 146.34 223.44"})),zi||(zi=l.createElement("path",{fill:"#1A73E8",d:"M142.65,219.64a61.5,61.5,0,0,1-80.49-33l113.46-47.52A61.51,61.51,0,0,1,142.65,219.64Z"})),Hi||(Hi=l.createElement("path",{stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5,d:"M146.93,202c7.74-4.34,12.25-12.92,12.66-22.39l-43.54,17.79"})),Bi||(Bi=l.createElement("path",{stroke:"#FBBC04",strokeLinejoin:"round",strokeWidth:7,d:"M385.07 137.93c18 7.48 43.08 2.83 56-12.14 11.22-13 11.51-31.12 6.34-46.75M322.39 152.05c-24.41 12-41.12 72.46-24.79 98M365.34 177.13c2.77 13.29 5.23 29.83 9.9 45.42"})),Fi||(Fi=l.createElement("path",{stroke:"#F29900",strokeLinejoin:"round",strokeWidth:7,d:"m366 239.9 3.21 28.92a29.93 29.93 0 0 1-3.14 17L356 305.44h14.22M341.55 234.9 341.55 305.44 328.32 305.44"})),Vi||(Vi=l.createElement("path",{stroke:"#EA8600",strokeLinejoin:"round",strokeWidth:7,d:"M366.02 239.9 367.18 250.34M341.55 234.9 341.55 250.34"})),Ui||(Ui=l.createElement("path",{fill:"#F9AB00",d:"M396.25 159.92 399.43 77.98 317.49 74.81 314.31 156.75 311.13 238.69 393.08 241.87 396.25 159.92z"})),Gi||(Gi=l.createElement("path",{stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5,d:"M335.08,118.92c5,15.13,20.44,24.7,38.06,14.51"})),Wi||(Wi=l.createElement("path",{stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5,d:"M340,115c-2.94,3.32-5.56,4.45-11.13,5.07"})),Yi||(Yi=l.createElement("path",{stroke:"#34A853",strokeLinejoin:"round",strokeWidth:7,d:"M326.51,226.26c9.21,1.09,46.63,9.81,36.62-24"})),$i||($i=l.createElement("path",{stroke:"#188038",strokeLinejoin:"round",strokeWidth:7,d:"M255.19 243.91c-1.95 22.25-1.06 43.25 6 61.53H277M227.09 243.91c-2 21.75-.54 42.43 6 61.53H218.47"})),Ki||(Ki=l.createElement("path",{stroke:"#137333",strokeLinejoin:"round",strokeWidth:7,d:"M255.19 243.91a212.54 212.54 0 0 0-.86 22.78M227.09 243.91q-.75 8.16-.82 16.11"})),Qi||(Qi=l.createElement("path",{stroke:"#4285F4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:7,d:"M193.58,180c-2.07,8.2-14.68,10.84-20.68,15.6-1.52,1.21-3.64,2.28-4.66,4a5,5,0,0,0-.6,1.84"})),Xi||(Xi=l.createElement("path",{stroke:"#34A853",strokeLinejoin:"round",strokeWidth:7,d:"M163.46,270.46c-9.77-6.25-16-20.14-13.11-31.58,2.53-9.9,14-22.34,23.45-25.13"})),qi||(qi=l.createElement("path",{fill:"#1E8E3E",d:"M256.35 176.56 174.84 167.6 165.88 249.12 247.39 258.08 328.91 267.04 337.87 185.53 256.35 176.56z"})),Ji||(Ji=l.createElement("path",{stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5,d:"M221.29,221.77C234.34,238,260,245,280.76,228.31"})),eo||(eo=l.createElement("path",{stroke:"#E94235",strokeLinejoin:"round",strokeWidth:7,d:"M486.65,220.21C504,231,522.5,249.9,535.85,213.92"})),to||(to=l.createElement("path",{stroke:"#D93025",strokeLinejoin:"round",strokeWidth:7,d:"M486.65,220.21c4.33,2.7,8.74,5.9,13.12,8.63"})),io||(io=l.createElement("path",{stroke:"#E94235",strokeLinejoin:"round",strokeWidth:7,d:"M392.08,212.43c2.38,17.25,3.91,37.24,0,54.26"})),oo||(oo=l.createElement("path",{stroke:"#D93025",strokeLinejoin:"round",strokeWidth:7,d:"M392.08,212.43c1,7.16,1.82,14.78,2.19,22.47"})),no||(no=l.createElement("path",{stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:7,d:"M430.17 218.39 421.63 305.44 399.33 305.44M469.93 218.39 461.39 305.44 482.13 305.44"})),so||(so=l.createElement("path",{stroke:"#B31412",strokeLinejoin:"round",strokeWidth:7,d:"M430.17 218.39 426.5 255.77M469.93 218.39 466.6 252.34"})),ro||(ro=l.createElement("circle",{cx:444.5,cy:188.84,r:61.5,fill:"#D93025"})),ao||(ao=l.createElement("path",{stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5,d:"M464.88,219.51c-9.5,12.78-27.2,17-40.68,1.74"})),lo||(lo=l.createElement("path",{stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5,d:"M430.17,219.55c-4.42-.27-7.08.79-11.45,4.29"})),co||(co=l.createElement("path",{d:"M167.64,201.39a8.07,8.07,0,0,0,2.46,7.06c3.38,3,10.33,1.86,12-2.55"})),go||(go=l.createElement("path",{fill:"#80868B",d:"M517.93,197.07l-.44,2.26a3,3,0,0,0,.93,2.81l4.27,3.85a6,6,0,0,1,1.53,6.75l-4.56,11.07a20.08,20.08,0,0,0-1.5,8.14l.31,12.64a2,2,0,0,0,1.62,1.91l2.75.54a2,2,0,0,0,2.22-1.16l5.06-11.58a20,20,0,0,0,1.68-8.11l0-12a6,6,0,0,1,4-5.68l5.4-1.95a3,3,0,0,0,1.93-2.25l.44-2.26Z"})),uo||(uo=l.createElement("path",{fill:"#DADCE0",d:"M519.03 185.68H545.0799999999999V199.71H519.03z",transform:"rotate(11.08 532.28 192.78)"})),ho||(ho=l.createElement("path",{stroke:"#BDC1C6",strokeMiterlimit:10,strokeWidth:.44,d:"M520.05 186.25 545.61 191.26M518.51 194.12 544.07 199.13"})),po||(po=l.createElement("path",{fill:"#5F6368",d:"M523.09,164H548a.59.59,0,0,1,.59.59V186a0,0,0,0,1,0,0H522.5a0,0,0,0,1,0,0V164.56a.59.59,0,0,1,.59-.59Z",transform:"rotate(11.08 535.77 175.113)"})),mo||(mo=l.createElement("path",{stroke:"#BDC1C6",strokeMiterlimit:10,strokeWidth:.44,d:"M523.58 183.88 527.81 162.25M527.51 184.65 531.75 163.02M531.44 185.42 535.68 163.79M535.37 186.19 539.61 164.56M539.31 186.96 543.55 165.33M543.24 187.73 547.48 166.1"})),fo||(fo=l.createElement("path",{fill:"#24C1E0",d:"M549.45,166.49l-23.6-4.63a1,1,0,0,0-1.18.79l-1.35,6.89,2.56,9.24a3,3,0,0,0,4.38,1.82l8.63-4.89a6,6,0,0,1,7.33,1.1l1.84,1.95,2.18-11.1A1,1,0,0,0,549.45,166.49Z"})),_o||(_o=l.createElement("path",{fill:"#BDC1C6",d:"M91.3,137.33,77.09,125.86l-57,70.65a9.12,9.12,0,0,0,1.38,12.84h0A9.12,9.12,0,0,0,34.33,208Zm-60.91,61a5,5,0,1,1-7.09.76A5,5,0,0,1,30.39,198.31Z"})),ko||(ko=l.createElement("path",{fill:"#DADCE0",d:"M83.68,117.3l15.58,9.54,10-16.37a22.82,22.82,0,1,1-15.38-9.85Z"})),vo||(vo=l.createElement("path",{fill:"#DADCE0",d:"M81.24 122.25 75.23 127.87 91.48 137.82 97.42 132.17 81.24 122.25z"})),yo||(yo=l.createElement("path",{fill:"#F8F9FA",d:"M95.68 131.1 89.67 136.71 91.42 137.78 97.42 132.17 95.68 131.1zM92.07 128.89 86.06 134.5 87.81 135.57 93.81 129.96 92.07 128.89zM88.46 126.67 82.45 132.29 84.2 133.36 90.2 127.74 88.46 126.67zM84.85 124.46 78.84 130.08 80.59 131.15 86.59 125.53 84.85 124.46zM81.24 122.25 75.23 127.87 76.98 128.94 82.98 123.32 81.24 122.25z"})),bo||(bo=l.createElement("path",{fill:"#BDC1C6",d:"M466.08 97.09 461.17 99.63 427.6 28.96 432.51 26.42 466.08 97.09z"})),xo||(xo=l.createElement("path",{fill:"#DADCE0",d:"M437.63 33.71 430.06 37.63 424.44 21.95 429.07 19.55 437.63 33.71z"})),Co||(Co=l.createElement("path",{d:"M466.83,105.11h0A7.34,7.34,0,0,1,456.69,102l-15.25-32.1,13.88-7.18,15.24,32.1A8,8,0,0,1,466.83,105.11Z"})),Ao||(Ao=l.createElement("path",{fill:"#5F6368",d:"M464.56,100.33h0A4,4,0,0,1,459,98.6L444.59,68.22l7.58-3.92L466.6,94.68A4.35,4.35,0,0,1,464.56,100.33Z"})),Mo||(Mo=l.createElement("path",{fill:"#BDC1C6",d:"M142.69 257.09H204.07V269.78H142.69z",transform:"rotate(-39.14 173.403 263.444)"})),So||(So=l.createElement("path",{fill:"#9AA0A6",d:"M192.5 239.38H197.77V252.07H192.5z",transform:"rotate(-39.14 195.16 245.736)"})),No||(No=l.createElement("path",{fill:"#BDC1C6",d:"M205.54 244.6H218.44V254.16H205.54z",transform:"rotate(50.86 211.987 249.357)"})),wo||(wo=l.createElement("rect",{width:16.52,height:9.9,x:209.99,y:252.12,fill:"#DADCE0",rx:1.53,transform:"rotate(140.86 218.257 257.06)"})),jo||(jo=l.createElement("path",{fill:"#DADCE0",d:"M175.87,220.73c4.56-.39,13.4-.24,24.73,4.4a14.61,14.61,0,0,1,5.8,4.3l9,11.11a1.53,1.53,0,0,1-.22,2.16l-10.44,8.5a1.53,1.53,0,0,1-2.15-.23l-8-9.81A44.24,44.24,0,0,1,189.9,234c-1.21-2.28-4.66-6.23-14.42-11.22A1.06,1.06,0,0,1,175.87,220.73Z"})),Eo||(Eo=l.createElement("rect",{width:3.47,height:74.9,x:158.98,y:236.29,fill:"#BDC1C6",rx:1.73,transform:"rotate(50.86 160.713 273.711)"})),Io||(Io=l.createElement("path",{fill:"#5F6368",d:"M166.85,260.56l-38.79,31.57a6.34,6.34,0,0,0,8,9.84l38.79-31.57Z"})),To||(To=l.createElement("path",{stroke:"#34A853",strokeLinejoin:"round",strokeWidth:7,d:"M163.46,270.46c-9.77-6.25-16-20.14-13.11-31.58"})));function LegacySplashContent({analyticsModuleActive:e,analyticsModuleAvailable:t,children:i,connectedProxyURL:o,description:n,disconnectedReason:s,getHelpURL:r,homeURL:a,secondAdminLearnMoreLink:l,showLearnMoreLink:d,title:g}){const u=e?{smSize:4,mdSize:8,lgSize:6}:{smSize:4,mdSize:8,lgSize:8};return(0,S.jsxs)(v.fI,{className:"googlesitekit-setup__content",children:[(0,S.jsxs)(v.fh,{smSize:4,mdSize:8,lgSize:e?6:4,className:"googlesitekit-setup__icon",children:[e&&(0,S.jsx)(Lo,{width:"570",height:"336"}),!e&&(0,S.jsx)(Ri,{height:"167",width:"175"})]}),(0,S.jsxs)(v.fh,{...u,children:[(0,S.jsx)(m.A,{as:"h1",className:"googlesitekit-setup__title",size:"large",type:"headline",children:g}),(0,S.jsxs)("p",{className:"googlesitekit-setup__description",children:[!d&&n,d&&(0,it.A)((0,c.sprintf)(/* translators: 1: The description. 2: The learn more link. */ /* translators: 1: The description. 2: The learn more link. */ (0,c.__)("%1$s %2$s","google-site-kit"),n,(0,c.__)("Learn more","google-site-kit")),{Link:(0,S.jsx)(ot.A,{href:l,external:!0})})]}),r&&(0,S.jsx)(ot.A,{href:r,external:!0,children:(0,c.__)("Get help","google-site-kit")}),k.qv===s&&o!==a&&(0,S.jsxs)(j.A,{children:[(0,c.sprintf)(/* translators: %s: Previous Connected Proxy URL */ /* translators: %s: Previous Connected Proxy URL */ (0,c.__)("— Old URL: %s","google-site-kit"),o),(0,S.jsx)("br",{}),(0,c.sprintf)(/* translators: %s: Connected Proxy URL */ /* translators: %s: Connected Proxy URL */ (0,c.__)("— New URL: %s","google-site-kit"),a)]}),t&&!e&&(0,S.jsx)(ActivateAnalyticsNotice,{}),(0,S.jsx)(CompatibilityChecks,{children:i})]})]})}LegacySplashContent.propTypes={analyticsModuleActive:C().bool,analyticsModuleAvailable:C().bool,children:C().func,connectedProxyURL:C().oneOfType([C().string,C().bool]),description:C().string,disconnectedReason:C().string,getHelpURL:C().string,homeURL:C().string,secondAdminLearnMoreLink:C().string,title:C().string.isRequired};var Do,Oo,Po,Zo=i(26421),zo=i(56804),Ho=i(41680),Bo=i(85110),Fo=i(3789);function Vo(){return Vo=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",Vo({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32"},e),Do||(Do=l.createElement("rect",{width:32,height:32,fill:"#fff",rx:8.533})),Oo||(Oo=l.createElement("path",{fill:"#F9AB00",d:"M24.3736 22.933C24.3736 24.2326 23.3187 25.3296 22.0191 25.3296C21.9388 25.3296 21.8165 25.3296 21.7362 25.3296C20.5169 25.1653 19.6225 24.0721 19.6645 22.8527V8.7177C19.6225 7.49837 20.5169 6.4434 21.7362 6.24082C23.0358 6.07645 24.2131 7.01293 24.3775 8.31253C24.3775 8.3928 24.3775 8.51511 24.3775 8.59538V22.933H24.3736Z"})),Po||(Po=l.createElement("path",{fill:"#E37400",d:"M9.46706 20.6202C10.7667 20.6202 11.8216 21.6752 11.8216 22.9748C11.8216 24.2744 10.7667 25.3293 9.46706 25.3293C8.16747 25.3293 7.1125 24.2744 7.1125 22.9748C7.07045 21.6752 8.16747 20.6202 9.46706 20.6202ZM15.6822 13.4304C14.3826 13.5106 13.3659 14.6076 13.3659 15.9072V22.2829C13.3659 23.9877 14.138 25.0465 15.235 25.2873C16.5346 25.5319 17.7539 24.7178 18.0368 23.4182C18.0788 23.2538 18.0788 23.0933 18.0788 22.9289V15.8193C18.0788 14.5197 17.0238 13.4227 15.7242 13.4227H15.6822V13.4304Z"})));var Go=i(97015);function AnalyticsOptIn(){const e=(0,K.A)(),[t,i]=(0,Ct.A)(V,U),o=(0,l.useCallback)(e=>{i(e.target.checked)},[i]),n=(0,Bo.WM)(e=>e(_.O4).getDocumentationLinkURL("why-set-up-ga4"),[]);return Go.createElement("div",{className:"googlesitekit-setup__analytics-opt-in-wrapper"},Go.createElement("div",{className:"googlesitekit-setup__analytics-opt-in-wrapper-header"},Go.createElement(Uo,{width:32,height:32}),Go.createElement(m.A,{size:Ho.Kk,type:Ho.SZ,className:"googlesitekit-setup__analytics-opt-in-wrapper-header-title"},(0,c.__)("Analytics","google-site-kit")),Go.createElement(zo.A,{className:"googlesitekit-splash__analytics-recommended-badge",label:(0,c.__)("Recommended","google-site-kit")})),Go.createElement(Fo.A,{id:"googlesitekit-analytics-setup-opt-in",name:"googlesitekit-analytics-setup-opt-in",description:(0,it.A)((0,c.__)("To get better insights about your site, Site Kit will update your Analytics account, for example by enabling enhanced measurement. ","google-site-kit"),{LearnMoreLink:Go.createElement(ot.A,{href:n,onClick:()=>{(0,I.sx)(e,"click_learn_more_link","analytics_checkbox")},external:!0,hideExternalIndicator:!0},(0,c.__)("Learn more","google-site-kit"))}),checked:!!t,onChange:o,value:"1"},(0,c.__)("Get visitor insights by connecting Google Analytics as part of setup","google-site-kit")))}function SplashContent({analyticsModuleActive:e,analyticsModuleAvailable:t,children:i,connectedProxyURL:o,description:n,disconnectedReason:s,getHelpURL:r,homeURL:a,secondAdminLearnMoreLink:d,showLearnMoreLink:g,title:u}){(0,rt.A)(()=>{globalThis.document.body.classList.add("googlesitekit-setup-flow")});const h=(0,gt.dv)(),p=h===gt.mp||h===gt.Lg,f=(0,Y.i)("setupFlowRefreshPhase4"),_=e?{smSize:4,mdSize:6,lgSize:6}:{smSize:4,mdSize:8,lgSize:6};return(0,S.jsxs)(l.Fragment,{children:[(0,S.jsx)("div",{className:"googlesitekit-setup__notifications",children:(0,S.jsx)(Zo.A,{areaSlug:bt.bI.SPLASH_CONTENT})}),(0,S.jsxs)(v.fI,{className:"googlesitekit-setup__content",children:[(0,S.jsxs)(v.fh,{..._,children:[(0,S.jsx)(m.A,{as:"h1",className:"googlesitekit-setup__title",size:p?"small":"medium",type:"headline",children:u}),(g||n)&&(0,S.jsxs)("p",{className:"googlesitekit-setup__description",children:[!g&&n,g&&(0,it.A)((0,c.sprintf)(/* translators: 1: The description. 2: The learn more link. */ /* translators: 1: The description. 2: The learn more link. */ (0,c.__)("%1$s %2$s","google-site-kit"),n,(0,c.__)("Learn more","google-site-kit")),{Link:(0,S.jsx)(ot.A,{href:d,external:!0})})]}),r&&(0,S.jsx)(ot.A,{href:r,external:!0,children:(0,c.__)("Get help","google-site-kit")}),k.qv===s&&o!==a&&(0,S.jsxs)(j.A,{children:[(0,c.sprintf)(/* translators: %s: Previous Connected Proxy URL */ /* translators: %s: Previous Connected Proxy URL */ (0,c.__)("— Old URL: %s","google-site-kit"),o),(0,S.jsx)("br",{}),(0,c.sprintf)(/* translators: %s: Connected Proxy URL */ /* translators: %s: Connected Proxy URL */ (0,c.__)("— New URL: %s","google-site-kit"),a)]}),f&&e&&(0,S.jsx)(Services,{}),t&&!e&&(0,S.jsx)(AnalyticsOptIn,{}),(0,S.jsx)(CompatibilityChecks,{children:i})]}),(0,S.jsxs)(v.fh,{smSize:4,mdSize:8,lgSize:6,className:"googlesitekit-setup__screenshot",children:[(0,S.jsx)(ft,{className:"googlesitekit-setup__splash-graphic-background",width:"508",height:"466"}),(0,S.jsx)("div",{className:"googlesitekit-setup__splash-graphic-screenshot",children:(0,S.jsx)(SetupFlowSVG,{})})]})]})]})}function Splash({children:e}){const t=(0,Y.i)("setupFlowRefresh"),i=(0,Y.i)("setupFlowRefreshPhase4"),o=(0,s.useSelect)(e=>e(at.i).isModuleAvailable(At.L1)),n=(0,s.useSelect)(e=>e(at.i).isModuleActive(At.L1)),r=(0,s.useSelect)(e=>e(_.O4).hasConnectedAdmins()),a=(0,s.useSelect)(e=>!!e(k.oR).getViewableModules()?.length),l=(0,s.useSelect)(e=>e(_.O4).getReferenceSiteURL()),d=(0,s.useSelect)(e=>e(_.O4).getHomeURL()),g=(0,s.useSelect)(e=>e(_.O4).getDocumentationLinkURL("already-configured")),u=(0,s.useSelect)(e=>e(k.oR).getDisconnectedReason()),h=(0,s.useSelect)(e=>e(k.oR).getConnectedProxyURL()),p=(0,s.useSelect)(e=>e(_.O4).getDocumentationLinkURL("url-has-changed"));let m,f,y=!1,b=null;"revoked"===(0,_t.d)(location.href,"googlesitekit_context")?(m=(0,c.sprintf)(/* translators: %s: is the site's hostname. (e.g. example.com) */ /* translators: %s: is the site's hostname. (e.g. example.com) */ (0,c.__)("You revoked access to Site Kit for %s","google-site-kit"),Xt.Ay.toUnicode(new URL(l).hostname)),f=(0,c.__)('Site Kit will no longer have access to your account. If you’d like to reconnect Site Kit, click "Sign in with Google" below to generate new credentials.',"google-site-kit")):k.qv===u?(m=(0,c.__)("Reconnect Site Kit","google-site-kit"),f=(0,c.__)("Looks like the URL of your site has changed. In order to continue using Site Kit, you’ll need to reconnect, so that your plugin settings are updated with the new URL.","google-site-kit"),b=p):r?t?(m=(0,c.__)("Let's get started!","google-site-kit"),f=i&&n&&a?(0,c.__)("Site Kit has already been configured by another admin of this site. To use Site Kit as well, sign in with your Google account which has access to Google services for this site (e.g. Google Analytics). Once you complete the setup, you’ll see stats from all connected Google services that are shared with you:","google-site-kit"):(0,c.__)("Site Kit has already been configured by another admin of this site. To use Site Kit as well, sign in with your Google account which has access to Google services for this site (e.g. Google Analytics). Once you complete the setup, you’ll see stats from all connected Google services.","google-site-kit")):(m=(0,c.__)("Connect your Google account to Site Kit","google-site-kit"),f=(0,c.__)("Site Kit has already been configured by another admin of this site. To use Site Kit as well, sign in with your Google account which has access to Google services for this site (e.g. Google Analytics). Once you complete the 3 setup steps, you’ll see stats from all activated Google services.","google-site-kit"),y=!0):t?m=(0,c.__)("Let’s get started!","google-site-kit"):(m=(0,c.__)("Set up Site Kit","google-site-kit"),f=(0,c.__)("Get insights on how people find your site, as well as how to improve and monetize your site’s content, directly in your WordPress dashboard","google-site-kit"));const x=t?"googlesitekit-splash":"googlesitekit-setup__splash",C=t?SplashContent:LegacySplashContent,A={analyticsModuleActive:n,secondAdminLearnMoreLink:g,homeURL:d,analyticsModuleAvailable:o,disconnectedReason:u,title:m,description:f,getHelpURL:b,connectedProxyURL:h,showLearnMoreLink:y};return(0,S.jsx)("section",{className:x,children:(0,S.jsx)(v.xA,{children:(0,S.jsx)(C,{...A,children:e})})})}function SetupUsingProxyWithSignIn(){const e=(0,Y.i)("setupFlowRefresh"),t=(0,Y.i)("setupFlowRefreshPhase4"),i=(0,$.A)(),o=(0,K.A)(),{navigateTo:n}=(0,s.useDispatch)(W.M),{activateModule:r}=(0,s.useDispatch)(at.i),{saveInitialSetupSettings:a,setIsAnalyticsSetupComplete:c,setHasSitePurposeAnswer:d}=(0,s.useDispatch)(k.oR),{registerNotification:g}=(0,s.useDispatch)(xt.D),u=(0,s.useSelect)(e=>e(_.O4).getProxySetupURL()),h=(0,s.useSelect)(e=>e(_.O4).isConnected()),[m]=(0,Ct.A)(V,U),y=(0,s.useSelect)(e=>e(_.O4).getAdminURL("googlesitekit-dashboard",i)),x="reset_success"===(0,_t.d)(location.href,"notification");(0,l.useEffect)(()=>{x&&g("reset_success",{areaSlug:bt.bI.SPLASH_CONTENT,Component:ResetNotice,isDismissible:!1,priority:bt.FQ.INFO,viewContexts:[o]})},[g,x,o]);const C=(0,l.useCallback)(async()=>{let i,n=!1;if(m){const{error:t,response:s}=await r(At.L1);if(t)throw t;await(0,I.sx)(`${o}_setup`,e?"setup_flow_v3_start_with_analytics":"start_setup_with_analytics"),i=s.moduleReauthURL,e&&(i=(0,B.F)(i,{showProgress:!0}),c(!1),n=!0)}if(t&&(d(!1),n=!0),n){const{error:e}=await a();if(e)throw e}return i},[r,m,a,d,c,e,t,o]),A=(0,l.useCallback)(async s=>{let r;s.preventDefault();try{r=await C()}catch{if(!t)return;return void g("analytics-activation-error-notification",{Component:()=>(0,S.jsx)(SetupUsingProxyWithSignIn_AnalyticsActivationErrorNotification,{onRetry:A}),priority:bt.FQ.ERROR_HIGH,areaSlug:bt.bI.SPLASH_CONTENT,viewContexts:[o],isDismissible:!1,featureFlag:"setupFlowRefreshPhase4"})}if(u&&await Promise.all([(0,f.SO)("start_user_setup",!0),(0,I.sx)(`${o}_setup`,e?"setup_flow_v3_start_user_setup":"start_user_setup","proxy")]),u&&!h&&await Promise.all([(0,f.SO)("start_site_setup",!0),(0,I.sx)(`${o}_setup`,e?"setup_flow_v3_start_site_setup":"start_site_setup","proxy")]),r&&u){const e=(0,B.F)(r,i);n((0,B.F)(u,{redirect:e}))}else u&&Object.keys(i).length&&y?n((0,B.F)(u,{redirect:y})):n(u)},[i,h,n,y,u,g,C,e,t,o]),M=(0,S.jsx)(p.A,{rounded:!e,children:(0,S.jsx)(Splash,{children:({complete:e,inProgressFeedback:t,ctaFeedback:o})=>(0,S.jsx)(Actions,{proxySetupURL:u,onButtonClick:A,forwardableParams:i,complete:e,inProgressFeedback:t,ctaFeedback:o})})});return(0,S.jsxs)(l.Fragment,{children:[(0,S.jsx)(SetupUsingProxyWithSignIn_Header_Header,{}),(0,S.jsx)("div",{className:b()("googlesitekit-setup",{"googlesitekit-initial-setup":e}),children:e?(0,S.jsxs)(l.Fragment,{children:[(0,S.jsx)(F.A,{}),M]}):(0,S.jsx)(v.xA,{children:(0,S.jsx)(v.fI,{children:(0,S.jsxs)(v.fh,{size:12,children:[x&&(0,S.jsx)(ResetNotice,{}),x&&(0,S.jsx)("br",{}),M]})})})})]})}function DashboardSplashApp(){const e=(0,s.useSelect)(e=>e(_.O4).isUsingProxy()),t=(0,s.useSelect)(e=>e(k.oR).hasCapability(k.ej));return!0===e?t?(0,S.jsx)(SetupUsingProxyWithSignIn,{}):(0,S.jsx)(SetupUsingProxyViewOnly,{}):!1===e?(0,S.jsx)(H,{}):null}SplashContent.propTypes={analyticsModuleActive:C().bool,analyticsModuleAvailable:C().bool,children:C().func,connectedProxyURL:C().oneOfType([C().string,C().bool]),description:C().string,disconnectedReason:C().string,getHelpURL:C().string,homeURL:C().string,secondAdminLearnMoreLink:C().string,showLearnMoreLink:C().bool,title:C().string.isRequired};var Wo=i(90685),Yo=i(97015);(0,o.A)(async()=>{globalThis._googlesitekitLegacyData.admin.resetSession&&await(0,f.IL)();const e=document.getElementById("js-googlesitekit-splash");e&&(0,n.render)(Yo.createElement(Wo.A,{viewContext:E.uR},Yo.createElement(DashboardSplashApp,null)),e)})},3789(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o=i(4452),n=i.n(o),s=i(63696),r=i(25898),a=i(97015);const __WEBPACK_DEFAULT_EXPORT__=({onChange:e,id:t,name:i,value:o,checked:l=!1,indeterminate:c=!1,disabled:d=!1,children:g,tabIndex:u,onKeyDown:h,loading:p=!1,alignLeft:m=!1,description:f,badge:_})=>{const k=(0,s.useRef)(null);(0,s.useEffect)(()=>{k.current&&(k.current.indeterminate=c)},[c,p]);const v=_?a.createElement("div",{className:"mdc-checkbox__label-wrapper"},a.createElement("label",{htmlFor:t},g),_):a.createElement("label",{htmlFor:t},g);return a.createElement("div",{className:"mdc-form-field"},a.createElement("div",{className:n()("mdc-checkbox",{"mdc-checkbox--disabled":d,"mdc-checkbox--align-left":m})},p?a.createElement(r.A,{style:{margin:"0"},isSaving:!0}):a.createElement(s.Fragment,null,a.createElement("input",{ref:k,"aria-checked":c?"mixed":""+(l?"true":"false"),className:"mdc-checkbox__native-control",type:"checkbox",id:t,name:i,value:o,checked:l,disabled:d,onChange:e,tabIndex:u,onKeyDown:h}),a.createElement("div",{className:"mdc-checkbox__background"},a.createElement("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 12 9"},a.createElement("path",{className:"mdc-checkbox__checkmark-path",d:"M2.08301 5.28834L3.55703 7.29507C4.24647 8.23368 5.5034 8.23368 6.19285 7.29507L10.083 1.99902",fill:"none",stroke:"none"})),a.createElement("div",{className:"mdc-checkbox__mixedmark"})))),!f&&v,f&&a.createElement("div",{className:"mdc-checkbox__content"},v,a.createElement("div",{className:"mdc-checkbox__description"},f)))}},49456(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o=i(34909),n=i(4452),s=i.n(n),r=i(78174),a=i(63696),l=i(97015);const __WEBPACK_DEFAULT_EXPORT__=({anchorElement:e,onClose:t,placement:i="top-end",autoDismissMs:n=4e3,offset:c=9,resetKey:d,children:g,className:u,rootClassName:h,arrow:p=!1,skidding:m=0,positionFixed:f=!1})=>{const _=Boolean(e),k=(0,a.useRef)(null),[v,y]=(0,a.useState)(null),b=(0,a.useRef)(),x=(0,a.useRef)(t);x.current=t;const C=(0,a.useCallback)(()=>{void 0!==b.current&&(clearTimeout(b.current),b.current=void 0)},[]),A=(0,a.useCallback)(()=>{C(),n<=0||(b.current=setTimeout(()=>{x.current()},n))},[n,C]);function M(){C()}function S(){_&&A()}return(0,a.useEffect)(()=>(_&&A(),C),[_,d,A,C]),(0,a.useEffect)(()=>{const t=e?.ownerDocument??document;function i(t){const i=t.target;k.current?.contains(i)||e?.contains(i)||x.current()}return _&&t.addEventListener("mousedown",i),()=>{t.removeEventListener("mousedown",i)}},[_,e]),(0,r.A)(e=>_&&"Escape"===e.key,()=>x.current()),l.createElement(o.A,{open:_,anchorEl:e,placement:i,className:s()("googlesitekit-popper-root",h),role:void 0,modifiers:{offset:{offset:`${m}, ${c}`},preventOverflow:{boundariesElement:"window"},arrow:{enabled:p,element:v}},popperOptions:{positionFixed:f},disablePortal:!0},l.createElement("div",{ref:k,className:s()("googlesitekit-popper",u),onMouseEnter:M,onMouseLeave:S,onFocus:M,onBlur:function(e){k.current?.contains(e.relatedTarget)||S()}},g,p&&l.createElement("span",{className:"googlesitekit-popper__arrow",ref:y})))}},79558(e,t,i){i.d(t,{Ay:()=>r,Kq:()=>s});const o=(0,i(63696).createContext)({}),{Consumer:n,Provider:s}=o,r=o},64510(e,t,i){i.d(t,{Fo:()=>s,Lg:()=>r,Qb:()=>n,dv:()=>l,mp:()=>a});var o=i(11004);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}},11004(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]}},23479(e,t,i){i.d(t,{fh:()=>a,xA:()=>u,fI:()=>d});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:d=!1,lgAlignRight:g=!1,smSize:u=0,smStart:h=0,smOrder:p=0,mdSize:m=0,mdStart:f=0,mdOrder:_=0,lgSize:k=0,lgStart:v=0,lgOrder:y=0,size:b=0,children:x,...C})=>r.createElement("div",(0,o.A)({},C,{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":d,"mdc-layout-grid__cell--align-right-desktop":g,[`mdc-layout-grid__cell--span-${b}`]:12>=b&&b>0,[`mdc-layout-grid__cell--span-${k}-desktop`]:12>=k&&k>0,[`mdc-layout-grid__cell--start-${v}-desktop`]:12>=v&&v>0,[`mdc-layout-grid__cell--order-${y}-desktop`]:12>=y&&y>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-${h}-phone`]:4>=h&&h>0,[`mdc-layout-grid__cell--order-${p}-phone`]:4>=p&&p>0})}),x);var l=i(63696),c=i(97015);const d=(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 g=i(97015);const u=(0,l.forwardRef)(({alignLeft:e=!1,fill:t=!1,className:i="",children:n,collapsed:r=!1,...a},l)=>g.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))},44446(e,t,i){i.d(t,{CV:()=>w,Cu:()=>b,K9:()=>o,Kr:()=>p,Lf:()=>u,Oh:()=>r,PW:()=>N,Rx:()=>R,S9:()=>m,TQ:()=>d,Vt:()=>I,Wl:()=>v,ZC:()=>n,ZY:()=>a,_p:()=>T,ag:()=>h,aj:()=>g,bz:()=>j,dC:()=>M,dq:()=>E,fB:()=>S,fV:()=>A,iB:()=>c,kc:()=>l,mo:()=>_,nc:()=>C,pL:()=>x,rm:()=>y,to:()=>s,wo:()=>f,yn:()=>k});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",d="enhanced-measurement-form",g="enhanced-measurement-enabled",u="enhanced-measurement-should-dismiss-activation-banner",h="analyticsAccountCreate",p="analyticsCustomDimensionsCreate",m="https://www.googleapis.com/auth/analytics.edit",f="dashboardAllTrafficWidgetDimensionName",_="dashboardAllTrafficWidgetDimensionColor",k="dashboardAllTrafficWidgetDimensionValue",v="dashboardAllTrafficWidgetActiveRowIndex",y="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"}},x=Object.keys(b),C={ADD_TO_CART:"add_to_cart",PURCHASE:"purchase",SUBMIT_LEAD_FORM:"submit_lead_form",GENERATE_LEAD:"generate_lead",CONTACT:"contact"},A=[C.CONTACT,C.GENERATE_LEAD,C.SUBMIT_LEAD_FORM],M=[C.PURCHASE,C.ADD_TO_CART],S={"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"}}}}]}}]}}}}]}},N="audiencePermissionsSetup",w="audienceTileCustomDimensionCreate",j="audience-selection-panel-expirable-new-badge-",E="audience",I="customDimension",T="property",R=[E,I,T]},56804(e,t,i){i.d(t,{A:()=>d});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 d=c},98248(e,t,i){i.d(t,{A:()=>CTAButton});var o=i(62688),n=i.n(o),s=i(49383),r=i(54399),a=i(62540);function CTAButton({label:e,ariaLabel:t,disabled:i,inProgress:o,onClick:n,href:l,external:c=!1,hideExternalIndicator:d=!1}){if(!e||!n&&!l)return null;let g;return c&&!d&&(g=(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:g,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})}},12930(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})}},98958(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(56848),c=i(64510),d=i(98248),g=i(75865),u=i(48858),h=i(62540);function Description({className:e,description:t,learnMoreLink:i,additionalDescription:o,children:s}){return(0,h.jsxs)("div",{className:n()("googlesitekit-banner__description",e),children:[(0,a.isValidElement)(t)?t:"string"==typeof t?(0,h.jsx)("span",{dangerouslySetInnerHTML:(0,g.p9)(t,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}):t," ",i?.href&&(0,h.jsx)(u.A,{...i}),o&&(0,h.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 p=i(12930);function Footer({className:e,children:t}){return(0,h.jsx)("div",{className:n()("googlesitekit-banner__footer",e),children:t})}function HelpText({className:e,children:t}){return(0,h.jsx)("p",{className:n()("googlesitekit-banner__help-text",e),children:t})}function Title({className:e,children:t}){return(0,h.jsx)("p",{className:n()("googlesitekit-banner__title",e),children:t})}function TitleIcon({className:e,children:t}){return(0,h.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:g,dismissButton:u,ctaButton:m,svg:f,footer:_},k)=>{const v=(0,c.dv)(),y=v===c.mp||v===c.Lg;let b=null;y&&f?.mobile?b=f.mobile:!y&&f?.desktop&&(b=f.desktop);const x=f?.verticalPosition?f.verticalPosition:"center";return(0,h.jsxs)("div",{ref:k,className:n()("googlesitekit-banner",e),children:[(0,h.jsxs)("div",{className:"googlesitekit-banner__content",children:[t&&(0,h.jsx)(TitleIcon,{children:t}),(0,h.jsx)(Title,{children:i}),(0,h.jsx)(Description,{description:o,learnMoreLink:g,additionalDescription:s}),a&&(0,h.jsx)(HelpText,{children:a}),r&&(0,h.jsx)(l.A,{type:"error",description:r}),(0,h.jsxs)("div",{className:"googlesitekit-notice__action",children:[m&&(0,h.jsx)(d.A,{...m}),u?.onClick&&(0,h.jsx)(p.A,{...u})]})]}),b&&(0,h.jsx)("div",{className:n()("googlesitekit-banner__svg-wrapper",{[`googlesitekit-banner__svg-wrapper--${x}`]:x}),style:{backgroundImage:`url(${b})`}}),_&&(0,h.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(p.A.propTypes),ctaButton:r().shape(d.A.propTypes),svg:r().shape({desktop:r().elementType,mobile:r().elementType,verticalPosition:r().oneOf(["top","center","bottom"])}),footer:r().node};const f=m},72558(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},97269(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(57814),d=i(75865),g=i(59376),u=i(56848),h=i(62540);function ErrorNotice({className:e,error:t,hasButton:i=!1,storeName:o,message:n=t.message,noPrefix:p=!1,skipRetryMessage:m,hideIcon:f=!1}){const _=(0,l.useDispatch)(),k=(0,l.useSelect)(e=>o?e(o).getSelectorDataForError(t):null),v=(0,s.useCallback)(()=>{_(k.storeName).invalidateResolution(k.name,k.args)},[_,k]);if(!n||(0,g.G)(t))return null;const y=i&&(0,g.vl)(t,k);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)),p||(b=(0,r.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */ (0,r.__)("Error: %s","google-site-kit"),b));const x=t?.data?.reconnectURL;x&&(0,a.m)(x)&&(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,x));return(0,h.jsx)(u.A,{className:e,type:c.L.ERROR,description:(0,h.jsx)("span",{dangerouslySetInnerHTML:(0,d.p9)(b,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:y?{label:(0,r.__)("Retry","google-site-kit"),onClick:v}: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}},93240(e,t,i){i.d(t,{A:()=>s});var o=i(63696),n=i(67608);const s=(0,o.createContext)(n.t)},50280(e,t,i){i.d(t,{A:()=>GenericErrorHandlerActions});var o=i(62688),n=i.n(o),s=i(82871),r=i(22994),a=i(38021),l=i.n(a),c=i(63696),d=i(12417),g=i(1027),u=i(65123),h=i(49383),p=i(62540);function ReportErrorButton({message:e,componentStack:t}){const[i,o]=(0,c.useState)(!1);return(0,p.jsx)(h.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,p.jsx)(d.A,{className:"mdc-button__icon",icon:i?g.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,p.jsxs)("div",{className:"googlesitekit-generic-error-handler-actions",children:[(0,p.jsx)(m,{message:e,componentStack:t}),(0,p.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}},68575(e,t,i){i.d(t,{A:()=>Xe});var o=i(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(41814),l=i(63696),c=i(82871),d=i(50539),g=i(55258),u=i(96530),h=i(92255),p=i(76648),m=i(36160),f=i(75865),_=i(45822),k=i(32200);var v,y=i(50509),b=i(25533),x=i(8032),C=i(39525),A=i(15844),M=i(31589),S=i(30521),N=i(25084),w=i(20295);function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),v||(v=l.createElement("path",{d:"M10.953 8.464h2.12c.22 0 .41-.081.573-.243a.785.785 0 0 0 .243-.574.782.782 0 0 0-.243-.573.782.782 0 0 0-.574-.244h-2.12a.785.785 0 0 0-.573.244.784.784 0 0 0-.243.573c0 .22.081.412.243.574a.787.787 0 0 0 .574.243Zm0 4.706h2.12c.22 0 .41-.082.573-.244a.782.782 0 0 0 .243-.573.785.785 0 0 0-.243-.574.784.784 0 0 0-.574-.243h-2.12c-.22 0-.41.081-.573.243a.787.787 0 0 0-.243.574c0 .22.081.411.243.573a.785.785 0 0 0 .574.244ZM6.79 9.32h1.712c.22 0 .411-.082.573-.244a.782.782 0 0 0 .244-.573V6.79a.782.782 0 0 0-.244-.573.784.784 0 0 0-.573-.243H6.79a.784.784 0 0 0-.573.243.784.784 0 0 0-.243.573v1.712c0 .22.081.411.243.573a.782.782 0 0 0 .573.244Zm0 4.704h1.712c.22 0 .411-.08.573-.242a.782.782 0 0 0 .244-.573v-1.712a.782.782 0 0 0-.244-.573.782.782 0 0 0-.573-.244H6.79a.782.782 0 0 0-.573.244.784.784 0 0 0-.243.573v1.712c0 .22.081.411.243.573a.784.784 0 0 0 .573.242ZM4.633 17c-.453 0-.839-.159-1.157-.476A1.577 1.577 0 0 1 3 15.367V4.633c0-.453.159-.839.476-1.157A1.577 1.577 0 0 1 4.633 3h10.734c.453 0 .839.159 1.157.476.317.318.476.704.476 1.157v10.734c0 .453-.159.839-.476 1.157a1.578 1.578 0 0 1-1.157.476H4.633Zm0-1.633h10.734V4.633H4.633v10.734Z"})));var I,T,R,L;function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",D({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),I||(I=l.createElement("rect",{width:5.833,height:5.833,x:3,y:3,rx:1.167})),T||(T=l.createElement("rect",{width:5.833,height:5.833,x:11.167,y:3,rx:1.167})),R||(R=l.createElement("rect",{width:5.833,height:5.833,x:3,y:11.167,rx:1.167})),L||(L=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.836.836 0 0 1-.25-.615c0-.243.083-.447.25-.614l3.75-3.75c.5-.5 1.1-.75 1.803-.75.7 0 1.295.25 1.78.75l.958.958a.777.777 0 0 0 .574.229c.229 0 .42-.076.572-.229l3.604-3.604h-1.228a.843.843 0 0 1-.615-.26.843.843 0 0 1-.26-.615.84.84 0 0 1 .26-.615.843.843 0 0 1 .615-.26h3.333c.236 0 .44.087.614.26a.84.84 0 0 1 .26.615v3.333a.843.843 0 0 1-.26.615.843.843 0 0 1-.614.26.84.84 0 0 1-.614-.26.841.841 0 0 1-.261-.615V7.979l-3.625 3.604c-.5.5-1.101.75-1.803.75-.7 0-1.295-.25-1.78-.75l-.98-.979a.752.752 0 0 0-.552-.229.748.748 0 0 0-.551.229L3.52 14.375a.823.823 0 0 1-.603.25.824.824 0 0 1-.606-.25Z"})));var H,B,F;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),H||(H=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 3Z"})),B||(B=l.createElement("path",{d:"M12 10a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})),F||(F=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 2l-.135 1.856Z"})));var G;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),G||(G=l.createElement("path",{d:"M8.668 12.938c.333.32.774.482 1.323.489.548.007.954-.19 1.218-.594l3.417-5.125c.139-.208.118-.402-.063-.583-.18-.18-.374-.202-.583-.063l-5.167 3.396c-.403.25-.61.642-.624 1.177-.014.535.146.97.479 1.303Zm-4.334 3.729c-.32 0-.618-.07-.895-.209a1.473 1.473 0 0 1-.646-.625 8.493 8.493 0 0 1-.834-1.989 8.207 8.207 0 0 1-.291-2.198c0-1.139.219-2.212.656-3.219a8.486 8.486 0 0 1 1.792-2.646A8.447 8.447 0 0 1 6.772 3.99a8.056 8.056 0 0 1 3.229-.657c.625 0 1.23.063 1.812.188a7.328 7.328 0 0 1 1.688.583.762.762 0 0 1 .458.604c.042.278-.041.535-.25.771a.821.821 0 0 1-.489.261.952.952 0 0 1-.573-.073 6.361 6.361 0 0 0-2.646-.584c-1.82 0-3.371.642-4.656 1.927-1.285 1.285-1.927 2.83-1.927 4.636 0 .57.083 1.135.25 1.698a7.43 7.43 0 0 0 .666 1.573h11.334a6.07 6.07 0 0 0 .687-1.615 6.768 6.768 0 0 0 .229-1.74c0-.43-.052-.87-.156-1.322a5.414 5.414 0 0 0-.469-1.282.82.82 0 0 1-.073-.583.874.874 0 0 1 .303-.479c.236-.18.486-.243.75-.188.263.056.458.216.583.48a9.51 9.51 0 0 1 .594 1.604 6.57 6.57 0 0 1 .218 1.708 8.518 8.518 0 0 1-.26 2.281 7.92 7.92 0 0 1-.844 2.052 1.451 1.451 0 0 1-.667.625c-.291.14-.59.209-.895.209H4.334Z"})));var $;function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",K({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),$||($=l.createElement("path",{d:"M4.94 17a1.39 1.39 0 0 1-1.02-.418 1.39 1.39 0 0 1-.418-1.022V8.226c0-.403.14-.743.418-1.022a1.388 1.388 0 0 1 1.02-.418c.403 0 .744.14 1.022.418.279.279.418.62.418 1.022v7.334c0 .403-.14.744-.418 1.022A1.39 1.39 0 0 1 4.94 17Zm5.077-.002a1.39 1.39 0 0 1-1.022-.417 1.39 1.39 0 0 1-.418-1.022l-.016-11.12c0-.402.14-.743.418-1.021A1.39 1.39 0 0 1 10.001 3c.403 0 .743.14 1.022.418.278.278.418.619.418 1.02l.015 11.12c0 .403-.14.744-.418 1.023a1.39 1.39 0 0 1-1.021.418Zm5.045.002a1.39 1.39 0 0 1-1.022-.418 1.39 1.39 0 0 1-.418-1.022v-3.62c0-.403.14-.744.418-1.022a1.39 1.39 0 0 1 1.022-.418c.402 0 .742.14 1.02.418.279.278.418.619.418 1.021v3.621c0 .403-.14.744-.418 1.022a1.388 1.388 0 0 1-1.02.418Z"})));var X=i(64510),q=i(65589);var J=i(28516),ee=i(63803);const te={[p.Oo]:{[N.SH]:ee.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,[N.OT]:ee.CONTEXT_MAIN_DASHBOARD_TRAFFIC,[N.x2]:ee.CONTEXT_MAIN_DASHBOARD_SITE_GOALS,[N.en]:ee.CONTEXT_MAIN_DASHBOARD_CONTENT,[N.Ej]:ee.CONTEXT_MAIN_DASHBOARD_SPEED,[N.Gw]:ee.CONTEXT_MAIN_DASHBOARD_MONETIZATION},[p.oE]:{[N.OT]:ee.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,[N.en]:ee.CONTEXT_ENTITY_DASHBOARD_CONTENT,[N.Ej]:ee.CONTEXT_ENTITY_DASHBOARD_SPEED,[N.Gw]:ee.CONTEXT_ENTITY_DASHBOARD_MONETIZATION}};var ie=i(62540);function Navigation(){const e=(0,p.Ay)(),t=(0,l.useRef)(),i=(0,k.A)(),o=function(){const e=(0,p.Ay)(),t=(0,y.A)();return(0,d.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===N.SH&&n||i(J.aO).isWidgetContextActive(te[e][o],s)&&t.push(o),t),[])})}(),{calculateScrollPosition:s,defaultChipID:r,findClosestSection:a,isValidChipID:g,scrollToChip:h,updateURLHash:m}=function({visibleSections:e}){const t=(0,X.dv)(),i=(0,y.A)(),o=(0,l.useCallback)(()=>e.includes(N.SH)?N.SH:i?e[0]||"":N.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,q.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),h(o),(0,f.sx)(`${i}_navigation`,"tab_select",o),setTimeout(()=>{R(w.Fc,o)},50)},[h,R,m,i]),D=(0,l.useCallback)(()=>{if(!t?.current)return;const{top:e}=t?.current?.getBoundingClientRect();if(0===globalThis.scrollY)j(!1);else{const t=document.querySelector(".googlesitekit-header")?.getBoundingClientRect?.()?.bottom;j(e===t)}},[]),P=(0,l.useCallback)(e=>{function o(e){R(w.Fc,void 0),T(e),b(void 0)}const n=a(t);if(v)v===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,v,R,m,i]);(0,A.A)(()=>{if(!_)return T(r),void setTimeout(()=>m(r));const e=g(_)?_:r;T(e),R(w.Fc,e),setTimeout(()=>{const t=s(e);globalThis.scrollY!==t?h(e):R(w.Fc,void 0)},50)});const Z=(0,l.useCallback)(e=>{D(),P(e)},[P,D]),H=(0,S.A)(Z,150);(0,M.A)("scroll",H);const B=20,F={[N.SH]:{label:(0,c.__)("Key metrics","google-site-kit"),icon:(0,ie.jsx)(O,{width:B,height:B})},[N.OT]:{label:(0,c.__)("Traffic","google-site-kit"),icon:(0,ie.jsx)(Q,{width:B,height:B})},[N.x2]:{label:(0,c.__)("Site goals","google-site-kit"),icon:(0,ie.jsx)(U,{width:B,height:B})},[N.en]:{label:(0,c.__)("Content","google-site-kit"),icon:(0,ie.jsx)(E,{width:B,height:B})},[N.Ej]:{label:(0,c.__)("Speed","google-site-kit"),icon:(0,ie.jsx)(Y,{width:B,height:B})},[N.Gw]:{label:(0,c.__)("Monetization","google-site-kit"),icon:(0,ie.jsx)(z,{width:B,height:B})}};return(0,ie.jsx)("nav",{className:n()("mdc-chip-set","googlesitekit-navigation",`googlesitekit-navigation--${e}`,{"googlesitekit-navigation--is-sticky":x}),ref:t,children:o.map(e=>(0,ie.jsx)(C.Chip,{id:e,label:F[e].label,leadingIcon:F[e].icon,onClick:L,selected:I===e,"data-context-id":e},e))})}function DashboardNavigation(){const e=(0,y.A)(),t=(0,d.useSelect)(t=>e?t(u.oR).getViewableModules():null),i=(0,d.useSelect)(e=>e(u.oR).getKeyMetrics());return(0,ie.jsx)(x.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(57958),ae=i(28085);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 de=i(22994),ge=i(13057);const ue=function EntityHeader(){const e=(0,k.A)(),t=(0,p.Ay)(),i=(0,d.useSelect)(e=>e(g.O4).getCurrentEntityTitle()),o=(0,d.useSelect)(e=>e(g.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,S.A)(a,150);(0,M.A)("resize",u);const{navigateTo:h}=(0,d.useDispatch)(re.M),m=(0,d.useSelect)(e=>e(g.O4).getAdminURL("googlesitekit-dashboard")),_=(0,l.useCallback)(()=>{(0,f.sx)(`${e}_navigation`,"return_to_dashboard"),h(m)},[m,h,e]);return p.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)(ge.A,{children:i}),(0,ie.jsx)(de.A,{href:o,"aria-label":o,secondary:!0,external:!0,children:s})]})]})};var he=i(7498),pe=i(7029),me=i(72467);function CoreSiteBannerNotification({id:e,ctaURL:t,ctaTarget:i,...o}){const[n,s]=(0,l.useState)(!1),{dismissNotification:r,acceptNotification:a}=(0,d.useDispatch)(g.O4),{dismissNotification:c}=(0,d.useDispatch)(pe.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]),h=(0,l.useCallback)(async()=>{await r(e)},[e,r]);return(0,ie.jsx)(me.A,{onCTAClick:u,onDismissClick:h,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,k.A)(),[t,i]=(0,l.useState)(!1),[o,n]=(0,l.useState)(!1),s=(0,l.useRef)(Date.now()),r=(0,d.useSelect)(e=>e(g.O4).isUsingProxy()&&!1===e(u.oR).areSurveysOnCooldown()?e(u.oR).getCurrentSurvey():null),[a,c]=(0,l.useState)([]),{registerNotification:p}=(0,d.useDispatch)(pe.D),m=(0,d.useSelect)(e=>e(g.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};p(t.id,{Component:({Notification:e})=>(0,ie.jsx)(e,{gaTrackingEventArgs:i,children:(0,ie.jsx)(fe,{...t,gaTrackingEventArgs:i})}),priority:t.priority,areaSlug:h.bI.HEADER,isDismissible:t.dismissible}),c(e=>(e.push(t.id),e))})},[e,o,m,p,a,t]),null};var ke=i(93607),ve=i(81566);const ye="internal-server-error";function InternalServerError(){const e=(0,X.dv)(),t=(0,d.useSelect)(e=>e(g.O4).getInternalServerError());return(0,l.useEffect)(()=>{t&&globalThis.scrollTo({top:(0,q.YJ)(`#${ye}`,e),behavior:"smooth"})},[t,e]),t?(0,ie.jsx)(ve.A,{id:ye,children:(0,ie.jsx)(ke.A,{notificationID:ye,type:ke.Q.ERROR,title:t.title,description:t.description})}):null}function LegacyNotifications(){const e=(0,y.A)(),t=(0,p.Ay)(),i=(0,d.useSelect)(e=>e(u.oR).isAuthenticated());return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsx)(InternalServerError,{}),!e&&t===p.Oo&&i&&(0,ie.jsx)(_e,{})]})}var be=i(26421),xe=i(21795),Ce=i(53328),Ae=i(85507);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:d,itemClassName:g="googlesitekit-header-menu__item",iconClassName:u="googlesitekit-header-menu__item-icon",labelClassName:h="googlesitekit-header-menu__item-label",descriptionClassName:p="googlesitekit-header-menu__item-description",trailingClassName:m="googlesitekit-header-menu__item-trailing"}){const f=d||(0,ie.jsxs)("div",{className:g,children:[r&&(0,ie.jsx)("div",{className:u,children:r}),a&&(0,ie.jsx)("span",{className:h,children:a}),l&&(0,ie.jsx)("span",{className:p,children:l}),c&&(0,ie.jsx)("span",{className:m,children:c})]}),_=void 0===i&&o?"menuitem":i,k=n()(t,{"mdc-list-item":o}),v="function"==typeof s;return(0,ie.jsx)("li",{id:e,className:k||void 0,role:_,children:v?(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 Me,Se,Ne=i(13170),we=i(94165),je=i(80867),Ee=i(71125),Ie=i(65538),Te=i(44446);function Re(){return Re=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",Re({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Me||(Me=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.7,d:"M11.7749 5.70139L12.355 5.12126C14.1306 3.34566 17.0094 3.34566 18.785 5.12126V5.12126C20.5606 6.89685 20.5606 9.77566 18.785 11.5513L18.1866 12.1497M5.68314 11.7931L5.12125 12.355C3.34566 14.1306 3.34565 17.0094 5.12125 18.785V18.785C6.89685 20.5606 9.77566 20.5606 11.5513 18.785L12.1314 18.2048"})),Se||(Se=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M8.54297 15.3632 9.66133 14.2448M15.3447 8.56146 14.2263 9.67982M5.10742 5.13412 18.7712 18.7979"})));var De,Oe,Pe,Ze,ze,He=i(84410);function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",Be({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),De||(De=l.createElement("rect",{width:18,height:13,x:3,y:4,stroke:"currentColor",strokeWidth:1.5,rx:2})),Oe||(Oe=l.createElement("path",{fill:"currentColor",d:"M9 17H15V20H9z"})),Pe||(Pe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M10 9H17M10 12H17"})),Ze||(Ze=l.createElement("circle",{cx:7,cy:9,r:1,fill:"currentColor"})),ze||(ze=l.createElement("circle",{cx:7,cy:12,r:1,fill:"currentColor"})));function Details(){const e=(0,d.useSelect)(e=>e(u.oR).getPicture()),t=(0,d.useSelect)(e=>e(u.oR).getFullName()),i=(0,d.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)("setupFlowRefresh"),[t]=(0,Ie.A)("showProgress"),i=e&&"true"===t,o=(0,d.useSelect)(e=>e(g.O4).getProxyPermissionsURL()),n=(0,d.useSelect)(e=>e(u.oR).getEmail()),s=(0,d.useSelect)(e=>e(u.oR).getPicture()),r=(0,d.useSelect)(e=>e(u.oR).getFullName()),a=(0,d.useSelect)(e=>e(g.O4).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})),[h]=(0,je.A)(Te.CV,"isAutoCreatingCustomDimensionsForAudience"),{isTooltipVisible:p=!1,className:v}=(0,d.useSelect)(e=>e(w.nX).getValue("admin-screen-tooltip")||{isTooltipVisible:!1}),[y,b]=(0,l.useState)(!1),[x,C]=(0,l.useState)(!1),A=(0,l.useRef)(),M=(0,l.useRef)(),S=(0,k.A)(),{navigateTo:N}=(0,d.useDispatch)(re.M),j=!i;(0,xe.A)(A,()=>C(!1)),(0,Ee.l)([Ce._f,Ce.wn],A,()=>{C(!1),M.current?.focus()});const E=(0,l.useCallback)(()=>{b(!1),C(!1)},[b,C]),{setValue:I}=(0,d.useDispatch)(w.nX),T=(0,l.useCallback)(()=>{x||((0,f.sx)(`${S}_headerbar`,"open_usermenu"),p&&v?.includes("googlesitekit-tour-tooltip--user-menu")&&I("admin-screen-tooltip",void 0)),C(!x)},[x,S,I,p,v]),R=(0,l.useCallback)(()=>{b(!y),C(!1)},[y]),L=(0,l.useCallback)(async(e,t)=>{const{detail:{item:i}}=t;switch(i?.id){case"manage-sites":o&&(await(0,f.sx)(`${S}_headerbar_usermenu`,"manage_sites"),N(o));break;case"disconnect":R();break;case"manage-email-reports":I(Ae.Q,!0);break;default:T()}},[o,T,R,N,I,S]),D=(0,l.useCallback)(async()=>{b(!1),await(0,m.IL)(),await(0,f.sx)(`${S}_headerbar_usermenu`,"disconnect_user"),N(a)},[a,N,S]);if(!n)return null;const O=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}(r,n);return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsxs)("div",{ref:A,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:M,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:T,icon:!!s&&(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:s,alt:(0,c.__)("User Avatar","google-site-kit")})}),"aria-haspopup":"menu","aria-expanded":x,"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":O,children:[(0,ie.jsx)("strong",{children:(0,c.__)("Google Account","google-site-kit")}),(0,ie.jsx)("br",{}),(0,ie.jsx)("br",{}),r,r&&(0,ie.jsx)("br",{}),n]}),text:!0,tooltip:!0}),(0,ie.jsxs)(se.Menu,{className:"googlesitekit-user-menu",menuOpen:x,onSelected:L,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)(He.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"}),!!o&&(0,ie.jsx)(MenuItem,{id:"manage-sites",icon:(0,ie.jsx)(Fe,{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)(Le,{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)(we.A,{children:(0,ie.jsx)(Ne.A,{dialogActive:y,handleConfirm:D,handleCancel:E,onClose:E,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 Ve,Ue=i(17417),Ge=i(85110);function ManageEmailReports(){const{setValue:e}=(0,Ge.wA)(w.nX);return(0,Ge.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(Ae.Q,!0),icon:(0,ie.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--icon",children:(0,ie.jsx)(He.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 We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",We({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 10"},e),Ve||(Ve=l.createElement("path",{fill:"currentColor",d:"M8 1.33333C10.7564 1.33333 13.2145 2.75333 14.4145 5C13.2145 7.24667 10.7564 8.66667 8 8.66667C5.24364 8.66667 2.78545 7.24667 1.58545 5C2.78545 2.75333 5.24364 1.33333 8 1.33333ZM8 0C4.36364 0 1.25818 2.07333 0 5C1.25818 7.92667 4.36364 10 8 10C11.6364 10 14.7418 7.92667 16 5C14.7418 2.07333 11.6364 0 8 0ZM8 3.33333C9.00364 3.33333 9.81818 4.08 9.81818 5C9.81818 5.92 9.00364 6.66667 8 6.66667C6.99636 6.66667 6.18182 5.92 6.18182 5C6.18182 4.08 6.99636 3.33333 8 3.33333ZM8 2C6.19636 2 4.72727 3.34667 4.72727 5C4.72727 6.65333 6.19636 8 8 8C9.80364 8 11.2727 6.65333 11.2727 5C11.2727 3.34667 9.80364 2 8 2Z"})));var $e=i(13606);function Description(){const e=(0,k.A)(),t=(0,d.useSelect)(e=>e(u.oR).hasCapability(u.ej)),i=(0,d.useSelect)(e=>e(g.O4).getProxySetupURL()),o=(0,d.useSelect)(e=>e(g.O4).getDocumentationLinkURL("dashboard-sharing")),{navigateTo:n}=(0,d.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,$e.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)(de.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)(ge.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 Ke=i(71764);function Service({module:e}){const t=(0,d.useSelect)(e=>e(u.oR).hasCapability(u.ej)),{name:i,owner:o}=(0,d.useSelect)(t=>t(Ke.i).getModule(e)||{}),n=(0,d.useSelect)(t=>t(Ke.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 Qe=i(22855);function Tracking(){const e=(0,k.A)();return(0,ie.jsx)(Qe.A,{title:(0,c.__)("Help us improve Site Kit","google-site-kit"),description:(0,$e.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)(de.A,{href:"https://policies.google.com/privacy",external:!0})}),trackEventCategory:`${e}_headerbar_viewonly`,layout:"stacked"})}function ViewOnlyMenu(){const[e,t]=(0,l.useState)(!1),i=(0,l.useRef)(),o=(0,k.A)();(0,xe.A)(i,()=>t(!1)),(0,Ee.l)([Ce._f,Ce.wn],i,()=>t(!1));const s=(0,l.useCallback)(()=>{e||(0,f.sx)(`${o}_headerbar`,"open_viewonly"),t(!e)},[e,o]),r=(0,d.useSelect)(e=>e(u.oR).hasCapability(u.ej)),a=(0,d.useSelect)(e=>e(u.oR).getViewableModules());return(0,ie.jsxs)("div",{ref:i,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":r}),children:[(0,ie.jsx)(se.Button,{className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--phone googlesitekit-button-icon",onClick:s,icon:(0,ie.jsx)("span",{className:"mdc-button__icon","aria-hidden":"true",children:(0,ie.jsx)(Ye,{className:"mdc-button__icon--image"})}),"aria-haspopup":"menu","aria-expanded":e,"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:e,onSelected:s,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(a)&&(0,ie.jsx)(MenuWithHeading,{className:"googlesitekit-view-only-menu__list-item",heading:(0,ie.jsx)(Ue.A,{as:"h4",size:"medium",type:"label",children:(0,c.__)("Shared services","google-site-kit")}),children:(0,ie.jsx)(SharedServices,{viewableModules:a})}),(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,p.Ay)(),s=(0,y.A)();!function(){const e=(0,k.A)(),t=(0,d.useSelect)(e=>e(g.O4).isUsingProxy()),i=(0,d.useSelect)(e=>e(g.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,d.useSelect)(e=>e(g.O4).getAdminURL("googlesitekit-dashboard")),v=(0,d.useSelect)(e=>e(u.oR).isAuthenticated()),[x,C]=(0,a.A)({childList:!0}),A=!!C.target?.childElementCount;return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsx)("header",{className:n()("googlesitekit-header",{"googlesitekit-header--has-subheader":A,"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)(de.A,{"aria-label":(0,c.__)("Go to dashboard","google-site-kit"),className:"googlesitekit-header__logo-link",href:r,children:(0,ie.jsx)(he.A,{})})}),(0,ie.jsxs)(b.fh,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0,children:[e,!v&&o&&s&&(0,ie.jsx)(ViewOnlyMenu,{}),v&&!s&&(0,ie.jsx)(UserMenu,{})]})]})})}),(0,ie.jsx)("div",{className:"googlesitekit-subheader",ref:x,children:t}),i&&(0,ie.jsx)(DashboardNavigation,{}),(0,ie.jsx)(ue,{}),(0,ie.jsx)(LegacyNotifications,{}),(0,ie.jsx)(be.A,{areaSlug:h.bI.HEADER})]})}Header.displayName="Header",Header.propTypes={children:r().node,subHeader:r().element,showNavigation:r().bool},Header.defaultProps={children:null,subHeader:null};const Xe=Header},29547(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}},63010(e,t,i){i.d(t,{A:()=>o});const o=(0,i(63696).createContext)(!1)},87439(e,t,i){i.d(t,{Ay:()=>r});var o=i(63010);const{Consumer:n,Provider:s}=o.A,r=s},22994(e,t,i){i.d(t,{A:()=>w});var o,n=i(4452),s=i.n(n),r=i(62688),a=i.n(r),l=i(39941),c=i(63696),d=i(82871);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",g({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.459.459 0 0 0 .325-.135l3.037-3.038a.459.459 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.462.462 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var h;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),h||(h=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.459.459 0 0 0 .325-.135l3.037-3.038a.459.459 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.462.462 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 20L4 12L12 4L13.425 5.4L7.825 11H20V13H7.825L13.425 18.6L12 20Z"})));var v=i(54399),y=i(29547),b=i(62540);const x="BUTTON",C="BUTTON_DISABLED",A="EXTERNAL_LINK",M="LINK",S="ROUTER_LINK",N=(0,c.forwardRef)((e,t)=>{const{"aria-label":i,secondary:o=!1,arrow:n=!1,back:r=!1,caps:a=!1,children:c,className:g="",danger:h=!1,disabled:p=!1,external:f=!1,hideExternalIndicator:_=!1,href:N="",inverse:w=!1,noFlex:j=!1,onClick:E,small:I=!1,standalone:T=!1,linkButton:R=!1,to:L,leadingIcon:D,trailingIcon:O,...P}=e;const Z=N||L||!E?L?S:f?A:M:p?C:x;const z=Z===x||Z===C?"button":Z===S?l.N_:"a",H=function(){let e;return Z===A&&(e=(0,d._x)("(opens in a new tab)","screen reader text","google-site-kit")),Z===C&&(e=(0,d._x)("(disabled)","screen reader text","google-site-kit")),e?i?`${i} ${e}`:"string"==typeof c?`${c} ${e}`:void 0:i}();let B=D,F=O;return r&&(B=(0,b.jsx)(k,{width:14,height:14})),f&&!_&&(F=(0,b.jsx)(v.A,{width:14,height:14})),n&&!w&&(F=(0,b.jsx)(m,{width:14,height:14})),n&&w&&(F=(0,b.jsx)(u,{width:14,height:14})),(0,b.jsxs)(z,{"aria-label":H,className:s()("googlesitekit-cta-link",g,{"googlesitekit-cta-link--secondary":o,"googlesitekit-cta-link--inverse":w,"googlesitekit-cta-link--small":I,"googlesitekit-cta-link--caps":a,"googlesitekit-cta-link--danger":h,"googlesitekit-cta-link--disabled":p,"googlesitekit-cta-link--standalone":T,"googlesitekit-cta-link--link-button":R,"googlesitekit-cta-link--no-flex":!!j}),disabled:p,href:Z!==M&&Z!==A||p?void 0:N,onClick:E,rel:Z===A?"noopener noreferrer":void 0,ref:t,target:Z===A?"_blank":void 0,to:L,...P,children:[!!B&&(0,b.jsx)(y.A,{marginRight:5,children:B}),(0,b.jsx)("span",{className:"googlesitekit-cta-link__contents",children:c}),!!F&&(0,b.jsx)(y.A,{marginLeft:5,children:F})]})});N.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 w=N},8032(e,t,i){i.d(t,{A:()=>LoadingWrapper});var o=i(62688),n=i.n(o),s=i(63074),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}},7498(e,t,i){i.d(t,{A:()=>g});var o,n=i(82871),s=i(41270),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.0891 1.66406H65.1276V1.76387L58.3409 9.59293 65.5823 19.8173V19.9171H62.699L56.7552 11.4005 53.9496 14.6386V19.9171H51.5986V1.66406H53.9496V11.0789H54.0494L62.0891 1.66406ZM69.9845 3.11652C69.9845 3.57119 69.8182 3.9704 69.4966 4.29199 69.175 4.61358 68.7869 4.77992 68.3211 4.77992 67.8664 4.77992 67.4672 4.61358 67.1456 4.29199 66.8241 3.9704 66.6577 3.58228 66.6577 3.11652 66.6577 2.65077 66.8241 2.26265 67.1456 1.94106 67.4672 1.61946 67.8554 1.45312 68.3211 1.45312 68.7758 1.45312 69.175 1.61946 69.4966 1.94106 69.8293 2.27374 69.9845 2.66186 69.9845 3.11652ZM69.5077 7.43027V19.9279H67.1567V7.43027H69.5077ZM77.0155 20.1276C75.9953 20.1276 75.1525 19.8171 74.476 19.185 73.7996 18.5529 73.4558 17.6768 73.4447 16.5568V9.57055H71.249V7.43031H73.4447V3.60449H75.7956V7.43031H78.8563V9.57055H75.7956V15.7917C75.7956 16.6234 75.962 17.1889 76.2836 17.4883 76.6052 17.7877 76.9711 17.9319 77.3814 17.9319 77.5699 17.9319 77.7474 17.9097 77.9359 17.8654 78.1244 17.821 78.2797 17.7656 78.4349 17.699L79.1779 19.7949C78.5458 20.0167 77.8361 20.1276 77.0155 20.1276ZM2.67253 18.9517C1.37508 18.0091.48793 16.6783 0 14.9706L2.88322 13.7951C3.17155 14.8708 3.68166 15.7358 4.42464 16.4233 5.15654 17.0997 6.04368 17.4435 7.07499 17.4435 8.03976 17.4435 8.84928 17.1995 9.52573 16.7005 10.2022 16.2015 10.5349 15.514 10.5349 14.649 10.5349 13.8506 10.2354 13.1963 9.64771 12.6751 9.05998 12.1539 8.02867 11.6327 6.55379 11.1115L5.33396 10.679C4.02542 10.2244 2.92758 9.57009 2.04044 8.71621 1.15329 7.86233.709717 6.74231.709717 5.34505.709717 4.38028.975861 3.49314 1.49706 2.67253 2.01826 1.85192 2.75015 1.20874 3.69274.720806 4.62425.243965 5.67773 0 6.86429 0 8.57205 0 9.93603.410305 10.9452 1.242 11.9654 2.0737 12.6418 2.99412 12.9856 4.03651L10.2354 5.20089C10.0358 4.57989 9.6588 4.03651 9.09325 3.57076 8.52769 3.09392 7.80688 2.86105 6.91974 2.86105 6.03259 2.86105 5.27852 3.08283 4.66861 3.53749 4.05869 3.99216 3.75928 4.5688 3.75928 5.27852 3.75928 5.95497 4.03651 6.49834 4.57989 6.94192 5.12327 7.3744 5.97715 7.7958 7.14152 8.19501L8.36135 8.60532C10.0358 9.18196 11.3222 9.94713 12.2426 10.8786 13.163 11.8101 13.6177 13.0632 13.6177 14.6268 13.6177 15.9021 13.2961 16.9667 12.6418 17.8205 11.9876 18.6744 11.1559 19.3176 10.1467 19.739 9.1376 20.1604 8.09521 20.36 7.03063 20.36 5.41159 20.36 3.95889 19.8942 2.67253 18.9517ZM15.9686 3.44878C15.5805 3.06065 15.3809 2.58381 15.3809 2.01826 15.3809 1.4527 15.5805.97586 15.9686.587734 16.3567.199608 16.8336 0 17.3991 0 17.9647 0 18.4415.199608 18.8296.587734 19.2178.97586 19.4174 1.4527 19.4174 2.01826 19.4174 2.58381 19.2178 3.06065 18.8296 3.44878 18.4415 3.83691 17.9647 4.03651 17.3991 4.03651 16.8336 4.02542 16.3567 3.83691 15.9686 3.44878ZM15.9021 6.04368H18.8962V19.9275H15.9021V6.04368ZM25.4055 19.8496C24.8621 19.65 24.4185 19.3839 24.0747 19.0623 23.2985 18.2861 22.8993 17.2215 22.8993 15.8797V8.6827H20.4707V6.04344H22.8993V2.12891H25.8934V6.05453H29.2645V8.69379H25.8934V15.2254C25.8934 15.9684 26.0375 16.5007 26.3259 16.8001 26.6031 17.166 27.0689 17.3435 27.7453 17.3435 28.0558 17.3435 28.3219 17.2991 28.5659 17.2215 28.7988 17.1439 29.0538 17.0108 29.3311 16.8223V19.7388C28.7322 20.016 28.0114 20.1491 27.1576 20.1491 26.5255 20.1491 25.9488 20.0493 25.4055 19.8496ZM33.6227 19.4068C32.5471 18.7747 31.6932 17.8986 31.0944 16.7786 30.4845 15.6586 30.1851 14.4055 30.1851 13.0083 30.1851 11.6775 30.4845 10.4577 31.0722 9.31551 31.6599 8.1844 32.4805 7.27507 33.534 6.60971 34.5875 5.94435 35.7852 5.60059 37.127 5.60059 38.5242 5.60059 39.733 5.91109 40.7643 6.521 41.7845 7.142 42.5718 7.98479 43.1041 9.04937 43.6364 10.125 43.9025 11.3227 43.9025 12.6756 43.9025 12.9306 43.8804 13.2522 43.8249 13.6293H33.1792C33.2901 14.9156 33.7447 15.9137 34.5543 16.6123 35.3638 17.3109 36.2953 17.6547 37.3709 17.6547 38.2248 17.6547 38.9678 17.4662 39.5888 17.0669 40.2209 16.6788 40.7199 16.1465 41.097 15.4701L43.6253 16.6677C42.971 17.8099 42.1172 18.7082 41.0637 19.3624 40.0102 20.0167 38.746 20.3383 37.2822 20.3383 35.9182 20.3605 34.6984 20.05 33.6227 19.4068ZM40.853 11.3559C40.8197 10.868 40.6645 10.3801 40.3872 9.90324 40.11 9.4264 39.6997 9.0161 39.1452 8.69451 38.5908 8.37292 37.9143 8.20658 37.1159 8.20658 36.1511 8.20658 35.3416 8.4949 34.6762 9.06046 34.0109 9.62601 33.5562 10.4023 33.3012 11.3559H40.853Z"})));var c=i(35428),d=i(62540);const g=function Logo(){return(0,d.jsxs)("div",{className:"googlesitekit-logo","aria-hidden":"true",children:[(0,d.jsx)(s.A,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),(0,d.jsx)(l,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),(0,d.jsx)(c.A,{children:(0,n.__)("Site Kit by Google Logo","google-site-kit")})]})}},59914(e,t,i){i.d(t,{A:()=>c});var o=i(62688),n=i.n(o),s=i(63696),r=i(82871),a=i(97269),l=i(62540);class MediaErrorHandler extends s.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e,t){globalThis.console.error("Caught an error:",e,t),this.setState({error:e})}render(){const{children:e,errorMessage:t}=this.props,{error:i}=this.state;return i?(0,l.jsx)(a.A,{message:t}):e}}MediaErrorHandler.defaultProps={errorMessage:(0,r.__)("Failed to load media","google-site-kit")},MediaErrorHandler.propTypes={children:n().node.isRequired,errorMessage:n().string.isRequired};const c=MediaErrorHandler},13170(e,t,i){i.d(t,{A:()=>h});var o=i(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(52684),l=i(13606),c=i(82871),d=i(49383),g=i(84470),u=i(62540);function ModalDialog({className:e="",dialogActive:t=!1,handleCancel:i=null,onOpen:o=null,onClose:s=null,title:r=null,provides:h,handleConfirm:p,subtitle:m,confirmButton:f=null,notes:_=[],danger:k=!1,inProgress:v=!1,small:y=!1,medium:b=!1,buttonLink:x=null}){const C=`googlesitekit-dialog-description-${(0,a.A)(ModalDialog)}`,A=!(!h||!h.length);return(0,u.jsxs)(d.Dialog,{open:t,onOpen:o,onClose:s,"aria-describedby":A?C:void 0,tabIndex:"-1",className:n()(e,{"googlesitekit-dialog-sm":y,"googlesitekit-dialog-md":b}),children:[(0,u.jsxs)(d.DialogTitle,{children:[k&&(0,u.jsx)(g.A,{width:28,height:28}),r]}),m?(0,u.jsx)("p",{className:"mdc-dialog__lead",children:m}):[],(0,u.jsxs)(d.DialogContent,{children:[A&&(0,u.jsx)("section",{id:C,className:"mdc-dialog__provides",children:(0,u.jsx)("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive",children:h.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)(d.DialogFooter,{children:[(0,u.jsx)(d.Button,{className:"mdc-dialog__cancel-button",onClick:i,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),x?(0,u.jsx)(d.Button,{href:x,onClick:p,target:"_blank",danger:k,children:f}):(0,u.jsx)(d.SpinnerButton,{onClick:p,danger:k,disabled:v,isSaving:v,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 h=ModalDialog},72467(e,t,i){i.d(t,{A:()=>l});var o=i(62688),n=i.n(o),s=i(93607),r=i(75865),a=i(62540);function NotificationFromServer({id:e,titleIcon:t,title:i,content:o,ctaLabel:n,ctaTarget:l,ctaURL:c,dismissible:d,dismissLabel:g,learnMoreLabel:u,learnMoreURL:h,onCTAClick:p,ctaInProgress:m,onDismissClick:f,gaTrackingEventArgs:_}){const k={expiresInSeconds:r.Jg};return(0,a.jsx)(s.A,{notificationID:e,type:s.Q.WARNING,titleIcon:t||void 0,title:i,description:o,learnMoreLink:h?{label:u,href:h}:void 0,ctaButton:{label:n,href:c,onClick:p,inProgress:m,dismissOptions:k,external:"_blank"===l},dismissButton:d?{label:g,onClick:f,dismissOptions:k}: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},22855(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),d=i(50539),g=i(22994),u=i(96530),h=i(97381),p=i(32200),m=i(39494),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 k="default",v="stacked";function OptIn({id:e="googlesitekit-opt-in",name:t="optIn",className:i,layout:o=k,title:s=null,description:r=null,trackEventCategory:f,trackEventAction:y="tracking_optin"}){const[b,x]=(0,a.useState)(),C=(0,d.useSelect)(e=>e(u.oR).isTrackingEnabled()),A=(0,d.useSelect)(e=>e(u.oR).getErrorForAction("setTrackingEnabled",[!C])),{setTrackingEnabled:M}=(0,d.useDispatch)(u.oR),S=(0,p.A)(),N=(0,a.useCallback)(async e=>{const{response:t,error:i}=await M(e);i?x(C):((0,m.M9)(t.enabled),t.enabled&&(0,m.sx)(f||S,y))},[C,M,f,y,S]);(0,a.useEffect)(()=>{void 0!==C&&void 0===b&&x(C)},[C,b]);const w=(0,h.d)(N,300),j=(0,a.useCallback)(e=>{const t=e.target.checked;x(t),w(t)},[w]),E=s??(0,_.jsx)("span",{children:(0,c.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")}),I=r??(0,l.A)((0,c.__)("All collected data is treated in accordance with the Google Privacy Policy","google-site-kit"),{a:(0,_.jsx)(g.A,{href:"https://policies.google.com/privacy",external:!0},"link"),span:(0,_.jsx)("span",{})}),T={id:e,name:t,value:"1",checked:b,onChange:j,loading:void 0===C};return(0,_.jsxs)("div",{className:n()("googlesitekit-opt-in",i,o===v&&"googlesitekit-opt-in--layout-stacked"),children:[o===v?(0,_.jsx)(LayoutStacked,{checkboxProps:T,title:E,description:I}):(0,_.jsx)(LayoutDefault,{checkboxProps:T,label:(0,_.jsxs)(a.Fragment,{children:[E," ",I]})}),A?.message&&(0,_.jsx)("div",{className:"googlesitekit-error-text",children:A?.message})]})}OptIn.propTypes={id:r().string,name:r().string,className:r().string,title:r().node,description:r().node,layout:r().oneOf([k,v]),trackEventCategory:r().string}},94165(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},63074(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(64510),l=i(62540);function PreviewBlock({className:e,width:t,height:i,shape:o,padding:s,smallWidth:r,smallHeight:c,tabletWidth:d,tabletHeight:g,desktopWidth:u,desktopHeight:h}){const p=(0,a.dv)(),m={width:{[a.mp]:r,[a.Lg]:d,[a.Fo]:u,[a.Qb]:u},height:{[a.mp]:c,[a.Lg]:g,[a.Fo]:h,[a.Qb]:u}};return(0,l.jsx)("div",{className:n()("googlesitekit-preview-block",e,{"googlesitekit-preview-block--padding":s}),style:{width:m.width[p]||t,height:m.height[p]||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},89675(e,t,i){i.d(t,{A:()=>ProgressIndicator});var o=i(4452),n=i.n(o),s=i(62688),r=i.n(s),a=i(62540);function ProgressIndicator({currentSegment:e=0,totalSegments:t=0,className:i}){return(0,a.jsxs)("div",{style:{gridTemplateColumns:`46px repeat(${t||1}, 1fr)`},className:n()("googlesitekit-progress-indicator",i),children:[(0,a.jsx)("div",{className:n()("googlesitekit-progress-indicator__segment")}),t>0&&Array.from(Array(e+1).keys()).map(i=>(0,a.jsx)("div",{className:n()("googlesitekit-progress-indicator__segment",{"googlesitekit-progress-indicator__segment--final":e+1===t})},i))]})}ProgressIndicator.propTypes={currentSegment:r().number,totalSegments:r().number,className:r().string}},76991(e,t,i){i.d(t,{A:()=>g});var o=i(62688),n=i.n(o),s=i(81276),r=i(63696),a=i(49383),l=i(13170),c=i(62540);let d=null;function RefocusableModalDialog({dialogActive:e=!1,refocusQuerySelector:t=null,...i}){const o=(0,r.useCallback)(()=>{setTimeout(()=>{const e=t?document.querySelector(t):d;e&&document.body.contains(e)&&e.focus(),t||(d=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")&&(d=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 g=RefocusableModalDialog},85376(e,t,i){i.d(t,{A:()=>_});var o=i(63696),n=i(13606),s=i(82871),r=i(50539),a=i(36160),l=i(57958),c=i(55258),d=i(97381),g=i(32200),u=i(39494),h=i(22994),p=i(13170),m=i(94165),f=i(62540);const _=function ResetButton({children:e}){const t=(0,r.useSelect)(e=>e(c.O4).getAdminURL("googlesitekit-splash",{notification:"reset_success"})),i=(0,r.useSelect)(e=>e(c.O4).isDoingReset()),_=(0,r.useSelect)(e=>e(l.M).isNavigatingTo(t||"")),[k,v]=(0,o.useState)(!1),[y,b]=(0,o.useState)(!1),x=(0,d.d)(v,3e3);(0,o.useEffect)(()=>{i||_?v(!0):x(!1)},[i,_,x]);const{reset:C}=(0,r.useDispatch)(c.O4),{navigateTo:A}=(0,r.useDispatch)(l.M),M=(0,g.A)(),S=(0,o.useCallback)(async()=>{await C(),await(0,a.IL)(),await(0,u.sx)(M,"reset_plugin"),A(t)},[A,t,C,M]),N=(0,o.useCallback)(()=>{b(!0)},[]),w=(0,o.useCallback)(()=>{b(!1)},[]);return(0,f.jsxs)(o.Fragment,{children:[(0,f.jsx)(h.A,{className:"googlesitekit-reset-button",onClick:N,children:e||(0,s.__)("Reset Site Kit","google-site-kit")}),(0,f.jsx)(m.A,{children:(0,f.jsx)(p.A,{dialogActive:y,handleConfirm:S,handleCancel:w,onClose:w,title:(0,s.__)("Reset Site Kit","google-site-kit"),subtitle:(0,n.A)((0,s.__)("Resetting will disconnect all users and remove all Site Kit settings and data within WordPress.
You and any other users who wish to use Site Kit will need to reconnect to restore access.","google-site-kit"),{br:(0,f.jsx)("br",{})}),confirmButton:(0,s.__)("Reset","google-site-kit"),inProgress:k,danger:!0,small:!0})})]})}},74585(e,t,i){i.d(t,{Ay:()=>r,Kq:()=>s});const o=(0,i(63696).createContext)(""),{Consumer:n,Provider:s}=o,r=o},90685(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),d=i(82871),g=i(50280),u=i(74585),h=i(93607),p=i(75865),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,p.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)(h.A,{notificationID:"googlesitekit-error",className:"googlesitekit-error-handler",type:"error",title:(0,d.__)("Site Kit encountered an error","google-site-kit"),description:(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)(g.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(93240);const{Consumer:k,Provider:v}=_.A,y=v;var b=i(15844),x=i(96530),C=i(32200),A=i(11341);function FeatureTours(){const e=(0,C.A)(),{triggerTourForView:t}=(0,l.useDispatch)(x.oR);(0,b.A)(()=>{t(e)});const i=(0,l.useSelect)(e=>e(x.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)(A.Ay,{tourID:i.slug,steps:i.steps,gaEventCategory:i.gaEventCategory,isRepeatable:i.isRepeatable,callback:i.callback}):null}var M=i(87439),S=i(94165),N=i(76991),w=i(7549),j=i(38326),E=i(57958);const I=function AuthenticatedPermissionsModal(){const e=(0,l.useRegistry)(),t=(0,l.useSelect)(e=>e(x.oR).getPermissionScopeError()),i=(0,l.useSelect)(e=>e(x.oR).getUnsatisfiedScopes()),o=(0,l.useSelect)(e=>e(x.oR).getConnectURL({additionalScopes:t?.data?.scopes,redirectURL:t?.data?.redirectURL||globalThis.location.href,errorRedirectURL:t?.data?.errorRedirectURL})),{clearPermissionScopeError:n}=(0,l.useDispatch)(x.oR),{navigateTo:s}=(0,l.useDispatch)(E.M),{setValues:r}=(0,l.useDispatch)(j.s),c=(0,a.useCallback)(()=>{n()},[n]),g=(0,a.useCallback)(async()=>{r(x.$8,{permissionsError:t}),await(0,w.mR)(e),s(o)},[e,o,s,t,r]);return(0,a.useEffect)(()=>{!async function(){t?.data?.skipModal&&t?.data?.scopes?.length&&await g()}()},[g,t]),t?t?.data?.scopes?.length?t?.data?.skipModal||i&&t?.data?.scopes.every(e=>i.includes(e))?null:(0,m.jsx)(S.A,{children:(0,m.jsx)(N.A,{title:(0,d.__)("Additional Permissions Required","google-site-kit"),subtitle:t.message,confirmButton:(0,d.__)("Proceed","google-site-kit"),handleConfirm:g,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 T=function PermissionsModal(){return(0,l.useSelect)(e=>e(x.oR).isAuthenticated())?(0,m.jsx)(I,{}):null};const R=function RestoreSnapshots({children:e}){const t=(0,l.useRegistry)(),[i,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{i||(async()=>{await(0,w.P9)(t),o(!0)})()},[t,i]),i?e:null};var L=i(67608),D=i(9519);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)(M.Ay,{value:r,children:(0,m.jsx)(l.RegistryProvider,{value:t,children:(0,m.jsx)(y,{value:L.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)(R,{children:[e,i&&(0,m.jsx)(FeatureTours,{})]}),(0,D.A)(i)&&(0,m.jsx)(T,{})]})})})})})})})}Root.propTypes={children:r().node,registry:r().object,viewContext:r().string.isRequired},Root.defaultProps={registry:c()}},25898(e,t,i){i.d(t,{A:()=>r});var o=i(62688),n=i.n(o),s=i(62540);function Spinner({isSaving:e,style:t={}}){return(0,s.jsx)("span",{className:"spinner",style:{display:e?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible",...t}})}Spinner.propTypes={isSaving:n().bool,style:n().object};const r=Spinner},94044(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),d=i(49383),g=i(45822);var u=i(23966),h=i(17417),p=i(62540);function TourTooltip({backProps:e,closeProps:t,index:i,primaryProps:s,size:a,step:l,tooltipProps:m}){const f=(0,g.i)("setupFlowRefresh"),_=a>1?function(e){return new Array(e??0).fill().map((e,t)=>t)}(a):[];function k(e){return r()("googlesitekit-tooltip-indicator",{active:e===i})}const v=f?10:14;return(0,p.jsx)("div",{className:r()("googlesitekit-tour-tooltip",l.className,{"googlesitekit-tour-tooltip--no-title":!l.title,"googlesitekit-tour-tooltip--setupFlowRefresh":f}),...m,children:(0,p.jsxs)(n(),{className:"googlesitekit-tooltip-card",children:[(0,p.jsxs)("div",{className:"googlesitekit-tooltip-body",children:[l.title&&(0,p.jsx)(h.A,{as:"h2",className:"googlesitekit-tooltip-title",size:"medium",type:"title",children:l.title}),(0,p.jsx)("div",{className:"googlesitekit-tooltip-content",children:l.content})]}),(0,p.jsxs)(o.CardActions,{className:"googlesitekit-tooltip-actions",children:[!f&&(0,p.jsx)("ul",{className:"googlesitekit-tooltip-indicators",children:_.map(e=>(0,p.jsx)("li",{className:k(e)},`indicator-${e}`))}),f&&(0,p.jsx)("p",{className:"googlesitekit-tooltip-steps",children:a>1&&`${i+1} / ${a}`}),(0,p.jsxs)("div",{className:"googlesitekit-tooltip-buttons",children:[0!==i&&(0,p.jsx)(d.Button,{className:"googlesitekit-tooltip-button",text:!f,tertiary:f,...e,children:e.title}),l.cta,s.title&&(0,p.jsx)(d.Button,{className:r()("googlesitekit-tooltip-button",{"googlesitekit-tooltip-button--primary":f}),text:!f,...s,children:s.title})]})]}),(0,p.jsx)(d.Button,{className:"googlesitekit-tooltip-close",icon:(0,p.jsx)(u.A,{width:v,height:v}),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}},11341(e,t,i){i.d(t,{Ay:()=>TourTooltips,R0:()=>v,ei:()=>b});var o=i(62688),n=i.n(o),s=i(36703),r=i(15844),a=i(82871),l=i(50539),c=i(67608),d=i(20295),g=i(96530),u=i(64510),h=i(32200),p=i(65589),m=i(39494),f=i(94044),_=i(62540);const k=(0,c.G)("setupFlowRefresh"),v={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:k?"rgba(0, 0, 0, 0.25)":"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:k?"none":"2px solid #3c7251",backgroundColor:"#fff"}},y={back:(0,a.__)("Back","google-site-kit"),close:(0,a.__)("Close","google-site-kit"),last:(0,a.__)("Got it","google-site-kit"),next:(0,a.__)("Next","google-site-kit")},b={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)"}}},x={disableBeacon:!0,isFixed:!0,placement:"auto"},C={placement:"top",offset:0},A="feature_tooltip_view",M="feature_tooltip_advance",S="feature_tooltip_return",N="feature_tooltip_dismiss",w="feature_tooltip_complete";function TourTooltips({steps:e,tourID:t,gaEventCategory:i,isRepeatable:o,callback:n}){const a=`${t}-step`,c=`${t}-run`,{setValue:j}=(0,l.useDispatch)(d.nX),{dismissTour:E,receiveCurrentTour:I}=(0,l.useDispatch)(g.oR),T=(0,l.useRegistry)(),R=(0,h.A)(),L=(0,u.dv)(),D=(0,l.useSelect)(e=>e(d.nX).getValue(a)||0),O=(0,l.useSelect)(e=>{const i=o||!1===e(g.oR).isTourDismissed(t);return e(d.nX).getValue(c)&&i});function P(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}`,P(D)),j(c,!0)});const Z=e.map(e=>e.isResponsive&&L===u.mp?{...x,...e,...C,floaterProps:{...e.floaterProps,target:e.target}}:{...x,...e}),z={...b.options,flip:{...b.options?.flip,padding:{bottom:0,top:(0,p.Jc)()}}},H=k?{...b.styles,floater:{filter:"drop-shadow(rgba(0, 0, 0, 0.25) 0px 4px 16px)"}}:b.styles,B={...b,options:z,styles:H};return(0,_.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(R):i;a===s.qY.TOOLTIP&&o===s.VD.TOOLTIP?(0,m.sx)(c,A,l):t===s.kl.CLOSE&&o===s.VD.COMPLETE?(0,m.sx)(c,N,l):t===s.kl.NEXT&&r===s.XQ.FINISHED&&a===s.qY.TOUR_END&&n===l&&(0,m.sx)(c,w,l),o===s.VD.COMPLETE&&r!==s.XQ.FINISHED&&(t===s.kl.PREV&&(0,m.sx)(c,S,l),t===s.kl.NEXT&&(0,m.sx)(c,M,l))}(r);const{action:l,index:d,status:g,step:u,type:h}=r,f=l===s.kl.CLOSE,_=!f&&[s.qY.STEP_AFTER,s.qY.TARGET_NOT_FOUND].includes(h),k=[s.XQ.FINISHED,s.XQ.SKIPPED].includes(g),v=f&&h===s.qY.STEP_AFTER,y=k||v;s.qY.STEP_BEFORE===h&&function(e){let t=e.target;if("string"==typeof e.target&&(t=globalThis.document.querySelector(e.target)),!(t instanceof Element))return;const i=document.querySelector(".__floater");if(!i)return;const o=t.getBoundingClientRect(),n=i.getBoundingClientRect(),s=window.scrollY+o.bottom,r=window.scrollY+o.top,a=window.scrollY+n.bottom,l=window.scrollY+n.top,c=Math.max(s,a),d=Math.min(r,l),g=c-d,u=window.innerHeight,h=(0,p.Jc)(),m=d+g/2-u/2-h/2;u>g+h+16?window.scrollTo({behavior:"smooth",top:m}):d===l||c===a?(i.style.scrollMarginBlock="8px",i.scrollIntoView({behavior:"smooth",block:d===l?"start":"end"})):(t.style.scrollMarginBlock="8px",t.scrollIntoView({behavior:"smooth",block:"start"}))}(u),_?function(t,i){const o=t+(i===s.kl.PREV?-1:1);globalThis.document.body.classList.remove(P(t)),e[o]&&globalThis.document.body.classList.add(P(o)),j(a,o)}(d,l):y&&(globalThis.document.body.classList.remove("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),e[D]&&globalThis.document.body.classList.remove(P(D)),o?(j(c,!1),j(a,null),I(null)):E(t)),n&&n(r,T)},floaterProps:B,locale:y,run:O,stepIndex:D,steps:Z,styles:v,tooltipComponent:f.A,showProgress:!k,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}},13057(e,t,i){i.d(t,{A:()=>c});var o=i(62688),n=i.n(o),s=i(64510),r=i(41680),a=i(17417),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)}},41680(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"]},17417(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(41680),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])}},35428(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},69231(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),d=i(63696),g=i(82871),u=i(53328),h=i(49383),p=i(50539),m=i(58475),f=i(55258),_=i(96530),k=i(71764),v=i(45822),y=i(71125),b=i(32200),x=i(51579),C=i(99295),A=i(44446),M=i(77582),S=i(75865);function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;td.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),o||(o=d.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M15.2441 10.5898C15.8489 9.56973 17.1698 9.23052 18.1934 9.83496H18.1943C19.215 10.4374 19.5534 11.7497 18.9541 12.7695L15.915 17.792 15.9111 17.7979C15.5096 18.4755 14.7937 18.8535 14.0547 18.8535 13.683 18.8535 13.3059 18.7576 12.9609 18.5537V18.5527C11.9381 17.9491 11.5997 16.633 12.2041 15.6123L12.2031 15.6113 15.2402 10.5967 15.2441 10.5898ZM8.85352 5.63477C9.45822 4.6142 10.7789 4.27444 11.8037 4.87891 12.8264 5.48282 13.1646 6.79923 12.5605 7.81836L12.5566 7.82422 6.75684 17.8008C6.35612 18.4775 5.6401 18.8564 4.90039 18.8564 4.52789 18.8564 4.15095 18.7601 3.80664 18.5566 2.78335 17.952 2.44586 16.6357 3.0498 15.6162L3.05273 15.6104 8.85352 5.63477Z"})),n||(n=d.createElement("path",{fill:"currentColor",stroke:"currentColor",strokeWidth:1.5,d:"M4.88672 14.5947C6.06776 14.595 7.02246 15.5504 7.02246 16.7256C7.02231 17.9006 6.06766 18.8552 4.88672 18.8555C3.70557 18.8555 2.75016 17.9007 2.75 16.7256C2.75 15.5503 3.70548 14.5947 4.88672 14.5947Z"})));var j,E,I;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;td.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),j||(j=d.createElement("circle",{cx:12,cy:11,r:8.25,stroke:"currentColor",strokeWidth:1.5})),E||(E=d.createElement("path",{fill:"currentColor",d:"M10 9L17 6L14.0468 13.0468L7 16L10 9Z"})),I||(I=d.createElement("circle",{cx:12,cy:11,r:1,fill:"#fff"})));var L,D,O;function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;td.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),L||(L=d.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M19 8L19 19C19 20.1046 18.1046 21 17 21L7 21C5.89543 21 5 20.1046 5 19L5 5C5 3.89543 5.89543 3 7 3L14 3L19 8Z"})),D||(D=d.createElement("path",{fill:"currentColor",d:"M13.5 9V3L19 9H13.5Z"})),O||(O=d.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M8.5 11.5H15.5M8.5 14.5H15.5M8.5 17.5H13"})));var z,H;function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;td.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),z||(z=d.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M5 5.75H19C19.6904 5.75 20.25 6.30964 20.25 7V16.1611C20.25 16.8515 19.6904 17.4111 19 17.4111H6.63281L6.41406 17.624L3.75 20.2207V7C3.75 6.30964 4.30964 5.75 5 5.75Z"})),H||(H=d.createElement("path",{fill:"currentColor",d:"M11.5 8.5H13V12.5H11.5zM11.5 13.5H13V15H11.5z"})));var V;function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;td.createElement("svg",U({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),V||(V=d.createElement("path",{fill:"currentColor",d:"M9 16H11V14H9V16ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM10 4C7.79 4 6 5.79 6 8H8C8 6.9 8.9 6 10 6C11.1 6 12 6.9 12 8C12 10 9 9.75 9 13H11C11 10.75 14 10.5 14 8C14 5.79 12.21 4 10 4Z"})));var W,Y,$;function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;td.createElement("svg",K({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),W||(W=d.createElement("mask",{id:"support_svg__a",fill:"#fff"},d.createElement("path",{d:"M12 2C16.9707 2 21.001 6.02927 21.001 11C21.001 13.2824 20.1512 15.3666 18.751 16.9531C18.2234 17.5509 17.6171 18.078 16.9492 18.5186C16.2454 18.9827 15.4726 19.3514 14.6494 19.6045C14.478 19.6572 14.3035 19.7026 14.1279 19.7451C10.5087 21.8231 5 23 5 23C5.02317 22.9826 7.68924 20.9755 8.05273 19.0889C7.70616 18.9194 7.37158 18.7295 7.05176 18.5186C6.42449 18.1049 5.85202 17.6147 5.34766 17.0615C3.88944 15.462 3.00001 13.335 3 11C3 6.02937 7.02941 2.00017 12 2Z"}))),Y||(Y=d.createElement("path",{fill:"currentColor",d:"M12 2V0.5H11.9999L12 2ZM21.001 11L22.501 11V11H21.001ZM18.751 16.9531L19.8756 17.9457L19.8756 17.9457L18.751 16.9531ZM16.9492 18.5186L17.7751 19.7707L17.7751 19.7707L16.9492 18.5186ZM14.6494 19.6045L15.0902 21.0383L15.0903 21.0382L14.6494 19.6045ZM14.1279 19.7451L13.7745 18.2873L13.5666 18.3378L13.3811 18.4443L14.1279 19.7451ZM5 23L4.09897 21.8008L-1.34207 25.8888L5.3134 24.4669L5 23ZM8.05273 19.0889L9.52565 19.3726L9.74281 18.2455L8.7116 17.7413L8.05273 19.0889ZM7.05176 18.5186L6.22592 19.7707L6.22593 19.7708L7.05176 18.5186ZM5.34766 17.0615L4.23917 18.0721L4.23918 18.0721L5.34766 17.0615ZM3 11H1.5V11L3 11ZM12 2V3.5C16.1425 3.5 19.501 6.85791 19.501 11H21.001H22.501C22.501 5.20063 17.7989 0.5 12 0.5V2ZM21.001 11L19.501 11C19.501 12.903 18.794 14.6375 17.6263 15.9606L18.751 16.9531L19.8756 17.9457C21.5084 16.0957 22.501 13.6619 22.501 11L21.001 11ZM18.751 16.9531L17.6264 15.9605C17.1864 16.459 16.6806 16.8989 16.1233 17.2664L16.9492 18.5186L17.7751 19.7707C18.5537 19.2572 19.2604 18.6427 19.8756 17.9457L18.751 16.9531ZM16.9492 18.5186L16.1234 17.2664C15.5361 17.6537 14.8926 17.9604 14.2085 18.1707L14.6494 19.6045L15.0903 21.0382C16.0525 20.7423 16.9547 20.3118 17.7751 19.7707L16.9492 18.5186ZM14.6494 19.6045L14.2086 18.1707C14.0778 18.2109 13.9358 18.2482 13.7745 18.2873L14.1279 19.7451L14.4813 21.2029C14.6712 21.1569 14.8782 21.1034 15.0902 21.0383L14.6494 19.6045ZM14.1279 19.7451L13.3811 18.4443C11.72 19.398 9.56684 20.1727 7.77207 20.7162C6.88585 20.9845 6.10875 21.19 5.55454 21.3282C5.27775 21.3971 5.0574 21.4491 4.90781 21.4835C4.83304 21.5007 4.77602 21.5134 4.73853 21.5217C4.71979 21.5259 4.70594 21.5289 4.69721 21.5308C4.69285 21.5318 4.68976 21.5324 4.68798 21.5328C4.68709 21.533 4.68653 21.5331 4.6863 21.5332C4.68618 21.5332 4.68615 21.5332 4.6862 21.5332C4.68622 21.5332 4.68632 21.5332 4.68633 21.5332C4.68645 21.5331 4.6866 21.5331 5 23C5.3134 24.4669 5.31359 24.4669 5.31379 24.4668C5.31389 24.4668 5.31411 24.4667 5.31431 24.4667C5.31469 24.4666 5.31516 24.4665 5.31571 24.4664C5.31682 24.4662 5.31826 24.4659 5.32003 24.4655C5.32358 24.4647 5.32845 24.4637 5.33461 24.4623C5.34695 24.4596 5.36447 24.4558 5.38697 24.4508C5.43194 24.4409 5.4968 24.4263 5.57973 24.4073C5.74554 24.3692 5.98383 24.3129 6.28004 24.2391C6.87181 24.0916 7.69809 23.8731 8.64146 23.5874C10.5058 23.0229 12.9167 22.1702 14.8748 21.046L14.1279 19.7451ZM5 23L5.90103 24.1992C5.94203 24.1684 6.68443 23.6084 7.47742 22.7877C8.21163 22.0279 9.25427 20.7812 9.52565 19.3726L8.05273 19.0889L6.57982 18.8051C6.48771 19.2832 6.01557 19.9833 5.32007 20.7031C4.68337 21.362 4.08114 21.8142 4.09897 21.8008L5 23ZM8.05273 19.0889L8.7116 17.7413C8.42011 17.5988 8.14153 17.4404 7.87759 17.2664L7.05176 18.5186L6.22593 19.7708C6.60163 20.0185 6.99221 20.24 7.39386 20.4364L8.05273 19.0889ZM7.05176 18.5186L7.8776 17.2664C7.35464 16.9215 6.87703 16.5126 6.45613 16.0509L5.34766 17.0615L4.23918 18.0721C4.82701 18.7169 5.49434 19.2883 6.22592 19.7707L7.05176 18.5186ZM5.34766 17.0615L6.45614 16.0509C5.23983 14.7168 4.50001 12.9465 4.5 11L3 11L1.5 11C1.50002 13.7234 2.53905 16.2073 4.23917 18.0721L5.34766 17.0615ZM3 11H4.5C4.5 6.85785 7.8578 3.50014 12.0001 3.5L12 2L11.9999 0.5C6.20102 0.500195 1.5 5.20089 1.5 11H3Z",mask:"url(#support_svg__a)"})),$||($=d.createElement("path",{fill:"currentColor",d:"M11.7959 16C12.1205 16 12.3931 15.8961 12.6137 15.6883C12.835 15.4812 12.9456 15.2256 12.9456 14.9215C12.9456 14.6168 12.835 14.3609 12.6137 14.1537C12.3931 13.9459 12.1205 13.8421 11.7959 13.8421C11.4721 13.8421 11.1999 13.9459 10.9793 14.1537C10.758 14.3609 10.6473 14.6168 10.6473 14.9215C10.6473 15.2256 10.758 15.4812 10.9793 15.6883C11.1999 15.8961 11.4721 16 11.7959 16ZM11.9062 7.4728C12.3192 7.4728 12.6543 7.5767 12.9117 7.78449C13.1698 7.99162 13.2988 8.25419 13.2988 8.57218C13.2988 8.79392 13.2178 9.02926 13.0559 9.27822C12.894 9.52717 12.6656 9.76916 12.3708 10.0042C11.8992 10.3912 11.5566 10.7474 11.3431 11.0727C11.1295 11.3973 11.0228 11.719 11.0228 12.0376C11.0228 12.2448 11.0967 12.4174 11.2444 12.5555C11.3915 12.6942 11.5828 12.7636 11.8182 12.7636C12.0395 12.7636 12.2347 12.6942 12.4037 12.5555C12.5734 12.4174 12.6801 12.2308 12.724 11.9958C12.7685 11.7747 12.8682 11.564 13.023 11.3635C13.1772 11.1623 13.431 10.9027 13.7846 10.5847C14.2562 10.1698 14.5768 9.80003 14.7465 9.47539C14.9155 9.15009 15 8.79392 15 8.40688C15 7.68723 14.7203 7.10634 14.1611 6.6642C13.6011 6.22139 12.8643 5.99999 11.9508 5.99999C11.3321 5.99999 10.7908 6.11417 10.327 6.34255C9.86318 6.57092 9.46192 6.91315 9.12324 7.36924C9.00516 7.52127 8.97193 7.68723 9.02354 7.86715C9.07516 8.04706 9.18192 8.19908 9.34384 8.32323C9.53546 8.46198 9.75252 8.50712 9.99505 8.45866C10.2383 8.4102 10.4408 8.28207 10.6028 8.07427C10.7647 7.88109 10.9528 7.73271 11.167 7.62914C11.3805 7.52492 11.6269 7.4728 11.9062 7.4728Z"})));var X=i(22994),q=i(62540);function HelpMenuLink({children:e,href:t,gaEventLabel:i,onClick:o,icon:n}){const s=(0,b.A)(),r=(0,v.i)("setupFlowRefresh"),a=(0,d.useCallback)(async()=>{o?.(),i&&await(0,S.sx)(`${s}_headerbar_helpmenu`,r?"click_menu_item":"click_outgoing_link",i)},[o,i,s,r]);return(0,q.jsx)("li",{className:"googlesitekit-help-menu-link mdc-list-item",role:"none",children:(0,q.jsx)(X.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,d.useState)(!1),n=(0,d.useRef)(),s=(0,b.A)(),a=(0,v.i)("setupFlowRefresh");(0,c.A)(n,()=>o(!1)),(0,y.l)([u._f,u.wn],n,()=>o(!1));const l=(0,p.useSelect)(e=>e(k.i).isModuleActive(x.Py)),N=(0,p.useSelect)(e=>{if(!t||!a)return!1;return e(k.i).isModuleConnected(C.L1)?!1===e(A.K9).isGatheringData():!1===e(M.n).isGatheringData()},[t,a]),j=(0,d.useCallback)(()=>{i||(0,S.sx)(`${s}_headerbar`,"open_helpmenu"),o(!i)},[i,s]),E=(0,d.useCallback)(()=>{o(!1)},[]),I=(0,p.useSelect)(e=>e(f.O4).getDocumentationLinkURL("fix-common-issues")),{triggerOnDemandTour:T}=(0,p.useDispatch)(_.oR),L=(0,m.G)(),D=(0,d.useCallback)(()=>{T(L)},[T,L]),O=[{gaEventLabel:"fix_common_issues",href:I,children:(0,g.__)("Fix common issues","google-site-kit")},{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/",children:(0,g.__)("Read help docs","google-site-kit")},{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/",children:(0,g.__)("Get support","google-site-kit")},...l?[{gaEventLabel:"adsense_help",href:"https://support.google.com/adsense/",children:(0,g.__)("Get help with AdSense","google-site-kit")}]:[]],P=[{gaEventLabel:"browse_documentation",href:"https://sitekit.withgoogle.com/documentation/",icon:(0,q.jsx)(Z,{width:24,height:24}),children:(0,g.__)("Browse documentation","google-site-kit")},{gaEventLabel:"get_support",href:"https://wordpress.org/support/plugin/google-site-kit/",icon:(0,q.jsx)(Q,{width:24,height:24}),children:(0,g.__)("Get free support","google-site-kit")},...N?[{gaEventLabel:"start_tour",onClick:D,icon:(0,q.jsx)(R,{width:24,height:24}),children:(0,g.__)("Start a feature tour","google-site-kit")}]:[],{gaEventLabel:"send_feedback",href:"https://wordpress.org/support/plugin/google-site-kit/reviews/",icon:(0,q.jsx)(F,{width:24,height:24}),children:(0,g.__)("Send feedback","google-site-kit")},...l?[{gaEventLabel:"get_adsense_help",href:"https://support.google.com/adsense/",icon:(0,q.jsx)(w,{width:24,height:24}),children:(0,g.__)("Get help with AdSense","google-site-kit")}]:[]];return(0,q.jsxs)("div",{ref:n,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,q.jsx)(h.Button,{"aria-controls":"googlesitekit-help-menu","aria-expanded":i,"aria-label":(0,g.__)("Help","google-site-kit"),"aria-haspopup":"menu",className:"googlesitekit-header__dropdown googlesitekit-border-radius-round googlesitekit-button-icon googlesitekit-help-menu__button mdc-button--dropdown",icon:(0,q.jsx)(G,{width:"20",height:"20"}),onClick:j,tooltipEnterDelayInMS:500,text:!0}),(0,q.jsxs)(h.Menu,{className:r()("googlesitekit-width-auto",{"googlesitekit-help-menu":a}),menuOpen:i,id:"googlesitekit-help-menu",onSelected:E,children:[e,(a?P:O).map((e,t)=>(0,q.jsx)(J,{...e},t))]})]})}HelpMenu.propTypes={children:l().node,showFeatureTour:l().bool}},76466(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(50940),c=i(25533),d=i(62540);class LayoutFooter extends a.Component{render(){const{ctaLabel:e,ctaLink:t,footerContent:i}=this.props;return(0,d.jsx)("footer",{className:"googlesitekit-layout__footer",children:(0,d.jsx)(c.xA,{children:(0,d.jsx)(c.fI,{children:(0,d.jsxs)(c.fh,{size:12,children:[t&&e&&(0,d.jsx)(l.A,{className:"googlesitekit-data-block__source",name:e,href:t,external:!0}),i]})})})})}}LayoutFooter.propTypes={ctaLabel:r().string,ctaLink:r().string};const g=LayoutFooter;var u=i(22994),h=i(17417);class LayoutHeader extends a.Component{render(){const{title:e,badge:t,ctaLabel:i,ctaLink:o}=this.props,n=o?{alignMiddle:!0,smSize:4,lgSize:6}:{alignMiddle:!0,smSize:4,mdSize:8,lgSize:12};return(0,d.jsx)("header",{className:"googlesitekit-layout__header",children:(0,d.jsx)(c.xA,{children:(0,d.jsxs)(c.fI,{children:[e&&(0,d.jsx)(c.fh,{...n,children:(0,d.jsxs)(h.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-subheading-1 googlesitekit-layout__header-title",children:[e,t]})}),o&&(0,d.jsx)(c.fh,{smSize:4,lgSize:6,alignMiddle:!0,mdAlignRight:!0,children:(0,d.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 p=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:h,fill:m,relative:f,rounded:_=!1,transparent:k=!1,...v}=this.props;return(0,d.jsxs)("div",{className:n()("googlesitekit-layout",h,{"googlesitekit-layout--fill":m,"googlesitekit-layout--relative":f,"googlesitekit-layout--rounded":_,"googlesitekit-layout--transparent":k}),...v,children:[e&&(0,d.jsx)(p,{title:o,badge:s,ctaLabel:r,ctaLink:a}),i,t&&(0,d.jsx)(g,{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},26421(e,t,i){i.d(t,{A:()=>Notifications});var o=i(62688),n=i.n(o),s=i(50539),r=i(92255),a=i(7029),l=i(50532),c=i.n(l),d=i(81566),g=i(62540);const u=c()(e=>({id:e,Notification:h(e)(d.A)}));function h(e){return t=>{function WithNotificationID(i){return(0,g.jsx)(t,{...i,id:e})}return WithNotificationID.displayName="WithNotificationID",(t.displayName||t.name)&&(WithNotificationID.displayName+=`(${t.displayName||t.name})`),WithNotificationID}}var p=i(32200);function Notifications({areaSlug:e,groupID:t=r.He.DEFAULT}){const i=(0,p.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,g.jsx)(l,{...c})}Notifications.propTypes={viewContext:n().string,areaSlug:n().string}},42676(e,t,i){i.d(t,{A:()=>ExitSetup});var o=i(62688),n=i.n(o),s=i(82871),r=i(84980),a=i(85110),l=i(57958),c=i(55258),d=i(75865),g=i(62540);function ExitSetup({gaTrackingEventArgs:e}){const t=(0,a.WM)(e=>(0,d.CZ)(e(c.O4).getAdminURL())),{navigateTo:i}=(0,a.wA)(l.M);return(0,g.jsx)(r.$n,{onClick:async function(){await(0,d.sx)(e.category,"setup_flow_v3_exit_setup",e.label),i(t)},tertiary:!0,children:(0,s.__)("Exit setup","google-site-kit")})}ExitSetup.propTypes={gaTrackingEventArgs:n().object.isRequired}},26113(e,t,i){i.d(t,{A:()=>StepHint});var o=i(62688),n=i.n(o),s=i(62925),r=i(62540);function StepHint({leadingText:e,tooltipText:t}){return(0,r.jsxs)("div",{className:"googlesitekit-setup__step-hint",children:[(0,r.jsx)("p",{children:e}),(0,r.jsx)(s.A,{tooltipClassName:"googlesitekit-setup__step-hint-tooltip",title:t})]})}StepHint.propTypes={leadingText:n().oneOfType([n().string,n().element]).isRequired,tooltipText:n().oneOfType([n().string,n().element]).isRequired}},34740(e,t,i){i.d(t,{I:()=>o});const o={WITH_ANALYTICS:"welcome-with-analytics",WITHOUT_ANALYTICS:"welcome-without-analytics"}},67608(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)}},36160(e,t,i){i.d(t,{Gq:()=>g,IL:()=>m,LD:()=>h,SO:()=>u,a2:()=>n,xD:()=>p});var o=i(75865);const n="googlesitekit_",s=`${n}1.184.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 d(){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 g(e){const t=await d();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)-tf});var o=i(47485),n=i(62688),s=i.n(n),r=i(63696),a=i(82871),l=i(25533),c=i(41794),d=i(62540);function MaybeTooltip({children:e,disabled:t=!1,tooltip:i=!1,tooltipTitle:o=null,hasIconOnly:n=!1,tooltipEnterDelayInMS:s=100}){return!t&&(i&&o||n&&o)?(0,d.jsx)(c.A,{title:o,enterDelay:s,children:e}):e}MaybeTooltip.propTypes={children:s().node.isRequired,disabled:s().bool,tooltip:s().bool,tooltipTitle:s().oneOfType([s().string,s().element]),hasIconOnly:s().bool,tooltipEnterDelayInMS:s().number};var g=i(4452),u=i.n(g);const h=(0,r.forwardRef)(({children:e,href:t,text:i,className:o,danger:n,disabled:s,target:r,"aria-label":a,inverse:l,tertiary:c,callout:g,calloutStyle:h,...p},m)=>{const f=t&&!s?"a":"button";return(0,d.jsx)(f,{className:u()("mdc-button",o,{"mdc-button--raised":!i&&!c&&!g,"mdc-button--danger":n,"mdc-button--inverse":l,"mdc-button--tertiary":c,"mdc-button--callout":g,"mdc-button--callout-primary":g||"primary"===h,"mdc-button--callout-warning":"warning"===h,"mdc-button--callout-error":"error"===h}),href:s?void 0:t,ref:m,disabled:!!s,"aria-label":a,target:r||"_self",role:"a"===f?"button":void 0,...p,children:e})});h.propTypes={children:s().node,href:s().string,text:s().bool,className:s().string,danger:s().bool,disabled:s().bool,target:s().string,"aria-label":s().string,inverse:s().bool,tertiary:s().bool,callout:s().bool,calloutStyle:s().oneOf(["primary","warning","error"])};const p=h,m=(0,r.forwardRef)(({children:e,href:t=null,text:i=!1,className:n="",danger:s=!1,disabled:c=!1,target:g,icon:u=null,trailingIcon:h=null,"aria-label":m,title:f=null,customizedTooltip:_=null,tooltip:k=!1,inverse:v=!1,hideTooltipTitle:y=!1,tooltipEnterDelayInMS:b=100,tertiary:x=!1,callout:C=!1,calloutStyle:A=null,...M},S)=>{const N=(0,r.useCallback)(e=>{null!==e&&l.Nv.attachTo(e)},[]),w=(0,o.A)(S,N);const j=y?null:f||_||m;return(0,d.jsx)(MaybeTooltip,{disabled:c,tooltip:k,tooltipTitle:j,hasIconOnly:!!u&&void 0===e,tooltipEnterDelayInMS:b,children:(0,d.jsxs)(p,{href:t,disabled:c,className:n,danger:s,text:i,tertiary:x,inverse:v,callout:C,calloutStyle:A,ref:w,"aria-label":function(){let t=m;if("_blank"!==g)return t;const i=(0,a._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof e&&(t=t||e),t?`${t} ${i}`:i}(),target:g||"_self",...M,children:[u,e&&(0,d.jsx)("span",{className:"mdc-button__label",children:e}),h]})})});m.propTypes={onClick:s().func,children:s().node,href:s().string,text:s().bool,className:s().string,danger:s().bool,disabled:s().bool,icon:s().element,trailingIcon:s().element,title:s().string,customizedTooltip:s().element,tooltip:s().bool,inverse:s().bool,hideTooltipTitle:s().bool,callout:s().bool,calloutStyle:s().oneOf(["primary","warning","error"])};const f=m},11375(e,t,i){i.d(t,{A:()=>CircularProgress});var o=i(75762),n=i(62540);function CircularProgress(e){return(0,n.jsx)(o.A,{...e})}},38416(e,t,i){i.d(t,{A:()=>SpinnerButton,k:()=>g});var o=i(4452),n=i.n(o),s=i(17243),r=i(62688),a=i.n(r),l=i(66593),c=i(11375),d=i(62540);const g={BEFORE:"before",AFTER:"after"};function SpinnerButton(e){const{className:t,onClick:i=()=>{},isSaving:o=!1,spinnerPosition:r=g.AFTER,...a}=e,u=(0,s.pickBy)(a,e=>void 0!==e);return(0,d.jsx)(l.A,{className:n()(t,"googlesitekit-button-icon--spinner",{"googlesitekit-button-icon--spinner__running":o,"googlesitekit-button-icon--spinner__before":r===g.BEFORE,"googlesitekit-button-icon--spinner__after":r===g.AFTER}),icon:o&&r===g.BEFORE?(0,d.jsx)(c.A,{size:14}):void 0,trailingIcon:o&&r===g.AFTER?(0,d.jsx)(c.A,{size:14}):void 0,onClick:i,...u})}SpinnerButton.propTypes={className:a().string,onClick:a().func,isSaving:a().bool,spinnerPosition:a().oneOf(Object.values(g))}},41794(e,t,i){i.d(t,{A:()=>Tooltip});var o=i(50154),n=i(4452),s=i.n(n),r=i(62688),a=i.n(r),l=i(63696),c=i(62540);function Tooltip({children:e,popperClassName:t,tooltipClassName:i,onOpen:n,onClose:r,...a}){const d=(0,l.useRef)(!1),g=n?()=>{d.current||(d.current=!0,n?.())}:void 0,u=n?()=>{d.current=!1,r?.()}:r;return(0,c.jsx)(o.Ay,{classes:{popper:s()("googlesitekit-tooltip-popper",t),tooltip:s()("googlesitekit-tooltip",i)},onOpen:g,onClose:u,...a,arrow:!0,children:e})}Tooltip.propTypes={children:a().node,popperClassName:a().string,tooltipClassName:a().string,onOpen:a().func,onClose:a().func}},25084(e,t,i){i.d(t,{Ax:()=>s,CZ:()=>d,Ej:()=>A,Gw:()=>M,Is:()=>r,KK:()=>u,Nn:()=>N,OT:()=>b,SH:()=>y,Y$:()=>h,ZS:()=>a,bg:()=>f,en:()=>C,ep:()=>m,f7:()=>n,hi:()=>p,jU:()=>o,k$:()=>k,kz:()=>S,ly:()=>l,mo:()=>_,s3:()=>v,uR:()=>c,x2:()=>x,zx:()=>g});const o="mainDashboard",n="entityDashboard",s="mainDashboardViewOnly",r="entityDashboardViewOnly",a="userInput",l="activation",c="splash",d="adminBar",g="adminBarViewOnly",u="settings",h="adBlockingRecovery",p="wpDashboard",m="wpDashboardViewOnly",f="moduleSetup",_="metricSelection",k="wpBlockEditor",v="keyMetricsSetup",y="key-metrics",b="traffic",x="site-goals",C="content",A="speed",M="monetization",S=[o,n,s,r,a,c,u,f,_],N=[s,r,g,m]},7549(e,t,i){i.d(t,{P9:()=>_,k:()=>p,mR:()=>f});var o=i(32091),n=i.n(o),s=i(17243),r=i(50539),a=i.n(r),l=i(36160),c=i(75865);const d="CREATE_SNAPSHOT",g="DELETE_SNAPSHOT",u="RESTORE_SNAPSHOT",h="SET_STATE_FROM_SNAPSHOT";function p(e,{keysToSnapshot:t}={}){n()(e,"storeName is required to create a snapshot store.");const i={},o={*deleteSnapshot(){return yield{payload:{},type:g}},*restoreSnapshot(e={}){const{clearAfterRestore:t=!0}=e,{cacheHit:i,value:o}=yield{payload:{},type:u};return i&&(yield{payload:{snapshot:o},type:h},t&&(yield{payload:{},type:g})),i},*createSnapshot(){return yield{payload:{},type:d}}},a={[g]:()=>(0,l.LD)(`datastore::cache::${e}`),[d]:(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===h){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()))}},66266(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),d=i(30043),g=i(66293),u=i(43212),h=i(97241);var p=i(45939);const m=(0,o.I)({},globalThis.wp?.data);m.combineStores=p.o3,m.commonActions=p.jU,m.commonControls=p._5,m.commonStore=p.x0,m.createReducer=function(e){return(0,h.Ay)(e)},m.useInViewSelect=u.w,m.controls=n.n,m.createRegistryControl=s.b,m.createRegistrySelector=s.N,m.useSelect=r.A,m.useDispatch=a.A,m.useRegistry=l.A,m.withSelect=c.A,m.withDispatch=d.A,m.RegistryProvider=g.Ay;const f=m},45939(e,t,i){i.d(t,{$C:()=>N,RF:()=>S,WI:()=>A,_5:()=>b,jU:()=>y,o3:()=>v,x0:()=>C,y_:()=>w});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",d="AWAIT";function g(...e){const t=e.reduce((e,t)=>({...e,...t}),{}),i=x(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=g,h=g;function p(...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=g,f=g,_=g;function k(e){return e}function v(...e){const t=_(...e.map(e=>e.initialState||{}));return{initialState:t,controls:h(...e.map(e=>e.controls||{})),actions:u(...e.map(e=>e.actions||{})),reducer:p(t,...e.map(e=>e.reducer||k)),resolvers:m(...e.map(e=>e.resolvers||{})),selectors:f(...e.map(e=>e.selectors||{}))}}const y={getRegistry:()=>({payload:{},type:c}),*await(e){return{payload:{value:e},type:d}}},b={[c]:(0,l.b)(e=>()=>e),[d]:({payload:e})=>e.value};function x(e){const t=[],i={};for(let o=0;o=1?i[n]+1:1,i[n]>1&&t.push(n)}return t}const C={actions:y,controls:b,reducer:k};function A(e){return t=>M(e(t))}const M=a()(e=>(0,s.mapValues)(e,(e,t)=>(...i)=>{const o=e(...i);return n()(void 0!==o,`${t}(...) is not resolved`),o}));function S(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 N(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))}function w(e,t=globalThis){const i=(0,s.get)(t,e);if(void 0===i)throw new Error(`Global data value not found at path ${e}.`);return(0,s.cloneDeep)(i)}},38326(e,t,i){i.d(t,{s:()=>o});const o="core/forms"},57958(e,t,i){i.d(t,{M:()=>o});const o="core/location"},55258(e,t,i){i.d(t,{O4:()=>o,OQ:()=>s,qc:()=>n});const o="core/site",n="primary",s="secondary"},20295(e,t,i){i.d(t,{Fc:()=>n,Yg:()=>s,nX:()=>o});const o="core/ui",n="activeContextID",s="forced-in-view-widget-areas"},96530(e,t,i){i.d(t,{$8:()=>r,$Q:()=>h,BT:()=>R,CQ:()=>S,D1:()=>Y,DF:()=>W,GM:()=>M,GT:()=>k,GU:()=>$,HA:()=>P,HD:()=>u,HP:()=>T,J5:()=>z,JF:()=>w,JK:()=>f,Ml:()=>m,SS:()=>L,UF:()=>d,UY:()=>V,Vl:()=>D,W6:()=>G,Xq:()=>N,YQ:()=>j,Yw:()=>F,dV:()=>I,dX:()=>A,ej:()=>c,em:()=>s,ep:()=>x,fu:()=>y,gC:()=>v,hz:()=>p,jN:()=>K,jx:()=>g,lV:()=>l,nH:()=>Z,oR:()=>o,od:()=>a,p3:()=>_,pG:()=>C,qv:()=>n,qy:()=>E,t1:()=>U,t7:()=>B,tB:()=>b,tK:()=>H,u_:()=>O});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",d="googlesitekit_setup",g="googlesitekit_view_dashboard",u="googlesitekit_manage_options",h="googlesitekit_read_shared_module_data",p="googlesitekit_manage_module_sharing_options",m="googlesitekit_delegate_module_sharing_management",f="googlesitekit_update_plugins",_="kmAnalyticsAdSenseTopEarningContent",k="kmAnalyticsEngagedTrafficSource",v="kmAnalyticsLeastEngagingPages",y="kmAnalyticsNewVisitors",b="kmAnalyticsPopularAuthors",x="kmAnalyticsPopularContent",C="kmAnalyticsPopularProducts",A="kmAnalyticsReturningVisitors",M="kmAnalyticsTopCities",S="kmAnalyticsTopCitiesDrivingLeads",N="kmAnalyticsTopCitiesDrivingAddToCart",w="kmAnalyticsTopCitiesDrivingPurchases",j="kmAnalyticsTopDeviceDrivingPurchases",E="kmAnalyticsTopConvertingTrafficSource",I="kmAnalyticsTopCountries",T="kmAnalyticsTopPagesDrivingLeads",R="kmAnalyticsTopRecentTrendingPages",L="kmAnalyticsTopTrafficSource",D="kmAnalyticsTopTrafficSourceDrivingAddToCart",O="kmAnalyticsTopTrafficSourceDrivingLeads",P="kmAnalyticsTopTrafficSourceDrivingPurchases",Z="kmAnalyticsPagesPerVisit",z="kmAnalyticsVisitLength",H="kmAnalyticsTopReturningVisitorPages",B="kmSearchConsolePopularKeywords",F="kmAnalyticsVisitsPerVisitor",V="kmAnalyticsMostEngagingPages",U="kmAnalyticsTopCategories",G=[_,k,v,y,b,x,C,A,U,M,S,N,w,j,E,I,R,L,D,Z,z,H,F,V,U],W=[...G,B],Y="welcome-modal-with-tour",$="welcome-modal-gathering-data",K="initial-setup-notification-timeout"},71764(e,t,i){i.d(t,{U:()=>n,i:()=>o});const o="core/modules",n="insufficient_module_dependencies"},81566(e,t,i){i.d(t,{A:()=>Notification});var o=i(62688),n=i.n(o),s=i(63696),r=i(50539),a=i(7029),l=i(52806),c=i(57112),d=i(20295),g=i(91576);function ViewedStateObserver({id:e,observeRef:t,threshold:i}){const o=(0,g.A)(t,{threshold:i}),{setValue:n}=(0,r.useDispatch)(d.nX),{markNotificationSeen:c}=(0,r.useDispatch)(a.D),u=!!o?.isIntersecting,h=(0,l.G)(e),p=(0,s.useRef)();function m(){p.current&&clearTimeout(p.current)}return(0,s.useEffect)(()=>(!h&&u?(m(),p.current=setTimeout(()=>{o?.isIntersecting&&(n(l.G.getKey(e),!0),c(e))},3e3)):!u&&p.current&&m(),()=>{m()}),[h,u,n,c,e,o]),null}ViewedStateObserver.propTypes={id:n().string,observeRef:n().object,threshold:n().number};var u=i(62540);function Notification({id:e,className:t,gaTrackingEventArgs:i,children:o,onView:n}){const d=(0,s.useRef)(),g=(0,l.G)(e),h=(0,c.A)(e,i?.category,{viewAction:i?.viewAction}),[p,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)(()=>{!p&&g&&(h.view(i?.label,i?.value),n?.(),m(!0)),f?.length>=3&&_(e,{skipHidingFromQueue:!0})},[g,h,p,i,n,f,_,e]),(0,u.jsxs)("section",{id:e,ref:d,className:t,children:[o,!g&&(0,u.jsx)(ViewedStateObserver,{id:e,observeRef:d,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}},93607(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(98958),c=i(98248),d=i(12930),g=i(48858),u=i(7029),h=i(57112),p=i(25533);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 d=(0,h.A)(e,r?.category),{dismissNotification:g}=(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)(p.xA,{className:"googlesitekit-page-content",children:(0,m.jsx)(p.fI,{children:(0,m.jsx)(p.fh,{size:12,children:(0,m.jsx)(l.A,{learnMoreLink:i&&{...i,onClick:async function(e){d.clickLearnMore(r?.label,r?.value),await(i?.onClick?.(e))}},dismissButton:o&&{...o,onClick:async function(t){await(o?.onClick?.(t)),d.dismiss(r?.label,r?.value),g(e,{...o?.dismissOptions})}},ctaButton:s&&{...s,onClick:async function(t){d.confirm(r?.label,r?.value),await(s?.onClick?.(t)),s?.dismissOnClick&&g(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(g.A.propTypes),dismissButton:r().shape(d.A.propTypes),ctaButton:r().shape(c.A.propTypes),gaTrackingEventArgs:r().shape({category:r().string,label:r().string,value:r().number})}},92255(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_WELCOME_MODAL:130,SETUP_CTA_SITE_GOALS_INTRO_MODAL:140,SETUP_CTA_HIGH:150,SETUP_CTA_LOW:200},a={HEADER:"notification-area-header",DASHBOARD_TOP:"notification-area-dashboard-top",OVERLAYS:"notification-area-overlays",SPLASH_CONTENT:"notification-area-splash-content"},l={DEFAULT:"default",SETUP_CTAS:"setup-ctas",SETUP_MODALS:"setup-modals"}},7029(e,t,i){i.d(t,{$:()=>s,D:()=>n});var o=i(25084);const n="core/notifications",s=[o.uR,o.jU,o.f7,o.Ax,o.Is]},52806(e,t,i){i.d(t,{G:()=>r});var o=i(50539),n=i(20295);function s(e){return`notification/${e}/viewed`}function r(e){return(0,o.useSelect)(t=>!!t(n.nX).getValue(s(e)),[e])}r.getKey=s},57112(e,t,i){i.d(t,{A:()=>r});var o=i(63696),n=i(32200),s=i(75865);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)(),d=t??`${c}_${e}`;return{view:(0,o.useCallback)((...e)=>(0,s.sx)(d,i,...e),[d,i]),confirm:(0,o.useCallback)((...e)=>(0,s.sx)(d,r,...e),[d,r]),dismiss:(0,o.useCallback)((...e)=>(0,s.sx)(d,a,...e),[d,a]),clickLearnMore:(0,o.useCallback)((...e)=>(0,s.sx)(d,l,...e),[d,l])}}},28516(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"},5205(e,t,i){i.r(t),i.d(t,{AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:()=>g,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:()=>h,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:()=>u,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:()=>d,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:()=>p});const o="mainDashboardKeyMetricsPrimary",n="mainDashboardSiteGoalsPrimary",s="mainDashboardTrafficPrimary",r="mainDashboardTrafficAudienceSegmentation",a="mainDashboardContentPrimary",l="mainDashboardSpeedPrimary",c="mainDashboardMonetizationPrimary",d="entityDashboardTrafficPrimary",g="entityDashboardContentPrimary",u="entityDashboardSpeedPrimary",h="entityDashboardMonetizationPrimary",p={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:d,AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:g,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:u,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:h}},63803(e,t,i){i.r(t),i.d(t,{CONTEXT_ENTITY_DASHBOARD_CONTENT:()=>d,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:()=>u,CONTEXT_ENTITY_DASHBOARD_SPEED:()=>g,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:()=>h});const o="mainDashboardKeyMetrics",n="mainDashboardSiteGoals",s="mainDashboardTraffic",r="mainDashboardContent",a="mainDashboardSpeed",l="mainDashboardMonetization",c="entityDashboardTraffic",d="entityDashboardContent",g="entityDashboardSpeed",u="entityDashboardMonetization",h={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:d,CONTEXT_ENTITY_DASHBOARD_SPEED:g,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:u}},76648(e,t,i){i.d(t,{Ay:()=>a,Oo:()=>s,oE:()=>r});var o=i(25084),n=i(32200);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}},97381(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}},45822(e,t,i){i.d(t,{i:()=>r});var o=i(63696),n=i(93240),s=i(67608);function r(e){const t=(0,o.useContext)(n.A);return(0,s.G)(e,t)}},80867(e,t,i){i.d(t,{A:()=>a});var o=i(63737),n=i(35470),s=i(63696),r=i(38326);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]}},41595(e,t,i){i.d(t,{A:()=>s});var o=i(63696),n=i(65538);function s(){const[e]=(0,n.A)("notification"),[t]=(0,n.A)("panel");return(0,o.useMemo)(()=>{const i={};return e&&(i.notification=e),t&&(i.panel=t),i},[e,t])}},25548(e,t,i){i.d(t,{W:()=>l});var o=i(79257),n=i(35470),s=i(63696),r=i(63010),a=i(20295);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()),d=(0,n.A)(e=>e(a.nX).getValue("forceInView"));return(0,s.useEffect)(()=>{t.value&&!i&&l(!0)},[i,t,l]),(0,s.useEffect)(()=>{d&&l(!0)},[d]),(0,o.A)(()=>{l(!1)},[c]),!(!e||!i)||!!t.value}},43212(e,t,i){i.d(t,{w:()=>a});var o=i(35470),n=i(63696),s=i(25548);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}},71125(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)}},91576(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}},65538(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=new URL(i.location.href),{hash:s}=o;o.hash="";const r=(0,n.F)(o.href,{[e]:t})+s;i.history.replaceState(null,"",r)}]}},32200(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o=i(63696),n=i(74585);const __WEBPACK_DEFAULT_EXPORT__=function(){return(0,o.useContext)(n.Ay)}},50509(e,t,i){i.d(t,{A:()=>s});var o=i(25084),n=i(32200);function s(){const e=(0,n.A)();return o.Nn.includes(e)}},25533(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:()=>d.fI,fh:()=>d.fh,lG:()=>a.a,xA:()=>d.xA});var o=i(3412),n=i(56655),s=i(30454),r=i(12786),a=i.n(r),l=i(91046),c=i(26569),d=i(23479)},51579(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"},99295(e,t,i){i.d(t,{A_:()=>d,DF:()=>u,L1:()=>p,M0:()=>r,Mc:()=>a,Ok:()=>c,SW:()=>h,U9:()=>l,iW:()=>s,ue:()=>n,wq:()=>o,xR:()=>g});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",d="_r..dataFilters",g="_r..nav",u="key-metrics-connect-ga4-cta-widget",h="analytics-4-setup-error",p="analytics-4"},40356(e,t,i){i.d(t,{Y:()=>o});const o="search-console"},77582(e,t,i){i.d(t,{n:()=>o});const o="modules/search-console"},54218(e,t,i){i.d(t,{Du:()=>u,GH:()=>a,Gp:()=>l,IS:()=>_,Jg:()=>d,N_:()=>v,O5:()=>k,Ql:()=>h,Qr:()=>p,XH:()=>f,r0:()=>c,sq:()=>m,tt:()=>g});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,d=60*c,g=24*d,u=7*g;function h(){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 p(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()(p(e),a);const[t,i,o]=e.split("-");return new Date(t,i-1,o)}function _(e,t){return m(v(e,t*g))}function k(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 v(e,t){n()(p(e)||(0,s.isDate)(e)&&!isNaN(e),a);const i=p(e)?f(e).getTime():e.getTime();return new Date(i-1e3*t)}},59376(e,t,i){i.d(t,{G:()=>a,HY:()=>c,SG:()=>l,db:()=>n,e4:()=>g,vl:()=>d});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 d(e,t){return!(!t?.storeName||l(e)||a(e)||c(e))}function g(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}},26703(e,t,i){i.d(t,{Eo:()=>g,JK:()=>m,K5:()=>p,jq:()=>h,mK:()=>d});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?h(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?h(n,{...l,unit:"second"}):"",o?h(o,{...l,unit:"minute"}):"",i?h(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 d(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 g(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=d(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"),h(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"),h(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"),h(c(e),e%10==0?{}:t)):h(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):h(e,i)}const u=s()(console.warn);function h(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 p(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}},75865(e,t,i){i.d(t,{tt:()=>p.tt,Jg:()=>p.Jg,Gp:()=>p.Gp,GH:()=>p.GH,r0:()=>p.r0,Du:()=>p.Du,Zf:()=>M,Cn:()=>v,G7:()=>h,vH:()=>u,N_:()=>p.N_,zh:()=>N,mK:()=>a.mK,Ql:()=>p.Ql,vY:()=>k,sq:()=>p.sq,VZ:()=>y.VZ,JK:()=>a.JK,IS:()=>p.IS,pH:()=>y.pH,kf:()=>x,O5:()=>p.O5,Qr:()=>p.Qr,x6:()=>b,K5:()=>a.K5,S_:()=>g,dc:()=>y.dc,Eo:()=>a.Eo,jq:()=>a.jq,DK:()=>A.D,N9:()=>C,p9:()=>s.p,XH:()=>p.XH,Zm:()=>r.Z,sx:()=>n.sx,BI:()=>n.BI,CZ:()=>s.C,BG:()=>S});var o=i(17243),n=i(39494),s=i(12968),r=i(65294),a=i(26703);function l(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'$1')}function c(e){return`

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

")}

`}function d(e){return e.replace(/\n/gi,"
")}function g(e){const t=[l,c,d];let i=e;for(const e of t)i=e(i);return i}function u(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 h(e){const t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}var p=i(54218),m=i(30908),f=i(72558),_=i(62540);function k(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:i=!1}=t;return(0,m.Ay)((0,_.jsx)(f.A,{direction:e>0?"up":"down",invertColor:i}))}function v(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var y=i(28085);function b(e){const t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function x(e){if("number"==typeof e)return!0;const t=(e||"").toString();return!!t&&!isNaN(t)}function C(e){return Array.isArray(e)?[...e].sort():e}var A=i(86416);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 S(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function N(e){if(!e)return"";const t=e.replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(t)).replace(/(\\)/g,"");return(0,o.unescape)(t)}},9519(e,t,i){i.d(t,{A:()=>n});var o=i(25084);function n(e){return o.kz.includes(e)}},86416(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)}}},81480(e,t,i){i.d(t,{O:()=>n});var o=i(31234);const n=i.n(o)()(globalThis)},12968(e,t,i){i.d(t,{C:()=>s,p:()=>n});var o=i(81480);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?.(/\/+$/,"")}},65589(e,t,i){i.d(t,{YJ:()=>s,Eq:()=>r,Jc:()=>a});var o=i(64510),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):a(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}function a(e){const t=document.querySelector("#wpadminbar");return t&&e!==o.mp?t.offsetHeight:0}},65294(e,t,i){i.d(t,{Z:()=>s});var o=i(10523),n=i.n(o);function s(e){return n()(JSON.stringify(r(e)))}function r(e){const t={};return Object.keys(e).sort().forEach(i=>{let o=e[i];o&&"object"==typeof o&&!Array.isArray(o)&&(o=r(o)),t[i]=o}),t}},39494(e,t,i){i.d(t,{M9:()=>A,sx:()=>x,BI:()=>C});var o=i(17243),n=i(67608);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:d,trackingEnabled:g,trackingID:u,referenceSiteURL:h,userIDHash:p,isAuthenticated:m,userRoles:f}=globalThis._googlesitekitTrackingData||{},_={activeModules:c,trackingEnabled:g,trackingID:u,referenceSiteURL:h,userIDHash:p,isSiteKitScreen:d,userRoles:f,isAuthenticated:m,pluginVersion:"1.184.0"},{enableTracking:k,disableTracking:v,isTrackingEnabled:y,initializeSnippet:b,trackEvent:x,trackEventOnce:C}=function(e,t=globalThis,i=globalThis){const c={...l,...e};c.referenceSiteURL&&(c.referenceSiteURL=c.referenceSiteURL.toString().replace(/\/+$/,""));const d=function(e,t){const i=a(t);let o;const{activeModules:l,referenceSiteURL:c,userIDHash:d,userRoles:g=[],isAuthenticated:u,pluginVersion:h}=e;return function(){const{document:t}=globalThis;if(void 0===o&&(o=!!t.querySelector(`script[${r}]`)),o)return!1;o=!0;const a=g?.length?g.join(","):"";i("js",new Date),i("config",e.trackingID,{groups:"site_kit",send_page_view:e.isSiteKitScreen,domain:c,plugin_version:h||"",enabled_features:Array.from(n.t).join(","),active_modules:l.join(","),authenticated:u?"1":"0",user_properties:{user_roles:a,user_identifier:d}});const p=t.createElement("script");return p.setAttribute(r,""),p.async=!0,p.src=`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${s}`,t.head.appendChild(p),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${s}`}}}(c,t),g=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,d,i),u={};return{enableTracking:function(){c.trackingEnabled=!0},disableTracking:function(){c.trackingEnabled=!1},initializeSnippet:d,isTrackingEnabled:function(){return!!c.trackingEnabled},trackEvent:g,trackEventOnce:function(...e){const t=JSON.stringify(e);u[t]||(u[t]=(0,o.once)(g)),u[t](...e)}}}(_);function A(e){e?k():v()}d&&g&&b()},28085(e,t,i){i.d(t,{VZ:()=>s,dc:()=>r,pH:()=>n,r0:()=>a});var o=i(84024);function n(e){try{return new URL(e).pathname}catch{}return null}function s(e,t){try{return new URL(t,e).href}catch{}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function r(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function a(e,t){if(!(0,o.m)(e))return e;if(e.length<=t)return e;const i=new URL(e),n=e.replace(i.origin,"");if(n.length{e.O(0,[660],()=>{return t=14907,e(e.s=t);var t});e.O()}]);