đ Sid Gifari File Manager Pro
v8.0.5 | 2026-06-19 07:07:16 | 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-main-dashboard-aaba8bfbb64fff8fffed.js
Writable
"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[290,978,998],{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"}))))},80452(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 12 9"},e),s||(s=o.createElement("path",{stroke:"currentColor",strokeLinecap:"square",strokeWidth:1.6,d:"m2 5.309 1.474 2.14c.69 1.001 1.946 1.001 2.636 0L10 1.8"})))},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"})))},15201(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",{stroke:"currentColor",strokeLinecap:"square",strokeWidth:2,d:"m15.835 8.333-5.834 5-5.833-5"})))},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"})))},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"})))},674(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",viewBox:"0 0 22 22"},e),s||(s=n.createElement("path",{fillRule:"evenodd",d:"m12.149 7.96-5.166 5.166a.34.34 0 0 0-.094.176l-.35 1.755a.344.344 0 0 0 .404.404l1.755-.35a.34.34 0 0 0 .175-.095l5.166-5.165zm2.301-1.814a1.03 1.03 0 0 0-1.458 0L6.497 12.64a1.03 1.03 0 0 0-.282.527l-.35 1.755a1.03 1.03 0 0 0 1.213 1.213l1.754-.35c.2-.04.383-.139.527-.283l6.495-6.494a1.03 1.03 0 0 0 0-1.459z",clipRule:"evenodd"})),o||(o=n.createElement("path",{d:"m12.149 7.96.117-.116a.165.165 0 0 0-.234 0zm-5.166 5.166-.116-.116zm-.094.176.162.033zm-.35 1.755.161.032zm.404.404.032.162zm1.755-.35.032.161zm.175-.095.117.117zm5.166-5.165.116.116a.165.165 0 0 0 0-.233zm-1.047-3.705.116.116zm1.458 0-.116.116zM6.497 12.64l.117.117zm-.282.527-.162-.032zm-.35 1.755.161.032zm1.213 1.213-.033-.162zm1.754-.35.033.161zm.527-.283.117.117zm6.495-6.494-.117-.117zm0-1.459.117-.116zm-3.822.295L6.867 13.01l.233.233 5.166-5.165zM6.867 13.01a.5.5 0 0 0-.14.26l.324.065a.2.2 0 0 1 .05-.092zm-.14.26-.35 1.754.323.065.351-1.755zm-.35 1.754a.51.51 0 0 0 .598.599l-.064-.324a.18.18 0 0 1-.21-.21zm.598.599 1.755-.35-.065-.325-1.754.351zm1.755-.35a.5.5 0 0 0 .26-.14l-.233-.233a.2.2 0 0 1-.092.048zm.26-.14 5.165-5.166-.233-.233L8.757 14.9zm3.042-7.055 1.89 1.89.233-.234-1.89-1.89zm1.076-1.816a.866.866 0 0 1 1.226 0l.233-.233a1.196 1.196 0 0 0-1.692 0zm-6.494 6.495 6.494-6.495-.233-.233-6.494 6.495zm-.237.443a.87.87 0 0 1 .237-.443l-.233-.233c-.167.167-.281.38-.328.61zm-.35 1.754.35-1.754-.324-.065-.35 1.755zm1.018 1.02a.866.866 0 0 1-1.019-1.02l-.323-.065a1.196 1.196 0 0 0 1.407 1.408zm1.755-.351-1.755.35.065.324 1.755-.35zm.443-.237a.87.87 0 0 1-.443.237l.065.323c.231-.046.444-.16.611-.327zm6.494-6.495-6.494 6.495.233.233 6.495-6.494zm0-1.225a.866.866 0 0 1 0 1.225l.234.234a1.196 1.196 0 0 0 0-1.692zm-1.403-1.404 1.403 1.404.234-.233-1.404-1.404z"})))},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:d,nonceEndpoint:g,preloadedData:u,rootURL:m}=globalThis._googlesitekitAPIFetchData||{};o().nonceEndpoint=g,o().nonceMiddleware=o().createNonceMiddleware(d),o().rootURLMiddleware=o().createRootURLMiddleware(m),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},14283(e,t,i){i.d(t,{A:()=>v});var s=i(4452),o=i.n(s),n=i(63696),r=i(82871),a=i(49383),l=i(60515),c=i(33052),d=i(83880),g=i(10740),u=i(72545),m=i(30289),p=i(97015);const h=(0,n.forwardRef)(({children:e,className:t},i)=>p.createElement("div",{ref:i,className:t},e)),f=(0,m.A)(h);var _=i(97015);const v=({className:e,Graphic:t,newBadge:i=!1,onView:s,onClose:m,title:p,description:h,ctaButton:v,dismissButton:y})=>_.createElement(g.lG,{className:o()("googlesitekit-dialog","googlesitekit-dialog--with-mobile-margins","googlesitekit-banner-modal",e),onClose:m,open:!0},_.createElement(g.Cf,{className:"googlesitekit-banner-modal__content"},_.createElement(f,{onInView:s,className:"googlesitekit-banner-modal__graphic"},_.createElement(t,null),_.createElement(a.Button,{className:"googlesitekit-banner-modal__close-button",icon:_.createElement(u.A,{width:10,height:10}),onClick:m,"aria-label":(0,r.__)("Close","google-site-kit"),hideTooltipTitle:!0})),_.createElement("div",{className:"googlesitekit-banner-modal__text"},i&&_.createElement(l.A,{hasNoSpacing:!0}),_.createElement(c.A,{as:"h1",className:"googlesitekit-banner-modal__title",size:"large",type:"headline"},p),_.createElement(d.A,{type:"body",size:"medium",className:"googlesitekit-banner-modal__description"},h))),_.createElement(g.Es,{className:"googlesitekit-banner-modal__footer"},_.createElement(n.Fragment,null,y&&_.createElement(a.Button,{onClick:y.onClick,tertiary:!0},y.label||(0,r.__)("Maybe later","google-site-kit")),v&&_.createElement(a.Button,{onClick:v.onClick},v.label))))},25804(e,t,i){i.d(t,{A:()=>g});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 d=i(97015);const g=({onOpen:e,title:t,tooltipClassName:i})=>t?d.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},d.createElement("span",{tabIndex:0,role:"tooltip"},d.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),d=i(83366),g=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,g.jsx)(d.A,{width:14,height:14})),(0,g.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),m=i(82871),p=i(97015);const Notice_DismissButton=({label:e=(0,m.__)("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 h,f=i(19793),_=i(42343);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 warning_notice=e=>n.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),h||(h=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"}))),y={[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=y[e]||warning_notice;return(0,g.jsx)(t,{width:24,height:24})}Icon.propTypes={type:l().oneOf(Object.values(r.L))};var k=i(97015);const Notice_Title=({className:e,children:t})=>k.createElement("p",{className:o()("googlesitekit-notice__title",e)},t);var E=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:d},g)=>{const m=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),h=!!e||m||p;return E.createElement("div",{className:"googlesitekit-notice-container",ref:g},E.createElement("div",{className:o()("googlesitekit-notice",`googlesitekit-notice--${l}`,t),role:"status"},!d&&E.createElement("div",{className:"googlesitekit-notice__icon"},E.createElement(Icon,{type:l})),E.createElement("div",{className:"googlesitekit-notice__content"},i&&E.createElement(Notice_Title,null,i),s&&E.createElement(u.A,null,s),c),h&&E.createElement("div",{className:"googlesitekit-notice__action"},e,m&&E.createElement(Notice_DismissButton,n||{}),p&&E.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),d=i(92449);var g=i(62659),u=i(4124),m=i(13047),p=i(38432),h=i(97015);function SourceLink({name:e="",href:t="",className:i="",external:s=!1}){const n=(0,g.A)(),r=(0,u.A)(),f=(0,a.useContext)(d.Ay),_=(0,a.useCallback)(()=>{f.slug&&n&&(0,m.sx)(`${n}_widget`,"click_source_link",f.slug)},[n,f]);return r?null:h.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:h.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},51169(e,t,i){function s(e){if("string"!=typeof e||0===e.length)return"";return e.replace(/^[a-z][a-z0-9+\-.]*:\/\//i,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function o(e,t,i=new Date){const o=s(e)||"report",n=s(t),r=function(e=new Date){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}(i),a=["site-kit",o];return n&&a.push(n),a.push(r),`${a.join("-")}.pdf`}function n(e,t){const i=globalThis.document.createElement("a");i.href=e,i.download=t,i.rel="noopener",i.style.display="none",globalThis.document.body.appendChild(i),i.click(),globalThis.document.body.removeChild(i)}i.d(t,{A:()=>o,z:()=>n})},40194(e,t,i){i.d(t,{G:()=>k});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 d({isViewOnly:e,canAuthenticate:t,isAnalyticsConnected:i,isActivateAnalyticsNotificationPresent:s,isKeyMetricsWidgetPresent:d,isAudienceSegmentationWidgetPresent:g}){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:[d&&{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},g&&{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},(!d||!g)&&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 g=i(29785),u=i(97345),m=i(88273),p=i(84730),h=i(8732),f=i(62659),_=i(4124),v=i(22942),y=i(99893);function k(){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(m.i).isModuleConnected(v.L1)&&e(u.oR).hasAccessToShareableModule(v.L1),[]),r=(0,s.useSelect)(e=>{if(t!==n.jU)return!1;const i=e(h.D).getQueuedNotifications(n.jU,p.He.DEFAULT);return"activate-analytics-notification"===i?.[0]?.id},[t]),a=(0,s.useSelect)(e=>o&&!!e(g.O4).isKeyMetricsSetupCompleted()&&!e(u.oR).isKeyMetricsWidgetHidden(),[o]),l=(0,s.useSelect)(e=>o&&!!e(y.K9).isAudienceSegmentationSetupCompleted()&&!e(u.oR).isAudienceSegmentationWidgetHidden(),[o]);return d({isViewOnly:e,canAuthenticate:i,isAnalyticsConnected:!!o,isActivateAnalyticsNotificationPresent:r,isKeyMetricsWidgetPresent:a,isAudienceSegmentationWidgetPresent:l})}},99772(e,t,i){i.d(t,{$n:()=>L});var s=i(12786),o=i.n(s),n=i(91310),r=i.n(n),a=i(26805),l=i.n(a),c=i(65165),d=i.n(c),g=i(85135),u=i(2800),m=i(39525),p=i(4452),h=i.n(p),f=i(62688),_=i.n(f),v=i(62540);function Chip({id:e,label:t,onClick:i,selected:s,className:o,CheckMark:n=m.ChipCheckmark,disabled:r,...a}){return(0,v.jsx)(m.Chip,{chipCheckmark:(0,v.jsx)(n,{}),"data-chip-id":e,id:e,label:t,onClick:e=>{r||i?.(e)},selected:s,className:h()("googlesitekit-chip",o,{"googlesitekit-chip--disabled":r}),...a})}Chip.propTypes={id:_().string.isRequired,label:_().string.isRequired,onClick:_().func,selected:_().bool,className:_().string,CheckMark:_().elementType};var y=i(99578),k=i(47485),E=i(63696),A=i(10740);const b=(0,E.forwardRef)(({children:e,className:t,menuOpen:i,menuItems:s,onSelected:o,nonInteractive:n,id:r},a)=>{const[l,c]=(0,E.useState)(null),d=(0,E.useRef)(null),g=(0,k.A)(a,d),u=(0,E.useCallback)(e=>{const{detail:{index:t}}=e;o(t,e)},[o]);return(0,E.useEffect)(()=>{if(!d?.current)return()=>{};const e=new A.CR(d.current);return e.listen("MDCMenu:selected",u),e.quickOpen=!0,c(e),()=>{e.unlisten("MDCMenu:selected",u),e.destroy()}},[d,u,n]),(0,E.useEffect)(()=>{l&&(l.open=i,l.setDefaultFocusState(1))},[l,i]),(0,v.jsx)("div",{className:h()("mdc-menu","mdc-menu-surface",t),ref:g,children:(0,v.jsxs)("ul",{"aria-hidden":!i,"aria-orientation":"vertical",className:h()("mdc-list",{"mdc-list--non-interactive":n}),id:r,role:"menu",tabIndex:"-1",children:[!e&&s.map((e,t)=>(0,v.jsx)("li",{className:"mdc-list-item",role:"menuitem",children:(0,v.jsx)("span",{className:"mdc-list-item__text",children:e})},t)),e]})})});b.displayName="Menu",b.propTypes={className:_().string,children:_().node,menuOpen:_().bool.isRequired,menuItems:_().array,id:_().string.isRequired,onSelected:_().func,nonInteractive:_().bool},b.defaultProps={onSelected:()=>{},nonInteractive:!1};const x=b;var S=i(97513);function ProgressBar({className:e,small:t,compress:i,indeterminate:s,height:o,verticalSpacing:n,mobileVerticalSpacing:r,tabletVerticalSpacing:a,desktopVerticalSpacing:l,progress:c}){const d=(0,S.dv)();let g,u,m=n;if(S.mp===d&&void 0!==r?m=r:S.Lg===d&&void 0!==a?m=a:S.Qb!==d&&S.Fo!==d||void 0===l||(m=l),void 0!==m&&(g=0===m?0:Math.round(m/2)),s)c&&(u={transform:`scaleX(${c})`});else{u={transform:"none",width:100*Math.max(0,Math.min(1,c||0))+"%"}}return(0,v.jsxs)("div",{role:"progressbar",style:{marginTop:g,marginBottom:g,...o&&{height:`${o}px`}},className:h()("mdc-linear-progress",e,{"mdc-linear-progress--indeterminate":s,"mdc-linear-progress--small":t,"mdc-linear-progress--compress":i}),children:[(0,v.jsx)("div",{className:"mdc-linear-progress__buffering-dots"}),(0,v.jsx)("div",{className:"mdc-linear-progress__buffer"}),(0,v.jsx)("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:u,children:(0,v.jsx)("span",{className:"mdc-linear-progress__bar-inner"})}),(0,v.jsx)("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar",children:(0,v.jsx)("span",{className:"mdc-linear-progress__bar-inner"})})]})}function Radio(e){const{id:t,name:i,value:s,checked:o=!1,disabled:n=!1,children:r,tabIndex:a,onKeyDown:l=null,onClick:c=null,onChange:d=null,alignLeft:g=!1,description:u}=e,m=(0,E.useCallback)(e=>{if(null!==e){const t=new A.$z(e),i=e.querySelector(".mdc-radio");i&&(t.input=new A.Si(i))}},[]);return(0,v.jsxs)("div",{className:"mdc-form-field",ref:m,children:[(0,v.jsxs)("div",{className:h()("mdc-radio",{"mdc-radio--disabled":n,"mdc-radio--align-left":g}),children:[(0,v.jsx)("input",{className:"mdc-radio__native-control",onClick:c,onKeyDown:l,type:"radio",id:t,name:i,value:s,checked:o,disabled:n,tabIndex:a,onChange:d,readOnly:!0}),(0,v.jsxs)("div",{className:"mdc-radio__background",children:[(0,v.jsx)("div",{className:"mdc-radio__outer-circle"}),(0,v.jsx)("div",{className:"mdc-radio__inner-circle"})]})]}),!u&&(0,v.jsx)("label",{htmlFor:t,children:r}),u&&(0,v.jsxs)("div",{className:"mdc-radio__content",children:[(0,v.jsx)("label",{htmlFor:t,children:r}),(0,v.jsx)("div",{className:"mdc-radio__description",children:u})]})]})}ProgressBar.propTypes={className:_().string,small:_().bool,compress:_().bool,indeterminate:_().bool,progress:_().number,height:_().number,verticalSpacing:_().number,mobileVerticalSpacing:_().number,tabletVerticalSpacing:_().number,desktopVerticalSpacing:_().number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0,height:4},Radio.propTypes={onClick:_().func,onKeyDown:_().func,onChange:_().func,id:_().string.isRequired,name:_().string.isRequired,value:_().string.isRequired,checked:_().bool,disabled:_().bool,children:_().string.isRequired,tabIndex:_().oneOfType([_().number,_().string]),description:_().node};var M=i(52684);var I=i(11763),w=i(53328);function Switch({onClick:e,label:t,checked:i,disabled:s,hideLabel:o}){const n=(0,M.A)(Switch),r=(0,E.useCallback)(e=>{null!==e&&A.P3.attachTo(e)},[]),a=(0,E.useCallback)(t=>{"function"==typeof e&&w.Fm===t.keyCode&&e(t)},[e]),l=`googlesitekit-switch-${n}`;return(0,v.jsxs)(E.Fragment,{children:[(0,v.jsxs)("div",{"aria-checked":i?"true":"false",className:h()("mdc-switch",{"mdc-switch--checked":i,"mdc-switch--disabled":s}),onClick:e,onKeyDown:a,role:"switch",ref:r,tabIndex:0,children:[(0,v.jsx)("div",{className:"mdc-switch__track",children:" "}),(0,v.jsx)("div",{className:"mdc-switch__thumb-underlay",children:(0,v.jsx)("div",{className:"mdc-switch__thumb",children:(0,v.jsx)("input",{type:"checkbox",id:l,className:"mdc-switch__native-control",role:"switch",checked:i,disabled:s,readOnly:!0})})})]}),(0,v.jsx)("label",{className:h()({"screen-reader-only":o}),htmlFor:l,children:t})]})}Switch.propTypes={id:_().string,onClick:_().func,label:_().node.isRequired,checked:_().bool,disabled:_().bool,hideLabel:_().bool},Switch.defaultProps={checked:!1,disabled:!1,hideLabel:!0};const j=Switch;var C=i(38748),N=i.n(C);function TextField({className:e,name:t,label:i,noLabel:s,outlined:o,textarea:n,leadingIcon:r,trailingIcon:a,helperText:l,id:c,inputType:d,value:g,size:u,maxLength:m,tabIndex:p,disabled:h,onChange:f,onKeyDown:_}){const y=(0,M.A)(TextField,"googlesitekit-textfield");return(0,v.jsx)(N(),{className:e,name:t,label:i,noLabel:s,outlined:o,textarea:n,leadingIcon:r,trailingIcon:a,helperText:l&&(0,v.jsx)(C.HelperText,{persistent:!0,children:l}),children:(0,v.jsx)(C.Input,{id:c||y,inputType:d,value:g,size:u,maxLength:m,tabIndex:p,disabled:h,onChange:f,onKeyDown:_})})}TextField.propTypes={className:_().string,name:_().string,label:_().string,noLabel:_().bool,outlined:_().bool,textarea:_().bool,leadingIcon:_().element,trailingIcon:_().oneOfType([_().bool,_().element]),helperText:_().oneOfType([_().bool,_().string]),id:_().string,inputType:_().string,value:_().oneOfType([_().string,_().number]),size:_().number,maxLength:_().number,tabIndex:_().oneOfType([_().number,_().string]),disabled:_().bool,onChange:_().func,onKeyDown:_().func};const T=TextField;var D=i(99573);const R={Button:g.A,Checkbox:u.A,Chip,CircularProgress:y.A,Dialog:o(),DialogTitle:s.DialogTitle,DialogContent:s.DialogContent,DialogFooter:s.DialogFooter,HelperText:C.HelperText,Menu:x,Option:n.Option,ProgressBar,Radio,Select:function Select({id:e,helperText:t,...i}){const s=(0,M.A)(Select,"googlesitekit-select");return(0,v.jsx)(r(),{id:e||s,helperText:t?(0,v.jsx)(n.SelectHelperText,{children:t}):void 0,...i})},SpinnerButton:I.A,SPINNER_POSITION:I.k,Switch:j,Tab:l(),TabBar:d(),TextField:T,Tooltip:D.A},O=R;void 0===globalThis.googlesitekit&&(globalThis.googlesitekit={}),globalThis.googlesitekit.components=O;const{Button:L,Checkbox:B,Chip:z,CircularProgress:P,Dialog:F,DialogTitle:G,DialogContent:U,DialogFooter:V,Menu:W,Option:H,ProgressBar:q,Radio:Y,Select:Z,SpinnerButton:Q,Switch:K,Tab:X,TabBar:$,TextField:J,HelperText:ee,Tooltip:te}=O},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},95897(e,t,i){var s=i(50037),o=i(78325),n=i(62688),r=i.n(n),a=i(63696),l=i(30805),c=i(4452),d=i.n(c),g=i(15844),u=i(50539),m=i(33213),p=i(20697),h=i(29785),f=i(97345),_=i(84730),v=i(8732),y=i(17884),k=i(4169),E=i(59352),A=i(97513),b=i(68832),x=i(4008),S=i(37467),M=i(4124),I=i(52053),w=i(28332),j=i(15650),C=i(11999),N=i(7972),T=i(59711),D=i(99840),R=i(33552),O=i(82871),L=i(3749),B=i(68329),z=i(78990),P=i(70301),F=i(99893),G=i(13137),U=i(97015);const V=()=>{const e=(0,u.useRegistry)(),t=(0,a.useRef)(null),[i]=(0,b.A)(T.vC,T.h1),s=(0,D.D1)(i),o=(0,a.useMemo)(()=>function(e){return[D.mM.ECOMMERCE,D.mM.LEAD].flatMap(t=>{const i=new Set(e?.[t]||[]);return(0,D.O)(t).filter(e=>i.has(e.id)&&!!e.requiredCustomDimensions?.length)})}(s),[s]),n=(0,a.useMemo)(()=>Array.from(new Set(o.flatMap(e=>e.requiredCustomDimensions||[]))),[o]);(0,u.useSelect)(e=>n.length?e(F.K9).getAvailableCustomDimensions():void 0,[n]);const r=(0,u.useSelect)(e=>!n.length||e(F.K9).hasCustomDimensions(n),[n]),l=!1===r,c=(0,u.useSelect)(e=>e(f.oR).hasScope(F.S9),[]),d=(0,u.useSelect)(e=>e(h.O4).getAdminURL("googlesitekit-dashboard",{notification:"custom_dimensions"}),[]),g=(0,u.useSelect)(e=>{const t=e(f.oR).getConnectURL({additionalScopes:[F.S9],redirectURL:d});return!!t&&e(P.M).isNavigatingTo(t)},[d]),m=(0,u.useSelect)(e=>!!n.length&&(e(F.K9).isSyncingAvailableCustomDimensions()||n.some(t=>e(F.K9).isCreatingCustomDimension(t))),[n]),{setValues:p}=(0,u.useDispatch)(C.s),{setPermissionScopeError:_}=(0,u.useDispatch)(f.oR),{createCustomDimensions:v,fetchSyncAvailableCustomDimensions:y}=(0,u.useDispatch)(F.K9),k=n.length>0,E=n.join(",");(0,a.useEffect)(()=>{k?c&&!0===r&&t.current!==E&&(t.current=E,y()):t.current=null},[y,c,r,k,E]);const A=(0,a.useCallback)(async()=>{if(!c)return p(F.Kr,{autoSubmit:!0,customDimensions:n}),await(0,z.mR)(e),void _({code:G.db,message:(0,O.__)("Additional permissions are required to create new Analytics custom dimensions","google-site-kit"),data:{status:403,scopes:[F.S9],skipModal:!0,redirectURL:d}});p(F.Kr,{customDimensions:n}),t.current=E,v(n)},[v,c,d,e,n,E,_,p]);if(!l)return null;const x=o[0]?.title||(0,O.__)("selected","google-site-kit"),S=(0,O.sprintf)(/* translators: %s: Metric title. */ /* translators: %s: Metric title. */ (0,O.__)('The "%s" metric you\'ve selected requires more data tracking. To enable it, you will be directed to update your Analytics property. Complete the setup and save your selection.',"google-site-kit"),x);return U.createElement(B.A,{className:"googlesitekit-notice--square googlesitekit-notice--side-panel googlesitekit-site-goals-selection-panel__custom-dimensions-notice",type:L.L.WARNING,description:S,ctaButton:{label:(0,O.__)("Set up","google-site-kit"),onClick:A,inProgress:m,disabled:g},hideIcon:!0})};var W=i(63810),H=i(97015);function q(e,t){const i=e?.[t];return Array.isArray(i)?i.filter(e=>"string"==typeof e):[]}function Y(e){return[D.mM.ECOMMERCE,D.mM.LEAD].flatMap(t=>q(e,t).map(e=>`${t}:${e}`))}const Z=({isOpen:e,closePanel:t,hasEcommerceGoalDrivers:i,hasLeadGoalDrivers:s})=>{const{setValues:o}=(0,u.useDispatch)(C.s),{saveSiteGoalsSettings:n}=(0,u.useDispatch)(F.K9),r=(0,u.useSelect)(e=>e(F.K9).isSavingSiteGoalsSettings(),[]),a=(0,u.useSelect)(e=>e(F.K9).getSiteGoalsGoalDrivers(),[]),[l]=(0,b.A)(T.vC,T.h1),c=l,[d]=(0,b.A)(T.vC,T.A5),g=Y(c||{[D.mM.ECOMMERCE]:[],[D.mM.LEAD]:[]}),m=function(e,t,i){const s=[];return t&&s.push(D.mM.ECOMMERCE),i&&s.push(D.mM.LEAD),s.some(t=>{const i=q(e,t).length;return i<T.su||i>T.oJ})}(c||{[D.mM.ECOMMERCE]:[],[D.mM.LEAD]:[]},i,s);return H.createElement(j.gy,{isOpen:e,closePanel:t,saveSettings:async function(){const e=(0,D.D1)(c),t=(0,W.Fj)(d),{error:i}=await n({goalDrivers:e,visitorEngagement:t});return i||o(T.vC,{[T.h1]:e,[T.A5]:t}),{error:i}},isBusy:r,savedItemSlugs:a?Y((0,D.D1)(a)):[],selectedItemSlugs:g,minSelectedItemCount:m?T.su:0,maxSelectedItemCount:m?0:2*T.oJ})};var Q=i(97015);const K=({closePanel:e})=>Q.createElement(j.W4,{title:(0,O.__)("Select metrics","google-site-kit"),onCloseClick:e});var X=i(68102),$=i(30738),J=i(95605),ee=i(33052),te=i(97015);const ie=({listID:e,options:t,selectedIDs:i,onToggleDriver:s})=>{const o=new Set(i);return te.createElement("div",{className:"googlesitekit-site-goals-selection-panel__subsection"},te.createElement(ee.A,{as:"p",type:"body",size:"small",className:"googlesitekit-site-goals-selection-panel__items-title"},(0,O.__)("Goal drivers","google-site-kit")),t.map(t=>te.createElement(j.y3,{key:t.id,id:`site-goals-selection-${t.id}-${e}`,slug:t.id,title:t.title,description:t.description,isItemSelected:o.has(t.id),onCheckboxChange:e=>s(t.id,e.target.checked)})))};var se=i(15201),oe=i(97015);const ne=({listID:e,title:t,isExpanded:i,onToggleExpand:s,children:o})=>oe.createElement("section",{className:"googlesitekit-site-goals-selection-panel__section"},oe.createElement("button",{type:"button",className:"googlesitekit-site-goals-selection-panel__section-toggle",onClick:s,"aria-expanded":i,"aria-controls":`site-goals-selection-section-${e}`},oe.createElement("span",{className:"googlesitekit-site-goals-selection-panel__section-toggle-content"},oe.createElement(se.A,{width:20,height:20,className:d()("googlesitekit-site-goals-selection-panel__section-toggle-icon",{"googlesitekit-site-goals-selection-panel__section-toggle-icon--expanded":i})}),oe.createElement(ee.A,{as:"span",type:"title",size:"large",className:"googlesitekit-site-goals-selection-panel__section-title"},t))),i&&oe.createElement("div",{id:`site-goals-selection-section-${e}`,className:"googlesitekit-site-goals-selection-panel__items"},o));var re=i(97015);const ae=({eventIDs:e=[],goalType:t,listID:i})=>{const[s,o]=(0,b.A)(T.vC,T.A5),n=new Set(e),r=(0,W.M2)(t).filter(e=>n.has(e.id));if(!r.length)return null;const a=(0,W.Fj)(s),l=a[t],c=new Set(l);return re.createElement("div",{className:"googlesitekit-site-goals-selection-panel__subsection"},re.createElement(ee.A,{as:"p",type:"body",size:"small",className:"googlesitekit-site-goals-selection-panel__items-title"},(0,O.__)("Visitor engagement","google-site-kit")),r.map(e=>re.createElement(j.y3,{key:e.id,id:`site-goals-selection-visitor-engagement-${e.id}-${i}`,slug:e.id,title:e.title,isItemSelected:c.has(e.id),onCheckboxChange:i=>function(e,i){let s=l;i?l.includes(e)||(s=l.concat(e)):s=l.filter(t=>t!==e),o({[D.mM.ECOMMERCE]:a[D.mM.ECOMMERCE],[D.mM.LEAD]:a[D.mM.LEAD],[t]:s})}(e.id,i.target.checked)})))};var le=i(97015);function ce(e,t){const i=e?.[t];return Array.isArray(i)?i.filter(e=>"string"==typeof e):[]}const de=({hasEcommerceGoalDrivers:e,hasLeadGoalDrivers:t})=>{const[i]=(0,b.A)(T.vC,T.h1),s=i,o=(0,J.H)(D.mM.ECOMMERCE),n=(0,J.H)(D.mM.LEAD),{setValues:r}=(0,u.useDispatch)(C.s),{setSiteGoalsBreakdownTooltipPending:l}=(0,u.useDispatch)(F.K9);function c(){l(!0)}const d=(0,D.O)(D.mM.ECOMMERCE),g=(0,D.O)(D.mM.LEAD),[m,p]=(0,a.useState)(!0),[h,f]=(0,a.useState)(!0),_=(0,u.useSelect)(e=>e(F.K9).getPrimaryEcommerceEvent(),[]),v=(0,u.useSelect)(e=>{if(!_)return[];const t=e(F.K9).getSecondaryEcommerceEvents(_);return Array.isArray(t)?t:[]},[_]);function y(e,t,i){const o=ce(s,e);let n=o;i?o.includes(t)||(n=o.concat(t)):n=o.filter(e=>e!==t),r(T.vC,{[T.h1]:{[D.mM.ECOMMERCE]:ce(s,D.mM.ECOMMERCE),[D.mM.LEAD]:ce(s,D.mM.LEAD),[e]:n}})}return le.createElement(j.kA,{className:"googlesitekit-site-goals-selection-panel__content"},e&&le.createElement(a.Fragment,null,le.createElement($.A,(0,X.A)({className:"googlesitekit-site-goals-selection-panel__breakdown-notice",onDismissComplete:c},o)),le.createElement(ne,{listID:D.mM.ECOMMERCE,title:(0,O.__)("Online store performance","google-site-kit"),isExpanded:m,onToggleExpand:()=>p(e=>!e)},le.createElement(ae,{eventIDs:v,goalType:D.mM.ECOMMERCE,listID:D.mM.ECOMMERCE}),le.createElement(ie,{listID:D.mM.ECOMMERCE,options:d,selectedIDs:ce(s,D.mM.ECOMMERCE),onToggleDriver:(e,t)=>y(D.mM.ECOMMERCE,e,t)}))),t&&le.createElement(a.Fragment,null,le.createElement($.A,(0,X.A)({className:"googlesitekit-site-goals-selection-panel__breakdown-notice",onDismissComplete:c},n)),le.createElement(ne,{listID:D.mM.LEAD,title:(0,O.__)("Lead generation performance","google-site-kit"),isExpanded:h,onToggleExpand:()=>f(e=>!e)},le.createElement(ie,{listID:D.mM.LEAD,options:g,selectedIDs:ce(s,D.mM.LEAD),onToggleDriver:(e,t)=>y(D.mM.LEAD,e,t)}))))};var ge=i(65695),ue=i(97015);function me(e,t){const i=e?.[t];return Array.isArray(i)?i.filter(e=>"string"==typeof e).length:0}function SaveErrorNotice({hasEcommerceGoalDrivers:e,hasLeadGoalDrivers:t}){const[i]=(0,b.A)(T.vC,T.h1),s=i,o=(0,u.useSelect)(e=>e(F.K9).getErrorForAction("saveSiteGoalsSettings",[]),[]),n=[];let r;e&&n.push(D.mM.ECOMMERCE),t&&n.push(D.mM.LEAD);for(const e of n){const t=me(s,e);if(t<T.su){r=(0,O.sprintf)(/* translators: %d: minimum number of selected metrics. */ /* translators: %d: minimum number of selected metrics. */ (0,O.__)("Select at least %d metric","google-site-kit"),T.su);break}if(t>T.oJ){r=(0,O.sprintf)(/* translators: %d: maximum number of selected metrics. */ /* translators: %d: maximum number of selected metrics. */ (0,O.__)("Select up to %d metrics","google-site-kit"),T.oJ);break}}return r?ue.createElement(ge.A,{error:{message:r},skipRetryMessage:!0}):o?ue.createElement(ge.A,{error:o}):null}var pe=i(97015);const he=()=>{const e=(0,u.useSelect)(e=>e(N.nX).getValue(T.ZZ),[]),t=(0,u.useSelect)(e=>e(F.K9).hasEcommerceConversionReportingEvents(),[]),i=(0,u.useSelect)(e=>e(F.K9).hasLeadConversionReportingEvents(),[]),s=(0,u.useSelect)(e=>e(F.K9).getSiteGoalsGoalDrivers(),[]),o=(0,u.useSelect)(e=>e(F.K9).getSiteGoalsVisitorEngagement(),[]),[n]=(0,b.A)(F.Kr,"autoSubmit"),[r]=(0,b.A)(F.Kr,"customDimensions"),l=(0,u.useSelect)(e=>e(F.K9).isSiteGoalsBreakdownTooltipPending(),[]),{setValues:c}=(0,u.useDispatch)(C.s),{setValue:d}=(0,u.useDispatch)(N.nX),{clearSiteGoalsBreakdownTooltipPending:g}=(0,u.useDispatch)(F.K9),m=(0,R.s)(),p=(0,a.useRef)(s),h=(0,a.useRef)(l),f=(0,a.useRef)(o),_=(0,a.useRef)(n),v=(0,a.useRef)(r);p.current=s,f.current=o,_.current=n,v.current=r,h.current=l;const y=(0,a.useCallback)(()=>{if(_.current&&Array.isArray(v.current)&&v.current.length>0)return;const e=(0,D.D1)(p.current||T.jZ),t=(0,W.Fj)(f.current||T.md);c(T.vC,{[T.h1]:e,[T.A5]:t})},[c]),k=(0,a.useCallback)(()=>{e&&d(T.ZZ,!1),h.current&&(g(),m())},[e,d,g,m]);return pe.createElement(j.Ay,{className:"googlesitekit-site-goals-selection-panel",isOpen:e,closePanel:k,onOpen:y},pe.createElement(K,{closePanel:k}),pe.createElement(de,{hasEcommerceGoalDrivers:!!t,hasLeadGoalDrivers:!!i}),pe.createElement("div",{className:"googlesitekit-site-goals-selection-panel__footer-container"},pe.createElement(SaveErrorNotice,{hasEcommerceGoalDrivers:!!t,hasLeadGoalDrivers:!!i}),pe.createElement(V,null),pe.createElement(Z,{isOpen:!!e,closePanel:k,hasEcommerceGoalDrivers:!!t,hasLeadGoalDrivers:!!i})))};var fe=i(22942),_e=i(13047),ve=i(11883),ye=i(73135),ke=i(17443),Ee=i(56084),Ae=i(85662),be=i(22764),xe=i(89065),Se=i(46369),Me=i(62540);function PUESurveyTriggers(){const e=(0,u.useSelect)(e=>e(f.oR).getEmailReportingSettings()),t=(0,u.useSelect)(e=>e(f.oR).isEmailReportingSubscribed()),i=(0,u.useSelect)(e=>e(f.oR).isItemDismissed(Se.rF)),s=(0,u.useSelect)(e=>e(v.D).getNotificationSeenDates(Se.sw));return void 0===e||void 0===i?null:t?(0,Me.jsx)(xe.A,{triggerID:"view_pue",ttl:_e.tt}):i?(0,Me.jsx)(xe.A,{triggerID:"view_pue_not_subscribed",ttl:_e.tt}):s.length>0?(0,Me.jsx)(xe.A,{triggerID:"view_pue_setup_cta",ttl:_e.tt}):null}var Ie=i(338),we=i(28534),je=i(72904),Ce=i(78307),Ne=i(12813),Te=i(20762),De=i(7144),Re=i(62659),Oe=i(26464);function Panel(){const e=(0,Re.A)(),t=(0,u.useSelect)(e=>e(N.nX).getValue(De.EA)),i=(0,u.useInViewSelect)(e=>{const t=e(f.oR).getKeyMetrics();if(!Array.isArray(t))return[];const{isKeyMetricAvailable:i}=e(f.oR);return t.filter(i)}),{setValues:s}=(0,u.useDispatch)(C.s),{setValue:o}=(0,u.useDispatch)(N.nX),n=(0,a.useCallback)(()=>{s(De.Is,{[De.Y0]:i,[De.Nl]:i}),(0,_e.sx)(`${e}_kmw-sidebar`,"metrics_sidebar_view")},[i,s,e]),r=(0,a.useCallback)(()=>{t&&o(De.EA,!1)},[o,t]),[l,c]=(0,a.useState)(!1);return(0,Me.jsx)(j.Ay,{isOpen:t||l,onOpen:n,closePanel:r,className:"googlesitekit-km-selection-panel googlesitekit-acr-km-selection-panel",children:(0,Me.jsx)(Oe.A,{isOpen:t,closePanel:r,savedViewableMetrics:i,setIsNavigatingToOAuthURL:c})})}function MetricsSelectionPanel(){const e=(0,u.useSelect)(e=>e(N.nX).getValue(De.EA));return(0,Me.jsx)(Te.Ay,{value:{key:"MetricsSelectionPanel",value:!!e},children:(0,Me.jsx)(Panel,{})})}var Le=i(56628),Be=i(37834),ze=i(97343),Pe=i(49383);const Fe="pdfDownloadPanelOpened";var Ge,Ue;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 We=e=>a.createElement("svg",Ve({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 21"},e),Ge||(Ge=a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m6 10 4 4 4-4"})),Ue||(Ue=a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M10 4.5V13M17 13.5v3a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-3"})));var He=i(97015);const qe=()=>{const e=(0,u.useSelect)(e=>e(N.nX).getValue(Fe),[]),{setValue:t}=(0,u.useDispatch)(N.nX),i=(0,a.useCallback)(()=>{t(Fe,!e)},[e,t]);return He.createElement(Pe.Button,{"aria-label":(0,O.__)("Download PDF report","google-site-kit"),className:"googlesitekit-pdf-download__button googlesitekit-header__dropdown googlesitekit-border-radius-round googlesitekit-button-icon",onClick:i,icon:He.createElement(We,{width:20,height:20}),tooltipEnterDelayInMS:500,tertiary:!0})};var Ye=i(33855),Ze=i(13606),Qe=i(38432),Ke=i(51169),Xe=i(37325),$e=i(72545),Je=i(97015);const et=({onRetry:e=()=>{},onDismiss:t=()=>{},title:i=(0,O.__)("There was a problem generating your report","google-site-kit"),description:s,retryLabel:o=(0,O.__)("Retry","google-site-kit"),dismissAriaLabel:n=(0,O.__)("Dismiss PDF report error","google-site-kit")})=>{const r=(0,u.useSelect)(e=>e(h.O4).getDocumentationLinkURL("pdf-reporting"),[]),a=(0,Ze.A)((0,O.__)("Please try again or <a>get help</a>","google-site-kit"),{a:Je.createElement(Qe.A,{href:r},(0,O.__)("Get help","google-site-kit"))});return Je.createElement(Xe.A,{type:L.L.ERROR,className:"googlesitekit-notice-snackbar googlesitekit-notice-snackbar--bottom-right googlesitekit-pdf-report-error-snackbar googlesitekit-notice-snackbar--content--small",title:i,description:s||a,ctaButton:{label:o,onClick:e,tertiary:!0},dismissButton:{variant:"icon",icon:Je.createElement($e.A,{width:10,height:10}),ariaLabel:n,onClick:t}})};var tt=i(97015);const it=({progress:e=0,onCancel:t,title:i=(0,O.__)("Generating your PDF report","google-site-kit"),description:s=(0,O.__)("Please keep this tab open until the download starts automatically","google-site-kit"),cancelLabel:o=(0,O.__)("Cancel","google-site-kit"),className:n})=>tt.createElement(Xe.A,{className:d()("googlesitekit-pdf-report-progress-snackbar","googlesitekit-notice-snackbar","googlesitekit-notice-snackbar--bottom-right","googlesitekit-notice-snackbar--content--small",n),type:L.L.INFO_ALT_2,title:i,description:s,dismissButton:{label:o,onClick:t},hideIcon:!0},tt.createElement(Pe.ProgressBar,{className:"googlesitekit-pdf-report-progress-snackbar__progress",indeterminate:!1,progress:e,height:8,compress:!0}));var st=i(97015);const ot=({onDismiss:e=()=>{},onAutoDismiss:t=()=>{},autoDismissMS:i=1e4,disableAutoDismiss:s=!1,title:o=(0,O.__)("Your report was generated successfully!","google-site-kit"),description:n,dismissAriaLabel:r=(0,O.__)("Dismiss PDF report success","google-site-kit")})=>{(0,a.useEffect)(()=>{if(s)return()=>{};const e=setTimeout(()=>{t()},i);return()=>{clearTimeout(e)}},[i,s,t]);const l=(0,Ze.A)((0,O.__)("The PDF report has been automatically downloaded to your downloads folder. If the download doesnât start automatically, you can manually <a>download your report</a>.","google-site-kit"),{a:st.createElement(Qe.A,{href:"#"})});return st.createElement(Xe.A,{type:L.L.SUCCESS,className:"googlesitekit-notice-snackbar googlesitekit-notice-snackbar--bottom-right googlesitekit-pdf-report-success-snackbar googlesitekit-notice-snackbar--content--small",title:o,description:n||l,dismissButton:{variant:"icon",icon:st.createElement($e.A,{width:10,height:10}),ariaLabel:r,onClick:e}})};var nt=i(97015);const rt=({onRetry:e=()=>{}})=>{const t=(0,u.useSelect)(e=>e(Ye.v).getStatus(),[]),i=(0,u.useSelect)(e=>e(Ye.v).getProgress(),[]),{url:s,filename:o}=(0,u.useSelect)(e=>e(Ye.v).getBlob(),[]),{requestCancel:n,clearExport:r}=(0,u.useDispatch)(Ye.v),l=(0,a.useCallback)(e=>{e.preventDefault(),s&&o&&(0,Ke.z)(s,o)},[s,o]),c=(0,a.useCallback)(()=>{r(),e()},[r,e]);if("progress"===t)return nt.createElement(it,{progress:(i??0)/100,onCancel:n});if("success"===t){const e=(0,Ze.A)((0,O.__)("The PDF report has been automatically downloaded to your downloads folder. If the download doesnât start automatically, you can manually <a>download your report</a>.","google-site-kit"),{a:nt.createElement(Qe.A,{href:s||"#",onClick:l})});return nt.createElement(ot,{description:e,onDismiss:r,onAutoDismiss:r})}return"error"===t?nt.createElement(et,{onRetry:c,onDismiss:r}):null};var at=i(97015);const lt=(0,a.lazy)(()=>Promise.all([i.e(397),i.e(102)]).then(i.bind(i,17040))),ct=()=>{const e=(0,u.useSelect)(e=>e(Ye.v).isExporting(),[]),{finishExporting:t}=(0,u.useDispatch)(Ye.v),{setValue:i}=(0,u.useDispatch)(N.nX),s=(0,a.useCallback)(()=>{i(Fe,!0)},[i]);return at.createElement(a.Fragment,null,at.createElement(rt,{onRetry:s}),e&&at.createElement(a.Suspense,{fallback:null},at.createElement(lt,{onComplete:t})))};var dt=i(97015);const PDFSectionsSelectionPanel_Footer=({closePanel:e,hasSelection:t})=>{const i=(0,u.useSelect)(e=>e(Ye.v).isExporting(),[]),s=(0,u.useSelect)(e=>e(Ye.v).getStatus(),[]),{setValue:o}=(0,u.useDispatch)(N.nX),{startExporting:n}=(0,u.useDispatch)(Ye.v);const r=!!i||"progress"===s;return dt.createElement("footer",{className:"googlesitekit-selection-panel-footer googlesitekit-pdf-download-panel__footer"},dt.createElement("div",{className:"googlesitekit-selection-panel-footer__content"},dt.createElement("div",{className:"googlesitekit-selection-panel-footer__actions"},dt.createElement(Pe.Button,{onClick:e,tertiary:!0},(0,O.__)("Cancel","google-site-kit")),dt.createElement(Pe.Button,{onClick:function(){o(Fe,!1),n()},disabled:!t||r},(0,O.__)("Download report","google-site-kit")))))};var gt=i(83880),ut=i(97015);const PDFSectionsSelectionPanel_Header=({closePanel:e})=>ut.createElement(j.W4,{title:(0,O.__)("Download your Site Kit report","google-site-kit"),onCloseClick:e},ut.createElement(gt.A,null,(0,O.__)("Generate a PDF featuring the current metrics from your dashboard. The report reflects the same date range selected in your dashboard, excluding data from the current day to ensure accuracy.","google-site-kit")),ut.createElement(gt.A,null,(0,O.__)("Select the topics you would like to include in your report:","google-site-kit")));var mt=i(97015);const PDFSectionsSelectionPanel_PDFSectionCheckboxes=({sections:e,selectedWidgetSlugs:t,toggleSection:i,toggleWidget:s})=>mt.createElement("div",{className:"googlesitekit-pdf-download-panel__sections",role:"group","aria-label":(0,O.__)("PDF report sections","google-site-kit")},e.map(e=>{const o=e.widgetSlugs.filter(e=>t.includes(e)).length,n=e.widgetSlugs.length>0&&o===e.widgetSlugs.length,r=o>0&&o<e.widgetSlugs.length;return mt.createElement("div",{key:e.slug,className:"googlesitekit-pdf-download-panel__section-group"},mt.createElement("div",{className:"googlesitekit-pdf-download-panel__section"},mt.createElement(Pe.Checkbox,{id:`pdf-download-section-${e.slug}`,name:`pdf-download-section-${e.slug}`,value:e.slug,checked:n,indeterminate:r,onChange:()=>i(e)},mt.createElement(ee.A,{type:"title",size:"medium",as:"span"},e.label))),e.widgets.map(e=>mt.createElement("div",{key:e.slug,className:"googlesitekit-pdf-download-panel__sub-section"},mt.createElement(Pe.Checkbox,{id:`pdf-download-widget-${e.slug}`,name:`pdf-download-widget-${e.slug}`,value:e.slug,checked:t.includes(e.slug),onChange:()=>s(e.slug)},mt.createElement(ee.A,{type:"body",size:"medium",as:"span"},e.label)))))}));var pt=i(97015);const ht=[E.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,E.CONTEXT_MAIN_DASHBOARD_SITE_GOALS,E.CONTEXT_MAIN_DASHBOARD_TRAFFIC,E.CONTEXT_MAIN_DASHBOARD_CONTENT,E.CONTEXT_MAIN_DASHBOARD_SPEED,E.CONTEXT_MAIN_DASHBOARD_MONETIZATION],PDFSectionsSelectionPanel_PanelContent=({closePanel:e})=>{const t=(0,M.A)(),i=(0,u.useSelect)(e=>{const i=t?e(f.oR).getViewableModules():void 0;if(t&&void 0===i)return[];const s=[];return ht.forEach(t=>{e(k.aO).getWidgetAreas(t).forEach(o=>{const n=e(k.aO).getWidgets(o.slug,{modules:i}).filter(e=>!!e.pdf);0!==n.length&&s.push({slug:o.slug,label:o.pdfTitle||o.title||o.slug,contextSlug:t,widgets:n.filter(e=>!!e.pdf?.label).map(e=>({slug:e.slug,label:e.pdf?.label})),widgetSlugs:n.map(e=>e.slug)})})}),s},[t]),s=(0,u.useSelect)(e=>e(Ye.v).getSelectedWidgetSlugs(),[]),{setSelection:o}=(0,u.useDispatch)(Ye.v),n=(0,a.useMemo)(()=>{const e={};return i.forEach(t=>{t.widgetSlugs.forEach(i=>{e[i]=t.contextSlug})}),e},[i]),r=(0,a.useCallback)((e,t)=>{const i=Array.from(new Set(e.map(e=>t[e]).filter(Boolean)));o({contextSlugs:i,widgetSlugs:e})},[o]),l=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(l.current||0===i.length)return;l.current=!0;const e=i.flatMap(e=>e.widgetSlugs);r(e,n)},[i,r,n]);const c=(0,a.useCallback)(e=>{const t=s.includes(e)?s.filter(t=>t!==e):[...s,e];r(t,n)},[s,r,n]),d=(0,a.useCallback)(e=>{const t=e.widgetSlugs.every(e=>s.includes(e))?s.filter(t=>!e.widgetSlugs.includes(t)):Array.from(new Set([...s,...e.widgetSlugs]));r(t,n)},[s,r,n]),g=s.length>0;return pt.createElement(a.Fragment,null,pt.createElement(PDFSectionsSelectionPanel_Header,{closePanel:e}),pt.createElement(j.kA,{className:"googlesitekit-pdf-download-panel__content"},pt.createElement(PDFSectionsSelectionPanel_PDFSectionCheckboxes,{sections:i,selectedWidgetSlugs:s,toggleSection:d,toggleWidget:c})),!g&&pt.createElement(B.A,{className:"googlesitekit-notice--side-panel googlesitekit-pdf-download-panel__notice",type:L.L.ERROR,description:pt.createElement(ee.A,{type:"label",size:"small",as:"span"},(0,O.__)("Select at least 1 topic","google-site-kit"))}),pt.createElement(PDFSectionsSelectionPanel_Footer,{closePanel:e,hasSelection:g}))};var ft=i(97015);const _t=()=>{const e=(0,u.useSelect)(e=>e(N.nX).getValue(Fe),[]),{setValue:t}=(0,u.useDispatch)(N.nX),i=(0,a.useCallback)(()=>{e&&t(Fe,!1)},[e,t]);return ft.createElement(Te.Ay,{value:{key:"PDFSectionsSelectionPanel",value:!!e}},ft.createElement(j.Ay,{className:"googlesitekit-pdf-download-panel",isOpen:!!e,closePanel:i},ft.createElement(PDFSectionsSelectionPanel_PanelContent,{closePanel:i})))};var vt=i(94656),yt=i(5230),kt=i(12417),Et=i(56009),At=i(88933);function SurveyHeader({title:e,dismissSurvey:t}){return(0,Me.jsxs)("div",{className:"googlesitekit-survey__header",children:[(0,Me.jsx)("div",{className:"googlesitekit-survey__header-logo",children:(0,Me.jsx)(At.A,{width:24,height:24})}),(0,Me.jsxs)("div",{className:"googlesitekit-survey__header-details",children:[(0,Me.jsx)(ee.A,{as:"h3",type:"headline",size:"small",children:e}),(0,Me.jsx)(Pe.Button,{"aria-label":(0,O.__)("Dismiss","google-site-kit"),icon:(0,Me.jsx)(kt.A,{icon:Et.A,size:40}),onClick:t,className:"googlesitekit-survey__header-close"})]})]})}SurveyHeader.propTypes={title:r().string.isRequired,dismissSurvey:r().func.isRequired};const bt=SurveyHeader;function SurveyCompletion({title:e,children:t,ctaText:i,ctaURL:s,ctaOnClick:o,dismissSurvey:n}){return(0,Me.jsxs)("div",{className:"googlesitekit-survey__completion",children:[(0,Me.jsx)(bt,{title:e,dismissSurvey:n}),(0,Me.jsx)("div",{className:"googlesitekit-survey__body",children:t}),s&&i&&(0,Me.jsx)("div",{className:"googlesitekit-survey__footer",children:(0,Me.jsx)(Pe.Button,{href:s,onClick:o,target:"_blank",children:i})})]})}SurveyCompletion.propTypes={title:r().string.isRequired,children:r().node,ctaText:r().string,ctaURL:r().string,ctaOnClick:r().func,dismissSurvey:r().func.isRequired},SurveyCompletion.defaultProps={title:"",children:null,ctaText:"",ctaURL:"",ctaOnClick:null};const xt=SurveyCompletion;function SurveyTerms(){const e=(0,u.useSelect)(e=>e(h.O4).getGooglePrivacyPolicyURL()),t=(0,u.useSelect)(e=>e(h.O4).getGoogleTermsURL());return(0,Me.jsx)("p",{className:"googlesitekit-survey__terms",children:(0,Ze.A)((0,O.__)("By continuing, you agree to allow Google to use your answers and account info to improve services, per our <privacy>Privacy</privacy> & <terms>Terms</terms>.","google-site-kit"),{privacy:(0,Me.jsx)(Qe.A,{href:e,external:!0,hideExternalIndicator:!0,noFlex:!0}),terms:(0,Me.jsx)(Qe.A,{href:t,external:!0,hideExternalIndicator:!0,noFlex:!0})})})}const St={MULTI_SELECT:"multi_select",OPEN_TEXT:"open_text",RATING:"rating",SINGLE_SELECT:"single_select"};var Mt=i(17243),It=i(52684),wt=i(55989);function SurveyQuestionMultiSelect({question:e,choices:t,answerQuestion:i,dismissSurvey:s,minChoices:o=1,maxChoices:n,submitButtonText:r}){const l=(0,It.A)(SurveyQuestionMultiSelect,"SurveyQuestionMultiSelect"),c=t.map(({answer_ordinal:e,write_in:t})=>({answer_ordinal:e,selected:!1,...t?{answer_text:""}:{}})),g=(0,Mt.keyBy)(c,"answer_ordinal"),[u,m]=(0,a.useState)(g);const p=t.filter(({write_in:e,answer_ordinal:t})=>{if(e){const{selected:e,answer_text:i}=u[t];if(e&&0===i.length)return!0}return!1}).length>0,h=Object.values(u).filter(({selected:e})=>e).length,f=n&&h===n,_=p||h<o;return(0,Me.jsxs)("div",{className:"googlesitekit-survey__multi-select",children:[(0,Me.jsx)(bt,{title:e,dismissSurvey:s}),(0,Me.jsx)("div",{className:"googlesitekit-survey__body",children:t.map(({answer_ordinal:e,text:t,write_in:i})=>{const s=u[e],o=`${l}-answer-${e}`;return(0,Me.jsxs)("div",{className:d()("googlesitekit-survey__multi-select__choice",{"googlesitekit-survey__multi-select__choice--disabled":f&&!s.selected}),children:[(0,Me.jsx)(Pe.Checkbox,{checked:s.selected,disabled:f&&!s.selected,onChange:()=>function(e){const t={...u,[e]:{...u[e],selected:!u[e].selected}};m(t)}(e),value:`${e}`,id:o,name:o,children:t}),i&&(0,Me.jsxs)(a.Fragment,{children:[(0,Me.jsx)(wt.A,{children:(0,Me.jsx)("label",{htmlFor:`${o}-write-in`,children:(0,O.sprintf)(/* translators: %s: Option name */ /* translators: %s: Option name */ (0,O.__)("Text input for option %s","google-site-kit"),t)})}),(0,Me.jsx)(Pe.TextField,{id:`${o}-write-in`,onChange:t=>function(e,t){const i={...u,[t]:{...u[t],answer_text:e.target.value?.slice(0,200)}};m(i)}(t,e),value:s.answer_text,disabled:!s.selected})]})]},o)})}),(0,Me.jsxs)("div",{className:"googlesitekit-survey__footer",children:[o>1&&(0,Me.jsx)(Pe.HelperText,{persistent:!0,children:(0,O.sprintf)(/* translators: %s: the number of answers. */ /* translators: %s: the number of answers. */ (0,O.__)("Choose at least %s answers","google-site-kit"),o)}),(0,Me.jsx)(Pe.Button,{onClick:function(){const e=Object.values(u).filter(({selected:e})=>e).map(({answer_ordinal:e,answer_text:t})=>t?{answer_ordinal:e,answer_text:t}:{answer_ordinal:e});i({answer:e})},disabled:_,children:r})]})]})}SurveyQuestionMultiSelect.propTypes={question:r().string.isRequired,choices:r().arrayOf(r().shape({answer_ordinal:r().oneOfType([r().string,r().number]),text:r().string,write_in:r().bool})).isRequired,answerQuestion:r().func.isRequired,dismissSurvey:r().func.isRequired,minChoices:r().number,maxChoices:r().number,submitButtonText:r().string.isRequired};const jt=SurveyQuestionMultiSelect;function SurveyQuestionOpenText({question:e,answerQuestion:t,placeholder:i,subtitle:s,dismissSurvey:o,submitButtonText:n}){const[r,l]=(0,a.useState)("");const c=(0,a.useCallback)(e=>{l(e.target.value.slice(0,200))},[l]),d=(0,It.A)(SurveyQuestionOpenText,"SurveyQuestionOpenText");return(0,Me.jsxs)("div",{className:"googlesitekit-survey__open-text",children:[(0,Me.jsx)(bt,{title:e,dismissSurvey:o}),(0,Me.jsxs)("div",{className:"googlesitekit-survey__body",children:[(0,Me.jsx)(wt.A,{children:(0,Me.jsx)("label",{htmlFor:d,children:i})}),(0,Me.jsx)(Pe.TextField,{name:`survey-opentext-${d}`,helperText:s,onChange:c,label:i,inputType:"textarea",id:d,value:r,textarea:!0})]}),(0,Me.jsx)("div",{className:"googlesitekit-survey__footer",children:(0,Me.jsx)(Pe.Button,{disabled:0===r.length,onClick:function(){t({answer:r})},children:n})})]})}SurveyQuestionOpenText.propTypes={question:r().string.isRequired,subtitle:r().string.isRequired,placeholder:r().string.isRequired,answerQuestion:r().func.isRequired,dismissSurvey:r().func.isRequired,submitButtonText:r().string.isRequired};const Ct=SurveyQuestionOpenText;var Nt;function Tt(){return Tt=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},Tt.apply(null,arguments)}var Dt;function Rt(){return Rt=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},Rt.apply(null,arguments)}var Ot;function survey_neutral_extends(){return survey_neutral_extends=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},survey_neutral_extends.apply(null,arguments)}var Lt;function Bt(){return Bt=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},Bt.apply(null,arguments)}var zt;function Pt(){return Pt=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},Pt.apply(null,arguments)}const Ft={1:e=>a.createElement("svg",Pt({xmlns:"http://www.w3.org/2000/svg",fill:"none"},e),zt||(zt=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.985 0C6.705 0 0 6.72 0 15s6.705 15 14.985 15C23.28 30 30 23.28 30 15S23.28 0 14.985 0M15 27C8.37 27 3 21.63 3 15S8.37 3 15 3s12 5.37 12 12-5.37 12-12 12m7.5-15.75a2.247 2.247 0 0 1-2.25 2.25A2.247 2.247 0 0 1 18 11.25 2.247 2.247 0 0 1 20.25 9a2.247 2.247 0 0 1 2.25 2.25M9.75 13.5A2.247 2.247 0 0 0 12 11.25 2.247 2.247 0 0 0 9.75 9a2.247 2.247 0 0 0-2.25 2.25 2.247 2.247 0 0 0 2.25 2.25m-2.415 9c1.2-3.06 4.17-5.25 7.665-5.25s6.465 2.19 7.665 5.25z",clipRule:"evenodd"}))),2:e=>a.createElement("svg",Rt({xmlns:"http://www.w3.org/2000/svg",fill:"none"},e),Dt||(Dt=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15S6.705 0 14.985 0C23.28 0 30 6.72 30 15m-9.75-1.5a2.247 2.247 0 0 0 2.25-2.25A2.247 2.247 0 0 0 20.25 9 2.247 2.247 0 0 0 18 11.25a2.247 2.247 0 0 0 2.25 2.25m-13.725 9c1.245-3.495 4.56-6 8.49-6 3.915 0 7.23 2.505 8.475 6h-3.315c-1.035-1.785-2.955-3-5.16-3-2.22 0-4.125 1.215-5.175 3zM12 11.25a2.247 2.247 0 0 1-2.25 2.25 2.247 2.247 0 0 1-2.25-2.25A2.247 2.247 0 0 1 9.75 9 2.247 2.247 0 0 1 12 11.25M15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3",clipRule:"evenodd"}))),3:e=>a.createElement("svg",survey_neutral_extends({xmlns:"http://www.w3.org/2000/svg",fill:"none"},e),Ot||(Ot=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15S6.705 0 14.985 0C23.28 0 30 6.72 30 15M9.75 9A2.247 2.247 0 0 1 12 11.25a2.247 2.247 0 0 1-2.25 2.25 2.247 2.247 0 0 1-2.25-2.25A2.247 2.247 0 0 1 9.75 9m10.5 0A2.247 2.247 0 0 0 18 11.25a2.247 2.247 0 0 0 2.25 2.25 2.247 2.247 0 0 0 2.25-2.25A2.247 2.247 0 0 0 20.25 9M10.5 22.5v-3h9v3zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3",clipRule:"evenodd"}))),4:e=>a.createElement("svg",Bt({xmlns:"http://www.w3.org/2000/svg",fill:"none"},e),Lt||(Lt=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15S6.705 0 14.985 0C23.28 0 30 6.72 30 15m-9.75-1.5a2.247 2.247 0 0 0 2.25-2.25A2.247 2.247 0 0 0 20.25 9 2.247 2.247 0 0 0 18 11.25a2.247 2.247 0 0 0 2.25 2.25m3.225 4.5c-1.245 3.495-4.56 6-8.49 6-3.915 0-7.23-2.505-8.475-6h3.315c1.035 1.785 2.955 3 5.16 3 2.22 0 4.125-1.215 5.175-3zM12 11.25a2.247 2.247 0 0 1-2.25 2.25 2.247 2.247 0 0 1-2.25-2.25A2.247 2.247 0 0 1 9.75 9 2.247 2.247 0 0 1 12 11.25M15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3",clipRule:"evenodd"}))),5:e=>a.createElement("svg",Tt({xmlns:"http://www.w3.org/2000/svg",fill:"none"},e),Nt||(Nt=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.985 0C6.705 0 0 6.72 0 15s6.705 15 14.985 15C23.28 30 30 23.28 30 15S23.28 0 14.985 0M15 27C8.37 27 3 21.63 3 15S8.37 3 15 3s12 5.37 12 12-5.37 12-12 12m7.5-15.75a2.247 2.247 0 0 1-2.25 2.25A2.247 2.247 0 0 1 18 11.25 2.247 2.247 0 0 1 20.25 9a2.247 2.247 0 0 1 2.25 2.25M9.75 13.5A2.247 2.247 0 0 0 12 11.25 2.247 2.247 0 0 0 9.75 9a2.247 2.247 0 0 0-2.25 2.25 2.247 2.247 0 0 0 2.25 2.25M22.665 18c-1.2 3.06-4.17 5.25-7.665 5.25S8.535 21.06 7.335 18z",clipRule:"evenodd"})))};function SurveyQuestionRatingChoice({choice:e,answerQuestion:t}){const i=(0,a.useCallback)(()=>{"function"==typeof t&&t({answer:{answer_ordinal:e.answer_ordinal}})},[t,e]),s=Ft[e.answer_ordinal];return s?(0,Me.jsxs)("div",{className:"googlesitekit-survey__choice",children:[(0,Me.jsx)(Pe.Button,{icon:(0,Me.jsx)(s,{width:30,height:30}),"aria-label":e.text,onClick:i}),(0,Me.jsx)(gt.A,{children:e.text})]}):null}SurveyQuestionRatingChoice.propTypes={choice:r().shape({answer_ordinal:r().oneOfType([r().string,r().number]),text:r().string}).isRequired};const Gt=SurveyQuestionRatingChoice;function SurveyQuestionRating({question:e,choices:t,answerQuestion:i,dismissSurvey:s}){return(0,Me.jsxs)("div",{className:"googlesitekit-survey__question-rating",children:[(0,Me.jsx)(bt,{title:e,dismissSurvey:s}),(0,Me.jsx)("div",{className:"googlesitekit-survey__body",children:(0,Me.jsx)("div",{className:"googlesitekit-survey__choices",children:t.map((e,t)=>(0,Me.jsx)(Gt,{choice:e,answerQuestion:i},t))})})]})}SurveyQuestionRating.propTypes={question:r().string.isRequired,choices:r().arrayOf(r().shape({answer_ordinal:r().oneOfType([r().string,r().number]),text:r().string})).isRequired,answerQuestion:r().func.isRequired,dismissSurvey:r().func.isRequired};const Ut=SurveyQuestionRating;function SurveyQuestionSingleSelectChoice({value:e,setValue:t,writeIn:i,setWriteIn:s,choice:o}){const{answer_ordinal:n,text:r,write_in:l}=o,c=e===n,d=`googlesitekit-survey__multi-select-${n}-${r}`;return(0,Me.jsxs)("div",{className:"googlesitekit-single-select__choice",children:[(0,Me.jsx)(Pe.Radio,{id:r.replace(/ /g,"-"),value:n,checked:c,name:r,onClick:()=>t(n),children:r}),l&&(0,Me.jsxs)(a.Fragment,{children:[(0,Me.jsx)(wt.A,{children:(0,Me.jsx)("label",{htmlFor:d,children:(0,O.sprintf)(/* translators: %s: Option name */ /* translators: %s: Option name */ (0,O.__)("Text input for option %s","google-site-kit"),r)})}),(0,Me.jsx)(Pe.TextField,{id:d,onChange:e=>s(e.target.value.slice(0,200)),value:i,disabled:!c})]})]})}SurveyQuestionSingleSelectChoice.propTypes={choice:r().shape({answer_ordinal:r().oneOfType([r().string,r().number]),text:r().string,write_in:r().bool}),value:r().string.isRequired,setValue:r().func.isRequired,writeIn:r().string.isRequired,setWriteIn:r().func.isRequired};const Vt=SurveyQuestionSingleSelectChoice;function SurveyQuestionSingleSelect({question:e,choices:t,answerQuestion:i,dismissSurvey:s,submitButtonText:o}){const[n,r]=(0,a.useState)(""),[l,c]=(0,a.useState)(""),d=t.map(e=>({...e,answer_ordinal:`${e.answer_ordinal}`})),g=!!n&&d.filter(({answer_ordinal:e,write_in:t})=>e===n&&t).length>0;const u=""===n||g&&""===l;return(0,Me.jsxs)("div",{className:"googlesitekit-single-select",children:[(0,Me.jsx)(bt,{title:e,dismissSurvey:s}),(0,Me.jsx)("div",{className:"googlesitekit-survey__body",children:d.map((e,t)=>(0,Me.jsx)(Vt,{value:n,setValue:r,writeIn:l,setWriteIn:c,choice:e},t))}),(0,Me.jsx)("div",{className:"googlesitekit-survey__footer",children:(0,Me.jsx)(Pe.Button,{onClick:function(){const e=g?{answer_text:l}:{};i({answer:{answer_ordinal:Number(n),...e}})},disabled:u,children:o})})]})}SurveyQuestionSingleSelect.propTypes={question:r().string.isRequired,choices:r().arrayOf(r().shape({answer_ordinal:r().oneOfType([r().string,r().number]),text:r().string,write_in:r().bool})).isRequired,answerQuestion:r().func.isRequired,dismissSurvey:r().func.isRequired};const Wt=SurveyQuestionSingleSelect;function SurveyQuestion({currentQuestion:e,answerQuestion:t,dismissSurvey:i,isLastQuestion:s}){const o={key:e.question_text,answerQuestion:t,dismissSurvey:i,question:e.question_text,submitButtonText:s?(0,O.__)("Submit","google-site-kit"):(0,O.__)("Next","google-site-kit")};return(0,Me.jsxs)(a.Fragment,{children:[e.question_type===St.MULTI_SELECT&&(0,Me.jsx)(jt,{...o,choices:e.question.answer_choice,minChoices:e.question.min_choices,maxChoices:e.question.max_choices}),e.question_type===St.OPEN_TEXT&&(0,Me.jsx)(Ct,{...o,subtitle:e.question.subtitle,placeholder:e.question.placeholder}),e.question_type===St.RATING&&(0,Me.jsx)(Ut,{...o,choices:e.question.answer_choice}),e.question_type===St.SINGLE_SELECT&&(0,Me.jsx)(Wt,{...o,choices:e.question.answer_choice})]})}function Ht(e,t){return!1===e.some(({trigger_condition:e})=>!(!Array.isArray(e)||0===e.length)&&e.some(e=>e.question_ordinal===t.question_ordinal))}function qt(e){return e.reduce((e,{question_ordinal:t,answer:i})=>({...e,[t]:i.answer.answer_ordinal||i.answer}),{})}SurveyQuestion.propTypes={currentQuestion:r().object.isRequired,answerQuestion:r().func.isRequired,dismissSurvey:r().func.isRequired,isLastQuestion:r().bool.isRequired};const Yt=Object.freeze([]);function CurrentSurvey(){const[e,t]=(0,a.useState)(!1),[i,s]=(0,a.useState)(!1),[o,n]=(0,a.useState)(!1),[r,l]=(0,a.useState)(!1),c=(0,u.useSelect)(e=>e(f.oR).getCurrentSurveyCompletions()),d=(0,u.useSelect)(e=>e(f.oR).getCurrentSurveyQuestions()),m=(0,u.useSelect)(e=>e(f.oR).getCurrentSurveySession()),p=(0,u.useSelect)(e=>e(f.oR).isTrackingEnabled()),h=m?`survey-${m.session_id}`:null,[_,v]=(0,b.A)(h,"hideSurvey"),[y,k]=(0,b.A)(h,"answers"),E=y||Yt,{sendSurveyEvent:A}=(0,u.useDispatch)(f.oR);(0,a.useEffect)(()=>{d?.length&&!e&&(t(!0),A("survey_shown"))},[d,e,A]);const{currentQuestion:x,currentQuestionOrdinal:S}=function(e,t){const i=qt(t);let s=Math.max(0,...t.map(e=>e.question_ordinal))+1;const o=e?.find(e=>{const{question_ordinal:t,trigger_condition:o}=e;if(t<s)return!1;if(Array.isArray(o)&&o.length>0)for(const e of o){const t=i[e.question_ordinal];if(!t)return s++,!1;const o=e.answer_ordinal||[];if(!Array.isArray(t)&&!o.includes(t))return s++,!1;if(Array.isArray(t)&&!t.some(({answer_ordinal:e})=>o.includes(e))){s++;break}}return t===s});return{currentQuestion:o,currentQuestionOrdinal:s}}(d,E),M=(0,a.useCallback)(e=>{r||(l(!0),A("question_answered",{question_ordinal:x?.question_ordinal,answer:e}),setTimeout(()=>{k([...E,{question_ordinal:x?.question_ordinal,answer:e}]),l(!1)},300))},[E,k,x,A,r]),I=function(e,t,i,s){const o=qt(t);let n;return e?.length&&s>e.length&&(n=(i||[]).find(e=>{const t=e.trigger_condition||[];for(const i of t)if(i.answer_ordinal.includes(o[i.question_ordinal]))return n=e,!0;return!1}),n||(n=i[0])),n}(d,E,c,S),w=(0,a.useCallback)(()=>{A("follow_up_link_clicked",{completion_ordinal:I?.completion_ordinal}),A("survey_closed"),v(!0)},[A,v,I]),j=(0,a.useCallback)(()=>{A("survey_closed"),n(!1)},[A]),C=(0,a.useCallback)(()=>{v(!0)},[v]);return(0,a.useEffect)(()=>{I&&!i&&(s(!0),A("completion_shown",{completion_ordinal:I?.completion_ordinal}))},[i,A,I]),(0,g.A)(()=>{n(!0)}),!_&&d&&c&&void 0!==p?I?(0,Me.jsx)(yt.A,{direction:"up",in:o,onExited:C,children:(0,Me.jsx)("div",{className:"googlesitekit-survey",children:(0,Me.jsx)(xt,{dismissSurvey:j,ctaOnClick:w,ctaText:I.follow_up_text,ctaURL:I.follow_up_url,title:I.completion_title,children:I.completion_text})})}):Object.values(St).includes(x?.question_type)?(0,Me.jsx)(yt.A,{direction:"up",in:o,onExited:C,children:(0,Me.jsxs)("div",{className:"googlesitekit-survey",children:[(0,Me.jsx)(SurveyQuestion,{currentQuestion:x,answerQuestion:M,dismissSurvey:j,isLastQuestion:Ht(d,x)}),!1===p&&1===x?.question_ordinal&&(0,Me.jsx)("div",{className:"googlesitekit-survey__footer",children:(0,Me.jsx)(SurveyTerms,{})})]})}):null:null}function CurrentSurveyPortal(){return(0,u.useSelect)(e=>e(h.O4).isUsingProxy()&&!1===e(f.oR).areSurveysOnCooldown()?e(f.oR).getCurrentSurvey():null)?(0,Me.jsx)(vt.A,{slug:"survey",children:(0,Me.jsx)(CurrentSurvey,{})}):null}var Zt,Qt,Kt,Xt=i(14283),$t=i(40194),Jt=i(49993),ei=i(88273),ti=i(49481);function ii(){return ii=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},ii.apply(null,arguments)}const si=e=>a.createElement("svg",ii({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 491 200"},e),Zt||(Zt=a.createElement("path",{fill:"url(#welcome-modal-data-gathering-complete-graphic_svg__a)",d:"M0 16C0 7.163 7.163 0 16 0h459c8.837 0 16 7.163 16 16v184H0z"})),Qt||(Qt=a.createElement("g",{clipPath:"url(#welcome-modal-data-gathering-complete-graphic_svg__b)"},a.createElement("path",{fill:"#93C9A8",d:"M374.585 60.533c0 24.519-2.088 43.431-13.712 63.097-10.795 18.261-30.444 17.108-48.398 28.312-20.135 12.567-42.75 37.211-69.369 40.447-12.591 0-24.769-1.775-36.298-5.089-32.573-9.363-55.682-31.012-72.596-59.626-11.624-19.666-16.939-54.756-16.939-79.276 0-37.733 10.159-59.63 35.492-83.666 32.843-31.16 51.516-23.922 90.341-23.922 25.462 0 49.234-6.904 69.369 5.662 37.289 23.272 62.11 66.773 62.11 114.06",opacity:.15}),a.createElement("path",{fill:"#93C9A8",d:"M298.136-66.556c22.315 10.16 34.483 31.672 47.55 50.432 12.133 17.42 5.531 44.216 8.267 65.246 3.068 23.586 13.484 45.1 5.366 70.736-5.233 11.492-11.909 21.871-19.717 31.02-22.059 25.85-49.651 14.389-82.722 17.968-22.73 2.46-43.683 31.549-94.647 13.752s-55.006-84.939-35.592-125.386-16.18-59.053 16.178-106.78S255.1-86.154 298.136-66.558",opacity:.15}),a.createElement("path",{fill:"#93C9A8",d:"M344.669 163.217c-20.379 18.1-37.644 30.321-62.596 35.148-23.17 4.483-36.758-12.746-59.363-19.44-25.352-7.508-62.579-8.166-84.975-27.965-9.321-10.496-29.726-16.67-41.398-44.741S116.017-5.848 77.312-56.565c7.74-24.207 66.566 14.44 86.946-3.66 31.363-27.856 57.084-35.553 95.816-32.18 50.216 4.374 58.022 25.282 86.766 57.645 18.851 21.224 55.28 44.775 59.743 70.836 10.009 58.453-22.61 92.232-61.914 127.141",opacity:.15}),a.createElement("g",{filter:"url(#welcome-modal-data-gathering-complete-graphic_svg__c)"},a.createElement("rect",{width:335,height:124.074,x:78,y:48.87,fill:"#fff",rx:7.037})),a.createElement("g",{strokeLinecap:"round",clipPath:"url(#welcome-modal-data-gathering-complete-graphic_svg__d)"},a.createElement("path",{stroke:"#EBEEF0",strokeWidth:1.551,d:"M95.06 101.603h184.561M95.06 117.845h184.561M95.06 134.088h184.561M95.06 150.331h184.561"}),a.createElement("path",{stroke:"#93C9A8",strokeLinejoin:"round",strokeWidth:6.204,d:"M86.53 133.397c9.855-.999 16.157-8.282 27.916-9.306 11.621-1.012 13.183 25.203 40.712 16.673s27.529-29.856 53.507-27.917 32.85-11.9 45.699-12.735 23.504 13.363 29.908 13.898"})),a.createElement("path",{stroke:"#CBD0D3",strokeLinecap:"round",strokeWidth:6.204,d:"M313.742 65.93h12.408"}),a.createElement("path",{stroke:"#CBD0D3",strokeLinecap:"round",strokeWidth:10.857,d:"M99.713 79.114h17.836"}),a.createElement("path",{stroke:"#EBEEF0",strokeLinecap:"round",strokeWidth:6.204,d:"M98.162 65.93h8.53M337.004 65.93h12.407M360.27 65.93h12.407"}),a.createElement("path",{stroke:"#3C7251",strokeWidth:20.162,d:"M342.82 96.175a25.977 25.977 0 1 1 0 51.954 25.977 25.977 0 0 1 0-51.954Z"}),a.createElement("path",{stroke:"#77AD8C",strokeWidth:20.162,d:"M342.82 96.175a25.979 25.979 0 1 1-4.708.43"}),a.createElement("path",{stroke:"#B8E6CA",strokeWidth:20.162,d:"M342.82 96.175a25.98 25.98 0 0 1 24.781 33.772 25.98 25.98 0 0 1-24.373 18.181 26 26 0 0 1-15.279-4.674 25.98 25.98 0 0 1-10.03-28.705"}))),Kt||(Kt=a.createElement("defs",null,a.createElement("clipPath",{id:"welcome-modal-data-gathering-complete-graphic_svg__b"},a.createElement("path",{fill:"#fff",d:"M0 0h491v200H0z"})),a.createElement("clipPath",{id:"welcome-modal-data-gathering-complete-graphic_svg__d"},a.createElement("path",{fill:"#fff",d:"M95.06 92.297h182.235v68.24H95.06z"})),a.createElement("linearGradient",{id:"welcome-modal-data-gathering-complete-graphic_svg__a",x1:245.5,x2:245.5,y1:0,y2:200,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#D0FBE1"}),a.createElement("stop",{offset:1,stopColor:"#fff"})),a.createElement("filter",{id:"welcome-modal-data-gathering-complete-graphic_svg__c",width:355.472,height:144.546,x:67.764,y:41.193,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:2.559}),a.createElement("feGaussianBlur",{stdDeviation:5.118}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1578_41791"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1578_41791",result:"shape"})))));var oi,ni,ri,ai,li,ci,di,gi,ui,mi,pi,hi,fi,_i,vi,yi,ki,Ei,Ai,bi,xi,Si,Mi,Ii,wi,ji;function Ci(){return Ci=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},Ci.apply(null,arguments)}const Ni=e=>a.createElement("svg",Ci({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 491 200"},e),oi||(oi=a.createElement("path",{fill:"#93C9A8",d:"M374.624 60.533c0 24.52-2.088 43.431-13.712 63.097-10.795 18.261-30.444 17.108-48.397 28.312-20.136 12.567-42.751 37.211-69.37 40.447-12.591 0-24.769-1.775-36.298-5.089-32.573-9.363-55.682-31.012-72.595-59.626-11.625-19.666-16.94-54.756-16.94-79.276 0-37.733 10.159-59.63 35.492-83.666 32.843-31.16 51.516-23.922 90.341-23.922 25.462 0 49.234-6.904 69.37 5.662 37.288 23.272 62.109 66.773 62.109 114.06",opacity:.15})),ni||(ni=a.createElement("path",{fill:"#93C9A8",d:"M298.176-66.556c22.315 10.16 34.484 31.672 47.55 50.432 12.134 17.42 5.532 44.216 8.267 65.246 3.068 23.586 13.484 45.1 5.367 70.736-5.233 11.492-11.91 21.871-19.718 31.02-22.059 25.85-49.651 14.388-82.722 17.968-22.729 2.46-43.683 31.549-94.646 13.752s-55.006-84.939-35.593-125.386c19.414-40.447-16.18-59.053 16.179-106.78s112.28-36.585 155.316-16.989",opacity:.15})),ri||(ri=a.createElement("path",{fill:"#93C9A8",d:"M344.706 168.217c-20.38 18.1-37.644 30.321-62.596 35.148-23.17 4.484-36.758-12.746-59.363-19.44-25.352-7.508-62.579-8.166-84.975-27.965-9.322-10.496-29.727-16.67-41.399-44.741S116.053-.848 77.348-51.565c7.74-24.207 66.567 14.44 86.946-3.66 31.364-27.856 57.085-35.553 95.817-32.18 50.215 4.374 58.022 25.282 86.766 57.645 18.85 21.224 55.28 44.775 59.742 70.836 10.01 58.453-22.609 92.232-61.913 127.141",opacity:.15})),ai||(ai=a.createElement("g",{filter:"url(#welcome-modal-graphic_svg__a)"},a.createElement("path",{fill:"#fff",d:"M175.04 39h142v77h-142z"}))),li||(li=a.createElement("g",{filter:"url(#welcome-modal-graphic_svg__b)"},a.createElement("path",{fill:"#3C7251",d:"M384.672 82a3.86 3.86 0 0 1 3.858 3.857v14.857a1 1 0 0 1-1 1h-5.714a1 1 0 0 1-1-1v-6.153l-19.126 19.127a6.43 6.43 0 0 1-4.547 1.883h-5.479l-22.169 22.169-5.455-5.455 22.545-22.545a6.43 6.43 0 0 1 4.546-1.883h5.48l18.143-18.143h-5.796a1 1 0 0 1-1-1V83a1 1 0 0 1 1-1z"}))),ci||(ci=a.createElement("g",{filter:"url(#welcome-modal-graphic_svg__c)"},a.createElement("path",{fill:"#fff",d:"M164.04 57h164v89h-164z"}))),di||(di=a.createElement("g",{filter:"url(#welcome-modal-graphic_svg__d)"},a.createElement("path",{fill:"#fff",d:"M154.04 78h184v100h-184z"}))),gi||(gi=a.createElement("rect",{width:47.688,height:76.952,x:275.04,y:91,fill:"#BED4FF",rx:3.219})),ui||(ui=a.createElement("circle",{cx:288.045,cy:104.006,r:6.503,fill:"#7F9CD4"})),mi||(mi=a.createElement("path",{fill:"#7F9CD4",d:"m288.749 116.134-9.374 10.026h39.017l-14.188-15.174-10.135 10.839z"})),pi||(pi=a.createElement("rect",{width:13.858,height:5.423,x:292.064,y:158.195,fill:"#7F9CD4",rx:2.711})),hi||(hi=a.createElement("path",{fill:"#7F9CD4",fillRule:"evenodd",d:"M312.912 143.13c0 .832-.674 1.507-1.506 1.507h-25.305a1.507 1.507 0 0 1 0-3.013h25.305c.832 0 1.506.674 1.506 1.506M312.912 148.553c0 .832-.674 1.506-1.506 1.506h-25.305a1.507 1.507 0 1 1 0-3.012h25.305c.832 0 1.506.674 1.506 1.506",clipRule:"evenodd"})),fi||(fi=a.createElement("rect",{width:95,height:26,x:168.04,y:91,fill:"#EBEEF0",rx:6.025})),_i||(_i=a.createElement("rect",{width:56.033,height:6.628,x:167.807,y:124.151,fill:"#EBEEF0",rx:3.314})),vi||(vi=a.createElement("rect",{width:72,height:3,x:168.04,y:137,fill:"#EBEEF0",rx:1.5})),yi||(yi=a.createElement("rect",{width:61,height:3,x:168.04,y:145,fill:"#EBEEF0",rx:1.5})),ki||(ki=a.createElement("rect",{width:89,height:3,x:168.04,y:154,fill:"#EBEEF0",rx:1.5})),Ei||(Ei=a.createElement("g",{strokeWidth:16,filter:"url(#welcome-modal-graphic_svg__e)"},a.createElement("path",{stroke:"#C59539",d:"M154.04 106a24.004 24.004 0 0 1 24 24 24 24 0 0 1-14.816 22.173 24 24 0 0 1-26.155-5.202 23.995 23.995 0 0 1-5.203-26.155A24.008 24.008 0 0 1 154.04 106Z"}),a.createElement("path",{stroke:"#E1B155",d:"M154.04 106a24 24 0 1 1-4.349.397"}),a.createElement("path",{stroke:"#FECE72",d:"M154.04 106a24 24 0 0 1 22.778 16.44 24 24 0 0 1-8.429 26.798 23.998 23.998 0 0 1-37.006-11.321 24 24 0 0 1-.348-14.757"}))),a.createElement("g",{filter:"url(#welcome-modal-graphic_svg__f)"},Ai||(Ai=a.createElement("path",{fill:"#93C9A8",d:"M244.749 23.698c-2.779 1.212-8.827 3.721-14.573 5.243-1.668.441-2.896 1.926-2.826 3.65 1.008 24.775 14.487 35.352 18.962 35.352 4.47 0 18.123-12.53 18.417-35.51.021-1.653-1.161-3.055-2.754-3.495-5.736-1.581-11.444-4.018-14.108-5.219a3.84 3.84 0 0 0-3.118-.02"})),a.createElement("mask",{id:"welcome-modal-graphic_svg__g",width:38,height:45,x:227,y:23,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},bi||(bi=a.createElement("path",{fill:"#B8E6CA",d:"M244.805 23.698c-2.778 1.212-8.826 3.721-14.573 5.243-1.668.441-2.896 1.926-2.826 3.65 1.009 24.775 14.487 35.352 18.962 35.352 4.47 0 18.123-12.53 18.417-35.51.021-1.653-1.161-3.055-2.754-3.495-5.736-1.581-11.444-4.018-14.108-5.219a3.84 3.84 0 0 0-3.118-.02"}))),xi||(xi=a.createElement("g",{mask:"url(#welcome-modal-graphic_svg__g)"},a.createElement("path",{fill:"#77AD8C",d:"M246.305 23s-8.312 3.876-16.075 5.939c-1.667.442-2.894 1.927-2.824 3.65 1.004 24.776 14.439 35.354 18.899 35.354z"}))),Si||(Si=a.createElement("circle",{cx:246.233,cy:42.025,r:7.409,fill:"#D0FBE1"})),Mi||(Mi=a.createElement("circle",{cx:246.089,cy:42.094,r:9.432,stroke:"#B8E6CA",strokeWidth:1.5,opacity:.5})),a.createElement("mask",{id:"welcome-modal-graphic_svg__h",width:16,height:16,x:238,y:34,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},Ii||(Ii=a.createElement("circle",{cx:246.234,cy:42.025,r:7.409,fill:"#D0FBE1"}))),wi||(wi=a.createElement("g",{mask:"url(#welcome-modal-graphic_svg__h)"},a.createElement("path",{stroke:"#5C9271",strokeWidth:1.693,d:"m242.84 41.696 2.752 2.751 4.656-4.656"})))),ji||(ji=a.createElement("defs",null,a.createElement("filter",{id:"welcome-modal-graphic_svg__a",width:168.399,height:103.399,x:161.84,y:29.1,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:3.3}),a.createElement("feGaussianBlur",{stdDeviation:6.6}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_5011_49988"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_5011_49988",result:"shape"})),a.createElement("filter",{id:"welcome-modal-graphic_svg__b",width:74.49,height:65.74,x:319.04,y:81,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:4}),a.createElement("feGaussianBlur",{stdDeviation:2.5}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0.12549 0 0 0 0 0.0352941 0 0 0 0 0.27451 0 0 0 0.15 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_5011_49988"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_5011_49988",result:"shape"})),a.createElement("filter",{id:"welcome-modal-graphic_svg__c",width:190.399,height:115.399,x:150.84,y:47.1,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:3.3}),a.createElement("feGaussianBlur",{stdDeviation:6.6}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_5011_49988"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_5011_49988",result:"shape"})),a.createElement("filter",{id:"welcome-modal-graphic_svg__d",width:210.399,height:126.399,x:140.84,y:68.1,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:3.3}),a.createElement("feGaussianBlur",{stdDeviation:6.6}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_5011_49988"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_5011_49988",result:"shape"})),a.createElement("filter",{id:"welcome-modal-graphic_svg__e",width:72,height:72,x:118.04,y:98,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:4}),a.createElement("feGaussianBlur",{stdDeviation:2}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0.266708 0 0 0 0 0.181632 0 0 0 0 0.0185698 0 0 0 0.2 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_5011_49988"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_5011_49988",result:"shape"})),a.createElement("filter",{id:"welcome-modal-graphic_svg__f",width:48.98,height:56.164,x:221.549,y:20.478,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:2.9}),a.createElement("feGaussianBlur",{stdDeviation:2.9}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0.0374806 0 0 0 0 0.12439 0 0 0 0 0.292214 0 0 0 0.3 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_5011_49988"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_5011_49988",result:"shape"})))));var Ti=i(97015),Di=function(e){return e[e.DATA_AVAILABLE=0]="DATA_AVAILABLE",e[e.GATHERING_DATA=1]="GATHERING_DATA",e[e.DATA_GATHERING_COMPLETE=2]="DATA_GATHERING_COMPLETE",e}(Di||{});const Ri={[Di.DATA_AVAILABLE]:"default",[Di.GATHERING_DATA]:"gathering_data",[Di.DATA_GATHERING_COMPLETE]:"data_available"};function WelcomeModal(){const e=(0,l.i)("setupFlowRefreshPhase4"),t=(0,M.A)(),i=(0,Re.A)(),[s,o]=(0,a.useState)(!0),n=(0,u.useSelect)(e=>e(ei.i).isModuleConnected(fe.L1),[]),r=(0,u.useSelect)(e=>!!n&&e(F.K9).isGatheringData(),[n]),c=(0,u.useSelect)(e=>e(ti.n).isGatheringData(),[]),d=(0,u.useSelect)(e=>e(f.oR).isItemDismissed(f.GU),[]),g=n?r:c;let m;m=g?Di.GATHERING_DATA:d?Di.DATA_GATHERING_COMPLETE:Di.DATA_AVAILABLE;const{dismissItem:p,triggerOnDemandTour:h}=(0,u.useDispatch)(f.oR),[,_]=(0,S.A)("notification");(0,a.useEffect)(()=>{m!==Di.GATHERING_DATA&&m!==Di.DATA_AVAILABLE||p(f.jN,{expiresInSeconds:_e.Du})},[m,p]);const v={target:".googlesitekit-help-menu__button",tooltipSlug:"welcome-modal",content:(0,O.__)("You can always take the dashboard tour from the help menu","google-site-kit"),dismissLabel:(0,O.__)("Got it","google-site-kit"),gaTrackingEventLabel:Ri[m],floaterProps:{styles:{arrow:{margin:42}}},isCenteredOnMobile:!1},y=(0,ke.i)(v),k=(0,a.useCallback)(async()=>{o(!1),m!==Di.GATHERING_DATA&&await p(f.D1),m!==Di.GATHERING_DATA&&m!==Di.DATA_AVAILABLE||await p(f.GU),_(void 0)},[m,_,p]),E=(0,a.useCallback)(()=>{k(),m!==Di.GATHERING_DATA&&y()},[k,m,y]),A=(0,$t.G)(),b=(0,a.useCallback)(()=>{k(),h(A)},[k,h,A]),x=(0,a.useCallback)(()=>{(0,_e.sx)(`${i}_welcome-modal`,"view_notice",Ri[m]),async function(){const e=await(0,Jt.Gq)("start_site_setup"),t=await(0,Jt.Gq)("start_user_setup");e.cacheHit&&(await(0,Jt.LD)("start_site_setup"),(0,_e.sx)(`${i}_setup`,"setup_flow_v3_complete_site_setup")),t.cacheHit&&(await(0,Jt.LD)("start_user_setup"),(0,_e.sx)(`${i}_setup`,"setup_flow_v3_complete_user_setup"))}()},[i,m]),I=(0,a.useCallback)(()=>{(0,_e.sx)(`${i}_welcome-modal`,"confirm_notice",Ri[m])},[i,m]),w=(0,a.useCallback)(()=>{(0,_e.sx)(`${i}_welcome-modal`,"dismiss_notice",Ri[m])},[i,m]),j=(0,a.useCallback)(()=>{w(),E()},[w,E]),C=(0,u.useSelect)(e=>e(f.oR).isDataGatheringCompleteModalActive(),[]);if(!function({modalVariant:e,isDataGatheringCompleteModalActive:t}){return!(t&&e===Di.GATHERING_DATA||!t&&e===Di.DATA_GATHERING_COMPLETE)}({modalVariant:m,isDataGatheringCompleteModalActive:C}))return null;if(void 0===g)return null;if(!s)return null;const N=m===Di.DATA_GATHERING_COMPLETE?(0,O.__)("Data gathering complete!","google-site-kit"):(0,O.__)("Welcome to Site Kit","google-site-kit"),T=function({modalVariant:e,isViewOnly:t,setupFlowRefreshPhase4Enabled:i}){if(t&&i)switch(e){case Di.DATA_AVAILABLE:return(0,O.__)("Take a quick tour to see the most important parts of your dashboard","google-site-kit");case Di.GATHERING_DATA:return(0,O.__)("Site Kit is gathering data and soon metrics for your site will show on your dashboard","google-site-kit")}switch(e){case Di.DATA_AVAILABLE:return(0,O.__)("Initial setup complete! Take a look at the special features Site Kit added to your dashboard based on your site goals","google-site-kit");case Di.GATHERING_DATA:return(0,Ze.A)((0,O.__)("Initial setup complete!<br />Site Kit is gathering data and soon metrics for your site will show on your dashboard","google-site-kit"),{br:Ti.createElement("br",null)});case Di.DATA_GATHERING_COMPLETE:default:return(0,O.__)("Take this quick tour to see the most important parts of your dashboard. It will show you where to look to track your siteâs success as you get more visitors.","google-site-kit")}}({modalVariant:m,isViewOnly:t,setupFlowRefreshPhase4Enabled:e}),D=m===Di.DATA_GATHERING_COMPLETE?si:Ni,R=m===Di.GATHERING_DATA?{label:(0,O.__)("Get started","google-site-kit"),onClick:()=>{I(),k()}}:{label:(0,O.__)("Start tour","google-site-kit"),onClick:()=>{I(),b()}},L=m!==Di.GATHERING_DATA?{label:(0,O.__)("Maybe later","google-site-kit"),onClick:()=>{w(),E()}}:void 0;return Ti.createElement(Xt.A,{className:"googlesitekit-banner-modal--welcome-modal",Graphic:D,onView:x,onClose:j,title:N,description:T,ctaButton:R,dismissButton:L})}function DashboardMainApp(){const e=(0,l.i)("siteGoals"),[t,i]=(0,a.useState)(!1),s=(0,M.A)(),o=(0,A.dv)(),[n,r]=(0,S.A)("widgetArea"),c=(0,u.useSelect)(e=>e(f.oR).getGrantedScopes()),[j,C]=(0,b.A)(f.$8,"permissionsError"),N=void 0!==c&&j?.data?.scopes?.some(e=>c.includes(e)),T=(0,u.useSelect)(e=>e(f.oR).hasAccessToShareableModule(fe.L1)),D=(0,u.useSelect)(e=>T?e(f.oR).getConfiguredAudiences():null);(0,g.A)(()=>{if(s||setTimeout(()=>i(!0),5e3),n){const e=`.googlesitekit-widget-area--${n}`;setTimeout(()=>{function t(){globalThis.scrollTo({top:(0,ve.YJ)(e,o),behavior:"smooth"})}globalThis.addEventListener("scrollend",function e(){t(),globalThis.removeEventListener("scrollend",e)}),t(),r(void 0)},100)}}),(0,a.useEffect)(()=>{void 0!==j&&N&&C({})},[N,C,j]);const R={modules:(0,u.useSelect)(e=>s?e(f.oR).getViewableModules():null)},O=(0,u.useSelect)(e=>e(k.aO).isWidgetContextActive(E.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,R)),L=(0,u.useSelect)(e=>e(k.aO).isWidgetContextActive(E.CONTEXT_MAIN_DASHBOARD_TRAFFIC,R)),B=(0,u.useSelect)(t=>!!e&&t(k.aO).isWidgetContextActive(E.CONTEXT_MAIN_DASHBOARD_SITE_GOALS,R)),z=(0,u.useSelect)(e=>e(k.aO).isWidgetContextActive(E.CONTEXT_MAIN_DASHBOARD_CONTENT,R)),P=(0,u.useSelect)(e=>e(k.aO).isWidgetContextActive(E.CONTEXT_MAIN_DASHBOARD_SPEED,R)),F=(0,u.useSelect)(e=>e(k.aO).isWidgetContextActive(E.CONTEXT_MAIN_DASHBOARD_MONETIZATION,R)),G=(0,u.useSelect)(e=>e(f.oR).isKeyMetricsWidgetHidden()),U=(0,Ne.A)(),V=(0,u.useSelect)(e=>!0===e(h.O4).isKeyMetricsSetupCompleted()&&!1===G||e(f.oR).isAuthenticated()&&!1===e(h.O4).isKeyMetricsSetupCompleted()&&U),W=(0,l.i)("proactiveUserEngagement"),H=(0,l.i)("setupFlowRefresh"),q=(0,l.i)("pdfGeneration"),Y=(0,u.useSelect)(e=>e(f.oR).hasAccessToFeatureTour()),Z=(0,u.useSelect)(e=>!(!H||!Y)&&(e(f.oR).isDataGatheringCompleteModalActive()||(0,ye.s)())),Q=(0,u.useSelect)(e=>{if(!H)return!1;const t=e(f.oR).isItemDismissed(f.jN),i=e(v.D).getQueuedNotifications(p.jU,_.He.DEFAULT),s=i?.[0]?.id||null;return t||"activate-analytics-notification"===s||"connect-more-services-notification"===s});(0,x.Z)();const K=(0,u.useSelect)(e=>{if(Q)return!1;const t=e(f.oR).getCurrentTour();return![m.I.WITHOUT_ANALYTICS,m.I.WITH_ANALYTICS].includes(t?.slug)}),X=function({isMonetizationActive:e,isSpeedActive:t,isContentActive:i,isSiteGoalsActive:s,isTrafficActive:o,isKeyMetricsActive:n}){return e?p.Gw:t?p.Ej:i?p.en:s?p.x2:o?p.OT:n?p.SH:null}({isMonetizationActive:F,isSpeedActive:P,isContentActive:z,isSiteGoalsActive:B,isTrafficActive:L,isKeyMetricsActive:O});return(0,Me.jsxs)(a.Fragment,{children:[(0,Me.jsx)(Ee.A,{}),(0,Me.jsx)(Le.A,{}),(0,Me.jsx)(ke.r,{}),(0,Me.jsxs)(je.A,{showNavigation:!0,children:[(0,Me.jsx)(we.A,{}),(0,Me.jsx)(be.A,{}),q&&(0,Me.jsx)(qe,{}),!s&&(0,Me.jsx)(Ae.A,{}),(0,Me.jsx)(Ce.A,{showFeatureTour:!!Y})]}),(0,Me.jsxs)("div",{className:"googlesitekit-page-content",children:[(0,Me.jsx)(Be.A,{areaSlug:_.bI.DASHBOARD_TOP}),!Q&&(0,Me.jsx)(Be.A,{areaSlug:_.bI.DASHBOARD_TOP,groupID:_.He.SETUP_CTAS}),K&&(0,Me.jsx)(Be.A,{areaSlug:_.bI.OVERLAYS,groupID:_.He.SETUP_CTAS}),!0!==G&&(0,Me.jsx)(y.A,{id:p.SH,slug:E.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,className:d()({"googlesitekit-widget-context--last":X===p.SH})}),(0,Me.jsx)(y.A,{id:p.OT,slug:E.CONTEXT_MAIN_DASHBOARD_TRAFFIC,className:d()({"googlesitekit-widget-context--last":X===p.OT})}),e&&(0,Me.jsx)(y.A,{id:p.x2,slug:E.CONTEXT_MAIN_DASHBOARD_SITE_GOALS,className:d()({"googlesitekit-widget-context--last":X===p.x2})}),(0,Me.jsx)(y.A,{id:p.en,slug:E.CONTEXT_MAIN_DASHBOARD_CONTENT,className:d()({"googlesitekit-widget-context--last":X===p.en})}),(0,Me.jsx)(y.A,{id:p.Ej,slug:E.CONTEXT_MAIN_DASHBOARD_SPEED,className:d()({"googlesitekit-widget-context--last":X===p.Ej})}),(0,Me.jsx)(y.A,{id:p.Gw,slug:E.CONTEXT_MAIN_DASHBOARD_MONETIZATION,className:d()({"googlesitekit-widget-context--last":X===p.Gw})})]}),(0,Me.jsx)(xe.A,{triggerID:"view_dashboard",ttl:_e.tt}),t&&(0,Me.jsx)(CurrentSurveyPortal,{}),V&&(0,Me.jsx)(MetricsSelectionPanel,{}),q&&(0,Me.jsxs)(a.Fragment,{children:[(0,Me.jsx)(_t,{}),(0,Me.jsx)(ct,{})]}),W&&(0,Me.jsxs)(a.Fragment,{children:[(0,Me.jsx)(Ie.A,{}),(0,Me.jsx)(PUESurveyTriggers,{})]}),D&&(0,Me.jsx)(I.Rl,{}),e&&T&&(0,Me.jsxs)(a.Fragment,{children:[(0,Me.jsx)(he,{}),(0,Me.jsx)(w.Ay,{})]}),Z&&(0,Me.jsx)(WelcomeModal,{}),(0,Me.jsx)(ze.A,{})]})}var Oi=i(18117),Li=i(51568),Bi=i(28438),zi=i(88288),Pi=i(31675),Fi=i(58588),Gi=i(10740);function ModuleSetupFooter({module:e,onCancel:t,onComplete:i}){const[s,o]=(0,a.useState)(!1),n=(0,Fi.A)(),r=(0,u.useSelect)(e=>e(h.O4).getAdminURL("googlesitekit-settings",n)),l=(0,u.useSelect)(t=>t(e?.storeName)?.isSetupBlocked?.()),c=(0,u.useSelect)(t=>t(ei.i).canSubmitChanges(e?.slug)),g=(0,a.useCallback)(async()=>{o(!0),await i(),o(!1)},[o,i]);return e?(0,Me.jsx)("div",{className:d()("googlesitekit-setup__footer",`googlesitekit-setup__footer--${e?.slug}`),children:(0,Me.jsx)(Gi.xA,{children:(0,Me.jsxs)(Gi.fI,{children:[(0,Me.jsx)(Gi.fh,{smSize:2,mdSize:4,lgSize:6,alignMiddle:!0,children:(0,Me.jsx)(Qe.A,{id:`setup-${e.slug}-cancel`,href:r,onClick:t,children:l?(0,O.__)("Back","google-site-kit"):(0,O.__)("Cancel","google-site-kit")})}),i&&(0,Me.jsx)(Gi.fh,{smSize:2,mdSize:4,lgSize:6,alignRight:!0,children:(0,Me.jsx)(Pe.SpinnerButton,{id:`setup-${e.slug}-complete`,onClick:g,disabled:!c||s,isSaving:s,children:(0,O.__)("Complete Setup","google-site-kit")})})]})})}):null}function ModuleSetup({moduleSlug:e}){const t=(0,Re.A)(),{navigateTo:i}=(0,u.useDispatch)(P.M),s=(0,l.i)("setupFlowRefresh"),[o]=(0,S.A)("showProgress"),n=(0,Fi.A)(),r=s&&e===fe.L1&&"true"===o,c=(0,u.useSelect)(t=>t(ei.i).getModule(e)),m=(0,u.useRegistry)(),p=(0,Oi.l6)(async s=>{if(await(0,Jt.LD)("module_setup"),r?await(0,_e.sx)(`${t}_setup`,"setup_flow_v3_complete_analytics_step"):await(0,_e.sx)("moduleSetup","complete_module_setup",e),s)return void i((0,Li.F)(s,{...n,...(0,Bi.u)(s)}));const{select:o,resolveSelect:a}=m;await a(h.O4).getSiteInfo();const l=o(h.O4).getAdminURL("googlesitekit-dashboard",{...n,notification:"authentication_success",slug:e});i(l)},[n,m,i,e,t,r]),f=c?.onCompleteSetup,_=(0,a.useCallback)(()=>f(m,p),[f,m,p]),v=(0,a.useCallback)(async()=>{await(0,_e.sx)("moduleSetup","cancel_module_setup",e)},[e]);if((0,g.A)(()=>{r?(0,_e.sx)(`${t}_setup`,"setup_flow_v3_view_analytics_step"):(0,_e.sx)("moduleSetup","view_module_setup",e)}),(0,g.A)(()=>{r&&globalThis.document.body.classList.add("googlesitekit-setup-flow")}),!c?.SetupComponent)return null;const{SetupComponent:y}=c,k=(0,Me.jsxs)(a.Fragment,{children:[r&&(0,Me.jsx)(zi.A,{currentSegment:3,totalSegments:6}),(0,Me.jsxs)("section",{className:"googlesitekit-setup__wrapper",children:[(0,Me.jsx)(Gi.xA,{children:(0,Me.jsx)(Gi.fI,{children:(0,Me.jsxs)(Gi.fh,{size:12,children:[!r&&(0,Me.jsx)("p",{className:"googlesitekit-setup__intro-title",children:(0,O.__)("Connect Service","google-site-kit")}),(0,Me.jsx)(y,{module:c,finishSetup:p})]})})}),!r&&(0,Me.jsx)(ModuleSetupFooter,{module:c,onCancel:v,onComplete:"function"==typeof f?_:void 0})]})]});return(0,Me.jsxs)(a.Fragment,{children:[(0,Me.jsxs)(je.A,{children:[r&&(0,Me.jsx)(Pi.A,{gaTrackingEventArgs:{category:`${t}_setup`,label:e}}),(0,Me.jsx)(Ce.A,{})]}),(0,Me.jsx)("div",{className:d()("googlesitekit-setup",...r?["googlesitekit-initial-setup",`googlesitekit-initial-setup--${e}`]:[]),children:r?k:(0,Me.jsx)(Gi.xA,{children:(0,Me.jsx)(Gi.fI,{children:(0,Me.jsx)(Gi.fh,{size:12,children:k})})})})]})}function DashboardEntryPoint({setupModuleSlug:e}){const t=(0,l.i)("proactiveUserEngagement");return e?t?(0,Me.jsxs)(a.Fragment,{children:[(0,Me.jsx)(ModuleSetup,{moduleSlug:e}),(0,Me.jsx)(Ie.A,{})]}):(0,Me.jsx)(ModuleSetup,{moduleSlug:e}):(0,Me.jsx)(DashboardMainApp,{})}ModuleSetupFooter.propTypes={module:r().shape({slug:r().string.isRequired,storeName:r().string.isRequired}).isRequired,onCancel:r().func.isRequired,onComplete:r().func},ModuleSetup.propTypes={moduleSlug:r().string.isRequired},DashboardEntryPoint.propTypes={setupModuleSlug:r().string};var Ui=i(63081),Vi=i(97015);(0,s.A)(async()=>{globalThis._googlesitekitLegacyData.admin.resetSession&&await(0,Jt.IL)();const e=document.getElementById("js-googlesitekit-main-dashboard");if(e){const{setupModuleSlug:t,viewOnly:i}=e.dataset;let s=p.bg;t||(s=i?p.Ax:p.jU),(0,o.render)(Vi.createElement(Ui.A,{viewContext:s},Vi.createElement(DashboardEntryPoint,{setupModuleSlug:t})),e)}})},2800(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(4452),o=i.n(s),n=i(63696),r=i(62457),a=i(97015);const __WEBPACK_DEFAULT_EXPORT__=({onChange:e,id:t,name:i,value:s,checked:l=!1,indeterminate:c=!1,disabled:d=!1,children:g,tabIndex:u,onKeyDown:m,loading:p=!1,alignLeft:h=!1,description:f,badge:_})=>{const v=(0,n.useRef)(null);(0,n.useEffect)(()=>{v.current&&(v.current.indeterminate=c)},[c,p]);const y=_?a.createElement("div",{className:"mdc-checkbox__label-wrapper"},a.createElement("label",{htmlFor:t},g),_):a.createElement("label",{htmlFor:t},g);return a.createElement("div",{className:"mdc-form-field"},a.createElement("div",{className:o()("mdc-checkbox",{"mdc-checkbox--disabled":d,"mdc-checkbox--align-left":h})},p?a.createElement(r.A,{style:{margin:"0"},isSaving:!0}):a.createElement(n.Fragment,null,a.createElement("input",{ref:v,"aria-checked":c?"mixed":""+(l?"true":"false"),className:"mdc-checkbox__native-control",type:"checkbox",id:t,name:i,value:s,checked:l,disabled:d,onChange:e,tabIndex:u,onKeyDown:m}),a.createElement("div",{className:"mdc-checkbox__background"},a.createElement("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 12 9"},a.createElement("path",{className:"mdc-checkbox__checkmark-path",d:"M2.08301 5.28834L3.55703 7.29507C4.24647 8.23368 5.5034 8.23368 6.19285 7.29507L10.083 1.99902",fill:"none",stroke:"none"})),a.createElement("div",{className:"mdc-checkbox__mixedmark"})))),!f&&y,f&&a.createElement("div",{className:"mdc-checkbox__content"},y,a.createElement("div",{className:"mdc-checkbox__description"},f)))}},33855(e,t,i){i.d(t,{v:()=>s});const s="core/pdf"},92917(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(68102),o=i(50539),n=i(37325),r=i(8732),a=i(68761),l=i(10740),c=i(97015);const __WEBPACK_DEFAULT_EXPORT__=({notificationID:e,dismissButton:t,ctaButton:i,gaTrackingEventArgs:d,...g})=>{const u=(0,a.A)(e,d?.category),{dismissNotification:m}=(0,o.useDispatch)(r.D);return c.createElement(l.xA,null,c.createElement(l.fI,null,c.createElement(l.fh,{size:12,alignMiddle:!0},c.createElement(n.A,(0,s.A)({dismissButton:{...t,onClick:async function(i){await(t?.onClick?.(i)),u.dismiss(d?.label,d?.value),m(e,{...t?.dismissOptions||{}})}},ctaButton:{...i,onClick:async function(t){u.confirm(d?.label,d?.value),await(i?.onClick?.(t)),i?.dismissOnClick&&m(e,{...i?.dismissOptions})}}},g)))))}},78422(e,t,i){i.d(t,{A:()=>m});var s=i(4452),o=i.n(s),n=i(15844),r=i(52684),a=i(63696),l=i(82871),c=i(50304),d=i(2478),g=i(97015);const u=(0,a.forwardRef)(({className:e="",children:t,collapsible:i=!1,defaultCollapsed:s,isCollapsed:m,Header:p,headerContents:h,Footer:f,noPadding:_=!1,widgetSlug:v},y)=>{const[k,E]=(0,a.useState)(!!s),A=(0,r.A)(u);function b(){i&&E(e=>!e)}(0,a.useEffect)(()=>{void 0!==m&&E(m)},[m]),(0,n.A)(()=>{void 0!==s&&void 0!==m&&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 "${v}" is controlled by its parent component, and the \`defaultCollapsed\` prop will be ignored.`)});const x=!!i&&void 0===m;let S;return x&&(S=k?(0,l.__)("Expand section","google-site-kit"):(0,l.__)("Hide section","google-site-kit")),g.createElement("div",{className:o()("googlesitekit-widget",`googlesitekit-widget--${v}`,{"googlesitekit-widget--no-padding":_},{"googlesitekit-widget--with-header":p},e),ref:y},p&&g.createElement("div",{"aria-expanded":x?!k:void 0,"aria-controls":x?`googlesitekit-widget-body-${A}`:void 0,"aria-label":x?S:void 0,className:o()("googlesitekit-widget__header",{"googlesitekit-widget__header--collapsible":i,"googlesitekit-widget__header--collapsed":k}),onClick:x?b:void 0,onKeyUp:x?e=>{"Enter"===e.key&&b()}:void 0,role:x?"button":void 0,tabIndex:x?0:void 0},g.createElement(p,null,g.createElement("div",{className:"googlesitekit-widget__header-inner"},!!i&&g.createElement(c.A,{marginLeft:4,marginRight:10},g.createElement(d.A,{width:12,height:12,className:o()("googlesitekit-widget__header-icon",{"googlesitekit-widget__header-icon--collapsed":k})})),h))),g.createElement("div",{className:o()("googlesitekit-widget__body",{"googlesitekit-widget__body--collapsed":!!k}),id:i?`googlesitekit-widget-body-${A}`:void 0},t),f&&g.createElement("div",{className:"googlesitekit-widget__footer"},g.createElement(f,null)))}),m=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:()=>d});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:d=!1,lgAlignRight:g=!1,smSize:u=0,smStart:m=0,smOrder:p=0,mdSize:h=0,mdStart:f=0,mdOrder:_=0,lgSize:v=0,lgStart:y=0,lgOrder:k=0,size:E=0,children:A,...b})=>r.createElement("div",(0,s.A)({},b,{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":d,"mdc-layout-grid__cell--align-right-desktop":g,[`mdc-layout-grid__cell--span-${E}`]:12>=E&&E>0,[`mdc-layout-grid__cell--span-${v}-desktop`]:12>=v&&v>0,[`mdc-layout-grid__cell--start-${y}-desktop`]:12>=y&&y>0,[`mdc-layout-grid__cell--order-${k}-desktop`]:12>=k&&k>0,[`mdc-layout-grid__cell--span-${h}-tablet`]:8>=h&&h>0,[`mdc-layout-grid__cell--start-${f}-tablet`]:8>=f&&f>0,[`mdc-layout-grid__cell--order-${_}-tablet`]:8>=_&&_>0,[`mdc-layout-grid__cell--span-${u}-phone`]:4>=u&&u>0,[`mdc-layout-grid__cell--start-${m}-phone`]:4>=m&&m>0,[`mdc-layout-grid__cell--order-${p}-phone`]:4>=p&&p>0})}),A);var l=i(63696),c=i(97015);const d=(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 g=i(97015);const u=(0,l.forwardRef)(({alignLeft:e=!1,fill:t=!1,className:i="",children:o,collapsed:r=!1,...a},l)=>g.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))},20996(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(4452),o=i.n(s),n=i(25804),r=i(33052),a=i(97015);const __WEBPACK_DEFAULT_EXPORT__=({baseClassName:e,className:t,title:i,headerLabel:s,infoTooltip:l,bodyClassName:c,children:d})=>a.createElement("div",{className:o()(e,t)},a.createElement("div",{className:`${e}__inner`},a.createElement("div",{className:`${e}__header`},a.createElement(r.A,{as:"h3",type:"title",size:"small",className:`${e}__title`},i),!!l&&a.createElement(n.A,{title:l}),!!s&&a.createElement(r.A,{as:"span",type:"body",size:"medium",className:`${e}__header-label`},s)),a.createElement("div",{className:o()(`${e}__body`,c)},d)))},21105(e,t,i){i.d(t,{F:()=>Tile});var s=i(4452),o=i.n(s),n=i(63696),r=i(82871),a=i(50539),l=i(74655),c=i(4751),d=i(44192),g=i(97345),u=i(13047),m=i(20996),p=i(97015);const Tile=({className:e,title:t,subtitle:i,infoTooltip:s,currentValue:h,previousValue:f,loading:_=!1,error:v,format:y,primary:k})=>{const E=(0,a.useSelect)(e=>e(g.oR).getDateRangeNumberOfDays(),[]);return p.createElement(m.A,{baseClassName:"googlesitekit-site-goals-tile",className:o()(e,{"googlesitekit-site-goals-tile--primary":k,"googlesitekit-site-goals-tile--primary__positive":k&&h>f,"googlesitekit-site-goals-tile--primary__negative":k&&h<f}),title:t,infoTooltip:s},_&&p.createElement("div",{className:"googlesitekit-site-goals-tile__loading"},p.createElement(c.A,{width:"100%",height:"24px"}),p.createElement(c.A,{width:"100%",height:"16px"})),!_&&!!v&&p.createElement("div",{className:"googlesitekit-site-goals-tile__error"},p.createElement(d.A,{moduleSlug:"analytics-4",error:v})),!_&&!v&&p.createElement(n.Fragment,null,p.createElement("div",{className:"googlesitekit-site-goals-tile__metric-container"},p.createElement("div",{className:"googlesitekit-site-goals-tile__metric"},(0,u.Eo)(h,y)),p.createElement("p",{className:"googlesitekit-site-goals-tile__subtext"},i)),p.createElement("div",{className:"googlesitekit-site-goals-tile__change-container"},p.createElement(l.A,{previousValue:f,currentValue:h}),E&&0!==f&&p.createElement("p",{className:"googlesitekit-site-goals-tile__comparison-label"},(0,r.sprintf)(/* translators: %d: number of days in the comparison period */ /* translators: %d: number of days in the comparison period */ (0,r.__)("Vs. prev. %d days","google-site-kit"),E)))))}},59711(e,t,i){i.d(t,{A5:()=>l,B7:()=>u,I4:()=>g,ZZ:()=>n,h1:()=>a,jZ:()=>m,md:()=>p,oJ:()=>d,su:()=>c,vC:()=>r});var s=i(99893),o=i(60831);const n="googlesitekit-site-goals-selection-panel-opened",r="site-goals-selection-form",a="site-goals-selected-drivers",l="site-goals-selected-visitor-engagement",c=1,d=6,g="site_goals_breakdown_notice",u=["googlesitekit_event_provider","googlesitekit_form_id"],m={[o.mM.ECOMMERCE]:[o.W6.TOP_TRAFFIC_CHANNELS,o.W6.TOP_TRAFFIC_CHANNELS_RATE,o.W6.VISITOR_TYPE],[o.mM.LEAD]:[o.W6.TOP_TRAFFIC_CHANNELS,o.W6.TOP_TRAFFIC_CHANNELS_RATE,o.W6.VISITOR_TYPE]},p={[o.mM.ECOMMERCE]:[s.nc.ADD_TO_CART],[o.mM.LEAD]:[]}},60831(e,t,i){i.d(t,{EG:()=>o,Ov:()=>n,W6:()=>a,mM:()=>r,pv:()=>l,qc:()=>s});const s=3,o=6,n=6,r={LEAD:"lead",ECOMMERCE:"ecommerce"},a={TOP_TRAFFIC_CHANNELS:"topTrafficChannels",TOP_TRAFFIC_CHANNELS_RATE:"topTrafficChannelsRate",TOP_PAGES:"topPages",TOP_AUTHORS:"topAuthors",VISITOR_TYPE:"visitorType",CITIES:"cities",COUNTRIES:"countries",DEVICE_TYPE:"deviceType"},l=["googlesitekit_post_author"]},99840(e,t,i){i.d(t,{RS:()=>X,mM:()=>l.mM,P1:()=>g,O:()=>ee,Mh:()=>te,eK:()=>ie,D1:()=>se});var s=i(68102),o=i(63696),n=i(82871),r=i(38432),a=i(97513),l=i(60831),c=i(97015);function d(e){return!!e.Component}const g=({drivers:e=[],hasExpandableRows:t,primaryEvent:i,goalType:g})=>{const u=(0,a.dv)()===a.mp,[m,p]=(0,o.useState)(!1),[h,f]=(0,o.useState)({}),_=(0,o.useCallback)(()=>{p(e=>!e)},[]),v=(0,o.useCallback)((e,t)=>{f(i=>i[e]===t?i:{...i,[e]:t})},[]),y=m&&!u?l.EG:l.qc,k=e.filter(d).slice(0,l.Ov),E=k.length>l.qc?Math.max(0,l.Ov-k.length):0,A="boolean"==typeof t?t:Object.values(h).some(Boolean);return c.createElement(o.Fragment,null,c.createElement("div",{className:"googlesitekit-site-goals-goal-drivers-section__tiles"},k.map(({Component:e,...t})=>c.createElement("div",{key:t.id,className:"googlesitekit-site-goals-goal-drivers-section__tile"},c.createElement(e,(0,s.A)({goalType:g,primaryEvent:i,limit:y,onExpandableRowsChange:v},t)))),Array.from({length:E}).map((e,t)=>c.createElement("div",{key:`empty-slot-${t}`,className:"googlesitekit-site-goals-goal-drivers-section__tile googlesitekit-site-goals-goal-drivers-section__tile--empty","aria-hidden":"true"}))),A&&!u&&c.createElement(r.A,{className:"googlesitekit-site-goals-goal-drivers-section__show-more",onClick:_,linkButton:!0},m?(0,n.__)("Show less","google-site-kit"):(0,n.__)("Show more","google-site-kit")))};var u=i(59711),m=i(50539),p=i(97345),h=i(4751),f=i(44192),_=i(20996),v=i(29785),y=i(97015);const k={sales:{page:(0,n.__)("No data to display: your page hasnât received any sales yet","google-site-kit"),site:(0,n.__)("No data to display: your site hasnât received any sales yet","google-site-kit")},leads:{page:(0,n.__)("No data to display: your page hasnât received any leads yet","google-site-kit"),site:(0,n.__)("No data to display: your site hasnât received any leads yet","google-site-kit")},visitors:{page:(0,n.__)("No data to display: your page hasnât received any visitors yet","google-site-kit"),site:(0,n.__)("No data to display: your site hasnât received any visitors yet","google-site-kit")}},E=({metricLabel:e})=>{const t=(0,m.useSelect)(e=>e(v.O4).getCurrentEntityURL(),[]),i=k[e];return y.createElement("span",null,t?i.page:i.site)};var A=i(97015);const b=({title:e,headerLabel:t,rows:i=[],loading:s=!1,error:o,limit:n,noDataMetricLabel:a,zeroState:l})=>{const c=i.slice(0,n||i.length);return A.createElement(_.A,{baseClassName:"googlesitekit-table-tile",title:e,headerLabel:t},s&&A.createElement("div",{className:"googlesitekit-table-tile__loading"},A.createElement(h.A,{width:"100%",height:"18px"}),A.createElement(h.A,{width:"100%",height:"18px"}),A.createElement(h.A,{width:"100%",height:"18px"})),!s&&!!o&&A.createElement("div",{className:"googlesitekit-table-tile__error"},A.createElement(f.A,{moduleSlug:"analytics-4",error:o})),!s&&!o&&0===i.length&&A.createElement("div",{className:"googlesitekit-table-tile__zero-state"},l||A.createElement(E,{metricLabel:a||"visitors"})),!s&&!o&&i.length>0&&A.createElement("div",{className:"googlesitekit-table-tile__rows"},c.map((e,t)=>A.createElement("div",{key:`${e.label}-${t}`,className:"googlesitekit-table-tile__row"},A.createElement("div",{className:"googlesitekit-table-tile__cell googlesitekit-table-tile__cell--label"},e.url?A.createElement(r.A,{href:e.url,title:e.label,external:!0,hideExternalIndicator:!0},e.label):A.createElement("span",null,e.label)),A.createElement("div",{className:"googlesitekit-table-tile__cell googlesitekit-table-tile__cell--value"},e.value)))))};function x(e){const t=Array.isArray(e)?e:[e];return Array.from(new Set(t.filter(e=>Boolean(e))))}function S(e){if(e.length)return{eventName:{filterType:"inListFilter",value:e}}}var M=i(99893),I=i(13047),w=i(97015);const j=({title:e="",goalType:t,limit:i,rows:s,loading:r,error:a,primaryEvent:c,onExpandableRowsChange:d})=>{const g=(0,m.useSelect)(e=>e(p.oR).getDateRangeDates(),[]),u=(0,o.useMemo)(()=>{const e=x(c);if(!g||!e.length)return;const i=S(e);return{...g,dimensions:["city"],dimensionFilters:{...i||{},city:{filterType:"emptyFilter",notExpression:!0}},metrics:[{name:"eventCount"}],orderby:[{metric:{metricName:"eventCount"},desc:!0}],limit:l.EG,keepEmptyRows:!1,reportID:`analytics-4_site-goals_cities_${t}`}},[g,t,c]),h=(0,m.useSelect)(e=>u?e(M.K9).getReport(u):void 0,[u]),f=(0,m.useSelect)(e=>u?e(M.K9).getErrorForSelector("getReport",[u]):void 0,[u]),_=(0,m.useSelect)(e=>!!u&&!e(M.K9).hasFinishedResolution("getReport",[u]),[u]),v=h?.rows||[],y=v.reduce((e,t)=>e+parseFloat(String(t.metricValues?.[0]?.value??0)),0),k=v.map(e=>{const t=e.dimensionValues?.[0]?.value||"",i=parseFloat(String(e.metricValues?.[0]?.value??0));return{label:t||(0,n.__)("(not set)","google-site-kit"),value:(0,I.Eo)(y>0?i/y:0,{style:"percent",signDisplay:"never",maximumFractionDigits:1})}}),E=s||k,A=r??_,j=a??f;(0,o.useEffect)(()=>{d?.(l.W6.CITIES,E.length>l.qc)},[d,E.length]);const C=t===l.mM.ECOMMERCE?"sales":"leads";return w.createElement(b,{title:e,rows:E,loading:A,error:j,limit:i,noDataMetricLabel:C})};var C=i(97015);const N=({title:e="",goalType:t,limit:i,rows:s,loading:r,error:a,primaryEvent:c,onExpandableRowsChange:d})=>{const g=(0,m.useSelect)(e=>e(p.oR).getDateRangeDates(),[]),u=(0,o.useMemo)(()=>{const e=x(c);if(!g||!e.length)return;const i=S(e);return{...g,dimensions:["country"],dimensionFilters:{...i||{},country:{filterType:"emptyFilter",notExpression:!0}},metrics:[{name:"eventCount"}],orderby:[{metric:{metricName:"eventCount"},desc:!0}],limit:l.EG,keepEmptyRows:!1,reportID:`analytics-4_site-goals_countries_${t}`}},[g,t,c]),h=(0,m.useSelect)(e=>u?e(M.K9).getReport(u):void 0,[u]),f=(0,m.useSelect)(e=>u?e(M.K9).getErrorForSelector("getReport",[u]):void 0,[u]),_=(0,m.useSelect)(e=>!!u&&!e(M.K9).hasFinishedResolution("getReport",[u]),[u]),v=h?.rows||[],y=v.reduce((e,t)=>e+parseFloat(String(t.metricValues?.[0]?.value??0)),0),k=v.map(e=>{const t=e.dimensionValues?.[0]?.value||"",i=parseFloat(String(e.metricValues?.[0]?.value??0));return{label:t||(0,n.__)("(not set)","google-site-kit"),value:(0,I.Eo)(y>0?i/y:0,{style:"percent",signDisplay:"never",maximumFractionDigits:1})}}),E=s||k,A=r??_,w=a??f;(0,o.useEffect)(()=>{d?.(l.W6.COUNTRIES,E.length>l.qc)},[d,E.length]);const j=t===l.mM.ECOMMERCE?"sales":"leads";return C.createElement(b,{title:e,rows:E,loading:A,error:w,limit:i,noDataMetricLabel:j})};var T=i(97015);const D=({title:e="",goalType:t,limit:i,rows:s,loading:r,error:a,primaryEvent:c,onExpandableRowsChange:d})=>{const g=(0,m.useSelect)(e=>e(p.oR).getDateRangeDates(),[]),u=(0,o.useMemo)(()=>{const e=x(c);if(!g||!e.length)return;const i=S(e);return{...g,dimensions:["deviceCategory"],dimensionFilters:i,metrics:[{name:"eventCount"}],orderby:[{metric:{metricName:"eventCount"},desc:!0}],limit:l.EG,keepEmptyRows:!1,reportID:`analytics-4_site-goals_device-type_${t}`}},[g,t,c]),h=(0,m.useSelect)(e=>u?e(M.K9).getReport(u):void 0,[u]),f=(0,m.useSelect)(e=>u?e(M.K9).getErrorForSelector("getReport",[u]):void 0,[u]),_=(0,m.useSelect)(e=>!!u&&!e(M.K9).hasFinishedResolution("getReport",[u]),[u]),v=h?.rows||[],y=v.reduce((e,t)=>e+parseFloat(String(t.metricValues?.[0]?.value??0)),0),k=v.map(e=>{const t=e.dimensionValues?.[0]?.value||"",i=parseFloat(String(e.metricValues?.[0]?.value??0));return{label:t||(0,n.__)("(not set)","google-site-kit"),value:(0,I.Eo)(y>0?i/y:0,{style:"percent",signDisplay:"never",maximumFractionDigits:1})}}),E=s||k,A=r??_,w=a??f;(0,o.useEffect)(()=>{d?.(l.W6.DEVICE_TYPE,E.length>l.qc)},[d,E.length]);const j=t===l.mM.ECOMMERCE?"sales":"leads";return T.createElement(b,{title:e,rows:E,loading:A,error:w,limit:i,noDataMetricLabel:j})};var R=i(11999),O=i(84381),L=i(13137),B=i(97015);const z=({hasMissingCustomDimensions:e,isGatheringData:t,customDimensionsLoading:i,onCreateCustomDimensions:s})=>e?B.createElement("div",{className:"googlesitekit-table-tile__custom-dimensions-missing"},B.createElement("p",{className:"googlesitekit-table-tile__custom-dimensions-missing-title"},(0,n.__)("No data to show","google-site-kit")),B.createElement("p",{className:"googlesitekit-table-tile__custom-dimensions-missing-description"},(0,n.__)("Update Analytics to track metric","google-site-kit")),B.createElement("div",{className:"googlesitekit-table-tile__custom-dimensions-missing-actions"},B.createElement("button",{type:"button",className:"googlesitekit-table-tile__custom-dimensions-missing-button",onClick:s,disabled:i},(0,n.__)("Update","google-site-kit")))):t?B.createElement("span",null,(0,n.__)("Setup successful: Analytics is gathering data for this metric","google-site-kit")):null;var P=i(97015);const F=({title:e="",goalType:t,limit:i,primaryEvent:s,onExpandableRowsChange:r})=>{const a=(0,m.useSelect)(e=>e(p.oR).getDateRangeDates(),[]),c=(0,o.useMemo)(()=>x(s),[s]),d=(0,o.useMemo)(()=>S(c),[c]),g=(0,o.useMemo)(()=>{if(a&&c.length)return{...a,dimensions:["customEvent:googlesitekit_post_author","eventName"],dimensionFilters:{...d||{},"customEvent:googlesitekit_post_author":{filterType:"emptyFilter",notExpression:!0}},metrics:[{name:"eventCount"}],orderby:[{metric:{metricName:"eventCount"},desc:!0}],limit:l.EG,keepEmptyRows:!1,reportID:`analytics-4_site-goals_top-authors_${t}`}},[a,d,c,t]),u=(0,o.useMemo)(()=>{if(a&&c.length)return{...a,dimensionFilters:d,metrics:[{name:"eventCount"}],reportID:`analytics-4_site-goals_top-authors-total_${t}`}},[a,d,c,t]),{hasCustomDimensions:h,customDimensionsCreationErrors:f,hasAnalyticsEditScope:_,isSyncingAvailableCustomDimensions:v,loading:y,isGatheringData:k,hasInvalidCustomDimensionError:E,invalidCustomDimensionReportOptions:A,redirectURL:w}=(0,O.A)({dimensions:l.pv,reportOptions:g}),j=!0===h&&!0!==k,C=j?g:void 0,N=j?u:void 0,T=[N,C].filter(Boolean),D=(0,m.useSelect)(e=>C?e(M.K9).getReport(C):void 0,[C]),B=(0,m.useSelect)(e=>N?e(M.K9).getReport(N):void 0,[N]),F=(0,m.useSelect)(e=>e(M.K9).getFirstReportError(...T),[N,C]),G=(0,m.useSelect)(e=>e(M.K9).areReportsLoading(...T),[N,C]),{clearSelectorError:U,createCustomDimensions:V,scheduleSyncAvailableCustomDimensions:W}=(0,m.useDispatch)(M.K9),{setValues:H}=(0,m.useDispatch)(R.s),{setPermissionScopeError:q}=(0,m.useDispatch)(p.oR),Y=(0,o.useCallback)(()=>{if(!y){if(!_)return H(M.Kr,{autoSubmit:!0,customDimensions:l.pv}),void q({code:L.db,message:(0,n.__)("Additional permissions are required to create new Analytics custom dimensions","google-site-kit"),data:{status:403,scopes:[M.S9],skipModal:!0,redirectURL:w}});H(M.Kr,{customDimensions:l.pv}),V(l.pv)}},[V,y,_,w,q,H]);(0,o.useEffect)(()=>{E&&!v&&(async()=>{await Promise.all(A.map(e=>U("getReport",[e]))),W()})()},[U,E,A,v,W]);const Z=D?.rows||[],Q=parseFloat(String(B?.rows?.[0]?.metricValues?.[0]?.value??0)),K=!1===h,X=Z.slice(0,l.EG).map(e=>{const t=e.dimensionValues?.[0]?.value||"",i=parseFloat(String(e.metricValues?.[0]?.value??0));return{label:t||(0,n.__)("(not set)","google-site-kit"),value:(0,I.Eo)(Q>0?i/Q:0,{style:"percent",signDisplay:"never",maximumFractionDigits:1})}}),$=y||G||void 0===k,J=f?.[0]??F;(0,o.useEffect)(()=>{r?.(l.W6.TOP_AUTHORS,X.length>l.qc)},[r,X.length]);const ee=t===l.mM.ECOMMERCE?"sales":"leads",te=K||k?P.createElement(z,{hasMissingCustomDimensions:K,isGatheringData:k,customDimensionsLoading:y,onCreateCustomDimensions:Y}):void 0;return P.createElement(b,{title:e,rows:X,loading:$,error:J,limit:i,noDataMetricLabel:ee,zeroState:te})};var G=i(32981),U=i(97015);const V=({title:e="",goalType:t,limit:i,rows:s,loading:r,error:a,primaryEvent:c,onExpandableRowsChange:d})=>{const g=(0,n.__)("Events","google-site-kit"),u=(0,m.useSelect)(e=>e(p.oR).getDateRangeDates(),[]),h=(0,o.useMemo)(()=>{const e=x(c);if(u&&e.length)return{...u,dimensions:["pagePath","eventName"],dimensionFilters:S(e),metrics:[{name:"eventCount"}],orderby:[{metric:{metricName:"eventCount"},desc:!0}],limit:l.EG,keepEmptyRows:!1,reportID:`analytics-4_site-goals_top-pages_${t}`}},[u,c,t]),f=(0,m.useSelect)(e=>h?e(M.K9).getReport(h):void 0,[h]),_=(0,m.useSelect)(e=>f&&h?e(M.K9).getPageTitles(f,h):void 0,[f,h]),v=(0,m.useSelect)(e=>h?e(M.K9).getErrorForSelector("getReport",[h]):void 0,[h]),y=(0,m.useSelect)(e=>{if(!h)return!1;if(!e(M.K9).hasFinishedResolution("getReport",[h]))return!0;return(f?.rows||[]).length>0&&void 0===_},[f,h,_]),k=(f?.rows||[]).slice(0,l.EG).map(e=>{const t=e.dimensionValues?.[0]?.value||"",i=_?.[t],s=i?(0,G.Ii)(i).trim():void 0,o=parseFloat(String(e.metricValues?.[0]?.value??0));return{label:s&&s!==(0,n.__)("(unknown)","google-site-kit")?s:t,value:(0,I.Eo)(o),pagePath:t}}),E=s||k,A=r??y,w=a??v,j=(0,o.useMemo)(()=>E.map(e=>e.pagePath).filter(Boolean),[E]),C=(0,m.useSelect)(e=>{if(!j.length)return{};const t=e(p.oR).getDateRangeDates();if(!t)return{};const i=e(M.K9);return j.reduce((e,s)=>(e[s]=i.getServiceReportURL("all-pages-and-screens",{filters:{unifiedPagePathScreen:s},dates:t}),e),{})},[j]),N=(0,o.useMemo)(()=>E.map(e=>({...e,url:e.pagePath?C[e.pagePath]:e.url})),[C,E]);(0,o.useEffect)(()=>{d?.(l.W6.TOP_PAGES,E.length>l.qc)},[d,E.length]);const T=t===l.mM.ECOMMERCE?"sales":"leads";return U.createElement(b,{title:e,headerLabel:g,rows:N,loading:A,error:w,limit:i,noDataMetricLabel:T})};var W=i(97015);const H=({title:e="",goalType:t,limit:i,rows:s,loading:r,error:a,primaryEvent:c,onExpandableRowsChange:d})=>{const g=(0,m.useSelect)(e=>e(p.oR).getDateRangeDates(),[]),u=(0,o.useMemo)(()=>x(c),[c]),h=(0,o.useMemo)(()=>S(u),[u]),f=(0,o.useMemo)(()=>{if(g&&u.length)return{...g,dimensions:["sessionDefaultChannelGroup"],dimensionFilters:h,metrics:[{name:"eventCount"}],orderby:[{metric:{metricName:"eventCount"},desc:!0}],limit:l.EG,keepEmptyRows:!1,reportID:`analytics-4_site-goals_top-traffic-channels_${t}`}},[g,h,u,t]),_=(0,o.useMemo)(()=>{if(g&&u.length)return{...g,dimensionFilters:h,metrics:[{name:"eventCount"}],reportID:`analytics-4_site-goals_top-traffic-channels-total_${t}`}},[g,h,u,t]),v=(0,m.useSelect)(e=>f?e(M.K9).getReport(f):void 0,[f]),y=(0,m.useSelect)(e=>_?e(M.K9).getReport(_):void 0,[_]),k=(0,m.useSelect)(e=>f&&_?e(M.K9).getFirstReportError(f,_):void 0,[f,_]),E=(0,m.useSelect)(e=>!(!f||!_)&&e(M.K9).areReportsLoading(f,_),[f,_]),A=v?.rows||[],w=parseFloat(String(y?.rows?.[0]?.metricValues?.[0]?.value??0))||A.reduce((e,t)=>e+parseFloat(String(t.metricValues?.[0]?.value??0)),0),j=A.map(e=>{const t=e.dimensionValues?.[0]?.value||"-",i=parseFloat(String(e.metricValues?.[0]?.value??0));return{label:t||(0,n.__)("(not set)","google-site-kit"),value:(0,I.Eo)(w>0?i/w:0,{style:"percent",signDisplay:"never",maximumFractionDigits:1})}}),C=s||j,N=r??E,T=a??k;(0,o.useEffect)(()=>{d?.(l.W6.TOP_TRAFFIC_CHANNELS,C.length>l.qc)},[d,C.length]);const D=t===l.mM.ECOMMERCE?"sales":"leads";return W.createElement(b,{title:e,rows:C,loading:N,error:T,limit:i,noDataMetricLabel:D})};var q=i(97015);const Y=({title:e="",goalType:t,limit:i,rows:s,loading:r,error:a,primaryEvent:c,onExpandableRowsChange:d})=>{const g=(0,m.useSelect)(e=>e(p.oR).getDateRangeDates(),[]),u=(0,o.useMemo)(()=>{const e=x(c);if(!g||!e.length)return;const i=S(e);return{...g,dimensions:["sessionDefaultChannelGroup"],dimensionFilters:i,metrics:[{name:"eventCount"},{name:"sessions"}],orderby:[{metric:{metricName:"eventCount"},desc:!0}],limit:l.EG,keepEmptyRows:!1,reportID:`analytics-4_site-goals_top-traffic-channels-rate_${t}`}},[g,t,c]),h=(0,m.useSelect)(e=>u?e(M.K9).getReport(u):void 0,[u]),f=(0,m.useSelect)(e=>u?e(M.K9).getErrorForSelector("getReport",[u]):void 0,[u]),_=(0,m.useSelect)(e=>!!u&&!e(M.K9).hasFinishedResolution("getReport",[u]),[u]),v=(h?.rows||[]).map(e=>{const t=e.dimensionValues?.[0]?.value||"-",i=parseFloat(String(e.metricValues?.[0]?.value??0)),s=parseFloat(String(e.metricValues?.[1]?.value??0)),o=s>0?i/s:0;return{label:t||(0,n.__)("(not set)","google-site-kit"),value:(0,I.Eo)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1})}}),y=s||v,k=r??_,E=a??f;(0,o.useEffect)(()=>{d?.(l.W6.TOP_TRAFFIC_CHANNELS_RATE,y.length>l.qc)},[d,y.length]);const A=t===l.mM.ECOMMERCE?"sales":"leads";return q.createElement(b,{title:e,rows:y,loading:k,error:E,limit:i,noDataMetricLabel:A})};var Z=i(97015);const Q={new:(0,n.__)("New visitors","google-site-kit"),returning:(0,n.__)("Returning visitors","google-site-kit")},K=({title:e="",goalType:t,limit:i,rows:s,loading:n,error:r,primaryEvent:a,onExpandableRowsChange:c})=>{const d=(0,m.useSelect)(e=>e(p.oR).getDateRangeDates(),[]),g=(0,o.useMemo)(()=>x(a),[a]),u=(0,o.useMemo)(()=>S(g),[g]),h=(0,o.useMemo)(()=>{if(d&&g.length)return{...d,dimensions:["newVsReturning"],dimensionFilters:u,metrics:[{name:"eventCount"}],orderby:[{metric:{metricName:"eventCount"},desc:!0}],limit:l.EG,keepEmptyRows:!1,reportID:`analytics-4_site-goals_visitor-type_${t}`}},[d,u,g,t]),f=(0,m.useSelect)(e=>h?e(M.K9).getReport(h):void 0,[h]),_=(0,m.useSelect)(e=>h?e(M.K9).getErrorForSelector("getReport",[h]):void 0,[h]),v=(0,m.useSelect)(e=>!!h&&!e(M.K9).hasFinishedResolution("getReport",[h]),[h]),y=f?.rows||[],k=y.reduce((e,t)=>e+parseFloat(String(t.metricValues?.[0]?.value??0)),0),E=y.map(e=>{const t=e.dimensionValues?.[0]?.value||"",i=t,s=parseFloat(String(e.metricValues?.[0]?.value??0));return{label:Q[i]||t||"-",value:(0,I.Eo)(k>0?s/k:0,{style:"percent",signDisplay:"never",maximumFractionDigits:1})}}),A=s||E,w=n??v,j=r??_;(0,o.useEffect)(()=>{c?.(l.W6.VISITOR_TYPE,A.length>l.qc)},[c,A.length]);const C=t===l.mM.ECOMMERCE?"sales":"leads";return Z.createElement(b,{title:e,rows:A,loading:w,error:j,limit:i,noDataMetricLabel:C})},X={[l.W6.TOP_TRAFFIC_CHANNELS]:{id:l.W6.TOP_TRAFFIC_CHANNELS,order:10,defaultEnabled:!0,copyByGoalType:{[l.mM.ECOMMERCE]:{title:(0,n.__)("Top traffic channels by total sales","google-site-kit"),description:(0,n.__)("Where do most of your buyers come from?","google-site-kit")},[l.mM.LEAD]:{title:(0,n.__)("Top traffic channels by total form completions","google-site-kit"),description:(0,n.__)("Where do most of your leads come from?","google-site-kit")}},Component:H},[l.W6.TOP_TRAFFIC_CHANNELS_RATE]:{id:l.W6.TOP_TRAFFIC_CHANNELS_RATE,order:10,defaultEnabled:!0,copyByGoalType:{[l.mM.ECOMMERCE]:{title:(0,n.__)("Top traffic channels by sales rate","google-site-kit"),description:(0,n.__)("Which channels have the highest percentage of buyers?","google-site-kit")},[l.mM.LEAD]:{title:(0,n.__)("Top traffic channels by form completion rate","google-site-kit"),description:(0,n.__)("Which channels are most efficient at capturing leads?","google-site-kit")}},Component:Y},[l.W6.TOP_PAGES]:{id:l.W6.TOP_PAGES,order:10,defaultEnabled:!1,copyByGoalType:{[l.mM.ECOMMERCE]:{title:(0,n.__)("Top pages driving sales","google-site-kit"),description:(0,n.__)("Which pages bring in the most sales?","google-site-kit")},[l.mM.LEAD]:{title:(0,n.__)("Top pages driving leads","google-site-kit"),description:(0,n.__)("Which pages get people to take action?","google-site-kit")}},Component:V},[l.W6.TOP_AUTHORS]:{id:l.W6.TOP_AUTHORS,order:10,defaultEnabled:!1,copyByGoalType:{[l.mM.ECOMMERCE]:{title:(0,n.__)("Top authors driving sales","google-site-kit"),description:(0,n.__)("Whose content is best at converting buyers?","google-site-kit")},[l.mM.LEAD]:{title:(0,n.__)("Top authors driving leads","google-site-kit"),description:(0,n.__)("Whose content is best at converting readers?","google-site-kit")}},Component:F,requiredCustomDimensions:l.pv},[l.W6.VISITOR_TYPE]:{id:l.W6.VISITOR_TYPE,order:10,defaultEnabled:!0,copyByGoalType:{[l.mM.ECOMMERCE]:{title:(0,n.__)("Sales by visitor type","google-site-kit"),description:(0,n.__)("Which types of visitors are most likely to buy?","google-site-kit")},[l.mM.LEAD]:{title:(0,n.__)("Leads by visitor type","google-site-kit"),description:(0,n.__)("Which types of visitors are most likely to reach out?","google-site-kit")}},Component:K},[l.W6.CITIES]:{id:l.W6.CITIES,order:10,defaultEnabled:!1,copyByGoalType:{[l.mM.ECOMMERCE]:{title:(0,n.__)("Sales by cities","google-site-kit"),description:(0,n.__)("Which cities bring in the most buyers?","google-site-kit")},[l.mM.LEAD]:{title:(0,n.__)("Leads by cities","google-site-kit"),description:(0,n.__)("Which cities are people reaching out from?","google-site-kit")}},Component:j},[l.W6.COUNTRIES]:{id:l.W6.COUNTRIES,order:10,defaultEnabled:!1,copyByGoalType:{[l.mM.ECOMMERCE]:{title:(0,n.__)("Sales by countries","google-site-kit"),description:(0,n.__)("Which countries bring in the most buyers?","google-site-kit")},[l.mM.LEAD]:{title:(0,n.__)("Leads by countries","google-site-kit"),description:(0,n.__)("Which countries are people reaching out from?","google-site-kit")}},Component:N},[l.W6.DEVICE_TYPE]:{id:l.W6.DEVICE_TYPE,order:10,defaultEnabled:!1,copyByGoalType:{[l.mM.ECOMMERCE]:{title:(0,n.__)("Sales by device type","google-site-kit"),description:(0,n.__)("Are people buying more on mobile or desktop?","google-site-kit")},[l.mM.LEAD]:{title:(0,n.__)("Leads by device type","google-site-kit"),description:(0,n.__)("What devices do people use when they take action?","google-site-kit")}},Component:D}},$=new Set(Object.keys(X));function J(e,t){return X[t].copyByGoalType[e]}function ee(e){return function(e){return Object.values(X).filter(t=>Boolean(t.copyByGoalType[e])).sort((e,t)=>e.order-t.order)}(e).map(t=>{const i=J(e,t.id);if(!i)return null;const s={id:t.id,order:t.order,title:i.title,description:i.description};return t.requiredCustomDimensions&&(s.requiredCustomDimensions=t.requiredCustomDimensions),s}).filter(e=>Boolean(e))}function te(e,t){return J(e,t)?.title}function ie(e=void 0,t=l.mM.ECOMMERCE){if(void 0===e)return function(e){const t=Object.values(X).filter(e=>e.defaultEnabled).sort((e,t)=>e.order-t.order).map(e=>e.id).slice(0,u.oJ);return t.length?t:ie(u.jZ[e],e)}(t);if(!e.length)return[];const i=[];return e.forEach(e=>{var t;"string"==typeof e&&(t=e,$.has(t))&&!i.includes(e)&&i.push(e)}),i.slice(0,u.oJ)}function se(e){const t=e||u.jZ,i=t?.[l.mM.ECOMMERCE],s=t?.[l.mM.LEAD];return{[l.mM.ECOMMERCE]:ie(void 0!==i?i:void 0,l.mM.ECOMMERCE),[l.mM.LEAD]:ie(void 0!==s?s:void 0,l.mM.LEAD)}}},30738(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(82871),o=i(50539),n=i(37325),r=i(3749),a=i(97345),l=i(4124),c=i(59711),d=i(28332),g=i(99893),u=i(97015);const __WEBPACK_DEFAULT_EXPORT__=({title:e,description:t,ctaLabel:i,className:m,onDismissComplete:p})=>{const h=(0,o.useSelect)(e=>e(a.oR).isItemDismissed(d.dM),[]),f=(0,o.useSelect)(e=>e(g.K9).hasCustomDimensions(c.B7),[]),_=(0,o.useSelect)(e=>e(a.oR).isItemDismissed(c.I4),[]),{dismissItem:v}=(0,o.useDispatch)(a.oR);if((0,l.A)())return null;if(void 0===h||void 0===f||void 0===_)return null;if(!h||f||_)return null;return u.createElement(n.A,{className:m,type:r.L.NEW,title:e,description:t,ctaButton:{label:i,onClick:()=>{}},dismissButton:{label:(0,s.__)("No thanks","google-site-kit"),onClick:async function(){await v(c.I4),p?.()}}})}},28332(e,t,i){i.d(t,{dM:()=>G,Ay:()=>IntroModal});var s=i(63696),o=i(50539),n=i(20697),r=i(7972),a=i(97345),l=i(68761),c=i(97513),d=i(59711),g=i(82871),u=i(69908);const m=".googlesitekit-site-goals-primary-action";function p(){return new Promise(e=>{let t=5e3;!function i(){globalThis.document.querySelector(m)||t<=0?e(!0):(t-=250,globalThis.setTimeout(i,250))}()})}const h={offset:-2,spotlightPadding:0,styles:{spotlight:{boxSizing:"content-box",paddingTop:"24px",paddingBottom:"24px",paddingInlineEnd:"24px",marginTop:"-24px",marginInlineEnd:"-24px"}},placement:"top",isResponsive:!0};function f(e){return`${e}_site-goals-tour`}var _,v,y,k=i(99893),E=i(11883),A=i(13606),b=i(14283),x=i(38432);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},S.apply(null,arguments)}const M=e=>s.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 491 179"},e),s.createElement("mask",{id:"site-goals-intro-modal-ecommerce_svg__b",width:491,height:180,x:0,y:-1,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},_||(_=s.createElement("path",{fill:"url(#site-goals-intro-modal-ecommerce_svg__a)",d:"M0-1h491v180H0z"}))),v||(v=s.createElement("g",{mask:"url(#site-goals-intro-modal-ecommerce_svg__b)"},s.createElement("path",{fill:"#93C9A8",d:"M298.136-96.556c22.315 10.16 34.483 31.672 47.55 50.432 12.133 17.42 5.531 44.216 8.267 65.246 3.068 23.586 13.484 45.1 5.366 70.736-5.233 11.492-11.909 21.871-19.717 31.02-22.059 25.85-49.651 14.389-82.722 17.968-22.73 2.46-43.683 31.549-94.647 13.752s-55.006-84.939-35.592-125.386-16.18-59.053 16.178-106.78S255.1-116.154 298.136-96.558",opacity:.15}),s.createElement("g",{filter:"url(#site-goals-intro-modal-ecommerce_svg__c)"},s.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M319.125 51.02c6.741 0 12.206 5.465 12.206 12.206V191.34c0 6.741-5.465 12.205-12.206 12.205h-148.51c-6.74 0-12.205-5.464-12.205-12.205V63.226c0-6.741 5.465-12.205 12.205-12.205z",clipRule:"evenodd"})),s.createElement("path",{fill:"#EBEEF0",fillRule:"evenodd",d:"M314.481 74.439a3.547 3.547 0 0 1 3.547 3.546v33.698a3.547 3.547 0 0 1-3.547 3.547H175.258a3.547 3.547 0 0 1-3.547-3.547V77.985a3.547 3.547 0 0 1 3.547-3.546z",clipRule:"evenodd"}),s.createElement("rect",{width:47.886,height:12.415,x:234.672,y:124.623,fill:"#EBEEF0",rx:6.207}),s.createElement("rect",{width:83.357,height:4.434,x:234.672,y:144.132,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:52.319,height:4.434,x:171.711,y:144.132,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:52.319,height:4.434,x:171.711,y:134.377,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:52.319,height:4.434,x:171.711,y:153.886,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:52.319,height:4.434,x:171.711,y:124.623,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:83.357,height:4.434,x:234.672,y:153.886,fill:"#EBEEF0",rx:2.217}),s.createElement("g",{filter:"url(#site-goals-intro-modal-ecommerce_svg__d)"},s.createElement("circle",{cx:329.826,cy:55.734,r:23.174,fill:"#BED4FF"}),s.createElement("path",{fill:"#446199",d:"M330.142 59.028q.986 0 1.688-.703a2.3 2.3 0 0 0 .701-1.686q0-.986-.701-1.688a2.3 2.3 0 0 0-1.688-.701 2.3 2.3 0 0 0-1.687.7 2.3 2.3 0 0 0-.702 1.689q0 .986.702 1.686.702.703 1.687.703M336.831 65l-4.27-4.27a4.3 4.3 0 0 1-1.119.507q-.613.18-1.3.18-1.971 0-3.374-1.404t-1.404-3.374 1.404-3.375q1.403-1.403 3.374-1.403t3.374 1.403q1.404 1.403 1.404 3.375 0 .686-.179 1.284a4.3 4.3 0 0 1-.508 1.105l3.076 3.075v-10.57l-4.718-5.645h-9.616V65zm-13.856 2.39a2.3 2.3 0 0 1-1.687-.702 2.3 2.3 0 0 1-.702-1.688V45.888q0-.986.702-1.688a2.3 2.3 0 0 1 1.687-.701h10.751l5.972 7.167V65q0 .986-.701 1.688a2.3 2.3 0 0 1-1.688.701z"}),s.createElement("circle",{cx:198.763,cy:121.37,r:12.153,fill:"#BED4FF"}),s.createElement("circle",{cx:198.764,cy:121.37,r:5.966,stroke:"#446199",strokeWidth:1.326}),s.createElement("path",{stroke:"#446199",strokeLinecap:"round",strokeWidth:1.326,d:"m200.658 123.264-3.788-3.788M196.869 123.264l3.788-3.788"}),s.createElement("circle",{cx:162.989,cy:85.013,r:21.989,fill:"#BED4FF"}),s.createElement("path",{fill:"#446199",d:"M158.033 96.097a1.92 1.92 0 0 1-1.409-.586 1.92 1.92 0 0 1-.587-1.41q0-.825.587-1.41.585-.587 1.409-.587a1.92 1.92 0 0 1 1.409.586q.587.588.587 1.41a1.92 1.92 0 0 1-.587 1.41q-.585.587-1.409.587m9.981 0a1.92 1.92 0 0 1-1.41-.586 1.92 1.92 0 0 1-.587-1.41q0-.825.587-1.41.586-.587 1.41-.587.823 0 1.41.586.586.588.586 1.41 0 .825-.586 1.41-.587.587-1.41.587m-10.829-15.97 2.395 4.991h6.986l2.745-4.99zm-.948-1.995h14.721q.674 0 .923.499.25.499-.025 1.048l-3.543 6.387q-.274.499-.724.774a1.9 1.9 0 0 1-1.023.274h-7.435l-1.098 1.996h11.977v1.996h-11.977q-1.122 0-1.697-.986-.574-.985-.049-1.958l1.347-2.445-3.593-7.585h-1.996v-1.996h3.244z"})))),y||(y=s.createElement("defs",null,s.createElement("filter",{id:"site-goals-intro-modal-ecommerce_svg__c",width:201.299,height:180.901,x:144.222,y:40.379,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},s.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.createElement("feOffset",{dy:3.547}),s.createElement("feGaussianBlur",{stdDeviation:7.094}),s.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),s.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),s.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_4811_26525"}),s.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_4811_26525",result:"shape"})),s.createElement("filter",{id:"site-goals-intro-modal-ecommerce_svg__d",width:240.377,height:129.34,x:126.812,y:21.919,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},s.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.createElement("feOffset",{dy:3.547}),s.createElement("feGaussianBlur",{stdDeviation:7.094}),s.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),s.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),s.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_4811_26525"}),s.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_4811_26525",result:"shape"})),s.createElement("linearGradient",{id:"site-goals-intro-modal-ecommerce_svg__a",x1:245.5,x2:245.5,y1:-1,y2:179,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{offset:.7}),s.createElement("stop",{offset:.95,stopOpacity:0})))));var I=i(97015);const IntroModalBanner_IntroModalEcommerce=({onView:e,onConfirm:t,onClickLearnMore:i,onDismiss:s})=>I.createElement(b.A,{className:"googlesitekit-banner-modal--site-goals-intro",Graphic:M,onView:e,onClose:s,title:(0,g.__)("See what drives your sales","google-site-kit"),description:(0,A.A)((0,g.__)("Understand which parts of your site are most effective at turning visitors into customers. This new section shows you exactly which pages, cities, and traffic sources are bringing in the most sales and actions like add to cart. Use these insights to see what works best for your business so you can focus on the areas that help you grow. <a>Learn more</a>","google-site-kit"),{a:I.createElement(x.A,{href:"#site-goals","aria-label":(0,g.__)("Learn more about site goals","google-site-kit"),onClick:i,external:!0,hideExternalIndicator:!0})}),ctaButton:{label:(0,g.__)("Show me","google-site-kit"),onClick:t},dismissButton:{onClick:s},newBadge:!0});var w,j,C;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 T=e=>s.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 491 179"},e),s.createElement("mask",{id:"site-goals-intro-modal_svg__b",width:491,height:180,x:0,y:-1,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},w||(w=s.createElement("path",{fill:"url(#site-goals-intro-modal_svg__a)",d:"M0-1h491v180H0z"}))),j||(j=s.createElement("g",{mask:"url(#site-goals-intro-modal_svg__b)"},s.createElement("path",{fill:"#93C9A8",d:"M298.136-96.557c22.315 10.16 34.483 31.672 47.55 50.432 12.133 17.42 5.531 44.216 8.267 65.246 3.068 23.586 13.484 45.1 5.366 70.736-5.233 11.492-11.909 21.871-19.717 31.02-22.059 25.85-49.651 14.389-82.722 17.968-22.73 2.46-43.683 31.549-94.647 13.752s-55.006-84.939-35.592-125.386-16.18-59.053 16.178-106.78S255.1-116.155 298.136-96.558",opacity:.15}),s.createElement("g",{filter:"url(#site-goals-intro-modal_svg__c)"},s.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M319.125 51.022c6.741 0 12.206 5.464 12.206 12.205V191.34c0 6.741-5.465 12.205-12.206 12.205h-148.51c-6.74 0-12.205-5.464-12.205-12.205V63.227c0-6.741 5.465-12.205 12.205-12.205z",clipRule:"evenodd"})),s.createElement("path",{fill:"#EBEEF0",fillRule:"evenodd",d:"M314.481 74.44a3.547 3.547 0 0 1 3.547 3.546v33.698a3.547 3.547 0 0 1-3.547 3.547H175.258a3.547 3.547 0 0 1-3.547-3.547V77.986a3.547 3.547 0 0 1 3.547-3.547z",clipRule:"evenodd"}),s.createElement("rect",{width:47.886,height:12.415,x:234.672,y:124.624,fill:"#EBEEF0",rx:6.207}),s.createElement("rect",{width:83.357,height:4.434,x:234.672,y:144.133,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:52.319,height:4.434,x:171.711,y:144.133,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:52.319,height:4.434,x:171.711,y:134.378,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:52.319,height:4.434,x:171.711,y:153.887,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:52.319,height:4.434,x:171.711,y:124.624,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:83.357,height:4.434,x:234.672,y:153.887,fill:"#EBEEF0",rx:2.217}),s.createElement("g",{filter:"url(#site-goals-intro-modal_svg__d)"},s.createElement("circle",{cx:198.763,cy:121.371,r:12.153,fill:"#BED4FF"}),s.createElement("circle",{cx:198.764,cy:121.371,r:5.966,stroke:"#446199",strokeWidth:1.326}),s.createElement("path",{stroke:"#446199",strokeLinecap:"round",strokeWidth:1.326,d:"m200.658 123.265-3.788-3.788M196.869 123.265l3.788-3.788"}),s.createElement("circle",{cx:162.989,cy:85.014,r:21.989,fill:"#BED4FF"}),s.createElement("path",{fill:"#446199",d:"M158.033 96.098a1.92 1.92 0 0 1-1.409-.586 1.92 1.92 0 0 1-.587-1.41q0-.825.587-1.41.585-.587 1.409-.587a1.92 1.92 0 0 1 1.409.586q.587.587.587 1.41a1.92 1.92 0 0 1-.587 1.41q-.585.587-1.409.587m9.981 0a1.92 1.92 0 0 1-1.41-.586 1.92 1.92 0 0 1-.587-1.41q0-.825.587-1.41.586-.587 1.41-.587.823 0 1.41.586.586.587.586 1.41 0 .825-.586 1.41-.587.587-1.41.587m-10.829-15.97 2.395 4.991h6.986l2.745-4.99zm-.948-1.995h14.721q.674 0 .923.499.25.498-.025 1.048l-3.543 6.387q-.274.499-.724.774a1.9 1.9 0 0 1-1.023.274h-7.435l-1.098 1.996h11.977v1.996h-11.977q-1.122 0-1.697-.986-.574-.985-.049-1.958l1.347-2.445-3.593-7.585h-1.996v-1.996h3.244z"}),s.createElement("circle",{cx:330.047,cy:56.07,r:22.954,fill:"#BED4FF"}),s.createElement("path",{stroke:"#446199",strokeWidth:2.088,d:"m319.983 60.52 7.373 9.105h7.737c2.652 0 3.316-2.248 3.316-3.372v-7.87c0-.507-.469-1.326-1.209-1.686-.463-.225-1.033-.034-1.66-.206-.454-.125-.447-.429-1.276-.594-.674-.134-1.159.074-1.658 0-.525-.077-.503-.511-1.382-.605-.998-.106-1.211.31-1.657.281V49.39c0-.562-.332-1.686-1.658-1.686-1.327 0-1.658 1.124-1.658 1.686v12.085c-1.106-.562-3.979-2.53-4.421-2.53-.354 0-1.084.36-1.739.79a.533.533 0 0 0-.108.785Z"}),s.createElement("path",{fill:"#446199",fillRule:"evenodd",d:"M327.969 42.485a6.263 6.263 0 0 1 4.173 10.932v-4.582l.002-.086a4.176 4.176 0 0 0-8.351 0h-.002v4.664a6.25 6.25 0 0 1-2.086-4.664 6.265 6.265 0 0 1 6.264-6.264",clipRule:"evenodd"})))),C||(C=s.createElement("defs",null,s.createElement("filter",{id:"site-goals-intro-modal_svg__c",width:201.299,height:180.901,x:144.222,y:40.38,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},s.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.createElement("feOffset",{dy:3.547}),s.createElement("feGaussianBlur",{stdDeviation:7.094}),s.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),s.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),s.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_4821_56934"}),s.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_4821_56934",result:"shape"})),s.createElement("filter",{id:"site-goals-intro-modal_svg__d",width:240.377,height:128.785,x:126.812,y:22.475,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},s.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.createElement("feOffset",{dy:3.547}),s.createElement("feGaussianBlur",{stdDeviation:7.094}),s.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),s.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),s.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_4821_56934"}),s.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_4821_56934",result:"shape"})),s.createElement("linearGradient",{id:"site-goals-intro-modal_svg__a",x1:245.5,x2:245.5,y1:-1,y2:179,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{offset:.7}),s.createElement("stop",{offset:.95,stopOpacity:0})))));var D=i(97015);const IntroModalBanner_IntroModalEcommerceAndLead=({onView:e,onConfirm:t,onClickLearnMore:i,onDismiss:s})=>D.createElement(b.A,{className:"googlesitekit-banner-modal--site-goals-intro",Graphic:T,onView:e,onClose:s,title:(0,g.__)("Track your most valuable goals","google-site-kit"),description:(0,A.A)((0,g.__)("Discover which channels, cities, and pages are bringing in your best results. A new section shows you exactly how <b>sales</b> and <b>sign ups</b> are performing, so you can focus on the sources that grow your business. <a>Learn more</a>","google-site-kit"),{b:D.createElement("strong",null),a:D.createElement(x.A,{href:"#site-goals","aria-label":(0,g.__)("Learn more about site goals","google-site-kit"),onClick:i,external:!0,hideExternalIndicator:!0})}),ctaButton:{label:(0,g.__)("Show me","google-site-kit"),onClick:t},dismissButton:{onClick:s},newBadge:!0});var R,O,L;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 z=e=>s.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 491 179"},e),s.createElement("mask",{id:"site-goals-intro-modal-lead_svg__b",width:491,height:180,x:0,y:-1,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},R||(R=s.createElement("path",{fill:"url(#site-goals-intro-modal-lead_svg__a)",d:"M0-1h491v180H0z"}))),O||(O=s.createElement("g",{mask:"url(#site-goals-intro-modal-lead_svg__b)"},s.createElement("path",{fill:"#93C9A8",d:"M298.136-96.556c22.315 10.16 34.483 31.672 47.55 50.432 12.133 17.42 5.531 44.216 8.267 65.246 3.068 23.586 13.484 45.1 5.366 70.736-5.233 11.492-11.909 21.871-19.717 31.02-22.059 25.85-49.651 14.389-82.722 17.968-22.73 2.46-43.683 31.549-94.647 13.752s-55.006-84.939-35.592-125.386-16.18-59.053 16.178-106.78S255.1-116.154 298.136-96.558",opacity:.15}),s.createElement("g",{filter:"url(#site-goals-intro-modal-lead_svg__c)"},s.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M319.125 51.022c6.741 0 12.206 5.464 12.206 12.205V191.34c0 6.741-5.465 12.205-12.206 12.205h-148.51c-6.74 0-12.205-5.464-12.205-12.205V63.227c0-6.741 5.465-12.205 12.205-12.205z",clipRule:"evenodd"})),s.createElement("path",{fill:"#EBEEF0",fillRule:"evenodd",d:"M314.481 74.44a3.547 3.547 0 0 1 3.547 3.546v33.698a3.547 3.547 0 0 1-3.547 3.547H175.258a3.547 3.547 0 0 1-3.547-3.547V77.986a3.547 3.547 0 0 1 3.547-3.547z",clipRule:"evenodd"}),s.createElement("rect",{width:47.886,height:12.415,x:234.672,y:124.624,fill:"#EBEEF0",rx:6.207}),s.createElement("rect",{width:83.357,height:4.434,x:234.672,y:144.133,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:52.319,height:4.434,x:171.711,y:144.133,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:52.319,height:4.434,x:171.711,y:134.378,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:52.319,height:4.434,x:171.711,y:153.887,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:52.319,height:4.434,x:171.711,y:124.624,fill:"#EBEEF0",rx:2.217}),s.createElement("rect",{width:83.357,height:4.434,x:234.672,y:153.887,fill:"#EBEEF0",rx:2.217}),s.createElement("g",{filter:"url(#site-goals-intro-modal-lead_svg__d)"},s.createElement("circle",{cx:329.826,cy:55.735,r:23.174,fill:"#BED4FF"}),s.createElement("path",{fill:"#446199",d:"M330.142 59.029q.986 0 1.688-.703.7-.701.701-1.686 0-.986-.701-1.688a2.3 2.3 0 0 0-1.688-.701q-.985 0-1.687.7a2.3 2.3 0 0 0-.702 1.689q0 .985.702 1.686.702.703 1.687.703M336.831 65l-4.27-4.27a4.3 4.3 0 0 1-1.119.507q-.613.18-1.3.18-1.971 0-3.374-1.404t-1.404-3.374q0-1.972 1.404-3.375t3.374-1.404q1.971 0 3.374 1.404t1.404 3.375q0 .686-.179 1.284-.18.597-.508 1.105l3.076 3.075v-10.57l-4.718-5.645h-9.616v19.112zm-13.856 2.39a2.3 2.3 0 0 1-1.687-.702 2.3 2.3 0 0 1-.702-1.688V45.89q0-.986.702-1.688a2.3 2.3 0 0 1 1.687-.701h10.751l5.972 7.167v14.334q0 .986-.701 1.688a2.3 2.3 0 0 1-1.688.701z"}),s.createElement("circle",{cx:198.763,cy:121.371,r:12.153,fill:"#BED4FF"}),s.createElement("circle",{cx:198.764,cy:121.371,r:5.966,stroke:"#446199",strokeWidth:1.326}),s.createElement("path",{stroke:"#446199",strokeLinecap:"round",strokeWidth:1.326,d:"m200.658 123.265-3.788-3.788M196.869 123.265l3.788-3.788"}),s.createElement("circle",{cx:162.989,cy:85.014,r:21.989,fill:"#BED4FF"}),s.createElement("path",{stroke:"#446199",strokeWidth:2,d:"M153.349 89.277 160.412 98h7.412c2.541 0 3.176-2.154 3.176-3.23v-7.54c0-.485-.449-1.27-1.158-1.615-.444-.216-.989-.032-1.59-.198-.435-.12-.428-.41-1.223-.568-.645-.129-1.11.07-1.588 0-.502-.074-.481-.49-1.323-.58-.957-.102-1.161.297-1.589.27v-5.924c0-.538-.317-1.615-1.588-1.615-1.27 0-1.588 1.077-1.588 1.615v11.577c-1.059-.538-3.812-2.423-4.235-2.423-.339 0-1.038.344-1.666.757a.51.51 0 0 0-.103.75Z"}),s.createElement("path",{fill:"#446199",fillRule:"evenodd",d:"M161 72a6 6 0 0 1 4 10.47V78a4 4 0 0 0-8 0v4.47A6 6 0 0 1 161 72",clipRule:"evenodd"})))),L||(L=s.createElement("defs",null,s.createElement("filter",{id:"site-goals-intro-modal-lead_svg__c",width:201.299,height:180.901,x:144.222,y:40.38,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},s.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.createElement("feOffset",{dy:3.547}),s.createElement("feGaussianBlur",{stdDeviation:7.094}),s.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),s.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),s.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_4811_26843"}),s.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_4811_26843",result:"shape"})),s.createElement("filter",{id:"site-goals-intro-modal-lead_svg__d",width:240.377,height:129.34,x:126.812,y:21.92,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},s.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.createElement("feOffset",{dy:3.547}),s.createElement("feGaussianBlur",{stdDeviation:7.094}),s.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),s.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),s.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_4811_26843"}),s.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_4811_26843",result:"shape"})),s.createElement("linearGradient",{id:"site-goals-intro-modal-lead_svg__a",x1:245.5,x2:245.5,y1:-1,y2:179,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{offset:.7}),s.createElement("stop",{offset:.95,stopOpacity:0})))));var P=i(97015);const IntroModalBanner_IntroModalLead=({onView:e,onConfirm:t,onClickLearnMore:i,onDismiss:s})=>P.createElement(b.A,{className:"googlesitekit-banner-modal--site-goals-intro",Graphic:z,onView:e,onClose:s,title:(0,g.__)("See what brings in new leads","google-site-kit"),description:(0,A.A)((0,g.__)("Discover which parts of your site are most successful at encouraging people to reach out. This new section highlights the specific pages, locations, and visitor groups that result in more sign-ups, quote requests, and other important goals. These details help you understand exactly where your most interested visitors are coming from. <a>Learn more</a>","google-site-kit"),{a:P.createElement(x.A,{href:"#site-goals","aria-label":(0,g.__)("Learn more about site goals","google-site-kit"),onClick:i,external:!0,hideExternalIndicator:!0})}),ctaButton:{label:(0,g.__)("Show me","google-site-kit"),onClick:t},dismissButton:{onClick:s},newBadge:!0});var F=i(97015);const G="site_goals_intro_modal_banner",U="ecommerce",V="lead",W="ecommerce_lead";function H(e,t,i,s){return{onView:()=>{i.view(e)},onConfirm:()=>{i.confirm(e),t(),s()},onClickLearnMore:()=>{i.clickLearnMore(e)},onDismiss:()=>{i.dismiss(e),t()}}}function IntroModal(){const[e,t]=(0,s.useState)(!0),{dismissItem:i,triggerOnDemandTour:_}=(0,o.useDispatch)(a.oR),{setValue:v}=(0,o.useDispatch)(r.nX),y=(0,c.dv)(),A=(0,l.A)(G),b=(0,o.useSelect)(e=>e(k.K9).hasEcommerceConversionReportingEvents(),[]),x=(0,o.useSelect)(e=>e(k.K9).hasLeadConversionReportingEvents(),[]),S=(0,o.useSelect)(e=>e(k.K9).hasEcommerceConversionReportingEventsOnly(),[]),M=(0,o.useSelect)(e=>e(a.oR).isItemDismissed(G),[]),I=(0,o.useSelect)(e=>e(k.K9).hasCustomDimensions(d.B7),[]),w=(0,o.useSelect)(e=>e(a.oR).isItemDismissed(d.I4),[]);function j(){t(!1),i(G)}function C(){_(function({isEcommerceOnly:e,hasBreakdownNotice:t}){const i={...h,target:".googlesitekit-site-goals-breakdown-notice",title:(0,g.__)("Get into the details","google-site-kit"),content:e?(0,g.__)("Want to see whether WooCommerce or Easy Digital Downloads is driving more success? You can break these numbers down to see the performance of each plugin.","google-site-kit"):(0,g.__)("Want to know which specific form is bringing in the most interest? You can break these numbers down to see the performance of each individual form on your site.","google-site-kit"),styles:{spotlight:{...h.styles.spotlight,paddingInlineStart:"24px",marginInlineStart:"-24px"}}};return{slug:"site-goals-feature-tour",isRepeatable:!0,contexts:[n.jU],gaEventCategory:f,preloadWidgetAreas:[u.AREA_MAIN_DASHBOARD_SITE_GOALS_PRIMARY],checkRequirements:p,steps:[{...h,target:m,title:(0,g.__)("Your main goal is front and center","google-site-kit"),content:(0,g.__)("Track the most important metric (like sales or lead submissions) to understand how your site is helping you reach your goals.","google-site-kit")},...t?[i]:[],{...h,target:".googlesitekit-site-goals-goal-drivers-group",title:(0,g.__)("Find what drives success","google-site-kit"),content:(0,g.__)("Discover which traffic channels or locations are bringing in the best results, so you can focus on what works. Customize this list with metrics that matter the most to you.","google-site-kit"),locale:{last:(0,g.__)("Done","google-site-kit")}}]}}({isEcommerceOnly:!!S,hasBreakdownNotice:!1===I&&!w})),globalThis.history.replaceState({},"",`#${n.x2}`),v(r.Fc,n.x2),globalThis.scrollTo({top:(0,E.YJ)(`#${n.x2}`,y),behavior:"smooth"})}if(void 0===b||void 0===x||!1!==M||!e)return null;const N=H(U,j,A,C),T=H(V,j,A,C),D=H(W,j,A,C);return b&&x?F.createElement(IntroModalBanner_IntroModalEcommerceAndLead,D):b?F.createElement(IntroModalBanner_IntroModalEcommerce,N):x?F.createElement(IntroModalBanner_IntroModalLead,T):null}},33552(e,t,i){i.d(t,{s:()=>m});var s=i(63696),o=i(13606),n=i(82871),r=i(50539),a=i(17443),l=i(38432),c=i(29785),d=i(59711),g=i(22942),u=i(97015);function m(){const e=(0,r.useSelect)(e=>e(c.O4).getModuleSettingsURL(g.L1),[]),t=(0,s.useMemo)(()=>({tooltipSlug:d.I4,title:(0,n.__)("You can always enable breakdown from settings later","google-site-kit"),content:(0,o.A)((0,n.__)("Enable âAdvanced data breakdownsâ from <a>Analytics settings</a> to start collecting breakdown data.","google-site-kit"),{a:u.createElement(l.A,{href:e})}),dismissLabel:(0,n.__)("Got it","google-site-kit")}),[e]);return(0,a.i)(t)}},95605(e,t,i){i.d(t,{H:()=>d});var s=i(13606),o=i(82871),n=i(50539),r=i(38432),a=i(29785),l=i(60831),c=i(97015);function d(e){const t=(0,n.useSelect)(e=>e(a.O4).getDocumentationLinkURL("site-goals"),[]),i=(0,o.__)("Get breakdown","google-site-kit"),d=c.createElement(r.A,{href:t,"aria-label":(0,o.__)("Learn more about site goals","google-site-kit"),external:!0,hideExternalIndicator:!0});return e===l.mM.ECOMMERCE?{title:(0,o.__)("Using both WooCommerce and Easy Digital Downloads to sell products or services?","google-site-kit"),description:(0,s.A)((0,o.__)("If you use both WooCommerce and Easy Digital Downloads, your events data might be grouped together. Enable this breakdown to see results for each plugin separately and track how each store is performing. Because this uses a new, more precise tracking method, your data will start fresh from the moment you turn it on. <a>Learn more</a>","google-site-kit"),{a:d}),ctaLabel:i}:{title:(0,o.__)("Want to see results for each form?","google-site-kit"),description:(0,s.A)((0,o.__)("If you use multiple forms, your events data may be grouped together. Enable this breakdown to see results for each form and track how each one is performing. Because this uses a new, more precise tracking method, data collection will start fresh from the moment you turn it on. <a>Learn more</a>","google-site-kit"),{a:d}),ctaLabel:i}}},39552(e,t,i){i.d(t,{A:()=>o,_:()=>s});const s={style:"percent",signDisplay:"never",maximumFractionDigits:1},o={style:"decimal"}},74647(e,t,i){function s(e,t){return i=>i?.dimensionValues?.[t]?.value===e}function o(e,t,i={}){const{aggregate:o=!1}=i,{totals:n=[]}=t||{},{current:r,previous:a}=o?function(e){const{rows:t=[]}=e||{};return{current:t.filter(s("date_range_0",1)).reduce((e,t)=>e+(parseInt(t?.metricValues?.[0]?.value??"",10)||0),0),previous:t.filter(s("date_range_1",1)).reduce((e,t)=>e+(parseInt(t?.metricValues?.[0]?.value??"",10)||0),0)}}(e):function(e){const{rows:t=[]}=e||{};return{current:parseInt(t?.find?.(s("date_range_0",1))?.metricValues?.[0]?.value??"",10)||0,previous:parseInt(t?.find?.(s("date_range_1",1))?.metricValues?.[0]?.value??"",10)||0}}(e),l=parseFloat(n?.find?.(s("date_range_0",0))?.metricValues?.[0]?.value??"")||0,c=parseFloat(n?.find?.(s("date_range_1",0))?.metricValues?.[0]?.value??"")||0,d=parseInt(n?.find?.(s("date_range_0",0))?.metricValues?.[1]?.value??"",10)||0,g=parseInt(n?.find?.(s("date_range_1",0))?.metricValues?.[1]?.value??"",10)||0;return{currentRate:0===d?0:r/d,previousRate:0===g?0:a/g,currentPrimaryCount:r,previousPrimaryCount:a,currentSessions:d,currentEngagementRate:l,previousEngagementRate:c}}i.d(t,{j:()=>o})},63810(e,t,i){i.d(t,{N5:()=>M,M2:()=>c,Fj:()=>u});var s=i(82871),o=i(60831),n=i(99893);const r={ADD_TO_CART:n.nc.ADD_TO_CART},a={[r.ADD_TO_CART]:{id:r.ADD_TO_CART,order:10,defaultEnabled:!0,panelLabel:(0,s.__)("Products added to cart","google-site-kit"),tileLabel:(0,s.__)("Products added to cart","google-site-kit"),goalTypes:[o.mM.ECOMMERCE]}};function l(e){return Object.values(a).filter(t=>t.goalTypes.includes(e)).sort((e,t)=>e.order-t.order)}function c(e){return l(e).map(e=>({id:e.id,order:e.order,title:e.panelLabel}))}function d(e=void 0,t=o.mM.ECOMMERCE){const i=l(t);if(void 0===e)return i.filter(e=>e.defaultEnabled).map(e=>e.id);if(!e.length)return[];const s=new Set(e.filter(e=>"string"==typeof e&&function(e){return void 0!==a[e]}(e)));return i.filter(e=>s.has(e.id)).map(e=>e.id)}function g(e,t){if(!e||"object"!=typeof e)return;const i=e[t];return Array.isArray(i)?i.filter(e=>"string"==typeof e):void 0}function u(e){return{[o.mM.ECOMMERCE]:d(g(e,o.mM.ECOMMERCE),o.mM.ECOMMERCE),[o.mM.LEAD]:d(g(e,o.mM.LEAD),o.mM.LEAD)}}var m=i(63696),p=i(13606),h=i(50539),f=i(29785),_=i(21105),v=i(39552),y=i(74647),k=i(13047),E=i(97015);const A=({dates:e})=>{const t=(0,h.useSelect)(e=>e(f.O4).getGoogleSupportURL({path:"/TODO-SUPPORT-PATH"}),[]),i=(0,m.useMemo)(()=>({compareEndDate:e.compareEndDate,compareStartDate:e.compareStartDate,endDate:e.endDate,metrics:[{name:"engagementRate"},{name:"sessions"}],reportID:"analytics-4_site-goals_engagementReportOptions",startDate:e.startDate}),[e.compareEndDate,e.compareStartDate,e.endDate,e.startDate]),o=(0,h.useInViewSelect)(e=>e(n.K9).getReport(i),[i])||[],[r,a]=(0,h.useSelect)(e=>[!e(n.K9).hasFinishedResolution("getReport",[i]),e(n.K9).getErrorForSelector("getReport",[i])],[i]),{currentSessions:l,currentEngagementRate:c,previousEngagementRate:d}=(0,y.j)({},o);return E.createElement(_.F,{title:(0,s.__)("Engagement rate","google-site-kit"),subtitle:(0,s.sprintf)(/* translators: %s: formatted number of total sessions */ /* translators: %s: formatted number of total sessions */ (0,s.__)("of %s total sessions","google-site-kit"),(0,k.Eo)(l,v.A)),infoTooltip:(0,p.A)((0,s.__)("The percentage of visitors who engaged with your content by staying on a page for a period of time, viewing multiple pages, or completing a key action. <a>Learn more</a>","google-site-kit"),{a:E.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener"})}),currentValue:c,previousValue:d,loading:r,error:a,format:v._})};var b=i(97015);const x=({dates:e,eventName:t})=>{const i=(0,m.useMemo)(()=>({compareEndDate:e.compareEndDate,compareStartDate:e.compareStartDate,metrics:[{name:"eventCount"}],dimensions:[{name:"eventName"}],dimensionFilters:{eventName:t},endDate:e.endDate,reportID:`analytics-4_site-goals_visitor-engagement_${t}`,startDate:e.startDate}),[e.compareEndDate,e.compareStartDate,e.endDate,e.startDate,t]),o=(0,h.useInViewSelect)(e=>e(n.K9).getReport(i),[i])||[],[r,l]=(0,h.useSelect)(e=>[!e(n.K9).hasFinishedResolution("getReport",[i]),e(n.K9).getErrorForSelector("getReport",[i])],[i]),{currentPrimaryCount:c,previousPrimaryCount:d}=(0,y.j)(o,{});return b.createElement(_.F,{title:(g=t,a[g].tileLabel),subtitle:(0,s.sprintf)(/* translators: %s: GA4 event name */ /* translators: %s: GA4 event name */ (0,s.__)("â%sâ events","google-site-kit"),t),currentValue:c,previousValue:d,loading:r,error:l,format:v.A});var g};var S=i(97015);const M=({dates:e,events:t=[]})=>S.createElement(m.Fragment,null,S.createElement(A,{dates:e}),t.map(t=>S.createElement(x,{key:t,dates:e,eventName:t})))},99893(e,t,i){i.d(t,{CV:()=>w,Cu:()=>E,K9:()=>s,Kr:()=>p,Lf:()=>u,Oh:()=>r,PW:()=>I,Rx:()=>D,S9:()=>h,TQ:()=>d,Vt:()=>N,Wl:()=>y,ZC:()=>o,ZY:()=>a,_p:()=>T,ag:()=>m,aj:()=>g,bz:()=>j,dC:()=>S,dq:()=>C,fB:()=>M,fV:()=>x,iB:()=>c,kc:()=>l,mo:()=>_,nc:()=>b,pL:()=>A,rm:()=>k,to:()=>n,wo:()=>f,yn:()=>v});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",d="enhanced-measurement-form",g="enhanced-measurement-enabled",u="enhanced-measurement-should-dismiss-activation-banner",m="analyticsAccountCreate",p="analyticsCustomDimensionsCreate",h="https://www.googleapis.com/auth/analytics.edit",f="dashboardAllTrafficWidgetDimensionName",_="dashboardAllTrafficWidgetDimensionColor",v="dashboardAllTrafficWidgetDimensionValue",y="dashboardAllTrafficWidgetActiveRowIndex",k="dashboardAllTrafficWidgetLoaded",E={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(E),b={ADD_TO_CART:"add_to_cart",PURCHASE:"purchase",SUBMIT_LEAD_FORM:"submit_lead_form",GENERATE_LEAD:"generate_lead",CONTACT:"contact"},x=[b.CONTACT,b.GENERATE_LEAD,b.SUBMIT_LEAD_FORM],S=[b.PURCHASE,b.ADD_TO_CART],M={"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",j="audience-selection-panel-expirable-new-badge-",C="audience",N="customDimension",T="property",D=[C,N,T]},73135(e,t,i){i.d(t,{s:()=>o});var s=i(82286);function o(){return"initial_setup_success"===(0,s.d)(location.href,"notification")}},17443(e,t,i){i.d(t,{r:()=>AdminScreenTooltip,i:()=>s.i});var s=i(52274),o=i(63696),n=i(50539),r=i(62688),a=i(36703),l=i(40960),c=i(97513),d=i(94656),g=i(83202),u=i(71264),m=i(62540);function JoyrideTooltip(e){const{title:t,content:i,dismissLabel:s,disableOverlay:n=!0,target:r,cta:p=!1,className:h,styles:f={},slug:_="",placement:v="auto",onDismiss:y=()=>{},onView:k=()=>{},onTourStart:E=()=>{},onTourEnd:A=()=>{},floaterProps:b={}}=e;function x(){return!!globalThis.document.querySelector(r)}const[S,M]=(0,o.useState)(x),I=(0,c.dv)(),w=I===c.mp||I===c.Lg,[j,C]=(0,o.useState)(!0),N=(0,o.useRef)(w);if((0,l.A)(()=>{x()&&M(!0)},S?null:250),(0,o.useEffect)(()=>{let e=()=>{};if("function"==typeof globalThis.ResizeObserver){const t=globalThis.document.querySelector(r);if(t){const i=new ResizeObserver(()=>{globalThis.dispatchEvent(new Event("resize"))});i.observe(t),e=()=>i.disconnect()}}return e},[r,S]),(0,o.useEffect)(()=>{let e;return N.current!==w&&(C(!1),e=setTimeout(()=>{C(!0)},50),N.current=w),()=>{e&&clearTimeout(e)}},[w]),!S)return null;const T=[{title:t,target:r,content:i,disableBeacon:!0,isFixed:!0,placement:v,cta:p,className:h,floaterProps:b}],D={close:s,last:s};return(0,m.jsx)(d.A,{slug:_,children:(0,m.jsx)(a.Ay,{callback:function({type:e}){switch(e){case a.qY.TOUR_START:E(),globalThis.document.body.classList.add("googlesitekit-showing-tooltip");break;case a.qY.TOUR_END:A(),globalThis.document.body.classList.remove("googlesitekit-showing-tooltip");break;case a.qY.STEP_AFTER:y();break;case a.qY.TOOLTIP:k()}},disableOverlay:n,spotlightPadding:0,floaterProps:u.ei,locale:D,steps:T,styles:{...u.R0,...f,options:{...u.R0.options,...f?.options},spotlight:{...u.R0.spotlight,...f?.spotlight}},tooltipComponent:g.A,run:j,disableScrolling:!0})})}JoyrideTooltip.propTypes={title:r.PropTypes.node,content:r.PropTypes.string,disableOverlay:r.PropTypes.bool,dismissLabel:r.PropTypes.string,target:r.PropTypes.string.isRequired,onDismiss:r.PropTypes.func,onShow:r.PropTypes.func,className:r.PropTypes.string,styles:r.PropTypes.object,slug:r.PropTypes.string,placement:r.PropTypes.string,onView:r.PropTypes.func,floaterProps:r.PropTypes.object};var p=i(7972),h=i(62659),f=i(13047);function AdminScreenTooltip(){const e=(0,h.A)(),{setValue:t}=(0,n.useDispatch)(p.nX),i=(0,c.dv)(),{isTooltipVisible:s=!1,target:r,placement:a,className:l,tooltipSlug:d,title:g,content:u,dismissLabel:_,gaTrackingEventLabel:v,floaterProps:y,isCenteredOnMobile:k=!0}=(0,n.useSelect)(e=>e(p.nX).getValue("admin-screen-tooltip")||{isTooltipVisible:!1});const E=(0,o.useCallback)(()=>{d&&(0,f.sx)(`${e}_${d}`,"tooltip_dismiss",v),t("admin-screen-tooltip",void 0)},[t,d,e,v]);if(!s)return null;const A=i===c.mp||i===c.Lg,b=k&&A,x=r??'#adminmenu [href*="page=googlesitekit-settings"]',S=a??"right";return(0,m.jsx)(JoyrideTooltip,{target:b?"body":x,placement:b?"center":S,className:b?"googlesitekit-tour-tooltip__modal_step":l||(r?void 0:"googlesitekit-tour-tooltip__fixed-settings-tooltip"),disableOverlay:!b,slug:"admin-screen-tooltip",title:g,content:u,dismissLabel:_,onView:function(){(0,f.sx)(`${e}_${d}`,"tooltip_view",v)},onDismiss:E,floaterProps:y})}},52274(e,t,i){i.d(t,{i:()=>r});var s=i(63696),o=i(50539),n=i(7972);function r(e){const{setValue:t}=(0,o.useDispatch)(n.nX);return(0,s.useCallback)(()=>{t("admin-screen-tooltip",{isTooltipVisible:!0,...e})},[t,e])}},5855(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(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 d=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:d=!1}){if(!e||!o&&!l)return null;let g;return c&&!d&&(g=(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:g,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),d=i(71189),g=i(13047),u=i(41671),m=i(62540);function Description({className:e,description:t,learnMoreLink:i,additionalDescription:s,children:n}){return(0,m.jsxs)("div",{className:o()("googlesitekit-banner__description",e),children:[(0,a.isValidElement)(t)?t:"string"==typeof t?(0,m.jsx)("span",{dangerouslySetInnerHTML:(0,g.p9)(t,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}):t," ",i?.href&&(0,m.jsx)(u.A,{...i}),s&&(0,m.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,m.jsx)("div",{className:o()("googlesitekit-banner__footer",e),children:t})}function HelpText({className:e,children:t}){return(0,m.jsx)("p",{className:o()("googlesitekit-banner__help-text",e),children:t})}function Title({className:e,children:t}){return(0,m.jsx)("p",{className:o()("googlesitekit-banner__title",e),children:t})}function TitleIcon({className:e,children:t}){return(0,m.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 h=(0,a.forwardRef)(({className:e,titleIcon:t,title:i,description:s,additionalDescription:n,errorText:r,helpText:a,learnMoreLink:g,dismissButton:u,ctaButton:h,svg:f,footer:_},v)=>{const y=(0,c.dv)(),k=y===c.mp||y===c.Lg;let E=null;k&&f?.mobile?E=f.mobile:!k&&f?.desktop&&(E=f.desktop);const A=f?.verticalPosition?f.verticalPosition:"center";return(0,m.jsxs)("div",{ref:v,className:o()("googlesitekit-banner",e),children:[(0,m.jsxs)("div",{className:"googlesitekit-banner__content",children:[t&&(0,m.jsx)(TitleIcon,{children:t}),(0,m.jsx)(Title,{children:i}),(0,m.jsx)(Description,{description:s,learnMoreLink:g,additionalDescription:n}),a&&(0,m.jsx)(HelpText,{children:a}),r&&(0,m.jsx)(l.A,{type:"error",description:r}),(0,m.jsxs)("div",{className:"googlesitekit-notice__action",children:[h&&(0,m.jsx)(d.A,{...h}),u?.onClick&&(0,m.jsx)(p.A,{...u})]})]}),E&&(0,m.jsx)("div",{className:o()("googlesitekit-banner__svg-wrapper",{[`googlesitekit-banner__svg-wrapper--${A}`]:A}),style:{backgroundImage:`url(${E})`}}),_&&(0,m.jsx)(Footer,{children:_})]})});h.propTypes={titleIcon:r().node,title:r().string,description:r().oneOfType([r().string,r().node]),additionalDescription:r().oneOfType([r().string,r().node]),errorText:r().string,helpText:r().string,learnMoreLink:r().shape(u.A.propTypes),dismissButton:r().shape(p.A.propTypes),ctaButton:r().shape(d.A.propTypes),svg:r().shape({desktop:r().elementType,mobile:r().elementType,verticalPosition:r().oneOf(["top","center","bottom"])}),footer:r().node};const f=h},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},74655(e,t,i){i.d(t,{A:()=>ChangeBadge});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(13047),l=i(62540);function ChangeBadge(e){const{previousValue:t,currentValue:i,isAbsolute:s}=e,n=s?i-t:(0,a.Zf)(t,i),r=n<0,c=0===n;return null===n?null:(0,l.jsx)("div",{className:o()("googlesitekit-change-badge",{"googlesitekit-change-badge--negative":r,"googlesitekit-change-badge--zero":c}),children:(0,a.Eo)(n,{style:"percent",signDisplay:"exceptZero",maximumFractionDigits:1})})}ChangeBadge.propTypes={isAbsolute:r().bool,previousValue:r().number.isRequired,currentValue:r().number.isRequired}},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),d=i(49383),g=i(50539),u=i(7972),m=i(97345),p=i(12896),h=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 v=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 y=i(62540);function DateRangeSelector(){const e=(0,f.Ql)(),t=(0,g.useSelect)(e=>e(m.oR).getDateRange()),{setDateRange:i}=(0,g.useDispatch)(m.oR),{resetInViewHook:s}=(0,g.useDispatch)(u.nX),[o,_]=(0,a.useState)(!1),k=(0,a.useRef)(),E=(0,h.A)();(0,r.A)(k,()=>_(!1)),(0,p.l)([c._f,c.wn],k,()=>_(!1));const A=(0,a.useCallback)(()=>{_(!o)},[o]),b=(0,a.useCallback)(o=>{const n=Object.values(e)[o].slug;t!==n&&(0,f.sx)(`${E}_headerbar`,"change_daterange",n),s(),i(n),_(!1)},[e,t,s,i,E]),x=e[t]?.label,S=Object.values(e).map(e=>e.label);return(0,y.jsxs)("div",{ref:k,className:"googlesitekit-date-range-selector googlesitekit-dropdown-menu mdc-menu-surface--anchor",children:[(0,y.jsx)(d.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,y.jsx)(v,{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:x}),(0,y.jsx)(d.Menu,{menuOpen:o,menuItems:S,onSelected:b,id:"date-range-selector-menu",className:"googlesitekit-width-auto"})]})}},28534(e,t,i){i.d(t,{A:()=>j});var s,o=i(15844),n=i(79257),r=i(52684),a=i(63696),l=i(82871),c=i(49383),d=i(50539),g=i(70301),u=i(29785),m=i(7551),p=i(62659),h=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 v;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 k=e=>a.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),v||(v=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 E=i(82351),A=i(62688),b=i.n(A),x=i(53328),S=i(54419);var M=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:g=I,onClose:m=I,placeholder:p=""}){const h=(0,a.useRef)(),[f,_]=(0,a.useState)(""),v=t?.title,y=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===v?0:200),[k,A]=(0,a.useState)([]),b=(0,l.__)("No results found","google-site-kit"),w=(0,d.useSelect)(e=>e(u.O4).getCurrentEntityTitle()),j=(0,a.useRef)(null),C=(0,a.useCallback)(()=>{r(!0)},[r]),N=(0,a.useCallback)(e=>{e.relatedTarget?.classList.contains("autocomplete__option--result")||(r(!1),_(j.current??w??""))},[w,r]),T=(0,a.useCallback)(e=>{if(Array.isArray(k)&&e!==b){const t=k.find(t=>t.title.toLowerCase()===e.toLowerCase());t?(j.current=t.title,g(!0),i(t),_(t.title)):j.current=null}else j.current=null,g(!1)},[k,g,i,b,_]),D=(0,a.useCallback)(e=>{g(!1),_(e.target.value)},[g]);(0,a.useEffect)(()=>{if(""!==y&&y!==w&&y?.toLowerCase()!==v?.toLowerCase()){const e="undefined"==typeof AbortController?void 0:new AbortController;return async function(){n(!0);const t=(0,S.get)("core","search","entity-search",{query:encodeURIComponent(y)},{useCache:!1,signal:e?.signal});h.current=t;try{const e=await t;A(e)}catch{A(null)}finally{t===h.current&&n(!1)}}(),()=>e?.abort()}return()=>{}},[y,n,w,v]),(0,a.useEffect)(()=>{f||A([])},[f]),(0,a.useEffect)(()=>{w&&_(w)},[w]);const R=(0,a.useRef)(),O=(0,a.useCallback)(e=>{const t=R.current;switch(e.keyCode){case x.yZ:t?.value&&(e.preventDefault(),t.selectionStart=0,t.selectionEnd=0);break;case x.Kp:t?.value&&(e.preventDefault(),t.selectionStart=t.value.length,t.selectionEnd=t.value.length)}switch(e.keyCode){case x._f:m();break;case x.Fm:T(f)}},[m,T,f]);return(0,M.jsxs)(E.G3,{className:"autocomplete__wrapper",onSelect:T,children:[(0,M.jsx)(E.oK,{ref:R,id:e,className:"autocomplete__input autocomplete__input--default",type:"text",onBlur:N,onChange:D,onFocus:C,placeholder:p,onKeyDown:O,value:f,autoFocus:c}),!s&&o&&y!==w&&""!==y&&0===k?.length&&(0,M.jsx)(E.Nf,{portal:!1,children:(0,M.jsx)(E.ex,{className:"autocomplete__menu autocomplete__menu--inline",children:(0,M.jsx)(E.jO,{value:b,className:"autocomplete__option autocomplete__option--no-results"})})}),o&&""!==y&&y!==w&&k?.length>0&&(0,M.jsx)(E.Nf,{portal:!1,children:(0,M.jsx)(E.ex,{className:"autocomplete__menu autocomplete__menu--inline",children:k.map(({id:e,title:t})=>(0,M.jsx)(E.jO,{value:t,className:"autocomplete__option autocomplete__option--result"},e))})})]})}PostSearcherAutoSuggest.propTypes={id:b().string,match:b().object,setCanSubmit:b().func,setMatch:b().func,isLoading:b().bool,setIsLoading:b().func,onKeyDown:b().func,autoFocus:b().bool,placeholder:b().string};var w=i(55989);const j=function EntitySearchInput(){const e=(0,r.A)(EntitySearchInput,"EntitySearchInput"),[t,i]=(0,a.useState)(!1),[s,f]=(0,a.useState)(!1),[v,y]=(0,a.useState)(!1),E=(0,p.A)(),A=(0,m.Ay)(),b=(0,a.useRef)(),x=(0,a.useCallback)(()=>{(0,h.sx)(`${E}_headerbar`,"open_urlsearch"),i(!0)},[E]),S=(0,a.useCallback)(()=>{(0,h.sx)(`${E}_headerbar`,"close_urlsearch"),i(!1)},[E]),[I,j]=(0,a.useState)({}),C=(0,d.useSelect)(e=>I?.url?e(u.O4).getAdminURL("googlesitekit-dashboard",{permaLink:I.url}):null),{navigateTo:N}=(0,d.useDispatch)(g.M);return(0,a.useEffect)(()=>{C&&(0,h.sx)(`${E}_headerbar_urlsearch`,"open_urldetails").finally(()=>{N(C)})},[C,N,E]),(0,o.A)(()=>{A===m.oE&&i(!0)}),(0,n.A)(()=>{t||b?.current?.focus()},[t]),t?(0,M.jsxs)("div",{className:"googlesitekit-entity-search googlesitekit-entity-search--is-open",children:[(0,M.jsx)(w.A,{children:(0,M.jsx)("label",{htmlFor:e,children:(0,l.__)("Page/URL Search","google-site-kit")})}),(0,M.jsx)(PostSearcherAutoSuggest,{id:e,match:I,setIsActive:y,setMatch:j,placeholder:(0,l.__)("Enter title or URLâŚ","google-site-kit"),isLoading:s,setIsLoading:f,showDropdown:v,onClose:S,autoFocus:!0}),s&&v&&(0,M.jsx)(c.ProgressBar,{className:"googlesitekit-entity-search__loading",compress:!0}),(0,M.jsx)("div",{className:"googlesitekit-entity-search__actions",children:(0,M.jsx)(c.Button,{onClick:S,trailingIcon:(0,M.jsx)(_,{width:"30",height:"20"}),className:"googlesitekit-entity-search__close",title:(0,l.__)("Close","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0})})]}):(0,M.jsx)("div",{className:"googlesitekit-entity-search",children:(0,M.jsx)(c.Button,{className:"googlesitekit-border-radius-round--phone googlesitekit-button-icon--phone",onClick:x,ref:b,title:(0,l.__)("Search","google-site-kit"),trailingIcon:(0,M.jsx)(k,{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),d=i(13047),g=i(13137),u=i(37325),m=i(62540);function ErrorNotice({className:e,error:t,hasButton:i=!1,storeName:s,message:o=t.message,noPrefix:p=!1,skipRetryMessage:h,hideIcon:f=!1}){const _=(0,l.useDispatch)(),v=(0,l.useSelect)(e=>s?e(s).getSelectorDataForError(t):null),y=(0,n.useCallback)(()=>{_(v.storeName).invalidateResolution(v.name,v.args)},[_,v]);if(!o||(0,g.G)(t))return null;const k=i&&(0,g.vl)(t,v);let E=o;i||h||(E=(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"),E)),p||(E=(0,r.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */ (0,r.__)("Error: %s","google-site-kit"),E));const A=t?.data?.reconnectURL;A&&(0,a.m)(A)&&(E=(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"),E,A));return(0,m.jsx)(u.A,{className:e,type:c.L.ERROR,description:(0,m.jsx)("span",{dangerouslySetInnerHTML:(0,d.p9)(E,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:k?{label:(0,r.__)("Retry","google-site-kit"),onClick:y}: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),d=i(12417),g=i(1027),u=i(65123),m=i(49383),p=i(62540);function ReportErrorButton({message:e,componentStack:t}){const[i,s]=(0,c.useState)(!1);return(0,p.jsx)(m.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)(d.A,{className:"mdc-button__icon",icon:i?g.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 h=ReportErrorButton;function GenericErrorHandlerActions({message:e,componentStack:t}){return(0,p.jsxs)("div",{className:"googlesitekit-generic-error-handler-actions",children:[(0,p.jsx)(h,{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:()=>Xe});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(41814),l=i(63696),c=i(82871),d=i(50539),g=i(29785),u=i(97345),m=i(84730),p=i(7551),h=i(49993),f=i(13047),_=i(30805),v=i(62659);var y,k=i(4124),E=i(10740),A=i(45257),b=i(39525),x=i(15844),S=i(31589),M=i(30521),I=i(20697),w=i(7972);function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},j.apply(null,arguments)}const C=e=>l.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),y||(y=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 N,T,D,R;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),N||(N=l.createElement("rect",{width:5.833,height:5.833,x:3,y:3,rx:1.167})),T||(T=l.createElement("rect",{width:5.833,height:5.833,x:11.167,y:3,rx:1.167})),D||(D=l.createElement("rect",{width:5.833,height:5.833,x:3,y:11.167,rx:1.167})),R||(R=l.createElement("rect",{width:5.833,height:5.833,x:11.167,y:11.167,rx:1.167})));var B;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 P=e=>l.createElement("svg",z({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),B||(B=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 F,G,U;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 W=e=>l.createElement("svg",V({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),F||(F=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"})),G||(G=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 H;function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},q.apply(null,arguments)}const Y=e=>l.createElement("svg",q({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),H||(H=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 Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Q.apply(null,arguments)}const K=e=>l.createElement("svg",Q({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 X=i(97513),$=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,v.A)(),s=function(){const e=(0,p.Ay)(),t=(0,k.A)();return(0,d.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:g,scrollToChip:m,updateURLHash:h}=function({visibleSections:e}){const t=(0,X.dv)(),i=(0,k.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,$.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),[y,E]=(0,l.useState)(_||void 0),[A,j]=(0,l.useState)(!1),[N,T]=(0,l.useState)(_),{setValue:D}=(0,d.useDispatch)(w.nX),R=(0,l.useCallback)(({target:e})=>{const t=e.closest(".mdc-chip"),s=t?.dataset?.contextId;h(s),E(s),m(s),(0,f.sx)(`${i}_navigation`,"tab_select",s),setTimeout(()=>{D(w.Fc,s)},50)},[m,D,h,i]),O=(0,l.useCallback)(()=>{if(!t?.current)return;const{top:e}=t?.current?.getBoundingClientRect();if(0===globalThis.scrollY)j(!1);else{const t=document.querySelector(".googlesitekit-header")?.getBoundingClientRect?.()?.bottom;j(e===t)}},[]),B=(0,l.useCallback)(e=>{function s(e){D(w.Fc,void 0),T(e),E(void 0)}const o=a(t);if(y)y===o&&s(o);else{const{hash:t}=globalThis.location;o!==t?.substring(1)&&(e&&(0,f.sx)(`${i}_navigation`,"tab_scroll",o),h(o),s(o))}},[a,y,D,h,i]);(0,x.A)(()=>{if(!_)return T(r),void setTimeout(()=>h(r));const e=g(_)?_:r;T(e),D(w.Fc,e),setTimeout(()=>{const t=n(e);globalThis.scrollY!==t?m(e):D(w.Fc,void 0)},50)});const z=(0,l.useCallback)(e=>{O(),B(e)},[B,O]),F=(0,M.A)(z,150);(0,S.A)("scroll",F);const G=20,U={[I.SH]:{label:(0,c.__)("Key metrics","google-site-kit"),icon:(0,ie.jsx)(L,{width:G,height:G})},[I.OT]:{label:(0,c.__)("Traffic","google-site-kit"),icon:(0,ie.jsx)(K,{width:G,height:G})},[I.x2]:{label:(0,c.__)("Site goals","google-site-kit"),icon:(0,ie.jsx)(W,{width:G,height:G})},[I.en]:{label:(0,c.__)("Content","google-site-kit"),icon:(0,ie.jsx)(C,{width:G,height:G})},[I.Ej]:{label:(0,c.__)("Speed","google-site-kit"),icon:(0,ie.jsx)(Y,{width:G,height:G})},[I.Gw]:{label:(0,c.__)("Monetization","google-site-kit"),icon:(0,ie.jsx)(P,{width:G,height:G})}};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)(b.Chip,{id:e,label:U[e].label,leadingIcon:U[e].icon,onClick:R,selected:N===e,"data-context-id":e},e))})}function DashboardNavigation(){const e=(0,k.A)(),t=(0,d.useSelect)(t=>e?t(u.oR).getViewableModules():null),i=(0,d.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 de=i(38432),ge=i(83880);const ue=function EntityHeader(){const e=(0,v.A)(),t=(0,p.Ay)(),i=(0,d.useSelect)(e=>e(g.O4).getCurrentEntityTitle()),s=(0,d.useSelect)(e=>e(g.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,M.A)(a,150);(0,S.A)("resize",u);const{navigateTo:m}=(0,d.useDispatch)(re.M),h=(0,d.useSelect)(e=>e(g.O4).getAdminURL("googlesitekit-dashboard")),_=(0,l.useCallback)(()=>{(0,f.sx)(`${e}_navigation`,"return_to_dashboard"),m(h)},[h,m,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)(ge.A,{children:i}),(0,ie.jsx)(de.A,{href:s,"aria-label":s,secondary:!0,external:!0,children:n})]})]})};var me=i(44436),pe=i(8732),he=i(89766);function CoreSiteBannerNotification({id:e,ctaURL:t,ctaTarget:i,...s}){const[o,n]=(0,l.useState)(!1),{dismissNotification:r,acceptNotification:a}=(0,d.useDispatch)(g.O4),{dismissNotification:c}=(0,d.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]),m=(0,l.useCallback)(async()=>{await r(e)},[e,r]);return(0,ie.jsx)(he.A,{onCTAClick:u,onDismissClick:m,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,v.A)(),[t,i]=(0,l.useState)(!1),[s,o]=(0,l.useState)(!1),n=(0,l.useRef)(Date.now()),r=(0,d.useSelect)(e=>e(g.O4).isUsingProxy()&&!1===e(u.oR).areSurveysOnCooldown()?e(u.oR).getCurrentSurvey():null),[a,c]=(0,l.useState)([]),{registerNotification:p}=(0,d.useDispatch)(pe.D),h=(0,d.useSelect)(e=>e(g.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&&h?.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:m.bI.HEADER,isDismissible:t.dismissible}),c(e=>(e.push(t.id),e))})},[e,s,h,p,a,t]),null};var ve=i(67510),ye=i(67438);const ke="internal-server-error";function InternalServerError(){const e=(0,X.dv)(),t=(0,d.useSelect)(e=>e(g.O4).getInternalServerError());return(0,l.useEffect)(()=>{t&&globalThis.scrollTo({top:(0,$.YJ)(`#${ke}`,e),behavior:"smooth"})},[t,e]),t?(0,ie.jsx)(ye.A,{id:ke,children:(0,ie.jsx)(ve.A,{notificationID:ke,type:ve.Q.ERROR,title:t.title,description:t.description})}):null}function LegacyNotifications(){const e=(0,k.A)(),t=(0,p.Ay)(),i=(0,d.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 Ee=i(37834),Ae=i(21795),be=i(53328),xe=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:d,itemClassName:g="googlesitekit-header-menu__item",iconClassName:u="googlesitekit-header-menu__item-icon",labelClassName:m="googlesitekit-header-menu__item-label",descriptionClassName:p="googlesitekit-header-menu__item-description",trailingClassName:h="googlesitekit-header-menu__item-trailing"}){const f=d||(0,ie.jsxs)("div",{className:g,children:[r&&(0,ie.jsx)("div",{className:u,children:r}),a&&(0,ie.jsx)("span",{className:m,children:a}),l&&(0,ie.jsx)("span",{className:p,children:l}),c&&(0,ie.jsx)("span",{className:h,children:c})]}),_=void 0===i&&s?"menuitem":i,v=o()(t,{"mdc-list-item":s}),y="function"==typeof n;return(0,ie.jsx)("li",{id:e,className:v||void 0,role:_,children:y?(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 Se,Me,Ie=i(59865),we=i(94656),je=i(68832),Ce=i(12896),Ne=i(37467),Te=i(99893);function De(){return De=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},De.apply(null,arguments)}const Re=e=>l.createElement("svg",De({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Se||(Se=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"})),Me||(Me=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,Be,ze,Pe,Fe=i(46467);function Ge(){return Ge=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},Ge.apply(null,arguments)}const Ue=e=>l.createElement("svg",Ge({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"})),Be||(Be=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"})),Pe||(Pe=l.createElement("circle",{cx:7,cy:12,r:1,fill:"currentColor"})));function Details(){const e=(0,d.useSelect)(e=>e(u.oR).getPicture()),t=(0,d.useSelect)(e=>e(u.oR).getFullName()),i=(0,d.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,Ne.A)("showProgress"),s=t&&"true"===i,o=(0,d.useSelect)(e=>e(g.O4).getProxyPermissionsURL()),n=(0,d.useSelect)(e=>e(u.oR).getEmail()),r=(0,d.useSelect)(e=>e(u.oR).getPicture()),a=(0,d.useSelect)(e=>e(u.oR).getFullName()),m=(0,d.useSelect)(e=>e(g.O4).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})),[p]=(0,je.A)(Te.CV,"isAutoCreatingCustomDimensionsForAudience"),{isTooltipVisible:y=!1,className:k}=(0,d.useSelect)(e=>e(w.nX).getValue("admin-screen-tooltip")||{isTooltipVisible:!1}),[E,A]=(0,l.useState)(!1),[b,x]=(0,l.useState)(!1),S=(0,l.useRef)(),M=(0,l.useRef)(),I=(0,v.A)(),{navigateTo:j}=(0,d.useDispatch)(re.M),C=e&&!s;(0,Ae.A)(S,()=>x(!1)),(0,Ce.l)([be._f,be.wn],S,()=>{x(!1),M.current?.focus()});const N=(0,l.useCallback)(()=>{A(!1),x(!1)},[A,x]),{setValue:T}=(0,d.useDispatch)(w.nX),D=(0,l.useCallback)(()=>{b||((0,f.sx)(`${I}_headerbar`,"open_usermenu"),y&&k?.includes("googlesitekit-tour-tooltip--user-menu")&&T("admin-screen-tooltip",void 0)),x(!b)},[b,I,T,y,k]),R=(0,l.useCallback)(()=>{A(!E),x(!1)},[E]),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"),j(o));break;case"disconnect":R();break;case"manage-email-reports":T(xe.Q,!0);break;default:D()}},[o,D,R,j,T,I]),L=(0,l.useCallback)(async()=>{A(!1),await(0,h.IL)(),await(0,f.sx)(`${I}_headerbar_usermenu`,"disconnect_user"),j(m)},[m,j,I]);if(!n)return null;const B=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:S,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:M,className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--tablet googlesitekit-border-radius-round--phone googlesitekit-border-radius-round googlesitekit-button-icon",onClick:D,icon:!!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":b,"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":B,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:b,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)(Fe.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)(Re,{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:E,handleConfirm:L,handleCancel:N,onClose:N,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 Ve,We=i(33052),He=i(75971);function ManageEmailReports(){const{setValue:e}=(0,He.wA)(w.nX);return(0,He.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(xe.Q,!0),icon:(0,ie.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--icon",children:(0,ie.jsx)(Fe.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 qe(){return qe=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},qe.apply(null,arguments)}const Ye=e=>l.createElement("svg",qe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 10"},e),Ve||(Ve=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,v.A)(),t=(0,d.useSelect)(e=>e(u.oR).hasCapability(u.ej)),i=(0,d.useSelect)(e=>e(g.O4).getProxySetupURL()),s=(0,d.useSelect)(e=>e(g.O4).getDocumentationLinkURL("dashboard-sharing")),{navigateTo:o}=(0,d.useDispatch)(re.M),n=(0,l.useCallback)(async t=>{t.preventDefault(),await Promise.all([(0,h.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)(de.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)(ge.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 Qe=i(88273);function Service({module:e}){const t=(0,d.useSelect)(e=>e(u.oR).hasCapability(u.ej)),{name:i,owner:s}=(0,d.useSelect)(t=>t(Qe.i).getModule(e)||{}),o=(0,d.useSelect)(t=>t(Qe.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 Ke=i(11974);function Tracking(){const e=(0,v.A)();return(0,ie.jsx)(Ke.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)(de.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,v.A)();(0,Ae.A)(s,()=>i(!1)),(0,Ce.l)([be._f,be.wn],s,()=>i(!1));const r=(0,l.useCallback)(()=>{t||(0,f.sx)(`${n}_headerbar`,"open_viewonly"),i(!t)},[t,n]),a=(0,d.useSelect)(e=>e(u.oR).hasCapability(u.ej)),g=(0,d.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)(Ye,{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(g)&&(0,ie.jsx)(MenuWithHeading,{className:"googlesitekit-view-only-menu__list-item",heading:(0,ie.jsx)(We.A,{as:"h4",size:"medium",type:"label",children:(0,c.__)("Shared services","google-site-kit")}),children:(0,ie.jsx)(SharedServices,{viewableModules:g})}),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,k.A)();!function(){const e=(0,v.A)(),t=(0,d.useSelect)(e=>e(g.O4).isUsingProxy()),i=(0,d.useSelect)(e=>e(g.O4).getSetupErrorMessage()),s=(0,_.i)("setupFlowRefresh");(0,l.useEffect)(()=>{s||i||void 0===t||async function(){const i=await(0,h.Gq)("start_user_setup"),s=await(0,h.Gq)("start_site_setup");i.cacheHit&&(await(0,h.LD)("start_user_setup"),(0,f.sx)(`${e}_setup`,"complete_user_setup",t?"proxy":"custom-oauth")),s.cacheHit&&(await(0,h.LD)("start_site_setup"),(0,f.sx)(`${e}_setup`,"complete_site_setup",t?"proxy":"custom-oauth"))}()},[s,e,t,i])}();const r=(0,d.useSelect)(e=>e(g.O4).getAdminURL("googlesitekit-dashboard")),y=(0,d.useSelect)(e=>e(u.oR).isAuthenticated()),[A,b]=(0,a.A)({childList:!0}),x=!!b.target?.childElementCount;return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsx)("header",{className:o()("googlesitekit-header",{"googlesitekit-header--has-subheader":x,"googlesitekit-header--has-navigation":i}),children:(0,ie.jsx)(E.xA,{children:(0,ie.jsxs)(E.fI,{children:[(0,ie.jsx)(E.fh,{smSize:1,mdSize:2,lgSize:4,className:"googlesitekit-header__logo",alignMiddle:!0,children:(0,ie.jsx)(de.A,{"aria-label":(0,c.__)("Go to dashboard","google-site-kit"),className:"googlesitekit-header__logo-link",href:r,children:(0,ie.jsx)(me.A,{})})}),(0,ie.jsxs)(E.fh,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0,children:[e,!y&&s&&n&&(0,ie.jsx)(ViewOnlyMenu,{}),y&&!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)(Ee.A,{areaSlug:m.bI.HEADER})]})}Header.displayName="Header",Header.propTypes={children:r().node,subHeader:r().element,showNavigation:r().bool},Header.defaultProps={children:null,subHeader:null};const Xe=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},12666(e,t,i){i.d(t,{A:()=>ChipTabGroup});var s=i(81276),o=i(63696),n=i(50539),r=i(7144),a=i(97345),l=i(99893);var c=i(88273),d=i(22942);var g=i(31589),u=i(7076);var m=i(7972),p=i(97513),h=i(68832),f=i(62688),_=i.n(f),v=i(82871),y=i(15650),k=i(4169),E=i(62540);function MetricItem({slug:e,title:t,description:i,isNewlyDetected:s,savedItemSlugs:a=[]}){const l=(0,n.useSelect)(t=>{const{getModule:i}=t(c.i),s=t(k.aO).getWidget(e);return s?.modules.reduce((e,t)=>{const s=i(t);return s?.connected||!s?.name?e:[...e,s.name]},[])}),[d,g]=(0,h.A)(r.Is,r.Y0),[,u]=(0,h.A)(r.Is,r.NO),m=(0,o.useCallback)(t=>{const i=t.target.checked?d.concat([e]):d.filter(t=>t!==e);g(i),u(i)},[e,d,g,u]),p=d?.includes(e),f=!a.includes(e)&&l.length>0,_=`key-metric-selection-checkbox-${e}`;return(0,E.jsx)(y.y3,{id:_,slug:e,title:t,description:i,isNewlyDetected:s,isItemSelected:p,isItemDisabled:f,onCheckboxChange:m,children:l.length>0&&(0,E.jsx)("div",{className:"googlesitekit-selection-panel-item-error",children:(0,v.sprintf)(/* translators: %s: module names. */ /* translators: %s: module names. */ (0,v._n)("%s is disconnected, no data to show","%s are disconnected, no data to show",l.length,"google-site-kit"),l.join((0,v.__)(" and ","google-site-kit")))})})}MetricItem.propTypes={slug:_().string.isRequired,title:_().string.isRequired,description:_().string.isRequired,isNewlyDetected:_().bool,savedItemSlugs:_().array};var A,b,x,S,M,I,w,j,C,N,T,D,R,O,L,B,z,P,F,G,U,V,W=i(83880);function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},H.apply(null,arguments)}const key_metrics_no_selected_items=e=>o.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 383 238"},e),A||(A=o.createElement("path",{fill:"#B8E6CA",d:"M59.238 58.571c-2.136 20.178 4.272 29.099 20.48 53.216 16.209 24.118-29.092 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.443-3.208 57.819 12.98 90.86 5.9s46.385-42.599 43.153-68.059c-5.59-44.041-26.24-49.107-34.893-66.461s2.902-52.997-30.287-73.16-76.71 14.42-112.503 12.37c-20.651-1.182-40.932-4.995-59.264.86-18.53 5.918-32.662 22.571-34.335 38.621"})),b||(b=o.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__a)"},o.createElement("rect",{width:130.621,height:89.651,x:242.455,y:45.266,fill:"#fff",rx:10.957,transform:"rotate(15 242.455 45.266)"}))),x||(x=o.createElement("rect",{width:24.903,height:7.969,x:253.726,y:64.785,fill:"#EBEEF0",rx:3.985,transform:"rotate(15 253.726 64.785)"})),S||(S=o.createElement("rect",{width:49.806,height:19.923,x:249.342,y:81.144,fill:"#FFDED3",rx:9.961,transform:"rotate(15 249.342 81.144)"})),M||(M=o.createElement("rect",{width:99.428,height:8.773,x:240.436,y:114.357,fill:"#EBEEF0",rx:3.985,transform:"rotate(15 240.436 114.357)"})),I||(I=o.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m256.195 90.198 4.644 8.044m0 0 1.412-4.986m-1.412 4.986-5.023-1.27"})),w||(w=o.createElement("rect",{width:19.923,height:5.977,x:268.706,y:93.551,fill:"#fff",rx:1.992,transform:"rotate(15 268.706 93.55)"})),j||(j=o.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__b)"},o.createElement("rect",{width:130.621,height:89.68,x:13.887,y:79.094,fill:"#fff",rx:10.957,transform:"rotate(-15 13.887 79.094)"}))),C||(C=o.createElement("rect",{width:62.386,height:7.798,x:32.989,y:90.122,fill:"#EBEEF0",rx:3.899,transform:"rotate(-15 32.99 90.122)"})),N||(N=o.createElement("rect",{width:49.806,height:19.923,x:37.691,y:106.902,fill:"#FFDED3",rx:9.961,transform:"rotate(-15 37.691 106.902)"})),T||(T=o.createElement("rect",{width:99.428,height:7.798,x:46.612,y:140.967,fill:"#EBEEF0",rx:3.899,transform:"rotate(-15 46.612 140.967)"})),D||(D=o.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m48.152 111.318 8.044 4.645m0 0-1.27-5.024m1.27 5.024-4.986 1.411"})),R||(R=o.createElement("rect",{width:19.923,height:5.977,x:60.663,y:107.966,fill:"#fff",rx:1.992,transform:"rotate(-15 60.663 107.966)"})),O||(O=o.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__c)"},o.createElement("rect",{width:130.621,height:89.68,x:126.251,y:37.4,fill:"#fff",rx:10.957}))),L||(L=o.createElement("rect",{width:98.333,height:7.867,x:143.013,y:53.134,fill:"#EBEEF0",rx:3.933})),B||(B=o.createElement("rect",{width:49.806,height:19.923,x:142.369,y:70.423,fill:"#B8E6CA",rx:9.961})),z||(z=o.createElement("rect",{width:33.04,height:7.867,x:143.013,y:105.84,fill:"#EBEEF0",rx:3.933})),P||(P=o.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m151.336 84.036 6.568-6.567m0 0-5.182-.073m5.182.073.073 5.18"})),F||(F=o.createElement("rect",{width:19.923,height:5.977,x:164.287,y:77.395,fill:"#fff",rx:1.992})),o.createElement("mask",{id:"key-metrics-no-selected-items_svg__d",width:273,height:230,x:58,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},G||(G=o.createElement("path",{fill:"#B8E6CA",d:"M59.237 58.571C57.1 78.75 63.509 87.67 79.717 111.787c16.209 24.118-29.091 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.444-3.208 57.82 12.98 90.86 5.9s46.385-42.599 43.153-68.059c-5.59-44.041-26.24-49.107-34.893-66.461s2.902-52.997-30.287-73.16-76.71 14.42-112.503 12.37c-20.651-1.182-40.932-4.995-59.264.86C75.042 25.868 60.91 42.52 59.237 58.57"}))),U||(U=o.createElement("g",{mask:"url(#key-metrics-no-selected-items_svg__d)"},o.createElement("path",{stroke:"#CBD0D3",strokeMiterlimit:10,strokeWidth:3.147,d:"m227.674 108.973 11.312-8.418M218.925 98.852l2.868-12.68M205.623 102.87l-5.375-13.037"}),o.createElement("path",{stroke:"#3C7251",strokeLinejoin:"round",strokeWidth:9.44,d:"M63.953 190.487c16.127 12.193 38.716 10.349 55.335 5.162 16.618-5.187 31.107-14.61 45.314-23.791 6.717-4.337 13.617-8.738 21.496-11.119s17.057-2.39 22.958 1.658c3.392 2.328 5.205 5.923 5.36 9.702"}),o.createElement("path",{stroke:"#CBD0D3",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:9.44,d:"m215.831 109.67-19.169 71.73"}),o.createElement("path",{stroke:"#161B18",strokeMiterlimit:10,strokeWidth:9.44,d:"m213.975 116.472-19.169 71.731"}))),V||(V=o.createElement("defs",null,o.createElement("filter",{id:"key-metrics-no-selected-items_svg__a",width:176.33,height:147.36,x:205.773,y:35.772,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},o.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),o.createElement("feOffset",{dy:3.985}),o.createElement("feGaussianBlur",{stdDeviation:7.969}),o.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),o.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),o.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),o.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})),o.createElement("filter",{id:"key-metrics-no-selected-items_svg__b",width:176.337,height:147.388,x:.409,y:35.793,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},o.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),o.createElement("feOffset",{dy:3.985}),o.createElement("feGaussianBlur",{stdDeviation:7.969}),o.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),o.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),o.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),o.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})),o.createElement("filter",{id:"key-metrics-no-selected-items_svg__c",width:162.497,height:121.556,x:110.313,y:25.447,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},o.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),o.createElement("feOffset",{dy:3.985}),o.createElement("feGaussianBlur",{stdDeviation:7.969}),o.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),o.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),o.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),o.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})))));function TabContent({activeMetricItems:e,newlyDetectedMetrics:t,savedItemSlugs:i}){return(0,E.jsxs)("div",{className:"googlesitekit-chip-tab-group__tab-item",children:[Object.keys(e).map(s=>{const o=e[s].group,n=t?.[o]?.includes(s);return(0,E.jsx)(MetricItem,{slug:s,savedItemSlugs:i,isNewlyDetected:n,...e[s]},s)}),!Object.keys(e).length&&(0,E.jsxs)("div",{className:"googlesitekit-chip-tab-group__graphic",children:[(0,E.jsx)(key_metrics_no_selected_items,{height:250}),(0,E.jsx)(W.A,{children:(0,v.__)("No metrics were selected yet","google-site-kit")})]})]})}TabContent.propTypes={activeMetricItems:_().object.isRequired,newlyDetectedMetrics:_().object.isRequired,savedItemSlugs:_().array};var q=i(49383),Y=i(64515),Z=i(80452),Q=i(42343),K=i(4452),X=i.n(K);const $={[r.QJ.SLUG]:Z.A,[r.KD.SLUG]:Q.A};function Chip({slug:e,label:t,isActive:i,onClick:s,hasNewBadge:o=!1,selectedCount:n=0}){const r=$[e]||Y.A;return(0,E.jsxs)(q.Button,{className:X()("googlesitekit-chip-tab-group__chip-item",{"googlesitekit-chip-tab-group__chip-item--active":i}),icon:(0,E.jsx)(r,{width:12,height:12,className:`googlesitekit-chip-tab-group__chip-item-svg googlesitekit-chip-tab-group__chip-item-svg__${e}`}),trailingIcon:n>0?(0,E.jsxs)("span",{className:"googlesitekit-chip-tab-group__chip-item-count",children:["(",n,")"]}):null,onClick:()=>s(e),children:[t,o&&(0,E.jsx)("span",{className:"googlesitekit-chip-tab-group__chip-item-new-dot"})]})}Chip.propTypes={slug:_().string.isRequired,label:_().string.isRequired,isActive:_().bool,hasNewBadge:_().bool,selectedCount:_().number,onClick:_().func.isRequired};const J={[r.QJ.SLUG]:Z.A,[r.KD.SLUG]:Q.A};function TabItems({containerRef:e,isMobileBreakpoint:t,chipItemRows:i,allGroups:s,isActive:o,onChipChange:n,selectedCounts:r,newlyDetectedMetrics:a,activeGroupIndex:l}){return(0,E.jsxs)("div",{className:"googlesitekit-chip-tab-group__tab-items",ref:e,children:[!t&&i.map(e=>(0,E.jsx)("div",{className:"googlesitekit-chip-tab-group__tab-items-row",children:e.map(e=>(0,E.jsx)(Chip,{slug:e.SLUG,label:e.LABEL,hasNewBadge:!!a?.[e.SLUG],isActive:e.SLUG===o,onClick:n,selectedCount:r[e.SLUG]},e.SLUG))},`row-${e[0].SLUG}`)),t&&(0,E.jsx)(q.TabBar,{activeIndex:l,handleActiveIndexUpdate:e=>n(null,e),children:s.map((e,t)=>{const i=J[e.SLUG]||Y.A;return(0,E.jsxs)(q.Tab,{"aria-label":e.LABEL,children:[(0,E.jsx)(i,{width:12,height:12,className:`googlesitekit-chip-tab-group__chip-item-svg googlesitekit-chip-tab-group__tab-item-mobile-svg googlesitekit-chip-tab-group__chip-item-svg__${e.SLUG}`}),e.LABEL,r[e.SLUG]>0&&(0,E.jsxs)("span",{className:"googlesitekit-chip-tab-group__chip-item-count",children:["(",r[e.SLUG],")"]}),!!a?.[e.SLUG]&&(0,E.jsx)("span",{className:"googlesitekit-chip-tab-group__chip-item-new-dot"})]},t)})})]})}TabItems.propTypes={containerRef:_().object,isMobileBreakpoint:_().bool,chipItemRows:_().array.isRequired,allGroups:_().array.isRequired,isActive:_().string.isRequired,onChipChange:_().func.isRequired,selectedCounts:_().object.isRequired,newlyDetectedMetrics:_().object.isRequired,activeGroupIndex:_().number.isRequired};const ee=Object.freeze([]);function ChipTabGroup({allMetricItems:e,savedItemSlugs:t}){const i=(0,o.useRef)(),[f,_]=(0,o.useState)(r.QJ.SLUG),[v,y]=(0,o.useState)(0),k=(0,p.dv)()===p.mp,[A]=(0,h.A)(r.Is,r.Y0),[b,x]=(0,h.A)(r.Is,r.Nl),S=b||ee,[M,I]=(0,h.A)(r.Is,r.NO),w=M||ee,j=(0,n.useSelect)(e=>e(a.oR).isUserInputCompleted()),C=(0,n.useSelect)(e=>{const t=e(a.oR).getUserPickedMetrics();if(t?.length){const i=e(l.K9).getKeyMetricsConversionEventWidgets();return Object.keys(i).filter(e=>t.some(t=>i[e].includes(t)))}const i=e(a.oR).getUserInputSettings();return i?.includeConversionEvents?.values}),N=(0,n.useSelect)(e=>e(c.i).isModuleConnected(d.L1)),T=(0,n.useSelect)(e=>N?e(l.K9).getDetectedEvents():[]),D=(0,n.useSelect)(e=>e(a.oR).getAnswerBasedMetrics(null,[...C||[],...T||[]])),{keyMetricsGroups:R,dynamicGroups:O}=function({detectedEvents:e=[],currentlyActiveEvents:t=[],isUserInputCompleted:i,answerBasedMetrics:s=[]}){const n=[l.nc.SUBMIT_LEAD_FORM,l.nc.CONTACT,l.nc.GENERATE_LEAD].filter(i=>e?.includes(i)||t?.includes(i)),a=[l.nc.ADD_TO_CART,l.nc.PURCHASE].filter(i=>e?.includes(i)||t?.includes(i)),c=(0,o.useMemo)(()=>[r.IX,r.wb,...n?.length?[r.XU]:[],...a?.length?[r.GF]:[],r.hs],[n,a]),d=(0,o.useMemo)(()=>i&&s?.length?[r.QJ,r.KD]:[r.QJ],[i,s]);return{hasGeneratingLeadsGroup:n,hasSellingProductsGroup:a,keyMetricsGroups:c,dynamicGroups:d}}({detectedEvents:T,currentlyActiveEvents:C,isUserInputCompleted:j,answerBasedMetrics:D}),L=(0,o.useMemo)(()=>[...O,...R],[O,R]),B=(0,n.useSelect)(e=>{if(!e(c.i).isModuleConnected(d.L1))return[];const t=e(l.K9).getDetectedEvents(),i=e(l.K9).getNewBadgeEvents();if(t?.length&&i?.length){const e=t.filter(e=>l.fV.includes(e)),s=i.filter(e=>l.fV.includes(e)),o=i.filter(e=>!l.fV.includes(e));if(e?.length>1&&s.length>0)return o}return i}),z=(0,n.useSelect)(e=>N?e(l.K9).getKeyMetricsConversionEventWidgets():[]),{selectedCounts:P,activeMetricItems:F,newlyDetectedMetrics:G}=function({allMetricItems:e={},isActive:t,effectiveSelection:i=[],answerBasedMetrics:s=[],selectedMetrics:n=[],newBadgeEvents:a=[],conversionReportingEventWidgets:l={}}){return(0,o.useMemo)(()=>{const o={[r.QJ.SLUG]:0},c={},d={};for(const g in e){const u=e[g].group;if((u===t||t===r.QJ.SLUG&&i.includes(g))&&(c[g]=e[g]),t===r.KD.SLUG&&s.includes(g)&&s.includes(g)&&(c[g]=e[g]),!o[u]){const t=Object.keys(e).filter(t=>!(e[t].group!==u||!n?.includes(t))).length;o[u]=t}a?.length&&a.some(e=>l[e].includes(g))&&(d[u]=[...d[u]??[],g])}return{selectedCounts:o,activeMetricItems:c,newlyDetectedMetrics:d}},[e,t,i,s,n,a,l])}({allMetricItems:e,isActive:f,effectiveSelection:S,answerBasedMetrics:D,selectedMetrics:A,newBadgeEvents:B,conversionReportingEventWidgets:z}),U=(0,o.useCallback)(()=>{x([...S,...w]),I([])},[S,w,x,I]),V=(0,o.useCallback)((e,t)=>{if(e)_(e);else{const e=L[t];y(t),_(e.SLUG)}w.length&&U()},[L,w,_,U]),W=(0,n.useSelect)(e=>e(m.nX).getValue(r.EA)),H=(0,s.A)(W),q=Object.keys(G);(0,o.useEffect)(()=>{if(!H&&W)if(_(r.QJ.SLUG),y(0),q.length&&k){const e=L.find(e=>e.SLUG===q[0]);y(L.indexOf(e)),_(e.SLUG)}else y(0),_(r.QJ.SLUG);H&&!W&&U()},[W,H,w,L,k,q,U]),function({containerRef:e,isMobileBreakpoint:t,isSelectionPanelOpen:i,isSelectionPanelOpenPrevious:s}){const n=(0,o.useCallback)(()=>{const i=e.current?.querySelector(".mdc-tab-scroller__scroll-content");if(!t)return;const s=e.current?.querySelectorAll(".googlesitekit-chip-tab-group__tab-items .mdc-tab");if(!s?.length||!i)return;const o=e.current?.getBoundingClientRect(),r=[];s.forEach((e,t)=>{const i=e.getBoundingClientRect();i.left>=o.left&&i.right<=o.right&&r.push(t)});const a=s[r.length];if(!a)return;const l=a.getBoundingClientRect();(l.left>=o.right||l.left-o.right<0&&-(l.left-o.right)<=20)&&("2px"===i.style.columnGap?i.style.columnGap="20px":i.style.columnGap="2px",n())},[e,t]),r=(0,u.d)(n,50);(0,g.A)("resize",r),(0,o.useEffect)(()=>{!s&&i&&n()},[i,s,n])}({containerRef:i,isMobileBreakpoint:k,isSelectionPanelOpen:W,isSelectionPanelOpenPrevious:H});const Y=[[...O,...R.slice(0,2)],[...R.slice(2)]];return(0,E.jsxs)("div",{className:"googlesitekit-chip-tab-group",children:[(0,E.jsx)(TabItems,{containerRef:i,isMobileBreakpoint:k,chipItemRows:Y,allGroups:L,isActive:f,onChipChange:V,selectedCounts:P,newlyDetectedMetrics:G,activeGroupIndex:v}),(0,E.jsx)(TabContent,{activeMetricItems:F,newlyDetectedMetrics:G,savedItemSlugs:t})]})}},26464(e,t,i){i.d(t,{A:()=>PanelContent});var s=i(4452),o=i.n(s),n=i(17243),r=i(62688),a=i.n(r),l=i(63696),c=i(15650),d=i(81276),g=i(82871),u=i(50539),m=i(7144),p=i(50454),h=i(3749),f=i(68329),_=i(97345),v=i(68832),y=i(22942),k=i(99893),E=i(62954),A=i(65385),b=i(62540);const x=(0,A.A)({moduleName:y.L1})(function CustomDimensionsNotice(){const[e]=(0,v.A)(m.Is,m.Y0),t=e?.flatMap(e=>{const t=p.G[e];return t?.requiredCustomDimensions||[]}),i=(0,u.useInViewSelect)(e=>!!t?.length&&!e(k.K9).hasCustomDimensions(t),[t]),s=(0,u.useInViewSelect)(e=>e(_.oR).hasScope(k.S9));(0,u.useInViewSelect)(e=>e(k.K9).getAvailableCustomDimensions());const o=(0,d.A)(i),n=(0,l.useRef)();if((0,l.useEffect)(()=>{if(i&&!1===o){const e=globalThis.document.activeElement;e&&e.closest(".googlesitekit-selection-panel-item")&&(0,E.N)(n.current,e)&&e.scrollIntoView()}},[i,o]),!1===i)return null;const r=s?(0,g.__)("The metrics you selected require more data tracking. We will update your Analytics property after saving your selection.","google-site-kit"):(0,g.__)("The metrics you selected require more data tracking. You will be directed to update your Analytics property after saving your selection.","google-site-kit");return(0,b.jsx)(f.A,{ref:n,type:h.L.WARNING,description:r,hideIcon:!0})});var S=i(78990),M=i(70301),I=i(29785),w=i(88273),j=i(62659),C=i(13047),N=i(13137),T=i(13606),D=i(49383),R=i(4751);function SelectionPanelFooter({savedItemSlugs:e=[],selectedItemSlugs:t=[],saveSettings:i=()=>{},minSelectedItemCount:s=0,maxSelectedItemCount:o=0,isBusy:r,onSaveSuccess:a=()=>{},onCancel:c=()=>{},isOpen:d,closePanel:m=()=>{},isFullScreen:p=!1}){const[h,f]=(0,l.useState)(null),[_,v]=(0,l.useState)(!1),y=(0,u.useSelect)(e=>e(k.K9).isFetchingSyncAvailableAudiences()),E=(0,l.useMemo)(()=>!(0,n.isEqual)((0,C.N9)(t),(0,C.N9)(e)),[e,t]);let A=e?.length>0&&E?(0,g.__)("Apply changes","google-site-kit"):(0,g.__)("Save selection","google-site-kit");p&&(A=(0,g.__)("Complete setup","google-site-kit"));const x=(0,l.useCallback)(async()=>{const{error:e}=await i(t);e||(a(),m(),p||(f(A),v(!0)))},[i,t,a,m,p,A]),S=(0,l.useCallback)(()=>{m(),c()},[m,c]),[M,I]=(0,l.useState)(null);(0,l.useEffect)(()=>{null!==M&&M!==d&&d&&(f(null),v(!1)),I(d)},[d,M]);const w=t?.length||0,j=y?(0,b.jsx)(R.A,{width:"89px",height:"20px"}):(0,b.jsx)("p",{className:"googlesitekit-selection-panel-footer__item-count",children:(0,T.A)((0,g.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,g.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),w,o),{MaxCount:(0,b.jsx)("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})})});return(0,b.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,b.jsx)("div",{className:"googlesitekit-selection-panel-footer__content",children:(0,b.jsxs)("div",{className:"googlesitekit-selection-panel-footer__actions",children:[(0,b.jsx)(D.Button,{onClick:S,disabled:r,tertiary:!0,children:(0,g.__)("Cancel","google-site-kit")}),j,(0,b.jsx)(D.SpinnerButton,{onClick:x,isSaving:r,disabled:w<s||w>o||r||!d&&_,children:h||A})]})})})}function Footer({isOpen:e,closePanel:t=n.noop,savedMetrics:i,onNavigationToOAuthURL:s=()=>{},isFullScreen:o=!1}){const r=(0,u.useRegistry)(),a=(0,j.A)(),[c]=(0,v.A)(m.Is,m.Y0),[,d]=(0,v.A)(k.Kr,"autoSubmit"),h=(0,u.useSelect)(e=>e(_.oR).isSavingKeyMetricsSettings()),f=`${a}_kmw-sidebar`,E=c?.flatMap(e=>{const t=p.G[e];return t?.requiredCustomDimensions||[]}),A=(0,u.useInViewSelect)(e=>{if(!E?.length)return!1;return!e(k.K9).hasCustomDimensions(E)},[E]),x=(0,u.useInViewSelect)(e=>e(_.oR).hasScope(k.S9)),T=(0,u.useSelect)(e=>e(w.i).isModuleConnected(y.L1)),D=(0,u.useSelect)(e=>e(I.O4).getAdminURL("googlesitekit-dashboard",{notification:"custom_dimensions"})),R=(0,u.useSelect)(e=>{const t=e(_.oR).getConnectURL({additionalScopes:[k.S9],redirectURL:D});return!!t&&e(M.M).isNavigatingTo(t)}),O=(0,u.useSelect)(e=>e(I.O4).getAdminURL("googlesitekit-dashboard")),L=(0,u.useSelect)(e=>!!O&&e(M.M).isNavigatingTo(O)),{saveKeyMetricsSettings:B,setPermissionScopeError:z}=(0,u.useDispatch)(_.oR),{navigateTo:P}=(0,u.useDispatch)(M.M),F=(0,u.useSelect)(e=>e(k.K9).getKeyMetricsConversionEventWidgets()),G=(0,l.useCallback)(async e=>{const{error:t}=await B({widgetSlugs:e});return{error:t}},[B]),U=(0,l.useCallback)(async e=>{if(Object.values(F).flat().some(t=>e.includes(t))?(0,C.sx)(f,"metrics_sidebar_save","conversion_reporting"):(0,C.sx)(f,"metrics_sidebar_save"),T&&A){if(d(!0),!x)return s(),t(),void z({code:N.db,message:(0,g.__)("Additional permissions are required to create new Analytics custom dimensions","google-site-kit"),data:{status:403,scopes:[k.S9],skipModal:!0,redirectURL:D}});o&&await(0,S.mR)(r)}o&&P(O)},[F,T,A,o,f,d,x,s,t,z,D,r,P,O]),V=(0,l.useCallback)(()=>{(0,C.sx)(f,"metrics_sidebar_cancel"),o&&P(O)},[o,O,P,f]);return(0,b.jsx)(SelectionPanelFooter,{savedItemSlugs:i,selectedItemSlugs:c,saveSettings:G,minSelectedItemCount:m.LO,maxSelectedItemCount:m.Hl,isBusy:h||R||L&&o,onSaveSuccess:()=>{U(c)},onCancel:V,isOpen:e,closePanel:t,isFullScreen:o})}SelectionPanelFooter.propTypes={savedItemSlugs:a().array,selectedItemSlugs:a().array,saveSettings:a().func,saveError:a().object,minSelectedItemCount:a().number,maxSelectedItemCount:a().number,isBusy:a().bool,onSaveSuccess:a().func,onCancel:a().func,isOpen:a().bool,closePanel:a().func,isFullScreen:a().bool},Footer.propTypes={isOpen:a().bool,closePanel:a().func,savedMetrics:a().array,onNavigationToOAuthURL:a().func,isFullScreen:a().bool};var O=i(38432),L=i(83880),B=i(30805),z=i(4124);function Header({closePanel:e}){const t=(0,z.A)(),i=(0,B.i)("setupFlowRefresh"),s=(0,u.useSelect)(e=>e(I.O4).getSiteKitAdminSettingsURL()),o=(0,u.useSelect)(e=>e(_.oR).isSavingKeyMetricsSettings()),{navigateTo:n}=(0,u.useDispatch)(M.M),r=(0,l.useCallback)(()=>n(s),[s,n]);return(0,b.jsx)(c.W4,{title:(0,g.sprintf)(/* translators: %d: number of max allowed metrics */ /* translators: %d: number of max allowed metrics */ (0,g.__)("Select up to %d metrics","google-site-kit"),m.Hl),onCloseClick:e,children:!t&&(0,b.jsx)(L.A,{children:(0,T.A)(i?(0,g.__)("Edit your personalized goals in <link><strong>Settings</strong></link>","google-site-kit"):(0,g.__)("Edit your personalized goals or deactivate this widget in <link><strong>Settings</strong></link>","google-site-kit"),{link:(0,b.jsx)(O.A,{onClick:r,disabled:o,secondary:!0}),strong:(0,b.jsx)("strong",{})})})})}Header.propTypes={closePanel:a().func.isRequired};var P=i(65695);const F=(0,A.A)({moduleName:y.L1})(function KeyMetricsError({savedMetrics:e}){const[t]=(0,v.A)(m.Is,m.Y0),i=(0,u.useInViewSelect)(e=>e(_.oR).getKeyMetricsSettings()),s=(0,l.useMemo)(()=>!(0,n.isEqual)((0,C.N9)(t),(0,C.N9)(e)),[e,t]),o=(0,u.useSelect)(e=>e(_.oR).getErrorForAction("saveKeyMetricsSettings",[{...i,widgetSlugs:t}])),r=t?.length||0;let a;r<m.LO?a=(0,g.sprintf)(/* translators: 1: Minimum number of metrics that can be selected. 2: Number of selected metrics. */ /* translators: 1: Minimum number of metrics that can be selected. 2: Number of selected metrics. */ (0,g.__)("Select at least %1$d metrics (%2$d selected)","google-site-kit"),m.LO,r):r>m.Hl&&(a=(0,g.sprintf)(/* translators: 1: Maximum number of metrics that can be selected. 2: Number of selected metrics. */ /* translators: 1: Maximum number of metrics that can be selected. 2: Number of selected metrics. */ (0,g.__)("Select up to %1$d metrics (%2$d selected)","google-site-kit"),m.Hl,r));let c=o;return s&&a&&(c={message:a}),(0,b.jsx)(P.A,{error:c,skipRetryMessage:!!a})});var G=i(12666);function SelectionPanelItems({savedItemSlugs:e=[],allMetricItems:t}){return(0,b.jsx)("div",{className:"googlesitekit-selection-panel-items",children:(0,b.jsx)(G.A,{savedItemSlugs:e,allMetricItems:t})})}function MetricItems({savedMetrics:e}){const t=(0,z.A)(),{isKeyMetricAvailable:i}=(0,u.useSelect)(e=>e(_.oR)),s=(0,u.useInViewSelect)(e=>i=>p.G[i].displayInSelectionPanel({select:e,isViewOnlyDashboard:t,slug:i}),[t]);const o=Object.keys(p.G).reduce(function(e,t){if(!i(t))return e;if(void 0===s||"function"==typeof p.G[t].displayInSelectionPanel&&!s(t))return e;const{title:o,description:n,metadata:{group:r}}=p.G[t];return{...e,[t]:{title:o,description:n,group:r}}},{});return(0,b.jsx)(SelectionPanelItems,{savedItemSlugs:e,allMetricItems:o})}function PanelContent({isOpen:e=!1,closePanel:t,savedViewableMetrics:i,showHeader:s=!0,setIsNavigatingToOAuthURL:r=n.noop,isFullScreen:a=!1}){return(0,b.jsxs)(l.Fragment,{children:[s&&(0,b.jsx)(Header,{closePanel:t}),(0,b.jsxs)(c.kA,{children:[(0,b.jsx)(MetricItems,{savedMetrics:i}),(0,b.jsx)(x,{})]}),(0,b.jsxs)("div",{className:o()("googlesitekit-user-input__footer-container",{"googlesitekit-user-input__footer-container--fullscreen":a}),children:[(0,b.jsx)(F,{savedMetrics:i}),(0,b.jsx)(Footer,{isOpen:e,closePanel:t,savedMetrics:i,onNavigationToOAuthURL:()=>{r(!0)},isFullScreen:a})]})]})}SelectionPanelItems.propTypes={savedItemSlugs:a().array,allMetricItems:a().object.isRequired},MetricItems.propTypes={savedMetrics:a().array},PanelContent.propTypes={isOpen:a().bool,closePanel:a().func,savedViewableMetrics:a().array,showHeader:a().bool,setIsNavigatingToOAuthURL:a().func,isFullScreen:a().bool}},7144(e,t,i){i.d(t,{EA:()=>n,GF:()=>_,Hl:()=>g,IX:()=>p,Is:()=>r,KD:()=>m,LO:()=>d,NO:()=>c,Nl:()=>l,QJ:()=>u,Uf:()=>o,XU:()=>f,Y0:()=>a,hs:()=>v,wb:()=>h});var s=i(82871);const o="key-metrics-setup-cta-widget",n="googlesitekit-key-metrics-selection-panel-opened",r="key-metrics-selection-form",a="key-metrics-selected",l="key-metrics-effective-selection",c="key-metrics-unstaged-selection",d=2,g=8,u={SLUG:"current-selection",LABEL:(0,s.__)("Current selection","google-site-kit")},m={SLUG:"suggested",LABEL:(0,s.__)("Suggested","google-site-kit")},p={SLUG:"visitors",LABEL:(0,s.__)("Visitors","google-site-kit")},h={SLUG:"driving-traffic",LABEL:(0,s.__)("Driving traffic","google-site-kit")},f={SLUG:"generating-leads",LABEL:(0,s.__)("Generating leads","google-site-kit")},_={SLUG:"selling-products",LABEL:(0,s.__)("Selling products","google-site-kit")},v={SLUG:"content-performance",LABEL:(0,s.__)("Content performance","google-site-kit")}},12813(e,t,i){i.d(t,{A:()=>u});var s=i(50539),o=i(7144),n=i(7972),r=i(97345),a=i(88273),l=i(22942),c=i(99893),d=i(32803),g=i(49481);function u(){const e=(0,s.useSelect)(e=>e(n.nX).getValue("keepKeyMetricsSetupCTAWidgetVisible")),t=(0,s.useSelect)(e=>{const t=e(r.oR).isItemDismissed(o.Uf),i=e(r.oR).isDismissingItem(o.Uf),s=m(e,d.Y,g.n),n=m(e,l.L1,c.K9);return!1===t&&!1===i&&s&&n},[]);return e||t}function m(e,t,i){if(e(a.i).isModuleConnected(t)){const{isGatheringData:t,isDataAvailableOnLoad:s}=e(i);return t(),s()}return!1}},50454(e,t,i){i.d(t,{G:()=>g});var s=i(82871),o=i(29785),n=i(97345),r=i(99893),a=i(7144);function l({select:e,slug:t}){return e(r.K9).hasConversionReportingEvents(this.requiredConversionEventName)||e(n.oR).isKeyMetricActive(t)}function c({select:e,isViewOnlyDashboard:t}){return!t||!(!t||!e(r.K9).getAdSenseLinked())}function d({select:e,isViewOnlyDashboard:t}){return!t||e(r.K9).hasCustomDimensions(this.requiredCustomDimensions)}const g={[n.p3]:{title:(0,s.__)("Top earning pages","google-site-kit"),description:(0,s.__)("Pages that generated the most AdSense revenue","google-site-kit"),infoTooltip:(0,s.__)("Pages that generated the most AdSense revenue","google-site-kit"),displayInSelectionPanel:c,displayInList:c,metadata:{group:a.hs.SLUG}},[n.BT]:{title:(0,s.__)("Top recent trending pages","google-site-kit"),description:(0,s.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),infoTooltip:(0,s.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_date"],displayInSelectionPanel:d,displayInWidgetArea:d,displayInList:d,metadata:{group:a.hs.SLUG}},[n.tB]:{title:(0,s.__)("Most popular authors by pageviews","google-site-kit"),description:(0,s.__)("Authors whose posts got the most visits","google-site-kit"),infoTooltip:(0,s.__)("Authors whose posts got the most visits","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_author"],displayInSelectionPanel:d,displayInWidgetArea:d,displayInList:d,metadata:{group:a.hs.SLUG}},[n.t1]:{title:(0,s.__)("Top categories by pageviews","google-site-kit"),description:(0,s.__)("Categories that your site visitors viewed the most","google-site-kit"),infoTooltip:(0,s.__)("Categories that your site visitors viewed the most","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_categories"],displayInSelectionPanel:d,displayInWidgetArea:d,displayInList:d,metadata:{group:a.hs.SLUG}},[n.ep]:{title:(0,s.__)("Most popular content by pageviews","google-site-kit"),description:(0,s.__)("Pages that brought in the most visitors","google-site-kit"),infoTooltip:(0,s.__)("Pages your visitors read the most","google-site-kit"),metadata:{group:a.hs.SLUG}},[n.pG]:{title:(0,s.__)("Most popular products by pageviews","google-site-kit"),description:(0,s.__)("Products that brought in the most visitors","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_type"],displayInSelectionPanel:({select:e})=>e(n.oR).isKeyMetricActive(n.pG)||e(o.O4).getProductPostType(),displayInWidgetArea:d,metadata:{group:a.GF.SLUG}},[n.nH]:{title:(0,s.__)("Pages per visit","google-site-kit"),description:(0,s.__)("Number of pages visitors viewed per session on average","google-site-kit"),infoTooltip:(0,s.__)("Number of pages visitors viewed per session on average","google-site-kit"),metadata:{group:a.IX.SLUG}},[n.J5]:{title:(0,s.__)("Visit length","google-site-kit"),description:(0,s.__)("Average duration of engaged visits","google-site-kit"),infoTooltip:(0,s.__)("Average duration of engaged visits","google-site-kit"),metadata:{group:a.IX.SLUG}},[n.Yw]:{title:(0,s.__)("Visits per visitor","google-site-kit"),description:(0,s.__)("Average number of sessions per site visitor","google-site-kit"),infoTooltip:(0,s.__)("Average number of sessions per site visitor","google-site-kit"),metadata:{group:a.IX.SLUG}},[n.UY]:{title:(0,s.__)("Most engaging pages","google-site-kit"),description:(0,s.__)("Pages with the highest engagement rate","google-site-kit"),infoTooltip:(0,s.__)("Pages with the highest engagement rate","google-site-kit"),metadata:{group:a.hs.SLUG}},[n.gC]:{title:(0,s.__)("Least engaging pages","google-site-kit"),description:(0,s.__)("Pages with the highest percentage of visitors that left without engagement with your site","google-site-kit"),infoTooltip:(0,s.__)("Percentage of visitors that left without engagement with your site","google-site-kit"),metadata:{group:a.hs.SLUG}},[n.tK]:{title:(0,s.__)("Top pages by returning visitors","google-site-kit"),description:(0,s.__)("Pages that attracted the most returning visitors","google-site-kit"),infoTooltip:(0,s.__)("Pages that attracted the most returning visitors","google-site-kit"),metadata:{group:a.IX.SLUG}},[n.fu]:{title:(0,s.__)("New visitors","google-site-kit"),description:(0,s.__)("How many new visitors you got and how the overall audience changed","google-site-kit"),infoTooltip:(0,s.__)("Portion of visitors who visited your site for the first time in this timeframe","google-site-kit"),metadata:{group:a.IX.SLUG}},[n.dX]:{title:(0,s.__)("Returning visitors","google-site-kit"),description:(0,s.__)("Portion of people who visited your site more than once","google-site-kit"),infoTooltip:(0,s.__)("Portion of your siteâs visitors that returned at least once in this timeframe","google-site-kit"),metadata:{group:a.IX.SLUG}},[n.SS]:{title:(0,s.__)("Top traffic source","google-site-kit"),description:(0,s.__)("Channel which brought in the most visitors to your site","google-site-kit"),infoTooltip:(0,s.__)("Channel (e.g. social, paid, search) that brought in the most visitors to your site","google-site-kit"),metadata:{group:a.wb.SLUG}},[n.Vl]:{title:(0,s.__)("Top traffic source driving add to cart","google-site-kit"),description:(0,s.__)("Channel which brought in the most add to cart events to your site","google-site-kit"),infoTooltip:(0,s.__)("Channel (e.g. social, paid, search) that brought in the most add to cart events to your site","google-site-kit"),requiredConversionEventName:[r.nc.ADD_TO_CART],displayInSelectionPanel:l,displayInList:l,metadata:{group:a.GF.SLUG}},[n.u_]:{title:(0,s.__)("Top traffic source driving leads","google-site-kit"),description:(0,s.__)("Channel which brought in the most leads to your site","google-site-kit"),infoTooltip:(0,s.__)("Channel (e.g. social, paid, search) that brought in the most leads to your site","google-site-kit"),requiredConversionEventName:[r.nc.SUBMIT_LEAD_FORM,r.nc.CONTACT,r.nc.GENERATE_LEAD],displayInSelectionPanel:l,displayInList:l,metadata:{group:a.XU.SLUG}},[n.HA]:{title:(0,s.__)("Top traffic source driving purchases","google-site-kit"),description:(0,s.__)("Channel which brought in the most purchases to your site","google-site-kit"),infoTooltip:(0,s.__)("Channel (e.g. social, paid, search) that brought in the most purchases to your site","google-site-kit"),requiredConversionEventName:[r.nc.PURCHASE],displayInSelectionPanel:l,displayInList:l,metadata:{group:a.GF.SLUG}},[n.GT]:{title:(0,s.__)("Most engaged traffic source","google-site-kit"),description:(0,s.__)("Visitors coming via this channel spent the most time on your site","google-site-kit"),infoTooltip:(0,s.__)("Channel (e.g. social, paid, search) that brought in the most visitors who had a meaningful engagement with your site","google-site-kit"),metadata:{group:a.wb.SLUG}},[n.qy]:{title:(0,s.__)("Top converting traffic source","google-site-kit"),description:(0,s.__)("Channel which brought in the most visits that resulted in key events","google-site-kit"),infoTooltip:(0,s.__)("Channel (e.g. social, paid, search) that brought in visitors who generated the most key events","google-site-kit"),metadata:{group:a.wb.SLUG}},[n.GM]:{title:(0,s.__)("Top cities driving traffic","google-site-kit"),description:(0,s.__)("Which cities you get the most visitors from","google-site-kit"),infoTooltip:(0,s.__)("The cities where most of your visitors came from","google-site-kit"),metadata:{group:a.wb.SLUG}},[n.CQ]:{title:(0,s.__)("Top cities driving leads","google-site-kit"),description:(0,s.__)("Cities driving the most contact form submissions","google-site-kit"),infoTooltip:(0,s.__)("Cities driving the most contact form submissions","google-site-kit"),requiredConversionEventName:[r.nc.SUBMIT_LEAD_FORM,r.nc.CONTACT,r.nc.GENERATE_LEAD],displayInSelectionPanel:l,displayInList:l,metadata:{group:a.XU.SLUG}},[n.Xq]:{title:(0,s.__)("Top cities driving add to cart","google-site-kit"),description:(0,s.__)("Cities where visitors most frequently add products to their carts","google-site-kit"),infoTooltip:(0,s.__)("Cities where visitors most frequently add products to their carts","google-site-kit"),requiredConversionEventName:[r.nc.ADD_TO_CART],displayInSelectionPanel:l,displayInList:l,metadata:{group:a.GF.SLUG}},[n.JF]:{title:(0,s.__)("Top cities driving purchases","google-site-kit"),description:(0,s.__)("Cities driving the most purchases","google-site-kit"),infoTooltip:(0,s.__)("Cities driving the most purchases","google-site-kit"),requiredConversionEventName:[r.nc.PURCHASE],displayInSelectionPanel:l,displayInList:l,metadata:{group:a.GF.SLUG}},[n.YQ]:{title:(0,s.__)("Top device driving purchases","google-site-kit"),description:(0,s.__)("Top device driving the most purchases","google-site-kit"),infoTooltip:(0,s.__)("Top device driving the most purchases","google-site-kit"),requiredConversionEventName:[r.nc.PURCHASE],displayInSelectionPanel:l,displayInList:l,metadata:{group:a.GF.SLUG}},[n.dV]:{title:(0,s.__)("Top countries driving traffic","google-site-kit"),description:(0,s.__)("Which countries you get the most visitors from","google-site-kit"),infoTooltip:(0,s.__)("The countries where most of your visitors came from","google-site-kit"),metadata:{group:a.wb.SLUG}},[n.t7]:{title:(0,s.__)("Top performing keywords","google-site-kit"),description:(0,s.__)("What people searched for before they came to your site","google-site-kit"),infoTooltip:(0,s.__)("The top search queries for your site by highest clickthrough rate","google-site-kit"),metadata:{group:a.wb.SLUG}},[n.HP]:{title:(0,s.__)("Top pages driving leads","google-site-kit"),description:(0,s.__)("Pages on which forms are most frequently submitted","google-site-kit"),requiredConversionEventName:[r.nc.SUBMIT_LEAD_FORM,r.nc.CONTACT,r.nc.GENERATE_LEAD],displayInSelectionPanel:l,displayInList:l,metadata:{group:a.XU.SLUG}}}},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),d=i(82871);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 u=e=>c.createElement("svg",g({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 m;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},p.apply(null,arguments)}const h=e=>c.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),m||(m=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 v=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 y=i(83366),k=i(50304),E=i(62540);const A="BUTTON",b="BUTTON_DISABLED",x="EXTERNAL_LINK",S="LINK",M="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:g="",danger:m=!1,disabled:p=!1,external:f=!1,hideExternalIndicator:_=!1,href:I="",inverse:w=!1,noFlex:j=!1,onClick:C,small:N=!1,standalone:T=!1,linkButton:D=!1,to:R,leadingIcon:O,trailingIcon:L,...B}=e;const z=I||R||!C?R?M:f?x:S:p?b:A;const P=z===A||z===b?"button":z===M?l.N_:"a",F=function(){let e;return z===x&&(e=(0,d._x)("(opens in a new tab)","screen reader text","google-site-kit")),z===b&&(e=(0,d._x)("(disabled)","screen reader text","google-site-kit")),e?i?`${i} ${e}`:"string"==typeof c?`${c} ${e}`:void 0:i}();let G=O,U=L;return r&&(G=(0,E.jsx)(v,{width:14,height:14})),f&&!_&&(U=(0,E.jsx)(y.A,{width:14,height:14})),o&&!w&&(U=(0,E.jsx)(h,{width:14,height:14})),o&&w&&(U=(0,E.jsx)(u,{width:14,height:14})),(0,E.jsxs)(P,{"aria-label":F,className:n()("googlesitekit-cta-link",g,{"googlesitekit-cta-link--secondary":s,"googlesitekit-cta-link--inverse":w,"googlesitekit-cta-link--small":N,"googlesitekit-cta-link--caps":a,"googlesitekit-cta-link--danger":m,"googlesitekit-cta-link--disabled":p,"googlesitekit-cta-link--standalone":T,"googlesitekit-cta-link--link-button":D,"googlesitekit-cta-link--no-flex":!!j}),disabled:p,href:z!==S&&z!==x||p?void 0:I,onClick:C,rel:z===x?"noopener noreferrer":void 0,ref:t,target:z===x?"_blank":void 0,to:R,...B,children:[!!G&&(0,E.jsx)(k.A,{marginRight:5,children:G}),(0,E.jsx)("span",{className:"googlesitekit-cta-link__contents",children:c}),!!U&&(0,E.jsx)(k.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:()=>g});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),d=i(62540);const g=function Logo(){return(0,d.jsxs)("div",{className:"googlesitekit-logo","aria-hidden":"true",children:[(0,d.jsx)(n.A,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),(0,d.jsx)(l,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),(0,d.jsx)(c.A,{children:(0,o.__)("Site Kit by Google Logo","google-site-kit")})]})}},59865(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(52684),l=i(13606),c=i(82871),d=i(49383),g=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:m,handleConfirm:p,subtitle:h,confirmButton:f=null,notes:_=[],danger:v=!1,inProgress:y=!1,small:k=!1,medium:E=!1,buttonLink:A=null}){const b=`googlesitekit-dialog-description-${(0,a.A)(ModalDialog)}`,x=!(!m||!m.length);return(0,u.jsxs)(d.Dialog,{open:t,onOpen:s,onClose:n,"aria-describedby":x?b:void 0,tabIndex:"-1",className:o()(e,{"googlesitekit-dialog-sm":k,"googlesitekit-dialog-md":E}),children:[(0,u.jsxs)(d.DialogTitle,{children:[v&&(0,u.jsx)(g.A,{width:28,height:28}),r]}),h?(0,u.jsx)("p",{className:"mdc-dialog__lead",children:h}):[],(0,u.jsxs)(d.DialogContent,{children:[x&&(0,u.jsx)("section",{id:b,className:"mdc-dialog__provides",children:(0,u.jsx)("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive",children:m.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)(d.DialogFooter,{children:[(0,u.jsx)(d.Button,{className:"mdc-dialog__cancel-button",onClick:i,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),A?(0,u.jsx)(d.Button,{href:A,onClick:p,target:"_blank",danger:v,children:f}):(0,u.jsx)(d.SpinnerButton,{onClick:p,danger:v,disabled:y,isSaving:y,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 m=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:()=>m});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(63696),l=i(82871),c=i(49383),d=i(5855),g=i(38432),u=i(62540);function NewBadge({tooltipTitle:e,learnMoreLink:t,forceOpen:i,hasLeftSpacing:s,hasNoSpacing:n,onLearnMoreClick:r=()=>{}}){const m=(0,u.jsx)(d.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)(g.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:m}):m}NewBadge.propTypes={tooltipTitle:r().string,learnMoreLink:r().string,forceOpen:r().bool,onLearnMoreClick:r().func,hasLeftSpacing:r().bool,hasNoSpacing:r().bool};const m=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:d,dismissLabel:g,learnMoreLabel:u,learnMoreURL:m,onCTAClick:p,ctaInProgress:h,onDismissClick:f,gaTrackingEventArgs:_}){const v={expiresInSeconds:r.Jg};return(0,a.jsx)(n.A,{notificationID:e,type:n.Q.WARNING,titleIcon:t||void 0,title:i,description:s,learnMoreLink:m?{label:u,href:m}:void 0,ctaButton:{label:o,href:c,onClick:p,inProgress:h,dismissOptions:v,external:"_blank"===l},dismissButton:d?{label:g,onClick:f,dismissOptions:v}: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),d=i(50539),g=i(38432),u=i(97345),m=i(7076),p=i(62659),h=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 v="default",y="stacked";function OptIn({id:e="googlesitekit-opt-in",name:t="optIn",className:i,layout:s=v,title:n=null,description:r=null,trackEventCategory:f,trackEventAction:k="tracking_optin"}){const[E,A]=(0,a.useState)(),b=(0,d.useSelect)(e=>e(u.oR).isTrackingEnabled()),x=(0,d.useSelect)(e=>e(u.oR).getErrorForAction("setTrackingEnabled",[!b])),{setTrackingEnabled:S}=(0,d.useDispatch)(u.oR),M=(0,p.A)(),I=(0,a.useCallback)(async e=>{const{response:t,error:i}=await S(e);i?A(b):((0,h.M9)(t.enabled),t.enabled&&(0,h.sx)(f||M,k))},[b,S,f,k,M]);(0,a.useEffect)(()=>{void 0!==b&&void 0===E&&A(b)},[b,E]);const w=(0,m.d)(I,300),j=(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")}),N=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)(g.A,{href:"https://policies.google.com/privacy",external:!0},"link"),span:(0,_.jsx)("span",{})}),T={id:e,name:t,value:"1",checked:E,onChange:j,loading:void 0===b};return(0,_.jsxs)("div",{className:o()("googlesitekit-opt-in",i,s===y&&"googlesitekit-opt-in--layout-stacked"),children:[s===y?(0,_.jsx)(LayoutStacked,{checkboxProps:T,title:C,description:N}):(0,_.jsx)(LayoutDefault,{checkboxProps:T,label:(0,_.jsxs)(a.Fragment,{children:[C," ",N]})}),x?.message&&(0,_.jsx)("div",{className:"googlesitekit-error-text",children:x?.message})]})}OptIn.propTypes={id:r().string,name:r().string,className:r().string,title:r().node,description:r().node,layout:r().oneOf([v,y]),trackEventCategory:r().string}},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:d,tabletHeight:g,desktopWidth:u,desktopHeight:m}){const p=(0,a.dv)(),h={width:{[a.mp]:r,[a.Lg]:d,[a.Fo]:u,[a.Qb]:u},height:{[a.mp]:c,[a.Lg]:g,[a.Fo]:m,[a.Qb]:u}};return(0,l.jsx)("div",{className:o()("googlesitekit-preview-block",e,{"googlesitekit-preview-block--padding":n}),style:{width:h.width[p]||t,height:h.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:d,desktopHeight:g}){const u=[];let m=0;for(;m++<s;)u.push((0,r.jsx)(n.A,{width:e,height:t,shape:i,smallWidth:o,smallHeight:a,tabletWidth:l,tabletHeight:c,desktopWidth:d,desktopHeight:g},m));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},88288(e,t,i){i.d(t,{A:()=>ProgressIndicator});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(62540);function ProgressIndicator({currentSegment:e=0,totalSegments:t=0,className:i}){return(0,a.jsxs)("div",{style:{gridTemplateColumns:`46px repeat(${t||1}, 1fr)`},className:o()("googlesitekit-progress-indicator",i),children:[(0,a.jsx)("div",{className:o()("googlesitekit-progress-indicator__segment")}),t>0&&Array.from(Array(e+1).keys()).map(i=>(0,a.jsx)("div",{className:o()("googlesitekit-progress-indicator__segment",{"googlesitekit-progress-indicator__segment--final":e+1===t})},i))]})}ProgressIndicator.propTypes={currentSegment:r().number,totalSegments:r().number,className:r().string}},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:()=>g});var s=i(62688),o=i.n(s),n=i(81276),r=i(63696),a=i(49383),l=i(59865),c=i(62540);let d=null;function RefocusableModalDialog({dialogActive:e=!1,refocusQuerySelector:t=null,...i}){const s=(0,r.useCallback)(()=>{setTimeout(()=>{const e=t?document.querySelector(t):d;e&&document.body.contains(e)&&e.focus(),t||(d=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")&&(d=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 g=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),d=i(88273),g=i(4124),u=i(13137),m=i(31012),p=i(55465),h=i(73198),f=i(12317),_=i(1641),v=i(62540);function ReportError({moduleSlug:e,error:t}){const i=(0,g.A)(),o=(0,c.useSelect)(t=>t(d.i).getModule(e)),n=Array.isArray(t)?t:[t];let y;function k(e){return(0,u.SG)(e)?i?(y=(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)):(y=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Insufficient permissions in %s","google-site-kit"),o?.name),(0,m.c)(e.message,o)):(0,u.e4)(e)}const E=(0,s.uniqWith)(n.map(e=>({...e,message:k(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!==E.length?!A&&E.length>1&&(y=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Data errors in %s","google-site-kit"),o?.name)):y=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Data error in %s","google-site-kit"),o?.name);const b=(0,v.jsx)(r.Fragment,{children:E.map(e=>{const t=e?.data?.reconnectURL;return t?(0,v.jsx)(h.A,{error:e,message:e.message},e.message):(0,v.jsx)("p",{children:p.O.sanitize(e.message,{ALLOWED_TAGS:[]})},e.message)})});return(0,v.jsx)(f.A,{title:y,description:b,error:!0,children:(0,v.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),d=i(29785),g=i(88273),u=i(4124),m=i(13137),p=i(38432),h=i(62540);function ReportErrorActions(e){const{moduleSlug:t,error:i,GetHelpLink:s,hideGetHelpLink:o,buttonVariant:f,onRetry:_,onRequestAccess:v,getHelpClassName:y,RequestAccessButton:k,RetryButton:E}=e,A=(0,u.A)(),b=(0,c.useSelect)(e=>e(g.i).getModuleStoreName(t)),x=(0,c.useSelect)(e=>"function"==typeof e(b)?.getServiceEntityAccessURL?e(b).getServiceEntityAccessURL():null),S=Array.isArray(i)?i:[i],M=(0,c.useSelect)(e=>S.map(t=>{const i=e(b)?.getSelectorDataForError(t);return{...t,selectorData:i}})),I=M?.filter(e=>(0,m.vl)(e,e.selectorData)&&"getReport"===e.selectorData.name),w=!!I.length,j=(0,c.useSelect)(e=>{const i={...w?I[0]:S[0]};return(0,m.SG)(i)&&(i.code=`${t}_insufficient_permissions`),e(d.O4).getErrorTroubleshootingLinkURL(i)}),C=(0,c.useDispatch)(),N=S.some(e=>(0,m.SG)(e)),T=(0,n.useCallback)(()=>{I.forEach(e=>{const{selectorData:t}=e;C(t.storeName).invalidateResolution(t.name,t.args)}),_?.()},[C,I,_]),D=x&&N&&!A;return(0,h.jsxs)("div",{className:"googlesitekit-report-error-actions",children:[D&&("function"==typeof k?(0,h.jsx)(k,{requestAccessURL:x}):(0,h.jsx)(l.Button,{onClick:v,href:x,target:"_blank",danger:"danger"===f,tertiary:"tertiary"===f,children:(0,a.__)("Request access","google-site-kit")})),w&&(0,h.jsxs)(n.Fragment,{children:["function"==typeof E?(0,h.jsx)(E,{handleRetry:T}):(0,h.jsx)(l.Button,{onClick:T,danger:"danger"===f,tertiary:"tertiary"===f,children:(0,a.__)("Retry","google-site-kit")}),!o&&(0,h.jsx)("span",{className:"googlesitekit-error-retry-text",children:(0,r.A)((0,a.__)("Retry didnât work? <HelpLink />","google-site-kit"),{HelpLink:(0,h.jsx)(p.A,{href:j,external:!0,hideExternalIndicator:!0,children:(0,a.__)("Get help","google-site-kit")})})})]}),!w&&!o&&(0,h.jsx)("div",{className:y,children:"function"==typeof s?(0,h.jsx)(s,{linkURL:j}):(0,h.jsx)(p.A,{href:j,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),d=i(82871),g=i(6730),u=i(19826),m=i(67510),p=i(13047),h=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,h.jsx)(m.A,{notificationID:"googlesitekit-error",className:"googlesitekit-error-handler",type:"error",title:(0,d.__)("Site Kit encountered an error","google-site-kit"),description:(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)(g.A,{message:i.message,componentStack:o}),(0,h.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:v,Provider:y}=_.A,k=y;var E=i(15844),A=i(97345),b=i(62659),x=i(71264);function FeatureTours(){const e=(0,b.A)(),{triggerTourForView:t}=(0,l.useDispatch)(A.oR);(0,E.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,h.jsx)(x.Ay,{tourID:i.slug,steps:i.steps,gaEventCategory:i.gaEventCategory,isRepeatable:i.isRepeatable,callback:i.callback}):null}var S=i(20762),M=i(94656),I=i(82246),w=i(78990),j=i(11999),C=i(70301);const N=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)(j.s),c=(0,a.useCallback)(()=>{o()},[o]),g=(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 g()}()},[g,t]),t?t?.data?.scopes?.length?t?.data?.skipModal||i&&t?.data?.scopes.every(e=>i.includes(e))?null:(0,h.jsx)(M.A,{children:(0,h.jsx)(I.A,{title:(0,d.__)("Additional Permissions Required","google-site-kit"),subtitle:t.message,confirmButton:(0,d.__)("Proceed","google-site-kit"),handleConfirm:g,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 T=function PermissionsModal(){return(0,l.useSelect)(e=>e(A.oR).isAuthenticated())?(0,h.jsx)(N,{}):null};const D=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 R=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,h.jsx)(a.StrictMode,{children:(0,h.jsx)(S.Ay,{value:r,children:(0,h.jsx)(l.RegistryProvider,{value:t,children:(0,h.jsx)(k,{value:R.t,children:(0,h.jsx)(u.Kq,{value:i,children:(0,h.jsx)(o.A,{theme:n(),children:(0,h.jsxs)(f,{children:[(0,h.jsxs)(D,{children:[e,i&&(0,h.jsx)(FeatureTours,{})]}),(0,O.A)(i)&&(0,h.jsx)(T,{})]})})})})})})})}Root.propTypes={children:r().node,registry:r().object,viewContext:r().string.isRequired},Root.defaultProps={registry:c()}},65695(e,t,i){i.d(t,{A:()=>SelectionPanelError});var s=i(62688),o=i.n(s),n=i(63696),r=i(73198),a=i(62954),l=i(62540);function SelectionPanelError({error:e,noPrefix:t=!0,skipRetryMessage:i=!0}){const s=(0,n.useRef)();return(0,n.useEffect)(()=>{if(e){const e=globalThis.document.activeElement;e&&e.closest(".googlesitekit-selection-panel-item")&&(0,a.N)(s.current,e)&&e.scrollIntoView()}},[e]),e?(0,l.jsx)("div",{ref:s,children:(0,l.jsx)(r.A,{className:"googlesitekit-notice--square googlesitekit-notice--side-panel",error:e,noPrefix:t,skipRetryMessage:i})}):null}SelectionPanelError.propTypes={error:o().shape({message:o().string}),noPrefix:o().bool,skipRetryMessage:o().bool}},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),d=i(78174),g=i(63696),u=i(53328),m=i(94656),p=i(62540);function SideSheet({className:e,children:t,isOpen:i,isLoading:s,onOpen:n=()=>{},closeSheet:r=()=>{},focusTrapOptions:a={}}){const h=(0,g.useRef)(),[f,_]=(0,g.useState)(0);return(0,g.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)(h,function(e){e.target.closest?.(".googlesitekit-tooltip-popper")||r()}),(0,d.A)(e=>i&&u._f===e.keyCode,r),(0,p.jsxs)(m.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:h,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 h=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)(h.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 v=i(82871),y=i(5855),k=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)(k.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:d,isNewlyDetected:g}){return(0,p.jsxs)("div",{className:"googlesitekit-selection-panel-item",children:[(0,p.jsxs)(SelectionBox,{badge:d,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]}),g&&(0,p.jsx)(y.A,{label:(0,v.__)("New","google-site-kit")}),c&&(0,p.jsx)("span",{className:"googlesitekit-selection-panel-item__suffix",children:c})]})}function SelectionPanelItems({currentSelectionTitle:e=(0,v.__)("Current selection","google-site-kit"),availableItemsTitle:t=(0,v.__)("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)(g.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 E=i(17243),A=i(13606),b=i(50539),x=i(4751),S=i(99893),M=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[d,u]=(0,g.useState)(null),[m,h]=(0,g.useState)(!1),f=(0,b.useSelect)(e=>e(S.K9).isFetchingSyncAvailableAudiences()),_=(0,g.useMemo)(()=>!(0,E.isEqual)((0,M.N9)(t),(0,M.N9)(e)),[e,t]),y=e?.length>0&&_?(0,v.__)("Apply changes","google-site-kit"):(0,v.__)("Save selection","google-site-kit"),I=(0,g.useCallback)(async()=>{const{error:e}=await i(t);e||(r(),c(),u(y),h(!0))},[i,t,r,c,y]),w=(0,g.useCallback)(()=>{c(),a()},[c,a]),[j,C]=(0,g.useState)(null);(0,g.useEffect)(()=>{null!==j&&j!==l&&l&&(u(null),h(!1)),C(l)},[l,j]);const N=t?.length||0,T=f?(0,p.jsx)(x.A,{width:"89px",height:"20px"}):(0,p.jsx)("p",{className:"googlesitekit-selection-panel-footer__item-count",children:(0,A.A)((0,v.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,v.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),N,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:[T,(0,p.jsxs)("div",{className:"googlesitekit-selection-panel-footer__actions",children:[(0,p.jsx)(k.Button,{onClick:w,disabled:n,tertiary:!0,children:(0,v.__)("Cancel","google-site-kit")}),(0,p.jsx)(k.SpinnerButton,{onClick:I,isSaving:n,disabled:N<s||N>o||n||!l&&m,children:d||y})]})]})})}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},62457(e,t,i){i.d(t,{A:()=>r});var s=i(62688),o=i.n(s),n=i(62540);function Spinner({isSaving:e,style:t={}}){return(0,n.jsx)("span",{className:"spinner",style:{display:e?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible",...t}})}Spinner.propTypes={isSaving:o().bool,style:o().object};const r=Spinner},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),d=i(49383),g=i(30805);var u=i(72545),m=i(33052),p=i(62540);function TourTooltip({backProps:e,closeProps:t,index:i,primaryProps:n,size:a,step:l,tooltipProps:h}){const f=(0,g.i)("setupFlowRefresh"),_=a>1?function(e){return new Array(e??0).fill().map((e,t)=>t)}(a):[];function v(e){return r()("googlesitekit-tooltip-indicator",{active:e===i})}const y=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}),...h,children:(0,p.jsxs)(o(),{className:"googlesitekit-tooltip-card",children:[(0,p.jsxs)("div",{className:"googlesitekit-tooltip-body",children:[l.title&&(0,p.jsx)(m.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:v(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)(d.Button,{className:"googlesitekit-tooltip-button",text:!f,tertiary:f,...e,children:e.title}),l.cta,n.title&&(0,p.jsx)(d.Button,{className:r()("googlesitekit-tooltip-button",{"googlesitekit-tooltip-button--primary":f}),text:!f,...n,children:n.title})]})]}),(0,p.jsx)(d.Button,{className:"googlesitekit-tooltip-close",icon:(0,p.jsx)(u.A,{width:y,height:y}),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:()=>v,ei:()=>k});var s=i(62688),o=i.n(s),n=i(36703),r=i(15844),a=i(82871),l=i(50539),c=i(84895),d=i(7972),g=i(97345),u=i(97513),m=i(62659),p=i(65054),h=i(83202),f=i(62540);const _=(0,c.G)("setupFlowRefresh"),v={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"}},y={back:(0,a.__)("Back","google-site-kit"),close:(0,a.__)("Close","google-site-kit"),last:(0,a.__)("Got it","google-site-kit"),next:(0,a.__)("Next","google-site-kit")},k={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},E={disableBeacon:!0,isFixed:!0,placement:"auto"},A={placement:"top",offset:0},b="feature_tooltip_view",x="feature_tooltip_advance",S="feature_tooltip_return",M="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)(d.nX),{dismissTour:j,receiveCurrentTour:C}=(0,l.useDispatch)(g.oR),N=(0,l.useRegistry)(),T=(0,m.A)(),D=(0,u.dv)(),R=(0,l.useSelect)(e=>e(d.nX).getValue(a)||0),O=(0,l.useSelect)(e=>{const i=s||!1===e(g.oR).isTourDismissed(t);return e(d.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(R)),w(c,!0)});const B=e.map(e=>e.isResponsive&&D===u.mp?{...E,...e,...A,floaterProps:{...e.floaterProps,target:e.target}}:{...E,...e}),z=_?{...k,styles:{...k.styles,floater:{filter:"drop-shadow(rgba(0, 0, 0, 0.25) 0px 4px 16px)"}}}:k;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(T):i;a===n.qY.TOOLTIP&&s===n.VD.TOOLTIP?(0,p.sx)(c,b,l):t===n.kl.CLOSE&&s===n.VD.COMPLETE?(0,p.sx)(c,M,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,S,l),t===n.kl.NEXT&&(0,p.sx)(c,x,l))}(r);const{action:l,index:d,status:g,step:m,type:h}=r,f=l===n.kl.CLOSE,_=!f&&[n.qY.STEP_AFTER,n.qY.TARGET_NOT_FOUND].includes(h),v=[n.XQ.FINISHED,n.XQ.SKIPPED].includes(g),y=f&&h===n.qY.STEP_AFTER,k=v||y;n.qY.STEP_BEFORE===h&&function(e){let t=e.target;if("string"==typeof e.target&&(t=globalThis.document.querySelector(e.target)),!(t instanceof Element))return;if(!e.isResponsive||D!==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})}}(m),_?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)}(d,l):k&&(globalThis.document.body.classList.remove("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),e[R]&&globalThis.document.body.classList.remove(L(R)),s?(w(c,!1),w(a,null),C(null)):j(t)),o&&o(r,N)},floaterProps:z,locale:y,run:O,stepIndex:R,steps:B,styles:v,tooltipComponent:h.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),d=i(62688),g=i.n(d),u=i(63696),m=i(2671),p=i(7972),h=i(62659),f=i(13047),_=i(29775),v=i(13606),y=i(12417),k=i(51135),E=i(49383),A=i(62540);const b=[{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)(E.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)(y.A,{icon:k.A,size:18})})})]}):t?(0,A.jsx)(E.Select,{className:"googlesitekit-dashboard-sharing-settings__select",value:o,options:b,onChange:r,onClick:r,outlined:!0}):i?(0,A.jsxs)("p",{className:"googlesitekit-dashboard-sharing-settings__note",children:[(0,v.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)(E.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)(y.A,{icon:k.A,size:18})})})]}):null}ModuleManageAccess.propTypes={sharedOwnershipModule:g().bool,hasOwnedModule:g().bool,ownerUsername:g().string,hasSharingCapability:g().bool,manageViewAccess:g().string,onChange:g().func.isRequired};var x=i(53328),S=i(38432),M=i(12896),I=i(11253),w=i(91576);const j=(0,n.__)("All","google-site-kit"),C=(0,u.forwardRef)(({moduleSlug:e,isLocked:t=!1},i)=>{const s=(0,h.A)(),a=(0,u.useRef)(),{setSharedRoles:l}=(0,r.useDispatch)(c.i),{setValue:d}=(0,r.useDispatch)(p.nX),g=(0,r.useSelect)(e=>e(c.i).getShareableRoles()),m=(0,r.useSelect)(t=>t(c.i).getSharedRoles(e)),v=(0,r.useSelect)(e=>e(p.nX).getValue(_.zP))===e;(0,M.l)([x._f],i,()=>{v&&d(_.zP,void 0)});const y=(0,r.useSelect)(t=>t(c.i).haveModuleSharingSettingsChanged(e,"sharedRoles")),k=(0,u.useCallback)(()=>{v?(d(_.zP,void 0),y&&(0,f.sx)(`${s}_sharing`,"change_shared_roles",e)):d(_.zP,e)},[v,y,e,d,s]);(0,u.useEffect)(()=>{a.current&&(v?a.current.firstChild.focus():a.current.focus())},[v]);const b=(0,u.useCallback)(({type:t,target:i,keyCode:s})=>{if("keydown"===t&&s!==x.Fm)return;const o=i.closest(".mdc-chip"),n=o?.dataset?.chipId;if(!n)return;let r;r="all"===n?m?.length===g?.length?[]:g.map(({id:e})=>e):null===m?[n]:m.includes(n)?m.filter(e=>e!==n):[...m,n],l(e,r)},[e,l,m,g]);return g?(0,A.jsxs)("div",{className:o()("googlesitekit-user-role-select",{"googlesitekit-user-role-select--open":v}),children:[!v&&(0,A.jsx)(E.Button,{"aria-label":(0,n.__)("Edit roles","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:k,icon:(0,A.jsx)(w.A,{width:23,height:23}),tabIndex:t?-1:void 0,ref:a}),!v&&m?.length>0&&(0,A.jsx)("span",{className:"googlesitekit-user-role-select__current-roles",children:function(){const e=g?.reduce((e,t)=>(m.includes(t.id)&&e.push(t.displayName),e),[]);return e.join(", ")}()}),!v&&(!m||0===m?.length)&&(0,A.jsx)("span",{className:"googlesitekit-user-role-select__add-roles",children:(0,A.jsx)(S.A,{onClick:k,tabIndex:t?-1:void 0,children:(0,n.__)("Add roles","google-site-kit")})}),v&&(0,A.jsxs)(u.Fragment,{children:[(0,A.jsxs)("div",{className:"googlesitekit-user-role-select__chipset",ref:a,children:[(0,A.jsx)(E.Chip,{id:"all",label:j,onClick:b,onKeyDown:b,selected:m?.length===g?.length,className:"googlesitekit-user-role-select__chip--all"}),g.map(({id:e,displayName:t},i)=>(0,A.jsx)(E.Chip,{id:e,label:t,onClick:b,onKeyDown:b,selected:m?.includes(e)},i))]}),(0,A.jsx)(E.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:k,icon:(0,A.jsx)(I.A,{width:18,height:18}),tabIndex:t?-1:void 0})]})]}):null});C.propTypes={moduleSlug:g().string.isRequired,isLocked:g().bool};const N=C;var T=i(37325),D=i(3749);const R=(0,u.forwardRef)(({moduleSlug:e,isLocked:t,hasSharingCapability:i,recoverable:s,recoverableModuleSupportLink:o},r)=>i?(0,A.jsx)(N,{moduleSlug:e,isLocked:t,ref:r}):s?(0,A.jsx)(T.A,{className:"googlesitekit-notice--small",type:D.L.WARNING,description:(0,v.A)((0,n.__)("Managing user required to manage view access. <a>Learn more</a>","google-site-kit"),{a:(0,A.jsx)(S.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")}));R.propTypes={moduleSlug:g().string.isRequired,isLocked:g().bool.isRequired,hasSharingCapability:g().bool,recoverable:g().bool,recoverableModuleSupportLink:g().string},R.displayName="ModuleViewAccess";const O=R;function Module({moduleSlug:e,moduleName:t,ownerUsername:i,recoverable:s}){const n=(0,h.A)(),d=(0,u.useRef)(),[g,v]=(0,u.useState)(void 0),y=(0,r.useSelect)(e=>e(c.i).hasRecoverableModules()),k=(0,r.useSelect)(e=>e(a.O4).hasMultipleAdmins()),E=y||k,b=(0,r.useSelect)(t=>t(c.i).getSharingManagement(e)??"owner"),x=(0,r.useSelect)(t=>t(l.oR).hasCapability(l.Ml,e)),S=(0,r.useSelect)(t=>t(l.oR).hasCapability(l.hz,e)),M=(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()),j=(0,r.useSelect)(e=>e(a.O4).getDocumentationLinkURL("dashboard-sharing-module-recovery")),{setSharingManagement:C}=(0,r.useDispatch)(c.i),N=M&&Object.keys(M).includes(e);(0,u.useEffect)(()=>{v(N?"all_admins":b)},[b,N]);const T=(0,r.useSelect)(t=>t(c.i).haveModuleSharingSettingsChanged(e,"management"));(0,u.useEffect)(()=>{T&&(0,f.sx)(`${n}_sharing`,`change_management_${b}`,e)},[T,b,e,n]);const D=(0,u.useCallback)(t=>{const i=t.target.value;v(i),C(e,i)},[C,v,e]),R=e===I,L=!R&&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":R,"googlesitekit-dashboard-sharing-settings__row--disabled":L}),ref:d,children:[(0,A.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__column--product",children:[(0,A.jsx)(m.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:S,recoverable:s,recoverableModuleSupportLink:j,ref:d})}),E&&(0,A.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--manage",children:(0,A.jsx)(ModuleManageAccess,{sharedOwnershipModule:N,hasOwnedModule:x,ownerUsername:i,hasSharingCapability:S,manageViewAccess:g,onChange:D})})]})}function DashboardSharingSettings(){const t=(0,r.useSelect)(e=>e(c.i).hasRecoverableModules()),i=(0,r.useSelect)(e=>e(a.O4).hasMultipleAdmins()),s=t||i,d=(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===d?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:d.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:g().string.isRequired,moduleName:g().string.isRequired,ownerUsername:g().string,recoverable:g().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),d=i(62659),g=i(99893),u=i(13047),m=i(91576),p=i(4452),h=i.n(p),f=i(81042),_=i(31589),v=i(78174),y=i(13606),k=i(12417),E=i(59837),A=i(53328),b=i(8712),x=i(29775),S=i(38432),M=i(94656),I=i(33052),w=i(88273),j=i(97513),C=i(10740),N=i(62688),T=i.n(N),D=i(73198),R=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,R.jsxs)("p",{className:"googlesitekit-dashboard-sharing-settings__notice",children:[t&&e&&(0,R.jsx)("span",{children:(0,y.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,R.jsx)("strong",{})})}),!t&&e&&i&&(0,R.jsx)("span",{children:(0,y.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,R.jsx)("strong",{})})})]})}function Footer({closeDialog:e,openResetDialog:t}){const i=(0,d.A)(),[a,c]=(0,s.useState)(null),[g,m]=(0,s.useState)(!1),p=(0,r.useSelect)(e=>e(w.i).canSubmitSharingChanges()),h=(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")),v=(0,r.useSelect)(e=>e(w.i).haveSharingSettingsUpdated()),y=(0,r.useSelect)(e=>!!e(l.nX).getValue(x.tm)),k=(0,r.useSelect)(e=>!!e(l.nX).getValue(x.hk)),{resetSharingSettings:E,saveSharingSettings:A}=(0,r.useDispatch)(w.i),{setValue:b}=(0,r.useDispatch)(l.nX),M=(0,s.useCallback)(async()=>{c(null);const{error:t}=await A();t?c(t.message):((0,u.sx)(`${i}_sharing`,"settings_confirm"),b(x.zP,void 0),e())},[i,A,b,e]),I=(0,s.useCallback)(async()=>{c(null),m(!0);const{error:t}=await E();t?c(t.message):(m(!1),e())},[e,E]),j=(0,s.useCallback)(()=>{(0,u.sx)(`${i}_sharing`,"settings_cancel"),e()},[e,i]),C=a||f||_;return(0,R.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer",children:[C&&(0,R.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-notice",children:[a&&(0,R.jsx)(D.A,{message:a}),!a&&(0,R.jsx)(Notice,{})]}),(0,R.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions",children:[v&&y&&!C&&(0,R.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions-left",children:(0,R.jsx)(S.A,{onClick:t,className:"googlesitekit-reset-sharing-permissions-button",danger:!0,children:(0,o.__)("Reset sharing permissions","google-site-kit")})}),(0,R.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions-right",children:[(0,R.jsx)(n.Button,{onClick:j,tertiary:!0,children:(0,o.__)("Cancel","google-site-kit")}),y&&(0,R.jsx)(n.SpinnerButton,{onClick:M,disabled:h||!p,isSaving:h,children:(0,o.__)("Apply","google-site-kit")}),k&&(0,R.jsx)(n.SpinnerButton,{onClick:I,disabled:g,isSaving:g,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,j.dv)(),{y:d}=(0,f.A)(),{setValue:g}=(0,r.useDispatch)(l.nX),{rollbackSharingSettings:u}=(0,r.useDispatch)(w.i),p=(0,r.useSelect)(e=>!!e(l.nX).getValue(x.tm)),N=(0,r.useSelect)(e=>!!e(l.nX).getValue(x.hk)),T=(0,r.useSelect)(e=>e(l.nX).getValue(x.zP)),D=(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===j.mp&&(L.top=(d<46?46-d:0)+"px",L.height=`calc(100% - 46px + ${d<46?d:46}px)`),(0,s.useEffect)(()=>{!p&&D&&u()},[p,D,u]);const B=(0,s.useCallback)(()=>{g(x.tm,!0)},[g]),z=(0,s.useCallback)(()=>{g(x.tm,!1),g(x.zP,void 0)},[g]),P=(0,s.useCallback)(()=>{z(),g(x.hk,!0)},[z,g]),F=(0,s.useCallback)(()=>{g(x.hk,!1),B(),t(!0)},[B,g]),G=(0,s.useCallback)(()=>{N?F():z()},[F,z,N]),U=(0,s.useCallback)(e=>{N&&e.target.classList.contains("mdc-dialog__scrim")&&F()},[N,F]);return(0,_.A)("click",U),(0,v.A)(e=>N&&A._f===e.keyCode,F),(0,R.jsx)(M.A,{children:(0,R.jsxs)(C.lG,{open:p||N,onClose:G,className:"googlesitekit-dialog googlesitekit-sharing-settings-dialog",style:L,escapeKeyAction:void 0!==T||N?"":"close",scrimClickAction:void 0!==T||N?"":"close",children:[(0,R.jsx)("div",{className:"googlesitekit-dialog__back-wrapper","aria-hidden":c!==j.mp,ref:i,children:(0,R.jsx)(n.Button,{"aria-label":(0,o.__)("Back","google-site-kit"),className:"googlesitekit-dialog__back",onClick:G,children:(0,R.jsx)(k.A,{icon:E.A})})}),(0,R.jsxs)(C.Cf,{className:"googlesitekit-dialog__content",children:[(0,R.jsxs)("div",{className:"googlesitekit-dialog__header",children:[p&&(0,R.jsx)("div",{className:"googlesitekit-dialog__header-icon","aria-hidden":c===j.mp,children:(0,R.jsx)("span",{children:(0,R.jsx)(m.A,{width:20,height:20})})}),(0,R.jsxs)("div",{className:"googlesitekit-dialog__header-titles",children:[(0,R.jsxs)(I.A,{as:"h2",className:"googlesitekit-dialog__title",size:"medium",type:"headline",children:[p&&(0,R.jsx)("span",{children:(0,o.__)("Dashboard sharing & permissions","google-site-kit")}),N&&(0,R.jsx)("span",{children:(0,o.__)("Reset dashboard sharing permissions","google-site-kit")})]}),(0,R.jsxs)("p",{className:h()("googlesitekit-dialog__subtitle",{"googlesitekit-dialog__subtitle--emphasis":N}),children:[p&&(0,R.jsx)("span",{children:(0,y.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,R.jsx)(S.A,{"aria-label":(0,o.__)("Learn more about dashboard sharing","google-site-kit"),href:O,external:!0})})}),N&&(0,R.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,R.jsx)("div",{className:"googlesitekit-dialog__main",children:(0,R.jsx)(b.A,{})})]}),(0,R.jsx)(C.Es,{className:"googlesitekit-dialog__footer",children:(0,R.jsx)(Footer,{closeDialog:G,openResetDialog:P})})]})})}function DashboardSharingSettingsButton(){const e=(0,d.A)(),{setValue:t}=(0,r.useDispatch)(l.nX),i=(0,r.useSelect)(e=>e(a.O4).hasMultipleAdmins()),[p]=(0,c.A)(g.CV,"isAutoCreatingCustomDimensionsForAudience"),h=(0,s.useCallback)(()=>{(0,u.sx)(`${e}_headerbar`,"open_sharing",i?"advanced":"simple"),t(x.tm,!0)},[t,e,i]);return(0,R.jsxs)(s.Fragment,{children:[(0,R.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:h,icon:(0,R.jsx)(m.A,{width:20,height:20}),tooltipEnterDelayInMS:500,disabled:p}),(0,R.jsx)(DashboardSharingDialog,{})]})}Footer.propTypes={closeDialog:T().func.isRequired,openResetDialog:T().func.isRequired}},46369(e,t,i){i.d(t,{sw:()=>x,rF:()=>S,Ay:()=>SetUpEmailReportingOverlayNotification});var s,o,n=i(62688),r=i.n(n),a=i(81276),l=i(63696),c=i(82871),d=i(50539),g=i(17443),u=i(7972),m=i(97345),p=i(33903),h=i(8732);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=>l.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 348 163"},e),s||(s=l.createElement("g",{clipPath:"url(#email-reporting-overlay-desktop_svg__a)"},l.createElement("path",{fill:"#B8E6CA",d:"M0 16C0 7.163 7.163 0 16 0h316c8.837 0 16 7.163 16 16v147H0z"}),l.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__b)"},l.createElement("path",{fill:"#EBEEF0",d:"M75.352 82.774a8.32 8.32 0 0 1 4.337-7.307l87.93-47.985a13.32 13.32 0 0 1 12.761 0l87.931 47.985a8.32 8.32 0 0 1 4.337 7.307v94.401a8.325 8.325 0 0 1-8.325 8.325H83.676a8.325 8.325 0 0 1-8.324-8.325z"})),l.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__c)"},l.createElement("rect",{width:88,height:57,x:66.467,y:-1.393,fill:"#fff",rx:9.075,transform:"rotate(-38.65 66.467 -1.393)"})),l.createElement("rect",{width:61,height:6.763,x:84.463,y:.297,fill:"#EBEEF0",rx:3.3,transform:"rotate(-38.65 84.463 .297)"}),l.createElement("rect",{width:41.249,height:15.94,x:93.201,y:10.905,fill:"#B8E6CA",rx:7.97,transform:"rotate(-38.65 93.201 10.905)"}),l.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.237,d:"m105.805 14.774.966-7.501m0 0-3.388 2.634m3.388-2.634 2.636 3.2"}),l.createElement("rect",{width:16.5,height:4.782,x:110.861,y:3.926,fill:"#fff",rx:1.65,transform:"rotate(-38.65 110.861 3.926)"}),l.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__d)"},l.createElement("rect",{width:87,height:57,x:171.227,y:1.983,fill:"#fff",rx:9.075,transform:"rotate(5.072 171.227 1.983)"})),l.createElement("rect",{width:52,height:7,x:183.025,y:16.081,fill:"#EBEEF0",rx:3.3,transform:"rotate(5.072 183.025 16.081)"}),l.createElement("rect",{width:41.249,height:16.5,x:181.969,y:30.268,fill:"#FFDED3",rx:8.25,transform:"rotate(5.072 181.969 30.268)"}),l.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.237,d:"m188.852 36.676 4.937 5.9m0 0 .44-4.27m-.44 4.27-4.28-.32"}),l.createElement("rect",{width:16.5,height:4.95,x:199.535,y:37.625,fill:"#fff",rx:1.65,transform:"rotate(5.072 199.535 37.625)"}),l.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__e)"},l.createElement("rect",{width:87,height:57,x:168.918,y:77.078,fill:"#fff",rx:9.075,transform:"rotate(21.428 168.918 77.078)"})),l.createElement("rect",{width:20.625,height:6.6,x:176.383,y:94.187,fill:"#EBEEF0",rx:3.3,transform:"rotate(21.428 176.383 94.187)"}),l.createElement("rect",{width:41.249,height:16.5,x:171.26,y:107.243,fill:"#FFDED3",rx:8.25,transform:"rotate(21.428 171.26 107.243)"}),l.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.237,d:"m176.06 115.331 3.076 7.05m0 0 1.624-3.972m-1.624 3.972-4.016-1.511"}),l.createElement("rect",{width:16.5,height:4.95,x:186.045,y:119.249,fill:"#fff",rx:1.65,transform:"rotate(21.428 186.045 119.249)"}),l.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__f)"},l.createElement("rect",{width:88,height:57,x:101.674,y:57.565,fill:"#fff",rx:9.075,transform:"rotate(-9.325 101.674 57.565)"})),l.createElement("rect",{width:41,height:7,x:116.609,y:68.287,fill:"#EBEEF0",rx:3.3,transform:"rotate(-9.325 116.609 68.287)"}),l.createElement("rect",{width:41.249,height:16.5,x:119.109,y:82.291,fill:"#B8E6CA",rx:8.25,transform:"rotate(-9.325 119.109 82.291)"}),l.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.237,d:"m128.264 92.214 4.486-6.25m0 0-4.244.636m4.244-.635.755 4.224"}),l.createElement("rect",{width:16.5,height:4.95,x:137.955,y:85.049,fill:"#fff",rx:1.65,transform:"rotate(-9.325 137.955 85.049)"}),l.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__g)"},l.createElement("path",{fill:"#fff",d:"M75.352 82.647c0-1.968 2.17-3.163 3.833-2.11l90.363 57.192a8.33 8.33 0 0 0 8.904 0l90.363-57.192c1.663-1.053 3.833.142 3.833 2.11v94.528a8.325 8.325 0 0 1-8.325 8.325H83.676a8.325 8.325 0 0 1-8.324-8.325z"})),l.createElement("path",{stroke:"#EBEEF0",strokeOpacity:.75,strokeWidth:2.497,d:"m78.682 183.003 64.933-62.436M269.318 183.003l-64.933-62.436"}))),o||(o=l.createElement("defs",null,l.createElement("filter",{id:"email-reporting-overlay-desktop_svg__b",width:229.297,height:191.646,x:59.352,y:17.854,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},l.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),l.createElement("feOffset",{dy:8}),l.createElement("feGaussianBlur",{stdDeviation:8}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{values:"0 0 0 0 0.193775 0 0 0 0 0.34389 0 0 0 0 0.252153 0 0 0 0.2 0"}),l.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_623_10575"}),l.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_623_10575",result:"shape"})),l.createElement("filter",{id:"email-reporting-overlay-desktop_svg__c",width:123.366,height:118.517,x:56.947,y:-62.574,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},l.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),l.createElement("feOffset",{dy:3.3}),l.createElement("feGaussianBlur",{stdDeviation:6.6}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),l.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_623_10575"}),l.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_623_10575",result:"shape"})),l.createElement("filter",{id:"email-reporting-overlay-desktop_svg__d",width:116.565,height:89.335,x:153.753,y:-7.151,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},l.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),l.createElement("feOffset",{dy:3.3}),l.createElement("feGaussianBlur",{stdDeviation:6.6}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),l.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_623_10575"}),l.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_623_10575",result:"shape"})),l.createElement("filter",{id:"email-reporting-overlay-desktop_svg__e",width:122.839,height:105.872,x:137.58,y:69.864,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},l.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),l.createElement("feOffset",{dy:3.3}),l.createElement("feGaussianBlur",{stdDeviation:6.6}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),l.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_623_10575"}),l.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_623_10575",result:"shape"})),l.createElement("filter",{id:"email-reporting-overlay-desktop_svg__f",width:119.774,height:94.207,x:89.824,y:34.756,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},l.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),l.createElement("feOffset",{dy:3.3}),l.createElement("feGaussianBlur",{stdDeviation:6.6}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),l.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_623_10575"}),l.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_623_10575",result:"shape"})),l.createElement("filter",{id:"email-reporting-overlay-desktop_svg__g",width:223.936,height:131.994,x:62.032,y:63.496,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},l.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),l.createElement("feOffset",{dy:-3.33}),l.createElement("feGaussianBlur",{stdDeviation:6.66}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),l.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_623_10575"}),l.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_623_10575",result:"shape"})),l.createElement("clipPath",{id:"email-reporting-overlay-desktop_svg__a"},l.createElement("path",{fill:"#fff",d:"M0 16C0 7.163 7.163 0 16 0h316c8.837 0 16 7.163 16 16v147H0z"})))));var v,y;function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},k.apply(null,arguments)}const E=e=>l.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 343 104"},e),v||(v=l.createElement("g",{clipPath:"url(#email-reporting-overlay-mobile_svg__a)"},l.createElement("path",{fill:"#B8E6CA",d:"M304.553 64.365c2.4 22.73-4.803 32.78-23.025 59.949-18.222 27.17 7.404 59.277-20.779 89.869-33.528 36.394-150.686 39.364-201.232 24.212C8.97 223.242-4.063 191.922-.431 163.24 4.5 124.314 27.02 123.577 40 104.5c19.276-28.325 1.687-66.286 39-89s80.086 6.697 120.326 4.388c23.216-1.332 46.017-5.627 66.626.968 20.832 6.667 36.719 25.428 38.601 43.509"}),l.createElement("g",{filter:"url(#email-reporting-overlay-mobile_svg__b)"},l.createElement("path",{fill:"#EBEEF0",d:"M97.55 54.93a6.28 6.28 0 0 1 3.274-5.515l66.361-36.214a10.05 10.05 0 0 1 9.631 0l66.361 36.214a6.28 6.28 0 0 1 3.273 5.515v71.244a6.283 6.283 0 0 1-6.283 6.283H103.833a6.283 6.283 0 0 1-6.282-6.283z"})),l.createElement("g",{filter:"url(#email-reporting-overlay-mobile_svg__c)"},l.createElement("rect",{width:65.659,height:43.018,x:169.907,y:3.573,fill:"#fff",rx:6.849,transform:"rotate(5.072 169.907 3.573)"})),l.createElement("rect",{width:39.244,height:5.283,x:178.812,y:14.213,fill:"#EBEEF0",rx:2.49,transform:"rotate(5.072 178.812 14.213)"}),l.createElement("rect",{width:31.131,height:12.452,x:178.013,y:24.92,fill:"#FFDED3",rx:6.226,transform:"rotate(5.072 178.013 24.92)"}),l.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.934,d:"m183.207 29.756 3.726 4.452m0 0 .332-3.222m-.332 3.222-3.229-.24"}),l.createElement("rect",{width:12.452,height:3.736,x:191.272,y:30.472,fill:"#fff",rx:1.245,transform:"rotate(5.072 191.272 30.472)"}),l.createElement("g",{filter:"url(#email-reporting-overlay-mobile_svg__d)"},l.createElement("rect",{width:65.659,height:43.018,x:168.165,y:50.631,fill:"#fff",rx:6.849,transform:"rotate(21.428 168.165 50.631)"})),l.createElement("rect",{width:15.565,height:4.981,x:173.799,y:63.543,fill:"#EBEEF0",rx:2.49,transform:"rotate(21.428 173.799 63.543)"}),l.createElement("rect",{width:31.131,height:12.452,x:169.932,y:73.397,fill:"#FFDED3",rx:6.226,transform:"rotate(21.428 169.932 73.397)"}),l.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.934,d:"m173.554 79.5 2.322 5.321m0 0 1.225-2.998m-1.225 2.998-3.032-1.14"}),l.createElement("rect",{width:12.452,height:3.736,x:181.091,y:82.458,fill:"#fff",rx:1.245,transform:"rotate(21.428 181.091 82.458)"}),l.createElement("g",{filter:"url(#email-reporting-overlay-mobile_svg__e)"},l.createElement("rect",{width:66.413,height:43.018,x:117.415,y:35.905,fill:"#fff",rx:6.849,transform:"rotate(-9.325 117.415 35.905)"})),l.createElement("rect",{width:30.943,height:5.283,x:128.687,y:43.996,fill:"#EBEEF0",rx:2.49,transform:"rotate(-9.325 128.687 43.996)"}),l.createElement("rect",{width:31.131,height:12.452,x:130.575,y:54.565,fill:"#B8E6CA",rx:6.226,transform:"rotate(-9.325 130.575 54.565)"}),l.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.934,d:"m137.483 62.054 3.386-4.716m0 0-3.203.48m3.203-.48.57 3.188"}),l.createElement("rect",{width:12.452,height:3.736,x:144.797,y:56.647,fill:"#fff",rx:1.245,transform:"rotate(-9.325 144.797 56.647)"}),l.createElement("g",{filter:"url(#email-reporting-overlay-mobile_svg__f)"},l.createElement("path",{fill:"#fff",d:"M97.55 54.834c0-1.485 1.639-2.387 2.894-1.593l68.196 43.163a6.28 6.28 0 0 0 6.72 0l68.197-43.163c1.255-.794 2.893.108 2.893 1.593v71.34a6.283 6.283 0 0 1-6.283 6.283H103.833a6.283 6.283 0 0 1-6.282-6.283z"})),l.createElement("path",{stroke:"#EBEEF0",strokeOpacity:.75,strokeWidth:1.885,d:"m100.063 130.572 49.005-47.12M243.937 130.572l-49.005-47.12"}))),y||(y=l.createElement("defs",null,l.createElement("filter",{id:"email-reporting-overlay-mobile_svg__b",width:173.05,height:144.635,x:85.476,y:5.935,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},l.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),l.createElement("feOffset",{dy:6.038}),l.createElement("feGaussianBlur",{stdDeviation:6.038}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{values:"0 0 0 0 0.193775 0 0 0 0 0.34389 0 0 0 0 0.252153 0 0 0 0.2 0"}),l.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1164_30170"}),l.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1164_30170",result:"shape"})),l.createElement("filter",{id:"email-reporting-overlay-mobile_svg__c",width:87.972,height:67.421,x:156.721,y:-3.32,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},l.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),l.createElement("feOffset",{dy:2.49}),l.createElement("feGaussianBlur",{stdDeviation:4.981}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),l.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1164_30170"}),l.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1164_30170",result:"shape"})),l.createElement("filter",{id:"email-reporting-overlay-mobile_svg__d",width:92.706,height:79.901,x:144.515,y:45.187,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},l.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),l.createElement("feOffset",{dy:2.49}),l.createElement("feGaussianBlur",{stdDeviation:4.981}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),l.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1164_30170"}),l.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1164_30170",result:"shape"})),l.createElement("filter",{id:"email-reporting-overlay-mobile_svg__e",width:90.393,height:71.098,x:108.472,y:18.69,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},l.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),l.createElement("feOffset",{dy:2.49}),l.createElement("feGaussianBlur",{stdDeviation:4.981}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),l.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1164_30170"}),l.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1164_30170",result:"shape"})),l.createElement("filter",{id:"email-reporting-overlay-mobile_svg__f",width:169.004,height:99.615,x:87.499,y:40.381,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},l.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),l.createElement("feOffset",{dy:-2.513}),l.createElement("feGaussianBlur",{stdDeviation:5.026}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),l.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1164_30170"}),l.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1164_30170",result:"shape"})),l.createElement("clipPath",{id:"email-reporting-overlay-mobile_svg__a"},l.createElement("path",{fill:"#fff",d:"M0 0h343v104H0z"})))));var A=i(76729),b=i(62540);const x="email_reports_setup_overlay_notification",S=`${x}_setup_cta`;function SetUpEmailReportingOverlayNotification({id:e,Notification:t}){const i=(0,d.useSelect)(e=>e(u.nX).getValue(A.Q)),s=(0,a.A)(i),{setValue:o}=(0,d.useDispatch)(u.nX),{dismissNotification:n}=(0,d.useDispatch)(h.D),{dismissItem:r}=(0,d.useDispatch)(m.oR),f=(0,l.useCallback)(()=>{r(S,{expiresInSeconds:0}),o(A.Q,!0)},[r,o]),v={target:".googlesitekit-user-selector",placement:"bottom-end",className:"googlesitekit-tour-tooltip--user-menu",tooltipSlug:x,title:(0,c.__)("You can always manage your email reports subscription from the user menu","google-site-kit"),dismissLabel:(0,c.__)("Got it","google-site-kit")},y=(0,g.i)(v),k=(0,l.useCallback)(()=>{y()},[y]),M=(0,d.useSelect)(e=>e(m.oR).isEmailReportingSubscribed());return(0,l.useEffect)(()=>{s&&!i&&(n(e),M||setTimeout(()=>{y()},310))},[s,i,n,e,M,y]),(0,b.jsx)(t,{children:(0,b.jsx)(p.A,{notificationID:e,title:(0,c.__)("Get site insights in your inbox","google-site-kit"),description:(0,c.__)("Receive the most important insights about your siteâs performance, key trends, and tailored metrics directly in your inbox","google-site-kit"),GraphicDesktop:_,GraphicMobile:E,ctaButton:{label:(0,c.__)("Set up","google-site-kit"),onClick:f,dismissOnClick:!0},dismissButton:{label:(0,c.__)("Maybe later","google-site-kit"),onClick:k},newBadge:!0})})}SetUpEmailReportingOverlayNotification.propTypes={id:r().string.isRequired,Notification:r().elementType.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),d=i(7972),g=i(97345),u=i(62659),m=i(13047),p=i(62688),h=i.n(p),f=i(4452),_=i.n(f),v=i(4751),y=i(82218),k=i(33052),E=i(8513),A=i(29785),b=i(97513),x=i(62540);function FrequencySelector({isUserSubscribed:e,isLoading:t}){const i=(0,b.dv)()===b.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(g.oR).getEmailReportingFrequency()),d=(0,r.useSelect)(e=>e(g.oR).getEmailReportingSavedFrequency()),{setEmailReportingFrequency:u}=(0,r.useDispatch)(g.oR),m=(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:m},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,x.jsxs)(o.Fragment,{children:[(0,x.jsx)("br",{}),(0,x.jsx)(v.A,{width:"20%",height:"16px"}),(0,x.jsx)("br",{}),(0,x.jsx)("div",{className:"googlesitekit-frequency-selector",children:(0,x.jsx)(y.A,{width:"100%",height:"184px",count:3})})]}):!1===s?null:(0,x.jsxs)(o.Fragment,{children:[(0,x.jsx)(k.A,{className:"googlesitekit-frequency-selector-title",type:"label",size:"small",as:"h3",children:(0,n.__)("Frequency","google-site-kit")}),e&&d&&!i&&(0,x.jsx)("div",{className:"googlesitekit-frequency-selector__badge-row",children:g.lV.map(e=>(0,x.jsx)("div",{className:"googlesitekit-frequency-selector__badge-cell",children:e===d&&(0,x.jsx)("div",{className:"googlesitekit-frequency-selector__current-subscription",children:(0,x.jsx)(k.A,{type:E.SZ,size:E.Kk,children:(0,n.__)("Current subscription","google-site-kit")})},e)},e))}),(0,x.jsx)("div",{className:"googlesitekit-frequency-selector",role:"radiogroup","aria-label":(0,n.__)("Frequency","google-site-kit"),children:g.lV.map(t=>{const s=c===t,{label:o,period:r,description:a}=p[t]||{};return(0,x.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&&d&&i&&t===d&&(0,x.jsx)("div",{className:_()("googlesitekit-frequency-selector__current-subscription",{"googlesitekit-frequency-selector__current-subscription--selected":s}),children:(0,x.jsx)(k.A,{type:E.SZ,size:E.Kk,children:(0,n.__)("Current subscription","google-site-kit")})}),(0,x.jsxs)("div",{className:"googlesitekit-frequency-selector__content",children:[(0,x.jsx)("div",{className:"googlesitekit-frequency-selector__label",children:(0,x.jsx)(k.A,{type:"label",size:"large",children:o})}),(0,x.jsxs)("div",{className:"googlesitekit-frequency-selector__period-description",children:[(0,x.jsx)("div",{className:"googlesitekit-frequency-selector__period",children:(0,x.jsx)(k.A,{type:"body",size:"small",children:r})}),(0,x.jsx)("div",{className:"googlesitekit-frequency-selector__description",children:(0,x.jsx)(k.A,{type:"body",size:"small",children:a})})]})]})]},t)})})]})}FrequencySelector.propTypes={isUserSubscribed:h().bool,isLoading:h().bool};var S=i(13606),M=i(25804),I=i(38432),w=i(7076),j=i(52684),C=i(55989),N=i(72545);function InviteSearchInput({value:e="",onChange:t}){const i=(0,j.A)(InviteSearchInput,"InviteSearchInput"),s=(0,o.useCallback)(e=>t(e.target.value),[t]),r=(0,o.useCallback)(()=>{t("")},[t]);return(0,x.jsxs)("div",{className:"googlesitekit-invite-search-input",children:[(0,x.jsx)(C.A,{children:(0,x.jsx)("label",{htmlFor:i,children:(0,n.__)("Search user name, role, or email","google-site-kit")})}),(0,x.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,x.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,x.jsx)(N.A,{width:"8",height:"8"})})]})}InviteSearchInput.propTypes={value:h().string,onChange:h().func.isRequired};var T=i(49383),D=i(46467),R=i(63972);function InviteUserRow({user:e,inviteResult:t=null,onInviteResult:i}){const s=(0,u.A)(),{id:a,name:l,email:c,role:d}=e,{inviteUser:g}=(0,r.useDispatch)(A.O4),p=(0,r.useSelect)(e=>e(A.O4).isInvitingUser(a)),h=(0,o.useCallback)(async()=>{(0,m.sx)(`${s}_email_reports_user_settings-sidebar`,"send_invite");const{error:e}=await g(a);i(a,e?{status:"error",message:e.message}:{status:"success"})},[s,a,g,i]);return(0,x.jsxs)("div",{className:"googlesitekit-invite-user-row",children:[(0,x.jsxs)("div",{className:"googlesitekit-invite-user-row__info",children:[(0,x.jsxs)("div",{className:"googlesitekit-invite-user-row__name",children:[l,(0,x.jsxs)("span",{className:"googlesitekit-invite-user-row__role",children:["(",d,")"]})]}),(0,x.jsx)("div",{className:"googlesitekit-invite-user-row__email",children:c})]}),(0,x.jsx)("div",{className:"googlesitekit-invite-user-row__action",children:"success"===t?.status||e.invited?(0,x.jsxs)("span",{className:"googlesitekit-invite-user-row__success",children:[(0,n.__)("Invitation sent","google-site-kit"),(0,x.jsx)(R.A,{width:"14",height:"14"})]}):"error"===t?.status?(0,x.jsx)("span",{className:"googlesitekit-invite-user-row__error",children:(0,S.A)((0,n.__)("Failed to send invite. <RetryLink>Retry</RetryLink>","google-site-kit"),{RetryLink:(0,x.jsx)(I.A,{"aria-label":(0,n.__)("Retry sending email subscription invite","google-site-kit"),onClick:h})})}):(0,x.jsx)(T.Button,{onClick:h,disabled:p,trailingIcon:(0,x.jsx)(D.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,x.jsx)("div",{className:"googlesitekit-invite-user-list",children:Array.from({length:e}).map((e,t)=>(0,x.jsxs)("div",{className:"googlesitekit-invite-user-row googlesitekit-invite-user-row--loading",children:[(0,x.jsxs)("div",{className:"googlesitekit-invite-user-row__info",children:[(0,x.jsx)(v.A,{width:"120px",height:"16px"}),(0,x.jsx)(v.A,{width:"180px",height:"12px"})]}),(0,x.jsx)("div",{className:"googlesitekit-invite-user-row__action",children:(0,x.jsx)(v.A,{width:"90px",height:"32px",shape:"square"})})]},t))})}function EmptyMessage({text:e}){return(0,x.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,x.jsx)(InviteUserSkeletonList,{visibleItems:3}):0===e.length?t?(0,x.jsx)(EmptyMessage,{text:(0,n.__)("No users match your search.","google-site-kit")}):(0,x.jsx)(EmptyMessage,{text:(0,n.__)("No users are eligible to receive invitations.","google-site-kit")}):(0,x.jsx)("div",{className:"googlesitekit-invite-user-list",children:e.map(e=>(0,x.jsx)(InviteUserRow,{user:e,inviteResult:i[e.id],onInviteResult:s},e.id))})}InviteUserRow.propTypes={user:h().shape({id:h().number.isRequired,name:h().string.isRequired,email:h().string.isRequired,role:h().string,invited:h().bool}).isRequired,inviteResult:h().shape({status:h().oneOf(["success","error"]),message:h().string}),onInviteResult:h().func.isRequired},InviteUserSkeletonList.propTypes={visibleItems:h().number},InviteUserList.propTypes={users:h().arrayOf(h().shape({id:h().number.isRequired,name:h().string,email:h().string.isRequired,role:h().string})).isRequired,searchTerm:h().string,inviteResults:h().objectOf(h().shape({status:h().oneOf(["success","error"]),message:h().string})),onInviteResult:h().func.isRequired,isLoading:h().bool};function InviteOthersToSubscribe(){const e=(0,r.useSelect)(e=>e(g.oR).hasCapability(g.HD)),t=(0,r.useSelect)(e=>e(d.nX).getValue(a.Q)),[i,s]=(0,o.useState)(""),[l,c]=(0,o.useState)(""),[u,m]=(0,o.useState)({}),[p,h]=(0,o.useState)(t),f=(0,w.d)(c,300);(0,o.useEffect)(()=>{f(i)},[i,f]),(0,o.useEffect)(()=>{t&&h(!0)},[t]);const _=(0,r.useInViewSelect)(e=>p?e(A.O4).getEligibleSubscribers({search:l}):null,[l,p]),v=(0,r.useInViewSelect)(e=>p?e(A.O4).getEligibleSubscribers({search:""}):null,[p]),y=(0,r.useInViewSelect)(e=>!!p&&!e(A.O4).hasFinishedResolution("getEligibleSubscribers",[{search:l}]),[l,p]),k=(0,r.useSelect)(e=>e(A.O4).getDocumentationLinkURL("dashboard-sharing")),E=(0,r.useSelect)(e=>e(A.O4).getDocumentationLinkURL("email-reporting-inviting-others"));(0,o.useEffect)(()=>{e&&t&&(f.cancel(),s(""),c(""),m({}))},[t,e,f]);const b=(0,o.useCallback)((e,t)=>{m(i=>({...i,[e]:t}))},[]);if(!e)return null;const j=_?.users||[],C=(v?.total||0)>6,N=(0,S.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,x.jsx)(I.A,{href:k,external:!0,hideExternalIndicator:!0}),learnMoreLink:(0,x.jsx)(I.A,{href:E,external:!0,hideExternalIndicator:!0})});return(0,x.jsxs)("div",{className:"googlesitekit-invite-others-to-subscribe",children:[(0,x.jsxs)("div",{className:"googlesitekit-invite-others-to-subscribe__header",children:[(0,x.jsx)("span",{className:"googlesitekit-invite-others-to-subscribe__title",children:(0,n.__)("Invite others to subscribe","google-site-kit")}),(0,x.jsx)(M.A,{title:N})]}),C&&(0,x.jsx)(InviteSearchInput,{value:i,onChange:s}),(0,x.jsx)(InviteUserList,{users:j,searchTerm:l,inviteResults:u,onInviteResult:b,isLoading:y})]})}var O=i(75971),L=i(11763);const B="subscribe",z="unsubscribe",P="update_settings";function SubscribeActions({isSubscribed:e,onSubscribe:t,onUnsubscribe:i,updateSettings:s,isSavingSettings:r,isLoading:a}){const[l,c]=(0,o.useState)("");function d(e){switch(c(e),e){case P:s();break;case B:t();break;case z:i()}}return!1===(0,O.WM)(e=>e(A.O4).isEmailReportingEnabled())?null:(0,x.jsxs)("div",{className:"googlesitekit-selection-panel-subscribe-actions",children:[a&&(0,x.jsx)(y.A,{width:"140px",height:"42px",count:2}),!a&&e&&(0,x.jsx)(L.A,{onClick:()=>d(z),isSaving:r&&l===z,disabled:r,tertiary:!0,children:(0,n.__)("Unsubscribe","google-site-kit")}),!a&&(0,x.jsx)(L.A,{onClick:()=>d(e?P:B),isSaving:r&&l!==z,disabled:r,children:e?(0,n.__)("Update Settings","google-site-kit"):(0,n.__)("Subscribe","google-site-kit")})]})}SubscribeActions.propTypes={isSubscribed:h().bool,onSubscribe:h().func.isRequired,onUnsubscribe:h().func.isRequired,updateSettings:h().func.isRequired,isSavingSettings:h().bool,isLoading:h().bool};var F=i(83880),G=i(88273),U=i(4124),V=i(20697),W=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:d}=(0,r.useDispatch)(W.M),g=(0,o.useCallback)(()=>{V.KK===i&&e(),d(l)},[l,d,e,i]);return(0,x.jsxs)(c.W4,{title:(0,n.__)("Email reports subscription","google-site-kit"),onCloseClick:e,children:[t&&(0,x.jsxs)(o.Fragment,{children:[(0,x.jsx)(v.A,{width:"100%",height:"16px"}),(0,x.jsx)("br",{})]}),!t&&!s&&a&&(0,x.jsx)(F.A,{children:(0,S.A)((0,n.__)("You can always deactivate this feature in <link>Settings</link>","google-site-kit"),{link:(0,x.jsx)(I.A,{onClick:g,secondary:!0})})})]})}Header.propTypes={closePanel:h().func.isRequired,isLoading:h().bool};var H=i(91117),q=i(63737),Y=i(37325),Z=i(68761),Q=i(30289);const K="email_reports_user_settings_reports_disabled_notice",X=(0,Q.A)(Y.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)(K),{setValue:c}=(0,q.A)(d.nX),g=(0,o.useCallback)(()=>{s.confirm(),c(a.Q,!1)},[c,s]);return e||t?null:(0,x.jsx)(X,{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:g},onInView:s.view})}const $=(0,Q.A)(Y.A);function EmailReportingDisabledViewOnlyNotice(){const e=(0,r.useSelect)(e=>e(A.O4).isEmailReportingEnabled()),t=(0,U.A)(),i=(0,Z.A)(K);return e||!t?null:(0,x.jsx)($,{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,Q.A)(Y.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(G.i).isModuleActive(se.L1)),d=(0,r.useSelect)(e=>e(G.i).isModuleConnected(se.L1)),u=(0,r.useSelect)(e=>e(G.i).isModuleDisconnected(se.L1)),m=(0,r.useSelect)(e=>e(g.oR).isItemDismissed(oe)),{dismissItem:p}=(0,r.useDispatch)(g.oR),h=(0,te.A)(se.L1),f=(0,ie.A)(se.L1),_=c?f:h,v=(0,o.useCallback)(()=>{_&&(i.confirm(),t(!0),_())},[_,i]),y=(0,o.useCallback)(async()=>{i.dismiss(),await p(oe)},[p,i]),k=(0,r.useSelect)(e=>e(A.O4).getDocumentationLinkURL("ga4"));if(!s||a||!1!==m||d||u)return null;const E=c?(0,n.__)("Complete setup","google-site-kit"):(0,n.__)("Connect Analytics","google-site-kit");return(0,x.jsx)(ne,{type:l.L.NEW,title:(0,n.__)("Understand how visitors interact with your content","google-site-kit"),description:(0,S.A)((0,n.__)("Get visitor insights in your email report by connecting Analytics. <a>Learn more</a>","google-site-kit"),{a:(0,x.jsx)(ee.A,{id:oe,label:(0,n.__)("Learn more","google-site-kit"),url:k})}),ctaButton:{label:E,inProgress:e,disabled:e,onClick:v},dismissButton:{label:(0,n.__)("Maybe later","google-site-kit"),onClick:y},onInView:i.view})}function Notices({isLoading:e,onGoToSettings:t}){return e?null:(0,x.jsxs)(o.Fragment,{children:[(0,x.jsx)(J.A,{onGoToSettings:t}),(0,x.jsx)(H.A,{}),(0,x.jsx)(SetupAnalyticsNotice,{}),(0,x.jsx)(EmailReportingDisabledNotice,{}),(0,x.jsx)(EmailReportingDisabledViewOnlyNotice,{})]})}Notices.propTypes={isLoading:h().bool,onGoToSettings:h().func};var re=i(68329);function SelectionPanelFooter({notice:e,onNoticeDismiss:t}){return(0,x.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,x.jsx)("div",{className:"googlesitekit-selection-panel-footer__content",children:e?(0,x.jsx)(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,x.jsx)(F.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:d,closePanel:u}){const m=(0,r.useSelect)(e=>e(g.oR).getUser()),p=m?.wpEmail,h=(0,U.A)(),f=(0,r.useSelect)(e=>e(A.O4).isEmailReportingEnabled()),_=(0,r.useSelect)(e=>h?null:e(A.O4).getEmailReportingErrors()),y=[f,(0,r.useSelect)(e=>e(g.oR).getEmailReportingSettings()),_,(0,r.useSelect)(e=>e(G.i).getModules())].some(e=>void 0===e);return(0,x.jsxs)(o.Fragment,{children:[(0,x.jsx)(Header,{closePanel:u,isLoading:y}),(0,x.jsxs)(c.kA,{className:"googlesitekit-user-settings-selection__panel-content",children:[(0,x.jsx)(Notices,{isLoading:y,onGoToSettings:u}),(0,x.jsxs)("div",{className:"googlesitekit-user-settings-selection__panel-description",children:[y&&(0,x.jsxs)(o.Fragment,{children:[(0,x.jsx)(v.A,{width:"100%",height:"16px"}),(0,x.jsx)(v.A,{width:"60%",height:"16px"})]}),!y&&f&&(0,x.jsxs)(F.A,{type:"body",size:"small",children:[(0,n.__)("Youâll receive the report to your WordPress user email","google-site-kit"),p&&(0,x.jsx)(k.A,{type:"body",size:"medium",children:p})]})]}),(0,x.jsx)(FrequencySelector,{isUserSubscribed:t,isLoading:y}),(0,x.jsx)(SubscribeActions,{onSubscribe:a,onUnsubscribe:l,updateSettings:s,isSubscribed:t,isSavingSettings:i,isLoading:y}),f&&!h&&(0,x.jsx)(InviteOthersToSubscribe,{})]}),f&&(0,x.jsx)(SelectionPanelFooter,{notice:e,onNoticeDismiss:d})]})}function UserSettingsSelectionPanel(){const e=(0,u.A)(),t=(0,r.useSelect)(e=>e(d.nX).getValue(a.Q)),i=(0,s.A)(t),p=(0,o.useCallback)(()=>{(0,m.sx)(`${e}_email_reports_user_settings-sidebar`,"user_settings_sidebar_view")},[e]),h=(0,r.useSelect)(e=>t?e(g.oR).getEmailReportingSettings():{}),f=(0,r.useSelect)(e=>!!t&&e(g.oR).isSavingEmailReportingSettings()),_=(0,r.useSelect)(e=>e(g.oR).getEmailReportingFrequency()),[v,y]=(0,o.useState)(null),{setValue:k}=(0,r.useDispatch)(d.nX),{saveEmailReportingSettings:E,resetEmailReportingSettings:A}=(0,r.useDispatch)(g.oR),b=(0,o.useCallback)(()=>{t&&(setTimeout(()=>{A(),y(null)},310),k(a.Q,!1),(0,m.sx)(`${e}_email_reports_user_settings-sidebar`,"user_settings_sidebar_close"))},[t,A,k,e]),S=(0,o.useCallback)(async()=>{const{error:t}=await E();(0,m.sx)(`${e}_email_reports_user_settings-sidebar`,"update_settings",_),y(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")})},[E,e,_]),M=(0,o.useCallback)(async()=>{const{error:t}=await E({subscribed:!0});(0,m.sx)(`${e}_email_reports_user_settings-sidebar`,"subscribe",_),y(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")})},[E,e,_]),I=(0,o.useCallback)(async()=>{const{error:t}=await E({subscribed:!1});(0,m.sx)(`${e}_email_reports_user_settings-sidebar`,"unsubscribe"),y(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")})},[E,e]),w=(0,o.useCallback)(()=>y(null),[]);return(0,o.useEffect)(()=>{!i&&t&&k("admin-screen-tooltip",{isTooltipVisible:!1})},[t,i,k]),(0,x.jsx)(c.Ay,{className:"googlesitekit-user-settings-selection-panel googlesitekit-email-reporting-settings",isOpen:!!t,onOpen:p,closePanel:b,children:(0,x.jsx)(PanelContent,{notice:v,isUserSubscribed:h?.subscribed,isSavingSettings:f,onSaveCallback:S,onSubscribe:M,onUnsubscribe:I,onNoticeDismiss:w,closePanel:b})})}SelectionPanelFooter.propTypes={notice:h().shape({title:h().node,text:h().node,type:h().oneOf(Object.values(l.L))}),onNoticeDismiss:h().func},PanelContent.propTypes={savedFrequency:h().string,notice:h().shape({title:h().string,text:h().string,type:h().oneOf(Object.values(l.L))}),isUserSubscribed:h().bool,isSavingSettings:h().bool,onSaveCallback:h().func,onSubscribe:h().func,onUnsubscribe:h().func,onNoticeDismiss:h().func,closePanel:h().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),d=i(88273),g=i(68761),u=i(65929),m=i(4124),p=i(22942),h=i(30289),f=i(62540);const _="email_reports_analytics_disconnected_notice",v=(0,h.A)(r.A);function AnalyticsDisconnectedNotice(){const e=(0,m.A)(),[t,i]=(0,s.useState)(!1),r=(0,g.A)(_),h=(0,n.useSelect)(e=>e(l.O4).isEmailReportingEnabled()),y=(0,n.useSelect)(e=>e(d.i).isModuleConnected(p.L1)),k=(0,n.useSelect)(e=>e(d.i).isModuleDisconnected(p.L1)),E=(0,n.useSelect)(e=>e(c.oR).isItemDismissed(_)),{dismissItem:A}=(0,n.useDispatch)(c.oR),b=(0,u.A)(p.L1),x=(0,s.useCallback)(()=>{i(!0),r.confirm(),b()},[r,b]),S=(0,s.useCallback)(async()=>{r.dismiss(),await A(_)},[A,r]);if(!h||!1!==E||y||!k)return null;let M=(0,o.__)("Email reports wonât include Analytics data and metrics","google-site-kit");return e&&(M=(0,o.__)("Email reports wonât include Analytics data and metrics. To fix the issue contact your administrator.","google-site-kit")),(0,f.jsx)(v,{className:"googlesitekit-email-reporting__admin-settings-notice",type:a.L.WARNING,title:(0,o.__)("Analytics is disconnected","google-site-kit"),description:M,ctaButton:e?void 0:{label:(0,o.__)("Connect Analytics","google-site-kit"),inProgress:t,disabled:t,onClick:x},dismissButton:{label:(0,o.__)("Got it","google-site-kit"),onClick:S},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),d=i(29785),g=i(68761),u=i(30289),m=i(62540);const p=(0,u.A)(a.A);function CronSchedulerErrorNotice(){const e=(0,g.A)("email_reporting_cron_scheduler_error_notice"),t=(0,c.WM)(e=>e(d.O4).getDocumentationLinkURL("email-reporting-scheduler-issues"));return(0,m.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 h=i(88273);const f=(0,u.A)(a.A);function PermissionsErrorNotice({moduleSlug:e}){const t=(0,c.WM)(t=>t(h.i).getModule(e)),i=(0,c.WM)(t=>t(h.i).getModuleStoreName(e)),s=(0,c.WM)(e=>e(i)?.getServiceEntityAccessURL?.()),o=(0,c.WM)(t=>t(d.O4).getErrorTroubleshootingLinkURL({code:`${e}_insufficient_permissions`})),n=(0,g.A)("email_reports_permissions_error_notice");return(0,m.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(h.i).getModule(e)),s=(0,g.A)("email_reports_report_error_notice"),o=(0,c.WM)(t=>t(d.O4).getModuleSettingsURL(e)),n=(0,c.WM)(e=>e(d.O4).getDocumentationLinkURL("email-reporting-module-issues"));return(0,m.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 v=(0,u.A)(a.A);function SendingErrorNotice(){const e=(0,g.A)("email_reports_sending_error_notice"),t=(0,c.WM)(e=>e(d.O4).getDocumentationLinkURL("email-reporting-deliverability-issues"));return(0,m.jsx)(v,{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 y=(0,u.A)(a.A);function ServerErrorNotice(){const e=(0,g.A)("email_reports_server_error_notice"),t=(0,c.WM)(e=>e(d.O4).getDocumentationLinkURL("email-reporting-server-issues"));return(0,m.jsx)(y,{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 k=i(4124);function EmailReportingErrorNotices({onGoToSettings:e}){const t=(0,k.A)(),i=(0,n.useSelect)(e=>e(d.O4).isEmailReportingEnabled()),s=(0,n.useSelect)(e=>e(d.O4).getEmailReportingErrors()),o=(0,n.useSelect)(e=>e(d.O4).getLatestEmailReportingError());if(!i||t||0===s?.length||void 0===o)return null;switch(o?.category_id){case"permissions_error":return(0,m.jsx)(PermissionsErrorNotice,{moduleSlug:o.module_slug});case"report_error":return(0,m.jsx)(ReportErrorNotice,{moduleSlug:o.module_slug,onGoToSettings:e});case"sending_error":return(0,m.jsx)(SendingErrorNotice,{});case"cron_scheduler_error":return(0,m.jsx)(CronSchedulerErrorNotice,{});default:return(0,m.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),d=i(63696),g=i(82871),u=i(53328),m=i(49383),p=i(50539),h=i(40194),f=i(29785),_=i(97345),v=i(88273),y=i(30805),k=i(12896),E=i(62659),A=i(58718),b=i(22942),x=i(99893),S=i(49481),M=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=>d.createElement("svg",I({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=d.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=d.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 j,C,N;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 D=e=>d.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),j||(j=d.createElement("circle",{cx:12,cy:11,r:8.25,stroke:"currentColor",strokeWidth:1.5})),C||(C=d.createElement("path",{fill:"currentColor",d:"m10 9 7-3-2.953 7.047L7 16z"})),N||(N=d.createElement("circle",{cx:12,cy:11,r:1,fill:"#fff"})));var R,O,L;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 z=e=>d.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),R||(R=d.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=d.createElement("path",{fill:"currentColor",d:"M13.5 9V3L19 9z"})),L||(L=d.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M8.5 11.5h7M8.5 14.5h7M8.5 17.5H13"})));var P,F;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 U=e=>d.createElement("svg",G({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),P||(P=d.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"})),F||(F=d.createElement("path",{fill:"currentColor",d:"M11.5 8.5H13v4h-1.5zM11.5 13.5H13V15h-1.5z"})));var V;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 H=e=>d.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),V||(V=d.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 q,Y,Z;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Q.apply(null,arguments)}const K=e=>d.createElement("svg",Q({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),q||(q=d.createElement("mask",{id:"support_svg__a",fill:"#fff"},d.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"}))),Y||(Y=d.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=d.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 X=i(38432),$=i(62540);function HelpMenuLink({children:e,href:t,gaEventLabel:i,onClick:s,icon:o}){const n=(0,E.A)(),r=(0,y.i)("setupFlowRefresh"),a=(0,d.useCallback)(async()=>{s?.(),i&&await(0,M.sx)(`${n}_headerbar_helpmenu`,r?"click_menu_item":"click_outgoing_link",i)},[s,i,n,r]);return(0,$.jsx)("li",{className:"googlesitekit-help-menu-link mdc-list-item",role:"none",children:(0,$.jsx)(X.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,d.useState)(!1),o=(0,d.useRef)(),n=(0,E.A)(),a=(0,y.i)("setupFlowRefresh");(0,c.A)(o,()=>s(!1)),(0,k.l)([u._f,u.wn],o,()=>s(!1));const l=(0,p.useSelect)(e=>e(v.i).isModuleActive(A.Py)),I=(0,p.useSelect)(e=>{if(!t||!a)return!1;return e(v.i).isModuleConnected(b.L1)?!1===e(x.K9).isGatheringData():!1===e(S.n).isGatheringData()},[t,a]),j=(0,d.useCallback)(()=>{i||(0,M.sx)(`${n}_headerbar`,"open_helpmenu"),s(!i)},[i,n]),C=(0,d.useCallback)(()=>{s(!1)},[]),N=(0,p.useSelect)(e=>e(f.O4).getDocumentationLinkURL("fix-common-issues")),{triggerOnDemandTour:T}=(0,p.useDispatch)(_.oR),R=(0,h.G)(),O=(0,d.useCallback)(()=>{T(R)},[T,R]),L=[{gaEventLabel:"fix_common_issues",href:N,children:(0,g.__)("Fix common issues","google-site-kit")},{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/",children:(0,g.__)("Read help docs","google-site-kit")},{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/",children:(0,g.__)("Get support","google-site-kit")},...l?[{gaEventLabel:"adsense_help",href:"https://support.google.com/adsense/",children:(0,g.__)("Get help with AdSense","google-site-kit")}]:[]],B=[{gaEventLabel:"browse_documentation",href:"https://sitekit.withgoogle.com/documentation/",icon:(0,$.jsx)(z,{width:24,height:24}),children:(0,g.__)("Browse documentation","google-site-kit")},{gaEventLabel:"get_support",href:"https://wordpress.org/support/plugin/google-site-kit/",icon:(0,$.jsx)(K,{width:24,height:24}),children:(0,g.__)("Get free support","google-site-kit")},...I?[{gaEventLabel:"start_tour",onClick:O,icon:(0,$.jsx)(D,{width:24,height:24}),children:(0,g.__)("Start a feature tour","google-site-kit")}]:[],{gaEventLabel:"send_feedback",href:"https://wordpress.org/support/plugin/google-site-kit/reviews/",icon:(0,$.jsx)(U,{width:24,height:24}),children:(0,g.__)("Send feedback","google-site-kit")},...l?[{gaEventLabel:"get_adsense_help",href:"https://support.google.com/adsense/",icon:(0,$.jsx)(w,{width:24,height:24}),children:(0,g.__)("Get help with AdSense","google-site-kit")}]:[]];return(0,$.jsxs)("div",{ref:o,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,$.jsx)(m.Button,{"aria-controls":"googlesitekit-help-menu","aria-expanded":i,"aria-label":(0,g.__)("Help","google-site-kit"),"aria-haspopup":"menu",className:"googlesitekit-header__dropdown googlesitekit-border-radius-round googlesitekit-button-icon googlesitekit-help-menu__button mdc-button--dropdown",icon:(0,$.jsx)(H,{width:"20",height:"20"}),onClick:j,tooltipEnterDelayInMS:500,text:!0}),(0,$.jsxs)(m.Menu,{className:r()("googlesitekit-width-auto",{"googlesitekit-help-menu":a}),menuOpen:i,id:"googlesitekit-help-menu",onSelected:C,children:[e,(a?B:L).map((e,t)=>(0,$.jsx)(J,{...e},t))]})]})}HelpMenu.propTypes={children:l().node,showFeatureTour:l().bool}},12317(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(49383),l=i(38432),c=i(33052),d=i(62540);function CTA({title:e,headerText:t,headerContent:i,description:s,ctaLink:n,ctaLabel:r,ctaLinkExternal:g,ctaType:u,error:m,onClick:p,"aria-label":h,children:f}){return(0,d.jsxs)("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":m}),children:[(t||i)&&(0,d.jsxs)("div",{className:"googlesitekit-cta__header",children:[t&&(0,d.jsx)(c.A,{as:"h2",size:"small",type:"label",className:"googlesitekit-cta__header_text",children:t}),i]}),(0,d.jsxs)("div",{className:"googlesitekit-cta__body",children:[e&&(0,d.jsx)(c.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-cta__title",children:e}),s&&"string"==typeof s&&(0,d.jsx)("p",{className:"googlesitekit-cta__description",children:s}),s&&"string"!=typeof s&&(0,d.jsx)("div",{className:"googlesitekit-cta__description",children:s}),r&&"button"===u&&(0,d.jsx)(a.Button,{"aria-label":h,href:n,onClick:p,children:r}),r&&"link"===u&&(0,d.jsx)(l.A,{href:n,onClick:p,"aria-label":h,external:g,hideExternalIndicator:g,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 g=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),d=i(67438),g=i(62540);const u=c()(e=>({id:e,Notification:m(e)(d.A)}));function m(e){return t=>{function WithNotificationID(i){return(0,g.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,g.jsx)(l,{...c})}Notifications.propTypes={viewContext:o().string,areaSlug:o().string}},97343(e,t,i){i.d(t,{A:()=>d});var s=i(63696),o=i(82871),n=i(50539),r=i(37325),a=i(3749),l=i(7972),c=i(62540);const d=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)}})})}},75649(e,t,i){i.d(t,{A:()=>n});var s=i(63696),o=i(82871);function n({isDismissalFinal:e}={}){const[t]=(0,s.useState)(!0===e?(0,o.__)("Donât show again","google-site-kit"):(0,o.__)("Maybe later","google-site-kit"));return t}},31675(e,t,i){i.d(t,{A:()=>ExitSetup});var s=i(62688),o=i.n(s),n=i(82871),r=i(99772),a=i(75971),l=i(70301),c=i(29785),d=i(13047),g=i(62540);function ExitSetup({gaTrackingEventArgs:e}){const t=(0,a.WM)(e=>(0,d.CZ)(e(c.O4).getAdminURL())),{navigateTo:i}=(0,a.wA)(l.M);return(0,g.jsx)(r.$n,{onClick:async function(){await(0,d.sx)(e.category,"setup_flow_v3_exit_setup",e.label),i(t)},tertiary:!0,children:(0,n.__)("Exit setup","google-site-kit")})}ExitSetup.propTypes={gaTrackingEventArgs:o().object.isRequired}},89065(e,t,i){i.d(t,{A:()=>SurveyViewTrigger});var s=i(62688),o=i.n(s),n=i(63696),r=i(50539),a=i(97345);function SurveyViewTrigger({triggerID:e,ttl:t=0}){const{triggerSurvey:i}=(0,r.useDispatch)(a.oR);return(0,n.useEffect)(()=>{i(e,{ttl:t})},[e,t,i]),null}SurveyViewTrigger.propTypes={triggerID:o().string.isRequired,ttl:o().number}},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:()=>g,IL:()=>h,LD:()=>m,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 d(){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 g(e){const t=await d();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 d();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 m(e){const t=await d();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 d();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 h(){if(await d()){const e=await p();for(const t of e)await m(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),d=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,d.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 g=i(4452),u=i.n(g);const m=(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:g,calloutStyle:m,...p},h)=>{const f=t&&!n?"a":"button";return(0,d.jsx)(f,{className:u()("mdc-button",s,{"mdc-button--raised":!i&&!c&&!g,"mdc-button--danger":o,"mdc-button--inverse":l,"mdc-button--tertiary":c,"mdc-button--callout":g,"mdc-button--callout-primary":g||"primary"===m,"mdc-button--callout-warning":"warning"===m,"mdc-button--callout-error":"error"===m}),href:n?void 0:t,ref:h,disabled:!!n,"aria-label":a,target:r||"_self",role:"a"===f?"button":void 0,...p,children:e})});m.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=m,h=(0,r.forwardRef)(({children:e,href:t=null,text:i=!1,className:o="",danger:n=!1,disabled:c=!1,target:g,icon:u=null,trailingIcon:m=null,"aria-label":h,title:f=null,customizedTooltip:_=null,tooltip:v=!1,inverse:y=!1,hideTooltipTitle:k=!1,tooltipEnterDelayInMS:E=100,tertiary:A=!1,callout:b=!1,calloutStyle:x=null,...S},M)=>{const I=(0,r.useCallback)(e=>{null!==e&&l.Nv.attachTo(e)},[]),w=(0,s.A)(M,I);const j=k?null:f||_||h;return(0,d.jsx)(MaybeTooltip,{disabled:c,tooltip:v,tooltipTitle:j,hasIconOnly:!!u&&void 0===e,tooltipEnterDelayInMS:E,children:(0,d.jsxs)(p,{href:t,disabled:c,className:o,danger:n,text:i,tertiary:A,inverse:y,callout:b,calloutStyle:x,ref:w,"aria-label":function(){let t=h;if("_blank"!==g)return t;const i=(0,a._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof e&&(t=t||e),t?`${t} ${i}`:i}(),target:g||"_self",...S,children:[u,e&&(0,d.jsx)("span",{className:"mdc-button__label",children:e}),m]})})});h.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=h},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:()=>g});var s=i(4452),o=i.n(s),n=i(17243),r=i(62688),a=i.n(r),l=i(85135),c=i(99578),d=i(62540);const g={BEFORE:"before",AFTER:"after"};function SpinnerButton(e){const{className:t,onClick:i=()=>{},isSaving:s=!1,spinnerPosition:r=g.AFTER,...a}=e,u=(0,n.pickBy)(a,e=>void 0!==e);return(0,d.jsx)(l.A,{className:o()(t,"googlesitekit-button-icon--spinner",{"googlesitekit-button-icon--spinner__running":s,"googlesitekit-button-icon--spinner__before":r===g.BEFORE,"googlesitekit-button-icon--spinner__after":r===g.AFTER}),icon:s&&r===g.BEFORE?(0,d.jsx)(c.A,{size:14}):void 0,trailingIcon:s&&r===g.AFTER?(0,d.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(g))}},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 d=(0,l.useRef)(!1),g=o?()=>{d.current||(d.current=!0,o?.())}:void 0,u=o?()=>{d.current=!1,r?.()}:r;return(0,c.jsx)(s.Ay,{classes:{popper:n()("googlesitekit-tooltip-popper",t),tooltip:n()("googlesitekit-tooltip",i)},onOpen:g,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:()=>d,Ej:()=>x,Gw:()=>S,Is:()=>r,KK:()=>u,Nn:()=>I,OT:()=>E,SH:()=>k,Y$:()=>m,ZS:()=>a,bg:()=>f,en:()=>b,ep:()=>h,f7:()=>o,hi:()=>p,jU:()=>s,k$:()=>v,kz:()=>M,ly:()=>l,mo:()=>_,s3:()=>y,uR:()=>c,x2:()=>A,zx:()=>g});const s="mainDashboard",o="entityDashboard",n="mainDashboardViewOnly",r="entityDashboardViewOnly",a="userInput",l="activation",c="splash",d="adminBar",g="adminBarViewOnly",u="settings",m="adBlockingRecovery",p="wpDashboard",h="wpDashboardViewOnly",f="moduleSetup",_="metricSelection",v="wpBlockEditor",y="keyMetricsSetup",k="key-metrics",E="traffic",A="site-goals",b="content",x="speed",S="monetization",M=[s,o,n,r,a,c,u,f,_],I=[n,r,g,h]},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 d="CREATE_SNAPSHOT",g="DELETE_SNAPSHOT",u="RESTORE_SNAPSHOT",m="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:g}},*restoreSnapshot(e={}){const{clearAfterRestore:t=!0}=e,{cacheHit:i,value:s}=yield{payload:{},type:u};return i&&(yield{payload:{snapshot:s},type:m},t&&(yield{payload:{},type:g})),i},*createSnapshot(){return yield{payload:{},type:d}}},a={[g]:()=>(0,l.LD)(`datastore::cache::${e}`),[d]:(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===m){const{snapshot:i}=o,{error:s,...n}=i;return t?.length>0?{...e,...n}:n}return e}}}function h(e=a()){return Object.values(e.stores).filter(e=>Object.keys(e.getActions()).includes("restoreSnapshot"))}function f(e=a()){return Promise.all(h(e).map(e=>e.getActions().createSnapshot()))}function _(e=a()){return Promise.all(h(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),d=i(30043),g=i(66293),u=i(52721),m=i(97241);var p=i(8084);const h=(0,s.I)({},globalThis.wp?.data);h.combineStores=p.o3,h.commonActions=p.jU,h.commonControls=p._5,h.commonStore=p.x0,h.createReducer=function(e){return(0,m.Ay)(e)},h.useInViewSelect=u.w,h.controls=o.n,h.createRegistryControl=n.b,h.createRegistrySelector=n.N,h.useSelect=r.A,h.useDispatch=a.A,h.useRegistry=l.A,h.withSelect=c.A,h.withDispatch=d.A,h.RegistryProvider=g.Ay;const f=h},74426(e,t,i){function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()}function n(e){return e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}i.d(t,{Uf:()=>n,m2:()=>s,sP:()=>o})},8084(e,t,i){i.d(t,{$C:()=>I,RF:()=>M,WI:()=>x,_5:()=>E,jU:()=>k,o3:()=>y,x0:()=>b});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",d="AWAIT";function g(...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=g,m=g;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 h=g,f=g,_=g;function v(e){return e}function y(...e){const t=_(...e.map(e=>e.initialState||{}));return{initialState:t,controls:m(...e.map(e=>e.controls||{})),actions:u(...e.map(e=>e.actions||{})),reducer:p(t,...e.map(e=>e.reducer||v)),resolvers:h(...e.map(e=>e.resolvers||{})),selectors:f(...e.map(e=>e.selectors||{}))}}const k={getRegistry:()=>({payload:{},type:c}),*await(e){return{payload:{value:e},type:d}}},E={[c]:(0,l.b)(e=>()=>e),[d]:({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 b={actions:k,controls:E,reducer:v};function x(e){return t=>S(e(t))}const S=a()(e=>(0,n.mapValues)(e,(e,t)=>(...i)=>{const s=e(...i);return o()(void 0!==s,`${t}(...) is not resolved`),s}));function M(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:()=>m,BT:()=>D,CQ:()=>M,D1:()=>Y,DF:()=>q,GM:()=>S,GT:()=>v,GU:()=>Z,HA:()=>B,HD:()=>u,HP:()=>T,J5:()=>P,JF:()=>w,JK:()=>f,Ml:()=>h,SS:()=>R,UF:()=>d,UY:()=>V,Vl:()=>O,W6:()=>H,Xq:()=>I,YQ:()=>j,Yw:()=>U,dV:()=>N,dX:()=>x,ej:()=>c,em:()=>n,ep:()=>A,fu:()=>k,gC:()=>y,hz:()=>p,jN:()=>Q,jx:()=>g,lV:()=>l,nH:()=>z,oR:()=>s,od:()=>a,p3:()=>_,pG:()=>b,qv:()=>o,qy:()=>C,t1:()=>W,t7:()=>G,tB:()=>E,tK:()=>F,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",d="googlesitekit_setup",g="googlesitekit_view_dashboard",u="googlesitekit_manage_options",m="googlesitekit_read_shared_module_data",p="googlesitekit_manage_module_sharing_options",h="googlesitekit_delegate_module_sharing_management",f="googlesitekit_update_plugins",_="kmAnalyticsAdSenseTopEarningContent",v="kmAnalyticsEngagedTrafficSource",y="kmAnalyticsLeastEngagingPages",k="kmAnalyticsNewVisitors",E="kmAnalyticsPopularAuthors",A="kmAnalyticsPopularContent",b="kmAnalyticsPopularProducts",x="kmAnalyticsReturningVisitors",S="kmAnalyticsTopCities",M="kmAnalyticsTopCitiesDrivingLeads",I="kmAnalyticsTopCitiesDrivingAddToCart",w="kmAnalyticsTopCitiesDrivingPurchases",j="kmAnalyticsTopDeviceDrivingPurchases",C="kmAnalyticsTopConvertingTrafficSource",N="kmAnalyticsTopCountries",T="kmAnalyticsTopPagesDrivingLeads",D="kmAnalyticsTopRecentTrendingPages",R="kmAnalyticsTopTrafficSource",O="kmAnalyticsTopTrafficSourceDrivingAddToCart",L="kmAnalyticsTopTrafficSourceDrivingLeads",B="kmAnalyticsTopTrafficSourceDrivingPurchases",z="kmAnalyticsPagesPerVisit",P="kmAnalyticsVisitLength",F="kmAnalyticsTopReturningVisitorPages",G="kmSearchConsolePopularKeywords",U="kmAnalyticsVisitsPerVisitor",V="kmAnalyticsMostEngagingPages",W="kmAnalyticsTopCategories",H=[_,v,y,k,E,A,b,x,W,S,M,I,w,j,C,N,D,R,O,z,P,F,U,V,W],q=[...H,G],Y="welcome-modal-with-tour",Z="welcome-modal-gathering-data",Q="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 d(e){return(0,r.useSelect)(t=>!!t(l.nX).getValue(c(e)),[e])}d.getKey=c;var g=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),g=!!s?.isIntersecting,m=d(e),p=(0,n.useRef)();function h(){p.current&&clearTimeout(p.current)}return(0,n.useEffect)(()=>(!m&&g?(h(),p.current=setTimeout(()=>{s?.isIntersecting&&(o(d.getKey(e),!0),c(e))},3e3)):!g&&p.current&&h(),()=>{h()}),[m,g,o,c,e,s]),null}ViewedStateObserver.propTypes={id:o().string,observeRef:o().object,threshold:o().number};var m=i(62540);function Notification({id:e,className:t,gaTrackingEventArgs:i,children:s,onView:o}){const l=(0,n.useRef)(),c=d(e),u=(0,g.A)(e,i?.category,{viewAction:i?.viewAction}),[p,h]=(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?.(),h(!0)),f?.length>=3&&_(e,{skipHidingFromQueue:!0})},[c,u,p,i,o,f,_,e]),(0,m.jsxs)("section",{id:e,ref:l,className:t,children:[s,!c&&(0,m.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 d=(0,r.A)(e);return(0,a.jsx)(n.A,{onClick:function(e){e.persist(),d.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),d=i(61983),g=i(41671),u=i(8732),m=i(68761),p=i(10740);var h=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 d=(0,m.A)(e,r?.category),{dismissNotification:g}=(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,h.jsx)("div",{className:o()("googlesitekit-banner-notification",`googlesitekit-banner-notification--${t}`),children:(0,h.jsx)(p.xA,{className:"googlesitekit-page-content",children:(0,h.jsx)(p.fI,{children:(0,h.jsx)(p.fh,{size:12,children:(0,h.jsx)(l.A,{learnMoreLink:i&&{...i,onClick:async function(e){d.clickLearnMore(r?.label,r?.value),await(i?.onClick?.(e))}},dismissButton:s&&{...s,onClick:async function(t){await(s?.onClick?.(t)),d.dismiss(r?.label,r?.value),g(e,{...s?.dismissOptions})}},ctaButton:n&&{...n,onClick:async function(t){d.confirm(r?.label,r?.value),await(n?.onClick?.(t)),n?.dismissOnClick&&g(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(g.A.propTypes),dismissButton:r().shape(d.A.propTypes),ctaButton:r().shape(c.A.propTypes),gaTrackingEventArgs:r().shape({category:r().string,label:r().string,value:r().number})}},33903(e,t,i){i.d(t,{A:()=>OverlayNotification});var s=i(62688),o=i.n(s),n=i(50539),r=i(5230),a=i(4452),l=i.n(a),c=i(97513),d=i(63696),g=i(60515),u=i(49383),m=i(82871),p=i(62540);function DismissButton({label:e=(0,m.__)("Maybe later","google-site-kit"),onClick:t,disabled:i}){return(0,p.jsx)(u.Button,{onClick:t,disabled:i,tertiary:!0,children:e})}const h={label:o().string,onClick:o().func,disabled:o().bool};function CTAButton(e){const{label:t,...i}=e;return(0,p.jsx)(u.Button,{...i,children:t})}function Description({children:e}){return(0,p.jsx)("p",{className:"googlesitekit-overlay-card__description",children:e})}DismissButton.propTypes=h,CTAButton.propTypes={...h,href:o().string,target:o().string,trailingIcon:o().object},Description.propTypes={children:o().node.isRequired};var f=i(33052);function Title({children:e}){return(0,p.jsx)(f.A,{as:"h3",size:"medium",type:"title",className:"googlesitekit-overlay-card__title",children:e})}function Body({title:e,description:t,ctaButton:i,dismissButton:s,GraphicDesktop:o,GraphicMobile:n,newBadge:r}){const a=(0,c.dv)();return(0,p.jsxs)(d.Fragment,{children:[a!==c.mp&&o&&(0,p.jsx)("div",{className:"googlesitekit-overlay-card__graphic",children:(0,p.jsx)(o,{})}),(0,p.jsxs)("div",{className:"googlesitekit-overlay-card__body",children:[r&&(0,p.jsx)("div",{className:"googlesitekit-overlay-card__badge",children:(0,p.jsx)(g.A,{hasNoSpacing:!0})}),e&&(0,p.jsx)(Title,{children:e}),t&&(0,p.jsx)(Description,{children:t})]}),(i||s)&&(0,p.jsxs)("div",{className:"googlesitekit-overlay-card__actions",children:[s&&(0,p.jsx)(DismissButton,{...s}),i&&(0,p.jsx)(CTAButton,{...i})]}),a===c.mp&&n&&(0,p.jsx)(n,{})]})}function OverlayCard(e){const{visible:t,className:i,...s}=e,o=(0,c.dv)();if(!t)return null;const n=(0,p.jsx)("div",{className:l()("googlesitekit-overlay-card",i),children:(0,p.jsx)(Body,{...s})});return o===c.mp?n:(0,p.jsx)(r.A,{direction:"up",in:t,children:n})}Title.propTypes={children:o().node.isRequired},Body.propTypes={title:o().node,description:o().node,ctaButton:o().shape({...h,href:o().string,target:o().string,trailingIcon:o().element}),dismissButton:o().shape({...h}),GraphicDesktop:o().elementType,GraphicMobile:o().elementType,newBadge:o().bool},OverlayCard.propTypes={className:o().string,title:o().string,description:o().oneOfType([o().string,o().object]),ctaButton:o().shape({...h,href:o().string,target:o().string,trailingIcon:o().object}),dismissButton:o().shape(h),GraphicDesktop:o().elementType,GraphicMobile:o().elementType,newBadge:o().bool,visible:o().bool},OverlayCard.defaultProps={visible:!1};var _=i(8732),v=i(68761);function OverlayNotification({notificationID:e,ctaButton:t,dismissButton:i,gaTrackingEventArgs:s,...o}){const r=(0,v.A)(e,s?.category,{confirmAction:s?.confirmAction,dismissAction:s?.dismissAction}),{dismissNotification:a}=(0,n.useDispatch)(_.D);const{dismissOnClick:l,dismissOptions:c,...d}=t||{};const g=t?{...d,onClick:async function(i){r.confirm(s?.label,s?.value),await(t?.onClick?.(i)),l&&a(e,{...c})}}:void 0;return(0,p.jsx)(OverlayCard,{ctaButton:g,dismissButton:{...i,onClick:async function(t){await(i?.onClick?.(t)),r.dismiss(s?.label,s?.value),a(e,{...i.dismissOptions})}},...o,visible:!0})}OverlayNotification.propTypes={notificationID:o().string,ctaButton:o().object,dismissButton:o().oneOfType([o().object,o().bool])}},72050(e,t,i){i.d(t,{A:()=>SetupCTA});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(63696),l=i(49383),c=i(50539),d=i(83891),g=i(71189),u=i(61983),m=i(41671),p=i(8732),h=i(68761),f=i(10740),_=i(62540);function SetupCTA({notificationID:e,title:t,description:i,errorText:s,helpText:n,learnMoreLink:r,dismissButton:g,ctaButton:u,svg:m,footer:v,gaTrackingEventArgs:y,waitingProgress:k,...E}){const A=(0,h.A)(e,y?.category),{dismissNotification:b}=(0,c.useDispatch)(p.D);return(0,_.jsxs)(a.Fragment,{children:[!!k&&(0,_.jsx)(l.ProgressBar,{className:"googlesitekit-banner__progress-bar",...k}),(0,_.jsx)("div",{className:o()("googlesitekit-widget-context",{"googlesitekit-widget-context--with-progress-bar":!!k}),children:(0,_.jsx)(f.xA,{children:(0,_.jsx)(f.fI,{children:(0,_.jsx)(f.fh,{size:12,children:(0,_.jsx)(d.A,{className:"googlesitekit-banner--setup-cta",title:t,description:i,errorText:s,helpText:n,learnMoreLink:r&&{...r,onClick:async function(e){A.clickLearnMore(y?.label,y?.value),await(r?.onClick?.(e))}},dismissButton:g&&{...g,onClick:async function(t){await(g?.onClick?.(t)),A.dismiss(y?.label,y?.value),b(e,{...g?.dismissOptions})}},ctaButton:u&&{...u,onClick:async function(t){A.confirm(y?.label,y?.value),await(u?.onClick?.(t)),u?.dismissOnClick&&b(e,{...u?.dismissOptions})}},svg:m,footer:v,...E})})})})})]})}SetupCTA.propTypes={notificationID:r().string,title:r().string,description:r().oneOfType([r().string,r().node]),errorText:r().string,helpText:r().string,learnMoreLink:r().shape(m.A.propTypes),dismissButton:r().shape(u.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,gaTrackingEventArgs:r().shape({category:r().string,label:r().string,value:r().number}),waitingProgress:r().shape(l.ProgressBar.propTypes)}},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)(),d=t??`${c}_${e}`;return{view:(0,s.useCallback)((...e)=>(0,n.sx)(d,i,...e),[d,i]),confirm:(0,s.useCallback)((...e)=>(0,n.sx)(d,r,...e),[d,r]),dismiss:(0,s.useCallback)((...e)=>(0,n.sx)(d,a,...e),[d,a]),clickLearnMore:(0,s.useCallback)((...e)=>(0,n.sx)(d,l,...e),[d,l])}}},17884(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(50539),l=i(97345),c=i(4169),d=i(4124),g=i(10740),u=i(63696),m=i(20762),p=i(38021),h=i.n(p),f=i(82871),_=i(6730),v=i(12317),y=i(19826),k=i(83880),E=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,E.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;h()(`\`${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)(v.A,{description:(0,A.jsxs)(u.Fragment,{children:[(0,A.jsx)(k.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=y.Ay,WidgetErrorHandler.propTypes={children:r().node.isRequired};const b=WidgetErrorHandler;var x=i(7972),S=i(96177),M=i(97513),I=i(37133),w=i(24355),j=i(11883),C=i(33052),N=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:d}=(0,a.useDispatch)(l.oR);return(0,u.useEffect)(()=>{void 0!==o&&void 0!==n&&i&&!o&&d([{slug:s,expiresInSeconds:4*E.Du}])},[i,s,o,n,d]),!!r&&(0,A.jsx)(N.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 T=i(33494);function WidgetCellWrapper({gridColumnWidth:e,children:t}){return 0===e?(0,A.jsx)("div",{className:T.Y2,children:t}):e<6?(0,A.jsx)(g.fh,{lgSize:e,mdSize:4,smSize:2,children:t}):e<8?(0,A.jsx)(g.fh,{lgSize:e,mdSize:8,children:t}):(0,A.jsx)(g.fh,{size:e,children:t})}WidgetCellWrapper.propTypes={gridColumnWidth:r().number.isRequired,children:r().element.isRequired};const D=WidgetCellWrapper;var R=i(92449),O=i(17243),L=i(88273),B=i(78422),z=i(79266);function WidgetRenderer({slug:e,OverrideComponent:t}){const i=(0,a.useSelect)(t=>t(c.aO).getWidget(e)),s=(0,M.dv)(),o=(0,S.c1)(e),{Widget:n,WidgetNull:r}=o,l=(0,a.useSelect)(e=>e(L.i).getRecoverableModules()),g=(0,d.A)(),m=(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===m||i?.hideOnBreakpoints?.includes(s))return(0,A.jsx)(r,{});const{Component:h,wrapWidget:f}=i;let _=(0,A.jsx)(h,{...o});return g&&m?.length&&(_=(0,A.jsx)(z.A,{widgetSlug:e,moduleSlugs:m})),t?_=(0,A.jsxs)(u.Fragment,{children:[(0,A.jsx)(B.A,{widgetSlug:"overridden",children:(0,A.jsx)(t,{})}),(0,A.jsx)("div",{className:T.Y2,children:_})]}):f&&(_=(0,A.jsx)(n,{children:_})),p?(0,A.jsx)("div",{className:T.Y2,children:_}):_}WidgetRenderer.propTypes={slug:r().string.isRequired,OverrideComponent:r().elementType};const P=WidgetRenderer;function F(e){const t={[M.Qb]:48,[M.Fo]:48,[M.Lg]:32,[M.mp]:32}[e];return`${-Math.abs((0,j.Eq)(e)+t)}px ${-t}px ${-t}px ${-t}px`}function WidgetAreaRenderer({slug:e,contextID:t}){const i=(0,d.A)(),s=(0,a.useSelect)(e=>i?e(l.oR).getViewableModules():null),n=(0,w.SO)(),r=(0,M.dv)(),p=(0,u.useRef)(),h=(0,I.A)(p,{rootMargin:F(r),threshold:0}),f=(0,a.useSelect)(t=>t(c.aO).getWidgetArea(e)),{Icon:_,title:v,style:y,subtitle:k,CTA:E,Footer:j}=f,C=(0,a.useSelect)(t=>t(c.aO).getWidgets(e,{modules:s||void 0})),N=(0,a.useSelect)(e=>e(c.aO).getWidgetStates()),T=(0,a.useSelect)(t=>t(c.aO).isWidgetAreaActive(e,{modules:s||void 0})),O=(0,a.useSelect)(e=>e(x.nX).getValue(x.Fc)),L=(0,a.useSelect)(e=>e(x.nX).getValue(x.Yg)),B=(O?O===t:!!h?.intersectionRatio)||L?.includes(e),[z,G]=(0,u.useState)({key:`WidgetAreaRenderer-${e}`,value:B});(0,u.useEffect)(()=>{G({key:`WidgetAreaRenderer-${e}`,value:B})},[e,B]);const U=E&&n<=782;if(void 0===s)return null;const{columnWidths:V,rowIndexes:W}=(0,S.X9)(C,N),{gridColumnWidths:H,overrideComponents:q}=(0,S.DO)(C,N,{columnWidths:V,rowIndexes:W}),Y=C.map((e,t)=>(0,A.jsx)(D,{gridColumnWidth:H[t],children:(0,A.jsx)(R.Kq,{value:e,children:(0,A.jsx)(b,{slug:e.slug,children:(0,A.jsx)(P,{OverrideComponent:q[t]?()=>{const{Component:e,metadata:i}=q[t];return(0,A.jsx)(e,{...i})}:void 0,slug:e.slug})})})},`${e.slug}-wrapper`));return(0,A.jsxs)(m.Ay,{value:z,children:[!!T&&(0,A.jsxs)(g.xA,{className:o()("googlesitekit-widget-area",`googlesitekit-widget-area--${e}`,`googlesitekit-widget-area--${y}`),ref:p,children:[(0,A.jsx)(g.fI,{children:(0,A.jsx)(g.fh,{className:"googlesitekit-widget-area-header",size:12,children:(0,A.jsx)(WidgetAreaHeader,{slug:e,Icon:_,title:v,subtitle:k,CTA:E})})}),(0,A.jsx)("div",{className:"googlesitekit-widget-area-widgets",children:(0,A.jsxs)(g.fI,{children:[y===c.qB.BOXES&&Y,y===c.qB.COMPOSITE&&(0,A.jsx)(g.fh,{size:12,children:(0,A.jsx)(g.xA,{children:(0,A.jsx)(g.fI,{children:Y})})})]})}),(0,A.jsxs)(g.fI,{children:[U&&(0,A.jsx)(g.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)(E,{})})}),j&&(0,A.jsx)(g.fh,{className:"googlesitekit-widget-area-footer",lgSize:12,mdSize:U?4:8,smSize:U?2:4,children:(0,A.jsx)(j,{})})]})]}),!T&&(0,A.jsx)(g.xA,{className:o()(S.Y2,"googlesitekit-widget-area",{[`googlesitekit-widget-area--${e}`]:!!e,[`googlesitekit-widget-area--${y}`]:!!y}),ref:p,children:Y})]})}function WidgetContextRenderer(e){const{id:t,slug:i,className:s,Header:n,Footer:r}=e,u=(0,d.A)(),m=(0,a.useSelect)(e=>u?e(l.oR).getViewableModules():null),p=(0,a.useSelect)(e=>i?e(c.aO).getWidgetAreas(i):null),h=(0,a.useSelect)(e=>!!i&&e(c.aO).isWidgetContextActive(i,{modules:m||void 0}));return void 0===m?null:(0,A.jsxs)("div",{id:t,className:o()("googlesitekit-widget-context",{"googlesitekit-hidden":!h},s),children:[n&&h&&(0,A.jsx)(g.xA,{children:(0,A.jsx)(g.fI,{children:(0,A.jsx)(g.fh,{size:12,children:(0,A.jsx)(n,{})})})}),p&&p.map(e=>(0,A.jsx)(WidgetAreaRenderer,{slug:e.slug,contextID:t},e.slug)),r&&h&&(0,A.jsx)(g.xA,{children:(0,A.jsx)(g.fI,{children:(0,A.jsx)(g.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 G=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:()=>g,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:()=>m,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:()=>u,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:()=>d,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",d="entityDashboardTrafficPrimary",g="entityDashboardContentPrimary",u="entityDashboardSpeedPrimary",m="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:d,AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:g,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:u,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:m}},59352(e,t,i){i.r(t),i.d(t,{CONTEXT_ENTITY_DASHBOARD_CONTENT:()=>d,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:()=>u,CONTEXT_ENTITY_DASHBOARD_SPEED:()=>g,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:()=>m});const s="mainDashboardKeyMetrics",o="mainDashboardSiteGoals",n="mainDashboardTraffic",r="mainDashboardContent",a="mainDashboardSpeed",l="mainDashboardMonetization",c="entityDashboardTraffic",d="entityDashboardContent",g="entityDashboardSpeed",u="entityDashboardMonetization",m={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:d,CONTEXT_ENTITY_DASHBOARD_SPEED:g,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:()=>y,V8:()=>A,WP:()=>E});var s=i(50532),o=i.n(s),n=i(63696),r=i(78422),a=i(79754),l=i(79266),c=i(62688),d=i.n(c),g=i(44192),u=i(62540);function WidgetReportError({widgetSlug:e,...t}){return(0,u.jsx)(g.A,{...t})}WidgetReportError.propTypes={widgetSlug:d().string.isRequired,...g.A.propTypes};var m=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,m.A,s),(0,u.jsx)(m.A,{moduleSlug:t,...i})}WidgetReportZero.propTypes={widgetSlug:d().string.isRequired,...m.A.propTypes};var h=i(17064),f=i(52684),_=i(50539),v=i(7972);function WPDashboardReportError({moduleSlug:e,error:t}){const i=(0,f.A)(WPDashboardReportError,"WPDashboardReportError"),{setValue:s}=(0,_.useDispatch)(v.nX),o=t.message,n=(0,_.useSelect)(t=>t(v.nX).getValue(`WPDashboardReportError-${e}-${o}`));return(0,h.A)(()=>{s(`WPDashboardReportError-${e}-${o}`,i)},()=>{s(`WPDashboardReportError-${e}-${o}`,void 0)}),n!==i?null:(0,u.jsx)(g.A,{moduleSlug:e,error:t})}WPDashboardReportError.propTypes={moduleSlug:d().string.isRequired,error:d().object.isRequired};const y=o()(e=>({widgetSlug:e,Widget:k(e)(r.A),WidgetRecoverableModules:k(e)(l.A),WidgetReportZero:k(e)(WidgetReportZero),WidgetReportError:k(e)(WidgetReportError),WidgetNull:k(e)(a.A)}));function k(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 E(e){const t=y(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:k(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:()=>d,c1:()=>g.c1,X9:()=>l,JS:()=>n,T5:()=>u,WP:()=>g.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 d({counter:e},{counter:t}){return e-t}function g({counter:e},{counter:t}){return t-e}function u({counter:e}){return e<=12}return e.forEach((m,p)=>{if(n(t[m.slug]))return i.push(0),void o.push(c);let h=a(l,m);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(h.sort(d)[0].counter,f).filter(u).length){h.some(u)&&(h=h.sort(g),h=h.filter(u))}const _=h[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 d(e,t,{columnWidths:i,rowIndexes:o}){const n=[],r=[...i];if(!e?.length)return{gridColumnWidths:r,overrideComponents:n};let a=null,l=-1,d=[];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,g)=>{if(n.push(null),a=t[s.slug],l=o[g],a)if(u=a,m=t[e[g+1]?.slug],p=l,h=o[g+1],p===h&&(0,c.isEqual)(u,m))d.push(i[g]),r[g]=0;else if(d.length>0){d.push(i[g]);const e=d.reduce((e,t)=>e+t,0);n[g]=a,r[g]=e,d=[]}var u,m,p,h}),{gridColumnWidths:r,overrideComponents:n}}var g=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),d=i(65054),g=i(62659);function u(e){const t=(0,g.A)(),i=(0,o.useSelect)(t=>t(c.i).getModule(e)),u=(0,o.useSelect)(e=>e(l.oR).hasCapability(l.HD)),{activateModule:m}=(0,o.useDispatch)(c.i),{navigateTo:p}=(0,o.useDispatch)(r.M),{setInternalServerError:h}=(0,o.useDispatch)(a.O4),f=(0,s.useCallback)(async()=>{const{error:i,response:s}=await m(e);i?h({id:`${e}-setup-error`,description:i.message}):(await(0,d.sx)(`${t}_widget-activation-cta`,"activate_module",e),await(0,n.SO)("module_setup",e,{ttl:300}),p(s.moduleReauthURL))},[m,e,p,h,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),d=(0,s.useCallback)(()=>c(l),[l,c]);return l&&t?d: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]}},58588(e,t,i){i.d(t,{A:()=>n});var s=i(63696),o=i(37467);function n(){const[e]=(0,o.A)("notification"),[t]=(0,o.A)("panel");return(0,s.useMemo)(()=>{const i={};return e&&(i.notification=e),t&&(i.panel=t),i},[e,t])}},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()),d=(0,o.A)(e=>e(a.nX).getValue("forceInView"));return(0,n.useEffect)(()=>{t.value&&!i&&l(!0)},[i,t,l]),(0,n.useEffect)(()=>{d&&l(!0)},[d]),(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:()=>d.fI,fh:()=>d.fh,lG:()=>a.a,xA:()=>d.xA});var s=i(3412),o=i(56655),n=i(30454),r=i(12786),a=i.n(r),l=i(91046),c=i(26569),d=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"},79506(e,t,i){i.d(t,{A:()=>AudienceErrorModal});var s=i(62688),o=i.n(s),n=i(13606),r=i(82871),a=i(50539),l=i(38432),c=i(94656),d=i(82246),g=i(29785),u=i(99893),m=i(13047),p=i(13137),h=i(62540);function AudienceErrorModal({apiErrors:e,hasOAuthError:t,inProgress:i,title:s,description:o,trackEventCategory:f,onCancel:_=()=>{},onRetry:v=()=>{}}){const y=Array.isArray(e)?e:[e],k=(0,a.useSelect)(e=>e(g.O4).getErrorTroubleshootingLinkURL({code:"analytics-4_insufficient_permissions"})),E=(0,a.useSelect)(e=>e(u.K9).getServiceEntityAccessURL()),A=(0,a.useSelect)(e=>e(g.O4).getErrorTroubleshootingLinkURL({code:"access_denied"}));if(!y.length&&!t)return null;const b=y.some(e=>(0,p.SG)(e));let x,S,M,I;return t?(x=(0,r.__)("Analytics update failed","google-site-kit"),S=(0,n.A)((0,r.__)("Setup was interrupted because you did not grant the necessary permissions. <HelpLink />","google-site-kit"),{HelpLink:(0,h.jsx)(l.A,{href:A,external:!0,hideExternalIndicator:!0,children:(0,r.__)("Get help","google-site-kit")})}),M=(0,r.__)("Retry","google-site-kit")):b?(x=(0,r.__)("Insufficient permissions","google-site-kit"),S=(0,n.A)((0,r.__)("Youâll need to contact your administrator. Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:(0,h.jsx)(l.A,{href:k,external:!0,hideExternalIndicator:!0,children:(0,r.__)("Get help","google-site-kit")})}),M=(0,r.__)("Request access","google-site-kit"),I=E):(x=s||(0,r.__)("Failed to set up visitor groups","google-site-kit"),S=o||(0,r.__)("Oops! Something went wrong. Retry enabling groups.","google-site-kit"),M=(0,r.__)("Retry","google-site-kit")),(0,h.jsx)(c.A,{children:(0,h.jsx)(d.A,{buttonLink:I,title:x,subtitle:S,handleConfirm:function(){let e;e=t?"auth_error_retry":b?"insufficient_permissions_error_request_access":"setup_error_retry",(0,m.sx)(f,e).finally(()=>{b||v()})},confirmButton:M,handleCancel:function(){let e;e=t?"auth_error_cancel":b?"insufficient_permissions_error_cancel":"setup_error_cancel",(0,m.sx)(f,e).finally(_)},onOpen:()=>{let e;e=t?"auth_error":b?"insufficient_permissions_error":"setup_error",(0,m.sx)(f,e)},onClose:_,inProgress:i,refocusQuerySelector:"#audience_segmentation_setup_cta-notification .googlesitekit-banner__cta",danger:!0,dialogActive:!0})})}AudienceErrorModal.propTypes={apiErrors:o().oneOfType([o().arrayOf(o().object),o().object,o().array]),hasOAuthError:o().bool,inProgress:o().bool,title:o().string,description:o().string,trackEventCategory:o().string,onCancel:o().func,onRetry:o().func}},92914(e,t,i){i.d(t,{W:()=>x,A:()=>IntroductoryOverlayNotification});var s,o,n=i(62688),r=i.n(n),a=i(82871),l=i(50539),c=i(33903),d=i(8732),g=i(97513),u=i(62659),m=i(11883),p=i(63696);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},h.apply(null,arguments)}const f=e=>p.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 296 163"},e),s||(s=p.createElement("g",{clipPath:"url(#audience-segmentation-introductory-graphic-desktop_svg__a)"},p.createElement("path",{fill:"#B8E6CA",d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0z"}),p.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-desktop_svg__b)"},p.createElement("rect",{width:153,height:174,x:-10,y:25,fill:"#fff",rx:11})),p.createElement("rect",{width:53.016,height:9.516,x:9.031,y:110.641,fill:"#EBEEF0",rx:4.758}),p.createElement("rect",{width:19.031,height:9.516,x:9.031,y:95.688,fill:"#EBEEF0",rx:4.758}),p.createElement("rect",{width:19.031,height:9.516,x:9.031,y:148.703,fill:"#EBEEF0",rx:4.758}),p.createElement("path",{fill:"#B8E6CA",d:"M94.672 108.602a8.836 8.836 0 0 1 8.836-8.836h13.594a8.836 8.836 0 0 1 0 17.672h-13.594a8.836 8.836 0 0 1-8.836-8.836"}),p.createElement("rect",{width:36,height:9,x:9,y:46,fill:"#EBEEF0",rx:4.5}),p.createElement("path",{fill:"#FFDED3",d:"M94.672 161.617a8.836 8.836 0 0 1 8.836-8.836h13.594a8.836 8.836 0 1 1 0 17.672h-13.594a8.836 8.836 0 0 1-8.836-8.836"}),p.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-desktop_svg__c)"},p.createElement("rect",{width:153,height:174,x:152,y:25,fill:"#fff",rx:11})),p.createElement("rect",{width:52.805,height:9.516,x:170.955,y:110.641,fill:"#EBEEF0",rx:4.758}),p.createElement("rect",{width:18.956,height:9.516,x:170.955,y:95.688,fill:"#EBEEF0",rx:4.758}),p.createElement("rect",{width:18.956,height:9.516,x:170.955,y:148.703,fill:"#EBEEF0",rx:4.758}),p.createElement("path",{fill:"#B8E6CA",d:"M256.256 108.602a8.836 8.836 0 0 1 8.836-8.836h13.47a8.836 8.836 0 0 1 8.835 8.836 8.836 8.836 0 0 1-8.835 8.836h-13.47a8.836 8.836 0 0 1-8.836-8.836"}),p.createElement("rect",{width:36,height:9,x:171,y:46,fill:"#EBEEF0",rx:4.5}),p.createElement("path",{stroke:"#EBEEF0",strokeWidth:2,d:"M295 73.5H152"}),p.createElement("path",{fill:"#FFDED3",d:"M256.256 161.617a8.836 8.836 0 0 1 8.836-8.836h13.47a8.836 8.836 0 0 1 8.835 8.836 8.836 8.836 0 0 1-8.835 8.836h-13.47a8.836 8.836 0 0 1-8.836-8.836"}),p.createElement("path",{stroke:"#EBEEF0",strokeWidth:2,d:"M143 73.5H0"}))),o||(o=p.createElement("defs",null,p.createElement("filter",{id:"audience-segmentation-introductory-graphic-desktop_svg__b",width:185,height:206,x:-26,y:13,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},p.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),p.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),p.createElement("feOffset",{dy:4}),p.createElement("feGaussianBlur",{stdDeviation:8}),p.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),p.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),p.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1395_20972"}),p.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1395_20972",result:"shape"})),p.createElement("filter",{id:"audience-segmentation-introductory-graphic-desktop_svg__c",width:185,height:206,x:136,y:13,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},p.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),p.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),p.createElement("feOffset",{dy:4}),p.createElement("feGaussianBlur",{stdDeviation:8}),p.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),p.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),p.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1395_20972"}),p.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1395_20972",result:"shape"})),p.createElement("clipPath",{id:"audience-segmentation-introductory-graphic-desktop_svg__a"},p.createElement("path",{fill:"#fff",d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0z"})))));var _,v,y,k;function E(){return E=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},E.apply(null,arguments)}const A=e=>p.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 343 123"},e),p.createElement("g",{clipPath:"url(#audience-segmentation-introductory-graphic-mobile_svg__a)"},_||(_=p.createElement("path",{fill:"#B8E6CA",d:"M41.064 27.146a64 64 0 0 1 6.51-5.868C69.418 4.126 87.464 4.153 112.45 7.283c16.891 2.116 26.759 10.167 49.788 8.9s28.929-7.127 57.117-5.25c22.315 1.487 32.324 5.897 52.163 16.213 18.36 9.549 35.031 26.324 43.408 48.509 14.361 38.026-11.243 106.466-45.58 109.693-24.881 2.339-45.414-25.243-70.527-18.855-15.47 3.936-24.646 20.444-36.581 31.339-13.925 12.711-43.922 11.912-60.227 5.129-15.538-6.464-30.653-19.276-35.728-38.145-3.863-14.369-4.916-31.498-15.733-44.622-13.09-15.883-21.087-22.968-25.581-44.54-3.903-18.734 4.494-36.505 16.095-48.508"})),p.createElement("mask",{id:"audience-segmentation-introductory-graphic-mobile_svg__b",width:295,height:203,x:24,y:5,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},v||(v=p.createElement("path",{fill:"#B8E6CA",d:"M41.064 27.146a64 64 0 0 1 6.51-5.868C69.418 4.126 87.464 4.153 112.45 7.283c16.891 2.116 26.759 10.167 49.788 8.9s28.929-7.127 57.117-5.25c22.315 1.487 32.324 5.897 52.163 16.213 18.36 9.549 35.031 26.324 43.408 48.509 14.361 38.026-11.243 106.466-45.58 109.693-24.881 2.339-45.414-25.243-70.527-18.855-15.47 3.936-24.646 20.444-36.581 31.339-13.925 12.711-43.922 11.912-60.227 5.129-15.538-6.464-30.653-19.276-35.728-38.145-3.863-14.369-4.916-31.498-15.733-44.622-13.09-15.883-21.087-22.968-25.581-44.54-3.903-18.734 4.494-36.505 16.095-48.508"}))),y||(y=p.createElement("g",{mask:"url(#audience-segmentation-introductory-graphic-mobile_svg__b)"},p.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-mobile_svg__c)"},p.createElement("rect",{width:100.401,height:136.493,x:71.449,y:21.433,fill:"#fff",rx:7.218})),p.createElement("rect",{width:34.79,height:6.244,x:83.941,y:77.631,fill:"#EBEEF0",rx:3.122}),p.createElement("rect",{width:12.489,height:6.244,x:83.941,y:67.819,fill:"#EBEEF0",rx:3.122}),p.createElement("rect",{width:12.489,height:6.244,x:83.941,y:99.983,fill:"#EBEEF0",rx:3.122}),p.createElement("path",{fill:"#B8E6CA",d:"M140.133 76.293a5.8 5.8 0 0 1 5.798-5.798h8.921a5.798 5.798 0 0 1 0 11.596h-8.921a5.8 5.8 0 0 1-5.798-5.798"}),p.createElement("rect",{width:23.624,height:5.906,x:83.926,y:35.213,fill:"#EBEEF0",rx:2.953}),p.createElement("path",{fill:"#FFDED3",d:"M140.133 108.458a5.8 5.8 0 0 1 5.798-5.798h8.921a5.798 5.798 0 0 1 0 11.597h-8.921a5.8 5.8 0 0 1-5.798-5.799"}),p.createElement("rect",{width:36.574,height:6.244,x:83.043,y:109.796,fill:"#EBEEF0",rx:3.122}),p.createElement("path",{stroke:"#EBEEF0",strokeWidth:1.312,d:"M171.848 53.259H72.103"}),p.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-mobile_svg__d)"},p.createElement("rect",{width:100.401,height:136.493,x:184.973,y:21.433,fill:"#fff",rx:7.218})),p.createElement("rect",{width:34.652,height:6.244,x:197.414,y:77.631,fill:"#EBEEF0",rx:3.122}),p.createElement("rect",{width:12.439,height:6.244,x:197.414,y:67.819,fill:"#EBEEF0",rx:3.122}),p.createElement("rect",{width:12.439,height:6.244,x:197.41,y:99.983,fill:"#EBEEF0",rx:3.122}),p.createElement("path",{fill:"#B8E6CA",d:"M253.391 76.293a5.8 5.8 0 0 1 5.798-5.798h8.839a5.798 5.798 0 0 1 0 11.596h-8.839a5.8 5.8 0 0 1-5.798-5.798"}),p.createElement("rect",{width:23.624,height:5.906,x:197.449,y:35.213,fill:"#EBEEF0",rx:2.953}),p.createElement("path",{stroke:"#EBEEF0",strokeWidth:1.312,d:"M278.82 53.259h-93.838"}),p.createElement("path",{fill:"#FFDED3",d:"M253.391 108.458a5.8 5.8 0 0 1 5.798-5.798h8.839a5.798 5.798 0 0 1 0 11.597h-8.839a5.8 5.8 0 0 1-5.798-5.799"}),p.createElement("rect",{width:36.429,height:6.244,x:196.523,y:109.796,fill:"#EBEEF0",rx:3.122})))),k||(k=p.createElement("defs",null,p.createElement("filter",{id:"audience-segmentation-introductory-graphic-mobile_svg__c",width:132.402,height:168.493,x:55.449,y:9.433,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},p.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),p.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),p.createElement("feOffset",{dy:4}),p.createElement("feGaussianBlur",{stdDeviation:8}),p.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),p.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),p.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2898_16651"}),p.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2898_16651",result:"shape"})),p.createElement("filter",{id:"audience-segmentation-introductory-graphic-mobile_svg__d",width:132.402,height:168.493,x:168.973,y:9.433,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},p.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),p.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),p.createElement("feOffset",{dy:4}),p.createElement("feGaussianBlur",{stdDeviation:8}),p.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),p.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),p.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2898_16651"}),p.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2898_16651",result:"shape"})),p.createElement("clipPath",{id:"audience-segmentation-introductory-graphic-mobile_svg__a"},p.createElement("path",{fill:"#fff",d:"M0 0h343v128H0z"})))));var b=i(62540);const x="audienceSegmentationIntroductoryOverlayNotification";function IntroductoryOverlayNotification({id:e,Notification:t}){const i=(0,u.A)(),s=(0,g.dv)(),{dismissNotification:o}=(0,l.useDispatch)(d.D);const n={category:`${i}_audiences-secondary-user-intro`};return(0,b.jsx)(t,{gaTrackingEventArgs:n,children:(0,b.jsx)(c.A,{notificationID:e,title:(0,a.__)("New! Visitor groups","google-site-kit"),description:(0,a.__)("You can now learn more about your site visitor groups by comparing different metrics.","google-site-kit"),GraphicDesktop:f,GraphicMobile:A,ctaButton:{label:(0,a.__)("Show me","google-site-kit"),onClick:function(t){t.preventDefault(),setTimeout(()=>{globalThis.scrollTo({top:(0,m.YJ)(".googlesitekit-widget-area--mainDashboardTrafficAudienceSegmentation",s),behavior:"smooth"})},0),o(e)}},dismissButton:{label:(0,a.__)("Got it","google-site-kit")},gaTrackingEventArgs:n})})}IntroductoryOverlayNotification.propTypes={id:r().string.isRequired,Notification:r().elementType.isRequired}},5343(e,t,i){i.d(t,{Z:()=>N,A:()=>T});var s=i(62688),o=i.n(s),n=i(39016),r=i(63696),a=i(82871),l=i(50539),c=i(17443),d=i(75649),g=i(29785),u=i(97345),m=i(72050),p=i(84730),h=i(8732),f=i(96177),_=i(68832),v=i(62659),y=i(79506),k=i(22942),E=i(99893),A=i(23403),b=i(13047),x=i(65385);var S=i(3749),M=i(92917),I=i(97513),w=i(11883),j=i(62540);const C="setup-success-notification-audiences";function SetupSuccessSubtleNotification({id:e,Notification:t}){const i=(0,I.dv)(),{dismissNotification:s}=(0,l.useDispatch)(h.D),o=(0,l.useSelect)(e=>e(u.oR).isAudienceSegmentationWidgetHidden());return(0,r.useEffect)(()=>{o&&s(C)},[s,o]),void 0===o?null:(0,j.jsx)(t,{children:(0,j.jsx)(M.A,{notificationID:e,type:S.L.SUCCESS,title:(0,a.__)("Success! Visitor groups added to your dashboard","google-site-kit"),description:(0,a.__)("Get to know how different types of visitors interact with your site, e.g. which pages they visit and for how long","google-site-kit"),ctaButton:{label:(0,a.__)("Show me","google-site-kit"),onClick:function(e){e.preventDefault(),s(C),setTimeout(()=>{globalThis.scrollTo({top:(0,w.YJ)(".googlesitekit-widget-area--mainDashboardTrafficAudienceSegmentation",i),behavior:"smooth"})},50)}},dismissButton:!0})})}SetupSuccessSubtleNotification.propTypes={id:o().string.isRequired,Notification:o().elementType.isRequired};const N="audience_segmentation_setup_cta-notification";function SetupCTABanner({id:e,Notification:t}){const i=(0,v.A)(),s=`${i}_audiences-setup-cta-dashboard`,{dismissNotification:o,registerNotification:n,pinNotification:f}=(0,l.useDispatch)(h.D),k={tooltipSlug:e,title:(0,a.__)("You can always enable groups in Settings later","google-site-kit"),content:(0,a.__)("The visitors group section will be added to your dashboard once you set it up.","google-site-kit"),dismissLabel:(0,a.__)("Got it","google-site-kit")},x=(0,c.i)(k),S=(0,l.useSelect)(t=>t(h.D).isNotificationDismissalFinal(e)),M=(0,d.A)({isDismissalFinal:S}),[I,w]=(0,_.A)(E.PW,"autoSubmit"),[N,T]=(0,r.useState)(!1),D=(0,r.useCallback)(()=>{n(C,{Component:SetupSuccessSubtleNotification,areaSlug:p.bI.DASHBOARD_TOP}),o(e)},[n,o,e]),R=(0,r.useCallback)(()=>{T(!0)},[T]),O=(0,r.useCallback)(()=>f(e,p.He.SETUP_CTAS),[e,f]),{apiErrors:L,failedAudiences:B,isSaving:z,onEnableGroups:P}=(0,A.A)({onSuccess:D,onError:R,onOAuthNavigation:O}),{clearPermissionScopeError:F}=(0,l.useDispatch)(u.oR),{setSetupErrorCode:G}=(0,l.useDispatch)(g.O4),U=(0,r.useCallback)(()=>{w(!1),F(),G(null),T(!1)},[F,G,w]),V=(0,l.useSelect)(e=>e(g.O4).getSetupErrorCode()),W=(0,l.useSelect)(e=>e(g.O4).getDocumentationLinkURL("visitor-groups")),H=I&&"access_denied"===V,q={gaTrackingEventArgs:{category:s}};return(0,j.jsxs)(r.Fragment,{children:[(0,j.jsx)(t,{...q,children:(0,j.jsx)(m.A,{notificationID:e,title:(0,a.__)("Learn how different types of visitors interact with your site","google-site-kit"),description:(0,a.__)('Understand what brings new visitors to your site and keeps them coming back. Site Kit can now group your site visitors into relevant segments like "new" and "returning". To set up these new groups, Site Kit needs to update your Google Analytics property.',"google-site-kit"),learnMoreLink:{href:W},ctaButton:{label:z?(0,a.__)("Enabling groups","google-site-kit"):(0,a.__)("Enable groups","google-site-kit"),onClick:P,disabled:z,inProgress:z},dismissButton:{label:M,onClick:x,disabled:z,dismissOptions:{expiresInSeconds:S?0:2*b.Du}},svg:{desktop:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDk2IiBoZWlnaHQ9IjI1MyIgdmlld0JveD0iMCAwIDQ5NiAyNTMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xNDYxXzExMzIzKSI+CjxwYXRoIGQ9Ik0zOS4wMzAzIDYwLjcwNjRDNDIuMTc1IDU3LjQ2NCA0NS40OTIxIDU0LjQ3NjMgNDguOTYwMSA1MS43NjNDODIuMjgxMiAyNS42MjUgMTA5LjgxMSAyNS42NjcgMTQ3LjkyNCAzMC40Mzc1QzE3My42OSAzMy42NjE1IDE4OC43NDMgNDUuOTI5NCAyMjMuODcxIDQ0QzI1OSA0Mi4wNzA2IDI2OCAzMy4xMzkxIDMxMSAzNS45OTk5QzM0NS4wMzggMzguMjY0NiAzNjAuMzA4IDQ0Ljk4NDYgMzkwLjU3IDYwLjcwNjRDNDE4LjU3NyA3NS4yNTY4IDQ0NC4wMDcgMTAwLjgyIDQ1Ni43ODYgMTM0LjYyOEM0NzguNjkyIDE5Mi41NzYgNDM5LjYzNCAyOTYuODcxIDM4Ny4yNTYgMzAxLjc4OEMzNDkuMzAzIDMwNS4zNTMgMzE3Ljk4MSAyNjMuMzIgMjc5LjY3MyAyNzMuMDU1QzI1Ni4wNzQgMjc5LjA1MyAyNDIuMDc4IDMwNC4yMSAyMjMuODcxIDMyMC44MTJDMjAyLjYzIDM0MC4xODMgMTU2Ljg3MiAzMzguOTY1IDEzMiAzMjguNjI4QzEwOC4yOTggMzE4Ljc3NyA4NS4yNDEgMjk5LjI1NCA3Ny41IDI3MC41QzcxLjYwNjggMjQ4LjYwMyA3MCAyMjIuNSA1My41IDIwMi41QzMzLjUzMjQgMTc4LjI5NiAyMS4zMzI4IDE2Ny41IDE0LjQ3NzYgMTM0LjYyOEM4LjUyMzg3IDEwNi4wNzggMjEuMzMzNSA3OC45OTY3IDM5LjAzMDMgNjAuNzA2NFoiIGZpbGw9IiNCOEU2Q0EiLz4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAxXzE0NjFfMTEzMjMpIj4KPG1hc2sgaWQ9Im1hc2swXzE0NjFfMTEzMjMiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjEzIiB5PSIyNyIgd2lkdGg9IjQ1MCIgaGVpZ2h0PSIzMDkiPgo8cGF0aCBkPSJNMzkuMDMwMyA2MC43MDY0QzQyLjE3NSA1Ny40NjQgNDUuNDkyMSA1NC40NzYzIDQ4Ljk2MDEgNTEuNzYzQzgyLjI4MTIgMjUuNjI1IDEwOS44MTEgMjUuNjY3IDE0Ny45MjQgMzAuNDM3NUMxNzMuNjkgMzMuNjYxNSAxODguNzQzIDQ1LjkyOTQgMjIzLjg3MSA0NEMyNTkgNDIuMDcwNiAyNjggMzMuMTM5MSAzMTEgMzUuOTk5OUMzNDUuMDM4IDM4LjI2NDYgMzYwLjMwOCA0NC45ODQ2IDM5MC41NyA2MC43MDY0QzQxOC41NzcgNzUuMjU2OCA0NDQuMDA3IDEwMC44MiA0NTYuNzg2IDEzNC42MjhDNDc4LjY5MiAxOTIuNTc2IDQzOS42MzQgMjk2Ljg3MSAzODcuMjU2IDMwMS43ODhDMzQ5LjMwMyAzMDUuMzUzIDMxNy45ODEgMjYzLjMyIDI3OS42NzMgMjczLjA1NUMyNTYuMDc0IDI3OS4wNTMgMjQyLjA3OCAzMDQuMjEgMjIzLjg3MSAzMjAuODEyQzIwMi42MyAzNDAuMTgzIDE1Ni44NzIgMzM4Ljk2NSAxMzIgMzI4LjYyOEMxMDguMjk4IDMxOC43NzcgODUuMjQxIDI5OS4yNTQgNzcuNSAyNzAuNUM3MS42MDY4IDI0OC42MDMgNzAgMjIyLjUgNTMuNSAyMDIuNUMzMy41MzI0IDE3OC4yOTYgMjEuMzMyOCAxNjcuNSAxNC40Nzc2IDEzNC42MjhDOC41MjM4NyAxMDYuMDc4IDIxLjMzMzUgNzguOTk2NyAzOS4wMzAzIDYwLjcwNjRaIiBmaWxsPSIjQjhFNkNBIi8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF8xNDYxXzExMzIzKSI+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIwX2RfMTQ2MV8xMTMyMykiPgo8cmVjdCB4PSI4NSIgeT0iNTIiIHdpZHRoPSIxNTMiIGhlaWdodD0iMjA4IiByeD0iMTEiIGZpbGw9IndoaXRlIi8+CjwvZz4KPHJlY3QgeD0iMTA0LjAzMSIgeT0iMTM3LjY0MSIgd2lkdGg9IjUzLjAxNTYiIGhlaWdodD0iOS41MTU2MiIgcng9IjQuNzU3ODEiIGZpbGw9IiNFQkVFRjAiLz4KPHJlY3QgeD0iMTA0LjAzMSIgeT0iMTIyLjY4OCIgd2lkdGg9IjE5LjAzMTIiIGhlaWdodD0iOS41MTU2MiIgcng9IjQuNzU3ODEiIGZpbGw9IiNFQkVFRjAiLz4KPHJlY3QgeD0iMTA0LjAzMSIgeT0iMTcxLjcwMyIgd2lkdGg9IjE5LjAzMTIiIGhlaWdodD0iOS41MTU2MiIgcng9IjQuNzU3ODEiIGZpbGw9IiNFQkVFRjAiLz4KPHJlY3QgeD0iMTA0LjAzMSIgeT0iMjE4LjcwMyIgd2lkdGg9IjE5LjAzMTIiIGhlaWdodD0iOS41MTU2MiIgcng9IjQuNzU3ODEiIGZpbGw9IiNFQkVFRjAiLz4KPHBhdGggZD0iTTE4OS42NzIgMTM1LjYwMkMxODkuNjcyIDEzMC43MjIgMTkzLjYyOCAxMjYuNzY2IDE5OC41MDggMTI2Ljc2NkgyMTIuMTAyQzIxNi45ODIgMTI2Ljc2NiAyMjAuOTM4IDEzMC43MjIgMjIwLjkzOCAxMzUuNjAyQzIyMC45MzggMTQwLjQ4MiAyMTYuOTgyIDE0NC40MzggMjEyLjEwMiAxNDQuNDM4SDE5OC41MDhDMTkzLjYyOCAxNDQuNDM4IDE4OS42NzIgMTQwLjQ4MiAxODkuNjcyIDEzNS42MDJaIiBmaWxsPSIjQjhFNkNBIi8+CjxyZWN0IHg9IjEwNCIgeT0iNzMiIHdpZHRoPSIzNiIgaGVpZ2h0PSI5IiByeD0iNC41IiBmaWxsPSIjRUJFRUYwIi8+CjxwYXRoIGQ9Ik0xODkuNjcyIDE4NC42MTdDMTg5LjY3MiAxNzkuNzM3IDE5My42MjggMTc1Ljc4MSAxOTguNTA4IDE3NS43ODFIMjEyLjEwMkMyMTYuOTgyIDE3NS43ODEgMjIwLjkzOCAxNzkuNzM3IDIyMC45MzggMTg0LjYxN0MyMjAuOTM4IDE4OS40OTcgMjE2Ljk4MiAxOTMuNDUzIDIxMi4xMDIgMTkzLjQ1M0gxOTguNTA4QzE5My42MjggMTkzLjQ1MyAxODkuNjcyIDE4OS40OTcgMTg5LjY3MiAxODQuNjE3WiIgZmlsbD0iI0ZGREVEMyIvPgo8cGF0aCBkPSJNMTg5LjY3MiAyMzEuNjE3QzE4OS42NzIgMjI2LjczNyAxOTMuNjI4IDIyMi43ODEgMTk4LjUwOCAyMjIuNzgxSDIxMi4xMDJDMjE2Ljk4MiAyMjIuNzgxIDIyMC45MzggMjI2LjczNyAyMjAuOTM4IDIzMS42MTdDMjIwLjkzOCAyMzYuNDk3IDIxNi45ODIgMjQwLjQ1MyAyMTIuMTAyIDI0MC40NTNIMTk4LjUwOEMxOTMuNjI4IDI0MC40NTMgMTg5LjY3MiAyMzYuNDk3IDE4OS42NzIgMjMxLjYxN1oiIGZpbGw9IiNCOEU2Q0EiLz4KPHJlY3QgeD0iMTAyLjY3MiIgeT0iMTg2LjY1NiIgd2lkdGg9IjU1LjczNDQiIGhlaWdodD0iOS41MTU2MiIgcng9IjQuNzU3ODEiIGZpbGw9IiNFQkVFRjAiLz4KPHJlY3QgeD0iMTAyLjY3MiIgeT0iMjQzLjY1NiIgd2lkdGg9IjU1LjczNDQiIGhlaWdodD0iOS41MTU2MiIgcng9IjQuNzU3ODEiIGZpbGw9IiNFQkVFRjAiLz4KPHBhdGggZD0iTTIzOCAxMDAuNUw4NiAxMDAuNSIgc3Ryb2tlPSIjRUJFRUYwIiBzdHJva2Utd2lkdGg9IjIiLz4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjFfZF8xNDYxXzExMzIzKSI+CjxyZWN0IHg9IjI1OCIgeT0iNTIiIHdpZHRoPSIxNTMiIGhlaWdodD0iMjA4IiByeD0iMTEiIGZpbGw9IndoaXRlIi8+CjwvZz4KPHJlY3QgeD0iMjc2Ljk1NiIgeT0iMTM3LjY0MSIgd2lkdGg9IjUyLjgwNTMiIGhlaWdodD0iOS41MTU2MiIgcng9IjQuNzU3ODEiIGZpbGw9IiNFQkVFRjAiLz4KPHJlY3QgeD0iMjc2Ljk1NiIgeT0iMTIyLjY4OCIgd2lkdGg9IjE4Ljk1NTciIGhlaWdodD0iOS41MTU2MiIgcng9IjQuNzU3ODEiIGZpbGw9IiNFQkVFRjAiLz4KPHJlY3QgeD0iMjc2Ljk1NSIgeT0iMTcxLjcwMyIgd2lkdGg9IjE4Ljk1NTciIGhlaWdodD0iOS41MTU2MiIgcng9IjQuNzU3ODEiIGZpbGw9IiNFQkVFRjAiLz4KPHJlY3QgeD0iMjc2Ljk1NSIgeT0iMjE4LjcwMyIgd2lkdGg9IjE4Ljk1NTciIGhlaWdodD0iOS41MTU2MiIgcng9IjQuNzU3ODEiIGZpbGw9IiNFQkVFRjAiLz4KPHBhdGggZD0iTTM2Mi4yNTcgMTM1LjYwMkMzNjIuMjU3IDEzMC43MjIgMzY2LjIxMyAxMjYuNzY2IDM3MS4wOTMgMTI2Ljc2NkgzODQuNTYyQzM4OS40NDIgMTI2Ljc2NiAzOTMuMzk4IDEzMC43MjIgMzkzLjM5OCAxMzUuNjAyQzM5My4zOTggMTQwLjQ4MiAzODkuNDQyIDE0NC40MzggMzg0LjU2MiAxNDQuNDM4SDM3MS4wOTNDMzY2LjIxMyAxNDQuNDM4IDM2Mi4yNTcgMTQwLjQ4MiAzNjIuMjU3IDEzNS42MDJaIiBmaWxsPSIjQjhFNkNBIi8+CjxyZWN0IHg9IjI3NyIgeT0iNzMiIHdpZHRoPSIzNiIgaGVpZ2h0PSI5IiByeD0iNC41IiBmaWxsPSIjRUJFRUYwIi8+CjxwYXRoIGQ9Ik00MDEuMDAxIDEwMC41TDI1OC4wMDEgMTAwLjUiIHN0cm9rZT0iI0VCRUVGMCIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxwYXRoIGQ9Ik0zNjIuMjU2IDE4NC42MTdDMzYyLjI1NiAxNzkuNzM3IDM2Ni4yMTIgMTc1Ljc4MSAzNzEuMDkyIDE3NS43ODFIMzg0LjU2MkMzODkuNDQxIDE3NS43ODEgMzkzLjM5NyAxNzkuNzM3IDM5My4zOTcgMTg0LjYxN0MzOTMuMzk3IDE4OS40OTcgMzg5LjQ0MSAxOTMuNDUzIDM4NC41NjIgMTkzLjQ1M0gzNzEuMDkyQzM2Ni4yMTIgMTkzLjQ1MyAzNjIuMjU2IDE4OS40OTcgMzYyLjI1NiAxODQuNjE3WiIgZmlsbD0iI0ZGREVEMyIvPgo8cGF0aCBkPSJNMzYyLjI1NiAyMzEuNjE3QzM2Mi4yNTYgMjI2LjczNyAzNjYuMjEyIDIyMi43ODEgMzcxLjA5MiAyMjIuNzgxSDM4NC41NjJDMzg5LjQ0MSAyMjIuNzgxIDM5My4zOTcgMjI2LjczNyAzOTMuMzk3IDIzMS42MTdDMzkzLjM5NyAyMzYuNDk3IDM4OS40NDEgMjQwLjQ1MyAzODQuNTYyIDI0MC40NTNIMzcxLjA5MkMzNjYuMjEyIDI0MC40NTMgMzYyLjI1NiAyMzYuNDk3IDM2Mi4yNTYgMjMxLjYxN1oiIGZpbGw9IiNGRkRFRDMiLz4KPHJlY3QgeD0iMjc1LjYwMiIgeT0iMTg2LjY1NiIgd2lkdGg9IjU1LjUxMzMiIGhlaWdodD0iOS41MTU2MiIgcng9IjQuNzU3ODEiIGZpbGw9IiNFQkVFRjAiLz4KPHJlY3QgeD0iMjc1LjYwMiIgeT0iMjQzLjY1NiIgd2lkdGg9IjU1LjUxMzMiIGhlaWdodD0iOS41MTU2MiIgcng9IjQuNzU3ODEiIGZpbGw9IiNFQkVFRjAiLz4KPC9nPgo8L2c+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8xNDYxXzExMzIzIiB4PSI2OSIgeT0iNDAiIHdpZHRoPSIxODUiIGhlaWdodD0iMjQwIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHk9IjQiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iOCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMTUgMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9ImVmZmVjdDFfZHJvcFNoYWRvd18xNDYxXzExMzIzIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93XzE0NjFfMTEzMjMiIHJlc3VsdD0ic2hhcGUiLz4KPC9maWx0ZXI+CjxmaWx0ZXIgaWQ9ImZpbHRlcjFfZF8xNDYxXzExMzIzIiB4PSIyNDIiIHk9IjQwIiB3aWR0aD0iMTg1IiBoZWlnaHQ9IjI0MCIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgo8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgo8ZmVDb2xvck1hdHJpeCBpbj0iU291cmNlQWxwaGEiIHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIgcmVzdWx0PSJoYXJkQWxwaGEiLz4KPGZlT2Zmc2V0IGR5PSI0Ii8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjgiLz4KPGZlQ29tcG9zaXRlIGluMj0iaGFyZEFscGhhIiBvcGVyYXRvcj0ib3V0Ii8+CjxmZUNvbG9yTWF0cml4IHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjE1IDAiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfMTQ2MV8xMTMyMyIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9ImVmZmVjdDFfZHJvcFNoYWRvd18xNDYxXzExMzIzIiByZXN1bHQ9InNoYXBlIi8+CjwvZmlsdGVyPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzE0NjFfMTEzMjMiPgo8cmVjdCB3aWR0aD0iNDk2IiBoZWlnaHQ9IjI1MyIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPGNsaXBQYXRoIGlkPSJjbGlwMV8xNDYxXzExMzIzIj4KPHJlY3Qgd2lkdGg9IjQ1MCIgaGVpZ2h0PSIyMjUiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMyAyOCkiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K",mobile:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDMzIiBoZWlnaHQ9IjE0NyIgdmlld0JveD0iMCAwIDQzMyAxNDciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xNTA1XzQ2OTUpIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAxXzE1MDVfNDY5NSkiPgo8cGF0aCBkPSJNNTIuMjUzOSAzNS43MDY1QzU1LjA2MzIgMzIuNDY0MSA1OC4wMjY1IDI5LjQ3NjQgNjEuMTI0NSAyNi43NjMxQzkwLjg5MTQgMC42MjUwOTIgMTE1LjQ4NCAwLjY2NzA1MyAxNDkuNTMyIDUuNDM3NTNDMTcyLjU1IDguNjYxNTMgMTg1Ljk5NyAyMC45Mjk0IDIxNy4zNzkgMTlDMjc0LjIwMSAxNS41MDY1IDMxNi41MTYgMS40Nzc4NyAzNjkgMzJDMzk0LjAyIDQ2LjU1MDQgNDE0LjAzMyA3NS44MjA0IDQyNS40NDkgMTA5LjYyOEM0NDUuMDE4IDE2Ny41NzYgNDEwLjEyNyAyNzEuODcxIDM2My4zMzYgMjc2Ljc4OEMzMjkuNDMxIDI4MC4zNTMgMzAxLjQ0OSAyMzguMzIgMjY3LjIyOCAyNDguMDU1QzI0Ni4xNDcgMjU0LjA1MyAyMzMuNjQzIDI3OS4yMSAyMTcuMzc5IDI5NS44MTJDMTk4LjQwMyAzMTUuMTgzIDE1Ny41MjYgMzEzLjk2NSAxMzUuMzA3IDMwMy42MjhDMTE0LjEzMyAyOTMuNzc3IDkzLjUzNTQgMjc0LjI1NCA4Ni42MjAyIDI0NS41QzgxLjM1NTYgMjIzLjYwMyA3OS45MjAyIDE5Ny41IDY1LjE4MDIgMTc3LjVDNDcuMzQyNCAxNTMuMjk2IDM2LjQ0NDIgMTQyLjUgMzAuMzIwMiAxMDkuNjI4QzI1LjAwMTUgODEuMDc4NCAzNi40NDQ4IDUzLjk5NjggNTIuMjUzOSAzNS43MDY1WiIgZmlsbD0iI0I4RTZDQSIvPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDJfMTUwNV80Njk1KSI+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIwX2RfMTUwNV80Njk1KSI+CjxyZWN0IHg9Ijk2LjQzOTkiIHk9IjIyLjgxMzUiIHdpZHRoPSIxMTMuNTYiIGhlaWdodD0iMTU0LjM4MiIgcng9IjguMTY0NDQiIGZpbGw9IndoaXRlIi8+CjwvZz4KPHJlY3QgeD0iMTEwLjU2NSIgeT0iODYuMzc3OSIgd2lkdGg9IjM5LjM0OTQiIGhlaWdodD0iNy4wNjI3MSIgcng9IjMuNTMxMzUiIGZpbGw9IiNFQkVFRjAiLz4KPHJlY3QgeD0iMTEwLjU2NSIgeT0iNzUuMjc5MyIgd2lkdGg9IjE0LjEyNTQiIGhlaWdodD0iNy4wNjI3MSIgcng9IjMuNTMxMzUiIGZpbGw9IiNFQkVFRjAiLz4KPHJlY3QgeD0iMTEwLjU2NSIgeT0iMTExLjY2IiB3aWR0aD0iMTQuMTI1NCIgaGVpZ2h0PSI3LjA2MjcxIiByeD0iMy41MzEzNSIgZmlsbD0iI0VCRUVGMCIvPgo8cmVjdCB4PSIxMTAuNTY1IiB5PSIxNDYuNTQ0IiB3aWR0aD0iMTQuMTI1NCIgaGVpZ2h0PSI3LjA2MjcxIiByeD0iMy41MzEzNSIgZmlsbD0iI0VCRUVGMCIvPgo8cGF0aCBkPSJNMTc0LjEzIDg0Ljg2NDRDMTc0LjEzIDgxLjI0MjQgMTc3LjA2NiA3OC4zMDYyIDE4MC42ODggNzguMzA2MkgxOTAuNzc4QzE5NC40IDc4LjMwNjIgMTk3LjMzNiA4MS4yNDI0IDE5Ny4zMzYgODQuODY0NEMxOTcuMzM2IDg4LjQ4NjQgMTk0LjQgOTEuNDIyNiAxOTAuNzc4IDkxLjQyMjZIMTgwLjY4OEMxNzcuMDY2IDkxLjQyMjYgMTc0LjEzIDg4LjQ4NjQgMTc0LjEzIDg0Ljg2NDRaIiBmaWxsPSIjQjhFNkNBIi8+CjxyZWN0IHg9IjExMC41NDIiIHk9IjM4LjQwMDEiIHdpZHRoPSIyNi43MiIgaGVpZ2h0PSI2LjY4IiByeD0iMy4zNCIgZmlsbD0iI0VCRUVGMCIvPgo8cGF0aCBkPSJNMTc0LjEzIDEyMS4yNDVDMTc0LjEzIDExNy42MjMgMTc3LjA2NiAxMTQuNjg3IDE4MC42ODggMTE0LjY4N0gxOTAuNzc4QzE5NC40IDExNC42ODcgMTk3LjMzNiAxMTcuNjIzIDE5Ny4zMzYgMTIxLjI0NUMxOTcuMzM2IDEyNC44NjcgMTk0LjQgMTI3LjgwMyAxOTAuNzc4IDEyNy44MDNIMTgwLjY4OEMxNzcuMDY2IDEyNy44MDMgMTc0LjEzIDEyNC44NjcgMTc0LjEzIDEyMS4yNDVaIiBmaWxsPSIjRkZERUQzIi8+CjxyZWN0IHg9IjEwOS41NTciIHk9IjEyMi43NTgiIHdpZHRoPSI0MS4zNjczIiBoZWlnaHQ9IjcuMDYyNzEiIHJ4PSIzLjUzMTM1IiBmaWxsPSIjRUJFRUYwIi8+CjxwYXRoIGQ9Ik0yMTAgNTguODExM0w5Ny4xODIyIDU4LjgxMTMiIHN0cm9rZT0iI0VCRUVGMCIgc3Ryb2tlLXdpZHRoPSIxLjQ4NDQ0Ii8+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIxX2RfMTUwNV80Njk1KSI+CjxyZWN0IHg9IjIyNC44NDQiIHk9IjIyLjgxMzUiIHdpZHRoPSIxMTMuNTYiIGhlaWdodD0iMTU0LjM4MiIgcng9IjguMTY0NDQiIGZpbGw9IndoaXRlIi8+CjwvZz4KPHJlY3QgeD0iMjM4LjkxNCIgeT0iODYuMzc3OSIgd2lkdGg9IjM5LjE5MzMiIGhlaWdodD0iNy4wNjI3MSIgcng9IjMuNTMxMzUiIGZpbGw9IiNFQkVFRjAiLz4KPHJlY3QgeD0iMjM4LjkxNCIgeT0iNzUuMjc5MyIgd2lkdGg9IjE0LjA2OTQiIGhlaWdodD0iNy4wNjI3MSIgcng9IjMuNTMxMzUiIGZpbGw9IiNFQkVFRjAiLz4KPHJlY3QgeD0iMjM4LjkxMyIgeT0iMTExLjY2IiB3aWR0aD0iMTQuMDY5NCIgaGVpZ2h0PSI3LjA2MjcxIiByeD0iMy41MzEzNSIgZmlsbD0iI0VCRUVGMCIvPgo8cmVjdCB4PSIyMzguOTEzIiB5PSIxNDYuNTQ0IiB3aWR0aD0iMTQuMDY5NCIgaGVpZ2h0PSI3LjA2MjcxIiByeD0iMy41MzEzNSIgZmlsbD0iI0VCRUVGMCIvPgo8cGF0aCBkPSJNMzAyLjIyNiA4NC44NjQ0QzMwMi4yMjYgODEuMjQyNCAzMDUuMTYyIDc4LjMwNjIgMzA4Ljc4NCA3OC4zMDYySDMxOC43ODJDMzIyLjQwNCA3OC4zMDYyIDMyNS4zNCA4MS4yNDI0IDMyNS4zNCA4NC44NjQ0QzMyNS4zNCA4OC40ODY0IDMyMi40MDQgOTEuNDIyNiAzMTguNzgyIDkxLjQyMjZIMzA4Ljc4NEMzMDUuMTYyIDkxLjQyMjYgMzAyLjIyNiA4OC40ODY0IDMwMi4yMjYgODQuODY0NFoiIGZpbGw9IiNCOEU2Q0EiLz4KPHJlY3QgeD0iMjM4Ljk0NyIgeT0iMzguNDAwMSIgd2lkdGg9IjI2LjcyIiBoZWlnaHQ9IjYuNjgiIHJ4PSIzLjM0IiBmaWxsPSIjRUJFRUYwIi8+CjxwYXRoIGQ9Ik0zMzAuOTgzIDU4LjgxMTNMMjI0Ljg0NSA1OC44MTEzIiBzdHJva2U9IiNFQkVFRjAiIHN0cm9rZS13aWR0aD0iMS40ODQ0NCIvPgo8cGF0aCBkPSJNMzAyLjIyNiAxMjEuMjQ1QzMwMi4yMjYgMTE3LjYyMyAzMDUuMTYyIDExNC42ODcgMzA4Ljc4NCAxMTQuNjg3SDMxOC43ODFDMzIyLjQwMyAxMTQuNjg3IDMyNS4zNCAxMTcuNjIzIDMyNS4zNCAxMjEuMjQ1QzMyNS4zNCAxMjQuODY3IDMyMi40MDMgMTI3LjgwMyAzMTguNzgxIDEyNy44MDNIMzA4Ljc4NEMzMDUuMTYyIDEyNy44MDMgMzAyLjIyNiAxMjQuODY3IDMwMi4yMjYgMTIxLjI0NVoiIGZpbGw9IiNGRkRFRDMiLz4KPHJlY3QgeD0iMjM3LjkwOSIgeT0iMTIyLjc1OCIgd2lkdGg9IjQxLjIwMzIiIGhlaWdodD0iNy4wNjI3MSIgcng9IjMuNTMxMzUiIGZpbGw9IiNFQkVFRjAiLz4KPC9nPgo8L2c+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8xNTA1XzQ2OTUiIHg9Ijg0LjU2NDQiIHk9IjEzLjkwNjgiIHdpZHRoPSIxMzcuMzExIiBoZWlnaHQ9IjE3OC4xMzMiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi45Njg4OSIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI1LjkzNzc4Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzE1MDVfNDY5NSIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9ImVmZmVjdDFfZHJvcFNoYWRvd18xNTA1XzQ2OTUiIHJlc3VsdD0ic2hhcGUiLz4KPC9maWx0ZXI+CjxmaWx0ZXIgaWQ9ImZpbHRlcjFfZF8xNTA1XzQ2OTUiIHg9IjIxMi45NjkiIHk9IjEzLjkwNjgiIHdpZHRoPSIxMzcuMzExIiBoZWlnaHQ9IjE3OC4xMzMiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi45Njg4OSIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI1LjkzNzc4Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzE1MDVfNDY5NSIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9ImVmZmVjdDFfZHJvcFNoYWRvd18xNTA1XzQ2OTUiIHJlc3VsdD0ic2hhcGUiLz4KPC9maWx0ZXI+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMTUwNV80Njk1Ij4KPHJlY3Qgd2lkdGg9IjQzMyIgaGVpZ2h0PSIxNDciIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjxjbGlwUGF0aCBpZD0iY2xpcDFfMTUwNV80Njk1Ij4KPHJlY3Qgd2lkdGg9IjU1MyIgaGVpZ2h0PSIyNTMiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNjApIi8+CjwvY2xpcFBhdGg+CjxjbGlwUGF0aCBpZD0iY2xpcDJfMTUwNV80Njk1Ij4KPHJlY3Qgd2lkdGg9IjMzNCIgaGVpZ2h0PSIxNjciIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCA1KSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",verticalPosition:"bottom"},gaTrackingEventArgs:{category:s}})}),(N||H)&&(0,j.jsx)(y.A,{hasOAuthError:H,apiErrors:L.length?L:B,onRetry:P,inProgress:z,onCancel:H?U:()=>T(!1),trackEventCategory:`${i}_audiences-setup`})]})}SetupCTABanner.propTypes={id:o().string,Notification:o().elementType};const T=(0,n.A)((0,x.A)({moduleName:k.L1}),(0,f.WP)("audienceSegmentationSetupCTA"))(SetupCTABanner)},52053(e,t,i){i.d(t,{Fs:()=>AudienceAreaFooter,Oc:()=>s.A,Rl:()=>AudienceSelectionPanel,c9:()=>$i,x_:()=>ChangeGroupsLink,H8:()=>ConnectAnalyticsCTAWidget,xE:()=>Rs,vw:()=>PrimaryUserSetupWidget,VR:()=>SecondaryUserSetupWidget});var s=i(79506),o=i(17243),n=i(62688),r=i.n(n),a=i(63696),l=i(50539),c=i(7972),d=i(62659),g=i(82871);const u="audience-segmentation-info-notice-ui",m="audience-segmentation-info-notice",p=[{slug:"new-visitors",content:(0,g.__)("The higher the portion of new visitors you have, the more your audience is growing. Looking at what content brings them to your site may give you insights on how to reach even more people.","google-site-kit")},{slug:"compare-metrics",content:(0,g.__)("Select up to three visitor groups to display on the dashboard and easily compare metrics between them.","google-site-kit")},{slug:"custom-audiences",content:(0,g.__)("Configure your own custom audiences in Analytics to gain deeper insights into visitor behavior, for example consider creating an âExisting customersâ or âSubscribersâ segment, depending on what goals you have for your site.","google-site-kit")},{slug:"purchasers",content:(0,g.__)("Select the Purchasers visitor group to gain insights into which visitors bring the most revenue to your site.","google-site-kit")},{slug:"returning-visitors",content:(0,g.__)("The more returning visitors your site has, the stronger and more loyal an audience youâre building. Check which content brings people back to your site - it might help you create a strategy to build a community.","google-site-kit")},{slug:"compare-new-returning",content:(0,g.__)("Compare the ratio of ânewâ to âreturningâ visitors â this can give you insights on whether you have more people stopping by as a one-off, or more loyal visitors.","google-site-kit")},{slug:"compare-cities",content:(0,g.__)("Check the cities which bring you more new vs more returning visitors â there might be new audiences you could engage with in locations you hadnât thought about.","google-site-kit")}];var h,f,_,v,y,k,E,A,b,x,S,M,I=i(22942),w=i(13047),j=i(13137),C=i(65385),N=i(30289),T=i(33052),D=i(97513),R=i(10740);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=>a.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 233 117"},e),h||(h=a.createElement("path",{fill:"#F3F5F7",d:"M2.956 80.014a32.4 32.4 0 0 0 6.283 9.673c10.459 11.015 25.911 11.949 40.083 9.193A98.3 98.3 0 0 0 88.91 81.449c6.738-4.994 13.394-11.19 22.316-11.467 3.35-.103 6.814.82 9.345 2.998 5.259 4.497 5.165 12.186 9.269 17.516 5.458 7.088 13.308 9.283 21.87 10.101 24.191 2.309 53.006-5.265 69.646-23.694 14.857-16.452 16.64-42.63-1.343-57.629-8.216-6.852-19.483-9.992-30.117-8.392-8.127 1.223-16.378 4.942-24.791 5.977-9.908 1.22-16.033-2.943-24.05-7.79C127.086.641 108.62-2.597 92.807 2.292 77.671 6.972 66.777 19.747 52.048 25.36c-12.727 4.852-27.761 4.114-38.82 12.017C.143 46.727-3.146 65.603 2.956 80.014"})),a.createElement("path",{fill:"#161B18",d:"M118.945 116.194c32.642 0 59.104-1.654 59.104-3.694s-26.462-3.694-59.104-3.694c-32.643 0-59.105 1.654-59.105 3.694s26.462 3.694 59.105 3.694",opacity:.1,style:{mixBlendMode:"multiply"}}),f||(f=a.createElement("path",{fill:"#CBD0D3",d:"M118.945 116.194c32.642 0 59.104-1.654 59.104-3.694s-26.462-3.694-59.104-3.694c-32.643 0-59.105 1.654-59.105 3.694s26.462 3.694 59.105 3.694"})),_||(_=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.396,d:"M99.725 51.387c1.758 6.518 7.872 11.126 14.356 13.01 6.484 1.882 13.377 1.514 20.12 1.177 3.188-.158 6.449-.298 9.503.627s5.912 3.137 6.724 6.222c.466 1.773.121 3.686-.787 5.274"})),v||(v=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.4,d:"M87.114 62.487c-1.015 16.075-6.61 30.497-2.87 48.618h-4.26M91.929 111.105h-4.261l7.53-48.618"})),y||(y=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:1.396,d:"M73.527 57.419c-3.635 1.642-10.613 5.299-10.613 12.724"})),k||(k=a.createElement("path",{fill:"#CBD0D3",d:"m103.118 84.07-2.957.269-18.04 1.632-10.545.952-1-23.491-1.74-40.88 32.912-1.199.664 30.445.09 4.099.612 28.078z"})),E||(E=a.createElement("path",{fill:"#999F9B",d:"m100.163 84.339 1.697-.155 1.261-.114-1.371-62.719-1.891.087 1.017 59.457-29.439 2.786.103 2.34.04.9 10.545-.952 18.04-1.632z"})),A||(A=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:1.396,d:"M62.912 70.143c0 4.321 4.917 7.437 8.424 5.913"})),b||(b=a.createElement("path",{stroke:"#7B807D",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:3.607,d:"m159.169 21.79-22.985 89.068"})),x||(x=a.createElement("path",{fill:"#E77D5B",d:"m157.57 14.897-34.151 34.35a3.61 3.61 0 0 0 .016 5.1 3.6 3.6 0 0 0 1.62.929l46.822 12.4a3.606 3.606 0 0 0 4.404-4.435l-12.674-46.745a3.6 3.6 0 0 0-2.557-2.542 3.6 3.6 0 0 0-3.48.942"})),S||(S=a.createElement("path",{fill:"#962C0A",d:"m153.345 35.252 2.003-7.566 3.905 1.034-2.003 7.566-2.874 9.163-3.103-.822zm-2.709 18.123a2.77 2.77 0 0 1-1.715-1.274 2.77 2.77 0 0 1-.259-2.121q.296-1.116 1.265-1.68a2.77 2.77 0 0 1 2.121-.259q1.116.296 1.68 1.266t.268 2.085a2.77 2.77 0 0 1-1.275 1.715q-.97.564-2.085.268"})),M||(M=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.396,d:"M149.639 77.697a6.85 6.85 0 0 1-3.747 3.098c-3.335 1.14-7.399-.673-8.778-3.916"})));var B=i(49383),z=i(1641),P=i(83880),F=i(13606),G=i(38432),U=i(62540);function GetHelpLink({linkURL:e}){return(0,F.A)((0,g.__)("Contact your administrator. Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:(0,U.jsx)(G.A,{href:e,external:!0,hideExternalIndicator:!0,children:(0,g.__)("Get help","google-site-kit")})})}function ErrorWidgetDetails({failedAudiences:e,showRetryButton:t,onRetry:i,onRequestAccess:s,errors:o,hasInsufficientPermissionsError:n}){return e?.length?(0,U.jsxs)("div",{children:[(0,U.jsx)(P.A,{children:(0,g.__)("Failed to create the following audiences:","google-site-kit")}),(0,U.jsx)("ul",{className:"googlesitekit-widget-audience-segmentation-error__failed-audiences",children:e.map(e=>(0,U.jsx)("li",{children:e},e))}),(0,U.jsx)(B.Button,{onClick:i,danger:!0,children:(0,g.__)("Retry","google-site-kit")})]}):t&&i?(0,U.jsx)(B.Button,{onClick:i,danger:!0,children:(0,g.__)("Retry","google-site-kit")}):(0,U.jsx)(z.A,{moduleSlug:"analytics-4",error:o,GetHelpLink:n?GetHelpLink:void 0,hideGetHelpLink:!n,buttonVariant:"danger",getHelpClassName:"googlesitekit-error-retry-text",onRetry:i,onRequestAccess:s})}GetHelpLink.propTypes={linkURL:r().string.isRequired},ErrorWidgetDetails.propTypes={errors:r().arrayOf(r().object).isRequired,onRetry:r().func.isRequired,onRequestAccess:r().func.isRequired,showRetryButton:r().bool,failedAudiences:r().arrayOf(r().string),hasInsufficientPermissionsError:r().bool};const V=(0,a.forwardRef)(({Widget:e,errors:t,onRetry:i,onRequestAccess:s,showRetryButton:o,failedAudiences:n},r)=>{const a=(0,D.dv)(),l=a===D.mp,c=a===D.Lg,d=t.some(j.SG);return(0,U.jsx)(e,{ref:r,className:"googlesitekit-audience-segmentation-error-widget",noPadding:!0,children:(0,U.jsx)(R.xA,{className:"googlesitekit-audience-segmentation-error__widget-primary-cell",collapsed:!0,children:(0,U.jsxs)(R.fI,{children:[(0,U.jsxs)(R.fh,{smSize:6,mdSize:8,lgSize:7,children:[(0,U.jsx)(T.A,{as:"h3",type:"title",size:"large",children:d?(0,g.__)("Insufficient permissions","google-site-kit"):(0,g.__)("Your visitor groups data loading failed","google-site-kit")}),(0,U.jsx)("div",{className:"googlesitekit-widget-audience-segmentation-error__actions",children:(0,U.jsx)(ErrorWidgetDetails,{failedAudiences:n,showRetryButton:o,onRetry:i,onRequestAccess:s,errors:t,hasInsufficientPermissionsError:d})})]}),!l&&!c&&(0,U.jsx)(R.fh,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",smSize:6,mdSize:3,lgSize:5,children:(0,U.jsx)(L,{width:"233px"})}),c&&(0,U.jsx)(R.fh,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",mdSize:8,children:(0,U.jsx)(L,{width:"233px"})}),l&&(0,U.jsx)(R.fh,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",smSize:8,children:(0,U.jsx)(L,{width:"233px"})})]})})})});V.propTypes={Widget:r().elementType.isRequired,errors:r().arrayOf(r().object).isRequired,onRetry:r().func.isRequired,onRequestAccess:r().func.isRequired,showRetryButton:r().bool,failedAudiences:r().arrayOf(r().string)};const W=V,H=(0,N.A)(W);function AudienceSegmentationErrorWidget({Widget:e,errors:t,onRetry:i,showRetryButton:s,failedAudiences:n}){const r=(0,d.A)(),{setValue:g}=(0,l.useDispatch)(c.nX),m=t?(0,o.castArray)(t):[],p=m.some(j.SG);return(0,a.useEffect)(()=>{g(u,!0)},[g]),(0,U.jsx)(H,{Widget:e,errors:m,onRetry:function(){(0,w.sx)(`${r}_audiences-all-tiles`,"data_loading_error_retry").finally(()=>{g(u,!1),i?.()})},failedAudiences:n,onRequestAccess:()=>{(0,w.sx)(`${r}_audiences-all-tiles`,"insufficient_permissions_error_request_access")},showRetryButton:s,onInView:()=>{const e=p?"insufficient_permissions_error":"data_loading_error";(0,w.sx)(`${r}_audiences-all-tiles`,e)}})}AudienceSegmentationErrorWidget.propTypes={Widget:r().elementType.isRequired,errors:r().oneOfType([r().object,r().arrayOf(r().object)]).isRequired,onRetry:r().func,showRetryButton:r().bool,failedAudiences:r().arrayOf(r().string)};const q=(0,C.A)({moduleName:I.L1})(AudienceSegmentationErrorWidget);i(92914),i(5343);var Y=i(97345),Z=i(79754),Q=i(99893),K=i(4452),X=i.n(K);const $=(0,a.forwardRef)(({className:e,children:t,Icon:i,SVGGraphic:s},o)=>(0,U.jsxs)("div",{ref:o,className:X()("googlesitekit-lean-cta-banner",e),children:[(0,U.jsxs)("div",{className:"googlesitekit-lean-cta-banner__body",children:[i&&(0,U.jsx)("div",{className:"googlesitekit-lean-cta-banner__body-icon",children:(0,U.jsx)(i,{width:"32",height:"32"})}),(0,U.jsx)("div",{className:"googlesitekit-lean-cta-banner__body-content",children:t})]}),s&&(0,U.jsx)("div",{className:"googlesitekit-lean-cta-banner__graphic",children:(0,U.jsx)(s,{})})]}));$.propTypes={className:r().string,children:r().node.isRequired,Icon:r().elementType,SVGGraphic:r().elementType};const J=$;var ee=i(70301),te=i(29785),ie=i(88273),se=i(4124);const oe="audience-segmentation-add-group-notice",ne="googlesitekit-audience-selection-panel-opened",re="audience-selection-form",ae="audience-selected",le="audience-selection-changed",ce="audience-selection-dismissed-items-error",de="audience-segmentation-creation-notice",ge="audience-segmentation-creation-success-notice",ue="audience-creation-edit-scope-notice",me="audience-creation-form";var pe,he,fe,_e,ve,ye,ke,Ee,Ae,be,xe,Se,Me,Ie,we,je,Ce,Ne,Te,De,Re,Oe,Le,Be,ze,Pe,Fe,Ge,Ue,Ve,We,He,qe,Ye,Ze,Qe,Ke,Xe,$e,Je,et,tt,it,st,ot,nt,rt,at,lt,ct,dt,gt,ut,mt,pt,ht,ft,_t,vt,yt,kt,Et,At,bt,xt,St,Mt,It,wt,jt;function Ct(){return Ct=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},Ct.apply(null,arguments)}const Nt=e=>a.createElement("svg",Ct({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 211 109"},e),pe||(pe=a.createElement("path",{fill:"#B8E6CA",d:"M2.675 72.31a29.3 29.3 0 0 0 5.678 8.74c9.451 9.955 23.416 10.799 36.223 8.308a88.8 88.8 0 0 0 35.776-15.752c6.09-4.513 12.104-10.113 20.167-10.363 3.027-.093 6.158.741 8.445 2.71 4.753 4.063 4.668 11.012 8.377 15.829 4.932 6.405 12.026 8.389 19.764 9.128 21.862 2.086 47.902-4.758 62.939-21.412 13.426-14.868 15.038-38.526-1.214-52.08-7.425-6.192-17.606-9.03-27.216-7.584-7.345 1.105-14.801 4.467-22.404 5.401-8.954 1.103-14.49-2.659-21.734-7.04C114.852.58 98.164-2.345 83.874 2.072 70.195 6.301 60.35 17.846 47.04 22.918c-11.502 4.385-25.089 3.717-35.082 10.86C.133 42.228-2.84 59.286 2.675 72.31"})),a.createElement("path",{fill:"#161B18",d:"M108.273 109c54.612 0 98.883-1.735 98.883-3.874s-44.271-3.875-98.883-3.875-98.882 1.735-98.882 3.875S53.66 109 108.273 109",opacity:.1,style:{mixBlendMode:"multiply"}}),he||(he=a.createElement("path",{fill:"#CBD0D3",d:"M108.273 109c54.612 0 98.883-1.735 98.883-3.874s-44.271-3.875-98.883-3.875-98.882 1.735-98.882 3.875S53.66 109 108.273 109"})),fe||(fe=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.472,d:"M134.765 53.225c-1.065 16.927-6.936 32.112-3.012 51.193h-4.468M139.814 104.418h-4.47l7.9-51.193"})),_e||(_e=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:1.468,d:"M120.504 36.651c-3.814 1.73-11.135 5.58-11.135 13.398M147.266 35.787c3.493 1.787 11.06 7.678 11.977 13.225"})),ve||(ve=a.createElement("path",{fill:"#77AD8C",d:"m151.555 75.952-3.102.282-18.926 1.719-11.063 1.002-1.049-24.735-1.825-43.046 34.528-1.262.697 32.058.094 4.316.642 29.565z"})),ye||(ye=a.createElement("path",{fill:"#5C9271",d:"m148.453 76.234 1.78-.162 1.323-.12-1.439-66.042-1.983.091 1.281 63.2-24.976 2.127.862-19.15-7.844-1.074.86 20.438.107 2.465.041.946 11.063-1.002 18.927-1.719z"})),ke||(ke=a.createElement("path",{fill:"#CBD0D3",d:"M135.891 70.752c.032.916-.392-20.197-.629-27.044-6.628-3.008-13.797-3.559-20.67-1.228l.628 27.043c6.874-2.33 14.043-1.779 20.671 1.23"})),Ee||(Ee=a.createElement("path",{fill:"#EBEEF0",d:"M135.926 70.752c.01.916-.547-20.194-.629-27.044 6.481-3.306 13.617-4.182 20.592-2.166l.629 27.043c-6.975-2.015-14.111-1.139-20.592 2.167"})),Ae||(Ae=a.createElement("path",{fill:"#CBD0D3",fillRule:"evenodd",d:"M133.233 60.796c-.083-3.907-.202-9.298-.333-14.96l.196-.005a8404 8404 0 0 1 .43 19.559l.023 1.18.004.262v.05l-.001.008a.18.18 0 0 1-.093.083.18.18 0 0 1-.1-.08l-.002-.007v-.007l-.001-.02h.001v-.025l-.004-.26-.023-1.18zm.126 6.063a.2.2 0 0 1 .093-.08.2.2 0 0 1 .097.073zm.194.01v-.001zM130.917 60.007c-.084-3.912-.203-9.29-.334-14.911l.197-.004a10935 10935 0 0 1 .432 19.528l.024 1.198.004.271.001.05v.008l-.004.02c-.054.062-.17.035-.189-.002l-.003-.015-.001-.005v-.053000000000000005l-.005-.27-.024-1.198c-.022-1.071-.055-2.66-.098-4.617m.129 6.12.193-.006-.001-.006c-.02-.037-.135-.063-.19-.002zM128.613 59.401c-.086-3.923-.206-9.285-.335-14.834l.197-.005a9890 9890 0 0 1 .459 20.704l.005.284.001.055v.008l-.001.006a.18.18 0 0 1-.094.087.2.2 0 0 1-.1-.082l-.001-.007-.001-.017h.001l-.001-.047-.005-.283-.025-1.221zm.131 6.199.195-.007a.2.2 0 0 0-.1-.081.2.2 0 0 0-.095.086zM126.303 58.977c-.087-3.938-.207-9.284-.334-14.744l.196-.005c.127 5.46.248 10.807.335 14.744l.102 4.688.032 1.545.001.061v.012l-.001.009c-.005.02-.109.084-.191.017l-.004-.02v-.008l-.001-.007h.001v-.001l-.001-.06-.006-.296-.026-1.248zm.136 6.292.195-.007-.004-.018c-.081-.066-.186-.003-.19.017zM124.002 58.73c-.088-3.958-.209-9.292-.334-14.653l.196-.004a14129 14129 0 0 1 .439 19.391l.028 1.28.006.312.002.068v.015l-.002.014c-.08.078-.19.014-.194-.004l-.001-.007v-.009000000000000001l.196-.006v-.005c-.005-.018-.114-.082-.194-.004l-.002.014v.001-.007l-.001-.066-.006-.312-.028-1.28zM121.709 58.698c-.09-3.97-.211-9.281-.333-14.54l.196-.005a15731 15731 0 0 1 .44 19.316l.029 1.306.006.327.002.074v.021a.2.2 0 0 1-.021.056.17.17 0 0 1-.175-.05v-.006l-.001-.004.197-.007-.001-.003a.16.16 0 0 0-.174-.05.2.2 0 0 0-.021.056v.003l-.001-.013-.001-.073-.007-.326-.028-1.307zM119.414 58.855c-.091-3.986-.212-9.28-.332-14.44l.196-.005c.12 5.16.242 10.454.333 14.44l.109 4.818.03 1.336.008.34.001.082.001.017v.006c0 .004-.098.096-.196.009l-.001-.007v-.002l.197-.006-.001-.006c-.098-.087-.196.005-.196.01v.001-.018000000000000002l-.002-.081-.007-.34-.03-1.336zM116.797 44.873l.196-.004.489 21.033h-.01l-.186.005z",clipRule:"evenodd"})),be||(be=a.createElement("path",{fill:"#B8BDB9",fillRule:"evenodd",d:"M133.317 67.22c-5.153-1.86-10.563-2.237-15.85-.939a.388.388 0 1 1-.188-.754c5.447-1.338 11.016-.948 16.306.963a.388.388 0 1 1-.268.73M133.267 64.222c-5.159-1.867-10.574-2.245-15.866-.946a.388.388 0 1 1-.189-.754c5.454-1.34 11.027-.947 16.323.97a.387.387 0 0 1 .234.498.39.39 0 0 1-.502.232M133.204 61.217c-5.162-1.867-10.576-2.245-15.866-.946a.393.393 0 0 1-.475-.284.39.39 0 0 1 .287-.47c5.45-1.339 11.023-.946 16.323.97a.39.39 0 0 1 .234.498.393.393 0 0 1-.503.232M133.134 58.212c-5.163-1.866-10.576-2.245-15.866-.946a.388.388 0 1 1-.189-.755c5.451-1.338 11.024-.945 16.323.97a.386.386 0 0 1 .234.499.39.39 0 0 1-.502.232M133.071 55.213c-5.163-1.872-10.584-2.252-15.881-.95a.388.388 0 1 1-.189-.754c5.459-1.342 11.038-.947 16.339.974a.39.39 0 0 1 .234.498.393.393 0 0 1-.503.232M133.001 52.208c-5.164-1.87-10.584-2.251-15.882-.95a.389.389 0 1 1-.188-.755c5.458-1.34 11.038-.945 16.339.975a.388.388 0 1 1-.269.73",clipRule:"evenodd"})),xe||(xe=a.createElement("path",{fill:"#B8BDB9",d:"M116.886 44.87c5.378-1.32 10.878-.934 16.11.963l.054 2.999c-5.227-1.891-10.721-2.276-16.094-.957z"})),Se||(Se=a.createElement("path",{fill:"#B8BDB9",fillRule:"evenodd",d:"m117.284 45.176.051 2.21c5.118-1.161 10.331-.806 15.312.893l-.039-2.17c-4.989-1.759-10.21-2.127-15.324-.934m-.494-.682c5.459-1.341 11.038-.947 16.339.975l.253.091.069 3.832-.536-.194c-5.159-1.867-10.574-2.245-15.866-.945l-.475.116-.089-3.8z",clipRule:"evenodd"})),Me||(Me=a.createElement("path",{fill:"#EBEEF0",fillRule:"evenodd",d:"M137.87 60.692a7073 7073 0 0 1-.362-14.961l.196-.005a8741 8741 0 0 0 .48 19.558l.04 1.44v.025h.001l.001.02-.001.003v.012a.2.2 0 0 1-.097.084.18.18 0 0 1-.097-.08l-.002-.008v-.003l-.002-.046-.008-.262-.032-1.18c-.028-1.06-.068-2.644-.117-4.597m.352 6.057a.2.2 0 0 0-.096-.076.2.2 0 0 0-.093.078zm-.193.018v.001zM140.148 59.798c-.098-3.912-.228-9.29-.359-14.91l.196-.005a10307 10307 0 0 0 .507 20.724l.008.27.001.036h.001v.023l-.002.015c-.018.038-.132.07-.189.01l-.005-.02v-.008l-.002-.05-.008-.27-.032-1.199c-.027-1.07-.068-2.66-.116-4.616m.352 6.115-.003-.014c-.057-.06-.172-.027-.189.01l-.001.006zM142.426 59.088c-.097-3.923-.227-9.285-.356-14.835l.197-.004c.129 5.55.258 10.911.355 14.834l.116 4.647.032 1.22.008.284.002.047v.024a.2.2 0 0 1-.096.086.2.2 0 0 1-.099-.082l-.001-.006v-.008l-.002-.055-.008-.284-.032-1.22zm.353 6.193v-.002a.2.2 0 0 0-.099-.082.18.18 0 0 0-.095.086zM144.711 58.559c-.096-3.937-.225-9.283-.352-14.744l.197-.004c.127 5.46.255 10.806.351 14.743l.115 4.688.032 1.247.008.297.002.059v.001h.001v.011000000000000001l-.001.004-.003.02c-.078.07-.186.012-.191-.008l-.002-.01v-.011l-.002-.06-.008-.298-.032-1.248zm.353 6.287-.001-.008c-.006-.02-.113-.078-.191-.008l-.004.018zm-.196.007",clipRule:"evenodd"})),Ie||(Ie=a.createElement("path",{fill:"#CBD0D3",fillRule:"evenodd",d:"M137.979 66.391c5.195-2.149 10.74-2.792 16.244-1.703a.389.389 0 1 1-.153.762c-5.342-1.057-10.728-.435-15.789 1.659a.394.394 0 0 1-.513-.21.39.39 0 0 1 .211-.508M137.889 63.393c5.201-2.155 10.751-2.8 16.261-1.71a.39.39 0 0 1 .308.457.39.39 0 0 1-.461.305c-5.348-1.058-10.739-.434-15.806 1.665a.39.39 0 0 1-.512-.209.387.387 0 0 1 .21-.508M137.823 60.389c5.2-2.155 10.749-2.8 16.256-1.71a.388.388 0 1 1-.153.762c-5.345-1.057-10.735-.434-15.801 1.665a.394.394 0 0 1-.513-.21.39.39 0 0 1 .211-.508M137.749 57.383c5.2-2.154 10.748-2.8 16.256-1.71a.388.388 0 1 1-.154.762c-5.344-1.057-10.735-.433-15.8 1.665a.393.393 0 0 1-.513-.209.39.39 0 0 1 .211-.508M137.663 54.385c5.206-2.16 10.761-2.807 16.276-1.716a.389.389 0 1 1-.153.763c-5.352-1.06-10.75-.434-15.821 1.67a.394.394 0 0 1-.513-.208.39.39 0 0 1 .211-.509M137.596 51.38c5.206-2.16 10.762-2.808 16.277-1.716a.39.39 0 0 1 .308.457.393.393 0 0 1-.462.305c-5.352-1.06-10.749-.432-15.82 1.67a.393.393 0 0 1-.513-.208.387.387 0 0 1 .21-.508M137.542 48.368c5.201-2.154 10.751-2.8 16.26-1.71a.389.389 0 1 1-.153.763c-5.346-1.058-10.739-.434-15.805 1.665a.393.393 0 0 1-.513-.21.39.39 0 0 1 .211-.508M137.456 45.37c5.206-2.16 10.761-2.808 16.276-1.716a.39.39 0 0 1 .308.457.39.39 0 0 1-.461.306c-5.353-1.06-10.75-.434-15.821 1.67a.394.394 0 0 1-.513-.209.39.39 0 0 1 .211-.508",clipRule:"evenodd"})),we||(we=a.createElement("path",{fill:"#CBD0D3",d:"M137.608 45.729c5.139-2.133 10.618-2.768 16.049-1.693l.21 9.014c-5.434-1.075-10.91-.439-16.049 1.693z"})),je||(je=a.createElement("path",{fill:"#CBD0D3",fillRule:"evenodd",d:"m138.005 45.986.19 8.184c4.901-1.928 10.097-2.52 15.267-1.592l-.191-8.22c-5.162-.96-10.364-.356-15.266 1.628m-.55-.616c5.206-2.16 10.765-2.807 16.277-1.716a.39.39 0 0 1 .315.372l.21 9.015a.39.39 0 0 1-.14.307.4.4 0 0 1-.329.083c-5.352-1.06-10.749-.434-15.82 1.67a.4.4 0 0 1-.365-.032.39.39 0 0 1-.178-.317l-.21-9.015a.39.39 0 0 1 .24-.367",clipRule:"evenodd"})),Ce||(Ce=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:1.468,d:"M159.24 49.011c.761 4.603-4.117 7.506-7.486 6.434M109.37 50.05c.001 4.55 5.159 7.83 8.838 6.226"})),Ne||(Ne=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.472,d:"m31.757 63.326-5.175 13.74a23 23 0 0 0-.534 1.593c-1.686 5.718-.919 11.872 1.862 17.155l4.678 8.598h-4.473"})),Te||(Te=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:1.472,d:"m39.988 67.196.768 37.221"})),De||(De=a.createElement("path",{stroke:"#1967D2",strokeLinejoin:"round",strokeWidth:2.748,d:"M31.757 63.326a27.5 27.5 0 0 0-2.058 5.225"})),Re||(Re=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:1.468,d:"M47.8 52.642c4.738 2.161 9.71 4.53 10.766 11.237M13.781 61.718c-2.557 3.62-6.986 9.225-5.039 14.72"})),Oe||(Oe=a.createElement("path",{fill:"#70B2F5",d:"M1.535 51.315 54.34 35.316s5.107 29.415-22.04 34.95c-.009 0-18.561 4.185-30.764-18.952"})),Le||(Le=a.createElement("path",{fill:"#77AD8C",d:"M1.535 51.315 54.34 35.316s5.107 29.415-22.04 34.95c-.009 0-18.561 4.185-30.764-18.952"})),Be||(Be=a.createElement("path",{fill:"#5C9271",d:"M33.856 67.557S16.354 71.503 4.163 50.52l-2.628.795C13.738 74.452 32.29 70.266 32.29 70.266c10.329-2.105 15.985-7.67 19.032-13.753-3.297 4.975-8.696 9.256-17.466 11.044"})),ze||(ze=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.472,d:"M45.22 104.418h-4.47"})),Pe||(Pe=a.createElement("path",{fill:"#CBD0D3",d:"M38.095 85.802c.172.861-3.494-19.049-4.776-25.49-6.736-1.845-13.604-1.284-19.746 1.959l4.776 25.49c6.143-3.243 13.01-3.804 19.746-1.96"})),Fe||(Fe=a.createElement("path",{fill:"#EBEEF0",d:"M38.129 85.796c.152.865-3.64-19.022-4.776-25.491 5.62-4.106 12.236-6.013 19.146-5.159l4.776 25.49c-6.91-.853-13.525 1.053-19.146 5.16"})),Ge||(Ge=a.createElement("path",{fill:"#CBD0D3",fillRule:"evenodd",d:"M34.042 76.784c-.683-3.684-1.629-8.766-2.629-14.104l.185-.033A7852 7852 0 0 1 35.233 82.2l.052.29v.011a.17.17 0 0 1-.075.093.18.18 0 0 1-.106-.06l-.003-.007v-.003l-.001-.003v-.001l-.004-.019-.003-.023-.045-.246-.204-1.113c-.184-1-.46-2.493-.802-4.335m1.057 5.717a.18.18 0 0 1 .075-.09c.05.007.09.041.103.055zM31.73 76.387A9015 9015 0 0 0 29.11 62.33l.184-.034a9008 9008 0 0 1 3.637 19.54l.055.307v.024c-.042.066-.155.058-.18.026l-.004-.013-.001-.006-.004-.016h.001l-.006-.034-.046-.255-.208-1.13zm1.068 5.77.181-.035-.002-.005c-.024-.032-.137-.04-.178.026zM29.454 76.162c-.688-3.698-1.63-8.753-2.61-13.984l.184-.033a10403 10403 0 0 1 3.636 19.517l.058.32v.008l.001.006a.18.18 0 0 1-.076.096.18.18 0 0 1-.107-.063l-.002-.006-.003-.016-.007-.045-.049-.267-.212-1.15zm1.082 5.845.183-.035a.18.18 0 0 0-.107-.063.18.18 0 0 0-.076.096zM27.204 76.11c-.69-3.712-1.631-8.752-2.596-13.898l.185-.034a13168 13168 0 0 1 3.687 19.775l.01.057.002.007v.013c0 .02-.09.095-.177.045l-.008-.023v-.003l-.002-.007-.01-.057-.051-.28-.218-1.176zm1.101 5.932.184-.035-.006-.017c-.088-.05-.177.025-.178.045zm.185-.03v-.001M24.99 76.224c-.695-3.732-1.634-8.76-2.58-13.813l.184-.033a16041 16041 0 0 1 3.637 19.486l.055.294q.008.046.011.064l.003.028c-.063.086-.176.042-.183.025l-.002-.006v-.003l-.002-.005.184-.036v-.005c-.008-.016-.12-.06-.184.026v.013999999999999999-.006l-.066-.357-.224-1.206zM22.813 76.54c-.698-3.743-1.634-8.749-2.563-13.706l.185-.034a20173 20173 0 0 1 3.701 19.818l.003.014v.005a.2.2 0 0 1-.01.057c-.09.047-.172-.018-.174-.022v-.006l-.002-.002.185-.037-.001-.003c-.001-.004-.083-.069-.173-.021a.2.2 0 0 0-.01.059l-.003-.012-.012-.07-.057-.307-.23-1.232zM20.668 77.034l-2.547-13.61.184-.034a29372 29372 0 0 1 3.69 19.733l.015.076.003.017v.005c.001.004-.077.105-.183.038l-.001-.006v-.002l.184-.035-.002-.006c-.106-.067-.184.035-.183.038v.002-.002l-.003-.016-.014-.076-.06-.32-.235-1.26zM16.023 64.202l.185-.034 3.715 19.826-.01.001-.165.03-.01.002z",clipRule:"evenodd"})),Ue||(Ue=a.createElement("path",{fill:"#B8BDB9",fillRule:"evenodd",d:"M35.112 82.85c-5.163-.983-10.34-.522-15.14 1.505a.377.377 0 0 1-.493-.197.37.37 0 0 1 .198-.488c4.947-2.089 10.276-2.56 15.576-1.551a.373.373 0 0 1 .298.436.375.375 0 0 1-.44.295M34.601 80.02c-5.17-.987-10.35-.527-15.157 1.502a.377.377 0 0 1-.493-.197.37.37 0 0 1 .198-.488c4.953-2.09 10.287-2.561 15.593-1.548a.373.373 0 0 1 .299.436.375.375 0 0 1-.44.296M34.078 77.187c-5.173-.986-10.353-.526-15.157 1.501a.377.377 0 0 1-.493-.197.37.37 0 0 1 .198-.488c4.95-2.09 10.283-2.56 15.593-1.547a.373.373 0 1 1-.141.731M33.547 74.355c-5.173-.986-10.354-.527-15.157 1.5a.377.377 0 0 1-.493-.196.37.37 0 0 1 .198-.489c4.95-2.089 10.282-2.559 15.593-1.547a.373.373 0 0 1 .298.436.375.375 0 0 1-.44.296M33.023 71.527c-5.175-.991-10.362-.532-15.172 1.5a.377.377 0 0 1-.493-.197.37.37 0 0 1 .198-.489c4.957-2.093 10.296-2.563 15.609-1.545a.373.373 0 1 1-.142.73M32.492 68.695c-5.175-.99-10.362-.532-15.172 1.5a.377.377 0 0 1-.494-.198.37.37 0 0 1 .198-.488c4.957-2.093 10.297-2.562 15.61-1.546a.373.373 0 1 1-.142.732",clipRule:"evenodd"})),Ve||(Ve=a.createElement("path",{fill:"#B8BDB9",d:"M16.109 64.187c4.884-2.062 10.147-2.527 15.39-1.523l.515 2.83c-5.238-1-10.495-.535-15.374 1.525z"})),We||(We=a.createElement("path",{fill:"#B8BDB9",fillRule:"evenodd",d:"m16.538 64.414.39 2.084c4.663-1.872 9.65-2.323 14.625-1.468l-.373-2.047c-4.991-.91-9.988-.47-14.642 1.431m-.572-.57c4.957-2.093 10.297-2.563 15.609-1.545l.253.048.658 3.614-.538-.102c-5.169-.987-10.35-.527-15.157 1.502l-.43.182-.672-3.582z",clipRule:"evenodd"})),He||(He=a.createElement("path",{fill:"#EBEEF0",fillRule:"evenodd",d:"M38.41 75.985c-.698-3.682-1.656-8.762-2.656-14.1l.185-.033a7932 7932 0 0 0 3.477 18.43l.26 1.357.005.023h.001l.004.022v.011a.17.17 0 0 1-.077.094.18.18 0 0 1-.105-.06l-.003-.01-.009-.044-.048-.246-.212-1.112zm1.269 5.677a.2.2 0 0 0-.102-.057.2.2 0 0 0-.077.088zm-.18.046v.002zM40.426 74.796c-.697-3.687-1.652-8.755-2.645-14.053l.185-.034a9326 9326 0 0 0 3.684 19.53l.049.255.006.034h.001l.003.016v.019c-.01.04-.113.087-.176.04l-.008-.023-.001-.004-.01-.046-.049-.256c-.046-.242-.12-.624-.215-1.128zm1.278 5.732-.005-.013c-.063-.047-.166 0-.177.039v.005zM42.474 73.78c-.698-3.697-1.65-8.75-2.63-13.98l.184-.034a10586 10586 0 0 0 3.678 19.51l.05.266.01.044.003.016v.006a.18.18 0 0 1-.077.097.18.18 0 0 1-.106-.063l-.002-.006-.001-.008-.01-.051-.052-.267-.219-1.15c-.194-1.023-.48-2.532-.828-4.38m1.291 5.806v-.001a.18.18 0 0 0-.106-.063.18.18 0 0 0-.077.096zM44.553 72.934c-.7-3.71-1.647-8.748-2.612-13.895l.185-.034a13097 13097 0 0 0 3.722 19.768l.011.055v.001l.002.007v.027c-.062.078-.172.039-.181.021l-.005-.02-.011-.056a265 265 0 0 1-.277-1.456zm1.306 5.895-.002-.007c-.008-.017-.119-.057-.182.021v.018zm-.184.037",clipRule:"evenodd"})),qe||(qe=a.createElement("path",{fill:"#CBD0D3",fillRule:"evenodd",d:"M39.398 81.36c4.582-2.818 9.729-4.263 15.104-4.064.208.007.37.18.362.386a.374.374 0 0 1-.389.358c-5.217-.193-10.217 1.208-14.681 3.953a.38.38 0 0 1-.517-.12.37.37 0 0 1 .12-.513M38.848 78.538c4.587-2.825 9.738-4.273 15.12-4.074.207.007.369.18.361.386a.374.374 0 0 1-.389.358c-5.222-.193-10.227 1.211-14.695 3.962a.38.38 0 0 1-.518-.12.37.37 0 0 1 .12-.513M38.316 75.705c4.587-2.824 9.737-4.272 15.115-4.073.208.007.37.18.362.386a.374.374 0 0 1-.389.358c-5.22-.193-10.223 1.211-14.69 3.962a.38.38 0 0 1-.518-.12.37.37 0 0 1 .12-.513M37.789 72.873c4.587-2.824 9.737-4.272 15.115-4.073.207.007.37.18.362.386a.374.374 0 0 1-.389.358c-5.22-.193-10.223 1.211-14.691 3.962a.38.38 0 0 1-.517-.12.37.37 0 0 1 .12-.513M37.243 70.05c4.591-2.83 9.747-4.282 15.134-4.082.207.007.37.18.362.386a.374.374 0 0 1-.39.358c-5.227-.194-10.236 1.213-14.709 3.97a.38.38 0 0 1-.517-.12.37.37 0 0 1 .12-.513M36.712 67.216c4.591-2.829 9.747-4.281 15.134-4.08.207.007.369.18.361.385a.374.374 0 0 1-.389.358c-5.227-.194-10.236 1.214-14.71 3.97a.38.38 0 0 1-.516-.12.37.37 0 0 1 .12-.513M36.195 64.376c4.588-2.824 9.74-4.273 15.12-4.074.207.008.37.181.362.386a.374.374 0 0 1-.39.359c-5.22-.194-10.226 1.21-14.695 3.961a.38.38 0 0 1-.517-.12.37.37 0 0 1 .12-.513M35.65 61.552c4.59-2.83 9.747-4.281 15.133-4.081.207.008.37.18.362.386a.374.374 0 0 1-.39.358c-5.227-.194-10.236 1.213-14.708 3.97a.38.38 0 0 1-.518-.12.37.37 0 0 1 .12-.513",clipRule:"evenodd"})),Ye||(Ye=a.createElement("path",{fill:"#CBD0D3",d:"M35.851 61.868c4.532-2.793 9.618-4.222 14.922-4.025l1.592 8.497c-5.307-.198-10.39 1.232-14.922 4.025z"})),Ze||(Ze=a.createElement("path",{fill:"#CBD0D3",fillRule:"evenodd",d:"m36.268 62.051 1.446 7.715c4.338-2.565 9.162-3.91 14.197-3.812l-1.452-7.749c-5.032-.127-9.86 1.23-14.191 3.846m-.615-.5c4.591-2.83 9.75-4.28 15.134-4.08a.375.375 0 0 1 .355.304l1.593 8.497a.37.37 0 0 1-.085.31.38.38 0 0 1-.298.13c-5.228-.195-10.237 1.212-14.71 3.97a.378.378 0 0 1-.568-.25l-1.592-8.496a.37.37 0 0 1 .171-.384",clipRule:"evenodd"})),Qe||(Qe=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:1.468,d:"M58.565 63.879c.876 5.566-4.736 9.076-8.612 7.78M8.738 76.438c1.616 4.56 7.623 6.458 13.652 0"})),Ke||(Ke=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:1.472,d:"M160.68 68.356c.934 6.676 1.531 14.409 0 20.996M171.536 72.568l-3.781 31.849h-4.47"})),Xe||(Xe=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.472,d:"M187.455 104.418h-4.471c.637-10.18 1.817-24.67 1.817-24.67"})),$e||($e=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:1.468,d:"M199.766 66.904c2.35 3.645 6.395 13.017 4.381 17.69M161.004 59.99c-3.656 2.734-9.85 8.336-9.904 15.127"})),Je||(Je=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:1.468,d:"M161.004 59.99c-3.656 2.734-9.85 8.336-9.904 15.127-.045 5.634 4.35 10.804 12.101 6.915"})),et||(et=a.createElement("path",{fill:"#77AD8C",d:"M188.416 36.69c5.324 1.935 9.926 5.533 12.45 10.684 5.586 11.402.195 27.178-11.38 32.714-10.499 5.032-24.499 1.152-30.83-8.532s-4.157-23.882 4.792-31.286c6.7-5.538 16.706-6.574 24.968-3.58"})),tt||(tt=a.createElement("path",{fill:"#5C9271",d:"M200.868 47.374a19.8 19.8 0 0 0-4.03-5.505c.638.885 1.2 1.822 1.68 2.8 5.587 11.402.196 27.177-11.38 32.714-9.081 4.35-20.778 2.028-27.868-4.939 6.584 9.03 20.044 12.517 30.218 7.648 11.568-5.54 16.966-21.316 11.38-32.718"})),it||(it=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:1.105,d:"M182.034 67.78c-2.79 3.71-7.987 4.925-11.944.505"})),st||(st=a.createElement("path",{fill:"#CBD0D3",d:"M175.979 96.185c-.089.946 2.303-20.818 2.977-27.89-6.413-3.959-13.71-5.464-21.09-3.967l-2.976 27.888c7.38-1.496 14.677.009 21.089 3.969"})),ot||(ot=a.createElement("path",{fill:"#EBEEF0",d:"M176.015 96.189c-.112.943 2.142-20.835 2.976-27.89 7.107-2.55 14.561-2.518 21.463.468l-2.976 27.888c-6.902-2.985-14.356-3.017-21.463-.466"})),nt||(nt=a.createElement("path",{fill:"#CBD0D3",fillRule:"evenodd",d:"M174.58 85.6c.437-4.028 1.037-9.587 1.66-15.427l.203.022a8025 8025 0 0 1-2.178 20.167l-.165 1.486-.006.048-.001.004-.002.008a.2.2 0 0 1-.107.073.2.2 0 0 1-.093-.094v-.012l.001-.003v-.001l.002-.02h.001l.003-.026.03-.268.135-1.217zm-.683 6.25a.2.2 0 0 1 .106-.07.2.2 0 0 1 .09.089zm.198.037v-.002zM172.305 84.486c.438-4.034 1.035-9.579 1.654-15.376l.203.022a10438 10438 0 0 1-2.172 20.136l-.136 1.235-.031.28-.006.05-.001.005-.001.004-.007.02c-.063.057-.179.014-.194-.027l-.001-.015.001-.006.001-.018h.001l.004-.036.032-.28.135-1.234c.121-1.104.3-2.743.518-4.76m-.688 6.31.2.019-.001-.006c-.015-.04-.13-.083-.194-.028zM170.011 83.561c.437-4.044 1.033-9.574 1.643-15.297l.203.022a10698 10698 0 0 1-2.163 20.089l-.138 1.259-.033.292-.007.057-.001.008-.001.007a.2.2 0 0 1-.109.076.2.2 0 0 1-.092-.097v-.007l.001-.018h.001l.006-.049.032-.291.138-1.258zm-.696 6.391.201.019a.2.2 0 0 0-.091-.097.2.2 0 0 0-.109.077zM167.698 82.823c.438-4.06 1.03-9.573 1.631-15.204l.202.021a14092 14092 0 0 1-2.153 20.038l-.141 1.287-.033.306-.008.063-.001.007v.004l-.002.01c-.008.02-.124.072-.199-.008-.001-.008-.002-.019-.001-.021v-.008l.001-.007v-.001l.007-.061.034-.306.14-1.287c.124-1.136.304-2.803.523-4.833m-.704 6.488.202.018-.002-.018c-.074-.08-.19-.028-.198-.008zM165.365 82.269c.44-4.083 1.03-9.583 1.62-15.111l.202.021a15535 15535 0 0 1-2.146 19.997l-.143 1.319-.035.322-.008.07-.002.015-.004.015c-.092.07-.196-.01-.198-.03v-.01l.001-.006.202.019v-.005c-.002-.02-.106-.1-.198-.03l-.004.014v.002l.001-.008.007-.068.036-.322.143-1.319zM163.009 81.934c.44-4.093 1.027-9.57 1.606-14.994l.202.021a31559 31559 0 0 1-2.135 19.918l-.146 1.348-.037.336-.008.077-.002.016-.001.006a.2.2 0 0 1-.029.055.17.17 0 0 1-.173-.075v-.007l.001-.003.202.019.001-.004c0-.005-.066-.097-.173-.075a.2.2 0 0 0-.03.055v.003l.001-.012.009-.076.037-.337.145-1.347zM160.626 81.796c.441-4.111 1.025-9.57 1.593-14.891l.203.02c-.568 5.322-1.153 10.781-1.593 14.892l-.533 4.968-.148 1.378-.038.35-.009.084-.002.018-.001.006c0 .004-.113.086-.202-.016v-.009000000000000001l.203.02v-.007c-.089-.102-.202-.02-.202-.016l-.001.002.001-.002.001-.017.009-.084.038-.35.148-1.378zM159.809 67.077l.202.02-2.315 21.692h-.01l-.182-.02h-.01z",clipRule:"evenodd"})),rt||(rt=a.createElement("path",{fill:"#B8BDB9",fillRule:"evenodd",d:"M173.801 92.217c-5.049-2.588-10.56-3.683-16.171-3.04a.406.406 0 0 1-.45-.354.405.405 0 0 1 .358-.447c5.78-.662 11.454.468 16.637 3.125a.4.4 0 0 1 .174.543.41.41 0 0 1-.548.173M174.149 89.126c-5.054-2.595-10.57-3.692-16.187-3.048a.406.406 0 0 1-.45-.354.405.405 0 0 1 .358-.447c5.787-.663 11.465.47 16.654 3.134a.4.4 0 0 1 .173.543.41.41 0 0 1-.548.172M174.49 86.028c-5.059-2.594-10.575-3.691-16.188-3.048a.405.405 0 0 1-.45-.354.405.405 0 0 1 .358-.447c5.783-.662 11.461.47 16.653 3.134a.4.4 0 0 1 .174.543.407.407 0 0 1-.547.172M174.822 82.93c-5.059-2.595-10.575-3.692-16.188-3.049a.405.405 0 0 1-.45-.354.405.405 0 0 1 .358-.446c5.783-.663 11.461.47 16.653 3.133a.4.4 0 0 1 .174.543.407.407 0 0 1-.547.173M175.157 79.838c-5.059-2.6-10.581-3.7-16.202-3.055a.404.404 0 1 1-.093-.8c5.792-.665 11.476.47 16.669 3.14a.4.4 0 0 1 .174.543.41.41 0 0 1-.548.172M175.485 76.739c-5.059-2.6-10.581-3.7-16.202-3.056a.404.404 0 1 1-.093-.8c5.792-.665 11.476.472 16.67 3.14a.4.4 0 0 1 .173.543.41.41 0 0 1-.548.173",clipRule:"evenodd"})),at||(at=a.createElement("path",{fill:"#B8BDB9",d:"M159.902 67.086c5.707-.655 11.31.463 16.436 3.098l-.346 3.09c-5.121-2.628-10.719-3.743-16.42-3.09z"})),lt||(lt=a.createElement("path",{fill:"#B8BDB9",fillRule:"evenodd",d:"m160.27 67.451-.243 2.28c5.417-.524 10.73.523 15.624 2.922l.251-2.237c-4.894-2.461-10.214-3.522-15.632-2.965m-.416-.765c5.792-.665 11.476.47 16.67 3.14l.247.127-.442 3.949-.526-.27c-5.054-2.594-10.571-3.691-16.187-3.047l-.504.057.419-3.919z",clipRule:"evenodd"})),ct||(ct=a.createElement("path",{fill:"#EBEEF0",fillRule:"evenodd",d:"M179.36 86.1c.423-4.031 1.009-9.591 1.632-15.431l.203.021c-.623 5.84-1.21 11.4-1.632 15.43-.211 2.015-.382 3.648-.495 4.742l-.125 1.218-.027.269-.002.025h.001l-.003.02-.001.004v.004l-.002.008a.2.2 0 0 1-.11.074.2.2 0 0 1-.09-.094v-.012l.004-.049.027-.27.125-1.217zm-.449 6.274a.2.2 0 0 0-.088-.09.2.2 0 0 0-.107.067zm-.201-.007v.001zM181.821 85.478c.424-4.035 1.01-9.582 1.628-15.378l.203.02a9453 9453 0 0 0-2.255 21.376l-.029.28-.003.036h.001l-.003.018-.001.006-.004.015c-.023.037-.145.055-.195-.013-.002-.008-.002-.02-.002-.022v-.008l.005-.052.028-.28.128-1.236zm-.457 6.334-.002-.015c-.051-.068-.172-.05-.196-.013l-.001.005zM184.261 85.047c.426-4.046 1.011-9.577 1.622-15.3l.202.021c-.61 5.723-1.195 11.254-1.621 15.3-.213 2.022-.387 3.674-.503 4.793l-.131 1.26-.03.291-.005.05h.001l-.002.017-.002.006a.2.2 0 0 1-.11.077.2.2 0 0 1-.091-.097l.001-.007v-.008l.005-.057.03-.293.131-1.26zm-.466 6.414v-.002a.2.2 0 0 0-.09-.097.2.2 0 0 0-.11.076zM186.679 84.801c.429-4.06 1.013-9.574 1.614-15.205l.202.02a14313 14313 0 0 0-2.288 21.634l-.007.061v.001h.001l-.001.008v.002l-.001.002v.003l-.006.021c-.09.062-.193-.012-.196-.033V91.3l.001-.007.006-.063.031-.306.135-1.288zm-.479 6.511v-.008c-.003-.02-.106-.095-.195-.033l-.006.018zm-.202-.018",clipRule:"evenodd"})),dt||(dt=a.createElement("path",{fill:"#CBD0D3",fillRule:"evenodd",d:"M178.707 91.973c5.63-1.53 11.417-1.465 16.931.375.212.07.327.3.255.51a.41.41 0 0 1-.515.254c-5.351-1.786-10.973-1.852-16.457-.361a.407.407 0 0 1-.499-.282.403.403 0 0 1 .285-.496M179.019 88.88c5.636-1.536 11.429-1.473 16.948.368a.403.403 0 1 1-.259.764c-5.357-1.787-10.984-1.851-16.475-.356a.403.403 0 1 1-.214-.777M179.351 85.78c5.635-1.534 11.427-1.471 16.943.369a.403.403 0 1 1-.259.764c-5.354-1.786-10.98-1.85-16.47-.356a.403.403 0 1 1-.214-.777M179.683 82.682c5.635-1.535 11.427-1.472 16.943.368a.403.403 0 1 1-.259.764c-5.354-1.786-10.98-1.85-16.469-.355a.403.403 0 1 1-.215-.777M179.994 79.588c5.643-1.54 11.442-1.479 16.966.365.213.071.327.3.255.51a.407.407 0 0 1-.515.254c-5.361-1.79-10.994-1.853-16.49-.352a.403.403 0 1 1-.216-.777M180.323 76.489c5.642-1.54 11.441-1.479 16.965.365.213.072.327.3.255.51a.407.407 0 0 1-.515.254c-5.361-1.79-10.994-1.852-16.49-.352a.403.403 0 1 1-.215-.777M180.671 73.385c5.637-1.534 11.43-1.471 16.949.37.212.071.327.3.255.51a.407.407 0 0 1-.515.254c-5.356-1.787-10.984-1.852-16.474-.357a.402.402 0 1 1-.215-.777M180.987 70.291c5.642-1.54 11.441-1.478 16.965.366.213.071.327.3.255.51a.406.406 0 0 1-.514.254c-5.362-1.79-10.995-1.853-16.491-.353a.403.403 0 1 1-.215-.777",clipRule:"evenodd"})),gt||(gt=a.createElement("path",{fill:"#CBD0D3",d:"M181.096 70.68c5.569-1.52 11.288-1.457 16.728.358l-.992 9.297c-5.443-1.817-11.159-1.88-16.728-.36z"})),ut||(ut=a.createElement("path",{fill:"#CBD0D3",fillRule:"evenodd",d:"m181.469 70.997-.901 8.44c5.297-1.342 10.719-1.271 15.911.36l.905-8.477c-5.179-1.662-10.609-1.722-15.915-.323m-.482-.706c5.642-1.54 11.444-1.477 16.965.366.18.06.294.236.274.424l-.992 9.296a.404.404 0 0 1-.534.34c-5.361-1.79-10.994-1.853-16.49-.352a.41.41 0 0 1-.371-.082.4.4 0 0 1-.141-.349l.992-9.296a.4.4 0 0 1 .297-.347",clipRule:"evenodd"})),mt||(mt=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:1.468,d:"M204.146 84.595c-1.671 3.879-7.751 2.74-10.354-.297M151.096 75.116c-.045 5.635 4.349 10.805 12.1 6.915"})),pt||(pt=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.472,d:"M91.429 81.618c-.729 8.2-.457 15.965 1.975 22.796h4.47M80.227 81.238c-.76 8.178-.245 15.966 2.153 23.178h-4.478"})),ht||(ht=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:1.468,d:"M118.418 79.006c7.32 3.89 10.2 8.445 9.473 12.335M60.719 71.227c-7.51 3.313-11.627 6.373-11.627 13.398"})),ft||(ft=a.createElement("path",{fill:"#77AD8C",d:"m57.84 49.763-3.38 33.985 68.342 6.303 1.443-32.81z"})),_t||(_t=a.createElement("path",{fill:"#5C9271",d:"m57.476 82.268 2.638-32.25-2.273-.255-3.38 33.985 68.341 6.303.127-2.876z"})),vt||(vt=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:1.105,d:"M80.625 72.749c3.832 4.721 11.357 6.736 17.468 1.896"})),yt||(yt=a.createElement("path",{fill:"#CBD0D3",d:"M86.74 98.236c-.1.945 2.55-20.79 3.308-27.852-6.365-4.035-13.644-5.624-21.041-4.213L65.7 94.023c7.397-1.41 14.676.179 21.04 4.213"})),kt||(kt=a.createElement("path",{fill:"#EBEEF0",d:"M86.776 98.24c-.123.942 2.39-20.808 3.308-27.852 7.137-2.468 14.59-2.35 21.455.717l-3.307 27.851c-6.865-3.065-14.319-3.184-21.456-.716"})),Et||(Et=a.createElement("path",{fill:"#CBD0D3",fillRule:"evenodd",d:"M85.467 87.637c.485-4.024 1.151-9.575 1.844-15.407l.202.023a8547 8547 0 0 1-2.418 20.141l-.192 1.544a.2.2 0 0 1-.108.072.2.2 0 0 1-.091-.095v-.017l.002-.02h.001l.004-.025.033-.268.15-1.215zm-.757 6.242a.2.2 0 0 1 .106-.069c.05.022.08.071.089.09zm.197.038v-.001zM83.205 86.496c.485-4.028 1.149-9.566 1.836-15.355l.202.023a9661 9661 0 0 1-2.561 21.343l-.042.335-.001.004-.007.02c-.065.056-.18.012-.194-.03v-.02q0-.007.002-.019l.005-.036.035-.278.15-1.233zm-.763 6.302.199.02v-.005c-.015-.041-.13-.085-.194-.03zM80.927 85.544c.485-4.04 1.146-9.561 1.825-15.277l.202.023A11321 11321 0 0 1 80.4 91.61l-.043.35-.003.014a.2.2 0 0 1-.11.076.2.2 0 0 1-.09-.1l.001-.023.007-.05.036-.29.153-1.257zm-.772 6.383.201.02a.2.2 0 0 0-.09-.097.2.2 0 0 0-.11.075zM78.619 84.779c.486-4.055 1.144-9.56 1.811-15.184l.203.024a14138 14138 0 0 1-2.593 21.664l-.001.007-.003.014c-.008.02-.124.07-.198-.01l-.002-.025v-.003l.001-.008.001-.001.008-.06.037-.306.156-1.285zm-.781 6.48.202.02-.002-.019c-.074-.08-.19-.03-.198-.01zM76.295 84.198c.488-4.077 1.144-9.57 1.8-15.091l.201.023a17205 17205 0 0 1-2.59 21.68l-.002.015-.004.014c-.093.07-.196-.012-.198-.032v-.016l.203.022v-.005c-.001-.02-.104-.101-.198-.033l-.004.015v.001l.001-.007.009-.069q.011-.1.039-.32l.158-1.318c.14-1.157.341-2.84.585-4.88M73.94 83.836c.489-4.088 1.14-9.558 1.784-14.975l.202.024a21887 21887 0 0 1-2.584 21.65l-.002.017v.005a.2.2 0 0 1-.03.055.17.17 0 0 1-.172-.077v-.01l.203.021v-.003a.17.17 0 0 0-.172-.077.2.2 0 0 0-.03.054v.004l.001-.013.01-.076.04-.336.162-1.346zM71.563 83.67l1.77-14.872.201.024a33930 33930 0 0 1-2.568 21.56l-.01.083-.002.018v.006c-.001.004-.115.084-.203-.019v-.009000000000000001l.203.022v-.006c-.088-.103-.201-.023-.202-.019v.002-.001l.002-.018.01-.083.042-.35.165-1.376zM70.918 68.942l.202.023-2.572 21.664-.01-.001-.182-.022h-.01z",clipRule:"evenodd"})),At||(At=a.createElement("path",{fill:"#B8BDB9",fillRule:"evenodd",d:"M84.613 94.243c-5.017-2.647-10.516-3.805-16.133-3.227a.405.405 0 0 1-.446-.36.404.404 0 0 1 .362-.442c5.789-.596 11.448.6 16.6 3.318a.4.4 0 0 1 .167.545.41.41 0 0 1-.55.166M84.997 91.157c-5.023-2.653-10.527-3.815-16.15-3.236a.405.405 0 0 1-.446-.36.404.404 0 0 1 .363-.442c5.794-.596 11.459.603 16.615 3.327a.4.4 0 0 1 .167.545.41.41 0 0 1-.55.166M85.372 88.063c-5.028-2.653-10.53-3.814-16.15-3.236a.405.405 0 0 1-.446-.36.404.404 0 0 1 .363-.442c5.791-.595 11.455.604 16.615 3.327a.4.4 0 0 1 .167.545.41.41 0 0 1-.55.166M85.739 84.969c-5.027-2.653-10.53-3.815-16.15-3.237a.405.405 0 0 1-.446-.359.404.404 0 0 1 .363-.442c5.791-.596 11.455.603 16.615 3.326a.4.4 0 0 1 .168.545.41.41 0 0 1-.55.167M86.113 81.88c-5.027-2.658-10.536-3.822-16.165-3.243a.405.405 0 0 1-.445-.359.404.404 0 0 1 .362-.442c5.8-.598 11.47.604 16.631 3.333a.4.4 0 0 1 .167.546.41.41 0 0 1-.55.165M86.477 78.786c-5.028-2.658-10.537-3.823-16.165-3.243a.405.405 0 0 1-.446-.36.404.404 0 0 1 .362-.442c5.8-.597 11.47.606 16.632 3.334a.4.4 0 0 1 .167.545.41.41 0 0 1-.55.166",clipRule:"evenodd"})),bt||(bt=a.createElement("path",{fill:"#B8BDB9",d:"M71.012 68.953c5.714-.588 11.304.594 16.398 3.288l-.383 3.087c-5.09-2.688-10.674-3.868-16.383-3.28z"})),xt||(xt=a.createElement("path",{fill:"#B8BDB9",fillRule:"evenodd",d:"m71.377 69.322-.27 2.277c5.424-.461 10.724.647 15.589 3.103l.277-2.234c-4.864-2.518-10.171-3.64-15.596-3.146m-.406-.77c5.8-.597 11.47.604 16.63 3.334l.247.13-.49 3.943-.522-.276c-5.023-2.652-10.526-3.814-16.15-3.235l-.504.052.465-3.915z",clipRule:"evenodd"})),St||(St=a.createElement("path",{fill:"#EBEEF0",fillRule:"evenodd",d:"M90.243 88.191c.47-4.025 1.123-9.578 1.816-15.41l.202.023a8576 8576 0 0 0-2.367 20.146l-.172 1.51h.001l-.003.02v.006l-.001.002-.002.008a.2.2 0 0 1-.111.073.2.2 0 0 1-.089-.096v-.012l.005-.047.03-.27.14-1.216zm-.523 6.269a.2.2 0 0 0-.088-.091.2.2 0 0 0-.107.066zM92.712 87.598c.472-4.03 1.124-9.57 1.811-15.359l.203.024a9910 9910 0 0 0-2.51 21.348l-.031.279-.004.036q0 .012-.002.018v.006l-.005.015c-.024.036-.146.053-.195-.016l-.002-.021v-.009000000000000001l.006-.051.031-.28.143-1.234zm-.532 6.328q0-.007-.002-.015c-.05-.069-.171-.052-.195-.016l-.002.006zM95.154 87.195c.474-4.041 1.124-9.564 1.803-15.28l.202.023a11129 11129 0 0 0-2.509 21.325l-.038.34-.002.018-.002.007a.2.2 0 0 1-.111.075.2.2 0 0 1-.09-.098v-.007l.001-.008.007-.057.033-.293a5635.92 5635.92 0 0 1 .706-6.046m-.543 6.409v-.002c0-.007-.03-.07-.09-.099a.2.2 0 0 0-.11.075zM97.577 86.978c.477-4.056 1.126-9.562 1.794-15.186l.202.023a13877 13877 0 0 0-2.546 21.606l-.007.06v.013l-.001.004-.007.02c-.09.062-.192-.014-.195-.035v-.014l.001-.008.007-.062.035-.307.15-1.285zm-.557 6.505v-.008c-.003-.021-.104-.097-.195-.036l-.006.018zm-.202-.02",clipRule:"evenodd"})),Mt||(Mt=a.createElement("path",{fill:"#CBD0D3",fillRule:"evenodd",d:"M89.522 94.057c5.648-1.465 11.434-1.333 16.925.57a.4.4 0 0 1 .249.514.407.407 0 0 1-.517.247c-5.33-1.848-10.95-1.978-16.452-.552a.403.403 0 1 1-.205-.78M89.865 90.967c5.655-1.47 11.446-1.34 16.943.565a.4.4 0 0 1 .249.514.407.407 0 0 1-.517.247c-5.336-1.85-10.961-1.979-16.47-.547a.403.403 0 1 1-.206-.78M90.236 87.872c5.654-1.47 11.444-1.34 16.938.565a.4.4 0 0 1 .249.513.407.407 0 0 1-.517.248c-5.333-1.849-10.957-1.978-16.464-.547a.403.403 0 1 1-.205-.78M90.603 84.776c5.654-1.469 11.444-1.339 16.939.566a.402.402 0 1 1-.269.76c-5.332-1.848-10.957-1.977-16.464-.546a.403.403 0 1 1-.206-.78M90.954 81.687c5.66-1.474 11.458-1.346 16.96.563a.4.4 0 0 1 .249.513.41.41 0 0 1-.518.247c-5.339-1.852-10.971-1.98-16.485-.544a.403.403 0 1 1-.206-.78M91.317 78.592c5.66-1.473 11.458-1.346 16.961.563a.402.402 0 1 1-.269.76c-5.34-1.852-10.972-1.979-16.486-.544a.403.403 0 1 1-.206-.78M91.705 75.492c5.654-1.469 11.447-1.339 16.943.567a.4.4 0 0 1 .249.513.407.407 0 0 1-.518.247c-5.334-1.849-10.96-1.978-16.469-.548a.403.403 0 1 1-.205-.78M92.056 72.402c5.66-1.474 11.458-1.345 16.96.563a.4.4 0 0 1 .249.513.407.407 0 0 1-.518.248c-5.34-1.852-10.972-1.98-16.485-.544a.403.403 0 1 1-.206-.78",clipRule:"evenodd"})),It||(It=a.createElement("path",{fill:"#CBD0D3",d:"M92.158 72.792c5.587-1.455 11.305-1.326 16.723.553l-1.103 9.284c-5.421-1.88-11.136-2.008-16.723-.553z"})),wt||(wt=a.createElement("path",{fill:"#CBD0D3",fillRule:"evenodd",d:"m92.53 73.113-1.002 8.43c5.313-1.28 10.734-1.147 15.906.545l1.005-8.467c-5.159-1.721-10.587-1.844-15.91-.508m-.475-.71c5.66-1.475 11.461-1.345 16.961.562.179.062.291.24.269.427l-1.103 9.285a.4.4 0 0 1-.188.294.41.41 0 0 1-.35.039c-5.339-1.852-10.971-1.98-16.485-.544a.41.41 0 0 1-.37-.086.4.4 0 0 1-.136-.35l1.102-9.285c.02-.164.139-.3.3-.343",clipRule:"evenodd"})),jt||(jt=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:1.468,d:"M127.892 91.34c-1.329 7.115-12.918 8.843-24.256 0M49.088 84.625c0 6.05 9.182 11.081 24.545 3.457"}))),Tt=(0,a.forwardRef)((e,t)=>{const i=(0,d.A)(),s=(0,se.A)(),o=(0,l.useSelect)(e=>e(Y.oR).didSetAudiences()),n=(0,l.useSelect)(e=>e(ie.i).getModuleIcon(I.L1)),r=(0,l.useSelect)(e=>e(te.O4).getSiteKitAdminSettingsURL({scrollTo:"visitor-groups"})),{setValue:a}=(0,l.useDispatch)(c.nX),{navigateTo:u}=(0,l.useDispatch)(ee.M),m=o?"no-longer-available":"none-selected";function p(){(0,w.sx)(`${i}_audiences-no-audiences`,"select_groups",m).finally(()=>{a(ne,!0)})}return(0,U.jsxs)(J,{ref:t,className:"googlesitekit-no-audience-banner",Icon:n,SVGGraphic:Nt,children:[(0,U.jsxs)(P.A,{children:[o&&(0,F.A)((0,g.__)("It looks like your visitor groups arenât available anymore. <a>Select other groups</a>.","google-site-kit"),{a:(0,U.jsx)(G.A,{onClick:p,secondary:!0})}),!o&&(0,F.A)((0,g.__)("You donât have any visitor groups selected. <a>Select groups</a>.","google-site-kit"),{a:(0,U.jsx)(G.A,{onClick:p,secondary:!0})})]}),!s&&(0,U.jsx)(P.A,{children:(0,F.A)((0,g.__)("You can deactivate this widget in <a>Settings</a>.","google-site-kit"),{a:(0,U.jsx)(G.A,{onClick:()=>{(0,w.sx)(`${i}_audiences-no-audiences`,"change_settings",m).finally(()=>{u(r)})},secondary:!0})})})]})}),Dt=(0,N.A)(Tt);function NoAudienceBannerWidget({Widget:e,WidgetNull:t}){const i=(0,d.A)(),s=(0,l.useSelect)(e=>{const t=e(Q.K9).getOrSyncAvailableAudiences();return t?.map(e=>e.name)}),o=(0,l.useSelect)(e=>e(Y.oR).getConfiguredAudiences()),n=(0,l.useSelect)(e=>e(Y.oR).didSetAudiences()),r=o?.every(e=>Array.isArray(s)&&!s.includes(e));return o&&(0===o?.length||r)?(0,U.jsx)(e,{noPadding:!0,children:(0,U.jsx)(Dt,{onInView:()=>{(0,w.sx)(`${i}_audiences-no-audiences`,"view_banner",n?"no-longer-available":"none-selected")}})}):(0,U.jsx)(t,{})}NoAudienceBannerWidget.propTypes={Widget:r().elementType.isRequired,WidgetNull:r().elementType.isRequired};const Rt=(0,C.A)({moduleName:I.L1})(NoAudienceBannerWidget);var Ot=i(4751);function AudienceTileLoading(){return(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-loading",children:[(0,U.jsx)(Ot.A,{width:"100%",height:"20px"}),(0,U.jsx)(Ot.A,{width:"100%",height:"52px"}),(0,U.jsx)(Ot.A,{width:"100%",height:"52px"}),(0,U.jsx)(Ot.A,{width:"100%",height:"52px"}),(0,U.jsx)(Ot.A,{width:"100%",height:"52px"}),(0,U.jsx)(Ot.A,{width:"100%",height:"52px"}),(0,U.jsx)(Ot.A,{width:"100%",height:"52px"})]})}var Lt=i(51568),Bt=i(69908),zt=i(68832);const Pt="audience-tiles-show-error-modal";function Ft(){const e=(0,l.useSelect)(e=>e(c.nX).getValue(Pt)||!1,[]),{setValue:t}=(0,l.useDispatch)(c.nX),i=(0,a.useCallback)(e=>t(Pt,e),[t]),s=(0,l.useSelect)(e=>e(Y.oR).hasScope(Q.S9),[]),{setPermissionScopeError:o,clearPermissionScopeError:n}=(0,l.useDispatch)(Y.oR),{clearActionError:r}=(0,l.useDispatch)(Q.K9),{setSetupErrorCode:d}=(0,l.useDispatch)(te.O4),u=(0,l.useSelect)(e=>e(Q.K9).getPropertyID(),[]),m=(0,Lt.F)(globalThis.location.href,{notification:"audience_segmentation",widgetArea:Bt.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION}),p=(0,Lt.F)(globalThis.location.href,{widgetArea:Bt.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION}),[,h]=(0,zt.A)(Q.CV,"autoSubmit"),[,f]=(0,zt.A)(Q.CV,"isRetrying"),_=(0,a.useCallback)(({isRetrying:e}={})=>{h(!0),f(e),s||o({code:j.db,message:(0,g.__)("Additional permissions are required to create new audiences in Analytics.","google-site-kit"),data:{status:403,scopes:[Q.S9],skipModal:!0,skipDefaultErrorNotifications:!0,redirectURL:m,errorRedirectURL:p}})},[s,m,p,o,h,f]),v=(0,a.useCallback)(()=>{h(!1),f(!1),d(null),n(),r("createCustomDimension",[u,Q.Cu.googlesitekit_post_type]),i(!1)},[r,n,u,d,i,h,f]),[y]=(0,zt.A)(Q.CV,"isAutoCreatingCustomDimensionsForAudience"),k=Q.Cu.googlesitekit_post_type.parameterName,E=(0,l.useSelect)(e=>e(Q.K9).isCreatingCustomDimension(k),[k]),A=(0,l.useSelect)(e=>e(Q.K9).isFetchingSyncAvailableCustomDimensions(),[]);return{onCreateCustomDimension:_,onCancel:v,isSaving:y||E||A,showErrorModal:e,setShowErrorModal:i}}var Gt=i(97015);const Ut=()=>{const e=(0,d.A)(),t=Q.Cu.googlesitekit_post_type.parameterName,i=(0,l.useSelect)(e=>e(Q.K9).getCreateCustomDimensionError(t),[]),[o]=(0,zt.A)(Q.CV,"autoSubmit"),n=(0,l.useSelect)(e=>e(te.O4).getSetupErrorCode(),[]),r=!(!o||"access_denied"!==n),{onCreateCustomDimension:a,onCancel:c,isSaving:u}=Ft();return Gt.createElement(s.A,{apiErrors:[i],title:(0,g.__)("Failed to enable metric","google-site-kit"),description:(0,g.__)("Oops! Something went wrong. Retry enabling the metric.","google-site-kit"),onRetry:()=>a({isRetrying:!0}),onCancel:c,inProgress:u,hasOAuthError:r,trackEventCategory:`${e}_audiences-top-content-cta`})};function Vt(e,t){return(0,l.useSelect)(i=>t.reduce((t,s)=>{const o=i(Q.K9).getPartialDataSiteKitAudience(s);if(void 0===o)return{};const n={};o?n.newVsReturning="new-visitors"===o.audienceSlug?"new":"returning":n.audienceResourceName=s;const r=i(Q.K9).hasFinishedResolution("getReport",[{...e,dimensionFilters:{...e.dimensionFilters,...n}}]);return t[s]=r,t},{}))}function Wt(e,t){return(0,l.useSelect)(i=>t.reduce((t,s)=>{const o=i(Q.K9).getPartialDataSiteKitAudience(s);if(void 0===o)return t;const n={};o?n.newVsReturning="new-visitors"===o.audienceSlug?"new":"returning":n.audienceResourceName=s;const r=i(Q.K9).getErrorForSelector("getReport",[{...e,dimensionFilters:{...e.dimensionFilters,...n}}]);return r&&(t[s]=r),t},{}))}function Ht({isSiteKitAudiencePartialData:e,siteKitAudiences:t,otherAudiences:i}){const s=(0,l.useSelect)(e=>e(Y.oR).getConfiguredAudiences()),o={audienceResourceName:s},n=(0,l.useSelect)(e=>e(Y.oR).getDateRangeDates({compare:!0})),{startDate:r,endDate:a}=n,c=void 0===e?void 0:i.length>0||!1===e,d=t.length>0&&e,g={...n,dimensions:[{name:"audienceResourceName"}],dimensionFilters:o,metrics:[{name:"totalUsers"},{name:"sessionsPerUser"},{name:"screenPageViewsPerSession"},{name:"screenPageViews"}],reportID:"audience-segmentation_use-audience-tiles-reports_hook_reportOptions"},u=(0,l.useInViewSelect)(e=>{if(void 0!==c)return c?e(Q.K9).getReport(g):null},[c,g]),m=(0,l.useSelect)(e=>{if(void 0!==c)return!c||e(Q.K9).hasFinishedResolution("getReport",[g])}),p=(0,l.useSelect)(e=>{if(void 0!==c)return c?e(Q.K9).getErrorForSelector("getReport",[g]):null}),h={...n,dimensions:[{name:"newVsReturning"}],dimensionFilters:{newVsReturning:["new","returning"]},metrics:[{name:"totalUsers"},{name:"sessionsPerUser"},{name:"screenPageViewsPerSession"},{name:"screenPageViews"}],reportID:"audience-segmentation_use-audience-tiles-reports_hook_newVsReturningReportOptions"},f=(0,l.useInViewSelect)(e=>{if(void 0!==d)return d?e(Q.K9).getReport(h):null},[d,h]),_=(0,l.useSelect)(e=>{if(void 0!==d)return!d||e(Q.K9).hasFinishedResolution("getReport",[h])}),v=(0,l.useSelect)(e=>{if(void 0!==d)return d?e(Q.K9).getErrorForSelector("getReport",[h]):null}),y={startDate:r,endDate:a,metrics:[{name:"screenPageViews"}],reportID:"audience-segmentation_use-audience-tiles-reports_hook_totalPageviewsReportOptions"},k=(0,l.useInViewSelect)(e=>e(Q.K9).getReport(y)),E=(0,l.useSelect)(e=>e(Q.K9).hasFinishedResolution("getReport",[y])),A=(0,l.useSelect)(e=>e(Q.K9).getErrorForSelector("getReport",[y])),b=Number(k?.totals?.[0]?.metricValues?.[0]?.value)||0,x={startDate:r,endDate:a,dimensions:["city"],metrics:[{name:"totalUsers"}],orderby:[{metric:{metricName:"totalUsers"},desc:!0}],limit:4,reportID:"audience-segmentation_use-audience-tiles-reports_hook_topCitiesReportOptions"},S=(0,l.useInViewSelect)(e=>e(Q.K9).getReportForAllAudiences(x,s)),M=Vt(x,s),I=Wt(x,s),w={startDate:r,endDate:a,dimensions:["pagePath"],metrics:[{name:"screenPageViews"}],dimensionFilters:{"customEvent:googlesitekit_post_type":{filterType:"stringFilter",matchType:"EXACT",value:"post"}},orderby:[{metric:{metricName:"screenPageViews"},desc:!0}],limit:3,reportID:"audience-segmentation_use-audience-tiles-reports_hook_topContentReportOptions"},j=(0,l.useInViewSelect)(e=>e(Q.K9).getReportForAllAudiences(w,s)),C=Vt(w,s),N=Wt(w,s),T={startDate:r,endDate:a,dimensions:["pagePath","pageTitle"],metrics:[{name:"screenPageViews"}],dimensionFilters:{"customEvent:googlesitekit_post_type":{filterType:"stringFilter",matchType:"EXACT",value:"post"}},orderby:[{metric:{metricName:"screenPageViews"},desc:!0}],limit:15,reportID:"audience-segmentation_use-audience-tiles-reports_hook_topContentPageTitlesReportOptions"};return{report:u,reportLoaded:m,reportError:p,siteKitAudiencesReport:f,siteKitAudiencesReportLoaded:_,siteKitAudiencesReportError:v,totalPageviews:b,totalPageviewsReportLoaded:E,totalPageviewsReportError:A,topCitiesReport:S,topCitiesReportsLoaded:M,topCitiesReportErrors:I,topContentReport:j,topContentReportsLoaded:C,topContentReportErrors:N,topContentPageTitlesReport:(0,l.useInViewSelect)(e=>e(Q.K9).getReportForAllAudiences(T,s)),topContentPageTitlesReportsLoaded:Vt(T,s),topContentPageTitlesReportErrors:Wt(T,s)}}var qt=i(9318),Yt=i(25804);function BadgeWithTooltip({className:e="",label:t,onTooltipOpen:i,tooltipTitle:s}){return(0,U.jsxs)("span",{className:X()("googlesitekit-badge-with-tooltip","googlesitekit-badge",e),children:[t,s&&(0,U.jsx)(Yt.A,{onOpen:i,title:s})]})}BadgeWithTooltip.propTypes={onTooltipOpen:r().func,tooltipTitle:r().node,className:r().string,label:r().node.isRequired};var Zt,Qt=i(74655);function Kt(){return Kt=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},Kt.apply(null,arguments)}const Xt=e=>a.createElement("svg",Kt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),Zt||(Zt=a.createElement("path",{fill:"currentColor",d:"M10 18.333a.78.78 0 0 1-.5-.166 1 1 0 0 1-.312-.438 11.6 11.6 0 0 0-1-2.187q-.585-1.022-1.646-2.396-1.062-1.376-1.73-2.625-.645-1.25-.645-3.021 0-2.437 1.687-4.125Q7.564 1.666 10 1.667q2.438 0 4.125 1.708 1.71 1.688 1.709 4.125 0 1.896-.73 3.166-.708 1.25-1.645 2.48-1.125 1.5-1.709 2.5a11.8 11.8 0 0 0-.937 2.083.94.94 0 0 1-.334.458.8.8 0 0 1-.479.146m0-2.979q.354-.708.792-1.396.459-.688 1.333-1.833a20 20 0 0 0 1.459-2.146q.583-1 .583-2.48 0-1.728-1.23-2.937Q11.73 3.332 10 3.333t-2.958 1.23Q5.833 5.77 5.834 7.5q0 1.479.562 2.479.584.98 1.48 2.146.874 1.146 1.312 1.833.458.688.812 1.396m0-5.77q.876 0 1.48-.605.603-.604.604-1.48 0-.874-.604-1.478A2.01 2.01 0 0 0 10 5.417q-.875-.001-1.479.604A2.01 2.01 0 0 0 7.917 7.5q0 .875.604 1.479t1.48.604"})));var $t;function Jt(){return Jt=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},Jt.apply(null,arguments)}const ei=e=>a.createElement("svg",Jt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),$t||($t=a.createElement("path",{fill:"currentColor",d:"M13.125 16.667H3.334q-.689 0-1.188-.48-.48-.5-.479-1.187V5q0-.687.48-1.166.498-.5 1.187-.5h13.333q.687 0 1.167.5.5.479.5 1.166v10q0 .688-.5 1.188-.48.48-1.167.479H15.5l-3.916-3.917q-.437.292-.959.438-.5.146-1.041.146-1.562 0-2.667-1.084-1.083-1.104-1.083-2.666 0-1.563 1.083-2.646a3.63 3.63 0 0 1 2.667-1.104q1.562 0 2.646 1.104 1.104 1.083 1.104 2.646 0 .563-.146 1.062a3.4 3.4 0 0 1-.438.938L16.167 15h.5V5H3.334v10h8.125zm-3.541-5q.874 0 1.479-.604.604-.604.604-1.48 0-.875-.604-1.479a2.01 2.01 0 0 0-1.48-.604q-.874 0-1.479.604a2.01 2.01 0 0 0-.604 1.48q0 .875.604 1.479.604.603 1.48.604M3.334 15V5z"})));var ti;function ii(){return ii=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},ii.apply(null,arguments)}const si=e=>a.createElement("svg",ii({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),ti||(ti=a.createElement("path",{fill:"currentColor",d:"M4.167 17.5q-.688 0-1.188-.48-.48-.498-.479-1.187V4.167q0-.689.48-1.167.499-.5 1.187-.5h11.666q.688 0 1.167.5.5.48.5 1.167v11.666q0 .688-.5 1.188-.48.48-1.167.479zm0-1.667h11.666v-10H4.167zM10 14.167q-1.709 0-3.062-.917A5.4 5.4 0 0 1 5 10.833a5.27 5.27 0 0 1 1.938-2.395Q8.29 7.499 10 7.5q1.709 0 3.042.938A5.23 5.23 0 0 1 15 10.833a5.35 5.35 0 0 1-1.958 2.417q-1.334.917-3.042.917m0-1.25q1.167 0 2.125-.542a4 4 0 0 0 1.5-1.542 3.85 3.85 0 0 0-1.5-1.52A4.1 4.1 0 0 0 10 8.75a4.1 4.1 0 0 0-2.125.563 3.85 3.85 0 0 0-1.5 1.52 4 4 0 0 0 1.5 1.542 4.24 4.24 0 0 0 2.125.542m0-.834a1.26 1.26 0 0 1-.896-.354 1.26 1.26 0 0 1-.354-.896q0-.52.354-.875.375-.375.896-.375.52 0 .875.375.375.354.375.875t-.375.896a1.2 1.2 0 0 1-.875.354"})));var oi;function ni(){return ni=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},ni.apply(null,arguments)}const ri=e=>a.createElement("svg",ni({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),oi||(oi=a.createElement("path",{fill:"currentColor",d:"M3.334 16.667q-.689 0-1.188-.48-.48-.5-.479-1.187V5q0-.687.48-1.166.498-.5 1.187-.5h13.333q.687 0 1.167.5.5.479.5 1.166v10q0 .688-.5 1.188-.48.48-1.167.479zm0-1.667h8.75v-2.916h-8.75zm10.416 0h2.917V7.5H13.75zM3.334 10.417h8.75V7.5h-8.75z"})));var ai;function li(){return li=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},li.apply(null,arguments)}const ci=e=>a.createElement("svg",li({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),ai||(ai=a.createElement("path",{fill:"currentColor",d:"M.833 16.667v-2.334q0-.708.354-1.291a2.5 2.5 0 0 1 .98-.917q1.29-.646 2.624-.958a11 11 0 0 1 2.709-.333q1.375 0 2.708.333 1.333.313 2.625.958.604.313.958.917.375.584.375 1.292v2.333zm15 0v-2.5q0-.917-.52-1.75-.5-.855-1.438-1.458 1.062.125 2 .437a10 10 0 0 1 1.75.73q.75.416 1.145.937.396.5.396 1.104v2.5zM7.5 10a3.2 3.2 0 0 1-2.354-.979 3.2 3.2 0 0 1-.98-2.354q0-1.376.98-2.354a3.2 3.2 0 0 1 2.354-.98 3.2 3.2 0 0 1 2.354.98 3.2 3.2 0 0 1 .979 2.354 3.2 3.2 0 0 1-.98 2.354 3.2 3.2 0 0 1-2.353.98m8.333-3.333a3.2 3.2 0 0 1-.98 2.354 3.2 3.2 0 0 1-2.353.98q-.23 0-.584-.042a7 7 0 0 1-.583-.125q.563-.667.854-1.48a4.7 4.7 0 0 0 .313-1.687q0-.875-.313-1.688a4.8 4.8 0 0 0-.854-1.479q.292-.104.583-.125a4 4 0 0 1 .584-.042 3.2 3.2 0 0 1 2.354.98 3.2 3.2 0 0 1 .979 2.354M2.5 15h10v-.666a.74.74 0 0 0-.125-.417.74.74 0 0 0-.292-.292 10.5 10.5 0 0 0-2.27-.833 9.34 9.34 0 0 0-4.626 0q-1.146.27-2.27.833a.9.9 0 0 0-.313.292.84.84 0 0 0-.104.417zm5-6.666q.687 0 1.166-.48.5-.5.5-1.187t-.5-1.167Q8.186 5 7.5 5q-.688 0-1.188.5-.48.48-.479 1.167 0 .687.48 1.187.499.48 1.187.48"})));var di;function gi(){return gi=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},gi.apply(null,arguments)}const ui=e=>a.createElement("svg",gi({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),di||(di=a.createElement("path",{fill:"currentColor",d:"M10 17.5a7.4 7.4 0 0 1-2.937-.583 8 8 0 0 1-2.375-1.605 8 8 0 0 1-1.605-2.374A7.4 7.4 0 0 1 2.5 10q0-1.563.583-2.917a7.7 7.7 0 0 1 1.604-2.375 7.6 7.6 0 0 1 2.375-1.604A7.2 7.2 0 0 1 10 2.5q1.708 0 3.23.73a7.25 7.25 0 0 1 2.603 2.062V3.333H17.5v5h-5V6.667h2.292a6.2 6.2 0 0 0-2.104-1.834A5.6 5.6 0 0 0 10 4.167q-2.437 0-4.146 1.708Q4.167 7.563 4.167 10t1.687 4.146q1.71 1.687 4.146 1.687 2.188 0 3.813-1.416 1.646-1.418 1.937-3.584h1.708q-.312 2.854-2.458 4.771-2.125 1.896-5 1.896m2.333-4-3.166-3.167v-4.5h1.666v3.834l2.667 2.666z"})));function AudienceTileNoData(){return(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile__no-data",children:(0,g.__)("No data to show yet","google-site-kit")})}function AudienceTileCitiesMetric({TileIcon:e,title:t,topCities:i}){const s=i?.dimensionValues?.filter(Boolean)||[],o=!!s.length;return(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric googlesitekit-audience-segmentation-tile-metric--cities",children:[(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__icon",children:(0,U.jsx)(e,{})}),(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__container",children:[(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__title",children:t}),(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__content",children:[!o&&(0,U.jsx)(AudienceTileNoData,{}),o&&s.map((e,t)=>(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__cities-metric",children:[(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__cities-metric-name",children:e?.value}),(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__cities-metric-value",children:(0,w.Eo)(i?.metricValues[t]?.value/i?.total,{style:"percent",maximumFractionDigits:1})})]},e?.value))]})]})]})}function AudienceTileMetric({TileIcon:e,title:t,metricValue:i,Badge:s,metricValueFormat:o}){return(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric",children:[(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__icon",children:(0,U.jsx)(e,{})}),(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__container",children:[(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__value",children:(0,w.Eo)(i,o)}),(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__title",children:t})]}),(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__badge-container",children:(0,U.jsx)(s,{})})]})}AudienceTileCitiesMetric.propTypes={TileIcon:r().elementType.isRequired,title:r().string.isRequired,topCities:r().object},AudienceTileMetric.propTypes={TileIcon:r().elementType.isRequired,title:r().string.isRequired,metricValue:r().number.isRequired,Badge:r().elementType.isRequired,metricValueFormat:r().object};const mi=(0,a.forwardRef)(({onClick:e,isSaving:t},i)=>(0,U.jsxs)("div",{ref:i,className:"googlesitekit-audience-segmentation-tile-metric__no-data",children:[(0,g.__)("No data to show","google-site-kit"),(0,U.jsx)(P.A,{children:(0,g.__)("Update Analytics to track metric","google-site-kit")}),(0,U.jsx)(B.SpinnerButton,{onClick:e,isSaving:t,disabled:t,danger:!0,children:(0,g.__)("Update","google-site-kit")})]}));mi.propTypes={onClick:r().func.isRequired,isSaving:r().bool};const pi=mi;function PartialDataNotice({content:e}){return(0,U.jsx)("span",{className:"googlesitekit-audience-segmentation-partial-data-notice",children:e})}PartialDataNotice.propTypes={content:r().node};const hi=(0,N.A)(pi);function AudienceTilePagesMetricContent({topContentTitles:e,topContent:t,isTopContentPartialData:i,hasCustomDimension:s,onCreateCustomDimension:o,isSaving:n}){const r=(0,d.A)(),a=(0,se.A)(),c=(0,D.dv)(),u=[D.mp,D.Lg].includes(c),m=t?.dimensionValues?.filter(Boolean)||[],p=!!m.length,h=(0,l.useSelect)(e=>e(Y.oR).getDateRangeDates());function ContentLinkComponent({content:t}){const i=e[t?.value],s=t?.value,o=(0,l.useSelect)(e=>a?null:e(Q.K9).getServiceReportURL("all-pages-and-screens",{filters:{unifiedPagePathScreen:s},dates:h}));return a?(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile__top-content-metric-name",children:i}):(0,U.jsx)(G.A,{href:o,title:i,external:!0,hideExternalIndicator:!0,children:i})}return(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__content",children:[!s&&(0,U.jsx)(hi,{onClick:function(){(0,w.sx)(`${r}_audiences-top-content-cta`,"create_custom_dimension").finally(o)},isSaving:n,onInView:()=>{(0,w.sx)(`${r}_audiences-top-content-cta`,"view_cta")}}),s&&!p&&(0,U.jsx)(AudienceTileNoData,{}),s&&p&&m.map((e,i)=>(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__page-metric-container",children:[(0,U.jsx)(ContentLinkComponent,{content:e}),(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__page-metric-value",children:(0,w.Eo)(t?.metricValues[i]?.value)})]},e?.value)),u&&i&&(0,U.jsx)(PartialDataNotice,{content:(0,g.__)("Still collecting full data for this timeframe, partial data is displayed for this metric","google-site-kit")})]})}function AudienceTilePagesMetric({audienceSlug:e,TileIcon:t,title:i,topContent:s,topContentTitles:o,isTopContentPartialData:n}){const r=(0,D.dv)(),c=(0,d.A)(),u=Q.Cu.googlesitekit_post_type.parameterName,m=(0,l.useSelect)(e=>!e(Q.K9).hasCustomDimensions(u)),p=(0,l.useSelect)(e=>e(Q.K9).getCreateCustomDimensionError(u)),[h]=(0,zt.A)(Q.CV,"isRetrying"),[f]=(0,zt.A)(Q.CV,"autoSubmit"),_=(0,l.useSelect)(e=>e(te.O4).getSetupErrorCode()),[v]=(0,zt.A)(Q.CV,"isAutoCreatingCustomDimensionsForAudience"),y=f&&"access_denied"===_,k=[D.mp,D.Lg].includes(r),{onCreateCustomDimension:E,isSaving:A,setShowErrorModal:b}=Ft(),x=p&&!A||h&&!v||y;return(0,a.useEffect)(()=>{b(x)},[x,b]),(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric googlesitekit-audience-segmentation-tile-metric--top-content",children:[(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__icon",children:(0,U.jsx)(t,{})}),(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__container",children:[(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__title",children:[i,!k&&n&&(0,U.jsx)(BadgeWithTooltip,{className:"googlesitekit-audience-segmentation-partial-data-badge",label:(0,g.__)("Partial data","google-site-kit"),onTooltipOpen:()=>{(0,w.sx)(`${c}_audiences-tile`,"view_top_content_partial_data_tooltip",e)},tooltipTitle:(0,g.__)("Still collecting full data for this timeframe, partial data is displayed for this metric","google-site-kit")})]}),(0,U.jsx)(AudienceTilePagesMetricContent,{topContentTitles:o,topContent:s,isTopContentPartialData:n,hasCustomDimension:!m,onCreateCustomDimension:E,isSaving:A})]})]})}var fi,_i,vi,yi,ki,Ei,Ai,bi,xi,Si;function Mi(){return Mi=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},Mi.apply(null,arguments)}AudienceTilePagesMetricContent.propTypes={topContentTitles:r().object,topContent:r().object,isTopContentPartialData:r().bool,hasCustomDimension:r().bool,onCreateCustomDimension:r().func,isSaving:r().bool},AudienceTilePagesMetric.propTypes={audienceSlug:r().string.isRequired,TileIcon:r().elementType.isRequired,title:r().string.isRequired,topContent:r().object,topContentTitles:r().object,isTopContentPartialData:r().bool};const Ii=e=>a.createElement("svg",Mi({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 109 94"},e),fi||(fi=a.createElement("path",{fill:"#EBEEF0",d:"M54.323 93.529c21.908 0 39.667-17.76 39.667-39.667 0-21.908-17.76-39.667-39.667-39.667s-39.667 17.76-39.667 39.667 17.76 39.667 39.667 39.667"})),_i||(_i=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.578,d:"m37.717 38.469 52.162 18.445a12.955 12.955 0 0 0 16.533-7.896v0a12.95 12.95 0 0 0-3.553-13.955 13 13 0 0 0-4.349-2.582L87.024 28.42l-.014.042c.3-1.877.323-3.787.07-5.67"})),vi||(vi=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.578,d:"M70.947 38.469 18.785 56.914A12.955 12.955 0 0 1 2.25 49.018v0a12.955 12.955 0 0 1 7.902-16.537L21.64 28.42l.016.042a19.4 19.4 0 0 1-.07-5.668"})),yi||(yi=a.createElement("path",{fill:"#70B2F5",d:"m27.61.51.497 83.126a39.625 39.625 0 0 0 53.598-1.071l1.19-82.11z"})),ki||(ki=a.createElement("path",{fill:"#77AD8C",d:"m27.61.51.497 83.126a39.625 39.625 0 0 0 53.598-1.071l1.19-82.11z"})),a.createElement("path",{fill:"#77AD8C",d:"m82.648 17.112.24-16.66h-5.853l-1.033 86.633a40 40 0 0 0 5.702-4.526z",opacity:.2,style:{mixBlendMode:"multiply"}}),Ei||(Ei=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.785,d:"M44.723 46.377c4.916 3.946 11.868 4.892 19.218.273"})),Ai||(Ai=a.createElement("path",{fill:"#7B807D",d:"M80.38 24.992c0-9.563-11.446-17.056-26.059-17.056s-26.06 7.49-26.06 17.056z"})),bi||(bi=a.createElement("path",{fill:"#fff",stroke:"#464B48",strokeLinejoin:"round",strokeWidth:4.363,d:"M39.588 39.737c8.143 0 14.744-6.602 14.744-14.745s-6.601-14.744-14.744-14.744-14.744 6.601-14.744 14.744 6.601 14.744 14.744 14.744Z"})),xi||(xi=a.createElement("path",{fill:"#fff",stroke:"#464B48",strokeLinejoin:"round",strokeWidth:4.363,d:"M69.076 39.737c8.143 0 14.745-6.602 14.745-14.745s-6.602-14.744-14.745-14.744-14.744 6.601-14.744 14.744 6.601 14.744 14.744 14.744Z"})),Si||(Si=a.createElement("path",{stroke:"#B8BDB9",strokeLinejoin:"round",strokeWidth:3.173,d:"M30.86 24.992a8.74 8.74 0 0 1 8.726-8.726M60.348 24.992a8.74 8.74 0 0 1 8.726-8.726"})));function AudienceTileCollectingData(){return(0,U.jsxs)(a.Fragment,{children:[(0,U.jsx)(Ii,{className:"googlesitekit-audience-segmentation-tile__zero-data-image"}),(0,U.jsx)("p",{className:"googlesitekit-audience-segmentation-tile__zero-data-description",children:(0,g.__)("Site Kit is collecting data for this group.","google-site-kit")})]})}var wi;function ji(){return ji=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},ji.apply(null,arguments)}const Ci=e=>a.createElement("svg",ji({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"},e),wi||(wi=a.createElement("path",{fill:"currentColor",d:"m12.907 10.523-1.088-1.088q.17-.88-.506-1.65-.675-.768-1.743-.6L8.482 6.098q.319-.15.638-.225.337-.075.712-.075 1.407 0 2.381.994.994.975.994 2.381 0 .375-.075.712-.075.319-.225.638m2.4 2.362-1.088-1.05a8 8 0 0 0 1.257-1.18 6.7 6.7 0 0 0 .956-1.482 7.3 7.3 0 0 0-2.7-3q-1.743-1.125-3.9-1.125-.544 0-1.069.075t-1.031.225L6.57 4.185a8 8 0 0 1 1.575-.468 8.2 8.2 0 0 1 1.687-.169q2.831 0 5.044 1.575a8.87 8.87 0 0 1 3.206 4.05 8.8 8.8 0 0 1-1.144 2.063 8.2 8.2 0 0 1-1.631 1.65m.375 4.613-3.15-3.113a10 10 0 0 1-1.331.32 10 10 0 0 1-1.369.093q-2.831 0-5.044-1.556a9 9 0 0 1-3.206-4.07 8.7 8.7 0 0 1 .994-1.837q.6-.862 1.369-1.537l-2.063-2.1 1.05-1.05 13.8 13.8zM4.995 6.848A8 8 0 0 0 4 7.917q-.45.58-.769 1.256a7.46 7.46 0 0 0 2.681 3.019q1.763 1.106 3.919 1.106.375 0 .731-.038.357-.056.731-.112l-.675-.713a6 6 0 0 1-.393.094 4 4 0 0 1-.394.019q-1.405 0-2.4-.975-.975-.994-.975-2.4 0-.207.019-.394.037-.187.094-.394z"})));function AudienceTileCollectingDataHideable({onHideTile:e}){return(0,U.jsxs)(a.Fragment,{children:[(0,U.jsx)("p",{className:"googlesitekit-audience-segmentation-tile__zero-data-description",children:(0,g.__)("You can hide this group until data is available.","google-site-kit")}),(0,U.jsx)(G.A,{className:"googlesitekit-audience-segmentation-tile-hide-cta",onClick:e,leadingIcon:(0,U.jsx)(Ci,{width:22,height:22}),secondary:!0,linkButton:!0,children:(0,g.__)("Temporarily hide","google-site-kit")})]})}AudienceTileCollectingDataHideable.propTypes={onHideTile:r().func.isRequired};const Ni=(0,a.forwardRef)(({Widget:e,audienceSlug:t,title:i,infoTooltip:s,isMobileBreakpoint:o,isTileHideable:n,onHideTile:r},a)=>{const l=(0,d.A)();return(0,U.jsx)(e,{ref:a,noPadding:!0,children:(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile",children:(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__zero-data-container",children:[!o&&(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile__header",children:(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__header-title",children:[i,s&&(0,U.jsx)(Yt.A,{title:s,tooltipClassName:"googlesitekit-info-tooltip__content--audience",onOpen:()=>(0,w.sx)(`${l}_audiences-tile`,"view_tile_tooltip",t)})]})}),(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__zero-data-content",children:[(0,U.jsx)(AudienceTileCollectingData,{}),n&&(0,U.jsx)(AudienceTileCollectingDataHideable,{onHideTile:r})]})]})})})});Ni.propTypes={Widget:r().elementType.isRequired,audienceSlug:r().string.isRequired,title:r().string.isRequired,infoTooltip:r().oneOfType([r().string,r().element]),isMobileBreakpoint:r().bool,isTileHideable:r().bool,onHideTile:r().func};const Ti=Ni,Di=(0,N.A)(Ti);function AudienceTileZeroData({Widget:e,audienceSlug:t,title:i,infoTooltip:s,isMobileBreakpoint:o,isTileHideable:n,onHideTile:r}){const a=(0,d.A)();return(0,U.jsx)(Di,{Widget:e,audienceSlug:t,title:i,infoTooltip:s,isMobileBreakpoint:o,isTileHideable:n,onHideTile:function(){(0,w.sx)(`${a}_audiences-tile`,"temporarily_hide",t).finally(r)},onInView:()=>{(0,w.sx)(`${a}_audiences-tile`,"view_tile_collecting_data",t)}})}function AudienceTile({audienceSlug:e,title:t,infoTooltip:i,visitors:s,visitsPerVisitor:o,pagesPerVisit:n,pageviews:r,percentageOfTotalPageViews:a,topCities:c,topContent:u,topContentTitles:m,hasInvalidCustomDimensionError:p,Widget:h,audienceResourceName:f,isZeroData:_,isPartialData:v,isTileHideable:y,onHideTile:k}){const E=(0,D.dv)(),A=(0,d.A)(),b=(0,se.A)(),x=(0,l.useInViewSelect)(e=>{const t=e(Q.K9).getPropertyID();return t&&e(Q.K9).isPropertyPartialData(t)}),S=(0,l.useSelect)(e=>e(Q.K9).isSiteKitAudience(f)),M=(0,l.useInViewSelect)(e=>!S&&void 0!==x&&(!x&&f&&e(Q.K9).isAudiencePartialData(f)),[x,S,f]),I=(0,l.useInViewSelect)(e=>void 0!==x&&(!x&&!M&&e(Q.K9).isCustomDimensionPartialData("googlesitekit_post_type")),[M]),j=(0,l.useInViewSelect)(e=>e(Q.K9).hasCustomDimensions("googlesitekit_post_type"),[]),C=[D.mp,D.Lg].includes(E);return v&&_?(0,U.jsx)(AudienceTileZeroData,{Widget:h,audienceSlug:e,title:t,infoTooltip:i,isMobileBreakpoint:C,isTileHideable:y,onHideTile:k}):(0,U.jsx)(h,{noPadding:!0,children:(0,U.jsxs)("div",{className:X()("googlesitekit-audience-segmentation-tile",{"googlesitekit-audience-segmentation-tile--partial-data":M}),children:[!C&&(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__header",children:[(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__header-title",children:[t,i&&(0,U.jsx)(Yt.A,{title:i,tooltipClassName:"googlesitekit-info-tooltip__content--audience",onOpen:()=>(0,w.sx)(`${A}_audiences-tile`,"view_tile_tooltip",e)})]}),M&&(0,U.jsx)(BadgeWithTooltip,{className:"googlesitekit-audience-segmentation-partial-data-badge",label:(0,g.__)("Partial data","google-site-kit"),tooltipTitle:(0,g.__)("Still collecting full data for this timeframe, partial data is displayed for this group","google-site-kit"),onTooltipOpen:()=>{(0,w.sx)(`${A}_audiences-tile`,"view_tile_partial_data_tooltip",e)}})]}),(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__metrics",children:[C&&M&&(0,U.jsx)(PartialDataNotice,{content:(0,g.__)("Still collecting full data for this timeframe, partial data is displayed for this group","google-site-kit")}),(0,U.jsx)(AudienceTileMetric,{TileIcon:ci,title:(0,g.__)("Visitors","google-site-kit"),metricValue:s.currentValue,Badge:()=>(0,U.jsx)(Qt.A,{previousValue:s.previousValue,currentValue:s.currentValue})}),(0,U.jsx)(AudienceTileMetric,{TileIcon:ui,title:(0,g.__)("Visits per visitor","google-site-kit"),metricValue:o.currentValue,Badge:()=>(0,U.jsx)(Qt.A,{previousValue:o.previousValue,currentValue:o.currentValue})}),(0,U.jsx)(AudienceTileMetric,{TileIcon:ei,title:(0,g.__)("Pages per visit","google-site-kit"),metricValue:n.currentValue,Badge:()=>(0,U.jsx)(Qt.A,{previousValue:n.previousValue,currentValue:n.currentValue}),metricValueFormat:{style:"decimal",maximumFractionDigits:2}}),(0,U.jsx)(AudienceTileMetric,{TileIcon:si,title:(0,g.sprintf)(/* translators: %s: is a percentage value such as 33.3%. */ /* translators: %s: is a percentage value such as 33.3%. */ (0,g.__)("%s of total pageviews","google-site-kit"),(0,w.Eo)(a,{style:"percent",maximumFractionDigits:1})),metricValue:r.currentValue,Badge:()=>(0,U.jsx)(Qt.A,{previousValue:r.previousValue,currentValue:r.currentValue})}),(0,U.jsx)(AudienceTileCitiesMetric,{TileIcon:Xt,title:(0,g.__)("Cities with the most visitors","google-site-kit"),topCities:c}),(!b||j&&!p)&&(0,U.jsx)(AudienceTilePagesMetric,{audienceSlug:e,TileIcon:ri,title:(0,g.__)("Top content by pageviews","google-site-kit"),topContentTitles:m,topContent:u,isTopContentPartialData:I})]})]})})}var Ri,Oi,Li,Bi,zi,Pi,Fi,Gi,Ui,Vi,Wi,Hi;function qi(){return qi=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},qi.apply(null,arguments)}AudienceTileZeroData.propTypes={Widget:r().elementType.isRequired,audienceSlug:r().string.isRequired,title:r().string.isRequired,infoTooltip:r().oneOfType([r().string,r().element]),isMobileBreakpoint:r().bool,isTileHideable:r().bool,onHideTile:r().func},AudienceTile.propTypes={audienceSlug:r().string.isRequired,title:r().string.isRequired,infoTooltip:r().oneOfType([r().string,r().element]),visitors:r().object,visitsPerVisitor:r().object,pagesPerVisit:r().object,pageviews:r().object,percentageOfTotalPageViews:r().number,topCities:r().object,topContent:r().object,topContentTitles:r().object,hasInvalidCustomDimensionError:r().bool,Widget:r().elementType.isRequired,audienceResourceName:r().string.isRequired,isZeroData:r().bool,isPartialData:r().bool,isTileHideable:r().bool,onHideTile:r().func};const Yi=e=>a.createElement("svg",qi({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 190 142"},e),Ri||(Ri=a.createElement("path",{fill:"#F3F5F7",d:"M11.755 110.799a44 44 0 0 0 4.457 4.095c14.958 11.965 27.316 11.946 44.424 9.762 15.862-2.025 17.862-10.923 35.362-10.923s25.665 6.38 46 5 38.081-23.761 44.757-41.774c9.833-26.528-4.519-57.596-24.82-66.096-18.699-8.5-31.437.01-51.437-3.63C84.998 2.59 79.998-4.051 60.636 4c-20.53 8.701-20.455 23.533-32.699 38.667C18.974 53.747 4.956 56.312.734 76.959c-2.673 13.07 3.077 25.467 11.021 33.84"})),a.createElement("path",{fill:"#161B18",d:"M96.07 141.772c39.765 0 72-2.014 72-4.5 0-2.485-32.235-4.5-72-4.5s-72 2.015-72 4.5c0 2.486 32.236 4.5 72 4.5",opacity:.1,style:{mixBlendMode:"multiply"}}),Oi||(Oi=a.createElement("path",{fill:"#CBD0D3",d:"M96.07 141.772c39.765 0 72-2.014 72-4.5 0-2.485-32.235-4.5-72-4.5s-72 2.015-72 4.5c0 2.486 32.236 4.5 72 4.5"})),Li||(Li=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.7,d:"M72.657 62.826c2.14 7.94 9.59 13.553 17.488 15.847 7.898 2.295 16.295 1.846 24.51 1.435 3.883-.192 7.855-.363 11.576.764s7.202 3.821 8.191 7.58c.568 2.16.147 4.49-.959 6.424"})),Bi||(Bi=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.705,d:"M57.306 76.348c-1.237 19.582-8.053 37.15-3.497 59.224h-5.188M63.171 135.572h-5.19l9.173-59.224"})),zi||(zi=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:1.7,d:"M40.754 70.174c-4.429 2-12.93 6.455-12.929 15.5"})),Pi||(Pi=a.createElement("path",{fill:"#CBD0D3",d:"m76.804 102.64-3.602.327-21.976 1.988-12.845 1.16-1.22-28.616-2.118-49.8 40.092-1.46.81 37.088.109 4.993.745 34.204z"})),Fi||(Fi=a.createElement("path",{fill:"#999F9B",d:"m73.203 102.967 2.067-.188 1.537-.139-1.671-76.403-2.303.105 1.24 72.43-35.862 3.393.125 2.852.048 1.095 12.845-1.159 21.977-1.989z"})),Gi||(Gi=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:1.7,d:"M27.827 85.674c0 5.264 5.99 9.06 10.262 7.203"})),Ui||(Ui=a.createElement("path",{stroke:"#7B807D",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:4.393,d:"m145.07 26.773-28 108.499"})),Vi||(Vi=a.createElement("path",{fill:"#E77D5B",d:"M143.121 18.374 101.519 60.22a4.39 4.39 0 0 0-1.124 4.247 4.4 4.4 0 0 0 3.116 3.096l57.038 15.105a4.394 4.394 0 0 0 5.365-5.402l-15.439-56.943a4.393 4.393 0 0 0-7.354-1.949"})),Wi||(Wi=a.createElement("path",{fill:"#962C0A",d:"m138.137 42.556 2.44-9.216 4.756 1.26-2.44 9.215-3.501 11.163-3.78-1.001zm-3.301 22.078a3.37 3.37 0 0 1-2.088-1.553 3.37 3.37 0 0 1-.316-2.584q.36-1.359 1.541-2.046a3.38 3.38 0 0 1 2.584-.316q1.359.36 2.046 1.542t.327 2.54a3.38 3.38 0 0 1-1.553 2.09q-1.182.686-2.541.327"})),Hi||(Hi=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.7,d:"M133.461 94.876a8.35 8.35 0 0 1-4.565 3.774c-4.063 1.39-9.013-.82-10.694-4.77"}))),Zi=(0,a.forwardRef)(({errors:e,onRetry:t,onRequestAccess:i},s)=>{const o=e.some(e=>(0,j.SG)(e));return(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-error",ref:s,children:(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-error__container",children:[(0,U.jsx)(Yi,{className:"googlesitekit-audience-segmentation-tile-error__image"}),(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-error__body",children:[(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-error__message",children:(0,U.jsx)(T.A,{as:"h3",type:"headline",size:"small",className:"googlesitekit-audience-segmentation-tile-error__title",children:o?(0,g.__)("Insufficient permissions","google-site-kit"):(0,g.__)("Data loading failed","google-site-kit")})}),(0,U.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-error__actions",children:(0,U.jsx)(z.A,{moduleSlug:"analytics-4",error:e,GetHelpLink:o?GetHelpLink:void 0,hideGetHelpLink:!o,buttonVariant:"danger",onRetry:t,onRequestAccess:i})})]})]})})});Zi.propTypes={errors:r().array.isRequired,onRetry:r().func.isRequired,onRequestAccess:r().func.isRequired};const Qi=Zi,Ki=(0,N.A)(Qi);function AudienceTileError({audienceSlug:e,errors:t}){const i=(0,d.A)(),s=t.some(e=>(0,j.SG)(e));return(0,U.jsx)(Ki,{errors:t,onInView:()=>{const t=s?"insufficient_permissions_error":"data_loading_error";(0,w.sx)(`${i}_audiences-tile`,t,e)},onRetry:()=>{(0,w.sx)(`${i}_audiences-tile`,"data_loading_error_retry",e)},onRequestAccess:()=>{(0,w.sx)(`${i}_audiences-tile`,"insufficient_permissions_error_request_access",e)}})}function AudienceTooltipMessage({audienceSlug:e,audienceName:t}){const i=(0,l.useSelect)(e=>e(te.O4).getDocumentationLinkURL("visitor-group-insights"));return(0,a.useMemo)(()=>{switch(e){case"new-visitors":return(0,F.A)((0,g.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */ (0,g.__)('%s are people who visited your site for the first time. Note that under some circumstances it\'s possible for a visitor to be counted in both the "new" and "returning" groups. <link>Learn more</link>',"google-site-kit"),"<strong>New visitors</strong>"),{strong:(0,U.jsx)("strong",{}),link:(0,U.jsx)(G.A,{href:i,external:!0,hideExternalIndicator:!0})});case"returning-visitors":return(0,F.A)((0,g.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */ (0,g.__)('%s are people who have visited your site at least once before. Note that under some circumstances it\'s possible for a visitor to be counted in both the "new" and "returning" groups. <link>Learn more</link>',"google-site-kit"),"<strong>Returning visitors</strong>"),{strong:(0,U.jsx)("strong",{}),link:(0,U.jsx)(G.A,{href:i,external:!0,hideExternalIndicator:!0})});default:return(0,F.A)((0,g.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */ (0,g.__)("%s is an audience that already exists in your Analytics property. Note that it's possible for a visitor to be counted in more than one group. <link>Learn more</link>","google-site-kit"),`<strong>${t}</strong>`),{strong:(0,U.jsx)("strong",{}),link:(0,U.jsx)(G.A,{href:i,external:!0,hideExternalIndicator:!0})})}},[e,t,i])}function PlaceholderTile({Widget:e}){const t=(0,l.useSelect)(e=>{const t=e(Y.oR).getConfiguredAudiences();return e(Q.K9).getConfigurableAudiences().some(e=>"DEFAULT_AUDIENCE"!==e.audienceType&&!t.includes(e.name))}),i=(0,l.useSelect)(e=>e(te.O4).getGoogleSupportURL({path:"/analytics/answer/12799087"})),{setValue:s}=(0,l.useDispatch)(c.nX),o=(0,U.jsx)(G.A,{href:i,secondary:!0,external:!0});return(0,U.jsx)(e,{className:"googlesitekit-audience-segmentation-tile-placeholder",children:(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-placeholder__container",children:[(0,U.jsx)(Nt,{className:"googlesitekit-audience-segmentation-tile-placeholder__image"}),(0,U.jsxs)("div",{className:X()("googlesitekit-audience-segmentation-tile-placeholder__body",{"googlesitekit-audience-segmentation-tile-placeholder__body--without-selectable-audiences":!t}),children:[(0,U.jsx)(T.A,{as:"h3",type:"title",size:"small",className:"googlesitekit-audience-segmentation-tile-placeholder__title",children:t?(0,g.__)("Compare your group to other groups","google-site-kit"):(0,g.__)("Create more visitor groups","google-site-kit")}),(0,U.jsx)("p",{className:"googlesitekit-audience-segmentation-tile-placeholder__description",children:t?(0,F.A)((0,g.__)("<SelectGroupLink>Select</SelectGroupLink> another group to compare with your current group or learn more about how to group site visitors in <AnalyticsLink>Analytics</AnalyticsLink>","google-site-kit"),{AnalyticsLink:o,SelectGroupLink:(0,U.jsx)(G.A,{onClick:()=>s(ne,!0),secondary:!0})}):(0,F.A)((0,g.__)("Learn more about how to group site visitors in <AnalyticsLink>Analytics</AnalyticsLink>","google-site-kit"),{AnalyticsLink:o})})]})]})})}function MaybePlaceholderTile({Widget:e,loading:t,allTilesError:i,visibleAudienceCount:s}){return!1!==i&&!t||1!==s?null:t?(0,U.jsx)(e,{noPadding:!0,children:(0,U.jsx)(AudienceTileLoading,{})}):(0,U.jsx)(PlaceholderTile,{Widget:e})}AudienceTileError.propTypes={audienceSlug:r().string.isRequired,errors:r().array.isRequired},AudienceTooltipMessage.propTypes={audienceSlug:r().string.isRequired},MaybePlaceholderTile.propTypes={Widget:r().elementType.isRequired,loading:r().bool.isRequired,allTilesError:r().bool,visibleAudienceCount:r().number.isRequired};var Xi=i(31790);function Body({activeTileIndex:e,allTilesError:t,individualTileErrors:i,loading:s,topCitiesReportsLoaded:o,topContentReportsLoaded:n,topContentPageTitlesReportsLoaded:r,visibleAudiences:c,Widget:d}){const g=(0,D.dv)(),u=(0,se.A)(),m=g===D.mp||g===D.Lg,p=(0,l.useInViewSelect)(e=>e(Q.K9).getOrSyncAvailableAudiences(),[]),h=(0,l.useInViewSelect)(e=>e(Y.oR).getConfiguredAudiences(),[]),[f,_]=(0,l.useSelect)(e=>e(Q.K9).getConfiguredSiteKitAndOtherAudiences())||[[],[]],v=(0,l.useSelect)(e=>e(Q.K9).hasAudiencePartialData(f)),y=(0,l.useInViewSelect)(e=>h?.reduce((t,i)=>(t[i]=e(Q.K9).isAudiencePartialData(i),t),{}),[h]),{report:k,reportError:E,siteKitAudiencesReport:A,totalPageviews:b,totalPageviewsReportError:x,topCitiesReport:S,topContentReport:M,topContentReportErrors:I,topContentPageTitlesReport:w,topContentPageTitlesReportErrors:j}=Ht({isSiteKitAudiencePartialData:v,siteKitAudiences:f,otherAudiences:_});function C(e,t){const i=p?.filter(({name:t})=>t===e)?.[0]?.displayName||"",s=p?.filter(({name:t})=>t===e)?.[0]?.audienceSlug||"",{current:o,previous:n}=function(e){const t=f.some(t=>t.name===e),i=f.find(t=>t.name===e)?.audienceSlug;function s(s){let o;if(t&&v){const e="new-visitors"===i?"new":"returning";o=A?.rows?.find(({dimensionValues:t})=>t?.[0]?.value===e&&t?.[1]?.value===s)}else o=k?.rows?.find(({dimensionValues:t})=>t?.[0]?.value===e&&t?.[1]?.value===s);return[Number(o?.metricValues?.[0]?.value||0),Number(o?.metricValues?.[1]?.value||0),Number(o?.metricValues?.[2]?.value||0),Number(o?.metricValues?.[3]?.value||0)]}return{current:s("date_range_0"),previous:s("date_range_1")}}(e),r=o[0],a=n[0],l=o[1],c=n[1],d=o[2],g=n[2],u=o[3],m=n[3],h=S?.[t],_=M?.[t],E=w?.[t]?.rows?.reduce((e,t)=>(e[t.dimensionValues[0].value]=t.dimensionValues[1].value,e),{})||{},b=f.some(t=>t.name===e);let x=k,I=e;b&&v&&(x=A,I="new-visitors"===s?"new":"returning");const j=function(e,t){const i=e?.rows?.find(e=>e.dimensionValues?.[0]?.value===t);return 0===(i?.metricValues?.[0]?.value||0)}(x,I);return{audienceName:i,audienceSlug:s,visitors:r,prevVisitors:a,visitsPerVisitors:l,prevVisitsPerVisitors:c,pagesPerVisit:d,prevPagesPerVisit:g,pageviews:u,prevPageviews:m,topCities:h,topContent:_,topContentTitles:E,isZeroData:j,isPartialData:!b&&y[e]}}const N=Object.values(I).some(qt.B)||Object.values(j).some(qt.B),{dismissItem:T}=(0,l.useDispatch)(Y.oR),{fetchSyncAvailableCustomDimensions:R}=(0,l.useDispatch)(Q.K9),O=(0,a.useCallback)(e=>{T(`audience-tile-${e}`)},[T]);return(0,a.useEffect)(()=>{!u&&N&&R()},[R,N,u]),(0,U.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[t&&!s&&(0,U.jsx)(q,{Widget:d,errors:[...Object.values(i).flat(2),E,x]}),(!1===t||s)&&c.map((t,a)=>{if(m&&a!==e)return null;const{audienceName:l,audienceSlug:g,visitors:u,prevVisitors:p,visitsPerVisitors:h,prevVisitsPerVisitors:f,pagesPerVisit:_,prevPagesPerVisit:v,pageviews:y,prevPageviews:k,topCities:E,topContent:A,topContentTitles:x,isZeroData:S,isPartialData:M}=C(t,a),I=E?.rows?(0,Xi.S)(E.rows):[];return!s&&o?.[t]&&n?.[t]&&r?.[t]&&void 0!==S&&void 0!==M?i[t].length>0?(0,U.jsx)(AudienceTileError,{audienceSlug:g,errors:i[t]},t):(0,U.jsx)(AudienceTile,{audienceSlug:g,title:l,infoTooltip:(0,U.jsx)(AudienceTooltipMessage,{audienceName:l,audienceSlug:g}),visitors:{currentValue:u,previousValue:p},visitsPerVisitor:{currentValue:h,previousValue:f},pagesPerVisit:{currentValue:_,previousValue:v},pageviews:{currentValue:y,previousValue:k},percentageOfTotalPageViews:0!==b?y/b:0,topCities:{dimensionValues:[I?.[0]?.dimensionValues?.[0],I?.[1]?.dimensionValues?.[0],I?.[2]?.dimensionValues?.[0]],metricValues:[I?.[0]?.metricValues?.[0],I?.[1]?.metricValues?.[0],I?.[2]?.metricValues?.[0]],total:u},topContent:{dimensionValues:[A?.rows?.[0]?.dimensionValues?.[0],A?.rows?.[1]?.dimensionValues?.[0],A?.rows?.[2]?.dimensionValues?.[0]],metricValues:[A?.rows?.[0]?.metricValues?.[0],A?.rows?.[1]?.metricValues?.[0],A?.rows?.[2]?.metricValues?.[0]]},topContentTitles:x,hasInvalidCustomDimensionError:N,Widget:d,audienceResourceName:t,isZeroData:S,isPartialData:M,isTileHideable:c.length>1,onHideTile:()=>O(t)},t):(0,U.jsx)(d,{noPadding:!0,children:(0,U.jsx)(AudienceTileLoading,{})},t)}),!m&&(0,U.jsx)(MaybePlaceholderTile,{Widget:d,loading:s,allTilesError:t,visibleAudienceCount:c.length})]})}function Header({activeTileIndex:e,setActiveTile:t,visibleAudiences:i}){const s=(0,d.A)(),o=(0,l.useInViewSelect)(e=>e(Q.K9).getOrSyncAvailableAudiences(),[]);return(0,U.jsx)(B.TabBar,{className:"googlesitekit-widget-audience-tiles__tabs googlesitekit-tab-bar--start-aligned-high-contrast",activeIndex:e,handleActiveIndexUpdate:e=>t(i[e]),children:i.map((e,t)=>{const i=o?.filter(({name:t})=>t===e)?.[0]?.displayName||"",n=o?.filter(({name:t})=>t===e)?.[0]?.audienceSlug||"",r=(0,U.jsx)(AudienceTooltipMessage,{audienceName:i,audienceSlug:n});return(0,U.jsxs)(B.Tab,{"aria-label":i,children:[i,(0,U.jsx)(Yt.A,{title:r,tooltipClassName:"googlesitekit-info-tooltip__content--audience",onOpen:()=>{(0,w.sx)(`${s}_audiences-tile`,"view_tile_tooltip",n)}})]},t)})},i.length)}function AudienceTiles_hasZeroDataForAudience(e,t){const i=e?.rows?.find(e=>e.dimensionValues?.[0]?.value===t);return 0===(i?.metricValues?.[0]?.value||0)}function AudienceTiles({Widget:e,widgetLoading:t}){const i=(0,D.dv)(),s=i===D.mp||i===D.Lg,o=(0,l.useInViewSelect)(e=>e(Y.oR).getConfiguredAudiences(),[]),n=(0,l.useInViewSelect)(e=>e(Q.K9).getOrSyncAvailableAudiences(),[]),[r,c]=(0,l.useSelect)(e=>e(Q.K9).getConfiguredSiteKitAndOtherAudiences())||[[],[]],d=(0,l.useSelect)(e=>e(Q.K9).hasAudiencePartialData(r)),{report:g,reportLoaded:u,reportError:m,siteKitAudiencesReport:p,siteKitAudiencesReportLoaded:h,siteKitAudiencesReportError:f,totalPageviewsReportLoaded:_,totalPageviewsReportError:v,topCitiesReportsLoaded:y,topCitiesReportErrors:k,topContentReportsLoaded:E,topContentReportErrors:A,topContentPageTitlesReportsLoaded:b,topContentPageTitlesReportErrors:x}=Ht({isSiteKitAudiencePartialData:d,siteKitAudiences:r,otherAudiences:c}),S=o?.reduce((e,t)=>(e[t]=[],[k,A,x].forEach(i=>{const s=i[t];s&&!(0,qt.B)(s)&&e[t].push(s)}),e),{}),M=(0,l.useSelect)(e=>e(Y.oR).getDismissedItems()),{isDismissingItem:I}=(0,l.useSelect)(e=>e(Y.oR)),{dismissItem:w}=(0,l.useDispatch)(Y.oR),j=(0,a.useRef)({}),[C,N]=(0,a.useMemo)(()=>{const e=[],t=[],i=o?.slice().filter(e=>n.some(t=>t.name===e));for(;i?.length>0;){const s=i.shift(),o=M?.includes(`audience-tile-${s}`),n=r.some(e=>e.name===s);let a=g,l=s;if(n&&d){a=p;const e=r.find(e=>e.name===s)?.audienceSlug;l="new-visitors"===e?"new":"returning"}const c=AudienceTiles_hasZeroDataForAudience(a,l),u=i.length+t.length>0;o&&c&&u||(o&&!c&&e.push(s),t.push(s))}return[e,t]},[n,o,M,d,g,r,p]);const T=function(){const e=[];return g&&e.push(m),p&&e.push(f),!(!e.every(Boolean)&&!v)||o?.every(e=>S[e].length>0)}();(0,a.useEffect)(()=>{C.forEach(e=>{const t=`audience-tile-${e}`;j.current[t]||(w(t,{expiresInSeconds:1}),j.current[t]=!0)})},[C,w,I]);const R=(0,l.useSelect)(e=>e(Q.K9).isFetchingSyncAvailableCustomDimensions()),[O,L]=(0,a.useState)(N[0]),B=(0,a.useCallback)(e=>{const t=N.indexOf(e);return-1===t?0:t},[N]);(0,a.useEffect)(()=>{N.includes(O)||L(N[0])},[O,N]);const z=B(O),{showErrorModal:P}=Ft(),F=t||!u||!h||!_||!y||!E||!b||R;return(0,U.jsxs)(a.Fragment,{children:[(0,U.jsxs)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:[!1===T&&!F&&s&&N.length>0&&(0,U.jsx)(Header,{activeTileIndex:z,setActiveTile:L,visibleAudiences:N}),(0,U.jsx)(Body,{activeTileIndex:z,allTilesError:T,individualTileErrors:S,loading:F,topCitiesReportsLoaded:y,topContentReportsLoaded:E,topContentPageTitlesReportsLoaded:b,visibleAudiences:N,Widget:e})]}),P&&(0,U.jsx)(Ut,{})]})}function AudienceTilesWidget({Widget:e}){const t=(0,l.useSelect)(e=>{const t=e(Q.K9).getOrSyncAvailableAudiences();return t?.map(e=>e.name)}),i=(0,l.useSelect)(e=>e(Y.oR).getConfiguredAudiences()),s=(0,l.useSelect)(e=>e(Q.K9).hasSyncedAudiences()),o=(0,l.useSelect)(e=>e(Q.K9).isSyncingAudiences()),{clearActionErrors:n,maybeSyncAvailableAudiences:r,syncAvailableAudiences:c}=(0,l.useDispatch)(Q.K9),d=(0,l.useSelect)(e=>e(Q.K9).isSettingUpAudiences()),g=(0,l.useSelect)(e=>e(Q.K9).getErrorForAction("syncAvailableAudiences"));if((0,a.useEffect)(()=>{s||o||d||r()},[s,o,d,r]),g){const t=(0,j.SG)(g);return(0,U.jsx)(q,{errors:g,Widget:e,onRetry:t?void 0:async()=>{await n("syncAvailableAudiences"),await c()},showRetryButton:!t})}const u=i?.some(e=>t?.includes(e));return u?(0,U.jsx)(AudienceTiles,{Widget:e,widgetLoading:!s||!t||!i}):s?(0,U.jsx)(Rt,{Widget:e,WidgetNull:Z.A}):(0,U.jsx)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:(0,U.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[(0,U.jsx)(e,{noPadding:!0,children:(0,U.jsx)(AudienceTileLoading,{})}),(0,U.jsx)(e,{noPadding:!0,children:(0,U.jsx)(AudienceTileLoading,{})})]})})}Body.propTypes={activeTileIndex:r().number.isRequired,allTilesError:r().bool.isRequired,individualTileErrors:r().object,loading:r().bool.isRequired,topCitiesReportsLoaded:r().object.isRequired,topContentReportsLoaded:r().object.isRequired,topContentPageTitlesReportsLoaded:r().object.isRequired,visibleAudiences:r().array.isRequired,Widget:r().elementType.isRequired},AudienceTiles.propTypes={Widget:r().elementType.isRequired,widgetLoading:r().bool.isRequired},AudienceTilesWidget.propTypes={Widget:r().elementType.isRequired,WidgetNull:r().elementType.isRequired};const $i=(0,C.A)({moduleName:I.L1})(AudienceTilesWidget);var Ji=i(20762),es=i(15650),ts=i(11999),is=i(19793);function AudienceCreationSuccessNotice(){const e=(0,d.A)(),{setValue:t}=(0,l.useDispatch)(c.nX),i=(0,l.useSelect)(e=>e(c.nX).getValue(ge)),s=(0,l.useSelect)(e=>e(c.nX).getValue(ne));return(0,a.useEffect)(()=>{s&&i&&(0,w.sx)(`${e}_audiences-sidebar-create-audiences-success`,"view_notification")},[s,i,e]),i?(0,U.jsxs)("div",{className:"googlesitekit-audience-selection-panel__success-notice",children:[(0,U.jsx)("div",{className:"googlesitekit-audience-selection-panel__success-notice-icon",children:(0,U.jsx)(is.A,{width:24,height:24})}),(0,U.jsx)("p",{className:"googlesitekit-audience-selection-panel__success-notice-message",children:(0,g.__)("Visitor group created successfully!","google-site-kit")}),(0,U.jsx)("div",{className:"googlesitekit-audience-selection-panel__success-notice-actions",children:(0,U.jsx)(B.Button,{onClick:()=>{(0,w.sx)(`${e}_audiences-sidebar-create-audiences-success`,"dismiss_notification").finally(()=>{t(ge,!1)})},tertiary:!0,children:(0,g.__)("Got it","google-site-kit")})})]}):null}var ss,os=i(3183);function ns(){return ns=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},ns.apply(null,arguments)}const rs=e=>a.createElement("svg",ns({xmlns:"http://www.w3.org/2000/svg",fill:"none"},e),ss||(ss=a.createElement("path",{fill:"currentColor",d:"M10 18.333q-.687 0-1.188-.479a1.66 1.66 0 0 1-.479-1.188h3.334q0 .689-.5 1.188-.48.48-1.167.48Zm-3.333-2.5v-1.667h6.666v1.667zm.208-2.5a6.5 6.5 0 0 1-2.292-2.292Q3.75 9.604 3.75 7.916q0-2.604 1.813-4.416Q7.393 1.667 10 1.667q2.604 0 4.417 1.833 1.833 1.812 1.833 4.417a6 6 0 0 1-.854 3.124 6.3 6.3 0 0 1-2.271 2.292zm.5-1.667h5.25a4.5 4.5 0 0 0 1.438-1.645q.52-.98.52-2.105 0-1.915-1.333-3.25Q11.917 3.334 10 3.333c-1.917-.001-2.361.445-3.25 1.333q-1.333 1.335-1.333 3.25 0 1.125.5 2.105a4.7 4.7 0 0 0 1.458 1.645"}))),as=(0,a.forwardRef)(({className:e,content:t,dismissLabel:i,Icon:s=rs,onDismiss:o},n)=>(0,U.jsxs)("div",{ref:n,className:X()("googlesitekit-audience-segmentation-info-notice",e),children:[(0,U.jsx)(s,{width:"20",height:"20"}),(0,U.jsxs)("div",{className:"googlesitekit-audience-segmentation-info-notice__body",children:[(0,U.jsx)(P.A,{children:t}),i&&(0,U.jsx)(B.Button,{onClick:o,className:"googlesitekit-audience-segmentation-info-notice__dismiss",tertiary:!0,children:i})]})]}));as.propTypes={className:r().string,content:r().string.isRequired,dismissLabel:r().string,Icon:r().elementType,onDismiss:r().func};const ls=as;var cs;function ds(){return ds=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},ds.apply(null,arguments)}const gs=e=>a.createElement("svg",ds({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 23 22"},e),cs||(cs=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.5 22q-2.283 0-4.29-.852a11.3 11.3 0 0 1-3.492-2.366 11.3 11.3 0 0 1-2.365-3.492A10.9 10.9 0 0 1 .5 11q0-2.283.853-4.29a11.3 11.3 0 0 1 2.364-3.492A10.9 10.9 0 0 1 7.21.88 10.6 10.6 0 0 1 11.5 0q2.283 0 4.29.88a10.9 10.9 0 0 1 3.492 2.337q1.486 1.486 2.338 3.493.88 2.007.88 4.29t-.88 4.29a10.9 10.9 0 0 1-2.338 3.492q-1.485 1.485-3.492 2.366A10.9 10.9 0 0 1 11.5 22m0-14.3q.468 0 .77-.303.33-.33.33-.797a1 1 0 0 0-.33-.77 1 1 0 0 0-.77-.33q-.467 0-.797.33a1.04 1.04 0 0 0-.303.77q0 .468.303.798.33.302.797.302m-1.1 8.8V9.9h2.2v6.6z",clipRule:"evenodd"})));function AddGroupNotice(){const[e,t]=(0,a.useState)(!1),i=(0,l.useInViewSelect)(e=>e(Y.oR).isItemDismissed(oe)),s=(0,l.useSelect)(e=>e(c.nX).getValue(ne)),o=(0,l.useSelect)(e=>e(Q.K9).isFetchingSyncAvailableAudiences()),[n]=(0,zt.A)(re,ae),{dismissItem:r}=(0,l.useDispatch)(Y.oR),d=(0,a.useCallback)(async()=>{await r(oe)},[r]);return(0,a.useEffect)(()=>{Array.isArray(n)&&(n.length>1&&t(!0),s||1!==n?.length||t(!1))},[n,s,t]),i||e||o||!n?.length?null:(0,U.jsx)(ls,{className:"googlesitekit-audience-selection-panel__add-group-notice",content:(0,g.__)("By adding another group to your dashboard, you will be able to compare them and understand which content brings back users from each group","google-site-kit"),dismissLabel:(0,g.__)("Got it","google-site-kit"),Icon:gs,onDismiss:d})}AddGroupNotice.propTypes={savedItemSlugs:r().array};var us=i(37325),ms=i(3749),ps=i(11763);function AudienceCreationErrorNotice({apiErrors:e,hasOAuthError:t}){const i=(0,d.A)(),s=Array.isArray(e)?e:[e],o=(0,l.useSelect)(e=>e(te.O4).getErrorTroubleshootingLinkURL({code:"analytics-4_insufficient_permissions"})),n=(0,l.useSelect)(e=>e(Q.K9).getServiceEntityAccessURL()),r=(0,l.useSelect)(e=>e(te.O4).getErrorTroubleshootingLinkURL({code:"access_denied"})),u=(0,l.useSelect)(e=>e(c.nX).getValue(ne)),m=s.length>0,p=s.some(e=>(0,j.SG)(e));if((0,a.useEffect)(()=>{if(!u||!m&&!t)return;let e="setup_error";t?e="auth_error":p&&(e="insufficient_permissions_error"),(0,w.sx)(`${i}_audiences-sidebar-create-audiences`,e)},[m,p,t,u,i]),!s.length&&!t)return null;let h,f;return t?f=(0,F.A)((0,g.__)("Setup was interrupted because you didnât grant the necessary permissions. Click on Create again to retry. If that doesnât work, <HelpLink />","google-site-kit"),{HelpLink:(0,U.jsx)(G.A,{href:r,external:!0,hideExternalIndicator:!0,children:(0,g.__)("get help","google-site-kit")})}):p?(h=(0,g.__)("Insufficient permissions","google-site-kit"),f=(0,F.A)((0,g.__)("Contact your administrator. Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:(0,U.jsx)(G.A,{href:o,external:!0,hideExternalIndicator:!0,children:(0,g.__)("Get help","google-site-kit")})})):(h=(0,g.__)("Analytics update failed","google-site-kit"),f=(0,g.__)("Click on Create to try again.","google-site-kit")),(0,U.jsx)(us.A,{className:"googlesitekit-audience-creation-error-notice",type:ms.L.ERROR,title:h,description:f,ctaButton:p?{label:(0,g.__)("Request access","google-site-kit"),href:n,onClick:()=>{(0,w.sx)(`${i}_audiences-sidebar-create-audiences`,"insufficient_permissions_error_request_access")}}:void 0,hideIcon:!0})}function AudienceCreationNotice(){const e=(0,d.A)(),[t,i]=(0,a.useState)(!1),s=(0,l.useInViewSelect)(e=>{const{getConfigurableAudiences:t}=e(Q.K9),i=t();if(void 0!==i)return i.length?i.filter(({audienceType:e})=>"SITE_KIT_AUDIENCE"===e):[]}),{dismissItem:o}=(0,l.useDispatch)(Y.oR),{setValue:n}=(0,l.useDispatch)(c.nX),r=(0,l.useInViewSelect)(e=>e(Y.oR).isItemDismissed(de)),u=(0,l.useInViewSelect)(e=>e(Y.oR).isItemDismissed(ue)),m=(0,l.useInViewSelect)(e=>e(Y.oR).hasScope(Q.S9)),p=(0,l.useSelect)(e=>e(c.nX).getValue(ne));const h=(0,Lt.F)(globalThis.location.href,{notification:"audience_segmentation"}),{setPermissionScopeError:f}=(0,l.useDispatch)(Y.oR),{createAudience:_,syncAvailableAudiences:v}=(0,l.useDispatch)(Q.K9),[y,k]=(0,zt.A)(me,"autoSubmit"),[E,A]=(0,zt.A)(me,"audienceToCreate"),[b,x]=(0,a.useState)([]),S=(0,a.useCallback)(async e=>{if(i(e),!m)return k(!0),A(e),void f({code:j.db,message:(0,g.__)("Additional permissions are required to create a new audience in Analytics.","google-site-kit"),data:{status:403,scopes:[Q.S9],skipModal:!0,redirectURL:h}});k(!1),A(void 0);const{error:t}=await _(Q.fB[e]);x(t?[t]:[]),await v(),i(!1),t||n(ge,!0)},[m,_,k,A,v,f,h,n]);const M=(0,l.useSelect)(e=>e(te.O4).getSetupErrorCode()),I=y&&"access_denied"===M;(0,a.useEffect)(()=>{!async function(){m&&y&&(n(ne,!0),await S(E))}()},[E,S,m,y,n]);const C=!r&&s?.length<2;if((0,a.useEffect)(()=>{p&&C&&(0,w.sx)(`${e}_audiences-sidebar-create-audiences`,"view_notice")},[p,C,e]),(0,a.useEffect)(()=>{!p||m||u||(0,w.sx)(`${e}_audiences-sidebar-create-audiences`,"view_oauth_notice")},[m,u,p,e]),!C)return null;const N=Object.keys(Q.fB).filter(e=>!s.some(t=>t.audienceSlug===e));return(0,U.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice",children:[(0,U.jsx)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-header",children:(0,U.jsx)("p",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-title",children:(0,g.__)("Create groups suggested by Site Kit","google-site-kit")})}),(0,U.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-body",children:[N&&N.map(i=>(0,U.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience",children:[(0,U.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience-details",children:[(0,U.jsx)(T.A,{as:"h3",type:"title",size:"small",children:Q.fB[i].displayName}),(0,U.jsx)("p",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience-description",children:Q.fB[i].description})]}),(0,U.jsx)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience-button",children:(0,U.jsx)(ps.A,{spinnerPosition:ps.k.BEFORE,onClick:()=>{(0,w.sx)(`${e}_audiences-sidebar-create-audiences`,"create_audience",i).finally(()=>{S(i)})},isSaving:t===i,children:(0,g.__)("Create","google-site-kit")})})]},i)),(0,U.jsx)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-dismiss",children:(0,U.jsx)(G.A,{onClick:function(){o(de)},children:(0,g.__)("No thanks","google-site-kit")})})]}),!m&&!u&&(0,U.jsx)(us.A,{type:ms.L.WARNING,description:(0,g.__)("Creating these groups require more data tracking. You will be directed to update your Analytics property.","google-site-kit"),dismissButton:{onClick:function(){(0,w.sx)(`${e}_audiences-sidebar-create-audiences`,"dismiss_oauth_notice").finally(()=>{o(ue)})}},hideIcon:!0}),(b.length>0||I)&&(0,U.jsx)(AudienceCreationErrorNotice,{apiErrors:b,hasOAuthError:I})]})}AudienceCreationErrorNotice.propTypes={apiErrors:r().oneOfType([r().arrayOf(r().object),r().object,r().array]),hasOAuthError:r().bool};var hs=i(60515);function AudienceItem({slug:e,title:t,description:i,subtitle:s,userCount:o,audienceType:n}){const r=`${Q.bz}${e}`,[c,d]=(0,zt.A)(re,ae),[,u]=(0,zt.A)(re,le),m=(0,l.useSelect)(e=>e(Y.oR).hasExpirableItem(r)),p=(0,l.useSelect)(e=>e(Y.oR).isExpirableItemActive(r)),[h,f]=(0,l.useSelect)(e=>e(Q.K9).getAudienceUserCountReportErrors())||[],_=[];f&&_.push(f),h&&_.push(h);const v=(0,l.useSelect)(t=>t(Y.oR).isItemDismissed(`audience-tile-${e}`)),y=(0,a.useCallback)(t=>{d(t.target.checked?c.concat([e]):c.filter(t=>t!==e)),u(!0)},[c,d,u,e]),k="DEFAULT_AUDIENCE"!==n&&(!1===m||p),E=c?.includes(e),A=`audience-selection-checkbox-${e}`;function ItemBadge(){return v?(0,U.jsx)(BadgeWithTooltip,{label:(0,g.__)("Temporarily hidden","google-site-kit"),tooltipTitle:(0,g.__)("Site Kit is collecting data for this group. Once data is available the group will be added to your dashboard.","google-site-kit")}):k?(0,U.jsx)(hs.A,{}):null}return(0,U.jsx)(es.y3,{id:A,slug:e,title:t,subtitle:s,description:i,isItemSelected:E,onCheckboxChange:y,suffix:_.length?"-":(0,w.Eo)(o),badge:(v||k)&&(0,U.jsx)(ItemBadge,{})})}function AudienceItemPreviewBlock(){return(0,U.jsxs)("div",{className:"googlesitekit-selection-panel__loading",children:[(0,U.jsxs)("div",{className:"googlesitekit-selection-panel__loading-left",children:[(0,U.jsx)(Ot.A,{width:"90px",height:"20px",className:"googlesitekit-selection-panel__loading-item"}),(0,U.jsx)(Ot.A,{width:"293px",height:"15px",className:"googlesitekit-selection-panel__loading-item"})]}),(0,U.jsx)("div",{className:"googlesitekit-selection-panel__loading-right",children:(0,U.jsx)(Ot.A,{width:"43px",height:"20px",className:"googlesitekit-selection-panel__loading-item"})})]})}function AudienceItems({savedItemSlugs:e=[]}){const[t,i]=(0,a.useState)(!0),{setExpirableItemTimers:s}=(0,l.useDispatch)(Y.oR),{syncAvailableAudiences:o}=(0,l.useDispatch)(Q.K9),n=(0,se.A)(),r=(0,l.useSelect)(e=>e(c.nX).getValue(ne)),d=(0,l.useSelect)(e=>e(Q.K9).isFetchingSyncAvailableAudiences());(0,a.useEffect)(()=>{t&&r&&(i(!1),async function(){await o()}())},[t,r,o]);const u=(0,l.useInViewSelect)(e=>{const{getConfigurableAudiences:t,getReport:i,getAudiencesUserCountReportOptions:s,getConfigurableSiteKitAndOtherAudiences:o,hasAudiencePartialData:n}=e(Q.K9),r=t();if(void 0===r)return;if(!r.length)return[];const[a,l]=o(),c=n(a),d=e(Y.oR).getDateRangeDates(),g=c&&i({...d,metrics:[{name:"totalUsers"}],dimensions:[{name:"newVsReturning"}],reportID:"audience-segmentation_audience-items_component_newVsReturningReport"}),u=!1===c||!0===c&&l?.length>0?i(s(c?l:r)):{},{rows:m=[]}=g||{},{rows:p=[]}=u||{};function h(e,t){return e.find(e=>e?.dimensionValues?.[0]?.value===t)}return r.map(e=>{let t;return t="SITE_KIT_AUDIENCE"===e.audienceType&&c?h(m,"new-visitors"===e.audienceSlug?"new":"returning"):h(p,e.name),{...e,userCount:Number(t?.metricValues?.[0]?.value)||0}})});function m(e,{audienceType:t,description:i,displayName:s,name:o,userCount:n}){let r="";switch(t){case"DEFAULT_AUDIENCE":r=(0,g.__)("Created by default by Google Analytics","google-site-kit"),i="";break;case"SITE_KIT_AUDIENCE":r=(0,g.__)("Created by Site Kit","google-site-kit");break;case"USER_AUDIENCE":r=(0,g.__)("Already exists in your Analytics property","google-site-kit")}return{...e,[o]:{title:s,subtitle:i,description:r,userCount:n,audienceType:t}}}const p=u?.filter(({name:t})=>e.includes(t)).reduce(m,{}),h=u?.filter(({name:t})=>!e.includes(t)).reduce(m,{}),f=(0,l.useSelect)(e=>{if(void 0===u)return;const{hasFinishedResolution:t,hasExpirableItem:i}=e(Y.oR);return t("getExpirableItems")?u.filter(({audienceType:e,name:t})=>"DEFAULT_AUDIENCE"!==e&&!i(`${Q.bz}${t}`)).map(({name:e})=>`${Q.bz}${e}`):void 0});return(0,os.A)(()=>{r&&void 0!==f&&f.length&&s(f.map(e=>({slug:e,expiresInSeconds:4*w.Du})))},[r,s,f]),(0,U.jsx)(es.DW,{availableItemsTitle:(0,g.__)("Additional groups","google-site-kit"),availableSavedItems:p,availableUnsavedItems:h,ItemComponent:d?AudienceItemPreviewBlock:AudienceItem,savedItemSlugs:e,notice:(0,U.jsxs)(a.Fragment,{children:[(0,U.jsx)(AddGroupNotice,{}),!n&&(0,U.jsx)(AudienceCreationNotice,{})]})})}function Footer({isOpen:e,closePanel:t,savedItemSlugs:i}){const s=(0,d.A)(),[o]=(0,zt.A)(re,ae),[,n]=(0,zt.A)(re,ce),r=(0,l.useSelect)(e=>e(Y.oR).isSavingUserAudienceSettings()),c=(0,l.useInViewSelect)(e=>{const t=e(Y.oR).getDismissedItems();return t?.filter(e=>e.startsWith("audience-tile-"))}),g=(0,l.useSelect)(e=>e(Q.K9).getOrSyncAvailableAudiences()),{saveUserAudienceSettings:u,removeDismissedItems:m}=(0,l.useDispatch)(Y.oR),{getConfiguredAudiences:p}=(0,l.useSelect)(Y.oR),h=(0,a.useCallback)(async e=>{n(null);let{error:t}=await u({configuredAudiences:e});if(!t){const i=c?.filter(t=>{const i=t.replace("audience-tile-","");return!e.includes(i)})||[];e.every(e=>c?.includes(`audience-tile-${e}`))&&i.push(`audience-tile-${e[0]}`),i?.length>0&&(({error:t}=await m(...i)),t&&n(t))}return{error:t}},[c,m,u,n]),f=(0,a.useCallback)(()=>{const e={USER_AUDIENCE:"user",SITE_KIT_AUDIENCE:"site-kit",DEFAULT_AUDIENCE:"default"},t=p(),i=Object.keys(e).map(i=>{const s=t.filter(e=>{const t=g?.find(({name:t})=>e===t);return t?.audienceType===i});return`${e[i]}:${s.length}`}).join(",");(0,w.sx)(`${s}_audiences-sidebar`,"audiences_sidebar_save",i)},[g,p,s]),_=(0,a.useCallback)(()=>{(0,w.sx)(`${s}_audiences-sidebar`,"audiences_sidebar_cancel")},[s]);return(0,U.jsx)(es.gy,{savedItemSlugs:i,selectedItemSlugs:o,saveSettings:h,minSelectedItemCount:1,maxSelectedItemCount:3,isBusy:r,isOpen:e,closePanel:t,onSaveSuccess:f,onCancel:_})}function Header_Header({closePanel:e}){const t=(0,se.A)(),i=(0,l.useSelect)(e=>e(te.O4).getSiteKitAdminSettingsURL({scrollTo:"visitor-groups"})),s=(0,l.useSelect)(e=>e(Y.oR).isSavingUserAudienceSettings()),{navigateTo:o}=(0,l.useDispatch)(ee.M),n=(0,a.useCallback)(()=>o(i),[i,o]);return(0,U.jsx)(es.W4,{title:(0,g.__)("Select visitor groups","google-site-kit"),onCloseClick:e,children:!t&&(0,U.jsx)(P.A,{children:(0,F.A)((0,g.__)("You can deactivate this widget in <link><strong>Settings</strong></link>","google-site-kit"),{link:(0,U.jsx)(G.A,{onClick:n,disabled:s,secondary:!0}),strong:(0,U.jsx)("strong",{})})})})}function LearnMoreLink(){const e=(0,l.useSelect)(e=>e(te.O4).getGoogleSupportURL({path:"/analytics/answer/12799087"}));return(0,U.jsx)("div",{className:"googlesitekit-audience-selection-panel__learn-more",children:(0,F.A)((0,g.__)("Learn more about grouping site visitors and audiences in <link><strong>Analytics</strong></link>","google-site-kit"),{link:(0,U.jsx)(G.A,{href:e,secondary:!0,external:!0}),strong:(0,U.jsx)("strong",{})})})}AudienceItem.propTypes={slug:r().string.isRequired,title:r().string.isRequired,description:r().string.isRequired,subtitle:r().string,userCount:r().number.isRequired,audienceType:r().string.isRequired},AudienceItems.propTypes={savedItemSlugs:r().array},Footer.propTypes={isOpen:r().bool,closePanel:r().func.isRequired,savedItemSlugs:r().array},Header_Header.propTypes={closePanel:r().func.isRequired};var fs=i(65695),_s=i(75971);function SaveErrorNotice({savedItemSlugs:e}){const[t]=(0,zt.A)(re,ae),[i]=(0,zt.A)(re,ce),s=(0,_s.ws)(e=>e(Y.oR).getUserAudienceSettings()),n=(0,_s.WM)(e=>e(Y.oR).getErrorForAction("saveUserAudienceSettings",[{...s,configuredAudiences:t}])),r=t?.length||0;let l;r<1?l=(0,g.sprintf)(/* translators: 1: Minimum number of groups that can be selected. 2: Number of selected groups. */ /* translators: 1: Minimum number of groups that can be selected. 2: Number of selected groups. */ (0,g._n)("Select at least %1$d group (%2$d selected)","Select at least %1$d groups (%2$d selected)",1,"google-site-kit"),1,r):r>3&&(l=(0,g.sprintf)(/* translators: 1: Maximum number of groups that can be selected. 2: Number of selected groups. */ /* translators: 1: Maximum number of groups that can be selected. 2: Number of selected groups. */ (0,g.__)("Select up to %1$d groups (%2$d selected)","google-site-kit"),3,r));const c=(0,a.useMemo)(()=>!(0,o.isEqual)((0,w.N9)(t),(0,w.N9)(e)),[t,e]);if(!l&&!n&&!i)return null;let d=n||i;return c&&l&&(d={message:l}),(0,U.jsx)(fs.A,{error:d})}function RequestAccessButton({requestAccessURL:e}){const t=(0,d.A)();return(0,U.jsx)(B.Button,{className:"googlesitekit-audience-selection-panel__error-notice-action",href:e,target:"_blank",onClick:()=>{(0,w.sx)(`${t}_audiences-sidebar`,"insufficient_permissions_error_request_access")},tertiary:!0,children:(0,g.__)("Request access","google-site-kit")})}function RetryButton({handleRetry:e}){const t=(0,d.A)();return(0,U.jsx)(B.Button,{className:"googlesitekit-audience-selection-panel__error-notice-action",onClick:()=>{e(),(0,w.sx)(`${t}_audiences-sidebar`,"data_loading_error_retry")},tertiary:!0,children:(0,g.__)("Retry","google-site-kit")})}function SyncErrorNotice(){const e=(0,d.A)(),t=(0,l.useSelect)(e=>e(Q.K9).getErrorForAction("syncAvailableAudiences")),[i,s]=(0,l.useInViewSelect)(e=>e(Q.K9).getAudienceUserCountReportErrors())||[],o=(0,l.useSelect)(e=>e(te.O4).getErrorTroubleshootingLinkURL({code:"analytics-4_insufficient_permissions"})),n=(0,l.useSelect)(e=>e(c.nX).getValue(ne)),{clearActionError:r,syncAvailableAudiences:u}=(0,l.useDispatch)(Q.K9),m=(0,a.useCallback)(async()=>{await r("syncAvailableAudiences"),u()},[r,u]),p=[];t&&p.push(t),s&&p.push(s),i&&p.push(i);const h=p.length>0,f=p.some(e=>(0,j.SG)(e));if((0,a.useEffect)(()=>{n&&h&&(0,w.sx)(`${e}_audiences-sidebar`,f?"insufficient_permissions_error":"data_loading_error")},[h,f,n,e]),!p.length)return null;const _=[s,i].some(e=>!!e);return(0,U.jsx)(us.A,{className:"googlesitekit-audience-selection-panel__error-notice googlesitekit-notice--error googlesitekit-notice--small googlesitekit-notice--square",type:ms.L.ERROR,description:f?(0,F.A)((0,g.__)("Insufficient permissions, contact your administrator. Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:(0,U.jsx)(G.A,{href:o,external:!0,hideExternalIndicator:!0,children:(0,g.__)("Get help","google-site-kit")})}):(0,g.__)("Data loading failed","google-site-kit"),actionContent:f||_?(0,U.jsx)(z.A,{moduleSlug:"analytics-4",error:p,buttonVariant:"danger",RequestAccessButton,RetryButton,hideGetHelpLink:!0}):(0,U.jsx)(RetryButton,{handleRetry:m}),hideIcon:!0})}function Panel(){const e=(0,d.A)(),t=(0,l.useSelect)(e=>e(c.nX).getValue(ne)),i=(0,l.useSelect)(e=>e(Q.K9).isFetchingSyncAvailableAudiences()),s=(0,l.useInViewSelect)(e=>{const{getConfigurableAudiences:t}=e(Q.K9),{getConfiguredAudiences:i}=e(Y.oR),s=i()||[],o=t()||[];return o.length&&s.length?o.filter(({name:e})=>s.includes(e)).map(({name:e})=>e):[]}),[o]=(0,zt.A)(me,"autoSubmit"),{setValues:n}=(0,l.useDispatch)(ts.s),{setValue:r}=(0,l.useDispatch)(c.nX),g=(0,a.useCallback)(()=>{n(re,{[ae]:s,[le]:!1}),(0,w.sx)(`${e}_audiences-sidebar`,"audiences_sidebar_view")},[s,n,e]),u=(0,a.useCallback)(()=>{t&&(r(ne,!1),r(ge,!1))},[r,t]);return(0,U.jsxs)(es.Ay,{className:"googlesitekit-audience-selection-panel",closePanel:u,isOpen:t||o,isLoading:i,onOpen:g,children:[(0,U.jsx)(Header_Header,{closePanel:u}),(0,U.jsxs)(es.kA,{className:"googlesitekit-audience-selection-panel__content",children:[(0,U.jsx)(AudienceItems,{savedItemSlugs:s}),(0,U.jsx)(LearnMoreLink,{}),(0,U.jsx)(SaveErrorNotice,{savedItemSlugs:s}),(0,U.jsx)(SyncErrorNotice,{}),(0,U.jsx)(AudienceCreationSuccessNotice,{})]}),(0,U.jsx)(Footer,{closePanel:u,isOpen:t,savedItemSlugs:s})]})}function AudienceSelectionPanel(){const e=(0,l.useSelect)(e=>e(c.nX).getValue(ne));return(0,U.jsx)(Ji.Ay,{value:{key:"AudienceSelectionPanel",value:!!e},children:(0,U.jsx)(Panel,{})})}RequestAccessButton.propTypes={requestAccessURL:r().string.isRequired},RetryButton.propTypes={handleRetry:r().func.isRequired};var vs=i(44148);function AudienceAreaFooter(){const e=(0,se.A)(),t=(0,l.useSelect)(e=>e(Y.oR).getDateRangeDates()),i=(0,l.useSelect)(i=>e?null:i(Q.K9).getServiceReportURL("audiences",{dates:t}));return(0,l.useSelect)(e=>e(ie.i).isModuleConnected(I.L1))?(0,U.jsx)(vs.A,{className:"googlesitekit-audience-widget__source",name:(0,g._x)("Analytics","Service name","google-site-kit"),href:i,external:!0}):null}var ys=i(674);function ChangeGroupsLink(){const e=(0,d.A)(),t=(0,l.useInViewSelect)(e=>e(Q.K9).getConfigurableAudiences(),[]),{setValue:i}=(0,l.useDispatch)(c.nX),s=(0,a.useCallback)(()=>{i(ne,!0),(0,w.sx)(`${e}_audiences-sidebar`,"change_groups")},[i,e]);return Array.isArray(t)&&t?.length>0?(0,U.jsx)(G.A,{className:"googlesitekit-widget-area__cta-link",onClick:s,leadingIcon:(0,U.jsx)(ys.A,{width:22,height:22}),secondary:!0,linkButton:!0,children:(0,g.__)("Change groups","google-site-kit")}):null}var ks,Es,As,bs,xs=i(65929);function Ss(){return Ss=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},Ss.apply(null,arguments)}const Ms=e=>a.createElement("svg",Ss({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 553 146"},e),a.createElement("g",{clipPath:"url(#audience-connect-analytics-cta-graphic-tablet_svg__a)"},ks||(ks=a.createElement("path",{fill:"#B8E6CA",d:"M67.728 34.59a72 72 0 0 1 7.31-6.584c24.527-19.24 44.792-19.21 72.848-15.698 18.966 2.374 30.047 11.404 55.905 9.984C229.65 20.872 234.5 10.117 271 14.308S322.5-1.5 360.5 1.5s52 32 72 42 37 8.5 50 35 4 83.5-36 106-99.355 25.386-122.439 27.553c-27.938 2.624-50.995-28.317-79.194-21.151-17.371 4.415-27.674 22.934-41.076 35.155-15.636 14.258-49.319 13.362-67.627 5.752-17.448-7.25-34.42-21.622-40.118-42.788-4.338-16.119-5.521-35.333-17.667-50.056-14.698-17.816-23.679-25.763-28.725-49.961-4.382-21.016 5.047-40.95 18.074-54.414"})),a.createElement("mask",{id:"audience-connect-analytics-cta-graphic-tablet_svg__b",width:441,height:237,x:48,y:1,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},Es||(Es=a.createElement("path",{fill:"#B8E6CA",d:"M67.728 34.59a72 72 0 0 1 7.31-6.584c24.527-19.24 44.792-19.21 72.848-15.698 18.966 2.374 30.047 11.404 55.905 9.984C229.65 20.872 234.5 10.117 271 14.308S322.5-1.5 360.5 1.5s52 32 72 42 37 8.5 50 35 4 83.5-36 106-99.355 25.386-122.439 27.553c-27.938 2.624-50.995-28.317-79.194-21.151-17.371 4.415-27.674 22.934-41.076 35.155-15.636 14.258-49.319 13.362-67.627 5.752-17.448-7.25-34.42-21.622-40.118-42.788-4.338-16.119-5.521-35.333-17.667-50.056-14.698-17.816-23.679-25.763-28.725-49.961-4.382-21.016 5.047-40.95 18.074-54.414"}))),As||(As=a.createElement("g",{filter:"url(#audience-connect-analytics-cta-graphic-tablet_svg__c)",mask:"url(#audience-connect-analytics-cta-graphic-tablet_svg__b)"},a.createElement("rect",{width:112.625,height:153.111,x:93,y:29.181,fill:"#fff",rx:8.097}),a.createElement("rect",{width:39.025,height:7.005,x:107.008,y:92.222,fill:"#EBEEF0",rx:3.502}),a.createElement("rect",{width:14.009,height:7.005,x:107.008,y:81.214,fill:"#EBEEF0",rx:3.502}),a.createElement("rect",{width:14.009,height:7.005,x:107.008,y:117.295,fill:"#EBEEF0",rx:3.502}),a.createElement("path",{fill:"#B8E6CA",d:"M170.051 90.72a6.504 6.504 0 0 1 6.504-6.504h10.007a6.504 6.504 0 0 1 0 13.009h-10.007a6.504 6.504 0 0 1-6.504-6.504"}),a.createElement("rect",{width:26.5,height:6.625,x:106.984,y:44.639,fill:"#EBEEF0",rx:3.313}),a.createElement("path",{fill:"#FFDED3",d:"M170.051 126.802a6.504 6.504 0 0 1 6.504-6.505h10.007a6.504 6.504 0 0 1 0 13.009h-10.007a6.504 6.504 0 0 1-6.504-6.504"}),a.createElement("rect",{width:41.027,height:7.005,x:106.008,y:128.303,fill:"#EBEEF0",rx:3.502}),a.createElement("path",{stroke:"#EBEEF0",strokeWidth:1.472,d:"M205.625 64.882H93.736"}),a.createElement("rect",{width:112.625,height:153.111,x:220.348,y:29.181,fill:"#fff",rx:8.097}),a.createElement("rect",{width:38.871,height:7.005,x:234.301,y:92.222,fill:"#EBEEF0",rx:3.502}),a.createElement("rect",{width:13.954,height:7.005,x:234.301,y:81.214,fill:"#EBEEF0",rx:3.502}),a.createElement("rect",{width:13.954,height:7.005,x:234.301,y:117.295,fill:"#EBEEF0",rx:3.502}),a.createElement("path",{fill:"#B8E6CA",d:"M297.094 90.72a6.504 6.504 0 0 1 6.504-6.504h9.915a6.504 6.504 0 0 1 0 13.009h-9.915a6.504 6.504 0 0 1-6.504-6.504"}),a.createElement("rect",{width:26.5,height:6.625,x:234.332,y:44.639,fill:"#EBEEF0",rx:3.313}),a.createElement("path",{stroke:"#EBEEF0",strokeWidth:1.472,d:"M325.613 64.882H220.349"}),a.createElement("path",{fill:"#FFDED3",d:"M297.094 126.802a6.504 6.504 0 0 1 6.504-6.505h9.915a6.504 6.504 0 0 1 0 13.009h-9.915a6.504 6.504 0 0 1-6.504-6.504"}),a.createElement("rect",{width:40.864,height:7.005,x:233.305,y:128.303,fill:"#EBEEF0",rx:3.502}),a.createElement("rect",{width:112.625,height:153.111,x:347.695,y:29.181,fill:"#fff",rx:8.097}),a.createElement("rect",{width:38.871,height:7.005,x:361.648,y:92.222,fill:"#EBEEF0",rx:3.502}),a.createElement("rect",{width:13.954,height:7.005,x:361.648,y:81.214,fill:"#EBEEF0",rx:3.502}),a.createElement("rect",{width:13.954,height:7.005,x:361.648,y:117.295,fill:"#EBEEF0",rx:3.502}),a.createElement("path",{fill:"#FFDED3",d:"M424.441 90.72a6.504 6.504 0 0 1 6.505-6.504h9.915a6.504 6.504 0 0 1 0 13.009h-9.915a6.504 6.504 0 0 1-6.505-6.504"}),a.createElement("rect",{width:26.5,height:6.625,x:361.68,y:44.639,fill:"#EBEEF0",rx:3.313}),a.createElement("path",{stroke:"#EBEEF0",strokeWidth:1.472,d:"M452.961 64.882H347.697"}),a.createElement("path",{fill:"#B8E6CA",d:"M424.441 126.802a6.505 6.505 0 0 1 6.505-6.505h9.915a6.504 6.504 0 0 1 0 13.009h-9.915a6.504 6.504 0 0 1-6.505-6.504"}),a.createElement("rect",{width:40.864,height:7.005,x:360.652,y:128.303,fill:"#EBEEF0",rx:3.502})))),bs||(bs=a.createElement("defs",null,a.createElement("clipPath",{id:"audience-connect-analytics-cta-graphic-tablet_svg__a"},a.createElement("path",{fill:"#fff",d:"M0 0h553v158H0z"})),a.createElement("filter",{id:"audience-connect-analytics-cta-graphic-tablet_svg__c",width:399.32,height:185.111,x:77,y:17.181,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:4}),a.createElement("feGaussianBlur",{stdDeviation:8}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2898_16714"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2898_16714",result:"shape"})))));var Is,ws,js,Cs;function Ns(){return Ns=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},Ns.apply(null,arguments)}const Ts=e=>a.createElement("svg",Ns({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"-3 1 333.666 149.252"},e),Is||(Is=a.createElement("defs",null,a.createElement("filter",{id:"audience-connect-analytics-cta-graphic_svg__c",width:144.59,height:185.064,x:109.551,y:18.171,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:4}),a.createElement("feGaussianBlur",{stdDeviation:8}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1731_24094"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1731_24094",result:"shape"})),a.createElement("filter",{id:"audience-connect-analytics-cta-graphic_svg__d",width:144.59,height:185.064,x:236.859,y:18.171,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:4}),a.createElement("feGaussianBlur",{stdDeviation:8}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1731_24094"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1731_24094",result:"shape"})),a.createElement("clipPath",{id:"audience-connect-analytics-cta-graphic_svg__a"},a.createElement("path",{fill:"#fff",d:"M0 0h480v150H0z"})))),a.createElement("g",{clipPath:"url(#audience-connect-analytics-cta-graphic_svg__a)",transform:"translate(-73)"},ws||(ws=a.createElement("path",{fill:"#B8E6CA",d:"M91.722 36.579a72 72 0 0 1 7.307-6.582c24.521-19.234 44.779-19.203 72.826-15.693 18.961 2.373 30.038 11.4 55.889 9.98s32.474-7.992 64.117-5.887c25.048 1.667 36.285 6.612 58.554 18.182 20.61 10.707 39.324 29.519 48.728 54.397 16.12 42.644-12.622 119.393-51.166 123.012-27.93 2.623-50.979-28.308-79.169-21.145-17.366 4.414-27.666 22.927-41.064 35.144-15.631 14.255-49.304 13.359-67.607 5.751-17.442-7.248-34.409-21.615-40.106-42.775-4.337-16.114-5.519-35.322-17.661-50.04-14.694-17.811-23.672-25.756-28.716-49.947-4.382-21.009 5.045-40.938 18.068-54.397"})),a.createElement("mask",{id:"audience-connect-analytics-cta-graphic_svg__b",width:332,height:228,x:72,y:12,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},js||(js=a.createElement("path",{fill:"#B8E6CA",d:"M91.722 36.579a72 72 0 0 1 7.307-6.582c24.521-19.234 44.779-19.203 72.826-15.693 18.961 2.373 30.038 11.4 55.889 9.98s32.474-7.992 64.117-5.887c25.048 1.667 36.285 6.612 58.554 18.182 20.61 10.707 39.324 29.519 48.728 54.397 16.12 42.644-12.622 119.393-51.166 123.012-27.93 2.623-50.979-28.308-79.169-21.145-17.366 4.414-27.666 22.927-41.064 35.144-15.631 14.255-49.304 13.359-67.607 5.751-17.442-7.248-34.409-21.615-40.106-42.775-4.337-16.114-5.519-35.322-17.661-50.04-14.694-17.811-23.672-25.756-28.716-49.947-4.382-21.009 5.045-40.938 18.068-54.397"}))),Cs||(Cs=a.createElement("g",{mask:"url(#audience-connect-analytics-cta-graphic_svg__b)"},a.createElement("g",{filter:"url(#audience-connect-analytics-cta-graphic_svg__c)"},a.createElement("rect",{width:112.591,height:153.065,x:125.551,y:30.171,fill:"#fff",rx:8.095})),a.createElement("rect",{width:39.014,height:7.002,x:139.555,y:93.193,fill:"#EBEEF0",rx:3.501}),a.createElement("rect",{width:14.005,height:7.002,x:139.555,y:82.189,fill:"#EBEEF0",rx:3.501}),a.createElement("rect",{width:14.005,height:7.002,x:139.555,y:118.259,fill:"#EBEEF0",rx:3.501}),a.createElement("path",{fill:"#B8E6CA",d:"M202.578 91.693a6.5 6.5 0 0 1 6.502-6.503h10.004a6.502 6.502 0 0 1 0 13.005H209.08a6.5 6.5 0 0 1-6.502-6.502"}),a.createElement("rect",{width:26.492,height:6.623,x:139.535,y:45.625,fill:"#EBEEF0",rx:3.311}),a.createElement("path",{fill:"#FFDED3",d:"M202.578 127.763a6.5 6.5 0 0 1 6.502-6.502h10.004a6.502 6.502 0 1 1 0 13.004H209.08a6.5 6.5 0 0 1-6.502-6.502"}),a.createElement("rect",{width:41.014,height:7.002,x:138.555,y:129.263,fill:"#EBEEF0",rx:3.501}),a.createElement("path",{stroke:"#EBEEF0",strokeWidth:1.472,d:"M238.141 65.862H126.286"}),a.createElement("g",{filter:"url(#audience-connect-analytics-cta-graphic_svg__d)"},a.createElement("rect",{width:112.591,height:153.065,x:252.859,y:30.171,fill:"#fff",rx:8.095})),a.createElement("rect",{width:38.859,height:7.002,x:266.809,y:93.193,fill:"#EBEEF0",rx:3.501}),a.createElement("rect",{width:13.949,height:7.002,x:266.809,y:82.189,fill:"#EBEEF0",rx:3.501}),a.createElement("rect",{width:13.949,height:7.002,x:266.805,y:118.259,fill:"#EBEEF0",rx:3.501}),a.createElement("path",{fill:"#B8E6CA",d:"M329.582 91.693a6.5 6.5 0 0 1 6.502-6.503h9.912a6.502 6.502 0 1 1 0 13.005h-9.912a6.5 6.5 0 0 1-6.502-6.502"}),a.createElement("rect",{width:26.492,height:6.623,x:266.844,y:45.625,fill:"#EBEEF0",rx:3.311}),a.createElement("path",{stroke:"#EBEEF0",strokeWidth:1.472,d:"M358.094 65.862H252.862"}),a.createElement("path",{fill:"#FFDED3",d:"M329.582 127.763a6.5 6.5 0 0 1 6.502-6.502h9.912a6.502 6.502 0 1 1 0 13.004h-9.912a6.5 6.5 0 0 1-6.502-6.502"}),a.createElement("rect",{width:40.852,height:7.002,x:265.812,y:129.263,fill:"#EBEEF0",rx:3.501})))));function ConnectAnalyticsCTAWidget({Widget:e}){const t=(0,D.dv)()===D.Lg,i=(0,xs.A)(I.L1),s=(0,l.useSelect)(e=>e(ie.i).getModuleIcon(I.L1)),o=t?(0,U.jsx)(P.A,{children:(0,F.A)((0,g.__)("Google Analytics is disconnected, your audience metrics canât be displayed. <a>Connect Google Analytics</a>","google-site-kit"),{a:(0,U.jsx)(G.A,{onClick:i,secondary:!0})})}):(0,U.jsxs)(a.Fragment,{children:[(0,U.jsx)(P.A,{children:(0,g.__)("Google Analytics is disconnected, your audience metrics canât be displayed","google-site-kit")}),(0,U.jsx)(G.A,{onClick:i,secondary:!0,children:(0,g.__)("Connect Google Analytics","google-site-kit")})]});return(0,U.jsx)(e,{noPadding:!0,children:(0,U.jsx)(J,{Icon:s,SVGGraphic:t?Ms:Ts,children:o})})}ConnectAnalyticsCTAWidget.propTypes={Widget:r().elementType.isRequired};const Ds=(0,N.A)(ls);function InfoNoticeWidget({Widget:e,WidgetNull:t}){const i=(0,d.A)(),s=(0,l.useInViewSelect)(e=>{const t=e(Q.K9).getOrSyncAvailableAudiences();return t?.map(e=>e.name)},[]),o=(0,l.useInViewSelect)(e=>e(Y.oR).getConfiguredAudiences(),[]),n=o?.some(e=>s?.includes(e)),r=p.length,h=(0,l.useInViewSelect)(e=>e(Y.oR).isPromptDismissed(m),[]),f=(0,l.useSelect)(e=>e(c.nX).getValue(u)),_=(0,l.useInViewSelect)(e=>e(Y.oR).getPromptDismissCount(m),[]),{dismissPrompt:v}=(0,l.useDispatch)(Y.oR),y=(0,a.useCallback)(()=>{void 0!==_&&(0,w.sx)(`${i}_audiences-info-notice`,"dismiss_notice",p[_].slug).finally(()=>{const e=2*w.Du;v(m,{expiresInSeconds:_+1<r?e:0})})},[_,v,r,i]);if(!0!==n||h||void 0===_||_>=r||!0===f)return(0,U.jsx)(t,{});const{slug:k,content:E}=p[_];return(0,U.jsx)(e,{noPadding:!0,children:(0,U.jsx)(Ds,{content:E,dismissLabel:(0,g.__)("Got it","google-site-kit"),onDismiss:y,onInView:()=>{(0,w.sx)(`${i}_audiences-info-notice`,"view_notice",k)}})})}InfoNoticeWidget.propTypes={Widget:r().elementType.isRequired,WidgetNull:r().elementType.isRequired};const Rs=(0,C.A)({moduleName:I.L1})(InfoNoticeWidget);var Os=i(15844);function SecondaryUserSetupWidget({Widget:e}){const[t,i]=(0,a.useState)(null),s=(0,l.useSelect)(e=>e(Q.K9).isSettingUpAudiences()),{enableSecondaryUserAudienceGroup:o}=(0,l.useDispatch)(Q.K9);return(0,Os.A)(()=>{s||(async()=>{const{error:e}=await o();e&&i(e)})()}),t?(0,U.jsx)(q,{Widget:e,errors:t,onRetry:async function(){i(null);const{error:e}=await o();e&&i(e)},showRetryButton:!(0,j.SG)(t)}):(0,U.jsx)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:(0,U.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[(0,U.jsx)(e,{noPadding:!0,children:(0,U.jsx)(AudienceTileLoading,{})}),(0,U.jsx)(e,{noPadding:!0,children:(0,U.jsx)(AudienceTileLoading,{})})]})})}SecondaryUserSetupWidget.propTypes={Widget:r().elementType.isRequired};var Ls=i(23403);function PrimaryUserSetupWidget({Widget:e}){const{apiErrors:t,isSaving:i,failedAudiences:s,onEnableGroups:o}=(0,Ls.A)(),n=(0,l.useSelect)(e=>e(Q.K9).isSettingUpAudiences());return(0,Os.A)(()=>{n||o()}),!t.length&&!s.length||i?(0,U.jsx)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:(0,U.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[(0,U.jsx)(e,{noPadding:!0,children:(0,U.jsx)(AudienceTileLoading,{})}),(0,U.jsx)(e,{noPadding:!0,children:(0,U.jsx)(AudienceTileLoading,{})})]})}):(0,U.jsx)(q,{Widget:e,errors:t,onRetry:o,failedAudiences:s,showRetryButton:!(0,j.SG)(t[0])})}PrimaryUserSetupWidget.propTypes={Widget:r().elementType.isRequired}},22942(e,t,i){i.d(t,{A_:()=>d,DF:()=>u,L1:()=>m,M0:()=>r,Mc:()=>a,Ok:()=>c,U9:()=>l,iW:()=>n,ue:()=>o,wq:()=>s,xR:()=>g});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",d="_r..dataFilters",g="_r..nav",u="key-metrics-connect-ga4-cta-widget",m="analytics-4"},84381(e,t,i){i.d(t,{A:()=>m});var s=i(17243),o=i(63696),n=i(51568),r=i(50539),a=i(50454),l=i(70301),c=i(97345),d=i(68832),g=i(99893),u=i(9318);function m({dimensions:e,widgetSlug:t,reportOptions:i}){const{requiredCustomDimensions:m}=a.G[t]||{},p=(0,o.useMemo)(()=>Array.isArray(e)&&e.length?e:Array.isArray(m)&&m.length?m:null,[e,m]),h=(0,r.useSelect)(e=>!p||e(g.K9).hasCustomDimensions(p)),[f]=(0,d.A)(g.Kr,"isAutoCreatingCustomDimensions"),_=(0,r.useSelect)(e=>!!f||!!p&&p.some(t=>e(g.K9).isCreatingCustomDimension(t))),v=(0,r.useSelect)(e=>{if(!p)return[];const t=[];return p.forEach(i=>{const s=e(g.K9).getCreateCustomDimensionError(i);s&&t.push(s)}),t}),y=(0,r.useSelect)(e=>!!p&&e(c.oR).hasScope(g.S9)),k=(0,r.useSelect)(e=>!!p&&e(g.K9).isSyncingAvailableCustomDimensions()),E=(0,n.F)(globalThis.location.href,{notification:"custom_dimensions"}),A=(0,r.useSelect)(e=>{const t=e(c.oR).getConnectURL({additionalScopes:[g.S9],redirectURL:E});return!!t&&e(l.M).isNavigatingTo(t)}),b=(0,r.useSelect)(e=>i?(0,s.isFunction)(i)?i(e):i:null),x=(0,r.useSelect)(e=>b?e(g.K9).getErrorForSelector("getReport",[b]):null),S=_||k||A||void 0===h,M=(0,r.useSelect)(e=>{const t=e(g.K9).isGatheringData();return!1!==t?t:S||!h?null:!!p&&e(g.K9).areCustomDimensionsGatheringData(p)}),I=(0,r.useSelect)(e=>p?e(g.K9).getDataAvailabilityReportErrors(p):{}),w=M&&Object.values(I).some(e=>(0,u.B)(e))||!M&&(0,u.B)(x),j=(0,r.useSelect)(e=>{if(!w)return[];if(M){const{getDataAvailabilityReportOptions:t}=e(g.K9);return Object.keys(I).filter(e=>(0,u.B)(I[e])).map(e=>t(e))}return(0,u.B)(x)?[b]:[]});return{customDimensions:p,hasCustomDimensions:h,isAutoCreatingCustomDimensions:f,isCreatingCustomDimensions:_,customDimensionsCreationErrors:v,hasAnalyticsEditScope:y,isSyncingAvailableCustomDimensions:k,isNavigatingToOAuthURL:A,reportOptions:b,reportError:x,loading:S,isGatheringData:M,dataAvailabilityReportErrors:I,hasInvalidCustomDimensionError:w,invalidCustomDimensionReportOptions:j,redirectURL:E}}},23403(e,t,i){i.d(t,{A:()=>u});var s=i(99408),o=i(63696),n=i(82871),r=i(51568),a=i(50539),l=i(97345),c=i(68832),d=i(99893),g=i(13137);function u({redirectURL:e,onSuccess:t,onError:i,onOAuthNavigation:u}={}){const m=(0,s.A)(),[p,h]=(0,o.useState)([]),[f,_]=(0,o.useState)([]),[v,y]=(0,o.useState)(!1),k=(0,a.useSelect)(e=>e(l.oR).hasScope(d.S9)),[E,A]=(0,c.A)(d.PW,"autoSubmit"),{setPermissionScopeError:b}=(0,a.useDispatch)(l.oR),{enableAudienceGroup:x,fetchSyncAvailableCustomDimensions:S,determineNeedForAnalytics4EditScope:M,syncAvailableAudiences:I}=(0,a.useDispatch)(d.K9);e||(e=(0,r.F)(globalThis.location.href,{notification:"audience_segmentation"}));const w=(0,o.useCallback)(async()=>{const{error:e}=await I();if(e)return{error:e};const{error:t}=await S();if(t)return{error:t};if(!k){const{error:e,needsScope:t}=await M();if(e)return{error:e};if(t)return{needsScope:!0}}A(!1);const{error:i,failedSiteKitAudienceSlugs:s}=await x(f)||{};return{error:i,failedSiteKitAudienceSlugs:s}},[x,f,S,k,M,A,I]),j=(0,o.useCallback)(async()=>{y(!0);const{error:s,needsScope:o,failedSiteKitAudienceSlugs:r}=await w();if(o)return A(!0),await(u?.()),void b({code:g.db,message:(0,n.__)("Additional permissions are required to create new audiences in Analytics.","google-site-kit"),data:{status:403,scopes:[d.S9],skipModal:!0,skipDefaultErrorNotifications:!0,redirectURL:e,errorRedirectURL:globalThis.location.href}});if(s||r?i?.():t?.(),m()){function a(e){return e.length?[]:e}s?(h([s]),_(a)):Array.isArray(r)?(_(r),h(a)):(h(a),_(a)),y(!1)}},[w,m,A,u,b,e,i,t]);return(0,o.useEffect)(()=>{k&&E&&j()},[k,E,j]),{apiErrors:p,failedAudiences:f,isSaving:v,onEnableGroups:j}}},9318(e,t,i){i.d(t,{B:()=>s});i(99893);function s(e){return 400===e?.code&&e?.message?.includes("is not a valid dimension")}},74508(e,t,i){i.d(t,{s:()=>m});var s=i(4452),o=i.n(s),n=i(17243),r=i(82871),a=i(13047),l=i(49746),c=i(9616),d=i(32091),g=i.n(d);function u(e,t){const i=[];return e.forEach(e=>{if(!e.metricValues)return;const{value:s}=e.metricValues[t],o=e.dimensionValues[0].value,n=(0,c.A)(o);i.push([n,s])}),i}function m(e,t,i,s,c=[(0,r.__)("Users","google-site-kit"),(0,r.__)("Sessions","google-site-kit"),(0,r.__)("Engagement Rate","google-site-kit"),(0,r.__)("Session Duration","google-site-kit")],d=[e=>parseFloat(e).toLocaleString(),e=>parseFloat(e).toLocaleString(),e=>(0,a.Eo)(e/100,{style:"percent",signDisplay:"never",maximumFractionDigits:2}),e=>(0,a.Eo)(e,"s")],m=[n.identity,n.identity,e=>100*e,n.identity]){const p=[...e?.rows||[]],h=p.length;if(2*i>h){const e=(0,a.XH)(s);for(let t=0;i>t;t++){const i=(e.getMonth()+1).toString(),s=e.getDate().toString(),o=e.getFullYear().toString()+(2>i.length?"0":"")+i+(2>s.length?"0":"")+s;if(t>h){const e=[{dimensionValues:[{value:o},{value:"date_range_0"}],metricValues:[{value:0},{value:0}]},{dimensionValues:[{value:o},{value:"date_range_1"}],metricValues:[{value:0},{value:0}]}];p.unshift(...e)}e.setDate(e.getDate()-1)}p.push({dimensionValues:[{value:"0"},{value:"date_range_0"}]},{dimensionValues:[{value:"0"},{value:"date_range_1"}]})}const f=c[t]===(0,r.__)("Session Duration","google-site-kit"),_=f?"timeofday":"number",v=[[{type:"date",label:(0,r.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:_,label:c[t]},{type:_,label:(0,r.__)("Previous period","google-site-kit")}]],{compareRange:y,currentRange:k}=function(e,{dateRangeLength:t}){function i(t){return e.filter(({dimensionValues:[,e]})=>e.value===t)}g()(Array.isArray(e),"report must be an array to partition."),g()(Number.isInteger(t)&&t>0,"dateRangeLength must be a positive integer.");const s=-1*t;return{currentRange:i("date_range_0").slice(s),compareRange:i("date_range_1").slice(2*s,s)}}(p,{dateRangeLength:i}),E=u(k,t),A=u(y,t),b=(0,l.JK)(),x={weekday:"short",month:"short",day:"numeric"};return E.forEach((e,i)=>{if(!e[0]||!e[1]||!A[i])return;const s=m[t],n=s(e[1]),l=s(A[i][1]),g=parseFloat(l),u=(0,a.Cn)(n,g),p=(0,a.vY)(u),h=(0,r.sprintf)(/* translators: 1: date for user stats, 2: previous date for user stats comparison */ /* translators: 1: date for user stats, 2: previous date for user stats comparison */ (0,r._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(b,x),A[i][0].toLocaleDateString(b,x)),_=(0,r.sprintf)(/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */ /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */ (0,r._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),c[t],d[t](n),p,(0,a.Eo)(Math.abs(u),"%"));v.push([e[0],`<div class="${o()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":u>0,"googlesitekit-visualization-tooltip--down":u<0})}">\n\t\t\t\t<p>${h}</p>\n\t\t\t\t<p>${_}</p>\n\t\t\t</div>`,f?(0,a.vH)(n):n,f?(0,a.vH)(l):l])}),v}},32981(e,t,i){i.d(t,{Ii:()=>d,sq:()=>c.s,ph:()=>o,Hb:()=>n,H5:()=>a,Aj:()=>l.A,JN:()=>g});var s=i(82871);function o(e,t={}){const{keyColumnIndex:i=0,maxSlices:o,withOthers:n=!1,tooltipCallback:r}=t,{rows:a=[]}=e||{},l="function"==typeof r,c=["Source","Percent"];l&&c.push({type:"string",role:"tooltip",p:{html:!0}});const d=[c],g=a.filter(({dimensionValues:e})=>"date_range_0"===e[1].value),u=g.reduce((e,t)=>e+parseInt(t.metricValues[0].value,10),0),m=a.filter(({dimensionValues:e})=>"date_range_1"===e[1].value),p=m.reduce((e,t)=>e+parseInt(t.metricValues[0].value,10),0);let h=n,f=g.length,_=u,v=p;o>0?(h=n&&g.length>o,f=Math.min(g.length,h?o-1:o)):(h=!1,f=g.length);for(let e=0;e<f;e++){const t=g[e],s=t.metricValues[i].value,o=m.find(({dimensionValues:e})=>e[0].value===t.dimensionValues[0].value);_-=s,v-=o?o.metricValues[i].value:0;const n=u>0?s/u:0,c=[t.dimensionValues[0].value,n];if(l){const e=a.find(({dimensionValues:e})=>"date_range_1"===e[1].value&&e[0].value===t.dimensionValues[0].value);c.push(r(t,e,c))}d.push(c)}if(h&&_>0){const e=[(0,s.__)("Others","google-site-kit"),_/u];l&&e.push(r({metricValues:[{value:_}]},{metricValues:[{value:v}]},e)),d.push(e)}return d}function n(e){if(void 0===e)return;const t=(e?.rows||[]).filter(({dimensionValues:e})=>"date_range_0"===e[1].value);return 1===t?.length||t?.[0]?.metricValues?.[0]?.value===e?.totals?.[0]?.metricValues?.[0]?.value}var r=i(17243);function a(e){if(void 0!==e)return!(e?.rows&&e?.totals&&!e?.totals?.every(r.isEmpty))||!e.totals.some(e=>!!e.metricValues&&e.metricValues.some(({value:e})=>e>0))}var l=i(65379),c=(i(25427),i(74508));function d(e){return e.replace(/&/gi,"&")}function g(e){return d(e).split("; ")}},9616(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function(e){if("string"==typeof e&&e.match(/[0-9]{8}/)){const t=e.slice(0,4),i=Number(e.slice(4,6))-1,s=e.slice(6,8);return new Date(t,i.toString(),s)}return!1}},65379(e,t,i){i.d(t,{A:()=>n});var s=i(17243),o=i(50532);const n=i.n(o)()(({metrics:e,dimensions:t,...i}={})=>({metrics:r(e),dimensions:a(t),...i}));function r(e){return(0,s.castArray)(e).map(e=>"string"==typeof e?{name:e}:e).filter(e=>(0,s.isPlainObject)(e))}function a(e){return(0,s.castArray)(e).map(e=>"string"==typeof e?{name:e}:e).filter(e=>(0,s.isPlainObject)(e))}},31790(e,t,i){function s(e,t=3){return e.filter(({dimensionValues:e})=>"(not set)"!==e[0].value&&""!==e[0].value).slice(0,t)}i.d(t,{S:()=>s})},25427(e,t,i){i.d(t,{G4:()=>c,Ig:()=>n,Q3:()=>l,a2:()=>r,wA:()=>a});var s=i(17243),o=i(73730);function n(e){function t(e){return"string"==typeof e&&/^[a-zA-Z0-9_]+$/.test(e)}if("string"==typeof e){return e.split(",").every(t)}return(0,o.cX)(e,e=>{const i=e.hasOwnProperty("name")&&t(e.name);if(!e.hasOwnProperty("expression"))return i;const s="string"==typeof e.expression;return i&&s},t)}function r(e){return(0,o.cX)(e,e=>e.hasOwnProperty("name")&&"string"==typeof e.name)}function a(e){const t=["string"];return Object.keys(e).every(i=>{if(t.includes(typeof e[i]))return!0;if(Array.isArray(e[i]))return e[i].every(e=>t.includes(typeof e));if((0,s.isPlainObject)(e[i])){const t=Object.keys(e[i]);return!!t.includes("filterType")&&!("emptyFilter"!==e[i].filterType&&!t.includes("value"))}return!1})}function l(e){const t=["string"],i=["numericFilter","betweenFilter"];return Object.values(e).every(e=>{if(t.includes(typeof e))return!0;if(Array.isArray(e))return e.every(e=>t.includes(typeof e));if(!(0,s.isPlainObject)(e))return!1;const{filterType:o,value:n,fromValue:r,toValue:a}=e;if(o&&!i.includes(o))return!1;const l=Object.keys(e);return o&&"numericFilter"!==o?"betweenFilter"===o&&(l.includes("fromValue")&&l.includes("toValue")&&[r,a].every(e=>!(0,s.isPlainObject)(e)||"int64Value"in e)):l.includes("operation")&&l.includes("value")&&(!(0,s.isPlainObject)(n)||"int64Value"in n)})}function c(e){return!!Array.isArray(e)&&e.every(e=>!!(0,s.isPlainObject)(e)&&((!e.hasOwnProperty("desc")||"boolean"==typeof e.desc)&&(e.metric?!e.dimension&&"string"==typeof e.metric?.metricName:!!e.dimension&&"string"==typeof e.dimension?.dimensionName)))}},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:()=>d,N_:()=>y,O5:()=>v,Ql:()=>m,Qr:()=>p,XH:()=>f,r0:()=>c,sq:()=>h,tt:()=>g});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,d=60*c,g=24*d,u=7*g;function m(){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 h(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 h(y(e,t*g))}function v(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 y(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:()=>g,vl:()=>d});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 d(e,t){return!(!t?.storeName||l(e)||a(e)||c(e))}function g(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}},62954(e,t,i){function s(e,t){const i=e.getBoundingClientRect(),s=t.getBoundingClientRect();return!(i.bottom<s.top||s.bottom<i.top||i.right<s.left||s.right<i.left)}i.d(t,{N:()=>s})},49746(e,t,i){i.d(t,{Eo:()=>g,JK:()=>h,K5:()=>p,jq:()=>m,mK:()=>d});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?m(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?m(o,{...l,unit:"second"}):"",s?m(s,{...l,unit:"minute"}):"",i?m(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 d(e){let t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:(0,s.isPlainObject)(e)&&(t={...e}),t}function g(e,t={}){e=(0,s.isFinite)(e)?e:Number(e),(0,s.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const i=d(t),{style:o="metric"}=i;return"metric"===o?function(e){const t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?(0,r.sprintf)( // translators: %s: an abbreviated number in millions. // translators: %s: an abbreviated number in millions. (0,r.__)("%sM","google-site-kit"),m(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"),m(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"),m(c(e),e%10==0?{}:t)):m(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):m(e,i)}const u=n()(console.warn);function m(e,t={}){const{locale:i=h(),...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=h(),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 h(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:()=>h,N_:()=>_.N_,zh:()=>C,mK:()=>d.mK,Ql:()=>_.Ql,vY:()=>E,sq:()=>_.sq,VZ:()=>b.VZ,JK:()=>d.JK,IS:()=>_.IS,pH:()=>b.pH,kf:()=>S,O5:()=>_.O5,Qr:()=>_.Qr,x6:()=>x,K5:()=>d.K5,S_:()=>p,dc:()=>b.dc,Eo:()=>d.Eo,jq:()=>d.jq,DK:()=>I.D,N9:()=>M,p9:()=>n.p,XH:()=>_.XH,Zm:()=>l,sx:()=>o.sx,BI:()=>o.BI,CZ:()=>n.C,BG:()=>j});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 d=i(49746);function g(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 m(e){return e.replace(/\n/gi,"<br>")}function p(e){const t=[g,u,m];let i=e;for(const e of t)i=e(i);return i}function h(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]}function f(e){const t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}var _=i(51193),v=i(30908),y=i(38017),k=i(62540);function E(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:i=!1}=t;return(0,v.Ay)((0,k.jsx)(y.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 b=i(48276);function x(e){const t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function S(e){if("number"==typeof e)return!0;const t=(e||"").toString();return!!t&&!isNaN(t)}function M(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 j(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)},73730(e,t,i){function s(e,t,i=()=>!0){return"string"==typeof e?i(e):!("object"!=typeof e||!t(e))||!!Array.isArray(e)&&e.every(e=>"string"==typeof e?i(e):"object"==typeof e&&t(e))}function o({startDate:e,endDate:t}){const i=e&&e.match(/^\d{4}-\d{2}-\d{2}$/),s=t&&t.match(/^\d{4}-\d{2}-\d{2}$/);return i&&s}function n(e){function t(e){const t=e.hasOwnProperty("fieldName")&&!!e.fieldName,i=e.hasOwnProperty("sortOrder")&&/(ASCENDING|DESCENDING)/i.test(e.sortOrder.toString());return t&&i}return Array.isArray(e)?e.every(e=>"object"==typeof e&&t(e)):"object"==typeof e&&t(e)}function r(e){return"string"==typeof e||!!Array.isArray(e)&&e.every(e=>"string"==typeof e)}i.d(t,{G4:()=>n,O5:()=>o,cX:()=>s,cq:()=>r})},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:()=>x,sx:()=>A,BI:()=>b});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:d,trackingEnabled:g,trackingID:u,referenceSiteURL:m,userIDHash:p,isAuthenticated:h,userRoles:f}=globalThis._googlesitekitTrackingData||{},_={activeModules:c,trackingEnabled:g,trackingID:u,referenceSiteURL:m,userIDHash:p,isSiteKitScreen:d,userRoles:f,isAuthenticated:h,pluginVersion:"1.181.0"},{enableTracking:v,disableTracking:y,isTrackingEnabled:k,initializeSnippet:E,trackEvent:A,trackEventOnce:b}=function(e,t=globalThis,i=globalThis){const c={...l,...e};c.referenceSiteURL&&(c.referenceSiteURL=c.referenceSiteURL.toString().replace(/\/+$/,""));const d=function(e,t){const i=a(t);let s;const{activeModules:l,referenceSiteURL:c,userIDHash:d,userRoles:g=[],isAuthenticated:u,pluginVersion:m}=e;return function(){const{document:t}=globalThis;if(void 0===s&&(s=!!t.querySelector(`script[${r}]`)),s)return!1;s=!0;const a=g?.length?g.join(","):"";i("js",new Date),i("config",e.trackingID,{groups:"site_kit",send_page_view:e.isSiteKitScreen,domain:c,plugin_version:m||"",enabled_features:Array.from(o.t).join(","),active_modules:l.join(","),authenticated:u?"1":"0",user_properties:{user_roles:a,user_identifier:d}});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),g=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,d,i),u={};return{enableTracking:function(){c.trackingEnabled=!0},disableTracking:function(){c.trackingEnabled=!1},initializeSnippet:d,isTrackingEnabled:function(){return!!c.trackingEnabled},trackEvent:g,trackEventOnce:function(...e){const t=JSON.stringify(e);u[t]||(u[t]=(0,s.once)(g)),u[t](...e)}}}(_);function x(e){e?v():y()}d&&g&&E()},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)}},65385(e,t,i){i.d(t,{A:()=>a});var s=i(50539),o=i(74426),n=i(88273),r=i(62540);function a({moduleName:e,FallbackComponent:t,IncompleteComponent:i}){return a=>{function WhenActiveComponent(o){const l=(0,s.useSelect)(t=>t(n.i).getModule(e),[e]);if(!l)return null;const c=t||o.WidgetNull||null;if(!1===l.active)return c&&(0,r.jsx)(c,{...o});if(!1===l.connected){const e=i||c;return e&&(0,r.jsx)(e,{...o})}return(0,r.jsx)(a,{...o})}return WhenActiveComponent.displayName=`When${(0,o.Uf)(e)}Active`,(a.displayName||a.name)&&(WhenActiveComponent.displayName+=`(${a.displayName||a.name})`),WhenActiveComponent}}},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),d=!!o?.isIntersecting&&!!o?.intersectionRatio;return(0,r.useEffect)(()=>{o&&d&&!l&&(t(),c(!0))},[l,d,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=95897,e(e.s=t);var t});e.O()}]);
đž Save Changes
â Cancel