đ Sid Gifari File Manager Pro
v8.0.5 | 2026-06-19 07:08:14 | PHP 8.1.34
đ
/ (Root)
/
home
/
therahul
/
reenrihair.com
/
wp-content
/
plugins
/
google-site-kit
/
dist
/
assets
/
js
đ /home/therahul/reenrihair.com/wp-content/plugins/google-site-kit/dist/assets/js
đ Refresh
âď¸
Editing: googlesitekit-entity-dashboard-f1768a126ca2c3d8f735.js
Writable
"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[290,804],{88933(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=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=>o.createElement("svg",n({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"}))))},19793(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=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=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1m4.806 8.592.592-.806-1.612-1.184-.592.806-3.89 5.296c-.166.226-.36.296-.512.296s-.346-.07-.512-.296l-1.474-2.007-.592-.806-1.612 1.184.592.806 1.474 2.007C9.191 15.6 9.971 16 10.792 16s1.6-.4 2.124-1.112z",clipRule:"evenodd"})))},11253(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=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=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},e),s||(s=o.createElement("g",{fill:"currentColor",fillRule:"evenodd"},o.createElement("path",{d:"M0 6.414 1.415 5l5.292 5.292-1.414 1.415z"}),o.createElement("path",{d:"m14.146.146 1.415 1.414L5.414 11.707 4 10.292z"}))))},2478(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=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=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 8"},e),s||(s=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.6.6 12 2 6 8 0 2 1.4.6 6 5.2z"})))},72545(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=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=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},e),s||(s=o.createElement("path",{fill:"currentColor",d:"M14 1.41 12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7z"})))},24560(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=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=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},e),s||(s=o.createElement("g",{fill:"currentColor",fillRule:"evenodd"},o.createElement("path",{d:"M0 6.414 1.415 5l5.292 5.292-1.414 1.415z"}),o.createElement("path",{d:"m14.146.146 1.415 1.414L5.414 11.707 4 10.292z"}))))},18418(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=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=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2 12"},e),s||(s=o.createElement("g",{fill:"currentColor",fillRule:"evenodd"},o.createElement("path",{d:"M0 0h2v7H0zM0 10h2v2H0z"}))))},83366(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=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=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),s||(s=o.createElement("path",{d:"M5 21a2 2 0 0 1-1.425-.575A2 2 0 0 1 3 19V5q0-.825.575-1.4Q4.175 3 5 3h7v2H5v14h14v-7h2v7q0 .825-.6 1.425Q19.825 21 19 21zm4.7-5.3-1.4-1.4L17.6 5H14V3h7v7h-2V6.4z"})))},46467(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o,n,r=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},a.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=r.createElement("rect",{width:18,height:12,x:3,y:6,stroke:"currentColor",strokeWidth:1.5,rx:2})),o||(o=r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m3.566 7.5 7.086 7.086a2 2 0 0 0 2.829 0l7.019-7.02"})),n||(n=r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M20.246 17.5 15.5 12.754M4 17.5l4.746-4.746"})))},91576(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=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=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),s||(s=o.createElement("path",{fill:"currentColor",d:"M16.666 7.5V5H15v2.5h-2.5v1.666H15v2.5h1.666v-2.5h2.5V7.5zM7.5 10a3.332 3.332 0 1 0 0-6.667A3.332 3.332 0 1 0 7.5 10m0-5c.916 0 1.666.75 1.666 1.666 0 .917-.75 1.667-1.666 1.667-.917 0-1.667-.75-1.667-1.667C5.833 5.75 6.583 5 7.5 5m5.325 7.133c-1.4-.717-3.217-1.3-5.325-1.3s-3.925.583-5.325 1.3A2.48 2.48 0 0 0 .833 14.35v2.316h13.333V14.35c0-.934-.508-1.792-1.341-2.217M12.5 15h-10v-.65c0-.317.166-.6.433-.734A10.1 10.1 0 0 1 7.5 12.5c1.975 0 3.575.608 4.566 1.116a.81.81 0 0 1 .434.734z"})))},42343(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=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=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=o.createElement("path",{fill:"currentColor",d:"m5.825 22 2.325-7.6L2 10h7.6L12 2l2.4 8H22l-6.15 4.4 2.325 7.6L12 17.3z"})))},63972(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=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=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 9"},e),s||(s=o.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M1 3.838 4.106 7 10 1"})))},85149(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o,n=i(63696);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-labelledby":"warning-title warning-desc",viewBox:"0 0 24 24"},e),s||(s=n.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),o||(o=n.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})))},88144(e,t,i){i.d(t,{default:()=>p});var s=i(57255),o=i.n(s),n=i(45019),r=i.n(n);const a=function(e={}){const{onDuplicate:t}=e,i=new(r());return function(e,s){const o=i.get(e);if(o instanceof Promise)return t?.(e),o;const n=s(e);return i.set(e,n),n.catch(()=>{}).finally(()=>{i.delete(e)}),n}};var l=i(58433);const c=function(e){const t=Object.keys(e).reduce((t,i)=>(t[(0,l.F)(i)]=e[i],t),{});let i=!1;return(e,s)=>{if(i)return s(e);setTimeout(()=>{i=!0},3e3);const{parse:o=!0}=e,n=e.path;if("string"==typeof e.path){const i=e.method?.toUpperCase()||"GET",s=(0,l.F)(n);if(o&&"GET"===i&&t[s]){const e=Promise.resolve(t[s].body);return delete t[s],e}if("OPTIONS"===i&&t[i]&&t[i][s]){const e=Promise.resolve(t[i][s]);return delete t[i][s],e}}return s(e)}},{nonce:g,nonceEndpoint:d,preloadedData:u,rootURL:h}=globalThis._googlesitekitAPIFetchData||{};o().nonceEndpoint=d,o().nonceMiddleware=o().createNonceMiddleware(g),o().rootURLMiddleware=o().createRootURLMiddleware(h),o().dedupeMiddleware=a({onDuplicate:function(e){globalThis.console.warn("Google Site Kit API: duplicate request",e)}}),o().preloadingMiddleware=c(u),o().use(o().nonceMiddleware),o().use(o().mediaUploadMiddleware),o().use(o().rootURLMiddleware),o().use(o().dedupeMiddleware),o().use(o().preloadingMiddleware);const p=o()},41671(e,t,i){i.d(t,{A:()=>l});var s=i(62688),o=i.n(s),n=i(82871),r=i(38432),a=i(97015);const LearnMoreLink=({className:e,external:t=!0,href:i,label:s=(0,n.__)("Learn more","google-site-kit"),onClick:o=()=>{}})=>i?a.createElement(r.A,{href:i,className:e,onClick:o,external:t},s):null;LearnMoreLink.propTypes={href:o().string.isRequired,className:o().string,label:o().string,external:o().bool,onClick:o().func};const l=LearnMoreLink},25804(e,t,i){i.d(t,{A:()=>d});var s,o=i(4452),n=i.n(o),r=i(49383),a=i(63696);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},l.apply(null,arguments)}const c=e=>a.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=a.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 g=i(97015);const d=({onOpen:e,title:t,tooltipClassName:i})=>t?g.createElement(r.Tooltip,{className:"googlesitekit-info-tooltip",tooltipClassName:n()("googlesitekit-info-tooltip__content",i),title:t,placement:"top",enterTouchDelay:0,leaveTouchDelay:5e3,onOpen:e,interactive:!0},g.createElement("span",{tabIndex:0,role:"tooltip"},g.createElement(c,{width:"16",height:"16"}))):null},39866(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(4452),o=i.n(s),n=i(97015);const __WEBPACK_DEFAULT_EXPORT__=({as:e="p",className:t,children:i})=>{const s=e;return n.createElement(s,{className:o()("googlesitekit-notice__description",t)},i)}},3749(e,t,i){i.d(t,{L:()=>s});let s=function(e){return e.NEW="new",e.SUCCESS="success",e.WARNING="warning",e.INFO="info",e.INFO_ALT="info-alt",e.INFO_ALT_2="info-alt-2",e.ERROR="error",e}({})},37325(e,t,i){i.d(t,{A:()=>A});var s=i(4452),o=i.n(s),n=i(63696),r=i(3749),a=i(62688),l=i.n(a),c=i(49383),g=i(83366),d=i(62540);function CTAButton({label:e,disabled:t,inProgress:i,onClick:s,href:n,external:r=!1,hideExternalIndicator:a=!1,tertiary:l=!1}){let u;return r&&!a&&(u=(0,d.jsx)(g.A,{width:14,height:14})),(0,d.jsx)(c.SpinnerButton,{className:o()("googlesitekit-notice__cta",{"googlesitekit-notice__cta--spinner__running":i}),disabled:t,isSaving:i,onClick:s,href:n,target:r?"_blank":void 0,trailingIcon:u,tertiary:l,children:e})}CTAButton.propTypes={label:l().string.isRequired,disabled:l().bool,inProgress:l().bool,onClick:l().func,href:l().string,external:l().bool,hideExternalIndicator:l().bool,tertiary:l().bool};var u=i(39866),h=i(82871),p=i(97015);const Notice_DismissButton=({label:e=(0,h.__)("Got it","google-site-kit"),onClick:t,disabled:i,href:s,external:n=!1,variant:r="text",icon:a,ariaLabel:l})=>p.createElement(c.Button,{className:o()({"googlesitekit-notice__dismiss":"icon"===r,"googlesitekit-notice__dismiss--icon":"icon"===r}),onClick:t,disabled:i,href:s,target:n?"_blank":void 0,tertiary:"icon"!==r,icon:"icon"===r?a:void 0,"aria-label":"icon"===r?l:void 0,hideTooltipTitle:"icon"===r},"icon"!==r?e:void 0);var m,f=i(19793),_=i(42343);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},b.apply(null,arguments)}const warning_notice=e=>n.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),m||(m=n.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"}))),k={[r.L.NEW]:_.A,[r.L.SUCCESS]:f.A,[r.L.INFO]:warning_notice,[r.L.WARNING]:warning_notice,[r.L.ERROR]:warning_notice};function Icon({type:e}){const t=k[e]||warning_notice;return(0,d.jsx)(t,{width:24,height:24})}Icon.propTypes={type:l().oneOf(Object.values(r.L))};var y=i(97015);const Notice_Title=({className:e,children:t})=>y.createElement("p",{className:o()("googlesitekit-notice__title",e)},t);var v=i(97015);const A=(0,n.forwardRef)(({actionContent:e,className:t,title:i,description:s,dismissButton:n,ctaButton:a,type:l=r.L.INFO,children:c,hideIcon:g},d)=>{const h=function(e){return"icon"===e?.variant?!!e.icon&&!!e.ariaLabel&&(e.onClick||e.href):!!e?.label||!!e?.onClick||!!e?.href}(n),p=!!a?.label&&(a?.onClick||a?.href),m=!!e||h||p;return v.createElement("div",{className:"googlesitekit-notice-container",ref:d},v.createElement("div",{className:o()("googlesitekit-notice",`googlesitekit-notice--${l}`,t),role:"status"},!g&&v.createElement("div",{className:"googlesitekit-notice__icon"},v.createElement(Icon,{type:l})),v.createElement("div",{className:"googlesitekit-notice__content"},i&&v.createElement(Notice_Title,null,i),s&&v.createElement(u.A,null,s),c),m&&v.createElement("div",{className:"googlesitekit-notice__action"},e,h&&v.createElement(Notice_DismissButton,n||{}),p&&v.createElement(CTAButton,{label:a.label,onClick:a.onClick,inProgress:a.inProgress,disabled:a.disabled,href:a.href,external:a.external,hideExternalIndicator:a.hideExternalIndicator,tertiary:a.tertiary}))))})},44148(e,t,i){i.d(t,{A:()=>f});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(63696),l=i(13606),c=i(82871),g=i(92449);var d=i(62659),u=i(4124),h=i(13047),p=i(38432),m=i(97015);function SourceLink({name:e="",href:t="",className:i="",external:s=!1}){const n=(0,d.A)(),r=(0,u.A)(),f=(0,a.useContext)(g.Ay),_=(0,a.useCallback)(()=>{f.slug&&n&&(0,h.sx)(`${n}_widget`,"click_source_link",f.slug)},[n,f]);return r?null:m.createElement("div",{className:o()("googlesitekit-source-link",i)},(0,l.A)((0,c.sprintf)(/* translators: %s: source link */ /* translators: %s: source link */ (0,c.__)("Source: %s","google-site-kit"),`<a>${e}</a>`),{a:m.createElement(p.A,{key:"link",href:t,external:s,onClick:_})}))}SourceLink.propTypes={name:r().string,href:r().string,className:r().string,external:r().bool};const f=SourceLink},40194(e,t,i){i.d(t,{G:()=>y});var s=i(50539),o=i(82871),n=i(20697),r=i(69908),a=i(33213);function l(e,t,i){return e?{slug:"dashboard-sharing",target:".googlesitekit-header",floaterProps:{target:".googlesitekit-view-only-menu",styles:{arrow:{margin:8}}},title:(0,o.__)("Get instant access to insights, no setup","google-site-kit"),content:t?(0,o.__)("See whatâs been shared with you here, or sign in with Google to configure services and sharing access","google-site-kit"):(0,o.__)("Site admins have shared the dashboard with you, so you can keep track of how your site is doing. See whatâs been shared with you here.","google-site-kit"),offset:0,spotlightPadding:0,placement:"bottom"}:{slug:"dashboard-sharing",target:".googlesitekit-header",floaterProps:{target:i?".googlesitekit-sharing-settings__button svg":".googlesitekit-sharing-settings__button"},title:(0,o.__)("Share insights with your team","google-site-kit"),content:(0,o.__)("Give access to your teammates or clients to view the dashboard instantly, no setup required. You control who sees what.","google-site-kit"),offset:0,spotlightPadding:0,placement:"bottom"}}function c(){return{target:".googlesitekit-widget--searchConsolePopularKeywords",floaterProps:{target:".googlesitekit-widget--searchConsolePopularKeywords .googlesitekit-table__wrapper"},title:(0,o.__)("Track how your site is doing on Search","google-site-kit"),content:(0,o.__)("Know whatâs driving growth and bringing your site more visitors","google-site-kit"),offset:0,spotlightPadding:0,placement:"top",isResponsive:!0}}function g({isViewOnly:e,canAuthenticate:t,isAnalyticsConnected:i,isActivateAnalyticsNotificationPresent:s,isKeyMetricsWidgetPresent:g,isAudienceSegmentationWidgetPresent:d}){if(!i){const i=[{target:".googlesitekit-widget--searchFunnelGA4",floaterProps:{target:".googlesitekit-widget--searchFunnelGA4 .googlesitekit-widget__body"},title:(0,o.__)("Track Search traffic trends, identify baselines","google-site-kit"),content:(0,o.__)("Know whatâs normal for your site. This is how you spot trends and measure real growth.","google-site-kit"),offset:0,spotlightPadding:0,placement:"top",isResponsive:!0},c(),l(e,t,!1)];return!e&&s&&i.push({slug:"activate-analytics",target:"#activate-analytics-notification",floaterProps:{target:"#activate-analytics-notification .googlesitekit-banner__cta"},title:(0,o.__)("Want to know what people do once they land on your site?","google-site-kit"),content:(0,o.__)("Get insights on how visitors navigate your site and help you achieve your goals by connecting Analytics","google-site-kit"),offset:0,spotlightPadding:0,placement:"bottom"}),{slug:a.I.WITHOUT_ANALYTICS,isRepeatable:!0,contexts:[n.jU,n.Ax],gaEventCategory:e=>`${e}_dashboard-tour-sc`,preloadWidgetAreas:[r.AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY,r.AREA_MAIN_DASHBOARD_CONTENT_PRIMARY],steps:i}}return{slug:a.I.WITH_ANALYTICS,isRepeatable:!0,contexts:[n.jU,n.Ax],gaEventCategory:e=>`${e}_dashboard-tour-ga4`,preloadWidgetAreas:[r.AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY,r.AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY,r.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION,r.AREA_MAIN_DASHBOARD_CONTENT_PRIMARY],steps:[g&&{target:".googlesitekit-widget-area--mainDashboardKeyMetricsPrimary",floaterProps:{target:".googlesitekit-km-change-metrics-cta"},title:(0,o.__)("Your goals, measured and clear","google-site-kit"),content:(0,o.__)("These Key Metrics show you exactly how your site is performing against the goals you set. Watch these numbers to see whatâs working and whatâs not.","google-site-kit"),offset:-3,spotlightPadding:4,placement:"top-end",isResponsive:!0},{target:".googlesitekit-widget--analyticsAllTrafficGA4",floaterProps:{target:".googlesitekit-widget--analyticsAllTraffic__user-count-chart"},title:(0,o.__)("Track traffic trends, identify baselines","google-site-kit"),content:(0,o.__)("Know whatâs normal for your site. This is how you spot trends and measure real growth.","google-site-kit"),offset:35,spotlightPadding:0,placement:"top",isResponsive:!0},d&&{target:".googlesitekit-widget-area--mainDashboardTrafficAudienceSegmentation",floaterProps:{target:".googlesitekit-widget-audience-tiles__body .googlesitekit-widget--analyticsAudienceTiles:last-child .googlesitekit-audience-segmentation-tile__header-title"},title:(0,o.__)("Get to know your site visitors","google-site-kit"),content:(0,o.__)("Not all visitors are the same, tailor your strategy based on who you want to attract","google-site-kit"),offset:14,spotlightPadding:4,placement:"top",isResponsive:!0},(!g||!d)&&c(),{target:".googlesitekit-widget--analyticsModulePopularPagesGA4",floaterProps:{target:".googlesitekit-table__head-item--pageviews .googlesitekit-table__head-item-title"},title:(0,o.__)("Discover your most popular and engaging content","google-site-kit"),content:(0,o.__)("Find out what your audience loves and double down on what resonates most","google-site-kit"),offset:25,spotlightPadding:0,placement:"top",isResponsive:!0},l(e,t,!0)].filter(Boolean)}}var d=i(29785),u=i(97345),h=i(88273),p=i(84730),m=i(8732),f=i(62659),_=i(4124),b=i(22942),k=i(99893);function y(){const e=(0,_.A)(),t=(0,f.A)(),i=(0,s.useSelect)(e=>e(u.oR).hasCapability(u.ej),[]),o=(0,s.useSelect)(e=>e(h.i).isModuleConnected(b.L1)&&e(u.oR).hasAccessToShareableModule(b.L1),[]),r=(0,s.useSelect)(e=>{if(t!==n.jU)return!1;const i=e(m.D).getQueuedNotifications(n.jU,p.He.DEFAULT);return"activate-analytics-notification"===i?.[0]?.id},[t]),a=(0,s.useSelect)(e=>o&&!!e(d.O4).isKeyMetricsSetupCompleted()&&!e(u.oR).isKeyMetricsWidgetHidden(),[o]),l=(0,s.useSelect)(e=>o&&!!e(k.K9).isAudienceSegmentationSetupCompleted()&&!e(u.oR).isAudienceSegmentationWidgetHidden(),[o]);return g({isViewOnly:e,canAuthenticate:i,isAnalyticsConnected:!!o,isActivateAnalyticsNotificationPresent:r,isKeyMetricsWidgetPresent:a,isAudienceSegmentationWidgetPresent:l})}},75971(e,t,i){i.d(t,{WM:()=>s.WM,wA:()=>s.wA,ws:()=>s.ws});var s=i(49057);void 0===globalThis.googlesitekit&&(globalThis.googlesitekit={}),globalThis.googlesitekit.data=s.Ay},72056(e,t,i){var s=i(50037),o=i(78325),n=i(4452),r=i.n(n),a=i(63696),l=i(13606),c=i(82871),g=i(50539),d=i(20697),u=i(29785),h=i(97345),p=i(17884),m=i(4169),f=i(59352),_=i(30805),b=i(4008),k=i(4124),y=i(10740),v=i(56084),A=i(85662),x=i(22764),S=i(338),N=i(28534),j=i(72904),I=i(78307),w=i(75662),T=i(38432),C=i(56628),E=i(97343),M=i(85172),R=i(83880),D=i(55989),O=i(62540);const L=function DashboardEntityApp(){const e=(0,k.A)(),t=(0,_.i)("proactiveUserEngagement"),i=(0,g.useSelect)(t=>e?t(h.oR).getViewableModules():null),s=(0,g.useSelect)(e=>e(u.O4).getCurrentEntityURL()),o=(0,g.useSelect)(e=>e(u.O4).getPermaLinkParam()),n=(0,g.useSelect)(e=>e(u.O4).getAdminURL("googlesitekit-dashboard")),L={modules:i||void 0},P=(0,g.useSelect)(e=>e(m.aO).isWidgetContextActive(f.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,L)),z=(0,g.useSelect)(e=>e(m.aO).isWidgetContextActive(f.CONTEXT_ENTITY_DASHBOARD_CONTENT,L)),B=(0,g.useSelect)(e=>e(m.aO).isWidgetContextActive(f.CONTEXT_ENTITY_DASHBOARD_SPEED,L)),H=(0,g.useSelect)(e=>e(m.aO).isWidgetContextActive(f.CONTEXT_ENTITY_DASHBOARD_MONETIZATION,L)),W=(0,g.useSelect)(e=>e(u.O4).getDocumentationLinkURL("url-not-part-of-this-site"));(0,b.Z)();let U=null;return H?U=d.Gw:B?U=d.Ej:z?U=d.en:P&&(U=d.OT),null===s?(0,O.jsxs)("div",{className:"googlesitekit-widget-context googlesitekit-module-page googlesitekit-entity-dashboard",children:[(0,O.jsx)(v.A,{}),(0,O.jsx)(C.A,{}),(0,O.jsx)(y.xA,{children:(0,O.jsx)(y.fI,{children:(0,O.jsx)(y.fh,{size:12,children:(0,O.jsxs)(a.Fragment,{children:[(0,O.jsx)(T.A,{href:n,back:!0,small:!0,children:(0,c.__)("Back to the Site Kit dashboard","google-site-kit")}),(0,O.jsx)(M.A,{title:(0,c.__)("Detailed Page Stats","google-site-kit"),className:"googlesitekit-heading-2 googlesitekit-entity-dashboard__heading",fullWidth:!0}),(0,O.jsx)(w.A,{className:"googlesitekit-entity-dashboard__entity-header",children:(0,O.jsx)(y.xA,{children:(0,O.jsx)(y.fI,{children:(0,O.jsx)(y.fh,{size:12,children:(0,O.jsx)(R.A,{children:(0,l.A)((0,c.sprintf)(/* translators: %s: current entity URL. */ /* translators: %s: current entity URL. */ (0,c.__)("It looks like the URL %s is not part of this site or is not based on standard WordPress content types, therefore there is no data available to display. Visit our <link1>support forums</link1> or <link2><VisuallyHidden>Site Kit</VisuallyHidden> website</link2> for support or further information.","google-site-kit"),`<strong>${o}</strong>`),{strong:(0,O.jsx)("strong",{}),link1:(0,O.jsx)(T.A,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0}),link2:(0,O.jsx)(T.A,{href:W,external:!0}),VisuallyHidden:(0,O.jsx)(D.A,{})})})})})})})]})})})}),(0,O.jsx)(E.A,{})]}):(0,O.jsxs)(a.Fragment,{children:[(0,O.jsx)(v.A,{}),(0,O.jsx)(C.A,{}),(0,O.jsxs)(j.A,{showNavigation:!0,children:[(0,O.jsx)(N.A,{}),(0,O.jsx)(x.A,{}),!e&&(0,O.jsx)(A.A,{}),(0,O.jsx)(I.A,{})]}),(0,O.jsxs)("div",{className:"googlesitekit-page-content",children:[(0,O.jsx)(p.A,{id:d.OT,slug:f.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,className:r()({"googlesitekit-widget-context--last":U===d.OT})}),(0,O.jsx)(p.A,{id:d.en,slug:f.CONTEXT_ENTITY_DASHBOARD_CONTENT,className:r()({"googlesitekit-widget-context--last":U===d.en})}),(0,O.jsx)(p.A,{id:d.Ej,slug:f.CONTEXT_ENTITY_DASHBOARD_SPEED,className:r()({"googlesitekit-widget-context--last":U===d.Ej})}),(0,O.jsx)(p.A,{id:d.Gw,slug:f.CONTEXT_ENTITY_DASHBOARD_MONETIZATION,className:r()({"googlesitekit-widget-context--last":U===d.Gw})}),(0,O.jsx)(E.A,{})]}),t&&(0,O.jsx)(S.A,{})]})};var P=i(63081),z=i(97015);(0,s.A)(()=>{const e=document.getElementById("js-googlesitekit-entity-dashboard");if(e){const{viewOnly:t}=e.dataset;(0,o.render)(z.createElement(P.A,{viewContext:t?d.Is:d.f7},z.createElement(L,null)),e)}})},78422(e,t,i){i.d(t,{A:()=>h});var s=i(4452),o=i.n(s),n=i(15844),r=i(52684),a=i(63696),l=i(82871),c=i(50304),g=i(2478),d=i(97015);const u=(0,a.forwardRef)(({className:e="",children:t,collapsible:i=!1,defaultCollapsed:s,isCollapsed:h,Header:p,headerContents:m,Footer:f,noPadding:_=!1,widgetSlug:b},k)=>{const[y,v]=(0,a.useState)(!!s),A=(0,r.A)(u);function x(){i&&v(e=>!e)}(0,a.useEffect)(()=>{void 0!==h&&v(h)},[h]),(0,n.A)(()=>{void 0!==s&&void 0!==h&&console.warn(`Error in \`Widget\` component: The \`defaultCollapsed\` prop should not be used together with the \`isCollapsed\` prop. Providing the \`isCollapsed\` prop means the \`Widget\` component for slug "${b}" is controlled by its parent component, and the \`defaultCollapsed\` prop will be ignored.`)});const S=!!i&&void 0===h;let N;return S&&(N=y?(0,l.__)("Expand section","google-site-kit"):(0,l.__)("Hide section","google-site-kit")),d.createElement("div",{className:o()("googlesitekit-widget",`googlesitekit-widget--${b}`,{"googlesitekit-widget--no-padding":_},{"googlesitekit-widget--with-header":p},e),ref:k},p&&d.createElement("div",{"aria-expanded":S?!y:void 0,"aria-controls":S?`googlesitekit-widget-body-${A}`:void 0,"aria-label":S?N:void 0,className:o()("googlesitekit-widget__header",{"googlesitekit-widget__header--collapsible":i,"googlesitekit-widget__header--collapsed":y}),onClick:S?x:void 0,onKeyUp:S?e=>{"Enter"===e.key&&x()}:void 0,role:S?"button":void 0,tabIndex:S?0:void 0},d.createElement(p,null,d.createElement("div",{className:"googlesitekit-widget__header-inner"},!!i&&d.createElement(c.A,{marginLeft:4,marginRight:10},d.createElement(g.A,{width:12,height:12,className:o()("googlesitekit-widget__header-icon",{"googlesitekit-widget__header-icon--collapsed":y})})),m))),d.createElement("div",{className:o()("googlesitekit-widget__body",{"googlesitekit-widget__body--collapsed":!!y}),id:i?`googlesitekit-widget-body-${A}`:void 0},t),f&&d.createElement("div",{className:"googlesitekit-widget__footer"},d.createElement(f,null)))}),h=u},92449(e,t,i){i.d(t,{Ay:()=>r,Kq:()=>n});const s=(0,i(63696).createContext)({}),{Consumer:o,Provider:n}=s,r=s},97513(e,t,i){i.d(t,{Fo:()=>n,Lg:()=>r,Qb:()=>o,dv:()=>l,mp:()=>a});var s=i(24355);const o="xlarge",n="desktop",r="tablet",a="small";function l(){const e=(0,s.SO)();return e>1280?o:e>960?n:e>600?r:a}},24355(e,t,i){i.d(t,{SO:()=>a});var s=i(99123),o=i(55620);function n(){return[globalThis.innerWidth,globalThis.innerHeight]}function r({fps:e=60,leading:t=!1,initialWidth:i=0,initialHeight:r=0}={}){const[a,l]=(0,o._)("undefined"==typeof document?[i,r]:n,e,t);function c(){return l(n)}return(0,s.A)(window,"resize",c),(0,s.A)(window,"orientationchange",c),a}function a(e={}){return r(e)[0]}},14777(e,t,i){i.d(t,{fh:()=>a,xA:()=>u,fI:()=>g});var s=i(68102),o=i(4452),n=i.n(o),r=i(97015);const a=({className:e="",alignTop:t=!1,alignMiddle:i=!1,alignBottom:o=!1,alignRight:a=!1,alignLeft:l=!1,smAlignRight:c=!1,mdAlignRight:g=!1,lgAlignRight:d=!1,smSize:u=0,smStart:h=0,smOrder:p=0,mdSize:m=0,mdStart:f=0,mdOrder:_=0,lgSize:b=0,lgStart:k=0,lgOrder:y=0,size:v=0,children:A,...x})=>r.createElement("div",(0,s.A)({},x,{className:n()(e,"mdc-layout-grid__cell",{"mdc-layout-grid__cell--align-top":t,"mdc-layout-grid__cell--align-middle":i,"mdc-layout-grid__cell--align-bottom":o,"mdc-layout-grid__cell--align-right":a,"mdc-layout-grid__cell--align-left":l,"mdc-layout-grid__cell--align-right-phone":c,"mdc-layout-grid__cell--align-right-tablet":g,"mdc-layout-grid__cell--align-right-desktop":d,[`mdc-layout-grid__cell--span-${v}`]:12>=v&&v>0,[`mdc-layout-grid__cell--span-${b}-desktop`]:12>=b&&b>0,[`mdc-layout-grid__cell--start-${k}-desktop`]:12>=k&&k>0,[`mdc-layout-grid__cell--order-${y}-desktop`]:12>=y&&y>0,[`mdc-layout-grid__cell--span-${m}-tablet`]:8>=m&&m>0,[`mdc-layout-grid__cell--start-${f}-tablet`]:8>=f&&f>0,[`mdc-layout-grid__cell--order-${_}-tablet`]:8>=_&&_>0,[`mdc-layout-grid__cell--span-${u}-phone`]:4>=u&&u>0,[`mdc-layout-grid__cell--start-${h}-phone`]:4>=h&&h>0,[`mdc-layout-grid__cell--order-${p}-phone`]:4>=p&&p>0})}),A);var l=i(63696),c=i(97015);const g=(0,l.forwardRef)(({className:e="",children:t,...i},o)=>c.createElement("div",(0,s.A)({ref:o,className:n()("mdc-layout-grid__inner",e)},i),t));var d=i(97015);const u=(0,l.forwardRef)(({alignLeft:e=!1,fill:t=!1,className:i="",children:o,collapsed:r=!1,...a},l)=>d.createElement("div",(0,s.A)({className:n()("mdc-layout-grid",i,{"mdc-layout-grid--align-left":e,"mdc-layout-grid--collapsed":r,"mdc-layout-grid--fill":t})},a,{ref:l}),o))},99893(e,t,i){i.d(t,{CV:()=>w,Cu:()=>v,K9:()=>s,Kr:()=>p,Lf:()=>u,Oh:()=>r,PW:()=>I,Rx:()=>R,S9:()=>m,TQ:()=>g,Vt:()=>E,Wl:()=>k,ZC:()=>o,ZY:()=>a,_p:()=>M,ag:()=>h,aj:()=>d,bz:()=>T,dC:()=>N,dq:()=>C,fB:()=>j,fV:()=>S,iB:()=>c,kc:()=>l,mo:()=>_,nc:()=>x,pL:()=>A,rm:()=>y,to:()=>n,wo:()=>f,yn:()=>b});const s="modules/analytics-4",o="account_create",n="property_create",r="webdatastream_create",a="analyticsSetup",l=10,c="https://www.googleapis.com/auth/tagmanager.readonly",g="enhanced-measurement-form",d="enhanced-measurement-enabled",u="enhanced-measurement-should-dismiss-activation-banner",h="analyticsAccountCreate",p="analyticsCustomDimensionsCreate",m="https://www.googleapis.com/auth/analytics.edit",f="dashboardAllTrafficWidgetDimensionName",_="dashboardAllTrafficWidgetDimensionColor",b="dashboardAllTrafficWidgetDimensionValue",k="dashboardAllTrafficWidgetActiveRowIndex",y="dashboardAllTrafficWidgetLoaded",v={googlesitekit_post_date:{parameterName:"googlesitekit_post_date",displayName:"WordPress Post Date",description:"Created by Site Kit: Date when a post was published",scope:"EVENT"},googlesitekit_post_author:{parameterName:"googlesitekit_post_author",displayName:"WordPress Post Author",description:"Created by Site Kit: WordPress name of the post author",scope:"EVENT"},googlesitekit_post_categories:{parameterName:"googlesitekit_post_categories",displayName:"WordPress Post Categories",description:"Created by Site Kit: Names of categories assigned to a post",scope:"EVENT"},googlesitekit_post_type:{parameterName:"googlesitekit_post_type",displayName:"WordPress Post Type",description:"Created by Site Kit: Content type of a post",scope:"EVENT"},googlesitekit_event_provider:{parameterName:"googlesitekit_event_provider",displayName:"WordPress Event Provider",description:"Created by Site Kit: Plugin source that triggered a conversion event",scope:"EVENT"},googlesitekit_form_id:{parameterName:"googlesitekit_form_id",displayName:"WordPress Form ID",description:"Created by Site Kit: ID of the form that triggered a lead generation event",scope:"EVENT"}},A=Object.keys(v),x={ADD_TO_CART:"add_to_cart",PURCHASE:"purchase",SUBMIT_LEAD_FORM:"submit_lead_form",GENERATE_LEAD:"generate_lead",CONTACT:"contact"},S=[x.CONTACT,x.GENERATE_LEAD,x.SUBMIT_LEAD_FORM],N=[x.PURCHASE,x.ADD_TO_CART],j={"new-visitors":{description:"People who visited the site for the first time",displayName:"New visitors",membershipDurationDays:-1,filterClauses:[{clauseType:"INCLUDE",simpleFilter:{scope:"AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS",filterExpression:{andGroup:{filterExpressions:[{orGroup:{filterExpressions:[{dimensionOrMetricFilter:{fieldName:"newVsReturning",stringFilter:{matchType:"EXACT",value:"new"}}}]}},{orGroup:{filterExpressions:[{notExpression:{dimensionOrMetricFilter:{fieldName:"groupId",stringFilter:{matchType:"EXACT",value:"created_by_googlesitekit:new_visitors"}}}}]}}]}}}}]},"returning-visitors":{description:"People who have visited your site at least once before",displayName:"Returning visitors",membershipDurationDays:-1,filterClauses:[{clauseType:"INCLUDE",simpleFilter:{scope:"AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS",filterExpression:{andGroup:{filterExpressions:[{orGroup:{filterExpressions:[{dimensionOrMetricFilter:{fieldName:"newVsReturning",stringFilter:{matchType:"EXACT",value:"returning"}}}]}},{orGroup:{filterExpressions:[{notExpression:{dimensionOrMetricFilter:{fieldName:"groupId",stringFilter:{matchType:"EXACT",value:"created_by_googlesitekit:returning_visitors"}}}}]}}]}}}}]}},I="audiencePermissionsSetup",w="audienceTileCustomDimensionCreate",T="audience-selection-panel-expirable-new-badge-",C="audience",E="customDimension",M="property",R=[C,E,M]},5855(e,t,i){i.d(t,{A:()=>g});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(63696),l=i(62540);const c=(0,a.forwardRef)(({label:e,className:t,hasLeftSpacing:i=!1,...s},n)=>(0,l.jsx)("span",{ref:n,...s,className:o()("googlesitekit-badge",t,{"googlesitekit-badge--has-left-spacing":i}),children:e}));c.displayName="Badge",c.propTypes={label:r().string.isRequired,hasLeftSpacing:r().bool};const g=c},71189(e,t,i){i.d(t,{A:()=>CTAButton});var s=i(62688),o=i.n(s),n=i(49383),r=i(83366),a=i(62540);function CTAButton({label:e,ariaLabel:t,disabled:i,inProgress:s,onClick:o,href:l,external:c=!1,hideExternalIndicator:g=!1}){if(!e||!o&&!l)return null;let d;return c&&!g&&(d=(0,a.jsx)(r.A,{width:14,height:14})),(0,a.jsx)(n.SpinnerButton,{className:"googlesitekit-banner__cta","aria-label":t,disabled:i||s,isSaving:s,onClick:o,href:l,target:c?"_blank":void 0,trailingIcon:d,children:e})}CTAButton.propTypes={label:o().string,ariaLabel:o().string,disabled:o().bool,inProgress:o().bool,onClick:o().func,href:o().string,dismissOnClick:o().bool,dismissOptions:o().shape({expiresInSeconds:o().number,skipHidingFromQueue:o().bool})}},61983(e,t,i){i.d(t,{A:()=>DismissButton});var s=i(62688),o=i.n(s),n=i(82871),r=i(49383),a=i(62540);function DismissButton({className:e,label:t=(0,n.__)("Maybe later","google-site-kit"),onClick:i,disabled:s,tertiary:o=!0}){return i?(0,a.jsx)(r.Button,{className:e,onClick:i,disabled:s,tertiary:o,children:t}):null}DismissButton.propTypes={className:o().string,label:o().string,onClick:o().func,disabled:o().bool,tertiary:o().bool,dismissOptions:o().shape({expiresInSeconds:o().number,skipHidingFromQueue:o().bool})}},83891(e,t,i){i.d(t,{A:()=>f});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(63696),l=i(37325),c=i(97513),g=i(71189),d=i(13047),u=i(41671),h=i(62540);function Description({className:e,description:t,learnMoreLink:i,additionalDescription:s,children:n}){return(0,h.jsxs)("div",{className:o()("googlesitekit-banner__description",e),children:[(0,a.isValidElement)(t)?t:"string"==typeof t?(0,h.jsx)("span",{dangerouslySetInnerHTML:(0,d.p9)(t,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}):t," ",i?.href&&(0,h.jsx)(u.A,{...i}),s&&(0,h.jsx)("div",{className:"googlesitekit-banner__additional-description",children:s}),n]})}Description.propTypes={className:r().string,description:r().oneOfType([r().string,r().node]),learnMoreLink:r().shape(u.A.propTypes),additionalDescription:r().oneOfType([r().string,r().node]),children:r().node};var p=i(61983);function Footer({className:e,children:t}){return(0,h.jsx)("div",{className:o()("googlesitekit-banner__footer",e),children:t})}function HelpText({className:e,children:t}){return(0,h.jsx)("p",{className:o()("googlesitekit-banner__help-text",e),children:t})}function Title({className:e,children:t}){return(0,h.jsx)("p",{className:o()("googlesitekit-banner__title",e),children:t})}function TitleIcon({className:e,children:t}){return(0,h.jsx)("div",{className:o()("googlesitekit-banner__title-icon",e),children:t})}Footer.propTypes={className:r().string,children:r().node},HelpText.propTypes={className:r().string,children:r().node},Title.propTypes={className:r().string,children:r().node},TitleIcon.propTypes={className:r().string,children:r().node};const m=(0,a.forwardRef)(({className:e,titleIcon:t,title:i,description:s,additionalDescription:n,errorText:r,helpText:a,learnMoreLink:d,dismissButton:u,ctaButton:m,svg:f,footer:_},b)=>{const k=(0,c.dv)(),y=k===c.mp||k===c.Lg;let v=null;y&&f?.mobile?v=f.mobile:!y&&f?.desktop&&(v=f.desktop);const A=f?.verticalPosition?f.verticalPosition:"center";return(0,h.jsxs)("div",{ref:b,className:o()("googlesitekit-banner",e),children:[(0,h.jsxs)("div",{className:"googlesitekit-banner__content",children:[t&&(0,h.jsx)(TitleIcon,{children:t}),(0,h.jsx)(Title,{children:i}),(0,h.jsx)(Description,{description:s,learnMoreLink:d,additionalDescription:n}),a&&(0,h.jsx)(HelpText,{children:a}),r&&(0,h.jsx)(l.A,{type:"error",description:r}),(0,h.jsxs)("div",{className:"googlesitekit-notice__action",children:[m&&(0,h.jsx)(g.A,{...m}),u?.onClick&&(0,h.jsx)(p.A,{...u})]})]}),v&&(0,h.jsx)("div",{className:o()("googlesitekit-banner__svg-wrapper",{[`googlesitekit-banner__svg-wrapper--${A}`]:A}),style:{backgroundImage:`url(${v})`}}),_&&(0,h.jsx)(Footer,{children:_})]})});m.propTypes={titleIcon:r().node,title:r().string,description:r().oneOfType([r().string,r().node]),additionalDescription:r().oneOfType([r().string,r().node]),errorText:r().string,helpText:r().string,learnMoreLink:r().shape(u.A.propTypes),dismissButton:r().shape(p.A.propTypes),ctaButton:r().shape(g.A.propTypes),svg:r().shape({desktop:r().elementType,mobile:r().elementType,verticalPosition:r().oneOf(["top","center","bottom"])}),footer:r().node};const f=m},38017(e,t,i){i.d(t,{A:()=>l});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(62540);function ChangeArrow({direction:e,invertColor:t,width:i,height:s}){return(0,a.jsx)("svg",{className:o()("googlesitekit-change-arrow",`googlesitekit-change-arrow--${e}`,{"googlesitekit-change-arrow--inverted-color":t}),width:i,height:s,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"})})}ChangeArrow.propTypes={direction:r().string,invertColor:r().bool,width:r().number,height:r().number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9};const l=ChangeArrow},56084(e,t,i){i.d(t,{A:()=>CoreDashboardEffects});var s=i(81042),o=i(63696);var n=i(5924);function CoreDashboardEffects(){return(0,n.A)(),function(){const{y:e}=(0,s.A)(),[t,i]=(0,o.useState)(!1),n="googlesitekit-plugin--has-scrolled";(0,o.useEffect)(()=>{t?globalThis.document.body.classList.add(n):globalThis.document.body.classList.remove(n)},[t]),e>0&&!t?i(!0):0===e&&t&&i(!1)}(),null}},22764(e,t,i){i.d(t,{A:()=>DateRangeSelector});var s,o=i(4452),n=i.n(o),r=i(21795),a=i(63696),l=i(82871),c=i(53328),g=i(49383),d=i(50539),u=i(7972),h=i(97345),p=i(12896),m=i(62659),f=i(13047);function _(){return _=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},_.apply(null,arguments)}const b=e=>a.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 20"},e),s||(s=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 9H4v2h2zm4 0H8v2h2zm4 0h-2v2h2zm2-7h-1V0h-2v2H5V0H3v2H2C.89 2 .01 2.9.01 4L0 18a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 16H2V7h14z"})));var k=i(62540);function DateRangeSelector(){const e=(0,f.Ql)(),t=(0,d.useSelect)(e=>e(h.oR).getDateRange()),{setDateRange:i}=(0,d.useDispatch)(h.oR),{resetInViewHook:s}=(0,d.useDispatch)(u.nX),[o,_]=(0,a.useState)(!1),y=(0,a.useRef)(),v=(0,m.A)();(0,r.A)(y,()=>_(!1)),(0,p.l)([c._f,c.wn],y,()=>_(!1));const A=(0,a.useCallback)(()=>{_(!o)},[o]),x=(0,a.useCallback)(o=>{const n=Object.values(e)[o].slug;t!==n&&(0,f.sx)(`${v}_headerbar`,"change_daterange",n),s(),i(n),_(!1)},[e,t,s,i,v]),S=e[t]?.label,N=Object.values(e).map(e=>e.label);return(0,k.jsxs)("div",{ref:y,className:"googlesitekit-date-range-selector googlesitekit-dropdown-menu mdc-menu-surface--anchor",children:[(0,k.jsx)(g.Button,{className:n()("mdc-button--dropdown","googlesitekit-header__dropdown","googlesitekit-header__date-range-selector-menu","googlesitekit-border-radius-round--phone","googlesitekit-button-icon--phone"),onClick:A,icon:(0,k.jsx)(b,{width:"20",height:"20"}),"aria-haspopup":"menu","aria-expanded":o,"aria-controls":"date-range-selector-menu",title:(0,l.__)("Date range","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:S}),(0,k.jsx)(g.Menu,{menuOpen:o,menuItems:N,onSelected:x,id:"date-range-selector-menu",className:"googlesitekit-width-auto"})]})}},28534(e,t,i){i.d(t,{A:()=>T});var s,o=i(15844),n=i(79257),r=i(52684),a=i(63696),l=i(82871),c=i(49383),g=i(50539),d=i(70301),u=i(29785),h=i(7551),p=i(62659),m=i(13047);function f(){return f=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},f.apply(null,arguments)}const _=e=>a.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),s||(s=a.createElement("path",{fill:"currentColor",d:"m15.833 5.342-1.175-1.175L10 8.825 5.342 4.167 4.167 5.342 8.825 10l-4.658 4.658 1.175 1.175L10 11.175l4.658 4.658 1.175-1.175L11.175 10z"})));var b;function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},k.apply(null,arguments)}const y=e=>a.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),b||(b=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 9.5c0 1.407-.45 2.714-1.218 3.783L20.49 19 19 20.49l-5.717-5.708A6.46 6.46 0 0 1 9.5 16 6.5 6.5 0 1 1 16 9.5m-11 0C5 11.99 7.01 14 9.5 14S14 11.99 14 9.5 11.99 5 9.5 5 5 7.01 5 9.5",clipRule:"evenodd"})));var v=i(82351),A=i(62688),x=i.n(A),S=i(53328),N=i(54419);var j=i(62540);function I(){}function PostSearcherAutoSuggest({id:e,match:t,setMatch:i,isLoading:s,showDropdown:o=!0,setIsLoading:n=I,setIsActive:r=I,autoFocus:c,setCanSubmit:d=I,onClose:h=I,placeholder:p=""}){const m=(0,a.useRef)(),[f,_]=(0,a.useState)(""),b=t?.title,k=function(e,t){const[i,s]=(0,a.useState)(e);return(0,a.useEffect)(()=>{const i=setTimeout(()=>{s(e)},t);return()=>{clearTimeout(i)}},[e,t]),i}(f,f===b?0:200),[y,A]=(0,a.useState)([]),x=(0,l.__)("No results found","google-site-kit"),w=(0,g.useSelect)(e=>e(u.O4).getCurrentEntityTitle()),T=(0,a.useRef)(null),C=(0,a.useCallback)(()=>{r(!0)},[r]),E=(0,a.useCallback)(e=>{e.relatedTarget?.classList.contains("autocomplete__option--result")||(r(!1),_(T.current??w??""))},[w,r]),M=(0,a.useCallback)(e=>{if(Array.isArray(y)&&e!==x){const t=y.find(t=>t.title.toLowerCase()===e.toLowerCase());t?(T.current=t.title,d(!0),i(t),_(t.title)):T.current=null}else T.current=null,d(!1)},[y,d,i,x,_]),R=(0,a.useCallback)(e=>{d(!1),_(e.target.value)},[d]);(0,a.useEffect)(()=>{if(""!==k&&k!==w&&k?.toLowerCase()!==b?.toLowerCase()){const e="undefined"==typeof AbortController?void 0:new AbortController;return async function(){n(!0);const t=(0,N.get)("core","search","entity-search",{query:encodeURIComponent(k)},{useCache:!1,signal:e?.signal});m.current=t;try{const e=await t;A(e)}catch{A(null)}finally{t===m.current&&n(!1)}}(),()=>e?.abort()}return()=>{}},[k,n,w,b]),(0,a.useEffect)(()=>{f||A([])},[f]),(0,a.useEffect)(()=>{w&&_(w)},[w]);const D=(0,a.useRef)(),O=(0,a.useCallback)(e=>{const t=D.current;switch(e.keyCode){case S.yZ:t?.value&&(e.preventDefault(),t.selectionStart=0,t.selectionEnd=0);break;case S.Kp:t?.value&&(e.preventDefault(),t.selectionStart=t.value.length,t.selectionEnd=t.value.length)}switch(e.keyCode){case S._f:h();break;case S.Fm:M(f)}},[h,M,f]);return(0,j.jsxs)(v.G3,{className:"autocomplete__wrapper",onSelect:M,children:[(0,j.jsx)(v.oK,{ref:D,id:e,className:"autocomplete__input autocomplete__input--default",type:"text",onBlur:E,onChange:R,onFocus:C,placeholder:p,onKeyDown:O,value:f,autoFocus:c}),!s&&o&&k!==w&&""!==k&&0===y?.length&&(0,j.jsx)(v.Nf,{portal:!1,children:(0,j.jsx)(v.ex,{className:"autocomplete__menu autocomplete__menu--inline",children:(0,j.jsx)(v.jO,{value:x,className:"autocomplete__option autocomplete__option--no-results"})})}),o&&""!==k&&k!==w&&y?.length>0&&(0,j.jsx)(v.Nf,{portal:!1,children:(0,j.jsx)(v.ex,{className:"autocomplete__menu autocomplete__menu--inline",children:y.map(({id:e,title:t})=>(0,j.jsx)(v.jO,{value:t,className:"autocomplete__option autocomplete__option--result"},e))})})]})}PostSearcherAutoSuggest.propTypes={id:x().string,match:x().object,setCanSubmit:x().func,setMatch:x().func,isLoading:x().bool,setIsLoading:x().func,onKeyDown:x().func,autoFocus:x().bool,placeholder:x().string};var w=i(55989);const T=function EntitySearchInput(){const e=(0,r.A)(EntitySearchInput,"EntitySearchInput"),[t,i]=(0,a.useState)(!1),[s,f]=(0,a.useState)(!1),[b,k]=(0,a.useState)(!1),v=(0,p.A)(),A=(0,h.Ay)(),x=(0,a.useRef)(),S=(0,a.useCallback)(()=>{(0,m.sx)(`${v}_headerbar`,"open_urlsearch"),i(!0)},[v]),N=(0,a.useCallback)(()=>{(0,m.sx)(`${v}_headerbar`,"close_urlsearch"),i(!1)},[v]),[I,T]=(0,a.useState)({}),C=(0,g.useSelect)(e=>I?.url?e(u.O4).getAdminURL("googlesitekit-dashboard",{permaLink:I.url}):null),{navigateTo:E}=(0,g.useDispatch)(d.M);return(0,a.useEffect)(()=>{C&&(0,m.sx)(`${v}_headerbar_urlsearch`,"open_urldetails").finally(()=>{E(C)})},[C,E,v]),(0,o.A)(()=>{A===h.oE&&i(!0)}),(0,n.A)(()=>{t||x?.current?.focus()},[t]),t?(0,j.jsxs)("div",{className:"googlesitekit-entity-search googlesitekit-entity-search--is-open",children:[(0,j.jsx)(w.A,{children:(0,j.jsx)("label",{htmlFor:e,children:(0,l.__)("Page/URL Search","google-site-kit")})}),(0,j.jsx)(PostSearcherAutoSuggest,{id:e,match:I,setIsActive:k,setMatch:T,placeholder:(0,l.__)("Enter title or URLâŚ","google-site-kit"),isLoading:s,setIsLoading:f,showDropdown:b,onClose:N,autoFocus:!0}),s&&b&&(0,j.jsx)(c.ProgressBar,{className:"googlesitekit-entity-search__loading",compress:!0}),(0,j.jsx)("div",{className:"googlesitekit-entity-search__actions",children:(0,j.jsx)(c.Button,{onClick:N,trailingIcon:(0,j.jsx)(_,{width:"30",height:"20"}),className:"googlesitekit-entity-search__close",title:(0,l.__)("Close","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0})})]}):(0,j.jsx)("div",{className:"googlesitekit-entity-search",children:(0,j.jsx)(c.Button,{className:"googlesitekit-border-radius-round--phone googlesitekit-button-icon--phone",onClick:S,ref:x,title:(0,l.__)("Search","google-site-kit"),trailingIcon:(0,j.jsx)(y,{width:"20",height:"20"}),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:(0,l.__)("URL Search","google-site-kit")})})}},73198(e,t,i){i.d(t,{A:()=>ErrorNotice});var s=i(62688),o=i.n(s),n=i(63696),r=i(82871),a=i(84024),l=i(50539),c=i(3749),g=i(13047),d=i(13137),u=i(37325),h=i(62540);function ErrorNotice({className:e,error:t,hasButton:i=!1,storeName:s,message:o=t.message,noPrefix:p=!1,skipRetryMessage:m,hideIcon:f=!1}){const _=(0,l.useDispatch)(),b=(0,l.useSelect)(e=>s?e(s).getSelectorDataForError(t):null),k=(0,n.useCallback)(()=>{_(b.storeName).invalidateResolution(b.name,b.args)},[_,b]);if(!o||(0,d.G)(t))return null;const y=i&&(0,d.vl)(t,b);let v=o;i||m||(v=(0,r.sprintf)(/* translators: %s: Error message from Google API. */ /* translators: %s: Error message from Google API. */ (0,r.__)("%s (Please try again.)","google-site-kit"),v)),p||(v=(0,r.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */ (0,r.__)("Error: %s","google-site-kit"),v));const A=t?.data?.reconnectURL;A&&(0,a.m)(A)&&(v=(0,r.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */ /* translators: 1: Original error message 2: Reconnect URL */ (0,r.__)('%1$s To fix this, <a href="%2$s">redo the plugin setup</a>.',"google-site-kit"),v,A));return(0,h.jsx)(u.A,{className:e,type:c.L.ERROR,description:(0,h.jsx)("span",{dangerouslySetInnerHTML:(0,g.p9)(v,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:y?{label:(0,r.__)("Retry","google-site-kit"),onClick:k}:void 0,hideIcon:f})}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}},79961(e,t,i){i.d(t,{A:()=>n});var s=i(63696),o=i(84895);const n=(0,s.createContext)(o.t)},6730(e,t,i){i.d(t,{A:()=>GenericErrorHandlerActions});var s=i(62688),o=i.n(s),n=i(82871),r=i(38432),a=i(38021),l=i.n(a),c=i(63696),g=i(12417),d=i(1027),u=i(65123),h=i(49383),p=i(62540);function ReportErrorButton({message:e,componentStack:t}){const[i,s]=(0,c.useState)(!1);return(0,p.jsx)(h.Button,{"aria-label":i?(0,n.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){l()(`\`\`\`\n${e}\n${t}\n\`\`\``),s(!0)},trailingIcon:(0,p.jsx)(g.A,{className:"mdc-button__icon",icon:i?d.A:u.A}),children:i?(0,n.__)("Copied to clipboard","google-site-kit"):(0,n.__)("Copy error contents","google-site-kit")})}ReportErrorButton.propTypes={message:o().string,componentStack:o().string};const m=ReportErrorButton;function GenericErrorHandlerActions({message:e,componentStack:t}){return(0,p.jsxs)("div",{className:"googlesitekit-generic-error-handler-actions",children:[(0,p.jsx)(m,{message:e,componentStack:t}),(0,p.jsx)(r.A,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0,children:(0,n.__)("Report this problem","google-site-kit")})]})}GenericErrorHandlerActions.propTypes={message:o().string,componentStack:o().string}},72904(e,t,i){i.d(t,{A:()=>Qe});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(41814),l=i(63696),c=i(82871),g=i(50539),d=i(29785),u=i(97345),h=i(84730),p=i(7551),m=i(49993),f=i(13047),_=i(30805),b=i(62659);var k,y=i(4124),v=i(10740),A=i(45257),x=i(39525),S=i(15844),N=i(31589),j=i(30521),I=i(20697),w=i(7972);function T(){return T=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},T.apply(null,arguments)}const C=e=>l.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),k||(k=l.createElement("path",{d:"M10.953 8.464h2.12q.33 0 .573-.243a.79.79 0 0 0 .243-.574.78.78 0 0 0-.243-.573.78.78 0 0 0-.574-.244h-2.12a.79.79 0 0 0-.573.244.78.78 0 0 0-.243.573q0 .33.243.574a.79.79 0 0 0 .574.243m0 4.706h2.12q.33 0 .573-.244a.78.78 0 0 0 .243-.573.79.79 0 0 0-.243-.574.78.78 0 0 0-.574-.243h-2.12q-.33 0-.573.243a.79.79 0 0 0-.243.574q0 .33.243.573a.79.79 0 0 0 .574.244M6.79 9.32h1.712q.33 0 .573-.244a.78.78 0 0 0 .244-.573V6.79a.78.78 0 0 0-.244-.573.78.78 0 0 0-.573-.243H6.79a.78.78 0 0 0-.573.243.78.78 0 0 0-.243.573v1.712q0 .33.243.573a.78.78 0 0 0 .573.244Zm0 4.704h1.712q.33 0 .573-.242a.78.78 0 0 0 .244-.573v-1.712a.78.78 0 0 0-.244-.573.78.78 0 0 0-.573-.244H6.79a.78.78 0 0 0-.573.244.78.78 0 0 0-.243.573v1.712q0 .33.243.573a.78.78 0 0 0 .573.242M4.633 17q-.68 0-1.157-.476A1.58 1.58 0 0 1 3 15.367V4.633q0-.68.476-1.157A1.58 1.58 0 0 1 4.633 3h10.734q.68 0 1.157.476.476.477.476 1.157v10.734q0 .68-.476 1.157a1.58 1.58 0 0 1-1.157.476zm0-1.633h10.734V4.633H4.633z"})));var E,M,R,D;function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},O.apply(null,arguments)}const L=e=>l.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),E||(E=l.createElement("rect",{width:5.833,height:5.833,x:3,y:3,rx:1.167})),M||(M=l.createElement("rect",{width:5.833,height:5.833,x:11.167,y:3,rx:1.167})),R||(R=l.createElement("rect",{width:5.833,height:5.833,x:3,y:11.167,rx:1.167})),D||(D=l.createElement("rect",{width:5.833,height:5.833,x:11.167,y:11.167,rx:1.167})));var P;function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},z.apply(null,arguments)}const B=e=>l.createElement("svg",z({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),P||(P=l.createElement("path",{d:"M2.313 14.375a.84.84 0 0 1-.25-.615q0-.364.25-.614l3.75-3.75q.75-.75 1.803-.75 1.051 0 1.78.75l.958.958a.78.78 0 0 0 .574.229q.344 0 .572-.229l3.604-3.604h-1.228a.84.84 0 0 1-.615-.26.84.84 0 0 1-.26-.615.84.84 0 0 1 .26-.615.84.84 0 0 1 .615-.26h3.333q.354 0 .614.26a.84.84 0 0 1 .26.615v3.333a.84.84 0 0 1-.26.615.84.84 0 0 1-.614.26.84.84 0 0 1-.614-.26.84.84 0 0 1-.261-.615V7.979l-3.625 3.604q-.75.75-1.803.75-1.051 0-1.78-.75l-.98-.979a.75.75 0 0 0-.552-.229.75.75 0 0 0-.551.229L3.52 14.375a.82.82 0 0 1-.603.25.82.82 0 0 1-.606-.25Z"})));var H,W,U;function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},G.apply(null,arguments)}const Y=e=>l.createElement("svg",G({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),H||(H=l.createElement("path",{d:"M10 3c1.023 0 1.994.22 2.87.615l-.13.135-.053.322-.146.877-.71.758a4.667 4.667 0 1 0 2.316 2.156l.677-.676.963-.19.368-.333A7 7 0 1 1 10 3"})),W||(W=l.createElement("path",{d:"M12 10a2 2 0 1 1-4 0 2 2 0 0 1 4 0"})),U||(U=l.createElement("path",{d:"m15.76 3.856 2.042-.07-2.5 2.243-.992.199-4.563 4.563-.642-.642 4.412-4.715.198-1.19L15.895 2z"})));var F;function V(){return V=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},V.apply(null,arguments)}const q=e=>l.createElement("svg",V({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),F||(F=l.createElement("path",{d:"M8.668 12.938q.5.48 1.323.489.822.011 1.218-.594l3.417-5.125q.208-.312-.063-.583-.27-.27-.583-.063l-5.167 3.396q-.604.375-.624 1.177-.02.803.479 1.303m-4.334 3.729q-.48 0-.895-.209a1.47 1.47 0 0 1-.646-.625 8.5 8.5 0 0 1-.834-1.989 8.2 8.2 0 0 1-.291-2.198q0-1.709.656-3.219a8.5 8.5 0 0 1 1.792-2.646A8.5 8.5 0 0 1 6.772 3.99a8.1 8.1 0 0 1 3.229-.657q.938 0 1.812.188a7.3 7.3 0 0 1 1.688.583.76.76 0 0 1 .458.604q.063.417-.25.771a.82.82 0 0 1-.489.261.95.95 0 0 1-.573-.073 6.4 6.4 0 0 0-2.646-.584q-2.73 0-4.656 1.927-1.927 1.927-1.927 4.636 0 .854.25 1.698a7.4 7.4 0 0 0 .666 1.573h11.334a6 6 0 0 0 .687-1.615 6.8 6.8 0 0 0 .229-1.74q0-.645-.156-1.322a5.4 5.4 0 0 0-.469-1.282.82.82 0 0 1-.073-.583.87.87 0 0 1 .303-.479q.354-.27.75-.188.395.084.583.48a9.5 9.5 0 0 1 .594 1.604 6.6 6.6 0 0 1 .218 1.708 8.5 8.5 0 0 1-.26 2.281 8 8 0 0 1-.844 2.052 1.45 1.45 0 0 1-.667.625q-.437.21-.895.209z"})));var Z;function $(){return $=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},$.apply(null,arguments)}const X=e=>l.createElement("svg",$({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Z||(Z=l.createElement("path",{d:"M4.94 17a1.4 1.4 0 0 1-1.02-.418 1.4 1.4 0 0 1-.418-1.022V8.226q0-.604.418-1.022a1.39 1.39 0 0 1 1.02-.418q.605 0 1.022.418.418.419.418 1.022v7.334q0 .605-.418 1.022A1.4 1.4 0 0 1 4.94 17m5.077-.002a1.4 1.4 0 0 1-1.022-.417 1.4 1.4 0 0 1-.418-1.022l-.016-11.12q0-.603.418-1.021A1.4 1.4 0 0 1 10.001 3q.604 0 1.022.418.417.418.418 1.02l.015 11.12q0 .605-.418 1.023a1.4 1.4 0 0 1-1.021.418Zm5.045.002a1.4 1.4 0 0 1-1.022-.418 1.4 1.4 0 0 1-.418-1.022v-3.62q0-.605.418-1.022a1.4 1.4 0 0 1 1.022-.418q.603 0 1.02.418t.418 1.021v3.621q0 .605-.418 1.022a1.39 1.39 0 0 1-1.02.418"})));var Q=i(97513),K=i(11883);var J=i(4169),ee=i(59352);const te={[p.Oo]:{[I.SH]:ee.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,[I.OT]:ee.CONTEXT_MAIN_DASHBOARD_TRAFFIC,[I.x2]:ee.CONTEXT_MAIN_DASHBOARD_SITE_GOALS,[I.en]:ee.CONTEXT_MAIN_DASHBOARD_CONTENT,[I.Ej]:ee.CONTEXT_MAIN_DASHBOARD_SPEED,[I.Gw]:ee.CONTEXT_MAIN_DASHBOARD_MONETIZATION},[p.oE]:{[I.OT]:ee.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,[I.en]:ee.CONTEXT_ENTITY_DASHBOARD_CONTENT,[I.Ej]:ee.CONTEXT_ENTITY_DASHBOARD_SPEED,[I.Gw]:ee.CONTEXT_ENTITY_DASHBOARD_MONETIZATION}};var ie=i(62540);function Navigation(){const e=(0,p.Ay)(),t=(0,l.useRef)(),i=(0,b.A)(),s=function(){const e=(0,p.Ay)(),t=(0,y.A)();return(0,g.useSelect)(i=>{const s=t?i(u.oR).getViewableModules():null,o=i(u.oR).isKeyMetricsWidgetHidden(),n={modules:s||void 0};return Object.keys(te[e]).reduce((t,s)=>(s===I.SH&&o||i(J.aO).isWidgetContextActive(te[e][s],n)&&t.push(s),t),[])})}(),{calculateScrollPosition:n,defaultChipID:r,findClosestSection:a,isValidChipID:d,scrollToChip:h,updateURLHash:m}=function({visibleSections:e}){const t=(0,Q.dv)(),i=(0,y.A)(),s=(0,l.useCallback)(()=>e.includes(I.SH)?I.SH:i?e[0]||"":I.OT,[i,e])(),o=(0,l.useCallback)(t=>e.includes(t),[e]),n=(0,l.useCallback)(e=>{globalThis.history.replaceState({},"",`#${e}`)},[]),r=(0,l.useCallback)(e=>e!==s?(0,K.YJ)(`#${e}`,t):0,[t,s]),a=(0,l.useCallback)(e=>{globalThis.scrollTo({top:r(e,t,s),behavior:"smooth"})},[t,r,s]),c=(0,l.useCallback)(t=>{const i=document.querySelector(".googlesitekit-entity-header")?.getBoundingClientRect?.()?.bottom,{bottom:o}=t?.current?.getBoundingClientRect?.()??{};let n,r=s;for(const t of e){const e=document.getElementById(t);if(!e)continue;const s=e.getBoundingClientRect().top-20-(i||o||0);s<0&&(void 0===n||n<s)&&(n=s,r=t)}return r},[s,e]);return{calculateScrollPosition:r,defaultChipID:s,findClosestSection:c,isValidChipID:o,scrollToChip:a,updateURLHash:n}}({visibleSections:s}),_=globalThis.location.hash?.substring(1),[k,v]=(0,l.useState)(_||void 0),[A,T]=(0,l.useState)(!1),[E,M]=(0,l.useState)(_),{setValue:R}=(0,g.useDispatch)(w.nX),D=(0,l.useCallback)(({target:e})=>{const t=e.closest(".mdc-chip"),s=t?.dataset?.contextId;m(s),v(s),h(s),(0,f.sx)(`${i}_navigation`,"tab_select",s),setTimeout(()=>{R(w.Fc,s)},50)},[h,R,m,i]),O=(0,l.useCallback)(()=>{if(!t?.current)return;const{top:e}=t?.current?.getBoundingClientRect();if(0===globalThis.scrollY)T(!1);else{const t=document.querySelector(".googlesitekit-header")?.getBoundingClientRect?.()?.bottom;T(e===t)}},[]),P=(0,l.useCallback)(e=>{function s(e){R(w.Fc,void 0),M(e),v(void 0)}const o=a(t);if(k)k===o&&s(o);else{const{hash:t}=globalThis.location;o!==t?.substring(1)&&(e&&(0,f.sx)(`${i}_navigation`,"tab_scroll",o),m(o),s(o))}},[a,k,R,m,i]);(0,S.A)(()=>{if(!_)return M(r),void setTimeout(()=>m(r));const e=d(_)?_:r;M(e),R(w.Fc,e),setTimeout(()=>{const t=n(e);globalThis.scrollY!==t?h(e):R(w.Fc,void 0)},50)});const z=(0,l.useCallback)(e=>{O(),P(e)},[P,O]),H=(0,j.A)(z,150);(0,N.A)("scroll",H);const W=20,U={[I.SH]:{label:(0,c.__)("Key metrics","google-site-kit"),icon:(0,ie.jsx)(L,{width:W,height:W})},[I.OT]:{label:(0,c.__)("Traffic","google-site-kit"),icon:(0,ie.jsx)(X,{width:W,height:W})},[I.x2]:{label:(0,c.__)("Site goals","google-site-kit"),icon:(0,ie.jsx)(Y,{width:W,height:W})},[I.en]:{label:(0,c.__)("Content","google-site-kit"),icon:(0,ie.jsx)(C,{width:W,height:W})},[I.Ej]:{label:(0,c.__)("Speed","google-site-kit"),icon:(0,ie.jsx)(q,{width:W,height:W})},[I.Gw]:{label:(0,c.__)("Monetization","google-site-kit"),icon:(0,ie.jsx)(B,{width:W,height:W})}};return(0,ie.jsx)("nav",{className:o()("mdc-chip-set","googlesitekit-navigation",`googlesitekit-navigation--${e}`,{"googlesitekit-navigation--is-sticky":A}),ref:t,children:s.map(e=>(0,ie.jsx)(x.Chip,{id:e,label:U[e].label,leadingIcon:U[e].icon,onClick:D,selected:E===e,"data-context-id":e},e))})}function DashboardNavigation(){const e=(0,y.A)(),t=(0,g.useSelect)(t=>e?t(u.oR).getViewableModules():null),i=(0,g.useSelect)(e=>e(u.oR).getKeyMetrics());return(0,ie.jsx)(A.A,{loading:void 0===t||void 0===i,width:"100%",smallHeight:"59px",height:"71px",children:(0,ie.jsx)(Navigation,{})})}var se,oe,ne=i(49383),re=i(70301),ae=i(48276);function le(){return le=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},le.apply(null,arguments)}const ce=e=>l.createElement("svg",le({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),se||(se=l.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),oe||(oe=l.createElement("path",{fill:"currentColor",d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"})));var ge=i(38432),de=i(83880);const ue=function EntityHeader(){const e=(0,b.A)(),t=(0,p.Ay)(),i=(0,g.useSelect)(e=>e(d.O4).getCurrentEntityTitle()),s=(0,g.useSelect)(e=>e(d.O4).getCurrentEntityURL()),o=(0,l.useRef)(),[n,r]=(0,l.useState)(s),a=(0,l.useCallback)(()=>{if(!o.current)return;const e=o.current.clientWidth-40,t=globalThis.getComputedStyle(o.current.lastChild,null).getPropertyValue("font-size"),i=2*e/parseFloat(t);r((0,ae.r0)(s,i))},[s]),u=(0,j.A)(a,150);(0,N.A)("resize",u);const{navigateTo:h}=(0,g.useDispatch)(re.M),m=(0,g.useSelect)(e=>e(d.O4).getAdminURL("googlesitekit-dashboard")),_=(0,l.useCallback)(()=>{(0,f.sx)(`${e}_navigation`,"return_to_dashboard"),h(m)},[m,h,e]);return p.oE!==t||null===s||null===i?null:(0,ie.jsxs)("div",{className:"googlesitekit-entity-header",children:[(0,ie.jsx)("div",{className:"googlesitekit-entity-header__back",children:(0,ie.jsx)(ne.Button,{icon:(0,ie.jsx)(ce,{width:24,height:24}),"aria-label":(0,c.__)("Back to dashboard","google-site-kit"),onClick:_,text:!0,tertiary:!0,children:(0,c.__)("Back to dashboard","google-site-kit")})}),(0,ie.jsxs)("div",{ref:o,className:"googlesitekit-entity-header__details",children:[(0,ie.jsx)(de.A,{children:i}),(0,ie.jsx)(ge.A,{href:s,"aria-label":s,secondary:!0,external:!0,children:n})]})]})};var he=i(44436),pe=i(8732),me=i(89766);function CoreSiteBannerNotification({id:e,ctaURL:t,ctaTarget:i,...s}){const[o,n]=(0,l.useState)(!1),{dismissNotification:r,acceptNotification:a}=(0,g.useDispatch)(d.O4),{dismissNotification:c}=(0,g.useDispatch)(pe.D),u=(0,l.useCallback)(async s=>{t&&s.preventDefault(),n(!0);const{error:o}=await a(e);o||await c(e,{expiresInSeconds:f.Jg}),n(!1),!o&&t&&("_blank"!==i?window.location.assign(t):window.open(t,"_blank"))},[e,a,c,t,i]),h=(0,l.useCallback)(async()=>{await r(e)},[e,r]);return(0,ie.jsx)(me.A,{onCTAClick:u,onDismissClick:h,ctaInProgress:o,...s,id:e,ctaURL:t,ctaTarget:i})}CoreSiteBannerNotification.propTypes={content:r().string,ctaLabel:r().string,ctaTarget:r().string,ctaURL:r().string,dismissLabel:r().string,dismissible:r().bool,gaTrackingEventArgs:r().object,id:r().string.isRequired,learnMoreLabel:r().string,learnMoreURL:r().string,title:r().string.isRequired},CoreSiteBannerNotification.defaultProps={content:"",ctaLabel:"",ctaTarget:"",ctaURL:"",dismissLabel:(0,c.__)("OK, Got it!","google-site-kit"),dismissible:!0,learnMoreLabel:"",learnMoreURL:""};const fe=CoreSiteBannerNotification;const _e=function CoreSiteBannerNotifications(){const e=(0,b.A)(),[t,i]=(0,l.useState)(!1),[s,o]=(0,l.useState)(!1),n=(0,l.useRef)(Date.now()),r=(0,g.useSelect)(e=>e(d.O4).isUsingProxy()&&!1===e(u.oR).areSurveysOnCooldown()?e(u.oR).getCurrentSurvey():null),[a,c]=(0,l.useState)([]),{registerNotification:p}=(0,g.useDispatch)(pe.D),m=(0,g.useSelect)(e=>e(d.O4).getNotifications());return(0,l.useEffect)(()=>{const e=setTimeout(()=>{s||i(!0)},5e3);return()=>{clearTimeout(e)}},[s]),(0,l.useEffect)(()=>{Math.floor((Date.now()-n.current)/1e3)<5&&r&&o(!0)},[n,r,o]),(0,l.useEffect)(()=>{t&&!s&&m?.forEach(t=>{if(a.includes(t.id))return;const i={category:`${e}_remote-site-notification`,label:t.id};p(t.id,{Component:({Notification:e})=>(0,ie.jsx)(e,{gaTrackingEventArgs:i,children:(0,ie.jsx)(fe,{...t,gaTrackingEventArgs:i})}),priority:t.priority,areaSlug:h.bI.HEADER,isDismissible:t.dismissible}),c(e=>(e.push(t.id),e))})},[e,s,m,p,a,t]),null};var be=i(67510),ke=i(67438);const ye="internal-server-error";function InternalServerError(){const e=(0,Q.dv)(),t=(0,g.useSelect)(e=>e(d.O4).getInternalServerError());return(0,l.useEffect)(()=>{t&&globalThis.scrollTo({top:(0,K.YJ)(`#${ye}`,e),behavior:"smooth"})},[t,e]),t?(0,ie.jsx)(ke.A,{id:ye,children:(0,ie.jsx)(be.A,{notificationID:ye,type:be.Q.ERROR,title:t.title,description:t.description})}):null}function LegacyNotifications(){const e=(0,y.A)(),t=(0,p.Ay)(),i=(0,g.useSelect)(e=>e(u.oR).isAuthenticated());return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsx)(InternalServerError,{}),!e&&t===p.Oo&&i&&(0,ie.jsx)(_e,{})]})}var ve=i(37834),Ae=i(21795),xe=i(53328),Se=i(76729);function Divider({className:e}){return(0,ie.jsx)("li",{className:o()("mdc-list-divider",e),role:"separator"})}function MenuItem({id:e,className:t,role:i,isInteractive:s=!0,onClick:n,icon:r,label:a,description:l,trailing:c,children:g,itemClassName:d="googlesitekit-header-menu__item",iconClassName:u="googlesitekit-header-menu__item-icon",labelClassName:h="googlesitekit-header-menu__item-label",descriptionClassName:p="googlesitekit-header-menu__item-description",trailingClassName:m="googlesitekit-header-menu__item-trailing"}){const f=g||(0,ie.jsxs)("div",{className:d,children:[r&&(0,ie.jsx)("div",{className:u,children:r}),a&&(0,ie.jsx)("span",{className:h,children:a}),l&&(0,ie.jsx)("span",{className:p,children:l}),c&&(0,ie.jsx)("span",{className:m,children:c})]}),_=void 0===i&&s?"menuitem":i,b=o()(t,{"mdc-list-item":s}),k="function"==typeof n;return(0,ie.jsx)("li",{id:e,className:b||void 0,role:_,children:k?(0,ie.jsx)("button",{type:"button",className:"googlesitekit-header-menu__item-button",onClick:n,children:f}):f})}function MenuSection({id:e,className:t,role:i,children:s}){return(0,ie.jsx)("li",{id:e,className:t,role:i,children:s})}function MenuWithHeading({heading:e,className:t,children:i}){return(0,ie.jsxs)(MenuSection,{className:t,children:[e,i]})}Divider.propTypes={className:r().string},MenuItem.propTypes={id:r().string,className:r().string,role:r().string,isInteractive:r().bool,onClick:r().func,icon:r().node,label:r().node,description:r().node,trailing:r().node,children:r().node,itemClassName:r().string,iconClassName:r().string,labelClassName:r().string,descriptionClassName:r().string,trailingClassName:r().string},MenuSection.propTypes={id:r().string,className:r().string,role:r().string,children:r().node},MenuWithHeading.propTypes={heading:r().node,className:r().string,children:r().node};var Ne,je,Ie=i(59865),we=i(94656),Te=i(68832),Ce=i(12896),Ee=i(37467),Me=i(99893);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 De=e=>l.createElement("svg",Re({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ne||(Ne=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.7,d:"m11.775 5.701.58-.58a4.547 4.547 0 0 1 6.43 0v0a4.547 4.547 0 0 1 0 6.43l-.598.599m-12.504-.357-.562.562a4.547 4.547 0 0 0 0 6.43v0a4.547 4.547 0 0 0 6.43 0l.58-.58"})),je||(je=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"m8.543 15.363 1.118-1.118m5.684-5.684L14.226 9.68M5.107 5.134l13.664 13.664"})));var Oe,Le,Pe,ze,Be,He=i(46467);function We(){return We=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},We.apply(null,arguments)}const Ue=e=>l.createElement("svg",We({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Oe||(Oe=l.createElement("rect",{width:18,height:13,x:3,y:4,stroke:"currentColor",strokeWidth:1.5,rx:2})),Le||(Le=l.createElement("path",{fill:"currentColor",d:"M9 17h6v3H9z"})),Pe||(Pe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M10 9h7M10 12h7"})),ze||(ze=l.createElement("circle",{cx:7,cy:9,r:1,fill:"currentColor"})),Be||(Be=l.createElement("circle",{cx:7,cy:12,r:1,fill:"currentColor"})));function Details(){const e=(0,g.useSelect)(e=>e(u.oR).getPicture()),t=(0,g.useSelect)(e=>e(u.oR).getFullName()),i=(0,g.useSelect)(e=>e(u.oR).getEmail());return(0,ie.jsxs)("div",{className:"googlesitekit-user-menu__details","aria-label":(0,c.__)("Google account","google-site-kit"),children:[!!e&&(0,ie.jsx)("img",{className:"googlesitekit-user-menu__details-avatar",src:e,alt:""}),(0,ie.jsxs)("div",{className:"googlesitekit-user-menu__details-info",children:[(0,ie.jsx)("p",{className:"googlesitekit-user-menu__details-info__name",children:t}),(0,ie.jsx)("p",{className:"googlesitekit-user-menu__details-info__email","aria-label":(0,c.__)("Email","google-site-kit"),children:i})]})]})}function UserMenu(){const e=(0,_.i)("proactiveUserEngagement"),t=(0,_.i)("setupFlowRefresh"),[i]=(0,Ee.A)("showProgress"),s=t&&"true"===i,o=(0,g.useSelect)(e=>e(d.O4).getProxyPermissionsURL()),n=(0,g.useSelect)(e=>e(u.oR).getEmail()),r=(0,g.useSelect)(e=>e(u.oR).getPicture()),a=(0,g.useSelect)(e=>e(u.oR).getFullName()),h=(0,g.useSelect)(e=>e(d.O4).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})),[p]=(0,Te.A)(Me.CV,"isAutoCreatingCustomDimensionsForAudience"),{isTooltipVisible:k=!1,className:y}=(0,g.useSelect)(e=>e(w.nX).getValue("admin-screen-tooltip")||{isTooltipVisible:!1}),[v,A]=(0,l.useState)(!1),[x,S]=(0,l.useState)(!1),N=(0,l.useRef)(),j=(0,l.useRef)(),I=(0,b.A)(),{navigateTo:T}=(0,g.useDispatch)(re.M),C=e&&!s;(0,Ae.A)(N,()=>S(!1)),(0,Ce.l)([xe._f,xe.wn],N,()=>{S(!1),j.current?.focus()});const E=(0,l.useCallback)(()=>{A(!1),S(!1)},[A,S]),{setValue:M}=(0,g.useDispatch)(w.nX),R=(0,l.useCallback)(()=>{x||((0,f.sx)(`${I}_headerbar`,"open_usermenu"),k&&y?.includes("googlesitekit-tour-tooltip--user-menu")&&M("admin-screen-tooltip",void 0)),S(!x)},[x,I,M,k,y]),D=(0,l.useCallback)(()=>{A(!v),S(!1)},[v]),O=(0,l.useCallback)(async(e,t)=>{const{detail:{item:i}}=t;switch(i?.id){case"manage-sites":o&&(await(0,f.sx)(`${I}_headerbar_usermenu`,"manage_sites"),T(o));break;case"disconnect":D();break;case"manage-email-reports":M(Se.Q,!0);break;default:R()}},[o,R,D,T,M,I]),L=(0,l.useCallback)(async()=>{A(!1),await(0,m.IL)(),await(0,f.sx)(`${I}_headerbar_usermenu`,"disconnect_user"),T(h)},[h,T,I]);if(!n)return null;const P=function(e,t){return e&&t?(0,c.sprintf)(/* translators: Account info text. 1: User's (full) name 2: User's email address. */ /* translators: Account info text. 1: User's (full) name 2: User's email address. */ (0,c.__)("Google Account for %1$s (Email: %2$s)","google-site-kit"),e,t):e&&!t?(0,c.sprintf)(/* translators: Account info text. 1: User's (full) name. */ /* translators: Account info text. 1: User's (full) name. */ (0,c.__)("Google Account for %1$s","google-site-kit"),e):!e&&t?(0,c.sprintf)(/* translators: Account info text. 1: User's email address. */ /* translators: Account info text. 1: User's email address. */ (0,c.__)("Google Account (Email: %1$s)","google-site-kit"),t):void 0}(a,n);return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsxs)("div",{ref:N,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,ie.jsx)(ne.Button,{disabled:p,ref:j,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:R,icon:!!r&&(0,ie.jsx)("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true",children:(0,ie.jsx)("img",{className:"mdc-button__icon--image",src:r,alt:(0,c.__)("User Avatar","google-site-kit")})}),"aria-haspopup":"menu","aria-expanded":x,"aria-controls":"user-menu","aria-label":p?void 0:(0,c.__)("Account","google-site-kit"),tooltipEnterDelayInMS:500,customizedTooltip:p?null:(0,ie.jsxs)("span",{"aria-label":P,children:[(0,ie.jsx)("strong",{children:(0,c.__)("Google Account","google-site-kit")}),(0,ie.jsx)("br",{}),(0,ie.jsx)("br",{}),a,a&&(0,ie.jsx)("br",{}),n]}),text:!0,tooltip:!0}),(0,ie.jsxs)(ne.Menu,{className:"googlesitekit-user-menu",menuOpen:x,onSelected:O,id:"user-menu",children:[(0,ie.jsx)(MenuSection,{children:(0,ie.jsx)(Details,{})}),C&&(0,ie.jsx)(MenuItem,{id:"manage-email-reports",icon:(0,ie.jsx)(He.A,{width:"24"}),label:(0,c.__)("Manage email reports","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"}),!!o&&(0,ie.jsx)(MenuItem,{id:"manage-sites",icon:(0,ie.jsx)(Ue,{width:"24"}),label:(0,c.__)("Manage Sites","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"}),(0,ie.jsx)(MenuItem,{id:"disconnect",icon:(0,ie.jsx)(De,{width:"24"}),label:(0,c.__)("Disconnect","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"})]})]}),(0,ie.jsx)(we.A,{children:(0,ie.jsx)(Ie.A,{dialogActive:v,handleConfirm:L,handleCancel:E,onClose:E,title:(0,c.__)("Disconnect","google-site-kit"),subtitle:(0,c.__)("Disconnecting Site Kit by Google will remove your access to all services. After disconnecting, you will need to re-authorize to restore service.","google-site-kit"),confirmButton:(0,c.__)("Disconnect","google-site-kit"),danger:!0,small:!0})})]})}var Ge,Ye=i(33052),Fe=i(75971);function ManageEmailReports(){const{setValue:e}=(0,Fe.wA)(w.nX);return(0,Fe.WM)(e=>{const t=e(u.oR).getViewableModules();if(void 0!==t)return t.includes("analytics-4")||t.includes("search-console")})?(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsx)(Divider,{}),(0,ie.jsx)(MenuItem,{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__email-reporting",isInteractive:!1,children:(0,ie.jsx)(ne.Button,{className:"googlesitekit-view-only-menu__email-reporting-item",onClick:()=>e(Se.Q,!0),icon:(0,ie.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--icon",children:(0,ie.jsx)(He.A,{width:"24"})}),tertiary:!0,children:(0,ie.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--name",children:(0,c.__)("Manage email reports","google-site-kit")})})})]}):null}function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Ve.apply(null,arguments)}const qe=e=>l.createElement("svg",Ve({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 10"},e),Ge||(Ge=l.createElement("path",{fill:"currentColor",d:"M8 1.333c2.756 0 5.214 1.42 6.415 3.667-1.2 2.247-3.659 3.667-6.415 3.667S2.785 7.247 1.585 5C2.785 2.753 5.244 1.333 8 1.333M8 0C4.364 0 1.258 2.073 0 5c1.258 2.927 4.364 5 8 5s6.742-2.073 8-5c-1.258-2.927-4.364-5-8-5m0 3.333c1.004 0 1.818.747 1.818 1.667S9.004 6.667 8 6.667 6.182 5.92 6.182 5 6.996 3.333 8 3.333M8 2C6.196 2 4.727 3.347 4.727 5S6.197 8 8 8s3.273-1.347 3.273-3S9.803 2 8 2"})));var Ze=i(13606);function Description(){const e=(0,b.A)(),t=(0,g.useSelect)(e=>e(u.oR).hasCapability(u.ej)),i=(0,g.useSelect)(e=>e(d.O4).getProxySetupURL()),s=(0,g.useSelect)(e=>e(d.O4).getDocumentationLinkURL("dashboard-sharing")),{navigateTo:o}=(0,g.useDispatch)(re.M),n=(0,l.useCallback)(async t=>{t.preventDefault(),await Promise.all([(0,m.SO)("start_user_setup",!0),(0,f.sx)(`${e}_headerbar_viewonly`,"start_user_setup",i?"proxy":"custom-oauth")]),o(i)},[i,o,e]),r=(0,l.useCallback)(()=>{(0,f.sx)(`${e}_headerbar_viewonly`,"click_learn_more_link")},[e]),a=t?(0,c.__)("You can see stats from all shared Google services, but you can't make any changes. Sign in to connect more services and control sharing access.","google-site-kit"):(0,Ze.A)((0,c.__)("You can see stats from all shared Google services, but you can't make any changes. <a>Learn more</a>","google-site-kit"),{a:(0,ie.jsx)(ge.A,{href:s,onClick:r,"aria-label":(0,c.__)("Learn more about dashboard sharing","google-site-kit"),external:!0})});return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsx)(de.A,{className:"googlesitekit-view-only-menu__signin",children:a}),t&&(0,ie.jsx)(ne.Button,{onClick:n,children:(0,c._x)("Sign in with Google","Service name","google-site-kit")})]})}var $e=i(88273);function Service({module:e}){const t=(0,g.useSelect)(e=>e(u.oR).hasCapability(u.ej)),{name:i,owner:s}=(0,g.useSelect)(t=>t($e.i).getModule(e)||{}),o=(0,g.useSelect)(t=>t($e.i).getModuleIcon(e));return(0,ie.jsxs)("li",{className:"googlesitekit-view-only-menu__service",children:[(0,ie.jsx)("span",{className:"googlesitekit-view-only-menu__service--icon",children:(0,ie.jsx)(o,{height:26})}),(0,ie.jsx)("span",{className:"googlesitekit-view-only-menu__service--name",children:i}),t&&s?.login&&(0,ie.jsx)("span",{className:"googlesitekit-view-only-menu__service--owner",children:s.login})]})}function SharedServices({viewableModules:e}){return Array.isArray(e)?(0,ie.jsx)("ul",{children:e.map(e=>(0,ie.jsx)(Service,{module:e},e))}):null}Service.propTypes={module:r().string.isRequired},SharedServices.propTypes={viewableModules:r().arrayOf(r().string)};var Xe=i(11974);function Tracking(){const e=(0,b.A)();return(0,ie.jsx)(Xe.A,{title:(0,c.__)("Help us improve Site Kit","google-site-kit"),description:(0,Ze.A)((0,c.__)("Share anonymous usage data. All collected data is treated in accordance with the <a>Google Privacy Policy</a>","google-site-kit"),{a:(0,ie.jsx)(ge.A,{href:"https://policies.google.com/privacy",external:!0})}),trackEventCategory:`${e}_headerbar_viewonly`,layout:"stacked"})}function ViewOnlyMenu(){const e=(0,_.i)("proactiveUserEngagement"),[t,i]=(0,l.useState)(!1),s=(0,l.useRef)(),n=(0,b.A)();(0,Ae.A)(s,()=>i(!1)),(0,Ce.l)([xe._f,xe.wn],s,()=>i(!1));const r=(0,l.useCallback)(()=>{t||(0,f.sx)(`${n}_headerbar`,"open_viewonly"),i(!t)},[t,n]),a=(0,g.useSelect)(e=>e(u.oR).hasCapability(u.ej)),d=(0,g.useSelect)(e=>e(u.oR).getViewableModules());return(0,ie.jsxs)("div",{ref:s,className:o()("googlesitekit-view-only-menu","googlesitekit-dropdown-menu","googlesitekit-dropdown-menu__icon-menu","mdc-menu-surface--anchor",{"googlesitekit-view-only-menu--user-can-authenticate":a}),children:[(0,ie.jsx)(ne.Button,{className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--phone googlesitekit-button-icon",onClick:r,icon:(0,ie.jsx)("span",{className:"mdc-button__icon","aria-hidden":"true",children:(0,ie.jsx)(qe,{className:"mdc-button__icon--image"})}),"aria-haspopup":"menu","aria-expanded":t,"aria-controls":"view-only-menu","aria-label":(0,c.__)("View only","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:(0,c.__)("View only","google-site-kit")}),(0,ie.jsxs)(ne.Menu,{menuOpen:t,onSelected:r,id:"view-only-menu",nonInteractive:!0,children:[(0,ie.jsx)(MenuSection,{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__description",children:(0,ie.jsx)(Description,{})}),Array.isArray(d)&&(0,ie.jsx)(MenuWithHeading,{className:"googlesitekit-view-only-menu__list-item",heading:(0,ie.jsx)(Ye.A,{as:"h4",size:"medium",type:"label",children:(0,c.__)("Shared services","google-site-kit")}),children:(0,ie.jsx)(SharedServices,{viewableModules:d})}),e&&(0,ie.jsx)(ManageEmailReports,{}),(0,ie.jsx)(Divider,{}),(0,ie.jsx)(MenuSection,{className:"googlesitekit-view-only-menu__list-item",children:(0,ie.jsx)(Tracking,{})})]})]})}function Header({children:e,subHeader:t,showNavigation:i}){const s=!!(0,p.Ay)(),n=(0,y.A)();!function(){const e=(0,b.A)(),t=(0,g.useSelect)(e=>e(d.O4).isUsingProxy()),i=(0,g.useSelect)(e=>e(d.O4).getSetupErrorMessage()),s=(0,_.i)("setupFlowRefresh");(0,l.useEffect)(()=>{s||i||void 0===t||async function(){const i=await(0,m.Gq)("start_user_setup"),s=await(0,m.Gq)("start_site_setup");i.cacheHit&&(await(0,m.LD)("start_user_setup"),(0,f.sx)(`${e}_setup`,"complete_user_setup",t?"proxy":"custom-oauth")),s.cacheHit&&(await(0,m.LD)("start_site_setup"),(0,f.sx)(`${e}_setup`,"complete_site_setup",t?"proxy":"custom-oauth"))}()},[s,e,t,i])}();const r=(0,g.useSelect)(e=>e(d.O4).getAdminURL("googlesitekit-dashboard")),k=(0,g.useSelect)(e=>e(u.oR).isAuthenticated()),[A,x]=(0,a.A)({childList:!0}),S=!!x.target?.childElementCount;return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsx)("header",{className:o()("googlesitekit-header",{"googlesitekit-header--has-subheader":S,"googlesitekit-header--has-navigation":i}),children:(0,ie.jsx)(v.xA,{children:(0,ie.jsxs)(v.fI,{children:[(0,ie.jsx)(v.fh,{smSize:1,mdSize:2,lgSize:4,className:"googlesitekit-header__logo",alignMiddle:!0,children:(0,ie.jsx)(ge.A,{"aria-label":(0,c.__)("Go to dashboard","google-site-kit"),className:"googlesitekit-header__logo-link",href:r,children:(0,ie.jsx)(he.A,{})})}),(0,ie.jsxs)(v.fh,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0,children:[e,!k&&s&&n&&(0,ie.jsx)(ViewOnlyMenu,{}),k&&!n&&(0,ie.jsx)(UserMenu,{})]})]})})}),(0,ie.jsx)("div",{className:"googlesitekit-subheader",ref:A,children:t}),i&&(0,ie.jsx)(DashboardNavigation,{}),(0,ie.jsx)(ue,{}),(0,ie.jsx)(LegacyNotifications,{}),(0,ie.jsx)(ve.A,{areaSlug:h.bI.HEADER})]})}Header.displayName="Header",Header.propTypes={children:r().node,subHeader:r().element,showNavigation:r().bool},Header.defaultProps={children:null,subHeader:null};const Qe=Header},50304(e,t,i){i.d(t,{A:()=>IconWrapper});var s=i(62688),o=i.n(s),n=i(62540);function IconWrapper({children:e,marginLeft:t,marginRight:i}){return(0,n.jsx)("span",{className:"googlesitekit-icon-wrapper",style:{marginLeft:t,marginRight:i},children:e})}IconWrapper.propTypes={children:o().node.isRequired,marginLeft:o().number,marginRight:o().number}},52735(e,t,i){i.d(t,{A:()=>s});const s=(0,i(63696).createContext)(!1)},20762(e,t,i){i.d(t,{Ay:()=>r});var s=i(52735);const{Consumer:o,Provider:n}=s.A,r=n},38432(e,t,i){i.d(t,{A:()=>w});var s,o=i(4452),n=i.n(o),r=i(62688),a=i.n(r),l=i(39941),c=i(63696),g=i(82871);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},d.apply(null,arguments)}const u=e=>c.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),s||(s=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"#FFF"}),c.createElement("path",{fill:"currentColor",d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 0 0 .325.79.46.46 0 0 0 .325-.135l3.037-3.038a.46.46 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.46.46 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var h;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},p.apply(null,arguments)}const m=e=>c.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),h||(h=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"currentColor"}),c.createElement("path",{fill:"#FFF",d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 0 0 .325.79.46.46 0 0 0 .325-.135l3.037-3.038a.46.46 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.46.46 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var f;function _(){return _=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},_.apply(null,arguments)}const b=e=>c.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),f||(f=c.createElement("path",{d:"m12 20-8-8 8-8 1.425 1.4-5.6 5.6H20v2H7.825l5.6 5.6z"})));var k=i(83366),y=i(50304),v=i(62540);const A="BUTTON",x="BUTTON_DISABLED",S="EXTERNAL_LINK",N="LINK",j="ROUTER_LINK",I=(0,c.forwardRef)((e,t)=>{const{"aria-label":i,secondary:s=!1,arrow:o=!1,back:r=!1,caps:a=!1,children:c,className:d="",danger:h=!1,disabled:p=!1,external:f=!1,hideExternalIndicator:_=!1,href:I="",inverse:w=!1,noFlex:T=!1,onClick:C,small:E=!1,standalone:M=!1,linkButton:R=!1,to:D,leadingIcon:O,trailingIcon:L,...P}=e;const z=I||D||!C?D?j:f?S:N:p?x:A;const B=z===A||z===x?"button":z===j?l.N_:"a",H=function(){let e;return z===S&&(e=(0,g._x)("(opens in a new tab)","screen reader text","google-site-kit")),z===x&&(e=(0,g._x)("(disabled)","screen reader text","google-site-kit")),e?i?`${i} ${e}`:"string"==typeof c?`${c} ${e}`:void 0:i}();let W=O,U=L;return r&&(W=(0,v.jsx)(b,{width:14,height:14})),f&&!_&&(U=(0,v.jsx)(k.A,{width:14,height:14})),o&&!w&&(U=(0,v.jsx)(m,{width:14,height:14})),o&&w&&(U=(0,v.jsx)(u,{width:14,height:14})),(0,v.jsxs)(B,{"aria-label":H,className:n()("googlesitekit-cta-link",d,{"googlesitekit-cta-link--secondary":s,"googlesitekit-cta-link--inverse":w,"googlesitekit-cta-link--small":E,"googlesitekit-cta-link--caps":a,"googlesitekit-cta-link--danger":h,"googlesitekit-cta-link--disabled":p,"googlesitekit-cta-link--standalone":M,"googlesitekit-cta-link--link-button":R,"googlesitekit-cta-link--no-flex":!!T}),disabled:p,href:z!==N&&z!==S||p?void 0:I,onClick:C,rel:z===S?"noopener noreferrer":void 0,ref:t,target:z===S?"_blank":void 0,to:D,...P,children:[!!W&&(0,v.jsx)(y.A,{marginRight:5,children:W}),(0,v.jsx)("span",{className:"googlesitekit-cta-link__contents",children:c}),!!U&&(0,v.jsx)(y.A,{marginLeft:5,children:U})]})});I.propTypes={arrow:a().bool,back:a().bool,caps:a().bool,children:a().node,className:a().string,danger:a().bool,disabled:a().bool,external:a().bool,hideExternalIndicator:a().bool,href:a().string,inverse:a().bool,leadingIcon:a().node,linkButton:a().bool,noFlex:a().bool,onClick:a().func,small:a().bool,standalone:a().bool,to:a().string,trailingIcon:a().node};const w=I},45257(e,t,i){i.d(t,{A:()=>LoadingWrapper});var s=i(62688),o=i.n(s),n=i(4751),r=i(62540);function LoadingWrapper({loading:e,children:t,...i}){return e?(0,r.jsx)(n.A,{...i}):t}LoadingWrapper.propTypes={loading:o().bool,children:o().node,...n.A.propTypes}},44436(e,t,i){i.d(t,{A:()=>d});var s,o=i(82871),n=i(88933),r=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},a.apply(null,arguments)}const l=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 80 21"},e),s||(s=r.createElement("path",{fill:"#5F6368",d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1zM69.985 3.117c0 .454-.167.853-.488 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.6 1.6 0 0 1-.488-1.175c0-.466.166-.854.488-1.176s.71-.488 1.175-.488c.455 0 .854.166 1.176.488.332.333.487.72.487 1.176m-.477 4.313v12.498h-2.351V7.43zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943q-1.014-.948-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333M2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974q-.883-.781-3.094-1.564l-1.22-.432Q3.371 9.997 2.04 8.716C1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673S2.75 1.209 3.693.72C4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676-.91 1.032-.91 1.742c0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6 6 0 0 1-2.495 1.919 8 8 0 0 1-3.116.621c-1.62 0-3.072-.466-4.358-1.408M15.969 3.449a1.95 1.95 0 0 1-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0 1 17.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 0 1-1.43.589c-.566-.012-1.043-.2-1.431-.588m-.067 2.595h2.994v13.883h-2.994zM25.406 19.85c-.544-.2-.987-.466-1.331-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122q.35-.116.765-.399v2.917c-.599.277-1.32.41-2.173.41a5 5 0 0 1-1.753-.3M33.623 19.407a6.63 6.63 0 0 1-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706s2.251-1.01 3.593-1.01c1.397 0 2.606.311 3.637.921a6.1 6.1 0 0 1 2.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.16 4.16 0 0 0 2.817 1.043c.854 0 1.597-.189 2.218-.588a4.27 4.27 0 0 0 1.508-1.597l2.528 1.198q-.981 1.713-2.561 2.694c-1.054.655-2.318.976-3.782.976q-2.046.033-3.66-.931m7.23-8.051a3.3 3.3 0 0 0-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296z"})));var c=i(55989),g=i(62540);const d=function Logo(){return(0,g.jsxs)("div",{className:"googlesitekit-logo","aria-hidden":"true",children:[(0,g.jsx)(n.A,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),(0,g.jsx)(l,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),(0,g.jsx)(c.A,{children:(0,o.__)("Site Kit by Google Logo","google-site-kit")})]})}},59865(e,t,i){i.d(t,{A:()=>h});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(52684),l=i(13606),c=i(82871),g=i(49383),d=i(85149),u=i(62540);function ModalDialog({className:e="",dialogActive:t=!1,handleCancel:i=null,onOpen:s=null,onClose:n=null,title:r=null,provides:h,handleConfirm:p,subtitle:m,confirmButton:f=null,notes:_=[],danger:b=!1,inProgress:k=!1,small:y=!1,medium:v=!1,buttonLink:A=null}){const x=`googlesitekit-dialog-description-${(0,a.A)(ModalDialog)}`,S=!(!h||!h.length);return(0,u.jsxs)(g.Dialog,{open:t,onOpen:s,onClose:n,"aria-describedby":S?x:void 0,tabIndex:"-1",className:o()(e,{"googlesitekit-dialog-sm":y,"googlesitekit-dialog-md":v}),children:[(0,u.jsxs)(g.DialogTitle,{children:[b&&(0,u.jsx)(d.A,{width:28,height:28}),r]}),m?(0,u.jsx)("p",{className:"mdc-dialog__lead",children:m}):[],(0,u.jsxs)(g.DialogContent,{children:[S&&(0,u.jsx)("section",{id:x,className:"mdc-dialog__provides",children:(0,u.jsx)("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive",children:h.map(e=>(0,u.jsx)("li",{className:"mdc-list-item",children:(0,u.jsx)("span",{className:"mdc-list-item__text",children:e})},e))})}),_.length>0&&(0,u.jsx)("section",{className:"mdc-dialog__notes",children:_.map((e,t)=>(0,u.jsxs)("p",{className:"mdc-dialog__note",children:["string"==typeof e&&(0,l.A)((0,c.sprintf)(/* translators: %s is replaced with some sub-note text. */ /* translators: %s is replaced with some sub-note text. */ (0,c.__)("<strong>Note:</strong> %s","google-site-kit"),e),{strong:(0,u.jsx)("strong",{})}),"function"==typeof e&&(0,u.jsx)(e,{})]},`note-${t}`))})]}),(0,u.jsxs)(g.DialogFooter,{children:[(0,u.jsx)(g.Button,{className:"mdc-dialog__cancel-button",onClick:i,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),A?(0,u.jsx)(g.Button,{href:A,onClick:p,target:"_blank",danger:b,children:f}):(0,u.jsx)(g.SpinnerButton,{onClick:p,danger:b,disabled:k,isSaving:k,children:f||(0,c.__)("Disconnect","google-site-kit")})]})]})}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:r().string,dialogActive:r().bool,handleDialog:r().func,handleConfirm:r().func.isRequired,onOpen:r().func,onClose:r().func,title:r().string,provides:r().arrayOf(r().string),confirmButton:r().string,notes:r().arrayOf(r().oneOfType([r().string,r().elementType])),danger:r().bool,small:r().bool,medium:r().bool,buttonLink:r().string};const h=ModalDialog},56628(e,t,i){i.d(t,{A:()=>ModuleDashboardEffects});var s=i(50539),o=i(88273),n=i(7551),r=i(62540);const a={[n.Oo]:"DashboardMainEffectComponent",[n.oE]:"DashboardEntityEffectComponent"};function ModuleDashboardEffects(){const e=(0,n.Ay)(),t=(0,s.useSelect)(e=>e(o.i).getModules());if(!t)return null;const i=a[e];return Object.values(t).reduce((e,t)=>{const s=t[i];return t.active&&s?[...e,(0,r.jsx)(s,{},t.slug)]:e},[])}},2671(e,t,i){i.d(t,{A:()=>ModuleIcon});var s=i(62688),o=i.n(s),n=i(50539),r=i(88273),a=i(62540);function ModuleIcon({slug:e,size:t,...i}){const s=(0,n.useSelect)(t=>t(r.i).getModuleIcon(e));return s?(0,a.jsx)(s,{width:t,height:t,...i}):null}ModuleIcon.propTypes={slug:o().string.isRequired,size:o().number},ModuleIcon.defaultProps={size:33}},60515(e,t,i){i.d(t,{A:()=>h});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(63696),l=i(82871),c=i(49383),g=i(5855),d=i(38432),u=i(62540);function NewBadge({tooltipTitle:e,learnMoreLink:t,forceOpen:i,hasLeftSpacing:s,hasNoSpacing:n,onLearnMoreClick:r=()=>{}}){const h=(0,u.jsx)(g.A,{className:o()("googlesitekit-new-badge",{"googlesitekit-new-badge--has-no-spacing":n}),label:(0,l.__)("New","google-site-kit"),hasLeftSpacing:s});return e?(0,u.jsx)(c.Tooltip,{tooltipClassName:"googlesitekit-new-badge__tooltip",title:(0,u.jsxs)(a.Fragment,{children:[e,(0,u.jsx)("br",{}),(0,u.jsx)(d.A,{href:t,onClick:r,external:!0,hideExternalIndicator:!0,children:(0,l.__)("Learn more","google-site-kit")})]}),placement:"top",enterTouchDelay:0,leaveTouchDelay:5e3,open:i,interactive:!0,children:h}):h}NewBadge.propTypes={tooltipTitle:r().string,learnMoreLink:r().string,forceOpen:r().bool,onLearnMoreClick:r().func,hasLeftSpacing:r().bool,hasNoSpacing:r().bool};const h=NewBadge},89766(e,t,i){i.d(t,{A:()=>l});var s=i(62688),o=i.n(s),n=i(67510),r=i(13047),a=i(62540);function NotificationFromServer({id:e,titleIcon:t,title:i,content:s,ctaLabel:o,ctaTarget:l,ctaURL:c,dismissible:g,dismissLabel:d,learnMoreLabel:u,learnMoreURL:h,onCTAClick:p,ctaInProgress:m,onDismissClick:f,gaTrackingEventArgs:_}){const b={expiresInSeconds:r.Jg};return(0,a.jsx)(n.A,{notificationID:e,type:n.Q.WARNING,titleIcon:t||void 0,title:i,description:s,learnMoreLink:h?{label:u,href:h}:void 0,ctaButton:{label:o,href:c,onClick:p,inProgress:m,dismissOptions:b,external:"_blank"===l},dismissButton:g?{label:d,onClick:f,dismissOptions:b}:void 0,gaTrackingEventArgs:_})}NotificationFromServer.propTypes={id:o().string.isRequired,title:o().string.isRequired,content:o().node,ctaLabel:o().string,ctaTarget:o().string,ctaURL:o().string,dismissible:o().bool,dismissLabel:o().string,learnMoreLabel:o().string,learnMoreURL:o().string,onCTAClick:o().func,ctaInProgress:o().bool,onDismissClick:o().func,gaTrackingEventArgs:o().object};const l=NotificationFromServer},64515(e,t,i){function Null(){return null}i.d(t,{A:()=>Null})},11974(e,t,i){i.d(t,{A:()=>OptIn});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(63696),l=i(13606),c=i(82871),g=i(50539),d=i(38432),u=i(97345),h=i(7076),p=i(62659),m=i(65054),f=i(49383),_=i(62540);function LayoutDefault({checkboxProps:e,label:t}){return(0,_.jsx)(f.Checkbox,{...e,children:t})}function LayoutStacked({checkboxProps:e,title:t,description:i}){return(0,_.jsxs)(a.Fragment,{children:[(0,_.jsx)(f.Checkbox,{...e,children:t}),(0,_.jsx)("div",{className:"googlesitekit-opt-in__description",children:i})]})}LayoutDefault.propTypes={checkboxProps:r().object.isRequired,label:r().node.isRequired},LayoutStacked.propTypes={checkboxProps:r().object.isRequired,title:r().node.isRequired,description:r().node.isRequired};const b="default",k="stacked";function OptIn({id:e="googlesitekit-opt-in",name:t="optIn",className:i,layout:s=b,title:n=null,description:r=null,trackEventCategory:f,trackEventAction:y="tracking_optin"}){const[v,A]=(0,a.useState)(),x=(0,g.useSelect)(e=>e(u.oR).isTrackingEnabled()),S=(0,g.useSelect)(e=>e(u.oR).getErrorForAction("setTrackingEnabled",[!x])),{setTrackingEnabled:N}=(0,g.useDispatch)(u.oR),j=(0,p.A)(),I=(0,a.useCallback)(async e=>{const{response:t,error:i}=await N(e);i?A(x):((0,m.M9)(t.enabled),t.enabled&&(0,m.sx)(f||j,y))},[x,N,f,y,j]);(0,a.useEffect)(()=>{void 0!==x&&void 0===v&&A(x)},[x,v]);const w=(0,h.d)(I,300),T=(0,a.useCallback)(e=>{const t=e.target.checked;A(t),w(t)},[w]),C=n??(0,_.jsx)("span",{children:(0,c.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")}),E=r??(0,l.A)((0,c.__)("<span>All collected data is treated in accordance with the <a>Google Privacy Policy</a></span>","google-site-kit"),{a:(0,_.jsx)(d.A,{href:"https://policies.google.com/privacy",external:!0},"link"),span:(0,_.jsx)("span",{})}),M={id:e,name:t,value:"1",checked:v,onChange:T,loading:void 0===x};return(0,_.jsxs)("div",{className:o()("googlesitekit-opt-in",i,s===k&&"googlesitekit-opt-in--layout-stacked"),children:[s===k?(0,_.jsx)(LayoutStacked,{checkboxProps:M,title:C,description:E}):(0,_.jsx)(LayoutDefault,{checkboxProps:M,label:(0,_.jsxs)(a.Fragment,{children:[C," ",E]})}),S?.message&&(0,_.jsx)("div",{className:"googlesitekit-error-text",children:S?.message})]})}OptIn.propTypes={id:r().string,name:r().string,className:r().string,title:r().node,description:r().node,layout:r().oneOf([b,k]),trackEventCategory:r().string}},85172(e,t,i){i.d(t,{A:()=>PageHeader});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(10740),l=i(24560),c=i(18418),g=i(50304),d=i(33052),u=i(62540);function PageHeader(e){const{title:t,icon:i,className:s,status:n,statusText:r,fullWidth:h,children:p}=e,m=h?{size:12}:{smSize:4,mdSize:4,lgSize:6},f=""!==n||Boolean(p);return(0,u.jsx)("header",{className:"googlesitekit-page-header",children:(0,u.jsxs)(a.fI,{children:[t&&(0,u.jsxs)(a.fh,{...m,children:[i,(0,u.jsx)(d.A,{as:"h1",className:o()("googlesitekit-page-header__title",s),size:"medium",type:"title",children:t})]}),f&&(0,u.jsx)(a.fh,{smSize:4,mdSize:4,lgSize:6,alignBottom:!0,mdAlignRight:!0,children:(0,u.jsxs)("div",{className:"googlesitekit-page-header__details",children:[n&&(0,u.jsxs)("span",{className:o()("googlesitekit-page-header__status",`googlesitekit-page-header__status--${n}`),children:[r,(0,u.jsx)(g.A,{children:"connected"===n?(0,u.jsx)(l.A,{width:10,height:8}):(0,u.jsx)(c.A,{width:2,height:12})})]}),p]})})]})})}PageHeader.propTypes={title:r().string,icon:r().node,className:r().string,status:r().string,statusText:r().string,fullWidth:r().bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}},94656(e,t,i){i.d(t,{A:()=>l});var s=i(62688),o=i.n(s),n=i(47209),r=i(63696),a=i(78325);function Portal({children:e,slug:t}){const[i]=(0,r.useState)(document.createElement("div"));return(0,n.A)(()=>{t&&i.classList.add(`googlesitekit-portal-${t}`);const e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(i),()=>e.removeChild(i)}),(0,a.createPortal)(e,i)}Portal.propTypes={slug:o().string,children:o().node},Portal.defaultProps={slug:"",children:null};const l=Portal},4751(e,t,i){i.d(t,{A:()=>c});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(97513),l=i(62540);function PreviewBlock({className:e,width:t,height:i,shape:s,padding:n,smallWidth:r,smallHeight:c,tabletWidth:g,tabletHeight:d,desktopWidth:u,desktopHeight:h}){const p=(0,a.dv)(),m={width:{[a.mp]:r,[a.Lg]:g,[a.Fo]:u,[a.Qb]:u},height:{[a.mp]:c,[a.Lg]:d,[a.Fo]:h,[a.Qb]:u}};return(0,l.jsx)("div",{className:o()("googlesitekit-preview-block",e,{"googlesitekit-preview-block--padding":n}),style:{width:m.width[p]||t,height:m.height[p]||i},children:(0,l.jsx)("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===s})})})}PreviewBlock.propTypes={className:r().string,width:r().string,height:r().string,shape:r().string,padding:r().bool,smallWidth:r().string,smallHeight:r().string,tabletWidth:r().string,tabletHeight:r().string,desktopWidth:r().string,desktopHeight:r().string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0};const c=PreviewBlock},82218(e,t,i){i.d(t,{A:()=>a});var s=i(62688),o=i.n(s),n=i(4751),r=i(62540);function PreviewBlocks({width:e,height:t,shape:i,count:s,smallWidth:o,smallHeight:a,tabletWidth:l,tabletHeight:c,desktopWidth:g,desktopHeight:d}){const u=[];let h=0;for(;h++<s;)u.push((0,r.jsx)(n.A,{width:e,height:t,shape:i,smallWidth:o,smallHeight:a,tabletWidth:l,tabletHeight:c,desktopWidth:g,desktopHeight:d},h));return u}PreviewBlocks.propTypes={width:o().string,height:o().string,shape:o().string,count:o().number,smallWidth:o().string,smallHeight:o().string,tabletWidth:o().string,tabletHeight:o().string,desktopWidth:o().string,desktopHeight:o().string},PreviewBlocks.defaultProps={width:"100px",height:"100px",shape:"square",count:1};const a=PreviewBlocks},97591(e,t,i){i.d(t,{A:()=>RecoverableModules});var s=i(62688),o=i.n(s),n=i(82871),r=i(50539),a=i(88273),l=i(12317),c=i(62540);function RecoverableModules({moduleSlugs:e}){const t=(0,r.useSelect)(t=>{const i=t(a.i).getModules();if(void 0!==i)return e.map(e=>i[e].name)});if(void 0===t)return null;const i=1===t.length?(0,n.sprintf)(/* translators: %s: Module name */ /* translators: %s: Module name */ (0,n.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),t[0]):(0,n.sprintf)(/* translators: %s: List of module names */ /* translators: %s: List of module names */ (0,n.__)("The data for the following modules was previously shared by an admin who no longer has access: %s. Please contact another admin to restore it.","google-site-kit"),t.join((0,n._x)(", ","Recoverable modules","google-site-kit")));return(0,c.jsx)(l.A,{title:(0,n.__)("Data Unavailable","google-site-kit"),description:i})}RecoverableModules.propTypes={moduleSlugs:o().arrayOf(o().string).isRequired}},82246(e,t,i){i.d(t,{A:()=>d});var s=i(62688),o=i.n(s),n=i(81276),r=i(63696),a=i(49383),l=i(59865),c=i(62540);let g=null;function RefocusableModalDialog({dialogActive:e=!1,refocusQuerySelector:t=null,...i}){const s=(0,r.useCallback)(()=>{setTimeout(()=>{const e=t?document.querySelector(t):g;e&&document.body.contains(e)&&e.focus(),t||(g=null)})},[t]),o=(0,n.A)(e);return(0,r.useEffect)(()=>(!0===o&&!1===e&&s(),()=>{s()}),[o,e,s]),(0,c.jsx)(l.A,{dialogActive:e,...i})}!function(){function e(e){const t=e.target.closest("button, a, input");t&&!t.classList.contains("mdc-dialog__cancel-button")&&(g=t)}"undefined"!=typeof globalThis&&globalThis.document&&!globalThis._googlesitekitModalFocusTrackerInitialized&&(globalThis.document.addEventListener("mousedown",e),globalThis.document.addEventListener("keydown",t=>{"Enter"!==t.key&&" "!==t.key||e(t)}),globalThis._googlesitekitModalFocusTrackerInitialized=!0)}(),RefocusableModalDialog.propTypes={dialogActive:o().bool,refocusQuerySelector:o().string,...a.Dialog.propTypes};const d=RefocusableModalDialog},44192(e,t,i){i.d(t,{A:()=>ReportError});var s=i(17243),o=i(62688),n=i.n(o),r=i(63696),a=i(82871),l=i(81375),c=i(50539),g=i(88273),d=i(4124),u=i(13137),h=i(31012),p=i(55465),m=i(73198),f=i(12317),_=i(1641),b=i(62540);function ReportError({moduleSlug:e,error:t}){const i=(0,d.A)(),o=(0,c.useSelect)(t=>t(g.i).getModule(e)),n=Array.isArray(t)?t:[t];let k;function y(e){return(0,u.SG)(e)?i?(k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Access lost to %s","google-site-kit"),o?.name),(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("The administrator sharing this module with you has lost access to the %s service, so you wonât be able to see stats from it on the Site Kit dashboard. You can contact them or another administrator to restore access.","google-site-kit"),o?.name)):(k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Insufficient permissions in %s","google-site-kit"),o?.name),(0,h.c)(e.message,o)):(0,u.e4)(e)}const v=(0,s.uniqWith)(n.map(e=>({...e,message:y(e),reconnectURL:e.data?.reconnectURL?(0,l.m)(e.data.reconnectURL,"code"):void 0})),(e,t)=>e.message===t.message&&e.reconnectURL===t.reconnectURL),A=n.some(e=>(0,u.SG)(e));A||1!==v.length?!A&&v.length>1&&(k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Data errors in %s","google-site-kit"),o?.name)):k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Data error in %s","google-site-kit"),o?.name);const x=(0,b.jsx)(r.Fragment,{children:v.map(e=>{const t=e?.data?.reconnectURL;return t?(0,b.jsx)(m.A,{error:e,message:e.message},e.message):(0,b.jsx)("p",{children:p.O.sanitize(e.message,{ALLOWED_TAGS:[]})},e.message)})});return(0,b.jsx)(f.A,{title:k,description:x,error:!0,children:(0,b.jsx)(_.A,{moduleSlug:e,error:t})})}ReportError.propTypes={moduleSlug:n().string.isRequired,error:n().oneOfType([n().arrayOf(n().object),n().object]).isRequired}},1641(e,t,i){i.d(t,{A:()=>ReportErrorActions});var s=i(62688),o=i.n(s),n=i(63696),r=i(13606),a=i(82871),l=i(49383),c=i(50539),g=i(29785),d=i(88273),u=i(4124),h=i(13137),p=i(38432),m=i(62540);function ReportErrorActions(e){const{moduleSlug:t,error:i,GetHelpLink:s,hideGetHelpLink:o,buttonVariant:f,onRetry:_,onRequestAccess:b,getHelpClassName:k,RequestAccessButton:y,RetryButton:v}=e,A=(0,u.A)(),x=(0,c.useSelect)(e=>e(d.i).getModuleStoreName(t)),S=(0,c.useSelect)(e=>"function"==typeof e(x)?.getServiceEntityAccessURL?e(x).getServiceEntityAccessURL():null),N=Array.isArray(i)?i:[i],j=(0,c.useSelect)(e=>N.map(t=>{const i=e(x)?.getSelectorDataForError(t);return{...t,selectorData:i}})),I=j?.filter(e=>(0,h.vl)(e,e.selectorData)&&"getReport"===e.selectorData.name),w=!!I.length,T=(0,c.useSelect)(e=>{const i={...w?I[0]:N[0]};return(0,h.SG)(i)&&(i.code=`${t}_insufficient_permissions`),e(g.O4).getErrorTroubleshootingLinkURL(i)}),C=(0,c.useDispatch)(),E=N.some(e=>(0,h.SG)(e)),M=(0,n.useCallback)(()=>{I.forEach(e=>{const{selectorData:t}=e;C(t.storeName).invalidateResolution(t.name,t.args)}),_?.()},[C,I,_]),R=S&&E&&!A;return(0,m.jsxs)("div",{className:"googlesitekit-report-error-actions",children:[R&&("function"==typeof y?(0,m.jsx)(y,{requestAccessURL:S}):(0,m.jsx)(l.Button,{onClick:b,href:S,target:"_blank",danger:"danger"===f,tertiary:"tertiary"===f,children:(0,a.__)("Request access","google-site-kit")})),w&&(0,m.jsxs)(n.Fragment,{children:["function"==typeof v?(0,m.jsx)(v,{handleRetry:M}):(0,m.jsx)(l.Button,{onClick:M,danger:"danger"===f,tertiary:"tertiary"===f,children:(0,a.__)("Retry","google-site-kit")}),!o&&(0,m.jsx)("span",{className:"googlesitekit-error-retry-text",children:(0,r.A)((0,a.__)("Retry didnât work? <HelpLink />","google-site-kit"),{HelpLink:(0,m.jsx)(p.A,{href:T,external:!0,hideExternalIndicator:!0,children:(0,a.__)("Get help","google-site-kit")})})})]}),!w&&!o&&(0,m.jsx)("div",{className:k,children:"function"==typeof s?(0,m.jsx)(s,{linkURL:T}):(0,m.jsx)(p.A,{href:T,external:!0,hideExternalIndicator:!0,children:(0,a.__)("Get help","google-site-kit")})})]})}ReportErrorActions.propTypes={moduleSlug:o().string.isRequired,error:o().oneOfType([o().arrayOf(o().object),o().object]).isRequired,GetHelpLink:o().elementType,hideGetHelpLink:o().bool,buttonVariant:o().string,onRetry:o().func,onRequestAccess:o().func,getHelpClassName:o().string,RequestAccessButton:o().elementType,RetryButton:o().elementType}},15118(e,t,i){i.d(t,{A:()=>ReportZero});var s=i(62688),o=i.n(s),n=i(82871),r=i(50539),a=i(88273),l=i(12317),c=i(62540);function ReportZero({moduleSlug:e}){const t=(0,r.useSelect)(t=>t(a.i).getModule(e));return(0,c.jsx)(l.A,{title:(0,n.sprintf)(/* translators: %s: Module name */ /* translators: %s: Module name */ (0,n.__)("%s Gathering Data","google-site-kit"),t?.name),description:(0,n.sprintf)(/* translators: %s: Module name */ /* translators: %s: Module name */ (0,n.__)("%s data is not yet available, please check back later","google-site-kit"),t?.name)})}ReportZero.propTypes={moduleSlug:o().string.isRequired}},19826(e,t,i){i.d(t,{Ay:()=>r,Kq:()=>n});const s=(0,i(63696).createContext)(""),{Consumer:o,Provider:n}=s,r=s},63081(e,t,i){i.d(t,{A:()=>Root});var s=i(44010),o=i(77105),n=i(62688),r=i.n(n),a=i(63696),l=i(50539),c=i.n(l),g=i(82871),d=i(6730),u=i(19826),h=i(67510),p=i(13047),m=i(62540);class ErrorHandler extends a.Component{constructor(e){super(e),this.state={error:null,info:null,copied:!1}}componentDidCatch(e,t){globalThis.console.error("Caught an error:",e,t),this.setState({error:e,info:t}),(0,p.sx)("react_error",`handle_${this.context||"unknown"}_error`,`${e?.message}\n${t?.componentStack}`.slice(0,500))}render(){const{children:e,hideFilenamesInStack:t}=this.props,{error:i,info:s}=this.state;if(!i)return e;let o=s?.componentStack;return t&&o&&(o=o.replace(/\(.*\)/g,"(filtered)").replace(/at (.+) ?https?:\/\/.*/g,"at $1 (filtered)").replace(/at https?:\/\/.*/g,"").replace(/\n \n /g,"\n ")),(0,m.jsx)(h.A,{notificationID:"googlesitekit-error",className:"googlesitekit-error-handler",type:"error",title:(0,g.__)("Site Kit encountered an error","google-site-kit"),description:(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)(d.A,{message:i.message,componentStack:o}),(0,m.jsxs)("pre",{className:"googlesitekit-overflow-auto",children:[i.message,o]})]})})}}ErrorHandler.contextType=u.Ay,ErrorHandler.propTypes={children:r().node.isRequired};const f=ErrorHandler;var _=i(79961);const{Consumer:b,Provider:k}=_.A,y=k;var v=i(15844),A=i(97345),x=i(62659),S=i(71264);function FeatureTours(){const e=(0,x.A)(),{triggerTourForView:t}=(0,l.useDispatch)(A.oR);(0,v.A)(()=>{t(e)});const i=(0,l.useSelect)(e=>e(A.oR).getCurrentTour());return(0,a.useEffect)(()=>{if(!i)return()=>{};const e=document.getElementById("js-googlesitekit-main-dashboard");if(!e)return()=>{};const t=new ResizeObserver(()=>{globalThis.dispatchEvent(new Event("resize"))});return t.observe(e),()=>{t.disconnect()}},[i]),i?(0,m.jsx)(S.Ay,{tourID:i.slug,steps:i.steps,gaEventCategory:i.gaEventCategory,isRepeatable:i.isRepeatable,callback:i.callback}):null}var N=i(20762),j=i(94656),I=i(82246),w=i(78990),T=i(11999),C=i(70301);const E=function AuthenticatedPermissionsModal(){const e=(0,l.useRegistry)(),t=(0,l.useSelect)(e=>e(A.oR).getPermissionScopeError()),i=(0,l.useSelect)(e=>e(A.oR).getUnsatisfiedScopes()),s=(0,l.useSelect)(e=>e(A.oR).getConnectURL({additionalScopes:t?.data?.scopes,redirectURL:t?.data?.redirectURL||globalThis.location.href,errorRedirectURL:t?.data?.errorRedirectURL})),{clearPermissionScopeError:o}=(0,l.useDispatch)(A.oR),{navigateTo:n}=(0,l.useDispatch)(C.M),{setValues:r}=(0,l.useDispatch)(T.s),c=(0,a.useCallback)(()=>{o()},[o]),d=(0,a.useCallback)(async()=>{r(A.$8,{permissionsError:t}),await(0,w.mR)(e),n(s)},[e,s,n,t,r]);return(0,a.useEffect)(()=>{!async function(){t?.data?.skipModal&&t?.data?.scopes?.length&&await d()}()},[d,t]),t?t?.data?.scopes?.length?t?.data?.skipModal||i&&t?.data?.scopes.every(e=>i.includes(e))?null:(0,m.jsx)(j.A,{children:(0,m.jsx)(I.A,{title:(0,g.__)("Additional Permissions Required","google-site-kit"),subtitle:t.message,confirmButton:(0,g.__)("Proceed","google-site-kit"),handleConfirm:d,handleCancel:c,onClose:c,dialogActive:!0,medium:!0})}):(globalThis.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",t),null):null};const M=function PermissionsModal(){return(0,l.useSelect)(e=>e(A.oR).isAuthenticated())?(0,m.jsx)(E,{}):null};const R=function RestoreSnapshots({children:e}){const t=(0,l.useRegistry)(),[i,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{i||(async()=>{await(0,w.P9)(t),s(!0)})()},[t,i]),i?e:null};var D=i(84895),O=i(86582);function Root({children:e,registry:t,viewContext:i=null}){const n=s.D,[r]=(0,a.useState)({key:"Root",value:!0});return(0,m.jsx)(a.StrictMode,{children:(0,m.jsx)(N.Ay,{value:r,children:(0,m.jsx)(l.RegistryProvider,{value:t,children:(0,m.jsx)(y,{value:D.t,children:(0,m.jsx)(u.Kq,{value:i,children:(0,m.jsx)(o.A,{theme:n(),children:(0,m.jsxs)(f,{children:[(0,m.jsxs)(R,{children:[e,i&&(0,m.jsx)(FeatureTours,{})]}),(0,O.A)(i)&&(0,m.jsx)(M,{})]})})})})})})})}Root.propTypes={children:r().node,registry:r().object,viewContext:r().string.isRequired},Root.defaultProps={registry:c()}},68329(e,t,i){i.d(t,{A:()=>a});var s=i(63696),o=i(37325),n=i(62540);const r=(0,s.forwardRef)((e,t)=>(0,n.jsx)(o.A,{className:"googlesitekit-notice--square googlesitekit-notice--side-panel",...e,ref:t})),a=r;r.propTypes={...o.A.propTypes}},15650(e,t,i){i.d(t,{kA:()=>SelectionPanelContent,gy:()=>SelectionPanelFooter,W4:()=>SelectionPanelHeader,y3:()=>SelectionPanelItem,DW:()=>SelectionPanelItems,Ay:()=>I});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(4544),l=i.n(a),c=i(21795),g=i(78174),d=i(63696),u=i(53328),h=i(94656),p=i(62540);function SideSheet({className:e,children:t,isOpen:i,isLoading:s,onOpen:n=()=>{},closeSheet:r=()=>{},focusTrapOptions:a={}}){const m=(0,d.useRef)(),[f,_]=(0,d.useState)(0);return(0,d.useEffect)(()=>{i?(_(function(){const e=globalThis.document?.getElementById("wpadminbar");if(!e)return 0;const{top:t,bottom:i,height:s}=e.getBoundingClientRect();return t<0||i<=0?0:s}()),n(),document.body.classList.add("googlesitekit-side-sheet-scroll-lock")):(_(0),document.body.classList.remove("googlesitekit-side-sheet-scroll-lock"))},[i,n]),(0,c.A)(m,function(e){e.target.closest?.(".googlesitekit-tooltip-popper")||r()}),(0,g.A)(e=>i&&u._f===e.keyCode,r),(0,p.jsxs)(h.A,{children:[(0,p.jsx)(l(),{active:!!i&&!s,focusTrapOptions:{fallbackFocus:"body",allowOutsideClick:function(e){return!!e.target.closest?.(".googlesitekit-tooltip-popper")},...a},children:(0,p.jsx)("section",{ref:m,className:o()("googlesitekit-side-sheet",e,{"googlesitekit-side-sheet--open":i}),role:"dialog","aria-modal":"true","aria-hidden":!i,tabIndex:"0",style:{"--googlesitekit-side-sheet-top":`${f}px`},children:t})}),i&&(0,p.jsx)("span",{className:"googlesitekit-side-sheet-overlay"})]})}function SelectionPanel({children:e,isOpen:t,isLoading:i,onOpen:s,closePanel:n,className:r}){const a=r?.split(/\s+/).map(e=>`.${e}`).join(""),l=a?`${a} .googlesitekit-selection-panel-item .googlesitekit-selection-box input`:".googlesitekit-selection-panel-item .googlesitekit-selection-box input";return(0,p.jsx)(SideSheet,{className:o()("googlesitekit-selection-panel",r),isOpen:t,isLoading:i,onOpen:s,closeSheet:n,focusTrapOptions:{initialFocus:function(){return document.querySelector(l)||!1}},children:e})}SideSheet.propTypes={className:r().string,children:r().node,isOpen:r().bool,isLoading:r().bool,onOpen:r().func,closeSheet:r().func,focusTrapOptions:r().object},SelectionPanel.propTypes={children:r().node,isOpen:r().bool,isLoading:r().bool,onOpen:r().func,closePanel:r().func,className:r().string};var m=i(38432),f=i(33052),_=i(72545);function SelectionPanelHeader({children:e,title:t,onCloseClick:i}){return(0,p.jsxs)("header",{className:"googlesitekit-selection-panel-header",children:[(0,p.jsxs)("div",{className:"googlesitekit-selection-panel-header__row",children:[(0,p.jsx)(f.A,{as:"h3",size:"small",type:"headline",children:t}),(0,p.jsx)(m.A,{className:"googlesitekit-selection-panel-header__close",onClick:i,linkButton:!0,children:(0,p.jsx)(_.A,{width:"15",height:"15"})})]}),e]})}SelectionPanelHeader.propTypes={children:r().node,title:r().string,onCloseClick:r().func};var b=i(82871),k=i(5855),y=i(49383);function SelectionBox({badge:e,checked:t,children:i,disabled:s,id:n,onChange:r,title:a,value:l}){return(0,p.jsx)("div",{className:o()("googlesitekit-selection-box",{"googlesitekit-selection-box--disabled":s}),children:(0,p.jsx)(y.Checkbox,{checked:t,description:i,disabled:s,id:n,name:n,onChange:r,value:l,badge:e,children:a})})}function SelectionPanelItem({children:e,id:t,slug:i,title:s,description:o,isItemSelected:n,isItemDisabled:r,onCheckboxChange:a,subtitle:l,suffix:c,badge:g,isNewlyDetected:d}){return(0,p.jsxs)("div",{className:"googlesitekit-selection-panel-item",children:[(0,p.jsxs)(SelectionBox,{badge:g,checked:n,disabled:r,id:t,onChange:a,title:s,value:i,children:[l&&(0,p.jsx)("span",{className:"googlesitekit-selection-panel-item__subtitle",children:l}),o,e]}),d&&(0,p.jsx)(k.A,{label:(0,b.__)("New","google-site-kit")}),c&&(0,p.jsx)("span",{className:"googlesitekit-selection-panel-item__suffix",children:c})]})}function SelectionPanelItems({currentSelectionTitle:e=(0,b.__)("Current selection","google-site-kit"),availableItemsTitle:t=(0,b.__)("Additional items","google-site-kit"),savedItemSlugs:i=[],availableSavedItems:s={},availableUnsavedItems:o={},ItemComponent:n,notice:r}){function a(e){return Object.keys(e).map(t=>(0,p.jsx)(n,{slug:t,savedItemSlugs:i,...e[t]},t))}const l=Object.keys(o).length;return(0,p.jsxs)("div",{className:"googlesitekit-selection-panel-items",children:[0!==i.length&&(0,p.jsxs)(d.Fragment,{children:[(0,p.jsx)("p",{className:"googlesitekit-selection-panel-items__subheading",children:e}),(0,p.jsx)("div",{className:"googlesitekit-selection-panel-items__subsection",children:a(s)}),l>0&&(0,p.jsx)("p",{className:"googlesitekit-selection-panel-items__subheading",children:t})]}),l>0&&(0,p.jsx)("div",{className:"googlesitekit-selection-panel-items__subsection",children:a(o)}),r]})}SelectionBox.propTypes={badge:r().node,checked:r().bool,children:r().node,disabled:r().bool,id:r().string,onChange:r().func,title:r().string,value:r().string},SelectionPanelItem.propTypes={children:r().node,id:r().string,slug:r().string,title:r().string,description:r().string,isItemSelected:r().bool,isItemDisabled:r().bool,onCheckboxChange:r().func,subtitle:r().string,suffix:r().node,badge:r().node,isNewlyDetected:r().bool},SelectionPanelItems.propTypes={currentSelectionTitle:r().string,availableItemsTitle:r().string,savedItemSlugs:r().array,availableSavedItems:r().object,availableUnsavedItems:r().object,ItemComponent:r().elementType,notice:r().node};var v=i(17243),A=i(13606),x=i(50539),S=i(4751),N=i(99893),j=i(13047);function SelectionPanelFooter({savedItemSlugs:e=[],selectedItemSlugs:t=[],saveSettings:i=()=>{},minSelectedItemCount:s=0,maxSelectedItemCount:o=0,isBusy:n,onSaveSuccess:r=()=>{},onCancel:a=()=>{},isOpen:l,closePanel:c=()=>{}}){const[g,u]=(0,d.useState)(null),[h,m]=(0,d.useState)(!1),f=(0,x.useSelect)(e=>e(N.K9).isFetchingSyncAvailableAudiences()),_=(0,d.useMemo)(()=>!(0,v.isEqual)((0,j.N9)(t),(0,j.N9)(e)),[e,t]),k=e?.length>0&&_?(0,b.__)("Apply changes","google-site-kit"):(0,b.__)("Save selection","google-site-kit"),I=(0,d.useCallback)(async()=>{const{error:e}=await i(t);e||(r(),c(),u(k),m(!0))},[i,t,r,c,k]),w=(0,d.useCallback)(()=>{c(),a()},[c,a]),[T,C]=(0,d.useState)(null);(0,d.useEffect)(()=>{null!==T&&T!==l&&l&&(u(null),m(!1)),C(l)},[l,T]);const E=t?.length||0,M=f?(0,p.jsx)(S.A,{width:"89px",height:"20px"}):(0,p.jsx)("p",{className:"googlesitekit-selection-panel-footer__item-count",children:(0,A.A)((0,b.sprintf)(/* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */ /* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */ (0,b.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),E,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:[M,(0,p.jsxs)("div",{className:"googlesitekit-selection-panel-footer__actions",children:[(0,p.jsx)(y.Button,{onClick:w,disabled:n,tertiary:!0,children:(0,b.__)("Cancel","google-site-kit")}),(0,p.jsx)(y.SpinnerButton,{onClick:I,isSaving:n,disabled:E<s||E>o||n||!l&&h,children:g||k})]})]})})}function SelectionPanelContent({children:e,className:t}){return(0,p.jsx)("div",{className:o()("googlesitekit-selection-panel__content",t),children:e})}SelectionPanelFooter.propTypes={savedItemSlugs:r().array,selectedItemSlugs:r().array,saveSettings:r().func,minSelectedItemCount:r().number,maxSelectedItemCount:r().number,isBusy:r().bool,onSaveSuccess:r().func,onCancel:r().func,isOpen:r().bool,closePanel:r().func},SelectionPanelContent.propTypes={children:r().node,className:r().string};const I=SelectionPanel},83202(e,t,i){i.d(t,{A:()=>TourTooltip});var s=i(28056),o=i.n(s),n=i(4452),r=i.n(n),a=i(62688),l=i.n(a),c=i(82871),g=i(49383),d=i(30805);var u=i(72545),h=i(33052),p=i(62540);function TourTooltip({backProps:e,closeProps:t,index:i,primaryProps:n,size:a,step:l,tooltipProps:m}){const f=(0,d.i)("setupFlowRefresh"),_=a>1?function(e){return new Array(e??0).fill().map((e,t)=>t)}(a):[];function b(e){return r()("googlesitekit-tooltip-indicator",{active:e===i})}const k=f?10:14;return(0,p.jsx)("div",{className:r()("googlesitekit-tour-tooltip",l.className,{"googlesitekit-tour-tooltip--no-title":!l.title,"googlesitekit-tour-tooltip--setupFlowRefresh":f}),...m,children:(0,p.jsxs)(o(),{className:"googlesitekit-tooltip-card",children:[(0,p.jsxs)("div",{className:"googlesitekit-tooltip-body",children:[l.title&&(0,p.jsx)(h.A,{as:"h2",className:"googlesitekit-tooltip-title",size:"medium",type:"title",children:l.title}),(0,p.jsx)("div",{className:"googlesitekit-tooltip-content",children:l.content})]}),(0,p.jsxs)(s.CardActions,{className:"googlesitekit-tooltip-actions",children:[!f&&(0,p.jsx)("ul",{className:"googlesitekit-tooltip-indicators",children:_.map(e=>(0,p.jsx)("li",{className:b(e)},`indicator-${e}`))}),f&&(0,p.jsx)("p",{className:"googlesitekit-tooltip-steps",children:a>1&&`${i+1} / ${a}`}),(0,p.jsxs)("div",{className:"googlesitekit-tooltip-buttons",children:[0!==i&&(0,p.jsx)(g.Button,{className:"googlesitekit-tooltip-button",text:!f,tertiary:f,...e,children:e.title}),l.cta,n.title&&(0,p.jsx)(g.Button,{className:r()("googlesitekit-tooltip-button",{"googlesitekit-tooltip-button--primary":f}),text:!f,...n,children:n.title})]})]}),(0,p.jsx)(g.Button,{className:"googlesitekit-tooltip-close",icon:(0,p.jsx)(u.A,{width:k,height:k}),onClick:t.onClick,"aria-label":(0,c.__)("Close","google-site-kit"),text:!0,hideTooltipTitle:!0})]})})}TourTooltip.propTypes={backProps:l().object.isRequired,closeProps:l().object.isRequired,index:l().number.isRequired,isLastStep:l().bool.isRequired,primaryProps:l().object.isRequired,size:l().number.isRequired,step:l().shape({content:l().node,title:l().node,cta:l().oneOfType([l().element,l().bool]),className:l().string}).isRequired,tooltipProps:l().object.isRequired}},71264(e,t,i){i.d(t,{Ay:()=>TourTooltips,R0:()=>b,ei:()=>y});var s=i(62688),o=i.n(s),n=i(36703),r=i(15844),a=i(82871),l=i(50539),c=i(84895),g=i(7972),d=i(97345),u=i(97513),h=i(62659),p=i(65054),m=i(83202),f=i(62540);const _=(0,c.G)("setupFlowRefresh"),b={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:_?"rgba(0, 0, 0, 0.25)":"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:_?"none":"2px solid #3c7251",backgroundColor:"#fff"}},k={back:(0,a.__)("Back","google-site-kit"),close:(0,a.__)("Close","google-site-kit"),last:(0,a.__)("Got it","google-site-kit"),next:(0,a.__)("Next","google-site-kit")},y={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},v={disableBeacon:!0,isFixed:!0,placement:"auto"},A={placement:"top",offset:0},x="feature_tooltip_view",S="feature_tooltip_advance",N="feature_tooltip_return",j="feature_tooltip_dismiss",I="feature_tooltip_complete";function TourTooltips({steps:e,tourID:t,gaEventCategory:i,isRepeatable:s,callback:o}){const a=`${t}-step`,c=`${t}-run`,{setValue:w}=(0,l.useDispatch)(g.nX),{dismissTour:T,receiveCurrentTour:C}=(0,l.useDispatch)(d.oR),E=(0,l.useRegistry)(),M=(0,h.A)(),R=(0,u.dv)(),D=(0,l.useSelect)(e=>e(g.nX).getValue(a)||0),O=(0,l.useSelect)(e=>{const i=s||!1===e(d.oR).isTourDismissed(t);return e(g.nX).getValue(c)&&i});function L(i){return`googlesitekit-showing-feature-tour--${t}-${e[i].slug||i}`}(0,r.A)(function(){globalThis.document.body.classList.add("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`,L(D)),w(c,!0)});const P=e.map(e=>e.isResponsive&&R===u.mp?{...v,...e,...A,floaterProps:{...e.floaterProps,target:e.target}}:{...v,...e}),z=_?{...y,styles:{...y.styles,floater:{filter:"drop-shadow(rgba(0, 0, 0, 0.25) 0px 4px 16px)"}}}:y;return(0,f.jsx)(n.Ay,{callback:function(r){!function({index:e,action:t,lifecycle:s,size:o,status:r,type:a}){const l=e+1,c="function"==typeof i?i(M):i;a===n.qY.TOOLTIP&&s===n.VD.TOOLTIP?(0,p.sx)(c,x,l):t===n.kl.CLOSE&&s===n.VD.COMPLETE?(0,p.sx)(c,j,l):t===n.kl.NEXT&&r===n.XQ.FINISHED&&a===n.qY.TOUR_END&&o===l&&(0,p.sx)(c,I,l),s===n.VD.COMPLETE&&r!==n.XQ.FINISHED&&(t===n.kl.PREV&&(0,p.sx)(c,N,l),t===n.kl.NEXT&&(0,p.sx)(c,S,l))}(r);const{action:l,index:g,status:d,step:h,type:m}=r,f=l===n.kl.CLOSE,_=!f&&[n.qY.STEP_AFTER,n.qY.TARGET_NOT_FOUND].includes(m),b=[n.XQ.FINISHED,n.XQ.SKIPPED].includes(d),k=f&&m===n.qY.STEP_AFTER,y=b||k;n.qY.STEP_BEFORE===m&&function(e){let t=e.target;if("string"==typeof e.target&&(t=globalThis.document.querySelector(e.target)),!(t instanceof Element))return;if(!e.isResponsive||R!==u.mp)return void t.scrollIntoView({block:"center"});const i=document.querySelector(".__floater");if(!i)return;const{top:s,bottom:o}=t.getBoundingClientRect(),{height:n}=i.getBoundingClientRect(),r=s-n-60+window.scrollY;if(r>=0)window.scrollTo({top:r});else{const e=o-window.innerHeight+n+60+window.scrollY;window.scrollTo({top:e})}}(h),_?function(t,i){const s=t+(i===n.kl.PREV?-1:1);globalThis.document.body.classList.remove(L(t)),e[s]&&globalThis.document.body.classList.add(L(s)),w(a,s)}(g,l):y&&(globalThis.document.body.classList.remove("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),e[D]&&globalThis.document.body.classList.remove(L(D)),s?(w(c,!1),w(a,null),C(null)):T(t)),o&&o(r,E)},floaterProps:z,locale:k,run:O,stepIndex:D,steps:P,styles:b,tooltipComponent:m.A,showProgress:!_,continuous:!0,disableOverlayClose:!0,disableScrolling:!0})}TourTooltips.propTypes={steps:o().arrayOf(o().object).isRequired,tourID:o().string.isRequired,gaEventCategory:o().oneOfType([o().string,o().func]).isRequired,isRepeatable:o().bool,callback:o().func}},83880(e,t,i){i.d(t,{A:()=>c});var s=i(62688),o=i.n(s),n=i(97513),r=i(8513),a=i(33052),l=i(62540);function c({type:e=r.SZ,size:t,children:i,...s}){const o=(0,n.dv)();return(0,l.jsx)(a.A,{as:"p",type:e,size:t||(o===n.mp?r.Kk:r.Yw),...s,children:i})}c.propTypes={type:o().oneOf(r.tT),size:o().oneOf(r.oJ)}},8513(e,t,i){i.d(t,{Kk:()=>r,SZ:()=>s,Yw:()=>a,oJ:()=>l,s7:()=>o,tT:()=>n});const s="body",o="label",n=[s,"display","headline",o,"title"],r="small",a="medium",l=[r,a,"large"]},33052(e,t,i){i.d(t,{A:()=>Typography});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(8513),l=i(62540);function Typography({className:e,type:t,size:i,as:s="span",children:n,...r}){return(0,l.jsx)(s,{className:o()("googlesitekit-typography",e,{[`googlesitekit-typography--${t}`]:t&&a.tT.includes(t),[`googlesitekit-typography--${i}`]:i&&a.oJ.includes(i)}),...r,children:n})}Typography.propTypes={className:r().string,type:r().oneOf(a.tT),size:r().oneOf(a.oJ),as:r().oneOfType([r().string,r().elementType])}},55989(e,t,i){i.d(t,{A:()=>l});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(62540);function VisuallyHidden({className:e,children:t,...i}){return t?(0,a.jsx)("span",{...i,className:o()("screen-reader-text",e),children:t}):null}VisuallyHidden.propTypes={className:r().string,children:r().node},VisuallyHidden.defaultProps={className:""};const l=VisuallyHidden},29775(e,t,i){i.d(t,{hk:()=>n,tm:()=>o,zP:()=>s});const s="editing-user-role-select-slug-key",o="dashboardSharingDialogOpen",n="resetSharingDialogOpen"},8712(e,t,i){i.d(t,{A:()=>DashboardSharingSettings});var s=i(4452),o=i.n(s),n=i(82871),r=i(50539),a=i(29785),l=i(97345),c=i(88273),g=i(62688),d=i.n(g),u=i(63696),h=i(2671),p=i(7972),m=i(62659),f=i(13047),_=i(29775),b=i(13606),k=i(12417),y=i(51135),v=i(49383),A=i(62540);const x=[{value:"owner",label:(0,n.__)("Only me","google-site-kit")},{value:"all_admins",label:(0,n.__)("Any admin signed in with Google","google-site-kit")}];function ModuleManageAccess({sharedOwnershipModule:e,hasOwnedModule:t,ownerUsername:i,hasSharingCapability:s,manageViewAccess:o,onChange:r}){return e?(0,A.jsxs)("p",{className:"googlesitekit-dashboard-sharing-settings__note",children:[(0,A.jsx)("span",{children:(0,n.__)("Any admin signed in with Google","google-site-kit")}),(0,A.jsx)(v.Tooltip,{title:(0,n.__)("This service requires general access to Google APIs rather than access to a specific user-owned property/entity, so view access is manageable by any admin signed in with Google.","google-site-kit"),children:(0,A.jsx)("span",{className:"googlesitekit-dashboard-sharing-settings__tooltip-icon",children:(0,A.jsx)(k.A,{icon:y.A,size:18})})})]}):t?(0,A.jsx)(v.Select,{className:"googlesitekit-dashboard-sharing-settings__select",value:o,options:x,onChange:r,onClick:r,outlined:!0}):i?(0,A.jsxs)("p",{className:"googlesitekit-dashboard-sharing-settings__note",children:[(0,b.A)((0,n.sprintf)(/* translators: %s: user who manages the module. */ /* translators: %s: user who manages the module. */ (0,n.__)("<span>Managed by</span> <strong>%s</strong>","google-site-kit"),i),{span:(0,A.jsx)("span",{}),strong:(0,A.jsx)("strong",{})}),(0,A.jsx)(v.Tooltip,{title:s?(0,n.sprintf)(/* translators: %s: name of the user who manages the module. */ /* translators: %s: name of the user who manages the module. */ (0,n.__)("%s has connected this and given managing permissions to all admins. You can change who can view this on the dashboard.","google-site-kit"),i):(0,n.sprintf)(/* translators: %s: name of the user who manages the module. */ /* translators: %s: name of the user who manages the module. */ (0,n.__)("Contact %s to change who can manage view access for this module","google-site-kit"),i),children:(0,A.jsx)("span",{className:"googlesitekit-dashboard-sharing-settings__tooltip-icon",children:(0,A.jsx)(k.A,{icon:y.A,size:18})})})]}):null}ModuleManageAccess.propTypes={sharedOwnershipModule:d().bool,hasOwnedModule:d().bool,ownerUsername:d().string,hasSharingCapability:d().bool,manageViewAccess:d().string,onChange:d().func.isRequired};var S=i(53328),N=i(38432),j=i(12896),I=i(11253),w=i(91576);const T=(0,n.__)("All","google-site-kit"),C=(0,u.forwardRef)(({moduleSlug:e,isLocked:t=!1},i)=>{const s=(0,m.A)(),a=(0,u.useRef)(),{setSharedRoles:l}=(0,r.useDispatch)(c.i),{setValue:g}=(0,r.useDispatch)(p.nX),d=(0,r.useSelect)(e=>e(c.i).getShareableRoles()),h=(0,r.useSelect)(t=>t(c.i).getSharedRoles(e)),b=(0,r.useSelect)(e=>e(p.nX).getValue(_.zP))===e;(0,j.l)([S._f],i,()=>{b&&g(_.zP,void 0)});const k=(0,r.useSelect)(t=>t(c.i).haveModuleSharingSettingsChanged(e,"sharedRoles")),y=(0,u.useCallback)(()=>{b?(g(_.zP,void 0),k&&(0,f.sx)(`${s}_sharing`,"change_shared_roles",e)):g(_.zP,e)},[b,k,e,g,s]);(0,u.useEffect)(()=>{a.current&&(b?a.current.firstChild.focus():a.current.focus())},[b]);const x=(0,u.useCallback)(({type:t,target:i,keyCode:s})=>{if("keydown"===t&&s!==S.Fm)return;const o=i.closest(".mdc-chip"),n=o?.dataset?.chipId;if(!n)return;let r;r="all"===n?h?.length===d?.length?[]:d.map(({id:e})=>e):null===h?[n]:h.includes(n)?h.filter(e=>e!==n):[...h,n],l(e,r)},[e,l,h,d]);return d?(0,A.jsxs)("div",{className:o()("googlesitekit-user-role-select",{"googlesitekit-user-role-select--open":b}),children:[!b&&(0,A.jsx)(v.Button,{"aria-label":(0,n.__)("Edit roles","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:y,icon:(0,A.jsx)(w.A,{width:23,height:23}),tabIndex:t?-1:void 0,ref:a}),!b&&h?.length>0&&(0,A.jsx)("span",{className:"googlesitekit-user-role-select__current-roles",children:function(){const e=d?.reduce((e,t)=>(h.includes(t.id)&&e.push(t.displayName),e),[]);return e.join(", ")}()}),!b&&(!h||0===h?.length)&&(0,A.jsx)("span",{className:"googlesitekit-user-role-select__add-roles",children:(0,A.jsx)(N.A,{onClick:y,tabIndex:t?-1:void 0,children:(0,n.__)("Add roles","google-site-kit")})}),b&&(0,A.jsxs)(u.Fragment,{children:[(0,A.jsxs)("div",{className:"googlesitekit-user-role-select__chipset",ref:a,children:[(0,A.jsx)(v.Chip,{id:"all",label:T,onClick:x,onKeyDown:x,selected:h?.length===d?.length,className:"googlesitekit-user-role-select__chip--all"}),d.map(({id:e,displayName:t},i)=>(0,A.jsx)(v.Chip,{id:e,label:t,onClick:x,onKeyDown:x,selected:h?.includes(e)},i))]}),(0,A.jsx)(v.Button,{"aria-label":(0,n.__)("Done editing roles","google-site-kit"),title:(0,n.__)("Done","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:y,icon:(0,A.jsx)(I.A,{width:18,height:18}),tabIndex:t?-1:void 0})]})]}):null});C.propTypes={moduleSlug:d().string.isRequired,isLocked:d().bool};const E=C;var M=i(37325),R=i(3749);const D=(0,u.forwardRef)(({moduleSlug:e,isLocked:t,hasSharingCapability:i,recoverable:s,recoverableModuleSupportLink:o},r)=>i?(0,A.jsx)(E,{moduleSlug:e,isLocked:t,ref:r}):s?(0,A.jsx)(M.A,{className:"googlesitekit-notice--small",type:R.L.WARNING,description:(0,b.A)((0,n.__)("Managing user required to manage view access. <a>Learn more</a>","google-site-kit"),{a:(0,A.jsx)(N.A,{href:o,external:!0,hideExternalIndicator:!0})}),hideIcon:!0}):(0,A.jsx)("p",{className:"googlesitekit-dashboard-sharing-settings__note",children:(0,n.__)("Contact managing user to manage view access","google-site-kit")}));D.propTypes={moduleSlug:d().string.isRequired,isLocked:d().bool.isRequired,hasSharingCapability:d().bool,recoverable:d().bool,recoverableModuleSupportLink:d().string},D.displayName="ModuleViewAccess";const O=D;function Module({moduleSlug:e,moduleName:t,ownerUsername:i,recoverable:s}){const n=(0,m.A)(),g=(0,u.useRef)(),[d,b]=(0,u.useState)(void 0),k=(0,r.useSelect)(e=>e(c.i).hasRecoverableModules()),y=(0,r.useSelect)(e=>e(a.O4).hasMultipleAdmins()),v=k||y,x=(0,r.useSelect)(t=>t(c.i).getSharingManagement(e)??"owner"),S=(0,r.useSelect)(t=>t(l.oR).hasCapability(l.Ml,e)),N=(0,r.useSelect)(t=>t(l.oR).hasCapability(l.hz,e)),j=(0,r.useSelect)(e=>e(c.i).getSharedOwnershipModules()),I=(0,r.useSelect)(e=>e(p.nX).getValue(_.zP)),w=(0,r.useSelect)(e=>e(c.i).isDoingSubmitSharingChanges()),T=(0,r.useSelect)(e=>e(a.O4).getDocumentationLinkURL("dashboard-sharing-module-recovery")),{setSharingManagement:C}=(0,r.useDispatch)(c.i),E=j&&Object.keys(j).includes(e);(0,u.useEffect)(()=>{b(E?"all_admins":x)},[x,E]);const M=(0,r.useSelect)(t=>t(c.i).haveModuleSharingSettingsChanged(e,"management"));(0,u.useEffect)(()=>{M&&(0,f.sx)(`${n}_sharing`,`change_management_${x}`,e)},[M,x,e,n]);const R=(0,u.useCallback)(t=>{const i=t.target.value;b(i),C(e,i)},[C,b,e]),D=e===I,L=!D&&void 0!==I||w;return(0,A.jsxs)("div",{className:o()("googlesitekit-dashboard-sharing-settings__module","googlesitekit-dashboard-sharing-settings__row",{"googlesitekit-dashboard-sharing-settings__row--editing":D,"googlesitekit-dashboard-sharing-settings__row--disabled":L}),ref:g,children:[(0,A.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__column--product",children:[(0,A.jsx)(h.A,{slug:e,size:48}),(0,A.jsx)("span",{className:"googlesitekit-dashboard-sharing-settings__module-name",children:t})]}),(0,A.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--view",children:(0,A.jsx)(O,{moduleSlug:e,isLocked:L,hasSharingCapability:N,recoverable:s,recoverableModuleSupportLink:T,ref:g})}),v&&(0,A.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--manage",children:(0,A.jsx)(ModuleManageAccess,{sharedOwnershipModule:E,hasOwnedModule:S,ownerUsername:i,hasSharingCapability:N,manageViewAccess:d,onChange:R})})]})}function DashboardSharingSettings(){const t=(0,r.useSelect)(e=>e(c.i).hasRecoverableModules()),i=(0,r.useSelect)(e=>e(a.O4).hasMultipleAdmins()),s=t||i,g=(0,r.useSelect)(t=>{const i=t(l.oR).getID(),s=t(c.i).getShareableModules(),o=[],n=[],r=[];for(e of Object.values(s))e.owner?.id===i?o.push(e):t(l.oR).hasCapability(l.hz,e.slug)?n.push(e):r.push(e);return[...o,...n,...r]});return void 0===g?null:(0,A.jsxs)("div",{className:o()("googlesitekit-dashboard-sharing-settings",{"googlesitekit-dashboard-sharing-settings--has-multiple-admins":s}),children:[(0,A.jsxs)("header",{className:"googlesitekit-dashboard-sharing-settings__header googlesitekit-dashboard-sharing-settings__row",children:[(0,A.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--product",children:(0,n.__)("Product","google-site-kit")}),(0,A.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--view",children:(0,n.__)("Who can view","google-site-kit")}),s&&(0,A.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--manage",children:(0,n.__)("Who can manage view access","google-site-kit")})]}),(0,A.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__main",children:g.map(({slug:e,name:t,owner:i,recoverable:s})=>(0,A.jsx)(Module,{moduleSlug:e,moduleName:t,ownerUsername:i?.login,recoverable:s},e))})]})}Module.propTypes={moduleSlug:d().string.isRequired,moduleName:d().string.isRequired,ownerUsername:d().string,recoverable:d().bool},e=i.hmd(e)},85662(e,t,i){i.d(t,{A:()=>DashboardSharingSettingsButton});var s=i(63696),o=i(82871),n=i(49383),r=i(50539),a=i(29785),l=i(7972),c=i(68832),g=i(62659),d=i(99893),u=i(13047),h=i(91576),p=i(4452),m=i.n(p),f=i(81042),_=i(31589),b=i(78174),k=i(13606),y=i(12417),v=i(59837),A=i(53328),x=i(8712),S=i(29775),N=i(38432),j=i(94656),I=i(33052),w=i(88273),T=i(97513),C=i(10740),E=i(62688),M=i.n(E),R=i(73198),D=i(62540);function Notice(){const e=(0,r.useSelect)(e=>e(w.i).canSubmitSharingChanges()),t=(0,r.useSelect)(e=>e(w.i).haveSharingSettingsExpanded("management")),i=(0,r.useSelect)(e=>e(w.i).haveSharingSettingsExpanded("sharedRoles"));return(0,D.jsxs)("p",{className:"googlesitekit-dashboard-sharing-settings__notice",children:[t&&e&&(0,D.jsx)("span",{children:(0,k.A)((0,o.__)("By clicking <strong>Apply</strong>, you will give other authenticated admins of your site permission to manage view-only access to Site Kit dashboard data from the chosen Google service","google-site-kit"),{strong:(0,D.jsx)("strong",{})})}),!t&&e&&i&&(0,D.jsx)("span",{children:(0,k.A)((0,o.__)("By clicking <strong>Apply</strong>, youâre granting the selected roles view-only access to data from the Google services youâve connected via your account","google-site-kit"),{strong:(0,D.jsx)("strong",{})})})]})}function Footer({closeDialog:e,openResetDialog:t}){const i=(0,g.A)(),[a,c]=(0,s.useState)(null),[d,h]=(0,s.useState)(!1),p=(0,r.useSelect)(e=>e(w.i).canSubmitSharingChanges()),m=(0,r.useSelect)(e=>e(w.i).isDoingSubmitSharingChanges()),f=(0,r.useSelect)(e=>e(w.i).haveSharingSettingsExpanded("management")),_=(0,r.useSelect)(e=>e(w.i).haveSharingSettingsExpanded("sharedRoles")),b=(0,r.useSelect)(e=>e(w.i).haveSharingSettingsUpdated()),k=(0,r.useSelect)(e=>!!e(l.nX).getValue(S.tm)),y=(0,r.useSelect)(e=>!!e(l.nX).getValue(S.hk)),{resetSharingSettings:v,saveSharingSettings:A}=(0,r.useDispatch)(w.i),{setValue:x}=(0,r.useDispatch)(l.nX),j=(0,s.useCallback)(async()=>{c(null);const{error:t}=await A();t?c(t.message):((0,u.sx)(`${i}_sharing`,"settings_confirm"),x(S.zP,void 0),e())},[i,A,x,e]),I=(0,s.useCallback)(async()=>{c(null),h(!0);const{error:t}=await v();t?c(t.message):(h(!1),e())},[e,v]),T=(0,s.useCallback)(()=>{(0,u.sx)(`${i}_sharing`,"settings_cancel"),e()},[e,i]),C=a||f||_;return(0,D.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer",children:[C&&(0,D.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-notice",children:[a&&(0,D.jsx)(R.A,{message:a}),!a&&(0,D.jsx)(Notice,{})]}),(0,D.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions",children:[b&&k&&!C&&(0,D.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions-left",children:(0,D.jsx)(N.A,{onClick:t,className:"googlesitekit-reset-sharing-permissions-button",danger:!0,children:(0,o.__)("Reset sharing permissions","google-site-kit")})}),(0,D.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions-right",children:[(0,D.jsx)(n.Button,{onClick:T,tertiary:!0,children:(0,o.__)("Cancel","google-site-kit")}),k&&(0,D.jsx)(n.SpinnerButton,{onClick:j,disabled:m||!p,isSaving:m,children:(0,o.__)("Apply","google-site-kit")}),y&&(0,D.jsx)(n.SpinnerButton,{onClick:I,disabled:d,isSaving:d,danger:!0,children:(0,o.__)("Reset","google-site-kit")})]})]})]})}function DashboardSharingDialog(){const[e,t]=(0,s.useState)(!1),i=(0,s.useRef)(void 0),c=(0,T.dv)(),{y:g}=(0,f.A)(),{setValue:d}=(0,r.useDispatch)(l.nX),{rollbackSharingSettings:u}=(0,r.useDispatch)(w.i),p=(0,r.useSelect)(e=>!!e(l.nX).getValue(S.tm)),E=(0,r.useSelect)(e=>!!e(l.nX).getValue(S.hk)),M=(0,r.useSelect)(e=>e(l.nX).getValue(S.zP)),R=(0,r.useSelect)(e=>e(w.i).haveSharingSettingsChanged()),O=(0,r.useSelect)(e=>e(a.O4).getDocumentationLinkURL("dashboard-sharing"));(0,s.useEffect)(()=>{if(e){const e=document.querySelector(".googlesitekit-reset-sharing-permissions-button");e&&e.focus(),t(!1)}},[e]);const L={};c===T.mp&&(L.top=(g<46?46-g:0)+"px",L.height=`calc(100% - 46px + ${g<46?g:46}px)`),(0,s.useEffect)(()=>{!p&&R&&u()},[p,R,u]);const P=(0,s.useCallback)(()=>{d(S.tm,!0)},[d]),z=(0,s.useCallback)(()=>{d(S.tm,!1),d(S.zP,void 0)},[d]),B=(0,s.useCallback)(()=>{z(),d(S.hk,!0)},[z,d]),H=(0,s.useCallback)(()=>{d(S.hk,!1),P(),t(!0)},[P,d]),W=(0,s.useCallback)(()=>{E?H():z()},[H,z,E]),U=(0,s.useCallback)(e=>{E&&e.target.classList.contains("mdc-dialog__scrim")&&H()},[E,H]);return(0,_.A)("click",U),(0,b.A)(e=>E&&A._f===e.keyCode,H),(0,D.jsx)(j.A,{children:(0,D.jsxs)(C.lG,{open:p||E,onClose:W,className:"googlesitekit-dialog googlesitekit-sharing-settings-dialog",style:L,escapeKeyAction:void 0!==M||E?"":"close",scrimClickAction:void 0!==M||E?"":"close",children:[(0,D.jsx)("div",{className:"googlesitekit-dialog__back-wrapper","aria-hidden":c!==T.mp,ref:i,children:(0,D.jsx)(n.Button,{"aria-label":(0,o.__)("Back","google-site-kit"),className:"googlesitekit-dialog__back",onClick:W,children:(0,D.jsx)(y.A,{icon:v.A})})}),(0,D.jsxs)(C.Cf,{className:"googlesitekit-dialog__content",children:[(0,D.jsxs)("div",{className:"googlesitekit-dialog__header",children:[p&&(0,D.jsx)("div",{className:"googlesitekit-dialog__header-icon","aria-hidden":c===T.mp,children:(0,D.jsx)("span",{children:(0,D.jsx)(h.A,{width:20,height:20})})}),(0,D.jsxs)("div",{className:"googlesitekit-dialog__header-titles",children:[(0,D.jsxs)(I.A,{as:"h2",className:"googlesitekit-dialog__title",size:"medium",type:"headline",children:[p&&(0,D.jsx)("span",{children:(0,o.__)("Dashboard sharing & permissions","google-site-kit")}),E&&(0,D.jsx)("span",{children:(0,o.__)("Reset dashboard sharing permissions","google-site-kit")})]}),(0,D.jsxs)("p",{className:m()("googlesitekit-dialog__subtitle",{"googlesitekit-dialog__subtitle--emphasis":E}),children:[p&&(0,D.jsx)("span",{children:(0,k.A)((0,o.__)("Share a view-only version of your Site Kit dashboard with other WordPress roles. <a>Learn more</a>","google-site-kit"),{a:(0,D.jsx)(N.A,{"aria-label":(0,o.__)("Learn more about dashboard sharing","google-site-kit"),href:O,external:!0})})}),E&&(0,D.jsx)("span",{children:(0,o.__)("Warning: Resetting these permissions will remove view-only access for all users. Are you sure you want to reset all dashboard sharing permissions?","google-site-kit")})]})]})]}),p&&(0,D.jsx)("div",{className:"googlesitekit-dialog__main",children:(0,D.jsx)(x.A,{})})]}),(0,D.jsx)(C.Es,{className:"googlesitekit-dialog__footer",children:(0,D.jsx)(Footer,{closeDialog:W,openResetDialog:B})})]})})}function DashboardSharingSettingsButton(){const e=(0,g.A)(),{setValue:t}=(0,r.useDispatch)(l.nX),i=(0,r.useSelect)(e=>e(a.O4).hasMultipleAdmins()),[p]=(0,c.A)(d.CV,"isAutoCreatingCustomDimensionsForAudience"),m=(0,s.useCallback)(()=>{(0,u.sx)(`${e}_headerbar`,"open_sharing",i?"advanced":"simple"),t(S.tm,!0)},[t,e,i]);return(0,D.jsxs)(s.Fragment,{children:[(0,D.jsx)(n.Button,{"aria-label":(0,o.__)("Open sharing settings","google-site-kit"),className:"googlesitekit-sharing-settings__button googlesitekit-header__dropdown googlesitekit-border-radius-round googlesitekit-button-icon",onClick:m,icon:(0,D.jsx)(h.A,{width:20,height:20}),tooltipEnterDelayInMS:500,disabled:p}),(0,D.jsx)(DashboardSharingDialog,{})]})}Footer.propTypes={closeDialog:M().func.isRequired,openResetDialog:M().func.isRequired}},338(e,t,i){i.d(t,{A:()=>UserSettingsSelectionPanel});var s=i(81276),o=i(63696),n=i(82871),r=i(50539),a=i(76729),l=i(3749),c=i(15650),g=i(7972),d=i(97345),u=i(62659),h=i(13047),p=i(62688),m=i.n(p),f=i(4452),_=i.n(f),b=i(4751),k=i(82218),y=i(33052),v=i(8513),A=i(29785),x=i(97513),S=i(62540);function FrequencySelector({isUserSubscribed:e,isLoading:t}){const i=(0,x.dv)()===x.mp,s=(0,r.useSelect)(e=>e(A.O4).isEmailReportingEnabled()),a=(0,o.useMemo)(()=>[(0,n._x)("Sunday","day name","google-site-kit"),(0,n._x)("Monday","day name","google-site-kit"),(0,n._x)("Tuesday","day name","google-site-kit"),(0,n._x)("Wednesday","day name","google-site-kit"),(0,n._x)("Thursday","day name","google-site-kit"),(0,n._x)("Friday","day name","google-site-kit"),(0,n._x)("Saturday","day name","google-site-kit")],[]);const l=(0,r.useSelect)(e=>e(A.O4).getStartOfWeek()),c=(0,r.useSelect)(e=>e(d.oR).getEmailReportingFrequency()),g=(0,r.useSelect)(e=>e(d.oR).getEmailReportingSavedFrequency()),{setEmailReportingFrequency:u}=(0,r.useDispatch)(d.oR),h=(0,n.sprintf)(/* translators: %s: localized day-of-week name (e.g. Monday). */ /* translators: %s: localized day-of-week name (e.g. Monday). */ (0,n.__)("Sent every %s","google-site-kit"),function(e){const t=Number.isInteger(e)&&e>=0&&e<=6?e:1;return a[t]}(l)),p={weekly:{label:(0,n.__)("Weekly","google-site-kit"),period:(0,n.__)("Last 7 days","google-site-kit"),description:h},monthly:{label:(0,n.__)("Monthly","google-site-kit"),period:(0,n.__)("Last month","google-site-kit"),description:(0,n.__)("Sent on the 1st of each month","google-site-kit")},quarterly:{label:(0,n.__)("Quarterly","google-site-kit"),period:(0,n.__)("Last quarter","google-site-kit"),description:(0,n.__)("Sent on the 1st of each quarter","google-site-kit")}};return t?(0,S.jsxs)(o.Fragment,{children:[(0,S.jsx)("br",{}),(0,S.jsx)(b.A,{width:"20%",height:"16px"}),(0,S.jsx)("br",{}),(0,S.jsx)("div",{className:"googlesitekit-frequency-selector",children:(0,S.jsx)(k.A,{width:"100%",height:"184px",count:3})})]}):!1===s?null:(0,S.jsxs)(o.Fragment,{children:[(0,S.jsx)(y.A,{className:"googlesitekit-frequency-selector-title",type:"label",size:"small",as:"h3",children:(0,n.__)("Frequency","google-site-kit")}),e&&g&&!i&&(0,S.jsx)("div",{className:"googlesitekit-frequency-selector__badge-row",children:d.lV.map(e=>(0,S.jsx)("div",{className:"googlesitekit-frequency-selector__badge-cell",children:e===g&&(0,S.jsx)("div",{className:"googlesitekit-frequency-selector__current-subscription",children:(0,S.jsx)(y.A,{type:v.SZ,size:v.Kk,children:(0,n.__)("Current subscription","google-site-kit")})},e)},e))}),(0,S.jsx)("div",{className:"googlesitekit-frequency-selector",role:"radiogroup","aria-label":(0,n.__)("Frequency","google-site-kit"),children:d.lV.map(t=>{const s=c===t,{label:o,period:r,description:a}=p[t]||{};return(0,S.jsxs)("div",{className:_()("googlesitekit-frequency-selector__card",{"googlesitekit-frequency-selector__card--selected":s}),role:"radio","aria-checked":s,tabIndex:0,onClick:()=>u(t),onKeyDown:e=>function(e,t){" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||(e.preventDefault(),u(t))}(e,t),children:[e&&g&&i&&t===g&&(0,S.jsx)("div",{className:_()("googlesitekit-frequency-selector__current-subscription",{"googlesitekit-frequency-selector__current-subscription--selected":s}),children:(0,S.jsx)(y.A,{type:v.SZ,size:v.Kk,children:(0,n.__)("Current subscription","google-site-kit")})}),(0,S.jsxs)("div",{className:"googlesitekit-frequency-selector__content",children:[(0,S.jsx)("div",{className:"googlesitekit-frequency-selector__label",children:(0,S.jsx)(y.A,{type:"label",size:"large",children:o})}),(0,S.jsxs)("div",{className:"googlesitekit-frequency-selector__period-description",children:[(0,S.jsx)("div",{className:"googlesitekit-frequency-selector__period",children:(0,S.jsx)(y.A,{type:"body",size:"small",children:r})}),(0,S.jsx)("div",{className:"googlesitekit-frequency-selector__description",children:(0,S.jsx)(y.A,{type:"body",size:"small",children:a})})]})]})]},t)})})]})}FrequencySelector.propTypes={isUserSubscribed:m().bool,isLoading:m().bool};var N=i(13606),j=i(25804),I=i(38432),w=i(7076),T=i(52684),C=i(55989),E=i(72545);function InviteSearchInput({value:e="",onChange:t}){const i=(0,T.A)(InviteSearchInput,"InviteSearchInput"),s=(0,o.useCallback)(e=>t(e.target.value),[t]),r=(0,o.useCallback)(()=>{t("")},[t]);return(0,S.jsxs)("div",{className:"googlesitekit-invite-search-input",children:[(0,S.jsx)(C.A,{children:(0,S.jsx)("label",{htmlFor:i,children:(0,n.__)("Search user name, role, or email","google-site-kit")})}),(0,S.jsx)("input",{id:i,type:"text",className:"googlesitekit-invite-search-input__input",placeholder:(0,n.__)("Search user name, role, or email","google-site-kit"),value:e,onChange:s}),e&&(0,S.jsx)("span",{className:"googlesitekit-invite-search-input__clear",onClick:r,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r())},role:"button",tabIndex:0,"aria-label":(0,n.__)("Clear search","google-site-kit"),children:(0,S.jsx)(E.A,{width:"8",height:"8"})})]})}InviteSearchInput.propTypes={value:m().string,onChange:m().func.isRequired};var M=i(49383),R=i(46467),D=i(63972);function InviteUserRow({user:e,inviteResult:t=null,onInviteResult:i}){const s=(0,u.A)(),{id:a,name:l,email:c,role:g}=e,{inviteUser:d}=(0,r.useDispatch)(A.O4),p=(0,r.useSelect)(e=>e(A.O4).isInvitingUser(a)),m=(0,o.useCallback)(async()=>{(0,h.sx)(`${s}_email_reports_user_settings-sidebar`,"send_invite");const{error:e}=await d(a);i(a,e?{status:"error",message:e.message}:{status:"success"})},[s,a,d,i]);return(0,S.jsxs)("div",{className:"googlesitekit-invite-user-row",children:[(0,S.jsxs)("div",{className:"googlesitekit-invite-user-row__info",children:[(0,S.jsxs)("div",{className:"googlesitekit-invite-user-row__name",children:[l,(0,S.jsxs)("span",{className:"googlesitekit-invite-user-row__role",children:["(",g,")"]})]}),(0,S.jsx)("div",{className:"googlesitekit-invite-user-row__email",children:c})]}),(0,S.jsx)("div",{className:"googlesitekit-invite-user-row__action",children:"success"===t?.status||e.invited?(0,S.jsxs)("span",{className:"googlesitekit-invite-user-row__success",children:[(0,n.__)("Invitation sent","google-site-kit"),(0,S.jsx)(D.A,{width:"14",height:"14"})]}):"error"===t?.status?(0,S.jsx)("span",{className:"googlesitekit-invite-user-row__error",children:(0,N.A)((0,n.__)("Failed to send invite. <RetryLink>Retry</RetryLink>","google-site-kit"),{RetryLink:(0,S.jsx)(I.A,{"aria-label":(0,n.__)("Retry sending email subscription invite","google-site-kit"),onClick:m})})}):(0,S.jsx)(M.Button,{onClick:m,disabled:p,trailingIcon:(0,S.jsx)(R.A,{width:"18",height:"18"}),tertiary:!0,children:p?(0,n.__)("SendingâŚ","google-site-kit"):(0,n.__)("Send invite","google-site-kit")})})]})}function InviteUserSkeletonList({visibleItems:e=3}){return(0,S.jsx)("div",{className:"googlesitekit-invite-user-list",children:Array.from({length:e}).map((e,t)=>(0,S.jsxs)("div",{className:"googlesitekit-invite-user-row googlesitekit-invite-user-row--loading",children:[(0,S.jsxs)("div",{className:"googlesitekit-invite-user-row__info",children:[(0,S.jsx)(b.A,{width:"120px",height:"16px"}),(0,S.jsx)(b.A,{width:"180px",height:"12px"})]}),(0,S.jsx)("div",{className:"googlesitekit-invite-user-row__action",children:(0,S.jsx)(b.A,{width:"90px",height:"32px",shape:"square"})})]},t))})}function EmptyMessage({text:e}){return(0,S.jsx)("div",{className:"googlesitekit-invite-user-list__empty",children:e})}function InviteUserList({users:e,searchTerm:t="",inviteResults:i={},onInviteResult:s,isLoading:o=!1}){return o?(0,S.jsx)(InviteUserSkeletonList,{visibleItems:3}):0===e.length?t?(0,S.jsx)(EmptyMessage,{text:(0,n.__)("No users match your search.","google-site-kit")}):(0,S.jsx)(EmptyMessage,{text:(0,n.__)("No users are eligible to receive invitations.","google-site-kit")}):(0,S.jsx)("div",{className:"googlesitekit-invite-user-list",children:e.map(e=>(0,S.jsx)(InviteUserRow,{user:e,inviteResult:i[e.id],onInviteResult:s},e.id))})}InviteUserRow.propTypes={user:m().shape({id:m().number.isRequired,name:m().string.isRequired,email:m().string.isRequired,role:m().string,invited:m().bool}).isRequired,inviteResult:m().shape({status:m().oneOf(["success","error"]),message:m().string}),onInviteResult:m().func.isRequired},InviteUserSkeletonList.propTypes={visibleItems:m().number},InviteUserList.propTypes={users:m().arrayOf(m().shape({id:m().number.isRequired,name:m().string,email:m().string.isRequired,role:m().string})).isRequired,searchTerm:m().string,inviteResults:m().objectOf(m().shape({status:m().oneOf(["success","error"]),message:m().string})),onInviteResult:m().func.isRequired,isLoading:m().bool};function InviteOthersToSubscribe(){const e=(0,r.useSelect)(e=>e(d.oR).hasCapability(d.HD)),t=(0,r.useSelect)(e=>e(g.nX).getValue(a.Q)),[i,s]=(0,o.useState)(""),[l,c]=(0,o.useState)(""),[u,h]=(0,o.useState)({}),[p,m]=(0,o.useState)(t),f=(0,w.d)(c,300);(0,o.useEffect)(()=>{f(i)},[i,f]),(0,o.useEffect)(()=>{t&&m(!0)},[t]);const _=(0,r.useInViewSelect)(e=>p?e(A.O4).getEligibleSubscribers({search:l}):null,[l,p]),b=(0,r.useInViewSelect)(e=>p?e(A.O4).getEligibleSubscribers({search:""}):null,[p]),k=(0,r.useInViewSelect)(e=>!!p&&!e(A.O4).hasFinishedResolution("getEligibleSubscribers",[{search:l}]),[l,p]),y=(0,r.useSelect)(e=>e(A.O4).getDocumentationLinkURL("dashboard-sharing")),v=(0,r.useSelect)(e=>e(A.O4).getDocumentationLinkURL("email-reporting-inviting-others"));(0,o.useEffect)(()=>{e&&t&&(f.cancel(),s(""),c(""),h({}))},[t,e,f]);const x=(0,o.useCallback)((e,t)=>{h(i=>({...i,[e]:t}))},[]);if(!e)return null;const T=_?.users||[],C=(b?.total||0)>6,E=(0,N.A)((0,n.__)("You can only invite users who have access to the dashboard. Use the <sharingLink>dashboard sharing</sharingLink> feature to grant access. <learnMoreLink>Learn more</learnMoreLink>","google-site-kit"),{sharingLink:(0,S.jsx)(I.A,{href:y,external:!0,hideExternalIndicator:!0}),learnMoreLink:(0,S.jsx)(I.A,{href:v,external:!0,hideExternalIndicator:!0})});return(0,S.jsxs)("div",{className:"googlesitekit-invite-others-to-subscribe",children:[(0,S.jsxs)("div",{className:"googlesitekit-invite-others-to-subscribe__header",children:[(0,S.jsx)("span",{className:"googlesitekit-invite-others-to-subscribe__title",children:(0,n.__)("Invite others to subscribe","google-site-kit")}),(0,S.jsx)(j.A,{title:E})]}),C&&(0,S.jsx)(InviteSearchInput,{value:i,onChange:s}),(0,S.jsx)(InviteUserList,{users:T,searchTerm:l,inviteResults:u,onInviteResult:x,isLoading:k})]})}var O=i(75971),L=i(11763);const P="subscribe",z="unsubscribe",B="update_settings";function SubscribeActions({isSubscribed:e,onSubscribe:t,onUnsubscribe:i,updateSettings:s,isSavingSettings:r,isLoading:a}){const[l,c]=(0,o.useState)("");function g(e){switch(c(e),e){case B:s();break;case P:t();break;case z:i()}}return!1===(0,O.WM)(e=>e(A.O4).isEmailReportingEnabled())?null:(0,S.jsxs)("div",{className:"googlesitekit-selection-panel-subscribe-actions",children:[a&&(0,S.jsx)(k.A,{width:"140px",height:"42px",count:2}),!a&&e&&(0,S.jsx)(L.A,{onClick:()=>g(z),isSaving:r&&l===z,disabled:r,tertiary:!0,children:(0,n.__)("Unsubscribe","google-site-kit")}),!a&&(0,S.jsx)(L.A,{onClick:()=>g(e?B:P),isSaving:r&&l!==z,disabled:r,children:e?(0,n.__)("Update Settings","google-site-kit"):(0,n.__)("Subscribe","google-site-kit")})]})}SubscribeActions.propTypes={isSubscribed:m().bool,onSubscribe:m().func.isRequired,onUnsubscribe:m().func.isRequired,updateSettings:m().func.isRequired,isSavingSettings:m().bool,isLoading:m().bool};var H=i(83880),W=i(88273),U=i(4124),G=i(20697),Y=i(70301);function Header({closePanel:e,isLoading:t}){const i=(0,u.A)(),s=(0,U.A)(),a=(0,r.useSelect)(e=>e(A.O4).isEmailReportingEnabled()),l=(0,r.useSelect)(e=>e(A.O4).getSiteKitAdminSettingsURL({scrollTo:"email-reporting"})),{navigateTo:g}=(0,r.useDispatch)(Y.M),d=(0,o.useCallback)(()=>{G.KK===i&&e(),g(l)},[l,g,e,i]);return(0,S.jsxs)(c.W4,{title:(0,n.__)("Email reports subscription","google-site-kit"),onCloseClick:e,children:[t&&(0,S.jsxs)(o.Fragment,{children:[(0,S.jsx)(b.A,{width:"100%",height:"16px"}),(0,S.jsx)("br",{})]}),!t&&!s&&a&&(0,S.jsx)(H.A,{children:(0,N.A)((0,n.__)("You can always deactivate this feature in <link>Settings</link>","google-site-kit"),{link:(0,S.jsx)(I.A,{onClick:d,secondary:!0})})})]})}Header.propTypes={closePanel:m().func.isRequired,isLoading:m().bool};var F=i(91117),V=i(63737),q=i(37325),Z=i(68761),$=i(30289);const X="email_reports_user_settings_reports_disabled_notice",Q=(0,$.A)(q.A);function EmailReportingDisabledNotice(){const e=(0,r.useSelect)(e=>e(A.O4).isEmailReportingEnabled()),t=(0,U.A)(),i=(0,r.useSelect)(e=>e(A.O4).getSiteKitAdminSettingsURL({scrollTo:"email-reporting"})),s=(0,Z.A)(X),{setValue:c}=(0,V.A)(g.nX),d=(0,o.useCallback)(()=>{s.confirm(),c(a.Q,!1)},[c,s]);return e||t?null:(0,S.jsx)(Q,{type:l.L.WARNING,title:(0,n.__)("Email reports are disabled","google-site-kit"),description:(0,n.__)("This feature was disabled for all users. You can enable email report subscriptions in settings.","google-site-kit"),ctaButton:{label:(0,n.__)("Edit settings","google-site-kit"),href:i,onClick:d},onInView:s.view})}const K=(0,$.A)(q.A);function EmailReportingDisabledViewOnlyNotice(){const e=(0,r.useSelect)(e=>e(A.O4).isEmailReportingEnabled()),t=(0,U.A)(),i=(0,Z.A)(X);return e||!t?null:(0,S.jsx)(K,{type:l.L.WARNING,title:(0,n.__)("Email reports are unavailable","google-site-kit"),description:(0,n.__)("To enable email reports, contact your administrator","google-site-kit"),onInView:i.view})}var J=i(14183),ee=i(62051),te=i(65929),ie=i(69831),se=i(22942);const oe="email_reports_user_settings_setup_analytics_notice",ne=(0,$.A)(q.A);function SetupAnalyticsNotice(){const[e,t]=(0,o.useState)(!1),i=(0,Z.A)(oe),s=(0,r.useSelect)(e=>e(A.O4).isEmailReportingEnabled()),a=(0,U.A)(),c=(0,r.useSelect)(e=>e(W.i).isModuleActive(se.L1)),g=(0,r.useSelect)(e=>e(W.i).isModuleConnected(se.L1)),u=(0,r.useSelect)(e=>e(W.i).isModuleDisconnected(se.L1)),h=(0,r.useSelect)(e=>e(d.oR).isItemDismissed(oe)),{dismissItem:p}=(0,r.useDispatch)(d.oR),m=(0,te.A)(se.L1),f=(0,ie.A)(se.L1),_=c?f:m,b=(0,o.useCallback)(()=>{_&&(i.confirm(),t(!0),_())},[_,i]),k=(0,o.useCallback)(async()=>{i.dismiss(),await p(oe)},[p,i]),y=(0,r.useSelect)(e=>e(A.O4).getDocumentationLinkURL("ga4"));if(!s||a||!1!==h||g||u)return null;const v=c?(0,n.__)("Complete setup","google-site-kit"):(0,n.__)("Connect Analytics","google-site-kit");return(0,S.jsx)(ne,{type:l.L.NEW,title:(0,n.__)("Understand how visitors interact with your content","google-site-kit"),description:(0,N.A)((0,n.__)("Get visitor insights in your email report by connecting Analytics. <a>Learn more</a>","google-site-kit"),{a:(0,S.jsx)(ee.A,{id:oe,label:(0,n.__)("Learn more","google-site-kit"),url:y})}),ctaButton:{label:v,inProgress:e,disabled:e,onClick:b},dismissButton:{label:(0,n.__)("Maybe later","google-site-kit"),onClick:k},onInView:i.view})}function Notices({isLoading:e,onGoToSettings:t}){return e?null:(0,S.jsxs)(o.Fragment,{children:[(0,S.jsx)(J.A,{onGoToSettings:t}),(0,S.jsx)(F.A,{}),(0,S.jsx)(SetupAnalyticsNotice,{}),(0,S.jsx)(EmailReportingDisabledNotice,{}),(0,S.jsx)(EmailReportingDisabledViewOnlyNotice,{})]})}Notices.propTypes={isLoading:m().bool,onGoToSettings:m().func};var re=i(68329);function SelectionPanelFooter({notice:e,onNoticeDismiss:t}){return(0,S.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,S.jsx)("div",{className:"googlesitekit-selection-panel-footer__content",children:e?(0,S.jsx)(re.A,{type:e.type,title:e.title,description:e.text,dismissButton:{label:(0,n.__)("Got it","google-site-kit"),onClick:t},hideIcon:!0}):(0,S.jsx)(H.A,{type:"body",size:"small",children:(0,n.__)("All email reports sent are generated by Site Kit using data from your dashboard and sent to your WordPress email, so all your data stays with you","google-site-kit")})})})}function PanelContent({notice:e,isUserSubscribed:t,isSavingSettings:i,onSaveCallback:s,onSubscribe:a,onUnsubscribe:l,onNoticeDismiss:g,closePanel:u}){const h=(0,r.useSelect)(e=>e(d.oR).getUser()),p=h?.wpEmail,m=(0,U.A)(),f=(0,r.useSelect)(e=>e(A.O4).isEmailReportingEnabled()),_=(0,r.useSelect)(e=>m?null:e(A.O4).getEmailReportingErrors()),k=[f,(0,r.useSelect)(e=>e(d.oR).getEmailReportingSettings()),_,(0,r.useSelect)(e=>e(W.i).getModules())].some(e=>void 0===e);return(0,S.jsxs)(o.Fragment,{children:[(0,S.jsx)(Header,{closePanel:u,isLoading:k}),(0,S.jsxs)(c.kA,{className:"googlesitekit-user-settings-selection__panel-content",children:[(0,S.jsx)(Notices,{isLoading:k,onGoToSettings:u}),(0,S.jsxs)("div",{className:"googlesitekit-user-settings-selection__panel-description",children:[k&&(0,S.jsxs)(o.Fragment,{children:[(0,S.jsx)(b.A,{width:"100%",height:"16px"}),(0,S.jsx)(b.A,{width:"60%",height:"16px"})]}),!k&&f&&(0,S.jsxs)(H.A,{type:"body",size:"small",children:[(0,n.__)("Youâll receive the report to your WordPress user email","google-site-kit"),p&&(0,S.jsx)(y.A,{type:"body",size:"medium",children:p})]})]}),(0,S.jsx)(FrequencySelector,{isUserSubscribed:t,isLoading:k}),(0,S.jsx)(SubscribeActions,{onSubscribe:a,onUnsubscribe:l,updateSettings:s,isSubscribed:t,isSavingSettings:i,isLoading:k}),f&&!m&&(0,S.jsx)(InviteOthersToSubscribe,{})]}),f&&(0,S.jsx)(SelectionPanelFooter,{notice:e,onNoticeDismiss:g})]})}function UserSettingsSelectionPanel(){const e=(0,u.A)(),t=(0,r.useSelect)(e=>e(g.nX).getValue(a.Q)),i=(0,s.A)(t),p=(0,o.useCallback)(()=>{(0,h.sx)(`${e}_email_reports_user_settings-sidebar`,"user_settings_sidebar_view")},[e]),m=(0,r.useSelect)(e=>t?e(d.oR).getEmailReportingSettings():{}),f=(0,r.useSelect)(e=>!!t&&e(d.oR).isSavingEmailReportingSettings()),_=(0,r.useSelect)(e=>e(d.oR).getEmailReportingFrequency()),[b,k]=(0,o.useState)(null),{setValue:y}=(0,r.useDispatch)(g.nX),{saveEmailReportingSettings:v,resetEmailReportingSettings:A}=(0,r.useDispatch)(d.oR),x=(0,o.useCallback)(()=>{t&&(setTimeout(()=>{A(),k(null)},310),y(a.Q,!1),(0,h.sx)(`${e}_email_reports_user_settings-sidebar`,"user_settings_sidebar_close"))},[t,A,y,e]),N=(0,o.useCallback)(async()=>{const{error:t}=await v();(0,h.sx)(`${e}_email_reports_user_settings-sidebar`,"update_settings",_),k(t?{type:l.L.ERROR,text:t?.message||(0,n.__)("An error occurred.","google-site-kit")}:{type:l.L.SUCCESS,text:(0,n.__)("Youâve successfully updated frequency settings!","google-site-kit")})},[v,e,_]),j=(0,o.useCallback)(async()=>{const{error:t}=await v({subscribed:!0});(0,h.sx)(`${e}_email_reports_user_settings-sidebar`,"subscribe",_),k(t?{type:l.L.ERROR,text:t?.message||(0,n.__)("An error occurred.","google-site-kit")}:{type:l.L.SUCCESS,title:(0,n.__)("Youâve successfully subscribed to email reports!","google-site-kit"),text:(0,n.__)("Look for a confirmation email in your inbox. If you donât see it, check your spam folder.","google-site-kit")})},[v,e,_]),I=(0,o.useCallback)(async()=>{const{error:t}=await v({subscribed:!1});(0,h.sx)(`${e}_email_reports_user_settings-sidebar`,"unsubscribe"),k(t?{type:l.L.ERROR,text:t?.message||(0,n.__)("An error occurred.","google-site-kit")}:{type:l.L.INFO_ALT_2,text:(0,n.__)("Youâve unsubscribed from email reports","google-site-kit")})},[v,e]),w=(0,o.useCallback)(()=>k(null),[]);return(0,o.useEffect)(()=>{!i&&t&&y("admin-screen-tooltip",{isTooltipVisible:!1})},[t,i,y]),(0,S.jsx)(c.Ay,{className:"googlesitekit-user-settings-selection-panel googlesitekit-email-reporting-settings",isOpen:!!t,onOpen:p,closePanel:x,children:(0,S.jsx)(PanelContent,{notice:b,isUserSubscribed:m?.subscribed,isSavingSettings:f,onSaveCallback:N,onSubscribe:j,onUnsubscribe:I,onNoticeDismiss:w,closePanel:x})})}SelectionPanelFooter.propTypes={notice:m().shape({title:m().node,text:m().node,type:m().oneOf(Object.values(l.L))}),onNoticeDismiss:m().func},PanelContent.propTypes={savedFrequency:m().string,notice:m().shape({title:m().string,text:m().string,type:m().oneOf(Object.values(l.L))}),isUserSubscribed:m().bool,isSavingSettings:m().bool,onSaveCallback:m().func,onSubscribe:m().func,onUnsubscribe:m().func,onNoticeDismiss:m().func,closePanel:m().func}},76729(e,t,i){i.d(t,{Q:()=>s});const s="emailReportingUserSettingsSelectionPanelOpened"},91117(e,t,i){i.d(t,{A:()=>AnalyticsDisconnectedNotice});var s=i(63696),o=i(82871),n=i(50539),r=i(37325),a=i(3749),l=i(29785),c=i(97345),g=i(88273),d=i(68761),u=i(65929),h=i(4124),p=i(22942),m=i(30289),f=i(62540);const _="email_reports_analytics_disconnected_notice",b=(0,m.A)(r.A);function AnalyticsDisconnectedNotice(){const e=(0,h.A)(),[t,i]=(0,s.useState)(!1),r=(0,d.A)(_),m=(0,n.useSelect)(e=>e(l.O4).isEmailReportingEnabled()),k=(0,n.useSelect)(e=>e(g.i).isModuleConnected(p.L1)),y=(0,n.useSelect)(e=>e(g.i).isModuleDisconnected(p.L1)),v=(0,n.useSelect)(e=>e(c.oR).isItemDismissed(_)),{dismissItem:A}=(0,n.useDispatch)(c.oR),x=(0,u.A)(p.L1),S=(0,s.useCallback)(()=>{i(!0),r.confirm(),x()},[r,x]),N=(0,s.useCallback)(async()=>{r.dismiss(),await A(_)},[A,r]);if(!m||!1!==v||k||!y)return null;let j=(0,o.__)("Email reports wonât include Analytics data and metrics","google-site-kit");return e&&(j=(0,o.__)("Email reports wonât include Analytics data and metrics. To fix the issue contact your administrator.","google-site-kit")),(0,f.jsx)(b,{className:"googlesitekit-email-reporting__admin-settings-notice",type:a.L.WARNING,title:(0,o.__)("Analytics is disconnected","google-site-kit"),description:j,ctaButton:e?void 0:{label:(0,o.__)("Connect Analytics","google-site-kit"),inProgress:t,disabled:t,onClick:S},dismissButton:{label:(0,o.__)("Got it","google-site-kit"),onClick:N},onInView:r.view})}},14183(e,t,i){i.d(t,{A:()=>EmailReportingErrorNotices});var s=i(62688),o=i.n(s),n=i(50539),r=i(82871),a=i(37325),l=i(3749),c=i(75971),g=i(29785),d=i(68761),u=i(30289),h=i(62540);const p=(0,u.A)(a.A);function CronSchedulerErrorNotice(){const e=(0,d.A)("email_reporting_cron_scheduler_error_notice"),t=(0,c.WM)(e=>e(g.O4).getDocumentationLinkURL("email-reporting-scheduler-issues"));return(0,h.jsx)(p,{className:"googlesitekit-email-reporting__admin-settings-notice",type:l.L.ERROR,title:(0,r.__)("Email reports are failing to send","google-site-kit"),description:(0,r.__)("We were unable to deliver your report, likely due to a WP-Cron configuration error in your WordPress siteâs system settings. To fix this, contact your administrator or get help. Report delivery will automatically resume once the issue is resolved.","google-site-kit"),onInView:e.view,dismissButton:{label:(0,r.__)("Get help","google-site-kit"),onClick:e.dismiss,href:t,external:!0}})}var m=i(88273);const f=(0,u.A)(a.A);function PermissionsErrorNotice({moduleSlug:e}){const t=(0,c.WM)(t=>t(m.i).getModule(e)),i=(0,c.WM)(t=>t(m.i).getModuleStoreName(e)),s=(0,c.WM)(e=>e(i)?.getServiceEntityAccessURL?.()),o=(0,c.WM)(t=>t(g.O4).getErrorTroubleshootingLinkURL({code:`${e}_insufficient_permissions`})),n=(0,d.A)("email_reports_permissions_error_notice");return(0,h.jsx)(f,{className:"googlesitekit-email-reporting__admin-settings-notice",type:l.L.ERROR,title:(0,r.__)("Email reports are failing to send","google-site-kit"),description:(0,r.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,r.__)("We were unable to generate your report due to insufficient permissions in %s. To fix this, contact your administrator or get help. Report delivery will automatically resume once the issue is resolved.","google-site-kit"),t.name),onInView:n.view,ctaButton:s?{label:(0,r.__)("Request access","google-site-kit"),href:s,external:!0,hideExternalIndicator:!0,onClick:n.confirm}:null,dismissButton:o?{label:(0,r.__)("Get help","google-site-kit"),onClick:n.dismiss,href:o,external:!0}:null})}const _=(0,u.A)(a.A);function ReportErrorNotice({moduleSlug:e,onGoToSettings:t}){const i=(0,c.WM)(t=>t(m.i).getModule(e)),s=(0,d.A)("email_reports_report_error_notice"),o=(0,c.WM)(t=>t(g.O4).getModuleSettingsURL(e)),n=(0,c.WM)(e=>e(g.O4).getDocumentationLinkURL("email-reporting-module-issues"));return(0,h.jsx)(_,{className:"googlesitekit-email-reporting__admin-settings-notice",type:l.L.ERROR,title:(0,r.__)("Email reports are failing to send","google-site-kit"),description:(0,r.sprintf)(/* translators: %1$s: module name */ /* translators: %1$s: module name */ (0,r.__)("We were unable to generate your report because data loading failed for %1$s. To fix this, go to %1$s settings in Site Kit or get help. Report delivery will automatically resume once the issue is resolved.","google-site-kit"),i.name),onInView:s.view,ctaButton:o?{label:(0,r.__)("Go to settings","google-site-kit"),href:o,onClick:()=>{t?.(),s.confirm()}}:null,dismissButton:{label:(0,r.__)("Get help","google-site-kit"),onClick:s.dismiss,href:n,external:!0}})}const b=(0,u.A)(a.A);function SendingErrorNotice(){const e=(0,d.A)("email_reports_sending_error_notice"),t=(0,c.WM)(e=>e(g.O4).getDocumentationLinkURL("email-reporting-deliverability-issues"));return(0,h.jsx)(b,{className:"googlesitekit-email-reporting__admin-settings-notice",type:l.L.ERROR,title:(0,r.__)("Email reports are failing to send","google-site-kit"),description:(0,r.__)("We were unable to deliver your report, likely due to your WordPress email configuration. To fix this, go to your WordPress siteâs system settings or contact your host. Report delivery will automatically resume once the issue is resolved. ","google-site-kit"),onInView:e.view,dismissButton:{label:(0,r.__)("Get help","google-site-kit"),onClick:e.dismiss,href:t,external:!0}})}const k=(0,u.A)(a.A);function ServerErrorNotice(){const e=(0,d.A)("email_reports_server_error_notice"),t=(0,c.WM)(e=>e(g.O4).getDocumentationLinkURL("email-reporting-server-issues"));return(0,h.jsx)(k,{className:"googlesitekit-email-reporting__admin-settings-notice",type:l.L.ERROR,title:(0,r.__)("Email reports are failing to send","google-site-kit"),description:(0,r.__)("We were unable to deliver your report. Report delivery will automatically resume once the issue is resolved.","google-site-kit"),onInView:e.view,dismissButton:{label:(0,r.__)("Get help","google-site-kit"),onClick:e.dismiss,href:t,external:!0}})}var y=i(4124);function EmailReportingErrorNotices({onGoToSettings:e}){const t=(0,y.A)(),i=(0,n.useSelect)(e=>e(g.O4).isEmailReportingEnabled()),s=(0,n.useSelect)(e=>e(g.O4).getEmailReportingErrors()),o=(0,n.useSelect)(e=>e(g.O4).getLatestEmailReportingError());if(!i||t||0===s?.length||void 0===o)return null;switch(o?.category_id){case"permissions_error":return(0,h.jsx)(PermissionsErrorNotice,{moduleSlug:o.module_slug});case"report_error":return(0,h.jsx)(ReportErrorNotice,{moduleSlug:o.module_slug,onGoToSettings:e});case"sending_error":return(0,h.jsx)(SendingErrorNotice,{});case"cron_scheduler_error":return(0,h.jsx)(CronSchedulerErrorNotice,{});default:return(0,h.jsx)(ServerErrorNotice,{})}}EmailReportingErrorNotices.propTypes={onGoToSettings:o().func}},78307(e,t,i){i.d(t,{A:()=>HelpMenu});var s,o,n=i(4452),r=i.n(n),a=i(62688),l=i.n(a),c=i(21795),g=i(63696),d=i(82871),u=i(53328),h=i(49383),p=i(50539),m=i(40194),f=i(29785),_=i(97345),b=i(88273),k=i(30805),y=i(12896),v=i(62659),A=i(58718),x=i(22942),S=i(99893),N=i(49481),j=i(13047);function I(){return I=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},I.apply(null,arguments)}const w=e=>g.createElement("svg",I({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=g.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M15.244 10.59a2.156 2.156 0 0 1 2.95-.755 2.145 2.145 0 0 1 .76 2.935l-3.039 5.022-.004.006a2.153 2.153 0 0 1-2.95.756v-.001a2.144 2.144 0 0 1-.757-2.94v-.002l3.036-5.014zM8.854 5.635a2.157 2.157 0 0 1 2.95-.756 2.144 2.144 0 0 1 .756 2.94l-.003.005-5.8 9.977a2.153 2.153 0 0 1-2.95.756 2.145 2.145 0 0 1-.757-2.94l.003-.007z"})),o||(o=g.createElement("path",{fill:"currentColor",stroke:"currentColor",strokeWidth:1.5,d:"M4.887 14.595c1.18 0 2.135.955 2.135 2.13 0 1.176-.954 2.13-2.135 2.13a2.134 2.134 0 0 1-2.137-2.13c0-1.175.955-2.13 2.137-2.13Z"})));var T,C,E;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 R=e=>g.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),T||(T=g.createElement("circle",{cx:12,cy:11,r:8.25,stroke:"currentColor",strokeWidth:1.5})),C||(C=g.createElement("path",{fill:"currentColor",d:"m10 9 7-3-2.953 7.047L7 16z"})),E||(E=g.createElement("circle",{cx:12,cy:11,r:1,fill:"#fff"})));var D,O,L;function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},P.apply(null,arguments)}const z=e=>g.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),D||(D=g.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M19 8v11a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7z"})),O||(O=g.createElement("path",{fill:"currentColor",d:"M13.5 9V3L19 9z"})),L||(L=g.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M8.5 11.5h7M8.5 14.5h7M8.5 17.5H13"})));var B,H;function W(){return W=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},W.apply(null,arguments)}const U=e=>g.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),B||(B=g.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M5 5.75h14c.69 0 1.25.56 1.25 1.25v9.161c0 .69-.56 1.25-1.25 1.25H6.633l-.219.213-2.664 2.597V7c0-.69.56-1.25 1.25-1.25Z"})),H||(H=g.createElement("path",{fill:"currentColor",d:"M11.5 8.5H13v4h-1.5zM11.5 13.5H13V15h-1.5z"})));var G;function Y(){return Y=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},Y.apply(null,arguments)}const F=e=>g.createElement("svg",Y({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),G||(G=g.createElement("path",{fill:"currentColor",d:"M9 16h2v-2H9zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})));var V,q,Z;function $(){return $=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},$.apply(null,arguments)}const X=e=>g.createElement("svg",$({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),V||(V=g.createElement("mask",{id:"support_svg__a",fill:"#fff"},g.createElement("path",{d:"M12 2a9 9 0 0 1 2.128 17.745C10.508 21.823 5 23 5 23c.023-.017 2.69-2.024 3.053-3.911A9 9 0 0 1 3 11a9 9 0 0 1 9-9"}))),q||(q=g.createElement("path",{fill:"currentColor",d:"M12 2V.5zm9.001 9h1.5zm-2.25 5.953 1.125.993zm-1.802 1.566.826 1.252zm-2.3 1.086.441 1.433zm-.521.14-.354-1.458-.207.05-.186.107zM5 23l-.901-1.2-5.441 4.089 6.655-1.422zm3.053-3.911 1.473.284.217-1.128-1.031-.504zm-1.001-.57-.826 1.252zm-1.704-1.457-1.109 1.01zM3 11H1.5zm9-9v1.5a7.5 7.5 0 0 1 7.501 7.5h3C22.501 5.2 17.799.5 12 .5zm9.001 9h-1.5a7.47 7.47 0 0 1-1.875 4.96l1.125.993 1.125.993A10.47 10.47 0 0 0 22.5 11zm-2.25 5.953-1.125-.992a7.6 7.6 0 0 1-1.503 1.305l.826 1.253.826 1.252a10.6 10.6 0 0 0 2.1-1.825zm-1.802 1.566-.826-1.253a7.5 7.5 0 0 1-1.915.905l.441 1.434.441 1.433a10.5 10.5 0 0 0 2.685-1.267zm-2.3 1.086-.44-1.434c-.131.04-.273.077-.434.116l.353 1.458.353 1.458c.19-.046.397-.1.61-.165zm-.521.14-.747-1.3c-1.661.953-3.814 1.728-5.609 2.271a47 47 0 0 1-2.864.767l-.17.039-.04.009-.01.002h-.002L5 23l.314 1.467h.002l.004-.002.015-.003.052-.011.193-.044a49.75 49.75 0 0 0 3.062-.82c1.864-.564 4.275-1.417 6.233-2.541zM5 23l.901 1.2c.041-.032.783-.592 1.576-1.412.735-.76 1.777-2.007 2.049-3.415l-1.473-.284-1.473-.284c-.092.478-.564 1.178-1.26 1.898-.637.659-1.239 1.111-1.221 1.098zm3.053-3.911.659-1.348q-.438-.213-.834-.475l-.826 1.253-.826 1.252q.565.37 1.168.665zm-1.001-.57.826-1.253c-.523-.344-1.001-.753-1.422-1.215l-1.108 1.01-1.109 1.011a10.5 10.5 0 0 0 1.987 1.699zm-1.704-1.457 1.108-1.011A7.47 7.47 0 0 1 4.5 11h-3c0 2.723 1.039 5.207 2.74 7.072zM3 11h1.5A7.5 7.5 0 0 1 12 3.5v-3C6.2.5 1.5 5.2 1.5 11z",mask:"url(#support_svg__a)"})),Z||(Z=g.createElement("path",{fill:"currentColor",d:"M11.796 16q.487 0 .818-.312.332-.31.332-.767 0-.456-.332-.767a1.15 1.15 0 0 0-.818-.312q-.486 0-.817.312a1 1 0 0 0-.332.768q0 .457.332.766.33.312.817.312m.11-8.527q.62 0 1.006.311.387.312.387.788 0 .333-.243.706-.243.374-.685.726-.707.58-1.028 1.069-.32.486-.32.965 0 .31.221.518a.8.8 0 0 0 .574.208q.333 0 .586-.208a.9.9 0 0 0 .32-.56q.066-.332.299-.633.231-.3.762-.778.707-.622.961-1.11T15 8.407q0-1.08-.839-1.743Q13.321 6 11.951 6q-.928 0-1.624.343-.696.342-1.204 1.026a.53.53 0 0 0-.1.498q.078.27.32.456a.8.8 0 0 0 .652.136q.365-.073.608-.385.243-.29.564-.445t.74-.156"})));var Q=i(38432),K=i(62540);function HelpMenuLink({children:e,href:t,gaEventLabel:i,onClick:s,icon:o}){const n=(0,v.A)(),r=(0,k.i)("setupFlowRefresh"),a=(0,g.useCallback)(async()=>{s?.(),i&&await(0,j.sx)(`${n}_headerbar_helpmenu`,r?"click_menu_item":"click_outgoing_link",i)},[s,i,n,r]);return(0,K.jsx)("li",{className:"googlesitekit-help-menu-link mdc-list-item",role:"none",children:(0,K.jsx)(Q.A,{className:"mdc-list-item__text",href:t,role:"menuitem",onClick:a,leadingIcon:o,external:!0,hideExternalIndicator:!0,children:e})})}HelpMenuLink.propTypes={children:l().node.isRequired,href:l().string,gaEventLabel:l().string,onClick:l().func};const J=HelpMenuLink;function HelpMenu({children:e,showFeatureTour:t=!1}){const[i,s]=(0,g.useState)(!1),o=(0,g.useRef)(),n=(0,v.A)(),a=(0,k.i)("setupFlowRefresh");(0,c.A)(o,()=>s(!1)),(0,y.l)([u._f,u.wn],o,()=>s(!1));const l=(0,p.useSelect)(e=>e(b.i).isModuleActive(A.Py)),I=(0,p.useSelect)(e=>{if(!t||!a)return!1;return e(b.i).isModuleConnected(x.L1)?!1===e(S.K9).isGatheringData():!1===e(N.n).isGatheringData()},[t,a]),T=(0,g.useCallback)(()=>{i||(0,j.sx)(`${n}_headerbar`,"open_helpmenu"),s(!i)},[i,n]),C=(0,g.useCallback)(()=>{s(!1)},[]),E=(0,p.useSelect)(e=>e(f.O4).getDocumentationLinkURL("fix-common-issues")),{triggerOnDemandTour:M}=(0,p.useDispatch)(_.oR),D=(0,m.G)(),O=(0,g.useCallback)(()=>{M(D)},[M,D]),L=[{gaEventLabel:"fix_common_issues",href:E,children:(0,d.__)("Fix common issues","google-site-kit")},{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/",children:(0,d.__)("Read help docs","google-site-kit")},{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/",children:(0,d.__)("Get support","google-site-kit")},...l?[{gaEventLabel:"adsense_help",href:"https://support.google.com/adsense/",children:(0,d.__)("Get help with AdSense","google-site-kit")}]:[]],P=[{gaEventLabel:"browse_documentation",href:"https://sitekit.withgoogle.com/documentation/",icon:(0,K.jsx)(z,{width:24,height:24}),children:(0,d.__)("Browse documentation","google-site-kit")},{gaEventLabel:"get_support",href:"https://wordpress.org/support/plugin/google-site-kit/",icon:(0,K.jsx)(X,{width:24,height:24}),children:(0,d.__)("Get free support","google-site-kit")},...I?[{gaEventLabel:"start_tour",onClick:O,icon:(0,K.jsx)(R,{width:24,height:24}),children:(0,d.__)("Start a feature tour","google-site-kit")}]:[],{gaEventLabel:"send_feedback",href:"https://wordpress.org/support/plugin/google-site-kit/reviews/",icon:(0,K.jsx)(U,{width:24,height:24}),children:(0,d.__)("Send feedback","google-site-kit")},...l?[{gaEventLabel:"get_adsense_help",href:"https://support.google.com/adsense/",icon:(0,K.jsx)(w,{width:24,height:24}),children:(0,d.__)("Get help with AdSense","google-site-kit")}]:[]];return(0,K.jsxs)("div",{ref:o,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,K.jsx)(h.Button,{"aria-controls":"googlesitekit-help-menu","aria-expanded":i,"aria-label":(0,d.__)("Help","google-site-kit"),"aria-haspopup":"menu",className:"googlesitekit-header__dropdown googlesitekit-border-radius-round googlesitekit-button-icon googlesitekit-help-menu__button mdc-button--dropdown",icon:(0,K.jsx)(F,{width:"20",height:"20"}),onClick:T,tooltipEnterDelayInMS:500,text:!0}),(0,K.jsxs)(h.Menu,{className:r()("googlesitekit-width-auto",{"googlesitekit-help-menu":a}),menuOpen:i,id:"googlesitekit-help-menu",onSelected:C,children:[e,(a?P:L).map((e,t)=>(0,K.jsx)(J,{...e},t))]})]})}HelpMenu.propTypes={children:l().node,showFeatureTour:l().bool}},75662(e,t,i){i.d(t,{A:()=>m});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(63696),l=i(44148),c=i(10740),g=i(62540);class LayoutFooter extends a.Component{render(){const{ctaLabel:e,ctaLink:t,footerContent:i}=this.props;return(0,g.jsx)("footer",{className:"googlesitekit-layout__footer",children:(0,g.jsx)(c.xA,{children:(0,g.jsx)(c.fI,{children:(0,g.jsxs)(c.fh,{size:12,children:[t&&e&&(0,g.jsx)(l.A,{className:"googlesitekit-data-block__source",name:e,href:t,external:!0}),i]})})})})}}LayoutFooter.propTypes={ctaLabel:r().string,ctaLink:r().string};const d=LayoutFooter;var u=i(38432),h=i(33052);class LayoutHeader extends a.Component{render(){const{title:e,badge:t,ctaLabel:i,ctaLink:s}=this.props,o=s?{alignMiddle:!0,smSize:4,lgSize:6}:{alignMiddle:!0,smSize:4,mdSize:8,lgSize:12};return(0,g.jsx)("header",{className:"googlesitekit-layout__header",children:(0,g.jsx)(c.xA,{children:(0,g.jsxs)(c.fI,{children:[e&&(0,g.jsx)(c.fh,{...o,children:(0,g.jsxs)(h.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-subheading-1 googlesitekit-layout__header-title",children:[e,t]})}),s&&(0,g.jsx)(c.fh,{smSize:4,lgSize:6,alignMiddle:!0,mdAlignRight:!0,children:(0,g.jsx)(u.A,{href:s,external:!0,children:i})})]})})})}}LayoutHeader.propTypes={title:r().string,badge:r().node,ctaLabel:r().string,ctaLink:r().string},LayoutHeader.defaultProps={title:"",badge:null,ctaLabel:"",ctaLink:""};const p=LayoutHeader;class Layout extends a.Component{render(){const{header:e,footer:t,children:i,title:s,badge:n,headerCTALabel:r,headerCTALink:a,footerCTALabel:l,footerCTALink:c,footerContent:u,className:h,fill:m,relative:f,rounded:_=!1,transparent:b=!1,...k}=this.props;return(0,g.jsxs)("div",{className:o()("googlesitekit-layout",h,{"googlesitekit-layout--fill":m,"googlesitekit-layout--relative":f,"googlesitekit-layout--rounded":_,"googlesitekit-layout--transparent":b}),...k,children:[e&&(0,g.jsx)(p,{title:s,badge:n,ctaLabel:r,ctaLink:a}),i,t&&(0,g.jsx)(d,{ctaLabel:l,ctaLink:c,footerContent:u})]})}}Layout.propTypes={header:r().bool,footer:r().bool,children:r().node.isRequired,title:r().string,badge:r().node,headerCTALabel:r().string,headerCTALink:r().string,footerCTALabel:r().string,footerCTALink:r().string,footerContent:r().node,className:r().string,fill:r().bool,relative:r().bool,rounded:r().bool,transparent:r().bool},Layout.defaultProps={header:!1,footer:!1,title:"",badge:null,headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1};const m=Layout},12317(e,t,i){i.d(t,{A:()=>d});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(49383),l=i(38432),c=i(33052),g=i(62540);function CTA({title:e,headerText:t,headerContent:i,description:s,ctaLink:n,ctaLabel:r,ctaLinkExternal:d,ctaType:u,error:h,onClick:p,"aria-label":m,children:f}){return(0,g.jsxs)("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":h}),children:[(t||i)&&(0,g.jsxs)("div",{className:"googlesitekit-cta__header",children:[t&&(0,g.jsx)(c.A,{as:"h2",size:"small",type:"label",className:"googlesitekit-cta__header_text",children:t}),i]}),(0,g.jsxs)("div",{className:"googlesitekit-cta__body",children:[e&&(0,g.jsx)(c.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-cta__title",children:e}),s&&"string"==typeof s&&(0,g.jsx)("p",{className:"googlesitekit-cta__description",children:s}),s&&"string"!=typeof s&&(0,g.jsx)("div",{className:"googlesitekit-cta__description",children:s}),r&&"button"===u&&(0,g.jsx)(a.Button,{"aria-label":m,href:n,onClick:p,children:r}),r&&"link"===u&&(0,g.jsx)(l.A,{href:n,onClick:p,"aria-label":m,external:d,hideExternalIndicator:d,arrow:!0,children:r}),f]})]})}CTA.propTypes={title:r().string.isRequired,headerText:r().string,description:r().oneOfType([r().string,r().node]),ctaLink:r().string,ctaLinkExternal:r().bool,ctaLabel:r().string,ctaType:r().string,"aria-label":r().string,error:r().bool,onClick:r().func,children:r().node,headerContent:r().node},CTA.defaultProps={title:"",headerText:"",headerContent:"",description:"",ctaLink:"",ctaLabel:"",ctaType:"link",error:!1,onClick:()=>{}};const d=CTA},37834(e,t,i){i.d(t,{A:()=>Notifications});var s=i(62688),o=i.n(s),n=i(50539),r=i(84730),a=i(8732),l=i(50532),c=i.n(l),g=i(67438),d=i(62540);const u=c()(e=>({id:e,Notification:h(e)(g.A)}));function h(e){return t=>{function WithNotificationID(i){return(0,d.jsx)(t,{...i,id:e})}return WithNotificationID.displayName="WithNotificationID",(t.displayName||t.name)&&(WithNotificationID.displayName+=`(${t.displayName||t.name})`),WithNotificationID}}var p=i(62659);function Notifications({areaSlug:e,groupID:t=r.He.DEFAULT}){const i=(0,p.A)(),s=(0,n.useSelect)(e=>e(a.D).getQueuedNotifications(i,t));if(void 0===s?.[0]||s?.[0]?.areaSlug!==e)return null;const{id:o,Component:l}=s[0],c={...u(o)};return(0,d.jsx)(l,{...c})}Notifications.propTypes={viewContext:o().string,areaSlug:o().string}},97343(e,t,i){i.d(t,{A:()=>g});var s=i(63696),o=i(82871),n=i(50539),r=i(37325),a=i(3749),l=i(7972),c=i(62540);const g=function OfflineNotification(){const[e,t]=(0,s.useState)(!1),i=(0,n.useSelect)(e=>e(l.nX).getIsOnline());return(0,s.useEffect)(()=>{i&&e&&t(!1)},[i,e]),(0,c.jsx)("div",{"aria-live":"polite",children:!i&&!e&&(0,c.jsx)(r.A,{className:"googlesitekit-notice-snackbar googlesitekit-notice-snackbar--bottom-right",type:a.L.WARNING,description:(0,o.__)("You are currently offline. Some features may not be available.","google-site-kit"),ctaButton:{label:(0,o.__)("OK, Got it!","google-site-kit"),onClick:()=>t(!0)}})})}},33213(e,t,i){i.d(t,{I:()=>s});const s={WITH_ANALYTICS:"welcome-with-analytics",WITHOUT_ANALYTICS:"welcome-without-analytics"}},84895(e,t,i){i.d(t,{G:()=>o,t:()=>s});const s=new Set(globalThis?._googlesitekitBaseData?.enabledFeatures||[]);function o(e,t=s){return t instanceof Set&&t.has(e)}},49993(e,t,i){i.d(t,{Gq:()=>d,IL:()=>m,LD:()=>h,SO:()=>u,a2:()=>o,xD:()=>p});var s=i(13047);const o="googlesitekit_",n=`${o}1.181.0_${globalThis._googlesitekitBaseData.storagePrefix}_`,r=["sessionStorage","localStorage"];let a,l=[...r];async function c(e){const t=globalThis[e];if(!t)return!1;try{const e="__storage_test__";return t.setItem(e,e),t.removeItem(e),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==t.length}}async function g(){if(void 0!==a)return a;for(const e of l)a||await c(e)&&(a=globalThis[e]);return void 0===a&&(a=null),a}async function d(e){const t=await g();if(t){const i=t.getItem(`${n}${e}`);if(i){const e=JSON.parse(i),{timestamp:t,ttl:s,value:o,isError:n}=e;if(t&&(!s||Math.round(Date.now()/1e3)-t<s))return{cacheHit:!0,value:o,isError:n}}}return{cacheHit:!1,value:void 0}}async function u(e,t,{ttl:i=s.Jg,timestamp:o=Math.round(Date.now()/1e3),isError:r=!1}={}){const a=await g();if(a)try{return a.setItem(`${n}${e}`,JSON.stringify({timestamp:o,ttl:i,value:t,isError:r})),!0}catch(e){return globalThis.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function h(e){const t=await g();if(t)try{const i=e.startsWith(o)?e:`${n}${e}`;return t.removeItem(i),!0}catch(e){return globalThis.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function p(){const e=await g();if(e)try{const t=[];for(let i=0;i<e.length;i++){const s=e.key(i);0===s.indexOf(o)&&t.push(s)}return t}catch(e){return globalThis.console.warn("Encountered an unexpected storage error:",e),[]}return[]}async function m(){if(await g()){const e=await p();for(const t of e)await h(t);return!0}return!1}},85135(e,t,i){i.d(t,{A:()=>f});var s=i(47485),o=i(62688),n=i.n(o),r=i(63696),a=i(82871),l=i(10740),c=i(99573),g=i(62540);function MaybeTooltip({children:e,disabled:t=!1,tooltip:i=!1,tooltipTitle:s=null,hasIconOnly:o=!1,tooltipEnterDelayInMS:n=100}){return!t&&(i&&s||o&&s)?(0,g.jsx)(c.A,{title:s,enterDelay:n,children:e}):e}MaybeTooltip.propTypes={children:n().node.isRequired,disabled:n().bool,tooltip:n().bool,tooltipTitle:n().oneOfType([n().string,n().element]),hasIconOnly:n().bool,tooltipEnterDelayInMS:n().number};var d=i(4452),u=i.n(d);const h=(0,r.forwardRef)(({children:e,href:t,text:i,className:s,danger:o,disabled:n,target:r,"aria-label":a,inverse:l,tertiary:c,callout:d,calloutStyle:h,...p},m)=>{const f=t&&!n?"a":"button";return(0,g.jsx)(f,{className:u()("mdc-button",s,{"mdc-button--raised":!i&&!c&&!d,"mdc-button--danger":o,"mdc-button--inverse":l,"mdc-button--tertiary":c,"mdc-button--callout":d,"mdc-button--callout-primary":d||"primary"===h,"mdc-button--callout-warning":"warning"===h,"mdc-button--callout-error":"error"===h}),href:n?void 0:t,ref:m,disabled:!!n,"aria-label":a,target:r||"_self",role:"a"===f?"button":void 0,...p,children:e})});h.propTypes={children:n().node,href:n().string,text:n().bool,className:n().string,danger:n().bool,disabled:n().bool,target:n().string,"aria-label":n().string,inverse:n().bool,tertiary:n().bool,callout:n().bool,calloutStyle:n().oneOf(["primary","warning","error"])};const p=h,m=(0,r.forwardRef)(({children:e,href:t=null,text:i=!1,className:o="",danger:n=!1,disabled:c=!1,target:d,icon:u=null,trailingIcon:h=null,"aria-label":m,title:f=null,customizedTooltip:_=null,tooltip:b=!1,inverse:k=!1,hideTooltipTitle:y=!1,tooltipEnterDelayInMS:v=100,tertiary:A=!1,callout:x=!1,calloutStyle:S=null,...N},j)=>{const I=(0,r.useCallback)(e=>{null!==e&&l.Nv.attachTo(e)},[]),w=(0,s.A)(j,I);const T=y?null:f||_||m;return(0,g.jsx)(MaybeTooltip,{disabled:c,tooltip:b,tooltipTitle:T,hasIconOnly:!!u&&void 0===e,tooltipEnterDelayInMS:v,children:(0,g.jsxs)(p,{href:t,disabled:c,className:o,danger:n,text:i,tertiary:A,inverse:k,callout:x,calloutStyle:S,ref:w,"aria-label":function(){let t=m;if("_blank"!==d)return t;const i=(0,a._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof e&&(t=t||e),t?`${t} ${i}`:i}(),target:d||"_self",...N,children:[u,e&&(0,g.jsx)("span",{className:"mdc-button__label",children:e}),h]})})});m.propTypes={onClick:n().func,children:n().node,href:n().string,text:n().bool,className:n().string,danger:n().bool,disabled:n().bool,icon:n().element,trailingIcon:n().element,title:n().string,customizedTooltip:n().element,tooltip:n().bool,inverse:n().bool,hideTooltipTitle:n().bool,callout:n().bool,calloutStyle:n().oneOf(["primary","warning","error"])};const f=m},99578(e,t,i){i.d(t,{A:()=>CircularProgress});var s=i(75762),o=i(62540);function CircularProgress(e){return(0,o.jsx)(s.A,{...e})}},11763(e,t,i){i.d(t,{A:()=>SpinnerButton,k:()=>d});var s=i(4452),o=i.n(s),n=i(17243),r=i(62688),a=i.n(r),l=i(85135),c=i(99578),g=i(62540);const d={BEFORE:"before",AFTER:"after"};function SpinnerButton(e){const{className:t,onClick:i=()=>{},isSaving:s=!1,spinnerPosition:r=d.AFTER,...a}=e,u=(0,n.pickBy)(a,e=>void 0!==e);return(0,g.jsx)(l.A,{className:o()(t,"googlesitekit-button-icon--spinner",{"googlesitekit-button-icon--spinner__running":s,"googlesitekit-button-icon--spinner__before":r===d.BEFORE,"googlesitekit-button-icon--spinner__after":r===d.AFTER}),icon:s&&r===d.BEFORE?(0,g.jsx)(c.A,{size:14}):void 0,trailingIcon:s&&r===d.AFTER?(0,g.jsx)(c.A,{size:14}):void 0,onClick:i,...u})}SpinnerButton.propTypes={className:a().string,onClick:a().func,isSaving:a().bool,spinnerPosition:a().oneOf(Object.values(d))}},99573(e,t,i){i.d(t,{A:()=>Tooltip});var s=i(90295),o=i(4452),n=i.n(o),r=i(62688),a=i.n(r),l=i(63696),c=i(62540);function Tooltip({children:e,popperClassName:t,tooltipClassName:i,onOpen:o,onClose:r,...a}){const g=(0,l.useRef)(!1),d=o?()=>{g.current||(g.current=!0,o?.())}:void 0,u=o?()=>{g.current=!1,r?.()}:r;return(0,c.jsx)(s.Ay,{classes:{popper:n()("googlesitekit-tooltip-popper",t),tooltip:n()("googlesitekit-tooltip",i)},onOpen:d,onClose:u,...a,arrow:!0,children:e})}Tooltip.propTypes={children:a().node,popperClassName:a().string,tooltipClassName:a().string,onOpen:a().func,onClose:a().func}},20697(e,t,i){i.d(t,{Ax:()=>n,CZ:()=>g,Ej:()=>S,Gw:()=>N,Is:()=>r,KK:()=>u,Nn:()=>I,OT:()=>v,SH:()=>y,Y$:()=>h,ZS:()=>a,bg:()=>f,en:()=>x,ep:()=>m,f7:()=>o,hi:()=>p,jU:()=>s,k$:()=>b,kz:()=>j,ly:()=>l,mo:()=>_,s3:()=>k,uR:()=>c,x2:()=>A,zx:()=>d});const s="mainDashboard",o="entityDashboard",n="mainDashboardViewOnly",r="entityDashboardViewOnly",a="userInput",l="activation",c="splash",g="adminBar",d="adminBarViewOnly",u="settings",h="adBlockingRecovery",p="wpDashboard",m="wpDashboardViewOnly",f="moduleSetup",_="metricSelection",b="wpBlockEditor",k="keyMetricsSetup",y="key-metrics",v="traffic",A="site-goals",x="content",S="speed",N="monetization",j=[s,o,n,r,a,c,u,f,_],I=[n,r,d,m]},78990(e,t,i){i.d(t,{P9:()=>_,k:()=>p,mR:()=>f});var s=i(32091),o=i.n(s),n=i(17243),r=i(50539),a=i.n(r),l=i(49993),c=i(13047);const g="CREATE_SNAPSHOT",d="DELETE_SNAPSHOT",u="RESTORE_SNAPSHOT",h="SET_STATE_FROM_SNAPSHOT";function p(e,{keysToSnapshot:t}={}){o()(e,"storeName is required to create a snapshot store.");const i={},s={*deleteSnapshot(){return yield{payload:{},type:d}},*restoreSnapshot(e={}){const{clearAfterRestore:t=!0}=e,{cacheHit:i,value:s}=yield{payload:{},type:u};return i&&(yield{payload:{snapshot:s},type:h},t&&(yield{payload:{},type:d})),i},*createSnapshot(){return yield{payload:{},type:g}}},a={[d]:()=>(0,l.LD)(`datastore::cache::${e}`),[g]:(0,r.createRegistryControl)(i=>()=>{const s=i.stores[e].store.getState(),o=t?.length>0?(0,n.pick)(s,t):s;return(0,l.SO)(`datastore::cache::${e}`,o)}),[u]:()=>(0,l.Gq)(`datastore::cache::${e}`,c.Jg)};return{initialState:i,actions:s,controls:a,reducer:function(e=i,{type:s,payload:o}){if(s===h){const{snapshot:i}=o,{error:s,...n}=i;return t?.length>0?{...e,...n}:n}return e}}}function m(e=a()){return Object.values(e.stores).filter(e=>Object.keys(e.getActions()).includes("restoreSnapshot"))}function f(e=a()){return Promise.all(m(e).map(e=>e.getActions().createSnapshot()))}function _(e=a()){return Promise.all(m(e).map(e=>e.getActions().restoreSnapshot()))}},49057(e,t,i){i.d(t,{Ay:()=>f,wA:()=>a.A,ws:()=>u.w,WM:()=>r.A});var s=i(66218),o=i(56805),n=i(78913),r=i(35470),a=i(63737),l=i(44319),c=i(45177),g=i(30043),d=i(66293),u=i(52721),h=i(97241);var p=i(8084);const m=(0,s.I)({},globalThis.wp?.data);m.combineStores=p.o3,m.commonActions=p.jU,m.commonControls=p._5,m.commonStore=p.x0,m.createReducer=function(e){return(0,h.Ay)(e)},m.useInViewSelect=u.w,m.controls=o.n,m.createRegistryControl=n.b,m.createRegistrySelector=n.N,m.useSelect=r.A,m.useDispatch=a.A,m.useRegistry=l.A,m.withSelect=c.A,m.withDispatch=g.A,m.RegistryProvider=d.Ay;const f=m},8084(e,t,i){i.d(t,{$C:()=>I,RF:()=>j,WI:()=>S,_5:()=>v,jU:()=>y,o3:()=>k,x0:()=>x});var s=i(32091),o=i.n(s),n=i(17243),r=i(50532),a=i.n(r),l=i(78913);const c="GET_REGISTRY",g="AWAIT";function d(...e){const t=e.reduce((e,t)=>({...e,...t}),{}),i=A(e.reduce((e,t)=>[...e,...Object.keys(t)],[]));return o()(0===i.length,`collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ${i.join(", ")}. Check your data stores for duplicates.`),t}const u=d,h=d;function p(...e){const t=[...e];let i;return"function"!=typeof t[0]&&(i=t.shift()),(e=i,s={})=>t.reduce((e,t)=>t(e,s),e)}const m=d,f=d,_=d;function b(e){return e}function k(...e){const t=_(...e.map(e=>e.initialState||{}));return{initialState:t,controls:h(...e.map(e=>e.controls||{})),actions:u(...e.map(e=>e.actions||{})),reducer:p(t,...e.map(e=>e.reducer||b)),resolvers:m(...e.map(e=>e.resolvers||{})),selectors:f(...e.map(e=>e.selectors||{}))}}const y={getRegistry:()=>({payload:{},type:c}),*await(e){return{payload:{value:e},type:g}}},v={[c]:(0,l.b)(e=>()=>e),[g]:({payload:e})=>e.value};function A(e){const t=[],i={};for(let s=0;s<e.length;s++){const o=e[s];i[o]=i[o]>=1?i[o]+1:1,i[o]>1&&t.push(o)}return t}const x={actions:y,controls:v,reducer:b};function S(e){return t=>N(e(t))}const N=a()(e=>(0,n.mapValues)(e,(e,t)=>(...i)=>{const s=e(...i);return o()(void 0!==s,`${t}(...) is not resolved`),s}));function j(e,{negate:t=!1}={}){return{safeSelector:(0,l.N)(i=>(s,...o)=>{const n=!t,r=!!t;try{return e(i,s,...o),n}catch{return r}}),dangerousSelector:(0,l.N)(t=>(i,...s)=>{e(t,i,...s)})}}function I(e,t){return o()("function"==typeof e,"a validator function is required."),o()("function"==typeof t,"an action creator function is required."),o()("Generator"!==e[Symbol.toStringTag]&&"GeneratorFunction"!==e[Symbol.toStringTag],"an actionâs validator function must not be a generator."),(...i)=>(e(...i),t(...i))}},11999(e,t,i){i.d(t,{s:()=>s});const s="core/forms"},70301(e,t,i){i.d(t,{M:()=>s});const s="core/location"},29785(e,t,i){i.d(t,{O4:()=>s,OQ:()=>n,qc:()=>o});const s="core/site",o="primary",n="secondary"},7972(e,t,i){i.d(t,{Fc:()=>o,Yg:()=>n,nX:()=>s});const s="core/ui",o="activeContextID",n="forced-in-view-widget-areas"},97345(e,t,i){i.d(t,{$8:()=>r,$Q:()=>h,BT:()=>R,CQ:()=>j,D1:()=>q,DF:()=>V,GM:()=>N,GT:()=>b,GU:()=>Z,HA:()=>P,HD:()=>u,HP:()=>M,J5:()=>B,JF:()=>w,JK:()=>f,Ml:()=>m,SS:()=>D,UF:()=>g,UY:()=>G,Vl:()=>O,W6:()=>F,Xq:()=>I,YQ:()=>T,Yw:()=>U,dV:()=>E,dX:()=>S,ej:()=>c,em:()=>n,ep:()=>A,fu:()=>y,gC:()=>k,hz:()=>p,jN:()=>$,jx:()=>d,lV:()=>l,nH:()=>z,oR:()=>s,od:()=>a,p3:()=>_,pG:()=>x,qv:()=>o,qy:()=>C,t1:()=>Y,t7:()=>W,tB:()=>v,tK:()=>H,u_:()=>L});const s="core/user",o="connected_url_mismatch",n="__global",r="temporary_persist_permission_error",a="adblocker_active",l=["weekly","monthly","quarterly"],c="googlesitekit_authenticate",g="googlesitekit_setup",d="googlesitekit_view_dashboard",u="googlesitekit_manage_options",h="googlesitekit_read_shared_module_data",p="googlesitekit_manage_module_sharing_options",m="googlesitekit_delegate_module_sharing_management",f="googlesitekit_update_plugins",_="kmAnalyticsAdSenseTopEarningContent",b="kmAnalyticsEngagedTrafficSource",k="kmAnalyticsLeastEngagingPages",y="kmAnalyticsNewVisitors",v="kmAnalyticsPopularAuthors",A="kmAnalyticsPopularContent",x="kmAnalyticsPopularProducts",S="kmAnalyticsReturningVisitors",N="kmAnalyticsTopCities",j="kmAnalyticsTopCitiesDrivingLeads",I="kmAnalyticsTopCitiesDrivingAddToCart",w="kmAnalyticsTopCitiesDrivingPurchases",T="kmAnalyticsTopDeviceDrivingPurchases",C="kmAnalyticsTopConvertingTrafficSource",E="kmAnalyticsTopCountries",M="kmAnalyticsTopPagesDrivingLeads",R="kmAnalyticsTopRecentTrendingPages",D="kmAnalyticsTopTrafficSource",O="kmAnalyticsTopTrafficSourceDrivingAddToCart",L="kmAnalyticsTopTrafficSourceDrivingLeads",P="kmAnalyticsTopTrafficSourceDrivingPurchases",z="kmAnalyticsPagesPerVisit",B="kmAnalyticsVisitLength",H="kmAnalyticsTopReturningVisitorPages",W="kmSearchConsolePopularKeywords",U="kmAnalyticsVisitsPerVisitor",G="kmAnalyticsMostEngagingPages",Y="kmAnalyticsTopCategories",F=[_,b,k,y,v,A,x,S,Y,N,j,I,w,T,C,E,R,D,O,z,B,H,U,G,Y],V=[...F,W],q="welcome-modal-with-tour",Z="welcome-modal-gathering-data",$="initial-setup-notification-timeout"},88273(e,t,i){i.d(t,{U:()=>o,i:()=>s});const s="core/modules",o="insufficient_module_dependencies"},67438(e,t,i){i.d(t,{A:()=>Notification});var s=i(62688),o=i.n(s),n=i(63696),r=i(50539),a=i(8732),l=i(7972);function c(e){return`notification/${e}/viewed`}function g(e){return(0,r.useSelect)(t=>!!t(l.nX).getValue(c(e)),[e])}g.getKey=c;var d=i(68761),u=i(37133);function ViewedStateObserver({id:e,observeRef:t,threshold:i}){const s=(0,u.A)(t,{threshold:i}),{setValue:o}=(0,r.useDispatch)(l.nX),{markNotificationSeen:c}=(0,r.useDispatch)(a.D),d=!!s?.isIntersecting,h=g(e),p=(0,n.useRef)();function m(){p.current&&clearTimeout(p.current)}return(0,n.useEffect)(()=>(!h&&d?(m(),p.current=setTimeout(()=>{s?.isIntersecting&&(o(g.getKey(e),!0),c(e))},3e3)):!d&&p.current&&m(),()=>{m()}),[h,d,o,c,e,s]),null}ViewedStateObserver.propTypes={id:o().string,observeRef:o().object,threshold:o().number};var h=i(62540);function Notification({id:e,className:t,gaTrackingEventArgs:i,children:s,onView:o}){const l=(0,n.useRef)(),c=g(e),u=(0,d.A)(e,i?.category,{viewAction:i?.viewAction}),[p,m]=(0,n.useState)(!1),f=(0,r.useSelect)(t=>t(a.D).getNotificationSeenDates(e)),{dismissNotification:_}=(0,r.useDispatch)(a.D);return(0,n.useEffect)(()=>{!p&&c&&(u.view(i?.label,i?.value),o?.(),m(!0)),f?.length>=3&&_(e,{skipHidingFromQueue:!0})},[c,u,p,i,o,f,_,e]),(0,h.jsxs)("section",{id:e,ref:l,className:t,children:[s,!c&&(0,h.jsx)(ViewedStateObserver,{id:e,observeRef:l,threshold:.5})]})}Notification.propTypes={id:o().string,className:o().string,gaTrackingEventArgs:o().shape({category:o().string,viewAction:o().string,label:o().string,value:o().string}),children:o().node,onView:o().func}},62051(e,t,i){i.d(t,{A:()=>LearnMoreLink});var s=i(62688),o=i.n(s),n=i(38432),r=i(68761),a=i(62540);function LearnMoreLink({id:e,label:t,url:i,ariaLabel:s,gaTrackingEventArgs:o,external:l=!0,...c}){const g=(0,r.A)(e);return(0,a.jsx)(n.A,{onClick:function(e){e.persist(),g.clickLearnMore(o?.label,o?.value)},href:i,"aria-label":s,external:l,...c,children:t})}LearnMoreLink.propTypes={id:o().string,label:o().string,url:o().string,ariaLabel:o().string,gaTrackingEventArgs:o().shape({label:o().string,value:o().string}),external:o().bool}},67510(e,t,i){i.d(t,{Q:()=>f,A:()=>BannerNotification});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(50539),l=i(83891),c=i(71189),g=i(61983),d=i(41671),u=i(8732),h=i(68761),p=i(10740);var m=i(62540);const f={INFO:"info",ERROR:"error",WARNING:"warning"};function BannerNotification({notificationID:e,type:t=f.INFO,learnMoreLink:i,dismissButton:s,ctaButton:n,gaTrackingEventArgs:r,...c}){const g=(0,h.A)(e,r?.category),{dismissNotification:d}=(0,a.useDispatch)(u.D);let _=c?.svg;return _||t===f.INFO||(_={desktop:void 0,mobile:void 0,verticalPosition:"center"},t===f.WARNING&&(_.desktop="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYwIiBoZWlnaHQ9IjIzNCIgdmlld0JveD0iMCAwIDM2MCAyMzQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03My4xMzAyIDE3MC42NjhDODkuMzcxOSAxODkuOTkgMTE1LjQ3NiAxOTUuMTEgMTMxLjg2NSAxODkuOTkxQzE1My4yNDYgMTgzLjMxMiAxNjYuNjcyIDE2Mi45NjcgMTg1LjUwMiAxNjAuNTQ0QzIwNC4zMzMgMTU4LjEyMSAyMTUuNDA2IDE2OC43MDYgMjM1Ljg5NyAxNzAuMjMzQzI1Ni4zODkgMTcxLjc2IDI4MS4yMzIgMTY3LjYzIDI5Mi43OTEgMTM3LjkzNUMzMDQuMzQ5IDEwOC4yMzkgMjkzLjk0OCA3OC4yMzIxIDI3MC4yMTQgNjQuMzYxNUMyNDYuNDgxIDUwLjQ5MDggMjMzLjI3MSA2Ni43Njk0IDIxMC41NjQgNjguMTIzN0MxODcuODU4IDY5LjQ3NzkgMTc4LjAyMyA0NS44NTI4IDE2MS4wMjMgNDQuMzUyOEMxNDQuMDIzIDQyLjg1MjggMTM0LjUyMyA0NS44NTMgMTI0LjUyMyA1OC44NTI5QzExNC41MjMgNzEuODUyOCAxMjAuMzcxIDg1Ljc2NDEgODkuNTIzNSA5OS44NTNDNTguNjc1OCAxMTMuOTQyIDU2Ljg4ODUgMTUxLjM0NSA3My4xMzAyIDE3MC42NjhaIiBmaWxsPSIjRkZFNEIxIi8+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIwX2RfMjcwNV8xNzY4NikiPgo8cmVjdCB4PSIxMTYuNTIzIiB5PSI1Ny45MTk5IiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOC41MzMiIHJ4PSI2Ljk4MjUyIiBmaWxsPSIjRUJFRUYwIi8+CjxtYXNrIGlkPSJtYXNrMF8yNzA1XzE3Njg2IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIxMTYiIHk9IjU3IiB3aWR0aD0iMTI5IiBoZWlnaHQ9IjEzMiI+CjxyZWN0IHg9IjExNi41MjMiIHk9IjU3LjkxOTkiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTMwLjEzMyIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2ODYpIj4KPHJlY3QgeD0iMTI1LjA1NyIgeT0iMTE3LjY1MyIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjkzMzMiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHg9IjEyNS4wNTciIHk9IjEwMy4yNTMiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC45MzMzIiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjUuMDU3IiB5PSIxNTYuMDUzIiB3aWR0aD0iMTEwLjQiIGhlaWdodD0iMzAuOTMzMyIgcng9IjMuNzUxMjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljk0NjUiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAyMDMuNDU3IDk1LjYyNDkpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTYzLjk5IDk1LjYyNTcpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTI0LjUyMyA5NS42MjU3KSIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxwYXRoIGQ9Ik0xMTYuNTIzIDY0LjkzNTVDMTE2LjUyMyA2MS4wNzkyIDExOS42NSA1Ny45NTMgMTIzLjUwNiA1Ny45NTNIMjM3LjM4M0MyNDEuMjM5IDU3Ljk1MyAyNDQuMzY1IDYxLjA3OTIgMjQ0LjM2NSA2NC45MzU1VjY4LjUzM0gxMTYuNTIzVjY0LjkzNTVaIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSIxMjEuODEzIiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjcuMTA0IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzIuNDM3IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE4MC41MjMiIGN5PSIxMjAuODUzIiByPSIxNy4zNzkzIiBmaWxsPSIjNEUzMzAwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNzU4NjIiLz4KPGNpcmNsZSBjeD0iMS42NTUxNyIgY3k9IjEuNjU1MTciIHI9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTE2Ljk5MSkiIGZpbGw9IiNGRkU0QjEiLz4KPHJlY3Qgd2lkdGg9IjMuMzEwMzQiIGhlaWdodD0iOS4zNzkzMSIgcng9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTI4LjU3NykiIGZpbGw9IiNGRkU0QjEiLz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8yNzA1XzE3Njg2IiB4PSIxMDcuOTkiIHk9IjUxLjUxOTkiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0Ni4xMzMiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2ODYiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzY4NiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K"),t===f.ERROR&&(_.desktop="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9IjIwMiIgdmlld0JveD0iMCAwIDQwMCAyMDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NC44NTc1IDk3LjYxNjZDMTA1Ljg1NyAxMzQuMDIgMTUzLjIwMSAxMDYuMTIzIDE4MS4zNTcgMTE0LjU3MkMyMDkuNTEzIDEyMy4wMiAyMTMuNDY4IDE2MS41NDUgMjM1Ljg1NyAxNjkuOTI1QzI1OC4yNDUgMTc4LjMwNiAzMDMuMDY4IDE3MS41MTUgMzE2LjAwMiAxMzguMTM1QzMyOC45MzYgMTA0Ljc1NCAzMTIuMTY3IDgzLjY1MjkgMjg3LjY1MiA3Mi4xNjk0QzI2My4xMzYgNjAuNjg1OSAyNjguOTc2IDM2Ljc4MzYgMjM0LjE2NiAyNy44MDA5QzE5OS4zNTcgMTguODE4MiAxNzguNjY1IDQxLjI2NTEgMTQwLjE2NSAzMC43OTI3QzEwMS42NjUgMjAuMzIwNCA2My44NTc4IDYxLjIxMzEgODQuODU3NSA5Ny42MTY2WiIgZmlsbD0iI0ZGREVEMyIvPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMF9kXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTI3LjY2NiIgeT0iMzcuODQxMSIgd2lkdGg9IjEyOCIgaGVpZ2h0PSIxMjguMTk0IiByeD0iNi45ODI1MiIgZmlsbD0iI0VCRUVGMCIvPgo8bWFzayBpZD0ibWFzazBfMjcwNV8xNzYzMyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTI3IiB5PSIzNyIgd2lkdGg9IjEyOSIgaGVpZ2h0PSIxMzEiPgo8cmVjdCB4PSIxMjcuNjY2IiB5PSIzNy44NDExIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOS43OSIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTM2LjIiIHk9Ijk3LjQxNjkiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC44NTE4IiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzYuMiIgeT0iODMuMDU0NiIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjg1MTgiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxwYXRoIGQ9Ik0xMzYuMiAxMzkuNDY3QzEzNi4yIDEzNy4zOTUgMTM3Ljg3OSAxMzUuNzE2IDEzOS45NTEgMTM1LjcxNkgyNDIuODQ5QzI0NC45MiAxMzUuNzE2IDI0Ni42IDEzNy4zOTUgMjQ2LjYgMTM5LjQ2N1YxNjUuOTM1SDEzNi4yVjEzOS40NjdaIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC44OTY2IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMjE0LjU5OSA3NS40NDY3KSIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMTguODk2NiIgcng9IjIuMzE1NjkiIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3NS4xMzMgNzUuNDQ3NikiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljg5NjYiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAxMzUuNjY2IDc1LjQ0NzYpIiBmaWxsPSIjRjNGNUY3Ii8+CjwvZz4KPHBhdGggZD0iTTEyNy42NjYgNDQuODU2N0MxMjcuNjY2IDQxLjAwMDQgMTMwLjc5MyAzNy44NzQyIDEzNC42NDkgMzcuODc0MkgyNDguNTI2QzI1Mi4zODIgMzcuODc0MiAyNTUuNTA4IDQxLjAwMDQgMjU1LjUwOCA0NC44NTY3VjQ4LjQyNjNIMTI3LjY2NlY0NC44NTY3WiIgZmlsbD0id2hpdGUiLz4KPHJlY3QgeD0iMTMyLjk1NiIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTM4LjI0NyIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTQzLjU4IiB5PSI0MS4zOTE1IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUxNzM3IiByeD0iMS43NTg2OCIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE5MS42NjYiIGN5PSIxMDAuOTE1IiByPSIxNi44IiBmaWxsPSIjQUM0MjIwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNjY2NjciLz4KPHBhdGggZD0iTTE5Mi45MTQgOTMuOTgxOEgxOTAuNDE4QzE5MC4wOTIgOTMuOTgxOCAxODkuODQzIDk0LjI3MTQgMTg5Ljg5MSA5NC41OTM2TDE5MS4xMzkgMTAyLjk3M0MxOTEuMjI5IDEwMy41OCAxOTIuMTA0IDEwMy41OCAxOTIuMTk0IDEwMi45NzNMMTkzLjQ0MiA5NC41OTM2QzE5My40OSA5NC4yNzE0IDE5My4yNCA5My45ODE4IDE5Mi45MTQgOTMuOTgxOFoiIGZpbGw9IiNGRkRFRDMiLz4KPGNpcmNsZSBjeD0iMTkxLjY2NiIgY3k9IjEwNi43ODIiIHI9IjEuNiIgZmlsbD0iI0ZGREVEMyIvPgo8ZGVmcz4KPGZpbHRlciBpZD0iZmlsdGVyMF9kXzI3MDVfMTc2MzMiIHg9IjExOS4xMzMiIHk9IjMxLjQ0MTEiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0NS4yNjEiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2MzMiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzYzMyIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K")),(0,m.jsx)("div",{className:o()("googlesitekit-banner-notification",`googlesitekit-banner-notification--${t}`),children:(0,m.jsx)(p.xA,{className:"googlesitekit-page-content",children:(0,m.jsx)(p.fI,{children:(0,m.jsx)(p.fh,{size:12,children:(0,m.jsx)(l.A,{learnMoreLink:i&&{...i,onClick:async function(e){g.clickLearnMore(r?.label,r?.value),await(i?.onClick?.(e))}},dismissButton:s&&{...s,onClick:async function(t){await(s?.onClick?.(t)),g.dismiss(r?.label,r?.value),d(e,{...s?.dismissOptions})}},ctaButton:n&&{...n,onClick:async function(t){g.confirm(r?.label,r?.value),await(n?.onClick?.(t)),n?.dismissOnClick&&d(e,{...n?.dismissOptions})}},svg:_,...c})})})})})}BannerNotification.propTypes={notificationID:r().string.isRequired,type:r().oneOf(Object.values(f)),titleIcon:r().node,title:r().string,description:r().oneOfType([r().string,r().node]),learnMoreLink:r().shape(d.A.propTypes),dismissButton:r().shape(g.A.propTypes),ctaButton:r().shape(c.A.propTypes),gaTrackingEventArgs:r().shape({category:r().string,label:r().string,value:r().number})}},84730(e,t,i){i.d(t,{Bp:()=>n,FQ:()=>r,He:()=>l,bI:()=>a,rq:()=>o,ui:()=>s});const s="warning-notification-gtg",o="gtg-setup-cta",n="setup-success-notification-site-kit",r={ERROR_HIGH:30,ERROR_LOW:60,WARNING:100,INFO:150,SETUP_CTA_HIGH:150,SETUP_CTA_LOW:200},a={HEADER:"notification-area-header",DASHBOARD_TOP:"notification-area-dashboard-top",OVERLAYS:"notification-area-overlays"},l={DEFAULT:"default",SETUP_CTAS:"setup-ctas"}},8732(e,t,i){i.d(t,{$:()=>n,D:()=>o});var s=i(20697);const o="core/notifications",n=[s.uR,s.jU,s.f7,s.Ax,s.Is]},68761(e,t,i){i.d(t,{A:()=>r});var s=i(63696),o=i(62659),n=i(13047);function r(e,t,{viewAction:i="view_notification",confirmAction:r="confirm_notification",dismissAction:a="dismiss_notification",clickLearnMoreAction:l="click_learn_more_link"}={}){const c=(0,o.A)(),g=t??`${c}_${e}`;return{view:(0,s.useCallback)((...e)=>(0,n.sx)(g,i,...e),[g,i]),confirm:(0,s.useCallback)((...e)=>(0,n.sx)(g,r,...e),[g,r]),dismiss:(0,s.useCallback)((...e)=>(0,n.sx)(g,a,...e),[g,a]),clickLearnMore:(0,s.useCallback)((...e)=>(0,n.sx)(g,l,...e),[g,l])}}},17884(e,t,i){i.d(t,{A:()=>W});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(50539),l=i(97345),c=i(4169),g=i(4124),d=i(10740),u=i(63696),h=i(20762),p=i(38021),m=i.n(p),f=i(82871),_=i(6730),b=i(12317),k=i(19826),y=i(83880),v=i(13047),A=i(62540);class WidgetErrorHandler extends u.Component{constructor(e){super(e),this.state={error:null,info:null},this.onErrorClick=this.onErrorClick.bind(this)}componentDidCatch(e,t){globalThis.console.error("Widget error:",e,t),this.setState({error:e,info:t}),(0,v.sx)("widget_error",`handle_${this.context||"unknown"}_error`,`${this.props.slug}_${e?.message}\n${t?.componentStack}`.slice(0,500-this.props.slug.length-1))}onErrorClick(){const{error:e,info:t}=this.state;m()(`\`${e?.message}\n${t?.componentStack}\``)}render(){const{children:e}=this.props,{error:t,info:i}=this.state;return t?(0,A.jsx)("div",{className:"googlesitekit-widget-error-handler",children:(0,A.jsx)(b.A,{description:(0,A.jsxs)(u.Fragment,{children:[(0,A.jsx)(y.A,{children:(0,f.__)("An error prevented this Widget from being displayed properly. Report the exact contents of the error on the support forum to find out what caused it.","google-site-kit")}),(0,A.jsx)(_.A,{message:t.message,componentStack:i.componentStack})]}),onErrorClick:this.onErrorClick,onClick:this.onErrorClick,title:(0,f.__)("Error in Widget","google-site-kit"),error:!0})}):e}}WidgetErrorHandler.contextType=k.Ay,WidgetErrorHandler.propTypes={children:r().node.isRequired};const x=WidgetErrorHandler;var S=i(7972),N=i(96177),j=i(97513),I=i(37133),w=i(24355),T=i(11883),C=i(33052),E=i(60515);function WidgetNewBadge({slug:e}){const t=(0,a.useSelect)(t=>t(c.aO).getWidgetArea(e)),{hasNewBadge:i}=t,s=`widget-area-expirable-new-badge-${e}`,o=(0,a.useSelect)(e=>e(l.oR).hasExpirableItem(s)),n=(0,a.useSelect)(e=>e(l.oR).isExpirableItemActive(s)),r=i&&(!1===o||n),{setExpirableItemTimers:g}=(0,a.useDispatch)(l.oR);return(0,u.useEffect)(()=>{void 0!==o&&void 0!==n&&i&&!o&&g([{slug:s,expiresInSeconds:4*v.Du}])},[i,s,o,n,g]),!!r&&(0,A.jsx)(E.A,{})}function WidgetAreaHeader({slug:e,Icon:t=!1,title:i="",subtitle:s="",CTA:o}){const n=(0,w.SO)(),r=o&&n>=783,a="function"==typeof s?s:void 0;return(0,A.jsxs)(u.Fragment,{children:[t&&(0,A.jsx)(t,{width:33,height:33}),i&&(0,A.jsxs)(C.A,{as:"h3",type:"headline",size:"small",className:"googlesitekit-widget-area-header__title",children:[i,(0,A.jsx)(WidgetNewBadge,{slug:e})]}),(s||o)&&(0,A.jsxs)("div",{className:"googlesitekit-widget-area-header__details",children:[s&&(0,A.jsxs)(C.A,{as:"h4",size:"medium",type:"body",className:"googlesitekit-widget-area-header__subtitle",children:[a&&(0,A.jsx)(a,{}),!a&&s,!i&&(0,A.jsx)(WidgetNewBadge,{slug:e})]}),r&&(0,A.jsx)("div",{className:"googlesitekit-widget-area-header__cta",children:(0,A.jsx)(o,{})})]})]})}WidgetNewBadge.propTypes={slug:r().string.isRequired},WidgetAreaHeader.propTypes={slug:r().string.isRequired,Icon:r().bool,title:r().oneOfType([r().string,r().element]),subtitle:r().oneOfType([r().string,r().elementType]),CTA:r().elementType};var M=i(33494);function WidgetCellWrapper({gridColumnWidth:e,children:t}){return 0===e?(0,A.jsx)("div",{className:M.Y2,children:t}):e<6?(0,A.jsx)(d.fh,{lgSize:e,mdSize:4,smSize:2,children:t}):e<8?(0,A.jsx)(d.fh,{lgSize:e,mdSize:8,children:t}):(0,A.jsx)(d.fh,{size:e,children:t})}WidgetCellWrapper.propTypes={gridColumnWidth:r().number.isRequired,children:r().element.isRequired};const R=WidgetCellWrapper;var D=i(92449),O=i(17243),L=i(88273),P=i(78422),z=i(79266);function WidgetRenderer({slug:e,OverrideComponent:t}){const i=(0,a.useSelect)(t=>t(c.aO).getWidget(e)),s=(0,j.dv)(),o=(0,N.c1)(e),{Widget:n,WidgetNull:r}=o,l=(0,a.useSelect)(e=>e(L.i).getRecoverableModules()),d=(0,g.A)(),h=(0,u.useMemo)(()=>i&&l&&(0,O.intersection)(i.modules,Object.keys(l)),[l,i]),p=(0,a.useSelect)(t=>t(c.aO).isWidgetPreloaded(e));if(!i||void 0===h||i?.hideOnBreakpoints?.includes(s))return(0,A.jsx)(r,{});const{Component:m,wrapWidget:f}=i;let _=(0,A.jsx)(m,{...o});return d&&h?.length&&(_=(0,A.jsx)(z.A,{widgetSlug:e,moduleSlugs:h})),t?_=(0,A.jsxs)(u.Fragment,{children:[(0,A.jsx)(P.A,{widgetSlug:"overridden",children:(0,A.jsx)(t,{})}),(0,A.jsx)("div",{className:M.Y2,children:_})]}):f&&(_=(0,A.jsx)(n,{children:_})),p?(0,A.jsx)("div",{className:M.Y2,children:_}):_}WidgetRenderer.propTypes={slug:r().string.isRequired,OverrideComponent:r().elementType};const B=WidgetRenderer;function H(e){const t={[j.Qb]:48,[j.Fo]:48,[j.Lg]:32,[j.mp]:32}[e];return`${-Math.abs((0,T.Eq)(e)+t)}px ${-t}px ${-t}px ${-t}px`}function WidgetAreaRenderer({slug:e,contextID:t}){const i=(0,g.A)(),s=(0,a.useSelect)(e=>i?e(l.oR).getViewableModules():null),n=(0,w.SO)(),r=(0,j.dv)(),p=(0,u.useRef)(),m=(0,I.A)(p,{rootMargin:H(r),threshold:0}),f=(0,a.useSelect)(t=>t(c.aO).getWidgetArea(e)),{Icon:_,title:b,style:k,subtitle:y,CTA:v,Footer:T}=f,C=(0,a.useSelect)(t=>t(c.aO).getWidgets(e,{modules:s||void 0})),E=(0,a.useSelect)(e=>e(c.aO).getWidgetStates()),M=(0,a.useSelect)(t=>t(c.aO).isWidgetAreaActive(e,{modules:s||void 0})),O=(0,a.useSelect)(e=>e(S.nX).getValue(S.Fc)),L=(0,a.useSelect)(e=>e(S.nX).getValue(S.Yg)),P=(O?O===t:!!m?.intersectionRatio)||L?.includes(e),[z,W]=(0,u.useState)({key:`WidgetAreaRenderer-${e}`,value:P});(0,u.useEffect)(()=>{W({key:`WidgetAreaRenderer-${e}`,value:P})},[e,P]);const U=v&&n<=782;if(void 0===s)return null;const{columnWidths:G,rowIndexes:Y}=(0,N.X9)(C,E),{gridColumnWidths:F,overrideComponents:V}=(0,N.DO)(C,E,{columnWidths:G,rowIndexes:Y}),q=C.map((e,t)=>(0,A.jsx)(R,{gridColumnWidth:F[t],children:(0,A.jsx)(D.Kq,{value:e,children:(0,A.jsx)(x,{slug:e.slug,children:(0,A.jsx)(B,{OverrideComponent:V[t]?()=>{const{Component:e,metadata:i}=V[t];return(0,A.jsx)(e,{...i})}:void 0,slug:e.slug})})})},`${e.slug}-wrapper`));return(0,A.jsxs)(h.Ay,{value:z,children:[!!M&&(0,A.jsxs)(d.xA,{className:o()("googlesitekit-widget-area",`googlesitekit-widget-area--${e}`,`googlesitekit-widget-area--${k}`),ref:p,children:[(0,A.jsx)(d.fI,{children:(0,A.jsx)(d.fh,{className:"googlesitekit-widget-area-header",size:12,children:(0,A.jsx)(WidgetAreaHeader,{slug:e,Icon:_,title:b,subtitle:y,CTA:v})})}),(0,A.jsx)("div",{className:"googlesitekit-widget-area-widgets",children:(0,A.jsxs)(d.fI,{children:[k===c.qB.BOXES&&q,k===c.qB.COMPOSITE&&(0,A.jsx)(d.fh,{size:12,children:(0,A.jsx)(d.xA,{children:(0,A.jsx)(d.fI,{children:q})})})]})}),(0,A.jsxs)(d.fI,{children:[U&&(0,A.jsx)(d.fh,{className:"googlesitekit-widget-area-footer",lgSize:12,mdSize:4,smSize:2,children:(0,A.jsx)("div",{className:"googlesitekit-widget-area-footer__cta",children:(0,A.jsx)(v,{})})}),T&&(0,A.jsx)(d.fh,{className:"googlesitekit-widget-area-footer",lgSize:12,mdSize:U?4:8,smSize:U?2:4,children:(0,A.jsx)(T,{})})]})]}),!M&&(0,A.jsx)(d.xA,{className:o()(N.Y2,"googlesitekit-widget-area",{[`googlesitekit-widget-area--${e}`]:!!e,[`googlesitekit-widget-area--${k}`]:!!k}),ref:p,children:q})]})}function WidgetContextRenderer(e){const{id:t,slug:i,className:s,Header:n,Footer:r}=e,u=(0,g.A)(),h=(0,a.useSelect)(e=>u?e(l.oR).getViewableModules():null),p=(0,a.useSelect)(e=>i?e(c.aO).getWidgetAreas(i):null),m=(0,a.useSelect)(e=>!!i&&e(c.aO).isWidgetContextActive(i,{modules:h||void 0}));return void 0===h?null:(0,A.jsxs)("div",{id:t,className:o()("googlesitekit-widget-context",{"googlesitekit-hidden":!m},s),children:[n&&m&&(0,A.jsx)(d.xA,{children:(0,A.jsx)(d.fI,{children:(0,A.jsx)(d.fh,{size:12,children:(0,A.jsx)(n,{})})})}),p&&p.map(e=>(0,A.jsx)(WidgetAreaRenderer,{slug:e.slug,contextID:t},e.slug)),r&&m&&(0,A.jsx)(d.xA,{children:(0,A.jsx)(d.fI,{children:(0,A.jsx)(d.fh,{size:12,children:(0,A.jsx)(r,{})})})})]})}WidgetAreaRenderer.propTypes={slug:r().string.isRequired,contextID:r().string},WidgetContextRenderer.propTypes={id:r().string,slug:r().string,className:r().string,Header:r().elementType,Footer:r().elementType};const W=WidgetContextRenderer},79754(e,t,i){i.d(t,{A:()=>WidgetNull});var s=i(62688),o=i.n(s),n=i(64515),r=i(96820),a=i(62540);const l={};function WidgetNull({widgetSlug:e}){return(0,r.A)(e,n.A,l),(0,a.jsx)(n.A,{})}WidgetNull.propTypes={widgetSlug:o().string.isRequired,...n.A.propTypes}},79266(e,t,i){i.d(t,{A:()=>WidgetRecoverableModules});var s=i(62688),o=i.n(s),n=i(63696),r=i(97591),a=i(96820),l=i(62540);function WidgetRecoverableModules({widgetSlug:e,moduleSlugs:t,...i}){const s=(0,n.useMemo)(()=>({moduleSlug:[...t].sort().join(","),moduleSlugs:t}),[t]);return(0,a.A)(e,r.A,s),(0,l.jsx)(r.A,{moduleSlugs:t,...i})}WidgetRecoverableModules.propTypes={widgetSlug:o().string.isRequired,...r.A.propTypes}},4169(e,t,i){i.d(t,{N$:()=>o,aO:()=>n,qB:()=>s});const s={BOXES:"boxes",COMPOSITE:"composite"},o={QUARTER:"quarter",HALF:"half",FULL:"full"},n="core/widgets"},69908(e,t,i){i.r(t),i.d(t,{AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:()=>d,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:()=>h,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:()=>u,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:()=>g,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:()=>a,AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:()=>s,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:()=>c,AREA_MAIN_DASHBOARD_SITE_GOALS_PRIMARY:()=>o,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:()=>l,AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION:()=>r,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:()=>n,default:()=>p});const s="mainDashboardKeyMetricsPrimary",o="mainDashboardSiteGoalsPrimary",n="mainDashboardTrafficPrimary",r="mainDashboardTrafficAudienceSegmentation",a="mainDashboardContentPrimary",l="mainDashboardSpeedPrimary",c="mainDashboardMonetizationPrimary",g="entityDashboardTrafficPrimary",d="entityDashboardContentPrimary",u="entityDashboardSpeedPrimary",h="entityDashboardMonetizationPrimary",p={AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:s,AREA_MAIN_DASHBOARD_SITE_GOALS_PRIMARY:o,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:n,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:a,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:l,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:c,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:g,AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:d,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:u,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:h}},59352(e,t,i){i.r(t),i.d(t,{CONTEXT_ENTITY_DASHBOARD_CONTENT:()=>g,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:()=>u,CONTEXT_ENTITY_DASHBOARD_SPEED:()=>d,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:()=>c,CONTEXT_MAIN_DASHBOARD_CONTENT:()=>r,CONTEXT_MAIN_DASHBOARD_KEY_METRICS:()=>s,CONTEXT_MAIN_DASHBOARD_MONETIZATION:()=>l,CONTEXT_MAIN_DASHBOARD_SITE_GOALS:()=>o,CONTEXT_MAIN_DASHBOARD_SPEED:()=>a,CONTEXT_MAIN_DASHBOARD_TRAFFIC:()=>n,default:()=>h});const s="mainDashboardKeyMetrics",o="mainDashboardSiteGoals",n="mainDashboardTraffic",r="mainDashboardContent",a="mainDashboardSpeed",l="mainDashboardMonetization",c="entityDashboardTraffic",g="entityDashboardContent",d="entityDashboardSpeed",u="entityDashboardMonetization",h={CONTEXT_MAIN_DASHBOARD_KEY_METRICS:s,CONTEXT_MAIN_DASHBOARD_SITE_GOALS:o,CONTEXT_MAIN_DASHBOARD_TRAFFIC:n,CONTEXT_MAIN_DASHBOARD_CONTENT:r,CONTEXT_MAIN_DASHBOARD_SPEED:a,CONTEXT_MAIN_DASHBOARD_MONETIZATION:l,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:c,CONTEXT_ENTITY_DASHBOARD_CONTENT:g,CONTEXT_ENTITY_DASHBOARD_SPEED:d,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:u}},96820(e,t,i){i.d(t,{A:()=>r});var s=i(63696),o=i(50539),n=i(4169);function r(e,t,i){const{setWidgetState:r,unsetWidgetState:a}=(0,o.useDispatch)(n.aO);(0,s.useEffect)(()=>(r(e,t,i),()=>{a(e,t,i)}),[e,t,i,r,a])}},33494(e,t,i){i.d(t,{Gr:()=>r,We:()=>l,Y2:()=>a});var s=i(97591),o=i(15118),n=i(4169);const r={[n.N$.QUARTER]:3,[n.N$.HALF]:6,[n.N$.FULL]:12},a="googlesitekit-hidden",l=[o.A,s.A]},21213(e,t,i){i.d(t,{c1:()=>k,V8:()=>A,WP:()=>v});var s=i(50532),o=i.n(s),n=i(63696),r=i(78422),a=i(79754),l=i(79266),c=i(62688),g=i.n(c),d=i(44192),u=i(62540);function WidgetReportError({widgetSlug:e,...t}){return(0,u.jsx)(d.A,{...t})}WidgetReportError.propTypes={widgetSlug:g().string.isRequired,...d.A.propTypes};var h=i(15118),p=i(96820);function WidgetReportZero({widgetSlug:e,moduleSlug:t,...i}){const s=(0,n.useMemo)(()=>({moduleSlug:t}),[t]);return(0,p.A)(e,h.A,s),(0,u.jsx)(h.A,{moduleSlug:t,...i})}WidgetReportZero.propTypes={widgetSlug:g().string.isRequired,...h.A.propTypes};var m=i(17064),f=i(52684),_=i(50539),b=i(7972);function WPDashboardReportError({moduleSlug:e,error:t}){const i=(0,f.A)(WPDashboardReportError,"WPDashboardReportError"),{setValue:s}=(0,_.useDispatch)(b.nX),o=t.message,n=(0,_.useSelect)(t=>t(b.nX).getValue(`WPDashboardReportError-${e}-${o}`));return(0,m.A)(()=>{s(`WPDashboardReportError-${e}-${o}`,i)},()=>{s(`WPDashboardReportError-${e}-${o}`,void 0)}),n!==i?null:(0,u.jsx)(d.A,{moduleSlug:e,error:t})}WPDashboardReportError.propTypes={moduleSlug:g().string.isRequired,error:g().object.isRequired};const k=o()(e=>({widgetSlug:e,Widget:y(e)(r.A),WidgetRecoverableModules:y(e)(l.A),WidgetReportZero:y(e)(WidgetReportZero),WidgetReportError:y(e)(WidgetReportError),WidgetNull:y(e)(a.A)}));function y(e){return t=>{const i=(0,n.forwardRef)((i,s)=>(0,u.jsx)(t,{...i,ref:s,widgetSlug:e}));return i.displayName="WithWidgetSlug",(t.displayName||t.name)&&(i.displayName+=`(${t.displayName||t.name})`),i}}function v(e){const t=k(e);return e=>{function DecoratedComponent(i){return(0,u.jsx)(e,{...i,...t})}return DecoratedComponent.displayName="WithWidgetComponentProps",(e.displayName||e.name)&&(DecoratedComponent.displayName+=`(${e.displayName||e.name})`),DecoratedComponent}}function A(e){return t=>{function DecoratedComponent(i){return(0,u.jsx)(t,{...i,WPDashboardReportError:y(e)(WPDashboardReportError)})}return DecoratedComponent.displayName="WithWPDashboardWidgetComponentProps",(t.displayName||t.name)&&(DecoratedComponent.displayName+=`(${t.displayName||t.name})`),DecoratedComponent}}},96177(e,t,i){i.d(t,{Y2:()=>s.Y2,DO:()=>g,c1:()=>d.c1,X9:()=>l,JS:()=>n,T5:()=>u,WP:()=>d.WP});var s=i(33494),o=i(64515);function n(e){return!!e&&e.Component===o.A}function r(e,t){if(9!==t)return[e,t];let i=(e=[...e]).length-1;for(;0!==t&&i>=0;)3===e[i]?(t-=3,e[i]=4):6===e[i]&&(t-=6,e[i]=8),i--;return[e,t]}function a(e,t){return(Array.isArray(t.width)?t.width:[t.width]).map(t=>({counter:e+s.Gr[t],width:t}))}function l(e,t){let i=[];const o=[];if(!e?.length)return{columnWidths:i,rowIndexes:o};let l=0,c=0;function g({counter:e},{counter:t}){return e-t}function d({counter:e},{counter:t}){return t-e}function u({counter:e}){return e<=12}return e.forEach((h,p)=>{if(n(t[h.slug]))return i.push(0),void o.push(c);let m=a(l,h);const f=function(e,t,i){for(;++e<t.length;)if(!n(i[t[e].slug]))return t[e];return null}(p,e,t);if(null===f||0===a(m.sort(g)[0].counter,f).filter(u).length){m.some(u)&&(m=m.sort(d),m=m.filter(u))}const _=m[0].width;o.push(c),l+=s.Gr[_],l>12?(l-=s.Gr[_],o[p]++,9===l&&([i,l]=r(i,l)),l=s.Gr[_],c++):12===l&&(l=0,c++),i.push(s.Gr[_])}),9===l&&([i,l]=r(i,l)),{columnWidths:i,rowIndexes:o}}var c=i(17243);function g(e,t,{columnWidths:i,rowIndexes:o}){const n=[],r=[...i];if(!e?.length)return{gridColumnWidths:r,overrideComponents:n};let a=null,l=-1,g=[];if(function(e,t){const i={};for(let o=0;o<e.length;o++){const n=e[o],r=t?.[n.slug],a=r?.Component,l=r?.metadata?.moduleSlug,c=s.We.includes(a);if(!a||!l||!c)return!1;if(i[l]){if(i[l]!==a)return!1}else i[l]=a}return!(Object.keys(i).length>1)}(e,t)){const i=Array.from({length:e.length-1}).fill(0);return{overrideComponents:[t[e[0].slug]],gridColumnWidths:[12,...i]}}return e.forEach((s,d)=>{if(n.push(null),a=t[s.slug],l=o[d],a)if(u=a,h=t[e[d+1]?.slug],p=l,m=o[d+1],p===m&&(0,c.isEqual)(u,h))g.push(i[d]),r[d]=0;else if(g.length>0){g.push(i[d]);const e=g.reduce((e,t)=>e+t,0);n[d]=a,r[d]=e,g=[]}var u,h,p,m}),{gridColumnWidths:r,overrideComponents:n}}var d=i(21213);function u(e){return(Array.isArray(e)?e:[e]).filter(e=>"string"==typeof e&&e.length>0)}},65929(e,t,i){i.d(t,{A:()=>u});var s=i(63696),o=i(50539),n=i(49993),r=i(70301),a=i(29785),l=i(97345),c=i(88273),g=i(65054),d=i(62659);function u(e){const t=(0,d.A)(),i=(0,o.useSelect)(t=>t(c.i).getModule(e)),u=(0,o.useSelect)(e=>e(l.oR).hasCapability(l.HD)),{activateModule:h}=(0,o.useDispatch)(c.i),{navigateTo:p}=(0,o.useDispatch)(r.M),{setInternalServerError:m}=(0,o.useDispatch)(a.O4),f=(0,s.useCallback)(async()=>{const{error:i,response:s}=await h(e);i?m({id:`${e}-setup-error`,description:i.message}):(await(0,g.sx)(`${t}_widget-activation-cta`,"activate_module",e),await(0,n.SO)("module_setup",e,{ttl:300}),p(s.moduleReauthURL))},[h,e,p,m,t]);return i?.name&&u?f:null}},69831(e,t,i){i.d(t,{A:()=>l});var s=i(63696),o=i(50539),n=i(70301),r=i(97345),a=i(88273);function l(e){const t=(0,o.useSelect)(e=>e(r.oR).hasCapability(r.HD)),i=(0,o.useSelect)(t=>t(a.i).getModuleStoreName(e)),l=(0,o.useSelect)(e=>e(i)?.getAdminReauthURL()),{navigateTo:c}=(0,o.useDispatch)(n.M),g=(0,s.useCallback)(()=>c(l),[l,c]);return l&&t?g:null}},7551(e,t,i){i.d(t,{Ay:()=>a,Oo:()=>n,oE:()=>r});var s=i(20697),o=i(62659);const n=s.jU,r=s.f7;function a(){const e=(0,o.A)();return e===s.jU||e===s.Ax?n:e===s.f7||e===s.Is?r:null}},7076(e,t,i){i.d(t,{d:()=>r});var s=i(17243),o=i(18117),n=i(63696);function r(...e){const t=(0,o.MA)(()=>(0,s.debounce)(...e),e);return(0,n.useEffect)(()=>()=>t.cancel(),[t]),t}},30805(e,t,i){i.d(t,{i:()=>r});var s=i(63696),o=i(79961),n=i(84895);function r(e){const t=(0,s.useContext)(o.A);return(0,n.G)(e,t)}},68832(e,t,i){i.d(t,{A:()=>a});var s=i(63737),o=i(35470),n=i(63696),r=i(11999);function a(e,t){const{setValues:i}=(0,s.A)(r.s),a=(0,n.useCallback)(s=>{i(e,{[t]:s})},[i,e,t]);return[(0,o.A)(i=>{const{getValue:s}=i(r.s);return s(e,t)},[e,t]),a]}},85097(e,t,i){i.d(t,{W:()=>l});var s=i(79257),o=i(35470),n=i(63696),r=i(52735),a=i(7972);function l({sticky:e=!1}={}){const t=(0,n.useContext)(r.A),[i,l]=(0,n.useState)(!1),c=(0,o.A)(e=>e(a.nX).getInViewResetCount()),g=(0,o.A)(e=>e(a.nX).getValue("forceInView"));return(0,n.useEffect)(()=>{t.value&&!i&&l(!0)},[i,t,l]),(0,n.useEffect)(()=>{g&&l(!0)},[g]),(0,s.A)(()=>{l(!1)},[c]),!(!e||!i)||!!t.value}},52721(e,t,i){i.d(t,{w:()=>a});var s=i(35470),o=i(63696),n=i(85097);function r(){}function a(e,t){const i=(0,n.W)({sticky:!0}),a=(0,o.useRef)(),l=(0,o.useCallback)(e,t),c=(0,s.A)(i?l:r);return i&&(a.current=c),a.current}},12896(e,t,i){i.d(t,{l:()=>o});var s=i(78174);function o(e,t,i){(0,s.A)(i=>e.includes(i.keyCode)&&t.current.contains(i.target),i)}},37133(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(63696);const __WEBPACK_DEFAULT_EXPORT__=function(e,t){const[i,o]=(0,s.useState)(null);return(0,s.useEffect)(()=>{if(e.current&&"function"==typeof globalThis.IntersectionObserver){function i(e){o(e[e.length-1])}const s=new globalThis.IntersectionObserver(i,t);return s.observe(e.current),()=>{o(null),s.disconnect()}}return()=>{}},[e.current,t.threshold,t.root,t.rootMargin]),i}},4008(e,t,i){i.d(t,{Z:()=>c});var s=i(31589),o=i(40960),n=i(88144),r=i(63696),a=i(50539),l=i(7972);function c(){const{setIsOnline:e}=(0,a.useDispatch)(l.nX),t=(0,a.useSelect)(e=>e(l.nX).getIsOnline()),i=(0,r.useCallback)(async()=>{if(navigator.onLine){try{await(0,n.default)({path:"/google-site-kit/v1/"})}catch(t){if("fetch_error"===t?.code)return void e(!1)}e(!0)}else e(!1)},[e]);(0,s.A)("online",i),(0,s.A)("offline",i),(0,o.A)(i,t?12e4:15e3)}},5924(e,t,i){i.d(t,{A:()=>l});var s=i(15844),o=i(50539),n=i(76729),r=i(7972),a=i(37467);function l(){const[e,t]=(0,a.A)("panel"),{setValue:i}=(0,o.useDispatch)(r.nX);(0,s.A)(()=>{"email-reporting"===e&&(i(n.Q,!0),i("admin-screen-tooltip",{isTooltipVisible:!1}),t(void 0))})}},37467(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(63696),o=i(51568),n=i(82286);const __WEBPACK_DEFAULT_EXPORT__=function(e,t,i=globalThis){const[r,a]=(0,s.useState)((0,n.d)(i.location.href,e)||t);return[r,function(t){a(t);const s=(0,o.F)(i.location.href,{[e]:t});i.history.replaceState(null,"",s)}]}},62659(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(63696),o=i(19826);const __WEBPACK_DEFAULT_EXPORT__=function(){return(0,s.useContext)(o.Ay)}},4124(e,t,i){i.d(t,{A:()=>n});var s=i(20697),o=i(62659);function n(){const e=(0,o.A)();return s.Nn.includes(e)}},10740(e,t,i){i.d(t,{$z:()=>s.$,CR:()=>o.C,Cf:()=>r.DialogContent,Es:()=>r.DialogFooter,Nv:()=>l.N,P3:()=>c.P,Si:()=>n.S,fI:()=>g.fI,fh:()=>g.fh,lG:()=>a.a,xA:()=>g.xA});var s=i(3412),o=i(56655),n=i(30454),r=i(12786),a=i.n(r),l=i(91046),c=i(26569),g=i(14777)},58718(e,t,i){i.d(t,{CX:()=>o,Py:()=>r,SM:()=>s,kj:()=>n});const s="adsense-connect-cta",o="adsense-connect-cta-tooltip-state",n="adsense-ga4-top-earnings-notice",r="adsense"},22942(e,t,i){i.d(t,{A_:()=>g,DF:()=>u,L1:()=>h,M0:()=>r,Mc:()=>a,Ok:()=>c,U9:()=>l,iW:()=>n,ue:()=>o,wq:()=>s,xR:()=>d});const s=1,o=2,n=3,r="enhanced-measurement-activation-banner-tooltip-state",a="enhanced-measurement-activation-banner-dismissed-item",l="_r.explorerCard..selmet",c="_r.explorerCard..seldim",g="_r..dataFilters",d="_r..nav",u="key-metrics-connect-ga4-cta-widget",h="analytics-4"},32803(e,t,i){i.d(t,{Y:()=>s});const s="search-console"},49481(e,t,i){i.d(t,{n:()=>s});const s="modules/search-console"},51193(e,t,i){i.d(t,{Du:()=>u,GH:()=>a,Gp:()=>l,IS:()=>_,Jg:()=>g,N_:()=>k,O5:()=>b,Ql:()=>h,Qr:()=>p,XH:()=>f,r0:()=>c,sq:()=>m,tt:()=>d});var s=i(32091),o=i.n(s),n=i(17243),r=i(82871);const a="Invalid dateString parameter, it must be a string.",l='Invalid date range, it must be a string with the format "last-x-days".',c=60,g=60*c,d=24*g,u=7*d;function h(){function e(e){return(0,r.sprintf)(/* translators: %s: number of days */ /* translators: %s: number of days */ (0,r._n)("Last %s day","Last %s days",e,"google-site-kit"),e)}return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}function p(e=""){if(!(0,n.isString)(e))return!1;if(3!==e.split("-").length)return!1;const t=new Date(e);return(0,n.isDate)(t)&&!isNaN(t)}function m(e){o()((0,n.isDate)(e)&&!isNaN(e),"Date param must construct to a valid date instance or be a valid date instance itself.");const t=`${e.getMonth()+1}`,i=`${e.getDate()}`;return[e.getFullYear(),t.length<2?`0${t}`:t,i.length<2?`0${i}`:i].join("-")}function f(e){o()(p(e),a);const[t,i,s]=e.split("-");return new Date(t,i-1,s)}function _(e,t){return m(k(e,t*d))}function b(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 k(e,t){o()(p(e)||(0,n.isDate)(e)&&!isNaN(e),a);const i=p(e)?f(e).getTime():e.getTime();return new Date(i-1e3*t)}},13137(e,t,i){i.d(t,{G:()=>a,HY:()=>c,SG:()=>l,db:()=>o,e4:()=>d,vl:()=>g});i(17243);var s=i(82871);const o="missing_required_scopes",n="insufficientPermissions",r="forbidden";function a(e){return e?.code===o}function l(e){return[n,r].includes(e?.data?.reason)}function c(e){return!!e?.data?.reconnectURL}function g(e,t){return!(!t?.storeName||l(e)||a(e)||c(e))}function d(e){return"internal_server_error"===e?.code?(0,s.__)("There was a critical error on this website while fetching data","google-site-kit"):"invalid_json"===e?.code?(0,s.__)("The server provided an invalid response","google-site-kit"):e?.message}},49746(e,t,i){i.d(t,{Eo:()=>d,JK:()=>m,K5:()=>p,jq:()=>h,mK:()=>g});var s=i(17243),o=i(50532),n=i.n(o),r=i(82871);function a(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:n="short",...a}=t,l={unitDisplay:n,...a,style:"unit"};return 0===e?h(o,{...l,unit:"second"}):(0,r.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ (0,r._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?h(o,{...l,unit:"second"}):"",s?h(s,{...l,unit:"minute"}):"",i?h(i,{...l,unit:"hour"}):"").trim()},formatDecimal(){const t=(0,r.sprintf)( // translators: %s: number of seconds with "s" as the abbreviated unit. // translators: %s: number of seconds with "s" as the abbreviated unit. (0,r.__)("%ds","google-site-kit"),o);if(0===e)return t;const n=(0,r.sprintf)( // translators: %s: number of minutes with "m" as the abbreviated unit. // translators: %s: number of minutes with "m" as the abbreviated unit. (0,r.__)("%dm","google-site-kit"),s),a=(0,r.sprintf)( // translators: %s: number of hours with "h" as the abbreviated unit. // translators: %s: number of hours with "h" as the abbreviated unit. (0,r.__)("%dh","google-site-kit"),i);return(0,r.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ (0,r._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?t:"",s?n:"",i?a:"").trim()}}}(e,t);try{return i()}catch{return s()}}function l(e){e=parseInt(e,10),Number.isNaN(e)&&(e=0);return{hours:Math.floor(e/60/60),minutes:Math.floor(e/60%60),seconds:Math.floor(e%60)}}function c(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e}function g(e){let t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:(0,s.isPlainObject)(e)&&(t={...e}),t}function d(e,t={}){e=(0,s.isFinite)(e)?e:Number(e),(0,s.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const i=g(t),{style:o="metric"}=i;return"metric"===o?function(e){const t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?(0,r.sprintf)( // translators: %s: an abbreviated number in millions. // translators: %s: an abbreviated number in millions. (0,r.__)("%sM","google-site-kit"),h(c(e),e%10==0?{}:t)):1e4<=e?(0,r.sprintf)( // translators: %s: an abbreviated number in thousands. // translators: %s: an abbreviated number in thousands. (0,r.__)("%sK","google-site-kit"),h(c(e))):1e3<=e?(0,r.sprintf)( // translators: %s: an abbreviated number in thousands. // translators: %s: an abbreviated number in thousands. (0,r.__)("%sK","google-site-kit"),h(c(e),e%10==0?{}:t)):h(e,{signDisplay:"never",maximumFractionDigits:1})}(e):"duration"===o?a(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):h(e,i)}const u=n()(console.warn);function h(e,t={}){const{locale:i=m(),...s}=t;try{return new Intl.NumberFormat(i,s).format(e)}catch(t){u(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(i)}, ${JSON.stringify(s)} ).format( ${typeof e} )`,t.message)}const o={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},n=["signDisplay","compactDisplay"],r={};for(const[e,t]of Object.entries(s))o[e]&&t===o[e]||n.includes(e)||(r[e]=t);try{return new Intl.NumberFormat(i,r).format(e)}catch{return new Intl.NumberFormat(i).format(e)}}function p(e,t={}){const{locale:i=m(),style: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 n=(0,r.__)(", ","google-site-kit");return e.join(n)}function m(e=globalThis){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}},13047(e,t,i){i.d(t,{tt:()=>_.tt,Jg:()=>_.Jg,Gp:()=>_.Gp,GH:()=>_.GH,r0:()=>_.r0,Du:()=>_.Du,Zf:()=>w,Cn:()=>A,G7:()=>f,vH:()=>m,N_:()=>_.N_,zh:()=>C,mK:()=>g.mK,Ql:()=>_.Ql,vY:()=>v,sq:()=>_.sq,VZ:()=>x.VZ,JK:()=>g.JK,IS:()=>_.IS,pH:()=>x.pH,kf:()=>N,O5:()=>_.O5,Qr:()=>_.Qr,x6:()=>S,K5:()=>g.K5,S_:()=>p,dc:()=>x.dc,Eo:()=>g.Eo,jq:()=>g.jq,DK:()=>I.D,N9:()=>j,p9:()=>n.p,XH:()=>_.XH,Zm:()=>l,sx:()=>o.sx,BI:()=>o.BI,CZ:()=>n.C,BG:()=>T});var s=i(17243),o=i(65054),n=i(50477),r=i(10523),a=i.n(r);function l(e){return a()(JSON.stringify(c(e)))}function c(e){const t={};return Object.keys(e).sort().forEach(i=>{let s=e[i];s&&"object"==typeof s&&!Array.isArray(s)&&(s=c(s)),t[i]=s}),t}var g=i(49746);function d(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function u(e){return`<p>${e.replace(/\n{2,}/g,"</p><p>")}</p>`}function h(e){return e.replace(/\n/gi,"<br>")}function p(e){const t=[d,u,h];let i=e;for(const e of t)i=e(i);return i}function m(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]}function f(e){const t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}var _=i(51193),b=i(30908),k=i(38017),y=i(62540);function v(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:i=!1}=t;return(0,b.Ay)((0,y.jsx)(k.A,{direction:e>0?"up":"down",invertColor:i}))}function A(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var x=i(48276);function S(e){const t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function N(e){if("number"==typeof e)return!0;const t=(e||"").toString();return!!t&&!isNaN(t)}function j(e){return Array.isArray(e)?[...e].sort():e}var I=i(11193);function w(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 T(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function C(e){if(!e)return"";const t=e.replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(t)).replace(/(\\)/g,"");return(0,s.unescape)(t)}},31012(e,t,i){i.d(t,{c:()=>r});var s=i(82871),o=i(22942),n=i(32803);function r(e="",t={}){const{slug:i="",name:r="",owner:a={}}=t||{};if(!i||!r)return e;let l="",c="";return o.L1===i?e.match(/account/i)?l=(0,s.__)("Your Google account does not have sufficient permissions for this Analytics account, so you wonât be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/property/i)?l=(0,s.__)("Your Google account does not have sufficient permissions for this Analytics property, so you wonât be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/view/i)&&(l=(0,s.__)("Your Google account does not have sufficient permissions for this Analytics view, so you wonât be able to see stats from it on the Site Kit dashboard.","google-site-kit")):n.Y===i&&(l=(0,s.__)("Your Google account does not have sufficient permissions for this Search Console property, so you wonât be able to see stats from it on the Site Kit dashboard.","google-site-kit")),l||(l=(0,s.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,s.__)("Your Google account does not have sufficient permissions to access %s data, so you wonât be able to see stats from it on the Site Kit dashboard.","google-site-kit"),r)),a&&a.login&&(c=(0,s.sprintf)(/* translators: %s: owner name */ /* translators: %s: owner name */ (0,s.__)('This service was originally connected by the administrator "%s" â you can contact them for more information.',"google-site-kit"),a.login)),c||(c=(0,s.__)("This service was originally connected by an administrator â you can contact them for more information.","google-site-kit")),`${l} ${c}`}},86582(e,t,i){i.d(t,{A:()=>o});var s=i(20697);function o(e){return s.kz.includes(e)}},11193(e,t,i){i.d(t,{D:()=>n});var s=i(32091),o=i.n(s);function n(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)}}},55465(e,t,i){i.d(t,{O:()=>o});var s=i(31234);const o=i.n(s)()(globalThis)},50477(e,t,i){i.d(t,{C:()=>n,p:()=>o});var s=i(55465);function o(e,t={}){return{__html:s.O.sanitize(e,t)}}function n(e){const t="object"==typeof e?e.toString():e;return t?.replace?.(/\/+$/,"")}},11883(e,t,i){i.d(t,{YJ:()=>n,Eq:()=>r});var s=i(97513),o=i(17243);function n(e,t){const i=document.querySelector(e);if(!i)return 0;const s=i.getBoundingClientRect().top,o=r(t);return s+globalThis.scrollY-o}function r(e){let t=function(e){let t=0;const i=document.querySelector(".googlesitekit-header");t=i&&"sticky"===globalThis.getComputedStyle(i).position?function(e){const t=document.querySelector(".googlesitekit-header");if(t){if(e===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 i=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(i).reduce((e,t)=>e+t.offsetHeight,0),t}},65054(e,t,i){i.d(t,{M9:()=>S,sx:()=>A,BI:()=>x});var s=i(17243),o=i(84895);const n="_googlesitekitDataLayer",r="data-googlesitekit-gtag";function a(e){return function(){e[n]=e[n]||[],e[n].push(arguments)}}const l={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};const{activeModules:c=[],isSiteKitScreen:g,trackingEnabled:d,trackingID:u,referenceSiteURL:h,userIDHash:p,isAuthenticated:m,userRoles:f}=globalThis._googlesitekitTrackingData||{},_={activeModules:c,trackingEnabled:d,trackingID:u,referenceSiteURL:h,userIDHash:p,isSiteKitScreen:g,userRoles:f,isAuthenticated:m,pluginVersion:"1.181.0"},{enableTracking:b,disableTracking:k,isTrackingEnabled:y,initializeSnippet:v,trackEvent:A,trackEventOnce:x}=function(e,t=globalThis,i=globalThis){const c={...l,...e};c.referenceSiteURL&&(c.referenceSiteURL=c.referenceSiteURL.toString().replace(/\/+$/,""));const g=function(e,t){const i=a(t);let s;const{activeModules:l,referenceSiteURL:c,userIDHash:g,userRoles:d=[],isAuthenticated:u,pluginVersion:h}=e;return function(){const{document:t}=globalThis;if(void 0===s&&(s=!!t.querySelector(`script[${r}]`)),s)return!1;s=!0;const a=d?.length?d.join(","):"";i("js",new Date),i("config",e.trackingID,{groups:"site_kit",send_page_view:e.isSiteKitScreen,domain:c,plugin_version:h||"",enabled_features:Array.from(o.t).join(","),active_modules:l.join(","),authenticated:u?"1":"0",user_properties:{user_roles:a,user_identifier:g}});const p=t.createElement("script");return p.setAttribute(r,""),p.async=!0,p.src=`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${n}`,t.head.appendChild(p),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${n}`}}}(c,t),d=function(e,t,i,s){const o=a(t);return async function(t,n,r,a){const{trackingEnabled:l}=e;if(!l)return null;i();const c={send_to:"site_kit",event_category:t,event_label:r,value:a};return new Promise(e=>{const i=setTimeout(function(){s.console.warn(`Tracking event "${n}" (category "${t}") took too long to fire.`),e()},1e3);function r(){clearTimeout(i),e()}o("event",n,{...c,event_callback:r}),s._gaUserPrefs?.ioo?.()&&r()})}}(c,t,g,i),u={};return{enableTracking:function(){c.trackingEnabled=!0},disableTracking:function(){c.trackingEnabled=!1},initializeSnippet:g,isTrackingEnabled:function(){return!!c.trackingEnabled},trackEvent:d,trackEventOnce:function(...e){const t=JSON.stringify(e);u[t]||(u[t]=(0,s.once)(d)),u[t](...e)}}}(_);function S(e){e?b():k()}g&&d&&v()},48276(e,t,i){i.d(t,{VZ:()=>n,dc:()=>r,pH:()=>o,r0:()=>a});var s=i(84024);function o(e){try{return new URL(e).pathname}catch{}return null}function n(e,t){try{return new URL(t,e).href}catch{}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function r(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function a(e,t){if(!(0,s.m)(e))return e;if(e.length<=t)return e;const i=new URL(e),o=e.replace(i.origin,"");if(o.length<t)return o;const n=o.length-Math.floor(t)+1;return"âŚ"+o.substr(n)}},30289(e,t,i){i.d(t,{A:()=>l});var s=i(62688),o=i.n(s),n=i(63560),r=i(63696),a=i(62540);function l(e){function WithIntersectionObserverComponent({onInView:t,...i}){const s=(0,r.useRef)(),o=(0,n.A)(s,{root:null,threshold:.45}),[l,c]=(0,r.useState)(!1),g=!!o?.isIntersecting&&!!o?.intersectionRatio;return(0,r.useEffect)(()=>{o&&g&&!l&&(t(),c(!0))},[l,g,o,t]),(0,a.jsx)(e,{ref:s,...i})}return WithIntersectionObserverComponent.displayName="WithIntersectionObserverComponent",(e.displayName||e.name)&&(WithIntersectionObserverComponent.displayName+=`(${e.displayName||e.name})`),WithIntersectionObserverComponent.propTypes={onInView:o().func.isRequired,...e.propTypes},WithIntersectionObserverComponent}},54419(e){e.exports=googlesitekit.api},49383(e){e.exports=googlesitekit.components},50539(e){e.exports=googlesitekit.data},82871(e){e.exports=googlesitekit.i18n}},e=>{e.O(0,[660],()=>{return t=72056,e(e.s=t);var t});e.O()}]);
đž Save Changes
â Cancel