Files
roi-theme/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-ad-blocking-recovery-04056d66d815c45fe98f.js
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

42 lines
174 KiB
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[265,290],{1102:(e,t,i)=>{i.d(t,{w:()=>a});var s=i(35470),n=i(63696),o=i(2422);function r(){}function a(e,t){const i=(0,o.W)({sticky:!0}),a=(0,n.useRef)(),l=(0,n.useCallback)(e,t),c=(0,s.A)(i?l:r);return i&&(a.current=c),a.current}},2362:(e,t,i)=>{i.d(t,{A:()=>g});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(63696),l=i(62540);const c=(0,a.forwardRef)(({label:e,className:t,hasLeftSpacing:i=!1,...s},o)=>(0,l.jsx)("span",{ref:o,...s,className:n()("googlesitekit-badge",t,{"googlesitekit-badge--has-left-spacing":i}),children:e}));c.displayName="Badge",c.propTypes={label:r().string.isRequired,hasLeftSpacing:r().bool};const g=c},2422:(e,t,i)=>{i.d(t,{W:()=>l});var s=i(79257),n=i(35470),o=i(63696),r=i(6732),a=i(7081);function l({sticky:e=!1}={}){const t=(0,o.useContext)(r.A),[i,l]=(0,o.useState)(!1),c=(0,n.A)(e=>e(a.n).getInViewResetCount()),g=(0,n.A)(e=>e(a.n).getValue("forceInView"));return(0,o.useEffect)(()=>{t.value&&!i&&l(!0)},[i,t,l]),(0,o.useEffect)(()=>{g&&l(!0)},[g]),(0,s.A)(()=>{l(!1)},[c]),!(!e||!i)||!!t.value}},2522:(e,t,i)=>{i.d(t,{D:()=>o});var s=i(32091),n=i.n(s);function o(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)}}},3288:(e,t,i)=>{i.d(t,{Q:()=>s});const s="emailReportingUserSettingsSelectionPanelOpened"},3714:(e,t,i)=>{i.d(t,{Kk:()=>o,SZ:()=>s,Yw:()=>r,oJ:()=>a,tT:()=>n});const s="body",n=[s,"display","headline","label","title"],o="small",r="medium",a=[o,r,"large"]},3782:(e,t,i)=>{i.d(t,{A:()=>CTAButton});var s=i(62688),n=i.n(s),o=i(49383),r=i(62540);function CTAButton({label:e,ariaLabel:t,disabled:i,inProgress:s,onClick:n,href:a}){return e&&(n||a)?(0,r.jsx)(o.SpinnerButton,{className:"googlesitekit-banner__cta","aria-label":t,disabled:i||s,isSaving:s,onClick:n,href:a,children:e}):null}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})}},4445:(e,t,i)=>{i.d(t,{A:()=>d});var s=i(62688),n=i.n(s),o=i(63696),r=i(81276),a=i(49383),l=i(8420),c=i(62540);let g=null;function RefocusableModalDialog({dialogActive:e=!1,refocusQuerySelector:t=null,...i}){const s=(0,o.useCallback)(()=>{setTimeout(()=>{const e=t?document.querySelector(t):g;e&&document.body.contains(e)&&e.focus(),t||(g=null)})},[t]),n=(0,r.A)(e);return(0,o.useEffect)(()=>(!0===n&&!1===e&&s(),()=>{s()}),[n,e,s]),(0,c.jsx)(l.A,{dialogActive:e,...i})}!function(){function e(e){const t=e.target.closest("button, a, input");t&&!t.classList.contains("mdc-dialog__cancel-button")&&(g=t)}void 0!==i.g&&i.g.document&&!i.g._googlesitekitModalFocusTrackerInitialized&&(i.g.document.addEventListener("mousedown",e),i.g.document.addEventListener("keydown",t=>{"Enter"!==t.key&&" "!==t.key||e(t)}),i.g._googlesitekitModalFocusTrackerInitialized=!0)}(),RefocusableModalDialog.propTypes={dialogActive:n().bool,refocusQuerySelector:n().string,...a.Dialog.propTypes};const d=RefocusableModalDialog},4884:(e,t,i)=>{i.d(t,{A:()=>d});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(49383),l=i(20898),c=i(15167),g=i(62540);function CTA({title:e,headerText:t,headerContent:i,description:s,ctaLink:n,ctaLabel:o,ctaLinkExternal:d,ctaType:u,error:p,onClick:h,"aria-label":m,children:f}){return(0,g.jsxs)("div",{className:r()("googlesitekit-cta",{"googlesitekit-cta--error":p}),children:[(t||i)&&(0,g.jsxs)("div",{className:"googlesitekit-cta__header",children:[t&&(0,g.jsx)(c.A,{as:"h2",size:"small",type:"label",className:"googlesitekit-cta__header_text",children:t}),i]}),(0,g.jsxs)("div",{className:"googlesitekit-cta__body",children:[e&&(0,g.jsx)(c.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-cta__title",children:e}),s&&"string"==typeof s&&(0,g.jsx)("p",{className:"googlesitekit-cta__description",children:s}),s&&"string"!=typeof s&&(0,g.jsx)("div",{className:"googlesitekit-cta__description",children:s}),o&&"button"===u&&(0,g.jsx)(a.Button,{"aria-label":m,href:n,onClick:h,children:o}),o&&"link"===u&&(0,g.jsx)(l.A,{href:n,onClick:h,"aria-label":m,external:d,hideExternalIndicator:d,arrow:!0,children:o}),f]})]})}CTA.propTypes={title:n().string.isRequired,headerText:n().string,description:n().oneOfType([n().string,n().node]),ctaLink:n().string,ctaLinkExternal:n().bool,ctaLabel:n().string,ctaType:n().string,"aria-label":n().string,error:n().bool,onClick:n().func,children:n().node,headerContent:n().node},CTA.defaultProps={title:"",headerText:"",headerContent:"",description:"",ctaLink:"",ctaLabel:"",ctaType:"link",error:!1,onClick:()=>{}};const d=CTA},6464:(e,t,i)=>{i.d(t,{i:()=>r});var s=i(63696),n=i(11106),o=i(65214);function r(e){const t=(0,s.useContext)(n.A);return(0,o.G)(e,t)}},6732:(e,t,i)=>{i.d(t,{A:()=>s});const s=(0,i(63696).createContext)(!1)},7070:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(63696),n=i(77766),o=i(12850);function r(e,t,{viewAction:i="view_notification",confirmAction:r="confirm_notification",dismissAction:a="dismiss_notification",clickLearnMoreAction:l="click_learn_more_link"}={}){const c=(0,n.A)(),g=null!=t?t:`${c}_${e}`;return{view:(0,s.useCallback)((...e)=>(0,o.sx)(g,i,...e),[g,i]),confirm:(0,s.useCallback)((...e)=>(0,o.sx)(g,r,...e),[g,r]),dismiss:(0,s.useCallback)((...e)=>(0,o.sx)(g,a,...e),[g,a]),clickLearnMore:(0,s.useCallback)((...e)=>(0,o.sx)(g,l,...e),[g,l])}}},7081:(e,t,i)=>{i.d(t,{F:()=>n,n:()=>s});const s="core/ui",n="activeContextID"},7184:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(63696),l=i(32947),c=i(62540);function TitleIcon({className:e,children:t}){return(0,c.jsx)("div",{className:n()("googlesitekit-banner__title-icon",e),children:t})}function Title({className:e,children:t}){return(0,c.jsx)("p",{className:n()("googlesitekit-banner__title",e),children:t})}TitleIcon.propTypes={className:r().string,children:r().node},Title.propTypes={className:r().string,children:r().node};var g=i(12850),d=i(30823);function Description({className:e,description:t,learnMoreLink:i,additionalDescription:s,children:o}){return(0,c.jsxs)("div",{className:n()("googlesitekit-banner__description",e),children:[(0,a.isValidElement)(t)?t:"string"==typeof t?(0,c.jsx)("span",{dangerouslySetInnerHTML:(0,g.p9)(t,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}):t," ",i?.href&&(0,c.jsx)(d.A,{...i}),s&&(0,c.jsx)("div",{className:"googlesitekit-banner__additional-description",children:s}),o]})}function HelpText({className:e,children:t}){return(0,c.jsx)("p",{className:n()("googlesitekit-banner__help-text",e),children:t})}Description.propTypes={className:r().string,description:r().oneOfType([r().string,r().node]),learnMoreLink:r().shape(d.A.propTypes),additionalDescription:r().oneOfType([r().string,r().node]),children:r().node},HelpText.propTypes={className:r().string,children:r().node};var u=i(3782),p=i(29584);function Footer({className:e,children:t}){return(0,c.jsx)("div",{className:n()("googlesitekit-banner__footer",e),children:t})}Footer.propTypes={className:r().string,children:r().node};var h=i(80035);const m=(0,a.forwardRef)(({className:e,titleIcon:t,title:i,description:s,additionalDescription:o,errorText:r,helpText:a,learnMoreLink:g,dismissButton:d,ctaButton:m,svg:f,footer:k},_)=>{const y=(0,l.dv)(),v=y===l.mp||y===l.Lg;let x=null;v&&f?.mobile?x=f.mobile:!v&&f?.desktop&&(x=f.desktop);const b=f?.verticalPosition?f.verticalPosition:"center";return(0,c.jsxs)("div",{ref:_,className:n()("googlesitekit-banner",e),children:[(0,c.jsxs)("div",{className:"googlesitekit-banner__content",children:[t&&(0,c.jsx)(TitleIcon,{children:t}),(0,c.jsx)(Title,{children:i}),(0,c.jsx)(Description,{description:s,learnMoreLink:g,additionalDescription:o}),a&&(0,c.jsx)(HelpText,{children:a}),r&&(0,c.jsx)(h.A,{type:"error",description:r}),(0,c.jsxs)("div",{className:"googlesitekit-notice__action",children:[m&&(0,c.jsx)(u.A,{...m}),d?.onClick&&(0,c.jsx)(p.A,{...d})]})]}),x&&(0,c.jsx)("div",{className:n()("googlesitekit-banner__svg-wrapper",{[`googlesitekit-banner__svg-wrapper--${b}`]:b}),style:{backgroundImage:`url(${x})`}}),k&&(0,c.jsx)(Footer,{children:k})]})});m.propTypes={titleIcon:r().node,title:r().string,description:r().oneOfType([r().string,r().node]),additionalDescription:r().oneOfType([r().string,r().node]),errorText:r().string,helpText:r().string,learnMoreLink:r().shape(d.A.propTypes),dismissButton:r().shape(p.A.propTypes),ctaButton:r().shape(u.A.propTypes),svg:r().shape({desktop:r().elementType,mobile:r().elementType,verticalPosition:r().oneOf(["top","center","bottom"])}),footer:r().node};const f=m},8143:(e,t,i)=>{i.d(t,{VZ:()=>o,dc:()=>r,pH:()=>n,r0:()=>a});var s=i(84024);function n(e){try{return new URL(e).pathname}catch{}return null}function o(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,s.m)(e))return e;if(e.length<=t)return e;const i=new URL(e),n=e.replace(i.origin,"");if(n.length<t)return n;const o=n.length-Math.floor(t)+1;return"…"+n.substr(o)}},8420:(e,t,i)=>{i.d(t,{A:()=>p});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(52684),l=i(13606),c=i(82871),g=i(49383),d=i(85149),u=i(62540);function ModalDialog({className:e="",dialogActive:t=!1,handleCancel:i=null,onOpen:s=null,onClose:n=null,title:o=null,provides:p,handleConfirm:h,subtitle:m,confirmButton:f=null,dependentModules:k,danger:_=!1,inProgress:y=!1,small:v=!1,medium:x=!1,buttonLink:b=null}){const S=`googlesitekit-dialog-description-${(0,a.A)(ModalDialog)}`,A=!(!p||!p.length);return(0,u.jsxs)(g.Dialog,{open:t,onOpen:s,onClose:n,"aria-describedby":A?S:void 0,tabIndex:"-1",className:r()(e,{"googlesitekit-dialog-sm":v,"googlesitekit-dialog-md":x}),children:[(0,u.jsxs)(g.DialogTitle,{children:[_&&(0,u.jsx)(d.A,{width:28,height:28}),o]}),m?(0,u.jsx)("p",{className:"mdc-dialog__lead",children:m}):[],(0,u.jsxs)(g.DialogContent,{children:[A&&(0,u.jsx)("section",{id:S,className:"mdc-dialog__provides",children:(0,u.jsx)("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive",children:p.map(e=>(0,u.jsx)("li",{className:"mdc-list-item",children:(0,u.jsx)("span",{className:"mdc-list-item__text",children:e})},e))})}),k&&(0,u.jsx)("p",{className:"mdc-dialog__dependencies",children:(0,l.A)((0,c.sprintf)(/* translators: %s is replaced with the dependent modules. */ /* translators: %s is replaced with the dependent modules. */
(0,c.__)("<strong>Note:</strong> %s","google-site-kit"),k),{strong:(0,u.jsx)("strong",{})})})]}),(0,u.jsxs)(g.DialogFooter,{children:[(0,u.jsx)(g.Button,{className:"mdc-dialog__cancel-button",onClick:i,disabled:y,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),b?(0,u.jsx)(g.Button,{href:b,onClick:h,target:"_blank",danger:_,children:f}):(0,u.jsx)(g.SpinnerButton,{onClick:h,danger:_,disabled:y,isSaving:y,children:f||(0,c.__)("Disconnect","google-site-kit")})]})]})}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:n().string,dialogActive:n().bool,handleDialog:n().func,handleConfirm:n().func.isRequired,onOpen:n().func,onClose:n().func,title:n().string,confirmButton:n().string,danger:n().bool,small:n().bool,medium:n().bool,buttonLink:n().string};const p=ModalDialog},10804:(e,t,i)=>{i.d(t,{A:()=>AdBlockerWarning});var s,n=i(62688),o=i.n(n),r=i(50539),a=i(93896),l=i(37226),c=i(82871),g=i(13606),d=i(20898),u=i(63696);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},p.apply(null,arguments)}const h=e=>u.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 14"},e),s||(s=u.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M4.5 1.5H3a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2V9M7 1.5h5v5M5 8.5 11.5 2"})));var m=i(80035),f=i(62540);function AdBlockerWarningMessage({getHelpLink:e="",warningMessage:t=null}){return t?(0,f.jsx)(m.A,{className:"googlesitekit-notice--small",type:m.A.TYPES.WARNING,description:(0,g.A)((0,c.sprintf)(/* translators: 1: The warning message. 2: "Get help" text. */ /* translators: 1: The warning message. 2: "Get help" text. */
(0,c.__)("%1$s. <Link><Strong>%2$s</Strong></Link>","google-site-kit"),t,(0,c.__)("Get help","google-site-kit")),{Link:(0,f.jsx)(d.A,{href:e,trailingIcon:(0,f.jsx)(h,{width:15,height:15}),external:!0,hideExternalIndicator:!0}),Strong:(0,f.jsx)("strong",{})}),hideIcon:!0}):null}function AdBlockerWarning({moduleSlug:e,className:t}){const i=(0,r.useSelect)(t=>t(l.i).getModuleStoreName(e)),s=(0,r.useSelect)(e=>e(i)?.getAdBlockerWarningMessage()),n=(0,r.useSelect)(t=>t(a.O4).getDocumentationLinkURL(`${e}-ad-blocker-detected`));return(0,f.jsx)(AdBlockerWarningMessage,{className:t,getHelpLink:n,warningMessage:s})}AdBlockerWarningMessage.propTypes={getHelpLink:o().string,warningMessage:o().string},AdBlockerWarning.propTypes={className:o().string,moduleSlug:o().string.isRequired}},11106:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(63696),n=i(65214);const o=(0,s.createContext)(n.t)},12108:(e,t,i)=>{i.d(t,{YJ:()=>o,Eq:()=>r});var s=i(32947),n=i(17243);function o(e,t){const s=document.querySelector(e);if(!s)return 0;const n=s.getBoundingClientRect().top,o=r(t);return n+i.g.scrollY-o}function r(e){let t=function(e){let t=0;const o=document.querySelector(".googlesitekit-header");t=o&&"sticky"===i.g.getComputedStyle(o).position?function(e){const t=document.querySelector(".googlesitekit-header");if(t){if(e===s.mp)return t.offsetHeight;const i=t.getBoundingClientRect().bottom;return i<0?0:i}return 0}(e):function(e){const t=document.querySelector("#wpadminbar");if(t&&e!==s.mp)return t.offsetHeight;return 0}(e);return t=function(e){return(0,n.isFinite)(e)?e:0}(t),t<0?0:t}(e);const o=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(o).reduce((e,t)=>e+t.offsetHeight,0),t}},12701:(e,t,i)=>{i.d(t,{A:()=>Root});var s=i(62688),n=i.n(s),o=i(44010),r=i(77105),a=i(63696),l=i(50539),c=i.n(l),g=i(82871),d=i(54312),u=i(61991),p=i(90007),h=i(12850),m=i(62540);class ErrorHandler extends a.Component{constructor(e){super(e),this.state={error:null,info:null,copied:!1}}componentDidCatch(e,t){i.g.console.error("Caught an error:",e,t),this.setState({error:e,info:t}),(0,h.sx)("react_error",`handle_${this.context||"unknown"}_error`,`${e?.message}\n${t?.componentStack}`.slice(0,500))}render(){const{children:e}=this.props,{error:t,info:i}=this.state;return t?(0,m.jsx)(p.A,{notificationID:"googlesitekit-error",className:"googlesitekit-error-handler",type:"error",title:(0,g.__)("Site Kit encountered an error","google-site-kit"),description:(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)(d.A,{message:t.message,componentStack:i.componentStack}),(0,m.jsxs)("pre",{className:"googlesitekit-overflow-auto",children:[t.message,i.componentStack]})]})}):e}}ErrorHandler.contextType=u.Ay,ErrorHandler.propTypes={children:n().node.isRequired};const f=ErrorHandler;var k=i(11106);const{Consumer:_,Provider:y}=k.A,v=y;var x=i(65214),b=i(4445),S=i(78340),A=i(45472),j=i(58116),N=i(64067),I=i(14007);const w=function AuthenticatedPermissionsModal(){const e=(0,l.useRegistry)(),t=(0,l.useSelect)(e=>e(j.oR).getPermissionScopeError()),s=(0,l.useSelect)(e=>e(j.oR).getUnsatisfiedScopes()),n=(0,l.useSelect)(e=>e(j.oR).getConnectURL({additionalScopes:t?.data?.scopes,redirectURL:t?.data?.redirectURL||i.g.location.href,errorRedirectURL:t?.data?.errorRedirectURL})),{clearPermissionScopeError:o}=(0,l.useDispatch)(j.oR),{navigateTo:r}=(0,l.useDispatch)(A.M),{setValues:c}=(0,l.useDispatch)(S.s),d=(0,a.useCallback)(()=>{o()},[o]),u=(0,a.useCallback)(async()=>{c(j.$8,{permissionsError:t}),await(0,N.mR)(e),r(n)},[e,n,r,t,c]);return(0,a.useEffect)(()=>{!async function(){t?.data?.skipModal&&t?.data?.scopes?.length&&await u()}()},[u,t]),t?t?.data?.scopes?.length?t?.data?.skipModal||s&&t?.data?.scopes.every(e=>s.includes(e))?null:(0,m.jsx)(I.A,{children:(0,m.jsx)(b.A,{title:(0,g.__)("Additional Permissions Required","google-site-kit"),subtitle:t.message,confirmButton:(0,g.__)("Proceed","google-site-kit"),handleConfirm:u,handleCancel:d,onClose:d,dialogActive:!0,medium:!0})}):(i.g.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",t),null):null};const E=function PermissionsModal(){return(0,l.useSelect)(e=>e(j.oR).isAuthenticated())?(0,m.jsx)(w,{}):null};const T=function RestoreSnapshots({children:e}){const t=(0,l.useRegistry)(),[i,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{i||(async()=>{await(0,N.P9)(t),s(!0)})()},[t,i]),i?e:null};var M=i(15844),C=i(77766),D=i(39771);function FeatureTours(){const e=(0,C.A)(),{triggerTourForView:t}=(0,l.useDispatch)(j.oR);(0,M.A)(()=>{t(e)});const s=(0,l.useSelect)(e=>e(j.oR).getCurrentTour());return(0,a.useEffect)(()=>{if(!s)return()=>{};const e=document.getElementById("js-googlesitekit-main-dashboard");if(!e)return()=>{};const t=new ResizeObserver(()=>{i.g.dispatchEvent(new Event("resize"))});return t.observe(e),()=>{t.disconnect()}},[s]),s?(0,m.jsx)(D.Ay,{tourID:s.slug,steps:s.steps,gaEventCategory:s.gaEventCategory,callback:s.callback}):null}var R=i(68869),O=i(22821);function Root({children:e,registry:t,viewContext:i=null}){const s=o.D,[n]=(0,a.useState)({key:"Root",value:!0});return(0,m.jsx)(a.StrictMode,{children:(0,m.jsx)(R.Ay,{value:n,children:(0,m.jsx)(l.RegistryProvider,{value:t,children:(0,m.jsx)(v,{value:x.t,children:(0,m.jsx)(u.Kq,{value:i,children:(0,m.jsx)(r.A,{theme:s(),children:(0,m.jsxs)(f,{children:[(0,m.jsxs)(T,{children:[e,i&&(0,m.jsx)(FeatureTours,{})]}),(0,O.A)(i)&&(0,m.jsx)(E,{})]})})})})})})})}Root.propTypes={children:n().node,registry:n().object,viewContext:n().string.isRequired},Root.defaultProps={registry:c()}},12755:(e,t,i)=>{i.d(t,{A:()=>Qe});var s,n,o=i(62688),r=i.n(o),a=i(4452),l=i.n(a),c=i(41814),g=i(82871),d=i(63696),u=i(50539),p=i(99455),h=i(21795),m=i(31589),f=i(19266),k=i(49383),_=i(8420),y=i(12850),v=i(21134),x=i(14007),b=i(58116),S=i(62540);function Details(){const e=(0,u.useSelect)(e=>e(b.oR).getPicture()),t=(0,u.useSelect)(e=>e(b.oR).getFullName()),i=(0,u.useSelect)(e=>e(b.oR).getEmail());return(0,S.jsxs)("div",{className:"googlesitekit-user-menu__details","aria-label":(0,g.__)("Google account","google-site-kit"),children:[!!e&&(0,S.jsx)("img",{className:"googlesitekit-user-menu__details-avatar",src:e,alt:""}),(0,S.jsxs)("div",{className:"googlesitekit-user-menu__details-info",children:[(0,S.jsx)("p",{className:"googlesitekit-user-menu__details-info__name",children:t}),(0,S.jsx)("p",{className:"googlesitekit-user-menu__details-info__email","aria-label":(0,g.__)("Email","google-site-kit"),children:i})]})]})}function Item({icon:e,label:t}){return(0,S.jsxs)("div",{className:"googlesitekit-user-menu__item",children:[(0,S.jsx)("div",{className:"googlesitekit-user-menu__item-icon",children:e}),(0,S.jsx)("span",{className:"googlesitekit-user-menu__item-label",children:t})]})}function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},A.apply(null,arguments)}Item.propTypes={icon:r().node,label:r().string};const j=e=>d.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=d.createElement("path",{stroke:"#6C726E",strokeLinecap:"round",strokeWidth:1.7,d:"m11.775 5.701.58-.58a4.547 4.547 0 0 1 6.43 0v0a4.547 4.547 0 0 1 0 6.43l-.598.599m-12.504-.357-.562.562a4.547 4.547 0 0 0 0 6.43v0a4.547 4.547 0 0 0 6.43 0l.58-.58"})),n||(n=d.createElement("path",{stroke:"#6C726E",strokeLinecap:"round",strokeWidth:1.5,d:"m8.543 15.363 1.118-1.118m5.684-5.684L14.226 9.68M5.107 5.134l13.664 13.664"})));var N,I,w,E,T;function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},M.apply(null,arguments)}const C=e=>d.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),N||(N=d.createElement("rect",{width:18,height:13,x:3,y:4,stroke:"#6C726E",strokeWidth:1.5,rx:2})),I||(I=d.createElement("path",{fill:"#6C726E",d:"M9 17h6v3H9z"})),w||(w=d.createElement("path",{stroke:"#6C726E",strokeLinecap:"round",strokeWidth:1.5,d:"M10 9h7M10 12h7"})),E||(E=d.createElement("circle",{cx:7,cy:9,r:1,fill:"#6C726E"})),T||(T=d.createElement("circle",{cx:7,cy:12,r:1,fill:"#6C726E"})));var D,R,O;function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},L.apply(null,arguments)}const z=e=>d.createElement("svg",L({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),D||(D=d.createElement("rect",{width:18,height:12,x:3,y:6,stroke:"#6C726E",strokeWidth:1.5,rx:2})),R||(R=d.createElement("path",{stroke:"#6C726E",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m3.566 7.5 7.086 7.086a2 2 0 0 0 2.829 0l7.019-7.02"})),O||(O=d.createElement("path",{stroke:"#6C726E",strokeLinecap:"round",strokeWidth:1.5,d:"M20.246 17.5 15.5 12.754M4 17.5l4.746-4.746"})));var B=i(93896),P=i(7081),H=i(45472),U=i(72455),G=i(3288),Y=i(99235),F=i(77766),V=i(27333),W=i(6464);function UserMenu(){const e=(0,W.i)("proactiveUserEngagement"),t=(0,u.useSelect)(e=>e(B.O4).getProxyPermissionsURL()),i=(0,u.useSelect)(e=>e(b.oR).getEmail()),s=(0,u.useSelect)(e=>e(b.oR).getPicture()),n=(0,u.useSelect)(e=>e(b.oR).getFullName()),o=(0,u.useSelect)(e=>e(B.O4).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})),r=(0,V.A)(U.CV,"isAutoCreatingCustomDimensionsForAudience"),[a,l]=(0,d.useState)(!1),[c,p]=(0,d.useState)(!1),A=(0,d.useRef)(),N=(0,d.useRef)(),I=(0,F.A)(),{navigateTo:w}=(0,u.useDispatch)(H.M);(0,h.A)(A,()=>p(!1)),(0,Y.l)([f._f,f.wn],A,()=>{p(!1),N.current?.focus()});const E=(0,d.useCallback)(()=>{l(!1),p(!1)},[l,p]),T=(0,d.useCallback)(e=>{f._f===e.keyCode&&E()},[E]);(0,m.A)("keyup",T);const M=(0,d.useCallback)(()=>{c||(0,y.sx)(`${I}_headerbar`,"open_usermenu"),p(!c)},[c,I]),D=(0,d.useCallback)(()=>{l(!a),p(!1)},[a]),{setValue:R}=(0,u.useDispatch)(P.n),O=(0,d.useCallback)(async(e,i)=>{const{detail:{item:s}}=i;switch(s?.id){case"manage-sites":t&&(await(0,y.sx)(`${I}_headerbar_usermenu`,"manage_sites"),w(t));break;case"disconnect":D();break;case"manage-email-reports":R(G.Q,!0);break;default:M()}},[t,M,D,w,R,I]),L=(0,d.useCallback)(async()=>{l(!1),await(0,v.IL)(),await(0,y.sx)(`${I}_headerbar_usermenu`,"disconnect_user"),w(o)},[o,w,I]);if(!i)return null;let Z;return n&&i&&(Z=(0,g.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,g.__)("Google Account for %1$s (Email: %2$s)","google-site-kit"),n,i)),n&&!i&&(Z=(0,g.sprintf)(/* translators: Account info text. 1: User's (full) name. */ /* translators: Account info text. 1: User's (full) name. */
(0,g.__)("Google Account for %1$s","google-site-kit"),n)),!n&&i&&(Z=(0,g.sprintf)(/* translators: Account info text. 1: User's email address. */ /* translators: Account info text. 1: User's email address. */
(0,g.__)("Google Account (Email: %1$s)","google-site-kit"),i)),(0,S.jsxs)(d.Fragment,{children:[(0,S.jsxs)("div",{ref:A,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,S.jsx)(k.Button,{disabled:r,ref:N,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:M,icon:!!s&&(0,S.jsx)("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true",children:(0,S.jsx)("img",{className:"mdc-button__icon--image",src:s,alt:(0,g.__)("User Avatar","google-site-kit")})}),"aria-haspopup":"menu","aria-expanded":c,"aria-controls":"user-menu","aria-label":r?void 0:(0,g.__)("Account","google-site-kit"),tooltipEnterDelayInMS:500,customizedTooltip:r?null:(0,S.jsxs)("span",{"aria-label":Z,children:[(0,S.jsx)("strong",{children:(0,g.__)("Google Account","google-site-kit")}),(0,S.jsx)("br",{}),(0,S.jsx)("br",{}),n,n&&(0,S.jsx)("br",{}),i]}),text:!0,tooltip:!0}),(0,S.jsxs)(k.Menu,{className:"googlesitekit-user-menu",menuOpen:c,onSelected:O,id:"user-menu",children:[(0,S.jsx)("li",{children:(0,S.jsx)(Details,{})}),e&&(0,S.jsx)("li",{id:"manage-email-reports",className:"mdc-list-item",role:"menuitem",children:(0,S.jsx)(Item,{icon:(0,S.jsx)(z,{width:"24"}),label:(0,g.__)("Manage email reports","google-site-kit")})}),!!t&&(0,S.jsx)("li",{id:"manage-sites",className:"mdc-list-item",role:"menuitem",children:(0,S.jsx)(Item,{icon:(0,S.jsx)(C,{width:"24"}),label:(0,g.__)("Manage Sites","google-site-kit")})}),(0,S.jsx)("li",{id:"disconnect",className:"mdc-list-item",role:"menuitem",children:(0,S.jsx)(Item,{icon:(0,S.jsx)(j,{width:"24"}),label:(0,g.__)("Disconnect","google-site-kit")})})]})]}),(0,S.jsx)(x.A,{children:(0,S.jsx)(_.A,{dialogActive:a,handleConfirm:L,handleCancel:E,onClose:E,title:(0,g.__)("Disconnect","google-site-kit"),subtitle:(0,g.__)("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,g.__)("Disconnect","google-site-kit"),danger:!0,small:!0})})]})}var Z=i(55527),$=i(35323),Q=i(29898),X=i(15844),J=i(39525),q=i(30521),K=i(24558),ee=i(73874),te=i(12108),ie=i(32947);var se=i(44949),ne=i(86134);const oe={[ee.Oo]:{[K.SH]:se.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,[K.OT]:se.CONTEXT_MAIN_DASHBOARD_TRAFFIC,[K.en]:se.CONTEXT_MAIN_DASHBOARD_CONTENT,[K.Ej]:se.CONTEXT_MAIN_DASHBOARD_SPEED,[K.Gw]:se.CONTEXT_MAIN_DASHBOARD_MONETIZATION},[ee.oE]:{[K.OT]:se.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,[K.en]:se.CONTEXT_ENTITY_DASHBOARD_CONTENT,[K.Ej]:se.CONTEXT_ENTITY_DASHBOARD_SPEED,[K.Gw]:se.CONTEXT_ENTITY_DASHBOARD_MONETIZATION}};var re;function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},ae.apply(null,arguments)}const le=e=>d.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 18"},e),re||(re=d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M18 16V2c0-1.1-1-2-2.222-2H2.222C1 0 0 .9 0 2v14c0 1.1 1 2 2.222 2h13.556C17 18 18 17.1 18 16M9 7h5V5H9zm7-5H2v14h14zM4 4h4v4H4zm10 7H9v2h5zM4 10h4v4H4z",clipRule:"evenodd"})));var ce,ge,de,ue;function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},pe.apply(null,arguments)}const he=e=>d.createElement("svg",pe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 12"},e),ce||(ce=d.createElement("rect",{width:5,height:5,x:.5,fill:"currentColor",rx:1})),ge||(ge=d.createElement("rect",{width:5,height:5,x:7.5,fill:"currentColor",rx:1})),de||(de=d.createElement("rect",{width:5,height:5,x:.5,y:7,fill:"currentColor",rx:1})),ue||(ue=d.createElement("rect",{width:5,height:5,x:7.5,y:7,fill:"currentColor",rx:1})));var me;function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},fe.apply(null,arguments)}const ke=e=>d.createElement("svg",fe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 23 12"},e),me||(me=d.createElement("path",{fill:"currentColor",d:"M16.1 0v2h2.967l-5.946 5.17-4.6-4L0 10.59 1.622 12l6.9-6 4.6 4L20.7 3.42V6H23V0z"})));var _e,ye;function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},ve.apply(null,arguments)}const xe=e=>d.createElement("svg",ve({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 16"},e),_e||(_e=d.createElement("path",{fill:"currentColor",d:"m18.378 4.543-1.232 1.854a8.02 8.02 0 0 1-.22 7.598H3.043A8.02 8.02 0 0 1 4.154 4.49 8.01 8.01 0 0 1 13.57 2.82l1.853-1.233A10.01 10.01 0 0 0 3.117 2.758a10.026 10.026 0 0 0-1.797 12.24A2 2 0 0 0 3.043 16h13.873a2 2 0 0 0 1.742-1.002 10.03 10.03 0 0 0-.27-10.465z"})),ye||(ye=d.createElement("path",{fill:"currentColor",d:"M8.572 11.399a2.003 2.003 0 0 0 2.835 0l5.669-8.51-8.504 5.673a2.005 2.005 0 0 0 0 2.837"})));var be;function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Se.apply(null,arguments)}const Ae=e=>d.createElement("svg",Se({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 16"},e),be||(be=d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 0h3.971v16H7zM0 8h4v8H0zm18-3h-4v11h4z",clipRule:"evenodd"})));function Navigation(){const e=(0,ee.Ay)(),t=(0,d.useRef)(),s=(0,F.A)(),n=function(){const e=(0,ee.Ay)(),t=(0,$.A)();return(0,u.useSelect)(i=>{const s=t?i(b.oR).getViewableModules():null,n=i(b.oR).isKeyMetricsWidgetHidden(),o={modules:s||void 0};return Object.keys(oe[e]).reduce((t,s)=>(s===K.SH&&n||i(ne.aO).isWidgetContextActive(oe[e][s],o)&&t.push(s),t),[])})}(),{calculateScrollPosition:o,defaultChipID:r,findClosestSection:a,isValidChipID:c,scrollToChip:p,updateURLHash:h}=function({visibleSections:e}){const t=(0,ie.dv)(),s=(0,$.A)(),n=(0,d.useCallback)(()=>e.includes(K.SH)?K.SH:s?e[0]||"":K.OT,[s,e])(),o=(0,d.useCallback)(t=>e.includes(t),[e]),r=(0,d.useCallback)(e=>{i.g.history.replaceState({},"",`#${e}`)},[]),a=(0,d.useCallback)(e=>e!==n?(0,te.YJ)(`#${e}`,t):0,[t,n]),l=(0,d.useCallback)(e=>{i.g.scrollTo({top:a(e,t,n),behavior:"smooth"})},[t,a,n]),c=(0,d.useCallback)(t=>{var i;const s=document.querySelector(".googlesitekit-entity-header")?.getBoundingClientRect?.()?.bottom,{bottom:o}=null!==(i=t?.current?.getBoundingClientRect?.())&&void 0!==i?i:{};let r,a=n;for(const t of e){const e=document.getElementById(t);if(!e)continue;const i=e.getBoundingClientRect().top-20-(s||o||0);i<0&&(void 0===r||r<i)&&(r=i,a=t)}return a},[n,e]);return{calculateScrollPosition:a,defaultChipID:n,findClosestSection:c,isValidChipID:o,scrollToChip:l,updateURLHash:r}}({visibleSections:n}),f=i.g.location.hash?.substring(1),[k,_]=(0,d.useState)(f||void 0),[v,x]=(0,d.useState)(!1),[A,j]=(0,d.useState)(f),{setValue:N}=(0,u.useDispatch)(P.n),I=(0,d.useCallback)(({target:e})=>{const t=e.closest(".mdc-chip"),i=t?.dataset?.contextId;h(i),_(i),p(i),(0,y.sx)(`${s}_navigation`,"tab_select",i),setTimeout(()=>{N(P.F,i)},50)},[p,N,h,s]),w=(0,d.useCallback)(()=>{if(!t?.current)return;const{top:e}=t?.current?.getBoundingClientRect();if(0===i.g.scrollY)x(!1);else{const t=document.querySelector(".googlesitekit-header")?.getBoundingClientRect?.()?.bottom;x(e===t)}},[]),E=(0,d.useCallback)(e=>{function n(e){N(P.F,void 0),j(e),_(void 0)}const o=a(t);if(k)k===o&&n(o);else{const{hash:t}=i.g.location;o!==t?.substring(1)&&(e&&(0,y.sx)(`${s}_navigation`,"tab_scroll",o),h(o),n(o))}},[a,k,N,h,s]);(0,X.A)(()=>{if(!f)return j(r),void setTimeout(()=>h(r));const e=c(f)?f:r;j(e),N(P.F,e),setTimeout(()=>{const t=o(e);i.g.scrollY!==t?p(e):N(P.F,void 0)},50)});const T=(0,d.useCallback)(e=>{w(),E(e)},[E,w]),M=(0,q.A)(T,150);(0,m.A)("scroll",M);const C={[K.SH]:{label:(0,g.__)("Key metrics","google-site-kit"),icon:(0,S.jsx)(he,{width:"18",height:"16"})},[K.OT]:{label:(0,g.__)("Traffic","google-site-kit"),icon:(0,S.jsx)(Ae,{width:"18",height:"16"})},[K.en]:{label:(0,g.__)("Content","google-site-kit"),icon:(0,S.jsx)(le,{width:"18",height:"18"})},[K.Ej]:{label:(0,g.__)("Speed","google-site-kit"),icon:(0,S.jsx)(xe,{width:"20",height:"16"})},[K.Gw]:{label:(0,g.__)("Monetization","google-site-kit"),icon:(0,S.jsx)(ke,{width:"18",height:"16"})}};return(0,S.jsx)("nav",{className:l()("mdc-chip-set","googlesitekit-navigation",`googlesitekit-navigation--${e}`,{"googlesitekit-navigation--is-sticky":v}),ref:t,children:n.map(e=>(0,S.jsx)(J.Chip,{id:e,label:C[e].label,leadingIcon:C[e].icon,onClick:I,selected:A===e,"data-context-id":e},e))})}function DashboardNavigation(){const e=(0,$.A)(),t=(0,u.useSelect)(t=>e?t(b.oR).getViewableModules():null),i=(0,u.useSelect)(e=>e(b.oR).getKeyMetrics());return(0,S.jsx)(Q.A,{loading:void 0===t||void 0===i,width:"100%",smallHeight:"59px",height:"71px",children:(0,S.jsx)(Navigation,{})})}var je,Ne;function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Ie.apply(null,arguments)}const we=e=>d.createElement("svg",Ie({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),je||(je=d.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),Ne||(Ne=d.createElement("path",{fill:"currentColor",d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"})));var Ee=i(20898),Te=i(59323),Me=i(8143);const Ce=function EntityHeader(){const e=(0,F.A)(),t=(0,ee.Ay)(),s=(0,u.useSelect)(e=>e(B.O4).getCurrentEntityTitle()),n=(0,u.useSelect)(e=>e(B.O4).getCurrentEntityURL()),o=(0,d.useRef)(),[r,a]=(0,d.useState)(n),l=(0,d.useCallback)(()=>{if(!o.current)return;const e=o.current.clientWidth-40,t=i.g.getComputedStyle(o.current.lastChild,null).getPropertyValue("font-size"),s=2*e/parseFloat(t);a((0,Me.r0)(n,s))},[n]),c=(0,q.A)(l,150);(0,m.A)("resize",c);const{navigateTo:p}=(0,u.useDispatch)(H.M),h=(0,u.useSelect)(e=>e(B.O4).getAdminURL("googlesitekit-dashboard")),f=(0,d.useCallback)(()=>{(0,y.sx)(`${e}_navigation`,"return_to_dashboard"),p(h)},[h,p,e]);return ee.oE!==t||null===n||null===s?null:(0,S.jsxs)("div",{className:"googlesitekit-entity-header",children:[(0,S.jsx)("div",{className:"googlesitekit-entity-header__back",children:(0,S.jsx)(k.Button,{icon:(0,S.jsx)(we,{width:24,height:24}),"aria-label":(0,g.__)("Back to dashboard","google-site-kit"),onClick:f,text:!0,tertiary:!0,children:(0,g.__)("Back to dashboard","google-site-kit")})}),(0,S.jsxs)("div",{ref:o,className:"googlesitekit-entity-header__details",children:[(0,S.jsx)(Te.A,{children:s}),(0,S.jsx)(Ee.A,{href:n,"aria-label":n,secondary:!0,external:!0,children:r})]})]})};var De;function Re(){return Re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Re.apply(null,arguments)}const Oe=e=>d.createElement("svg",Re({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 10"},e),De||(De=d.createElement("path",{fill:"currentColor",d:"M8 1.333c2.756 0 5.214 1.42 6.415 3.667-1.2 2.247-3.659 3.667-6.415 3.667S2.785 7.247 1.585 5C2.785 2.753 5.244 1.333 8 1.333M8 0C4.364 0 1.258 2.073 0 5c1.258 2.927 4.364 5 8 5s6.742-2.073 8-5c-1.258-2.927-4.364-5-8-5m0 3.333c1.004 0 1.818.747 1.818 1.667S9.004 6.667 8 6.667 6.182 5.92 6.182 5 6.996 3.333 8 3.333M8 2C6.196 2 4.727 3.347 4.727 5S6.197 8 8 8s3.273-1.347 3.273-3S9.803 2 8 2"})));var Le=i(13606);function Description(){const e=(0,F.A)(),t=(0,u.useSelect)(e=>e(b.oR).hasCapability(b.ej)),i=(0,u.useSelect)(e=>e(B.O4).getProxySetupURL()),s=(0,u.useSelect)(e=>e(B.O4).getDocumentationLinkURL("dashboard-sharing")),{navigateTo:n}=(0,u.useDispatch)(H.M),o=(0,d.useCallback)(async t=>{t.preventDefault(),await Promise.all([(0,v.SO)("start_user_setup",!0),(0,y.sx)(`${e}_headerbar_viewonly`,"start_user_setup",i?"proxy":"custom-oauth")]),n(i)},[i,n,e]),r=(0,d.useCallback)(()=>{(0,y.sx)(`${e}_headerbar_viewonly`,"click_learn_more_link")},[e]),a=t?(0,Le.A)((0,g.__)("You can see stats from all shared Google services, but you can't make any changes. <strong>Sign in to connect more services and control sharing access.</strong>","google-site-kit"),{strong:(0,S.jsx)("strong",{})}):(0,Le.A)((0,g.__)("You can see stats from all shared Google services, but you can't make any changes. <a>Learn more</a>","google-site-kit"),{a:(0,S.jsx)(Ee.A,{href:s,onClick:r,"aria-label":(0,g.__)("Learn more about dashboard sharing","google-site-kit"),external:!0})});return(0,S.jsxs)("li",{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__description",children:[(0,S.jsx)(Te.A,{children:a}),t&&(0,S.jsx)(k.Button,{onClick:o,children:(0,g._x)("Sign in with Google","Service name","google-site-kit")})]})}var ze=i(37226);function Service({module:e}){const t=(0,u.useSelect)(e=>e(b.oR).hasCapability(b.ej)),{name:i,owner:s}=(0,u.useSelect)(t=>t(ze.i).getModule(e)||{}),n=(0,u.useSelect)(t=>t(ze.i).getModuleIcon(e));return(0,S.jsxs)("li",{className:"googlesitekit-view-only-menu__service",children:[(0,S.jsx)("span",{className:"googlesitekit-view-only-menu__service--icon",children:(0,S.jsx)(n,{height:26})}),(0,S.jsx)("span",{className:"googlesitekit-view-only-menu__service--name",children:i}),t&&s?.login&&(0,S.jsx)("span",{className:"googlesitekit-view-only-menu__service--owner",children:(0,Le.A)((0,g.sprintf)(/* translators: %s: module owner Google Account email address */ /* translators: %s: module owner Google Account email address */
(0,g.__)("Shared by <strong>%s</strong>","google-site-kit"),s.login),{strong:(0,S.jsx)("strong",{title:s.login})})})]})}Service.propTypes={module:r().string.isRequired};var Be=i(15167);function SharedServices(){const e=(0,u.useSelect)(e=>e(b.oR).getViewableModules());return void 0===e?null:(0,S.jsxs)("li",{className:"googlesitekit-view-only-menu__list-item",children:[(0,S.jsx)(Be.A,{as:"h4",size:"large",type:"title",children:(0,g.__)("Shared services","google-site-kit")}),(0,S.jsx)("ul",{children:e.map(e=>(0,S.jsx)(Service,{module:e},e))})]})}var Pe=i(82167);function Tracking(){const e=(0,F.A)();return(0,S.jsxs)("li",{className:"googlesitekit-view-only-menu__list-item",children:[(0,S.jsx)(Te.A,{children:(0,Le.A)((0,g.__)("Thanks for using Site Kit!<br />Help us make it even better","google-site-kit"),{br:(0,S.jsx)("br",{})})}),(0,S.jsx)(Pe.A,{trackEventCategory:`${e}_headerbar_viewonly`,alignCheckboxLeft:!0})]})}var He=i(74595);function ManageEmailReports(){const{setValue:e}=(0,He.wA)(P.n);return(0,S.jsxs)(d.Fragment,{children:[(0,S.jsx)("li",{className:"mdc-list-divider",role:"separator"}),(0,S.jsx)("li",{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__email-reporting",children:(0,S.jsx)("ul",{className:"googlesitekit-view-only-menu",children:(0,S.jsx)("li",{className:"googlesitekit-view-only-menu__email-reporting-item",children:(0,S.jsx)(k.Button,{onClick:()=>e(G.Q,!0),icon:(0,S.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--icon",children:(0,S.jsx)(z,{width:"24"})}),tertiary:!0,children:(0,S.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--name",children:(0,g.__)("Manage email reports","google-site-kit")})})})})})]})}function ViewOnlyMenu(){const e=(0,W.i)("proactiveUserEngagement"),[t,i]=(0,d.useState)(!1),s=(0,d.useRef)(),n=(0,F.A)();(0,h.A)(s,()=>i(!1)),(0,Y.l)([f._f,f.wn],s,()=>i(!1));const o=(0,d.useCallback)(()=>{t||(0,y.sx)(`${n}_headerbar`,"open_viewonly"),i(!t)},[t,n]),r=(0,u.useSelect)(e=>e(b.oR).hasCapability(b.ej));return(0,S.jsxs)("div",{ref:s,className:l()("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,S.jsx)(k.Button,{className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--phone googlesitekit-button-icon",onClick:o,icon:(0,S.jsx)("span",{className:"mdc-button__icon","aria-hidden":"true",children:(0,S.jsx)(Oe,{className:"mdc-button__icon--image"})}),"aria-haspopup":"menu","aria-expanded":t,"aria-controls":"view-only-menu","aria-label":(0,g.__)("View only","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:(0,g.__)("View only","google-site-kit")}),(0,S.jsxs)(k.Menu,{menuOpen:t,onSelected:o,id:"view-only-menu",nonInteractive:!0,children:[(0,S.jsx)(Description,{}),(0,S.jsx)(SharedServices,{}),e&&(0,S.jsx)(ManageEmailReports,{}),(0,S.jsx)("li",{className:"mdc-list-divider",role:"separator"}),(0,S.jsx)(Tracking,{})]})]})}var Ue=i(71423),Ge=i(53137),Ye=i(77513);function CoreSiteBannerNotification({id:e,...t}){const{dismissNotification:i,acceptNotification:s}=(0,u.useDispatch)(B.O4),n=(0,d.useCallback)(()=>{s(e)},[e,s]),o=(0,d.useCallback)(()=>{i(e)},[e,i]);return(0,S.jsx)(Ye.A,{onCTAClick:n,onDismissClick:o,...t,id:e})}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,g.__)("OK, Got it!","google-site-kit"),dismissible:!0,learnMoreLabel:"",learnMoreURL:""};const Fe=CoreSiteBannerNotification;const Ve=function CoreSiteBannerNotifications(){const e=(0,F.A)(),[t,i]=(0,d.useState)(!1),[s,n]=(0,d.useState)(!1),o=(0,d.useRef)(Date.now()),r=(0,u.useSelect)(e=>e(B.O4).isUsingProxy()&&!1===e(b.oR).areSurveysOnCooldown()?e(b.oR).getCurrentSurvey():null),[a,l]=(0,d.useState)([]),{registerNotification:c}=(0,u.useDispatch)(Ue.D),g=(0,u.useSelect)(e=>e(B.O4).getNotifications());return(0,d.useEffect)(()=>{const e=setTimeout(()=>{s||i(!0)},5e3);return()=>{clearTimeout(e)}},[s]),(0,d.useEffect)(()=>{Math.floor((Date.now()-o.current)/1e3)<5&&r&&n(!0)},[o,r,n]),(0,d.useEffect)(()=>{t&&!s&&g?.forEach(t=>{if(a.includes(t.id))return;const i={category:`${e}_remote-site-notification`,label:t.id};c(t.id,{Component:({Notification:e})=>(0,S.jsx)(e,{gaTrackingEventArgs:i,children:(0,S.jsx)(Fe,{...t,gaTrackingEventArgs:i})}),priority:t.priority,areaSlug:Ge.bI.HEADER,isDismissible:t.dismissible}),l(e=>(e.push(t.id),e))})},[e,s,g,c,a,t]),null};var We=i(90007),Ze=i(43569);function InternalServerError(){const e=(0,u.useSelect)(e=>e(B.O4).getInternalServerError());return e?(0,S.jsx)(Ze.A,{id:"internal-server-error",children:(0,S.jsx)(We.A,{notificationID:"internal-server-error",type:We.Q.ERROR,title:e.title,description:e.description})}):null}function LegacyNotifications(){const e=(0,$.A)(),t=(0,ee.Ay)(),i=(0,u.useSelect)(e=>e(b.oR).isAuthenticated());return(0,S.jsxs)(d.Fragment,{children:[(0,S.jsx)(InternalServerError,{}),!e&&t===ee.Oo&&i&&(0,S.jsx)(Ve,{})]})}var $e=i(74995);function Header({children:e,subHeader:t,showNavigation:i}){const s=!!(0,ee.Ay)(),n=(0,$.A)();!function(){const e=(0,F.A)(),t=(0,u.useSelect)(e=>e(B.O4).isUsingProxy()),i=(0,u.useSelect)(e=>e(B.O4).getSetupErrorMessage());(0,d.useEffect)(()=>{i||void 0===t||async function(){const i=await(0,v.Gq)("start_user_setup"),s=await(0,v.Gq)("start_site_setup");i.cacheHit&&(await(0,v.LD)("start_user_setup"),(0,y.sx)(`${e}_setup`,"complete_user_setup",t?"proxy":"custom-oauth")),s.cacheHit&&(await(0,v.LD)("start_site_setup"),(0,y.sx)(`${e}_setup`,"complete_site_setup",t?"proxy":"custom-oauth"))}()},[e,t,i])}();const o=(0,u.useSelect)(e=>e(B.O4).getAdminURL("googlesitekit-dashboard")),r=(0,u.useSelect)(e=>e(b.oR).isAuthenticated()),[a,h]=(0,c.A)({childList:!0}),m=!!h.target?.childElementCount;return(0,S.jsxs)(d.Fragment,{children:[(0,S.jsx)("header",{className:l()("googlesitekit-header",{"googlesitekit-header--has-subheader":m,"googlesitekit-header--has-navigation":i}),children:(0,S.jsx)(Z.xA,{children:(0,S.jsxs)(Z.fI,{children:[(0,S.jsx)(Z.fh,{smSize:1,mdSize:2,lgSize:4,className:"googlesitekit-header__logo",alignMiddle:!0,children:(0,S.jsx)(Ee.A,{"aria-label":(0,g.__)("Go to dashboard","google-site-kit"),className:"googlesitekit-header__logo-link",href:o,children:(0,S.jsx)(p.A,{})})}),(0,S.jsxs)(Z.fh,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0,children:[e,!r&&s&&n&&(0,S.jsx)(ViewOnlyMenu,{}),r&&!n&&(0,S.jsx)(UserMenu,{})]})]})})}),(0,S.jsx)("div",{className:"googlesitekit-subheader",ref:a,children:t}),i&&(0,S.jsx)(DashboardNavigation,{}),(0,S.jsx)(Ce,{}),(0,S.jsx)(LegacyNotifications,{}),(0,S.jsx)($e.A,{areaSlug:Ge.bI.HEADER})]})}Header.displayName="Header",Header.propTypes={children:r().node,subHeader:r().element,showNavigation:r().bool},Header.defaultProps={children:null,subHeader:null};const Qe=Header},12850:(e,t,i)=>{i.d(t,{tt:()=>j,Jg:()=>A,Gp:()=>b,GH:()=>x,r0:()=>S,Du:()=>N,Zf:()=>F,Cn:()=>B,G7:()=>f,vH:()=>m,N_:()=>D,zh:()=>W,mK:()=>g.mK,Ql:()=>I,vY:()=>z,sq:()=>E,VZ:()=>P.VZ,JK:()=>g.JK,IS:()=>M,pH:()=>P.pH,kf:()=>U,O5:()=>C,Qr:()=>w,x6:()=>H,K5:()=>g.K5,S_:()=>h,dc:()=>P.dc,Eo:()=>g.Eo,jq:()=>g.jq,DK:()=>Y.D,N9:()=>G,p9:()=>o.p,XH:()=>T,Zm:()=>l,sx:()=>n.sx,BI:()=>n.BI,CZ:()=>o.C,BG:()=>V});var s=i(17243),n=i(89318),o=i(82046),r=i(10523),a=i.n(r);function l(e){return a()(JSON.stringify(c(e)))}function c(e){const t={};return Object.keys(e).sort().forEach(i=>{let s=e[i];s&&"object"==typeof s&&!Array.isArray(s)&&(s=c(s)),t[i]=s}),t}var g=i(79829);function d(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function u(e){return`<p>${e.replace(/\n{2,}/g,"</p><p>")}</p>`}function p(e){return e.replace(/\n/gi,"<br>")}function h(e){const t=[d,u,p];let i=e;for(const e of t)i=e(i);return i}function m(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]}function f(e){const t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}var k=i(32091),_=i.n(k),y=i(82871);const v="Date param must construct to a valid date instance or be a valid date instance itself.",x="Invalid dateString parameter, it must be a string.",b='Invalid date range, it must be a string with the format "last-x-days".',S=60,A=60*S,j=24*A,N=7*j;function I(){function e(e){return(0,y.sprintf)(/* translators: %s: number of days */ /* translators: %s: number of days */
(0,y._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 w(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 E(e){_()((0,s.isDate)(e)&&!isNaN(e),v);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 T(e){_()(w(e),x);const[t,i,s]=e.split("-");return new Date(t,i-1,s)}function M(e,t){return E(D(e,t*j))}function C(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 D(e,t){_()(w(e)||(0,s.isDate)(e)&&!isNaN(e),x);const i=w(e)?Date.parse(e):e.getTime();return new Date(i-1e3*t)}var R=i(69743),O=i(94552),L=i(62540);function z(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:i=!1}=t;return(0,R.Ay)((0,L.jsx)(O.A,{direction:e>0?"up":"down",invertColor:i}))}function B(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var P=i(8143);function H(e){const t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function U(e){if("number"==typeof e)return!0;const t=(e||"").toString();return!!t&&!isNaN(t)}function G(e){return Array.isArray(e)?[...e].sort():e}var Y=i(2522);function F(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 s=(t-e)/e;return Number.isNaN(s)||!Number.isFinite(s)?null:s}function V(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function W(e){if(!e)return"";const t=e.replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(t)).replace(/(\\)/g,"");return(0,s.unescape)(t)}},14007:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(47209),n=i(62688),o=i.n(n),r=i(63696),a=i(78325);function Portal({children:e,slug:t}){const[i]=(0,r.useState)(document.createElement("div"));return(0,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:o().string,children:o().node},Portal.defaultProps={slug:"",children:null};const l=Portal},15167:(e,t,i)=>{i.d(t,{A:()=>Typography});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(3714),l=i(62540);function Typography({className:e,type:t,size:i,as:s="span",children:n,...o}){return(0,l.jsx)(s,{className:r()("googlesitekit-typography",e,{[`googlesitekit-typography--${t}`]:t&&a.tT.includes(t),[`googlesitekit-typography--${i}`]:i&&a.oJ.includes(i)}),...o,children:n})}Typography.propTypes={className:n().string,type:n().oneOf(a.tT),size:n().oneOf(a.oJ),as:n().oneOfType([n().string,n().elementType])}},15210:(e,t,i)=>{i.d(t,{O:()=>n});var s=i(31234);const n=i.n(s)()(i.g)},15577:(e,t,i)=>{i.d(t,{SO:()=>c});var s=i(55620),n=i(99123);const o={},r=void 0===i.g?null:i.g;function a(){return[i.g.innerWidth,i.g.innerHeight]}function l(e=o){const{fps:t,leading:i,initialWidth:l=0,initialHeight:c=0}=e,[g,d]=(0,s._)("undefined"==typeof document?[l,c]:a,t,i);function u(){return d(a)}return(0,n.A)(r,"resize",u),(0,n.A)(r,"orientationchange",u),g}function c(e){return l(e)[0]}},16834:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(62540);function VisuallyHidden({className:e,children:t,...i}){return t?(0,a.jsx)("span",{...i,className:r()("screen-reader-text",e),children:t}):null}VisuallyHidden.propTypes={className:n().string,children:n().node},VisuallyHidden.defaultProps={className:""};const l=VisuallyHidden},18418:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2 12"},e),s||(s=n.createElement("g",{fill:"currentColor",fillRule:"evenodd"},n.createElement("path",{d:"M0 0h2v7H0zM0 10h2v2H0z"}))))},19793:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1m4.806 8.592.592-.806-1.612-1.184-.592.806-3.89 5.296c-.166.226-.36.296-.512.296s-.346-.07-.512-.296l-1.474-2.007-.592-.806-1.612 1.184.592.806 1.474 2.007C9.191 15.6 9.971 16 10.792 16s1.6-.4 2.124-1.112z",clipRule:"evenodd"})))},20898:(e,t,i)=>{i.d(t,{A:()=>w});var s,n=i(4452),o=i.n(n),r=i(62688),a=i.n(r),l=i(39941),c=i(63696),g=i(82871);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},d.apply(null,arguments)}const u=e=>c.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),s||(s=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"currentColor"}),c.createElement("path",{fill:"#FFF",d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 0 0 .325.79.46.46 0 0 0 .325-.135l3.037-3.038a.46.46 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.46.46 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var p;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},h.apply(null,arguments)}const m=e=>c.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),p||(p=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"#FFF"}),c.createElement("path",{fill:"currentColor",d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 0 0 .325.79.46.46 0 0 0 .325-.135l3.037-3.038a.46.46 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.46.46 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var f;function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},k.apply(null,arguments)}const _=e=>c.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),f||(f=c.createElement("path",{d:"m12 20-8-8 8-8 1.425 1.4-5.6 5.6H20v2H7.825l5.6 5.6z"})));var y=i(83366),v=i(84385),x=i(62540);const b="BUTTON",S="BUTTON_DISABLED",A="EXTERNAL_LINK",j="LINK",N="ROUTER_LINK",I=(0,c.forwardRef)((e,t)=>{const{"aria-label":i,secondary:s=!1,arrow:n=!1,back:r=!1,caps:a=!1,children:c,className:d="",danger:p=!1,disabled:h=!1,external:f=!1,hideExternalIndicator:k=!1,href:I="",inverse:w=!1,noFlex:E=!1,onClick:T,small:M=!1,standalone:C=!1,linkButton:D=!1,to:R,leadingIcon:O,trailingIcon:L,...z}=e;const B=I||R||!T?R?N:f?A:j:h?S:b;const P=B===b||B===S?"button":B===N?l.N_:"a",H=function(){let e;return B===A&&(e=(0,g._x)("(opens in a new tab)","screen reader text","google-site-kit")),B===S&&(e=(0,g._x)("(disabled)","screen reader text","google-site-kit")),e?i?`${i} ${e}`:"string"==typeof c?`${c} ${e}`:void 0:i}();let U=O,G=L;return r&&(U=(0,x.jsx)(_,{width:14,height:14})),f&&!k&&(G=(0,x.jsx)(y.A,{width:14,height:14})),n&&!w&&(G=(0,x.jsx)(u,{width:14,height:14})),n&&w&&(G=(0,x.jsx)(m,{width:14,height:14})),(0,x.jsxs)(P,{"aria-label":H,className:o()("googlesitekit-cta-link",d,{"googlesitekit-cta-link--secondary":s,"googlesitekit-cta-link--inverse":w,"googlesitekit-cta-link--small":M,"googlesitekit-cta-link--caps":a,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":h,"googlesitekit-cta-link--standalone":C,"googlesitekit-cta-link--link-button":D,"googlesitekit-cta-link--no-flex":!!E}),disabled:h,href:B!==j&&B!==A||h?void 0:I,onClick:T,rel:B===A?"noopener noreferrer":void 0,ref:t,target:B===A?"_blank":void 0,to:R,...z,children:[!!U&&(0,x.jsx)(v.A,{marginRight:5,children:U}),(0,x.jsx)("span",{className:"googlesitekit-cta-link__contents",children:c}),!!G&&(0,x.jsx)(v.A,{marginLeft:5,children:G})]})});I.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=I},21134:(e,t,i)=>{i.d(t,{Gq:()=>d,IL:()=>m,LD:()=>p,SO:()=>u,a2:()=>n,xD:()=>h});var s=i(12850);const n="googlesitekit_",o=`${n}1.165.0_${i.g._googlesitekitBaseData.storagePrefix}_`,r=["sessionStorage","localStorage"];let a,l=[...r];async function c(e){const t=i.g[e];if(!t)return!1;try{const e="__storage_test__";return t.setItem(e,e),t.removeItem(e),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==t.length}}async function g(){if(void 0!==a)return a;for(const e of l)a||await c(e)&&(a=i.g[e]);return void 0===a&&(a=null),a}async function d(e){const t=await g();if(t){const i=t.getItem(`${o}${e}`);if(i){const e=JSON.parse(i),{timestamp:t,ttl:s,value:n,isError:o}=e;if(t&&(!s||Math.round(Date.now()/1e3)-t<s))return{cacheHit:!0,value:n,isError:o}}}return{cacheHit:!1,value:void 0}}async function u(e,t,{ttl:n=s.Jg,timestamp:r=Math.round(Date.now()/1e3),isError:a=!1}={}){const l=await g();if(l)try{return l.setItem(`${o}${e}`,JSON.stringify({timestamp:r,ttl:n,value:t,isError:a})),!0}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function p(e){const t=await g();if(t)try{const i=e.startsWith(n)?e:`${o}${e}`;return t.removeItem(i),!0}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function h(){const e=await g();if(e)try{const t=[];for(let i=0;i<e.length;i++){const s=e.key(i);0===s.indexOf(n)&&t.push(s)}return t}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),[]}return[]}async function m(){if(await g()){const e=await h();for(const t of e)await p(t);return!0}return!1}},22821:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(24558);function n(e){return s.kz.includes(e)}},23224:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(32947),l=i(62540);function PreviewBlock({className:e,width:t,height:i,shape:s,padding:n,smallWidth:o,smallHeight:c,tabletWidth:g,tabletHeight:d,desktopWidth:u,desktopHeight:p}){const h=(0,a.dv)(),m={width:{[a.mp]:o,[a.Lg]:g,[a.Fo]:u,[a.Qb]:u},height:{[a.mp]:c,[a.Lg]:d,[a.Fo]:p,[a.Qb]:u}};return(0,l.jsx)("div",{className:r()("googlesitekit-preview-block",e,{"googlesitekit-preview-block--padding":n}),style:{width:m.width[h]||t,height:m.height[h]||i},children:(0,l.jsx)("div",{className:r()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===s})})})}PreviewBlock.propTypes={className:n().string,width:n().string,height:n().string,shape:n().string,padding:n().bool,smallWidth:n().string,smallHeight:n().string,tabletWidth:n().string,tabletHeight:n().string,desktopWidth:n().string,desktopHeight:n().string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0};const c=PreviewBlock},24558:(e,t,i)=>{i.d(t,{Ax:()=>o,CZ:()=>g,Ej:()=>S,Gw:()=>A,Is:()=>r,KK:()=>u,Nn:()=>N,OT:()=>x,SH:()=>v,Y$:()=>p,ZS:()=>a,bg:()=>f,en:()=>b,ep:()=>m,f7:()=>n,hi:()=>h,jU:()=>s,k$:()=>_,kz:()=>j,ly:()=>l,mo:()=>k,s3:()=>y,uR:()=>c,zx:()=>d});const s="mainDashboard",n="entityDashboard",o="mainDashboardViewOnly",r="entityDashboardViewOnly",a="userInput",l="activation",c="splash",g="adminBar",d="adminBarViewOnly",u="settings",p="adBlockingRecovery",h="wpDashboard",m="wpDashboardViewOnly",f="moduleSetup",k="metricSelection",_="wpBlockEditor",y="keyMetricsSetup",v="key-metrics",x="traffic",b="content",S="speed",A="monetization",j=[s,n,o,r,a,c,u,f,k],N=[o,r,d,m]},24560:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},e),s||(s=n.createElement("g",{fill:"currentColor",fillRule:"evenodd"},n.createElement("path",{d:"M0 6.414 1.415 5l5.292 5.292-1.414 1.415z"}),n.createElement("path",{d:"m14.146.146 1.415 1.414L5.414 11.707 4 10.292z"}))))},27333:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(35470),n=i(78340);function o(e,t){return(0,s.A)(i=>{const{getValue:s}=i(n.s);return s(e,t)},[e,t])}},29584:(e,t,i)=>{i.d(t,{A:()=>DismissButton});var s=i(62688),n=i.n(s),o=i(82871),r=i(49383),a=i(62540);function DismissButton({className:e,label:t=(0,o.__)("Maybe later","google-site-kit"),onClick:i,disabled:s,tertiary:n=!0}){return i?(0,a.jsx)(r.Button,{className:e,onClick:i,disabled:s,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})}},29898:(e,t,i)=>{i.d(t,{A:()=>LoadingWrapper});var s=i(62688),n=i.n(s),o=i(23224),r=i(62540);function LoadingWrapper({loading:e,children:t,...i}){return e?(0,r.jsx)(o.A,{...i}):t}LoadingWrapper.propTypes={loading:n().bool,children:n().node,...o.A.propTypes}},30679:(e,t,i)=>{i.d(t,{A:()=>StoreErrorNotices});var s=i(62688),n=i.n(s),o=i(50539),r=i(77967),a=i(37226),l=i(67150),c=i(65311),g=i(62540);function StoreErrorNotices({hasButton:e=!1,moduleSlug:t,storeName:i}){const s=(0,o.useSelect)(e=>e(i).getErrors()),n=(0,o.useSelect)(e=>e(a.i).getModule(t)),d=[];return s.filter(e=>!(!e?.message||d.includes(e.message))&&(d.push(e.message),!0)).map((t,s)=>{let{message:o}=t;return(0,l.SG)(t)&&(o=(0,c.c)(o,n)),(0,g.jsx)(r.A,{error:t,hasButton:e,storeName:i,message:o},s)})}StoreErrorNotices.propTypes={hasButton:n().bool,storeName:n().string.isRequired,moduleSlug:n().string}},30823:(e,t,i)=>{i.d(t,{A:()=>LearnMoreLink});var s=i(62688),n=i.n(s),o=i(82871),r=i(20898),a=i(62540);function LearnMoreLink({href:e,className:t,label:i=(0,o.__)("Learn more","google-site-kit"),external:s=!0,onClick:n=()=>{}}){return e?(0,a.jsx)(r.A,{href:e,className:t,onClick:n,external:s,children:i}):null}LearnMoreLink.propTypes={href:n().string.isRequired,className:n().string,label:n().string,external:n().bool,onClick:n().func}},32947:(e,t,i)=>{i.d(t,{Fo:()=>o,Lg:()=>r,Qb:()=>n,dv:()=>l,mp:()=>a});var s=i(15577);const n="xlarge",o="desktop",r="tablet",a="small";function l(){const e=(0,s.SO)();return e>1280?n:e>960?o:e>600?r:a}},35323:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(24558),n=i(77766);function o(){const e=(0,n.A)();return s.Nn.includes(e)}},36466:(e,t,i)=>{function s(e){return"string"==typeof e&&/^pub-\d+$/.test(e)}function n(e){return"string"==typeof e&&/^ca-pub-\d+$/.test(e)}i.d(t,{H:()=>s,X:()=>n})},37226:(e,t,i)=>{i.d(t,{U:()=>n,i:()=>s});const s="core/modules",n="insufficient_module_dependencies"},39771:(e,t,i)=>{i.d(t,{Ay:()=>TourTooltips,R0:()=>m,ei:()=>k});var s=i(15844),n=i(36703),o=i(62688),r=i.n(o),a=i(82871),l=i(50539),c=i(7081),g=i(58116),d=i(89318),u=i(60592),p=i(77766),h=i(62540);const m={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:"2px solid #3c7251",backgroundColor:"#fff"}},f={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")},k={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},_={VIEW:"feature_tooltip_view",NEXT:"feature_tooltip_advance",PREV:"feature_tooltip_return",DISMISS:"feature_tooltip_dismiss",COMPLETE:"feature_tooltip_complete"};function TourTooltips({steps:e,tourID:t,gaEventCategory:o,callback:r}){const a=`${t}-step`,y=`${t}-run`,{setValue:v}=(0,l.useDispatch)(c.n),{dismissTour:x}=(0,l.useDispatch)(g.oR),b=(0,l.useRegistry)(),S=(0,p.A)(),A=(0,l.useSelect)(e=>e(c.n).getValue(a)||0),j=(0,l.useSelect)(e=>e(c.n).getValue(y)&&!1===e(g.oR).isTourDismissed(t));(0,s.A)(function(){i.g.document.body.classList.add("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),v(y,!0)});const N=e.map(e=>({disableBeacon:!0,isFixed:!0,placement:"auto",...e}));return(0,h.jsx)(n.Ay,{callback:function(e){!function({index:e,action:t,lifecycle:i,size:s,status:r,type:a}){const l=e+1,c="function"==typeof o?o(S):o;a===n.qY.TOOLTIP&&i===n.VD.TOOLTIP?(0,d.sx)(c,_.VIEW,l):t===n.kl.CLOSE&&i===n.VD.COMPLETE?(0,d.sx)(c,_.DISMISS,l):t===n.kl.NEXT&&r===n.XQ.FINISHED&&a===n.qY.TOUR_END&&s===l&&(0,d.sx)(c,_.COMPLETE,l),i===n.VD.COMPLETE&&r!==n.XQ.FINISHED&&(t===n.kl.PREV&&(0,d.sx)(c,_.PREV,l),t===n.kl.NEXT&&(0,d.sx)(c,_.NEXT,l))}(e);const{action:s,index:l,status:c,step:g,type:u}=e,p=s===n.kl.CLOSE,h=!p&&[n.qY.STEP_AFTER,n.qY.TARGET_NOT_FOUND].includes(u),m=[n.XQ.FINISHED,n.XQ.SKIPPED].includes(c),f=p&&u===n.qY.STEP_AFTER,k=m||f;if(n.qY.STEP_BEFORE===u){let e=g.target;"string"==typeof g.target&&(e=i.g.document.querySelector(g.target)),e?.scrollIntoView?.({block:"center"})}h?function(e,t){v(a,e+(t===n.kl.PREV?-1:1))}(l,s):k&&(i.g.document.body.classList.remove("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),x(t)),r&&r(e,b)},floaterProps:k,locale:f,run:j,stepIndex:A,steps:N,styles:m,tooltipComponent:u.A,continuous:!0,disableOverlayClose:!0,disableScrolling:!0,showProgress:!0})}TourTooltips.propTypes={steps:r().arrayOf(r().object).isRequired,tourID:r().string.isRequired,gaEventCategory:r().oneOfType([r().string,r().func]).isRequired,callback:r().func}},42125:(e,t,i)=>{i.d(t,{$:()=>n});var s=i(63696);function n(e,t=0){(0,s.useEffect)(()=>{let s,n=!1;function o(){s=i.g.setTimeout(()=>{n=!0},t)}function r(){i.g.clearTimeout(s),n&&(n=!1,e())}return i.g.addEventListener("focus",r),i.g.addEventListener("blur",o),()=>{i.g.removeEventListener("focus",r),i.g.removeEventListener("blur",o),i.g.clearTimeout(s)}},[t,e])}},42343:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=n.createElement("path",{fill:"currentColor",d:"m5.825 22 2.325-7.6L2 10h7.6L12 2l2.4 8H22l-6.15 4.4 2.325 7.6L12 17.3z"})))},43569:(e,t,i)=>{i.d(t,{A:()=>Notification});var s=i(62688),n=i.n(s),o=i(63696),r=i(50539),a=i(7081),l=i(71423),c=i(89362);function g(e){return`notification/${e}/viewed`}function d(e){return(0,r.useSelect)(t=>!!t(a.n).getValue(g(e)),[e])}function ViewedStateObserver({id:e,observeRef:t,threshold:i}){const s=(0,c.A)(t,{threshold:i}),{setValue:n}=(0,r.useDispatch)(a.n),{markNotificationSeen:g}=(0,r.useDispatch)(l.D),u=!!s?.isIntersecting,p=d(e),h=(0,o.useRef)();function m(){h.current&&clearTimeout(h.current)}return(0,o.useEffect)(()=>(!p&&u?(m(),h.current=setTimeout(()=>{s?.isIntersecting&&(n(d.getKey(e),!0),g(e))},3e3)):!u&&h.current&&m(),()=>{m()}),[p,u,n,g,e,s]),null}d.getKey=g,ViewedStateObserver.propTypes={id:n().string,observeRef:n().object,threshold:n().number};var u=i(7070),p=i(62540);function Notification({id:e,className:t,gaTrackingEventArgs:i,children:s,onView:n}){const a=(0,o.useRef)(),c=d(e),g=(0,u.A)(e,i?.category,{viewAction:i?.viewAction}),[h,m]=(0,o.useState)(!1),f=(0,r.useSelect)(t=>t(l.D).getNotificationSeenDates(e)),{dismissNotification:k}=(0,r.useDispatch)(l.D);return(0,o.useEffect)(()=>{!h&&c&&(g.view(i?.label,i?.value),n?.(),m(!0)),f?.length>=3&&k(e,{skipHidingFromQueue:!0})},[c,g,h,i,n,f,k,e]),(0,p.jsxs)("section",{id:e,ref:a,className:t,children:[s,!c&&(0,p.jsx)(ViewedStateObserver,{id:e,observeRef:a,threshold:.5})]})}Notification.propTypes={id:n().string,className:n().string,gaTrackingEventArgs:n().shape({category:n().string,viewAction:n().string,label:n().string,value:n().string}),children:n().node,onView:n().func}},44174:(e,t,i)=>{i.d(t,{A:()=>SupportLink});var s=i(62688),n=i.n(s),o=i(50539),r=i(93896),a=i(20898),l=i(62540);function SupportLink(e){const{path:t,query:i,hash:s,...n}=e,c=(0,o.useSelect)(e=>e(r.O4).getGoogleSupportURL({path:t,query:i,hash:s}));return(0,l.jsx)(a.A,{...n,href:c})}SupportLink.propTypes={path:n().string.isRequired,query:n().object,hash:n().string}},44949:(e,t,i)=>{i.r(t),i.d(t,{CONTEXT_ENTITY_DASHBOARD_CONTENT:()=>c,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:()=>d,CONTEXT_ENTITY_DASHBOARD_SPEED:()=>g,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:()=>l,CONTEXT_MAIN_DASHBOARD_CONTENT:()=>o,CONTEXT_MAIN_DASHBOARD_KEY_METRICS:()=>s,CONTEXT_MAIN_DASHBOARD_MONETIZATION:()=>a,CONTEXT_MAIN_DASHBOARD_SPEED:()=>r,CONTEXT_MAIN_DASHBOARD_TRAFFIC:()=>n,default:()=>u});const s="mainDashboardKeyMetrics",n="mainDashboardTraffic",o="mainDashboardContent",r="mainDashboardSpeed",a="mainDashboardMonetization",l="entityDashboardTraffic",c="entityDashboardContent",g="entityDashboardSpeed",d="entityDashboardMonetization",u={CONTEXT_MAIN_DASHBOARD_KEY_METRICS:s,CONTEXT_MAIN_DASHBOARD_TRAFFIC:n,CONTEXT_MAIN_DASHBOARD_CONTENT:o,CONTEXT_MAIN_DASHBOARD_SPEED:r,CONTEXT_MAIN_DASHBOARD_MONETIZATION:a,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:l,CONTEXT_ENTITY_DASHBOARD_CONTENT:c,CONTEXT_ENTITY_DASHBOARD_SPEED:g,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:d}},45472:(e,t,i)=>{i.d(t,{M:()=>s});const s="core/location"},46034:(e,t,i)=>{i.d(t,{RR:()=>AdBlockingRecoveryApp,zw:()=>SetupMain_SetupMain});var s=i(63696),n=i(12755),o=i(84826),r=i(55527),a=i(44451),l=i(82871),c=i(50539),g=i(49383),d=i(20898),u=i(95267),p=i(59323),h=i(62688),m=i.n(h),f=i(4452),k=i.n(f),_=i(63972);const y={UPCOMING:"upcoming",ACTIVE:"active",COMPLETED:"completed"};var v=i(62540);function Stepper({children:e,activeStep:t,className:i}){const n=s.Children.count(e);function o(e,t){switch(t){case y.UPCOMING:return(0,l.sprintf)(/* translators: 1: The number of the current step. 2: The total number of steps. */ /* translators: 1: The number of the current step. 2: The total number of steps. */
(0,l.__)("Step %1$s of %2$s (upcoming).","google-site-kit"),e,n);case y.ACTIVE:return(0,l.sprintf)(/* translators: 1: The number of the current step. 2: The total number of steps. */ /* translators: 1: The number of the current step. 2: The total number of steps. */
(0,l.__)("Step %1$s of %2$s (active).","google-site-kit"),e,n);case y.COMPLETED:return(0,l.sprintf)(/* translators: 1: The number of the current step. 2: The total number of steps. */ /* translators: 1: The number of the current step. 2: The total number of steps. */
(0,l.__)("Step %1$s of %2$s (completed).","google-site-kit"),e,n);default:return""}}return(0,v.jsx)("ol",{className:k()("googlesitekit-stepper",i),children:s.Children.map(e,(e,i)=>{const r=function(e=-1){return e<t?y.COMPLETED:e===t?y.ACTIVE:y.UPCOMING}(i),a=i+1;return(0,v.jsxs)("li",{className:k()("googlesitekit-stepper__step",`googlesitekit-stepper__step--${r}`,e.props.className),children:[(0,v.jsxs)("div",{className:"googlesitekit-stepper__step-progress",children:[(0,v.jsx)("span",{className:"googlesitekit-stepper__step-number",title:o(a,r),children:r===y.COMPLETED?(0,v.jsx)(_.A,{}):a}),a<n&&(0,v.jsx)("div",{className:"googlesitekit-stepper__step-progress-line"})]}),(0,s.cloneElement)(e,{stepStatus:r})]})})})}Stepper.propTypes={children:m().node.isRequired,activeStep:m().number,className:m().string};var x=i(15167);function Step({children:e,title:t,stepStatus:i}){return(0,v.jsxs)("div",{className:"googlesitekit-stepper__step-info",children:[(0,v.jsx)(x.A,{as:"h2",className:"googlesitekit-stepper__step-title",size:"medium",type:"title",children:t}),(0,v.jsx)("div",{className:"googlesitekit-stepper__step-content-container",children:i===y.ACTIVE&&(0,v.jsx)("div",{className:"googlesitekit-stepper__step-content",children:e})})]})}Step.propTypes={children:m().node.isRequired,title:m().string.isRequired,stepStatus:m().oneOf(Object.values(y))};var b,S,A,j,N,I,w,E,T,M,C,D,R,O,L,z,B,P,H,U,G=i(99620),Y=i(45472),F=i(93896),V=i(7081),W=i(77766),Z=i(12850),$=i(74179);function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Q.apply(null,arguments)}const X=e=>s.createElement("svg",Q({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 390 273"},e),b||(b=s.createElement("path",{fill:"#F3F5F7",d:"M22.56 28.885a85 85 0 0 1 8.606-7.899C60.044-2.097 83.903-2.06 116.934 2.153 139.265 5 158.642 18.5 182.13 17.185 205.617 15.871 238.088 7.743 264 9.5c29.5 2 37 5.5 63.227 19.385 24.273 12.85 46.312 35.426 57.388 65.284 18.985 51.177-14.865 143.285-60.259 147.628-32.893 3.148-60.039-33.973-93.239-25.376-20.452 5.297-32.583 27.515-48.362 42.177-18.409 17.107-48.199 16.032-69.755 6.902-20.542-8.699-35.63-25.926-42.338-51.32-5.107-19.338-4.595-38.709-16.86-53.857C36.497 138.947 9.432 134 1.281 94.168c-5.16-25.213 5.942-49.13 21.279-65.283"})),S||(S=s.createElement("g",{filter:"url(#ad-blocking-recovery-setup_svg__a)"},s.createElement("rect",{width:257.906,height:176.087,x:50.837,y:42.913,fill:"#fff",rx:14.086}),s.createElement("rect",{width:259.302,height:177.484,x:50.139,y:42.214,stroke:"#CBD0D3",strokeWidth:1.396,rx:14.785}))),A||(A=s.createElement("rect",{width:78,height:126.285,x:65,y:78.486,fill:"#EE92DA",rx:5.282})),j||(j=s.createElement("circle",{cx:104.5,cy:139.528,r:11,stroke:"#fff",strokeWidth:3})),N||(N=s.createElement("path",{stroke:"#fff",strokeWidth:3,d:"m112 132.028-15.5 15.5"})),I||(I=s.createElement("path",{fill:"#EBEEF0",d:"M50.837 56.999c0-7.78 6.307-14.086 14.087-14.086h229.733c7.78 0 14.086 6.306 14.086 14.086v7.258H50.837z"})),w||(w=s.createElement("rect",{width:7.115,height:7.115,x:61.509,y:50.027,fill:"#CBD0D3",rx:3.557})),E||(E=s.createElement("rect",{width:7.115,height:7.115,x:72.181,y:50.027,fill:"#CBD0D3",rx:3.557})),T||(T=s.createElement("rect",{width:125.396,height:42.688,x:164,y:78.486,fill:"#EBEEF0",rx:5.585})),M||(M=s.createElement("rect",{width:92.49,height:14.229,x:164,y:129,fill:"#EBEEF0",rx:7.115})),C||(C=s.createElement("rect",{width:108.498,height:5.585,x:164,y:151,fill:"#EBEEF0",rx:2.793})),D||(D=s.createElement("rect",{width:92.49,height:5.585,x:164,y:165,fill:"#EBEEF0",rx:2.793})),R||(R=s.createElement("rect",{width:125.396,height:5.585,x:164,y:179,fill:"#EBEEF0",rx:2.793})),O||(O=s.createElement("g",{filter:"url(#ad-blocking-recovery-setup_svg__b)"},s.createElement("path",{fill:"#fff",d:"M199 163c0-6.075 4.925-11 11-11h126c6.075 0 11 4.925 11 11v83.038c0 6.076-4.925 11-11 11H210c-6.075 0-11-4.924-11-11z"}),s.createElement("path",{stroke:"#CBD0D3",d:"M199.5 163c0-5.799 4.701-10.5 10.5-10.5h126c5.799 0 10.5 4.701 10.5 10.5v83.038c0 5.799-4.701 10.5-10.5 10.5H210c-5.799 0-10.5-4.701-10.5-10.5z"}))),L||(L=s.createElement("rect",{width:96.635,height:5.224,x:224.247,y:192.918,fill:"#EBEEF0",rx:2.612})),z||(z=s.createElement("rect",{width:53.106,height:22.635,x:246.882,y:222.518,fill:"#77AD8C",rx:11.318})),B||(B=s.createElement("circle",{cx:273,cy:172.023,r:9.576,fill:"#EBEEF0"})),P||(P=s.createElement("path",{stroke:"#fff",strokeWidth:3,d:"m266.906 233.539 5.003 5.003 9.495-9.495"})),H||(H=s.createElement("rect",{width:98.376,height:5.224,x:222.506,y:205.106,fill:"#EBEEF0",rx:2.612})),U||(U=s.createElement("defs",null,s.createElement("filter",{id:"ad-blocking-recovery-setup_svg__a",width:264.699,height:183.88,x:49.441,y:41.516,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},s.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.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"}),s.createElement("feOffset",{dx:4,dy:5}),s.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),s.createElement("feColorMatrix",{values:"0 0 0 0 0.796078 0 0 0 0 0.815686 0 0 0 0 0.827451 0 0 0 1 0"}),s.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_149_3117"}),s.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_149_3117",result:"shape"})),s.createElement("filter",{id:"ad-blocking-recovery-setup_svg__b",width:152,height:110.038,x:199,y:152,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},s.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.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"}),s.createElement("feOffset",{dx:4,dy:5}),s.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),s.createElement("feColorMatrix",{values:"0 0 0 0 0.796078 0 0 0 0 0.815686 0 0 0 0 0.827451 0 0 0 1 0"}),s.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_149_3117"}),s.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_149_3117",result:"shape"})))));var J=i(32947);function Content({children:e}){const t=(0,J.dv)(),i=![J.Lg,J.mp].includes(t);return(0,v.jsx)(r.xA,{className:"googlesitekit-ad-blocking-recovery__content",children:(0,v.jsxs)(r.fI,{children:[(0,v.jsx)(r.fh,{mdSize:8,lgSize:8,children:e}),i&&(0,v.jsx)(r.fh,{className:"googlesitekit-ad-blocking-recovery__hero-graphic",lgSize:4,children:(0,v.jsx)(X,{})})]})})}Content.propTypes={children:m().node};var q=i(15844),K=i(77967);function CreateMessageStep(){const e=(0,W.A)(),t=(0,c.useSelect)(e=>e($.wl).getAccountID()),i=(0,c.useSelect)(e=>e($.wl).getServiceURL({path:`/${t}/privacymessaging/ad_blocking`})),n=(0,c.useSelect)(e=>e(F.O4).getAdminURL("googlesitekit-dashboard")),o=(0,a.F)(n,{notification:"ad_blocking_recovery_setup_success"}),r=(0,c.useSelect)(e=>e($.wl).isDoingSaveSettings()||e(Y.M).isNavigatingTo(o)),u=(0,c.useSelect)(e=>!!e(V.n).getValue($.Ap)),h=(0,c.useSelect)(e=>e($.wl).getErrorForAction("saveSettings")),{saveSettings:m,setAdBlockingRecoverySetupStatus:f}=(0,c.useDispatch)($.wl),{navigateTo:k}=(0,c.useDispatch)(Y.M),{setValue:_}=(0,c.useDispatch)(V.n),y=(0,s.useCallback)(async()=>{if(!u)return await(0,Z.sx)(`${e}_adsense-abr`,"create_message","primary_cta"),void _($.Ap,!0);f($.Tt.SETUP_CONFIRMED);const{error:t}=await m();t||(await(0,Z.sx)(`${e}_adsense-abr`,"confirm_message_ready"),k(o))},[u,k,m,f,_,o,e]),x=(0,s.useCallback)(async()=>{f($.Tt.SETUP_CONFIRMED);const{error:t}=await m();t||(await(0,Z.sx)(`${e}_adsense-abr`,"confirm_message_ready_secondary_cta"),k(o))},[f,m,k,o,e]);return(0,q.A)(()=>{(0,Z.sx)(`${e}_adsense-abr`,"setup_create_message")}),(0,s.useEffect)(()=>{u&&(0,Z.sx)(`${e}_adsense-abr`,"setup_final_step")},[u,e]),(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(p.A,{children:(0,l.__)("Create and publish an ad blocking recovery message in AdSense","google-site-kit")}),(0,v.jsx)(p.A,{children:(0,l.__)("Site visitors will be given the option to allow ads on your site. You can also present them with other options to fund your site (optional)","google-site-kit")}),h&&(0,v.jsx)(K.A,{error:h}),(0,v.jsxs)("div",{className:"googlesitekit-ad-blocking-recovery__create-message-footer",children:[(0,v.jsx)("div",{className:"googlesitekit-ad-blocking-recovery__create-message-footer-actions",children:u?(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(g.SpinnerButton,{onClick:y,isSaving:r,disabled:r,children:(0,l.__)("My message is ready","google-site-kit")}),(0,v.jsx)(d.A,{onClick:function(){(0,Z.sx)(`${e}_adsense-abr`,"create_message","secondary_cta")},href:i,external:!0,hideExternalIndicator:!0,children:(0,l.__)("Create message","google-site-kit")})]}):(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(g.Button,{href:i,target:"_blank",onClick:y,children:(0,l.__)("Create message","google-site-kit")}),(0,v.jsx)(d.A,{onClick:x,disabled:r,children:(0,l.__)("I published my message","google-site-kit")})]})}),u&&(0,v.jsx)("p",{className:"googlesitekit-ad-blocking-recovery__create-message-footer-note",children:(0,l.__)("Ad blocking recovery only works if youve created and published your message in AdSense","google-site-kit")})]})]})}var ee=i(13606);function PlaceTagsStep({setActiveStep:e}){const t=(0,W.A)(),i=(0,c.useSelect)(e=>e($.wl).getUseAdBlockingRecoveryErrorSnippet()),n=(0,c.useSelect)(e=>e($.wl).isDoingSaveSettings()||e($.wl).isFetchingSyncAdBlockingRecoveryTags()),o=(0,c.useSelect)(e=>e($.wl).getErrorForAction("syncAdBlockingRecoveryTags")||e($.wl).getErrorForAction("saveSettings")),r=(0,c.useSelect)(e=>e(F.O4).getDocumentationLinkURL("ad-blocking-recovery")),{saveSettings:a,setAdBlockingRecoverySetupStatus:u,setUseAdBlockingRecoverySnippet:h,setUseAdBlockingRecoveryErrorSnippet:m,syncAdBlockingRecoveryTags:f}=(0,c.useDispatch)($.wl),k=(0,s.useCallback)(({target:e})=>{const i=!!e.checked;m(i),(0,Z.sx)(`${t}_adsense-abr`,i?"check_box":"uncheck_box")},[m,t]),_=(0,s.useCallback)(async()=>{const{error:i}=await f();if(i)return;u($.Tt.TAG_PLACED),h(!0);const{error:s}=await a();s||(await(0,Z.sx)(`${t}_adsense-abr`,"setup_enable_tag"),e($.J4.CREATE_MESSAGE))},[a,e,u,h,f,t]);return(0,q.A)(()=>{i||m(!0),(0,Z.sx)(`${t}_adsense-abr`,"setup_place_tag")}),(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(p.A,{children:(0,l.__)("Identify site visitors that have an ad blocker browser extension installed. These site visitors will see the ad blocking recovery message created in AdSense.","google-site-kit")}),(0,v.jsx)(g.Checkbox,{checked:i,id:"ad-blocking-recovery-error-protection-tag-checkbox",name:"ad-blocking-recovery-error-protection-tag-checkbox",value:"1",onChange:k,alignLeft:!0,children:(0,l.__)("Enable error protection code (optional)","google-site-kit")}),(0,v.jsx)("p",{className:"googlesitekit-ad-blocking-recovery__error-protection-tag-info",children:(0,ee.A)((0,l.__)("If a site visitors ad blocker browser extension blocks the message you create in AdSense, a default, non-customizable ad blocking recovery message will display instead. <a>Learn more</a>","google-site-kit"),{a:(0,v.jsx)(d.A,{href:r,external:!0})})}),o&&(0,v.jsx)(K.A,{error:o}),(0,v.jsx)(g.SpinnerButton,{onClick:_,isSaving:n,disabled:n,children:(0,l.__)("Enable message","google-site-kit")})]})}PlaceTagsStep.propTypes={setActiveStep:m().func};var te=i(73589);function SetupMain(){const e=(0,W.A)(),t=(0,c.useSelect)(e=>e(F.O4).getAdminURL("googlesitekit-settings")),i=(0,c.useSelect)(e=>e(F.O4).getModuleSettingsURL(te.Py)),n=(0,c.useSelect)(e=>!!e(V.n).getValue($.Ap)),o=(0,c.useSelect)(e=>e(F.O4).getAdminURL("googlesitekit-dashboard")),h=(0,c.useSelect)(e=>{const t={[$.Tt.TAG_PLACED]:$.J4.CREATE_MESSAGE,[$.Tt.SETUP_CONFIRMED]:$.J4.COMPLETE},i=e($.wl).getAdBlockingRecoverySetupStatus();if(void 0!==i)return t[i]||$.J4.PLACE_TAGS}),m=(0,a.F)(o,{notification:"ad_blocking_recovery_setup_success"}),f=(0,c.useSelect)(e=>e($.wl).getAccountID()),k=(0,c.useSelect)(e=>e($.wl).getServiceURL({path:`/${f}/privacymessaging/ad_blocking`})),{saveSettings:_,setAdBlockingRecoverySetupStatus:y,setUseAdBlockingRecoverySnippet:x,setUseAdBlockingRecoveryErrorSnippet:b}=(0,c.useDispatch)($.wl),{navigateTo:S}=(0,c.useDispatch)(Y.M),[A,j]=(0,s.useState)(h),N=(0,s.useCallback)(async()=>{if(0===A)return await(0,Z.sx)(`${e}_adsense-abr`,"cancel_setup","on_place_tag_step"),document.referrer.includes(t)?S(i):S(o);if(n)return await(0,Z.sx)(`${e}_adsense-abr`,"cancel_setup","on_final_step"),S(i);y(""),x(!1),b(!1);const{error:s}=await _();return await(0,Z.sx)(`${e}_adsense-abr`,"cancel_setup","on_create_message_step"),s||(document.referrer.includes(t)?S(i):S(o)),null},[A,i,n,o,S,_,y,b,x,t,e]);return(0,s.useEffect)(()=>{void 0===A&&void 0!==h&&j(h)},[A,h]),(0,v.jsxs)(G.A,{rounded:!0,children:[(0,v.jsx)(r.xA,{children:(0,v.jsx)(r.fI,{children:(0,v.jsx)(r.fh,{lgSize:6,mdSize:8,smSize:4,children:(0,v.jsx)(u.A,{className:"googlesitekit-heading-3 googlesitekit-ad-blocking-recovery__heading",title:(0,l.__)("Ad Blocking Recovery","google-site-kit"),fullWidth:!0})})})}),(0,v.jsxs)(Content,{children:[(0,v.jsxs)(Stepper,{activeStep:A,className:"googlesitekit-ad-blocking-recovery__steps",children:[(0,v.jsx)(Step,{title:(0,l.__)("Enable ad blocking recovery message (required)","google-site-kit"),className:"googlesitekit-ad-blocking-recovery__step googlesitekit-ad-blocking-recovery__step-place-tags",children:(0,v.jsx)(PlaceTagsStep,{setActiveStep:j})}),(0,v.jsx)(Step,{title:(0,l.__)("Create your sites ad blocking recovery message (required)","google-site-kit"),className:"googlesitekit-ad-blocking-recovery__step googlesitekit-ad-blocking-recovery__step-create-message",children:(0,v.jsx)(CreateMessageStep,{})})]}),$.J4.COMPLETE===A&&(0,v.jsxs)("div",{className:"googlesitekit-ad-blocking-recovery__complete-content",children:[(0,v.jsx)(p.A,{children:(0,l.__)("Create and publish an ad blocking recovery message in AdSense","google-site-kit")}),(0,v.jsx)(p.A,{children:(0,l.__)("Site visitors will be given the option to allow ads on your site. You can also present them with other options to fund your site (optional)","google-site-kit")})]})]}),(0,v.jsx)("div",{className:"googlesitekit-ad-blocking-recovery__footer googlesitekit-ad-blocking-recovery__buttons",children:(0,v.jsx)("div",{className:"googlesitekit-ad-blocking-recovery__footer-cancel",children:$.J4.COMPLETE===A?(0,v.jsxs)("div",{className:"googlesitekit-ad-blocking-recovery__complete-actions",children:[(0,v.jsx)(g.SpinnerButton,{href:m,children:(0,l.__)("My message is ready","google-site-kit")}),(0,v.jsx)(d.A,{href:k,external:!0,hideExternalIndicator:!0,children:(0,l.__)("Create message","google-site-kit")})]}):(0,v.jsx)(d.A,{onClick:N,children:(0,l.__)("Cancel","google-site-kit")})})})]})}function AdBlockingRecoveryApp(){return(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(n.A,{children:(0,v.jsx)(o.A,{})}),(0,v.jsx)("div",{className:"googlesitekit-ad-blocking-recovery googlesitekit-module-page",children:(0,v.jsx)(r.xA,{children:(0,v.jsx)(r.fI,{children:(0,v.jsx)(r.fh,{size:12,children:(0,v.jsx)(SetupMain,{})})})})})]})}var ie=i(52009),se=i(90399);function SetupUseSnippetSwitch(){const e=(0,c.useSelect)(e=>e($.wl).getOriginalUseSnippet()),t=(0,c.useSelect)(e=>e($.wl).getExistingTag()),i=(0,c.useSelect)(e=>e($.wl).getClientID()),{setUseSnippet:n,saveSettings:o}=(0,c.useDispatch)($.wl),r=Boolean(t);if((0,s.useEffect)(()=>{r&&(n(!1),o())},[r,o,n]),e&&!t||void 0===t||void 0===e)return null;let a,g;const d=(0,l.__)("Make sure to remove the existing AdSense code to avoid conflicts with the code placed by Site Kit","google-site-kit");return t===i?(g=(0,l.__)("Youve already got an AdSense code on your site for this account. We recommend you use Site Kit to place the code to get the most out of AdSense.","google-site-kit"),a=`${g} ${d}`):t?(g=(0,l.sprintf)(/* translators: 1: existing account ID, 2: current account ID */ /* translators: 1: existing account ID, 2: current account ID */
(0,l.__)("Site Kit detected AdSense code for a different account %1$s on your site. In order to configure AdSense for your current account %2$s, we recommend you use Site Kit to place the code instead.","google-site-kit"),(0,ie.c)(t),(0,ie.c)(i)),a=`${g} ${d}`):a=d,(0,v.jsx)(se.TZ,{checkedMessage:a,uncheckedMessage:g,saveOnChange:!0})}var ne=i(79257),oe=i(93431),re=i(81779),ae=i(61991);function SetupAccountSiteUI({heading:e,description:t,primaryButton:i,secondaryButton:n}){const o=(0,c.useSelect)(e=>e($.wl).isDoingSubmitChanges()||e(Y.M).isNavigating());return(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(x.A,{as:"h3",type:"title",size:"large",className:"googlesitekit-setup-module__title",children:e}),(0,v.jsx)(se.kg,{}),(0,v.jsx)(p.A,{children:t}),(0,v.jsx)(SetupUseSnippetSwitch,{}),(0,v.jsxs)("div",{className:"googlesitekit-setup-module__action",children:[(0,v.jsx)(g.SpinnerButton,{onClick:i.onClick,href:i.href,disabled:o,isSaving:o,children:i.label}),n&&(0,v.jsx)("div",{className:"googlesitekit-setup-module__sub-action",children:(0,v.jsx)(g.Button,{onClick:n.onClick,tertiary:!0,children:n.label})})]})]})}function NeedsAttention(){const e=(0,s.useContext)(ae.Ay),t=(0,c.useSelect)(e=>e($.wl).getServiceAccountManageSitesURL()),n=(0,s.useCallback)(s=>{s.preventDefault(),(0,Z.sx)(`${e}_adsense`,"review_site_state","needs_attention"),i.g.open(t,"_blank")},[t,e]),o=(0,l.__)("Your site isnt ready to show ads yet","google-site-kit"),r=(0,l.__)("You need to fix some things with this site before we can connect Site Kit to your AdSense account","google-site-kit"),a={label:(0,l.__)("Review site in AdSense","google-site-kit"),href:t,onClick:n};return(0,v.jsx)(SetupAccountSiteUI,{heading:o,description:r,primaryButton:a})}function GettingReady(){const e=(0,s.useContext)(ae.Ay),t=(0,c.useSelect)(e=>e($.wl).getServiceAccountManageSitesURL()),n=(0,s.useCallback)(s=>{s.preventDefault(),(0,Z.sx)(`${e}_adsense`,"review_site_state","getting_ready"),i.g.open(t,"_blank")},[t,e]),o=(0,l.__)("Your site is getting ready","google-site-kit"),r=(0,l.__)("This usually takes a few days, but in some cases can take a few weeks. Youll get an email from AdSense as soon as they have run some checks on your site.","google-site-kit"),a={label:(0,l.__)("Review site in AdSense","google-site-kit"),href:t,onClick:n};return(0,v.jsx)(SetupAccountSiteUI,{heading:o,description:r,primaryButton:a})}function RequiresReview(){const e=(0,s.useContext)(ae.Ay),t=(0,c.useSelect)(e=>e($.wl).getServiceAccountManageSitesURL()),n=(0,s.useCallback)(s=>{s.preventDefault(),(0,Z.sx)(`${e}_adsense`,"review_site_state","requires_review"),i.g.open(t,"_blank")},[t,e]),o=(0,l.__)("Your site requires review","google-site-kit"),r=(0,l.__)("To start serving ads, your site needs to be approved first. Go to AdSense to request the review.","google-site-kit"),a={label:(0,l.__)("Request review in AdSense","google-site-kit"),href:t,onClick:n};return(0,v.jsx)(SetupAccountSiteUI,{heading:o,description:r,primaryButton:a})}function Ready({site:e,finishSetup:t}){const[n,o]=(0,s.useState)(!1),r=(0,s.useContext)(ae.Ay),a=(0,c.useSelect)(e=>e($.wl).getExistingTag()),g=(0,c.useSelect)(e=>e($.wl).getServiceAccountSiteAdsPreviewURL()),d=(0,c.useSelect)(e=>e($.wl).isDoingSubmitChanges()),{completeSiteSetup:u,completeAccountSetup:p}=(0,c.useDispatch)($.wl),{setValue:h}=(0,c.useDispatch)(V.n),m=(0,s.useCallback)(e=>{e.preventDefault(),(0,Z.sx)(`${r}_adsense`,"enable_auto_ads"),i.g.open(g,"_blank")},[g,r]),f=(0,s.useCallback)(e=>{e.preventDefault(),(0,Z.sx)(`${r}_adsense`,"disable_auto_ads"),o(!0)},[r]),k=(0,s.useCallback)(async()=>{if(d)return;h($.O0,!0);const e=await u(),i=await p();h($.O0,!1),e&&i&&"function"==typeof t&&t()},[d,h,u,p,t]),_={};return e.autoAdsEnabled||n?(_.heading=a?(0,l.__)("Your AdSense account is ready to connect to Site Kit","google-site-kit"):(0,l.__)("Your site is ready to use AdSense","google-site-kit"),_.description=a?(0,l.__)("Connect your AdSense account to see stats on your overall earnings, page CTR, and top earning pages","google-site-kit"):(0,l.__)("Site Kit has placed AdSense code on your site to connect your site to AdSense and help you get the most out of ads","google-site-kit"),_.primaryButton={label:(0,l.__)("Complete setup","google-site-kit"),onClick:k}):(_.heading=(0,l.__)("Enable auto ads for your site","google-site-kit"),_.description=(0,l.__)("To start serving ads via Site Kit, you need to activate auto ads first. Go to AdSense and enable auto ads for your site.","google-site-kit"),_.primaryButton={label:(0,l.__)("Enable auto ads","google-site-kit"),href:g,onClick:m},a&&(_.description=(0,l.__)("Site Kit recommends enabling auto ads. If your existing AdSense setup relies on individual ad units, you can proceed without enabling auto ads.","google-site-kit"),_.secondaryButton={label:(0,l.__)("Proceed without enabling auto ads","google-site-kit"),onClick:f})),(0,v.jsx)(SetupAccountSiteUI,{..._})}function SetupAccountSite({site:e,finishSetup:t}){const{autoAdsEnabled:i,state:n}=e,{setSiteStatus:o}=(0,c.useDispatch)($.wl);switch((0,s.useEffect)(()=>{let e;switch(n){case $._L:e=re.k;break;case $.LE:e=re.dL;break;case $.IY:e=re.oC;break;case $.jb:e=i?re.TF:re.um}e&&o(e)},[i,o,n]),n){case $._L:return(0,v.jsx)(NeedsAttention,{});case $.LE:return(0,v.jsx)(RequiresReview,{});case $.IY:return(0,v.jsx)(GettingReady,{});case $.jb:return(0,v.jsx)(Ready,{site:e,finishSetup:t});default:return(0,v.jsx)(K.A,{message:(0,l.sprintf)(/* translators: %s: invalid site state identifier */ /* translators: %s: invalid site state identifier */
(0,l.__)("Invalid site state %s","google-site-kit"),n),skipRetryMessage:!0})}}SetupAccountSiteUI.propTypes={heading:m().string.isRequired,description:m().string.isRequired,primaryButton:m().shape({label:m().string,href:m().string,onClick:m().func}).isRequired,secondaryButton:m().shape({label:m().string,onClick:m().func})},SetupAccountSite.propTypes={site:m().shape({autoAdsEnabled:m().bool,state:m().string}).isRequired,finishSetup:m().func};var le=i(44174);function SetupAccountNoClient(){const e=(0,W.A)(),t=(0,s.useCallback)(()=>{(0,Z.sx)(`${e}_adsense`,"apply_afc")},[e]);return(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(x.A,{as:"h3",type:"title",size:"large",className:"googlesitekit-setup-module__title",children:(0,l.__)("Looks like you need to upgrade your AdSense account","google-site-kit")}),(0,v.jsx)(se.kg,{}),(0,v.jsx)(p.A,{children:(0,ee.A)((0,l.__)("To start using AdSense on your website, you need to upgrade your account to add “AdSense for content”. <a>Learn more</a>","google-site-kit"),{a:(0,v.jsx)(le.A,{path:"/adsense/answer/6023158","aria-label":(0,l.__)("Learn more about updating your AdSense account","google-site-kit"),external:!0})})}),(0,v.jsx)("div",{className:"googlesitekit-setup-module__action",children:(0,v.jsx)(g.Button,{href:"https://www.google.com/adsense",target:"_blank","aria-label":(0,l.__)("Learn more about updating your AdSense account","google-site-kit"),onClick:t,children:(0,l.__)("Apply now","google-site-kit")})})]})}function SetupAccountCreateSite(){const e=(0,W.A)(),t=(0,c.useSelect)(e=>e($.wl).getServiceAccountManageSiteURL()),n=(0,s.useCallback)(s=>{s.preventDefault(),(0,Z.sx)(`${e}_adsense`,"create_site"),i.g.open(t,"_blank")},[t,e]);return(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(x.A,{as:"h3",type:"title",size:"large",className:"googlesitekit-setup-module__title",children:(0,l.__)("Add this site to your AdSense account","google-site-kit")}),(0,v.jsx)(se.kg,{}),(0,v.jsx)(p.A,{children:(0,l.__)("Weve detected that you havent added this site to your AdSense account yet","google-site-kit")}),(0,v.jsx)("div",{className:"googlesitekit-setup-module__action",children:(0,v.jsx)(g.Button,{onClick:n,href:t,children:(0,l.__)("Add site to AdSense","google-site-kit")})})]})}function SetupAccountPendingTasks(){const e=(0,W.A)(),t=(0,s.useCallback)(()=>{(0,Z.sx)(`${e}_adsense`,"review_tasks")},[e]),i=(0,c.useSelect)(e=>e($.wl).getServiceAccountURL());return(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(x.A,{as:"h3",type:"title",size:"large",className:"googlesitekit-setup-module__title",children:(0,l.__)("Your account isnt ready to show ads yet","google-site-kit")}),(0,v.jsx)(se.kg,{}),(0,v.jsx)(p.A,{children:(0,l.__)("You need to fix some things before we can connect Site Kit to your AdSense account","google-site-kit")}),(0,v.jsx)(SetupUseSnippetSwitch,{}),(0,v.jsx)("div",{className:"googlesitekit-setup-module__action",children:(0,v.jsx)(g.Button,{onClick:t,href:i,children:(0,l.__)("Review AdSense account","google-site-kit")})})]})}function SetupAccount({account:e,finishSetup:t}){const{_id:i,state:n}=e,o=(0,c.useSelect)(e=>e($.wl).getClientID()),r=(0,c.useSelect)(e=>e($.wl).getCurrentSite(i)),a=(0,c.useSelect)(e=>e($.wl).getAFCClient(i)),{setClientID:l,setAccountStatus:d,setSiteStatus:u}=(0,c.useDispatch)($.wl);return(0,s.useEffect)(()=>{a?._id&&o!==a._id?l(a._id):null===a&&o&&l("")},[a,o,l]),(0,s.useEffect)(()=>{null===r&&u(re.SG)},[u,r]),(0,s.useEffect)(()=>{void 0!==r&&(o?n===$._L?d(re.gV):a?.state===$.LE?d(re.bF):a?.state===$.IY?d(re.Yb):d(re.pJ):d(re.ze))},[n,a,o,d,r]),void 0===r?(0,v.jsx)(g.ProgressBar,{}):o?null===r?(0,v.jsx)(SetupAccountCreateSite,{}):n===$._L||a?.state===$.LE||a?.state===$.IY?(0,v.jsx)(SetupAccountPendingTasks,{}):(0,v.jsx)(SetupAccountSite,{site:r,finishSetup:t}):(0,v.jsx)(SetupAccountNoClient,{})}SetupAccount.propTypes={account:m().shape({_id:m().string,state:m().string}),finishSetup:m().func};var ce=i(58116);function SetupCreateAccount(){const e=`${(0,W.A)()}_adsense`,t=(0,c.useSelect)(e=>e(ce.oR).getEmail()),n=(0,c.useSelect)(e=>e($.wl).getExistingTag()),o=(0,c.useSelect)(e=>e($.wl).getServiceCreateAccountURL()),r=(0,s.useCallback)(async t=>{t.preventDefault(),await(0,Z.sx)(e,"create_account"),i.g.open(o,"_blank")},[o,e]);return(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(x.A,{as:"h3",type:"title",size:"large",className:"googlesitekit-setup-module__title",children:(0,l.__)("Create your AdSense account","google-site-kit")}),(0,v.jsx)(se.kg,{}),(0,v.jsx)(p.A,{children:(0,l.__)("Once you create your account, Site Kit will place AdSense code on every page across your site. This means your site will be automatically optimized to help you earn money from your content.","google-site-kit")}),(0,v.jsx)(se.Fv,{}),(0,v.jsx)("div",{className:"googlesitekit-setup-module__action",children:(0,v.jsx)(g.Button,{onClick:r,href:o,children:(0,l.__)("Create AdSense account","google-site-kit")})}),(0,v.jsxs)("p",{className:"googlesitekit-setup-module__footer-text",children:[n&&(0,l.sprintf)(/* translators: 1: client ID, 2: user email address, 3: account ID */ /* translators: 1: client ID, 2: user email address, 3: account ID */
(0,l.__)("Site Kit detected AdSense code %1$s on your page. We recommend you remove that code or add %2$s as a user to the AdSense account %3$s.","google-site-kit"),n,t,(0,ie.c)(n)),!n&&(0,ee.A)((0,l.sprintf)(/* translators: %s: user email address */ /* translators: %s: user email address */
(0,l.__)("Already use AdSense? Add %s as a user to an existing AdSense account. <a>Learn more</a>","google-site-kit"),t),{a:(0,v.jsx)(le.A,{path:"/adsense/answer/2659101","aria-label":(0,l.__)("Learn more about adding a user to an existing AdSense account","google-site-kit"),external:!0})})]})]})}function SetupSelectAccount(){return(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(x.A,{as:"h3",type:"title",size:"large",className:"googlesitekit-setup-module__title",children:(0,l.__)("Select your AdSense account","google-site-kit")}),(0,v.jsx)(se.kg,{}),(0,v.jsx)(p.A,{children:(0,l.__)("Looks like you have multiple AdSense accounts associated with your Google account. Select the account to use with Site Kit below.","google-site-kit")}),(0,v.jsx)("div",{className:"googlesitekit-setup-module__inputs",children:(0,v.jsx)(se.QB,{})})]})}var ge=i(10804),de=i(42125);function SetupMain_SetupMain({finishSetup:e}){const t=`${(0,W.A)()}_adsense`,{resetAccounts:i,resetClients:n,resetSites:o,setAccountID:r,setAccountStatus:a,submitChanges:d}=(0,c.useDispatch)($.wl),[u,p]=(0,s.useState)(!1),[h,m]=(0,s.useState)(!1),f=(0,c.useSelect)(e=>!!e(V.n).getValue($.O0)),k=(0,c.useSelect)(e=>e(ce.oR).isAdBlockerActive()),_=(0,c.useSelect)(e=>e($.wl).getAccounts()),y=(0,c.useSelect)(e=>e($.wl).getAccountID()),b=(0,c.useSelect)(e=>e($.wl).hasSettingChanged("accountID")),S=(0,c.useSelect)(e=>e($.wl).hasSettingChanged("clientID")),A=(0,c.useSelect)(e=>e($.wl).canSubmitChanges()),j=(0,c.useSelect)(e=>e($.wl).getClientID()),N=(0,c.useSelect)(e=>e($.wl).getAccountStatus()),I=(0,c.useSelect)(e=>e($.wl).hasSettingChanged("accountStatus")),w=(0,c.useSelect)(e=>e($.wl).getSiteStatus()),E=(0,c.useSelect)(e=>e($.wl).hasSettingChanged("siteStatus")),T=(0,c.useSelect)(e=>e($.wl).hasErrors()),M=(0,c.useSelect)(e=>e($.wl).hasFinishedResolution("getAccounts")),C=(0,c.useSelect)(e=>e(ce.oR).getEmail()),D=(0,c.useSelect)(e=>e(F.O4).getReferenceSiteURL()),R=(0,c.useSelect)(e=>e($.wl).getExistingTag()),O=_?.find(({_id:e})=>e===y);(0,ne.A)(()=>{(b&&void 0!==y||S&&void 0!==j||I&&void 0!==N||E&&void 0!==w)&&p(!0)},[y,b,j,S,N,I,w,E]),(0,s.useEffect)(()=>{if(!Array.isArray(_))return;let e;1!==_.length||y&&_[0]._id===y?0===_.length&&y&&(e=""):e=_[0]._id,void 0!==e&&(r(e),p(!0))},[_,y,r]),(0,s.useEffect)(()=>{0===_?.length?a(re.uP):_?.length>1&&!y&&a(re.Sw)},[a,y,_]),(0,s.useEffect)(()=>{u&&!h&&A&&!f&&(p(!1),(async()=>{m(!0),await d(),m(!1)})())},[u,h,A,d,f]);const L=(0,s.useCallback)(()=>{void 0!==N&&re.pJ!==N&&(i(),n(),o())},[N,i,n,o]);let z;return(0,de.$)(L,15e3),(0,s.useEffect)(()=>{void 0!==N&&(0,Z.sx)(t,"receive_account_state",N)},[t,N]),(0,s.useEffect)(()=>{void 0!==w&&(0,Z.sx)(t,"receive_site_state",w)},[t,w]),z=M&&void 0!==y&&void 0!==C&&void 0!==D&&void 0!==R?T?(0,v.jsx)(se.kg,{hasButton:!0}):_?.length?y?(0,v.jsx)(SetupAccount,{account:O,finishSetup:e}):(0,v.jsx)(SetupSelectAccount,{}):(0,v.jsx)(SetupCreateAccount,{}):(0,v.jsx)(g.ProgressBar,{}),(0,v.jsxs)("div",{className:"googlesitekit-setup-module googlesitekit-setup-module--adsense",children:[(0,v.jsxs)("div",{className:"googlesitekit-setup-module__step",children:[(0,v.jsx)("div",{className:"googlesitekit-setup-module__logo",children:(0,v.jsx)(oe.A,{width:"40",height:"40"})}),(0,v.jsx)(x.A,{as:"h3",className:"googlesitekit-setup-module__title",size:"small",type:"headline",children:(0,l._x)("AdSense","Service name","google-site-kit")})]}),(0,v.jsxs)("div",{className:"googlesitekit-setup-module__step",children:[(0,v.jsx)(ge.A,{moduleSlug:"adsense"}),!k&&z]})]})}SetupMain_SetupMain.propTypes={finishSetup:m().func}},47121:(e,t,i)=>{i.d(t,{$C:()=>I,RF:()=>N,WI:()=>A,_5:()=>x,jU:()=>v,o3:()=>y,x0:()=>S});var s=i(32091),n=i.n(s),o=i(50532),r=i.n(o),a=i(17243),l=i(78913);const c="GET_REGISTRY",g="AWAIT";function d(...e){const t=e.reduce((e,t)=>({...e,...t}),{}),i=b(e.reduce((e,t)=>[...e,...Object.keys(t)],[]));return n()(0===i.length,`collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ${i.join(", ")}. Check your data stores for duplicates.`),t}const u=d,p=d;function h(...e){const t=[...e];let i;return"function"!=typeof t[0]&&(i=t.shift()),(e=i,s={})=>t.reduce((e,t)=>t(e,s),e)}const m=d,f=d,k=d;function _(e){return e}function y(...e){const t=k(...e.map(e=>e.initialState||{}));return{initialState:t,controls:p(...e.map(e=>e.controls||{})),actions:u(...e.map(e=>e.actions||{})),reducer:h(t,...e.map(e=>e.reducer||_)),resolvers:m(...e.map(e=>e.resolvers||{})),selectors:f(...e.map(e=>e.selectors||{}))}}const v={getRegistry:()=>({payload:{},type:c}),*await(e){return{payload:{value:e},type:g}}},x={[c]:(0,l.b)(e=>()=>e),[g]:({payload:e})=>e.value};function b(e){const t=[],i={};for(let s=0;s<e.length;s++){const n=e[s];i[n]=i[n]>=1?i[n]+1:1,i[n]>1&&t.push(n)}return t}const S={actions:v,controls:x,reducer:_};function A(e){return t=>j(e(t))}const j=r()(e=>(0,a.mapValues)(e,(e,t)=>(...i)=>{const s=e(...i);return n()(void 0!==s,`${t}(...) is not resolved`),s}));function N(e,{negate:t=!1}={}){return{safeSelector:(0,l.N)(i=>(s,...n)=>{const o=!t,r=!!t;try{return e(i,s,...n),o}catch{return r}}),dangerousSelector:(0,l.N)(t=>(i,...s)=>{e(t,i,...s)})}}function I(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 actions validator function must not be a generator."),(...i)=>(e(...i),t(...i))}},49383:e=>{e.exports=googlesitekit.components},49655:(e,t,i)=>{i.d(t,{Q:()=>s});const s={NEW:"new",SUCCESS:"success",WARNING:"warning",INFO:"info",INFO_ALT:"info-alt",ERROR:"error"}},50539:e=>{e.exports=googlesitekit.data},50787:(e,t,i)=>{i.d(t,{d:()=>r});var s=i(18117),n=i(17243),o=i(63696);function r(...e){const t=(0,s.MA)(()=>(0,n.debounce)(...e),e);return(0,o.useEffect)(()=>()=>t.cancel(),[t]),t}},52009:(e,t,i)=>{i.d(t,{c:()=>n,v:()=>o});var s=i(36466);function n(e){if((0,s.X)(e))return e.match(/pub-\d+$/)[0]}function o(e){if((0,s.H)(e))return e.match(/pub-\d+$/)[0]}},53137:(e,t,i)=>{i.d(t,{FQ:()=>o,He:()=>a,bI:()=>r,rq:()=>n,ui:()=>s});const s="warning-notification-gtg",n="gtg-setup-cta",o={ERROR_HIGH:30,ERROR_LOW:60,WARNING:100,INFO:150,SETUP_CTA_HIGH:150,SETUP_CTA_LOW:200},r={HEADER:"notification-area-header",DASHBOARD_TOP:"notification-area-dashboard-top",OVERLAYS:"notification-area-overlays"},a={DEFAULT:"default",SETUP_CTAS:"setup-ctas"}},54312:(e,t,i)=>{i.d(t,{A:()=>GenericErrorHandlerActions});var s=i(62688),n=i.n(s),o=i(82871),r=i(20898),a=i(38021),l=i.n(a),c=i(63696),g=i(12417),d=i(1027),u=i(65123),p=i(49383),h=i(62540);function ReportErrorButton({message:e,componentStack:t}){const[i,s]=(0,c.useState)(!1);return(0,h.jsx)(p.Button,{"aria-label":i?(0,o.__)("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\`\`\``),s(!0)},trailingIcon:(0,h.jsx)(g.A,{className:"mdc-button__icon",icon:i?d.A:u.A}),children:i?(0,o.__)("Copied to clipboard","google-site-kit"):(0,o.__)("Copy error contents","google-site-kit")})}ReportErrorButton.propTypes={message:n().string,componentStack:n().string};const m=ReportErrorButton;function GenericErrorHandlerActions({message:e,componentStack:t}){return(0,h.jsxs)("div",{className:"googlesitekit-generic-error-handler-actions",children:[(0,h.jsx)(m,{message:e,componentStack:t}),(0,h.jsx)(r.A,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0,children:(0,o.__)("Report this problem","google-site-kit")})]})}GenericErrorHandlerActions.propTypes={message:n().string,componentStack:n().string}},55527:(e,t,i)=>{i.d(t,{$z:()=>n.$,CR:()=>a.C,Cf:()=>l.DialogContent,Es:()=>l.DialogFooter,Nv:()=>s.N,P3:()=>r.P,Si:()=>o.S,fI:()=>g.fI,fh:()=>g.fh,lG:()=>c.a,xA:()=>g.xA});var s=i(91046),n=i(3412),o=i(30454),r=i(26569),a=i(56655),l=i(12786),c=i.n(l),g=i(75487)},56929:(e,t,i)=>{i.d(t,{Ay:()=>AutoAdExclusionSwitches,BN:()=>u,nk:()=>g,ru:()=>d});var s=i(63696),n=i(82871),o=i(50539),r=i(49383),a=i(59323),l=i(74179),c=i(62540);const g="loggedinUsers",d="contentCreators",u={[g]:(0,n.__)("All logged-in users","google-site-kit"),[d]:(0,n.__)("Users who can write posts","google-site-kit")};function AutoAdExclusionSwitches(){const e=(0,o.useSelect)(e=>e(l.wl).getAutoAdsDisabled()),{setAutoAdsDisabled:t}=(0,o.useDispatch)(l.wl);let i;i=e&&e.includes(g)?(0,n.__)("Ads will not be displayed for all logged-in users","google-site-kit"):e&&e.includes(d)?(0,n.__)("Ads will not be displayed for users that can write posts","google-site-kit"):(0,n.__)("Ads will be displayed for all users","google-site-kit");const p=(0,s.useCallback)((i,s)=>{const n=s?e.concat(i):e.filter(e=>e!==i);t(n)},[e,t]),h=(0,s.useCallback)(e=>{const{checked:t}=e.target;p(d,t)},[p]),m=(0,s.useCallback)(e=>{const{checked:t}=e.target;p(g,t)},[p]);return Array.isArray(e)?(0,c.jsxs)("fieldset",{className:"googlesitekit-analytics-auto-ads-disabled",children:[(0,c.jsx)("legend",{className:"googlesitekit-setup-module__text",children:(0,n.__)("Exclude from Ads","google-site-kit")}),(0,c.jsxs)("div",{className:"googlesitekit-settings-module__inline-items",children:[(0,c.jsx)("div",{className:"googlesitekit-settings-module__inline-item",children:(0,c.jsx)(r.Switch,{label:u[g],checked:e.includes(g),onClick:m,hideLabel:!1})}),!e.includes(g)&&(0,c.jsx)("div",{className:"googlesitekit-settings-module__inline-item",children:(0,c.jsx)(r.Switch,{label:u[d],checked:e.includes(d),onClick:h,hideLabel:!1})})]}),(0,c.jsx)(a.A,{children:i})]}):null}},58116:(e,t,i)=>{i.d(t,{$8:()=>r,$Q:()=>p,BT:()=>D,CQ:()=>N,DF:()=>W,GM:()=>j,GT:()=>_,HA:()=>z,HD:()=>u,HP:()=>C,J5:()=>P,JF:()=>w,JK:()=>f,Ml:()=>m,SS:()=>R,UF:()=>g,UY:()=>Y,Vl:()=>O,W6:()=>V,Xq:()=>I,YQ:()=>E,Yw:()=>G,dV:()=>M,dX:()=>A,ej:()=>c,em:()=>o,ep:()=>b,fu:()=>v,gC:()=>y,hz:()=>h,jx:()=>d,lV:()=>l,nH:()=>B,oR:()=>s,od:()=>a,p3:()=>k,pG:()=>S,qv:()=>n,qy:()=>T,t1:()=>F,t7:()=>U,tB:()=>x,tK:()=>H,u_:()=>L});const s="core/user",n="connected_url_mismatch",o="__global",r="temporary_persist_permission_error",a="adblocker_active",l=["weekly","monthly","quarterly"],c="googlesitekit_authenticate",g="googlesitekit_setup",d="googlesitekit_view_dashboard",u="googlesitekit_manage_options",p="googlesitekit_read_shared_module_data",h="googlesitekit_manage_module_sharing_options",m="googlesitekit_delegate_module_sharing_management",f="googlesitekit_update_plugins",k="kmAnalyticsAdSenseTopEarningContent",_="kmAnalyticsEngagedTrafficSource",y="kmAnalyticsLeastEngagingPages",v="kmAnalyticsNewVisitors",x="kmAnalyticsPopularAuthors",b="kmAnalyticsPopularContent",S="kmAnalyticsPopularProducts",A="kmAnalyticsReturningVisitors",j="kmAnalyticsTopCities",N="kmAnalyticsTopCitiesDrivingLeads",I="kmAnalyticsTopCitiesDrivingAddToCart",w="kmAnalyticsTopCitiesDrivingPurchases",E="kmAnalyticsTopDeviceDrivingPurchases",T="kmAnalyticsTopConvertingTrafficSource",M="kmAnalyticsTopCountries",C="kmAnalyticsTopPagesDrivingLeads",D="kmAnalyticsTopRecentTrendingPages",R="kmAnalyticsTopTrafficSource",O="kmAnalyticsTopTrafficSourceDrivingAddToCart",L="kmAnalyticsTopTrafficSourceDrivingLeads",z="kmAnalyticsTopTrafficSourceDrivingPurchases",B="kmAnalyticsPagesPerVisit",P="kmAnalyticsVisitLength",H="kmAnalyticsTopReturningVisitorPages",U="kmSearchConsolePopularKeywords",G="kmAnalyticsVisitsPerVisitor",Y="kmAnalyticsMostEngagingPages",F="kmAnalyticsTopCategories",V=[k,_,y,v,x,b,S,A,F,j,N,I,w,E,T,M,D,R,O,B,P,H,G,Y,F],W=[...V,U]},59323:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(62688),n=i.n(s),o=i(32947),r=i(15167),a=i(3714),l=i(62540);function c({type:e=a.SZ,size:t,children:i,...s}){const n=(0,o.dv)();return(0,l.jsx)(r.A,{as:"p",type:e,size:t||(n===o.mp?a.Kk:a.Yw),...s,children:i})}c.propTypes={type:n().oneOf(a.tT),size:n().oneOf(a.oJ)}},60592:(e,t,i)=>{i.d(t,{A:()=>TourTooltip});var s=i(28056),n=i.n(s),o=i(4452),r=i.n(o),a=i(62688),l=i.n(a),c=i(82871),g=i(49383);var d=i(72545),u=i(15167),p=i(62540);function TourTooltip({backProps:e,closeProps:t,index:i,primaryProps:o,size:a,step:l,tooltipProps:h}){const m=a>1?function(e){return new Array(null!=e?e:0).fill().map((e,t)=>t)}(a):[];function f(e){return r()("googlesitekit-tooltip-indicator",{active:e===i})}return(0,p.jsx)("div",{className:r()("googlesitekit-tour-tooltip",l.className),...h,children:(0,p.jsxs)(n(),{className:"googlesitekit-tooltip-card",children:[(0,p.jsxs)("div",{className:"googlesitekit-tooltip-body",children:[(0,p.jsx)(u.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)(s.CardActions,{className:"googlesitekit-tooltip-actions",children:[(0,p.jsx)("ul",{className:"googlesitekit-tooltip-indicators",children:m.map(e=>(0,p.jsx)("li",{className:f(e)},`indicator-${e}`))}),(0,p.jsxs)("div",{className:"googlesitekit-tooltip-buttons",children:[0!==i&&(0,p.jsx)(g.Button,{className:"googlesitekit-tooltip-button",text:!0,...e,children:e.title}),l.cta,o.title&&(0,p.jsx)(g.Button,{className:"googlesitekit-tooltip-button",text:!0,...o,children:o.title})]})]}),(0,p.jsx)(g.Button,{className:"googlesitekit-tooltip-close",icon:(0,p.jsx)(d.A,{width:"14",height:"14"}),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}},61991:(e,t,i)=>{i.d(t,{Ay:()=>r,Kq:()=>o});const s=(0,i(63696).createContext)(""),{Consumer:n,Provider:o}=s,r=s},63972:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 9"},e),s||(s=n.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M1 3.838 4.106 7 10 1"})))},64067:(e,t,i)=>{i.d(t,{P9:()=>k,k:()=>h,mR:()=>f});var s=i(32091),n=i.n(s),o=i(17243),r=i(50539),a=i.n(r),l=i(21134),c=i(12850);const g="CREATE_SNAPSHOT",d="DELETE_SNAPSHOT",u="RESTORE_SNAPSHOT",p="SET_STATE_FROM_SNAPSHOT";function h(e,{keysToSnapshot:t}={}){n()(e,"storeName is required to create a snapshot store.");const i={},s={*deleteSnapshot(){return yield{payload:{},type:d}},*restoreSnapshot(e={}){const{clearAfterRestore:t=!0}=e,{cacheHit:i,value:s}=yield{payload:{},type:u};return i&&(yield{payload:{snapshot:s},type:p},t&&(yield{payload:{},type:d})),i},*createSnapshot(){return yield{payload:{},type:g}}},a={[d]:()=>(0,l.LD)(`datastore::cache::${e}`),[g]:(0,r.createRegistryControl)(i=>()=>{const s=i.stores[e].store.getState(),n=t?.length>0?(0,o.pick)(s,t):s;return(0,l.SO)(`datastore::cache::${e}`,n)}),[u]:()=>(0,l.Gq)(`datastore::cache::${e}`,c.Jg)};return{initialState:i,actions:s,controls:a,reducer:function(e=i,{type:s,payload:n}){if(s===p){const{snapshot:i}=n,{error:s,...o}=i;return t?.length>0?{...e,...o}:o}return e}}}function m(e=a()){return Object.values(e.stores).filter(e=>Object.keys(e.getActions()).includes("restoreSnapshot"))}function f(e=a()){return Promise.all(m(e).map(e=>e.getActions().createSnapshot()))}function k(e=a()){return Promise.all(m(e).map(e=>e.getActions().restoreSnapshot()))}},64843:(e,t,i)=>{i.d(t,{A:()=>WebStoriesAdUnitSelect});var s=i(63696),n=i(82871),o=i(49383),r=i(50539),a=i(74179),l=i(62540);function WebStoriesAdUnitSelect(){const e=(0,r.useSelect)(e=>e(a.wl).getAccountID()),t=(0,r.useSelect)(e=>e(a.wl).getClientID()),i=(0,r.useSelect)(e=>e(a.wl).getWebStoriesAdUnit()),c=(0,r.useSelect)(i=>i(a.wl).getAdUnits(e,t)),g=(0,r.useSelect)(i=>i(a.wl).hasFinishedResolution("getAdUnits",[e,t])),{setWebStoriesAdUnit:d}=(0,r.useDispatch)(a.wl),u=(0,s.useCallback)((e,t)=>{const s=t.dataset.value;i!==s&&d(s)},[i,d]);return g?(0,l.jsxs)(o.Select,{className:"googlesitekit-adsense__select-field",label:(0,n.__)("Web Stories Ad Unit","google-site-kit"),value:i,onEnhancedChange:u,enhanced:!0,outlined:!0,children:[(0,l.jsx)(o.Option,{value:"",children:(0,n.__)("Select ad unit","google-site-kit")}),(c||[]).map(({_id:e,displayName:t})=>(0,l.jsx)(o.Option,{value:e,children:t},e))]}):(0,l.jsx)(o.ProgressBar,{small:!0})}},65214:(e,t,i)=>{i.d(t,{G:()=>n,t:()=>s});const s=new Set(i.g?._googlesitekitBaseData?.enabledFeatures||[]);function n(e,t=s){return t instanceof Set&&t.has(e)}},65311:(e,t,i)=>{i.d(t,{c:()=>r});var s=i(82871),n=i(97398),o=i(99897);function r(e="",t={}){const{slug:i="",name:r="",owner:a={}}=t||{};if(!i||!r)return e;let l="",c="";return o.L1===i?e.match(/account/i)?l=(0,s.__)("Your Google account does not have sufficient permissions for this Analytics account, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/property/i)?l=(0,s.__)("Your Google account does not have sufficient permissions for this Analytics property, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/view/i)&&(l=(0,s.__)("Your Google account does not have sufficient permissions for this Analytics view, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit")):n.Y===i&&(l=(0,s.__)("Your Google account does not have sufficient permissions for this Search Console property, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit")),l||(l=(0,s.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,s.__)("Your Google account does not have sufficient permissions to access %s data, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"),r)),a&&a.login&&(c=(0,s.sprintf)(/* translators: %s: owner name */ /* translators: %s: owner name */
(0,s.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),a.login)),c||(c=(0,s.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),`${l} ${c}`}},67150:(e,t,i)=>{i.d(t,{G:()=>c,HY:()=>d,SG:()=>g,db:()=>n,e4:()=>p,vl:()=>u});i(17243);var s=i(82871);const n="missing_required_scopes",o="insufficientPermissions",r="forbidden",a="internal_server_error",l="invalid_json";function c(e){return e?.code===n}function g(e){return[o,r].includes(e?.data?.reason)}function d(e){return!!e?.data?.reconnectURL}function u(e,t){return!(!t?.storeName||g(e)||c(e)||d(e))}function p(e){return e?.code===a?(0,s.__)("There was a critical error on this website while fetching data","google-site-kit"):e?.code===l?(0,s.__)("The server provided an invalid response","google-site-kit"):e?.message}},68869:(e,t,i)=>{i.d(t,{Ay:()=>r});var s=i(6732);const{Consumer:n,Provider:o}=s.A,r=o},71032:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(62688),n=i.n(s),o=i(63696),r=i(82871),a=i(77967),l=i(62540);class MediaErrorHandler extends o.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e,t){i.g.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},71423:(e,t,i)=>{i.d(t,{$:()=>o,D:()=>n});var s=i(24558);const n="core/notifications",o=[s.uR,s.jU,s.f7,s.Ax,s.Is]},72455:(e,t,i)=>{i.d(t,{CV:()=>I,Cu:()=>b,K9:()=>s,Kr:()=>m,Lf:()=>p,Oh:()=>r,PW:()=>N,Rx:()=>C,S9:()=>f,TQ:()=>d,Vt:()=>T,Wl:()=>v,ZC:()=>n,ZY:()=>a,_p:()=>M,ag:()=>h,aj:()=>u,bz:()=>w,dq:()=>E,f2:()=>c,fB:()=>j,fV:()=>A,iB:()=>g,kc:()=>l,mo:()=>_,nc:()=>S,rm:()=>x,to:()=>o,wo:()=>k,yn:()=>y});const s="modules/analytics-4",n="account_create",o="property_create",r="webdatastream_create",a="analyticsSetup",l=10,c=1,g="https://www.googleapis.com/auth/tagmanager.readonly",d="enhanced-measurement-form",u="enhanced-measurement-enabled",p="enhanced-measurement-should-dismiss-activation-banner",h="analyticsAccountCreate",m="analyticsCustomDimensionsCreate",f="https://www.googleapis.com/auth/analytics.edit",k="dashboardAllTrafficWidgetDimensionName",_="dashboardAllTrafficWidgetDimensionColor",y="dashboardAllTrafficWidgetDimensionValue",v="dashboardAllTrafficWidgetActiveRowIndex",x="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"}},S={ADD_TO_CART:"add_to_cart",PURCHASE:"purchase",SUBMIT_LEAD_FORM:"submit_lead_form",GENERATE_LEAD:"generate_lead",CONTACT:"contact"},A=[S.CONTACT,S.GENERATE_LEAD,S.SUBMIT_LEAD_FORM],j={"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",I="audienceTileCustomDimensionCreate",w="audience-selection-panel-expirable-new-badge-",E="audience",T="customDimension",M="property",C=[E,T,M]},72545:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},e),s||(s=n.createElement("path",{fill:"currentColor",d:"M14 1.41 12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7z"})))},73589:(e,t,i)=>{i.d(t,{CX:()=>n,Py:()=>r,SM:()=>s,kj:()=>o});const s="adsense-connect-cta",n="adsense-connect-cta-tooltip-state",o="adsense-ga4-top-earnings-notice",r="adsense"},73874:(e,t,i)=>{i.d(t,{Ay:()=>a,Oo:()=>o,oE:()=>r});var s=i(24558),n=i(77766);const o=s.jU,r=s.f7;function a(){const e=(0,n.A)();return e===s.jU||e===s.Ax?o:e===s.f7||e===s.Is?r:null}},74179:(e,t,i)=>{i.d(t,{Ap:()=>d,IY:()=>l,J4:()=>h,LE:()=>a,O0:()=>c,OT:()=>u,RR:()=>g,Tt:()=>p,_L:()=>r,f2:()=>n,jb:()=>o,wl:()=>s});const s="modules/adsense",n=1,o="READY",r="NEEDS_ATTENTION",a="REQUIRES_REVIEW",l="GETTING_READY",c="background-submit-suspended",g="adsenseAdBlockingFormSettings",d="googlesitekit-ad-blocking-recovery-setup-create-message-cta-clicked",u="ad-blocking-recovery-notification",p={TAG_PLACED:"tag-placed",SETUP_CONFIRMED:"setup-confirmed"},h={PLACE_TAGS:0,CREATE_MESSAGE:1,COMPLETE:2}},74595:(e,t,i)=>{i.d(t,{wA:()=>a.A,ws:()=>u.w,WM:()=>r.A});var s=i(29725),n=i(56805),o=i(78913),r=i(35470),a=i(63737),l=i(44319),c=i(31170),g=i(30043),d=i(66293),u=i(1102),p=i(47121),h=i(97241);const m=(0,s.I)({},i.g.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=o.b,m.createRegistrySelector=o.N,m.useSelect=r.A,m.useDispatch=a.A,m.useRegistry=l.A,m.withSelect=c.A,m.withDispatch=g.A,m.RegistryProvider=d.Ay;const f=m;void 0===i.g.googlesitekit&&(i.g.googlesitekit={}),i.g.googlesitekit.data=f},74995:(e,t,i)=>{i.d(t,{A:()=>Notifications});var s=i(62688),n=i.n(s),o=i(50539),r=i(77766),a=i(71423),l=i(53137),c=i(50532),g=i.n(c),d=i(43569),u=i(62540);const p=g()(e=>({id:e,Notification:h(e)(d.A)}));function h(e){return t=>{function WithNotificationID(i){return(0,u.jsx)(t,{...i,id:e})}return WithNotificationID.displayName="WithNotificationID",(t.displayName||t.name)&&(WithNotificationID.displayName+=`(${t.displayName||t.name})`),WithNotificationID}}function Notifications({areaSlug:e,groupID:t=l.He.DEFAULT}){const i=(0,r.A)(),s=(0,o.useSelect)(e=>e(a.D).getQueuedNotifications(i,t));if(void 0===s?.[0]||s?.[0]?.areaSlug!==e)return null;const{id:n,Component:c}=s[0],g={...p(n)};return(0,u.jsx)(c,{...g})}Notifications.propTypes={viewContext:n().string,areaSlug:n().string}},75487:(e,t,i)=>{i.d(t,{fh:()=>Cell,xA:()=>u,fI:()=>g});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(62540);function Cell(e){const{className:t,alignTop:i,alignMiddle:s,alignBottom:n,alignRight:o,alignLeft:l,smAlignRight:c,mdAlignRight:g,lgAlignRight:d,smSize:u,smStart:p,smOrder:h,mdSize:m,mdStart:f,mdOrder:k,lgSize:_,lgStart:y,lgOrder:v,size:x,children:b,...S}=e;return(0,a.jsx)("div",{...S,className:r()(t,"mdc-layout-grid__cell",{"mdc-layout-grid__cell--align-top":i,"mdc-layout-grid__cell--align-middle":s,"mdc-layout-grid__cell--align-bottom":n,"mdc-layout-grid__cell--align-right":o,"mdc-layout-grid__cell--align-left":l,"mdc-layout-grid__cell--align-right-phone":c,"mdc-layout-grid__cell--align-right-tablet":g,"mdc-layout-grid__cell--align-right-desktop":d,[`mdc-layout-grid__cell--span-${x}`]:12>=x&&x>0,[`mdc-layout-grid__cell--span-${_}-desktop`]:12>=_&&_>0,[`mdc-layout-grid__cell--start-${y}-desktop`]:12>=y&&y>0,[`mdc-layout-grid__cell--order-${v}-desktop`]:12>=v&&v>0,[`mdc-layout-grid__cell--span-${m}-tablet`]:8>=m&&m>0,[`mdc-layout-grid__cell--start-${f}-tablet`]:8>=f&&f>0,[`mdc-layout-grid__cell--order-${k}-tablet`]:8>=k&&k>0,[`mdc-layout-grid__cell--span-${u}-phone`]:4>=u&&u>0,[`mdc-layout-grid__cell--start-${p}-phone`]:4>=p&&p>0,[`mdc-layout-grid__cell--order-${h}-phone`]:4>=h&&h>0}),children:b})}Cell.propTypes={smSize:n().number,smStart:n().number,smOrder:n().number,mdSize:n().number,mdStart:n().number,mdOrder:n().number,lgSize:n().number,lgStart:n().number,lgOrder:n().number,size:n().number,alignTop:n().bool,alignMiddle:n().bool,alignBottom:n().bool,alignRight:n().bool,alignLeft:n().bool,smAlignRight:n().bool,mdAlignRight:n().bool,lgAlignRight:n().bool,className:n().string,children:n().node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,smOrder:0,mdSize:0,mdStart:0,mdOrder:0,lgSize:0,lgStart:0,lgOrder:0};var l=i(63696);const c=(0,l.forwardRef)(({className:e,children:t,...i},s)=>(0,a.jsx)("div",{ref:s,className:r()("mdc-layout-grid__inner",e),...i,children:t}));c.displayName="Row",c.propTypes={className:n().string,children:n().node},c.defaultProps={className:""};const g=c,d=(0,l.forwardRef)(({alignLeft:e,fill:t,className:i,children:s,collapsed:n,...o},l)=>(0,a.jsx)("div",{className:r()("mdc-layout-grid",i,{"mdc-layout-grid--align-left":e,"mdc-layout-grid--collapsed":n,"mdc-layout-grid--fill":t}),...o,ref:l,children:s}));d.displayName="Grid",d.propTypes={alignLeft:n().bool,fill:n().bool,className:n().string,collapsed:n().bool,children:n().node},d.defaultProps={className:""};const u=d},77513:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(62688),n=i.n(s),o=i(90007),r=i(12850),a=i(62540);function NotificationFromServer({id:e,titleIcon:t,title:i,content:s,ctaLabel:n,ctaTarget:l,ctaURL:c,dismissible:g,dismissLabel:d,learnMoreLabel:u,learnMoreURL:p,onCTAClick:h,onDismissClick:m,gaTrackingEventArgs:f}){const k={expiresInSeconds:r.Jg};return(0,a.jsx)(o.A,{notificationID:e,type:o.Q.WARNING,titleIcon:t||void 0,title:i,description:s,learnMoreLink:p?{label:u,href:p}:void 0,ctaButton:{label:n,href:c,target:l,onClick:h,dismissOptions:k},dismissButton:g?{label:d,onClick:m,dismissOptions:k}:void 0,gaTrackingEventArgs:f})}NotificationFromServer.propTypes={id:n().string.isRequired,title:n().string.isRequired,content:n().node,ctaLabel:n().string,ctaTarget:n().string,ctaURL:n().string,dismissible:n().bool,dismissLabel:n().string,learnMoreLabel:n().string,learnMoreURL:n().string,onCTAClick:n().func,onDismissClick:n().func,gaTrackingEventArgs:n().object};const l=NotificationFromServer},77766:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(63696),n=i(61991);const __WEBPACK_DEFAULT_EXPORT__=function(){return(0,s.useContext)(n.Ay)}},77967:(e,t,i)=>{i.d(t,{A:()=>ErrorNotice});var s=i(62688),n=i.n(s),o=i(63696),r=i(82871),a=i(84024),l=i(50539),c=i(67150),g=i(80035),d=i(12850),u=i(62540);function ErrorNotice({className:e,error:t,hasButton:i=!1,storeName:s,message:n=t.message,noPrefix:p=!1,skipRetryMessage:h,hideIcon:m=!1}){const f=(0,l.useDispatch)(),k=(0,l.useSelect)(e=>s?e(s).getSelectorDataForError(t):null),_=(0,o.useCallback)(()=>{f(k.storeName).invalidateResolution(k.name,k.args)},[f,k]);if(!n||(0,c.G)(t))return null;const y=i&&(0,c.vl)(t,k);let v=n;i||h||(v=(0,r.sprintf)(/* translators: %s: Error message from Google API. */ /* translators: %s: Error message from Google API. */
(0,r.__)("%s (Please try again.)","google-site-kit"),v)),p||(v=(0,r.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */
(0,r.__)("Error: %s","google-site-kit"),v));const x=t?.data?.reconnectURL;x&&(0,a.m)(x)&&(v=(0,r.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */ /* translators: 1: Original error message 2: Reconnect URL */
(0,r.__)('%1$s To fix this, <a href="%2$s">redo the plugin setup</a>.',"google-site-kit"),v,x));return(0,u.jsx)(g.A,{className:e,type:g.A.TYPES.ERROR,description:(0,u.jsx)("span",{dangerouslySetInnerHTML:(0,d.p9)(v,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:y?{label:(0,r.__)("Retry","google-site-kit"),onClick:_}:void 0,hideIcon:m})}ErrorNotice.propTypes={className:n().string,error:n().shape({message:n().string}),hasButton:n().bool,storeName:n().string,message:n().string,noPrefix:n().bool,skipRetryMessage:n().bool,hideIcon:n().bool}},78340:(e,t,i)=>{i.d(t,{s:()=>s});const s="core/forms"},79829:(e,t,i)=>{i.d(t,{Eo:()=>d,JK:()=>m,K5:()=>h,jq:()=>p,mK:()=>g});var s=i(17243),n=i(50532),o=i.n(n),r=i(82871);function a(e,t={}){const{formatUnit:i,formatDecimal:s}=function(e,t={}){const{hours:i,minutes:s,seconds:n}=l(e);return{hours:i,minutes:s,seconds:n,formatUnit(){const{unitDisplay:o="short",...a}=t,l={unitDisplay:o,...a,style:"unit"};return 0===e?p(n,{...l,unit:"second"}):(0,r.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,r._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),n?p(n,{...l,unit:"second"}):"",s?p(s,{...l,unit:"minute"}):"",i?p(i,{...l,unit:"hour"}):"").trim()},formatDecimal(){const t=(0,r.sprintf)(
// translators: %s: number of seconds with "s" as the abbreviated unit.
// translators: %s: number of seconds with "s" as the abbreviated unit.
(0,r.__)("%ds","google-site-kit"),n);if(0===e)return t;const o=(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"),s),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:"",s?o:"",i?a:"").trim()}}}(e,t);try{return i()}catch{return s()}}function l(e){e=parseInt(e,10),Number.isNaN(e)&&(e=0);return{hours:Math.floor(e/60/60),minutes:Math.floor(e/60%60),seconds:Math.floor(e%60)}}function c(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e}function g(e){let t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:(0,s.isPlainObject)(e)&&(t={...e}),t}function d(e,t={}){e=(0,s.isFinite)(e)?e:Number(e),(0,s.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const i=g(t),{style:n="metric"}=i;return"metric"===n?function(e){const t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?(0,r.sprintf)(
// translators: %s: an abbreviated number in millions.
// translators: %s: an abbreviated number in millions.
(0,r.__)("%sM","google-site-kit"),p(c(e),e%10==0?{}:t)):1e4<=e?(0,r.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,r.__)("%sK","google-site-kit"),p(c(e))):1e3<=e?(0,r.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,r.__)("%sK","google-site-kit"),p(c(e),e%10==0?{}:t)):p(e,{signDisplay:"never",maximumFractionDigits:1})}(e):"duration"===n?a(e,i):"durationISO"===n?function(e){let{hours:t,minutes:i,seconds:s}=l(e);return s=("0"+s).slice(-2),i=("0"+i).slice(-2),t=("0"+t).slice(-2),"00"===t?`${i}:${s}`:`${t}:${i}:${s}`}(e):p(e,i)}const u=o()(console.warn);function p(e,t={}){const{locale:i=m(),...s}=t;try{return new Intl.NumberFormat(i,s).format(e)}catch(t){u(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(i)}, ${JSON.stringify(s)} ).format( ${typeof e} )`,t.message)}const n={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},o=["signDisplay","compactDisplay"],r={};for(const[e,t]of Object.entries(s))n[e]&&t===n[e]||o.includes(e)||(r[e]=t);try{return new Intl.NumberFormat(i,r).format(e)}catch{return new Intl.NumberFormat(i).format(e)}}function h(e,t={}){const{locale:i=m(),style:s="long",type:n="conjunction"}=t;if(Intl.ListFormat){return new Intl.ListFormat(i,{style:s,type:n}).format(e)}
/* translators: used between list items, there is a space after the comma. */const o=(0,r.__)(", ","google-site-kit");return e.join(o)}function m(e=i.g){const t=(0,s.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}},80035:(e,t,i)=>{i.d(t,{A:()=>y});var s,n=i(62688),o=i.n(n),r=i(4452),a=i.n(r),l=i(63696),c=i(19793);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},g.apply(null,arguments)}const warning_notice=e=>l.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=l.createElement("path",{fill:"currentColor",d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1m0 14a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m-1-2h2V6h-2z"})));var d=i(42343),u=i(49655),p=i(62540);const h={[u.Q.NEW]:d.A,[u.Q.SUCCESS]:c.A,[u.Q.INFO]:warning_notice,[u.Q.WARNING]:warning_notice,[u.Q.ERROR]:warning_notice};function Icon({type:e}){const t=h[e]||warning_notice;return(0,p.jsx)(t,{width:24,height:24})}function Title({className:e,children:t}){return(0,p.jsx)("p",{className:a()("googlesitekit-notice__title",e),children:t})}function Description({className:e,children:t}){return(0,p.jsx)("p",{className:a()("googlesitekit-notice__description",e),children:t})}Icon.propTypes={type:o().oneOf(Object.values(u.Q))},Title.propTypes={className:o().string,children:o().node},Description.propTypes={className:o().string,children:o().node};var m=i(49383),f=i(83366);function CTAButton({label:e,disabled:t,inProgress:i,onClick:s,href:n,external:o,hideExternalIndicator:r}){let a;return o&&!r&&(a=(0,p.jsx)(f.A,{width:14,height:14})),(0,p.jsx)(m.SpinnerButton,{className:"googlesitekit-notice__cta",disabled:t,isSaving:i,onClick:s,href:n,target:o?"_blank":"_self",trailingIcon:a,children:e})}CTAButton.propTypes={label:o().string.isRequired,disabled:o().bool,inProgress:o().bool,onClick:o().func,href:o().string,external:o().bool,hideExternalIndicator:o().bool};var k=i(82871);function DismissButton({label:e=(0,k.__)("Got it","google-site-kit"),onClick:t,disabled:i}){return(0,p.jsx)(m.Button,{onClick:t,disabled:i,tertiary:!0,children:e})}DismissButton.propTypes={label:o().string,onClick:o().func.isRequired,disabled:o().bool};const _=(0,l.forwardRef)(({className:e,title:t,description:i,dismissButton:s,ctaButton:n,type:o=u.Q.INFO,children:r,hideIcon:l},c)=>(0,p.jsxs)("div",{ref:c,className:a()("googlesitekit-notice",`googlesitekit-notice--${o}`,e),children:[!l&&(0,p.jsx)("div",{className:"googlesitekit-notice__icon",children:(0,p.jsx)(Icon,{type:o})}),(0,p.jsxs)("div",{className:"googlesitekit-notice__content",children:[t&&(0,p.jsx)(Title,{children:t}),i&&(0,p.jsx)(Description,{children:i})]}),(s?.label||s?.onClick||n?.label&&(n?.onClick||n?.href)||r)&&(0,p.jsxs)("div",{className:"googlesitekit-notice__action",children:[r,(s?.label||s?.onClick)&&(0,p.jsx)(DismissButton,{label:s.label,onClick:s.onClick,disabled:s.disabled}),n?.label&&(n?.onClick||n?.href)&&(0,p.jsx)(CTAButton,{label:n.label,onClick:n.onClick,inProgress:n.inProgress,disabled:n.disabled,href:n.href,external:n.external,hideExternalIndicator:n.hideExternalIndicator})]})]}));_.TYPES=u.Q,_.propTypes={className:o().string,title:o().oneOfType([o().string,o().object]),description:o().node,type:o().oneOf(Object.values(u.Q)),dismissButton:o().shape(DismissButton.propTypes),ctaButton:o().shape({...CTAButton.propTypes,label:o().string}),children:o().node,hideIcon:o().bool};const y=_},81779:(e,t,i)=>{i.d(t,{DZ:()=>b,RL:()=>x,SG:()=>v,Sw:()=>u,TF:()=>_,Uv:()=>h,X_:()=>o,Yb:()=>g,ZT:()=>r,bF:()=>c,dL:()=>f,f8:()=>s,gV:()=>a,iP:()=>n,k:()=>m,oC:()=>k,pJ:()=>l,uP:()=>d,um:()=>y,ze:()=>p});const s="disapproved",n="graylisted",o="pending",r="approved",a="needs-attention",l="ready",c="client-requires-review",g="client-getting-ready",d="none",u="multiple",p="no-client",h="added",m="needs-attention",f="requires-review",k="getting-ready",_="ready",y="ready-no-auto-ads",v="none",x=[s,n,o,r];function b(e){return e===n||e===o}},82046:(e,t,i)=>{i.d(t,{C:()=>o,p:()=>n});var s=i(15210);function n(e,t={}){return{__html:s.O.sanitize(e,t)}}function o(e){const t="object"==typeof e?e.toString():e;return t?.replace?.(/\/+$/,"")}},82167:(e,t,i)=>{i.d(t,{A:()=>OptIn});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(63696),l=i(13606),c=i(82871),g=i(50539),d=i(49383),u=i(58116),p=i(89318),h=i(20898),m=i(77766),f=i(50787),k=i(62540);function OptIn({id:e="googlesitekit-opt-in",name:t="optIn",className:i,trackEventCategory:s,alignLeftCheckbox:n=!1}){const[o,_]=(0,a.useState)(),y=(0,g.useSelect)(e=>e(u.oR).isTrackingEnabled()),v=(0,g.useSelect)(e=>e(u.oR).getErrorForAction("setTrackingEnabled",[!y])),{setTrackingEnabled:x}=(0,g.useDispatch)(u.oR),b=(0,m.A)(),S=(0,a.useCallback)(async e=>{const{response:t,error:i}=await x(e);i?_(y):((0,p.M9)(t.enabled),t.enabled&&(0,p.sx)(s||b,"tracking_optin"))},[y,x,s,b]);(0,a.useEffect)(()=>{void 0!==y&&void 0===o&&_(y)},[y,o]);const A=(0,f.d)(S,300),j=(0,a.useCallback)(e=>{const t=e.target.checked;_(t),A(t)},[A]);return(0,k.jsxs)("div",{className:r()("googlesitekit-opt-in",i),children:[(0,k.jsx)(d.Checkbox,{id:e,name:t,value:"1",checked:o,onChange:j,loading:void 0===y,alignLeft:n,children:(0,l.A)((0,c.__)("<span>Help us improve Site Kit by sharing anonymous usage data.</span> <span>All collected data is treated in accordance with the <a>Google Privacy Policy.</a></span>","google-site-kit"),{a:(0,k.jsx)(h.A,{href:"https://policies.google.com/privacy",external:!0},"link"),span:(0,k.jsx)("span",{})})}),v?.message&&(0,k.jsx)("div",{className:"googlesitekit-error-text",children:v?.message})]})}OptIn.propTypes={id:n().string,name:n().string,className:n().string,trackEventCategory:n().string,alignLeftCheckbox:n().bool}},82871:e=>{e.exports=googlesitekit.i18n},83366:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),s||(s=n.createElement("path",{d:"M5 21a2 2 0 0 1-1.425-.575A2 2 0 0 1 3 19V5q0-.825.575-1.4Q4.175 3 5 3h7v2H5v14h14v-7h2v7q0 .825-.6 1.425Q19.825 21 19 21zm4.7-5.3-1.4-1.4L17.6 5H14V3h7v7h-2V6.4z"})))},83945:(e,t,i)=>{i.d(t,{A:()=>AdSenseConnectCTA});var s=i(63560),n=i(62688),o=i.n(n),r=i(82871),a=i(63696),l=i(13606),c=i(50539),g=i(49383),d=i(74179),u=i(73589),p=i(55527),h=i(93896),m=i(37226),f=i(45472),k=i(21134),_=i(12850),y=i(4452),v=i.n(y),x=i(23224),b=i(71032),S=i(62540);const A=(0,a.lazy)(()=>i.e(201).then(i.bind(i,37201))),j=(0,a.lazy)(()=>i.e(640).then(i.bind(i,96640))),N=(0,a.lazy)(()=>i.e(379).then(i.bind(i,87379)));function LazyContentSVG({stage:e}){const t={0:(0,S.jsx)(A,{}),1:(0,S.jsx)(j,{}),2:(0,S.jsx)(N,{})};return t[e]?(0,S.jsx)(b.A,{errorMessage:(0,r.__)("Failed to load graphic","google-site-kit"),children:t[e]}):null}function ContentSVG({stage:e}){return(0,S.jsx)(a.Suspense,{fallback:(0,S.jsx)(x.A,{width:"100%",height:"100%"}),children:(0,S.jsx)(LazyContentSVG,{stage:e})})}ContentSVG.propTypes={stage:n.PropTypes.oneOf([0,1,2]).isRequired};var I=i(93431),w=i(15167),E=i(59323);const T=(0,a.forwardRef)(({stage:e,mode:t,onAnimationEnd:i},s)=>{const n=[{title:(0,r.__)("Earn money from your site","google-site-kit"),description:(0,r.__)("Focus on writing good content and let AdSense help you make it profitable","google-site-kit")},{title:(0,r.__)("Save time with automated ads","google-site-kit"),description:(0,r.__)("Auto ads automatically place and optimize your ads for you so you don't have to spend time doing it yourself","google-site-kit")},{title:(0,r.__)("Youre in control","google-site-kit"),description:(0,r.__)("Block ads you don't like, customize where ads appear, and choose which types fit your site best","google-site-kit")}],o={smSize:4,mdSize:4,lgSize:6};return(0,S.jsxs)(a.Fragment,{children:[(0,S.jsx)(p.fI,{children:(0,S.jsxs)(p.fh,{size:12,children:[(0,S.jsx)("p",{className:"googlesitekit-setup__intro-title",children:(0,r.__)("Connect Service","google-site-kit")}),(0,S.jsxs)("div",{className:"googlesitekit-setup-module",children:[(0,S.jsx)("div",{className:"googlesitekit-setup-module__logo",children:(0,S.jsx)(I.A,{width:"33",height:"33"})}),(0,S.jsx)(w.A,{as:"h3",className:"googlesitekit-setup-module__title",size:"small",type:"headline",children:(0,r._x)("AdSense","Service name","google-site-kit")})]})]})}),(0,S.jsxs)(p.fI,{ref:s,children:[(0,S.jsxs)(p.fh,{...o,smOrder:2,mdOrder:1,className:"googlesitekit-setup-module--adsense__stage-captions",children:[(0,S.jsx)("ul",{className:"googlesitekit-setup-module--adsense__stage-caption-container",children:n.map(({title:i,description:s},n)=>(0,S.jsxs)("li",{className:v()("googlesitekit-setup-module--adsense__stage-caption",{[`googlesitekit-setup-module--adsense__stage-caption--current--${t}`]:e===n}),children:[(0,S.jsx)("div",{className:"googlesitekit-setup-module--adsense__stage-caption-indicator"}),(0,S.jsxs)("div",{children:[(0,S.jsx)(w.A,{as:"h4",size:"large",type:"title",children:i}),(0,S.jsx)(E.A,{children:s})]})]},n))}),(0,S.jsx)("ul",{className:"googlesitekit-setup-module--adsense__stage-indicator",children:n.map((i,s)=>(0,S.jsx)("li",{className:v()({[`googlesitekit-setup-module--adsense__stage-indicator--current--${t}`]:e===s})},s))})]}),(0,S.jsx)(p.fh,{...o,smOrder:1,mdOrder:2,className:"googlesitekit-setup-module--adsense__stage-images",children:(0,S.jsx)("div",{className:"googlesitekit-setup-module--adsense__stage-image-container",children:n.map((s,n)=>(0,S.jsx)("div",{className:v()("googlesitekit-setup-module--adsense__stage-image",{[`googlesitekit-setup-module--adsense__stage-image--current--${t}`]:e===n}),onAnimationEnd:e===n?i:void 0,children:(0,S.jsx)(ContentSVG,{stage:n})},n))})})]})]})});T.propTypes={stage:o().oneOf([0,1,2]),mode:o().oneOf(["static","enter","leave"]),onAnimationEnd:o().func};const M=T,C=0,D=2;function ContentAutoUpdate({hasBeenInView:e}){const[{stage:t,mode:i},s]=(0,a.useState)({stage:0,mode:"static"});return(0,a.useEffect)(()=>{if(!e)return()=>{};const t=setTimeout(()=>{s({stage:0,mode:"leave"})},7e3);return()=>{clearTimeout(t)}},[e]),(0,S.jsx)(M,{stage:t,mode:i,onAnimationEnd:function(){"enter"===i?s({stage:t,mode:"leave"}):"leave"===i&&s({stage:t===D?C:t+1,mode:"enter"})}})}ContentAutoUpdate.propTypes={hasBeenInView:o().bool.isRequired};var R=i(44174),O=i(77766);function AdSenseConnectCTA({onDismissModule:e}){const{navigateTo:t}=(0,c.useDispatch)(f.M),{activateModule:i}=(0,c.useDispatch)(m.i),{setInternalServerError:n}=(0,c.useDispatch)(h.O4),o=(0,O.A)(),y=(0,a.useRef)(),[v,x]=(0,a.useState)(!1),b=(0,s.A)(y,{threshold:.25}),A=!!b?.intersectionRatio;(0,a.useEffect)(()=>{A&&!v&&((0,_.sx)(`${o}_adsense-cta-widget`,"widget_view"),x(!0))},[A,o,v]);const j=(0,c.useSelect)(e=>e(d.wl).getAdminReauthURL()),N=(0,c.useSelect)(e=>e(m.i).isModuleActive(u.Py)),I=(0,c.useSelect)(e=>e(m.i).isModuleConnected(u.Py)),w=(0,c.useSelect)(e=>!!e(m.i).isFetchingSetModuleActivation(u.Py,!0)||!!j&&e(f.M).isNavigatingTo(j)),T=(0,a.useCallback)(async()=>{const{response:e,error:s}=await i(u.Py);return s?(n({id:"setup-module-error",description:s.message}),null):(await(0,_.sx)(`${o}_adsense-cta-widget`,"activate_module",u.Py),await(0,k.SO)("module_setup",u.Py,{ttl:300}),t(e.moduleReauthURL),null)},[i,t,n,o]),M=(0,a.useCallback)(()=>t(j),[j,t]),C=(0,a.useCallback)(()=>{(0,_.sx)(`${o}_adsense-cta-widget`,"dismiss_widget"),e()},[e,o]),D={smSize:4,mdSize:4,lgSize:6};return(0,S.jsx)("section",{ref:y,className:"googlesitekit-setup__wrapper googlesitekit-setup__wrapper--adsense-connect",children:(0,S.jsxs)(p.xA,{children:[(0,S.jsx)(ContentAutoUpdate,{hasBeenInView:v}),(0,S.jsxs)(p.fI,{children:[(0,S.jsx)(p.fh,{...D,children:(0,S.jsxs)("div",{className:"googlesitekit-setup-module__action",children:[!N&&(0,S.jsx)(g.SpinnerButton,{onClick:T,isSaving:w,disabled:w,children:(0,r.__)("Connect now","google-site-kit")}),N&&!I&&(0,S.jsx)(g.SpinnerButton,{onClick:M,isSaving:w,children:(0,r.__)("Complete setup","google-site-kit")}),(0,S.jsx)(g.Button,{onClick:C,tertiary:!0,children:(0,r.__)("Maybe later","google-site-kit")})]})}),(0,S.jsx)(p.fh,{...D,className:"googlesitekit-setup-module__footer-text",children:(0,S.jsx)(E.A,{children:(0,l.A)((0,r.__)("AdSense accounts are <a>subject to review and approval</a> by the Google AdSense team","google-site-kit"),{a:(0,S.jsx)(R.A,{path:"/adsense/answer/9724",external:!0,hideExternalIndicator:!0})})})})]})]})})}AdSenseConnectCTA.propTypes={onDismissModule:o().func.isRequired}},84385:(e,t,i)=>{i.d(t,{A:()=>IconWrapper});var s=i(62688),n=i.n(s),o=i(62540);function IconWrapper({children:e,marginLeft:t,marginRight:i}){return(0,o.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}},84826:(e,t,i)=>{i.d(t,{A:()=>HelpMenu});var s,n=i(62688),o=i.n(n),r=i(21795),a=i(63696),l=i(19266),c=i(82871),g=i(50539),d=i(49383);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},u.apply(null,arguments)}const p=e=>a.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),s||(s=a.createElement("path",{fill:"currentColor",d:"M9 16h2v-2H9zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})));var h=i(99235),m=i(12850),f=i(20898),k=i(77766),_=i(62540);function HelpMenuLink({children:e,href:t,gaEventLabel:i}){const s=(0,k.A)(),n=(0,a.useCallback)(async()=>{i&&await(0,m.sx)(`${s}_headerbar_helpmenu`,"click_outgoing_link",i)},[i,s]);return(0,_.jsx)("li",{className:"googlesitekit-help-menu-link mdc-list-item",role:"none",children:(0,_.jsx)(f.A,{className:"mdc-list-item__text",href:t,role:"menuitem",onClick:n,external:!0,hideExternalIndicator:!0,children:e})})}HelpMenuLink.propTypes={children:o().node.isRequired,href:o().string.isRequired,gaEventLabel:o().string};const y=HelpMenuLink;var v=i(37226),x=i(93896),b=i(73589);function HelpMenu({children:e}){const[t,i]=(0,a.useState)(!1),s=(0,a.useRef)(),n=(0,k.A)();(0,r.A)(s,()=>i(!1)),(0,h.l)([l._f,l.wn],s,()=>i(!1));const o=(0,g.useSelect)(e=>e(v.i).isModuleActive(b.Py)),u=(0,a.useCallback)(()=>{t||(0,m.sx)(`${n}_headerbar`,"open_helpmenu"),i(!t)},[t,n]),f=(0,a.useCallback)(()=>{i(!1)},[]),S=(0,g.useSelect)(e=>e(x.O4).getDocumentationLinkURL("fix-common-issues"));return(0,_.jsxs)("div",{ref:s,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,_.jsx)(d.Button,{"aria-controls":"googlesitekit-help-menu","aria-expanded":t,"aria-label":(0,c.__)("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,_.jsx)(p,{width:"20",height:"20"}),onClick:u,tooltipEnterDelayInMS:500,text:!0}),(0,_.jsxs)(d.Menu,{className:"googlesitekit-width-auto",menuOpen:t,id:"googlesitekit-help-menu",onSelected:f,children:[e,(0,_.jsx)(y,{gaEventLabel:"fix_common_issues",href:S,children:(0,c.__)("Fix common issues","google-site-kit")}),(0,_.jsx)(y,{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/",children:(0,c.__)("Read help docs","google-site-kit")}),(0,_.jsx)(y,{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/",children:(0,c.__)("Get support","google-site-kit")}),o&&(0,_.jsx)(y,{gaEventLabel:"adsense_help",href:"https://support.google.com/adsense/",children:(0,c.__)("Get help with AdSense","google-site-kit")})]})]})}HelpMenu.propTypes={children:o().node}},85149:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n,o=i(63696);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-labelledby":"warning-title warning-desc",viewBox:"0 0 24 24"},e),s||(s=o.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),n||(n=o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})))},86134:(e,t,i)=>{i.d(t,{N$:()=>n,aO:()=>o,qB:()=>s});const s={BOXES:"boxes",COMPOSITE:"composite"},n={QUARTER:"quarter",HALF:"half",FULL:"full"},o="core/widgets"},87848:(e,t,i)=>{var s=i(131),n=i(78325),o=i(24558),r=i(46034),a=i(12701),l=i(62540);(0,s.A)(()=>{const e=document.getElementById("js-googlesitekit-ad-blocking-recovery");e&&(0,n.render)((0,l.jsx)(a.A,{viewContext:o.Y$,children:(0,l.jsx)(r.RR,{})}),e)})},88933:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 43 44"},e),s||(s=n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:"#FBBC05",d:"m2.253 12.252 7.399 5.658A13 13 0 0 0 9 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22 22 0 0 1 0 22c0-3.506.81-6.814 2.253-9.748"}),n.createElement("path",{fill:"#EA4335",d:"m9.652 17.91-7.4-5.658A21.94 21.94 0 0 1 22 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91"}),n.createElement("path",{fill:"#34A853",d:"m2.25 31.742 7.396-5.67A12.975 12.975 0 0 0 22 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.94 21.94 0 0 1 2.25 31.742"}),n.createElement("path",{fill:"#4285F4",d:"m36.34 38.52-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52"}))))},89318:(e,t,i)=>{i.d(t,{M9:()=>j,sx:()=>S,BI:()=>A});var s=i(17243);const n="_googlesitekitDataLayer",o="data-googlesitekit-gtag";function r(e){return function(){e[n]=e[n]||[],e[n].push(arguments)}}var a=i(65214);const l={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};const{activeModules:c=[],isSiteKitScreen:g,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:h,isAuthenticated:m,userRoles:f}=i.g._googlesitekitTrackingData||{},{GOOGLESITEKIT_VERSION:k}=i.g,_={activeModules:c,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:h,isSiteKitScreen:g,userRoles:f,isAuthenticated:m,pluginVersion:k},{enableTracking:y,disableTracking:v,isTrackingEnabled:x,initializeSnippet:b,trackEvent:S,trackEventOnce:A}=function(e,t=i.g,c=i.g){const g={...l,...e};g.referenceSiteURL&&(g.referenceSiteURL=g.referenceSiteURL.toString().replace(/\/+$/,""));const d=function(e,t){const s=r(t);let l;const{activeModules:c,referenceSiteURL:g,userIDHash:d,userRoles:u=[],isAuthenticated:p,pluginVersion:h}=e;return function(){const{document:t}=i.g;if(void 0===l&&(l=!!t.querySelector(`script[${o}]`)),l)return!1;l=!0;const r=u?.length?u.join(","):"";s("js",new Date),s("config",e.trackingID,{groups:"site_kit",send_page_view:e.isSiteKitScreen,domain:g,plugin_version:h||"",enabled_features:Array.from(a.t).join(","),active_modules:c.join(","),authenticated:p?"1":"0",user_properties:{user_roles:r,user_identifier:d}});const m=t.createElement("script");return m.setAttribute(o,""),m.async=!0,m.src=`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${n}`,t.head.appendChild(m),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${n}`}}}(g,t),u=function(e,t,i,s){const n=r(t);return async function(t,o,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(){s.console.warn(`Tracking event "${o}" (category "${t}") took too long to fire.`),e()},1e3);function r(){clearTimeout(i),e()}n("event",o,{...c,event_callback:r}),s._gaUserPrefs?.ioo?.()&&r()})}}(g,t,d,c),p={};return{enableTracking:function(){g.trackingEnabled=!0},disableTracking:function(){g.trackingEnabled=!1},initializeSnippet:d,isTrackingEnabled:function(){return!!g.trackingEnabled},trackEvent:u,trackEventOnce:function(...e){const t=JSON.stringify(e);p[t]||(p[t]=(0,s.once)(u)),p[t](...e)}}}(_);function j(e){e?y():v()}g&&d&&b()},89362:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(63696);const __WEBPACK_DEFAULT_EXPORT__=function(e,t){const[n,o]=(0,s.useState)(null);return(0,s.useEffect)(()=>{if(e.current&&"function"==typeof i.g.IntersectionObserver){function s(e){o(e[e.length-1])}const n=new i.g.IntersectionObserver(s,t);return n.observe(e.current),()=>{o(null),n.disconnect()}}return()=>{}},[e.current,t.threshold,t.root,t.rootMargin]),n}},90007:(e,t,i)=>{i.d(t,{Q:()=>_,A:()=>BannerNotification});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(50539),l=i(71423),c=i(7070),g=i(7184),d=i(30823),u=i(3782),p=i(29584),h=i(55527);const m="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYwIiBoZWlnaHQ9IjIzNCIgdmlld0JveD0iMCAwIDM2MCAyMzQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03My4xMzAyIDE3MC42NjhDODkuMzcxOSAxODkuOTkgMTE1LjQ3NiAxOTUuMTEgMTMxLjg2NSAxODkuOTkxQzE1My4yNDYgMTgzLjMxMiAxNjYuNjcyIDE2Mi45NjcgMTg1LjUwMiAxNjAuNTQ0QzIwNC4zMzMgMTU4LjEyMSAyMTUuNDA2IDE2OC43MDYgMjM1Ljg5NyAxNzAuMjMzQzI1Ni4zODkgMTcxLjc2IDI4MS4yMzIgMTY3LjYzIDI5Mi43OTEgMTM3LjkzNUMzMDQuMzQ5IDEwOC4yMzkgMjkzLjk0OCA3OC4yMzIxIDI3MC4yMTQgNjQuMzYxNUMyNDYuNDgxIDUwLjQ5MDggMjMzLjI3MSA2Ni43Njk0IDIxMC41NjQgNjguMTIzN0MxODcuODU4IDY5LjQ3NzkgMTc4LjAyMyA0NS44NTI4IDE2MS4wMjMgNDQuMzUyOEMxNDQuMDIzIDQyLjg1MjggMTM0LjUyMyA0NS44NTMgMTI0LjUyMyA1OC44NTI5QzExNC41MjMgNzEuODUyOCAxMjAuMzcxIDg1Ljc2NDEgODkuNTIzNSA5OS44NTNDNTguNjc1OCAxMTMuOTQyIDU2Ljg4ODUgMTUxLjM0NSA3My4xMzAyIDE3MC42NjhaIiBmaWxsPSIjRkZFNEIxIi8+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIwX2RfMjcwNV8xNzY4NikiPgo8cmVjdCB4PSIxMTYuNTIzIiB5PSI1Ny45MTk5IiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOC41MzMiIHJ4PSI2Ljk4MjUyIiBmaWxsPSIjRUJFRUYwIi8+CjxtYXNrIGlkPSJtYXNrMF8yNzA1XzE3Njg2IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIxMTYiIHk9IjU3IiB3aWR0aD0iMTI5IiBoZWlnaHQ9IjEzMiI+CjxyZWN0IHg9IjExNi41MjMiIHk9IjU3LjkxOTkiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTMwLjEzMyIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2ODYpIj4KPHJlY3QgeD0iMTI1LjA1NyIgeT0iMTE3LjY1MyIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjkzMzMiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHg9IjEyNS4wNTciIHk9IjEwMy4yNTMiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC45MzMzIiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjUuMDU3IiB5PSIxNTYuMDUzIiB3aWR0aD0iMTEwLjQiIGhlaWdodD0iMzAuOTMzMyIgcng9IjMuNzUxMjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljk0NjUiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAyMDMuNDU3IDk1LjYyNDkpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTYzLjk5IDk1LjYyNTcpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTI0LjUyMyA5NS42MjU3KSIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxwYXRoIGQ9Ik0xMTYuNTIzIDY0LjkzNTVDMTE2LjUyMyA2MS4wNzkyIDExOS42NSA1Ny45NTMgMTIzLjUwNiA1Ny45NTNIMjM3LjM4M0MyNDEuMjM5IDU3Ljk1MyAyNDQuMzY1IDYxLjA3OTIgMjQ0LjM2NSA2NC45MzU1VjY4LjUzM0gxMTYuNTIzVjY0LjkzNTVaIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSIxMjEuODEzIiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjcuMTA0IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzIuNDM3IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE4MC41MjMiIGN5PSIxMjAuODUzIiByPSIxNy4zNzkzIiBmaWxsPSIjNEUzMzAwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNzU4NjIiLz4KPGNpcmNsZSBjeD0iMS42NTUxNyIgY3k9IjEuNjU1MTciIHI9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTE2Ljk5MSkiIGZpbGw9IiNGRkU0QjEiLz4KPHJlY3Qgd2lkdGg9IjMuMzEwMzQiIGhlaWdodD0iOS4zNzkzMSIgcng9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTI4LjU3NykiIGZpbGw9IiNGRkU0QjEiLz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8yNzA1XzE3Njg2IiB4PSIxMDcuOTkiIHk9IjUxLjUxOTkiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0Ni4xMzMiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2ODYiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzY4NiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K",f="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9IjIwMiIgdmlld0JveD0iMCAwIDQwMCAyMDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NC44NTc1IDk3LjYxNjZDMTA1Ljg1NyAxMzQuMDIgMTUzLjIwMSAxMDYuMTIzIDE4MS4zNTcgMTE0LjU3MkMyMDkuNTEzIDEyMy4wMiAyMTMuNDY4IDE2MS41NDUgMjM1Ljg1NyAxNjkuOTI1QzI1OC4yNDUgMTc4LjMwNiAzMDMuMDY4IDE3MS41MTUgMzE2LjAwMiAxMzguMTM1QzMyOC45MzYgMTA0Ljc1NCAzMTIuMTY3IDgzLjY1MjkgMjg3LjY1MiA3Mi4xNjk0QzI2My4xMzYgNjAuNjg1OSAyNjguOTc2IDM2Ljc4MzYgMjM0LjE2NiAyNy44MDA5QzE5OS4zNTcgMTguODE4MiAxNzguNjY1IDQxLjI2NTEgMTQwLjE2NSAzMC43OTI3QzEwMS42NjUgMjAuMzIwNCA2My44NTc4IDYxLjIxMzEgODQuODU3NSA5Ny42MTY2WiIgZmlsbD0iI0ZGREVEMyIvPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMF9kXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTI3LjY2NiIgeT0iMzcuODQxMSIgd2lkdGg9IjEyOCIgaGVpZ2h0PSIxMjguMTk0IiByeD0iNi45ODI1MiIgZmlsbD0iI0VCRUVGMCIvPgo8bWFzayBpZD0ibWFzazBfMjcwNV8xNzYzMyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTI3IiB5PSIzNyIgd2lkdGg9IjEyOSIgaGVpZ2h0PSIxMzEiPgo8cmVjdCB4PSIxMjcuNjY2IiB5PSIzNy44NDExIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOS43OSIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTM2LjIiIHk9Ijk3LjQxNjkiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC44NTE4IiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzYuMiIgeT0iODMuMDU0NiIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjg1MTgiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxwYXRoIGQ9Ik0xMzYuMiAxMzkuNDY3QzEzNi4yIDEzNy4zOTUgMTM3Ljg3OSAxMzUuNzE2IDEzOS45NTEgMTM1LjcxNkgyNDIuODQ5QzI0NC45MiAxMzUuNzE2IDI0Ni42IDEzNy4zOTUgMjQ2LjYgMTM5LjQ2N1YxNjUuOTM1SDEzNi4yVjEzOS40NjdaIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC44OTY2IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMjE0LjU5OSA3NS40NDY3KSIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMTguODk2NiIgcng9IjIuMzE1NjkiIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3NS4xMzMgNzUuNDQ3NikiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljg5NjYiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAxMzUuNjY2IDc1LjQ0NzYpIiBmaWxsPSIjRjNGNUY3Ii8+CjwvZz4KPHBhdGggZD0iTTEyNy42NjYgNDQuODU2N0MxMjcuNjY2IDQxLjAwMDQgMTMwLjc5MyAzNy44NzQyIDEzNC42NDkgMzcuODc0MkgyNDguNTI2QzI1Mi4zODIgMzcuODc0MiAyNTUuNTA4IDQxLjAwMDQgMjU1LjUwOCA0NC44NTY3VjQ4LjQyNjNIMTI3LjY2NlY0NC44NTY3WiIgZmlsbD0id2hpdGUiLz4KPHJlY3QgeD0iMTMyLjk1NiIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTM4LjI0NyIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTQzLjU4IiB5PSI0MS4zOTE1IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUxNzM3IiByeD0iMS43NTg2OCIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE5MS42NjYiIGN5PSIxMDAuOTE1IiByPSIxNi44IiBmaWxsPSIjQUM0MjIwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNjY2NjciLz4KPHBhdGggZD0iTTE5Mi45MTQgOTMuOTgxOEgxOTAuNDE4QzE5MC4wOTIgOTMuOTgxOCAxODkuODQzIDk0LjI3MTQgMTg5Ljg5MSA5NC41OTM2TDE5MS4xMzkgMTAyLjk3M0MxOTEuMjI5IDEwMy41OCAxOTIuMTA0IDEwMy41OCAxOTIuMTk0IDEwMi45NzNMMTkzLjQ0MiA5NC41OTM2QzE5My40OSA5NC4yNzE0IDE5My4yNCA5My45ODE4IDE5Mi45MTQgOTMuOTgxOFoiIGZpbGw9IiNGRkRFRDMiLz4KPGNpcmNsZSBjeD0iMTkxLjY2NiIgY3k9IjEwNi43ODIiIHI9IjEuNiIgZmlsbD0iI0ZGREVEMyIvPgo8ZGVmcz4KPGZpbHRlciBpZD0iZmlsdGVyMF9kXzI3MDVfMTc2MzMiIHg9IjExOS4xMzMiIHk9IjMxLjQ0MTEiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0NS4yNjEiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2MzMiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzYzMyIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K";var k=i(62540);const _={INFO:"info",ERROR:"error",WARNING:"warning"};function BannerNotification({notificationID:e,type:t=_.INFO,learnMoreLink:i,dismissButton:s,ctaButton:o,gaTrackingEventArgs:r,...d}){const u=(0,c.A)(e,r?.category),{dismissNotification:p}=(0,a.useDispatch)(l.D);let y=d?.svg;return y||t===_.INFO||(y={desktop:void 0,mobile:void 0,verticalPosition:"center"},t===_.WARNING&&(y.desktop=m),t===_.ERROR&&(y.desktop=f)),(0,k.jsx)("div",{className:n()("googlesitekit-banner-notification",`googlesitekit-banner-notification--${t}`),children:(0,k.jsx)(h.xA,{className:"googlesitekit-page-content",children:(0,k.jsx)(h.fI,{children:(0,k.jsx)(h.fh,{size:12,children:(0,k.jsx)(g.A,{learnMoreLink:i&&{...i,onClick:async function(e){u.clickLearnMore(r?.label,r?.value),await(i?.onClick?.(e))}},dismissButton:s&&{...s,onClick:async function(t){await(s?.onClick?.(t)),u.dismiss(r?.label,r?.value),p(e,{...s?.dismissOptions})}},ctaButton:o&&{...o,onClick:async function(t){u.confirm(r?.label,r?.value),await(o?.onClick?.(t)),o?.dismissOnClick&&p(e,{...o?.dismissOptions})}},svg:y,...d})})})})})}BannerNotification.propTypes={notificationID:r().string.isRequired,type:r().oneOf(Object.values(_)),titleIcon:r().node,title:r().string,description:r().oneOfType([r().string,r().node]),learnMoreLink:r().shape(d.A.propTypes),dismissButton:r().shape(p.A.propTypes),ctaButton:r().shape(u.A.propTypes),gaTrackingEventArgs:r().shape({category:r().string,label:r().string,value:r().number})}},90399:(e,t,i)=>{i.d(t,{QB:()=>AccountSelect,gx:()=>AdSenseLinkCTA,Ve:()=>v.Ay,kg:()=>ErrorNotices,TZ:()=>UseSnippetSwitch,Fv:()=>UserProfile});var s=i(63696),n=i(82871),o=i(49383),r=i(50539),a=i(12850),l=i(74179),c=i(77766),g=i(62540);function AccountSelect(){const e=`${(0,c.A)()}_adsense`,t=(0,r.useSelect)(e=>e(l.wl).getAccountID()),i=(0,r.useSelect)(e=>e(l.wl).getAccounts()),d=(0,r.useSelect)(e=>e(l.wl).hasFinishedResolution("getAccounts")),{setAccountID:u}=(0,r.useDispatch)(l.wl),p=(0,s.useCallback)((i,s)=>{const n=s.dataset.value;t!==n&&(u(n),(0,a.sx)(e,"change_account"))},[t,e,u]);return d?(0,g.jsx)(o.Select,{className:"googlesitekit-adsense__select-account",label:(0,n.__)("Account","google-site-kit"),value:t,onEnhancedChange:p,enhanced:!0,outlined:!0,children:(i||[]).map(({_id:e,displayName:t},i)=>(0,g.jsx)(o.Option,{value:e,children:t},i))}):(0,g.jsx)(o.ProgressBar,{small:!0})}var d=i(4884),u=i(93896);function AdSenseLinkCTA({onClick:e=()=>{}}){const t=(0,r.useSelect)(e=>e(u.O4).getGoogleSupportURL({path:"/adsense/answer/6084409"}));return(0,g.jsx)(d.A,{title:(0,n.__)("Link Analytics and AdSense","google-site-kit"),description:(0,n.__)("Get reports for your top earning pages by linking your Analytics and AdSense accounts","google-site-kit"),ctaLink:t,ctaLabel:(0,n.__)("Learn more","google-site-kit"),onClick:e,ctaLinkExternal:!0})}var p=i(30679),h=i(62688),m=i.n(h);function ErrorNotices({hasButton:e=!1}){return(0,g.jsx)(p.A,{hasButton:e,moduleSlug:"adsense",storeName:l.wl})}ErrorNotices.propTypes={hasButton:m().bool};var f=i(58116);function UserProfile(){const e=(0,r.useSelect)(e=>e(f.oR).getEmail()),t=(0,r.useSelect)(e=>e(f.oR).getPicture());return(0,r.useSelect)(e=>e(f.oR).hasFinishedResolution("getUser"))?(0,g.jsxs)("p",{className:"googlesitekit-setup-module__user",children:[(0,g.jsx)("img",{className:"googlesitekit-setup-module__user-image",src:t,alt:""}),(0,g.jsx)("span",{className:"googlesitekit-setup-module__user-email",children:e})]}):(0,g.jsx)(o.ProgressBar,{small:!0})}var k=i(79257),_=i(2362),y=i(80035);function UseSnippetSwitch(e){const{label:t=(0,n.__)("Let Site Kit place AdSense code on your site","google-site-kit"),checkedMessage:i,uncheckedMessage:d,saveOnChange:u}=e,p=`${(0,c.A)()}_adsense`,h=(0,r.useSelect)(e=>e(l.wl).getUseSnippet()),m=(0,r.useSelect)(e=>e(l.wl).isDoingSubmitChanges()),{setUseSnippet:f,saveSettings:v}=(0,r.useDispatch)(l.wl),x=(0,s.useCallback)(async()=>{f(!h),u&&await v()},[h,u,f,v]);return(0,k.A)(()=>{(0,a.sx)(p,h?"enable_tag":"disable_tag")},[p,h]),void 0===h?null:(0,g.jsxs)(s.Fragment,{children:[(0,g.jsxs)("div",{className:"googlesitekit-setup-module__switch",children:[(0,g.jsx)(o.Switch,{label:t,onClick:x,checked:h,disabled:m,hideLabel:!1})," ",(0,g.jsx)(_.A,{className:"googlesitekit-badge--primary",label:(0,n.__)("Recommended","google-site-kit")})]}),h&&i&&(0,g.jsx)(y.A,{className:"googlesitekit-notice--bottom-margin",type:y.A.TYPES.INFO,description:i}),!h&&d&&(0,g.jsx)(y.A,{className:"googlesitekit-notice--bottom-margin",type:y.A.TYPES.INFO,description:d})]})}UseSnippetSwitch.propTypes={label:m().string,checkedMessage:m().string,uncheckedMessage:m().string,saveOnChange:m().bool},UseSnippetSwitch.defaultProps={saveOnChange:!1};i(64843);var v=i(56929);i(83945)},91560:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(13606),l=i(82871),c=i(20898),g=i(35323),d=i(62540);function SourceLink({name:e,href:t,className:i,external:s}){return(0,g.A)()?null:(0,d.jsx)("div",{className:r()("googlesitekit-source-link",i),children:(0,a.A)((0,l.sprintf)(/* translators: %s: source link */ /* translators: %s: source link */
(0,l.__)("Source: %s","google-site-kit"),`<a>${e}</a>`),{a:(0,d.jsx)(c.A,{href:t,external:s},"link")})})}SourceLink.propTypes={name:n().string,href:n().string,className:n().string,external:n().bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1};const u=SourceLink},93431:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 173 152"},e),s||(s=n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:"#FBBC04",d:"M107.91 41.72c7.73-13.22 3.14-30.12-10.24-37.75S67.18.87 59.45 14.09c-.35.59-.66 1.2-.96 1.81l-26.1 44.66q-.435.66-.84 1.35c-.27.46-.52.93-.76 1.4L3.67 110.1l48.45 27.16 26.98-46.4q.435-.66.84-1.35c.27-.46.52-.93.76-1.39l26.11-44.67c.38-.57.76-1.14 1.1-1.73"}),n.createElement("path",{fill:"#34A853",d:"M52.34 137.11c-7.68 13.43-25 18.38-38.31 10.62s-18.02-24.57-10.34-38 24.86-18.39 38.16-10.64 18.18 24.59 10.49 38.02"}),n.createElement("path",{fill:"#4285F4",d:"M158.79 51.86c-13.23-7.62-30.15-3.1-37.79 10.1l-27.66 47.8c-7.64 13.2-3.11 30.08 10.13 37.7 13.23 7.62 30.15 3.1 37.79-10.1l27.66-47.8c7.63-13.2 3.1-30.08-10.13-37.7"}))))},93896:(e,t,i)=>{i.d(t,{O4:()=>s,OQ:()=>o,qc:()=>n});const s="core/site",n="primary",o="secondary"},94552:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(62540);function ChangeArrow({direction:e,invertColor:t,width:i,height:s}){return(0,a.jsx)("svg",{className:r()("googlesitekit-change-arrow",`googlesitekit-change-arrow--${e}`,{"googlesitekit-change-arrow--inverted-color":t}),width:i,height:s,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"})})}ChangeArrow.propTypes={direction:n().string,invertColor:n().bool,width:n().number,height:n().number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9};const l=ChangeArrow},95267:(e,t,i)=>{i.d(t,{A:()=>PageHeader});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(55527),l=i(24560),c=i(18418),g=i(84385),d=i(15167),u=i(62540);function PageHeader(e){const{title:t,icon:i,className:s,status:o,statusText:r,fullWidth:p,children:h}=e,m=p?{size:12}:{smSize:4,mdSize:4,lgSize:6},f=""!==o||Boolean(h);return(0,u.jsx)("header",{className:"googlesitekit-page-header",children:(0,u.jsxs)(a.fI,{children:[t&&(0,u.jsxs)(a.fh,{...m,children:[i,(0,u.jsx)(d.A,{as:"h1",className:n()("googlesitekit-page-header__title",s),size:"medium",type:"title",children:t})]}),f&&(0,u.jsx)(a.fh,{smSize:4,mdSize:4,lgSize:6,alignBottom:!0,mdAlignRight:!0,children:(0,u.jsxs)("div",{className:"googlesitekit-page-header__details",children:[o&&(0,u.jsxs)("span",{className:n()("googlesitekit-page-header__status",`googlesitekit-page-header__status--${o}`),children:[r,(0,u.jsx)(g.A,{children:"connected"===o?(0,u.jsx)(l.A,{width:10,height:8}):(0,u.jsx)(c.A,{width:2,height:12})})]}),h]})})]})})}PageHeader.propTypes={title:r().string,icon:r().node,className:r().string,status:r().string,statusText:r().string,fullWidth:r().bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}},97398:(e,t,i)=>{i.d(t,{Y:()=>s});const s="search-console"},99235:(e,t,i)=>{i.d(t,{l:()=>n});var s=i(78174);function n(e,t,i){(0,s.A)(i=>e.includes(i.keyCode)&&t.current.contains(i.target),i)}},99455:(e,t,i)=>{i.d(t,{A:()=>d});var s,n=i(82871),o=i(88933),r=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},a.apply(null,arguments)}const l=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 80 21"},e),s||(s=r.createElement("path",{fill:"#5F6368",d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1zM69.985 3.117c0 .454-.167.853-.488 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.6 1.6 0 0 1-.488-1.175c0-.466.166-.854.488-1.176s.71-.488 1.175-.488c.455 0 .854.166 1.176.488.332.333.487.72.487 1.176m-.477 4.313v12.498h-2.351V7.43zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943q-1.014-.948-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333M2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974q-.883-.781-3.094-1.564l-1.22-.432Q3.371 9.997 2.04 8.716C1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673S2.75 1.209 3.693.72C4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676-.91 1.032-.91 1.742c0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6 6 0 0 1-2.495 1.919 8 8 0 0 1-3.116.621c-1.62 0-3.072-.466-4.358-1.408M15.969 3.449a1.95 1.95 0 0 1-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0 1 17.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 0 1-1.43.589c-.566-.012-1.043-.2-1.431-.588m-.067 2.595h2.994v13.883h-2.994zM25.406 19.85c-.544-.2-.987-.466-1.331-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122q.35-.116.765-.399v2.917c-.599.277-1.32.41-2.173.41a5 5 0 0 1-1.753-.3M33.623 19.407a6.63 6.63 0 0 1-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706s2.251-1.01 3.593-1.01c1.397 0 2.606.311 3.637.921a6.1 6.1 0 0 1 2.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.16 4.16 0 0 0 2.817 1.043c.854 0 1.597-.189 2.218-.588a4.27 4.27 0 0 0 1.508-1.597l2.528 1.198q-.981 1.713-2.561 2.694c-1.054.655-2.318.976-3.782.976q-2.046.033-3.66-.931m7.23-8.051a3.3 3.3 0 0 0-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296z"})));var c=i(16834),g=i(62540);const d=function Logo(){return(0,g.jsxs)("div",{className:"googlesitekit-logo","aria-hidden":"true",children:[(0,g.jsx)(o.A,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),(0,g.jsx)(l,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),(0,g.jsx)(c.A,{children:(0,n.__)("Site Kit by Google Logo","google-site-kit")})]})}},99620:(e,t,i)=>{i.d(t,{A:()=>m});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(63696),l=i(55527),c=i(20898),g=i(15167),d=i(62540);class LayoutHeader extends a.Component{render(){const{title:e,badge:t,ctaLabel:i,ctaLink:s}=this.props,n=s?{alignMiddle:!0,smSize:4,lgSize:6}:{alignMiddle:!0,smSize:4,mdSize:8,lgSize:12};return(0,d.jsx)("header",{className:"googlesitekit-layout__header",children:(0,d.jsx)(l.xA,{children:(0,d.jsxs)(l.fI,{children:[e&&(0,d.jsx)(l.fh,{...n,children:(0,d.jsxs)(g.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-subheading-1 googlesitekit-layout__header-title",children:[e,t]})}),s&&(0,d.jsx)(l.fh,{smSize:4,lgSize:6,alignMiddle:!0,mdAlignRight:!0,children:(0,d.jsx)(c.A,{href:s,external:!0,children:i})})]})})})}}LayoutHeader.propTypes={title:n().string,badge:n().node,ctaLabel:n().string,ctaLink:n().string},LayoutHeader.defaultProps={title:"",badge:null,ctaLabel:"",ctaLink:""};const u=LayoutHeader;var p=i(91560);class LayoutFooter extends a.Component{render(){const{ctaLabel:e,ctaLink:t,footerContent:i}=this.props;return(0,d.jsx)("footer",{className:"googlesitekit-layout__footer",children:(0,d.jsx)(l.xA,{children:(0,d.jsx)(l.fI,{children:(0,d.jsxs)(l.fh,{size:12,children:[t&&e&&(0,d.jsx)(p.A,{className:"googlesitekit-data-block__source",name:e,href:t,external:!0}),i]})})})})}}LayoutFooter.propTypes={ctaLabel:n().string,ctaLink:n().string};const h=LayoutFooter;class Layout extends a.Component{render(){const{header:e,footer:t,children:i,title:s,badge:n,headerCTALabel:o,headerCTALink:a,footerCTALabel:l,footerCTALink:c,footerContent:g,className:p,fill:m,relative:f,rounded:k=!1,transparent:_=!1,...y}=this.props;return(0,d.jsxs)("div",{className:r()("googlesitekit-layout",p,{"googlesitekit-layout--fill":m,"googlesitekit-layout--relative":f,"googlesitekit-layout--rounded":k,"googlesitekit-layout--transparent":_}),...y,children:[e&&(0,d.jsx)(u,{title:s,badge:n,ctaLabel:o,ctaLink:a}),i,t&&(0,d.jsx)(h,{ctaLabel:l,ctaLink:c,footerContent:g})]})}}Layout.propTypes={header:n().bool,footer:n().bool,children:n().node.isRequired,title:n().string,badge:n().node,headerCTALabel:n().string,headerCTALink:n().string,footerCTALabel:n().string,footerCTALink:n().string,footerContent:n().node,className:n().string,fill:n().bool,relative:n().bool,rounded:n().bool,transparent:n().bool},Layout.defaultProps={header:!1,footer:!1,title:"",badge:null,headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1};const m=Layout},99897:(e,t,i)=>{i.d(t,{A_:()=>g,DF:()=>u,L1:()=>p,M0:()=>r,Mc:()=>a,Ok:()=>c,U9:()=>l,iW:()=>o,ue:()=>n,wq:()=>s,xR:()=>d});const s=1,n=2,o=3,r="enhanced-measurement-activation-banner-tooltip-state",a="enhanced-measurement-activation-banner-dismissed-item",l="_r.explorerCard..selmet",c="_r.explorerCard..seldim",g="_r..dataFilters",d="_r..nav",u="key-metrics-connect-ga4-cta-widget",p="analytics-4"}},e=>{e.O(0,[660],()=>{return t=87848,e(e.s=t);var t});e.O()}]);