kollapsminoriteten/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-modules-adsen...

59 lines
428 KiB
JavaScript
Raw Normal View History

2025-12-12 13:13:07 +01:00
(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[290,505],{245:(e,t,i)=>{"use strict";i.d(t,{cN:()=>l,yD:()=>d});var s=i(32091),o=i.n(s),a=i(84024),n=i(28994),r=i(72455);function l({siteName:e,siteURL:t,timezone:i},s=Intl.DateTimeFormat().resolvedOptions().timeZone){o()((0,a.m)(t),"A valid siteURL is required.");const{hostname:l,pathname:c}=new URL(t);return{accountName:e||l,propertyName:`${l}${c}`.replace(/\/$/,""),dataStreamName:l,countryCode:n.hd[i]||n.hd[s],timezone:n.hd[i]?i:s,[r.aj]:!0}}function c(e){const t=e.account?.match(/accounts\/([^/]+)/),i=t?.[1];return{...e,_id:i}}function d(e){return Array.isArray(e)?e.map(e=>({...c(e),propertySummaries:(e.propertySummaries||[]).map(e=>function(e){const t=e.property?.match(/properties\/([^/]+)/),i=t?.[1],s=e.parent?.match(/accounts\/([^/]+)/),o=s?.[1];return{...e,_id:i,_accountID:o}}(e))})):e}},311:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var s=i(62688),o=i.n(s),a=i(15167),n=i(62540);function WidgetHeaderTitle({title:e}){return(0,n.jsx)(a.A,{className:"googlesitekit-widget__header-title",as:"h3",type:"title",size:"small",children:e})}WidgetHeaderTitle.propTypes={title:o().string.isRequired};const r=WidgetHeaderTitle},674:(e,t,i)=>{"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o,a=i(63696);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},n.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>a.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 22 22"},e),s||(s=a.createElement("path",{fillRule:"evenodd",d:"m12.149 7.96-5.166 5.166a.34.34 0 0 0-.094.176l-.35 1.755a.344.344 0 0 0 .404.404l1.755-.35a.34.34 0 0 0 .175-.095l5.166-5.165zm2.301-1.814a1.03 1.03 0 0 0-1.458 0L6.497 12.64a1.03 1.03 0 0 0-.282.527l-.35 1.755a1.03 1.03 0 0 0 1.213 1.213l1.754-.35c.2-.04.383-.139.527-.283l6.495-6.494a1.03 1.03 0 0 0 0-1.459z",clipRule:"evenodd"})),o||(o=a.createElement("path",{d:"m12.149 7.96.117-.116a.165.165 0 0 0-.234 0zm-5.166 5.166-.116-.116zm-.094.176.162.033zm-.35 1.755.161.032zm.404.404.032.162zm1.755-.35.032.161zm.175-.095.117.117zm5.166-5.165.116.116a.165.165 0 0 0 0-.233zm-1.047-3.705.116.116zm1.458 0-.116.116zM6.497 12.64l.117.117zm-.282.527-.162-.032zm-.35 1.755.161.032zm1.213 1.213-.033-.162zm1.754-.35.033.161zm.527-.283.117.117zm6.495-6.494-.117-.117zm0-1.459.117-.116zm-3.822.295L6.867 13.01l.233.233 5.166-5.165zM6.867 13.01a.5.5 0 0 0-.14.26l.324.065a.2.2 0 0 1 .05-.092zm-.14.26-.35 1.754.323.065.351-1.755zm-.35 1.754a.51.51 0 0 0 .598.599l-.064-.324a.18.18 0 0 1-.21-.21zm.598.599 1.755-.35-.065-.325-1.754.351zm1.755-.35a.5.5 0 0 0 .26-.14l-.233-.233a.2.2 0 0 1-.092.048zm.26-.14 5.165-5.166-.233-.233L8.757 14.9zm3.042-7.055 1.89 1.89.233-.234-1.89-1.89zm1.076-1.816a.866.866 0 0 1 1.226 0l.233-.233a1.196 1.196 0 0 0-1.692 0zm-6.494 6.495 6.494-6.495-.233-.233-6.494 6.495zm-.237.443a.87.87 0 0 1 .237-.443l-.233-.233c-.167.167-.281.38-.328.61zm-.35 1.754.35-1.754-.324-.065-.35 1.755zm1.018 1.02a.866.866 0 0 1-1.019-1.02l-.323-.065a1.196 1.196 0 0 0 1.407 1.408zm1.755-.351-1.755.35.065.324 1.755-.35zm.443-.237a.87.87 0 0 1-.443.237l.065.323c.231-.046.444-.16.611-.327zm6.494-6.495-6.494 6.495.233.233 6.495-6.494zm0-1.225a.866.866 0 0 1 0 1.225l.234.234a1.196 1.196 0 0 0 0-1.692zm-1.403-1.404 1.403 1.404.234-.233-1.404-1.404z"})))},718:(e,t,i)=>{"use strict";i.d(t,{gy:()=>SelectionPanelFooter,W4:()=>SelectionPanelHeader,y3:()=>SelectionPanelItem,DW:()=>SelectionPanelItems,Ay:()=>_});var s=i(4452),o=i.n(s),a=i(62688),n=i.n(a),r=i(4544),l=i.n(r),c=i(21795),d=i(78174),g=i(63696),u=i(19266),m=i(14007),p=i(62540);function SideSheet({className:e,children:t,isOpen:i,isLoading:s,onOpen:a=()=>{},closeSheet:n=()=>{},focusTrapOptions:r={}}){const I=(0,g.useRef)();return(0,g.useEffect)(()=>{i?(a(),document.body.classList.add("googlesitekit-side-sheet-scroll-lock")):document.body.classList.remove("googlesitekit-side-sheet-scroll-lock")},[i,a]),(0,
(0,A.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),D,o),{MaxCount:(0,p.jsx)("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})})});return(0,p.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,p.jsxs)("div",{className:"googlesitekit-selection-panel-footer__content",children:[w,(0,p.jsxs)("div",{className:"googlesitekit-selection-panel-footer__actions",children:[(0,p.jsx)(M.Button,{onClick:x,disabled:a,tertiary:!0,children:(0,A.__)("Cancel","google-site-kit")}),(0,p.jsx)(M.SpinnerButton,{onClick:_,isSaving:a,disabled:D<s||D>o||a||!l&&m,children:d||N})]})]})})}SelectionPanelFooter.propTypes={savedItemSlugs:n().array,selectedItemSlugs:n().array,saveSettings:n().func,minSelectedItemCount:n().number,maxSelectedItemCount:n().number,isBusy:n().bool,onSaveSuccess:n().func,onCancel:n().func,isOpen:n().bool,closePanel:n().func};const _=SelectionPanel},1102:(e,t,i)=>{"use strict";i.d(t,{w:()=>r});var s=i(35470),o=i(63696),a=i(2422);function n(){}function r(e,t){const i=(0,a.W)({sticky:!0}),r=(0,o.useRef)(),l=(0,o.useCallback)(e,t),c=(0,s.A)(i?l:n);return i&&(r.current=c),r.current}},2362:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var s=i(4452),o=i.n(s),a=i(62688),n=i.n(a),r=i(63696),l=i(62540);const c=(0,r.forwardRef)(({label:e,className:t,hasLeftSpacing:i=!1,...s},a)=>(0,l.jsx)("span",{ref:a,...s,className:o()("googlesitekit-badge",t,{"googlesitekit-badge--has-left-spacing":i}),children:e}));c.displayName="Badge",c.propTypes={label:n().string.isRequired,hasLeftSpacing:n().bool};const d=c},2422:(e,t,i)=>{"use strict";i.d(t,{W:()=>l});var s=i(79257),o=i(35470),a=i(63696),n=i(6732),r=i(7081);function l({sticky:e=!1}={}){const t=(0,a.useContext)(n.A),[i,l]=(0,a.useState)(!1),c=(0,o.A)(e=>e(r.n).getInViewResetCount()),d=(0,o.A)(e=>e(r.n).getValue("forceInView"));return(0,a.useEffect)(()=>{t.value&&!i&&l(!0)},[i,t,l]),(0,a.useEffect)(()=>{d&&l(!0)},[d]),(0,s.A)(()=>{l(!1)},[c]),!(!e||!i)||!!t.value}},2478:(e,t,i)=>{"use strict";i.d(t,{A:()=>ChangeBadge});var s=i(62688),o=i.n(s),a=i(4452),n=i.n(a),r=i(12850),l=i(62540);function ChangeBadge(e){const{previousValue:t,currentValue:i,isAbsolute:s}=e,o=s?i-t:(0,r.Zf)(t,i),a=o<0,c=0===o;return null===o?null:(0,l.jsx)("div",{className:n()("googlesitekit-change-badge",{"googlesitekit-change-badge--negative":a,"googlesitekit-change-badge--zero":c}),children:(0,r.Eo)(o,{style:"percent",signDisplay:"exceptZero",maximumFractionDigits:1})})}ChangeBadge.propTypes={isAbsolute:o().bool,previousValue:o().number.isRequired,currentValue:o().number.isRequired}},2522:(e,t,i)=>{"use strict";i.d(t,{D:()=>a});var s=i(32091),o=i.n(s);function a(e,{dateRangeLength:t}){o()(Array.isArray(e),"report must be an array to partition."),o()(Number.isInteger(t)&&t>0,"dateRangeLength must be a positive integer.");const i=-1*t;return{currentRange:e.slice(i),compareRange:e.slice(2*i,i)}}},3170:(e,t,i)=>{"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},a.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 19"},e),s||(s=o.createElement("path",{fill:"currentColor",d:"M0 19h22L11 0zm12-3h-2v-2h2zm0-4h-2V8h2z"})))},3288:(e,t,i)=>{"use strict";i.d(t,{Q:()=>s});const s="emailReportingUserSettingsSelectionPanelOpened"},3687:(e,t,i)=>{"use strict";i.d(t,{U:()=>I});var s=i(32091),o=i.n(s),a=i(17243),n=i(21125),r=i(71769),l=i(12850),c=i(50539);function d(e){return e}function g(){return{}}function u(){}const{clearError:m,receiveError:p}=n.o1;function I({baseName:e,controlCallback:t,reducerCallback:i=d,argsToParams:s=g,validateParams:n=u}){let I;o()(e,"baseName is required."),o()("function"==typeof t,"controlCallback is required and must be a function."),o()("function"==typeof i,"reducerCallback must be a function."),o()("function"==typeof s,"argsToParams must be a fu
(0,c.__)("<strong>Note:</strong> %s","google-site-kit"),h),{strong:(0,u.jsx)("strong",{})})})]}),(0,u.jsxs)(d.DialogFooter,{children:[(0,u.jsx)(d.Button,{className:"mdc-dialog__cancel-button",onClick:i,disabled:M,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),S?(0,u.jsx)(d.Button,{href:S,onClick:p,target:"_blank",danger:A,children:y}):(0,u.jsx)(d.SpinnerButton,{onClick:p,danger:A,disabled:M,isSaving:M,children:y||(0,c.__)("Disconnect","google-site-kit")})]})]})}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:o().string,dialogActive:o().bool,handleDialog:o().func,handleConfirm:o().func.isRequired,onOpen:o().func,onClose:o().func,title:o().string,confirmButton:o().string,danger:o().bool,small:o().bool,medium:o().bool,buttonLink:o().string};const m=ModalDialog},10804:(e,t,i)=>{"use strict";i.d(t,{A:()=>AdBlockerWarning});var s,o=i(62688),a=i.n(o),n=i(50539),r=i(93896),l=i(37226),c=i(82871),d=i(13606),g=i(20898),u=i(63696);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},m.apply(null,arguments)}const p=e=>u.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 14"},e),s||(s=u.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M4.5 1.5H3a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2V9M7 1.5h5v5M5 8.5 11.5 2"})));var I=i(80035),y=i(62540);function AdBlockerWarningMessage({getHelpLink:e="",warningMessage:t=null}){return t?(0,y.jsx)(I.A,{className:"googlesitekit-notice--small",type:I.A.TYPES.WARNING,description:(0,d.A)((0,c.sprintf)(/* translators: 1: The warning message. 2: "Get help" text. */ /* translators: 1: The warning message. 2: "Get help" text. */
(0,c.__)("%1$s. <Link><Strong>%2$s</Strong></Link>","google-site-kit"),t,(0,c.__)("Get help","google-site-kit")),{Link:(0,y.jsx)(g.A,{href:e,trailingIcon:(0,y.jsx)(p,{width:15,height:15}),external:!0,hideExternalIndicator:!0}),Strong:(0,y.jsx)("strong",{})}),hideIcon:!0}):null}function AdBlockerWarning({moduleSlug:e,className:t}){const i=(0,n.useSelect)(t=>t(l.i).getModuleStoreName(e)),s=(0,n.useSelect)(e=>e(i)?.getAdBlockerWarningMessage()),o=(0,n.useSelect)(t=>t(r.O4).getDocumentationLinkURL(`${e}-ad-blocker-detected`));return(0,y.jsx)(AdBlockerWarningMessage,{className:t,getHelpLink:o,warningMessage:s})}AdBlockerWarningMessage.propTypes={getHelpLink:a().string,warningMessage:a().string},AdBlockerWarning.propTypes={className:a().string,moduleSlug:a().string.isRequired}},10953:(e,t,i)=>{"use strict";i.d(t,{A:()=>InfoTooltip});var s,o=i(4452),a=i.n(o),n=i(62688),r=i.n(n),l=i(49383),c=i(63696);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},d.apply(null,arguments)}const g=e=>c.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=c.createElement("path",{fill:"currentColor",d:"M7.334 11.333h1.333v-4H7.334zM8.001 6a.658.658 0 0 0 .667-.667.6.6 0 0 0-.2-.467.6.6 0 0 0-.467-.2.66.66 0 0 0-.667.667q0 .284.183.483A.7.7 0 0 0 8.001 6m0 8.666a6.6 6.6 0 0 1-2.6-.516 6.9 6.9 0 0 1-2.117-1.434A6.9 6.9 0 0 1 1.851 10.6 6.6 6.6 0 0 1 1.334 8q0-1.385.517-2.6a6.9 6.9 0 0 1 1.433-2.117q.9-.9 2.117-1.417A6.4 6.4 0 0 1 8 1.333q1.383 0 2.6.533a6.6 6.6 0 0 1 2.116 1.417q.9.9 1.417 2.117.533 1.215.533 2.6 0 1.383-.533 2.6a6.6 6.6 0 0 1-1.417 2.116 6.9 6.9 0 0 1-2.116 1.434 6.6 6.6 0 0 1-2.6.516m0-1.333q2.233 0 3.783-1.55T13.334 8t-1.55-3.784-3.783-1.55-3.784 1.55T2.667 8t1.55 3.783 3.784 1.55"})));var u=i(62540);function InfoTooltip({onOpen:e,title:t,tooltipClassName:i}){return t?(0,u.jsx)(l.Tooltip,{className:"googlesitekit-info-tooltip",tooltipClassName:a()("googlesitekit-info-tooltip__content",i),title:t,placement:"top",enterTouchDelay:0,leaveTouchDelay:5e3,onOpen:e,interactive:!0,children:(0,u.jsx)("span",{children:(0,u.jsx)(g,{width:"16",height:"16"})})}):null}InfoTooltip.propTypes={onOpen:r().func,title:r().oneOfType([r().string,r().element]),tooltipClassName:r().string}},11106:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var s=i(63696),o=i(65214);const a=(0,s.createContext)(o.t)},11965:(e,t,i)=>{"use strict";i.d(t,{N:()=>d,g:()=>g});var s=i(32091),o=i.n(s),a=i(17243),n=i(42926),r=i(84024),l=i(51568),c=i(93896);function d(e,t){const i=t.find(t=>t.test(e));return!!i&&i.exec(e)[1]}const g=(0,a.memoize)(async({homeURL:e,ampMode:t})=>{o()((0,r.m)(e),"homeURL must be valid URL");const i=[e];if(c.OQ===t)try{const e=await(0,n.A)({path:"/wp/v2/posts?per_page=1"}).then(e=>e.slice(0,1).map(e=>(0,l.F)(e.link,{amp:1})).pop());e&&i.push(e)}catch{return i}return i})},12108:(e,t,i)=>{"use strict";i.d(t,{YJ:()=>a,Eq:()=>n});var s=i(32947),o=i(17243);function a(e,t){const s=document.querySelector(e);if(!s)return 0;const o=s.getBoundingClientRect().top,a=n(t);return o+i.g.scrollY-a}function n(e){let t=function(e){let t=0;const a=document.querySelector(".googlesitekit-header");t=a&&"sticky"===i.g.getComputedStyle(a).position?function(e){const t=document.querySelector(".googlesitekit-header");if(t){if(e===s.mp)return t.offsetHeight;const i=t.getBoundingClientRect().bottom;return i<0?0:i}return 0}(e):function(e){const t=document.querySelector("#wpadminbar");if(t&&e!==s.mp)return t.offsetHeight;return 0}(e);return t=function(e){return(0,o.isFinite)(e)?e:0}(t),t<0?0:t}(e);const a=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(a).reduce((e,t)=>e+t.offsetHeight,0),t}},12755:(e,t,i)=>{"use strict";i.d(t,{A:()=>Je});var s,o,a=i(62688),n=i.n(a),r=i(4452),l=i.n(r),c=i(41814),d=i(82871),g=i(63696),u=i(50539),m=i(99455),p=i(21795),I=i(31589),y=i(19266),h=i(49383),A=i(8420),M=i(12850),N=i(21134),T=i(14007),S=i(58116),k=i(62540)
(0,d.__)("Google Account for %1$s (Email: %2$s)","google-site-kit"),o,i)),o&&!i&&(F=(0,d.sprintf)(/* translators: Account info text. 1: User's (full) name. */ /* translators: Account info text. 1: User's (full) name. */
(0,d.__)("Google Account for %1$s","google-site-kit"),o)),!o&&i&&(F=(0,d.sprintf)(/* translators: Account info text. 1: User's email address. */ /* translators: Account info text. 1: User's email address. */
(0,d.__)("Google Account (Email: %1$s)","google-site-kit"),i)),(0,k.jsxs)(g.Fragment,{children:[(0,k.jsxs)("div",{ref:j,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,k.jsx)(h.Button,{disabled:n,ref:b,className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--tablet googlesitekit-border-radius-round--phone googlesitekit-border-radius-round googlesitekit-button-icon",onClick:D,icon:!!s&&(0,k.jsx)("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true",children:(0,k.jsx)("img",{className:"mdc-button__icon--image",src:s,alt:(0,d.__)("User Avatar","google-site-kit")})}),"aria-haspopup":"menu","aria-expanded":c,"aria-controls":"user-menu","aria-label":n?void 0:(0,d.__)("Account","google-site-kit"),tooltipEnterDelayInMS:500,customizedTooltip:n?null:(0,k.jsxs)("span",{"aria-label":F,children:[(0,k.jsx)("strong",{children:(0,d.__)("Google Account","google-site-kit")}),(0,k.jsx)("br",{}),(0,k.jsx)("br",{}),o,o&&(0,k.jsx)("br",{}),i]}),text:!0,tooltip:!0}),(0,k.jsxs)(h.Menu,{className:"googlesitekit-user-menu",menuOpen:c,onSelected:R,id:"user-menu",children:[(0,k.jsx)("li",{children:(0,k.jsx)(Details,{})}),e&&(0,k.jsx)("li",{id:"manage-email-reports",className:"mdc-list-item",role:"menuitem",children:(0,k.jsx)(Item,{icon:(0,k.jsx)(G,{width:"24"}),label:(0,d.__)("Manage email reports","google-site-kit")})}),!!t&&(0,k.jsx)("li",{id:"manage-sites",className:"mdc-list-item",role:"menuitem",children:(0,k.jsx)(Item,{icon:(0,k.jsx)(w,{width:"24"}),label:(0,d.__)("Manage Sites","google-site-kit")})}),(0,k.jsx)("li",{id:"disconnect",className:"mdc-list-item",role:"menuitem",children:(0,k.jsx)(Item,{icon:(0,k.jsx)(f,{width:"24"}),label:(0,d.__)("Disconnect","google-site-kit")})})]})]}),(0,k.jsx)(T.A,{children:(0,k.jsx)(A.A,{dialogActive:r,handleConfirm:L,handleCancel:v,onClose:v,title:(0,d.__)("Disconnect","google-site-kit"),subtitle:(0,d.__)("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,d.__)("Disconnect","google-site-kit"),danger:!0,small:!0})})]})}var F=i(55527),Q=i(35323),J=i(29898),X=i(15844),K=i(39525),$=i(30521),q=i(24558),ee=i(73874),te=i(12108),ie=i(32947);var se=i(44949),oe=i(86134);const ae={[ee.Oo]:{[q.SH]:se.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,[q.OT]:se.CONTEXT_MAIN_DASHBOARD_TRAFFIC,[q.en]:se.CONTEXT_MAIN_DASHBOARD_CONTENT,[q.Ej]:se.CONTEXT_MAIN_DASHBOARD_SPEED,[q.Gw]:se.CONTEXT_MAIN_DASHBOARD_MONETIZATION},[ee.oE]:{[q.OT]:se.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,[q.en]:se.CONTEXT_ENTITY_DASHBOARD_CONTENT,[q.Ej]:se.CONTEXT_ENTITY_DASHBOARD_SPEED,[q.Gw]:se.CONTEXT_ENTITY_DASHBOARD_MONETIZATION}};var ne;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},re.apply(null,arguments)}const le=e=>g.createElement("svg",re({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 18"},e),ne||(ne=g.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,de,ge,ue;function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},me.apply(null,arguments)}const pe=e=>g.createElement("svg",me({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 12"},e),ce||(ce=g.createElement("rect",{width:5,height:5,x:.5,fill:"currentColor",rx:1})),de||(de=g.createElement("rect",{width:5,height:5,x:7.5,fill:"currentColor",rx:1})),ge||(ge=g.createElement("rect",{width:5,height:5,x:.5,y:7,fill:"currentColor",rx:1})),ue||(ue=g.createElement("rect",{width:5,height:5,x:7.5,y:7,fill:"currentColor",rx:1})));var I
(0,d.__)("Shared by <strong>%s</strong>","google-site-kit"),s.login),{strong:(0,k.jsx)("strong",{title:s.login})})})]})}Service.propTypes={module:n().string.isRequired};var ze=i(15167);function SharedServices(){const e=(0,u.useSelect)(e=>e(S.oR).getViewableModules());return void 0===e?null:(0,k.jsxs)("li",{className:"googlesitekit-view-only-menu__list-item",children:[(0,k.jsx)(ze.A,{as:"h4",size:"large",type:"title",children:(0,d.__)("Shared services","google-site-kit")}),(0,k.jsx)("ul",{children:e.map(e=>(0,k.jsx)(Service,{module:e},e))})]})}var Oe=i(82167);function Tracking(){const e=(0,H.A)();return(0,k.jsxs)("li",{className:"googlesitekit-view-only-menu__list-item",children:[(0,k.jsx)(Ce.A,{children:(0,Le.A)((0,d.__)("Thanks for using Site Kit!<br />Help us make it even better","google-site-kit"),{br:(0,k.jsx)("br",{})})}),(0,k.jsx)(Oe.A,{trackEventCategory:`${e}_headerbar_viewonly`,alignCheckboxLeft:!0})]})}var Pe=i(74595);function ManageEmailReports(){const{setValue:e}=(0,Pe.wA)(O.n);return(0,k.jsxs)(g.Fragment,{children:[(0,k.jsx)("li",{className:"mdc-list-divider",role:"separator"}),(0,k.jsx)("li",{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__email-reporting",children:(0,k.jsx)("ul",{className:"googlesitekit-view-only-menu",children:(0,k.jsx)("li",{className:"googlesitekit-view-only-menu__email-reporting-item",children:(0,k.jsx)(h.Button,{onClick:()=>e(U.Q,!0),icon:(0,k.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--icon",children:(0,k.jsx)(G,{width:"24"})}),tertiary:!0,children:(0,k.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--name",children:(0,d.__)("Manage email reports","google-site-kit")})})})})})]})}function ViewOnlyMenu(){const e=(0,Y.i)("proactiveUserEngagement"),[t,i]=(0,g.useState)(!1),s=(0,g.useRef)(),o=(0,H.A)();(0,p.A)(s,()=>i(!1)),(0,W.l)([y._f,y.wn],s,()=>i(!1));const a=(0,g.useCallback)(()=>{t||(0,M.sx)(`${o}_headerbar`,"open_viewonly"),i(!t)},[t,o]),n=(0,u.useSelect)(e=>e(S.oR).hasCapability(S.ej));return(0,k.jsxs)("div",{ref:s,className:l()("googlesitekit-view-only-menu","googlesitekit-dropdown-menu","googlesitekit-dropdown-menu__icon-menu","mdc-menu-surface--anchor",{"googlesitekit-view-only-menu--user-can-authenticate":n}),children:[(0,k.jsx)(h.Button,{className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--phone googlesitekit-button-icon",onClick:a,icon:(0,k.jsx)("span",{className:"mdc-button__icon","aria-hidden":"true",children:(0,k.jsx)(Re,{className:"mdc-button__icon--image"})}),"aria-haspopup":"menu","aria-expanded":t,"aria-controls":"view-only-menu","aria-label":(0,d.__)("View only","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:(0,d.__)("View only","google-site-kit")}),(0,k.jsxs)(h.Menu,{menuOpen:t,onSelected:a,id:"view-only-menu",nonInteractive:!0,children:[(0,k.jsx)(Description,{}),(0,k.jsx)(SharedServices,{}),e&&(0,k.jsx)(ManageEmailReports,{}),(0,k.jsx)("li",{className:"mdc-list-divider",role:"separator"}),(0,k.jsx)(Tracking,{})]})]})}var Be=i(71423),Ue=i(53137),We=i(77513);function CoreSiteBannerNotification({id:e,...t}){const{dismissNotification:i,acceptNotification:s}=(0,u.useDispatch)(z.O4),o=(0,g.useCallback)(()=>{s(e)},[e,s]),a=(0,g.useCallback)(()=>{i(e)},[e,i]);return(0,k.jsx)(We.A,{onCTAClick:o,onDismissClick:a,...t,id:e})}CoreSiteBannerNotification.propTypes={content:n().string,ctaLabel:n().string,ctaTarget:n().string,ctaURL:n().string,dismissLabel:n().string,dismissible:n().bool,gaTrackingEventArgs:n().object,id:n().string.isRequired,learnMoreLabel:n().string,learnMoreURL:n().string,title:n().string.isRequired},CoreSiteBannerNotification.defaultProps={content:"",ctaLabel:"",ctaTarget:"",ctaURL:"",dismissLabel:(0,d.__)("OK, Got it!","google-site-kit"),dismissible:!0,learnMoreLabel:"",learnMoreURL:""};const He=CoreSiteBannerNotification;const Ve=function CoreSiteBannerNotifications(){const e=(0,H.A)(),[t,i]=(0,g.useState)(!1),[s,o]=(0,g.useState)(!1),a=(0,g.useRef)(Date.now()),n=(0,u.useSelect)(e=>e(z.O4).isUsin
(0,M._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 x(e=""){if(!(0,s.isString)(e))return!1;if(3!==e.split("-").length)return!1;const t=new Date(e);return(0,s.isDate)(t)&&!isNaN(t)}function v(e){A()((0,s.isDate)(e)&&!isNaN(e),N);const t=`${e.getMonth()+1}`,i=`${e.getDate()}`;return[e.getFullYear(),t.length<2?`0${t}`:t,i.length<2?`0${i}`:i].join("-")}function C(e){A()(x(e),T);const[t,i,s]=e.split("-");return new Date(t,i-1,s)}function D(e,t){return v(E(e,t*f))}function w(e){const t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}function E(e,t){A()(x(e)||(0,s.isDate)(e)&&!isNaN(e),T);const i=x(e)?Date.parse(e):e.getTime();return new Date(i-1e3*t)}var Z=i(69743),R=i(94552),L=i(62540);function G(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:i=!1}=t;return(0,Z.Ay)((0,L.jsx)(R.A,{direction:e>0?"up":"down",invertColor:i}))}function z(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var O=i(8143);function P(e){const t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function B(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 W=i(2522);function H(e,t){function i(e){return"0"===e||0===e}if(i(e)&&i(t))return 0;if(i(e)||Number.isNaN(e))return null;const s=(t-e)/e;return Number.isNaN(s)||!Number.isFinite(s)?null:s}function V(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function Y(e){if(!e)return"";const t=e.replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(t)).replace(/(\\)/g,"");return(0,s.unescape)(t)}},13465:(e,t,i)=>{"use strict";i.d(t,{A:()=>ModuleSettingsWarning});var s=i(50539),o=i(37226),a=i(58116),n=i(10804),r=i(80035),l=i(62540);function ModuleSettingsWarning({slug:e}){const t=(0,s.useSelect)(t=>t(o.i)?.getCheckRequirementsError(e));return t?a.od===t.code?(0,l.jsx)(n.A,{moduleSlug:e}):(0,l.jsx)(r.A,{className:"googlesitekit-notice--small",type:r.A.TYPES.WARNING,description:t.message,hideIcon:!0}):null}},13620:e=>{"use strict";e.exports=googlesitekit.modules},14007:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var s=i(47209),o=i(62688),a=i.n(o),n=i(63696),r=i(78325);function Portal({children:e,slug:t}){const[i]=(0,n.useState)(document.createElement("div"));return(0,s.A)(()=>{t&&i.classList.add(`googlesitekit-portal-${t}`);const e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(i),()=>e.removeChild(i)}),(0,r.createPortal)(e,i)}Portal.propTypes={slug:a().string,children:a().node},Portal.defaultProps={slug:"",children:null};const l=Portal},15167:(e,t,i)=>{"use strict";i.d(t,{A:()=>Typography});var s=i(62688),o=i.n(s),a=i(4452),n=i.n(a),r=i(3714),l=i(62540);function Typography({className:e,type:t,size:i,as:s="span",children:o,...a}){return(0,l.jsx)(s,{className:n()("googlesitekit-typography",e,{[`googlesitekit-typography--${t}`]:t&&r.tT.includes(t),[`googlesitekit-typography--${i}`]:i&&r.oJ.includes(i)}),...a,children:o})}Typography.propTypes={className:o().string,type:o().oneOf(r.tT),size:o().oneOf(r.oJ),as:o().oneOfType([o().string,o().elementType])}},15210:(e,t,i)=>{"use strict";i.d(t,{O:()=>o});var s=i(31234);const o=i.n(s)()(i.g)},15577:(e,t,i)=>{"use strict";i.d(t,{SO:()=>c});var s=i(55620),o=i(99123);const a={},n=void 0===i.g?null:i.g;function r(){return[i.g.innerWidth,i.g.innerHeight]}function l(e=a){const{fps:t,leading:i,initialWidth:l=0,initialHeight:c=0}=e,[d,g]=(0,s._)("undefined"==typeof document?[l,c]:r,t,i);function u(){return g(r)}return(0,o.A)(n,"resize",u),(0,o.A)(n,"orientationchange",u),d}function c(e){return l(e)[0]}},15863:(e,t,i)=>{"use strict";i.d(t,{i:()=>n});var s=i(63696),o=i(50539),a=i(7081);function n(e){const{setValue:t}=(0,o.useDispatch)(a.n);return(0,s.useCallback)(()=>{t("admin-screen-tooltip",{isTooltipVisible:!0,...e})},[t,e])}},16196:(e,t,i)=>{"u
(0,r._x)("%1$s (%2$s)","Analytics property name and ID","google-site-kit"),t,e)},e))})}PropertySelect.propTypes={isDisabled:o().bool,hasModuleAccess:o().bool,className:o().string,onChange:o().func};var B=i(55012);function WebDataStreamHint(){const e=(0,u.useSelect)(e=>e(h.O4).getDocumentationLinkURL("ga4-data-stream"));return(0,x.jsx)(O.A,{leadingText:(0,r.__)("What is a web data stream?","google-site-kit"),tooltipText:(0,c.A)((0,r.__)("A data stream is a flow of data from your visitors to Analytics. When a data stream is created, Analytics generates a snippet of code that is added to your site to collect that data. <a>Learn more</a>","google-site-kit"),{a:(0,x.jsx)(Z.A,{href:e,external:!0,hideExternalIndicator:!0})})})}var U=i(15844),W=i(84024),H=i(59834);function WebDataStreamNameInput(){const e=(0,u.useSelect)(e=>e(I.K9).getPropertyID()),t=(0,u.useSelect)(e=>e(I.K9).getWebDataStreamID()),i=(0,_.A)(I.ZY,"webDataStreamName"),s=(0,u.useSelect)(t=>!!(0,P.Hl)(e)&&t(I.K9).doesWebDataStreamExist(e,i)),o=(0,u.useSelect)(e=>e(h.O4).getReferenceSiteURL()),{setValues:a}=(0,u.useDispatch)(M.s),c=(0,l.useCallback)(({currentTarget:e})=>{a(I.ZY,{webDataStreamName:e.value})},[a]);if((0,U.A)(()=>{if(!i&&(0,W.m)(o)){const{hostname:e}=new URL(o);a(I.ZY,{webDataStreamName:e})}}),t!==I.Oh)return null;const d=s||!i||!(0,P.uv)(i);let g=!1;return s?g=(0,r.__)("A web data stream with this name already exists.","google-site-kit"):i?(0,P.uv)(i)||(g=(0,r.__)("This is not a valid web data stream name.","google-site-kit")):g=(0,r.__)("A web data stream name is required.","google-site-kit"),(0,x.jsx)("div",{className:"googlesitekit-analytics-webdatastreamname",children:(0,x.jsx)(m.TextField,{className:n()({"mdc-text-field--error":d}),label:(0,r.__)("Web data stream name","google-site-kit"),helperText:g,trailingIcon:d&&(0,x.jsx)("span",{className:"googlesitekit-text-field-icon--error",children:(0,x.jsx)(H.A,{})}),value:i,onChange:c,outlined:!0})})}function WebDataStreamSelect(e){const{hasModuleAccess:t,isDisabled:i,className:s,onChange:o}=e,a=(0,u.useSelect)(e=>e(I.K9).getAccountID()),{propertyID:c,webDataStreamID:d,measurementID:g}=(0,u.useSelect)(e=>e(I.K9).getSettings()||{}),p=(0,u.useSelect)(e=>(0,P.Hl)(c)&&t?e(I.K9).getWebDataStreams(c):[]),y=(0,u.useSelect)(e=>!i&&e(I.K9).isLoadingWebDataStreams({hasModuleAccess:t})),h=(0,C.A)(),{setWebDataStreamID:A,updateSettingsForMeasurementID:M}=(0,u.useDispatch)(I.K9),N=(0,l.useCallback)((e,{dataset:t})=>{const i=t.value;d!==i&&(A(i),M(p.find(({_id:e})=>e===i)?.webStreamData?.measurementId||""),(0,S.sx)(`${h}_analytics`,i===I.Oh?"change_webdatastream_new":"change_webdatastream","ga4"),o&&o())},[p,d,A,M,h,o]);if(!(0,P.HX)(a))return null;if(y)return(0,x.jsx)(m.ProgressBar,{mobileVerticalSpacing:76,desktopVerticalSpacing:84,small:!0});const T=void 0===d||""===d||(0,P.dQ)(d);return!1===t?(0,x.jsx)(m.Select,{className:n()("googlesitekit-analytics-4__select-webdatastream",s),label:(0,r.__)("Web data stream","google-site-kit"),value:g,enhanced:!0,outlined:!0,disabled:!0,children:(0,x.jsx)(m.Option,{value:g,children:g})}):(0,x.jsx)(m.Select,{className:n()("googlesitekit-analytics-4__select-webdatastream",s,{"mdc-select--invalid":!T}),label:(0,r.__)("Web data stream","google-site-kit"),value:d,onEnhancedChange:N,disabled:i||!(0,P.mh)(c),enhanced:!0,outlined:!0,children:(p||[]).concat({_id:I.Oh,displayName:(0,r.__)("Set up a new web data stream","google-site-kit")}).map(({_id:e,displayName:t,webStreamData:i={}},s)=>(0,x.jsx)(m.Option,{value:e,children:e!==I.Oh&&i?.measurementId?(0,r.sprintf)(/* translators: 1: Data stream name. 2: Measurement ID. */ /* translators: 1: Data stream name. 2: Measurement ID. */
(0,r._x)("%1$s (%2$s)","Analytics data stream name and measurement ID","google-site-kit"),t,i.measurementId):t},s))})}WebDataStreamSelect.propTypes={hasModuleAccess:o().bool,isDisabled:o().bool,className:o().string};i(19195);function ZeroDataMessage({skipPrefix:e}){const t=(0,u.useSelect)(e=>e(h.O4).getCurrentEntityURL());return e?t?(0,x.jsx)("span",{children:(0,r.__)("Your page hasnt received any visitors yet","google-site-kit")}):(0,x.jsx)("span",{children:(0,r.__)("Your site hasnt received any visitors yet","google-site-kit")}):t?(0,x.jsx)("span",{children:(0,r.__)("No data to display: your page hasnt received any visitors yet","google-site-kit")}):(0,x.jsx)("span",{children:(0,r.__)("No data to display: your site hasnt received any visitors yet","google-site-kit")})}ZeroDataMessage.propTypes={skipPrefix:o().bool}},27333:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var s=i(35470),o=i(78340);function a(e,t){return(0,s.A)(i=>{const{getValue:s}=i(o.s);return s(e,t)},[e,t])}},28994:(e,t,i)=>{"use strict";i.d(t,{mn:()=>o,fX:()=>n,hd:()=>r,VI:()=>a});var s=i(17243);const o=[{countryCode:"AF",displayName:"Afghanistan",defaultTimeZoneId:"Asia/Kabul",timeZone:[{timeZoneId:"Asia/Kabul",displayName:"(GMT+04:30) Afghanistan Time"}],tosLocale:{language:"en",country:"US"}},{countryCode:"AL",displayName:"Albania",defaultTimeZoneId:"Europe/Tirane",timeZone:[{timeZoneId:"Europe/Tirane",displayName:"(GMT+02:00) Albania Time"}],tosLocale:{language:"en",country:"GB"}},{countryCode:"DZ",displayName:"Algeria",defaultTimeZoneId:"Africa/Algiers",timeZone:[{timeZoneId:"Africa/Algiers",displayName:"(GMT+01:00) Algeria Time"}],tosLocale:{language:"en",country:"GB"}},{countryCode:"AS",displayName:"American Samoa",defaultTimeZoneId:"Pacific/Pago_Pago",timeZone:[{timeZoneId:"Pacific/Pago_Pago",displayName:"(GMT-11:00) American Samoa Time"}],tosLocale:{language:"en",country:"US"}},{countryCode:"AD",displayName:"Andorra",defaultTimeZoneId:"Europe/Andorra",timeZone:[{timeZoneId:"Europe/Andorra",displayName:"(GMT+02:00) Andorra Time"}],tosLocale:{language:"en",country:"GB"}},{countryCode:"AQ",displayName:"Antarctica",defaultTimeZoneId:"Antarctica/Palmer",timeZone:[{timeZoneId:"Antarctica/Palmer",displayName:"(GMT-03:00) Palmer Time"},{timeZoneId:"Antarctica/Rothera",displayName:"(GMT-03:00) Rothera Time"},{timeZoneId:"Antarctica/Syowa",displayName:"(GMT+03:00) Syowa Time"},{timeZoneId:"Antarctica/Mawson",displayName:"(GMT+05:00) Mawson Time"},{timeZoneId:"Antarctica/Vostok",displayName:"(GMT+06:00) Vostok Time"},{timeZoneId:"Antarctica/Davis",displayName:"(GMT+07:00) Davis Time"},{timeZoneId:"Antarctica/Casey",displayName:"(GMT+08:00) Casey Time"},{timeZoneId:"Antarctica/DumontDUrville",displayName:"(GMT+10:00) Dumont dUrville Time"}],tosLocale:{language:"en",country:"US"}},{countryCode:"AR",displayName:"Argentina",defaultTimeZoneId:"America/Buenos_Aires",timeZone:[{timeZoneId:"America/Buenos_Aires",displayName:"(GMT-03:00) Buenos Aires Time"},{timeZoneId:"America/Cordoba",displayName:"(GMT-03:00) Cordoba Time"}],tosLocale:{language:"es",country:"ES"}},{countryCode:"AM",displayName:"Armenia",defaultTimeZoneId:"Asia/Yerevan",timeZone:[{timeZoneId:"Asia/Yerevan",displayName:"(GMT+04:00) Armenia Time"}],tosLocale:{language:"en",country:"GB"}},{countryCode:"AU",displayName:"Australia",defaultTimeZoneId:"Australia/Perth",timeZone:[{timeZoneId:"Australia/Perth",displayName:"(GMT+08:00) Perth Time"},{timeZoneId:"Australia/Adelaide",displayName:"(GMT+09:30) Adelaide Time"},{timeZoneId:"Australia/Darwin",displayName:"(GMT+09:30) Darwin Time"},{timeZoneId:"Australia/Brisbane",displayName:"(GMT+10:00) Brisbane Time"},{timeZoneId:"Australia/Hobart",displayName:"(GMT+10:00) Hobart Time"},{timeZoneId:"Australia/Melbourne",displayName:"(GMT+10:00) Melbourne Time"},{timeZoneId:"Australia/Sydney",displayName:"(GMT+10:00) Sydney Time"}],tosLocale:{language:"en",country:"US"}},{countryCode:"AT",displayName:"Austria",defaultTimeZoneId:"Europe/Vienna",timeZone:[{timeZoneId:"Europe/Vienna",displayName:"(GMT+02:00) Austria Time"}],tosLocale:{language:"de",country
(0,c.__)("Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:(0,m.jsx)(u.A,{href:e,external:!0,hideExternalIndicator:!0,children:(0,c.__)("Get help","google-site-kit")})})}GetHelpLink.propTypes={linkURL:r().string.isRequired};var p=i(23224);function MetricTileLoader(){return(0,m.jsxs)("div",{className:"googlesitekit-km-widget-tile__loading",children:[(0,m.jsx)(p.A,{className:"googlesitekit-km-widget-tile__loading-header",width:"100%",height:"14px"}),(0,m.jsx)(p.A,{className:"googlesitekit-km-widget-tile__loading-body",width:"100%",height:"53px"})]})}var I=i(36148),y=i(92473),h=i(35902),A=i(67150),M=i(12850),N=i(77766);function MetricTileWrapper(e){const{className:t,children:i,error:s,loading:n,moduleSlug:r,Widget:g,widgetSlug:u,title:p=d.G[u]?.title,infoTooltip:T=d.G[u]?.infoTooltip||d.G[u]?.description}=e,S=(0,N.A)(),k=!!s&&(0,a.castArray)(s).some(A.SG),j=(0,l.useCallback)(()=>{(0,M.sx)(`${S}_kmw`,"data_loading_error_retry")},[S]);return(0,l.useEffect)(()=>{s&&(0,M.sx)(`${S}_kmw`,"data_loading_error")},[S,s]),s?(0,m.jsx)(I.A,{title:k?(0,c.__)("Insufficient permissions","google-site-kit"):(0,c.__)("Data loading failed","google-site-kit"),headerText:p,infoTooltip:T,children:(0,m.jsx)(h.A,{moduleSlug:r,error:s,onRetry:j,GetHelpLink:k?GetHelpLink:void 0,getHelpClassName:"googlesitekit-error-retry-text"})}):(0,m.jsx)(g,{noPadding:!0,children:(0,m.jsxs)("div",{className:o()("googlesitekit-km-widget-tile",t),children:[(0,m.jsx)(y.A,{title:p,infoTooltip:T,loading:n}),(0,m.jsxs)("div",{className:"googlesitekit-km-widget-tile__body",children:[n&&(0,m.jsx)(MetricTileLoader,{}),!n&&i]})]})})}MetricTileWrapper.propTypes={Widget:r().elementType.isRequired,loading:r().bool,title:r().string,infoTooltip:r().oneOfType([r().string,r().element]),moduleSlug:r().string.isRequired}},35902:(e,t,i)=>{"use strict";i.d(t,{A:()=>ReportErrorActions});var s=i(62688),o=i.n(s),a=i(63696),n=i(13606),r=i(82871),l=i(50539),c=i(49383),d=i(93896),g=i(37226),u=i(67150),m=i(35323),p=i(20898),I=i(62540);function ReportErrorActions(e){const{moduleSlug:t,error:i,GetHelpLink:s,hideGetHelpLink:o,buttonVariant:y,onRetry:h,onRequestAccess:A,getHelpClassName:M,RequestAccessButton:N,RetryButton:T}=e,S=(0,m.A)(),k=(0,l.useSelect)(e=>e(g.i).getModuleStoreName(t)),j=(0,l.useSelect)(e=>"function"==typeof e(k)?.getServiceEntityAccessURL?e(k).getServiceEntityAccessURL():null),f=Array.isArray(i)?i:[i],b=(0,l.useSelect)(e=>f.map(t=>{const i=e(k)?.getSelectorDataForError(t);return{...t,selectorData:i}})),_=b?.filter(e=>(0,u.vl)(e,e.selectorData)&&"getReport"===e.selectorData.name),x=!!_.length,v=(0,l.useSelect)(e=>{const i={...x?_[0]:f[0]};return(0,u.SG)(i)&&(i.code=`${t}_insufficient_permissions`),e(d.O4).getErrorTroubleshootingLinkURL(i)}),C=(0,l.useDispatch)(),D=f.some(e=>(0,u.SG)(e)),w=(0,a.useCallback)(()=>{_.forEach(e=>{const{selectorData:t}=e;C(t.storeName).invalidateResolution(t.name,t.args)}),h?.()},[C,_,h]),E=j&&D&&!S;return(0,I.jsxs)("div",{className:"googlesitekit-report-error-actions",children:[E&&("function"==typeof N?(0,I.jsx)(N,{requestAccessURL:j}):(0,I.jsx)(c.Button,{onClick:A,href:j,target:"_blank",danger:"danger"===y,tertiary:"tertiary"===y,children:(0,r.__)("Request access","google-site-kit")})),x&&(0,I.jsxs)(a.Fragment,{children:["function"==typeof T?(0,I.jsx)(T,{handleRetry:w}):(0,I.jsx)(c.Button,{onClick:w,danger:"danger"===y,tertiary:"tertiary"===y,children:(0,r.__)("Retry","google-site-kit")}),!o&&(0,I.jsx)("span",{className:"googlesitekit-error-retry-text",children:(0,n.A)((0,r.__)("Retry didnt work? <HelpLink />","google-site-kit"),{HelpLink:(0,I.jsx)(p.A,{href:v,external:!0,hideExternalIndicator:!0,children:(0,r.__)("Get help","google-site-kit")})})})]}),!x&&!o&&(0,I.jsx)("div",{className:M,children:"function"==typeof s?(0,I.jsx)(s,{linkURL:v}):(0,I.jsx)(p.A,{href:v,external:!0,hideExternalIndicator:!0,children:(0,r.__)("Get help","google-site-kit")})})]})}ReportErrorActions.propTypes={moduleSlug:o().string.isRequired,error:o().oneOfType([o().arrayOf(o().object),o().object]).isRequired,GetHelpLink:o().elementType,hideGetHelpLin
(0,g.__)("Site Kit detected Ad Blocking Recovery code for a different account %s on your site. For a better ad blocking recovery experience, you should remove Ad Blocking Recovery code thats not linked to this AdSense account.","google-site-kit"),(0,_.v)(a))),o?(0,G.jsxs)("fieldset",{className:"googlesitekit-settings-module__ad-blocking-recovery-toggles",children:[(0,G.jsx)("legend",{className:"googlesitekit-setup-module__text",children:(0,g.__)("Ad blocking recovery","google-site-kit")}),(0,G.jsxs)("div",{className:"googlesitekit-settings-module__meta-items",children:[(0,G.jsxs)("div",{className:"googlesitekit-settings-module__meta-item",children:[(0,G.jsx)(O.Switch,{label:(0,g.__)("Enable ad blocking recovery message","google-site-kit"),checked:c,onClick:function(){const t=!c;u(j.RR,{adBlockingRecoveryToggle:t}),m(t),(0,k.sx)(`${e}_adsense-abr`,t?"enable_tag":"disable_tag","abr_tag")},hideLabel:!1}),(0,G.jsx)(B.A,{children:(0,y.A)((0,g.__)("Identify site visitors that have an ad blocker browser extension installed. These site visitors will see the ad blocking recovery message created in AdSense. <a>Configure your message</a>","google-site-kit"),{a:(0,G.jsx)(P.A,{href:r,external:!0})})})]}),(c||t)&&(0,G.jsxs)("div",{className:"googlesitekit-settings-module__meta-item",children:[(0,G.jsx)(O.Switch,{label:(0,g.__)("Place error protection code","google-site-kit"),checked:d,onClick:function(){const t=!d;u(j.RR,{adBlockingRecoveryErrorToggle:t}),p(t),(0,k.sx)(`${e}_adsense-abr`,t?"enable_tag":"disable_tag","error_protection_tag")},hideLabel:!1}),(0,G.jsx)(B.A,{children:(0,y.A)((0,g.__)("If a site visitors ad blocker browser extension blocks the message you create in AdSense, a default, non-customizable ad blocking recovery message will display instead. <a>Learn more</a>","google-site-kit"),{a:(0,G.jsx)(P.A,{href:l,external:!0})})})]})]}),a&&(0,G.jsx)(L.A,{type:L.A.TYPES.INFO,description:I})]}):null}var H=i(90399),V=i(64843);function SettingsForm(){const e=(0,s.useSelect)(e=>e(N.O4).isWebStoriesActive()),t=(0,s.useSelect)(e=>e(j.wl).getClientID()),i=(0,s.useSelect)(e=>e(j.wl).getExistingTag()),o=(0,s.useSelect)(e=>e(j.wl).hasFinishedResolution("getExistingTag"));(0,s.useSelect)(e=>e(j.wl).getExistingAdBlockingRecoveryTag());const a=(0,s.useSelect)(e=>e(j.wl).hasFinishedResolution("getExistingAdBlockingRecoveryTag"));if(!o||!a)return(0,G.jsx)(O.ProgressBar,{});let n,r;i&&i===t?(n=(0,g.__)("Youve already got an AdSense code on your site for this account, we recommend you use Site Kit to place code to get the most out of AdSense","google-site-kit"),r=n):i?(n=(0,g.sprintf)(/* translators: %s: account ID */ /* translators: %s: account ID */
(0,g.__)("Site Kit detected AdSense code for a different account %s on your site. For a better ads experience, you should remove AdSense code thats not linked to this AdSense account.","google-site-kit"),(0,_.c)(i)),r=(0,g.__)("Please note that AdSense will not show ads on your website unless youve already placed the code","google-site-kit")):r=(0,g.__)("Please note that AdSense will not show ads on your website unless youve already placed the code","google-site-kit");return(0,G.jsxs)("div",{className:"googlesitekit-adsense-settings-fields",children:[(0,G.jsx)(H.kg,{}),(0,G.jsx)(H.TZ,{checkedMessage:n,uncheckedMessage:r}),e&&(0,G.jsxs)(I.Fragment,{children:[(0,G.jsx)(V.A,{}),(0,G.jsx)(B.A,{children:(0,y.A)((0,g.__)("This ad unit will be used for your Web Stories. <LearnMoreLink />","google-site-kit"),{LearnMoreLink:(0,G.jsx)(P.A,{href:"https://support.google.com/adsense/answer/10175505#create-an-ad-unit-for-web-stories","aria-label":(0,g.__)("Learn more about Ad Sense Web Stories.","google-site-kit"),external:!0,children:(0,g.__)("Learn more","google-site-kit")})})})]}),(0,G.jsx)(H.Ve,{}),(0,G.jsx)(AdBlockingRecoverySetupCTANotice,{}),(0,G.jsx)(AdBlockingRecoveryToggle,{})]})}function SettingsEdit(){let e;return e=(0,s.useSelect)(e=>e(j.wl).isDoingSubmitChanges())?(0,G.jsx)(O.ProgressBar,{}):(0,G.jsx)(SettingsForm,{}),(0,G.jsx)("div",{className:"googlesitekit-setup-module googlesitekit-setup-module--adsense",children:e})}var Y=i(37226),F=i(73589),Q=i(13465);function SettingsSetupIncomplete(){const e=(0,s.useSelect)(e=>e(j.wl).getAccountStatus()),t=(0,D.DZ)(e),i=(0,s.useSelect)(e=>e(j.wl).getAdminReauthURL()),o=(0,s.useSelect)(e=>e(Y.i)?.getCheckRequirementsError(F.Py));let a,n;return t?(
/* translators: %s: link with next step */
a=(0,g.__)("Site Kit has placed AdSense code on your site: %s","google-site-kit"),n=(0,g.__)("check module page","google-site-kit")):(
/* translators: %s: link with next step */
a=(0,g.__)("Setup incomplete: %s","google-site-kit"),n=(0,g.__)("continue module setup","google-site-kit")),(0,G.jsxs)(I.Fragment,{children:[(0,G.jsx)("div",{className:"googlesitekit-settings-module__fields-group googlesitekit-settings-module__fields-group--no-border",children:(0,G.jsx)(Q.A,{slug:"adsense"})}),(0,G.jsx)("div",{className:"googlesitekit-settings-module__fields-group-title",children:(0,y.A)((0,g.sprintf)(a,`<a>${n}</a>`),{a:(0,G.jsx)(P.A,{className:"googlesitekit-settings-module__edit-button",href:i,disabled:!!o})})})]})}var J=i(17691),X=i(56929);var K=i(16834),$=i(15167);function SettingsView(){const e=(0,s.useSelect)(e=>e(j.wl).getAccountID()),t=(0,s.useSelect)(e=>e(j.wl).getServiceAccountManageSitesURL()),i=(0,s.useSelect)(e=>e(N.O4).isWebStoriesActive()),o=(0,s.useSelect)(e=>e(j.wl).getWebStoriesAdUnit()),a=(0,s.useSelect)(e=>e(j.wl).getAccountStatus()),n=(0,s.useSelect)(e=>e(j.wl).getUseAdBlockingRecoverySnippet()),r=(0,s.useSelect)(e=>e(j.wl).getUseAdBlockingRecoveryErrorSnippet()),l=(0,s.useSelect)(e=>e(j.wl).getSiteStatus()),c=(0,s.useSelect)(e=>e(j.wl).getUseSnippet()),d=(0,s.useSelect)(e=>e(j.wl).getAdBlockingRecoverySetupStatus()),u=(0,s.useSelect)(e=>e(j.wl).getExistingTag()),m=(0,s.useSelect)(e=>e(j.wl).getClientID()),p=(0,s.useSelect)(e=>e(j.wl).getAutoAdsDisabled()||[]),h=(0,s.useSelect)(t=>t(j.wl).getServiceURL({path:`/${e}/privacymessaging/ad_blocking`})),A=function(e){let t=(0,g.__)("Your site isnt ready to show ads yet","google-site-kit");switch(e){case D.ZT:t=(0,g.__)("Your account has been approved","google-site-kit");break;case D.pJ:t=(0,g.__)("Your site is ready for ads","google-site-kit");break;case D.X_:case D.iP:t=(0,g.__)("Were getting your site ready for ads. This usually takes less than a day, but it can sometimes take a bit longer","google-site-kit");break;case D.ze:case D.f8:case D.gV:case D.bF:case D.Yb:t=(0,g.__)("You need to fix some issues before your account is approved. Go to AdSense to find out how to fix it","google-site-kit")}return t}(a),M=function(e){let t="";switch(e){case D.k:case D.dL:t=(0,g.__)("You need to fix some things before your site is ready.","google-site-kit");break;case D.oC:t=(0,g.__)("Your site is getting ready.","google-site-kit");break;case D.TF:t=(0,g.__)("Your site is ready for ads.","google-site-kit");break;case D.um:t=(0,g.__)("Your site is ready, with auto-ads disabled.","google-site-kit")}return t}(l),T=(0,y.A)((0,g.__)("View <VisuallyHidden>site </VisuallyHidden>in AdSense","google-site-kit"),{VisuallyHidden:(0,G.jsx)(K.A,{})}),S=function(e,t,i){let s=(0,g.__)("The AdSense code has not been placed on your site","google-site-kit");return e?s=(0,g.__)("The AdSense code has been placed on your site","google-site-kit"):t&&t===i&&(s=(0,g.__)("The AdSense code has been placed by another plugin or theme","google-site-kit")),s}(c,u,m),k=function(e){let t=(0,g.__)("Ads are currently displayed for all visitors","google-site-kit");return e.includes(X.nk)&&e.includes(X.ru)?t=(0,g.__)("All logged-in users and users who can write posts","google-site-kit"):e.includes(X.nk)?t=X.BN[X.nk]:e.includes(X.ru)&&(t=X.BN[X.ru]),t}(p),f=(0,s.useSelect)(e=>void 0===e(j.wl).getSettings()||void 0===e(j.wl).hasExistingAdBlockingRecoveryTag());return(0,G.jsxs)("div",{className:"googlesitekit-setup-module googlesitekit-setup-module--adsense",children:[(0,G.jsx)(H.kg,{}),(0,G.jsxs)("div",{className:"googlesitekit-settings-module__meta-items",children:[(0,G.jsxs)("div",{className:"googlesitekit-settings-module__meta-item",children:[(0,G.jsx)($.A,{as:"h5",size:"medium",type:"label",className:"googlesitekit-settings-module__meta-item-type",children:(0,g.__)("Publisher ID","google-site-kit")}),(0,G.jsx)("p",{className:"googlesitekit-settings-module__meta-item-data",children:(0,G.jsx)(J.A,{value:e})})]}),(0,G.jsxs)("div",{className:"googlesitekit-settings-module__meta-item",children:[(0,G.jsx)($.A,{as:"h5",size:"medium",type:"label",className:"googlesitekit-settings-module__meta-item-type",children:(0,g.__)("Site Status","google-site-kit")}),(0,G.jsxs)("p",{className:"goo
(0,g._n)("Performance over the last %s day","Performance over the last %s days",e,"google-site-kit"),e)})};var xe=i(32091),ve=i.n(xe);const Ce=function Footer(){const e=(0,ne.A)(),t=(0,s.useSelect)(e=>e(se.oR).getDateRangeDates({offsetDays:j.f2})),i=(0,s.useSelect)(i=>e?null:i(j.wl).getServiceReportURL(function(e){ve()(e,"A dates object is required.");const{startDate:t,endDate:i}=e;return ve()((0,k.Qr)(t),"A valid startDate is required."),ve()((0,k.Qr)(i),"A valid endDate is required."),{d:`${t.replace(/-/g,"/")}-${i.replace(/-/g,"/")}`}}(t)));return(0,G.jsx)(Me.A,{href:i,name:(0,g._x)("AdSense","Service name","google-site-kit"),external:!0})};var De=i(55527),we=i(97029),Ee=i(91865);function Overview({metrics:e,currentRangeData:t,previousRangeData:i,selectedStats:s,handleStatsSelection:o}){const{totals:a,headers:n}=t,{totals:r}=i,l={smSize:2,mdSize:2,lgSize:3};return(0,G.jsx)(De.xA,{children:(0,G.jsxs)(Ee.A,{className:"mdc-layout-grid__inner",children:[(0,G.jsx)(De.fh,{...l,children:(0,G.jsx)(we.A,{stat:0,className:"googlesitekit-data-block--page-rpm googlesitekit-data-block--button-1",title:e[n[0].name],datapoint:a?.cells[0].value||0,datapointUnit:n[0]?.currencyCode,change:(0,k.Zf)(r?.cells[0].value||0,a?.cells[0].value||0),changeDataUnit:"%",context:"button",selected:0===s,handleStatSelection:o})}),(0,G.jsx)(De.fh,{...l,children:(0,G.jsx)(we.A,{stat:1,className:"googlesitekit-data-block--page-rpm googlesitekit-data-block--button-2",title:e[n[1].name],datapoint:a?.cells[1].value||0,datapointUnit:n[1]?.currencyCode,change:(0,k.Zf)(r?.cells[1].value||0,a?.cells[1].value||0),changeDataUnit:"%",context:"button",selected:1===s,handleStatSelection:o})}),(0,G.jsx)(De.fh,{...l,children:(0,G.jsx)(we.A,{stat:2,className:"googlesitekit-data-block--page-rpm googlesitekit-data-block--button-3",title:e[n[2].name],datapoint:a?.cells[2].value||0,change:(0,k.Zf)(r?.cells[2].value||0,a?.cells[2].value||0),changeDataUnit:"%",context:"button",selected:2===s,handleStatSelection:o})}),(0,G.jsx)(De.fh,{...l,children:(0,G.jsx)(we.A,{stat:3,className:"googlesitekit-data-block--impression googlesitekit-data-block--button-4",title:e[n[3].name],datapoint:a?.cells[3].value||0,datapointUnit:"%",change:(0,k.Zf)(r?.cells[3].value||0,a?.cells[3].value||0),changeDataUnit:"%",context:"button",selected:3===s,handleStatSelection:o})})]})})}Overview.propTypes={metrics:ee().object,currentRangeData:ee().object,previousRangeData:ee().object,selectedStats:ee().number.isRequired,handleStatsSelection:ee().func.isRequired};const Ze=Overview;var Re=i(4518),Le=i(54415);function Stats(e){const{metrics:t,currentRangeData:i,previousRangeData:s,selectedStats:o}=e,a=function(e,t,i,s,o){const a=[[{type:"date",label:(0,g.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:"number",label:i},{type:"number",label:(0,g.__)("Previous period","google-site-kit")}]];function n(e){const t=new Date(e);return t.setDate(e.getDate()+1),t}function r(e){return t=>e.getTime()===(0,k.XH)(t.cells[0].value).getTime()}let l=C(e.startDate),c=C(t.startDate);const d=C(e.endDate),u=(0,k.JK)(),m={weekday:"short",month:"short",day:"numeric"};for(;l<=d;){const d=parseFloat((e?.rows||[]).find(r(l))?.cells?.[s]?.value||0),p=parseFloat((t?.rows||[]).find(r(c))?.cells?.[s]?.value||0),I=(0,k.Cn)(d,p),y=(0,k.vY)(I),h=(0,g.sprintf)(/* translators: 1: date for user stats, 2: previous date for user stats comparison */ /* translators: 1: date for user stats, 2: previous date for user stats comparison */
(0,g._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),l.toLocaleDateString(u,m),c.toLocaleDateString(u,m));let A=(0,k.Eo)(d,o?.currencyCode);"METRIC_RATIO"===o?.type&&(A=(0,k.Eo)(d,"%"));const M=(0,g.sprintf)(/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage, %%: percent symbol */ /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage, %%: percent symbol */
(0,g._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s%%</em>","Stat information for chart tooltip","google-site-kit"),i,A,y,Math.abs(I).toFixed(2).replace(/(.00|0)$/,""));a.push([l,`<div class="${v()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":I>0,"googlesitekit-visualization-tooltip--down":I<0})}">\n\t\t\t\t<p>${h}</p>\n\t\t\t\t<p>${M}</p>\n\t\t\t</div>`,d,p]),l=n(l),c=n(c)}return a}(i,s,Object.values(t)[o],o+1,i.headers[o+1]),n=["#6380b8","#4bbbbb","#3c7251","#8e68cb"];const[,...r]=a.slice(1).map(([e])=>e),l={curveType:"function",height:270,width:"100%",chartArea:{height:"80%",width:"100%",left:60},legend:{position:"top",textStyle:{color:"#616161",fontSize:12}},hAxis:{format:"MMM d",gridlines:{color:"#fff"},textStyle:{color:"#616161",fontSize:12},ticks:r},vAxis:{format:function({type:e,currencyCode:t}={}){return"METRIC_CURRENCY"===e?(0,Re.Od)(t):{METRIC_TALLY:void 0,METRIC_RATIO:"percent",METRIC_DECIMAL:"decimal",METRIC_MILLISECONDS:void 0}[e]}(i.headers[o+1]),gridlines:{color:"#eee"},minorGridlines:{color:"#eee"},textStyle:{color:"#616161",fontSize:12},titleTextStyle:{color:"#616161",fontSize:12,italic:!1},viewWindow:{min:0}},focusTarget:"category",crosshair:{color:"gray",opacity:.1,orientation:"vertical",trigger:"both"},tooltip:{isHtml:!0,trigger:"both"},series:{0:{color:n[o],targetAxisIndex:0},1:{color:n[o],targetAxisIndex:0,lineDashStyle:[3,3],lineWidth:1}}};return b(i,o+1)&&b(s,o+1)?l.vAxis.viewWindow.max=100:l.vAxis.viewWindow.max=void 0,(0,G.jsx)(De.xA,{className:"googlesitekit-adsense-site-stats",children:(0,G.jsx)(De.fI,{children:(0,G.jsx)(De.fh,{size:12,children:(0,G.jsx)(Le.A,{chartType:"LineChart",data:a,loadingHeight:"270px",loadingWidth:"100%",options:l})})})})}Stats.propTypes={metrics:ee().object,currentRangeData:ee().object,previousRangeData:ee().object,selectedStats:ee().number.isRequired};var Ge=i(75487);function StatusMigration(){const e=(0,s.useSelect)(e=>e(j.wl).getAccountID()),t=(0,s.useSelect)(t=>t(j.wl).getAFCClient(e)),i=(0,s.useSelect)(t=>t(j.wl).getCurrentSite(e)),o=(0,s.useSelect)(e=>e(j.wl).getAdminReauthURL()),a=(0,s.useSelect)(e=>e(M.M).isNavigating()),{setAccountStatus:n,setSiteStatus:r,setAccountSetupComplete:l,setSiteSetupComplete:c,saveSettings:d}=(0,s.useDispatch)(j.wl),{navigateTo:u}=(0,s.useDispatch)(M.M);let m;return t&&i&&(m=!(t.state!==j.jb||i.state!==j.jb||!i.autoAdsEnabled)),(0,I.useEffect)(()=>{m&&(async()=>{await n(D.pJ),await r(D.TF),await d()})()},[m,d,n,r]),!0===m?null:(0,G.jsx)(Ge.xA,{children:(0,G.jsx)(Ge.fI,{children:(0,G.jsxs)(Ge.fh,{size:12,children:[void 0===m&&(0,G.jsx)(O.ProgressBar,{}),!1===m&&(0,G.jsx)(L.A,{type:L.A.TYPES.WARNING,description:(0,g.__)("You need to redo setup to complete AdSense configuration","google-site-kit"),ctaButton:{label:(0,g.__)("Redo setup","google-site-kit"),onClick:async function(){await l(!1),await c(!1),await d(),u(o)},disabled:a,inProgress:a}})]})})})}function ModuleOverviewWidget({Widget:e,WidgetReportError:t}){const i=(0,ne.A)(),[o,a]=(0,I.useState)(0),n=(0,s.useSelect)(e=>i?null:e(j.wl).getAccountStatus()),r=(0,s.useSelect)(e=>i?null:e(j.wl).getSiteStatus()),l=D.RL.includes(n)||r===D.Uv,{startDate:c,endDate:d,compareStartDate:g,compareEndDate:u}=(0,s.useSelect)(e=>e(se.oR).getDateRangeDates({compare:!0,offsetDays:j.f2})),m={metrics:Object.keys(ModuleOverviewWidget.metrics),startDate:c,endDate:d,reportID:"adsense_module-overview-widget_widget_currentRangeArgs"},p={metrics:Object.keys(ModuleOverviewWidget.metrics),startDate:g,endDate:u,reportID:"adsense_module-overview-widget_widget_previousRangeArgs"},y={...m,dimensions:["DATE"],reportID:"adsense_module-overview-widget_widget_currentRangeChartArgs"},h={...p,dimensions:["DATE"],reportID:"adsense_module-overview-widget_widget_previousRangeChartArgs"},A=(0,s.useInViewSelect)(e=>e(j.wl).getReport(m),[m]),M=(0,s.useInViewSelect)(e=>e(j.wl).getReport(p),[p]),N=(0,s.useInViewSelect)(e=>e(j.wl).getReport(y),[y]),T=(0,s.useInViewSelect)(e=>e(j.wl).getReport(h),[h]),S=(0,s.useSelect)(e=>!(e(j.wl).hasFinishedResolution("getReport",[m])&&e(j.wl).hasFinished
(0,l.__)("Step %1$s of %2$s (upcoming).","google-site-kit"),e,o);case M.ACTIVE:return(0,l.sprintf)(/* translators: 1: The number of the current step. 2: The total number of steps. */ /* translators: 1: The number of the current step. 2: The total number of steps. */
(0,l.__)("Step %1$s of %2$s (active).","google-site-kit"),e,o);case M.COMPLETED:return(0,l.sprintf)(/* translators: 1: The number of the current step. 2: The total number of steps. */ /* translators: 1: The number of the current step. 2: The total number of steps. */
(0,l.__)("Step %1$s of %2$s (completed).","google-site-kit"),e,o);default:return""}}return(0,N.jsx)("ol",{className:h()("googlesitekit-stepper",i),children:s.Children.map(e,(e,i)=>{const n=function(e=-1){return e<t?M.COMPLETED:e===t?M.ACTIVE:M.UPCOMING}(i),r=i+1;return(0,N.jsxs)("li",{className:h()("googlesitekit-stepper__step",`googlesitekit-stepper__step--${n}`,e.props.className),children:[(0,N.jsxs)("div",{className:"googlesitekit-stepper__step-progress",children:[(0,N.jsx)("span",{className:"googlesitekit-stepper__step-number",title:a(r,n),children:n===M.COMPLETED?(0,N.jsx)(A.A,{}):r}),r<o&&(0,N.jsx)("div",{className:"googlesitekit-stepper__step-progress-line"})]}),(0,s.cloneElement)(e,{stepStatus:n})]})})})}Stepper.propTypes={children:I().node.isRequired,activeStep:I().number,className:I().string};var T=i(15167);function Step({children:e,title:t,stepStatus:i}){return(0,N.jsxs)("div",{className:"googlesitekit-stepper__step-info",children:[(0,N.jsx)(T.A,{as:"h2",className:"googlesitekit-stepper__step-title",size:"medium",type:"title",children:t}),(0,N.jsx)("div",{className:"googlesitekit-stepper__step-content-container",children:i===M.ACTIVE&&(0,N.jsx)("div",{className:"googlesitekit-stepper__step-content",children:e})})]})}Step.propTypes={children:I().node.isRequired,title:I().string.isRequired,stepStatus:I().oneOf(Object.values(M))};var S,k,j,f,b,_,x,v,C,D,w,E,Z,R,L,G,z,O,P,B,U=i(99620),W=i(45472),H=i(93896),V=i(7081),Y=i(77766),F=i(12850),Q=i(74179);function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},J.apply(null,arguments)}const X=e=>s.createElement("svg",J({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 390 273"},e),S||(S=s.createElement("path",{fill:"#F3F5F7",d:"M22.56 28.885a85 85 0 0 1 8.606-7.899C60.044-2.097 83.903-2.06 116.934 2.153 139.265 5 158.642 18.5 182.13 17.185 205.617 15.871 238.088 7.743 264 9.5c29.5 2 37 5.5 63.227 19.385 24.273 12.85 46.312 35.426 57.388 65.284 18.985 51.177-14.865 143.285-60.259 147.628-32.893 3.148-60.039-33.973-93.239-25.376-20.452 5.297-32.583 27.515-48.362 42.177-18.409 17.107-48.199 16.032-69.755 6.902-20.542-8.699-35.63-25.926-42.338-51.32-5.107-19.338-4.595-38.709-16.86-53.857C36.497 138.947 9.432 134 1.281 94.168c-5.16-25.213 5.942-49.13 21.279-65.283"})),k||(k=s.createElement("g",{filter:"url(#ad-blocking-recovery-setup_svg__a)"},s.createElement("rect",{width:257.906,height:176.087,x:50.837,y:42.913,fill:"#fff",rx:14.086}),s.createElement("rect",{width:259.302,height:177.484,x:50.139,y:42.214,stroke:"#CBD0D3",strokeWidth:1.396,rx:14.785}))),j||(j=s.createElement("rect",{width:78,height:126.285,x:65,y:78.486,fill:"#EE92DA",rx:5.282})),f||(f=s.createElement("circle",{cx:104.5,cy:139.528,r:11,stroke:"#fff",strokeWidth:3})),b||(b=s.createElement("path",{stroke:"#fff",strokeWidth:3,d:"m112 132.028-15.5 15.5"})),_||(_=s.createElement("path",{fill:"#EBEEF0",d:"M50.837 56.999c0-7.78 6.307-14.086 14.087-14.086h229.733c7.78 0 14.086 6.306 14.086 14.086v7.258H50.837z"})),x||(x=s.createElement("rect",{width:7.115,height:7.115,x:61.509,y:50.027,fill:"#CBD0D3",rx:3.557})),v||(v=s.createElement("rect",{width:7.115,height:7.115,x:72.181,y:50.027,fill:"#CBD0D3",rx:3.557})),C||(C=s.createElement("rect",{width:125.396,height:42.688,x:164,y:78.486,fill:"#EBEEF0",rx:5.585})),D||(D=s.createElement("rect",{width:92.49,height:14.229,x:164,y:129,fill:"#EBEEF0",rx:7.115})),w||(w=s.createElement("rect",{width:108.498,height:5.585,x:164,y:151,fill:"#EBEEF0",rx:2.793})),E||(E=s.createElement("rect",{width:92.49,height:5.585,x:164,y:165,fill:"#EBEEF0",rx:2.793})),Z||(Z=s.createElement("rect",{width:125.396,height:5.585,x:164,y:179,fill:"#EBEEF0",rx:2.793})),R||(R=s.createElement("g",{filter:"url(#ad-blocking-recovery-setup_svg__b)"},s.createElement("path",{fill:"#fff",d:"M199 163c0-6.075 4.925-11 11-11h126c6.075 0 11 4.925 11 11v83.038c0 6.076-4.925 11-11 11H210c-6.075 0-11-4.924-11-11z"}),s.createElement("path",{stroke:"#CBD0D3",d:"M199.5 163c0-5
(0,l.__)("Site Kit detected AdSense code for a different account %1$s on your site. In order to configure AdSense for your current account %2$s, we recommend you use Site Kit to place the code instead.","google-site-kit"),(0,ie.c)(t),(0,ie.c)(i)),r=`${d} ${g}`):r=g,(0,N.jsx)(se.TZ,{checkedMessage:r,uncheckedMessage:d,saveOnChange:!0})}var oe=i(79257),ae=i(93431),ne=i(81779),re=i(61991);function SetupAccountSiteUI({heading:e,description:t,primaryButton:i,secondaryButton:o}){const a=(0,c.useSelect)(e=>e(Q.wl).isDoingSubmitChanges()||e(W.M).isNavigating());return(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)(T.A,{as:"h3",type:"title",size:"large",className:"googlesitekit-setup-module__title",children:e}),(0,N.jsx)(se.kg,{}),(0,N.jsx)(m.A,{children:t}),(0,N.jsx)(SetupUseSnippetSwitch,{}),(0,N.jsxs)("div",{className:"googlesitekit-setup-module__action",children:[(0,N.jsx)(d.SpinnerButton,{onClick:i.onClick,href:i.href,disabled:a,isSaving:a,children:i.label}),o&&(0,N.jsx)("div",{className:"googlesitekit-setup-module__sub-action",children:(0,N.jsx)(d.Button,{onClick:o.onClick,tertiary:!0,children:o.label})})]})]})}function NeedsAttention(){const e=(0,s.useContext)(re.Ay),t=(0,c.useSelect)(e=>e(Q.wl).getServiceAccountManageSitesURL()),o=(0,s.useCallback)(s=>{s.preventDefault(),(0,F.sx)(`${e}_adsense`,"review_site_state","needs_attention"),i.g.open(t,"_blank")},[t,e]),a=(0,l.__)("Your site isnt ready to show ads yet","google-site-kit"),n=(0,l.__)("You need to fix some things with this site before we can connect Site Kit to your AdSense account","google-site-kit"),r={label:(0,l.__)("Review site in AdSense","google-site-kit"),href:t,onClick:o};return(0,N.jsx)(SetupAccountSiteUI,{heading:a,description:n,primaryButton:r})}function GettingReady(){const e=(0,s.useContext)(re.Ay),t=(0,c.useSelect)(e=>e(Q.wl).getServiceAccountManageSitesURL()),o=(0,s.useCallback)(s=>{s.preventDefault(),(0,F.sx)(`${e}_adsense`,"review_site_state","getting_ready"),i.g.open(t,"_blank")},[t,e]),a=(0,l.__)("Your site is getting ready","google-site-kit"),n=(0,l.__)("This usually takes a few days, but in some cases can take a few weeks. Youll get an email from AdSense as soon as they have run some checks on your site.","google-site-kit"),r={label:(0,l.__)("Review site in AdSense","google-site-kit"),href:t,onClick:o};return(0,N.jsx)(SetupAccountSiteUI,{heading:a,description:n,primaryButton:r})}function RequiresReview(){const e=(0,s.useContext)(re.Ay),t=(0,c.useSelect)(e=>e(Q.wl).getServiceAccountManageSitesURL()),o=(0,s.useCallback)(s=>{s.preventDefault(),(0,F.sx)(`${e}_adsense`,"review_site_state","requires_review"),i.g.open(t,"_blank")},[t,e]),a=(0,l.__)("Your site requires review","google-site-kit"),n=(0,l.__)("To start serving ads, your site needs to be approved first. Go to AdSense to request the review.","google-site-kit"),r={label:(0,l.__)("Request review in AdSense","google-site-kit"),href:t,onClick:o};return(0,N.jsx)(SetupAccountSiteUI,{heading:a,description:n,primaryButton:r})}function Ready({site:e,finishSetup:t}){const[o,a]=(0,s.useState)(!1),n=(0,s.useContext)(re.Ay),r=(0,c.useSelect)(e=>e(Q.wl).getExistingTag()),d=(0,c.useSelect)(e=>e(Q.wl).getServiceAccountSiteAdsPreviewURL()),g=(0,c.useSelect)(e=>e(Q.wl).isDoingSubmitChanges()),{completeSiteSetup:u,completeAccountSetup:m}=(0,c.useDispatch)(Q.wl),{setValue:p}=(0,c.useDispatch)(V.n),I=(0,s.useCallback)(e=>{e.preventDefault(),(0,F.sx)(`${n}_adsense`,"enable_auto_ads"),i.g.open(d,"_blank")},[d,n]),y=(0,s.useCallback)(e=>{e.preventDefault(),(0,F.sx)(`${n}_adsense`,"disable_auto_ads"),a(!0)},[n]),h=(0,s.useCallback)(async()=>{if(g)return;p(Q.O0,!0);const e=await u(),i=await m();p(Q.O0,!1),e&&i&&"function"==typeof t&&t()},[g,p,u,m,t]),A={};return e.autoAdsEnabled||o?(A.heading=r?(0,l.__)("Your AdSense account is ready to connect to Site Kit","google-site-kit"):(0,l.__)("Your site is ready to use AdSense","google-site-kit"),A.description=r?(0,l.__)("Connect your AdSense account to see stats on your overall earnings, page CTR, and top earning pages","google-site-kit"):(0,l.__)("Site Kit has placed AdSe
(0,l.__)("Invalid site state %s","google-site-kit"),o),skipRetryMessage:!0})}}SetupAccountSiteUI.propTypes={heading:I().string.isRequired,description:I().string.isRequired,primaryButton:I().shape({label:I().string,href:I().string,onClick:I().func}).isRequired,secondaryButton:I().shape({label:I().string,onClick:I().func})},SetupAccountSite.propTypes={site:I().shape({autoAdsEnabled:I().bool,state:I().string}).isRequired,finishSetup:I().func};var le=i(44174);function SetupAccountNoClient(){const e=(0,Y.A)(),t=(0,s.useCallback)(()=>{(0,F.sx)(`${e}_adsense`,"apply_afc")},[e]);return(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)(T.A,{as:"h3",type:"title",size:"large",className:"googlesitekit-setup-module__title",children:(0,l.__)("Looks like you need to upgrade your AdSense account","google-site-kit")}),(0,N.jsx)(se.kg,{}),(0,N.jsx)(m.A,{children:(0,ee.A)((0,l.__)("To start using AdSense on your website, you need to upgrade your account to add “AdSense for content”. <a>Learn more</a>","google-site-kit"),{a:(0,N.jsx)(le.A,{path:"/adsense/answer/6023158","aria-label":(0,l.__)("Learn more about updating your AdSense account","google-site-kit"),external:!0})})}),(0,N.jsx)("div",{className:"googlesitekit-setup-module__action",children:(0,N.jsx)(d.Button,{href:"https://www.google.com/adsense",target:"_blank","aria-label":(0,l.__)("Learn more about updating your AdSense account","google-site-kit"),onClick:t,children:(0,l.__)("Apply now","google-site-kit")})})]})}function SetupAccountCreateSite(){const e=(0,Y.A)(),t=(0,c.useSelect)(e=>e(Q.wl).getServiceAccountManageSiteURL()),o=(0,s.useCallback)(s=>{s.preventDefault(),(0,F.sx)(`${e}_adsense`,"create_site"),i.g.open(t,"_blank")},[t,e]);return(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)(T.A,{as:"h3",type:"title",size:"large",className:"googlesitekit-setup-module__title",children:(0,l.__)("Add this site to your AdSense account","google-site-kit")}),(0,N.jsx)(se.kg,{}),(0,N.jsx)(m.A,{children:(0,l.__)("Weve detected that you havent added this site to your AdSense account yet","google-site-kit")}),(0,N.jsx)("div",{className:"googlesitekit-setup-module__action",children:(0,N.jsx)(d.Button,{onClick:o,href:t,children:(0,l.__)("Add site to AdSense","google-site-kit")})})]})}function SetupAccountPendingTasks(){const e=(0,Y.A)(),t=(0,s.useCallback)(()=>{(0,F.sx)(`${e}_adsense`,"review_tasks")},[e]),i=(0,c.useSelect)(e=>e(Q.wl).getServiceAccountURL());return(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)(T.A,{as:"h3",type:"title",size:"large",className:"googlesitekit-setup-module__title",children:(0,l.__)("Your account isnt ready to show ads yet","google-site-kit")}),(0,N.jsx)(se.kg,{}),(0,N.jsx)(m.A,{children:(0,l.__)("You need to fix some things before we can connect Site Kit to your AdSense account","google-site-kit")}),(0,N.jsx)(SetupUseSnippetSwitch,{}),(0,N.jsx)("div",{className:"googlesitekit-setup-module__action",children:(0,N.jsx)(d.Button,{onClick:t,href:i,children:(0,l.__)("Review AdSense account","google-site-kit")})})]})}function SetupAccount({account:e,finishSetup:t}){const{_id:i,state:o}=e,a=(0,c.useSelect)(e=>e(Q.wl).getClientID()),n=(0,c.useSelect)(e=>e(Q.wl).getCurrentSite(i)),r=(0,c.useSelect)(e=>e(Q.wl).getAFCClient(i)),{setClientID:l,setAccountStatus:g,setSiteStatus:u}=(0,c.useDispatch)(Q.wl);return(0,s.useEffect)(()=>{r?._id&&a!==r._id?l(r._id):null===r&&a&&l("")},[r,a,l]),(0,s.useEffect)(()=>{null===n&&u(ne.SG)},[u,n]),(0,s.useEffect)(()=>{void 0!==n&&(a?o===Q._L?g(ne.gV):r?.state===Q.LE?g(ne.bF):r?.state===Q.IY?g(ne.Yb):g(ne.pJ):g(ne.ze))},[o,r,a,g,n]),void 0===n?(0,N.jsx)(d.ProgressBar,{}):a?null===n?(0,N.jsx)(SetupAccountCreateSite,{}):o===Q._L||r?.state===Q.LE||r?.state===Q.IY?(0,N.jsx)(SetupAccountPendingTasks,{}):(0,N.jsx)(SetupAccountSite,{site:n,finishSetup:t}):(0,N.jsx)(SetupAccountNoClient,{})}SetupAccount.propTypes={account:I().shape({_id:I().string,state:I().string}),finishSetup:I().func};var ce=i(58116);function SetupCreateAccount(){const e=`${(0,Y.A)()}_adsense`,t=(0,c.useSelect)(e=>e(ce.oR).getEmail()),o=(0,c.useSelect)(e=>e(Q.wl).getExistingTag()),a=(0,c.
(0,l.__)("Site Kit detected AdSense code %1$s on your page. We recommend you remove that code or add %2$s as a user to the AdSense account %3$s.","google-site-kit"),o,t,(0,ie.c)(o)),!o&&(0,ee.A)((0,l.sprintf)(/* translators: %s: user email address */ /* translators: %s: user email address */
(0,l.__)("Already use AdSense? Add %s as a user to an existing AdSense account. <a>Learn more</a>","google-site-kit"),t),{a:(0,N.jsx)(le.A,{path:"/adsense/answer/2659101","aria-label":(0,l.__)("Learn more about adding a user to an existing AdSense account","google-site-kit"),external:!0})})]})]})}function SetupSelectAccount(){return(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)(T.A,{as:"h3",type:"title",size:"large",className:"googlesitekit-setup-module__title",children:(0,l.__)("Select your AdSense account","google-site-kit")}),(0,N.jsx)(se.kg,{}),(0,N.jsx)(m.A,{children:(0,l.__)("Looks like you have multiple AdSense accounts associated with your Google account. Select the account to use with Site Kit below.","google-site-kit")}),(0,N.jsx)("div",{className:"googlesitekit-setup-module__inputs",children:(0,N.jsx)(se.QB,{})})]})}var de=i(10804),ge=i(42125);function SetupMain_SetupMain({finishSetup:e}){const t=`${(0,Y.A)()}_adsense`,{resetAccounts:i,resetClients:o,resetSites:a,setAccountID:n,setAccountStatus:r,submitChanges:g}=(0,c.useDispatch)(Q.wl),[u,m]=(0,s.useState)(!1),[p,I]=(0,s.useState)(!1),y=(0,c.useSelect)(e=>!!e(V.n).getValue(Q.O0)),h=(0,c.useSelect)(e=>e(ce.oR).isAdBlockerActive()),A=(0,c.useSelect)(e=>e(Q.wl).getAccounts()),M=(0,c.useSelect)(e=>e(Q.wl).getAccountID()),S=(0,c.useSelect)(e=>e(Q.wl).hasSettingChanged("accountID")),k=(0,c.useSelect)(e=>e(Q.wl).hasSettingChanged("clientID")),j=(0,c.useSelect)(e=>e(Q.wl).canSubmitChanges()),f=(0,c.useSelect)(e=>e(Q.wl).getClientID()),b=(0,c.useSelect)(e=>e(Q.wl).getAccountStatus()),_=(0,c.useSelect)(e=>e(Q.wl).hasSettingChanged("accountStatus")),x=(0,c.useSelect)(e=>e(Q.wl).getSiteStatus()),v=(0,c.useSelect)(e=>e(Q.wl).hasSettingChanged("siteStatus")),C=(0,c.useSelect)(e=>e(Q.wl).hasErrors()),D=(0,c.useSelect)(e=>e(Q.wl).hasFinishedResolution("getAccounts")),w=(0,c.useSelect)(e=>e(ce.oR).getEmail()),E=(0,c.useSelect)(e=>e(H.O4).getReferenceSiteURL()),Z=(0,c.useSelect)(e=>e(Q.wl).getExistingTag()),R=A?.find(({_id:e})=>e===M);(0,oe.A)(()=>{(S&&void 0!==M||k&&void 0!==f||_&&void 0!==b||v&&void 0!==x)&&m(!0)},[M,S,f,k,b,_,x,v]),(0,s.useEffect)(()=>{if(!Array.isArray(A))return;let e;1!==A.length||M&&A[0]._id===M?0===A.length&&M&&(e=""):e=A[0]._id,void 0!==e&&(n(e),m(!0))},[A,M,n]),(0,s.useEffect)(()=>{0===A?.length?r(ne.uP):A?.length>1&&!M&&r(ne.Sw)},[r,M,A]),(0,s.useEffect)(()=>{u&&!p&&j&&!y&&(m(!1),(async()=>{I(!0),await g(),I(!1)})())},[u,p,j,g,y]);const L=(0,s.useCallback)(()=>{void 0!==b&&ne.pJ!==b&&(i(),o(),a())},[b,i,o,a]);let G;return(0,ge.$)(L,15e3),(0,s.useEffect)(()=>{void 0!==b&&(0,F.sx)(t,"receive_account_state",b)},[t,b]),(0,s.useEffect)(()=>{void 0!==x&&(0,F.sx)(t,"receive_site_state",x)},[t,x]),G=D&&void 0!==M&&void 0!==w&&void 0!==E&&void 0!==Z?C?(0,N.jsx)(se.kg,{hasButton:!0}):A?.length?M?(0,N.jsx)(SetupAccount,{account:R,finishSetup:e}):(0,N.jsx)(SetupSelectAccount,{}):(0,N.jsx)(SetupCreateAccount,{}):(0,N.jsx)(d.ProgressBar,{}),(0,N.jsxs)("div",{className:"googlesitekit-setup-module googlesitekit-setup-module--adsense",children:[(0,N.jsxs)("div",{className:"googlesitekit-setup-module__step",children:[(0,N.jsx)("div",{className:"googlesitekit-setup-module__logo",children:(0,N.jsx)(ae.A,{width:"40",height:"40"})}),(0,N.jsx)(T.A,{as:"h3",className:"googlesitekit-setup-module__title",size:"small",type:"headline",children:(0,l._x)("AdSense","Service name","google-site-kit")})]}),(0,N.jsxs)("div",{className:"googlesitekit-setup-module__step",children:[(0,N.jsx)(de.A,{moduleSlug:"adsense"}),!h&&G]})]})}SetupMain_SetupMain.propTypes={finishSetup:I().func}},46935:e=>{"use strict";e.exports=googlesitekit.notifications},47121:(e,t,i)=>{"use strict";i.d(t,{$C:()=>_,RF:()=>b,WI:()=>j,_5:()=>T,jU:()=>N,o3:()=>M,x0:()=>k});var s=i(32091),o=i.n(s),a=i(50532),n=i.n(a),r=i(17243),l=i(78913);const c="GET_REGISTRY",d="AWAIT";function g(...e){const t=e.reduce((e,t)=>({...e,...t}),{}),i=S(e.reduce((e,t)=>[...e,...Object.keys(t)],[]));return o()(0===i.length,`collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated funct
(0,X._n)("%s is disconnected, no data to show","%s are disconnected, no data to show",c.length,"google-site-kit"),c.join((0,X.__)(" and ","google-site-kit")))})})}function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},q.apply(null,arguments)}MetricItem.propTypes={slug:A().string.isRequired,title:A().string.isRequired,description:A().string.isRequired,isNewlyDetected:A().bool,savedItemSlugs:A().array};const key_metrics_no_selected_items=e=>s.createElement("svg",q({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 383 238"},e),x||(x=s.createElement("path",{fill:"#B8E6CA",d:"M59.238 58.571c-2.136 20.178 4.272 29.099 20.48 53.216 16.209 24.118-29.092 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.443-3.208 57.819 12.98 90.86 5.9s46.385-42.599 43.153-68.059c-5.59-44.041-26.24-49.107-34.893-66.461s2.902-52.997-30.287-73.16-76.71 14.42-112.503 12.37c-20.651-1.182-40.932-4.995-59.264.86-18.53 5.918-32.662 22.571-34.335 38.621"})),v||(v=s.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__a)"},s.createElement("rect",{width:130.621,height:89.651,x:242.455,y:45.266,fill:"#fff",rx:10.957,transform:"rotate(15 242.455 45.266)"}))),C||(C=s.createElement("rect",{width:24.903,height:7.969,x:253.726,y:64.785,fill:"#EBEEF0",rx:3.985,transform:"rotate(15 253.726 64.785)"})),D||(D=s.createElement("rect",{width:49.806,height:19.923,x:249.342,y:81.144,fill:"#FFDED3",rx:9.961,transform:"rotate(15 249.342 81.144)"})),w||(w=s.createElement("rect",{width:99.428,height:8.773,x:240.436,y:114.357,fill:"#EBEEF0",rx:3.985,transform:"rotate(15 240.436 114.357)"})),E||(E=s.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m256.195 90.198 4.644 8.044m0 0 1.412-4.986m-1.412 4.986-5.023-1.27"})),Z||(Z=s.createElement("rect",{width:19.923,height:5.977,x:268.706,y:93.551,fill:"#fff",rx:1.992,transform:"rotate(15 268.706 93.55)"})),R||(R=s.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__b)"},s.createElement("rect",{width:130.621,height:89.68,x:13.887,y:79.094,fill:"#fff",rx:10.957,transform:"rotate(-15 13.887 79.094)"}))),L||(L=s.createElement("rect",{width:62.386,height:7.798,x:32.989,y:90.122,fill:"#EBEEF0",rx:3.899,transform:"rotate(-15 32.99 90.122)"})),G||(G=s.createElement("rect",{width:49.806,height:19.923,x:37.691,y:106.902,fill:"#FFDED3",rx:9.961,transform:"rotate(-15 37.691 106.902)"})),z||(z=s.createElement("rect",{width:99.428,height:7.798,x:46.612,y:140.967,fill:"#EBEEF0",rx:3.899,transform:"rotate(-15 46.612 140.967)"})),O||(O=s.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m48.152 111.318 8.044 4.645m0 0-1.27-5.024m1.27 5.024-4.986 1.411"})),P||(P=s.createElement("rect",{width:19.923,height:5.977,x:60.663,y:107.966,fill:"#fff",rx:1.992,transform:"rotate(-15 60.663 107.966)"})),B||(B=s.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__c)"},s.createElement("rect",{width:130.621,height:89.68,x:126.251,y:37.4,fill:"#fff",rx:10.957}))),U||(U=s.createElement("rect",{width:98.333,height:7.867,x:143.013,y:53.134,fill:"#EBEEF0",rx:3.933})),W||(W=s.createElement("rect",{width:49.806,height:19.923,x:142.369,y:70.423,fill:"#B8E6CA",rx:9.961})),H||(H=s.createElement("rect",{width:33.04,height:7.867,x:143.013,y:105.84,fill:"#EBEEF0",rx:3.933})),V||(V=s.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m151.336 84.036 6.568-6.567m0 0-5.182-.073m5.182.073.073 5.18"})),Y||(Y=s.createElement("rect",{width:19.923,height:5.977,x:164.287,y:77.395,fill:"#fff",rx:1.992})),s.createElement("mask",{id:"key-metrics-no-selected-items_svg__d",width:273,height:230,x:58,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},F||(F=s.createElement("path",{fill:"#B8E6CA",d:"M59.237 58.571C57.1 78.75 63.509 87.67 79.717 111.787c16.209 24.118-29.091 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 2
(0,s.__)("Your Google account does not have sufficient permissions to access %s data, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"),n)),r&&r.login&&(c=(0,s.sprintf)(/* translators: %s: owner name */ /* translators: %s: owner name */
(0,s.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),r.login)),c||(c=(0,s.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),`${l} ${c}`}},67150:(e,t,i)=>{"use strict";i.d(t,{G:()=>c,HY:()=>g,SG:()=>d,db:()=>o,e4:()=>m,vl:()=>u});i(17243);var s=i(82871);const o="missing_required_scopes",a="insufficientPermissions",n="forbidden",r="internal_server_error",l="invalid_json";function c(e){return e?.code===o}function d(e){return[a,n].includes(e?.data?.reason)}function g(e){return!!e?.data?.reconnectURL}function u(e,t){return!(!t?.storeName||d(e)||c(e)||g(e))}function m(e){return e?.code===r?(0,s.__)("There was a critical error on this website while fetching data","google-site-kit"):e?.code===l?(0,s.__)("The server provided an invalid response","google-site-kit"):e?.message}},68326:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(50532),o=i.n(s),a=i(17243);const n=o()(({metrics:e,dimensions:t,...i}={})=>({metrics:r(e),dimensions:l(t),...i}));function r(e){return(0,a.castArray)(e).map(e=>"string"==typeof e?{name:e}:e).filter(e=>(0,a.isPlainObject)(e))}function l(e){return(0,a.castArray)(e).map(e=>"string"==typeof e?{name:e}:e).filter(e=>(0,a.isPlainObject)(e))}},68485:(e,t,i)=>{"use strict";i.d(t,{r:()=>AdminScreenTooltip,i:()=>s.i});var s=i(15863),o=i(63696),a=i(50539),n=i(62688),r=i(36703),l=i(40960),c=i(60592),d=i(14007),g=i(39771),u=i(32947),m=i(62540);function JoyrideTooltip(e){const{title:t,content:s,dismissLabel:a,disableOverlay:n=!0,target:p,cta:I=!1,className:y,styles:h={},slug:A="",placement:M="auto",onDismiss:N=()=>{},onView:T=()=>{},onTourStart:S=()=>{},onTourEnd:k=()=>{}}=e;function j(){return!!i.g.document.querySelector(p)}const[f,b]=(0,o.useState)(j),_=(0,u.dv)(),x=_===u.mp||_===u.Lg,[v,C]=(0,o.useState)(!0),D=(0,o.useRef)(x);if((0,l.A)(()=>{j()&&b(!0)},f?null:250),(0,o.useEffect)(()=>{let e=()=>{};if("function"==typeof i.g.ResizeObserver){const t=i.g.document.querySelector(p);if(t){const s=new ResizeObserver(()=>{i.g.dispatchEvent(new Event("resize"))});s.observe(t),e=()=>s.disconnect()}}return e},[p,f]),(0,o.useEffect)(()=>{let e;return D.current!==x&&(C(!1),e=setTimeout(()=>{C(!0)},50),D.current=x),()=>{e&&clearTimeout(e)}},[x]),!f)return null;const w=[{title:t,target:p,content:s,disableBeacon:!0,isFixed:!0,placement:M,cta:I,className:y}],E={close:a,last:a};return(0,m.jsx)(d.A,{slug:A,children:(0,m.jsx)(r.Ay,{callback:function({type:e}){switch(e){case r.qY.TOUR_START:S(),i.g.document.body.classList.add("googlesitekit-showing-tooltip");break;case r.qY.TOUR_END:k(),i.g.document.body.classList.remove("googlesitekit-showing-tooltip");break;case r.qY.STEP_AFTER:N();break;case r.qY.TOOLTIP:T()}},disableOverlay:n,spotlightPadding:0,floaterProps:g.ei,locale:E,steps:w,styles:{...g.R0,...h,options:{...g.R0.options,...h?.options},spotlight:{...g.R0.spotlight,...h?.spotlight}},tooltipComponent:c.A,run:v,disableScrolling:!0})})}JoyrideTooltip.propTypes={title:n.PropTypes.node,content:n.PropTypes.string,disableOverlay:n.PropTypes.bool,dismissLabel:n.PropTypes.string,target:n.PropTypes.string.isRequired,onDismiss:n.PropTypes.func,onShow:n.PropTypes.func,className:n.PropTypes.string,styles:n.PropTypes.object,slug:n.PropTypes.string,placement:n.PropTypes.string,onView:n.PropTypes.func};var p=i(7081),I=i(12850),y=i(77766);function AdminScreenTooltip(){const e=(0,y.A)(),{setValue:t}=(0,a.useDispatch)(p.n),i=(0,u.dv)(),{isTooltipVisible:s=!1,target:n,placement:r,className:l,tooltipSlug:c,title:d,content:g,dismissLabel:h}=(0,a.useSelect)(e=>e(p.n).getValue("admin-screen-tooltip")||{isTooltipVisible:!1});const A=(0,o.useCallback)(()=>{c&&(0,I.sx)(`${e}_${c}`,"tooltip_dismiss"),t("admin-screen-tooltip",void 0)},[t,c,e]);if(!s)return null;const M=i===u.mp||i===u.Lg,N=null!=n?n:'#adminmenu [href*="page=googlesitekit-settings"]',T=null!=r?r:"right";return(0,m.jsx)(JoyrideTooltip,{target:M?"body":N,placement:M?"center":T,className:M?"googlesitekit-tour-tooltip__modal_step"
(0,n.__)("%s (Please try again.)","google-site-kit"),N)),m||(N=(0,n.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */
(0,n.__)("Error: %s","google-site-kit"),N));const T=t?.data?.reconnectURL;T&&(0,r.m)(T)&&(N=(0,n.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */ /* translators: 1: Original error message 2: Reconnect URL */
(0,n.__)('%1$s To fix this, <a href="%2$s">redo the plugin setup</a>.',"google-site-kit"),N,T));return(0,u.jsx)(d.A,{className:e,type:d.A.TYPES.ERROR,description:(0,u.jsx)("span",{dangerouslySetInnerHTML:(0,g.p9)(N,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:M?{label:(0,n.__)("Retry","google-site-kit"),onClick:A}:void 0,hideIcon:I})}ErrorNotice.propTypes={className:o().string,error:o().shape({message:o().string}),hasButton:o().bool,storeName:o().string,message:o().string,noPrefix:o().bool,skipRetryMessage:o().bool,hideIcon:o().bool}},78340:(e,t,i)=>{"use strict";i.d(t,{s:()=>s});const s="core/forms"},79829:(e,t,i)=>{"use strict";i.d(t,{Eo:()=>g,JK:()=>I,K5:()=>p,jq:()=>m,mK:()=>d});var s=i(17243),o=i(50532),a=i.n(o),n=i(82871);function r(e,t={}){const{formatUnit:i,formatDecimal:s}=function(e,t={}){const{hours:i,minutes:s,seconds:o}=l(e);return{hours:i,minutes:s,seconds:o,formatUnit(){const{unitDisplay:a="short",...r}=t,l={unitDisplay:a,...r,style:"unit"};return 0===e?m(o,{...l,unit:"second"}):(0,n.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,n._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?m(o,{...l,unit:"second"}):"",s?m(s,{...l,unit:"minute"}):"",i?m(i,{...l,unit:"hour"}):"").trim()},formatDecimal(){const t=(0,n.sprintf)(
// translators: %s: number of seconds with "s" as the abbreviated unit.
// translators: %s: number of seconds with "s" as the abbreviated unit.
(0,n.__)("%ds","google-site-kit"),o);if(0===e)return t;const a=(0,n.sprintf)(
// translators: %s: number of minutes with "m" as the abbreviated unit.
// translators: %s: number of minutes with "m" as the abbreviated unit.
(0,n.__)("%dm","google-site-kit"),s),r=(0,n.sprintf)(
// translators: %s: number of hours with "h" as the abbreviated unit.
// translators: %s: number of hours with "h" as the abbreviated unit.
(0,n.__)("%dh","google-site-kit"),i);return(0,n.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,n._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?t:"",s?a:"",i?r:"").trim()}}}(e,t);try{return i()}catch{return s()}}function l(e){e=parseInt(e,10),Number.isNaN(e)&&(e=0);return{hours:Math.floor(e/60/60),minutes:Math.floor(e/60%60),seconds:Math.floor(e%60)}}function c(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e}function d(e){let t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:(0,s.isPlainObject)(e)&&(t={...e}),t}function g(e,t={}){e=(0,s.isFinite)(e)?e:Number(e),(0,s.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const i=d(t),{style:o="metric"}=i;return"metric"===o?function(e){const t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?(0,n.sprintf)(
// translators: %s: an abbreviated number in millions.
// translators: %s: an abbreviated number in millions.
(0,n.__)("%sM","google-site-kit"),m(c(e),e%10==0?{}:t)):1e4<=e?(0,n.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,n.__)("%sK","google-site-kit"),m(c(e))):1e3<=e?(0,n.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,n.__)("%sK","google-site-kit"),m(c(e),e%10==0?{}:t)):m(e,{signDisplay:"never",maximumFractionDigits:1})}(e):"duration"===o?r(e,i):"durationISO"===o?function(e){let{hours:t,minutes:i,seconds:s}=l(e);return s=("0"+s).slice(-2),i=("0"+i).slice(-2),t=("0"+t).slice(-2),"00"===t?`${i}:${s}`:`${t}:${i}:${s}`}(e):m(e,i)}const u=a()(console.warn);function m(e,t={}){const{locale:i=I(),...s}=t;try{return new Intl.NumberFormat(i,s).format(e)}catch(t){u(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(i)}, ${JSON.stringify(s)} ).format( ${typeof e} )`,t.message)}const o={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},a=["signDisplay","compactDisplay"],n={};for(const[e,t]of Object.entries(s))o[e]&&t===o[e]||a.includes(e)||(n[e]=t);try{return new Intl.NumberFormat(i,n).format(e)}catch{return new Intl.NumberFormat(i).format(e)}}function p(e,t={}){const{locale:i=I(),style:s="long",type:o="conjunction"}=t;if(Intl.ListFormat){return new Intl.ListFormat(i,{style:s,type:o}).format(e)}
/* translators: used between list items, there is a space after the comma. */const a=(0,n.__)(", ","google-site-kit");return e.join(a)}function I(e=i.g){const t=(0,s.get)(e,["_googlesitekitLegacyData","locale"]);if(t){const e=t.match(/^(\w{2})?(_)?(\w{2})/);if(e&&e[0])return e[0].replace(/_/g,"-")}return e.navigator.language}},80035:(e,t,i)=>{"use strict";i.d(t,{A:()=>M});var s,o=i(62688),a=i.n(o),n=i(4452),r=i.n(n),l=i(63696),c=i(19793);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},d.apply(null,arguments)}const warning_notice=e=>l.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=l.createElement("path",{fill:"currentColor",d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1m0 14a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m-1-2h2V6h-2z"})));var g=i(42343),u=i(49655),m=i(62540);const p={[u.Q.NEW]:g.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=p[e]||warning_notice;return(0,m.jsx)(t,{width:24,height:24})}function Title({className:e,children:t}){return(0,m.jsx)("p",{className:r()("googlesitekit-notice__title",e),children:t})}function Description({className:e,children:t}){return(0,m.jsx)("p",{className:r()("googlesitekit-notice__description",e),children:t})}Icon.propTypes={type:a().oneOf(Object.values(u.Q))},Title.propTypes={className:a().string,children:a().node},Description.propTypes={className:a().string,children:a().node};var I=i(49383),y=i(83366);function CTAButton({label:e,disabled:t,inProgress:i,onClick:s,href:o,external:a=!1,hideExternalIndicator:n=!1}){let r;return a&&!n&&(r=(0,m.jsx)(y.A,{width:14,height:14})),(0,m.jsx)(I.SpinnerButton,{className:"googlesitekit-notice__cta",disabled:t,isSaving:i,onClick:s,href:o,target:a?"_blank":void 0,trailingIcon:r,children:e})}CTAButton.propTypes={label:a().string.isRequired,disabled:a().bool,inProgress:a().bool,onClick:a().func,href:a().string,external:a().bool,hideExternalIndicator:a().bool};var h=i(82871);function DismissButton({label:e=(0,h.__)("Got it","google-site-kit"),onClick:t,disabled:i}){return(0,m.jsx)(I.Button,{onClick:t,disabled:i,tertiary:!0,children:e})}DismissButton.propTypes={label:a().string,onClick:a().func.isRequired,disabled:a().bool};const A=(0,l.forwardRef)(({className:e,title:t,description:i,dismissButton:s,ctaButton:o,type:a=u.Q.INFO,children:n,hideIcon:l},c)=>(0,m.jsxs)("div",{ref:c,className:r()("googlesitekit-notice",`googlesitekit-notice--${a}`,e),children:[!l&&(0,m.jsx)("div",{className:"googlesitekit-notice__icon",children:(0,m.jsx)(Icon,{type:a})}),(0,m.jsxs)("div",{className:"googlesitekit-notice__content",children:[t&&(0,m.jsx)(Title,{children:t}),i&&(0,m.jsx)(Description,{children:i})]}),(s?.label||s?.onClick||o?.label&&(o?.onClick||o?.href)||n)&&(0,m.jsxs)("div",{className:"googlesitekit-notice__action",children:[n,(s?.label||s?.onClick)&&(0,m.jsx)(DismissButton,{label:s.label,onClick:s.onClick,disabled:s.disabled}),o?.label&&(o?.onClick||o?.href)&&(0,m.jsx)(CTAButton,{label:o.label,onClick:o.onClick,inProgress:o.inProgress,disabled:o.disabled,href:o.href,external:o.external,hideExternalIndicator:o.hideExternalIndicator})]})]}));A.TYPES=u.Q,A.propTypes={className:a().string,title:a().oneOfType([a().string,a().object]),description:a().node,type:a().oneOf(Object.values(u.Q)),dismissButton:a().shape(DismissButton.propTypes),ctaButton:a().shape({...CTAButton.propTypes,label:a().string}),children:a().node,hideIcon:a().bool};const M=A},80452:(e,t,i)=>{"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},a.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0
(0,a.__)("%s is disconnected, some of your metrics cant be displayed","google-site-kit"),i.name):(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,a.__)("%s is disconnected, metric cant be displayed","google-site-kit"),i.name)}),(0,I.jsx)(u.A,{onClick:t,secondary:!0,children:(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,a.__)("Connect %s","google-site-kit"),i.name)})]})]})}),p&&(0,I.jsxs)(n.Fragment,{children:[(0,I.jsx)("div",{className:"googlesitekit-km-connect-module-cta-tile__ghost-card",children:(0,I.jsx)(GhostCardGreenSVG,{})}),(0,I.jsx)("div",{className:"googlesitekit-km-connect-module-cta-tile__ghost-card",children:(0,I.jsx)(GhostCardGreenSVG,{})}),(0,I.jsx)("div",{className:"googlesitekit-km-connect-module-cta-tile__ghost-card",children:(0,I.jsx)(GhostCardRedSVG,{})})]})]}):null}ConnectModuleCTATile.propTypes={moduleSlug:o().string.isRequired}},88933:(e,t,i)=>{"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},a.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 43 44"},e),s||(s=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#FBBC05",d:"m2.253 12.252 7.399 5.658A13 13 0 0 0 9 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22 22 0 0 1 0 22c0-3.506.81-6.814 2.253-9.748"}),o.createElement("path",{fill:"#EA4335",d:"m9.652 17.91-7.4-5.658A21.94 21.94 0 0 1 22 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91"}),o.createElement("path",{fill:"#34A853",d:"m2.25 31.742 7.396-5.67A12.975 12.975 0 0 0 22 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.94 21.94 0 0 1 2.25 31.742"}),o.createElement("path",{fill:"#4285F4",d:"m36.34 38.52-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52"}))))},89318:(e,t,i)=>{"use strict";i.d(t,{M9:()=>j,sx:()=>S,BI:()=>k});var s=i(17243);const o="_googlesitekitDataLayer",a="data-googlesitekit-gtag";function n(e){return function(){e[o]=e[o]||[],e[o].push(arguments)}}var r=i(65214);const l={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};const{activeModules:c=[],isSiteKitScreen:d,trackingEnabled:g,trackingID:u,referenceSiteURL:m,userIDHash:p,isAuthenticated:I,userRoles:y}=i.g._googlesitekitTrackingData||{},h={activeModules:c,trackingEnabled:g,trackingID:u,referenceSiteURL:m,userIDHash:p,isSiteKitScreen:d,userRoles:y,isAuthenticated:I,pluginVersion:"1.167.0"},{enableTracking:A,disableTracking:M,isTrackingEnabled:N,initializeSnippet:T,trackEvent:S,trackEventOnce:k}=function(e,t=i.g,c=i.g){const d={...l,...e};d.referenceSiteURL&&(d.referenceSiteURL=d.referenceSiteURL.toString().replace(/\/+$/,""));const g=function(e,t){const s=n(t);let l;const{activeModules:c,referenceSiteURL:d,userIDHash:g,userRoles:u=[],isAuthenticated:m,pluginVersion:p}=e;return function(){const{document:t}=i.g;if(void 0===l&&(l=!!t.querySelector(`script[${a}]`)),l)return!1;l=!0;const n=u?.length?u.join(","):"";s("js",new Date),s("config",e.trackingID,{groups:"site_kit",send_page_view:e.isSiteKitScreen,domain:d,plugin_version:p||"",enabled_features:Array.from(r.t).join(","),active_modules:c.join(","),authenticated:m?"1":"0",user_properties:{user_roles:n,user_identifier:g}});const I=t.createElement("script");return I.setAttribute(a,""),I.async=!0,I.src=`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${o}`,t.head.appendChild(I),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${o}`}}}(d,t),u=function(e,t,i,s){const o=n(t);return async function(t,a,n,r){const{trackingEnabled:l}=e;if(!l)return null;i();const c={send_to:"site_kit",event_category:t,event_label:n,value:r};return new Promise(e=>{const i=setTimeout(function(){s.console.warn(`Tracking event "${a}" (category "${t}") took too long to fire.`),e()},1e3);function n(){clearTimeout(i),e()}o("event",a,{...c,event_callback:n}),s._gaUserPrefs?.ioo?.()&&n()})}}(d,t,g,c),m={};return{enableTracking:function(){d.trackingEnabled=!0},disableTracking:function(){d.trackingEnabled=!1},initializeSnippet:g,isTrackingEnabled:function(){return!!d.trackingEnabl
(0,l.__)("Source: %s","google-site-kit"),`<a>${e}</a>`),{a:(0,g.jsx)(c.A,{href:t,external:s},"link")})})}SourceLink.propTypes={name:o().string,href:o().string,className:o().string,external:o().bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1};const u=SourceLink},91865:(e,t,i)=>{"use strict";i.d(t,{A:()=>DataBlockGroup});var s=i(31589),o=i(15844),a=i(63696),n=i(50787),r=i(62540);function DataBlockGroup({className:e,children:t}){const l=(0,a.useRef)();function c(e,t){e.forEach(e=>{const i=e?.querySelector(".googlesitekit-data-block__datapoint");i&&(i.style.fontSize=t)})}const d=(0,n.d)(function(){const e=l?.current?.querySelectorAll(".googlesitekit-data-block");if(!e?.length)return;let t=1;if(c(e,""),e.forEach(e=>{const i=e.querySelector(".googlesitekit-data-block__datapoint");if(!i)return;const s=i?.parentElement?.offsetWidth;if(i.scrollWidth>s){const e=s/i.scrollWidth,o=Math.floor(10*e)/10;o<t&&(t=o)}}),t<1&&t>0){const s=parseInt(i.g?.getComputedStyle(e[0].querySelector(".googlesitekit-data-block__datapoint"))?.fontSize,10),o=Math.floor(s*t);c(e,`${Math.max(o,14)}px`)}},50);return(0,s.A)("resize",d),(0,o.A)(()=>{d()}),(0,r.jsx)("div",{ref:l,className:e,children:t})}},92473:(e,t,i)=>{"use strict";i.d(t,{A:()=>MetricTileHeader});var s=i(62688),o=i.n(s),a=i(10953),n=i(16834),r=i(15167),l=i(62540);function MetricTileHeader({title:e,infoTooltip:t,loading:i}){return(0,l.jsxs)("div",{className:"googlesitekit-km-widget-tile__title-container",children:[(0,l.jsx)(r.A,{as:"h3",size:"small",type:"label",className:"googlesitekit-km-widget-tile__title",children:e}),i?(0,l.jsx)(n.A,{children:(0,l.jsx)(a.A,{title:t})}):(0,l.jsx)(a.A,{title:t})]})}MetricTileHeader.propTypes={title:o().string,infoTooltip:o().oneOfType([o().string,o().element]),loading:o().bool}},92698:(e,t,i)=>{"use strict";i.d(t,{A:()=>u});var s=i(63696),o=i(50539),a=i(93896),n=i(58116),r=i(37226),l=i(45472),c=i(21134),d=i(89318),g=i(77766);function u(e){const t=(0,g.A)(),i=(0,o.useSelect)(t=>t(r.i).getModule(e)),u=(0,o.useSelect)(e=>e(n.oR).hasCapability(n.HD)),{activateModule:m}=(0,o.useDispatch)(r.i),{navigateTo:p}=(0,o.useDispatch)(l.M),{setInternalServerError:I}=(0,o.useDispatch)(a.O4),y=(0,s.useCallback)(async()=>{const{error:i,response:s}=await m(e);i?I({id:`${e}-setup-error`,description:i.message}):(await(0,d.sx)(`${t}_widget-activation-cta`,"activate_module",e),await(0,c.SO)("module_setup",e,{ttl:300}),p(s.moduleReauthURL))},[m,e,p,I,t]);return i?.name&&u?y:null}},93431:(e,t,i)=>{"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},a.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 173 152"},e),s||(s=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#FBBC04",d:"M107.91 41.72c7.73-13.22 3.14-30.12-10.24-37.75S67.18.87 59.45 14.09c-.35.59-.66 1.2-.96 1.81l-26.1 44.66q-.435.66-.84 1.35c-.27.46-.52.93-.76 1.4L3.67 110.1l48.45 27.16 26.98-46.4q.435-.66.84-1.35c.27-.46.52-.93.76-1.39l26.11-44.67c.38-.57.76-1.14 1.1-1.73"}),o.createElement("path",{fill:"#34A853",d:"M52.34 137.11c-7.68 13.43-25 18.38-38.31 10.62s-18.02-24.57-10.34-38 24.86-18.39 38.16-10.64 18.18 24.59 10.49 38.02"}),o.createElement("path",{fill:"#4285F4",d:"M158.79 51.86c-13.23-7.62-30.15-3.1-37.79 10.1l-27.66 47.8c-7.64 13.2-3.11 30.08 10.13 37.7 13.23 7.62 30.15 3.1 37.79-10.1l27.66-47.8c7.63-13.2 3.1-30.08-10.13-37.7"}))))},93896:(e,t,i)=>{"use strict";i.d(t,{O4:()=>s,OQ:()=>a,qc:()=>o});const s="core/site",o="primary",a="secondary"},94552:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var s=i(62688),o=i.n(s),a=i(4452),n=i.n(a),r=i(62540);function ChangeArrow({direction:e,invertColor:t,width:i,height:s}){return(0,r.jsx)("svg",{className:n()("googlesitekit-change-arrow",`googlesitekit-change-arrow--${e}`,{"googlesitekit-change-arrow--inverted-color":t}),width:i,he