"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[15,290],{718:(e,t,i)=>{i.d(t,{gy:()=>SelectionPanelFooter,W4:()=>SelectionPanelHeader,y3:()=>SelectionPanelItem,DW:()=>SelectionPanelItems,Ay:()=>M});var n=i(4452),o=i.n(n),s=i(62688),r=i.n(s),a=i(4544),l=i.n(a),c=i(21795),g=i(78174),d=i(63696),u=i(19266),p=i(14007),m=i(62540);function SideSheet({className:e,children:t,isOpen:i,isLoading:n,onOpen:s=()=>{},closeSheet:r=()=>{},focusTrapOptions:a={}}){const h=(0,d.useRef)();return(0,d.useEffect)(()=>{i?(s(),document.body.classList.add("googlesitekit-side-sheet-scroll-lock")):document.body.classList.remove("googlesitekit-side-sheet-scroll-lock")},[i,s]),(0,c.A)(h,r),(0,g.A)(e=>i&&u._f===e.keyCode,r),(0,m.jsxs)(p.A,{children:[(0,m.jsx)(l(),{active:!!i&&!n,focusTrapOptions:{fallbackFocus:"body",...a},children:(0,m.jsx)("section",{ref:h,className:o()("googlesitekit-side-sheet",e,{"googlesitekit-side-sheet--open":i}),role:"dialog","aria-modal":"true","aria-hidden":!i,tabIndex:"0",children:t})}),i&&(0,m.jsx)("span",{className:"googlesitekit-side-sheet-overlay"})]})}function SelectionPanel({children:e,isOpen:t,isLoading:i,onOpen:n,closePanel:s,className:r}){const a=r?.split(/\s+/).map(e=>`.${e}`).join(""),l=a?`${a} .googlesitekit-selection-panel-item .googlesitekit-selection-box input`:".googlesitekit-selection-panel-item .googlesitekit-selection-box input";return(0,m.jsx)(SideSheet,{className:o()("googlesitekit-selection-panel",r),isOpen:t,isLoading:i,onOpen:n,closeSheet:s,focusTrapOptions:{initialFocus:l},children:e})}SideSheet.propTypes={className:r().string,children:r().node,isOpen:r().bool,isLoading:r().bool,onOpen:r().func,closeSheet:r().func,focusTrapOptions:r().object},SelectionPanel.propTypes={children:r().node,isOpen:r().bool,isLoading:r().bool,onOpen:r().func,closePanel:r().func,className:r().string};var h=i(20898),f=i(72545),y=i(15167);function SelectionPanelHeader({children:e,title:t,onCloseClick:i}){return(0,m.jsxs)("header",{className:"googlesitekit-selection-panel-header",children:[(0,m.jsxs)("div",{className:"googlesitekit-selection-panel-header__row",children:[(0,m.jsx)(y.A,{as:"h3",size:"small",type:"headline",children:t}),(0,m.jsx)(h.A,{className:"googlesitekit-selection-panel-header__close",onClick:i,linkButton:!0,children:(0,m.jsx)(f.A,{width:"15",height:"15"})})]}),e]})}SelectionPanelHeader.propTypes={children:r().node,title:r().string,onCloseClick:r().func};var k=i(82871),v=i(49383);function SelectionBox({badge:e,checked:t,children:i,disabled:n,id:s,onChange:r,title:a,value:l}){return(0,m.jsx)("div",{className:o()("googlesitekit-selection-box",{"googlesitekit-selection-box--disabled":n}),children:(0,m.jsx)(v.Checkbox,{checked:t,description:i,disabled:n,id:s,name:s,onChange:r,value:l,badge:e,children:a})})}SelectionBox.propTypes={badge:r().node,checked:r().bool,children:r().node,disabled:r().bool,id:r().string,onChange:r().func,title:r().string,value:r().string};var _=i(2362);function SelectionPanelItem({children:e,id:t,slug:i,title:n,description:o,isItemSelected:s,isItemDisabled:r,onCheckboxChange:a,subtitle:l,suffix:c,badge:g,isNewlyDetected:d}){return(0,m.jsxs)("div",{className:"googlesitekit-selection-panel-item",children:[(0,m.jsxs)(SelectionBox,{badge:g,checked:s,disabled:r,id:t,onChange:a,title:n,value:i,children:[l&&(0,m.jsx)("span",{className:"googlesitekit-selection-panel-item__subtitle",children:l}),o,e]}),d&&(0,m.jsx)(_.A,{label:(0,k.__)("New","google-site-kit")}),c&&(0,m.jsx)("span",{className:"googlesitekit-selection-panel-item__suffix",children:c})]})}function SelectionPanelItems({currentSelectionTitle:e=(0,k.__)("Current selection","google-site-kit"),availableItemsTitle:t=(0,k.__)("Additional items","google-site-kit"),savedItemSlugs:i=[],availableSavedItems:n={},availableUnsavedItems:o={},ItemComponent:s,notice:r}){function a(e){return Object.keys(e).map(t=>(0,m.jsx)(s,{slug:t,savedItemSlugs:i,...e[t]},t))}const l=Object.keys(o).length;return(0,m.jsxs)("div",{className:"googlesitekit-selection-panel-items",children:[0!==i.length&&(0,m.jsxs)(d.Fragment,{children:[(0,m.jsx)("p",{className:"googlesitekit-selection-panel-items__subheading",children:e}),(0,m.jsx)("div",{className:"googlesitekit-selection-panel-items__subsection",children:a(n)}),l>0&&(0,m.jsx)("p",{className:"googlesitekit-selection-panel-items__subheading",children:t})]}),l>0&&(0,m.jsx)("div",{className:"googlesitekit-selection-panel-items__subsection",children:a(o)}),r]})}SelectionPanelItem.propTypes={children:r().node,id:r().string,slug:r().string,title:r().string,description:r().string,isItemSelected:r().bool,isItemDisabled:r().bool,onCheckboxChange:r().func,subtitle:r().string,suffix:r().node,badge:r().node,isNewlyDetected:r().bool},SelectionPanelItems.propTypes={currentSelectionTitle:r().string,availableItemsTitle:r().string,savedItemSlugs:r().array,availableSavedItems:r().object,availableUnsavedItems:r().object,ItemComponent:r().elementType,notice:r().node};var b=i(17243),I=i(13606),x=i(50539),S=i(12850),N=i(72455),A=i(23224),j=i(80035);function SelectionPanelFooter({savedItemSlugs:e=[],selectedItemSlugs:t=[],saveSettings:i=()=>{},itemLimitError:n,minSelectedItemCount:o=0,maxSelectedItemCount:s=0,isBusy:r,onSaveSuccess:a=()=>{},onCancel:l=()=>{},isOpen:c,closePanel:g=()=>{}}){const[u,p]=(0,d.useState)(null),[h,f]=(0,d.useState)(!1),y=(0,x.useSelect)(e=>e(N.K9).isFetchingSyncAvailableAudiences()),_=(0,d.useMemo)(()=>!(0,b.isEqual)((0,S.N9)(t),(0,S.N9)(e)),[e,t]),M=e?.length>0&&_?(0,k.__)("Apply changes","google-site-kit"):(0,k.__)("Save selection","google-site-kit"),T=(0,d.useCallback)(async()=>{const{error:e}=await i(t);e||(a(),g(),p(M),f(!0))},[i,t,a,g,M]),C=(0,d.useCallback)(()=>{g(),l()},[g,l]),[E,w]=(0,d.useState)(null);(0,d.useEffect)(()=>{null!==E&&E!==c&&c&&(p(null),f(!1)),w(c)},[c,E]);const D=t?.length||0,O=y?(0,m.jsx)(A.A,{width:"89px",height:"20px"}):(0,m.jsx)("p",{className:"googlesitekit-selection-panel-footer__item-count",children:(0,I.A)((0,k.sprintf)(/* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */ /* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */
(0,k.__)("%1$d selected (up to %2$d)","google-site-kit"),D,s),{MaxCount:(0,m.jsx)("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})})});return(0,m.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,m.jsxs)("div",{className:"googlesitekit-selection-panel-footer__content",children:[_&&n?(0,m.jsx)(j.A,{type:j.A.TYPES.ERROR,description:n}):O,(0,m.jsxs)("div",{className:"googlesitekit-selection-panel-footer__actions",children:[(0,m.jsx)(v.Button,{onClick:C,disabled:r,tertiary:!0,children:(0,k.__)("Cancel","google-site-kit")}),(0,m.jsx)(v.SpinnerButton,{onClick:T,isSaving:r,disabled:Ds||r||!c&&h,children:u||M})]})]})})}SelectionPanelFooter.propTypes={savedItemSlugs:r().array,selectedItemSlugs:r().array,saveSettings:r().func,itemLimitError:r().string,minSelectedItemCount:r().number,maxSelectedItemCount:r().number,isBusy:r().bool,onSaveSuccess:r().func,onCancel:r().func,isOpen:r().bool,closePanel:r().func};const M=SelectionPanel},1102:(e,t,i)=>{i.d(t,{w:()=>a});var n=i(35470),o=i(63696),s=i(2422);function r(){}function a(e,t){const i=(0,s.W)({sticky:!0}),a=(0,o.useRef)(),l=(0,o.useCallback)(e,t),c=(0,n.A)(i?l:r);return i&&(a.current=c),a.current}},2362:(e,t,i)=>{i.d(t,{A:()=>g});var n=i(4452),o=i.n(n),s=i(62688),r=i.n(s),a=i(63696),l=i(62540);const c=(0,a.forwardRef)(({label:e,className:t,hasLeftSpacing:i=!1,...n},s)=>(0,l.jsx)("span",{ref:s,...n,className:o()("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 n=i(79257),o=i(35470),s=i(63696),r=i(6732),a=i(7081);function l({sticky:e=!1}={}){const t=(0,s.useContext)(r.A),[i,l]=(0,s.useState)(!1),c=(0,o.A)(e=>e(a.n).getInViewResetCount()),g=(0,o.A)(e=>e(a.n).getValue("forceInView"));return(0,s.useEffect)(()=>{t.value&&!i&&l(!0)},[i,t,l]),(0,s.useEffect)(()=>{g&&l(!0)},[g]),(0,n.A)(()=>{l(!1)},[c]),!(!e||!i)||!!t.value}},2522:(e,t,i)=>{i.d(t,{D:()=>s});var n=i(32091),o=i.n(n);function s(e,{dateRangeLength:t}){o()(Array.isArray(e),"report must be an array to partition."),o()(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:()=>n});const n="emailReportingUserSettingsSelectionPanelOpened"},3714:(e,t,i)=>{i.d(t,{Kk:()=>s,SZ:()=>n,Yw:()=>r,oJ:()=>a,tT:()=>o});const n="body",o=[n,"display","headline","label","title"],s="small",r="medium",a=[s,r,"large"]},3782:(e,t,i)=>{i.d(t,{A:()=>CTAButton});var n=i(62688),o=i.n(n),s=i(49383),r=i(62540);function CTAButton({label:e,ariaLabel:t,disabled:i,inProgress:n,onClick:o,href:a}){return e&&(o||a)?(0,r.jsx)(s.SpinnerButton,{className:"googlesitekit-banner__cta","aria-label":t,disabled:i||n,isSaving:n,onClick:o,href:a,children:e}):null}CTAButton.propTypes={label:o().string,ariaLabel:o().string,disabled:o().bool,inProgress:o().bool,onClick:o().func,href:o().string,dismissOnClick:o().bool,dismissOptions:o().shape({expiresInSeconds:o().number,skipHidingFromQueue:o().bool})}},4445:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(62688),o=i.n(n),s=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 n=(0,s.useCallback)(()=>{setTimeout(()=>{const e=t?document.querySelector(t):g;e&&document.body.contains(e)&&e.focus(),t||(g=null)})},[t]),o=(0,r.A)(e);return(0,s.useEffect)(()=>(!0===o&&!1===e&&n(),()=>{n()}),[o,e,n]),(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:o().bool,refocusQuerySelector:o().string,...a.Dialog.propTypes};const d=RefocusableModalDialog},6464:(e,t,i)=>{i.d(t,{i:()=>r});var n=i(63696),o=i(11106),s=i(65214);function r(e){const t=(0,n.useContext)(o.A);return(0,s.G)(e,t)}},6732:(e,t,i)=>{i.d(t,{A:()=>n});const n=(0,i(63696).createContext)(!1)},7070:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(63696),o=i(77766),s=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,o.A)(),g=null!=t?t:`${c}_${e}`;return{view:(0,n.useCallback)((...e)=>(0,s.sx)(g,i,...e),[g,i]),confirm:(0,n.useCallback)((...e)=>(0,s.sx)(g,r,...e),[g,r]),dismiss:(0,n.useCallback)((...e)=>(0,s.sx)(g,a,...e),[g,a]),clickLearnMore:(0,n.useCallback)((...e)=>(0,s.sx)(g,l,...e),[g,l])}}},7081:(e,t,i)=>{i.d(t,{F:()=>o,n:()=>n});const n="core/ui",o="activeContextID"},7184:(e,t,i)=>{i.d(t,{A:()=>f});var n=i(4452),o=i.n(n),s=i(62688),r=i.n(s),a=i(63696),l=i(32947),c=i(62540);function TitleIcon({className:e,children:t}){return(0,c.jsx)("div",{className:o()("googlesitekit-banner__title-icon",e),children:t})}function Title({className:e,children:t}){return(0,c.jsx)("p",{className:o()("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:n,children:s}){return(0,c.jsxs)("div",{className:o()("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}),n&&(0,c.jsx)("div",{className:"googlesitekit-banner__additional-description",children:n}),s]})}function HelpText({className:e,children:t}){return(0,c.jsx)("p",{className:o()("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:o()("googlesitekit-banner__footer",e),children:t})}Footer.propTypes={className:r().string,children:r().node};var m=i(80035);const h=(0,a.forwardRef)(({className:e,titleIcon:t,title:i,description:n,additionalDescription:s,errorText:r,helpText:a,learnMoreLink:g,dismissButton:d,ctaButton:h,svg:f,footer:y},k)=>{const v=(0,l.dv)(),_=v===l.mp||v===l.Lg;let b=null;_&&f?.mobile?b=f.mobile:!_&&f?.desktop&&(b=f.desktop);const I=f?.verticalPosition?f.verticalPosition:"center";return(0,c.jsxs)("div",{ref:k,className:o()("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:n,learnMoreLink:g,additionalDescription:s}),a&&(0,c.jsx)(HelpText,{children:a}),r&&(0,c.jsx)(m.A,{type:"error",description:r}),(0,c.jsxs)("div",{className:"googlesitekit-notice__action",children:[h&&(0,c.jsx)(u.A,{...h}),d?.onClick&&(0,c.jsx)(p.A,{...d})]})]}),b&&(0,c.jsx)("div",{className:o()("googlesitekit-banner__svg-wrapper",{[`googlesitekit-banner__svg-wrapper--${I}`]:I}),style:{backgroundImage:`url(${b})`}}),y&&(0,c.jsx)(Footer,{children:y})]})});h.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=h},8143:(e,t,i)=>{i.d(t,{VZ:()=>s,dc:()=>r,pH:()=>o,r0:()=>a});var n=i(84024);function o(e){try{return new URL(e).pathname}catch{}return null}function s(e,t){try{return new URL(t,e).href}catch{}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function r(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function a(e,t){if(!(0,n.m)(e))return e;if(e.length<=t)return e;const i=new URL(e),o=e.replace(i.origin,"");if(o.length{i.d(t,{A:()=>p});var n=i(62688),o=i.n(n),s=i(4452),r=i.n(s),a=i(52684),l=i(13606),c=i(82871),g=i(49383),d=i(85149),u=i(62540);function ModalDialog({className:e="",dialogActive:t=!1,handleCancel:i=null,onOpen:n=null,onClose:o=null,title:s=null,provides:p,handleConfirm:m,subtitle:h,confirmButton:f=null,dependentModules:y,danger:k=!1,inProgress:v=!1,small:_=!1,medium:b=!1,buttonLink:I=null}){const x=`googlesitekit-dialog-description-${(0,a.A)(ModalDialog)}`,S=!(!p||!p.length);return(0,u.jsxs)(g.Dialog,{open:t,onOpen:n,onClose:o,"aria-describedby":S?x:void 0,tabIndex:"-1",className:r()(e,{"googlesitekit-dialog-sm":_,"googlesitekit-dialog-md":b}),children:[(0,u.jsxs)(g.DialogTitle,{children:[k&&(0,u.jsx)(d.A,{width:28,height:28}),s]}),h?(0,u.jsx)("p",{className:"mdc-dialog__lead",children:h}):[],(0,u.jsxs)(g.DialogContent,{children:[S&&(0,u.jsx)("section",{id:x,className:"mdc-dialog__provides",children:(0,u.jsx)("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive",children:p.map(e=>(0,u.jsx)("li",{className:"mdc-list-item",children:(0,u.jsx)("span",{className:"mdc-list-item__text",children:e})},e))})}),y&&(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.__)("Note: %s","google-site-kit"),y),{strong:(0,u.jsx)("strong",{})})})]}),(0,u.jsxs)(g.DialogFooter,{children:[(0,u.jsx)(g.Button,{className:"mdc-dialog__cancel-button",onClick:i,disabled:v,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),I?(0,u.jsx)(g.Button,{href:I,onClick:m,target:"_blank",danger:k,children:f}):(0,u.jsx)(g.SpinnerButton,{onClick:m,danger:k,disabled:v,isSaving:v,children:f||(0,c.__)("Disconnect","google-site-kit")})]})]})}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:o().string,dialogActive:o().bool,handleDialog:o().func,handleConfirm:o().func.isRequired,onOpen:o().func,onClose:o().func,title:o().string,confirmButton:o().string,danger:o().bool,small:o().bool,medium:o().bool,buttonLink:o().string};const p=ModalDialog},11106:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(63696),o=i(65214);const s=(0,n.createContext)(o.t)},12108:(e,t,i)=>{i.d(t,{YJ:()=>s,Eq:()=>r});var n=i(32947),o=i(17243);function s(e,t){const n=document.querySelector(e);if(!n)return 0;const o=n.getBoundingClientRect().top,s=r(t);return o+i.g.scrollY-s}function r(e){let t=function(e){let t=0;const s=document.querySelector(".googlesitekit-header");t=s&&"sticky"===i.g.getComputedStyle(s).position?function(e){const t=document.querySelector(".googlesitekit-header");if(t){if(e===n.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!==n.mp)return t.offsetHeight;return 0}(e);return t=function(e){return(0,o.isFinite)(e)?e:0}(t),t<0?0:t}(e);const s=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(s).reduce((e,t)=>e+t.offsetHeight,0),t}},12701:(e,t,i)=>{i.d(t,{A:()=>Root});var n=i(62688),o=i.n(n),s=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),m=i(12850),h=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,m.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,h.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,h.jsxs)(a.Fragment,{children:[(0,h.jsx)(d.A,{message:t.message,componentStack:i.componentStack}),(0,h.jsxs)("pre",{className:"googlesitekit-overflow-auto",children:[t.message,i.componentStack]})]})}):e}}ErrorHandler.contextType=u.Ay,ErrorHandler.propTypes={children:o().node.isRequired};const f=ErrorHandler;var y=i(11106);const{Consumer:k,Provider:v}=y.A,_=v;var b=i(65214),I=i(4445),x=i(78340),S=i(45472),N=i(58116),A=i(64067),j=i(14007);const M=function AuthenticatedPermissionsModal(){const e=(0,l.useRegistry)(),t=(0,l.useSelect)(e=>e(N.oR).getPermissionScopeError()),n=(0,l.useSelect)(e=>e(N.oR).getUnsatisfiedScopes()),o=(0,l.useSelect)(e=>e(N.oR).getConnectURL({additionalScopes:t?.data?.scopes,redirectURL:t?.data?.redirectURL||i.g.location.href,errorRedirectURL:t?.data?.errorRedirectURL})),{clearPermissionScopeError:s}=(0,l.useDispatch)(N.oR),{navigateTo:r}=(0,l.useDispatch)(S.M),{setValues:c}=(0,l.useDispatch)(x.s),d=(0,a.useCallback)(()=>{s()},[s]),u=(0,a.useCallback)(async()=>{c(N.$8,{permissionsError:t}),await(0,A.mR)(e),r(o)},[e,o,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||n&&t?.data?.scopes.every(e=>n.includes(e))?null:(0,h.jsx)(j.A,{children:(0,h.jsx)(I.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 T=function PermissionsModal(){return(0,l.useSelect)(e=>e(N.oR).isAuthenticated())?(0,h.jsx)(M,{}):null};const C=function RestoreSnapshots({children:e}){const t=(0,l.useRegistry)(),[i,n]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{i||(async()=>{await(0,A.P9)(t),n(!0)})()},[t,i]),i?e:null};var E=i(15844),w=i(77766),D=i(39771);function FeatureTours(){const e=(0,w.A)(),{triggerTourForView:t}=(0,l.useDispatch)(N.oR);(0,E.A)(()=>{t(e)});const n=(0,l.useSelect)(e=>e(N.oR).getCurrentTour());return(0,a.useEffect)(()=>{if(!n)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()}},[n]),n?(0,h.jsx)(D.Ay,{tourID:n.slug,steps:n.steps,gaEventCategory:n.gaEventCategory,callback:n.callback}):null}var O=i(68869),L=i(22821);function Root({children:e,registry:t,viewContext:i=null}){const n=s.D,[o]=(0,a.useState)({key:"Root",value:!0});return(0,h.jsx)(a.StrictMode,{children:(0,h.jsx)(O.Ay,{value:o,children:(0,h.jsx)(l.RegistryProvider,{value:t,children:(0,h.jsx)(_,{value:b.t,children:(0,h.jsx)(u.Kq,{value:i,children:(0,h.jsx)(r.A,{theme:n(),children:(0,h.jsxs)(f,{children:[(0,h.jsxs)(C,{children:[e,i&&(0,h.jsx)(FeatureTours,{})]}),(0,L.A)(i)&&(0,h.jsx)(T,{})]})})})})})})})}Root.propTypes={children:o().node,registry:o().object,viewContext:o().string.isRequired},Root.defaultProps={registry:c()}},12755:(e,t,i)=>{i.d(t,{A:()=>$e});var n,o,s=i(62688),r=i.n(s),a=i(4452),l=i.n(a),c=i(41814),g=i(82871),d=i(63696),u=i(50539),p=i(99455),m=i(21795),h=i(31589),f=i(19266),y=i(49383),k=i(8420),v=i(12850),_=i(21134),b=i(14007),I=i(58116),x=i(62540);function Details(){const e=(0,u.useSelect)(e=>e(I.oR).getPicture()),t=(0,u.useSelect)(e=>e(I.oR).getFullName()),i=(0,u.useSelect)(e=>e(I.oR).getEmail());return(0,x.jsxs)("div",{className:"googlesitekit-user-menu__details","aria-label":(0,g.__)("Google account","google-site-kit"),children:[!!e&&(0,x.jsx)("img",{className:"googlesitekit-user-menu__details-avatar",src:e,alt:""}),(0,x.jsxs)("div",{className:"googlesitekit-user-menu__details-info",children:[(0,x.jsx)("p",{className:"googlesitekit-user-menu__details-info__name",children:t}),(0,x.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,x.jsxs)("div",{className:"googlesitekit-user-menu__item",children:[(0,x.jsx)("div",{className:"googlesitekit-user-menu__item-icon",children:e}),(0,x.jsx)("span",{className:"googlesitekit-user-menu__item-label",children:t})]})}function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;td.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),n||(n=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"})),o||(o=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 A,j,M,T,C;function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;td.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),A||(A=d.createElement("rect",{width:18,height:13,x:3,y:4,stroke:"#6C726E",strokeWidth:1.5,rx:2})),j||(j=d.createElement("path",{fill:"#6C726E",d:"M9 17h6v3H9z"})),M||(M=d.createElement("path",{stroke:"#6C726E",strokeLinecap:"round",strokeWidth:1.5,d:"M10 9h7M10 12h7"})),T||(T=d.createElement("circle",{cx:7,cy:9,r:1,fill:"#6C726E"})),C||(C=d.createElement("circle",{cx:7,cy:12,r:1,fill:"#6C726E"})));var D,O,L;function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;td.createElement("svg",R({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})),O||(O=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"})),L||(L=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 z=i(93896),B=i(7081),G=i(45472),U=i(72455),H=i(3288),F=i(99235),V=i(77766),Y=i(27333),W=i(6464);function UserMenu(){const e=(0,W.i)("proactiveUserEngagement"),t=(0,u.useSelect)(e=>e(z.O4).getProxyPermissionsURL()),i=(0,u.useSelect)(e=>e(I.oR).getEmail()),n=(0,u.useSelect)(e=>e(I.oR).getPicture()),o=(0,u.useSelect)(e=>e(I.oR).getFullName()),s=(0,u.useSelect)(e=>e(z.O4).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})),r=(0,Y.A)(U.CV,"isAutoCreatingCustomDimensionsForAudience"),[a,l]=(0,d.useState)(!1),[c,p]=(0,d.useState)(!1),S=(0,d.useRef)(),A=(0,d.useRef)(),j=(0,V.A)(),{navigateTo:M}=(0,u.useDispatch)(G.M);(0,m.A)(S,()=>p(!1)),(0,F.l)([f._f,f.wn],S,()=>{p(!1),A.current?.focus()});const T=(0,d.useCallback)(()=>{l(!1),p(!1)},[l,p]),C=(0,d.useCallback)(e=>{f._f===e.keyCode&&T()},[T]);(0,h.A)("keyup",C);const E=(0,d.useCallback)(()=>{c||(0,v.sx)(`${j}_headerbar`,"open_usermenu"),p(!c)},[c,j]),D=(0,d.useCallback)(()=>{l(!a),p(!1)},[a]),{setValue:O}=(0,u.useDispatch)(B.n),L=(0,d.useCallback)(async(e,i)=>{const{detail:{item:n}}=i;switch(n?.id){case"manage-sites":t&&(await(0,v.sx)(`${j}_headerbar_usermenu`,"manage_sites"),M(t));break;case"disconnect":D();break;case"manage-email-reports":O(H.Q,!0);break;default:E()}},[t,E,D,M,O,j]),R=(0,d.useCallback)(async()=>{l(!1),await(0,_.IL)(),await(0,v.sx)(`${j}_headerbar_usermenu`,"disconnect_user"),M(s)},[s,M,j]);if(!i)return null;let Z;return o&&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"),o,i)),o&&!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"),o)),!o&&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,x.jsxs)(d.Fragment,{children:[(0,x.jsxs)("div",{ref:S,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,x.jsx)(y.Button,{disabled:r,ref:A,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:E,icon:!!n&&(0,x.jsx)("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true",children:(0,x.jsx)("img",{className:"mdc-button__icon--image",src:n,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,x.jsxs)("span",{"aria-label":Z,children:[(0,x.jsx)("strong",{children:(0,g.__)("Google Account","google-site-kit")}),(0,x.jsx)("br",{}),(0,x.jsx)("br",{}),o,o&&(0,x.jsx)("br",{}),i]}),text:!0,tooltip:!0}),(0,x.jsxs)(y.Menu,{className:"googlesitekit-user-menu",menuOpen:c,onSelected:L,id:"user-menu",children:[(0,x.jsx)("li",{children:(0,x.jsx)(Details,{})}),e&&(0,x.jsx)("li",{id:"manage-email-reports",className:"mdc-list-item",role:"menuitem",children:(0,x.jsx)(Item,{icon:(0,x.jsx)(P,{width:"24"}),label:(0,g.__)("Manage email reports","google-site-kit")})}),!!t&&(0,x.jsx)("li",{id:"manage-sites",className:"mdc-list-item",role:"menuitem",children:(0,x.jsx)(Item,{icon:(0,x.jsx)(w,{width:"24"}),label:(0,g.__)("Manage Sites","google-site-kit")})}),(0,x.jsx)("li",{id:"disconnect",className:"mdc-list-item",role:"menuitem",children:(0,x.jsx)(Item,{icon:(0,x.jsx)(N,{width:"24"}),label:(0,g.__)("Disconnect","google-site-kit")})})]})]}),(0,x.jsx)(b.A,{children:(0,x.jsx)(k.A,{dialogActive:a,handleConfirm:R,handleCancel:T,onClose:T,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),Q=i(35323),$=i(29898),X=i(15844),q=i(39525),K=i(30521),J=i(24558),ee=i(73874),te=i(12108),ie=i(32947);var ne=i(44949),oe=i(86134);const se={[ee.Oo]:{[J.SH]:ne.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,[J.OT]:ne.CONTEXT_MAIN_DASHBOARD_TRAFFIC,[J.en]:ne.CONTEXT_MAIN_DASHBOARD_CONTENT,[J.Ej]:ne.CONTEXT_MAIN_DASHBOARD_SPEED,[J.Gw]:ne.CONTEXT_MAIN_DASHBOARD_MONETIZATION},[ee.oE]:{[J.OT]:ne.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,[J.en]:ne.CONTEXT_ENTITY_DASHBOARD_CONTENT,[J.Ej]:ne.CONTEXT_ENTITY_DASHBOARD_SPEED,[J.Gw]:ne.CONTEXT_ENTITY_DASHBOARD_MONETIZATION}};var re;function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;td.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;td.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 he;function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;td.createElement("svg",fe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 23 12"},e),he||(he=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 ke,ve;function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;td.createElement("svg",_e({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 16"},e),ke||(ke=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"})),ve||(ve=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 Ie;function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;td.createElement("svg",xe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 16"},e),Ie||(Ie=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)(),n=(0,V.A)(),o=function(){const e=(0,ee.Ay)(),t=(0,Q.A)();return(0,u.useSelect)(i=>{const n=t?i(I.oR).getViewableModules():null,o=i(I.oR).isKeyMetricsWidgetHidden(),s={modules:n||void 0};return Object.keys(se[e]).reduce((t,n)=>(n===J.SH&&o||i(oe.aO).isWidgetContextActive(se[e][n],s)&&t.push(n),t),[])})}(),{calculateScrollPosition:s,defaultChipID:r,findClosestSection:a,isValidChipID:c,scrollToChip:p,updateURLHash:m}=function({visibleSections:e}){const t=(0,ie.dv)(),n=(0,Q.A)(),o=(0,d.useCallback)(()=>e.includes(J.SH)?J.SH:n?e[0]||"":J.OT,[n,e])(),s=(0,d.useCallback)(t=>e.includes(t),[e]),r=(0,d.useCallback)(e=>{i.g.history.replaceState({},"",`#${e}`)},[]),a=(0,d.useCallback)(e=>e!==o?(0,te.YJ)(`#${e}`,t):0,[t,o]),l=(0,d.useCallback)(e=>{i.g.scrollTo({top:a(e,t,o),behavior:"smooth"})},[t,a,o]),c=(0,d.useCallback)(t=>{var i;const n=document.querySelector(".googlesitekit-entity-header")?.getBoundingClientRect?.()?.bottom,{bottom:s}=null!==(i=t?.current?.getBoundingClientRect?.())&&void 0!==i?i:{};let r,a=o;for(const t of e){const e=document.getElementById(t);if(!e)continue;const i=e.getBoundingClientRect().top-20-(n||s||0);i<0&&(void 0===r||r{const t=e.closest(".mdc-chip"),i=t?.dataset?.contextId;m(i),k(i),p(i),(0,v.sx)(`${n}_navigation`,"tab_select",i),setTimeout(()=>{A(B.F,i)},50)},[p,A,m,n]),M=(0,d.useCallback)(()=>{if(!t?.current)return;const{top:e}=t?.current?.getBoundingClientRect();if(0===i.g.scrollY)b(!1);else{const t=document.querySelector(".googlesitekit-header")?.getBoundingClientRect?.()?.bottom;b(e===t)}},[]),T=(0,d.useCallback)(e=>{function o(e){A(B.F,void 0),N(e),k(void 0)}const s=a(t);if(y)y===s&&o(s);else{const{hash:t}=i.g.location;s!==t?.substring(1)&&(e&&(0,v.sx)(`${n}_navigation`,"tab_scroll",s),m(s),o(s))}},[a,y,A,m,n]);(0,X.A)(()=>{if(!f)return N(r),void setTimeout(()=>m(r));const e=c(f)?f:r;N(e),A(B.F,e),setTimeout(()=>{const t=s(e);i.g.scrollY!==t?p(e):A(B.F,void 0)},50)});const C=(0,d.useCallback)(e=>{M(),T(e)},[T,M]),E=(0,K.A)(C,150);(0,h.A)("scroll",E);const w={[J.SH]:{label:(0,g.__)("Key metrics","google-site-kit"),icon:(0,x.jsx)(me,{width:"18",height:"16"})},[J.OT]:{label:(0,g.__)("Traffic","google-site-kit"),icon:(0,x.jsx)(Se,{width:"18",height:"16"})},[J.en]:{label:(0,g.__)("Content","google-site-kit"),icon:(0,x.jsx)(le,{width:"18",height:"18"})},[J.Ej]:{label:(0,g.__)("Speed","google-site-kit"),icon:(0,x.jsx)(be,{width:"20",height:"16"})},[J.Gw]:{label:(0,g.__)("Monetization","google-site-kit"),icon:(0,x.jsx)(ye,{width:"18",height:"16"})}};return(0,x.jsx)("nav",{className:l()("mdc-chip-set","googlesitekit-navigation",`googlesitekit-navigation--${e}`,{"googlesitekit-navigation--is-sticky":_}),ref:t,children:o.map(e=>(0,x.jsx)(q.Chip,{id:e,label:w[e].label,leadingIcon:w[e].icon,onClick:j,selected:S===e,"data-context-id":e},e))})}function DashboardNavigation(){const e=(0,Q.A)(),t=(0,u.useSelect)(t=>e?t(I.oR).getViewableModules():null),i=(0,u.useSelect)(e=>e(I.oR).getKeyMetrics());return(0,x.jsx)($.A,{loading:void 0===t||void 0===i,width:"100%",smallHeight:"59px",height:"71px",children:(0,x.jsx)(Navigation,{})})}var Ne,Ae;function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;td.createElement("svg",je({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),Ne||(Ne=d.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),Ae||(Ae=d.createElement("path",{fill:"currentColor",d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"})));var Te=i(20898),Ce=i(59323),Ee=i(8143);const we=function EntityHeader(){const e=(0,V.A)(),t=(0,ee.Ay)(),n=(0,u.useSelect)(e=>e(z.O4).getCurrentEntityTitle()),o=(0,u.useSelect)(e=>e(z.O4).getCurrentEntityURL()),s=(0,d.useRef)(),[r,a]=(0,d.useState)(o),l=(0,d.useCallback)(()=>{if(!s.current)return;const e=s.current.clientWidth-40,t=i.g.getComputedStyle(s.current.lastChild,null).getPropertyValue("font-size"),n=2*e/parseFloat(t);a((0,Ee.r0)(o,n))},[o]),c=(0,K.A)(l,150);(0,h.A)("resize",c);const{navigateTo:p}=(0,u.useDispatch)(G.M),m=(0,u.useSelect)(e=>e(z.O4).getAdminURL("googlesitekit-dashboard")),f=(0,d.useCallback)(()=>{(0,v.sx)(`${e}_navigation`,"return_to_dashboard"),p(m)},[m,p,e]);return ee.oE!==t||null===o||null===n?null:(0,x.jsxs)("div",{className:"googlesitekit-entity-header",children:[(0,x.jsx)("div",{className:"googlesitekit-entity-header__back",children:(0,x.jsx)(y.Button,{icon:(0,x.jsx)(Me,{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,x.jsxs)("div",{ref:s,className:"googlesitekit-entity-header__details",children:[(0,x.jsx)(Ce.A,{children:n}),(0,x.jsx)(Te.A,{href:o,"aria-label":o,secondary:!0,external:!0,children:r})]})]})};var De;function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;td.createElement("svg",Oe({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 Re=i(13606);function Description(){const e=(0,V.A)(),t=(0,u.useSelect)(e=>e(I.oR).hasCapability(I.ej)),i=(0,u.useSelect)(e=>e(z.O4).getProxySetupURL()),n=(0,u.useSelect)(e=>e(z.O4).getDocumentationLinkURL("dashboard-sharing")),{navigateTo:o}=(0,u.useDispatch)(G.M),s=(0,d.useCallback)(async t=>{t.preventDefault(),await Promise.all([(0,_.SO)("start_user_setup",!0),(0,v.sx)(`${e}_headerbar_viewonly`,"start_user_setup",i?"proxy":"custom-oauth")]),o(i)},[i,o,e]),r=(0,d.useCallback)(()=>{(0,v.sx)(`${e}_headerbar_viewonly`,"click_learn_more_link")},[e]),a=t?(0,Re.A)((0,g.__)("You can see stats from all shared Google services, but you can't make any changes. Sign in to connect more services and control sharing access.","google-site-kit"),{strong:(0,x.jsx)("strong",{})}):(0,Re.A)((0,g.__)("You can see stats from all shared Google services, but you can't make any changes. Learn more","google-site-kit"),{a:(0,x.jsx)(Te.A,{href:n,onClick:r,"aria-label":(0,g.__)("Learn more about dashboard sharing","google-site-kit"),external:!0})});return(0,x.jsxs)("li",{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__description",children:[(0,x.jsx)(Ce.A,{children:a}),t&&(0,x.jsx)(y.Button,{onClick:s,children:(0,g._x)("Sign in with Google","Service name","google-site-kit")})]})}var Pe=i(37226);function Service({module:e}){const t=(0,u.useSelect)(e=>e(I.oR).hasCapability(I.ej)),{name:i,owner:n}=(0,u.useSelect)(t=>t(Pe.i).getModule(e)||{}),o=(0,u.useSelect)(t=>t(Pe.i).getModuleIcon(e));return(0,x.jsxs)("li",{className:"googlesitekit-view-only-menu__service",children:[(0,x.jsx)("span",{className:"googlesitekit-view-only-menu__service--icon",children:(0,x.jsx)(o,{height:26})}),(0,x.jsx)("span",{className:"googlesitekit-view-only-menu__service--name",children:i}),t&&n?.login&&(0,x.jsx)("span",{className:"googlesitekit-view-only-menu__service--owner",children:(0,Re.A)((0,g.sprintf)(/* translators: %s: module owner Google Account email address */ /* translators: %s: module owner Google Account email address */
(0,g.__)("Shared by %s","google-site-kit"),n.login),{strong:(0,x.jsx)("strong",{title:n.login})})})]})}Service.propTypes={module:r().string.isRequired};var ze=i(15167);function SharedServices(){const e=(0,u.useSelect)(e=>e(I.oR).getViewableModules());return void 0===e?null:(0,x.jsxs)("li",{className:"googlesitekit-view-only-menu__list-item",children:[(0,x.jsx)(ze.A,{as:"h4",size:"large",type:"title",children:(0,g.__)("Shared services","google-site-kit")}),(0,x.jsx)("ul",{children:e.map(e=>(0,x.jsx)(Service,{module:e},e))})]})}var Be=i(82167);function Tracking(){const e=(0,V.A)();return(0,x.jsxs)("li",{className:"googlesitekit-view-only-menu__list-item",children:[(0,x.jsx)(Ce.A,{children:(0,Re.A)((0,g.__)("Thanks for using Site Kit! Help us make it even better","google-site-kit"),{br:(0,x.jsx)("br",{})})}),(0,x.jsx)(Be.A,{trackEventCategory:`${e}_headerbar_viewonly`,alignCheckboxLeft:!0})]})}var Ge=i(74595);function ManageEmailReports(){const{setValue:e}=(0,Ge.wA)(B.n);return(0,x.jsxs)(d.Fragment,{children:[(0,x.jsx)("li",{className:"mdc-list-divider",role:"separator"}),(0,x.jsx)("li",{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__email-reporting",children:(0,x.jsx)("ul",{className:"googlesitekit-view-only-menu",children:(0,x.jsx)("li",{className:"googlesitekit-view-only-menu__email-reporting-item",children:(0,x.jsx)(y.Button,{onClick:()=>e(H.Q,!0),icon:(0,x.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--icon",children:(0,x.jsx)(P,{width:"24"})}),tertiary:!0,children:(0,x.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),n=(0,d.useRef)(),o=(0,V.A)();(0,m.A)(n,()=>i(!1)),(0,F.l)([f._f,f.wn],n,()=>i(!1));const s=(0,d.useCallback)(()=>{t||(0,v.sx)(`${o}_headerbar`,"open_viewonly"),i(!t)},[t,o]),r=(0,u.useSelect)(e=>e(I.oR).hasCapability(I.ej));return(0,x.jsxs)("div",{ref:n,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,x.jsx)(y.Button,{className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--phone googlesitekit-button-icon",onClick:s,icon:(0,x.jsx)("span",{className:"mdc-button__icon","aria-hidden":"true",children:(0,x.jsx)(Le,{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,x.jsxs)(y.Menu,{menuOpen:t,onSelected:s,id:"view-only-menu",nonInteractive:!0,children:[(0,x.jsx)(Description,{}),(0,x.jsx)(SharedServices,{}),e&&(0,x.jsx)(ManageEmailReports,{}),(0,x.jsx)("li",{className:"mdc-list-divider",role:"separator"}),(0,x.jsx)(Tracking,{})]})]})}var Ue=i(71423),He=i(53137),Fe=i(77513);function CoreSiteBannerNotification({id:e,...t}){const{dismissNotification:i,acceptNotification:n}=(0,u.useDispatch)(z.O4),o=(0,d.useCallback)(()=>{n(e)},[e,n]),s=(0,d.useCallback)(()=>{i(e)},[e,i]);return(0,x.jsx)(Fe.A,{onCTAClick:o,onDismissClick:s,...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 Ve=CoreSiteBannerNotification;const Ye=function CoreSiteBannerNotifications(){const e=(0,V.A)(),[t,i]=(0,d.useState)(!1),[n,o]=(0,d.useState)(!1),s=(0,d.useRef)(Date.now()),r=(0,u.useSelect)(e=>e(z.O4).isUsingProxy()&&!1===e(I.oR).areSurveysOnCooldown()?e(I.oR).getCurrentSurvey():null),[a,l]=(0,d.useState)([]),{registerNotification:c}=(0,u.useDispatch)(Ue.D),g=(0,u.useSelect)(e=>e(z.O4).getNotifications());return(0,d.useEffect)(()=>{const e=setTimeout(()=>{n||i(!0)},5e3);return()=>{clearTimeout(e)}},[n]),(0,d.useEffect)(()=>{Math.floor((Date.now()-s.current)/1e3)<5&&r&&o(!0)},[s,r,o]),(0,d.useEffect)(()=>{t&&!n&&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,x.jsx)(e,{gaTrackingEventArgs:i,children:(0,x.jsx)(Ve,{...t,gaTrackingEventArgs:i})}),priority:t.priority,areaSlug:He.bI.HEADER,isDismissible:t.dismissible}),l(e=>(e.push(t.id),e))})},[e,n,g,c,a,t]),null};var We=i(90007),Ze=i(43569);function InternalServerError(){const e=(0,u.useSelect)(e=>e(z.O4).getInternalServerError());return e?(0,x.jsx)(Ze.A,{id:"internal-server-error",children:(0,x.jsx)(We.A,{notificationID:"internal-server-error",type:We.Q.ERROR,title:e.title,description:e.description})}):null}function LegacyNotifications(){const e=(0,Q.A)(),t=(0,ee.Ay)(),i=(0,u.useSelect)(e=>e(I.oR).isAuthenticated());return(0,x.jsxs)(d.Fragment,{children:[(0,x.jsx)(InternalServerError,{}),!e&&t===ee.Oo&&i&&(0,x.jsx)(Ye,{})]})}var Qe=i(74995);function Header({children:e,subHeader:t,showNavigation:i}){const n=!!(0,ee.Ay)(),o=(0,Q.A)();!function(){const e=(0,V.A)(),t=(0,u.useSelect)(e=>e(z.O4).isUsingProxy()),i=(0,u.useSelect)(e=>e(z.O4).getSetupErrorMessage());(0,d.useEffect)(()=>{i||void 0===t||async function(){const i=await(0,_.Gq)("start_user_setup"),n=await(0,_.Gq)("start_site_setup");i.cacheHit&&(await(0,_.LD)("start_user_setup"),(0,v.sx)(`${e}_setup`,"complete_user_setup",t?"proxy":"custom-oauth")),n.cacheHit&&(await(0,_.LD)("start_site_setup"),(0,v.sx)(`${e}_setup`,"complete_site_setup",t?"proxy":"custom-oauth"))}()},[e,t,i])}();const s=(0,u.useSelect)(e=>e(z.O4).getAdminURL("googlesitekit-dashboard")),r=(0,u.useSelect)(e=>e(I.oR).isAuthenticated()),[a,m]=(0,c.A)({childList:!0}),h=!!m.target?.childElementCount;return(0,x.jsxs)(d.Fragment,{children:[(0,x.jsx)("header",{className:l()("googlesitekit-header",{"googlesitekit-header--has-subheader":h,"googlesitekit-header--has-navigation":i}),children:(0,x.jsx)(Z.xA,{children:(0,x.jsxs)(Z.fI,{children:[(0,x.jsx)(Z.fh,{smSize:1,mdSize:2,lgSize:4,className:"googlesitekit-header__logo",alignMiddle:!0,children:(0,x.jsx)(Te.A,{"aria-label":(0,g.__)("Go to dashboard","google-site-kit"),className:"googlesitekit-header__logo-link",href:s,children:(0,x.jsx)(p.A,{})})}),(0,x.jsxs)(Z.fh,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0,children:[e,!r&&n&&o&&(0,x.jsx)(ViewOnlyMenu,{}),r&&!o&&(0,x.jsx)(UserMenu,{})]})]})})}),(0,x.jsx)("div",{className:"googlesitekit-subheader",ref:a,children:t}),i&&(0,x.jsx)(DashboardNavigation,{}),(0,x.jsx)(we,{}),(0,x.jsx)(LegacyNotifications,{}),(0,x.jsx)(Qe.A,{areaSlug:He.bI.HEADER})]})}Header.displayName="Header",Header.propTypes={children:r().node,subHeader:r().element,showNavigation:r().bool},Header.defaultProps={children:null,subHeader:null};const $e=Header},12850:(e,t,i)=>{i.d(t,{tt:()=>N,Jg:()=>S,Gp:()=>I,GH:()=>b,r0:()=>x,Du:()=>A,Zf:()=>V,Cn:()=>z,G7:()=>f,vH:()=>h,N_:()=>D,zh:()=>W,mK:()=>g.mK,Ql:()=>j,vY:()=>P,sq:()=>T,VZ:()=>B.VZ,JK:()=>g.JK,IS:()=>E,pH:()=>B.pH,kf:()=>U,O5:()=>w,Qr:()=>M,x6:()=>G,K5:()=>g.K5,S_:()=>m,dc:()=>B.dc,Eo:()=>g.Eo,jq:()=>g.jq,DK:()=>F.D,N9:()=>H,p9:()=>s.p,XH:()=>C,Zm:()=>l,sx:()=>o.sx,BI:()=>o.BI,CZ:()=>s.C,BG:()=>Y});var n=i(17243),o=i(89318),s=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 n=e[i];n&&"object"==typeof n&&!Array.isArray(n)&&(n=c(n)),t[i]=n}),t}var g=i(79829);function d(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'$1')}function u(e){return`
${e.replace(/\n{2,}/g,"
")}
`}function p(e){return e.replace(/\n/gi," ")}function m(e){const t=[d,u,p];let i=e;for(const e of t)i=e(i);return i}function h(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 y=i(32091),k=i.n(y),v=i(82871);const _="Date param must construct to a valid date instance or be a valid date instance itself.",b="Invalid dateString parameter, it must be a string.",I='Invalid date range, it must be a string with the format "last-x-days".',x=60,S=60*x,N=24*S,A=7*N;function j(){function e(e){return(0,v.sprintf)(/* translators: %s: number of days */ /* translators: %s: number of days */
(0,v._n)("Last %s day","Last %s days",e,"google-site-kit"),e)}return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}function M(e=""){if(!(0,n.isString)(e))return!1;if(3!==e.split("-").length)return!1;const t=new Date(e);return(0,n.isDate)(t)&&!isNaN(t)}function T(e){k()((0,n.isDate)(e)&&!isNaN(e),_);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 C(e){k()(M(e),b);const[t,i,n]=e.split("-");return new Date(t,i-1,n)}function E(e,t){return T(D(e,t*N))}function w(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){k()(M(e)||(0,n.isDate)(e)&&!isNaN(e),b);const i=M(e)?Date.parse(e):e.getTime();return new Date(i-1e3*t)}var O=i(69743),L=i(94552),R=i(62540);function P(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:i=!1}=t;return(0,O.Ay)((0,R.jsx)(L.A,{direction:e>0?"up":"down",invertColor:i}))}function z(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var B=i(8143);function G(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 H(e){return Array.isArray(e)?[...e].sort():e}var F=i(2522);function V(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 n=(t-e)/e;return Number.isNaN(n)||!Number.isFinite(n)?null:n}function Y(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,n.unescape)(t)}},14007:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(47209),o=i(62688),s=i.n(o),r=i(63696),a=i(78325);function Portal({children:e,slug:t}){const[i]=(0,r.useState)(document.createElement("div"));return(0,n.A)(()=>{t&&i.classList.add(`googlesitekit-portal-${t}`);const e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(i),()=>e.removeChild(i)}),(0,a.createPortal)(e,i)}Portal.propTypes={slug:s().string,children:s().node},Portal.defaultProps={slug:"",children:null};const l=Portal},15167:(e,t,i)=>{i.d(t,{A:()=>Typography});var n=i(62688),o=i.n(n),s=i(4452),r=i.n(s),a=i(3714),l=i(62540);function Typography({className:e,type:t,size:i,as:n="span",children:o,...s}){return(0,l.jsx)(n,{className:r()("googlesitekit-typography",e,{[`googlesitekit-typography--${t}`]:t&&a.tT.includes(t),[`googlesitekit-typography--${i}`]:i&&a.oJ.includes(i)}),...s,children:o})}Typography.propTypes={className:o().string,type:o().oneOf(a.tT),size:o().oneOf(a.oJ),as:o().oneOfType([o().string,o().elementType])}},15210:(e,t,i)=>{i.d(t,{O:()=>o});var n=i(31234);const o=i.n(n)()(i.g)},15577:(e,t,i)=>{i.d(t,{SO:()=>c});var n=i(55620),o=i(99123);const s={},r=void 0===i.g?null:i.g;function a(){return[i.g.innerWidth,i.g.innerHeight]}function l(e=s){const{fps:t,leading:i,initialWidth:l=0,initialHeight:c=0}=e,[g,d]=(0,n._)("undefined"==typeof document?[l,c]:a,t,i);function u(){return d(a)}return(0,o.A)(r,"resize",u),(0,o.A)(r,"orientationchange",u),g}function c(e){return l(e)[0]}},16196:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(50539),o=i(37226),s=i(71769),r=i(62540);function a({moduleName:e,FallbackComponent:t,IncompleteComponent:i}){return a=>{function WhenActiveComponent(s){const l=(0,n.useSelect)(t=>t(o.i).getModule(e),[e]);if(!l)return null;const c=t||s.WidgetNull||null;if(!1===l.active)return c&&(0,r.jsx)(c,{...s});if(!1===l.connected){const e=i||c;return e&&(0,r.jsx)(e,{...s})}return(0,r.jsx)(a,{...s})}return WhenActiveComponent.displayName=`When${(0,s.Uf)(e)}Active`,(a.displayName||a.name)&&(WhenActiveComponent.displayName+=`(${a.displayName||a.name})`),WhenActiveComponent}}},16834:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(62688),o=i.n(n),s=i(4452),r=i.n(s),a=i(62540);function VisuallyHidden({className:e,children:t,...i}){return t?(0,a.jsx)("span",{...i,className:r()("screen-reader-text",e),children:t}):null}VisuallyHidden.propTypes={className:o().string,children:o().node},VisuallyHidden.defaultProps={className:""};const l=VisuallyHidden},18418:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,o=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2 12"},e),n||(n=o.createElement("g",{fill:"currentColor",fillRule:"evenodd"},o.createElement("path",{d:"M0 0h2v7H0zM0 10h2v2H0z"}))))},19793:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,o=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),n||(n=o.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:()=>M});var n,o=i(4452),s=i.n(o),r=i(62688),a=i.n(r),l=i(39941),c=i(63696),g=i(82871);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),n||(n=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 m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",m({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 y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",y({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 v=i(83366),_=i(84385),b=i(62540);const I="BUTTON",x="BUTTON_DISABLED",S="EXTERNAL_LINK",N="LINK",A="ROUTER_LINK",j=(0,c.forwardRef)((e,t)=>{const{"aria-label":i,secondary:n=!1,arrow:o=!1,back:r=!1,caps:a=!1,children:c,className:d="",danger:p=!1,disabled:m=!1,external:f=!1,hideExternalIndicator:y=!1,href:j="",inverse:M=!1,noFlex:T=!1,onClick:C,small:E=!1,standalone:w=!1,linkButton:D=!1,to:O,leadingIcon:L,trailingIcon:R,...P}=e;const z=j||O||!C?O?A:f?S:N:m?x:I;const B=z===I||z===x?"button":z===A?l.N_:"a",G=function(){let e;return z===S&&(e=(0,g._x)("(opens in a new tab)","screen reader text","google-site-kit")),z===x&&(e=(0,g._x)("(disabled)","screen reader text","google-site-kit")),e?i?`${i} ${e}`:"string"==typeof c?`${c} ${e}`:void 0:i}();let U=L,H=R;return r&&(U=(0,b.jsx)(k,{width:14,height:14})),f&&!y&&(H=(0,b.jsx)(v.A,{width:14,height:14})),o&&!M&&(H=(0,b.jsx)(u,{width:14,height:14})),o&&M&&(H=(0,b.jsx)(h,{width:14,height:14})),(0,b.jsxs)(B,{"aria-label":G,className:s()("googlesitekit-cta-link",d,{"googlesitekit-cta-link--secondary":n,"googlesitekit-cta-link--inverse":M,"googlesitekit-cta-link--small":E,"googlesitekit-cta-link--caps":a,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":m,"googlesitekit-cta-link--standalone":w,"googlesitekit-cta-link--link-button":D,"googlesitekit-cta-link--no-flex":!!T}),disabled:m,href:z!==N&&z!==S||m?void 0:j,onClick:C,rel:z===S?"noopener noreferrer":void 0,ref:t,target:z===S?"_blank":void 0,to:O,...P,children:[!!U&&(0,b.jsx)(_.A,{marginRight:5,children:U}),(0,b.jsx)("span",{className:"googlesitekit-cta-link__contents",children:c}),!!H&&(0,b.jsx)(_.A,{marginLeft:5,children:H})]})});j.propTypes={arrow:a().bool,back:a().bool,caps:a().bool,children:a().node,className:a().string,danger:a().bool,disabled:a().bool,external:a().bool,hideExternalIndicator:a().bool,href:a().string,inverse:a().bool,leadingIcon:a().node,linkButton:a().bool,noFlex:a().bool,onClick:a().func,small:a().bool,standalone:a().bool,to:a().string,trailingIcon:a().node};const M=j},21134:(e,t,i)=>{i.d(t,{Gq:()=>d,IL:()=>h,LD:()=>p,SO:()=>u,a2:()=>o,xD:()=>m});var n=i(12850);const o="googlesitekit_",s=`${o}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(`${s}${e}`);if(i){const e=JSON.parse(i),{timestamp:t,ttl:n,value:o,isError:s}=e;if(t&&(!n||Math.round(Date.now()/1e3)-t{i.d(t,{A:()=>o});var n=i(24558);function o(e){return n.kz.includes(e)}},23224:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(62688),o=i.n(n),s=i(4452),r=i.n(s),a=i(32947),l=i(62540);function PreviewBlock({className:e,width:t,height:i,shape:n,padding:o,smallWidth:s,smallHeight:c,tabletWidth:g,tabletHeight:d,desktopWidth:u,desktopHeight:p}){const m=(0,a.dv)(),h={width:{[a.mp]:s,[a.Lg]:g,[a.Fo]:u,[a.Qb]:u},height:{[a.mp]:c,[a.Lg]:d,[a.Fo]:p,[a.Qb]:u}};return(0,l.jsx)("div",{className:r()("googlesitekit-preview-block",e,{"googlesitekit-preview-block--padding":o}),style:{width:h.width[m]||t,height:h.height[m]||i},children:(0,l.jsx)("div",{className:r()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===n})})})}PreviewBlock.propTypes={className:o().string,width:o().string,height:o().string,shape:o().string,padding:o().bool,smallWidth:o().string,smallHeight:o().string,tabletWidth:o().string,tabletHeight:o().string,desktopWidth:o().string,desktopHeight:o().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:()=>s,CZ:()=>g,Ej:()=>x,Gw:()=>S,Is:()=>r,KK:()=>u,Nn:()=>A,OT:()=>b,SH:()=>_,Y$:()=>p,ZS:()=>a,bg:()=>f,en:()=>I,ep:()=>h,f7:()=>o,hi:()=>m,jU:()=>n,k$:()=>k,kz:()=>N,ly:()=>l,mo:()=>y,s3:()=>v,uR:()=>c,zx:()=>d});const n="mainDashboard",o="entityDashboard",s="mainDashboardViewOnly",r="entityDashboardViewOnly",a="userInput",l="activation",c="splash",g="adminBar",d="adminBarViewOnly",u="settings",p="adBlockingRecovery",m="wpDashboard",h="wpDashboardViewOnly",f="moduleSetup",y="metricSelection",k="wpBlockEditor",v="keyMetricsSetup",_="key-metrics",b="traffic",I="content",x="speed",S="monetization",N=[n,o,s,r,a,c,u,f,y],A=[s,r,d,h]},24560:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,o=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},e),n||(n=o.createElement("g",{fill:"currentColor",fillRule:"evenodd"},o.createElement("path",{d:"M0 6.414 1.415 5l5.292 5.292-1.414 1.415z"}),o.createElement("path",{d:"m14.146.146 1.415 1.414L5.414 11.707 4 10.292z"}))))},25623:(e,t,i)=>{i.d(t,{G:()=>d});var n=i(82871),o=i(58116),s=i(93896),r=i(72455);function a({select:e,slug:t}){return e(r.K9).hasConversionReportingEvents(this.requiredConversionEventName)||e(o.oR).isKeyMetricActive(t)}var l=i(50111);function c({select:e,isViewOnlyDashboard:t}){return!t||!(!t||!e(r.K9).getAdSenseLinked())}function g({select:e,isViewOnlyDashboard:t}){return!t||e(r.K9).hasCustomDimensions(this.requiredCustomDimensions)}const d={[o.p3]:{title:(0,n.__)("Top earning pages","google-site-kit"),description:(0,n.__)("Pages that generated the most AdSense revenue","google-site-kit"),infoTooltip:(0,n.__)("Pages that generated the most AdSense revenue","google-site-kit"),displayInSelectionPanel:c,displayInList:c,metadata:{group:l.hs.SLUG}},[o.BT]:{title:(0,n.__)("Top recent trending pages","google-site-kit"),description:(0,n.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),infoTooltip:(0,n.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_date"],displayInSelectionPanel:g,displayInWidgetArea:g,displayInList:g,metadata:{group:l.hs.SLUG}},[o.tB]:{title:(0,n.__)("Most popular authors by pageviews","google-site-kit"),description:(0,n.__)("Authors whose posts got the most visits","google-site-kit"),infoTooltip:(0,n.__)("Authors whose posts got the most visits","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_author"],displayInSelectionPanel:g,displayInWidgetArea:g,displayInList:g,metadata:{group:l.hs.SLUG}},[o.t1]:{title:(0,n.__)("Top categories by pageviews","google-site-kit"),description:(0,n.__)("Categories that your site visitors viewed the most","google-site-kit"),infoTooltip:(0,n.__)("Categories that your site visitors viewed the most","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_categories"],displayInSelectionPanel:g,displayInWidgetArea:g,displayInList:g,metadata:{group:l.hs.SLUG}},[o.ep]:{title:(0,n.__)("Most popular content by pageviews","google-site-kit"),description:(0,n.__)("Pages that brought in the most visitors","google-site-kit"),infoTooltip:(0,n.__)("Pages your visitors read the most","google-site-kit"),metadata:{group:l.hs.SLUG}},[o.pG]:{title:(0,n.__)("Most popular products by pageviews","google-site-kit"),description:(0,n.__)("Products that brought in the most visitors","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_type"],displayInSelectionPanel:({select:e})=>e(o.oR).isKeyMetricActive(o.pG)||e(s.O4).getProductPostType(),displayInWidgetArea:g,metadata:{group:l.GF.SLUG}},[o.nH]:{title:(0,n.__)("Pages per visit","google-site-kit"),description:(0,n.__)("Number of pages visitors viewed per session on average","google-site-kit"),infoTooltip:(0,n.__)("Number of pages visitors viewed per session on average","google-site-kit"),metadata:{group:l.IX.SLUG}},[o.J5]:{title:(0,n.__)("Visit length","google-site-kit"),description:(0,n.__)("Average duration of engaged visits","google-site-kit"),infoTooltip:(0,n.__)("Average duration of engaged visits","google-site-kit"),metadata:{group:l.IX.SLUG}},[o.Yw]:{title:(0,n.__)("Visits per visitor","google-site-kit"),description:(0,n.__)("Average number of sessions per site visitor","google-site-kit"),infoTooltip:(0,n.__)("Average number of sessions per site visitor","google-site-kit"),metadata:{group:l.IX.SLUG}},[o.UY]:{title:(0,n.__)("Most engaging pages","google-site-kit"),description:(0,n.__)("Pages with the highest engagement rate","google-site-kit"),infoTooltip:(0,n.__)("Pages with the highest engagement rate","google-site-kit"),metadata:{group:l.hs.SLUG}},[o.gC]:{title:(0,n.__)("Least engaging pages","google-site-kit"),description:(0,n.__)("Pages with the highest percentage of visitors that left without engagement with your site","google-site-kit"),infoTooltip:(0,n.__)("Percentage of visitors that left without engagement with your site","google-site-kit"),metadata:{group:l.hs.SLUG}},[o.tK]:{title:(0,n.__)("Top pages by returning visitors","google-site-kit"),description:(0,n.__)("Pages that attracted the most returning visitors","google-site-kit"),infoTooltip:(0,n.__)("Pages that attracted the most returning visitors","google-site-kit"),metadata:{group:l.IX.SLUG}},[o.fu]:{title:(0,n.__)("New visitors","google-site-kit"),description:(0,n.__)("How many new visitors you got and how the overall audience changed","google-site-kit"),infoTooltip:(0,n.__)("Portion of visitors who visited your site for the first time in this timeframe","google-site-kit"),metadata:{group:l.IX.SLUG}},[o.dX]:{title:(0,n.__)("Returning visitors","google-site-kit"),description:(0,n.__)("Portion of people who visited your site more than once","google-site-kit"),infoTooltip:(0,n.__)("Portion of your site’s visitors that returned at least once in this timeframe","google-site-kit"),metadata:{group:l.IX.SLUG}},[o.SS]:{title:(0,n.__)("Top traffic source","google-site-kit"),description:(0,n.__)("Channel which brought in the most visitors to your site","google-site-kit"),infoTooltip:(0,n.__)("Channel (e.g. social, paid, search) that brought in the most visitors to your site","google-site-kit"),metadata:{group:l.wb.SLUG}},[o.Vl]:{title:(0,n.__)("Top traffic source driving add to cart","google-site-kit"),description:(0,n.__)("Channel which brought in the most add to cart events to your site","google-site-kit"),infoTooltip:(0,n.__)("Channel (e.g. social, paid, search) that brought in the most add to cart events to your site","google-site-kit"),requiredConversionEventName:[r.nc.ADD_TO_CART],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[o.u_]:{title:(0,n.__)("Top traffic source driving leads","google-site-kit"),description:(0,n.__)("Channel which brought in the most leads to your site","google-site-kit"),infoTooltip:(0,n.__)("Channel (e.g. social, paid, search) that brought in the most leads to your site","google-site-kit"),requiredConversionEventName:[r.nc.SUBMIT_LEAD_FORM,r.nc.CONTACT,r.nc.GENERATE_LEAD],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.XU.SLUG}},[o.HA]:{title:(0,n.__)("Top traffic source driving purchases","google-site-kit"),description:(0,n.__)("Channel which brought in the most purchases to your site","google-site-kit"),infoTooltip:(0,n.__)("Channel (e.g. social, paid, search) that brought in the most purchases to your site","google-site-kit"),requiredConversionEventName:[r.nc.PURCHASE],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[o.GT]:{title:(0,n.__)("Most engaged traffic source","google-site-kit"),description:(0,n.__)("Visitors coming via this channel spent the most time on your site","google-site-kit"),infoTooltip:(0,n.__)("Channel (e.g. social, paid, search) that brought in the most visitors who had a meaningful engagement with your site","google-site-kit"),metadata:{group:l.wb.SLUG}},[o.qy]:{title:(0,n.__)("Top converting traffic source","google-site-kit"),description:(0,n.__)("Channel which brought in the most visits that resulted in key events","google-site-kit"),infoTooltip:(0,n.__)("Channel (e.g. social, paid, search) that brought in visitors who generated the most key events","google-site-kit"),metadata:{group:l.wb.SLUG}},[o.GM]:{title:(0,n.__)("Top cities driving traffic","google-site-kit"),description:(0,n.__)("Which cities you get the most visitors from","google-site-kit"),infoTooltip:(0,n.__)("The cities where most of your visitors came from","google-site-kit"),metadata:{group:l.wb.SLUG}},[o.CQ]:{title:(0,n.__)("Top cities driving leads","google-site-kit"),description:(0,n.__)("Cities driving the most contact form submissions","google-site-kit"),infoTooltip:(0,n.__)("Cities driving the most contact form submissions","google-site-kit"),requiredConversionEventName:[r.nc.SUBMIT_LEAD_FORM,r.nc.CONTACT,r.nc.GENERATE_LEAD],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.XU.SLUG}},[o.Xq]:{title:(0,n.__)("Top cities driving add to cart","google-site-kit"),description:(0,n.__)("Cities where visitors most frequently add products to their carts","google-site-kit"),infoTooltip:(0,n.__)("Cities where visitors most frequently add products to their carts","google-site-kit"),requiredConversionEventName:[r.nc.ADD_TO_CART],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[o.JF]:{title:(0,n.__)("Top cities driving purchases","google-site-kit"),description:(0,n.__)("Cities driving the most purchases","google-site-kit"),infoTooltip:(0,n.__)("Cities driving the most purchases","google-site-kit"),requiredConversionEventName:[r.nc.PURCHASE],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[o.YQ]:{title:(0,n.__)("Top device driving purchases","google-site-kit"),description:(0,n.__)("Top device driving the most purchases","google-site-kit"),infoTooltip:(0,n.__)("Top device driving the most purchases","google-site-kit"),requiredConversionEventName:[r.nc.PURCHASE],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[o.dV]:{title:(0,n.__)("Top countries driving traffic","google-site-kit"),description:(0,n.__)("Which countries you get the most visitors from","google-site-kit"),infoTooltip:(0,n.__)("The countries where most of your visitors came from","google-site-kit"),metadata:{group:l.wb.SLUG}},[o.t7]:{title:(0,n.__)("Top performing keywords","google-site-kit"),description:(0,n.__)("What people searched for before they came to your site","google-site-kit"),infoTooltip:(0,n.__)("The top search queries for your site by highest clickthrough rate","google-site-kit"),metadata:{group:l.wb.SLUG}},[o.HP]:{title:(0,n.__)("Top pages driving leads","google-site-kit"),description:(0,n.__)("Pages on which forms are most frequently submitted","google-site-kit"),requiredConversionEventName:[r.nc.SUBMIT_LEAD_FORM,r.nc.CONTACT,r.nc.GENERATE_LEAD],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.XU.SLUG}}}},27134:(e,t,i)=>{i.d(t,{A:()=>PanelContent});var n=i(4452),o=i.n(n),s=i(17243),r=i(62688),a=i.n(r),l=i(63696),c=i(82871),g=i(81276),d=i(50539),u=i(58116),p=i(72455),m=i(99897),h=i(50111),f=i(25623),y=i(66889),k=i(16196),v=i(27333),_=i(59323),b=i(62540);const I=(0,k.A)({moduleName:m.L1})(function CustomDimensionsNotice(){const e=(0,v.A)(h.Is,h.Y0),t=e?.flatMap(e=>{const t=f.G[e];return t?.requiredCustomDimensions||[]}),n=(0,d.useInViewSelect)(e=>!!t?.length&&!e(p.K9).hasCustomDimensions(t),[t]),o=(0,d.useInViewSelect)(e=>e(u.oR).hasScope(p.S9));(0,d.useInViewSelect)(e=>e(p.K9).getAvailableCustomDimensions());const s=(0,g.A)(n),r=(0,l.useRef)();if((0,l.useEffect)(()=>{if(n&&!1===s){const e=i.g.document.activeElement;e&&e.closest(".googlesitekit-selection-panel-item")&&(0,y.N)(r.current,e)&&e.scrollIntoView()}},[n,s]),!1===n)return null;const a=o?(0,c.__)("The metrics you selected require more data tracking. We will update your Analytics property after saving your selection.","google-site-kit"):(0,c.__)("The metrics you selected require more data tracking. You will be directed to update your Analytics property after saving your selection.","google-site-kit");return(0,b.jsx)("div",{className:"googlesitekit-selection-panel-notice",ref:r,children:(0,b.jsx)(_.A,{children:a})})});var x=i(13606),S=i(45472),N=i(93896),A=i(20898),j=i(718),M=i(35323);function Header({closePanel:e}){const t=(0,M.A)(),i=(0,d.useSelect)(e=>e(N.O4).getSiteKitAdminSettingsURL()),n=(0,d.useSelect)(e=>e(u.oR).isSavingKeyMetricsSettings()),{navigateTo:o}=(0,d.useDispatch)(S.M),s=(0,l.useCallback)(()=>o(i),[i,o]);return(0,b.jsx)(j.W4,{title:(0,c.sprintf)(/* translators: %d: number of max allowed metrics */ /* translators: %d: number of max allowed metrics */
(0,c.__)("Select up to %d metrics","google-site-kit"),h.Hl),onCloseClick:e,children:!t&&(0,b.jsx)(_.A,{children:(0,x.A)((0,c.__)("Edit your personalized goals or deactivate this widget in Settings","google-site-kit"),{link:(0,b.jsx)(A.A,{onClick:s,disabled:n,secondary:!0}),strong:(0,b.jsx)("strong",{})})})})}Header.propTypes={closePanel:a().func.isRequired};var T=i(78340),C=i(37226),E=i(67150),w=i(77766),D=i(64067),O=i(12850),L=i(49383),R=i(23224);function SelectionPanelFooter({savedItemSlugs:e=[],selectedItemSlugs:t=[],saveSettings:i=()=>{},minSelectedItemCount:n=0,maxSelectedItemCount:o=0,isBusy:r,onSaveSuccess:a=()=>{},onCancel:g=()=>{},isOpen:u,closePanel:m=()=>{},isFullScreen:h=!1}){const[f,y]=(0,l.useState)(null),[k,v]=(0,l.useState)(!1),_=(0,d.useSelect)(e=>e(p.K9).isFetchingSyncAvailableAudiences()),I=(0,l.useMemo)(()=>!(0,s.isEqual)((0,O.N9)(t),(0,O.N9)(e)),[e,t]);let S=e?.length>0&&I?(0,c.__)("Apply changes","google-site-kit"):(0,c.__)("Save selection","google-site-kit");h&&(S=(0,c.__)("Complete setup","google-site-kit"));const N=(0,l.useCallback)(async()=>{const{error:e}=await i(t);e||(a(),m(),h||(y(S),v(!0)))},[i,t,a,m,h,S]),A=(0,l.useCallback)(()=>{m(),g()},[m,g]),[j,M]=(0,l.useState)(null);(0,l.useEffect)(()=>{null!==j&&j!==u&&u&&(y(null),v(!1)),M(u)},[u,j]);const T=t?.length||0,C=_?(0,b.jsx)(R.A,{width:"89px",height:"20px"}):(0,b.jsx)("p",{className:"googlesitekit-selection-panel-footer__item-count",children:(0,x.A)((0,c.sprintf)(/* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */ /* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */
(0,c.__)("%1$d selected (up to %2$d)","google-site-kit"),T,o),{MaxCount:(0,b.jsx)("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})})});return(0,b.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,b.jsx)("div",{className:"googlesitekit-selection-panel-footer__content",children:(0,b.jsxs)("div",{className:"googlesitekit-selection-panel-footer__actions",children:[(0,b.jsx)(L.Button,{onClick:A,disabled:r,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),C,(0,b.jsx)(L.SpinnerButton,{onClick:N,isSaving:r,disabled:To||r||!u&&k,children:f||S})]})})})}function Footer({isOpen:e,closePanel:t=s.noop,savedMetrics:i,onNavigationToOAuthURL:n=()=>{},isFullScreen:o=!1}){const r=(0,d.useRegistry)(),a=(0,w.A)(),g=(0,v.A)(h.Is,h.Y0),y=(0,d.useSelect)(e=>e(u.oR).isSavingKeyMetricsSettings()),k=`${a}_kmw-sidebar`,_=g?.flatMap(e=>{const t=f.G[e];return t?.requiredCustomDimensions||[]}),I=(0,d.useInViewSelect)(e=>{if(!_?.length)return!1;return!e(p.K9).hasCustomDimensions(_)},[_]),x=(0,d.useInViewSelect)(e=>e(u.oR).hasScope(p.S9)),A=(0,d.useSelect)(e=>e(C.i).isModuleConnected(m.L1)),j=(0,d.useSelect)(e=>e(N.O4).getAdminURL("googlesitekit-dashboard",{notification:"custom_dimensions"})),M=(0,d.useSelect)(e=>{const t=e(u.oR).getConnectURL({additionalScopes:[p.S9],redirectURL:j});return!!t&&e(S.M).isNavigatingTo(t)}),L=(0,d.useSelect)(e=>e(N.O4).getAdminURL("googlesitekit-dashboard")),R=(0,d.useSelect)(e=>!!L&&e(S.M).isNavigatingTo(L)),{saveKeyMetricsSettings:P,setPermissionScopeError:z}=(0,d.useDispatch)(u.oR),{setValues:B}=(0,d.useDispatch)(T.s),{navigateTo:G}=(0,d.useDispatch)(S.M),U=(0,d.useSelect)(e=>e(p.K9).getKeyMetricsConversionEventWidgets()),H=(0,l.useCallback)(async e=>{const{error:t}=await P({widgetSlugs:e});return{error:t}},[P]),F=(0,l.useCallback)(async e=>{if(Object.values(U).flat().some(t=>e.includes(t))?(0,O.sx)(k,"metrics_sidebar_save","conversion_reporting"):(0,O.sx)(k,"metrics_sidebar_save"),A&&I){if(B(p.Kr,{autoSubmit:!0}),!x)return n(),t(),void z({code:E.db,message:(0,c.__)("Additional permissions are required to create new Analytics custom dimensions","google-site-kit"),data:{status:403,scopes:[p.S9],skipModal:!0,redirectURL:j}});o&&await(0,D.mR)(r)}o&&G(L)},[U,A,I,o,k,B,x,n,t,z,j,r,G,L]),V=(0,l.useCallback)(()=>{(0,O.sx)(k,"metrics_sidebar_cancel"),o&&G(L)},[o,L,G,k]);return(0,b.jsx)(SelectionPanelFooter,{savedItemSlugs:i,selectedItemSlugs:g,saveSettings:H,minSelectedItemCount:h.LO,maxSelectedItemCount:h.Hl,isBusy:y||M||R&&o,onSaveSuccess:()=>{F(g)},onCancel:V,isOpen:e,closePanel:t,isFullScreen:o})}SelectionPanelFooter.propTypes={savedItemSlugs:a().array,selectedItemSlugs:a().array,saveSettings:a().func,saveError:a().object,itemLimitError:a().string,minSelectedItemCount:a().number,maxSelectedItemCount:a().number,isBusy:a().bool,onSaveSuccess:a().func,onCancel:a().func,isOpen:a().bool,closePanel:a().func,isFullScreen:a().bool},Footer.propTypes={isOpen:a().bool,closePanel:a().func,savedMetrics:a().array,onNavigationToOAuthURL:a().func,isFullScreen:a().bool};var P=i(54593);function SelectionPanelItems({savedItemSlugs:e=[],allMetricItems:t}){return(0,b.jsx)("div",{className:"googlesitekit-selection-panel-items",children:(0,b.jsx)(P.A,{savedItemSlugs:e,allMetricItems:t})})}function MetricItems({savedMetrics:e}){const t=(0,M.A)(),{isKeyMetricAvailable:i}=(0,d.useSelect)(e=>e(u.oR)),n=(0,d.useInViewSelect)(e=>i=>f.G[i].displayInSelectionPanel({select:e,isViewOnlyDashboard:t,slug:i}),[t]);const o=Object.keys(f.G).reduce(function(e,t){if(!i(t))return e;if(void 0===n||"function"==typeof f.G[t].displayInSelectionPanel&&!n(t))return e;const{title:o,description:s,metadata:{group:r}}=f.G[t];return{...e,[t]:{title:o,description:s,group:r}}},{});return(0,b.jsx)(SelectionPanelItems,{savedItemSlugs:e,allMetricItems:o})}SelectionPanelItems.propTypes={savedItemSlugs:a().array,allMetricItems:a().object.isRequired},MetricItems.propTypes={savedMetrics:a().array};var z=i(67768);const B=(0,k.A)({moduleName:m.L1})(function KeyMetricsError({savedMetrics:e}){const t=(0,v.A)(h.Is,h.Y0),i=(0,d.useInViewSelect)(e=>e(u.oR).getKeyMetricsSettings()),n=(0,l.useMemo)(()=>!(0,s.isEqual)((0,O.N9)(t),(0,O.N9)(e)),[e,t]),o=(0,d.useSelect)(e=>e(u.oR).getErrorForAction("saveKeyMetricsSettings",[{...i,widgetSlugs:t}])),r=t?.length||0;let a;rh.Hl&&(a=(0,c.sprintf)(/* translators: 1: Maximum number of metrics that can be selected. 2: Number of selected metrics. */ /* translators: 1: Maximum number of metrics that can be selected. 2: Number of selected metrics. */
(0,c.__)("Select up to %1$d metrics (%2$d selected)","google-site-kit"),h.Hl,r));let g=o;return n&&a&&(g={message:a}),(0,b.jsx)(z.A,{error:g,skipRetryMessage:!!a})});function PanelContent({isOpen:e=!1,closePanel:t,savedViewableMetrics:i,showHeader:n=!0,setIsNavigatingToOAuthURL:r=s.noop,isFullScreen:a=!1}){return(0,b.jsxs)(l.Fragment,{children:[n&&(0,b.jsx)(Header,{closePanel:t}),(0,b.jsx)(MetricItems,{savedMetrics:i}),(0,b.jsx)(I,{}),(0,b.jsxs)("div",{className:o()("googlesitekit-user-input__footer-container",{"googlesitekit-user-input__footer-container--fullscreen":a}),children:[(0,b.jsx)(B,{savedMetrics:i}),(0,b.jsx)(Footer,{isOpen:e,closePanel:t,savedMetrics:i,onNavigationToOAuthURL:()=>{r(!0)},isFullScreen:a})]})]})}PanelContent.propTypes={isOpen:a().bool,closePanel:a().func,savedViewableMetrics:a().array,showHeader:a().bool,setIsNavigatingToOAuthURL:a().func,isFullScreen:a().bool}},27333:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(35470),o=i(78340);function s(e,t){return(0,n.A)(i=>{const{getValue:n}=i(o.s);return n(e,t)},[e,t])}},29584:(e,t,i)=>{i.d(t,{A:()=>DismissButton});var n=i(62688),o=i.n(n),s=i(82871),r=i(49383),a=i(62540);function DismissButton({className:e,label:t=(0,s.__)("Maybe later","google-site-kit"),onClick:i,disabled:n,tertiary:o=!0}){return i?(0,a.jsx)(r.Button,{className:e,onClick:i,disabled:n,tertiary:o,children:t}):null}DismissButton.propTypes={className:o().string,label:o().string,onClick:o().func,disabled:o().bool,tertiary:o().bool,dismissOptions:o().shape({expiresInSeconds:o().number,skipHidingFromQueue:o().bool})}},29898:(e,t,i)=>{i.d(t,{A:()=>LoadingWrapper});var n=i(62688),o=i.n(n),s=i(23224),r=i(62540);function LoadingWrapper({loading:e,children:t,...i}){return e?(0,r.jsx)(s.A,{...i}):t}LoadingWrapper.propTypes={loading:o().bool,children:o().node,...s.A.propTypes}},30823:(e,t,i)=>{i.d(t,{A:()=>LearnMoreLink});var n=i(62688),o=i.n(n),s=i(82871),r=i(20898),a=i(62540);function LearnMoreLink({href:e,className:t,label:i=(0,s.__)("Learn more","google-site-kit"),external:n=!0,onClick:o=()=>{}}){return e?(0,a.jsx)(r.A,{href:e,className:t,onClick:o,external:n,children:i}):null}LearnMoreLink.propTypes={href:o().string.isRequired,className:o().string,label:o().string,external:o().bool,onClick:o().func}},32947:(e,t,i)=>{i.d(t,{Fo:()=>s,Lg:()=>r,Qb:()=>o,dv:()=>l,mp:()=>a});var n=i(15577);const o="xlarge",s="desktop",r="tablet",a="small";function l(){const e=(0,n.SO)();return e>1280?o:e>960?s:e>600?r:a}},35323:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(24558),o=i(77766);function s(){const e=(0,o.A)();return n.Nn.includes(e)}},37226:(e,t,i)=>{i.d(t,{U:()=>o,i:()=>n});const n="core/modules",o="insufficient_module_dependencies"},39771:(e,t,i)=>{i.d(t,{Ay:()=>TourTooltips,R0:()=>h,ei:()=>y});var n=i(15844),o=i(36703),s=i(62688),r=i.n(s),a=i(82871),l=i(50539),c=i(7081),g=i(58116),d=i(89318),u=i(60592),p=i(77766),m=i(62540);const h={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")},y={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)"}}},k={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:s,callback:r}){const a=`${t}-step`,v=`${t}-run`,{setValue:_}=(0,l.useDispatch)(c.n),{dismissTour:b}=(0,l.useDispatch)(g.oR),I=(0,l.useRegistry)(),x=(0,p.A)(),S=(0,l.useSelect)(e=>e(c.n).getValue(a)||0),N=(0,l.useSelect)(e=>e(c.n).getValue(v)&&!1===e(g.oR).isTourDismissed(t));(0,n.A)(function(){i.g.document.body.classList.add("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),_(v,!0)});const A=e.map(e=>({disableBeacon:!0,isFixed:!0,placement:"auto",...e}));return(0,m.jsx)(o.Ay,{callback:function(e){!function({index:e,action:t,lifecycle:i,size:n,status:r,type:a}){const l=e+1,c="function"==typeof s?s(x):s;a===o.qY.TOOLTIP&&i===o.VD.TOOLTIP?(0,d.sx)(c,k.VIEW,l):t===o.kl.CLOSE&&i===o.VD.COMPLETE?(0,d.sx)(c,k.DISMISS,l):t===o.kl.NEXT&&r===o.XQ.FINISHED&&a===o.qY.TOUR_END&&n===l&&(0,d.sx)(c,k.COMPLETE,l),i===o.VD.COMPLETE&&r!==o.XQ.FINISHED&&(t===o.kl.PREV&&(0,d.sx)(c,k.PREV,l),t===o.kl.NEXT&&(0,d.sx)(c,k.NEXT,l))}(e);const{action:n,index:l,status:c,step:g,type:u}=e,p=n===o.kl.CLOSE,m=!p&&[o.qY.STEP_AFTER,o.qY.TARGET_NOT_FOUND].includes(u),h=[o.XQ.FINISHED,o.XQ.SKIPPED].includes(c),f=p&&u===o.qY.STEP_AFTER,y=h||f;if(o.qY.STEP_BEFORE===u){let e=g.target;"string"==typeof g.target&&(e=i.g.document.querySelector(g.target)),e?.scrollIntoView?.({block:"center"})}m?function(e,t){_(a,e+(t===o.kl.PREV?-1:1))}(l,n):y&&(i.g.document.body.classList.remove("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),b(t)),r&&r(e,I)},floaterProps:y,locale:f,run:N,stepIndex:S,steps:A,styles:h,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}},42343:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,o=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),n||(n=o.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 n=i(62688),o=i.n(n),s=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 n=(0,c.A)(t,{threshold:i}),{setValue:o}=(0,r.useDispatch)(a.n),{markNotificationSeen:g}=(0,r.useDispatch)(l.D),u=!!n?.isIntersecting,p=d(e),m=(0,s.useRef)();function h(){m.current&&clearTimeout(m.current)}return(0,s.useEffect)(()=>(!p&&u?(h(),m.current=setTimeout(()=>{n?.isIntersecting&&(o(d.getKey(e),!0),g(e))},3e3)):!u&&m.current&&h(),()=>{h()}),[p,u,o,g,e,n]),null}d.getKey=g,ViewedStateObserver.propTypes={id:o().string,observeRef:o().object,threshold:o().number};var u=i(7070),p=i(62540);function Notification({id:e,className:t,gaTrackingEventArgs:i,children:n,onView:o}){const a=(0,s.useRef)(),c=d(e),g=(0,u.A)(e,i?.category,{viewAction:i?.viewAction}),[m,h]=(0,s.useState)(!1),f=(0,r.useSelect)(t=>t(l.D).getNotificationSeenDates(e)),{dismissNotification:y}=(0,r.useDispatch)(l.D);return(0,s.useEffect)(()=>{!m&&c&&(g.view(i?.label,i?.value),o?.(),h(!0)),f?.length>=3&&y(e,{skipHidingFromQueue:!0})},[c,g,m,i,o,f,y,e]),(0,p.jsxs)("section",{id:e,ref:a,className:t,children:[n,!c&&(0,p.jsx)(ViewedStateObserver,{id:e,observeRef:a,threshold:.5})]})}Notification.propTypes={id:o().string,className:o().string,gaTrackingEventArgs:o().shape({category:o().string,viewAction:o().string,label:o().string,value:o().string}),children:o().node,onView:o().func}},44675:(e,t,i)=>{var n=i(131),o=i(78325),s=i(12701),r=i(81276),a=i(63696),l=i(82871),c=i(50539),g=i(93896),d=i(58116),u=i(55527),p=i(12755),m=i(84826),h=i(99620),f=i(95267),y=i(27134),k=i(50111),v=i(78340),_=i(62540);function FullScreenMetricSelectionApp(){const{setValues:e}=(0,c.useDispatch)(v.s),t=(0,c.useSelect)(e=>(e(d.oR).getUserInputSettings(),e(d.oR).hasFinishedResolution("getUserInputSettings"))),i=(0,c.useSelect)(e=>{const t=e(d.oR).getKeyMetrics();if(!Array.isArray(t))return[];const{isKeyMetricAvailable:i}=e(d.oR);return t.filter(i)}),n=(0,c.useSelect)(e=>e(g.O4).isKeyMetricsSetupCompleted()),o=(0,r.A)(n),s=t&&!1===n||!o&&n;return(0,a.useEffect)(()=>{e(k.Is,{[k.Y0]:i})},[i,e]),(0,_.jsxs)(a.Fragment,{children:[(0,_.jsx)(p.A,{children:(0,_.jsx)(m.A,{})}),(0,_.jsx)("div",{className:"googlesitekit-metric-selection",children:(0,_.jsx)("div",{className:"googlesitekit-module-page",children:s&&(0,_.jsx)(u.xA,{children:(0,_.jsxs)(h.A,{rounded:!0,children:[(0,_.jsx)(u.xA,{className:"googlesitekit-user-input__header",children:(0,_.jsxs)(u.fI,{children:[(0,_.jsx)(u.fh,{lgSize:12,mdSize:8,smSize:6,children:(0,_.jsx)(f.A,{className:"googlesitekit-heading-3 googlesitekit-user-input__heading",title:(0,l.__)("Select up to 8 metrics that are most important for your business goals","google-site-kit"),fullWidth:!0})}),(0,_.jsx)(u.fh,{lgSize:12,mdSize:8,smSize:6,children:(0,_.jsx)("span",{className:"googlesitekit-user-input__subtitle",children:(0,l.__)("Site Kit will start collecting data and add them on your dashboard. You can change your selection later on from Site Kit’s main dashboard.","google-site-kit")})})]})}),(0,_.jsx)(u.xA,{className:"googlesitekit-user-input__content",children:(0,_.jsx)(u.fI,{children:(0,_.jsx)(u.fh,{lgSize:12,mdSize:8,smSize:6,children:(0,_.jsx)(y.A,{savedViewableMetrics:i,showHeader:!1,isFullScreen:!0})})})})]})})})})]})}var b=i(24558);(0,n.A)(()=>{const e=document.getElementById("js-googlesitekit-metric-selection");e&&(0,o.render)((0,_.jsx)(s.A,{viewContext:b.mo,children:(0,_.jsx)(FullScreenMetricSelectionApp,{})}),e)})},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:()=>s,CONTEXT_MAIN_DASHBOARD_KEY_METRICS:()=>n,CONTEXT_MAIN_DASHBOARD_MONETIZATION:()=>a,CONTEXT_MAIN_DASHBOARD_SPEED:()=>r,CONTEXT_MAIN_DASHBOARD_TRAFFIC:()=>o,default:()=>u});const n="mainDashboardKeyMetrics",o="mainDashboardTraffic",s="mainDashboardContent",r="mainDashboardSpeed",a="mainDashboardMonetization",l="entityDashboardTraffic",c="entityDashboardContent",g="entityDashboardSpeed",d="entityDashboardMonetization",u={CONTEXT_MAIN_DASHBOARD_KEY_METRICS:n,CONTEXT_MAIN_DASHBOARD_TRAFFIC:o,CONTEXT_MAIN_DASHBOARD_CONTENT:s,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:()=>n});const n="core/location"},47121:(e,t,i)=>{i.d(t,{$C:()=>j,RF:()=>A,WI:()=>S,_5:()=>b,jU:()=>_,o3:()=>v,x0:()=>x});var n=i(32091),o=i.n(n),s=i(50532),r=i.n(s),a=i(17243),l=i(78913);const c="GET_REGISTRY",g="AWAIT";function d(...e){const t=e.reduce((e,t)=>({...e,...t}),{}),i=I(e.reduce((e,t)=>[...e,...Object.keys(t)],[]));return o()(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 m(...e){const t=[...e];let i;return"function"!=typeof t[0]&&(i=t.shift()),(e=i,n={})=>t.reduce((e,t)=>t(e,n),e)}const h=d,f=d,y=d;function k(e){return e}function v(...e){const t=y(...e.map(e=>e.initialState||{}));return{initialState:t,controls:p(...e.map(e=>e.controls||{})),actions:u(...e.map(e=>e.actions||{})),reducer:m(t,...e.map(e=>e.reducer||k)),resolvers:h(...e.map(e=>e.resolvers||{})),selectors:f(...e.map(e=>e.selectors||{}))}}const _={getRegistry:()=>({payload:{},type:c}),*await(e){return{payload:{value:e},type:g}}},b={[c]:(0,l.b)(e=>()=>e),[g]:({payload:e})=>e.value};function I(e){const t=[],i={};for(let n=0;n=1?i[o]+1:1,i[o]>1&&t.push(o)}return t}const x={actions:_,controls:b,reducer:k};function S(e){return t=>N(e(t))}const N=r()(e=>(0,a.mapValues)(e,(e,t)=>(...i)=>{const n=e(...i);return o()(void 0!==n,`${t}(...) is not resolved`),n}));function A(e,{negate:t=!1}={}){return{safeSelector:(0,l.N)(i=>(n,...o)=>{const s=!t,r=!!t;try{return e(i,n,...o),s}catch{return r}}),dangerousSelector:(0,l.N)(t=>(i,...n)=>{e(t,i,...n)})}}function j(e,t){return o()("function"==typeof e,"a validator function is required."),o()("function"==typeof t,"an action creator function is required."),o()("Generator"!==e[Symbol.toStringTag]&&"GeneratorFunction"!==e[Symbol.toStringTag],"an action’s 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:()=>n});const n={NEW:"new",SUCCESS:"success",WARNING:"warning",INFO:"info",INFO_ALT:"info-alt",ERROR:"error"}},50111:(e,t,i)=>{i.d(t,{EA:()=>s,GF:()=>y,Hl:()=>d,IX:()=>m,Is:()=>r,KD:()=>p,LO:()=>g,NO:()=>c,Nl:()=>l,QJ:()=>u,Uf:()=>o,XU:()=>f,Y0:()=>a,hs:()=>k,wb:()=>h});var n=i(82871);const o="key-metrics-setup-cta-widget",s="googlesitekit-key-metrics-selection-panel-opened",r="key-metrics-selection-form",a="key-metrics-selected",l="key-metrics-effective-selection",c="key-metrics-unstaged-selection",g=2,d=8,u={SLUG:"current-selection",LABEL:(0,n.__)("Current selection","google-site-kit")},p={SLUG:"suggested",LABEL:(0,n.__)("Suggested","google-site-kit")},m={SLUG:"visitors",LABEL:(0,n.__)("Visitors","google-site-kit")},h={SLUG:"driving-traffic",LABEL:(0,n.__)("Driving traffic","google-site-kit")},f={SLUG:"generating-leads",LABEL:(0,n.__)("Generating leads","google-site-kit")},y={SLUG:"selling-products",LABEL:(0,n.__)("Selling products","google-site-kit")},k={SLUG:"content-performance",LABEL:(0,n.__)("Content performance","google-site-kit")}},50539:e=>{e.exports=googlesitekit.data},50787:(e,t,i)=>{i.d(t,{d:()=>r});var n=i(18117),o=i(17243),s=i(63696);function r(...e){const t=(0,n.MA)(()=>(0,o.debounce)(...e),e);return(0,s.useEffect)(()=>()=>t.cancel(),[t]),t}},53137:(e,t,i)=>{i.d(t,{FQ:()=>s,He:()=>a,bI:()=>r,rq:()=>o,ui:()=>n});const n="warning-notification-gtg",o="gtg-setup-cta",s={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 n=i(62688),o=i.n(n),s=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),m=i(62540);function ReportErrorButton({message:e,componentStack:t}){const[i,n]=(0,c.useState)(!1);return(0,m.jsx)(p.Button,{"aria-label":i?(0,s.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){l()(`\`\`\`\n${e}\n${t}\n\`\`\``),n(!0)},trailingIcon:(0,m.jsx)(g.A,{className:"mdc-button__icon",icon:i?d.A:u.A}),children:i?(0,s.__)("Copied to clipboard","google-site-kit"):(0,s.__)("Copy error contents","google-site-kit")})}ReportErrorButton.propTypes={message:o().string,componentStack:o().string};const h=ReportErrorButton;function GenericErrorHandlerActions({message:e,componentStack:t}){return(0,m.jsxs)("div",{className:"googlesitekit-generic-error-handler-actions",children:[(0,m.jsx)(h,{message:e,componentStack:t}),(0,m.jsx)(r.A,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0,children:(0,s.__)("Report this problem","google-site-kit")})]})}GenericErrorHandlerActions.propTypes={message:o().string,componentStack:o().string}},54593:(e,t,i)=>{i.d(t,{A:()=>ChipTabGroup});var n=i(63696),o=i(81276),s=i(50539),r=i(50111),a=i(78340),l=i(72455),c=i(99897),g=i(7081),d=i(58116),u=i(37226),p=i(32947),m=i(27333);var h=i(31589),f=i(50787);var y=i(62688),k=i.n(y),v=i(49383),_=i(4452),b=i.n(_),I=i(80452),x=i(42343),S=i(81520),N=i(62540);const A={[r.QJ.SLUG]:I.A,[r.KD.SLUG]:x.A};function Chip({slug:e,label:t,isActive:i,onClick:n,hasNewBadge:o=!1,selectedCount:s=0}){const r=A[e]||S.A;return(0,N.jsxs)(v.Button,{className:b()("googlesitekit-chip-tab-group__chip-item",{"googlesitekit-chip-tab-group__chip-item--active":i}),icon:(0,N.jsx)(r,{width:12,height:12,className:`googlesitekit-chip-tab-group__chip-item-svg googlesitekit-chip-tab-group__chip-item-svg__${e}`}),trailingIcon:s>0?(0,N.jsxs)("span",{className:"googlesitekit-chip-tab-group__chip-item-count",children:["(",s,")"]}):null,onClick:()=>n(e),children:[t,o&&(0,N.jsx)("span",{className:"googlesitekit-chip-tab-group__chip-item-new-dot"})]})}Chip.propTypes={slug:k().string.isRequired,label:k().string.isRequired,isActive:k().bool,hasNewBadge:k().bool,selectedCount:k().number,onClick:k().func.isRequired};const j={[r.QJ.SLUG]:I.A,[r.KD.SLUG]:x.A};function TabItems({containerRef:e,isMobileBreakpoint:t,chipItemRows:i,allGroups:n,isActive:o,onChipChange:s,selectedCounts:r,newlyDetectedMetrics:a,activeGroupIndex:l}){return(0,N.jsxs)("div",{className:"googlesitekit-chip-tab-group__tab-items",ref:e,children:[!t&&i.map(e=>(0,N.jsx)("div",{className:"googlesitekit-chip-tab-group__tab-items-row",children:e.map(e=>(0,N.jsx)(Chip,{slug:e.SLUG,label:e.LABEL,hasNewBadge:!!a?.[e.SLUG],isActive:e.SLUG===o,onClick:s,selectedCount:r[e.SLUG]},e.SLUG))},`row-${e[0].SLUG}`)),t&&(0,N.jsx)(v.TabBar,{activeIndex:l,handleActiveIndexUpdate:e=>s(null,e),children:n.map((e,t)=>{const i=j[e.SLUG]||S.A;return(0,N.jsxs)(v.Tab,{"aria-label":e.LABEL,children:[(0,N.jsx)(i,{width:12,height:12,className:`googlesitekit-chip-tab-group__chip-item-svg googlesitekit-chip-tab-group__tab-item-mobile-svg googlesitekit-chip-tab-group__chip-item-svg__${e.SLUG}`}),e.LABEL,r[e.SLUG]>0&&(0,N.jsxs)("span",{className:"googlesitekit-chip-tab-group__chip-item-count",children:["(",r[e.SLUG],")"]}),!!a?.[e.SLUG]&&(0,N.jsx)("span",{className:"googlesitekit-chip-tab-group__chip-item-new-dot"})]},t)})})]})}TabItems.propTypes={containerRef:k().object,isMobileBreakpoint:k().bool,chipItemRows:k().array.isRequired,allGroups:k().array.isRequired,isActive:k().string.isRequired,onChipChange:k().func.isRequired,selectedCounts:k().object.isRequired,newlyDetectedMetrics:k().object.isRequired,activeGroupIndex:k().number.isRequired};var M,T,C,E,w,D,O,L,R,P,z,B,G,U,H,F,V,Y,W,Z,Q,$,X=i(82871),q=i(86134),K=i(718);function MetricItem({slug:e,title:t,description:i,isNewlyDetected:o,savedItemSlugs:l=[]}){const c=(0,s.useSelect)(t=>{const{getModule:i}=t(u.i),n=t(q.aO).getWidget(e);return n?.modules.reduce((e,t)=>{const n=i(t);return n?.connected||!n?.name?e:[...e,n.name]},[])}),g=(0,m.A)(r.Is,r.Y0),{getValue:d}=(0,s.useSelect)(e=>e(a.s)),{setValues:p}=(0,s.useDispatch)(a.s),h=(0,n.useCallback)(t=>{const i=d(r.Is,r.Y0),n=t.target.checked?i.concat([e]):i.filter(t=>t!==e);p(r.Is,{[r.Y0]:n,[r.NO]:n})},[d,p,e]),f=g?.includes(e),y=!l.includes(e)&&c.length>0,k=`key-metric-selection-checkbox-${e}`;return(0,N.jsx)(K.y3,{id:k,slug:e,title:t,description:i,isNewlyDetected:o,isItemSelected:f,isItemDisabled:y,onCheckboxChange:h,children:c.length>0&&(0,N.jsx)("div",{className:"googlesitekit-selection-panel-item-error",children:(0,X.sprintf)(/* translators: %s: module names. */ /* translators: %s: module names. */
(0,X._n)("%s is disconnected, no data to show","%s are disconnected, no data to show",c.length,"google-site-kit"),c.join((0,X.__)(" and ","google-site-kit")))})})}function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",J({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 383 238"},e),M||(M=n.createElement("path",{fill:"#B8E6CA",d:"M59.238 58.571c-2.136 20.178 4.272 29.099 20.48 53.216 16.209 24.118-29.092 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.443-3.208 57.819 12.98 90.86 5.9s46.385-42.599 43.153-68.059c-5.59-44.041-26.24-49.107-34.893-66.461s2.902-52.997-30.287-73.16-76.71 14.42-112.503 12.37c-20.651-1.182-40.932-4.995-59.264.86-18.53 5.918-32.662 22.571-34.335 38.621"})),T||(T=n.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__a)"},n.createElement("rect",{width:130.621,height:89.651,x:242.455,y:45.266,fill:"#fff",rx:10.957,transform:"rotate(15 242.455 45.266)"}))),C||(C=n.createElement("rect",{width:24.903,height:7.969,x:253.726,y:64.785,fill:"#EBEEF0",rx:3.985,transform:"rotate(15 253.726 64.785)"})),E||(E=n.createElement("rect",{width:49.806,height:19.923,x:249.342,y:81.144,fill:"#FFDED3",rx:9.961,transform:"rotate(15 249.342 81.144)"})),w||(w=n.createElement("rect",{width:99.428,height:8.773,x:240.436,y:114.357,fill:"#EBEEF0",rx:3.985,transform:"rotate(15 240.436 114.357)"})),D||(D=n.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m256.195 90.198 4.644 8.044m0 0 1.412-4.986m-1.412 4.986-5.023-1.27"})),O||(O=n.createElement("rect",{width:19.923,height:5.977,x:268.706,y:93.551,fill:"#fff",rx:1.992,transform:"rotate(15 268.706 93.55)"})),L||(L=n.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__b)"},n.createElement("rect",{width:130.621,height:89.68,x:13.887,y:79.094,fill:"#fff",rx:10.957,transform:"rotate(-15 13.887 79.094)"}))),R||(R=n.createElement("rect",{width:62.386,height:7.798,x:32.989,y:90.122,fill:"#EBEEF0",rx:3.899,transform:"rotate(-15 32.99 90.122)"})),P||(P=n.createElement("rect",{width:49.806,height:19.923,x:37.691,y:106.902,fill:"#FFDED3",rx:9.961,transform:"rotate(-15 37.691 106.902)"})),z||(z=n.createElement("rect",{width:99.428,height:7.798,x:46.612,y:140.967,fill:"#EBEEF0",rx:3.899,transform:"rotate(-15 46.612 140.967)"})),B||(B=n.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m48.152 111.318 8.044 4.645m0 0-1.27-5.024m1.27 5.024-4.986 1.411"})),G||(G=n.createElement("rect",{width:19.923,height:5.977,x:60.663,y:107.966,fill:"#fff",rx:1.992,transform:"rotate(-15 60.663 107.966)"})),U||(U=n.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__c)"},n.createElement("rect",{width:130.621,height:89.68,x:126.251,y:37.4,fill:"#fff",rx:10.957}))),H||(H=n.createElement("rect",{width:98.333,height:7.867,x:143.013,y:53.134,fill:"#EBEEF0",rx:3.933})),F||(F=n.createElement("rect",{width:49.806,height:19.923,x:142.369,y:70.423,fill:"#B8E6CA",rx:9.961})),V||(V=n.createElement("rect",{width:33.04,height:7.867,x:143.013,y:105.84,fill:"#EBEEF0",rx:3.933})),Y||(Y=n.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m151.336 84.036 6.568-6.567m0 0-5.182-.073m5.182.073.073 5.18"})),W||(W=n.createElement("rect",{width:19.923,height:5.977,x:164.287,y:77.395,fill:"#fff",rx:1.992})),n.createElement("mask",{id:"key-metrics-no-selected-items_svg__d",width:273,height:230,x:58,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},Z||(Z=n.createElement("path",{fill:"#B8E6CA",d:"M59.237 58.571C57.1 78.75 63.509 87.67 79.717 111.787c16.209 24.118-29.091 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.444-3.208 57.82 12.98 90.86 5.9s46.385-42.599 43.153-68.059c-5.59-44.041-26.24-49.107-34.893-66.461s2.902-52.997-30.287-73.16-76.71 14.42-112.503 12.37c-20.651-1.182-40.932-4.995-59.264.86C75.042 25.868 60.91 42.52 59.237 58.57"}))),Q||(Q=n.createElement("g",{mask:"url(#key-metrics-no-selected-items_svg__d)"},n.createElement("path",{stroke:"#CBD0D3",strokeMiterlimit:10,strokeWidth:3.147,d:"m227.674 108.973 11.312-8.418M218.925 98.852l2.868-12.68M205.623 102.87l-5.375-13.037"}),n.createElement("path",{stroke:"#3C7251",strokeLinejoin:"round",strokeWidth:9.44,d:"M63.953 190.487c16.127 12.193 38.716 10.349 55.335 5.162 16.618-5.187 31.107-14.61 45.314-23.791 6.717-4.337 13.617-8.738 21.496-11.119s17.057-2.39 22.958 1.658c3.392 2.328 5.205 5.923 5.36 9.702"}),n.createElement("path",{stroke:"#CBD0D3",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:9.44,d:"m215.831 109.67-19.169 71.73"}),n.createElement("path",{stroke:"#161B18",strokeMiterlimit:10,strokeWidth:9.44,d:"m213.975 116.472-19.169 71.731"}))),$||($=n.createElement("defs",null,n.createElement("filter",{id:"key-metrics-no-selected-items_svg__a",width:176.33,height:147.36,x:205.773,y:35.772,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},n.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),n.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),n.createElement("feOffset",{dy:3.985}),n.createElement("feGaussianBlur",{stdDeviation:7.969}),n.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),n.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),n.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),n.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})),n.createElement("filter",{id:"key-metrics-no-selected-items_svg__b",width:176.337,height:147.388,x:.409,y:35.793,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},n.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),n.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),n.createElement("feOffset",{dy:3.985}),n.createElement("feGaussianBlur",{stdDeviation:7.969}),n.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),n.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),n.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),n.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})),n.createElement("filter",{id:"key-metrics-no-selected-items_svg__c",width:162.497,height:121.556,x:110.313,y:25.447,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},n.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),n.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),n.createElement("feOffset",{dy:3.985}),n.createElement("feGaussianBlur",{stdDeviation:7.969}),n.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),n.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),n.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),n.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})))));var ee=i(59323);function TabContent({activeMetricItems:e,newlyDetectedMetrics:t,savedItemSlugs:i}){return(0,N.jsxs)("div",{className:"googlesitekit-chip-tab-group__tab-item",children:[Object.keys(e).map(n=>{const o=e[n].group,s=t?.[o]?.includes(n);return(0,N.jsx)(MetricItem,{slug:n,savedItemSlugs:i,isNewlyDetected:s,...e[n]},n)}),!Object.keys(e).length&&(0,N.jsxs)("div",{className:"googlesitekit-chip-tab-group__graphic",children:[(0,N.jsx)(key_metrics_no_selected_items,{height:250}),(0,N.jsx)(ee.A,{children:(0,X.__)("No metrics were selected yet","google-site-kit")})]})]})}TabContent.propTypes={activeMetricItems:k().object.isRequired,newlyDetectedMetrics:k().object.isRequired,savedItemSlugs:k().array};const te=Object.freeze([]);function ChipTabGroup({allMetricItems:e,savedItemSlugs:t}){const i=(0,n.useRef)(),[y,k]=(0,n.useState)(r.QJ.SLUG),[v,_]=(0,n.useState)(0),b=(0,p.dv)()===p.mp,I=(0,m.A)(r.Is,r.Y0),x=(0,m.A)(r.Is,r.Nl)||te,S=(0,m.A)(r.Is,r.NO)||te,A=(0,s.useSelect)(e=>e(d.oR).isUserInputCompleted()),j=(0,s.useSelect)(e=>{const t=e(d.oR).getUserPickedMetrics();if(t?.length){const i=e(l.K9).getKeyMetricsConversionEventWidgets();return Object.keys(i).filter(e=>t.some(t=>i[e].includes(t)))}const i=e(d.oR).getUserInputSettings();return i?.includeConversionEvents?.values}),M=(0,s.useSelect)(e=>e(u.i).isModuleConnected(c.L1)),T=(0,s.useSelect)(e=>M?e(l.K9).getDetectedEvents():[]),C=(0,s.useSelect)(e=>e(d.oR).getAnswerBasedMetrics(null,[...j||[],...T||[]])),{keyMetricsGroups:E,dynamicGroups:w}=function({detectedEvents:e=[],currentlyActiveEvents:t=[],isUserInputCompleted:i,answerBasedMetrics:o=[]}){const s=[l.nc.SUBMIT_LEAD_FORM,l.nc.CONTACT,l.nc.GENERATE_LEAD].filter(i=>e?.includes(i)||t?.includes(i)),a=[l.nc.ADD_TO_CART,l.nc.PURCHASE].filter(i=>e?.includes(i)||t?.includes(i)),c=(0,n.useMemo)(()=>[r.IX,r.wb,...s?.length?[r.XU]:[],...a?.length?[r.GF]:[],r.hs],[s,a]),g=(0,n.useMemo)(()=>i&&o?.length?[r.QJ,r.KD]:[r.QJ],[i,o]);return{hasGeneratingLeadsGroup:s,hasSellingProductsGroup:a,keyMetricsGroups:c,dynamicGroups:g}}({detectedEvents:T,currentlyActiveEvents:j,isUserInputCompleted:A,answerBasedMetrics:C}),D=(0,n.useMemo)(()=>[...w,...E],[w,E]),O=(0,s.useSelect)(e=>{if(!e(u.i).isModuleConnected(c.L1))return[];const t=e(l.K9).getDetectedEvents(),i=e(l.K9).getNewBadgeEvents();if(t?.length&&i?.length){const e=t.filter(e=>l.fV.includes(e)),n=i.filter(e=>l.fV.includes(e)),o=i.filter(e=>!l.fV.includes(e));if(e?.length>1&&n.length>0)return o}return i}),L=(0,s.useSelect)(e=>M?e(l.K9).getKeyMetricsConversionEventWidgets():[]),{selectedCounts:R,activeMetricItems:P,newlyDetectedMetrics:z}=function({allMetricItems:e={},isActive:t,effectiveSelection:i=[],answerBasedMetrics:o=[],selectedMetrics:s=[],newBadgeEvents:a=[],conversionReportingEventWidgets:l={}}){return(0,n.useMemo)(()=>{const n={[r.QJ.SLUG]:0},c={},g={};for(const u in e){const p=e[u].group;if((p===t||t===r.QJ.SLUG&&i.includes(u))&&(c[u]=e[u]),t===r.KD.SLUG&&o.includes(u)&&o.includes(u)&&(c[u]=e[u]),!n[p]){const t=Object.keys(e).filter(t=>!(e[t].group!==p||!s?.includes(t))).length;n[p]=t}var d;if(a?.length)a.some(e=>l[e].includes(u))&&(g[p]=[...null!==(d=g[p])&&void 0!==d?d:[],u])}return{selectedCounts:n,activeMetricItems:c,newlyDetectedMetrics:g}},[e,t,i,o,s,a,l])}({allMetricItems:e,isActive:y,effectiveSelection:x,answerBasedMetrics:C,selectedMetrics:I,newBadgeEvents:O,conversionReportingEventWidgets:L}),{setValues:B}=(0,s.useDispatch)(a.s),G=(0,n.useCallback)(()=>{B(r.Is,{[r.Y0]:I,[r.Nl]:[...x,...S],[r.NO]:[]})},[I,x,S,B]),U=(0,n.useCallback)((e,t)=>{if(e)k(e);else{const e=D[t];_(t),k(e.SLUG)}S.length&&G()},[D,S,k,G]),H=(0,s.useSelect)(e=>e(g.n).getValue(r.EA)),F=(0,o.A)(H),V=Object.keys(z);(0,n.useEffect)(()=>{if(!F&&H)if(k(r.QJ.SLUG),_(0),V.length&&b){const e=D.find(e=>e.SLUG===V[0]);_(D.indexOf(e)),k(e.SLUG)}else _(0),k(r.QJ.SLUG);F&&!H&&G()},[H,F,S,D,b,V,G]),function({containerRef:e,isMobileBreakpoint:t,isSelectionPanelOpen:i,isSelectionPanelOpenPrevious:o}){const s=(0,n.useCallback)(()=>{const i=e.current?.querySelector(".mdc-tab-scroller__scroll-content");if(!t)return;const n=e.current?.querySelectorAll(".googlesitekit-chip-tab-group__tab-items .mdc-tab");if(!n?.length||!i)return;const o=e.current?.getBoundingClientRect(),r=[];n.forEach((e,t)=>{const i=e.getBoundingClientRect();i.left>=o.left&&i.right<=o.right&&r.push(t)});const a=n[r.length];if(!a)return;const l=a.getBoundingClientRect();(l.left>=o.right||l.left-o.right<0&&-(l.left-o.right)<=20)&&("2px"===i.style.columnGap?i.style.columnGap="20px":i.style.columnGap="2px",s())},[e,t]),r=(0,f.d)(s,50);(0,h.A)("resize",r),(0,n.useEffect)(()=>{!o&&i&&s()},[i,o,s])}({containerRef:i,isMobileBreakpoint:b,isSelectionPanelOpen:H,isSelectionPanelOpenPrevious:F});const Y=[[...w,...E.slice(0,2)],[...E.slice(2)]];return(0,N.jsxs)("div",{className:"googlesitekit-chip-tab-group",children:[(0,N.jsx)(TabItems,{containerRef:i,isMobileBreakpoint:b,chipItemRows:Y,allGroups:D,isActive:y,onChipChange:U,selectedCounts:R,newlyDetectedMetrics:z,activeGroupIndex:v}),(0,N.jsx)(TabContent,{activeMetricItems:P,newlyDetectedMetrics:z,savedItemSlugs:t})]})}},55527:(e,t,i)=>{i.d(t,{$z:()=>o.$,CR:()=>a.C,Cf:()=>l.DialogContent,Es:()=>l.DialogFooter,Nv:()=>n.N,P3:()=>r.P,Si:()=>s.S,fI:()=>g.fI,fh:()=>g.fh,lG:()=>c.a,xA:()=>g.xA});var n=i(91046),o=i(3412),s=i(30454),r=i(26569),a=i(56655),l=i(12786),c=i.n(l),g=i(75487)},58116:(e,t,i)=>{i.d(t,{$8:()=>r,$Q:()=>p,BT:()=>D,CQ:()=>A,DF:()=>W,GM:()=>N,GT:()=>k,HA:()=>P,HD:()=>u,HP:()=>w,J5:()=>B,JF:()=>M,JK:()=>f,Ml:()=>h,SS:()=>O,UF:()=>g,UY:()=>F,Vl:()=>L,W6:()=>Y,Xq:()=>j,YQ:()=>T,Yw:()=>H,dV:()=>E,dX:()=>S,ej:()=>c,em:()=>s,ep:()=>I,fu:()=>_,gC:()=>v,hz:()=>m,jx:()=>d,lV:()=>l,nH:()=>z,oR:()=>n,od:()=>a,p3:()=>y,pG:()=>x,qv:()=>o,qy:()=>C,t1:()=>V,t7:()=>U,tB:()=>b,tK:()=>G,u_:()=>R});const n="core/user",o="connected_url_mismatch",s="__global",r="temporary_persist_permission_error",a="adblocker_active",l=["weekly","monthly","quarterly"],c="googlesitekit_authenticate",g="googlesitekit_setup",d="googlesitekit_view_dashboard",u="googlesitekit_manage_options",p="googlesitekit_read_shared_module_data",m="googlesitekit_manage_module_sharing_options",h="googlesitekit_delegate_module_sharing_management",f="googlesitekit_update_plugins",y="kmAnalyticsAdSenseTopEarningContent",k="kmAnalyticsEngagedTrafficSource",v="kmAnalyticsLeastEngagingPages",_="kmAnalyticsNewVisitors",b="kmAnalyticsPopularAuthors",I="kmAnalyticsPopularContent",x="kmAnalyticsPopularProducts",S="kmAnalyticsReturningVisitors",N="kmAnalyticsTopCities",A="kmAnalyticsTopCitiesDrivingLeads",j="kmAnalyticsTopCitiesDrivingAddToCart",M="kmAnalyticsTopCitiesDrivingPurchases",T="kmAnalyticsTopDeviceDrivingPurchases",C="kmAnalyticsTopConvertingTrafficSource",E="kmAnalyticsTopCountries",w="kmAnalyticsTopPagesDrivingLeads",D="kmAnalyticsTopRecentTrendingPages",O="kmAnalyticsTopTrafficSource",L="kmAnalyticsTopTrafficSourceDrivingAddToCart",R="kmAnalyticsTopTrafficSourceDrivingLeads",P="kmAnalyticsTopTrafficSourceDrivingPurchases",z="kmAnalyticsPagesPerVisit",B="kmAnalyticsVisitLength",G="kmAnalyticsTopReturningVisitorPages",U="kmSearchConsolePopularKeywords",H="kmAnalyticsVisitsPerVisitor",F="kmAnalyticsMostEngagingPages",V="kmAnalyticsTopCategories",Y=[y,k,v,_,b,I,x,S,V,N,A,j,M,T,C,E,D,O,L,z,B,G,H,F,V],W=[...Y,U]},59323:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(62688),o=i.n(n),s=i(32947),r=i(15167),a=i(3714),l=i(62540);function c({type:e=a.SZ,size:t,children:i,...n}){const o=(0,s.dv)();return(0,l.jsx)(r.A,{as:"p",type:e,size:t||(o===s.mp?a.Kk:a.Yw),...n,children:i})}c.propTypes={type:o().oneOf(a.tT),size:o().oneOf(a.oJ)}},60592:(e,t,i)=>{i.d(t,{A:()=>TourTooltip});var n=i(28056),o=i.n(n),s=i(4452),r=i.n(s),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:s,size:a,step:l,tooltipProps:m}){const h=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),...m,children:(0,p.jsxs)(o(),{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)(n.CardActions,{className:"googlesitekit-tooltip-actions",children:[(0,p.jsx)("ul",{className:"googlesitekit-tooltip-indicators",children:h.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,s.title&&(0,p.jsx)(g.Button,{className:"googlesitekit-tooltip-button",text:!0,...s,children:s.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:()=>s});const n=(0,i(63696).createContext)(""),{Consumer:o,Provider:s}=n,r=n},64067:(e,t,i)=>{i.d(t,{P9:()=>y,k:()=>m,mR:()=>f});var n=i(32091),o=i.n(n),s=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 m(e,{keysToSnapshot:t}={}){o()(e,"storeName is required to create a snapshot store.");const i={},n={*deleteSnapshot(){return yield{payload:{},type:d}},*restoreSnapshot(e={}){const{clearAfterRestore:t=!0}=e,{cacheHit:i,value:n}=yield{payload:{},type:u};return i&&(yield{payload:{snapshot:n},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 n=i.stores[e].store.getState(),o=t?.length>0?(0,s.pick)(n,t):n;return(0,l.SO)(`datastore::cache::${e}`,o)}),[u]:()=>(0,l.Gq)(`datastore::cache::${e}`,c.Jg)};return{initialState:i,actions:n,controls:a,reducer:function(e=i,{type:n,payload:o}){if(n===p){const{snapshot:i}=o,{error:n,...s}=i;return t?.length>0?{...e,...s}:s}return e}}}function h(e=a()){return Object.values(e.stores).filter(e=>Object.keys(e.getActions()).includes("restoreSnapshot"))}function f(e=a()){return Promise.all(h(e).map(e=>e.getActions().createSnapshot()))}function y(e=a()){return Promise.all(h(e).map(e=>e.getActions().restoreSnapshot()))}},65214:(e,t,i)=>{i.d(t,{G:()=>o,t:()=>n});const n=new Set(i.g?._googlesitekitBaseData?.enabledFeatures||[]);function o(e,t=n){return t instanceof Set&&t.has(e)}},66889:(e,t,i)=>{function n(e,t){const i=e.getBoundingClientRect(),n=t.getBoundingClientRect();return!(i.bottomn})},67150:(e,t,i)=>{i.d(t,{G:()=>c,HY:()=>d,SG:()=>g,db:()=>o,e4:()=>p,vl:()=>u});i(17243);var n=i(82871);const o="missing_required_scopes",s="insufficientPermissions",r="forbidden",a="internal_server_error",l="invalid_json";function c(e){return e?.code===o}function g(e){return[s,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,n.__)("There was a critical error on this website while fetching data","google-site-kit"):e?.code===l?(0,n.__)("The server provided an invalid response","google-site-kit"):e?.message}},67768:(e,t,i)=>{i.d(t,{A:()=>SelectionPanelError});var n=i(62688),o=i.n(n),s=i(63696),r=i(66889),a=i(77967),l=i(62540);function SelectionPanelError({error:e,noPrefix:t=!0,skipRetryMessage:n=!0}){const o=(0,s.useRef)();return(0,s.useEffect)(()=>{if(e){const e=i.g.document.activeElement;e&&e.closest(".googlesitekit-selection-panel-item")&&(0,r.N)(o.current,e)&&e.scrollIntoView()}},[e]),e?(0,l.jsx)("div",{ref:o,children:(0,l.jsx)(a.A,{className:"googlesitekit-notice--square googlesitekit-selection-panel-error",error:e,noPrefix:t,skipRetryMessage:n})}):null}SelectionPanelError.propTypes={error:o().shape({message:o().string}),noPrefix:o().bool,skipRetryMessage:o().bool}},68869:(e,t,i)=>{i.d(t,{Ay:()=>r});var n=i(6732);const{Consumer:o,Provider:s}=n.A,r=s},71423:(e,t,i)=>{i.d(t,{$:()=>s,D:()=>o});var n=i(24558);const o="core/notifications",s=[n.uR,n.jU,n.f7,n.Ax,n.Is]},71769:(e,t,i)=>{function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()}function s(e){return e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}i.d(t,{Uf:()=>s,m2:()=>n,sP:()=>o})},72455:(e,t,i)=>{i.d(t,{CV:()=>j,Cu:()=>I,K9:()=>n,Kr:()=>h,Lf:()=>p,Oh:()=>r,PW:()=>A,Rx:()=>w,S9:()=>f,TQ:()=>d,Vt:()=>C,Wl:()=>_,ZC:()=>o,ZY:()=>a,_p:()=>E,ag:()=>m,aj:()=>u,bz:()=>M,dq:()=>T,f2:()=>c,fB:()=>N,fV:()=>S,iB:()=>g,kc:()=>l,mo:()=>k,nc:()=>x,rm:()=>b,to:()=>s,wo:()=>y,yn:()=>v});const n="modules/analytics-4",o="account_create",s="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",m="analyticsAccountCreate",h="analyticsCustomDimensionsCreate",f="https://www.googleapis.com/auth/analytics.edit",y="dashboardAllTrafficWidgetDimensionName",k="dashboardAllTrafficWidgetDimensionColor",v="dashboardAllTrafficWidgetDimensionValue",_="dashboardAllTrafficWidgetActiveRowIndex",b="dashboardAllTrafficWidgetLoaded",I={googlesitekit_post_date:{parameterName:"googlesitekit_post_date",displayName:"WordPress Post Date",description:"Created by Site Kit: Date when a post was published",scope:"EVENT"},googlesitekit_post_author:{parameterName:"googlesitekit_post_author",displayName:"WordPress Post Author",description:"Created by Site Kit: WordPress name of the post author",scope:"EVENT"},googlesitekit_post_categories:{parameterName:"googlesitekit_post_categories",displayName:"WordPress Post Categories",description:"Created by Site Kit: Names of categories assigned to a post",scope:"EVENT"},googlesitekit_post_type:{parameterName:"googlesitekit_post_type",displayName:"WordPress Post Type",description:"Created by Site Kit: Content type of a post",scope:"EVENT"}},x={ADD_TO_CART:"add_to_cart",PURCHASE:"purchase",SUBMIT_LEAD_FORM:"submit_lead_form",GENERATE_LEAD:"generate_lead",CONTACT:"contact"},S=[x.CONTACT,x.GENERATE_LEAD,x.SUBMIT_LEAD_FORM],N={"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"}}}}]}}]}}}}]}},A="audiencePermissionsSetup",j="audienceTileCustomDimensionCreate",M="audience-selection-panel-expirable-new-badge-",T="audience",C="customDimension",E="property",w=[T,C,E]},72545:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,o=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},e),n||(n=o.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:()=>o,Py:()=>r,SM:()=>n,kj:()=>s});const n="adsense-connect-cta",o="adsense-connect-cta-tooltip-state",s="adsense-ga4-top-earnings-notice",r="adsense"},73874:(e,t,i)=>{i.d(t,{Ay:()=>a,Oo:()=>s,oE:()=>r});var n=i(24558),o=i(77766);const s=n.jU,r=n.f7;function a(){const e=(0,o.A)();return e===n.jU||e===n.Ax?s:e===n.f7||e===n.Is?r:null}},74595:(e,t,i)=>{i.d(t,{wA:()=>a.A,ws:()=>u.w,WM:()=>r.A});var n=i(29725),o=i(56805),s=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),m=i(97241);const h=(0,n.I)({},i.g.wp?.data);h.combineStores=p.o3,h.commonActions=p.jU,h.commonControls=p._5,h.commonStore=p.x0,h.createReducer=function(e){return(0,m.Ay)(e)},h.useInViewSelect=u.w,h.controls=o.n,h.createRegistryControl=s.b,h.createRegistrySelector=s.N,h.useSelect=r.A,h.useDispatch=a.A,h.useRegistry=l.A,h.withSelect=c.A,h.withDispatch=g.A,h.RegistryProvider=d.Ay;const f=h;void 0===i.g.googlesitekit&&(i.g.googlesitekit={}),i.g.googlesitekit.data=f},74995:(e,t,i)=>{i.d(t,{A:()=>Notifications});var n=i(62688),o=i.n(n),s=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:m(e)(d.A)}));function m(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)(),n=(0,s.useSelect)(e=>e(a.D).getQueuedNotifications(i,t));if(void 0===n?.[0]||n?.[0]?.areaSlug!==e)return null;const{id:o,Component:c}=n[0],g={...p(o)};return(0,u.jsx)(c,{...g})}Notifications.propTypes={viewContext:o().string,areaSlug:o().string}},75487:(e,t,i)=>{i.d(t,{fh:()=>Cell,xA:()=>u,fI:()=>g});var n=i(62688),o=i.n(n),s=i(4452),r=i.n(s),a=i(62540);function Cell(e){const{className:t,alignTop:i,alignMiddle:n,alignBottom:o,alignRight:s,alignLeft:l,smAlignRight:c,mdAlignRight:g,lgAlignRight:d,smSize:u,smStart:p,smOrder:m,mdSize:h,mdStart:f,mdOrder:y,lgSize:k,lgStart:v,lgOrder:_,size:b,children:I,...x}=e;return(0,a.jsx)("div",{...x,className:r()(t,"mdc-layout-grid__cell",{"mdc-layout-grid__cell--align-top":i,"mdc-layout-grid__cell--align-middle":n,"mdc-layout-grid__cell--align-bottom":o,"mdc-layout-grid__cell--align-right":s,"mdc-layout-grid__cell--align-left":l,"mdc-layout-grid__cell--align-right-phone":c,"mdc-layout-grid__cell--align-right-tablet":g,"mdc-layout-grid__cell--align-right-desktop":d,[`mdc-layout-grid__cell--span-${b}`]:12>=b&&b>0,[`mdc-layout-grid__cell--span-${k}-desktop`]:12>=k&&k>0,[`mdc-layout-grid__cell--start-${v}-desktop`]:12>=v&&v>0,[`mdc-layout-grid__cell--order-${_}-desktop`]:12>=_&&_>0,[`mdc-layout-grid__cell--span-${h}-tablet`]:8>=h&&h>0,[`mdc-layout-grid__cell--start-${f}-tablet`]:8>=f&&f>0,[`mdc-layout-grid__cell--order-${y}-tablet`]:8>=y&&y>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-${m}-phone`]:4>=m&&m>0}),children:I})}Cell.propTypes={smSize:o().number,smStart:o().number,smOrder:o().number,mdSize:o().number,mdStart:o().number,mdOrder:o().number,lgSize:o().number,lgStart:o().number,lgOrder:o().number,size:o().number,alignTop:o().bool,alignMiddle:o().bool,alignBottom:o().bool,alignRight:o().bool,alignLeft:o().bool,smAlignRight:o().bool,mdAlignRight:o().bool,lgAlignRight:o().bool,className:o().string,children:o().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},n)=>(0,a.jsx)("div",{ref:n,className:r()("mdc-layout-grid__inner",e),...i,children:t}));c.displayName="Row",c.propTypes={className:o().string,children:o().node},c.defaultProps={className:""};const g=c,d=(0,l.forwardRef)(({alignLeft:e,fill:t,className:i,children:n,collapsed:o,...s},l)=>(0,a.jsx)("div",{className:r()("mdc-layout-grid",i,{"mdc-layout-grid--align-left":e,"mdc-layout-grid--collapsed":o,"mdc-layout-grid--fill":t}),...s,ref:l,children:n}));d.displayName="Grid",d.propTypes={alignLeft:o().bool,fill:o().bool,className:o().string,collapsed:o().bool,children:o().node},d.defaultProps={className:""};const u=d},77513:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(62688),o=i.n(n),s=i(90007),r=i(12850),a=i(62540);function NotificationFromServer({id:e,titleIcon:t,title:i,content:n,ctaLabel:o,ctaTarget:l,ctaURL:c,dismissible:g,dismissLabel:d,learnMoreLabel:u,learnMoreURL:p,onCTAClick:m,onDismissClick:h,gaTrackingEventArgs:f}){const y={expiresInSeconds:r.Jg};return(0,a.jsx)(s.A,{notificationID:e,type:s.Q.WARNING,titleIcon:t||void 0,title:i,description:n,learnMoreLink:p?{label:u,href:p}:void 0,ctaButton:{label:o,href:c,target:l,onClick:m,dismissOptions:y},dismissButton:g?{label:d,onClick:h,dismissOptions:y}:void 0,gaTrackingEventArgs:f})}NotificationFromServer.propTypes={id:o().string.isRequired,title:o().string.isRequired,content:o().node,ctaLabel:o().string,ctaTarget:o().string,ctaURL:o().string,dismissible:o().bool,dismissLabel:o().string,learnMoreLabel:o().string,learnMoreURL:o().string,onCTAClick:o().func,onDismissClick:o().func,gaTrackingEventArgs:o().object};const l=NotificationFromServer},77766:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n=i(63696),o=i(61991);const __WEBPACK_DEFAULT_EXPORT__=function(){return(0,n.useContext)(o.Ay)}},77967:(e,t,i)=>{i.d(t,{A:()=>ErrorNotice});var n=i(62688),o=i.n(n),s=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:n,message:o=t.message,noPrefix:p=!1,skipRetryMessage:m,hideIcon:h=!1}){const f=(0,l.useDispatch)(),y=(0,l.useSelect)(e=>n?e(n).getSelectorDataForError(t):null),k=(0,s.useCallback)(()=>{f(y.storeName).invalidateResolution(y.name,y.args)},[f,y]);if(!o||(0,c.G)(t))return null;const v=i&&(0,c.vl)(t,y);let _=o;i||m||(_=(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"),_)),p||(_=(0,r.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */
(0,r.__)("Error: %s","google-site-kit"),_));const b=t?.data?.reconnectURL;b&&(0,a.m)(b)&&(_=(0,r.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */ /* translators: 1: Original error message 2: Reconnect URL */
(0,r.__)('%1$s To fix this, redo the plugin setup.',"google-site-kit"),_,b));return(0,u.jsx)(g.A,{className:e,type:g.A.TYPES.ERROR,description:(0,u.jsx)("span",{dangerouslySetInnerHTML:(0,d.p9)(_,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:v?{label:(0,r.__)("Retry","google-site-kit"),onClick:k}:void 0,hideIcon:h})}ErrorNotice.propTypes={className:o().string,error:o().shape({message:o().string}),hasButton:o().bool,storeName:o().string,message:o().string,noPrefix:o().bool,skipRetryMessage:o().bool,hideIcon:o().bool}},78340:(e,t,i)=>{i.d(t,{s:()=>n});const n="core/forms"},79829:(e,t,i)=>{i.d(t,{Eo:()=>d,JK:()=>h,K5:()=>m,jq:()=>p,mK:()=>g});var n=i(17243),o=i(50532),s=i.n(o),r=i(82871);function a(e,t={}){const{formatUnit:i,formatDecimal:n}=function(e,t={}){const{hours:i,minutes:n,seconds:o}=l(e);return{hours:i,minutes:n,seconds:o,formatUnit(){const{unitDisplay:s="short",...a}=t,l={unitDisplay:s,...a,style:"unit"};return 0===e?p(o,{...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"),o?p(o,{...l,unit:"second"}):"",n?p(n,{...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"),o);if(0===e)return t;const s=(0,r.sprintf)(
// translators: %s: number of minutes with "m" as the abbreviated unit.
// translators: %s: number of minutes with "m" as the abbreviated unit.
(0,r.__)("%dm","google-site-kit"),n),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"),o?t:"",n?s:"",i?a:"").trim()}}}(e,t);try{return i()}catch{return n()}}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,n.isPlainObject)(e)&&(t={...e}),t}function d(e,t={}){e=(0,n.isFinite)(e)?e:Number(e),(0,n.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const i=g(t),{style:o="metric"}=i;return"metric"===o?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"===o?a(e,i):"durationISO"===o?function(e){let{hours:t,minutes:i,seconds:n}=l(e);return n=("0"+n).slice(-2),i=("0"+i).slice(-2),t=("0"+t).slice(-2),"00"===t?`${i}:${n}`:`${t}:${i}:${n}`}(e):p(e,i)}const u=s()(console.warn);function p(e,t={}){const{locale:i=h(),...n}=t;try{return new Intl.NumberFormat(i,n).format(e)}catch(t){u(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(i)}, ${JSON.stringify(n)} ).format( ${typeof e} )`,t.message)}const o={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],r={};for(const[e,t]of Object.entries(n))o[e]&&t===o[e]||s.includes(e)||(r[e]=t);try{return new Intl.NumberFormat(i,r).format(e)}catch{return new Intl.NumberFormat(i).format(e)}}function m(e,t={}){const{locale:i=h(),style:n="long",type:o="conjunction"}=t;if(Intl.ListFormat){return new Intl.ListFormat(i,{style:n,type:o}).format(e)}
/* translators: used between list items, there is a space after the comma. */const s=(0,r.__)(", ","google-site-kit");return e.join(s)}function h(e=i.g){const t=(0,n.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:()=>v});var n,o=i(62688),s=i.n(o),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;tl.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),n||(n=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 m={[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=m[e]||warning_notice;return(0,p.jsx)(t,{width:24,height:24})}function Title({className:e,children:t}){return(0,p.jsx)("p",{className:a()("googlesitekit-notice__title",e),children:t})}function Description({className:e,children:t}){return(0,p.jsx)("p",{className:a()("googlesitekit-notice__description",e),children:t})}Icon.propTypes={type:s().oneOf(Object.values(u.Q))},Title.propTypes={className:s().string,children:s().node},Description.propTypes={className:s().string,children:s().node};var h=i(49383),f=i(83366);function CTAButton({label:e,disabled:t,inProgress:i,onClick:n,href:o,external:s,hideExternalIndicator:r}){let a;return s&&!r&&(a=(0,p.jsx)(f.A,{width:14,height:14})),(0,p.jsx)(h.SpinnerButton,{className:"googlesitekit-notice__cta",disabled:t,isSaving:i,onClick:n,href:o,target:s?"_blank":"_self",trailingIcon:a,children:e})}CTAButton.propTypes={label:s().string.isRequired,disabled:s().bool,inProgress:s().bool,onClick:s().func,href:s().string,external:s().bool,hideExternalIndicator:s().bool};var y=i(82871);function DismissButton({label:e=(0,y.__)("Got it","google-site-kit"),onClick:t,disabled:i}){return(0,p.jsx)(h.Button,{onClick:t,disabled:i,tertiary:!0,children:e})}DismissButton.propTypes={label:s().string,onClick:s().func.isRequired,disabled:s().bool};const k=(0,l.forwardRef)(({className:e,title:t,description:i,dismissButton:n,ctaButton:o,type:s=u.Q.INFO,children:r,hideIcon:l},c)=>(0,p.jsxs)("div",{ref:c,className:a()("googlesitekit-notice",`googlesitekit-notice--${s}`,e),children:[!l&&(0,p.jsx)("div",{className:"googlesitekit-notice__icon",children:(0,p.jsx)(Icon,{type:s})}),(0,p.jsxs)("div",{className:"googlesitekit-notice__content",children:[t&&(0,p.jsx)(Title,{children:t}),i&&(0,p.jsx)(Description,{children:i})]}),(n?.label||n?.onClick||o?.label&&(o?.onClick||o?.href)||r)&&(0,p.jsxs)("div",{className:"googlesitekit-notice__action",children:[r,(n?.label||n?.onClick)&&(0,p.jsx)(DismissButton,{label:n.label,onClick:n.onClick,disabled:n.disabled}),o?.label&&(o?.onClick||o?.href)&&(0,p.jsx)(CTAButton,{label:o.label,onClick:o.onClick,inProgress:o.inProgress,disabled:o.disabled,href:o.href,external:o.external,hideExternalIndicator:o.hideExternalIndicator})]})]}));k.TYPES=u.Q,k.propTypes={className:s().string,title:s().oneOfType([s().string,s().object]),description:s().node,type:s().oneOf(Object.values(u.Q)),dismissButton:s().shape(DismissButton.propTypes),ctaButton:s().shape({...CTAButton.propTypes,label:s().string}),children:s().node,hideIcon:s().bool};const v=k},80452:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,o=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 9"},e),n||(n=o.createElement("path",{stroke:"currentColor",strokeLinecap:"square",strokeWidth:1.6,d:"m2 5.309 1.474 2.14c.69 1.001 1.946 1.001 2.636 0L10 1.8"})))},81520:(e,t,i)=>{function Null(){return null}i.d(t,{A:()=>Null})},82046:(e,t,i)=>{i.d(t,{C:()=>s,p:()=>o});var n=i(15210);function o(e,t={}){return{__html:n.O.sanitize(e,t)}}function s(e){const t="object"==typeof e?e.toString():e;return t?.replace?.(/\/+$/,"")}},82167:(e,t,i)=>{i.d(t,{A:()=>OptIn});var n=i(62688),o=i.n(n),s=i(4452),r=i.n(s),a=i(63696),l=i(13606),c=i(82871),g=i(50539),d=i(49383),u=i(58116),p=i(89318),m=i(20898),h=i(77766),f=i(50787),y=i(62540);function OptIn({id:e="googlesitekit-opt-in",name:t="optIn",className:i,trackEventCategory:n,alignLeftCheckbox:o=!1}){const[s,k]=(0,a.useState)(),v=(0,g.useSelect)(e=>e(u.oR).isTrackingEnabled()),_=(0,g.useSelect)(e=>e(u.oR).getErrorForAction("setTrackingEnabled",[!v])),{setTrackingEnabled:b}=(0,g.useDispatch)(u.oR),I=(0,h.A)(),x=(0,a.useCallback)(async e=>{const{response:t,error:i}=await b(e);i?k(v):((0,p.M9)(t.enabled),t.enabled&&(0,p.sx)(n||I,"tracking_optin"))},[v,b,n,I]);(0,a.useEffect)(()=>{void 0!==v&&void 0===s&&k(v)},[v,s]);const S=(0,f.d)(x,300),N=(0,a.useCallback)(e=>{const t=e.target.checked;k(t),S(t)},[S]);return(0,y.jsxs)("div",{className:r()("googlesitekit-opt-in",i),children:[(0,y.jsx)(d.Checkbox,{id:e,name:t,value:"1",checked:s,onChange:N,loading:void 0===v,alignLeft:o,children:(0,l.A)((0,c.__)("Help us improve Site Kit by sharing anonymous usage data.All collected data is treated in accordance with the Google Privacy Policy.","google-site-kit"),{a:(0,y.jsx)(m.A,{href:"https://policies.google.com/privacy",external:!0},"link"),span:(0,y.jsx)("span",{})})}),_?.message&&(0,y.jsx)("div",{className:"googlesitekit-error-text",children:_?.message})]})}OptIn.propTypes={id:o().string,name:o().string,className:o().string,trackEventCategory:o().string,alignLeftCheckbox:o().bool}},82871:e=>{e.exports=googlesitekit.i18n},83366:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,o=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),n||(n=o.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"})))},84385:(e,t,i)=>{i.d(t,{A:()=>IconWrapper});var n=i(62688),o=i.n(n),s=i(62540);function IconWrapper({children:e,marginLeft:t,marginRight:i}){return(0,s.jsx)("span",{className:"googlesitekit-icon-wrapper",style:{marginLeft:t,marginRight:i},children:e})}IconWrapper.propTypes={children:o().node.isRequired,marginLeft:o().number,marginRight:o().number}},84826:(e,t,i)=>{i.d(t,{A:()=>HelpMenu});var n,o=i(62688),s=i.n(o),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;ta.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),n||(n=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 m=i(99235),h=i(12850),f=i(20898),y=i(77766),k=i(62540);function HelpMenuLink({children:e,href:t,gaEventLabel:i}){const n=(0,y.A)(),o=(0,a.useCallback)(async()=>{i&&await(0,h.sx)(`${n}_headerbar_helpmenu`,"click_outgoing_link",i)},[i,n]);return(0,k.jsx)("li",{className:"googlesitekit-help-menu-link mdc-list-item",role:"none",children:(0,k.jsx)(f.A,{className:"mdc-list-item__text",href:t,role:"menuitem",onClick:o,external:!0,hideExternalIndicator:!0,children:e})})}HelpMenuLink.propTypes={children:s().node.isRequired,href:s().string.isRequired,gaEventLabel:s().string};const v=HelpMenuLink;var _=i(37226),b=i(93896),I=i(73589);function HelpMenu({children:e}){const[t,i]=(0,a.useState)(!1),n=(0,a.useRef)(),o=(0,y.A)();(0,r.A)(n,()=>i(!1)),(0,m.l)([l._f,l.wn],n,()=>i(!1));const s=(0,g.useSelect)(e=>e(_.i).isModuleActive(I.Py)),u=(0,a.useCallback)(()=>{t||(0,h.sx)(`${o}_headerbar`,"open_helpmenu"),i(!t)},[t,o]),f=(0,a.useCallback)(()=>{i(!1)},[]),x=(0,g.useSelect)(e=>e(b.O4).getDocumentationLinkURL("fix-common-issues"));return(0,k.jsxs)("div",{ref:n,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,k.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,k.jsx)(p,{width:"20",height:"20"}),onClick:u,tooltipEnterDelayInMS:500,text:!0}),(0,k.jsxs)(d.Menu,{className:"googlesitekit-width-auto",menuOpen:t,id:"googlesitekit-help-menu",onSelected:f,children:[e,(0,k.jsx)(v,{gaEventLabel:"fix_common_issues",href:x,children:(0,c.__)("Fix common issues","google-site-kit")}),(0,k.jsx)(v,{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/",children:(0,c.__)("Read help docs","google-site-kit")}),(0,k.jsx)(v,{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/",children:(0,c.__)("Get support","google-site-kit")}),s&&(0,k.jsx)(v,{gaEventLabel:"adsense_help",href:"https://support.google.com/adsense/",children:(0,c.__)("Get help with AdSense","google-site-kit")})]})]})}HelpMenu.propTypes={children:s().node}},85149:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,o,s=i(63696);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-labelledby":"warning-title warning-desc",viewBox:"0 0 24 24"},e),n||(n=s.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),o||(o=s.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})))},86134:(e,t,i)=>{i.d(t,{N$:()=>o,aO:()=>s,qB:()=>n});const n={BOXES:"boxes",COMPOSITE:"composite"},o={QUARTER:"quarter",HALF:"half",FULL:"full"},s="core/widgets"},88933:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,o=i(63696);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 43 44"},e),n||(n=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.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"}),o.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"}),o.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"}),o.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:()=>N,sx:()=>x,BI:()=>S});var n=i(17243);const o="_googlesitekitDataLayer",s="data-googlesitekit-gtag";function r(e){return function(){e[o]=e[o]||[],e[o].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:m,isAuthenticated:h,userRoles:f}=i.g._googlesitekitTrackingData||{},{GOOGLESITEKIT_VERSION:y}=i.g,k={activeModules:c,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:m,isSiteKitScreen:g,userRoles:f,isAuthenticated:h,pluginVersion:y},{enableTracking:v,disableTracking:_,isTrackingEnabled:b,initializeSnippet:I,trackEvent:x,trackEventOnce:S}=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 n=r(t);let l;const{activeModules:c,referenceSiteURL:g,userIDHash:d,userRoles:u=[],isAuthenticated:p,pluginVersion:m}=e;return function(){const{document:t}=i.g;if(void 0===l&&(l=!!t.querySelector(`script[${s}]`)),l)return!1;l=!0;const r=u?.length?u.join(","):"";n("js",new Date),n("config",e.trackingID,{groups:"site_kit",send_page_view:e.isSiteKitScreen,domain:g,plugin_version:m||"",enabled_features:Array.from(a.t).join(","),active_modules:c.join(","),authenticated:p?"1":"0",user_properties:{user_roles:r,user_identifier:d}});const h=t.createElement("script");return h.setAttribute(s,""),h.async=!0,h.src=`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${o}`,t.head.appendChild(h),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${o}`}}}(g,t),u=function(e,t,i,n){const o=r(t);return async function(t,s,r,a){const{trackingEnabled:l}=e;if(!l)return null;i();const c={send_to:"site_kit",event_category:t,event_label:r,value:a};return new Promise(e=>{const i=setTimeout(function(){n.console.warn(`Tracking event "${s}" (category "${t}") took too long to fire.`),e()},1e3);function r(){clearTimeout(i),e()}o("event",s,{...c,event_callback:r}),n._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,n.once)(u)),p[t](...e)}}}(k);function N(e){e?v():_()}g&&d&&I()},89362:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n=i(63696);const __WEBPACK_DEFAULT_EXPORT__=function(e,t){const[o,s]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(e.current&&"function"==typeof i.g.IntersectionObserver){function n(e){s(e[e.length-1])}const o=new i.g.IntersectionObserver(n,t);return o.observe(e.current),()=>{s(null),o.disconnect()}}return()=>{}},[e.current,t.threshold,t.root,t.rootMargin]),o}},90007:(e,t,i)=>{i.d(t,{Q:()=>k,A:()=>BannerNotification});var n=i(4452),o=i.n(n),s=i(62688),r=i.n(s),a=i(50539),l=i(71423),c=i(7070),g=i(7184),d=i(30823),u=i(3782),p=i(29584),m=i(55527);const h="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 y=i(62540);const k={INFO:"info",ERROR:"error",WARNING:"warning"};function BannerNotification({notificationID:e,type:t=k.INFO,learnMoreLink:i,dismissButton:n,ctaButton:s,gaTrackingEventArgs:r,...d}){const u=(0,c.A)(e,r?.category),{dismissNotification:p}=(0,a.useDispatch)(l.D);let v=d?.svg;return v||t===k.INFO||(v={desktop:void 0,mobile:void 0,verticalPosition:"center"},t===k.WARNING&&(v.desktop=h),t===k.ERROR&&(v.desktop=f)),(0,y.jsx)("div",{className:o()("googlesitekit-banner-notification",`googlesitekit-banner-notification--${t}`),children:(0,y.jsx)(m.xA,{className:"googlesitekit-page-content",children:(0,y.jsx)(m.fI,{children:(0,y.jsx)(m.fh,{size:12,children:(0,y.jsx)(g.A,{learnMoreLink:i&&{...i,onClick:async function(e){u.clickLearnMore(r?.label,r?.value),await(i?.onClick?.(e))}},dismissButton:n&&{...n,onClick:async function(t){await(n?.onClick?.(t)),u.dismiss(r?.label,r?.value),p(e,{...n?.dismissOptions})}},ctaButton:s&&{...s,onClick:async function(t){u.confirm(r?.label,r?.value),await(s?.onClick?.(t)),s?.dismissOnClick&&p(e,{...s?.dismissOptions})}},svg:v,...d})})})})})}BannerNotification.propTypes={notificationID:r().string.isRequired,type:r().oneOf(Object.values(k)),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})}},91560:(e,t,i)=>{i.d(t,{A:()=>u});var n=i(62688),o=i.n(n),s=i(4452),r=i.n(s),a=i(13606),l=i(82871),c=i(20898),g=i(35323),d=i(62540);function SourceLink({name:e,href:t,className:i,external:n}){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"),`${e}`),{a:(0,d.jsx)(c.A,{href:t,external:n},"link")})})}SourceLink.propTypes={name:o().string,href:o().string,className:o().string,external:o().bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1};const u=SourceLink},93896:(e,t,i)=>{i.d(t,{O4:()=>n,OQ:()=>s,qc:()=>o});const n="core/site",o="primary",s="secondary"},94552:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(62688),o=i.n(n),s=i(4452),r=i.n(s),a=i(62540);function ChangeArrow({direction:e,invertColor:t,width:i,height:n}){return(0,a.jsx)("svg",{className:r()("googlesitekit-change-arrow",`googlesitekit-change-arrow--${e}`,{"googlesitekit-change-arrow--inverted-color":t}),width:i,height:n,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:o().string,invertColor:o().bool,width:o().number,height:o().number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9};const l=ChangeArrow},95267:(e,t,i)=>{i.d(t,{A:()=>PageHeader});var n=i(4452),o=i.n(n),s=i(62688),r=i.n(s),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:n,status:s,statusText:r,fullWidth:p,children:m}=e,h=p?{size:12}:{smSize:4,mdSize:4,lgSize:6},f=""!==s||Boolean(m);return(0,u.jsx)("header",{className:"googlesitekit-page-header",children:(0,u.jsxs)(a.fI,{children:[t&&(0,u.jsxs)(a.fh,{...h,children:[i,(0,u.jsx)(d.A,{as:"h1",className:o()("googlesitekit-page-header__title",n),size:"medium",type:"title",children:t})]}),f&&(0,u.jsx)(a.fh,{smSize:4,mdSize:4,lgSize:6,alignBottom:!0,mdAlignRight:!0,children:(0,u.jsxs)("div",{className:"googlesitekit-page-header__details",children:[s&&(0,u.jsxs)("span",{className:o()("googlesitekit-page-header__status",`googlesitekit-page-header__status--${s}`),children:[r,(0,u.jsx)(g.A,{children:"connected"===s?(0,u.jsx)(l.A,{width:10,height:8}):(0,u.jsx)(c.A,{width:2,height:12})})]}),m]})})]})})}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}},99235:(e,t,i)=>{i.d(t,{l:()=>o});var n=i(78174);function o(e,t,i){(0,n.A)(i=>e.includes(i.keyCode)&&t.current.contains(i.target),i)}},99455:(e,t,i)=>{i.d(t,{A:()=>d});var n,o=i(82871),s=i(88933),r=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 80 21"},e),n||(n=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)(s.A,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),(0,g.jsx)(l,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),(0,g.jsx)(c.A,{children:(0,o.__)("Site Kit by Google Logo","google-site-kit")})]})}},99620:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(62688),o=i.n(n),s=i(4452),r=i.n(s),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:n}=this.props,o=n?{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,{...o,children:(0,d.jsxs)(g.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-subheading-1 googlesitekit-layout__header-title",children:[e,t]})}),n&&(0,d.jsx)(l.fh,{smSize:4,lgSize:6,alignMiddle:!0,mdAlignRight:!0,children:(0,d.jsx)(c.A,{href:n,external:!0,children:i})})]})})})}}LayoutHeader.propTypes={title:o().string,badge:o().node,ctaLabel:o().string,ctaLink:o().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:o().string,ctaLink:o().string};const m=LayoutFooter;class Layout extends a.Component{render(){const{header:e,footer:t,children:i,title:n,badge:o,headerCTALabel:s,headerCTALink:a,footerCTALabel:l,footerCTALink:c,footerContent:g,className:p,fill:h,relative:f,rounded:y=!1,transparent:k=!1,...v}=this.props;return(0,d.jsxs)("div",{className:r()("googlesitekit-layout",p,{"googlesitekit-layout--fill":h,"googlesitekit-layout--relative":f,"googlesitekit-layout--rounded":y,"googlesitekit-layout--transparent":k}),...v,children:[e&&(0,d.jsx)(u,{title:n,badge:o,ctaLabel:s,ctaLink:a}),i,t&&(0,d.jsx)(m,{ctaLabel:l,ctaLink:c,footerContent:g})]})}}Layout.propTypes={header:o().bool,footer:o().bool,children:o().node.isRequired,title:o().string,badge:o().node,headerCTALabel:o().string,headerCTALink:o().string,footerCTALabel:o().string,footerCTALink:o().string,footerContent:o().node,className:o().string,fill:o().bool,relative:o().bool,rounded:o().bool,transparent:o().bool},Layout.defaultProps={header:!1,footer:!1,title:"",badge:null,headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1};const h=Layout},99897:(e,t,i)=>{i.d(t,{A_:()=>g,DF:()=>u,L1:()=>p,M0:()=>r,Mc:()=>a,Ok:()=>c,U9:()=>l,iW:()=>s,ue:()=>o,wq:()=>n,xR:()=>d});const n=1,o=2,s=3,r="enhanced-measurement-activation-banner-tooltip-state",a="enhanced-measurement-activation-banner-dismissed-item",l="_r.explorerCard..selmet",c="_r.explorerCard..seldim",g="_r..dataFilters",d="_r..nav",u="key-metrics-connect-ga4-cta-widget",p="analytics-4"}},e=>{e.O(0,[660],()=>{return t=44675,e(e.s=t);var t});e.O()}]);