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

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

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

49 lines
197 KiB
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[290,804],{718:(e,t,i)=>{i.d(t,{gy:()=>SelectionPanelFooter,W4:()=>SelectionPanelHeader,y3:()=>SelectionPanelItem,DW:()=>SelectionPanelItems,Ay:()=>T});var n=i(4452),s=i.n(n),o=i(62688),r=i.n(o),a=i(4544),l=i.n(a),c=i(21795),g=i(78174),d=i(63696),u=i(19266),p=i(14007),h=i(62540);function SideSheet({className:e,children:t,isOpen:i,isLoading:n,onOpen:o=()=>{},closeSheet:r=()=>{},focusTrapOptions:a={}}){const m=(0,d.useRef)();return(0,d.useEffect)(()=>{i?(o(),document.body.classList.add("googlesitekit-side-sheet-scroll-lock")):document.body.classList.remove("googlesitekit-side-sheet-scroll-lock")},[i,o]),(0,c.A)(m,r),(0,g.A)(e=>i&&u._f===e.keyCode,r),(0,h.jsxs)(p.A,{children:[(0,h.jsx)(l(),{active:!!i&&!n,focusTrapOptions:{fallbackFocus:"body",...a},children:(0,h.jsx)("section",{ref:m,className:s()("googlesitekit-side-sheet",e,{"googlesitekit-side-sheet--open":i}),role:"dialog","aria-modal":"true","aria-hidden":!i,tabIndex:"0",children:t})}),i&&(0,h.jsx)("span",{className:"googlesitekit-side-sheet-overlay"})]})}function SelectionPanel({children:e,isOpen:t,isLoading:i,onOpen:n,closePanel:o,className:r}){const a=r?.split(/\s+/).map(e=>`.${e}`).join(""),l=a?`${a} .googlesitekit-selection-panel-item .googlesitekit-selection-box input`:".googlesitekit-selection-panel-item .googlesitekit-selection-box input";return(0,h.jsx)(SideSheet,{className:s()("googlesitekit-selection-panel",r),isOpen:t,isLoading:i,onOpen:n,closeSheet:o,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 m=i(20898),f=i(72545),b=i(15167);function SelectionPanelHeader({children:e,title:t,onCloseClick:i}){return(0,h.jsxs)("header",{className:"googlesitekit-selection-panel-header",children:[(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-header__row",children:[(0,h.jsx)(b.A,{as:"h3",size:"small",type:"headline",children:t}),(0,h.jsx)(m.A,{className:"googlesitekit-selection-panel-header__close",onClick:i,linkButton:!0,children:(0,h.jsx)(f.A,{width:"15",height:"15"})})]}),e]})}SelectionPanelHeader.propTypes={children:r().node,title:r().string,onCloseClick:r().func};var k=i(82871),y=i(49383);function SelectionBox({badge:e,checked:t,children:i,disabled:n,id:o,onChange:r,title:a,value:l}){return(0,h.jsx)("div",{className:s()("googlesitekit-selection-box",{"googlesitekit-selection-box--disabled":n}),children:(0,h.jsx)(y.Checkbox,{checked:t,description:i,disabled:n,id:o,name:o,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 x=i(2362);function SelectionPanelItem({children:e,id:t,slug:i,title:n,description:s,isItemSelected:o,isItemDisabled:r,onCheckboxChange:a,subtitle:l,suffix:c,badge:g,isNewlyDetected:d}){return(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-item",children:[(0,h.jsxs)(SelectionBox,{badge:g,checked:o,disabled:r,id:t,onChange:a,title:n,value:i,children:[l&&(0,h.jsx)("span",{className:"googlesitekit-selection-panel-item__subtitle",children:l}),s,e]}),d&&(0,h.jsx)(x.A,{label:(0,k.__)("New","google-site-kit")}),c&&(0,h.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:s={},ItemComponent:o,notice:r}){function a(e){return Object.keys(e).map(t=>(0,h.jsx)(o,{slug:t,savedItemSlugs:i,...e[t]},t))}const l=Object.keys(s).length;return(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-items",children:[0!==i.length&&(0,h.jsxs)(d.Fragment,{children:[(0,h.jsx)("p",{className:"googlesitekit-selection-panel-items__subheading",children:e}),(0,h.jsx)("div",{className:"googlesitekit-selection-panel-items__subsection",children:a(n)}),l>0&&(0,h.jsx)("p",{className:"googlesitekit-selection-panel-items__subheading",children:t})]}),l>0&&(0,h.jsx)("div",{className:"googlesitekit-selection-panel-items__subsection",children:a(s)}),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 _=i(17243),v=i(13606),j=i(50539),S=i(12850),N=i(72455),A=i(23224),I=i(80035);function SelectionPanelFooter({savedItemSlugs:e=[],selectedItemSlugs:t=[],saveSettings:i=()=>{},itemLimitError:n,minSelectedItemCount:s=0,maxSelectedItemCount:o=0,isBusy:r,onSaveSuccess:a=()=>{},onCancel:l=()=>{},isOpen:c,closePanel:g=()=>{}}){const[u,p]=(0,d.useState)(null),[m,f]=(0,d.useState)(!1),b=(0,j.useSelect)(e=>e(N.K9).isFetchingSyncAvailableAudiences()),x=(0,d.useMemo)(()=>!(0,_.isEqual)((0,S.N9)(t),(0,S.N9)(e)),[e,t]),T=e?.length>0&&x?(0,k.__)("Apply changes","google-site-kit"):(0,k.__)("Save selection","google-site-kit"),C=(0,d.useCallback)(async()=>{const{error:e}=await i(t);e||(a(),g(),p(T),f(!0))},[i,t,a,g,T]),w=(0,d.useCallback)(()=>{g(),l()},[g,l]),[M,E]=(0,d.useState)(null);(0,d.useEffect)(()=>{null!==M&&M!==c&&c&&(p(null),f(!1)),E(c)},[c,M]);const D=t?.length||0,R=b?(0,h.jsx)(A.A,{width:"89px",height:"20px"}):(0,h.jsx)("p",{className:"googlesitekit-selection-panel-footer__item-count",children:(0,v.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 <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),D,o),{MaxCount:(0,h.jsx)("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})})});return(0,h.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-footer__content",children:[x&&n?(0,h.jsx)(I.A,{type:I.A.TYPES.ERROR,description:n}):R,(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-footer__actions",children:[(0,h.jsx)(y.Button,{onClick:w,disabled:r,tertiary:!0,children:(0,k.__)("Cancel","google-site-kit")}),(0,h.jsx)(y.SpinnerButton,{onClick:C,isSaving:r,disabled:D<s||D>o||r||!c&&m,children:u||T})]})]})})}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 T=SelectionPanel},1102:(e,t,i)=>{i.d(t,{w:()=>a});var n=i(35470),s=i(63696),o=i(2422);function r(){}function a(e,t){const i=(0,o.W)({sticky:!0}),a=(0,s.useRef)(),l=(0,s.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),s=i.n(n),o=i(62688),r=i.n(o),a=i(63696),l=i(62540);const c=(0,a.forwardRef)(({label:e,className:t,hasLeftSpacing:i=!1,...n},o)=>(0,l.jsx)("span",{ref:o,...n,className:s()("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},2390:(e,t,i)=>{i.d(t,{A:()=>SpinnerButton,k:()=>g});var n=i(62688),s=i.n(n),o=i(4452),r=i.n(o),a=i(25874),l=i(9341),c=i(62540);const g={BEFORE:"before",AFTER:"after"};function SpinnerButton(e){const{className:t,onClick:i=()=>{},isSaving:n=!1,spinnerPosition:s=g.AFTER,...o}=e;return(0,c.jsx)(a.A,{className:r()(t,"googlesitekit-button-icon--spinner",{"googlesitekit-button-icon--spinner__running":n,"googlesitekit-button-icon--spinner__before":s===g.BEFORE,"googlesitekit-button-icon--spinner__after":s===g.AFTER}),icon:n&&s===g.BEFORE?(0,c.jsx)(l.A,{size:14}):void 0,trailingIcon:n&&s===g.AFTER?(0,c.jsx)(l.A,{size:14}):void 0,onClick:i,...o})}SpinnerButton.propTypes={className:s().string,onClick:s().func,isSaving:s().bool,spinnerPosition:s().oneOf(Object.values(g))}},2422:(e,t,i)=>{i.d(t,{W:()=>l});var n=i(79257),s=i(35470),o=i(63696),r=i(6732),a=i(7081);function l({sticky:e=!1}={}){const t=(0,o.useContext)(r.A),[i,l]=(0,o.useState)(!1),c=(0,s.A)(e=>e(a.n).getInViewResetCount()),g=(0,s.A)(e=>e(a.n).getValue("forceInView"));return(0,o.useEffect)(()=>{t.value&&!i&&l(!0)},[i,t,l]),(0,o.useEffect)(()=>{g&&l(!0)},[g]),(0,n.A)(()=>{l(!1)},[c]),!(!e||!i)||!!t.value}},2522:(e,t,i)=>{i.d(t,{D:()=>o});var n=i(32091),s=i.n(n);function o(e,{dateRangeLength:t}){s()(Array.isArray(e),"report must be an array to partition."),s()(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:()=>o,SZ:()=>n,Yw:()=>r,oJ:()=>a,tT:()=>s});const n="body",s=[n,"display","headline","label","title"],o="small",r="medium",a=[o,r,"large"]},3782:(e,t,i)=>{i.d(t,{A:()=>CTAButton});var n=i(62688),s=i.n(n),o=i(49383),r=i(62540);function CTAButton({label:e,ariaLabel:t,disabled:i,inProgress:n,onClick:s,href:a}){return e&&(s||a)?(0,r.jsx)(o.SpinnerButton,{className:"googlesitekit-banner__cta","aria-label":t,disabled:i||n,isSaving:n,onClick:s,href:a,children:e}):null}CTAButton.propTypes={label:s().string,ariaLabel:s().string,disabled:s().bool,inProgress:s().bool,onClick:s().func,href:s().string,dismissOnClick:s().bool,dismissOptions:s().shape({expiresInSeconds:s().number,skipHidingFromQueue:s().bool})}},4445:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(62688),s=i.n(n),o=i(63696),r=i(81276),a=i(49383),l=i(8420),c=i(62540);let g=null;function RefocusableModalDialog({dialogActive:e=!1,refocusQuerySelector:t=null,...i}){const n=(0,o.useCallback)(()=>{setTimeout(()=>{const e=t?document.querySelector(t):g;e&&document.body.contains(e)&&e.focus(),t||(g=null)})},[t]),s=(0,r.A)(e);return(0,o.useEffect)(()=>(!0===s&&!1===e&&n(),()=>{n()}),[s,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:s().bool,refocusQuerySelector:s().string,...a.Dialog.propTypes};const d=RefocusableModalDialog},4884:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(62688),s=i.n(n),o=i(4452),r=i.n(o),a=i(49383),l=i(20898),c=i(15167),g=i(62540);function CTA({title:e,headerText:t,headerContent:i,description:n,ctaLink:s,ctaLabel:o,ctaLinkExternal:d,ctaType:u,error:p,onClick:h,"aria-label":m,children:f}){return(0,g.jsxs)("div",{className:r()("googlesitekit-cta",{"googlesitekit-cta--error":p}),children:[(t||i)&&(0,g.jsxs)("div",{className:"googlesitekit-cta__header",children:[t&&(0,g.jsx)(c.A,{as:"h2",size:"small",type:"label",className:"googlesitekit-cta__header_text",children:t}),i]}),(0,g.jsxs)("div",{className:"googlesitekit-cta__body",children:[e&&(0,g.jsx)(c.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-cta__title",children:e}),n&&"string"==typeof n&&(0,g.jsx)("p",{className:"googlesitekit-cta__description",children:n}),n&&"string"!=typeof n&&(0,g.jsx)("div",{className:"googlesitekit-cta__description",children:n}),o&&"button"===u&&(0,g.jsx)(a.Button,{"aria-label":m,href:s,onClick:h,children:o}),o&&"link"===u&&(0,g.jsx)(l.A,{href:s,onClick:h,"aria-label":m,external:d,hideExternalIndicator:d,arrow:!0,children:o}),f]})]})}CTA.propTypes={title:s().string.isRequired,headerText:s().string,description:s().oneOfType([s().string,s().node]),ctaLink:s().string,ctaLinkExternal:s().bool,ctaLabel:s().string,ctaType:s().string,"aria-label":s().string,error:s().bool,onClick:s().func,children:s().node,headerContent:s().node},CTA.defaultProps={title:"",headerText:"",headerContent:"",description:"",ctaLink:"",ctaLabel:"",ctaType:"link",error:!1,onClick:()=>{}};const d=CTA},6464:(e,t,i)=>{i.d(t,{i:()=>r});var n=i(63696),s=i(11106),o=i(65214);function r(e){const t=(0,n.useContext)(s.A);return(0,o.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),s=i(77766),o=i(12850);function r(e,t,{viewAction:i="view_notification",confirmAction:r="confirm_notification",dismissAction:a="dismiss_notification",clickLearnMoreAction:l="click_learn_more_link"}={}){const c=(0,s.A)(),g=null!=t?t:`${c}_${e}`;return{view:(0,n.useCallback)((...e)=>(0,o.sx)(g,i,...e),[g,i]),confirm:(0,n.useCallback)((...e)=>(0,o.sx)(g,r,...e),[g,r]),dismiss:(0,n.useCallback)((...e)=>(0,o.sx)(g,a,...e),[g,a]),clickLearnMore:(0,n.useCallback)((...e)=>(0,o.sx)(g,l,...e),[g,l])}}},7081:(e,t,i)=>{i.d(t,{F:()=>s,n:()=>n});const n="core/ui",s="activeContextID"},7184:(e,t,i)=>{i.d(t,{A:()=>f});var n=i(4452),s=i.n(n),o=i(62688),r=i.n(o),a=i(63696),l=i(32947),c=i(62540);function TitleIcon({className:e,children:t}){return(0,c.jsx)("div",{className:s()("googlesitekit-banner__title-icon",e),children:t})}function Title({className:e,children:t}){return(0,c.jsx)("p",{className:s()("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:o}){return(0,c.jsxs)("div",{className:s()("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}),o]})}function HelpText({className:e,children:t}){return(0,c.jsx)("p",{className:s()("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:s()("googlesitekit-banner__footer",e),children:t})}Footer.propTypes={className:r().string,children:r().node};var h=i(80035);const m=(0,a.forwardRef)(({className:e,titleIcon:t,title:i,description:n,additionalDescription:o,errorText:r,helpText:a,learnMoreLink:g,dismissButton:d,ctaButton:m,svg:f,footer:b},k)=>{const y=(0,l.dv)(),x=y===l.mp||y===l.Lg;let _=null;x&&f?.mobile?_=f.mobile:!x&&f?.desktop&&(_=f.desktop);const v=f?.verticalPosition?f.verticalPosition:"center";return(0,c.jsxs)("div",{ref:k,className:s()("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:o}),a&&(0,c.jsx)(HelpText,{children:a}),r&&(0,c.jsx)(h.A,{type:"error",description:r}),(0,c.jsxs)("div",{className:"googlesitekit-notice__action",children:[m&&(0,c.jsx)(u.A,{...m}),d?.onClick&&(0,c.jsx)(p.A,{...d})]})]}),_&&(0,c.jsx)("div",{className:s()("googlesitekit-banner__svg-wrapper",{[`googlesitekit-banner__svg-wrapper--${v}`]:v}),style:{backgroundImage:`url(${_})`}}),b&&(0,c.jsx)(Footer,{children:b})]})});m.propTypes={titleIcon:r().node,title:r().string,description:r().oneOfType([r().string,r().node]),additionalDescription:r().oneOfType([r().string,r().node]),errorText:r().string,helpText:r().string,learnMoreLink:r().shape(d.A.propTypes),dismissButton:r().shape(p.A.propTypes),ctaButton:r().shape(u.A.propTypes),svg:r().shape({desktop:r().elementType,mobile:r().elementType,verticalPosition:r().oneOf(["top","center","bottom"])}),footer:r().node};const f=m},8143:(e,t,i)=>{i.d(t,{VZ:()=>o,dc:()=>r,pH:()=>s,r0:()=>a});var n=i(84024);function s(e){try{return new URL(e).pathname}catch{}return null}function o(e,t){try{return new URL(t,e).href}catch{}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function r(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function a(e,t){if(!(0,n.m)(e))return e;if(e.length<=t)return e;const i=new URL(e),s=e.replace(i.origin,"");if(s.length<t)return s;const o=s.length-Math.floor(t)+1;return"…"+s.substr(o)}},8420:(e,t,i)=>{i.d(t,{A:()=>p});var n=i(62688),s=i.n(n),o=i(4452),r=i.n(o),a=i(52684),l=i(13606),c=i(82871),g=i(49383),d=i(85149),u=i(62540);function ModalDialog({className:e="",dialogActive:t=!1,handleCancel:i=null,onOpen:n=null,onClose:s=null,title:o=null,provides:p,handleConfirm:h,subtitle:m,confirmButton:f=null,dependentModules:b,danger:k=!1,inProgress:y=!1,small:x=!1,medium:_=!1,buttonLink:v=null}){const j=`googlesitekit-dialog-description-${(0,a.A)(ModalDialog)}`,S=!(!p||!p.length);return(0,u.jsxs)(g.Dialog,{open:t,onOpen:n,onClose:s,"aria-describedby":S?j:void 0,tabIndex:"-1",className:r()(e,{"googlesitekit-dialog-sm":x,"googlesitekit-dialog-md":_}),children:[(0,u.jsxs)(g.DialogTitle,{children:[k&&(0,u.jsx)(d.A,{width:28,height:28}),o]}),m?(0,u.jsx)("p",{className:"mdc-dialog__lead",children:m}):[],(0,u.jsxs)(g.DialogContent,{children:[S&&(0,u.jsx)("section",{id:j,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))})}),b&&(0,u.jsx)("p",{className:"mdc-dialog__dependencies",children:(0,l.A)((0,c.sprintf)(/* translators: %s is replaced with the dependent modules. */ /* translators: %s is replaced with the dependent modules. */
(0,c.__)("<strong>Note:</strong> %s","google-site-kit"),b),{strong:(0,u.jsx)("strong",{})})})]}),(0,u.jsxs)(g.DialogFooter,{children:[(0,u.jsx)(g.Button,{className:"mdc-dialog__cancel-button",onClick:i,disabled:y,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),v?(0,u.jsx)(g.Button,{href:v,onClick:h,target:"_blank",danger:k,children:f}):(0,u.jsx)(g.SpinnerButton,{onClick:h,danger:k,disabled:y,isSaving:y,children:f||(0,c.__)("Disconnect","google-site-kit")})]})]})}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:s().string,dialogActive:s().bool,handleDialog:s().func,handleConfirm:s().func.isRequired,onOpen:s().func,onClose:s().func,title:s().string,confirmButton:s().string,danger:s().bool,small:s().bool,medium:s().bool,buttonLink:s().string};const p=ModalDialog},9341:(e,t,i)=>{i.d(t,{A:()=>CircularProgress});var n=i(75762),s=i(62540);function CircularProgress(e){return(0,s.jsx)(n.A,{...e})}},9652:(e,t,i)=>{i.d(t,{A:()=>RecoverableModules});var n=i(62688),s=i.n(n),o=i(82871),r=i(50539),a=i(37226),l=i(4884),c=i(62540);function RecoverableModules({moduleSlugs:e}){const t=(0,r.useSelect)(t=>{const i=t(a.i).getModules();if(void 0!==i)return e.map(e=>i[e].name)});if(void 0===t)return null;const i=1===t.length?(0,o.sprintf)(/* translators: %s: Module name */ /* translators: %s: Module name */
(0,o.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),t[0]):(0,o.sprintf)(/* translators: %s: List of module names */ /* translators: %s: List of module names */
(0,o.__)("The data for the following modules was previously shared by an admin who no longer has access: %s. Please contact another admin to restore it.","google-site-kit"),t.join((0,o._x)(", ","Recoverable modules","google-site-kit")));return(0,c.jsx)(l.A,{title:(0,o.__)("Data Unavailable","google-site-kit"),description:i})}RecoverableModules.propTypes={moduleSlugs:s().arrayOf(s().string).isRequired}},10072:(e,t,i)=>{i.d(t,{A:()=>ModuleIcon});var n=i(62688),s=i.n(n),o=i(50539),r=i(37226),a=i(62540);function ModuleIcon({slug:e,size:t,...i}){const n=(0,o.useSelect)(t=>t(r.i).getModuleIcon(e));return n?(0,a.jsx)(n,{width:t,height:t,...i}):null}ModuleIcon.propTypes={slug:s().string.isRequired,size:s().number},ModuleIcon.defaultProps={size:33}},11106:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(63696),s=i(65214);const o=(0,n.createContext)(s.t)},11253:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,s=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},e),n||(n=s.createElement("g",{fill:"currentColor",fillRule:"evenodd"},s.createElement("path",{d:"M0 6.414 1.415 5l5.292 5.292-1.414 1.415z"}),s.createElement("path",{d:"m14.146.146 1.415 1.414L5.414 11.707 4 10.292z"}))))},11345:(e,t,i)=>{i.d(t,{A:()=>ReportError});var n=i(62688),s=i.n(n),o=i(17243),r=i(63696),a=i(82871),l=i(50539),c=i(37226),g=i(67150),d=i(65311),u=i(15210),p=i(4884),h=i(35902),m=i(35323),f=i(77967),b=i(62540);function ReportError({moduleSlug:e,error:t}){const i=(0,m.A)(),n=(0,l.useSelect)(t=>t(c.i).getModule(e)),s=Array.isArray(t)?t:[t];let k;function y(e){return(0,g.SG)(e)?i?(k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,a.__)("Access lost to %s","google-site-kit"),n?.name),(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,a.__)("The administrator sharing this module with you has lost access to the %s service, so you wont be able to see stats from it on the Site Kit dashboard. You can contact them or another administrator to restore access.","google-site-kit"),n?.name)):(k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,a.__)("Insufficient permissions in %s","google-site-kit"),n?.name),(0,d.c)(e.message,n)):(0,g.e4)(e)}const x=(0,o.uniqWith)(s.map(e=>({...e,message:y(e),reconnectURL:e.data?.reconnectURL})),(e,t)=>e.message===t.message&&e.reconnectURL===t.reconnectURL),_=s.some(e=>(0,g.SG)(e));_||1!==x.length?!_&&x.length>1&&(k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,a.__)("Data errors in %s","google-site-kit"),n?.name)):k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,a.__)("Data error in %s","google-site-kit"),n?.name);const v=(0,b.jsx)(r.Fragment,{children:x.map(e=>{const t=e?.data?.reconnectURL;return t?(0,b.jsx)(f.A,{error:e,message:e.message},e.message):(0,b.jsx)("p",{children:u.O.sanitize(e.message,{ALLOWED_TAGS:[]})},e.message)})});return(0,b.jsx)(p.A,{title:k,description:v,error:!0,children:(0,b.jsx)(h.A,{moduleSlug:e,error:t})})}ReportError.propTypes={moduleSlug:s().string.isRequired,error:s().oneOfType([s().arrayOf(s().object),s().object]).isRequired}},12108:(e,t,i)=>{i.d(t,{YJ:()=>o,Eq:()=>r});var n=i(32947),s=i(17243);function o(e,t){const n=document.querySelector(e);if(!n)return 0;const s=n.getBoundingClientRect().top,o=r(t);return s+i.g.scrollY-o}function r(e){let t=function(e){let t=0;const o=document.querySelector(".googlesitekit-header");t=o&&"sticky"===i.g.getComputedStyle(o).position?function(e){const t=document.querySelector(".googlesitekit-header");if(t){if(e===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,s.isFinite)(e)?e:0}(t),t<0?0:t}(e);const o=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(o).reduce((e,t)=>e+t.offsetHeight,0),t}},12701:(e,t,i)=>{i.d(t,{A:()=>Root});var n=i(62688),s=i.n(n),o=i(44010),r=i(77105),a=i(63696),l=i(50539),c=i.n(l),g=i(82871),d=i(54312),u=i(61991),p=i(90007),h=i(12850),m=i(62540);class ErrorHandler extends a.Component{constructor(e){super(e),this.state={error:null,info:null,copied:!1}}componentDidCatch(e,t){i.g.console.error("Caught an error:",e,t),this.setState({error:e,info:t}),(0,h.sx)("react_error",`handle_${this.context||"unknown"}_error`,`${e?.message}\n${t?.componentStack}`.slice(0,500))}render(){const{children:e}=this.props,{error:t,info:i}=this.state;return t?(0,m.jsx)(p.A,{notificationID:"googlesitekit-error",className:"googlesitekit-error-handler",type:"error",title:(0,g.__)("Site Kit encountered an error","google-site-kit"),description:(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)(d.A,{message:t.message,componentStack:i.componentStack}),(0,m.jsxs)("pre",{className:"googlesitekit-overflow-auto",children:[t.message,i.componentStack]})]})}):e}}ErrorHandler.contextType=u.Ay,ErrorHandler.propTypes={children:s().node.isRequired};const f=ErrorHandler;var b=i(11106);const{Consumer:k,Provider:y}=b.A,x=y;var _=i(65214),v=i(4445),j=i(78340),S=i(45472),N=i(58116),A=i(64067),I=i(14007);const T=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()),s=(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:o}=(0,l.useDispatch)(N.oR),{navigateTo:r}=(0,l.useDispatch)(S.M),{setValues:c}=(0,l.useDispatch)(j.s),d=(0,a.useCallback)(()=>{o()},[o]),u=(0,a.useCallback)(async()=>{c(N.$8,{permissionsError:t}),await(0,A.mR)(e),r(s)},[e,s,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,m.jsx)(I.A,{children:(0,m.jsx)(v.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 C=function PermissionsModal(){return(0,l.useSelect)(e=>e(N.oR).isAuthenticated())?(0,m.jsx)(T,{}):null};const w=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 M=i(15844),E=i(77766),D=i(39771);function FeatureTours(){const e=(0,E.A)(),{triggerTourForView:t}=(0,l.useDispatch)(N.oR);(0,M.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,m.jsx)(D.Ay,{tourID:n.slug,steps:n.steps,gaEventCategory:n.gaEventCategory,callback:n.callback}):null}var R=i(68869),O=i(22821);function Root({children:e,registry:t,viewContext:i=null}){const n=o.D,[s]=(0,a.useState)({key:"Root",value:!0});return(0,m.jsx)(a.StrictMode,{children:(0,m.jsx)(R.Ay,{value:s,children:(0,m.jsx)(l.RegistryProvider,{value:t,children:(0,m.jsx)(x,{value:_.t,children:(0,m.jsx)(u.Kq,{value:i,children:(0,m.jsx)(r.A,{theme:n(),children:(0,m.jsxs)(f,{children:[(0,m.jsxs)(w,{children:[e,i&&(0,m.jsx)(FeatureTours,{})]}),(0,O.A)(i)&&(0,m.jsx)(C,{})]})})})})})})})}Root.propTypes={children:s().node,registry:s().object,viewContext:s().string.isRequired},Root.defaultProps={registry:c()}},12755:(e,t,i)=>{i.d(t,{A:()=>qe});var n,s,o=i(62688),r=i.n(o),a=i(4452),l=i.n(a),c=i(41814),g=i(82871),d=i(63696),u=i(50539),p=i(99455),h=i(21795),m=i(31589),f=i(19266),b=i(49383),k=i(8420),y=i(12850),x=i(21134),_=i(14007),v=i(58116),j=i(62540);function Details(){const e=(0,u.useSelect)(e=>e(v.oR).getPicture()),t=(0,u.useSelect)(e=>e(v.oR).getFullName()),i=(0,u.useSelect)(e=>e(v.oR).getEmail());return(0,j.jsxs)("div",{className:"googlesitekit-user-menu__details","aria-label":(0,g.__)("Google account","google-site-kit"),children:[!!e&&(0,j.jsx)("img",{className:"googlesitekit-user-menu__details-avatar",src:e,alt:""}),(0,j.jsxs)("div",{className:"googlesitekit-user-menu__details-info",children:[(0,j.jsx)("p",{className:"googlesitekit-user-menu__details-info__name",children:t}),(0,j.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,j.jsxs)("div",{className:"googlesitekit-user-menu__item",children:[(0,j.jsx)("div",{className:"googlesitekit-user-menu__item-icon",children:e}),(0,j.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;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},S.apply(null,arguments)}Item.propTypes={icon:r().node,label:r().string};const N=e=>d.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"})),s||(s=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,I,T,C,w;function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},M.apply(null,arguments)}const E=e=>d.createElement("svg",M({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})),I||(I=d.createElement("path",{fill:"#6C726E",d:"M9 17h6v3H9z"})),T||(T=d.createElement("path",{stroke:"#6C726E",strokeLinecap:"round",strokeWidth:1.5,d:"M10 9h7M10 12h7"})),C||(C=d.createElement("circle",{cx:7,cy:9,r:1,fill:"#6C726E"})),w||(w=d.createElement("circle",{cx:7,cy:12,r:1,fill:"#6C726E"})));var D,R,O;function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},L.apply(null,arguments)}const z=e=>d.createElement("svg",L({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),D||(D=d.createElement("rect",{width:18,height:12,x:3,y:6,stroke:"#6C726E",strokeWidth:1.5,rx:2})),R||(R=d.createElement("path",{stroke:"#6C726E",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m3.566 7.5 7.086 7.086a2 2 0 0 0 2.829 0l7.019-7.02"})),O||(O=d.createElement("path",{stroke:"#6C726E",strokeLinecap:"round",strokeWidth:1.5,d:"M20.246 17.5 15.5 12.754M4 17.5l4.746-4.746"})));var P=i(93896),B=i(7081),H=i(45472),W=i(72455),U=i(3288),G=i(99235),Y=i(77766),V=i(27333),F=i(6464);function UserMenu(){const e=(0,F.i)("proactiveUserEngagement"),t=(0,u.useSelect)(e=>e(P.O4).getProxyPermissionsURL()),i=(0,u.useSelect)(e=>e(v.oR).getEmail()),n=(0,u.useSelect)(e=>e(v.oR).getPicture()),s=(0,u.useSelect)(e=>e(v.oR).getFullName()),o=(0,u.useSelect)(e=>e(P.O4).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})),r=(0,V.A)(W.CV,"isAutoCreatingCustomDimensionsForAudience"),[a,l]=(0,d.useState)(!1),[c,p]=(0,d.useState)(!1),S=(0,d.useRef)(),A=(0,d.useRef)(),I=(0,Y.A)(),{navigateTo:T}=(0,u.useDispatch)(H.M);(0,h.A)(S,()=>p(!1)),(0,G.l)([f._f,f.wn],S,()=>{p(!1),A.current?.focus()});const C=(0,d.useCallback)(()=>{l(!1),p(!1)},[l,p]),w=(0,d.useCallback)(e=>{f._f===e.keyCode&&C()},[C]);(0,m.A)("keyup",w);const M=(0,d.useCallback)(()=>{c||(0,y.sx)(`${I}_headerbar`,"open_usermenu"),p(!c)},[c,I]),D=(0,d.useCallback)(()=>{l(!a),p(!1)},[a]),{setValue:R}=(0,u.useDispatch)(B.n),O=(0,d.useCallback)(async(e,i)=>{const{detail:{item:n}}=i;switch(n?.id){case"manage-sites":t&&(await(0,y.sx)(`${I}_headerbar_usermenu`,"manage_sites"),T(t));break;case"disconnect":D();break;case"manage-email-reports":R(U.Q,!0);break;default:M()}},[t,M,D,T,R,I]),L=(0,d.useCallback)(async()=>{l(!1),await(0,x.IL)(),await(0,y.sx)(`${I}_headerbar_usermenu`,"disconnect_user"),T(o)},[o,T,I]);if(!i)return null;let Z;return s&&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"),s,i)),s&&!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"),s)),!s&&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,j.jsxs)(d.Fragment,{children:[(0,j.jsxs)("div",{ref:S,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,j.jsx)(b.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:M,icon:!!n&&(0,j.jsx)("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true",children:(0,j.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,j.jsxs)("span",{"aria-label":Z,children:[(0,j.jsx)("strong",{children:(0,g.__)("Google Account","google-site-kit")}),(0,j.jsx)("br",{}),(0,j.jsx)("br",{}),s,s&&(0,j.jsx)("br",{}),i]}),text:!0,tooltip:!0}),(0,j.jsxs)(b.Menu,{className:"googlesitekit-user-menu",menuOpen:c,onSelected:O,id:"user-menu",children:[(0,j.jsx)("li",{children:(0,j.jsx)(Details,{})}),e&&(0,j.jsx)("li",{id:"manage-email-reports",className:"mdc-list-item",role:"menuitem",children:(0,j.jsx)(Item,{icon:(0,j.jsx)(z,{width:"24"}),label:(0,g.__)("Manage email reports","google-site-kit")})}),!!t&&(0,j.jsx)("li",{id:"manage-sites",className:"mdc-list-item",role:"menuitem",children:(0,j.jsx)(Item,{icon:(0,j.jsx)(E,{width:"24"}),label:(0,g.__)("Manage Sites","google-site-kit")})}),(0,j.jsx)("li",{id:"disconnect",className:"mdc-list-item",role:"menuitem",children:(0,j.jsx)(Item,{icon:(0,j.jsx)(N,{width:"24"}),label:(0,g.__)("Disconnect","google-site-kit")})})]})]}),(0,j.jsx)(_.A,{children:(0,j.jsx)(k.A,{dialogActive:a,handleConfirm:L,handleCancel:C,onClose:C,title:(0,g.__)("Disconnect","google-site-kit"),subtitle:(0,g.__)("Disconnecting Site Kit by Google will remove your access to all services. After disconnecting, you will need to re-authorize to restore service.","google-site-kit"),confirmButton:(0,g.__)("Disconnect","google-site-kit"),danger:!0,small:!0})})]})}var Z=i(55527),$=i(35323),q=i(29898),Q=i(15844),X=i(39525),J=i(30521),K=i(24558),ee=i(73874),te=i(12108),ie=i(32947);var ne=i(44949),se=i(86134);const oe={[ee.Oo]:{[K.SH]:ne.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,[K.OT]:ne.CONTEXT_MAIN_DASHBOARD_TRAFFIC,[K.en]:ne.CONTEXT_MAIN_DASHBOARD_CONTENT,[K.Ej]:ne.CONTEXT_MAIN_DASHBOARD_SPEED,[K.Gw]:ne.CONTEXT_MAIN_DASHBOARD_MONETIZATION},[ee.oE]:{[K.OT]:ne.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,[K.en]:ne.CONTEXT_ENTITY_DASHBOARD_CONTENT,[K.Ej]:ne.CONTEXT_ENTITY_DASHBOARD_SPEED,[K.Gw]:ne.CONTEXT_ENTITY_DASHBOARD_MONETIZATION}};var re;function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},ae.apply(null,arguments)}const le=e=>d.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 18"},e),re||(re=d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M18 16V2c0-1.1-1-2-2.222-2H2.222C1 0 0 .9 0 2v14c0 1.1 1 2 2.222 2h13.556C17 18 18 17.1 18 16M9 7h5V5H9zm7-5H2v14h14zM4 4h4v4H4zm10 7H9v2h5zM4 10h4v4H4z",clipRule:"evenodd"})));var ce,ge,de,ue;function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},pe.apply(null,arguments)}const he=e=>d.createElement("svg",pe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 12"},e),ce||(ce=d.createElement("rect",{width:5,height:5,x:.5,fill:"currentColor",rx:1})),ge||(ge=d.createElement("rect",{width:5,height:5,x:7.5,fill:"currentColor",rx:1})),de||(de=d.createElement("rect",{width:5,height:5,x:.5,y:7,fill:"currentColor",rx:1})),ue||(ue=d.createElement("rect",{width:5,height:5,x:7.5,y:7,fill:"currentColor",rx:1})));var me;function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},fe.apply(null,arguments)}const be=e=>d.createElement("svg",fe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 23 12"},e),me||(me=d.createElement("path",{fill:"currentColor",d:"M16.1 0v2h2.967l-5.946 5.17-4.6-4L0 10.59 1.622 12l6.9-6 4.6 4L20.7 3.42V6H23V0z"})));var ke,ye;function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},xe.apply(null,arguments)}const _e=e=>d.createElement("svg",xe({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"})),ye||(ye=d.createElement("path",{fill:"currentColor",d:"M8.572 11.399a2.003 2.003 0 0 0 2.835 0l5.669-8.51-8.504 5.673a2.005 2.005 0 0 0 0 2.837"})));var ve;function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},je.apply(null,arguments)}const Se=e=>d.createElement("svg",je({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 16"},e),ve||(ve=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,Y.A)(),s=function(){const e=(0,ee.Ay)(),t=(0,$.A)();return(0,u.useSelect)(i=>{const n=t?i(v.oR).getViewableModules():null,s=i(v.oR).isKeyMetricsWidgetHidden(),o={modules:n||void 0};return Object.keys(oe[e]).reduce((t,n)=>(n===K.SH&&s||i(se.aO).isWidgetContextActive(oe[e][n],o)&&t.push(n),t),[])})}(),{calculateScrollPosition:o,defaultChipID:r,findClosestSection:a,isValidChipID:c,scrollToChip:p,updateURLHash:h}=function({visibleSections:e}){const t=(0,ie.dv)(),n=(0,$.A)(),s=(0,d.useCallback)(()=>e.includes(K.SH)?K.SH:n?e[0]||"":K.OT,[n,e])(),o=(0,d.useCallback)(t=>e.includes(t),[e]),r=(0,d.useCallback)(e=>{i.g.history.replaceState({},"",`#${e}`)},[]),a=(0,d.useCallback)(e=>e!==s?(0,te.YJ)(`#${e}`,t):0,[t,s]),l=(0,d.useCallback)(e=>{i.g.scrollTo({top:a(e,t,s),behavior:"smooth"})},[t,a,s]),c=(0,d.useCallback)(t=>{var i;const n=document.querySelector(".googlesitekit-entity-header")?.getBoundingClientRect?.()?.bottom,{bottom:o}=null!==(i=t?.current?.getBoundingClientRect?.())&&void 0!==i?i:{};let r,a=s;for(const t of e){const e=document.getElementById(t);if(!e)continue;const i=e.getBoundingClientRect().top-20-(n||o||0);i<0&&(void 0===r||r<i)&&(r=i,a=t)}return a},[s,e]);return{calculateScrollPosition:a,defaultChipID:s,findClosestSection:c,isValidChipID:o,scrollToChip:l,updateURLHash:r}}({visibleSections:s}),f=i.g.location.hash?.substring(1),[b,k]=(0,d.useState)(f||void 0),[x,_]=(0,d.useState)(!1),[S,N]=(0,d.useState)(f),{setValue:A}=(0,u.useDispatch)(B.n),I=(0,d.useCallback)(({target:e})=>{const t=e.closest(".mdc-chip"),i=t?.dataset?.contextId;h(i),k(i),p(i),(0,y.sx)(`${n}_navigation`,"tab_select",i),setTimeout(()=>{A(B.F,i)},50)},[p,A,h,n]),T=(0,d.useCallback)(()=>{if(!t?.current)return;const{top:e}=t?.current?.getBoundingClientRect();if(0===i.g.scrollY)_(!1);else{const t=document.querySelector(".googlesitekit-header")?.getBoundingClientRect?.()?.bottom;_(e===t)}},[]),C=(0,d.useCallback)(e=>{function s(e){A(B.F,void 0),N(e),k(void 0)}const o=a(t);if(b)b===o&&s(o);else{const{hash:t}=i.g.location;o!==t?.substring(1)&&(e&&(0,y.sx)(`${n}_navigation`,"tab_scroll",o),h(o),s(o))}},[a,b,A,h,n]);(0,Q.A)(()=>{if(!f)return N(r),void setTimeout(()=>h(r));const e=c(f)?f:r;N(e),A(B.F,e),setTimeout(()=>{const t=o(e);i.g.scrollY!==t?p(e):A(B.F,void 0)},50)});const w=(0,d.useCallback)(e=>{T(),C(e)},[C,T]),M=(0,J.A)(w,150);(0,m.A)("scroll",M);const E={[K.SH]:{label:(0,g.__)("Key metrics","google-site-kit"),icon:(0,j.jsx)(he,{width:"18",height:"16"})},[K.OT]:{label:(0,g.__)("Traffic","google-site-kit"),icon:(0,j.jsx)(Se,{width:"18",height:"16"})},[K.en]:{label:(0,g.__)("Content","google-site-kit"),icon:(0,j.jsx)(le,{width:"18",height:"18"})},[K.Ej]:{label:(0,g.__)("Speed","google-site-kit"),icon:(0,j.jsx)(_e,{width:"20",height:"16"})},[K.Gw]:{label:(0,g.__)("Monetization","google-site-kit"),icon:(0,j.jsx)(be,{width:"18",height:"16"})}};return(0,j.jsx)("nav",{className:l()("mdc-chip-set","googlesitekit-navigation",`googlesitekit-navigation--${e}`,{"googlesitekit-navigation--is-sticky":x}),ref:t,children:s.map(e=>(0,j.jsx)(X.Chip,{id:e,label:E[e].label,leadingIcon:E[e].icon,onClick:I,selected:S===e,"data-context-id":e},e))})}function DashboardNavigation(){const e=(0,$.A)(),t=(0,u.useSelect)(t=>e?t(v.oR).getViewableModules():null),i=(0,u.useSelect)(e=>e(v.oR).getKeyMetrics());return(0,j.jsx)(q.A,{loading:void 0===t||void 0===i,width:"100%",smallHeight:"59px",height:"71px",children:(0,j.jsx)(Navigation,{})})}var Ne,Ae;function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Ie.apply(null,arguments)}const Te=e=>d.createElement("svg",Ie({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 Ce=i(20898),we=i(59323),Me=i(8143);const Ee=function EntityHeader(){const e=(0,Y.A)(),t=(0,ee.Ay)(),n=(0,u.useSelect)(e=>e(P.O4).getCurrentEntityTitle()),s=(0,u.useSelect)(e=>e(P.O4).getCurrentEntityURL()),o=(0,d.useRef)(),[r,a]=(0,d.useState)(s),l=(0,d.useCallback)(()=>{if(!o.current)return;const e=o.current.clientWidth-40,t=i.g.getComputedStyle(o.current.lastChild,null).getPropertyValue("font-size"),n=2*e/parseFloat(t);a((0,Me.r0)(s,n))},[s]),c=(0,J.A)(l,150);(0,m.A)("resize",c);const{navigateTo:p}=(0,u.useDispatch)(H.M),h=(0,u.useSelect)(e=>e(P.O4).getAdminURL("googlesitekit-dashboard")),f=(0,d.useCallback)(()=>{(0,y.sx)(`${e}_navigation`,"return_to_dashboard"),p(h)},[h,p,e]);return ee.oE!==t||null===s||null===n?null:(0,j.jsxs)("div",{className:"googlesitekit-entity-header",children:[(0,j.jsx)("div",{className:"googlesitekit-entity-header__back",children:(0,j.jsx)(b.Button,{icon:(0,j.jsx)(Te,{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,j.jsxs)("div",{ref:o,className:"googlesitekit-entity-header__details",children:[(0,j.jsx)(we.A,{children:n}),(0,j.jsx)(Ce.A,{href:s,"aria-label":s,secondary:!0,external:!0,children:r})]})]})};var De;function Re(){return Re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Re.apply(null,arguments)}const Oe=e=>d.createElement("svg",Re({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 10"},e),De||(De=d.createElement("path",{fill:"currentColor",d:"M8 1.333c2.756 0 5.214 1.42 6.415 3.667-1.2 2.247-3.659 3.667-6.415 3.667S2.785 7.247 1.585 5C2.785 2.753 5.244 1.333 8 1.333M8 0C4.364 0 1.258 2.073 0 5c1.258 2.927 4.364 5 8 5s6.742-2.073 8-5c-1.258-2.927-4.364-5-8-5m0 3.333c1.004 0 1.818.747 1.818 1.667S9.004 6.667 8 6.667 6.182 5.92 6.182 5 6.996 3.333 8 3.333M8 2C6.196 2 4.727 3.347 4.727 5S6.197 8 8 8s3.273-1.347 3.273-3S9.803 2 8 2"})));var Le=i(13606);function Description(){const e=(0,Y.A)(),t=(0,u.useSelect)(e=>e(v.oR).hasCapability(v.ej)),i=(0,u.useSelect)(e=>e(P.O4).getProxySetupURL()),n=(0,u.useSelect)(e=>e(P.O4).getDocumentationLinkURL("dashboard-sharing")),{navigateTo:s}=(0,u.useDispatch)(H.M),o=(0,d.useCallback)(async t=>{t.preventDefault(),await Promise.all([(0,x.SO)("start_user_setup",!0),(0,y.sx)(`${e}_headerbar_viewonly`,"start_user_setup",i?"proxy":"custom-oauth")]),s(i)},[i,s,e]),r=(0,d.useCallback)(()=>{(0,y.sx)(`${e}_headerbar_viewonly`,"click_learn_more_link")},[e]),a=t?(0,Le.A)((0,g.__)("You can see stats from all shared Google services, but you can't make any changes. <strong>Sign in to connect more services and control sharing access.</strong>","google-site-kit"),{strong:(0,j.jsx)("strong",{})}):(0,Le.A)((0,g.__)("You can see stats from all shared Google services, but you can't make any changes. <a>Learn more</a>","google-site-kit"),{a:(0,j.jsx)(Ce.A,{href:n,onClick:r,"aria-label":(0,g.__)("Learn more about dashboard sharing","google-site-kit"),external:!0})});return(0,j.jsxs)("li",{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__description",children:[(0,j.jsx)(we.A,{children:a}),t&&(0,j.jsx)(b.Button,{onClick:o,children:(0,g._x)("Sign in with Google","Service name","google-site-kit")})]})}var ze=i(37226);function Service({module:e}){const t=(0,u.useSelect)(e=>e(v.oR).hasCapability(v.ej)),{name:i,owner:n}=(0,u.useSelect)(t=>t(ze.i).getModule(e)||{}),s=(0,u.useSelect)(t=>t(ze.i).getModuleIcon(e));return(0,j.jsxs)("li",{className:"googlesitekit-view-only-menu__service",children:[(0,j.jsx)("span",{className:"googlesitekit-view-only-menu__service--icon",children:(0,j.jsx)(s,{height:26})}),(0,j.jsx)("span",{className:"googlesitekit-view-only-menu__service--name",children:i}),t&&n?.login&&(0,j.jsx)("span",{className:"googlesitekit-view-only-menu__service--owner",children:(0,Le.A)((0,g.sprintf)(/* translators: %s: module owner Google Account email address */ /* translators: %s: module owner Google Account email address */
(0,g.__)("Shared by <strong>%s</strong>","google-site-kit"),n.login),{strong:(0,j.jsx)("strong",{title:n.login})})})]})}Service.propTypes={module:r().string.isRequired};var Pe=i(15167);function SharedServices(){const e=(0,u.useSelect)(e=>e(v.oR).getViewableModules());return void 0===e?null:(0,j.jsxs)("li",{className:"googlesitekit-view-only-menu__list-item",children:[(0,j.jsx)(Pe.A,{as:"h4",size:"large",type:"title",children:(0,g.__)("Shared services","google-site-kit")}),(0,j.jsx)("ul",{children:e.map(e=>(0,j.jsx)(Service,{module:e},e))})]})}var Be=i(82167);function Tracking(){const e=(0,Y.A)();return(0,j.jsxs)("li",{className:"googlesitekit-view-only-menu__list-item",children:[(0,j.jsx)(we.A,{children:(0,Le.A)((0,g.__)("Thanks for using Site Kit!<br />Help us make it even better","google-site-kit"),{br:(0,j.jsx)("br",{})})}),(0,j.jsx)(Be.A,{trackEventCategory:`${e}_headerbar_viewonly`,alignCheckboxLeft:!0})]})}var He=i(74595);function ManageEmailReports(){const{setValue:e}=(0,He.wA)(B.n);return(0,j.jsxs)(d.Fragment,{children:[(0,j.jsx)("li",{className:"mdc-list-divider",role:"separator"}),(0,j.jsx)("li",{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__email-reporting",children:(0,j.jsx)("ul",{className:"googlesitekit-view-only-menu",children:(0,j.jsx)("li",{className:"googlesitekit-view-only-menu__email-reporting-item",children:(0,j.jsx)(b.Button,{onClick:()=>e(U.Q,!0),icon:(0,j.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--icon",children:(0,j.jsx)(z,{width:"24"})}),tertiary:!0,children:(0,j.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,F.i)("proactiveUserEngagement"),[t,i]=(0,d.useState)(!1),n=(0,d.useRef)(),s=(0,Y.A)();(0,h.A)(n,()=>i(!1)),(0,G.l)([f._f,f.wn],n,()=>i(!1));const o=(0,d.useCallback)(()=>{t||(0,y.sx)(`${s}_headerbar`,"open_viewonly"),i(!t)},[t,s]),r=(0,u.useSelect)(e=>e(v.oR).hasCapability(v.ej));return(0,j.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,j.jsx)(b.Button,{className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--phone googlesitekit-button-icon",onClick:o,icon:(0,j.jsx)("span",{className:"mdc-button__icon","aria-hidden":"true",children:(0,j.jsx)(Oe,{className:"mdc-button__icon--image"})}),"aria-haspopup":"menu","aria-expanded":t,"aria-controls":"view-only-menu","aria-label":(0,g.__)("View only","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:(0,g.__)("View only","google-site-kit")}),(0,j.jsxs)(b.Menu,{menuOpen:t,onSelected:o,id:"view-only-menu",nonInteractive:!0,children:[(0,j.jsx)(Description,{}),(0,j.jsx)(SharedServices,{}),e&&(0,j.jsx)(ManageEmailReports,{}),(0,j.jsx)("li",{className:"mdc-list-divider",role:"separator"}),(0,j.jsx)(Tracking,{})]})]})}var We=i(71423),Ue=i(53137),Ge=i(77513);function CoreSiteBannerNotification({id:e,...t}){const{dismissNotification:i,acceptNotification:n}=(0,u.useDispatch)(P.O4),s=(0,d.useCallback)(()=>{n(e)},[e,n]),o=(0,d.useCallback)(()=>{i(e)},[e,i]);return(0,j.jsx)(Ge.A,{onCTAClick:s,onDismissClick:o,...t,id:e})}CoreSiteBannerNotification.propTypes={content:r().string,ctaLabel:r().string,ctaTarget:r().string,ctaURL:r().string,dismissLabel:r().string,dismissible:r().bool,gaTrackingEventArgs:r().object,id:r().string.isRequired,learnMoreLabel:r().string,learnMoreURL:r().string,title:r().string.isRequired},CoreSiteBannerNotification.defaultProps={content:"",ctaLabel:"",ctaTarget:"",ctaURL:"",dismissLabel:(0,g.__)("OK, Got it!","google-site-kit"),dismissible:!0,learnMoreLabel:"",learnMoreURL:""};const Ye=CoreSiteBannerNotification;const Ve=function CoreSiteBannerNotifications(){const e=(0,Y.A)(),[t,i]=(0,d.useState)(!1),[n,s]=(0,d.useState)(!1),o=(0,d.useRef)(Date.now()),r=(0,u.useSelect)(e=>e(P.O4).isUsingProxy()&&!1===e(v.oR).areSurveysOnCooldown()?e(v.oR).getCurrentSurvey():null),[a,l]=(0,d.useState)([]),{registerNotification:c}=(0,u.useDispatch)(We.D),g=(0,u.useSelect)(e=>e(P.O4).getNotifications());return(0,d.useEffect)(()=>{const e=setTimeout(()=>{n||i(!0)},5e3);return()=>{clearTimeout(e)}},[n]),(0,d.useEffect)(()=>{Math.floor((Date.now()-o.current)/1e3)<5&&r&&s(!0)},[o,r,s]),(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,j.jsx)(e,{gaTrackingEventArgs:i,children:(0,j.jsx)(Ye,{...t,gaTrackingEventArgs:i})}),priority:t.priority,areaSlug:Ue.bI.HEADER,isDismissible:t.dismissible}),l(e=>(e.push(t.id),e))})},[e,n,g,c,a,t]),null};var Fe=i(90007),Ze=i(43569);function InternalServerError(){const e=(0,u.useSelect)(e=>e(P.O4).getInternalServerError());return e?(0,j.jsx)(Ze.A,{id:"internal-server-error",children:(0,j.jsx)(Fe.A,{notificationID:"internal-server-error",type:Fe.Q.ERROR,title:e.title,description:e.description})}):null}function LegacyNotifications(){const e=(0,$.A)(),t=(0,ee.Ay)(),i=(0,u.useSelect)(e=>e(v.oR).isAuthenticated());return(0,j.jsxs)(d.Fragment,{children:[(0,j.jsx)(InternalServerError,{}),!e&&t===ee.Oo&&i&&(0,j.jsx)(Ve,{})]})}var $e=i(74995);function Header({children:e,subHeader:t,showNavigation:i}){const n=!!(0,ee.Ay)(),s=(0,$.A)();!function(){const e=(0,Y.A)(),t=(0,u.useSelect)(e=>e(P.O4).isUsingProxy()),i=(0,u.useSelect)(e=>e(P.O4).getSetupErrorMessage());(0,d.useEffect)(()=>{i||void 0===t||async function(){const i=await(0,x.Gq)("start_user_setup"),n=await(0,x.Gq)("start_site_setup");i.cacheHit&&(await(0,x.LD)("start_user_setup"),(0,y.sx)(`${e}_setup`,"complete_user_setup",t?"proxy":"custom-oauth")),n.cacheHit&&(await(0,x.LD)("start_site_setup"),(0,y.sx)(`${e}_setup`,"complete_site_setup",t?"proxy":"custom-oauth"))}()},[e,t,i])}();const o=(0,u.useSelect)(e=>e(P.O4).getAdminURL("googlesitekit-dashboard")),r=(0,u.useSelect)(e=>e(v.oR).isAuthenticated()),[a,h]=(0,c.A)({childList:!0}),m=!!h.target?.childElementCount;return(0,j.jsxs)(d.Fragment,{children:[(0,j.jsx)("header",{className:l()("googlesitekit-header",{"googlesitekit-header--has-subheader":m,"googlesitekit-header--has-navigation":i}),children:(0,j.jsx)(Z.xA,{children:(0,j.jsxs)(Z.fI,{children:[(0,j.jsx)(Z.fh,{smSize:1,mdSize:2,lgSize:4,className:"googlesitekit-header__logo",alignMiddle:!0,children:(0,j.jsx)(Ce.A,{"aria-label":(0,g.__)("Go to dashboard","google-site-kit"),className:"googlesitekit-header__logo-link",href:o,children:(0,j.jsx)(p.A,{})})}),(0,j.jsxs)(Z.fh,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0,children:[e,!r&&n&&s&&(0,j.jsx)(ViewOnlyMenu,{}),r&&!s&&(0,j.jsx)(UserMenu,{})]})]})})}),(0,j.jsx)("div",{className:"googlesitekit-subheader",ref:a,children:t}),i&&(0,j.jsx)(DashboardNavigation,{}),(0,j.jsx)(Ee,{}),(0,j.jsx)(LegacyNotifications,{}),(0,j.jsx)($e.A,{areaSlug:Ue.bI.HEADER})]})}Header.displayName="Header",Header.propTypes={children:r().node,subHeader:r().element,showNavigation:r().bool},Header.defaultProps={children:null,subHeader:null};const qe=Header},12850:(e,t,i)=>{i.d(t,{tt:()=>N,Jg:()=>S,Gp:()=>v,GH:()=>_,r0:()=>j,Du:()=>A,Zf:()=>Y,Cn:()=>P,G7:()=>f,vH:()=>m,N_:()=>D,zh:()=>F,mK:()=>g.mK,Ql:()=>I,vY:()=>z,sq:()=>C,VZ:()=>B.VZ,JK:()=>g.JK,IS:()=>M,pH:()=>B.pH,kf:()=>W,O5:()=>E,Qr:()=>T,x6:()=>H,K5:()=>g.K5,S_:()=>h,dc:()=>B.dc,Eo:()=>g.Eo,jq:()=>g.jq,DK:()=>G.D,N9:()=>U,p9:()=>o.p,XH:()=>w,Zm:()=>l,sx:()=>s.sx,BI:()=>s.BI,CZ:()=>o.C,BG:()=>V});var n=i(17243),s=i(89318),o=i(82046),r=i(10523),a=i.n(r);function l(e){return a()(JSON.stringify(c(e)))}function c(e){const t={};return Object.keys(e).sort().forEach(i=>{let 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"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function u(e){return`<p>${e.replace(/\n{2,}/g,"</p><p>")}</p>`}function p(e){return e.replace(/\n/gi,"<br>")}function h(e){const t=[d,u,p];let i=e;for(const e of t)i=e(i);return i}function m(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]}function f(e){const t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}var b=i(32091),k=i.n(b),y=i(82871);const x="Date param must construct to a valid date instance or be a valid date instance itself.",_="Invalid dateString parameter, it must be a string.",v='Invalid date range, it must be a string with the format "last-x-days".',j=60,S=60*j,N=24*S,A=7*N;function I(){function e(e){return(0,y.sprintf)(/* translators: %s: number of days */ /* translators: %s: number of days */
(0,y._n)("Last %s day","Last %s days",e,"google-site-kit"),e)}return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}function T(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 C(e){k()((0,n.isDate)(e)&&!isNaN(e),x);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 w(e){k()(T(e),_);const[t,i,n]=e.split("-");return new Date(t,i-1,n)}function M(e,t){return C(D(e,t*N))}function E(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()(T(e)||(0,n.isDate)(e)&&!isNaN(e),_);const i=T(e)?Date.parse(e):e.getTime();return new Date(i-1e3*t)}var R=i(69743),O=i(94552),L=i(62540);function z(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:i=!1}=t;return(0,R.Ay)((0,L.jsx)(O.A,{direction:e>0?"up":"down",invertColor:i}))}function P(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var B=i(8143);function H(e){const t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function W(e){if("number"==typeof e)return!0;const t=(e||"").toString();return!!t&&!isNaN(t)}function U(e){return Array.isArray(e)?[...e].sort():e}var G=i(2522);function Y(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 V(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function F(e){if(!e)return"";const t=e.replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(t)).replace(/(\\)/g,"");return(0,n.unescape)(t)}},13719:(e,t,i)=>{i.d(t,{A:()=>ModuleDashboardEffects});var n=i(50539),s=i(37226),o=i(73874),r=i(62540);const a={[o.Oo]:"DashboardMainEffectComponent",[o.oE]:"DashboardEntityEffectComponent"};function ModuleDashboardEffects(){const e=(0,o.Ay)(),t=(0,n.useSelect)(e=>e(s.i).getModules());if(!t)return null;const i=a[e];return Object.values(t).reduce((e,t)=>{const n=t[i];return t.active&&n?[...e,(0,r.jsx)(n,{},t.slug)]:e},[])}},14007:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(47209),s=i(62688),o=i.n(s),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:o().string,children:o().node},Portal.defaultProps={slug:"",children:null};const l=Portal},15135:(e,t,i)=>{i.d(t,{Gr:()=>r,We:()=>l,Y2:()=>a});var n=i(86134),s=i(73549),o=i(9652);const r={[n.N$.QUARTER]:3,[n.N$.HALF]:6,[n.N$.FULL]:12},a="googlesitekit-hidden",l=[s.A,o.A]},15167:(e,t,i)=>{i.d(t,{A:()=>Typography});var n=i(62688),s=i.n(n),o=i(4452),r=i.n(o),a=i(3714),l=i(62540);function Typography({className:e,type:t,size:i,as:n="span",children:s,...o}){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)}),...o,children:s})}Typography.propTypes={className:s().string,type:s().oneOf(a.tT),size:s().oneOf(a.oJ),as:s().oneOfType([s().string,s().elementType])}},15210:(e,t,i)=>{i.d(t,{O:()=>s});var n=i(31234);const s=i.n(n)()(i.g)},15577:(e,t,i)=>{i.d(t,{SO:()=>c});var n=i(55620),s=i(99123);const o={},r=void 0===i.g?null:i.g;function a(){return[i.g.innerWidth,i.g.innerHeight]}function l(e=o){const{fps:t,leading:i,initialWidth:l=0,initialHeight:c=0}=e,[g,d]=(0,n._)("undefined"==typeof document?[l,c]:a,t,i);function u(){return d(a)}return(0,s.A)(r,"resize",u),(0,s.A)(r,"orientationchange",u),g}function c(e){return l(e)[0]}},16834:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(62688),s=i.n(n),o=i(4452),r=i.n(o),a=i(62540);function VisuallyHidden({className:e,children:t,...i}){return t?(0,a.jsx)("span",{...i,className:r()("screen-reader-text",e),children:t}):null}VisuallyHidden.propTypes={className:s().string,children:s().node},VisuallyHidden.defaultProps={className:""};const l=VisuallyHidden},18418:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,s=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2 12"},e),n||(n=s.createElement("g",{fill:"currentColor",fillRule:"evenodd"},s.createElement("path",{d:"M0 0h2v7H0zM0 10h2v2H0z"}))))},19793:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,s=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),n||(n=s.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:()=>T});var n,s=i(4452),o=i.n(s),r=i(62688),a=i.n(r),l=i(39941),c=i(63696),g=i(82871);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},d.apply(null,arguments)}const u=e=>c.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),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 h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},h.apply(null,arguments)}const m=e=>c.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),p||(p=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"#FFF"}),c.createElement("path",{fill:"currentColor",d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 0 0 .325.79.46.46 0 0 0 .325-.135l3.037-3.038a.46.46 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.46.46 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var f;function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},b.apply(null,arguments)}const k=e=>c.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),f||(f=c.createElement("path",{d:"m12 20-8-8 8-8 1.425 1.4-5.6 5.6H20v2H7.825l5.6 5.6z"})));var y=i(83366),x=i(84385),_=i(62540);const v="BUTTON",j="BUTTON_DISABLED",S="EXTERNAL_LINK",N="LINK",A="ROUTER_LINK",I=(0,c.forwardRef)((e,t)=>{const{"aria-label":i,secondary:n=!1,arrow:s=!1,back:r=!1,caps:a=!1,children:c,className:d="",danger:p=!1,disabled:h=!1,external:f=!1,hideExternalIndicator:b=!1,href:I="",inverse:T=!1,noFlex:C=!1,onClick:w,small:M=!1,standalone:E=!1,linkButton:D=!1,to:R,leadingIcon:O,trailingIcon:L,...z}=e;const P=I||R||!w?R?A:f?S:N:h?j:v;const B=P===v||P===j?"button":P===A?l.N_:"a",H=function(){let e;return P===S&&(e=(0,g._x)("(opens in a new tab)","screen reader text","google-site-kit")),P===j&&(e=(0,g._x)("(disabled)","screen reader text","google-site-kit")),e?i?`${i} ${e}`:"string"==typeof c?`${c} ${e}`:void 0:i}();let W=O,U=L;return r&&(W=(0,_.jsx)(k,{width:14,height:14})),f&&!b&&(U=(0,_.jsx)(y.A,{width:14,height:14})),s&&!T&&(U=(0,_.jsx)(u,{width:14,height:14})),s&&T&&(U=(0,_.jsx)(m,{width:14,height:14})),(0,_.jsxs)(B,{"aria-label":H,className:o()("googlesitekit-cta-link",d,{"googlesitekit-cta-link--secondary":n,"googlesitekit-cta-link--inverse":T,"googlesitekit-cta-link--small":M,"googlesitekit-cta-link--caps":a,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":h,"googlesitekit-cta-link--standalone":E,"googlesitekit-cta-link--link-button":D,"googlesitekit-cta-link--no-flex":!!C}),disabled:h,href:P!==N&&P!==S||h?void 0:I,onClick:w,rel:P===S?"noopener noreferrer":void 0,ref:t,target:P===S?"_blank":void 0,to:R,...z,children:[!!W&&(0,_.jsx)(x.A,{marginRight:5,children:W}),(0,_.jsx)("span",{className:"googlesitekit-cta-link__contents",children:c}),!!U&&(0,_.jsx)(x.A,{marginLeft:5,children:U})]})});I.propTypes={arrow:a().bool,back:a().bool,caps:a().bool,children:a().node,className:a().string,danger:a().bool,disabled:a().bool,external:a().bool,hideExternalIndicator:a().bool,href:a().string,inverse:a().bool,leadingIcon:a().node,linkButton:a().bool,noFlex:a().bool,onClick:a().func,small:a().bool,standalone:a().bool,to:a().string,trailingIcon:a().node};const T=I},21134:(e,t,i)=>{i.d(t,{Gq:()=>d,IL:()=>m,LD:()=>p,SO:()=>u,a2:()=>s,xD:()=>h});var n=i(12850);const s="googlesitekit_",o=`${s}1.165.0_${i.g._googlesitekitBaseData.storagePrefix}_`,r=["sessionStorage","localStorage"];let a,l=[...r];async function c(e){const t=i.g[e];if(!t)return!1;try{const e="__storage_test__";return t.setItem(e,e),t.removeItem(e),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==t.length}}async function g(){if(void 0!==a)return a;for(const e of l)a||await c(e)&&(a=i.g[e]);return void 0===a&&(a=null),a}async function d(e){const t=await g();if(t){const i=t.getItem(`${o}${e}`);if(i){const e=JSON.parse(i),{timestamp:t,ttl:n,value:s,isError:o}=e;if(t&&(!n||Math.round(Date.now()/1e3)-t<n))return{cacheHit:!0,value:s,isError:o}}}return{cacheHit:!1,value:void 0}}async function u(e,t,{ttl:s=n.Jg,timestamp:r=Math.round(Date.now()/1e3),isError:a=!1}={}){const l=await g();if(l)try{return l.setItem(`${o}${e}`,JSON.stringify({timestamp:r,ttl:s,value:t,isError:a})),!0}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function p(e){const t=await g();if(t)try{const i=e.startsWith(s)?e:`${o}${e}`;return t.removeItem(i),!0}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function h(){const e=await g();if(e)try{const t=[];for(let i=0;i<e.length;i++){const n=e.key(i);0===n.indexOf(s)&&t.push(n)}return t}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),[]}return[]}async function m(){if(await g()){const e=await h();for(const t of e)await p(t);return!0}return!1}},22821:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(24558);function s(e){return n.kz.includes(e)}},23141:(e,t,i)=>{i.d(t,{A:()=>WidgetRecoverableModules});var n=i(62688),s=i.n(n),o=i(63696),r=i(47345),a=i(9652),l=i(62540);function WidgetRecoverableModules({widgetSlug:e,moduleSlugs:t,...i}){const n=(0,o.useMemo)(()=>({moduleSlug:[...t].sort().join(","),moduleSlugs:t}),[t]);return(0,r.A)(e,a.A,n),(0,l.jsx)(a.A,{moduleSlugs:t,...i})}WidgetRecoverableModules.propTypes={widgetSlug:s().string.isRequired,...a.A.propTypes}},23224:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(62688),s=i.n(n),o=i(4452),r=i.n(o),a=i(32947),l=i(62540);function PreviewBlock({className:e,width:t,height:i,shape:n,padding:s,smallWidth:o,smallHeight:c,tabletWidth:g,tabletHeight:d,desktopWidth:u,desktopHeight:p}){const h=(0,a.dv)(),m={width:{[a.mp]:o,[a.Lg]:g,[a.Fo]:u,[a.Qb]:u},height:{[a.mp]:c,[a.Lg]:d,[a.Fo]:p,[a.Qb]:u}};return(0,l.jsx)("div",{className:r()("googlesitekit-preview-block",e,{"googlesitekit-preview-block--padding":s}),style:{width:m.width[h]||t,height:m.height[h]||i},children:(0,l.jsx)("div",{className:r()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===n})})})}PreviewBlock.propTypes={className:s().string,width:s().string,height:s().string,shape:s().string,padding:s().bool,smallWidth:s().string,smallHeight:s().string,tabletWidth:s().string,tabletHeight:s().string,desktopWidth:s().string,desktopHeight:s().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},24288:(e,t,i)=>{i.d(t,{hk:()=>o,tm:()=>s,zP:()=>n});const n="editing-user-role-select-slug-key",s="dashboardSharingDialogOpen",o="resetSharingDialogOpen"},24452:(e,t,i)=>{i.d(t,{A:()=>H});var n=i(62688),s=i.n(n),o=i(4452),r=i.n(o),a=i(50539),l=i(63696),c=i(93934),g=i(12108),d=i(86134),u=i(7081),p=i(55527),h=i(32947),m=i(68869),f=i(17243),b=i(37226),k=i(39828),y=i(23141),x=i(15135),_=i(35323),v=i(62540);function WidgetRenderer({slug:e,OverrideComponent:t}){const i=(0,a.useSelect)(t=>t(d.aO).getWidget(e)),n=(0,h.dv)(),s=(0,c.c1)(e),{Widget:o,WidgetNull:r}=s,g=(0,a.useSelect)(e=>e(b.i).getRecoverableModules()),u=(0,_.A)(),p=(0,l.useMemo)(()=>i&&g&&(0,f.intersection)(i.modules,Object.keys(g)),[g,i]),m=(0,a.useSelect)(t=>t(d.aO).isWidgetPreloaded(e));if(!i||void 0===p||i?.hideOnBreakpoints?.includes(n))return(0,v.jsx)(r,{});const{Component:j,wrapWidget:S}=i;let N=(0,v.jsx)(j,{...s});return u&&p?.length&&(N=(0,v.jsx)(y.A,{widgetSlug:e,moduleSlugs:p})),t?N=(0,v.jsxs)(l.Fragment,{children:[(0,v.jsx)(k.A,{widgetSlug:"overridden",children:(0,v.jsx)(t,{})}),(0,v.jsx)("div",{className:x.Y2,children:N})]}):S&&(N=(0,v.jsx)(o,{children:N})),m?(0,v.jsx)("div",{className:x.Y2,children:N}):N}WidgetRenderer.propTypes={slug:s().string.isRequired,OverrideComponent:s().elementType};const j=WidgetRenderer;function WidgetCellWrapper({gridColumnWidth:e,children:t}){return 0===e?(0,v.jsx)("div",{className:x.Y2,children:t}):e<6?(0,v.jsx)(p.fh,{lgSize:e,mdSize:4,smSize:2,children:t}):e<8?(0,v.jsx)(p.fh,{lgSize:e,mdSize:8,children:t}):(0,v.jsx)(p.fh,{size:e,children:t})}WidgetCellWrapper.propTypes={gridColumnWidth:s().number.isRequired,children:s().element.isRequired};const S=WidgetCellWrapper;var N=i(38021),A=i.n(N),I=i(82871),T=i(4884),C=i(54312),w=i(61991),M=i(12850),E=i(59323);class WidgetErrorHandler extends l.Component{constructor(e){super(e),this.state={error:null,info:null},this.onErrorClick=this.onErrorClick.bind(this)}componentDidCatch(e,t){i.g.console.error("Widget error:",e,t),this.setState({error:e,info:t}),(0,M.sx)("widget_error",`handle_${this.context||"unknown"}_error`,`${this.props.slug}_${e?.message}\n${t?.componentStack}`.slice(0,500-this.props.slug.length-1))}onErrorClick(){const{error:e,info:t}=this.state;A()(`\`${e?.message}\n${t?.componentStack}\``)}render(){const{children:e}=this.props,{error:t,info:i}=this.state;return t?(0,v.jsx)("div",{className:"googlesitekit-widget-error-handler",children:(0,v.jsx)(T.A,{description:(0,v.jsxs)(l.Fragment,{children:[(0,v.jsx)(E.A,{children:(0,I.__)("An error prevented this Widget from being displayed properly. Report the exact contents of the error on the support forum to find out what caused it.","google-site-kit")}),(0,v.jsx)(C.A,{message:t.message,componentStack:i.componentStack})]}),onErrorClick:this.onErrorClick,onClick:this.onErrorClick,title:(0,I.__)("Error in Widget","google-site-kit"),error:!0})}):e}}WidgetErrorHandler.contextType=w.Ay,WidgetErrorHandler.propTypes={children:s().node.isRequired};const D=WidgetErrorHandler;var R=i(58116),O=i(89362),L=i(98652);function WidgetNewBadge({slug:e}){const t=(0,a.useSelect)(t=>t(d.aO).getWidgetArea(e)),{hasNewBadge:i}=t,n=`widget-area-expirable-new-badge-${e}`,s=(0,a.useSelect)(e=>e(R.oR).hasExpirableItem(n)),o=(0,a.useSelect)(e=>e(R.oR).isExpirableItemActive(n)),r=i&&(!1===s||o),{setExpirableItemTimers:c}=(0,a.useDispatch)(R.oR);return(0,l.useEffect)(()=>{void 0!==s&&void 0!==o&&i&&!s&&c([{slug:n,expiresInSeconds:4*M.Du}])},[i,n,s,o,c]),!!r&&(0,v.jsx)(L.A,{})}WidgetNewBadge.propTypes={slug:s().string.isRequired};var z=i(15577),P=i(15167);function WidgetAreaHeader({slug:e,Icon:t=!1,title:i="",subtitle:n="",CTA:s}){const o=(0,z.SO)(),r=s&&o>=783,a="function"==typeof n?n:void 0;return(0,v.jsxs)(l.Fragment,{children:[t&&(0,v.jsx)(t,{width:33,height:33}),i&&(0,v.jsxs)(P.A,{as:"h3",type:"headline",size:"small",className:"googlesitekit-widget-area-header__title",children:[i,(0,v.jsx)(WidgetNewBadge,{slug:e})]}),(n||s)&&(0,v.jsxs)("div",{className:"googlesitekit-widget-area-header__details",children:[n&&(0,v.jsxs)(P.A,{as:"h4",size:"medium",type:"body",className:"googlesitekit-widget-area-header__subtitle",children:[a&&(0,v.jsx)(a,{}),!a&&n,!i&&(0,v.jsx)(WidgetNewBadge,{slug:e})]}),r&&(0,v.jsx)("div",{className:"googlesitekit-widget-area-header__cta",children:(0,v.jsx)(s,{})})]})]})}function B(e){const t={[h.Qb]:48,[h.Fo]:48,[h.Lg]:32,[h.mp]:32}[e];return`${-Math.abs((0,g.Eq)(e)+t)}px ${-t}px ${-t}px ${-t}px`}function WidgetAreaRenderer({slug:e,contextID:t}){const i=(0,_.A)(),n=(0,a.useSelect)(e=>i?e(R.oR).getViewableModules():null),s=(0,z.SO)(),o=(0,h.dv)(),g=(0,l.useRef)(),f=(0,O.A)(g,{rootMargin:B(o),threshold:0}),b=(0,a.useSelect)(t=>t(d.aO).getWidgetArea(e)),{Icon:k,title:y,style:x,subtitle:N,CTA:A,Footer:I}=b,T=(0,a.useSelect)(t=>t(d.aO).getWidgets(e,{modules:n||void 0})),C=(0,a.useSelect)(e=>e(d.aO).getWidgetStates()),w=(0,a.useSelect)(t=>t(d.aO).isWidgetAreaActive(e,{modules:n||void 0})),M=(0,a.useSelect)(e=>e(u.n).getValue(u.F)),[E,L]=(0,l.useState)({key:`WidgetAreaRenderer-${e}`,value:M?M===t:!!f?.intersectionRatio});(0,l.useEffect)(()=>{L({key:`WidgetAreaRenderer-${e}`,value:M?M===t:!!f?.intersectionRatio})},[f,e,M,t]);const P=A&&s<=782;if(void 0===n)return null;const{columnWidths:H,rowIndexes:W}=(0,c.X9)(T,C),{gridColumnWidths:U,overrideComponents:G}=(0,c.DO)(T,C,{columnWidths:H,rowIndexes:W}),Y=T.map((e,t)=>(0,v.jsx)(S,{gridColumnWidth:U[t],children:(0,v.jsx)(D,{slug:e.slug,children:(0,v.jsx)(j,{OverrideComponent:G[t]?()=>{const{Component:e,metadata:i}=G[t];return(0,v.jsx)(e,{...i})}:void 0,slug:e.slug})})},`${e.slug}-wrapper`));return(0,v.jsxs)(m.Ay,{value:E,children:[!!w&&(0,v.jsxs)(p.xA,{className:r()("googlesitekit-widget-area",`googlesitekit-widget-area--${e}`,`googlesitekit-widget-area--${x}`),ref:g,children:[(0,v.jsx)(p.fI,{children:(0,v.jsx)(p.fh,{className:"googlesitekit-widget-area-header",size:12,children:(0,v.jsx)(WidgetAreaHeader,{slug:e,Icon:k,title:y,subtitle:N,CTA:A})})}),(0,v.jsx)("div",{className:"googlesitekit-widget-area-widgets",children:(0,v.jsxs)(p.fI,{children:[x===d.qB.BOXES&&Y,x===d.qB.COMPOSITE&&(0,v.jsx)(p.fh,{size:12,children:(0,v.jsx)(p.xA,{children:(0,v.jsx)(p.fI,{children:Y})})})]})}),(0,v.jsxs)(p.fI,{children:[P&&(0,v.jsx)(p.fh,{className:"googlesitekit-widget-area-footer",lgSize:12,mdSize:4,smSize:2,children:(0,v.jsx)("div",{className:"googlesitekit-widget-area-footer__cta",children:(0,v.jsx)(A,{})})}),I&&(0,v.jsx)(p.fh,{className:"googlesitekit-widget-area-footer",lgSize:12,mdSize:P?4:8,smSize:P?2:4,children:(0,v.jsx)(I,{})})]})]}),!w&&(0,v.jsx)(p.xA,{className:r()(c.Y2,"googlesitekit-widget-area",{[`googlesitekit-widget-area--${e}`]:!!e,[`googlesitekit-widget-area--${x}`]:!!x}),ref:g,children:Y})]})}function WidgetContextRenderer(e){const{id:t,slug:i,className:n,Header:s,Footer:o}=e,l=(0,_.A)(),c=(0,a.useSelect)(e=>l?e(R.oR).getViewableModules():null),g=(0,a.useSelect)(e=>i?e(d.aO).getWidgetAreas(i):null),u=(0,a.useSelect)(e=>!!i&&e(d.aO).isWidgetContextActive(i,{modules:c||void 0}));return void 0===c?null:(0,v.jsxs)("div",{id:t,className:r()("googlesitekit-widget-context",{"googlesitekit-hidden":!u},n),children:[s&&u&&(0,v.jsx)(p.xA,{children:(0,v.jsx)(p.fI,{children:(0,v.jsx)(p.fh,{size:12,children:(0,v.jsx)(s,{})})})}),g&&g.map(e=>(0,v.jsx)(WidgetAreaRenderer,{slug:e.slug,contextID:t},e.slug)),o&&u&&(0,v.jsx)(p.xA,{children:(0,v.jsx)(p.fI,{children:(0,v.jsx)(p.fh,{size:12,children:(0,v.jsx)(o,{})})})})]})}WidgetAreaHeader.propTypes={slug:s().string.isRequired,Icon:s().bool,title:s().oneOfType([s().string,s().element]),subtitle:s().oneOfType([s().string,s().elementType]),CTA:s().elementType},WidgetAreaRenderer.propTypes={slug:s().string.isRequired,contextID:s().string},WidgetContextRenderer.propTypes={id:s().string,slug:s().string,className:s().string,Header:s().elementType,Footer:s().elementType};const H=WidgetContextRenderer},24558:(e,t,i)=>{i.d(t,{Ax:()=>o,CZ:()=>g,Ej:()=>j,Gw:()=>S,Is:()=>r,KK:()=>u,Nn:()=>A,OT:()=>_,SH:()=>x,Y$:()=>p,ZS:()=>a,bg:()=>f,en:()=>v,ep:()=>m,f7:()=>s,hi:()=>h,jU:()=>n,k$:()=>k,kz:()=>N,ly:()=>l,mo:()=>b,s3:()=>y,uR:()=>c,zx:()=>d});const n="mainDashboard",s="entityDashboard",o="mainDashboardViewOnly",r="entityDashboardViewOnly",a="userInput",l="activation",c="splash",g="adminBar",d="adminBarViewOnly",u="settings",p="adBlockingRecovery",h="wpDashboard",m="wpDashboardViewOnly",f="moduleSetup",b="metricSelection",k="wpBlockEditor",y="keyMetricsSetup",x="key-metrics",_="traffic",v="content",j="speed",S="monetization",N=[n,s,o,r,a,c,u,f,b],A=[o,r,d,m]},24560:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,s=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},e),n||(n=s.createElement("g",{fill:"currentColor",fillRule:"evenodd"},s.createElement("path",{d:"M0 6.414 1.415 5l5.292 5.292-1.414 1.415z"}),s.createElement("path",{d:"m14.146.146 1.415 1.414L5.414 11.707 4 10.292z"}))))},25874:(e,t,i)=>{i.d(t,{A:()=>f});var n=i(62688),s=i.n(n),o=i(47485),r=i(63696),a=i(82871),l=i(55527),c=i(4452),g=i.n(c),d=i(62540);const u=(0,r.forwardRef)(({children:e,href:t,text:i,className:n,danger:s,disabled:o,target:r,"aria-label":a,inverse:l,tertiary:c,callout:u,calloutStyle:p,...h},m)=>{const f=t&&!o?"a":"button";return(0,d.jsx)(f,{className:g()("mdc-button",n,{"mdc-button--raised":!i&&!c&&!u,"mdc-button--danger":s,"mdc-button--inverse":l,"mdc-button--tertiary":c,"mdc-button--callout":u,"mdc-button--callout-primary":u||"primary"===p,"mdc-button--callout-warning":"warning"===p,"mdc-button--callout-error":"error"===p}),href:o?void 0:t,ref:m,disabled:!!o,"aria-label":a,target:r||"_self",role:"a"===f?"button":void 0,...h,children:e})});u.propTypes={children:s().node,href:s().string,text:s().bool,className:s().string,danger:s().bool,disabled:s().bool,target:s().string,"aria-label":s().string,inverse:s().bool,tertiary:s().bool,callout:s().bool,calloutStyle:s().oneOf(["primary","warning","error"])};const p=u;var h=i(59020);function MaybeTooltip({children:e,disabled:t=!1,tooltip:i=!1,tooltipTitle:n=null,hasIconOnly:s=!1,tooltipEnterDelayInMS:o=100}){return!t&&(i&&n||s&&n)?(0,d.jsx)(h.A,{title:n,enterDelay:o,children:e}):e}MaybeTooltip.propTypes={children:s().node.isRequired,disabled:s().bool,tooltip:s().bool,tooltipTitle:s().oneOfType([s().string,s().element]),hasIconOnly:s().bool,tooltipEnterDelayInMS:s().number};const m=(0,r.forwardRef)(({children:e,href:t=null,text:i=!1,className:n="",danger:s=!1,disabled:c=!1,target:g,icon:u=null,trailingIcon:h=null,"aria-label":m,title:f=null,customizedTooltip:b=null,tooltip:k=!1,inverse:y=!1,hideTooltipTitle:x=!1,tooltipEnterDelayInMS:_=100,tertiary:v=!1,callout:j=!1,calloutStyle:S=null,...N},A)=>{const I=(0,r.useCallback)(e=>{null!==e&&l.Nv.attachTo(e)},[]),T=(0,o.A)(A,I);const C=x?null:f||b||m;return(0,d.jsx)(MaybeTooltip,{disabled:c,tooltip:k,tooltipTitle:C,hasIconOnly:!!u&&void 0===e,tooltipEnterDelayInMS:_,children:(0,d.jsxs)(p,{href:t,disabled:c,className:n,danger:s,text:i,tertiary:v,inverse:y,callout:j,calloutStyle:S,ref:T,"aria-label":function(){let t=m;if("_blank"!==g)return t;const i=(0,a._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof e&&(t=t||e),t?`${t} ${i}`:i}(),target:g||"_self",...N,children:[u,e&&(0,d.jsx)("span",{className:"mdc-button__label",children:e}),h]})})});m.propTypes={onClick:s().func,children:s().node,href:s().string,text:s().bool,className:s().string,danger:s().bool,disabled:s().bool,icon:s().element,trailingIcon:s().element,title:s().string,customizedTooltip:s().element,tooltip:s().bool,inverse:s().bool,hideTooltipTitle:s().bool,callout:s().bool,calloutStyle:s().oneOf(["primary","warning","error"])};const f=m},27333:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(35470),s=i(78340);function o(e,t){return(0,n.A)(i=>{const{getValue:n}=i(s.s);return n(e,t)},[e,t])}},29507:(e,t,i)=>{i.d(t,{A:()=>DateRangeSelector});var n,s=i(21795),o=i(4452),r=i.n(o),a=i(63696),l=i(19266),c=i(82871),g=i(50539),d=i(49383);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},u.apply(null,arguments)}const p=e=>a.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 20"},e),n||(n=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 9H4v2h2zm4 0H8v2h2zm4 0h-2v2h2zm2-7h-1V0h-2v2H5V0H3v2H2C.89 2 .01 2.9.01 4L0 18a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 16H2V7h14z"})));var h=i(58116),m=i(99235),f=i(12850),b=i(7081),k=i(77766),y=i(62540);function DateRangeSelector(){const e=(0,f.Ql)(),t=(0,g.useSelect)(e=>e(h.oR).getDateRange()),{setDateRange:i}=(0,g.useDispatch)(h.oR),{resetInViewHook:n}=(0,g.useDispatch)(b.n),[o,u]=(0,a.useState)(!1),x=(0,a.useRef)(),_=(0,k.A)();(0,s.A)(x,()=>u(!1)),(0,m.l)([l._f,l.wn],x,()=>u(!1));const v=(0,a.useCallback)(()=>{u(!o)},[o]),j=(0,a.useCallback)(s=>{const o=Object.values(e)[s].slug;t!==o&&(0,f.sx)(`${_}_headerbar`,"change_daterange",o),n(),i(o),u(!1)},[e,t,n,i,_]),S=e[t]?.label,N=Object.values(e).map(e=>e.label);return(0,y.jsxs)("div",{ref:x,className:"googlesitekit-date-range-selector googlesitekit-dropdown-menu mdc-menu-surface--anchor",children:[(0,y.jsx)(d.Button,{className:r()("mdc-button--dropdown","googlesitekit-header__dropdown","googlesitekit-header__date-range-selector-menu","googlesitekit-border-radius-round--phone","googlesitekit-button-icon--phone"),onClick:v,icon:(0,y.jsx)(p,{width:"20",height:"20"}),"aria-haspopup":"menu","aria-expanded":o,"aria-controls":"date-range-selector-menu",title:(0,c.__)("Date range","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:S}),(0,y.jsx)(d.Menu,{menuOpen:o,menuItems:N,onSelected:j,id:"date-range-selector-menu",className:"googlesitekit-width-auto"})]})}},29584:(e,t,i)=>{i.d(t,{A:()=>DismissButton});var n=i(62688),s=i.n(n),o=i(82871),r=i(49383),a=i(62540);function DismissButton({className:e,label:t=(0,o.__)("Maybe later","google-site-kit"),onClick:i,disabled:n,tertiary:s=!0}){return i?(0,a.jsx)(r.Button,{className:e,onClick:i,disabled:n,tertiary:s,children:t}):null}DismissButton.propTypes={className:s().string,label:s().string,onClick:s().func,disabled:s().bool,tertiary:s().bool,dismissOptions:s().shape({expiresInSeconds:s().number,skipHidingFromQueue:s().bool})}},29898:(e,t,i)=>{i.d(t,{A:()=>LoadingWrapper});var n=i(62688),s=i.n(n),o=i(23224),r=i(62540);function LoadingWrapper({loading:e,children:t,...i}){return e?(0,r.jsx)(o.A,{...i}):t}LoadingWrapper.propTypes={loading:s().bool,children:s().node,...o.A.propTypes}},30823:(e,t,i)=>{i.d(t,{A:()=>LearnMoreLink});var n=i(62688),s=i.n(n),o=i(82871),r=i(20898),a=i(62540);function LearnMoreLink({href:e,className:t,label:i=(0,o.__)("Learn more","google-site-kit"),external:n=!0,onClick:s=()=>{}}){return e?(0,a.jsx)(r.A,{href:e,className:t,onClick:s,external:n,children:i}):null}LearnMoreLink.propTypes={href:s().string.isRequired,className:s().string,label:s().string,external:s().bool,onClick:s().func}},32947:(e,t,i)=>{i.d(t,{Fo:()=>o,Lg:()=>r,Qb:()=>s,dv:()=>l,mp:()=>a});var n=i(15577);const s="xlarge",o="desktop",r="tablet",a="small";function l(){const e=(0,n.SO)();return e>1280?s:e>960?o:e>600?r:a}},35001:(e,t,i)=>{i.d(t,{c1:()=>y,V8:()=>v,WP:()=>_});var n=i(50532),s=i.n(n),o=i(39828),r=i(62688),a=i.n(r),l=i(63696),c=i(47345),g=i(73549),d=i(62540);function WidgetReportZero({widgetSlug:e,moduleSlug:t,...i}){const n=(0,l.useMemo)(()=>({moduleSlug:t}),[t]);return(0,c.A)(e,g.A,n),(0,d.jsx)(g.A,{moduleSlug:t,...i})}WidgetReportZero.propTypes={widgetSlug:a().string.isRequired,...g.A.propTypes};var u=i(11345);function WidgetReportError({widgetSlug:e,...t}){return(0,d.jsx)(u.A,{...t})}WidgetReportError.propTypes={widgetSlug:a().string.isRequired,...u.A.propTypes};var p=i(84093),h=i(23141),m=i(17064),f=i(52684),b=i(50539),k=i(7081);function WPDashboardReportError({moduleSlug:e,error:t}){const i=(0,f.A)(WPDashboardReportError,"WPDashboardReportError"),{setValue:n}=(0,b.useDispatch)(k.n),s=t.message,o=(0,b.useSelect)(t=>t(k.n).getValue(`WPDashboardReportError-${e}-${s}`));return(0,m.A)(()=>{n(`WPDashboardReportError-${e}-${s}`,i)},()=>{n(`WPDashboardReportError-${e}-${s}`,void 0)}),o!==i?null:(0,d.jsx)(u.A,{moduleSlug:e,error:t})}WPDashboardReportError.propTypes={moduleSlug:a().string.isRequired,error:a().object.isRequired};const y=s()(e=>({widgetSlug:e,Widget:x(e)(o.A),WidgetRecoverableModules:x(e)(h.A),WidgetReportZero:x(e)(WidgetReportZero),WidgetReportError:x(e)(WidgetReportError),WidgetNull:x(e)(p.A)}));function x(e){return t=>{const i=(0,l.forwardRef)((i,n)=>(0,d.jsx)(t,{...i,ref:n,widgetSlug:e}));return i.displayName="WithWidgetSlug",(t.displayName||t.name)&&(i.displayName+=`(${t.displayName||t.name})`),i}}function _(e){const t=y(e);return e=>{function DecoratedComponent(i){return(0,d.jsx)(e,{...i,...t})}return DecoratedComponent.displayName="WithWidgetComponentProps",(e.displayName||e.name)&&(DecoratedComponent.displayName+=`(${e.displayName||e.name})`),DecoratedComponent}}function v(e){return t=>{function DecoratedComponent(i){return(0,d.jsx)(t,{...i,WPDashboardReportError:x(e)(WPDashboardReportError)})}return DecoratedComponent.displayName="WithWPDashboardWidgetComponentProps",(t.displayName||t.name)&&(DecoratedComponent.displayName+=`(${t.displayName||t.name})`),DecoratedComponent}}},35323:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(24558),s=i(77766);function o(){const e=(0,s.A)();return n.Nn.includes(e)}},35902:(e,t,i)=>{i.d(t,{A:()=>ReportErrorActions});var n=i(62688),s=i.n(n),o=i(63696),r=i(13606),a=i(82871),l=i(50539),c=i(49383),g=i(93896),d=i(37226),u=i(67150),p=i(35323),h=i(20898),m=i(62540);function ReportErrorActions(e){const{moduleSlug:t,error:i,GetHelpLink:n,hideGetHelpLink:s,buttonVariant:f,onRetry:b,onRequestAccess:k,getHelpClassName:y,RequestAccessButton:x,RetryButton:_}=e,v=(0,p.A)(),j=(0,l.useSelect)(e=>e(d.i).getModuleStoreName(t)),S=(0,l.useSelect)(e=>"function"==typeof e(j)?.getServiceEntityAccessURL?e(j).getServiceEntityAccessURL():null),N=Array.isArray(i)?i:[i],A=(0,l.useSelect)(e=>N.map(t=>{const i=e(j)?.getSelectorDataForError(t);return{...t,selectorData:i}})),I=A?.filter(e=>(0,u.vl)(e,e.selectorData)&&"getReport"===e.selectorData.name),T=!!I.length,C=(0,l.useSelect)(e=>{const i={...T?I[0]:N[0]};return(0,u.SG)(i)&&(i.code=`${t}_insufficient_permissions`),e(g.O4).getErrorTroubleshootingLinkURL(i)}),w=(0,l.useDispatch)(),M=N.some(e=>(0,u.SG)(e)),E=(0,o.useCallback)(()=>{I.forEach(e=>{const{selectorData:t}=e;w(t.storeName).invalidateResolution(t.name,t.args)}),b?.()},[w,I,b]),D=S&&M&&!v;return(0,m.jsxs)("div",{className:"googlesitekit-report-error-actions",children:[D&&("function"==typeof x?(0,m.jsx)(x,{requestAccessURL:S}):(0,m.jsx)(c.Button,{onClick:k,href:S,target:"_blank",danger:"danger"===f,tertiary:"tertiary"===f,children:(0,a.__)("Request access","google-site-kit")})),T&&(0,m.jsxs)(o.Fragment,{children:["function"==typeof _?(0,m.jsx)(_,{handleRetry:E}):(0,m.jsx)(c.Button,{onClick:E,danger:"danger"===f,tertiary:"tertiary"===f,children:(0,a.__)("Retry","google-site-kit")}),!s&&(0,m.jsx)("span",{className:"googlesitekit-error-retry-text",children:(0,r.A)((0,a.__)("Retry didnt work? <HelpLink />","google-site-kit"),{HelpLink:(0,m.jsx)(h.A,{href:C,external:!0,hideExternalIndicator:!0,children:(0,a.__)("Get help","google-site-kit")})})})]}),!T&&!s&&(0,m.jsx)("div",{className:y,children:"function"==typeof n?(0,m.jsx)(n,{linkURL:C}):(0,m.jsx)(h.A,{href:C,external:!0,hideExternalIndicator:!0,children:(0,a.__)("Get help","google-site-kit")})})]})}ReportErrorActions.propTypes={moduleSlug:s().string.isRequired,error:s().oneOfType([s().arrayOf(s().object),s().object]).isRequired,GetHelpLink:s().elementType,hideGetHelpLink:s().bool,buttonVariant:s().string,onRetry:s().func,onRequestAccess:s().func,getHelpClassName:s().string,RequestAccessButton:s().elementType,RetryButton:s().elementType}},37226:(e,t,i)=>{i.d(t,{U:()=>s,i:()=>n});const n="core/modules",s="insufficient_module_dependencies"},39771:(e,t,i)=>{i.d(t,{Ay:()=>TourTooltips,R0:()=>m,ei:()=>b});var n=i(15844),s=i(36703),o=i(62688),r=i.n(o),a=i(82871),l=i(50539),c=i(7081),g=i(58116),d=i(89318),u=i(60592),p=i(77766),h=i(62540);const m={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:"2px solid #3c7251",backgroundColor:"#fff"}},f={back:(0,a.__)("Back","google-site-kit"),close:(0,a.__)("Close","google-site-kit"),last:(0,a.__)("Got it","google-site-kit"),next:(0,a.__)("Next","google-site-kit")},b={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},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:o,callback:r}){const a=`${t}-step`,y=`${t}-run`,{setValue:x}=(0,l.useDispatch)(c.n),{dismissTour:_}=(0,l.useDispatch)(g.oR),v=(0,l.useRegistry)(),j=(0,p.A)(),S=(0,l.useSelect)(e=>e(c.n).getValue(a)||0),N=(0,l.useSelect)(e=>e(c.n).getValue(y)&&!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}`),x(y,!0)});const A=e.map(e=>({disableBeacon:!0,isFixed:!0,placement:"auto",...e}));return(0,h.jsx)(s.Ay,{callback:function(e){!function({index:e,action:t,lifecycle:i,size:n,status:r,type:a}){const l=e+1,c="function"==typeof o?o(j):o;a===s.qY.TOOLTIP&&i===s.VD.TOOLTIP?(0,d.sx)(c,k.VIEW,l):t===s.kl.CLOSE&&i===s.VD.COMPLETE?(0,d.sx)(c,k.DISMISS,l):t===s.kl.NEXT&&r===s.XQ.FINISHED&&a===s.qY.TOUR_END&&n===l&&(0,d.sx)(c,k.COMPLETE,l),i===s.VD.COMPLETE&&r!==s.XQ.FINISHED&&(t===s.kl.PREV&&(0,d.sx)(c,k.PREV,l),t===s.kl.NEXT&&(0,d.sx)(c,k.NEXT,l))}(e);const{action:n,index:l,status:c,step:g,type:u}=e,p=n===s.kl.CLOSE,h=!p&&[s.qY.STEP_AFTER,s.qY.TARGET_NOT_FOUND].includes(u),m=[s.XQ.FINISHED,s.XQ.SKIPPED].includes(c),f=p&&u===s.qY.STEP_AFTER,b=m||f;if(s.qY.STEP_BEFORE===u){let e=g.target;"string"==typeof g.target&&(e=i.g.document.querySelector(g.target)),e?.scrollIntoView?.({block:"center"})}h?function(e,t){x(a,e+(t===s.kl.PREV?-1:1))}(l,n):b&&(i.g.document.body.classList.remove("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),_(t)),r&&r(e,v)},floaterProps:b,locale:f,run:N,stepIndex:S,steps:A,styles:m,tooltipComponent:u.A,continuous:!0,disableOverlayClose:!0,disableScrolling:!0,showProgress:!0})}TourTooltips.propTypes={steps:r().arrayOf(r().object).isRequired,tourID:r().string.isRequired,gaEventCategory:r().oneOfType([r().string,r().func]).isRequired,callback:r().func}},39828:(e,t,i)=>{i.d(t,{A:()=>g});var n=i(4452),s=i.n(n),o=i(62688),r=i.n(o),a=i(63696),l=i(62540);const c=(0,a.forwardRef)(({children:e,className:t,widgetSlug:i,noPadding:n,Header:o,Footer:r},a)=>(0,l.jsxs)("div",{className:s()("googlesitekit-widget",`googlesitekit-widget--${i}`,{"googlesitekit-widget--no-padding":n},{"googlesitekit-widget--with-header":o},t),ref:a,children:[o&&(0,l.jsx)("div",{className:"googlesitekit-widget__header",children:(0,l.jsx)(o,{})}),(0,l.jsx)("div",{className:"googlesitekit-widget__body",children:e}),r&&(0,l.jsx)("div",{className:"googlesitekit-widget__footer",children:(0,l.jsx)(r,{})})]}));c.defaultProps={children:void 0,noPadding:!1},c.propTypes={children:r().node,widgetSlug:r().string.isRequired,noPadding:r().bool,Header:r().elementType,Footer:r().elementType};const g=c},42343:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,s=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),n||(n=s.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"})))},42926:(e,t,i)=>{i.d(t,{A:()=>g});var n=i(19371),s=i(31638);const o=function(e){const t=Object.keys(e).reduce((t,i)=>(t[(0,s.getStablePath)(i)]=e[i],t),{});let i=!1;return(e,n)=>{if(i)return n(e);setTimeout(()=>{i=!0},3e3);const{parse:o=!0}=e,r=e.path;if("string"==typeof e.path){const i=e.method?.toUpperCase()||"GET",n=(0,s.getStablePath)(r);if(o&&"GET"===i&&t[n]){const e=Promise.resolve(t[n].body);return delete t[n],e}if("OPTIONS"===i&&t[i]&&t[i][n]){const e=Promise.resolve(t[i][n]);return delete t[i][n],e}}return n(e)}},{nonce:r,nonceEndpoint:a,preloadedData:l,rootURL:c}=i.g._googlesitekitAPIFetchData||{};n.default.nonceEndpoint=a,n.default.nonceMiddleware=n.default.createNonceMiddleware(r),n.default.rootURLMiddleware=n.default.createRootURLMiddleware(c),n.default.preloadingMiddleware=o(l),n.default.use(n.default.nonceMiddleware),n.default.use(n.default.mediaUploadMiddleware),n.default.use(n.default.rootURLMiddleware),n.default.use(n.default.preloadingMiddleware);const g=n.default},43569:(e,t,i)=>{i.d(t,{A:()=>Notification});var n=i(62688),s=i.n(n),o=i(63696),r=i(50539),a=i(7081),l=i(71423),c=i(89362);function g(e){return`notification/${e}/viewed`}function d(e){return(0,r.useSelect)(t=>!!t(a.n).getValue(g(e)),[e])}function ViewedStateObserver({id:e,observeRef:t,threshold:i}){const n=(0,c.A)(t,{threshold:i}),{setValue:s}=(0,r.useDispatch)(a.n),{markNotificationSeen:g}=(0,r.useDispatch)(l.D),u=!!n?.isIntersecting,p=d(e),h=(0,o.useRef)();function m(){h.current&&clearTimeout(h.current)}return(0,o.useEffect)(()=>(!p&&u?(m(),h.current=setTimeout(()=>{n?.isIntersecting&&(s(d.getKey(e),!0),g(e))},3e3)):!u&&h.current&&m(),()=>{m()}),[p,u,s,g,e,n]),null}d.getKey=g,ViewedStateObserver.propTypes={id:s().string,observeRef:s().object,threshold:s().number};var u=i(7070),p=i(62540);function Notification({id:e,className:t,gaTrackingEventArgs:i,children:n,onView:s}){const a=(0,o.useRef)(),c=d(e),g=(0,u.A)(e,i?.category,{viewAction:i?.viewAction}),[h,m]=(0,o.useState)(!1),f=(0,r.useSelect)(t=>t(l.D).getNotificationSeenDates(e)),{dismissNotification:b}=(0,r.useDispatch)(l.D);return(0,o.useEffect)(()=>{!h&&c&&(g.view(i?.label,i?.value),s?.(),m(!0)),f?.length>=3&&b(e,{skipHidingFromQueue:!0})},[c,g,h,i,s,f,b,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:s().string,className:s().string,gaTrackingEventArgs:s().shape({category:s().string,viewAction:s().string,label:s().string,value:s().string}),children:s().node,onView:s().func}},44949:(e,t,i)=>{i.r(t),i.d(t,{CONTEXT_ENTITY_DASHBOARD_CONTENT:()=>c,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:()=>d,CONTEXT_ENTITY_DASHBOARD_SPEED:()=>g,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:()=>l,CONTEXT_MAIN_DASHBOARD_CONTENT:()=>o,CONTEXT_MAIN_DASHBOARD_KEY_METRICS:()=>n,CONTEXT_MAIN_DASHBOARD_MONETIZATION:()=>a,CONTEXT_MAIN_DASHBOARD_SPEED:()=>r,CONTEXT_MAIN_DASHBOARD_TRAFFIC:()=>s,default:()=>u});const n="mainDashboardKeyMetrics",s="mainDashboardTraffic",o="mainDashboardContent",r="mainDashboardSpeed",a="mainDashboardMonetization",l="entityDashboardTraffic",c="entityDashboardContent",g="entityDashboardSpeed",d="entityDashboardMonetization",u={CONTEXT_MAIN_DASHBOARD_KEY_METRICS:n,CONTEXT_MAIN_DASHBOARD_TRAFFIC:s,CONTEXT_MAIN_DASHBOARD_CONTENT:o,CONTEXT_MAIN_DASHBOARD_SPEED:r,CONTEXT_MAIN_DASHBOARD_MONETIZATION:a,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:l,CONTEXT_ENTITY_DASHBOARD_CONTENT:c,CONTEXT_ENTITY_DASHBOARD_SPEED:g,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:d}},45472:(e,t,i)=>{i.d(t,{M:()=>n});const n="core/location"},47121:(e,t,i)=>{i.d(t,{$C:()=>I,RF:()=>A,WI:()=>S,_5:()=>_,jU:()=>x,o3:()=>y,x0:()=>j});var n=i(32091),s=i.n(n),o=i(50532),r=i.n(o),a=i(17243),l=i(78913);const c="GET_REGISTRY",g="AWAIT";function d(...e){const t=e.reduce((e,t)=>({...e,...t}),{}),i=v(e.reduce((e,t)=>[...e,...Object.keys(t)],[]));return s()(0===i.length,`collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ${i.join(", ")}. Check your data stores for duplicates.`),t}const u=d,p=d;function h(...e){const t=[...e];let i;return"function"!=typeof t[0]&&(i=t.shift()),(e=i,n={})=>t.reduce((e,t)=>t(e,n),e)}const m=d,f=d,b=d;function k(e){return e}function y(...e){const t=b(...e.map(e=>e.initialState||{}));return{initialState:t,controls:p(...e.map(e=>e.controls||{})),actions:u(...e.map(e=>e.actions||{})),reducer:h(t,...e.map(e=>e.reducer||k)),resolvers:m(...e.map(e=>e.resolvers||{})),selectors:f(...e.map(e=>e.selectors||{}))}}const x={getRegistry:()=>({payload:{},type:c}),*await(e){return{payload:{value:e},type:g}}},_={[c]:(0,l.b)(e=>()=>e),[g]:({payload:e})=>e.value};function v(e){const t=[],i={};for(let n=0;n<e.length;n++){const s=e[n];i[s]=i[s]>=1?i[s]+1:1,i[s]>1&&t.push(s)}return t}const j={actions:x,controls:_,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 s()(void 0!==n,`${t}(...) is not resolved`),n}));function A(e,{negate:t=!1}={}){return{safeSelector:(0,l.N)(i=>(n,...s)=>{const o=!t,r=!!t;try{return e(i,n,...s),o}catch{return r}}),dangerousSelector:(0,l.N)(t=>(i,...n)=>{e(t,i,...n)})}}function I(e,t){return s()("function"==typeof e,"a validator function is required."),s()("function"==typeof t,"an action creator function is required."),s()("Generator"!==e[Symbol.toStringTag]&&"GeneratorFunction"!==e[Symbol.toStringTag],"an actions validator function must not be a generator."),(...i)=>(e(...i),t(...i))}},47345:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(63696),s=i(50539),o=i(86134);function r(e,t,i){const{setWidgetState:r,unsetWidgetState:a}=(0,s.useDispatch)(o.aO);(0,n.useEffect)(()=>(r(e,t,i),()=>{a(e,t,i)}),[e,t,i,r,a])}},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"}},50539:e=>{e.exports=googlesitekit.data},50787:(e,t,i)=>{i.d(t,{d:()=>r});var n=i(18117),s=i(17243),o=i(63696);function r(...e){const t=(0,n.MA)(()=>(0,s.debounce)(...e),e);return(0,o.useEffect)(()=>()=>t.cancel(),[t]),t}},51891:(e,t,i)=>{var n=i(131),s=i(78325),o=i(4452),r=i.n(o),a=i(63696),l=i(13606),c=i(82871),g=i(50539),d=i(12755),u=i(59323),p=i(44949),h=i(24452),m=i(75949),f=i(29507),b=i(84826),k=i(24558),y=i(93896),x=i(58116),_=i(20898),v=i(16834),j=i(55527),S=i(95267),N=i(99620),A=i(86134),I=i(66847),T=i(60072),C=i(35323),w=i(84754),M=i(66201),E=i(13719),D=i(89506),R=i(6464),O=i(62540);const L=function DashboardEntityApp(){const e=(0,C.A)(),t=(0,R.i)("proactiveUserEngagement"),i=(0,g.useSelect)(t=>e?t(x.oR).getViewableModules():null),n=(0,g.useSelect)(e=>e(y.O4).getCurrentEntityURL()),s=(0,g.useSelect)(e=>e(y.O4).getPermaLinkParam()),o=(0,g.useSelect)(e=>e(y.O4).getAdminURL("googlesitekit-dashboard")),L={modules:i||void 0},z=(0,g.useSelect)(e=>e(A.aO).isWidgetContextActive(p.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,L)),P=(0,g.useSelect)(e=>e(A.aO).isWidgetContextActive(p.CONTEXT_ENTITY_DASHBOARD_CONTENT,L)),B=(0,g.useSelect)(e=>e(A.aO).isWidgetContextActive(p.CONTEXT_ENTITY_DASHBOARD_SPEED,L)),H=(0,g.useSelect)(e=>e(A.aO).isWidgetContextActive(p.CONTEXT_ENTITY_DASHBOARD_MONETIZATION,L)),W=(0,g.useSelect)(e=>e(y.O4).getDocumentationLinkURL("url-not-part-of-this-site"));(0,M.Z)();let U=null;return H?U=k.Gw:B?U=k.Ej:P?U=k.en:z&&(U=k.OT),null===n?(0,O.jsxs)("div",{className:"googlesitekit-widget-context googlesitekit-module-page googlesitekit-entity-dashboard",children:[(0,O.jsx)(I.A,{}),(0,O.jsx)(E.A,{}),(0,O.jsx)(j.xA,{children:(0,O.jsx)(j.fI,{children:(0,O.jsx)(j.fh,{size:12,children:(0,O.jsxs)(a.Fragment,{children:[(0,O.jsx)(_.A,{href:o,back:!0,small:!0,children:(0,c.__)("Back to the Site Kit dashboard","google-site-kit")}),(0,O.jsx)(S.A,{title:(0,c.__)("Detailed Page Stats","google-site-kit"),className:"googlesitekit-heading-2 googlesitekit-entity-dashboard__heading",fullWidth:!0}),(0,O.jsx)(N.A,{className:"googlesitekit-entity-dashboard__entity-header",children:(0,O.jsx)(j.xA,{children:(0,O.jsx)(j.fI,{children:(0,O.jsx)(j.fh,{size:12,children:(0,O.jsx)(u.A,{children:(0,l.A)((0,c.sprintf)(/* translators: %s: current entity URL. */ /* translators: %s: current entity URL. */
(0,c.__)("It looks like the URL %s is not part of this site or is not based on standard WordPress content types, therefore there is no data available to display. Visit our <link1>support forums</link1> or <link2><VisuallyHidden>Site Kit</VisuallyHidden> website</link2> for support or further information.","google-site-kit"),`<strong>${s}</strong>`),{strong:(0,O.jsx)("strong",{}),link1:(0,O.jsx)(_.A,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0}),link2:(0,O.jsx)(_.A,{href:W,external:!0}),VisuallyHidden:(0,O.jsx)(v.A,{})})})})})})})]})})})}),(0,O.jsx)(w.A,{})]}):(0,O.jsxs)(a.Fragment,{children:[(0,O.jsx)(I.A,{}),(0,O.jsx)(E.A,{}),(0,O.jsxs)(d.A,{showNavigation:!0,children:[(0,O.jsx)(m.A,{}),(0,O.jsx)(f.A,{}),!e&&(0,O.jsx)(T.A,{}),(0,O.jsx)(b.A,{})]}),(0,O.jsxs)("div",{className:"googlesitekit-page-content",children:[(0,O.jsx)(h.A,{id:k.OT,slug:p.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,className:r()({"googlesitekit-widget-context--last":U===k.OT})}),(0,O.jsx)(h.A,{id:k.en,slug:p.CONTEXT_ENTITY_DASHBOARD_CONTENT,className:r()({"googlesitekit-widget-context--last":U===k.en})}),(0,O.jsx)(h.A,{id:k.Ej,slug:p.CONTEXT_ENTITY_DASHBOARD_SPEED,className:r()({"googlesitekit-widget-context--last":U===k.Ej})}),(0,O.jsx)(h.A,{id:k.Gw,slug:p.CONTEXT_ENTITY_DASHBOARD_MONETIZATION,className:r()({"googlesitekit-widget-context--last":U===k.Gw})}),(0,O.jsx)(w.A,{})]}),t&&(0,O.jsx)(D.A,{})]})};var z=i(12701);(0,n.A)(()=>{const e=document.getElementById("js-googlesitekit-entity-dashboard");if(e){const{viewOnly:t}=e.dataset;(0,s.render)((0,O.jsx)(z.A,{viewContext:t?k.Is:k.f7,children:(0,O.jsx)(L,{})}),e)}})},53137:(e,t,i)=>{i.d(t,{FQ:()=>o,He:()=>a,bI:()=>r,rq:()=>s,ui:()=>n});const n="warning-notification-gtg",s="gtg-setup-cta",o={ERROR_HIGH:30,ERROR_LOW:60,WARNING:100,INFO:150,SETUP_CTA_HIGH:150,SETUP_CTA_LOW:200},r={HEADER:"notification-area-header",DASHBOARD_TOP:"notification-area-dashboard-top",OVERLAYS:"notification-area-overlays"},a={DEFAULT:"default",SETUP_CTAS:"setup-ctas"}},54312:(e,t,i)=>{i.d(t,{A:()=>GenericErrorHandlerActions});var n=i(62688),s=i.n(n),o=i(82871),r=i(20898),a=i(38021),l=i.n(a),c=i(63696),g=i(12417),d=i(1027),u=i(65123),p=i(49383),h=i(62540);function ReportErrorButton({message:e,componentStack:t}){const[i,n]=(0,c.useState)(!1);return(0,h.jsx)(p.Button,{"aria-label":i?(0,o.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){l()(`\`\`\`\n${e}\n${t}\n\`\`\``),n(!0)},trailingIcon:(0,h.jsx)(g.A,{className:"mdc-button__icon",icon:i?d.A:u.A}),children:i?(0,o.__)("Copied to clipboard","google-site-kit"):(0,o.__)("Copy error contents","google-site-kit")})}ReportErrorButton.propTypes={message:s().string,componentStack:s().string};const m=ReportErrorButton;function GenericErrorHandlerActions({message:e,componentStack:t}){return(0,h.jsxs)("div",{className:"googlesitekit-generic-error-handler-actions",children:[(0,h.jsx)(m,{message:e,componentStack:t}),(0,h.jsx)(r.A,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0,children:(0,o.__)("Report this problem","google-site-kit")})]})}GenericErrorHandlerActions.propTypes={message:s().string,componentStack:s().string}},54419:e=>{e.exports=googlesitekit.api},55527:(e,t,i)=>{i.d(t,{$z:()=>s.$,CR:()=>a.C,Cf:()=>l.DialogContent,Es:()=>l.DialogFooter,Nv:()=>n.N,P3:()=>r.P,Si:()=>o.S,fI:()=>g.fI,fh:()=>g.fh,lG:()=>c.a,xA:()=>g.xA});var n=i(91046),s=i(3412),o=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:()=>F,GM:()=>N,GT:()=>k,HA:()=>z,HD:()=>u,HP:()=>E,J5:()=>B,JF:()=>T,JK:()=>f,Ml:()=>m,SS:()=>R,UF:()=>g,UY:()=>G,Vl:()=>O,W6:()=>V,Xq:()=>I,YQ:()=>C,Yw:()=>U,dV:()=>M,dX:()=>S,ej:()=>c,em:()=>o,ep:()=>v,fu:()=>x,gC:()=>y,hz:()=>h,jx:()=>d,lV:()=>l,nH:()=>P,oR:()=>n,od:()=>a,p3:()=>b,pG:()=>j,qv:()=>s,qy:()=>w,t1:()=>Y,t7:()=>W,tB:()=>_,tK:()=>H,u_:()=>L});const n="core/user",s="connected_url_mismatch",o="__global",r="temporary_persist_permission_error",a="adblocker_active",l=["weekly","monthly","quarterly"],c="googlesitekit_authenticate",g="googlesitekit_setup",d="googlesitekit_view_dashboard",u="googlesitekit_manage_options",p="googlesitekit_read_shared_module_data",h="googlesitekit_manage_module_sharing_options",m="googlesitekit_delegate_module_sharing_management",f="googlesitekit_update_plugins",b="kmAnalyticsAdSenseTopEarningContent",k="kmAnalyticsEngagedTrafficSource",y="kmAnalyticsLeastEngagingPages",x="kmAnalyticsNewVisitors",_="kmAnalyticsPopularAuthors",v="kmAnalyticsPopularContent",j="kmAnalyticsPopularProducts",S="kmAnalyticsReturningVisitors",N="kmAnalyticsTopCities",A="kmAnalyticsTopCitiesDrivingLeads",I="kmAnalyticsTopCitiesDrivingAddToCart",T="kmAnalyticsTopCitiesDrivingPurchases",C="kmAnalyticsTopDeviceDrivingPurchases",w="kmAnalyticsTopConvertingTrafficSource",M="kmAnalyticsTopCountries",E="kmAnalyticsTopPagesDrivingLeads",D="kmAnalyticsTopRecentTrendingPages",R="kmAnalyticsTopTrafficSource",O="kmAnalyticsTopTrafficSourceDrivingAddToCart",L="kmAnalyticsTopTrafficSourceDrivingLeads",z="kmAnalyticsTopTrafficSourceDrivingPurchases",P="kmAnalyticsPagesPerVisit",B="kmAnalyticsVisitLength",H="kmAnalyticsTopReturningVisitorPages",W="kmSearchConsolePopularKeywords",U="kmAnalyticsVisitsPerVisitor",G="kmAnalyticsMostEngagingPages",Y="kmAnalyticsTopCategories",V=[b,k,y,x,_,v,j,S,Y,N,A,I,T,C,w,M,D,R,O,P,B,H,U,G,Y],F=[...V,W]},59020:(e,t,i)=>{i.d(t,{A:()=>Tooltip});var n=i(62688),s=i.n(n),o=i(4452),r=i.n(o),a=i(90295),l=i(63696),c=i(62540);function Tooltip({children:e,popperClassName:t,tooltipClassName:i,onOpen:n,onClose:s,...o}){const g=(0,l.useRef)(!1),d=n?()=>{g.current||(g.current=!0,n?.())}:void 0,u=n?()=>{g.current=!1,s?.()}:s;return(0,c.jsx)(a.Ay,{classes:{popper:r()("googlesitekit-tooltip-popper",t),tooltip:r()("googlesitekit-tooltip",i)},onOpen:d,onClose:u,...o,arrow:!0,children:e})}Tooltip.propTypes={children:s().node,popperClassName:s().string,tooltipClassName:s().string,onOpen:s().func,onClose:s().func}},59323:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(62688),s=i.n(n),o=i(32947),r=i(15167),a=i(3714),l=i(62540);function c({type:e=a.SZ,size:t,children:i,...n}){const s=(0,o.dv)();return(0,l.jsx)(r.A,{as:"p",type:e,size:t||(s===o.mp?a.Kk:a.Yw),...n,children:i})}c.propTypes={type:s().oneOf(a.tT),size:s().oneOf(a.oJ)}},60072:(e,t,i)=>{i.d(t,{A:()=>DashboardSharingSettingsButton});var n=i(82871),s=i(63696),o=i(50539),r=i(49383),a=i(69195),l=i(77766),c=i(12850),g=i(7081),d=i(93896),u=i(72455),p=i(24288),h=i(81042),m=i(31589),f=i(78174),b=i(4452),k=i.n(b),y=i(13606),x=i(19266),_=i(12417),v=i(82218),j=i(37226),S=i(32947),N=i(14007),A=i(55527),I=i(20898),T=i(87251),C=i(62688),w=i.n(C),M=i(62540);function Notice(){const e=(0,o.useSelect)(e=>e(j.i).canSubmitSharingChanges()),t=(0,o.useSelect)(e=>e(j.i).haveSharingSettingsExpanded("management")),i=(0,o.useSelect)(e=>e(j.i).haveSharingSettingsExpanded("sharedRoles"));return(0,M.jsxs)("p",{className:"googlesitekit-dashboard-sharing-settings__notice",children:[t&&e&&(0,M.jsx)("span",{children:(0,y.A)((0,n.__)("By clicking <strong>Apply</strong>, you will give other authenticated admins of your site permission to manage view-only access to Site Kit dashboard data from the chosen Google service","google-site-kit"),{strong:(0,M.jsx)("strong",{})})}),!t&&e&&i&&(0,M.jsx)("span",{children:(0,y.A)((0,n.__)("By clicking <strong>Apply</strong>, youre granting the selected roles view-only access to data from the Google services youve connected via your account","google-site-kit"),{strong:(0,M.jsx)("strong",{})})})]})}var E=i(77967);function Footer({closeDialog:e,openResetDialog:t}){const i=(0,l.A)(),[a,d]=(0,s.useState)(null),[u,h]=(0,s.useState)(!1),m=(0,o.useSelect)(e=>e(j.i).canSubmitSharingChanges()),f=(0,o.useSelect)(e=>e(j.i).isDoingSubmitSharingChanges()),b=(0,o.useSelect)(e=>e(j.i).haveSharingSettingsExpanded("management")),k=(0,o.useSelect)(e=>e(j.i).haveSharingSettingsExpanded("sharedRoles")),y=(0,o.useSelect)(e=>e(j.i).haveSharingSettingsUpdated()),x=(0,o.useSelect)(e=>!!e(g.n).getValue(p.tm)),_=(0,o.useSelect)(e=>!!e(g.n).getValue(p.hk)),{resetSharingSettings:v,saveSharingSettings:S}=(0,o.useDispatch)(j.i),{setValue:N}=(0,o.useDispatch)(g.n),A=(0,s.useCallback)(async()=>{d(null);const{error:t}=await S();t?d(t.message):((0,c.sx)(`${i}_sharing`,"settings_confirm"),N(p.zP,void 0),e())},[i,S,N,e]),T=(0,s.useCallback)(async()=>{d(null),h(!0);const{error:t}=await v();t?d(t.message):(h(!1),e())},[e,v]),C=(0,s.useCallback)(()=>{(0,c.sx)(`${i}_sharing`,"settings_cancel"),e()},[e,i]),w=a||b||k;return(0,M.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer",children:[w&&(0,M.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-notice",children:[a&&(0,M.jsx)(E.A,{message:a}),!a&&(0,M.jsx)(Notice,{})]}),(0,M.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions",children:[y&&x&&!w&&(0,M.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions-left",children:(0,M.jsx)(I.A,{onClick:t,className:"googlesitekit-reset-sharing-permissions-button",danger:!0,children:(0,n.__)("Reset sharing permissions","google-site-kit")})}),(0,M.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions-right",children:[(0,M.jsx)(r.Button,{onClick:C,tertiary:!0,children:(0,n.__)("Cancel","google-site-kit")}),x&&(0,M.jsx)(r.SpinnerButton,{onClick:A,disabled:f||!m,isSaving:f,children:(0,n.__)("Apply","google-site-kit")}),_&&(0,M.jsx)(r.SpinnerButton,{onClick:T,disabled:u,isSaving:u,danger:!0,children:(0,n.__)("Reset","google-site-kit")})]})]})]})}Footer.propTypes={closeDialog:w().func.isRequired,openResetDialog:w().func.isRequired};var D=i(15167);function DashboardSharingDialog(){const[e,t]=(0,s.useState)(!1),i=(0,s.useRef)(void 0),l=(0,S.dv)(),{y:c}=(0,h.A)(),{setValue:u}=(0,o.useDispatch)(g.n),{rollbackSharingSettings:b}=(0,o.useDispatch)(j.i),C=(0,o.useSelect)(e=>!!e(g.n).getValue(p.tm)),w=(0,o.useSelect)(e=>!!e(g.n).getValue(p.hk)),E=(0,o.useSelect)(e=>e(g.n).getValue(p.zP)),R=(0,o.useSelect)(e=>e(j.i).haveSharingSettingsChanged()),O=(0,o.useSelect)(e=>e(d.O4).getDocumentationLinkURL("dashboard-sharing"));(0,s.useEffect)(()=>{if(e){const e=document.querySelector(".googlesitekit-reset-sharing-permissions-button");e&&e.focus(),t(!1)}},[e]);const L={};l===S.mp&&(L.top=(c<46?46-c:0)+"px",L.height=`calc(100% - 46px + ${c<46?c:46}px)`),(0,s.useEffect)(()=>{!C&&R&&b()},[C,R,b]);const z=(0,s.useCallback)(()=>{u(p.tm,!0)},[u]),P=(0,s.useCallback)(()=>{u(p.tm,!1),u(p.zP,void 0)},[u]),B=(0,s.useCallback)(()=>{P(),u(p.hk,!0)},[P,u]),H=(0,s.useCallback)(()=>{u(p.hk,!1),z(),t(!0)},[z,u]),W=(0,s.useCallback)(()=>{w?H():P()},[H,P,w]),U=(0,s.useCallback)(e=>{w&&e.target.classList.contains("mdc-dialog__scrim")&&H()},[w,H]);return(0,m.A)("click",U),(0,f.A)(e=>w&&x._f===e.keyCode,H),(0,M.jsx)(N.A,{children:(0,M.jsxs)(A.lG,{open:C||w,onClose:W,className:"googlesitekit-dialog googlesitekit-sharing-settings-dialog",style:L,escapeKeyAction:void 0!==E||w?"":"close",scrimClickAction:void 0!==E||w?"":"close",children:[(0,M.jsx)("div",{className:"googlesitekit-dialog__back-wrapper","aria-hidden":l!==S.mp,ref:i,children:(0,M.jsx)(r.Button,{"aria-label":(0,n.__)("Back","google-site-kit"),className:"googlesitekit-dialog__back",onClick:W,children:(0,M.jsx)(_.A,{icon:v.A})})}),(0,M.jsxs)(A.Cf,{className:"googlesitekit-dialog__content",children:[(0,M.jsxs)("div",{className:"googlesitekit-dialog__header",children:[C&&(0,M.jsx)("div",{className:"googlesitekit-dialog__header-icon","aria-hidden":l===S.mp,children:(0,M.jsx)("span",{children:(0,M.jsx)(a.A,{width:20,height:20})})}),(0,M.jsxs)("div",{className:"googlesitekit-dialog__header-titles",children:[(0,M.jsxs)(D.A,{as:"h2",className:"googlesitekit-dialog__title",size:"medium",type:"headline",children:[C&&(0,M.jsx)("span",{children:(0,n.__)("Dashboard sharing & permissions","google-site-kit")}),w&&(0,M.jsx)("span",{children:(0,n.__)("Reset dashboard sharing permissions","google-site-kit")})]}),(0,M.jsxs)("p",{className:k()("googlesitekit-dialog__subtitle",{"googlesitekit-dialog__subtitle--emphasis":w}),children:[C&&(0,M.jsx)("span",{children:(0,y.A)((0,n.__)("Share a view-only version of your Site Kit dashboard with other WordPress roles. <a>Learn more</a>","google-site-kit"),{a:(0,M.jsx)(I.A,{"aria-label":(0,n.__)("Learn more about dashboard sharing","google-site-kit"),href:O,external:!0})})}),w&&(0,M.jsx)("span",{children:(0,n.__)("Warning: Resetting these permissions will remove view-only access for all users. Are you sure you want to reset all dashboard sharing permissions?","google-site-kit")})]})]})]}),C&&(0,M.jsx)("div",{className:"googlesitekit-dialog__main",children:(0,M.jsx)(T.A,{})})]}),(0,M.jsx)(A.Es,{className:"googlesitekit-dialog__footer",children:(0,M.jsx)(Footer,{closeDialog:W,openResetDialog:B})})]})})}var R=i(27333);function DashboardSharingSettingsButton(){const e=(0,l.A)(),{setValue:t}=(0,o.useDispatch)(g.n),i=(0,o.useSelect)(e=>e(d.O4).hasMultipleAdmins()),h=(0,R.A)(u.CV,"isAutoCreatingCustomDimensionsForAudience"),m=(0,s.useCallback)(()=>{(0,c.sx)(`${e}_headerbar`,"open_sharing",i?"advanced":"simple"),t(p.tm,!0)},[t,e,i]);return(0,M.jsxs)(s.Fragment,{children:[(0,M.jsx)(r.Button,{"aria-label":(0,n.__)("Open sharing settings","google-site-kit"),className:"googlesitekit-sharing-settings__button googlesitekit-header__dropdown googlesitekit-border-radius-round googlesitekit-button-icon",onClick:m,icon:(0,M.jsx)(a.A,{width:20,height:20}),tooltipEnterDelayInMS:500,disabled:h}),(0,M.jsx)(DashboardSharingDialog,{})]})}},60592:(e,t,i)=>{i.d(t,{A:()=>TourTooltip});var n=i(28056),s=i.n(n),o=i(4452),r=i.n(o),a=i(62688),l=i.n(a),c=i(82871),g=i(49383);var d=i(72545),u=i(15167),p=i(62540);function TourTooltip({backProps:e,closeProps:t,index:i,primaryProps:o,size:a,step:l,tooltipProps:h}){const m=a>1?function(e){return new Array(null!=e?e:0).fill().map((e,t)=>t)}(a):[];function f(e){return r()("googlesitekit-tooltip-indicator",{active:e===i})}return(0,p.jsx)("div",{className:r()("googlesitekit-tour-tooltip",l.className),...h,children:(0,p.jsxs)(s(),{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:m.map(e=>(0,p.jsx)("li",{className:f(e)},`indicator-${e}`))}),(0,p.jsxs)("div",{className:"googlesitekit-tooltip-buttons",children:[0!==i&&(0,p.jsx)(g.Button,{className:"googlesitekit-tooltip-button",text:!0,...e,children:e.title}),l.cta,o.title&&(0,p.jsx)(g.Button,{className:"googlesitekit-tooltip-button",text:!0,...o,children:o.title})]})]}),(0,p.jsx)(g.Button,{className:"googlesitekit-tooltip-close",icon:(0,p.jsx)(d.A,{width:"14",height:"14"}),onClick:t.onClick,"aria-label":(0,c.__)("Close","google-site-kit"),text:!0,hideTooltipTitle:!0})]})})}TourTooltip.propTypes={backProps:l().object.isRequired,closeProps:l().object.isRequired,index:l().number.isRequired,isLastStep:l().bool.isRequired,primaryProps:l().object.isRequired,size:l().number.isRequired,step:l().shape({content:l().node,title:l().node,cta:l().oneOfType([l().element,l().bool]),className:l().string}).isRequired,tooltipProps:l().object.isRequired}},61991:(e,t,i)=>{i.d(t,{Ay:()=>r,Kq:()=>o});const n=(0,i(63696).createContext)(""),{Consumer:s,Provider:o}=n,r=n},63972:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,s=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 9"},e),n||(n=s.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M1 3.838 4.106 7 10 1"})))},64067:(e,t,i)=>{i.d(t,{P9:()=>b,k:()=>h,mR:()=>f});var n=i(32091),s=i.n(n),o=i(17243),r=i(50539),a=i.n(r),l=i(21134),c=i(12850);const g="CREATE_SNAPSHOT",d="DELETE_SNAPSHOT",u="RESTORE_SNAPSHOT",p="SET_STATE_FROM_SNAPSHOT";function h(e,{keysToSnapshot:t}={}){s()(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(),s=t?.length>0?(0,o.pick)(n,t):n;return(0,l.SO)(`datastore::cache::${e}`,s)}),[u]:()=>(0,l.Gq)(`datastore::cache::${e}`,c.Jg)};return{initialState:i,actions:n,controls:a,reducer:function(e=i,{type:n,payload:s}){if(n===p){const{snapshot:i}=s,{error:n,...o}=i;return t?.length>0?{...e,...o}:o}return e}}}function m(e=a()){return Object.values(e.stores).filter(e=>Object.keys(e.getActions()).includes("restoreSnapshot"))}function f(e=a()){return Promise.all(m(e).map(e=>e.getActions().createSnapshot()))}function b(e=a()){return Promise.all(m(e).map(e=>e.getActions().restoreSnapshot()))}},65214:(e,t,i)=>{i.d(t,{G:()=>s,t:()=>n});const n=new Set(i.g?._googlesitekitBaseData?.enabledFeatures||[]);function s(e,t=n){return t instanceof Set&&t.has(e)}},65311:(e,t,i)=>{i.d(t,{c:()=>r});var n=i(82871),s=i(97398),o=i(99897);function r(e="",t={}){const{slug:i="",name:r="",owner:a={}}=t||{};if(!i||!r)return e;let l="",c="";return o.L1===i?e.match(/account/i)?l=(0,n.__)("Your Google account does not have sufficient permissions for this Analytics account, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/property/i)?l=(0,n.__)("Your Google account does not have sufficient permissions for this Analytics property, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/view/i)&&(l=(0,n.__)("Your Google account does not have sufficient permissions for this Analytics view, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit")):s.Y===i&&(l=(0,n.__)("Your Google account does not have sufficient permissions for this Search Console property, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit")),l||(l=(0,n.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,n.__)("Your Google account does not have sufficient permissions to access %s data, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"),r)),a&&a.login&&(c=(0,n.sprintf)(/* translators: %s: owner name */ /* translators: %s: owner name */
(0,n.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),a.login)),c||(c=(0,n.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),`${l} ${c}`}},66201:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(31589),s=i(40960),o=i(42926),r=i(63696),a=i(50539),l=i(7081);function c(){const{setIsOnline:e}=(0,a.useDispatch)(l.n),t=(0,a.useSelect)(e=>e(l.n).getIsOnline()),i=(0,r.useCallback)(async()=>{if(navigator.onLine){try{await(0,o.A)({path:"/google-site-kit/v1/"})}catch(t){if("fetch_error"===t?.code)return void e(!1)}e(!0)}else e(!1)},[e]);(0,n.A)("online",i),(0,n.A)("offline",i),(0,s.A)(i,t?12e4:15e3)}},66847:(e,t,i)=>{i.d(t,{A:()=>ScrollEffect});var n=i(81042),s=i(63696);function ScrollEffect(){return function(){const{y:e}=(0,n.A)(),[t,o]=(0,s.useState)(!1),r="googlesitekit-plugin--has-scrolled";(0,s.useEffect)(()=>{t?i.g.document.body.classList.add(r):i.g.document.body.classList.remove(r)},[t]),e>0&&!t?o(!0):0===e&&t&&o(!1)}(),null}},67150:(e,t,i)=>{i.d(t,{G:()=>c,HY:()=>d,SG:()=>g,db:()=>s,e4:()=>p,vl:()=>u});i(17243);var n=i(82871);const s="missing_required_scopes",o="insufficientPermissions",r="forbidden",a="internal_server_error",l="invalid_json";function c(e){return e?.code===s}function g(e){return[o,r].includes(e?.data?.reason)}function d(e){return!!e?.data?.reconnectURL}function u(e,t){return!(!t?.storeName||g(e)||c(e)||d(e))}function p(e){return e?.code===a?(0,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}},68869:(e,t,i)=>{i.d(t,{Ay:()=>r});var n=i(6732);const{Consumer:s,Provider:o}=n.A,r=o},69195:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,s=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),n||(n=s.createElement("path",{fill:"currentColor",d:"M16.666 7.5V5H15v2.5h-2.5v1.666H15v2.5h1.666v-2.5h2.5V7.5zM7.5 10a3.332 3.332 0 1 0 0-6.667A3.332 3.332 0 1 0 7.5 10m0-5c.916 0 1.666.75 1.666 1.666 0 .917-.75 1.667-1.666 1.667-.917 0-1.667-.75-1.667-1.667C5.833 5.75 6.583 5 7.5 5m5.325 7.133c-1.4-.717-3.217-1.3-5.325-1.3s-3.925.583-5.325 1.3A2.48 2.48 0 0 0 .833 14.35v2.316h13.333V14.35c0-.934-.508-1.792-1.341-2.217M12.5 15h-10v-.65c0-.317.166-.6.433-.734A10.1 10.1 0 0 1 7.5 12.5c1.975 0 3.575.608 4.566 1.116a.81.81 0 0 1 .434.734z"})))},71423:(e,t,i)=>{i.d(t,{$:()=>o,D:()=>s});var n=i(24558);const s="core/notifications",o=[n.uR,n.jU,n.f7,n.Ax,n.Is]},72455:(e,t,i)=>{i.d(t,{CV:()=>I,Cu:()=>v,K9:()=>n,Kr:()=>m,Lf:()=>p,Oh:()=>r,PW:()=>A,Rx:()=>E,S9:()=>f,TQ:()=>d,Vt:()=>w,Wl:()=>x,ZC:()=>s,ZY:()=>a,_p:()=>M,ag:()=>h,aj:()=>u,bz:()=>T,dq:()=>C,f2:()=>c,fB:()=>N,fV:()=>S,iB:()=>g,kc:()=>l,mo:()=>k,nc:()=>j,rm:()=>_,to:()=>o,wo:()=>b,yn:()=>y});const n="modules/analytics-4",s="account_create",o="property_create",r="webdatastream_create",a="analyticsSetup",l=10,c=1,g="https://www.googleapis.com/auth/tagmanager.readonly",d="enhanced-measurement-form",u="enhanced-measurement-enabled",p="enhanced-measurement-should-dismiss-activation-banner",h="analyticsAccountCreate",m="analyticsCustomDimensionsCreate",f="https://www.googleapis.com/auth/analytics.edit",b="dashboardAllTrafficWidgetDimensionName",k="dashboardAllTrafficWidgetDimensionColor",y="dashboardAllTrafficWidgetDimensionValue",x="dashboardAllTrafficWidgetActiveRowIndex",_="dashboardAllTrafficWidgetLoaded",v={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"}},j={ADD_TO_CART:"add_to_cart",PURCHASE:"purchase",SUBMIT_LEAD_FORM:"submit_lead_form",GENERATE_LEAD:"generate_lead",CONTACT:"contact"},S=[j.CONTACT,j.GENERATE_LEAD,j.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",I="audienceTileCustomDimensionCreate",T="audience-selection-panel-expirable-new-badge-",C="audience",w="customDimension",M="property",E=[C,w,M]},72545:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,s=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},e),n||(n=s.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"})))},73549:(e,t,i)=>{i.d(t,{A:()=>ReportZero});var n=i(62688),s=i.n(n),o=i(82871),r=i(50539),a=i(37226),l=i(4884),c=i(62540);function ReportZero({moduleSlug:e}){const t=(0,r.useSelect)(t=>t(a.i).getModule(e));return(0,c.jsx)(l.A,{title:(0,o.sprintf)(/* translators: %s: Module name */ /* translators: %s: Module name */
(0,o.__)("%s Gathering Data","google-site-kit"),t?.name),description:(0,o.sprintf)(/* translators: %s: Module name */ /* translators: %s: Module name */
(0,o.__)("%s data is not yet available, please check back later","google-site-kit"),t?.name)})}ReportZero.propTypes={moduleSlug:s().string.isRequired}},73589:(e,t,i)=>{i.d(t,{CX:()=>s,Py:()=>r,SM:()=>n,kj:()=>o});const n="adsense-connect-cta",s="adsense-connect-cta-tooltip-state",o="adsense-ga4-top-earnings-notice",r="adsense"},73874:(e,t,i)=>{i.d(t,{Ay:()=>a,Oo:()=>o,oE:()=>r});var n=i(24558),s=i(77766);const o=n.jU,r=n.f7;function a(){const e=(0,s.A)();return e===n.jU||e===n.Ax?o: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),s=i(56805),o=i(78913),r=i(35470),a=i(63737),l=i(44319),c=i(31170),g=i(30043),d=i(66293),u=i(1102),p=i(47121),h=i(97241);const m=(0,n.I)({},i.g.wp?.data);m.combineStores=p.o3,m.commonActions=p.jU,m.commonControls=p._5,m.commonStore=p.x0,m.createReducer=function(e){return(0,h.Ay)(e)},m.useInViewSelect=u.w,m.controls=s.n,m.createRegistryControl=o.b,m.createRegistrySelector=o.N,m.useSelect=r.A,m.useDispatch=a.A,m.useRegistry=l.A,m.withSelect=c.A,m.withDispatch=g.A,m.RegistryProvider=d.Ay;const f=m;void 0===i.g.googlesitekit&&(i.g.googlesitekit={}),i.g.googlesitekit.data=f},74995:(e,t,i)=>{i.d(t,{A:()=>Notifications});var n=i(62688),s=i.n(n),o=i(50539),r=i(77766),a=i(71423),l=i(53137),c=i(50532),g=i.n(c),d=i(43569),u=i(62540);const p=g()(e=>({id:e,Notification:h(e)(d.A)}));function h(e){return t=>{function WithNotificationID(i){return(0,u.jsx)(t,{...i,id:e})}return WithNotificationID.displayName="WithNotificationID",(t.displayName||t.name)&&(WithNotificationID.displayName+=`(${t.displayName||t.name})`),WithNotificationID}}function Notifications({areaSlug:e,groupID:t=l.He.DEFAULT}){const i=(0,r.A)(),n=(0,o.useSelect)(e=>e(a.D).getQueuedNotifications(i,t));if(void 0===n?.[0]||n?.[0]?.areaSlug!==e)return null;const{id:s,Component:c}=n[0],g={...p(s)};return(0,u.jsx)(c,{...g})}Notifications.propTypes={viewContext:s().string,areaSlug:s().string}},75487:(e,t,i)=>{i.d(t,{fh:()=>Cell,xA:()=>u,fI:()=>g});var n=i(62688),s=i.n(n),o=i(4452),r=i.n(o),a=i(62540);function Cell(e){const{className:t,alignTop:i,alignMiddle:n,alignBottom:s,alignRight:o,alignLeft:l,smAlignRight:c,mdAlignRight:g,lgAlignRight:d,smSize:u,smStart:p,smOrder:h,mdSize:m,mdStart:f,mdOrder:b,lgSize:k,lgStart:y,lgOrder:x,size:_,children:v,...j}=e;return(0,a.jsx)("div",{...j,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":s,"mdc-layout-grid__cell--align-right":o,"mdc-layout-grid__cell--align-left":l,"mdc-layout-grid__cell--align-right-phone":c,"mdc-layout-grid__cell--align-right-tablet":g,"mdc-layout-grid__cell--align-right-desktop":d,[`mdc-layout-grid__cell--span-${_}`]:12>=_&&_>0,[`mdc-layout-grid__cell--span-${k}-desktop`]:12>=k&&k>0,[`mdc-layout-grid__cell--start-${y}-desktop`]:12>=y&&y>0,[`mdc-layout-grid__cell--order-${x}-desktop`]:12>=x&&x>0,[`mdc-layout-grid__cell--span-${m}-tablet`]:8>=m&&m>0,[`mdc-layout-grid__cell--start-${f}-tablet`]:8>=f&&f>0,[`mdc-layout-grid__cell--order-${b}-tablet`]:8>=b&&b>0,[`mdc-layout-grid__cell--span-${u}-phone`]:4>=u&&u>0,[`mdc-layout-grid__cell--start-${p}-phone`]:4>=p&&p>0,[`mdc-layout-grid__cell--order-${h}-phone`]:4>=h&&h>0}),children:v})}Cell.propTypes={smSize:s().number,smStart:s().number,smOrder:s().number,mdSize:s().number,mdStart:s().number,mdOrder:s().number,lgSize:s().number,lgStart:s().number,lgOrder:s().number,size:s().number,alignTop:s().bool,alignMiddle:s().bool,alignBottom:s().bool,alignRight:s().bool,alignLeft:s().bool,smAlignRight:s().bool,mdAlignRight:s().bool,lgAlignRight:s().bool,className:s().string,children:s().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:s().string,children:s().node},c.defaultProps={className:""};const g=c,d=(0,l.forwardRef)(({alignLeft:e,fill:t,className:i,children:n,collapsed:s,...o},l)=>(0,a.jsx)("div",{className:r()("mdc-layout-grid",i,{"mdc-layout-grid--align-left":e,"mdc-layout-grid--collapsed":s,"mdc-layout-grid--fill":t}),...o,ref:l,children:n}));d.displayName="Grid",d.propTypes={alignLeft:s().bool,fill:s().bool,className:s().string,collapsed:s().bool,children:s().node},d.defaultProps={className:""};const u=d},75949:(e,t,i)=>{i.d(t,{A:()=>C});var n,s=i(15844),o=i(79257),r=i(52684),a=i(63696),l=i(82871),c=i(50539),g=i(49383),d=i(16834);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},u.apply(null,arguments)}const p=e=>a.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),n||(n=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 9.5c0 1.407-.45 2.714-1.218 3.783L20.49 19 19 20.49l-5.717-5.708A6.46 6.46 0 0 1 9.5 16 6.5 6.5 0 1 1 16 9.5m-11 0C5 11.99 7.01 14 9.5 14S14 11.99 14 9.5 11.99 5 9.5 5 5 7.01 5 9.5",clipRule:"evenodd"})));var h;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},m.apply(null,arguments)}const f=e=>a.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),h||(h=a.createElement("path",{fill:"currentColor",d:"m15.833 5.342-1.175-1.175L10 8.825 5.342 4.167 4.167 5.342 8.825 10l-4.658 4.658 1.175 1.175L10 11.175l4.658 4.658 1.175-1.175L11.175 10z"})));var b=i(62688),k=i.n(b),y=i(82351),x=i(19266),_=i(54419);var v=i(93896),j=i(62540);function S(){}function PostSearcherAutoSuggest({id:e,match:t,setMatch:i,isLoading:n,showDropdown:s=!0,setIsLoading:o=S,setIsActive:r=S,autoFocus:g,setCanSubmit:d=S,onClose:u=S,placeholder:p=""}){const h=(0,a.useRef)(),[m,f]=(0,a.useState)(""),b=t?.title,k=function(e,t){const[i,n]=(0,a.useState)(e);return(0,a.useEffect)(()=>{const i=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(i)}},[e,t]),i}(m,m===b?0:200),[N,A]=(0,a.useState)([]),I=(0,l.__)("No results found","google-site-kit"),T=(0,c.useSelect)(e=>e(v.O4).getCurrentEntityTitle()),C=(0,a.useRef)(null),w=(0,a.useCallback)(()=>{r(!0)},[r]),M=(0,a.useCallback)(e=>{var t,i;e.relatedTarget?.classList.contains("autocomplete__option--result")||(r(!1),f(null!==(t=null!==(i=C.current)&&void 0!==i?i:T)&&void 0!==t?t:""))},[T,r]),E=(0,a.useCallback)(e=>{if(Array.isArray(N)&&e!==I){const t=N.find(t=>t.title.toLowerCase()===e.toLowerCase());t?(C.current=t.title,d(!0),i(t),f(t.title)):C.current=null}else C.current=null,d(!1)},[N,d,i,I,f]),D=(0,a.useCallback)(e=>{d(!1),f(e.target.value)},[d]);(0,a.useEffect)(()=>{if(""!==k&&k!==T&&k?.toLowerCase()!==b?.toLowerCase()){const e="undefined"==typeof AbortController?void 0:new AbortController;return async function(){o(!0);const t=(0,_.get)("core","search","entity-search",{query:encodeURIComponent(k)},{useCache:!1,signal:e?.signal});h.current=t;try{const e=await t;A(e)}catch{A(null)}finally{t===h.current&&o(!1)}}(),()=>e?.abort()}return()=>{}},[k,o,T,b]),(0,a.useEffect)(()=>{m||A([])},[m]),(0,a.useEffect)(()=>{T&&f(T)},[T]);const R=(0,a.useRef)(),O=(0,a.useCallback)(e=>{const t=R.current;switch(e.keyCode){case x.yZ:t?.value&&(e.preventDefault(),t.selectionStart=0,t.selectionEnd=0);break;case x.Kp:t?.value&&(e.preventDefault(),t.selectionStart=t.value.length,t.selectionEnd=t.value.length)}switch(e.keyCode){case x._f:u();break;case x.Fm:E(m)}},[u,E,m]);return(0,j.jsxs)(y.G3,{className:"autocomplete__wrapper",onSelect:E,children:[(0,j.jsx)(y.oK,{ref:R,id:e,className:"autocomplete__input autocomplete__input--default",type:"text",onBlur:M,onChange:D,onFocus:w,placeholder:p,onKeyDown:O,value:m,autoFocus:g}),!n&&s&&k!==T&&""!==k&&0===N?.length&&(0,j.jsx)(y.Nf,{portal:!1,children:(0,j.jsx)(y.ex,{className:"autocomplete__menu autocomplete__menu--inline",children:(0,j.jsx)(y.jO,{value:I,className:"autocomplete__option autocomplete__option--no-results"})})}),s&&""!==k&&k!==T&&N?.length>0&&(0,j.jsx)(y.Nf,{portal:!1,children:(0,j.jsx)(y.ex,{className:"autocomplete__menu autocomplete__menu--inline",children:N.map(({id:e,title:t})=>(0,j.jsx)(y.jO,{value:t,className:"autocomplete__option autocomplete__option--result"},e))})})]})}PostSearcherAutoSuggest.propTypes={id:k().string,match:k().object,setCanSubmit:k().func,setMatch:k().func,isLoading:k().bool,setIsLoading:k().func,onKeyDown:k().func,autoFocus:k().bool,placeholder:k().string};var N=i(45472),A=i(12850),I=i(73874),T=i(77766);const C=function EntitySearchInput(){const e=(0,r.A)(EntitySearchInput,"EntitySearchInput"),[t,i]=(0,a.useState)(!1),[n,u]=(0,a.useState)(!1),[h,m]=(0,a.useState)(!1),b=(0,T.A)(),k=(0,I.Ay)(),y=(0,a.useRef)(),x=(0,a.useCallback)(()=>{(0,A.sx)(`${b}_headerbar`,"open_urlsearch"),i(!0)},[b]),_=(0,a.useCallback)(()=>{(0,A.sx)(`${b}_headerbar`,"close_urlsearch"),i(!1)},[b]),[S,C]=(0,a.useState)({}),w=(0,c.useSelect)(e=>S?.url?e(v.O4).getAdminURL("googlesitekit-dashboard",{permaLink:S.url}):null),{navigateTo:M}=(0,c.useDispatch)(N.M);return(0,a.useEffect)(()=>{w&&(0,A.sx)(`${b}_headerbar_urlsearch`,"open_urldetails").finally(()=>{M(w)})},[w,M,b]),(0,s.A)(()=>{k===I.oE&&i(!0)}),(0,o.A)(()=>{t||y?.current?.focus()},[t]),t?(0,j.jsxs)("div",{className:"googlesitekit-entity-search googlesitekit-entity-search--is-open",children:[(0,j.jsx)(d.A,{children:(0,j.jsx)("label",{htmlFor:e,children:(0,l.__)("Page/URL Search","google-site-kit")})}),(0,j.jsx)(PostSearcherAutoSuggest,{id:e,match:S,setIsActive:m,setMatch:C,placeholder:(0,l.__)("Enter title or URL…","google-site-kit"),isLoading:n,setIsLoading:u,showDropdown:h,onClose:_,autoFocus:!0}),n&&h&&(0,j.jsx)(g.ProgressBar,{className:"googlesitekit-entity-search__loading",compress:!0}),(0,j.jsx)("div",{className:"googlesitekit-entity-search__actions",children:(0,j.jsx)(g.Button,{onClick:_,trailingIcon:(0,j.jsx)(f,{width:"30",height:"20"}),className:"googlesitekit-entity-search__close",title:(0,l.__)("Close","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0})})]}):(0,j.jsx)("div",{className:"googlesitekit-entity-search",children:(0,j.jsx)(g.Button,{className:"googlesitekit-border-radius-round--phone googlesitekit-button-icon--phone",onClick:x,ref:y,title:(0,l.__)("Search","google-site-kit"),trailingIcon:(0,j.jsx)(p,{width:"20",height:"20"}),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:(0,l.__)("URL Search","google-site-kit")})})}},77513:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(62688),s=i.n(n),o=i(90007),r=i(12850),a=i(62540);function NotificationFromServer({id:e,titleIcon:t,title:i,content:n,ctaLabel:s,ctaTarget:l,ctaURL:c,dismissible:g,dismissLabel:d,learnMoreLabel:u,learnMoreURL:p,onCTAClick:h,onDismissClick:m,gaTrackingEventArgs:f}){const b={expiresInSeconds:r.Jg};return(0,a.jsx)(o.A,{notificationID:e,type:o.Q.WARNING,titleIcon:t||void 0,title:i,description:n,learnMoreLink:p?{label:u,href:p}:void 0,ctaButton:{label:s,href:c,target:l,onClick:h,dismissOptions:b},dismissButton:g?{label:d,onClick:m,dismissOptions:b}:void 0,gaTrackingEventArgs:f})}NotificationFromServer.propTypes={id:s().string.isRequired,title:s().string.isRequired,content:s().node,ctaLabel:s().string,ctaTarget:s().string,ctaURL:s().string,dismissible:s().bool,dismissLabel:s().string,learnMoreLabel:s().string,learnMoreURL:s().string,onCTAClick:s().func,onDismissClick:s().func,gaTrackingEventArgs:s().object};const l=NotificationFromServer},77766:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n=i(63696),s=i(61991);const __WEBPACK_DEFAULT_EXPORT__=function(){return(0,n.useContext)(s.Ay)}},77967:(e,t,i)=>{i.d(t,{A:()=>ErrorNotice});var n=i(62688),s=i.n(n),o=i(63696),r=i(82871),a=i(84024),l=i(50539),c=i(67150),g=i(80035),d=i(12850),u=i(62540);function ErrorNotice({className:e,error:t,hasButton:i=!1,storeName:n,message:s=t.message,noPrefix:p=!1,skipRetryMessage:h,hideIcon:m=!1}){const f=(0,l.useDispatch)(),b=(0,l.useSelect)(e=>n?e(n).getSelectorDataForError(t):null),k=(0,o.useCallback)(()=>{f(b.storeName).invalidateResolution(b.name,b.args)},[f,b]);if(!s||(0,c.G)(t))return null;const y=i&&(0,c.vl)(t,b);let x=s;i||h||(x=(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"),x)),p||(x=(0,r.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */
(0,r.__)("Error: %s","google-site-kit"),x));const _=t?.data?.reconnectURL;_&&(0,a.m)(_)&&(x=(0,r.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */ /* translators: 1: Original error message 2: Reconnect URL */
(0,r.__)('%1$s To fix this, <a href="%2$s">redo the plugin setup</a>.',"google-site-kit"),x,_));return(0,u.jsx)(g.A,{className:e,type:g.A.TYPES.ERROR,description:(0,u.jsx)("span",{dangerouslySetInnerHTML:(0,d.p9)(x,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:y?{label:(0,r.__)("Retry","google-site-kit"),onClick:k}:void 0,hideIcon:m})}ErrorNotice.propTypes={className:s().string,error:s().shape({message:s().string}),hasButton:s().bool,storeName:s().string,message:s().string,noPrefix:s().bool,skipRetryMessage:s().bool,hideIcon:s().bool}},78340:(e,t,i)=>{i.d(t,{s:()=>n});const n="core/forms"},79829:(e,t,i)=>{i.d(t,{Eo:()=>d,JK:()=>m,K5:()=>h,jq:()=>p,mK:()=>g});var n=i(17243),s=i(50532),o=i.n(s),r=i(82871);function a(e,t={}){const{formatUnit:i,formatDecimal:n}=function(e,t={}){const{hours:i,minutes:n,seconds:s}=l(e);return{hours:i,minutes:n,seconds:s,formatUnit(){const{unitDisplay:o="short",...a}=t,l={unitDisplay:o,...a,style:"unit"};return 0===e?p(s,{...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"),s?p(s,{...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"),s);if(0===e)return t;const o=(0,r.sprintf)(
// translators: %s: number of minutes with "m" as the abbreviated unit.
// translators: %s: number of minutes with "m" as the abbreviated unit.
(0,r.__)("%dm","google-site-kit"),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"),s?t:"",n?o:"",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:s="metric"}=i;return"metric"===s?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"===s?a(e,i):"durationISO"===s?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=o()(console.warn);function p(e,t={}){const{locale:i=m(),...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 s={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},o=["signDisplay","compactDisplay"],r={};for(const[e,t]of Object.entries(n))s[e]&&t===s[e]||o.includes(e)||(r[e]=t);try{return new Intl.NumberFormat(i,r).format(e)}catch{return new Intl.NumberFormat(i).format(e)}}function h(e,t={}){const{locale:i=m(),style:n="long",type:s="conjunction"}=t;if(Intl.ListFormat){return new Intl.ListFormat(i,{style:n,type:s}).format(e)}
/* translators: used between list items, there is a space after the comma. */const o=(0,r.__)(", ","google-site-kit");return e.join(o)}function m(e=i.g){const t=(0,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:()=>y});var n,s=i(62688),o=i.n(s),r=i(4452),a=i.n(r),l=i(63696),c=i(19793);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},g.apply(null,arguments)}const warning_notice=e=>l.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),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 h={[u.Q.NEW]:d.A,[u.Q.SUCCESS]:c.A,[u.Q.INFO]:warning_notice,[u.Q.WARNING]:warning_notice,[u.Q.ERROR]:warning_notice};function Icon({type:e}){const t=h[e]||warning_notice;return(0,p.jsx)(t,{width:24,height:24})}function Title({className:e,children:t}){return(0,p.jsx)("p",{className:a()("googlesitekit-notice__title",e),children:t})}function Description({className:e,children:t}){return(0,p.jsx)("p",{className:a()("googlesitekit-notice__description",e),children:t})}Icon.propTypes={type:o().oneOf(Object.values(u.Q))},Title.propTypes={className:o().string,children:o().node},Description.propTypes={className:o().string,children:o().node};var m=i(49383),f=i(83366);function CTAButton({label:e,disabled:t,inProgress:i,onClick:n,href:s,external:o,hideExternalIndicator:r}){let a;return o&&!r&&(a=(0,p.jsx)(f.A,{width:14,height:14})),(0,p.jsx)(m.SpinnerButton,{className:"googlesitekit-notice__cta",disabled:t,isSaving:i,onClick:n,href:s,target:o?"_blank":"_self",trailingIcon:a,children:e})}CTAButton.propTypes={label:o().string.isRequired,disabled:o().bool,inProgress:o().bool,onClick:o().func,href:o().string,external:o().bool,hideExternalIndicator:o().bool};var b=i(82871);function DismissButton({label:e=(0,b.__)("Got it","google-site-kit"),onClick:t,disabled:i}){return(0,p.jsx)(m.Button,{onClick:t,disabled:i,tertiary:!0,children:e})}DismissButton.propTypes={label:o().string,onClick:o().func.isRequired,disabled:o().bool};const k=(0,l.forwardRef)(({className:e,title:t,description:i,dismissButton:n,ctaButton:s,type:o=u.Q.INFO,children:r,hideIcon:l},c)=>(0,p.jsxs)("div",{ref:c,className:a()("googlesitekit-notice",`googlesitekit-notice--${o}`,e),children:[!l&&(0,p.jsx)("div",{className:"googlesitekit-notice__icon",children:(0,p.jsx)(Icon,{type:o})}),(0,p.jsxs)("div",{className:"googlesitekit-notice__content",children:[t&&(0,p.jsx)(Title,{children:t}),i&&(0,p.jsx)(Description,{children:i})]}),(n?.label||n?.onClick||s?.label&&(s?.onClick||s?.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}),s?.label&&(s?.onClick||s?.href)&&(0,p.jsx)(CTAButton,{label:s.label,onClick:s.onClick,inProgress:s.inProgress,disabled:s.disabled,href:s.href,external:s.external,hideExternalIndicator:s.hideExternalIndicator})]})]}));k.TYPES=u.Q,k.propTypes={className:o().string,title:o().oneOfType([o().string,o().object]),description:o().node,type:o().oneOf(Object.values(u.Q)),dismissButton:o().shape(DismissButton.propTypes),ctaButton:o().shape({...CTAButton.propTypes,label:o().string}),children:o().node,hideIcon:o().bool};const y=k},81520:(e,t,i)=>{function Null(){return null}i.d(t,{A:()=>Null})},82046:(e,t,i)=>{i.d(t,{C:()=>o,p:()=>s});var n=i(15210);function s(e,t={}){return{__html:n.O.sanitize(e,t)}}function o(e){const t="object"==typeof e?e.toString():e;return t?.replace?.(/\/+$/,"")}},82167:(e,t,i)=>{i.d(t,{A:()=>OptIn});var n=i(62688),s=i.n(n),o=i(4452),r=i.n(o),a=i(63696),l=i(13606),c=i(82871),g=i(50539),d=i(49383),u=i(58116),p=i(89318),h=i(20898),m=i(77766),f=i(50787),b=i(62540);function OptIn({id:e="googlesitekit-opt-in",name:t="optIn",className:i,trackEventCategory:n,alignLeftCheckbox:s=!1}){const[o,k]=(0,a.useState)(),y=(0,g.useSelect)(e=>e(u.oR).isTrackingEnabled()),x=(0,g.useSelect)(e=>e(u.oR).getErrorForAction("setTrackingEnabled",[!y])),{setTrackingEnabled:_}=(0,g.useDispatch)(u.oR),v=(0,m.A)(),j=(0,a.useCallback)(async e=>{const{response:t,error:i}=await _(e);i?k(y):((0,p.M9)(t.enabled),t.enabled&&(0,p.sx)(n||v,"tracking_optin"))},[y,_,n,v]);(0,a.useEffect)(()=>{void 0!==y&&void 0===o&&k(y)},[y,o]);const S=(0,f.d)(j,300),N=(0,a.useCallback)(e=>{const t=e.target.checked;k(t),S(t)},[S]);return(0,b.jsxs)("div",{className:r()("googlesitekit-opt-in",i),children:[(0,b.jsx)(d.Checkbox,{id:e,name:t,value:"1",checked:o,onChange:N,loading:void 0===y,alignLeft:s,children:(0,l.A)((0,c.__)("<span>Help us improve Site Kit by sharing anonymous usage data.</span> <span>All collected data is treated in accordance with the <a>Google Privacy Policy.</a></span>","google-site-kit"),{a:(0,b.jsx)(h.A,{href:"https://policies.google.com/privacy",external:!0},"link"),span:(0,b.jsx)("span",{})})}),x?.message&&(0,b.jsx)("div",{className:"googlesitekit-error-text",children:x?.message})]})}OptIn.propTypes={id:s().string,name:s().string,className:s().string,trackEventCategory:s().string,alignLeftCheckbox:s().bool}},82871:e=>{e.exports=googlesitekit.i18n},83366:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,s=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),n||(n=s.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"})))},84093:(e,t,i)=>{i.d(t,{A:()=>WidgetNull});var n=i(62688),s=i.n(n),o=i(47345),r=i(81520),a=i(62540);const l={};function WidgetNull({widgetSlug:e}){return(0,o.A)(e,r.A,l),(0,a.jsx)(r.A,{})}WidgetNull.propTypes={widgetSlug:s().string.isRequired,...r.A.propTypes}},84385:(e,t,i)=>{i.d(t,{A:()=>IconWrapper});var n=i(62688),s=i.n(n),o=i(62540);function IconWrapper({children:e,marginLeft:t,marginRight:i}){return(0,o.jsx)("span",{className:"googlesitekit-icon-wrapper",style:{marginLeft:t,marginRight:i},children:e})}IconWrapper.propTypes={children:s().node.isRequired,marginLeft:s().number,marginRight:s().number}},84754:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(63696),s=i(82871),o=i(50539),r=i(7081),a=i(80035),l=i(62540);const c=function OfflineNotification(){const[e,t]=(0,n.useState)(!1),i=(0,o.useSelect)(e=>e(r.n).getIsOnline());return(0,n.useEffect)(()=>{i&&e&&t(!1)},[i,e]),(0,l.jsx)("div",{"aria-live":"polite",children:!i&&!e&&(0,l.jsx)(a.A,{className:"googlesitekit-notice-snackbar--bottom-right",type:a.A.TYPES.WARNING,description:(0,s.__)("You are currently offline. Some features may not be available.","google-site-kit"),ctaButton:{label:(0,s.__)("OK, Got it!","google-site-kit"),onClick:()=>t(!0)}})})}},84826:(e,t,i)=>{i.d(t,{A:()=>HelpMenu});var n,s=i(62688),o=i.n(s),r=i(21795),a=i(63696),l=i(19266),c=i(82871),g=i(50539),d=i(49383);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},u.apply(null,arguments)}const p=e=>a.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),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 h=i(99235),m=i(12850),f=i(20898),b=i(77766),k=i(62540);function HelpMenuLink({children:e,href:t,gaEventLabel:i}){const n=(0,b.A)(),s=(0,a.useCallback)(async()=>{i&&await(0,m.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:s,external:!0,hideExternalIndicator:!0,children:e})})}HelpMenuLink.propTypes={children:o().node.isRequired,href:o().string.isRequired,gaEventLabel:o().string};const y=HelpMenuLink;var x=i(37226),_=i(93896),v=i(73589);function HelpMenu({children:e}){const[t,i]=(0,a.useState)(!1),n=(0,a.useRef)(),s=(0,b.A)();(0,r.A)(n,()=>i(!1)),(0,h.l)([l._f,l.wn],n,()=>i(!1));const o=(0,g.useSelect)(e=>e(x.i).isModuleActive(v.Py)),u=(0,a.useCallback)(()=>{t||(0,m.sx)(`${s}_headerbar`,"open_helpmenu"),i(!t)},[t,s]),f=(0,a.useCallback)(()=>{i(!1)},[]),j=(0,g.useSelect)(e=>e(_.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)(y,{gaEventLabel:"fix_common_issues",href:j,children:(0,c.__)("Fix common issues","google-site-kit")}),(0,k.jsx)(y,{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/",children:(0,c.__)("Read help docs","google-site-kit")}),(0,k.jsx)(y,{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/",children:(0,c.__)("Get support","google-site-kit")}),o&&(0,k.jsx)(y,{gaEventLabel:"adsense_help",href:"https://support.google.com/adsense/",children:(0,c.__)("Get help with AdSense","google-site-kit")})]})]})}HelpMenu.propTypes={children:o().node}},85149:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,s,o=i(63696);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},r.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-labelledby":"warning-title warning-desc",viewBox:"0 0 24 24"},e),n||(n=o.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),s||(s=o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})))},86134:(e,t,i)=>{i.d(t,{N$:()=>s,aO:()=>o,qB:()=>n});const n={BOXES:"boxes",COMPOSITE:"composite"},s={QUARTER:"quarter",HALF:"half",FULL:"full"},o="core/widgets"},87251:(e,t,i)=>{i.d(t,{A:()=>DashboardSharingSettings});var n=i(4452),s=i.n(n),o=i(82871),r=i(50539),a=i(62688),l=i.n(a),c=i(63696),g=i(10072),d=i(77766),u=i(37226),p=i(93896),h=i(7081),m=i(24288),f=i(12850),b=i(58116),k=i(13606),y=i(19266),x=i(49383),_=i(20898),v=i(69195),j=i(11253),S=i(99235),N=i(62540);const A=(0,o.__)("All","google-site-kit"),I=(0,c.forwardRef)(({moduleSlug:e,isLocked:t=!1},i)=>{const n=(0,d.A)(),a=(0,c.useRef)(),{setSharedRoles:l}=(0,r.useDispatch)(u.i),{setValue:g}=(0,r.useDispatch)(h.n),p=(0,r.useSelect)(e=>e(u.i).getShareableRoles()),b=(0,r.useSelect)(t=>t(u.i).getSharedRoles(e)),k=(0,r.useSelect)(e=>e(h.n).getValue(m.zP))===e;(0,S.l)([y._f],i,()=>{k&&g(m.zP,void 0)});const I=(0,r.useSelect)(t=>t(u.i).haveModuleSharingSettingsChanged(e,"sharedRoles")),T=(0,c.useCallback)(()=>{k?(g(m.zP,void 0),I&&(0,f.sx)(`${n}_sharing`,"change_shared_roles",e)):g(m.zP,e)},[k,I,e,g,n]);(0,c.useEffect)(()=>{a.current&&(k?a.current.firstChild.focus():a.current.focus())},[k]);const C=(0,c.useCallback)(({type:t,target:i,keyCode:n})=>{if("keydown"===t&&n!==y.Fm)return;const s=i.closest(".mdc-chip"),o=s?.dataset?.chipId;if(!o)return;let r;r="all"===o?b?.length===p?.length?[]:p.map(({id:e})=>e):null===b?[o]:b.includes(o)?b.filter(e=>e!==o):[...b,o],l(e,r)},[e,l,b,p]);return p?(0,N.jsxs)("div",{className:s()("googlesitekit-user-role-select",{"googlesitekit-user-role-select--open":k}),children:[!k&&(0,N.jsx)(x.Button,{"aria-label":(0,o.__)("Edit roles","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:T,icon:(0,N.jsx)(v.A,{width:23,height:23}),tabIndex:t?-1:void 0,ref:a}),!k&&b?.length>0&&(0,N.jsx)("span",{className:"googlesitekit-user-role-select__current-roles",children:function(){const e=p?.reduce((e,t)=>(b.includes(t.id)&&e.push(t.displayName),e),[]);return e.join(", ")}()}),!k&&(!b||0===b?.length)&&(0,N.jsx)("span",{className:"googlesitekit-user-role-select__add-roles",children:(0,N.jsx)(_.A,{onClick:T,tabIndex:t?-1:void 0,children:(0,o.__)("Add roles","google-site-kit")})}),k&&(0,N.jsxs)(c.Fragment,{children:[(0,N.jsxs)("div",{className:"googlesitekit-user-role-select__chipset",ref:a,children:[(0,N.jsx)(x.Chip,{id:"all",label:A,onClick:C,onKeyDown:C,selected:b?.length===p?.length,className:"googlesitekit-user-role-select__chip--all"}),p.map(({id:e,displayName:t},i)=>(0,N.jsx)(x.Chip,{id:e,label:t,onClick:C,onKeyDown:C,selected:b?.includes(e)},i))]}),(0,N.jsx)(x.Button,{"aria-label":(0,o.__)("Done editing roles","google-site-kit"),title:(0,o.__)("Done","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:T,icon:(0,N.jsx)(j.A,{width:18,height:18}),tabIndex:t?-1:void 0})]})]}):null});I.propTypes={moduleSlug:l().string.isRequired,isLocked:l().bool};const T=I;var C=i(80035);const w=(0,c.forwardRef)(({moduleSlug:e,isLocked:t,hasSharingCapability:i,recoverable:n,recoverableModuleSupportLink:s},r)=>i?(0,N.jsx)(T,{moduleSlug:e,isLocked:t,ref:r}):n?(0,N.jsx)(C.A,{className:"googlesitekit-notice--small",type:C.A.TYPES.WARNING,description:(0,k.A)((0,o.__)("Managing user required to manage view access. <a>Learn more</a>","google-site-kit"),{a:(0,N.jsx)(_.A,{href:s,external:!0,hideExternalIndicator:!0})}),hideIcon:!0}):(0,N.jsx)("p",{className:"googlesitekit-dashboard-sharing-settings__note",children:(0,o.__)("Contact managing user to manage view access","google-site-kit")}));w.propTypes={moduleSlug:l().string.isRequired,isLocked:l().bool.isRequired,hasSharingCapability:l().bool,recoverable:l().bool,recoverableModuleSupportLink:l().string},w.displayName="ModuleViewAccess";const M=w;var E=i(12417),D=i(51135);const R=[{value:"owner",label:(0,o.__)("Only me","google-site-kit")},{value:"all_admins",label:(0,o.__)("Any admin signed in with Google","google-site-kit")}];function ModuleManageAccess({sharedOwnershipModule:e,hasOwnedModule:t,ownerUsername:i,hasSharingCapability:n,manageViewAccess:s,onChange:r}){return e?(0,N.jsxs)("p",{className:"googlesitekit-dashboard-sharing-settings__note",children:[(0,N.jsx)("span",{children:(0,o.__)("Any admin signed in with Google","google-site-kit")}),(0,N.jsx)(x.Tooltip,{title:(0,o.__)("This service requires general access to Google APIs rather than access to a specific user-owned property/entity, so view access is manageable by any admin signed in with Google.","google-site-kit"),children:(0,N.jsx)("span",{className:"googlesitekit-dashboard-sharing-settings__tooltip-icon",children:(0,N.jsx)(E.A,{icon:D.A,size:18})})})]}):t?(0,N.jsx)(x.Select,{className:"googlesitekit-dashboard-sharing-settings__select",value:s,options:R,onChange:r,onClick:r,outlined:!0}):i?(0,N.jsxs)("p",{className:"googlesitekit-dashboard-sharing-settings__note",children:[(0,k.A)((0,o.sprintf)(/* translators: %s: user who manages the module. */ /* translators: %s: user who manages the module. */
(0,o.__)("<span>Managed by</span> <strong>%s</strong>","google-site-kit"),i),{span:(0,N.jsx)("span",{}),strong:(0,N.jsx)("strong",{})}),(0,N.jsx)(x.Tooltip,{title:n?(0,o.sprintf)(/* translators: %s: name of the user who manages the module. */ /* translators: %s: name of the user who manages the module. */
(0,o.__)("%s has connected this and given managing permissions to all admins. You can change who can view this on the dashboard.","google-site-kit"),i):(0,o.sprintf)(/* translators: %s: name of the user who manages the module. */ /* translators: %s: name of the user who manages the module. */
(0,o.__)("Contact %s to change who can manage view access for this module","google-site-kit"),i),children:(0,N.jsx)("span",{className:"googlesitekit-dashboard-sharing-settings__tooltip-icon",children:(0,N.jsx)(E.A,{icon:D.A,size:18})})})]}):null}function Module({moduleSlug:e,moduleName:t,ownerUsername:i,recoverable:n}){const o=(0,d.A)(),a=(0,c.useRef)(),[l,k]=(0,c.useState)(void 0),y=(0,r.useSelect)(e=>e(u.i).hasRecoverableModules()),x=(0,r.useSelect)(e=>e(p.O4).hasMultipleAdmins()),_=y||x,v=(0,r.useSelect)(t=>{var i;return null!==(i=t(u.i).getSharingManagement(e))&&void 0!==i?i:"owner"}),j=(0,r.useSelect)(t=>t(b.oR).hasCapability(b.Ml,e)),S=(0,r.useSelect)(t=>t(b.oR).hasCapability(b.hz,e)),A=(0,r.useSelect)(e=>e(u.i).getSharedOwnershipModules()),I=(0,r.useSelect)(e=>e(h.n).getValue(m.zP)),T=(0,r.useSelect)(e=>e(u.i).isDoingSubmitSharingChanges()),C=(0,r.useSelect)(e=>e(p.O4).getDocumentationLinkURL("dashboard-sharing-module-recovery")),{setSharingManagement:w}=(0,r.useDispatch)(u.i),E=A&&Object.keys(A).includes(e);(0,c.useEffect)(()=>{k(E?"all_admins":v)},[v,E]);const D=(0,r.useSelect)(t=>t(u.i).haveModuleSharingSettingsChanged(e,"management"));(0,c.useEffect)(()=>{D&&(0,f.sx)(`${o}_sharing`,`change_management_${v}`,e)},[D,v,e,o]);const R=(0,c.useCallback)(t=>{const i=t.target.value;k(i),w(e,i)},[w,k,e]),O=e===I,L=!O&&void 0!==I||T;return(0,N.jsxs)("div",{className:s()("googlesitekit-dashboard-sharing-settings__module","googlesitekit-dashboard-sharing-settings__row",{"googlesitekit-dashboard-sharing-settings__row--editing":O,"googlesitekit-dashboard-sharing-settings__row--disabled":L}),ref:a,children:[(0,N.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__column--product",children:[(0,N.jsx)(g.A,{slug:e,size:48}),(0,N.jsx)("span",{className:"googlesitekit-dashboard-sharing-settings__module-name",children:t})]}),(0,N.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--view",children:(0,N.jsx)(M,{moduleSlug:e,isLocked:L,hasSharingCapability:S,recoverable:n,recoverableModuleSupportLink:C,ref:a})}),_&&(0,N.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--manage",children:(0,N.jsx)(ModuleManageAccess,{sharedOwnershipModule:E,hasOwnedModule:j,ownerUsername:i,hasSharingCapability:S,manageViewAccess:l,onChange:R})})]})}function DashboardSharingSettings(){const t=(0,r.useSelect)(e=>e(u.i).hasRecoverableModules()),i=(0,r.useSelect)(e=>e(p.O4).hasMultipleAdmins()),n=t||i,a=(0,r.useSelect)(t=>{const i=t(b.oR).getID(),n=t(u.i).getShareableModules(),s=[],o=[],r=[];for(e of Object.values(n))e.owner?.id===i?s.push(e):t(b.oR).hasCapability(b.hz,e.slug)?o.push(e):r.push(e);return[...s,...o,...r]});return void 0===a?null:(0,N.jsxs)("div",{className:s()("googlesitekit-dashboard-sharing-settings",{"googlesitekit-dashboard-sharing-settings--has-multiple-admins":n}),children:[(0,N.jsxs)("header",{className:"googlesitekit-dashboard-sharing-settings__header googlesitekit-dashboard-sharing-settings__row",children:[(0,N.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--product",children:(0,o.__)("Product","google-site-kit")}),(0,N.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--view",children:(0,o.__)("Who can view","google-site-kit")}),n&&(0,N.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--manage",children:(0,o.__)("Who can manage view access","google-site-kit")})]}),(0,N.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__main",children:a.map(({slug:e,name:t,owner:i,recoverable:n})=>(0,N.jsx)(Module,{moduleSlug:e,moduleName:t,ownerUsername:i?.login,recoverable:n},e))})]})}ModuleManageAccess.propTypes={sharedOwnershipModule:l().bool,hasOwnedModule:l().bool,ownerUsername:l().string,hasSharingCapability:l().bool,manageViewAccess:l().string,onChange:l().func.isRequired},Module.propTypes={moduleSlug:l().string.isRequired,moduleName:l().string.isRequired,ownerUsername:l().string,recoverable:l().bool},e=i.hmd(e)},88933:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,s=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 43 44"},e),n||(n=s.createElement("g",{fill:"none",fillRule:"evenodd"},s.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"}),s.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"}),s.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"}),s.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:()=>j,BI:()=>S});var n=i(17243);const s="_googlesitekitDataLayer",o="data-googlesitekit-gtag";function r(e){return function(){e[s]=e[s]||[],e[s].push(arguments)}}var a=i(65214);const l={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};const{activeModules:c=[],isSiteKitScreen:g,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:h,isAuthenticated:m,userRoles:f}=i.g._googlesitekitTrackingData||{},{GOOGLESITEKIT_VERSION:b}=i.g,k={activeModules:c,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:h,isSiteKitScreen:g,userRoles:f,isAuthenticated:m,pluginVersion:b},{enableTracking:y,disableTracking:x,isTrackingEnabled:_,initializeSnippet:v,trackEvent:j,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:h}=e;return function(){const{document:t}=i.g;if(void 0===l&&(l=!!t.querySelector(`script[${o}]`)),l)return!1;l=!0;const r=u?.length?u.join(","):"";n("js",new Date),n("config",e.trackingID,{groups:"site_kit",send_page_view:e.isSiteKitScreen,domain:g,plugin_version:h||"",enabled_features:Array.from(a.t).join(","),active_modules:c.join(","),authenticated:p?"1":"0",user_properties:{user_roles:r,user_identifier:d}});const m=t.createElement("script");return m.setAttribute(o,""),m.async=!0,m.src=`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${s}`,t.head.appendChild(m),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${s}`}}}(g,t),u=function(e,t,i,n){const s=r(t);return async function(t,o,r,a){const{trackingEnabled:l}=e;if(!l)return null;i();const c={send_to:"site_kit",event_category:t,event_label:r,value:a};return new Promise(e=>{const i=setTimeout(function(){n.console.warn(`Tracking event "${o}" (category "${t}") took too long to fire.`),e()},1e3);function r(){clearTimeout(i),e()}s("event",o,{...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?y():x()}g&&d&&v()},89362:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n=i(63696);const __WEBPACK_DEFAULT_EXPORT__=function(e,t){const[s,o]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(e.current&&"function"==typeof i.g.IntersectionObserver){function n(e){o(e[e.length-1])}const s=new i.g.IntersectionObserver(n,t);return s.observe(e.current),()=>{o(null),s.disconnect()}}return()=>{}},[e.current,t.threshold,t.root,t.rootMargin]),s}},89506:(e,t,i)=>{i.d(t,{A:()=>UserSettingsSelectionPanel});var n=i(82871),s=i(63696),o=i(50539),r=i(7081),a=i(58116),l=i(3288),c=i(718),g=i(62688),d=i.n(g),u=i(13606),p=i(45472),h=i(93896),m=i(35323),f=i(20898),b=i(59323),k=i(77766),y=i(24558),x=i(62540);function Header({closePanel:e}){const t=(0,k.A)(),i=(0,m.A)(),r=(0,o.useSelect)(e=>e(h.O4).getSiteKitAdminSettingsURL()),{navigateTo:a}=(0,o.useDispatch)(p.M),l=(0,s.useCallback)(()=>{y.KK===t&&e(),a(r)},[r,a,e,t]);return(0,x.jsx)(c.W4,{title:(0,n.__)("Email reports subscription","google-site-kit"),onCloseClick:e,children:!i&&(0,x.jsx)(b.A,{type:"body",size:"small",children:(0,u.A)((0,n.__)("You can always deactivate this feature in <link>Settings</link>","google-site-kit"),{link:(0,x.jsx)(f.A,{onClick:l,secondary:!0})})})})}var _=i(80035);function SelectionPanelFooter({notice:e,onNoticeDismiss:t}){return(0,x.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,x.jsx)("div",{className:"googlesitekit-selection-panel-footer__content",children:e?(0,x.jsx)(_.A,{type:e.type,description:e.text,dismissButton:{label:(0,n.__)("Got it","google-site-kit"),onClick:t},hideIcon:!0}):(0,x.jsx)(b.A,{type:"body",size:"small",children:(0,n.__)("This email is generated by Site Kit using data from your dashboard and sent to your WordPress email, so all your data stays with you.","google-site-kit")})})})}SelectionPanelFooter.propTypes={notice:d().shape({text:d().string,type:d().oneOf(["info","success","error"])}),onNoticeDismiss:d().func};var v=i(15167),j=i(4452),S=i.n(j),N=i(63972);function FrequencySelector({isUserSubscribed:e}){const t=(0,s.useMemo)(()=>[(0,n._x)("Sunday","day name","google-site-kit"),(0,n._x)("Monday","day name","google-site-kit"),(0,n._x)("Tuesday","day name","google-site-kit"),(0,n._x)("Wednesday","day name","google-site-kit"),(0,n._x)("Thursday","day name","google-site-kit"),(0,n._x)("Friday","day name","google-site-kit"),(0,n._x)("Saturday","day name","google-site-kit")],[]);const i=(0,o.useSelect)(e=>e(h.O4).getStartOfWeek()),r=(0,o.useSelect)(e=>e(a.oR).getEmailReportingFrequency()),l=(0,o.useSelect)(e=>e(a.oR).getEmailReportingSavedFrequency()),{setEmailReportingFrequency:c}=(0,o.useDispatch)(a.oR),g=(0,n.sprintf)(/* translators: %s: localized day-of-week name (e.g. Monday). */ /* translators: %s: localized day-of-week name (e.g. Monday). */
(0,n.__)("Sent every %s","google-site-kit"),function(e){const i=Number.isInteger(e)&&e>=0&&e<=6?e:1;return t[i]}(i)),d={weekly:{label:(0,n.__)("Weekly","google-site-kit"),period:(0,n.__)("Last 7 days","google-site-kit"),description:g},monthly:{label:(0,n.__)("Monthly","google-site-kit"),period:(0,n.__)("Last 28 days","google-site-kit"),description:(0,n.__)("Sent on the 1st of each month","google-site-kit")},quarterly:{label:(0,n.__)("Quarterly","google-site-kit"),period:(0,n.__)("Last 90 days","google-site-kit"),description:(0,n.__)("Sent on the 1st of each quarter","google-site-kit")}};return(0,x.jsxs)(s.Fragment,{children:[(0,x.jsx)(v.A,{className:"googlesitekit-frequency-selector-title",type:"label",size:"small",as:"h3",children:(0,n.__)("Frequency","google-site-kit")}),(0,x.jsx)("div",{className:"googlesitekit-frequency-selector",role:"radiogroup","aria-label":(0,n.__)("Frequency","google-site-kit"),children:a.lV.map(t=>{const i=r===t,{label:n,period:s,description:o}=d[t]||{};return(0,x.jsxs)("div",{className:S()("googlesitekit-frequency-selector__card",{"googlesitekit-frequency-selector__card--selected":i}),role:"radio","aria-checked":i,tabIndex:0,onClick:()=>c(t),onKeyDown:e=>function(e,t){" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||(e.preventDefault(),c(t))}(e,t),children:[(0,x.jsxs)("div",{className:"googlesitekit-frequency-selector__label-row",children:[(0,x.jsx)(v.A,{className:"googlesitekit-frequency-selector__label",type:"label",size:"large",as:"div",children:n}),l===t&&e&&(0,x.jsx)("div",{className:"googlesitekit-frequency-selector__saved-indicator",children:(0,x.jsx)(N.A,{className:"googlesitekit-frequency-selector__label-tick","aria-hidden":"true"})})]}),(0,x.jsx)(v.A,{className:"googlesitekit-frequency-selector__period",type:"body",size:"small",as:"div",children:s}),(0,x.jsx)(v.A,{className:"googlesitekit-frequency-selector__description",type:"body",size:"small",as:"div",children:o})]},t)})})]})}FrequencySelector.propTypes={isUserSubscribed:d().bool};var A=i(2390);const I={SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",UPDATE_SETTINGS:"update_settings"};function SubscribeActions({isSubscribed:e,onSubscribe:t,onUnsubscribe:i,updateSettings:o,isLoading:r}){const[a,l]=(0,s.useState)("");function c(e){switch(l(e),e){case I.UPDATE_SETTINGS:o();break;case I.SUBSCRIBE:t();break;case I.UNSUBSCRIBE:i()}}return(0,x.jsxs)("div",{className:"googlesitekit-selection-panel-subscribe-actions",children:[e&&(0,x.jsx)(A.A,{onClick:()=>c(I.UNSUBSCRIBE),isSaving:r&&a===I.UNSUBSCRIBE,disabled:r,tertiary:!0,children:(0,n.__)("Unsubscribe","google-site-kit")}),(0,x.jsx)(A.A,{onClick:()=>c(e?I.UPDATE_SETTINGS:I.SUBSCRIBE),isSaving:r&&a!==I.UNSUBSCRIBE,disabled:r,children:e?(0,n.__)("Update Settings","google-site-kit"):(0,n.__)("Subscribe","google-site-kit")})]})}function PanelContent({notice:e,isUserSubscribed:t,isSavingSettings:i,onSaveCallback:r,onSubscribe:l,onUnsubscribe:c,onNoticeDismiss:g,closePanel:d}){const u=(0,o.useSelect)(e=>e(a.oR).getUser()),p=u?.wpEmail;return(0,x.jsxs)(s.Fragment,{children:[(0,x.jsxs)("div",{className:"googlesitekit-user-settings-selection__panel-content",children:[(0,x.jsx)(Header,{closePanel:d}),(0,x.jsx)("div",{className:"googlesitekit-user-settings-selection__panel-description",children:(0,x.jsxs)(b.A,{type:"body",size:"small",children:[(0,n.__)("Youll receive the report to your WordPress user email","google-site-kit"),p&&(0,x.jsx)(v.A,{type:"body",size:"medium",children:p})]})}),(0,x.jsx)(FrequencySelector,{isUserSubscribed:t}),(0,x.jsx)(SubscribeActions,{onSubscribe:l,onUnsubscribe:c,updateSettings:r,isSubscribed:t,isLoading:i})]}),(0,x.jsx)(SelectionPanelFooter,{notice:e,onNoticeDismiss:g})]})}function UserSettingsSelectionPanel(){const e=(0,o.useSelect)(e=>e(r.n).getValue(l.Q)),t=(0,o.useSelect)(t=>e?t(a.oR).getEmailReportingSettings():{}),i=(0,o.useSelect)(t=>!!e&&t(a.oR).isSavingEmailReportingSettings()),[g,d]=(0,s.useState)(null),{setValue:u}=(0,o.useDispatch)(r.n),{saveEmailReportingSettings:p,resetEmailReportingSettings:h}=(0,o.useDispatch)(a.oR),m=(0,s.useCallback)(()=>{e&&(setTimeout(()=>{h(),d(null)},310),u(l.Q,!1))},[e,h,u]),f=(0,s.useCallback)(async()=>{const{error:e}=await p();d(e?{type:"error",text:e?.message||(0,n.__)("An error occurred.","google-site-kit")}:{type:"success",text:(0,n.__)("Youve successfully updated frequency settings!","google-site-kit")})},[p]),b=(0,s.useCallback)(async()=>{const{error:e}=await p({subscribed:!0});d(e?{type:"error",text:e?.message||(0,n.__)("An error occurred.","google-site-kit")}:{type:"success",text:(0,n.__)("Youve successfully subscribed to email reports!","google-site-kit")})},[p]),k=(0,s.useCallback)(async()=>{const{error:e}=await p({subscribed:!1});d(e?{type:"error",text:e?.message||(0,n.__)("An error occurred.","google-site-kit")}:{type:"info",text:(0,n.__)("Youve unsubscribed from email reports","google-site-kit")})},[p]),y=(0,s.useCallback)(()=>d(null),[]);return(0,x.jsx)(c.Ay,{className:"googlesitekit-user-settings-selection-panel",isOpen:!!e,closePanel:m,children:(0,x.jsx)(PanelContent,{notice:g,isUserSubscribed:t?.subscribed,isSavingSettings:i,onSaveCallback:f,onSubscribe:b,onUnsubscribe:k,onNoticeDismiss:y,closePanel:m})})}SubscribeActions.propTypes={isSubscribed:d().bool,onSubscribe:d().func.isRequired,onUnsubscribe:d().func.isRequired,updateSettings:d().func.isRequired,isLoading:d().bool},PanelContent.propTypes={savedFrequency:d().string,notice:d().shape({text:d().string,type:d().oneOf(["info","success","error"])}),onSaveCallback:d().func,onUnsubscribe:d().func,onNoticeDismiss:d().func,closePanel:d().func}},90007:(e,t,i)=>{i.d(t,{Q:()=>k,A:()=>BannerNotification});var n=i(4452),s=i.n(n),o=i(62688),r=i.n(o),a=i(50539),l=i(71423),c=i(7070),g=i(7184),d=i(30823),u=i(3782),p=i(29584),h=i(55527);const m="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYwIiBoZWlnaHQ9IjIzNCIgdmlld0JveD0iMCAwIDM2MCAyMzQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03My4xMzAyIDE3MC42NjhDODkuMzcxOSAxODkuOTkgMTE1LjQ3NiAxOTUuMTEgMTMxLjg2NSAxODkuOTkxQzE1My4yNDYgMTgzLjMxMiAxNjYuNjcyIDE2Mi45NjcgMTg1LjUwMiAxNjAuNTQ0QzIwNC4zMzMgMTU4LjEyMSAyMTUuNDA2IDE2OC43MDYgMjM1Ljg5NyAxNzAuMjMzQzI1Ni4zODkgMTcxLjc2IDI4MS4yMzIgMTY3LjYzIDI5Mi43OTEgMTM3LjkzNUMzMDQuMzQ5IDEwOC4yMzkgMjkzLjk0OCA3OC4yMzIxIDI3MC4yMTQgNjQuMzYxNUMyNDYuNDgxIDUwLjQ5MDggMjMzLjI3MSA2Ni43Njk0IDIxMC41NjQgNjguMTIzN0MxODcuODU4IDY5LjQ3NzkgMTc4LjAyMyA0NS44NTI4IDE2MS4wMjMgNDQuMzUyOEMxNDQuMDIzIDQyLjg1MjggMTM0LjUyMyA0NS44NTMgMTI0LjUyMyA1OC44NTI5QzExNC41MjMgNzEuODUyOCAxMjAuMzcxIDg1Ljc2NDEgODkuNTIzNSA5OS44NTNDNTguNjc1OCAxMTMuOTQyIDU2Ljg4ODUgMTUxLjM0NSA3My4xMzAyIDE3MC42NjhaIiBmaWxsPSIjRkZFNEIxIi8+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIwX2RfMjcwNV8xNzY4NikiPgo8cmVjdCB4PSIxMTYuNTIzIiB5PSI1Ny45MTk5IiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOC41MzMiIHJ4PSI2Ljk4MjUyIiBmaWxsPSIjRUJFRUYwIi8+CjxtYXNrIGlkPSJtYXNrMF8yNzA1XzE3Njg2IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIxMTYiIHk9IjU3IiB3aWR0aD0iMTI5IiBoZWlnaHQ9IjEzMiI+CjxyZWN0IHg9IjExNi41MjMiIHk9IjU3LjkxOTkiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTMwLjEzMyIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2ODYpIj4KPHJlY3QgeD0iMTI1LjA1NyIgeT0iMTE3LjY1MyIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjkzMzMiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHg9IjEyNS4wNTciIHk9IjEwMy4yNTMiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC45MzMzIiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjUuMDU3IiB5PSIxNTYuMDUzIiB3aWR0aD0iMTEwLjQiIGhlaWdodD0iMzAuOTMzMyIgcng9IjMuNzUxMjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljk0NjUiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAyMDMuNDU3IDk1LjYyNDkpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTYzLjk5IDk1LjYyNTcpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTI0LjUyMyA5NS42MjU3KSIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxwYXRoIGQ9Ik0xMTYuNTIzIDY0LjkzNTVDMTE2LjUyMyA2MS4wNzkyIDExOS42NSA1Ny45NTMgMTIzLjUwNiA1Ny45NTNIMjM3LjM4M0MyNDEuMjM5IDU3Ljk1MyAyNDQuMzY1IDYxLjA3OTIgMjQ0LjM2NSA2NC45MzU1VjY4LjUzM0gxMTYuNTIzVjY0LjkzNTVaIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSIxMjEuODEzIiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjcuMTA0IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzIuNDM3IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE4MC41MjMiIGN5PSIxMjAuODUzIiByPSIxNy4zNzkzIiBmaWxsPSIjNEUzMzAwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNzU4NjIiLz4KPGNpcmNsZSBjeD0iMS42NTUxNyIgY3k9IjEuNjU1MTciIHI9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTE2Ljk5MSkiIGZpbGw9IiNGRkU0QjEiLz4KPHJlY3Qgd2lkdGg9IjMuMzEwMzQiIGhlaWdodD0iOS4zNzkzMSIgcng9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTI4LjU3NykiIGZpbGw9IiNGRkU0QjEiLz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8yNzA1XzE3Njg2IiB4PSIxMDcuOTkiIHk9IjUxLjUxOTkiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0Ni4xMzMiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2ODYiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzY4NiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K",f="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9IjIwMiIgdmlld0JveD0iMCAwIDQwMCAyMDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NC44NTc1IDk3LjYxNjZDMTA1Ljg1NyAxMzQuMDIgMTUzLjIwMSAxMDYuMTIzIDE4MS4zNTcgMTE0LjU3MkMyMDkuNTEzIDEyMy4wMiAyMTMuNDY4IDE2MS41NDUgMjM1Ljg1NyAxNjkuOTI1QzI1OC4yNDUgMTc4LjMwNiAzMDMuMDY4IDE3MS41MTUgMzE2LjAwMiAxMzguMTM1QzMyOC45MzYgMTA0Ljc1NCAzMTIuMTY3IDgzLjY1MjkgMjg3LjY1MiA3Mi4xNjk0QzI2My4xMzYgNjAuNjg1OSAyNjguOTc2IDM2Ljc4MzYgMjM0LjE2NiAyNy44MDA5QzE5OS4zNTcgMTguODE4MiAxNzguNjY1IDQxLjI2NTEgMTQwLjE2NSAzMC43OTI3QzEwMS42NjUgMjAuMzIwNCA2My44NTc4IDYxLjIxMzEgODQuODU3NSA5Ny42MTY2WiIgZmlsbD0iI0ZGREVEMyIvPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMF9kXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTI3LjY2NiIgeT0iMzcuODQxMSIgd2lkdGg9IjEyOCIgaGVpZ2h0PSIxMjguMTk0IiByeD0iNi45ODI1MiIgZmlsbD0iI0VCRUVGMCIvPgo8bWFzayBpZD0ibWFzazBfMjcwNV8xNzYzMyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTI3IiB5PSIzNyIgd2lkdGg9IjEyOSIgaGVpZ2h0PSIxMzEiPgo8cmVjdCB4PSIxMjcuNjY2IiB5PSIzNy44NDExIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOS43OSIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTM2LjIiIHk9Ijk3LjQxNjkiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC44NTE4IiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzYuMiIgeT0iODMuMDU0NiIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjg1MTgiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxwYXRoIGQ9Ik0xMzYuMiAxMzkuNDY3QzEzNi4yIDEzNy4zOTUgMTM3Ljg3OSAxMzUuNzE2IDEzOS45NTEgMTM1LjcxNkgyNDIuODQ5QzI0NC45MiAxMzUuNzE2IDI0Ni42IDEzNy4zOTUgMjQ2LjYgMTM5LjQ2N1YxNjUuOTM1SDEzNi4yVjEzOS40NjdaIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC44OTY2IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMjE0LjU5OSA3NS40NDY3KSIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMTguODk2NiIgcng9IjIuMzE1NjkiIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3NS4xMzMgNzUuNDQ3NikiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljg5NjYiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAxMzUuNjY2IDc1LjQ0NzYpIiBmaWxsPSIjRjNGNUY3Ii8+CjwvZz4KPHBhdGggZD0iTTEyNy42NjYgNDQuODU2N0MxMjcuNjY2IDQxLjAwMDQgMTMwLjc5MyAzNy44NzQyIDEzNC42NDkgMzcuODc0MkgyNDguNTI2QzI1Mi4zODIgMzcuODc0MiAyNTUuNTA4IDQxLjAwMDQgMjU1LjUwOCA0NC44NTY3VjQ4LjQyNjNIMTI3LjY2NlY0NC44NTY3WiIgZmlsbD0id2hpdGUiLz4KPHJlY3QgeD0iMTMyLjk1NiIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTM4LjI0NyIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTQzLjU4IiB5PSI0MS4zOTE1IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUxNzM3IiByeD0iMS43NTg2OCIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE5MS42NjYiIGN5PSIxMDAuOTE1IiByPSIxNi44IiBmaWxsPSIjQUM0MjIwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNjY2NjciLz4KPHBhdGggZD0iTTE5Mi45MTQgOTMuOTgxOEgxOTAuNDE4QzE5MC4wOTIgOTMuOTgxOCAxODkuODQzIDk0LjI3MTQgMTg5Ljg5MSA5NC41OTM2TDE5MS4xMzkgMTAyLjk3M0MxOTEuMjI5IDEwMy41OCAxOTIuMTA0IDEwMy41OCAxOTIuMTk0IDEwMi45NzNMMTkzLjQ0MiA5NC41OTM2QzE5My40OSA5NC4yNzE0IDE5My4yNCA5My45ODE4IDE5Mi45MTQgOTMuOTgxOFoiIGZpbGw9IiNGRkRFRDMiLz4KPGNpcmNsZSBjeD0iMTkxLjY2NiIgY3k9IjEwNi43ODIiIHI9IjEuNiIgZmlsbD0iI0ZGREVEMyIvPgo8ZGVmcz4KPGZpbHRlciBpZD0iZmlsdGVyMF9kXzI3MDVfMTc2MzMiIHg9IjExOS4xMzMiIHk9IjMxLjQ0MTEiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0NS4yNjEiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2MzMiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzYzMyIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K";var b=i(62540);const k={INFO:"info",ERROR:"error",WARNING:"warning"};function BannerNotification({notificationID:e,type:t=k.INFO,learnMoreLink:i,dismissButton:n,ctaButton:o,gaTrackingEventArgs:r,...d}){const u=(0,c.A)(e,r?.category),{dismissNotification:p}=(0,a.useDispatch)(l.D);let y=d?.svg;return y||t===k.INFO||(y={desktop:void 0,mobile:void 0,verticalPosition:"center"},t===k.WARNING&&(y.desktop=m),t===k.ERROR&&(y.desktop=f)),(0,b.jsx)("div",{className:s()("googlesitekit-banner-notification",`googlesitekit-banner-notification--${t}`),children:(0,b.jsx)(h.xA,{className:"googlesitekit-page-content",children:(0,b.jsx)(h.fI,{children:(0,b.jsx)(h.fh,{size:12,children:(0,b.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:o&&{...o,onClick:async function(t){u.confirm(r?.label,r?.value),await(o?.onClick?.(t)),o?.dismissOnClick&&p(e,{...o?.dismissOptions})}},svg:y,...d})})})})})}BannerNotification.propTypes={notificationID:r().string.isRequired,type:r().oneOf(Object.values(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),s=i.n(n),o=i(4452),r=i.n(o),a=i(13606),l=i(82871),c=i(20898),g=i(35323),d=i(62540);function SourceLink({name:e,href:t,className:i,external: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"),`<a>${e}</a>`),{a:(0,d.jsx)(c.A,{href:t,external:n},"link")})})}SourceLink.propTypes={name:s().string,href:s().string,className:s().string,external:s().bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1};const u=SourceLink},93896:(e,t,i)=>{i.d(t,{O4:()=>n,OQ:()=>o,qc:()=>s});const n="core/site",s="primary",o="secondary"},93934:(e,t,i)=>{i.d(t,{Y2:()=>n.Y2,DO:()=>g,c1:()=>d.c1,X9:()=>l,JS:()=>o,T5:()=>u,WP:()=>d.WP});var n=i(15135),s=i(81520);function o(e){return!!e&&e.Component===s.A}function r(e,t){if(9!==t)return[e,t];let i=(e=[...e]).length-1;for(;0!==t&&i>=0;)3===e[i]?(t-=3,e[i]=4):6===e[i]&&(t-=6,e[i]=8),i--;return[e,t]}function a(e,t){return(Array.isArray(t.width)?t.width:[t.width]).map(t=>({counter:e+n.Gr[t],width:t}))}function l(e,t){let i=[];const s=[];if(!e?.length)return{columnWidths:i,rowIndexes:s};let l=0,c=0;function g({counter:e},{counter:t}){return e-t}function d({counter:e},{counter:t}){return t-e}function u({counter:e}){return e<=12}return e.forEach((p,h)=>{if(o(t[p.slug]))return i.push(0),void s.push(c);let m=a(l,p);const f=function(e,t,i){for(;++e<t.length;)if(!o(i[t[e].slug]))return t[e];return null}(h,e,t);if(null===f||0===a(m.sort(g)[0].counter,f).filter(u).length){m.some(u)&&(m=m.sort(d),m=m.filter(u))}const b=m[0].width;s.push(c),l+=n.Gr[b],l>12?(l-=n.Gr[b],s[h]++,9===l&&([i,l]=r(i,l)),l=n.Gr[b],c++):12===l&&(l=0,c++),i.push(n.Gr[b])}),9===l&&([i,l]=r(i,l)),{columnWidths:i,rowIndexes:s}}var c=i(17243);function g(e,t,{columnWidths:i,rowIndexes:s}){const o=[],r=[...i];if(!e?.length)return{gridColumnWidths:r,overrideComponents:o};let a=null,l=-1,g=[];if(function(e,t){const i={};for(let s=0;s<e.length;s++){const o=e[s],r=t?.[o.slug],a=r?.Component,l=r?.metadata?.moduleSlug,c=n.We.includes(a);if(!a||!l||!c)return!1;if(i[l]){if(i[l]!==a)return!1}else i[l]=a}return!(Object.keys(i).length>1)}(e,t)){const i=Array.from({length:e.length-1}).fill(0);return{overrideComponents:[t[e[0].slug]],gridColumnWidths:[12,...i]}}return e.forEach((n,d)=>{if(o.push(null),a=t[n.slug],l=s[d],a)if(u=a,p=t[e[d+1]?.slug],h=l,m=s[d+1],h===m&&(0,c.isEqual)(u,p))g.push(i[d]),r[d]=0;else if(g.length>0){g.push(i[d]);const e=g.reduce((e,t)=>e+t,0);o[d]=a,r[d]=e,g=[]}var u,p,h,m}),{gridColumnWidths:r,overrideComponents:o}}var d=i(35001);function u(e){return(Array.isArray(e)?e:[e]).filter(e=>"string"==typeof e&&e.length>0)}},94552:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(62688),s=i.n(n),o=i(4452),r=i.n(o),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:s().string,invertColor:s().bool,width:s().number,height:s().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),s=i.n(n),o=i(62688),r=i.n(o),a=i(55527),l=i(24560),c=i(18418),g=i(84385),d=i(15167),u=i(62540);function PageHeader(e){const{title:t,icon:i,className:n,status:o,statusText:r,fullWidth:p,children:h}=e,m=p?{size:12}:{smSize:4,mdSize:4,lgSize:6},f=""!==o||Boolean(h);return(0,u.jsx)("header",{className:"googlesitekit-page-header",children:(0,u.jsxs)(a.fI,{children:[t&&(0,u.jsxs)(a.fh,{...m,children:[i,(0,u.jsx)(d.A,{as:"h1",className:s()("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:[o&&(0,u.jsxs)("span",{className:s()("googlesitekit-page-header__status",`googlesitekit-page-header__status--${o}`),children:[r,(0,u.jsx)(g.A,{children:"connected"===o?(0,u.jsx)(l.A,{width:10,height:8}):(0,u.jsx)(c.A,{width:2,height:12})})]}),h]})})]})})}PageHeader.propTypes={title:r().string,icon:r().node,className:r().string,status:r().string,statusText:r().string,fullWidth:r().bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}},97398:(e,t,i)=>{i.d(t,{Y:()=>n});const n="search-console"},98652:(e,t,i)=>{i.d(t,{A:()=>p});var n=i(62688),s=i.n(n),o=i(4452),r=i.n(o),a=i(63696),l=i(82871),c=i(49383),g=i(2362),d=i(20898),u=i(62540);function NewBadge({tooltipTitle:e,learnMoreLink:t,forceOpen:i,hasLeftSpacing:n,hasNoSpacing:s,onLearnMoreClick:o=()=>{}}){const p=(0,u.jsx)(g.A,{className:r()("googlesitekit-new-badge",{"googlesitekit-new-badge--has-no-spacing":s}),label:(0,l.__)("New","google-site-kit"),hasLeftSpacing:n});return e?(0,u.jsx)(c.Tooltip,{tooltipClassName:"googlesitekit-new-badge__tooltip",title:(0,u.jsxs)(a.Fragment,{children:[e,(0,u.jsx)("br",{}),(0,u.jsx)(d.A,{href:t,onClick:o,external:!0,hideExternalIndicator:!0,children:(0,l.__)("Learn more","google-site-kit")})]}),placement:"top",enterTouchDelay:0,leaveTouchDelay:5e3,open:i,interactive:!0,children:p}):p}NewBadge.propTypes={tooltipTitle:s().string,learnMoreLink:s().string,forceOpen:s().bool,onLearnMoreClick:s().func,hasLeftSpacing:s().bool,hasNoSpacing:s().bool};const p=NewBadge},99235:(e,t,i)=>{i.d(t,{l:()=>s});var n=i(78174);function s(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,s=i(82871),o=i(88933),r=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a.apply(null,arguments)}const l=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 80 21"},e),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)(o.A,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),(0,g.jsx)(l,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),(0,g.jsx)(c.A,{children:(0,s.__)("Site Kit by Google Logo","google-site-kit")})]})}},99620:(e,t,i)=>{i.d(t,{A:()=>m});var n=i(62688),s=i.n(n),o=i(4452),r=i.n(o),a=i(63696),l=i(55527),c=i(20898),g=i(15167),d=i(62540);class LayoutHeader extends a.Component{render(){const{title:e,badge:t,ctaLabel:i,ctaLink:n}=this.props,s=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,{...s,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:s().string,badge:s().node,ctaLabel:s().string,ctaLink:s().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:s().string,ctaLink:s().string};const h=LayoutFooter;class Layout extends a.Component{render(){const{header:e,footer:t,children:i,title:n,badge:s,headerCTALabel:o,headerCTALink:a,footerCTALabel:l,footerCTALink:c,footerContent:g,className:p,fill:m,relative:f,rounded:b=!1,transparent:k=!1,...y}=this.props;return(0,d.jsxs)("div",{className:r()("googlesitekit-layout",p,{"googlesitekit-layout--fill":m,"googlesitekit-layout--relative":f,"googlesitekit-layout--rounded":b,"googlesitekit-layout--transparent":k}),...y,children:[e&&(0,d.jsx)(u,{title:n,badge:s,ctaLabel:o,ctaLink:a}),i,t&&(0,d.jsx)(h,{ctaLabel:l,ctaLink:c,footerContent:g})]})}}Layout.propTypes={header:s().bool,footer:s().bool,children:s().node.isRequired,title:s().string,badge:s().node,headerCTALabel:s().string,headerCTALink:s().string,footerCTALabel:s().string,footerCTALink:s().string,footerContent:s().node,className:s().string,fill:s().bool,relative:s().bool,rounded:s().bool,transparent:s().bool},Layout.defaultProps={header:!1,footer:!1,title:"",badge:null,headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1};const m=Layout},99897:(e,t,i)=>{i.d(t,{A_:()=>g,DF:()=>u,L1:()=>p,M0:()=>r,Mc:()=>a,Ok:()=>c,U9:()=>l,iW:()=>o,ue:()=>s,wq:()=>n,xR:()=>d});const n=1,s=2,o=3,r="enhanced-measurement-activation-banner-tooltip-state",a="enhanced-measurement-activation-banner-dismissed-item",l="_r.explorerCard..selmet",c="_r.explorerCard..seldim",g="_r..dataFilters",d="_r..nav",u="key-metrics-connect-ga4-cta-widget",p="analytics-4"}},e=>{e.O(0,[660],()=>{return t=51891,e(e.s=t);var t});e.O()}]);