"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[290,937],{88933(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 43 44"},e),s||(s=n.createElement("g",{fill:"none",fillRule:"evenodd"},n.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"}),n.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"}),n.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"}),n.createElement("path",{fill:"#4285F4",d:"m36.34 38.52-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52"}))))},19793(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=n.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"})))},2478(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 8"},e),s||(s=n.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,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),s||(s=n.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,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},e),s||(s=n.createElement("path",{fill:"currentColor",d:"M14 1.41 12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7z"})))},24560(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},e),s||(s=n.createElement("g",{fill:"currentColor",fillRule:"evenodd"},n.createElement("path",{d:"M0 6.414 1.415 5l5.292 5.292-1.414 1.415z"}),n.createElement("path",{d:"m14.146.146 1.415 1.414L5.414 11.707 4 10.292z"}))))},18418(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2 12"},e),s||(s=n.createElement("g",{fill:"currentColor",fillRule:"evenodd"},n.createElement("path",{d:"M0 0h2v7H0zM0 10h2v2H0z"}))))},83366(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),s||(s=n.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,n,o,r=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=r.createElement("rect",{width:18,height:12,x:3,y:6,stroke:"currentColor",strokeWidth:1.5,rx:2})),n||(n=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"})),o||(o=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,n,o=i(63696);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 22 22"},e),s||(s=o.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"})),n||(n=o.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"})))},42343(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=n.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,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 9"},e),s||(s=n.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,n,o=i(63696);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;to.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=o.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),n||(n=o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})))},41671(e,t,i){i.d(t,{A:()=>l});var s=i(62688),n=i.n(s),o=i(82871),r=i(38432),a=i(97015);const LearnMoreLink=({className:e,external:t=!0,href:i,label:s=(0,o.__)("Learn more","google-site-kit"),onClick:n=()=>{}})=>i?a.createElement(r.A,{href:i,className:e,onClick:n,external:t},s):null;LearnMoreLink.propTypes={href:n().string.isRequired,className:n().string,label:n().string,external:n().bool,onClick:n().func};const l=LearnMoreLink},25804(e,t,i){i.d(t,{A:()=>d});var s,n=i(4452),o=i.n(n),r=i(49383),a=i(63696);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=a.createElement("path",{fill:"currentColor",d:"M7.334 11.333h1.333v-4H7.334zM8.001 6a.658.658 0 0 0 .667-.667.6.6 0 0 0-.2-.467.6.6 0 0 0-.467-.2.66.66 0 0 0-.667.667q0 .284.183.483A.7.7 0 0 0 8.001 6m0 8.666a6.6 6.6 0 0 1-2.6-.516 6.9 6.9 0 0 1-2.117-1.434A6.9 6.9 0 0 1 1.851 10.6 6.6 6.6 0 0 1 1.334 8q0-1.385.517-2.6a6.9 6.9 0 0 1 1.433-2.117q.9-.9 2.117-1.417A6.4 6.4 0 0 1 8 1.333q1.383 0 2.6.533a6.6 6.6 0 0 1 2.116 1.417q.9.9 1.417 2.117.533 1.215.533 2.6 0 1.383-.533 2.6a6.6 6.6 0 0 1-1.417 2.116 6.9 6.9 0 0 1-2.116 1.434 6.6 6.6 0 0 1-2.6.516m0-1.333q2.233 0 3.783-1.55T13.334 8t-1.55-3.784-3.783-1.55-3.784 1.55T2.667 8t1.55 3.783 3.784 1.55"})));var g=i(97015);const d=({onOpen:e,title:t,tooltipClassName:i})=>t?g.createElement(r.Tooltip,{className:"googlesitekit-info-tooltip",tooltipClassName:o()("googlesitekit-info-tooltip__content",i),title:t,placement:"top",enterTouchDelay:0,leaveTouchDelay:5e3,onOpen:e,interactive:!0},g.createElement("span",{tabIndex:0,role:"tooltip"},g.createElement(c,{width:"16",height:"16"}))):null},39866(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(4452),n=i.n(s),o=i(97015);const __WEBPACK_DEFAULT_EXPORT__=({as:e="p",className:t,children:i})=>{const s=e;return o.createElement(s,{className:n()("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:()=>x});var s=i(4452),n=i.n(s),o=i(63696),r=i(3749),a=i(62688),l=i.n(a),c=i(49383),g=i(83366),d=i(62540);function CTAButton({label:e,disabled:t,inProgress:i,onClick:s,href:o,external:r=!1,hideExternalIndicator:a=!1,tertiary:l=!1}){let u;return r&&!a&&(u=(0,d.jsx)(g.A,{width:14,height:14})),(0,d.jsx)(c.SpinnerButton,{className:n()("googlesitekit-notice__cta",{"googlesitekit-notice__cta--spinner__running":i}),disabled:t,isSaving:i,onClick:s,href:o,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),p=i(82871),m=i(97015);const Notice_DismissButton=({label:e=(0,p.__)("Got it","google-site-kit"),onClick:t,disabled:i,href:s,external:o=!1,variant:r="text",icon:a,ariaLabel:l})=>m.createElement(c.Button,{className:n()({"googlesitekit-notice__dismiss":"icon"===r,"googlesitekit-notice__dismiss--icon":"icon"===r}),onClick:t,disabled:i,href:s,target:o?"_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,_=i(19793),f=i(42343);function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),h||(h=o.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]:f.A,[r.L.SUCCESS]:_.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,d.jsx)(t,{width:24,height:24})}Icon.propTypes={type:l().oneOf(Object.values(r.L))};var v=i(97015);const Notice_Title=({className:e,children:t})=>v.createElement("p",{className:n()("googlesitekit-notice__title",e)},t);var A=i(97015);const x=(0,o.forwardRef)(({actionContent:e,className:t,title:i,description:s,dismissButton:o,ctaButton:a,type:l=r.L.INFO,children:c,hideIcon:g},d)=>{const p=function(e){return"icon"===e?.variant?!!e.icon&&!!e.ariaLabel&&(e.onClick||e.href):!!e?.label||!!e?.onClick||!!e?.href}(o),m=!!a?.label&&(a?.onClick||a?.href),h=!!e||p||m;return A.createElement("div",{className:"googlesitekit-notice-container",ref:d},A.createElement("div",{className:n()("googlesitekit-notice",`googlesitekit-notice--${l}`,t),role:"status"},!g&&A.createElement("div",{className:"googlesitekit-notice__icon"},A.createElement(Icon,{type:l})),A.createElement("div",{className:"googlesitekit-notice__content"},i&&A.createElement(Notice_Title,null,i),s&&A.createElement(u.A,null,s),c),h&&A.createElement("div",{className:"googlesitekit-notice__action"},e,p&&A.createElement(Notice_DismissButton,o||{}),m&&A.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:()=>_});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(63696),l=i(13606),c=i(82871),g=i(92449);var d=i(62659),u=i(4124),p=i(13047),m=i(38432),h=i(97015);function SourceLink({name:e="",href:t="",className:i="",external:s=!1}){const o=(0,d.A)(),r=(0,u.A)(),_=(0,a.useContext)(g.Ay),f=(0,a.useCallback)(()=>{_.slug&&o&&(0,p.sx)(`${o}_widget`,"click_source_link",_.slug)},[o,_]);return r?null:h.createElement("div",{className:n()("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"),`${e}`),{a:h.createElement(m.A,{key:"link",href:t,external:s,onClick:f})}))}SourceLink.propTypes={name:r().string,href:r().string,className:r().string,external:r().bool};const _=SourceLink},40194(e,t,i){i.d(t,{G:()=>v});var s=i(50539),n=i(82871),o=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,n.__)("Get instant access to insights, no setup","google-site-kit"),content:t?(0,n.__)("See what’s been shared with you here, or sign in with Google to configure services and sharing access","google-site-kit"):(0,n.__)("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,n.__)("Share insights with your team","google-site-kit"),content:(0,n.__)("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,n.__)("Track how your site is doing on Search","google-site-kit"),content:(0,n.__)("Know what’s driving growth and bringing your site more visitors","google-site-kit"),offset:0,spotlightPadding:0,placement:"top",isResponsive:!0}}function g({isViewOnly:e,canAuthenticate:t,isAnalyticsConnected:i,isActivateAnalyticsNotificationPresent:s,isKeyMetricsWidgetPresent:g,isAudienceSegmentationWidgetPresent:d}){if(!i){const i=[{target:".googlesitekit-widget--searchFunnelGA4",floaterProps:{target:".googlesitekit-widget--searchFunnelGA4 .googlesitekit-widget__body"},title:(0,n.__)("Track Search traffic trends, identify baselines","google-site-kit"),content:(0,n.__)("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,n.__)("Want to know what people do once they land on your site?","google-site-kit"),content:(0,n.__)("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:[o.jU,o.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:[o.jU,o.Ax],gaEventCategory:e=>`${e}_dashboard-tour-ga4`,preloadWidgetAreas:[r.AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY,r.AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY,r.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION,r.AREA_MAIN_DASHBOARD_CONTENT_PRIMARY],steps:[g&&{target:".googlesitekit-widget-area--mainDashboardKeyMetricsPrimary",floaterProps:{target:".googlesitekit-km-change-metrics-cta"},title:(0,n.__)("Your goals, measured and clear","google-site-kit"),content:(0,n.__)("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,n.__)("Track traffic trends, identify baselines","google-site-kit"),content:(0,n.__)("Know what’s normal for your site. This is how you spot trends and measure real growth.","google-site-kit"),offset:35,spotlightPadding:0,placement:"top",isResponsive:!0},d&&{target:".googlesitekit-widget-area--mainDashboardTrafficAudienceSegmentation",floaterProps:{target:".googlesitekit-widget-audience-tiles__body .googlesitekit-widget--analyticsAudienceTiles:last-child .googlesitekit-audience-segmentation-tile__header-title"},title:(0,n.__)("Get to know your site visitors","google-site-kit"),content:(0,n.__)("Not all visitors are the same, tailor your strategy based on who you want to attract","google-site-kit"),offset:14,spotlightPadding:4,placement:"top",isResponsive:!0},(!g||!d)&&c(),{target:".googlesitekit-widget--analyticsModulePopularPagesGA4",floaterProps:{target:".googlesitekit-table__head-item--pageviews .googlesitekit-table__head-item-title"},title:(0,n.__)("Discover your most popular and engaging content","google-site-kit"),content:(0,n.__)("Find out what your audience loves and double down on what resonates most","google-site-kit"),offset:25,spotlightPadding:0,placement:"top",isResponsive:!0},l(e,t,!0)].filter(Boolean)}}var d=i(29785),u=i(97345),p=i(88273),m=i(84730),h=i(8732),_=i(62659),f=i(4124),k=i(22942),y=i(99893);function v(){const e=(0,f.A)(),t=(0,_.A)(),i=(0,s.useSelect)(e=>e(u.oR).hasCapability(u.ej),[]),n=(0,s.useSelect)(e=>e(p.i).isModuleConnected(k.L1)&&e(u.oR).hasAccessToShareableModule(k.L1),[]),r=(0,s.useSelect)(e=>{if(t!==o.jU)return!1;const i=e(h.D).getQueuedNotifications(o.jU,m.He.DEFAULT);return"activate-analytics-notification"===i?.[0]?.id},[t]),a=(0,s.useSelect)(e=>n&&!!e(d.O4).isKeyMetricsSetupCompleted()&&!e(u.oR).isKeyMetricsWidgetHidden(),[n]),l=(0,s.useSelect)(e=>n&&!!e(y.K9).isAudienceSegmentationSetupCompleted()&&!e(u.oR).isAudienceSegmentationWidgetHidden(),[n]);return g({isViewOnly:e,canAuthenticate:i,isAnalyticsConnected:!!n,isActivateAnalyticsNotificationPresent:r,isKeyMetricsWidgetPresent:a,isAudienceSegmentationWidgetPresent:l})}},75971(e,t,i){i.d(t,{WM:()=>s.WM,wA:()=>s.wA,ws:()=>s.ws});var s=i(49057);void 0===globalThis.googlesitekit&&(globalThis.googlesitekit={}),globalThis.googlesitekit.data=s.Ay},37937(e,t,i){var s,n=i(39941),o=i(50037),r=i(78325),a=i(63081),l=i(49519),c=i(63696),g=i(82871),d=i(49383),u=i(338),p=i(72904),m=i(78307),h=i(75662),_=i(85172),f=i(30805),k=i(5924),y=i(62659),v=i(10740),A=i(65054),x=i(50539),b=i(88273),I=i(4452),j=i.n(I),M=i(62688),S=i.n(M),N=i(33052);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 23 30"},e),s||(s=c.createElement("path",{fill:"currentColor",d:"M20 10h-1.429V7.143C18.571 3.2 15.371 0 11.43 0a7.145 7.145 0 0 0-7.143 7.143V10H2.857A2.866 2.866 0 0 0 0 12.857v14.286A2.866 2.866 0 0 0 2.857 30H20a2.866 2.866 0 0 0 2.857-2.857V12.857A2.866 2.866 0 0 0 20 10m-8.571 12.857A2.866 2.866 0 0 1 8.57 20a2.866 2.866 0 0 1 2.858-2.857A2.866 2.866 0 0 1 14.286 20a2.866 2.866 0 0 1-2.857 2.857M15.857 10H7V7.143a4.43 4.43 0 0 1 4.429-4.429 4.43 4.43 0 0 1 4.428 4.429z"})));var C=i(62540);function SettingsOverlay({compress:e}){return(0,C.jsx)("div",{className:j()("googlesitekit-overlay",{"googlesitekit-overlay--compress":e}),children:(0,C.jsxs)("div",{className:"googlesitekit-overlay__wrapper",children:[(0,C.jsx)("div",{className:"googlesitekit-overlay__icon",children:(0,C.jsx)(w,{width:"22",height:"30"})}),(0,C.jsx)(N.A,{as:"h3",size:"medium",type:"title",className:" googlesitekit-heading-2 googlesitekit-overlay__title ",children:(0,g.__)("Section locked while editing","google-site-kit")})]})})}SettingsOverlay.propTypes={compress:S().bool},SettingsOverlay.defaultProps={compress:!1};const T=SettingsOverlay;function SettingsRenderer({slug:e}){const{action:t,moduleSlug:i}=(0,l.g)(),s="edit"===t,n=i===e,[o,r]=(0,c.useState)(),a=(0,x.useSelect)(t=>t(b.i).isDoingSubmitChanges(e)),{SettingsEditComponent:g,SettingsViewComponent:d,SettingsSetupIncompleteComponent:u,moduleLoaded:p,connected:m}=(0,x.useSelect)(t=>{const i=t(b.i).getModule(e);return{...i,moduleLoaded:!!i}});(0,c.useEffect)(()=>{p&&void 0===o&&r(m)},[p,o,m]);const{rollbackChanges:h}=(0,x.useDispatch)(b.i);return(0,c.useEffect)(()=>{a||s||h(e)},[e,h,a,s]),n&&p?n&&!1===o?(0,C.jsx)(u,{slug:e}):s&&g?(0,C.jsx)(g,{}):d?(0,C.jsx)(d,{}):null:null}var D=i(7972),R=i(31589),L=i(53328),z=i(82246),O=i(49993),P=i(70301),B=i(29785),U=i(13047);function ConfirmDisconnect({slug:e}){const t=(0,y.A)(),[i,s]=(0,c.useState)(!1),{setValue:n}=(0,x.useDispatch)(D.nX),o=`module-${e}-dialogActive`,r=(0,x.useSelect)(t=>t(b.i).getModuleDependantNames(e)),a=(0,x.useSelect)(t=>t(b.i).getModuleFeatures(e)),l=(0,x.useSelect)(t=>t(b.i).getModule(e)),d=(0,x.useSelect)(e=>e(B.O4).getAdminURL("googlesitekit-settings")),u=(0,x.useSelect)(e=>e(D.nX).getValue(o)),p=(0,c.useCallback)(()=>{n(o,!1)},[o,n]),m=(0,c.useCallback)(e=>{L._f===e.keyCode&&u&&p()},[u,p]);(0,R.A)("keydown",m);const{deactivateModule:h}=(0,x.useDispatch)(b.i),{navigateTo:_}=(0,x.useDispatch)(P.M),f=(0,c.useCallback)(async()=>{if(l.forceActive)return;s(!0);const{error:i}=await h(e);i?s(!1):(await(0,O.IL)(),await(0,U.sx)(`${t}_module-list`,"deactivate_module",e),_(d))},[e,l?.forceActive,d,h,_,t]);if(!l||!u)return null;const{name:k}=l,v=(0,g.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,g.__)("Disconnect %s from Site Kit?","google-site-kit"),k),A=[];return r.length>0&&A.push((0,g.sprintf)(/* translators: 1: module name, 2: list of dependent modules */ /* translators: 1: module name, 2: list of dependent modules */ (0,g.__)("these active modules depend on %1$s and will also be disconnected: %2$s","google-site-kit"),k,(0,U.K5)(r))),"function"==typeof l?.SettingsDisconnectNoteComponent&&A.push(l.SettingsDisconnectNoteComponent),(0,C.jsx)(z.A,{className:"googlesitekit-settings-module__confirm-disconnect-modal",handleCancel:p,onClose:p,title:v,provides:a,handleConfirm:f,notes:A,inProgress:i,dialogActive:!0,danger:!0})}ConfirmDisconnect.propTypes={slug:S().string.isRequired};var G,W=i(38432);function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",V({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 10"},e),G||(G=c.createElement("path",{fill:"currentColor",d:"M0 7.917V10h2.083l6.144-6.144-2.083-2.083zm9.838-5.671a.553.553 0 0 0 0-.784l-1.3-1.3a.553.553 0 0 0-.784 0L6.738 1.18 8.82 3.262z"})));function FooterPrimaryAction({slug:e,isEditing:t,isSaving:i,handleConfirm:s,handleClose:n,handleEdit:o}){const r=(0,x.useSelect)(t=>t(b.i).getModule(e)),a=(0,x.useSelect)(t=>t(b.i).isModuleConnected(e)),l=(0,x.useSelect)(t=>t(b.i).areSettingsEditDependenciesLoaded(e)),u=(0,x.useSelect)(t=>t(b.i).canSubmitChanges(e)),p=(0,x.useSelect)(t=>t(b.i).haveSettingsChanged(e)),m=!!r?.SettingsEditComponent;return t||i?(0,C.jsxs)(c.Fragment,{children:[m&&a?(0,C.jsx)(d.SpinnerButton,{disabled:i||!l||!u&&p,onClick:s,isSaving:i,children:p||i?(0,g.__)("Confirm changes","google-site-kit"):(0,g.__)("Save","google-site-kit")}):(0,C.jsx)(d.Button,{onClick:n,children:(0,g.__)("Close","google-site-kit")}),m&&(0,C.jsx)(d.Button,{className:"googlesitekit-settings-module__footer-cancel",onClick:n,tertiary:!0,children:(0,g.__)("Cancel","google-site-kit")})]}):m||!r?.forceActive?(0,C.jsx)(W.A,{className:"googlesitekit-settings-module__edit-button",to:`/connected-services/${e}/edit`,onClick:o,"aria-label":(0,g.sprintf)(/* translators: %s is replaced with the module name */ /* translators: %s is replaced with the module name */ (0,g.__)("Edit %s settings","google-site-kit"),r?.name),trailingIcon:(0,C.jsx)(F,{className:"googlesitekit-settings-module__edit-button-icon",width:10,height:10}),children:(0,g.__)("Edit","google-site-kit")}):null}var H;function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",Y({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 13"},e),H||(H=c.createElement("path",{fill:"currentColor",d:"M.722 11.556c0 .794.65 1.444 1.445 1.444h5.777c.795 0 1.445-.65 1.445-1.444V2.889H.722zM10.112.722H7.582L6.861 0H3.25l-.722.722H0v1.445h10.111z"})));function FooterSecondaryAction({slug:e,isEditing:t,handleDialog:i}){const s=(0,x.useSelect)(t=>t(b.i).getModule(e)),n=(0,x.useSelect)(t=>t(b.i).getDetailsLinkURL(e));return t&&!s?.forceActive?(0,C.jsx)(W.A,{className:"googlesitekit-settings-module__remove-button",onClick:i,trailingIcon:(0,C.jsx)(q,{className:"googlesitekit-settings-module__remove-button-icon",width:13,height:13}),danger:!0,children:(0,g.sprintf)(/* translators: %s is replaced with the module name */ /* translators: %s is replaced with the module name */ (0,g.__)("Disconnect %s from Site Kit","google-site-kit"),s?.name)}):!t&&s?.connected&&n?(0,C.jsx)(W.A,{href:n,className:"googlesitekit-settings-module__cta-button",external:!0,children:(0,g.sprintf)(/* translators: %s is replaced with the module name */ /* translators: %s is replaced with the module name */ (0,g.__)("See full details in %s","google-site-kit"),s?.name)}):null}function Footer({slug:e}){const t=(0,y.A)(),i=(0,l.W6)(),{action:s,moduleSlug:n}=(0,l.g)(),o="edit"===s&&n===e,r=`module-${e}-error`,a=`module-${e}-dialogActive`,g=`module-${e}-isSaving`,d=(0,x.useSelect)(e=>e(D.nX).getValue(a)),u=(0,x.useSelect)(e=>e(D.nX).getValue(g)),p=(0,x.useSelect)(t=>t(b.i).getModule(e)),{submitChanges:m}=(0,x.useDispatch)(b.i),{clearSelectorErrors:h,clearActionErrors:_}=(0,x.useDispatch)(p?.storeName)||{},{setValue:f}=(0,x.useDispatch)(D.nX),k=(0,c.useCallback)(async()=>{await(0,U.sx)(`${t}_module-list`,"cancel_module_settings",e),await(h?.()),await(_?.()),i.push(`/connected-services/${e}`)},[h,_,i,t,e]),A=(0,c.useCallback)(async s=>{s.preventDefault(),f(g,!0);const{error:n}=await m(e);f(g,!1),n?f(r,n):(await(0,U.sx)(`${t}_module-list`,"update_module_settings",e),f(r,void 0),await(h?.()),await(_?.()),i.push(`/connected-services/${e}`),await(0,O.IL)())},[f,g,m,e,r,h,_,i,t]),I=(0,c.useCallback)(()=>{f(a,!d)},[d,a,f]),j=(0,c.useCallback)(()=>{(0,U.sx)(`${t}_module-list`,"edit_module_settings",e)},[e,t]);return p?(0,C.jsx)("footer",{className:"googlesitekit-settings-module__footer",children:(0,C.jsx)(v.xA,{children:(0,C.jsxs)(v.fI,{children:[(0,C.jsx)(v.fh,{lgSize:6,mdSize:8,smSize:4,children:(0,C.jsx)(FooterPrimaryAction,{slug:e,isEditing:o,isSaving:u,handleConfirm:A,handleClose:k,handleEdit:j})}),(0,C.jsx)(v.fh,{lgSize:6,mdSize:8,smSize:4,alignMiddle:!0,lgAlignRight:!0,children:(0,C.jsx)(FooterSecondaryAction,{slug:e,isEditing:o,handleDialog:I})})]})})}):null}Footer.propTypes={slug:S().string.isRequired};var Z=i(5855),Q=i(50304),K=i(2671),X=i(60515),$=i(1405);const J=[],ee=[$.a],te=[];var ie=i(12896),se=i(2478);function Header_Header({slug:e}){const t=(0,y.A)(),i=(0,l.W6)(),s=(0,c.useRef)(),{moduleSlug:n}=(0,l.g)(),o=n===e,r=(0,x.useSelect)(t=>t(b.i).getModule(e)),a=(0,c.useCallback)(()=>{o||(i.push(`/connected-services/${e}`),(0,U.sx)(`${t}_module-list`,"view_module_settings",e))},[i,e,t,o]),d=(0,c.useCallback)(()=>{o&&(i.push("/connected-services"),(0,U.sx)(`${t}_module-list`,"close_module_settings",e))},[i,e,t,o]);(0,ie.l)([L.Fm],s,o?d:a),(0,ie.l)([L._f],s,d);const{name:u,SettingsStatusComponent:p}=r;return r?(0,C.jsxs)("div",{className:j()("googlesitekit-settings-module__header",{"googlesitekit-settings-module__header--open":o}),id:`googlesitekit-settings-module__header--${e}`,type:"button",role:"tab","aria-selected":o,"aria-expanded":o,"aria-controls":`googlesitekit-settings-module__content--${e}`,to:"/connected-services"+(o?"":`/${e}`),onClick:o?d:a,ref:s,tabIndex:"0",children:[(0,C.jsx)(v.xA,{children:(0,C.jsxs)(v.fI,{children:[(0,C.jsxs)(v.fh,{lgSize:6,mdSize:4,smSize:4,className:"googlesitekit-settings-module__heading",children:[(0,C.jsx)(K.A,{slug:e,size:40,className:"googlesitekit-settings-module__heading-icon"}),(0,C.jsx)(N.A,{as:"h3",type:"title",size:"large",className:"googlesitekit-settings-module__title",children:u}),(0,C.jsxs)("div",{className:"googlesitekit-settings-module__heading-badges",children:[te.includes(e)&&(0,C.jsx)(Z.A,{label:(0,g.__)("Experimental","google-site-kit"),hasLeftSpacing:!0}),ee.includes(e)&&(0,C.jsx)(Z.A,{className:"googlesitekit-badge--beta",label:(0,g.__)("Beta","google-site-kit"),hasLeftSpacing:!0}),J.includes(e)&&(0,C.jsx)(X.A,{hasLeftSpacing:!0})]})]}),(0,C.jsx)(v.fh,{lgSize:6,mdSize:4,smSize:4,alignMiddle:!0,mdAlignRight:!0,children:(0,C.jsx)(p,{slug:e})})]})}),(0,C.jsx)(Q.A,{children:(0,C.jsx)(se.A,{width:12,height:8,className:"icon-chevron-down"})})]}):null}function SettingsActiveModule(e){const{slug:t}=e,{action:i,moduleSlug:s}=(0,l.g)(),n="edit"===i,o=s===t,r=s!==t&&n,a=`module-${t}-error`,c=(0,x.useSelect)(e=>e(b.i).getErrorForAction("deactivateModule",[t])),g=(0,x.useSelect)(e=>e(D.nX).getValue(a));return(0,C.jsxs)("div",{className:j()("googlesitekit-settings-module","googlesitekit-settings-module--active",`googlesitekit-settings-module--${t}`,{"googlesitekit-settings-module--error":(g||c)&&n}),children:[r&&(0,C.jsx)(T,{compress:!o}),(0,C.jsx)(Header_Header,{slug:t}),o&&(0,C.jsxs)("div",{id:`googlesitekit-settings-module__content--${t}`,className:"googlesitekit-settings-module__content googlesitekit-settings-module__content--open",role:"tabpanel","aria-labelledby":`googlesitekit-settings-module__header--${t}`,children:[(0,C.jsx)(v.xA,{children:(0,C.jsx)(v.fI,{children:(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(SettingsRenderer,{slug:t})})})}),(0,C.jsx)(Footer,{slug:t})]}),(0,C.jsx)(ConfirmDisconnect,{slug:t})]})}function SettingsActiveModules(){const e=(0,x.useSelect)(e=>e(b.i).getModules());if(!e)return null;const t=Object.keys(e).map(t=>e[t]).filter(({internal:e,active:t})=>!e&&t).sort((e,t)=>e.order-t.order);return(0,C.jsx)(h.A,{rounded:!0,children:t.map(({slug:e})=>(0,C.jsx)(SettingsActiveModule,{slug:e},e))})}Header_Header.propTypes={slug:S().string.isRequired},SettingsActiveModule.propTypes={slug:S().string.isRequired};var ne=i(11974),oe=i(4751),re=i(62779),ae=i(97345),le=i(97513),ce=i(37467),ge=i(11883);function de(e){const[t]=(0,ce.A)("scrollTo"),i=(0,le.dv)();(0,c.useEffect)(()=>{t===e&&setTimeout(()=>{globalThis.scrollTo({top:(0,ge.YJ)(`#${e}`,i)-20,behavior:"smooth"})},50)},[e,t,i])}var ue=i(99893),pe=i(13606),me=i(83880),he=i(68832),_e=i(52053),fe=i(23403),ke=i(30289),ye=i(51568),ve=i(69908),Ae=i(19793);const xe="show_settings_visitor_groups_success_notification",be=(0,c.forwardRef)((e,t)=>{const i=(0,y.A)(),s=(0,x.useSelect)(e=>{const t=e(B.O4).getAdminURL("googlesitekit-dashboard");return(0,ye.F)(t,{widgetArea:ve.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION})}),{navigateTo:n}=(0,x.useDispatch)(P.M),{setValue:o}=(0,x.useDispatch)(D.nX);function r(){o(xe,!1)}return(0,C.jsxs)("div",{ref:t,className:"googlesitekit-settings-visitor-groups__setup-success googlesitekit-subtle-notification",children:[(0,C.jsx)("div",{className:"googlesitekit-subtle-notification__icon",children:(0,C.jsx)(Ae.A,{width:24,height:24})}),(0,C.jsx)("div",{className:"googlesitekit-subtle-notification__content",children:(0,C.jsx)(me.A,{children:(0,g.__)("We’ve added the visitor groups section to your dashboard!","google-site-kit")})}),(0,C.jsxs)("div",{className:"googlesitekit-subtle-notification__action",children:[(0,C.jsx)(d.Button,{onClick:function(){(0,U.sx)(`${i}_audiences-setup-cta-settings-success`,"dismiss_notification").finally(r)},tertiary:!0,children:(0,g.__)("Got it","google-site-kit")}),(0,C.jsx)(d.Button,{onClick:function(){(0,U.sx)(`${i}_audiences-setup-cta-settings-success`,"confirm_notification").finally(async()=>{await r(),n(s)})},children:(0,g.__)("Show me","google-site-kit")})]})]})}),Ie=(0,ke.A)(be);function SetupSuccess(){const e=(0,y.A)();return(0,C.jsx)(Ie,{onInView:()=>{(0,U.sx)(`${e}_audiences-setup-cta-settings-success`,"view_notification")}})}function SetupCTA(){const e=(0,y.A)(),[t,i]=(0,c.useState)(!1),s=(0,x.useSelect)(e=>e(B.O4).getDocumentationLinkURL("visitor-groups")),n=(0,c.useCallback)(()=>{i(!0)},[i]),{setValue:o}=(0,x.useDispatch)(D.nX),{apiErrors:r,failedAudiences:a,isSaving:l,onEnableGroups:u}=(0,fe.A)({redirectURL:globalThis.location.href,onSuccess:()=>{o(xe,!0)},onError:n}),p=(0,x.useSelect)(e=>e(B.O4).getSetupErrorCode()),[m,h]=(0,he.A)(ue.PW,"autoSubmit"),_=m&&"access_denied"===p,{setSetupErrorCode:f}=(0,x.useDispatch)(B.O4),{clearPermissionScopeError:k}=(0,x.useDispatch)(ae.oR);return(0,C.jsxs)("div",{className:"googlesitekit-settings-visitor-groups__setup",children:[(0,C.jsx)(me.A,{children:(0,pe.A)((0,g.__)("To set up new visitor groups for your site, Site Kit needs to update your Google Analytics property. Learn more","google-site-kit"),{a:(0,C.jsx)(W.A,{href:s,external:!0})})}),l&&(0,C.jsxs)("div",{className:"googlesitekit-settings-visitor-groups__setup-progress",children:[(0,C.jsx)(me.A,{children:(0,g.__)("Enabling groups","google-site-kit")}),(0,C.jsx)(d.ProgressBar,{compress:!0})]}),!l&&(0,C.jsx)(W.A,{onClick:function(){(0,U.sx)(`${e}_audiences-setup-cta-settings`,"enable_groups").finally(u)},children:(0,g.__)("Enable groups","google-site-kit")}),(t||_)&&(0,C.jsx)(_e.Oc,{hasOAuthError:_,apiErrors:r.length?r:a,onRetry:u,inProgress:l,onCancel:_?function(){h(!1),k(),f(null),i(!1)}:()=>i(!1)})]})}function SettingsCardAudiences(){const e=(0,y.A)(),t=(0,x.useSelect)(e=>e(ae.oR).isAudienceSegmentationWidgetHidden()),i=(0,x.useSelect)(e=>e(ae.oR).getConfiguredAudiences()),s=(0,x.useSelect)(e=>e(ue.K9).getAudienceSegmentationSetupCompletedBy()),n=(0,x.useSelect)(e=>e(D.nX).getValue(xe)),{setAudienceSegmentationWidgetHidden:o,saveUserAudienceSettings:r}=(0,x.useDispatch)(ae.oR),a=(0,c.useCallback)(()=>{const i=t?"audience_widgets_enable":"audience_widgets_disable";(0,U.sx)(`${e}_audiences-settings`,i).finally(async()=>{await o(!t),await r()})},[t,r,o,e]);if(de("visitor-groups"),void 0===i||void 0===s)return null;const l=!i&&null===s;return(0,C.jsx)(h.A,{id:"visitor-groups",className:"googlesitekit-settings-meta",title:(0,g.__)("Visitor groups","google-site-kit"),header:!0,fill:!0,rounded:!0,children:(0,C.jsx)("div",{className:"googlesitekit-settings-module googlesitekit-settings-module--active",children:(0,C.jsx)(v.xA,{children:(0,C.jsx)(v.fI,{children:(0,C.jsxs)(v.fh,{size:12,children:[l&&(0,C.jsx)(SetupCTA,{}),!l&&(0,C.jsxs)(c.Fragment,{children:[n&&(0,C.jsx)(SetupSuccess,{}),(0,C.jsx)(d.Switch,{label:(0,g.__)("Display visitor groups in dashboard","google-site-kit"),checked:!t,onClick:a,hideLabel:!1})]})]})})})})})}var je=i(22942),Me=i(49481),Se=i(24560),Ne=i(63560),Ee=i(73198),we=i(45257),Ce=i(15844),Te=i(81597);function ConfirmDisableConsentModeDialog({onConfirm:e,onCancel:t}){const i=(0,y.A)(),s=(0,x.useSelect)(e=>e(B.O4).isAdsConnectedUncached()),n=(0,x.useSelect)(e=>[je.L1,Te.I].reduce((t,i)=>e(b.i).isModuleConnected(i)?[...t,e(b.i).getModule(i).name]:t,[])),o=n.length>0?(0,g.sprintf)(/* translators: %s: list of dependent modules */ /* translators: %s: list of dependent modules */ (0,g.__)("these active modules depend on consent mode and will be affected: %s","google-site-kit"),(0,U.K5)(n)):null;(0,Ce.A)(()=>{(0,U.sx)(`${i}_CoMo`,"view_modal")});let r=[(0,g.__)("Track how visitors interact with your site","google-site-kit")],a=(0,g.__)("Disabling consent mode may affect your ability in the European Economic Area, the UK and Switzerland to:","google-site-kit");return s&&(r=[(0,g.__)("Performance of your Ad campaigns","google-site-kit"),(0,g.__)("How visitors interact with your site via Analytics","google-site-kit")],a=(0,g.__)("Disabling consent mode may affect your ability to track these in the European Economic Area, the UK and Switzerland:","google-site-kit")),(0,C.jsx)(z.A,{className:"googlesitekit-settings-module__confirm-disconnect-modal",title:(0,g.__)("Disable consent mode?","google-site-kit"),subtitle:a,handleConfirm:e,handleCancel:t,onClose:t,provides:r,notes:[o],confirmButton:(0,g.__)("Disable","google-site-kit"),dialogActive:!0,danger:!0})}ConfirmDisableConsentModeDialog.propTypes={onConfirm:S().func.isRequired,onCancel:S().func.isRequired};var De=i(11514);function ConsentModeSwitch({loading:e}){const t=(0,y.A)(),[i,s]=(0,c.useState)(null),[n,o]=(0,c.useState)(!1),r=(0,x.useSelect)(e=>e(B.O4).isConsentModeEnabled()),a=(0,x.useSelect)(e=>e(B.O4).getDocumentationLinkURL("consent-mode")),l=(0,x.useSelect)(e=>e(B.O4).isFetchingSaveConsentModeSettings()),{setConsentModeEnabled:u,saveConsentModeSettings:p}=(0,x.useDispatch)(B.O4),{dismissPrompt:m,triggerSurvey:h}=(0,x.useDispatch)(ae.oR),_=(0,x.useSelect)(e=>e(ae.oR).isPromptDismissed(De.X));async function f(){s(null);const e=[p(),h("enable_como",{ttl:U.tt})],[{error:t}]=await Promise.all(e);t?s(t):_||await m(De.X)}return(0,C.jsxs)(c.Fragment,{children:[(0,C.jsxs)("div",{children:[(0,C.jsx)(we.A,{loading:e,width:"180px",height:"21.3px",children:(0,C.jsx)(d.Switch,{label:(0,g.__)("Enable consent mode","google-site-kit"),checked:r,disabled:e||l,onClick:()=>{r?((0,U.sx)(`${t}_CoMo`,"como_disable"),o(!0)):((0,U.sx)(`${t}_CoMo`,"como_enable"),u(!0),f())},hideLabel:!1})}),i&&(0,C.jsx)(Ee.A,{message:i.message}),!e&&r&&(0,C.jsx)("p",{className:"googlesitekit-settings-consent-mode-switch__enabled-notice",children:(0,g.__)("Site Kit added the necessary code to your tag to comply with consent mode.","google-site-kit")}),(0,C.jsx)(we.A,{className:"googlesitekit-settings-consent-mode-switch-description--loading",loading:e,width:"750px",height:"42px",smallWidth:"386px",smallHeight:"84px",tabletWidth:"540px",tabletHeight:"84px",children:(0,C.jsx)(me.A,{children:(0,pe.A)((0,g.__)("Consent mode will help adjust tracking on your site, so only visitors who have explicitly given consent are tracked.
This is required in some parts of the world, like the European Economic Area. Learn more","google-site-kit"),{br:(0,C.jsx)("br",{}),a:(0,C.jsx)(W.A,{href:a,"aria-label":(0,g.__)("Learn more about consent mode","google-site-kit"),onClick:async()=>{await(0,U.sx)(`${t}_CoMo`,"como_learn_more")},external:!0})})})})]}),n&&(0,C.jsx)(ConfirmDisableConsentModeDialog,{onConfirm:()=>{(0,U.sx)(`${t}_CoMo`,"confirm_disconnect"),u(!1),o(!1),f()},onCancel:()=>{(0,U.sx)(`${t}_CoMo`,"cancel_disconnect"),o(!1)}})]})}var Re=i(37325),Le=i(3749),ze=i(11763),Oe=i(63972);function WPConsentAPIRequirement({title:e,description:t,footer:i}){return(0,C.jsxs)("div",{className:"googlesitekit-settings-consent-mode-requirement",children:[(0,C.jsx)(N.A,{as:"h4",size:"large",type:"title",children:e}),(0,C.jsx)("p",{className:"googlesitekit-settings-consent-mode-requirement__description",children:t}),(0,C.jsx)("footer",{className:"googlesitekit-settings-consent-mode-requirement__footer",children:i})]})}function WPConsentAPIRequirements(){const e=(0,y.A)(),t=(0,x.useSelect)(e=>e(B.O4).getDocumentationLinkURL("wp-consent-api")),i=(0,x.useSelect)(e=>e(B.O4).getDocumentationLinkURL("consent-management-platform")),{hasConsentAPI:s,wpConsentPlugin:n}=(0,x.useSelect)(e=>e(B.O4).getConsentAPIInfo()),{installActivateWPConsentAPI:o,activateConsentAPI:r}=(0,x.useDispatch)(B.O4),a=(0,x.useSelect)(e=>e(B.O4).getErrorForAction("installActivateWPConsentAPI")),l=(0,x.useSelect)(e=>e(B.O4).isApiFetching()),d=(0,x.useSelect)(e=>e(B.O4).isFetchingActivateConsentAPI()),u=(0,x.useSelect)(e=>e(B.O4).getApiInstallResponse()),p=(a?a.message:null)||u?.error,m={smSize:4,mdSize:4,lgSize:6};return(0,c.useEffect)(()=>{s&&(0,U.sx)(`${e}_CoMo`,"wp_consent_api_active")},[s,e]),(0,C.jsxs)(c.Fragment,{children:[(0,C.jsx)("p",{className:"googlesitekit-settings-consent-mode-requirements__description",children:(0,g.__)("In order for consent mode to work properly, these requirements must be met:","google-site-kit")}),(0,C.jsx)(v.xA,{className:"googlesitekit-settings-consent-mode-requirements__grid",children:(0,C.jsxs)(v.fI,{children:[(0,C.jsx)(v.fh,{...m,children:(0,C.jsx)(WPConsentAPIRequirement,{title:n?.installed?(0,g.__)("Activate WP Consent API","google-site-kit"):(0,g.__)("Install WP Consent API","google-site-kit"),description:(0,pe.A)((0,g.__)("WP Consent API is a plugin that standardizes the communication of accepted consent categories between plugins. Learn more","google-site-kit"),{a:(0,C.jsx)(W.A,{href:t,"aria-label":(0,g.__)("Learn more about the WP Consent API","google-site-kit"),onClick:async()=>{await(0,U.sx)(`${e}_CoMo`,"wp_consent_api_learn_more")},external:!0})}),footer:(0,C.jsxs)(c.Fragment,{children:[s&&(0,C.jsxs)("div",{className:"googlesitekit-settings-consent-mode-requirement__consent-api-detected-wrapper",children:[(0,C.jsx)("span",{className:"googlesitekit-settings-consent-mode-requirement__consent-api-detected-icon",children:(0,C.jsx)(Oe.A,{})}),(0,g.__)("Site Kit detected WP Consent API for your site","google-site-kit")]}),!s&&(0,C.jsxs)(c.Fragment,{children:[n.installed&&(0,C.jsxs)(c.Fragment,{children:[!!u?.error&&(0,C.jsx)(Ee.A,{message:u?.error,skipRetryMessage:!0,hideIcon:!0}),(0,C.jsx)(ze.A,{className:"googlesitekit-settings-consent-mode-requirement__install-button",isSaving:d,disabled:d,onClick:async()=>{r(),await(0,U.sx)(`${e}_CoMo`,"wp_consent_api_activate")},children:u?.error?(0,g.__)("Retry","google-site-kit"):(0,g.__)("Activate","google-site-kit")})]}),!n.installed&&(0,C.jsxs)(c.Fragment,{children:[p&&(0,C.jsx)(Ee.A,{message:p,skipRetryMessage:!0,hideIcon:!0}),(0,C.jsx)(ze.A,{className:"googlesitekit-settings-consent-mode-requirement__install-button",isSaving:l,disabled:l,onClick:async()=>{o(),await(0,U.sx)(`${e}_CoMo`,"wp_consent_api_install")},children:p?(0,g.__)("Retry","google-site-kit"):(0,g.__)("Install","google-site-kit")})]})]})]})})}),(0,C.jsx)(v.fh,{...m,children:(0,C.jsx)(WPConsentAPIRequirement,{title:(0,g.__)("Install consent management plugin","google-site-kit"),description:(0,pe.A)((0,g.__)("You’ll need a plugin compatible with the WP Consent API to display a notice to site visitors and get their consent for tracking. WordPress offers a variety of consent plugins you can choose from. See suggested plugins","google-site-kit"),{a:(0,C.jsx)(W.A,{href:i,"aria-label":(0,g.__)("Suggested consent management plugins","google-site-kit"),onClick:async()=>{await(0,U.sx)(`${e}_CoMo`,"consent_mgmt_plugin_learn_more")},external:!0})}),footer:(0,C.jsx)(Re.A,{type:Le.L.INFO,className:"googlesitekit-notice--small",description:(0,g.__)("Make sure you have installed a plugin compatible with WP Consent API (Site Kit isn't able to verify the compatibility of all WP plugins).","google-site-kit")})})})]})})]})}function SettingsCardConsentMode(){const e=(0,y.A)(),t=(0,x.useSelect)(e=>e(B.O4).isAdsConnectedUncached()),i=(0,x.useSelect)(e=>e(B.O4).isConsentModeEnabled()),s=(0,x.useSelect)(e=>e(B.O4).getConsentAPIInfo()),n=(0,x.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:i}=e(B.O4);return!i("getConsentModeSettings")||!i("getConsentAPIInfo")||t("getConsentModeSettings")||t("getConsentAPIInfo")}),o=(0,c.useRef)(),r=(0,Ne.A)(o,{threshold:.25}),[a,l]=(0,c.useState)(!1),d=!!r?.intersectionRatio,{triggerSurvey:u}=(0,x.useDispatch)(ae.oR);return(0,c.useEffect)(()=>{d&&!a&&((0,U.sx)(`${e}_CoMo`,"view_requirements"),t&&!1===i&&u("view_como_setup_cta",{ttl:U.tt}),l(!0))},[d,a,e,u,t,i]),(0,C.jsx)(h.A,{title:(0,g.__)("Consent mode","google-site-kit"),badge:t?(0,C.jsx)(Z.A,{className:"googlesitekit-badge--primary",label:(0,g.__)("Recommended","google-site-kit")}):null,header:!0,rounded:!0,children:(0,C.jsx)("div",{className:"googlesitekit-settings-module googlesitekit-settings-module--active googlesitekit-settings-consent-mode",ref:o,children:(0,C.jsxs)(v.xA,{children:[(0,C.jsx)(v.fI,{children:(0,C.jsx)(v.fh,{size:12,className:j()({"googlesitekit-overflow-hidden":n}),children:(0,C.jsx)(ConsentModeSwitch,{loading:n})})}),!n&&(0,C.jsxs)(c.Fragment,{children:[t&&!i&&(0,C.jsx)(v.fI,{children:(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(Re.A,{type:Le.L.INFO,description:(0,g.__)("If you have Google Ads campaigns for this site, it’s highly recommended to enable consent mode - otherwise, you won’t be able to collect any metrics on the effectiveness of your campaigns in regions like the European Economic Area.","google-site-kit")})})}),!!s&&i&&(0,C.jsx)(v.fI,{children:(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(WPConsentAPIRequirements,{})})})]})]})})})}WPConsentAPIRequirement.propTypes={title:S().string.isRequired,description:S().node.isRequired,footer:S().node.isRequired};var Pe=i(76729),Be=i(91117),Ue=i(68761);const Ge="email_reports_new_notice",We=(0,ke.A)(Re.A);function EmailReportingCardNotice({className:e}){const t=(0,x.useSelect)(e=>e(ae.oR).getEmailReportingSettings()),i=(0,x.useSelect)(e=>e(ae.oR).isEmailReportingSubscribed()),s=(0,x.useSelect)(e=>e(ae.oR).isItemDismissed(Ge)),n=(0,Ue.A)(Ge),{setValue:o}=(0,x.useDispatch)(D.nX),{dismissItem:r}=(0,x.useDispatch)(ae.oR),a=(0,c.useCallback)(()=>{n.confirm(),o(Pe.Q,!0)},[o,n]),l=(0,c.useCallback)(async()=>{n.dismiss(),await r(Ge)},[r,n]);return void 0===t||i||!1!==s?null:(0,C.jsx)(We,{className:e,type:Le.L.NEW,title:(0,g.__)("Get site insights in your inbox","google-site-kit"),description:(0,g.__)("Receive the most important insights about your site’s performance, key trends, and tailored metrics directly in your inbox","google-site-kit"),ctaButton:{label:(0,g.__)("Set up","google-site-kit"),onClick:a},dismissButton:{label:(0,g.__)("Maybe later","google-site-kit"),onClick:l},onInView:n.view})}EmailReportingCardNotice.propTypes={className:S().string};var Ve=i(14183);function SettingsEmailReporting({loading:e=!1}){const t=(0,y.A)(),[i,s]=(0,c.useState)(!1),n=(0,x.useSelect)(e=>e(B.O4).isEmailReportingEnabled()),o=(0,x.useSelect)(e=>e(B.O4).getEmailReportingSettings()),r=(0,x.useSelect)(e=>e(ae.oR).isEmailReportingSubscribed()),a=(0,x.useSelect)(e=>e(ae.oR).isItemDismissed(Ge)),l=(0,x.useSelect)(e=>e(B.O4).getDocumentationLinkURL("email-reporting")),{setEmailReportingEnabled:u,saveEmailReportingSettings:p}=(0,x.useDispatch)(B.O4),{setValue:m}=(0,x.useDispatch)(D.nX),h=(0,c.useCallback)(async()=>{n?s(!0):((0,U.sx)(`${t}_email_reports`,"activate_periodic_email_reports"),await u(!0),await p())},[n,u,p,t]),_=(0,c.useCallback)(async()=>{(0,U.sx)(`${t}_email_reports`,"deactivate_periodic_email_reports"),s(!1),await u(!1),await p()},[p,u,t]),f=(0,c.useCallback)(()=>{(0,U.sx)(`${t}_email_reports_confirm_disable_modal`,"dismiss_modal"),s(!1)},[t]),k=(0,c.useCallback)(()=>{(0,U.sx)(`${t}_email_reports`,"manage_email_reports_subscription"),m(Pe.Q,!0)},[t,m]),A=(0,c.useCallback)(()=>{(0,U.sx)(`${t}_email_reports_confirm_disable_modal`,"manage_email_reports_subscription"),f(),m(Pe.Q,!0)},[t,m,f]);return e||void 0===o?null:(0,C.jsxs)(c.Fragment,{children:[(0,C.jsx)(v.fI,{children:(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)("div",{className:"googlesitekit-settings-email-reporting__switch",children:(0,C.jsx)(d.Switch,{label:(0,C.jsxs)(c.Fragment,{children:[(0,C.jsx)(N.A,{type:"body",size:"medium",className:"googlesitekit-settings-email-reporting__label",children:(0,g.__)("Enable email reports","google-site-kit")}),(0,C.jsx)("br",{}),(0,C.jsx)(N.A,{type:"body",size:"medium",className:"googlesitekit-settings-email-reporting__label-description",children:(0,pe.A)((0,g.__)("This allows you and any dashboard sharing user to subscribe to email reports. Learn more","google-site-kit"),{a:(0,C.jsx)(W.A,{href:l,onClick:()=>{(0,U.sx)(`${t}_email_reports`,"click_learn_more_link")},external:!0})})})]}),checked:n,onClick:h,hideLabel:!1})})})}),n&&void 0!==o&&!r&&!1===a&&(0,C.jsx)(v.fI,{className:"googlesitekit-settings-email-reporting__manage",children:(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(EmailReportingCardNotice,{})})}),n&&void 0!==o&&void 0!==a&&(r||!1!==a)&&(0,C.jsx)(v.fI,{className:"googlesitekit-settings-email-reporting__manage",children:(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(W.A,{onClick:k,children:(0,g.__)("Manage email reports subscription","google-site-kit")})})}),(0,C.jsx)(Ve.A,{}),(0,C.jsx)(Be.A,{}),i&&(0,C.jsx)(z.A,{className:"googlesitekit-settings-email-reporting__confirm-disable-modal",title:(0,g.__)("Are you sure you want to disable email reports?","google-site-kit"),subtitle:(0,C.jsxs)(c.Fragment,{children:[(0,C.jsx)("span",{children:(0,g.__)("Disabling email reports will pause sending email reports for all subscribed users.","google-site-kit")}),(0,C.jsx)("br",{}),(0,pe.A)((0,g.__)("You can manage your subscription in your email report settings.","google-site-kit"),{a:(0,C.jsx)(W.A,{onClick:A})}),(0,C.jsx)("br",{}),(0,C.jsx)(W.A,{href:l,onClick:()=>{(0,U.sx)(`${t}_email_reports_confirm_disable_modal`,"click_learn_more_link")},external:!0,children:(0,g.__)("Learn more","google-site-kit")})]}),onOpen:()=>{(0,U.sx)(`${t}_email_reports_confirm_disable_modal`,"view_modal")},handleConfirm:_,handleCancel:f,onClose:f,confirmButton:(0,g.__)("Disable","google-site-kit"),dialogActive:!0})]})}function SettingsCardEmailReporting(){const e=(0,x.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:i}=e(B.O4);return!i("getEmailReportingSettings")||t("getEmailReportingSettings")}),t=(0,x.useSelect)(e=>e(B.O4).getEmailReportingSettings());return de("email-reporting"),(0,C.jsx)(h.A,{id:"email-reporting",title:(0,g.__)("Email reports","google-site-kit"),header:!0,rounded:!0,children:(0,C.jsxs)("div",{className:"googlesitekit-settings-module googlesitekit-settings-module--active googlesitekit-settings-email-reporting",children:[e&&(0,C.jsx)(oe.A,{width:"100%",height:"100px"}),!e&&void 0!==t&&(0,C.jsx)(v.xA,{children:(0,C.jsx)(v.fI,{children:(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(SettingsEmailReporting,{})})})})]})})}function ConversionReportingSettingsSubtleNotification(){const e=(0,y.A)(),[t,i]=(0,c.useState)(!1),[s,n]=(0,c.useState)(!1),o=(0,c.useRef)(),r=(0,Ne.A)(o,{threshold:.25}),a=!!r?.intersectionRatio;(0,c.useEffect)(()=>{!s&&a&&((0,U.sx)(`${e}_kmw-settings-change-from-manual-to-tailored`,"view_notification","conversion_reporting"),n(!0))},[s,a,e]);const l=(0,x.useSelect)(e=>e(B.O4).getAdminURL("googlesitekit-user-input")),d=(0,c.useCallback)(()=>{i(!0),(0,U.sx)(`${e}_kmw-settings-change-from-manual-to-tailored`,"confirm_get_tailored_metrics","conversion_reporting")},[i,e]);return(0,C.jsx)(v.xA,{ref:o,children:(0,C.jsx)(v.fI,{children:(0,C.jsx)(v.fh,{size:12,alignMiddle:!0,children:(0,C.jsx)(Re.A,{type:"new",title:(0,g.__)("Personalize your metrics","google-site-kit"),description:(0,g.__)("Set up your goals by answering 3 quick questions to help us show the most relevant data for your site","google-site-kit"),ctaButton:{label:(0,g.__)("Get tailored metrics","google-site-kit"),onClick:d,inProgress:t,disabled:t,href:l}})})})})}SettingsEmailReporting.propTypes={loading:S().bool};var Fe=i(89065),He=i(81276),Ye=i(65573),qe=i(50454);function ConfirmSitePurposeChangeModal({dialogActive:e=!1,handleDialog:t=null}){const i=(0,y.A)(),[s,n]=(0,c.useState)(!1),[o,r]=(0,c.useState)(null),a=(0,x.useSelect)(e=>e(ue.K9).shouldIncludeConversionTailoredMetrics()),l=(0,x.useSelect)(e=>e(ae.oR).getAnswerBasedMetrics(null,a)),[u,p]=(0,he.A)(Ye.we,Ye.a3),m=(0,x.useSelect)(e=>e(ae.oR).getSavedUserInputSettings()),h=(0,x.useSelect)(e=>m?.purpose?.values?.length?"other"===m?.purpose?.values?.[0]?e(ae.oR).getKeyMetrics():e(ae.oR).getAnswerBasedMetrics(m?.purpose?.values?.[0]):[]),{setValues:_}=(0,x.useDispatch)(D.nX),{resetUserInputSettings:f}=(0,x.useDispatch)(ae.oR),k=(0,c.useCallback)(async()=>{u?.length&&(await f(),p(void 0)),_({[Ye.b6]:void 0}),t(),n(!1)},[t,u,f,p,_]),v=(0,x.useSelect)(e=>e(b.i).isModuleConnected(je.L1)?e(ue.K9).getUserInputPurposeConversionEvents():[]),{setUserInputSetting:A,saveUserInputSettings:I}=(0,x.useDispatch)(ae.oR),j=(0,c.useCallback)(async()=>{n(!0),A("includeConversionEvents",v),await I(),k()},[I,k,n,A,v]),M=(0,He.A)(e);(0,c.useEffect)(()=>{!0===M&&!1===e&&(s?(0,U.sx)(`${i}_kmw-settings-tailored-metrics-suggestions`,"confirm_update_metrics_selection","conversion_reporting"):(0,U.sx)(`${i}_kmw-settings-tailored-metrics-suggestions`,"cancel_update_metrics_selection","conversion_reporting"))},[M,e,s,i]),(0,c.useEffect)(()=>{m?.purpose?.values?.[0]&&null===o&&void 0!==h&&r(h)},[m,o,h,r]);const S=(0,He.A)(s);return(0,c.useEffect)(()=>{!S||s||e||null===o||setTimeout(()=>{r(null)},50)},[S,s,e,o,r]),(0,C.jsxs)(d.Dialog,{open:e,"aria-describedby":void 0,tabIndex:"-1",className:"googlesitekit-dialog-confirm-site-purpose-change",onClose:k,children:[(0,C.jsx)(d.DialogTitle,{children:(0,g.__)("Tailored metrics suggestions","google-site-kit")}),(0,C.jsxs)(me.A,{children:[(0,g.__)("You have changed your website purpose. We can suggest new tailored metrics for you based on your answers or you can keep your current metrics selection on your dashboard.","google-site-kit"),(0,C.jsx)("br",{}),(0,g.__)("You can always edit your metrics selection from the dashboard.","google-site-kit")]}),(0,C.jsx)(d.DialogContent,{children:(0,C.jsxs)("div",{className:"mdc-layout-grid__inner",children:[(0,C.jsxs)("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-4-phone",children:[(0,C.jsx)(N.A,{as:"h3",size:"small",type:"headline",children:(0,g.__)("Current metrics","google-site-kit")}),!!o&&(0,C.jsx)("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive",children:o.map(e=>(0,C.jsx)("li",{className:"mdc-list-item",children:(0,C.jsx)("span",{className:"mdc-list-item__text",children:qe.G[e]?.title})},e))})]}),(0,C.jsxs)("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-4-phone",children:[(0,C.jsx)(N.A,{as:"h3",size:"small",type:"headline",children:(0,g.__)("New tailored metrics","google-site-kit")}),!!l&&(0,C.jsx)("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive",children:l.map(e=>(0,C.jsx)("li",{className:"mdc-list-item",children:(0,C.jsx)("span",{className:"mdc-list-item__text",children:qe.G[e]?.title})},e))})]})]})}),(0,C.jsxs)(d.DialogFooter,{children:[(0,C.jsx)(d.Button,{className:"mdc-dialog__cancel-button",onClick:k,tertiary:!0,children:(0,g.__)("Keep current selection","google-site-kit")}),(0,C.jsx)(d.SpinnerButton,{isSaving:s,onClick:j,children:(0,g.__)("Update metrics selection","google-site-kit")})]})]})}ConfirmSitePurposeChangeModal.propTypes={dialogActive:S().bool,handleDialog:S().func};const Ze=ConfirmSitePurposeChangeModal;var Qe=i(94656),Ke=i(26788);function KeyMetricsSettingsSellProductsSubtleNotification(){const e=(0,y.A)(),{dismissItem:t}=(0,x.useDispatch)(ae.oR),[i,s]=(0,c.useState)(!1),n=(0,c.useRef)(),o=(0,Ne.A)(n,{threshold:.25}),r=!!o?.intersectionRatio;(0,c.useEffect)(()=>{!i&&r&&((0,U.sx)(`${e}_kmw-settings-suggested-site-purpose-edit-notification`,"view_notification","conversion_reporting"),s(!0))},[i,r,e]);const a=(0,x.useSelect)(e=>e(ae.oR).isItemDismissed(Ye.cz)),l=(0,c.useCallback)(async()=>{await t(Ye.cz),(0,U.sx)(`${e}_kmw-settings-suggested-site-purpose-edit-notification`,"confirm_notification","conversion_reporting")},[t,e]);return a?null:(0,C.jsx)(Re.A,{type:Le.L.WARNING,description:(0,g.__)("To allow better personalization of suggested metrics, we have updated the answers list for this question with more accurate options. We recommend that you edit your answer.","google-site-kit"),dismissButton:{onClick:l}})}var Xe=i(8513),$e=i(30845),Je=i(97015);const UserInputPreviewGroup_AnswerQuestionButton=({isDisabled:e,onClick:t})=>Je.createElement("div",{className:"googlesitekit-user-input__preview-group-answer-question"},Je.createElement(d.Button,{onClick:t,disabled:e},(0,g.__)("Answer question","google-site-kit")));var et=i(15201),tt=i(97015);const UserInputPreviewGroup_EditLink=({isEditing:e,isDisabled:t,onClick:i,linkRef:s})=>tt.createElement(W.A,{onClick:i,ref:s,disabled:t,trailingIcon:tt.createElement(et.A,{width:20,height:20}),secondary:!0,linkButton:!0},e?(0,g.__)("Close","google-site-kit"):(0,g.__)("Edit","google-site-kit"));var it=i(48377),st=i(9246);function UserInputEditModeContent({onChange:e,options:t,settingsView:i,slug:s}){const n=(0,f.i)("setupFlowRefresh"),o=(0,x.useSelect)(e=>e(D.nX).getValue(Ye.b6)),r=(0,c.useRef)(),a=`${(0,y.A)()}_kmw`,l=(0,x.useSelect)(e=>e(ae.oR).hasUserInputSettingChanged(s)),u=o===s,p=(0,x.useSelect)(e=>e(P.M).isNavigating()),m=(0,x.useSelect)(e=>e(ae.oR).getUserInputSettings()),h=(0,x.useSelect)(e=>e(ae.oR).isSavingUserInputSettings(m)),_=m?.[s]?.values||[],k=(0,$e.A)(_),v=(0,$e.j)(_,Ye.Ax[s]),A=(0,$e.A)(m?.[s]?.values||[]),b=h||p,I=(0,x.useSelect)(e=>e(ae.oR).getErrorForAction("saveUserInputSettings",[])),{resetUserInputSettings:j,saveUserInputSettings:M}=(0,x.useDispatch)(ae.oR),{setValues:S}=(0,x.useDispatch)(D.nX),{USER_INPUT_ANSWERS_PURPOSE:N}=(0,Ye.B$)();let E=(0,g.__)("Save","google-site-kit");n?E=(0,g.__)("Save answer","google-site-kit"):(l||h)&&(E=(0,g.__)("Apply changes","google-site-kit"));const w=(0,c.useCallback)(()=>{u?(S({[Ye.b6]:void 0}),r.current?.focus?.()):((0,U.sx)(a,"question_edit",s),S({[Ye.b6]:s}))},[a,u,S,s]),T=(0,c.useCallback)(async()=>{b||(await j(),w())},[b,j,w]),R=(0,c.useCallback)(async()=>{if(!k)if(Ye.a3===s&&e)e();else{(await M()).error||((0,U.sx)(a,"question_update",s),w())}},[k,a,e,M,s,w]);return(0,C.jsxs)(c.Fragment,{children:[(0,C.jsx)(st.A,{slug:s,max:Ye.Ax[s],options:t,descriptions:N,alignLeftOptions:!0}),v&&!(n&&i)&&(0,C.jsx)("p",{className:"googlesitekit-error-text",children:v}),i&&(0,C.jsxs)(c.Fragment,{children:[(0,C.jsx)(it.A,{slug:s}),I&&(0,C.jsx)(Ee.A,{error:I}),(0,C.jsxs)("div",{className:"googlesitekit-user-input__preview-actions",children:[(0,C.jsx)(d.SpinnerButton,{disabled:k||A,onClick:l?R:w,isSaving:b,children:E}),(0,C.jsx)(d.Button,{disabled:b,onClick:T,tertiary:!0,children:(0,g.__)("Cancel","google-site-kit")})]})]})]})}function UserInputPreviewAnswers({loading:e,errorMessage:t,suppressError:i=!1,options:s,values:n}){return(0,C.jsx)("div",{className:"googlesitekit-user-input__preview-answers",children:(0,C.jsxs)(we.A,{loading:e,width:"340px",height:"36px",children:[t&&!i&&(0,C.jsx)("p",{className:"googlesitekit-error-text",children:t}),(!t||i)&&n.map(e=>(0,C.jsx)("div",{className:"googlesitekit-user-input__preview-answer",children:s[e]},e))]})})}var nt=i(97015);const UserInputPreviewGroup_PreviewContent=({isEditing:e,shouldUseAnswerQuestionCTA:t,hasAnswer:i,slug:s,options:n,onChange:o,settingsView:r,values:a,loading:l,errorMessage:c})=>e?nt.createElement(UserInputEditModeContent,{slug:s,options:n,onChange:o,settingsView:r}):!t||i?nt.createElement(UserInputPreviewAnswers,{values:a,options:n,loading:l,errorMessage:c,suppressError:t}):null;var ot=i(97015);function UserInputPreviewGroup({slug:e,title:t,subtitle:i,values:s,options:n={},loading:o=!1,settingsView:r=!1,onChange:a}){const l=(0,y.A)(),g=(0,x.useSelect)(e=>e(P.M).isNavigating(),[]),d=(0,x.useSelect)(e=>e(D.nX).getValue(Ye.b6),[]),u=(0,x.useSelect)(e=>{const t=e(ae.oR).getUserInputSettings();return e(ae.oR).isSavingUserInputSettings(t)},[]),[p]=(0,he.A)(Ye.we,Ye.a3),m=(0,He.A)(p),h=(0,c.useRef)(null);(0,c.useEffect)(()=>{e===Ye.a3&&m!==p&&void 0===p&&setTimeout(()=>{h.current?.focus?.()},100)},[p,m,e]);const{setValues:_}=(0,x.useDispatch)(D.nX),{resetUserInputSettings:k}=(0,x.useDispatch)(ae.oR),v=d===e,A=s.length>0,b=(0,f.i)("setupFlowRefresh"),I=b&&r&&!A,M=u||g,S=M||!!d&&!v,N=`${l}_kmw`,E=(0,c.useCallback)(()=>{v?(_({[Ye.b6]:void 0}),h.current?.focus?.()):((0,U.sx)(N,"question_edit",e),_({[Ye.b6]:e}))},[N,v,_,e]),w=(0,c.useCallback)(async()=>{if(r){if(M||d&&!v)return;v&&await k()}E()},[r,M,d,v,k,E]),C=(0,c.useCallback)(()=>{(0,U.sx)(N,"select_answer",e),w()},[N,w,e]),T=(0,$e.j)(s,Ye.Ax[e]),R=I?void 0:T,L="function"==typeof i?i:void 0;return ot.createElement("div",{className:j()("googlesitekit-user-input__preview-group",{"googlesitekit-user-input__preview-group--editing":v,"googlesitekit-user-input__preview-group--individual-cta":r})},ot.createElement("div",{className:j()("googlesitekit-user-input__preview-group-title",{"googlesitekit-user-input__preview-group-title-with-subtitle":L||i})},ot.createElement(we.A,{loading:o,width:"340px",height:"21px"},ot.createElement(me.A,{type:b?Xe.s7:Xe.SZ,size:Xe.Yw},t)),ot.createElement(we.A,{loading:o,className:"googlesitekit-margin-left-auto",width:"60px",height:"26px"},!I&&ot.createElement(UserInputPreviewGroup_EditLink,{isEditing:v,isDisabled:S,onClick:w,linkRef:h}))),ot.createElement(we.A,{loading:o},ot.createElement("div",{className:"googlesitekit-user-input__preview-group-subtitle"},L?ot.createElement("div",{className:"googlesitekit-user-input__preview-group-subtitle-component"},ot.createElement(L,null)):ot.createElement(me.A,{size:"medium"},i))),I&&!v&&ot.createElement(UserInputPreviewGroup_AnswerQuestionButton,{isDisabled:S,onClick:C}),ot.createElement(UserInputPreviewGroup_PreviewContent,{isEditing:v,shouldUseAnswerQuestionCTA:I,hasAnswer:A,slug:e,options:n,onChange:a,settingsView:r,values:s,loading:o,errorMessage:R||void 0}))}UserInputPreviewGroup.propTypes={slug:S().string.isRequired,title:S().string.isRequired,subtitle:S().oneOfType([S().string,S().elementType]),values:S().arrayOf(S().string).isRequired,options:S().shape({}),loading:S().bool,settingsView:S().bool,onChange:S().func};var rt=i(75594);function UserInputPreview(e){const{goBack:t,submitChanges:i,error:s,loading:n=!1,settingsView:o=!1}=e,r=(0,f.i)("setupFlowRefresh"),a=(0,c.useRef)(),[l,u]=(0,c.useState)(!1),p=(0,c.useCallback)(()=>{u(!1)},[u]),m=(0,x.useSelect)(e=>e(ae.oR).getSavedUserInputSettings()),h=(0,x.useSelect)(e=>e(ae.oR).isSavingUserInputSettings(m)),_=(0,x.useSelect)(e=>e(P.M).isNavigating()),k=(0,x.useSelect)(e=>!!e(D.nX).getValue(Ye.b6)),y=h||_,{USER_INPUT_ANSWERS_PURPOSE:v,USER_INPUT_ANSWERS_POST_FREQUENCY:A,USER_INPUT_ANSWERS_GOALS:b}=(0,Ye.Dc)(),[I]=(0,ce.A)("page"),M=Ye.W.some(e=>(0,$e.A)(m?.[e]?.values||[])),S=(0,c.useCallback)(()=>{M||y||i()},[M,y,i]),{saveUserInputSettings:N}=(0,x.useDispatch)(ae.oR),[E,w]=(0,he.A)(Ye.we,Ye.a3),T=(0,x.useSelect)(e=>e(ae.oR).getSavedUserInputSettings()),R=(0,x.useSelect)(e=>void 0!==T&&T?.purpose?.values?.length?e(ae.oR).getAnswerBasedMetrics(T?.purpose?.values?.[0]):[]),L=(0,x.useSelect)(e=>e(ue.K9).shouldIncludeConversionTailoredMetrics()),z=(0,x.useSelect)(e=>e(ae.oR).getAnswerBasedMetrics(null,L)),{resetUserInputSettings:O}=(0,x.useDispatch)(ae.oR),{setValues:B}=(0,x.useDispatch)(D.nX);(0,c.useEffect)(()=>{if(!a?.current||I?.startsWith("googlesitekit-settings"))return;const e=a.current.querySelector(".mdc-button");e&&setTimeout(()=>{e.focus()},50)},[I]);const{setUserInputSetting:U}=(0,x.useDispatch)(ae.oR),G=(0,x.useSelect)(e=>e(D.nX).getValue(Ye.b6));return(0,c.useEffect)(()=>{const e=[...m?.purpose?.values||[]];Ye.a3===G&&e.includes("sell_products_or_service")&&(U(Ye.a3,["sell_products"]),w(["sell_products_or_service"]))},[m,U,G,w]),(0,C.jsxs)("div",{className:j()("googlesitekit-user-input__preview",{"googlesitekit-user-input__preview--editing":k}),ref:a,children:[(0,C.jsxs)("div",{className:"googlesitekit-user-input__preview-contents",children:[!o&&(0,C.jsx)("p",{className:"googlesitekit-user-input__preview-subheader",children:(0,g.__)("Review your answers","google-site-kit")}),o&&(0,C.jsx)("div",{className:"googlesitekit-settings-user-input__heading-container",children:(0,C.jsx)(we.A,{loading:n,width:"275px",height:"16px",children:(0,C.jsx)("p",{className:"googlesitekit-settings-user-input__heading",children:r?(0,g.__)("Answer all questions to help us tailor metrics and offerings that will help you achieve your business goals","google-site-kit"):(0,g.__)("Edit your answers for more personalized metrics:","google-site-kit")})})}),(0,C.jsx)(UserInputPreviewGroup,{slug:Ye.a3,title:(0,g.__)("What is the main purpose of this site?","google-site-kit"),subtitle:m?.purpose?.values.includes("sell_products_or_service")?KeyMetricsSettingsSellProductsSubtleNotification:null,values:m?.purpose?.values||[],options:v,loading:n,settingsView:o,onChange:async function(){0!==z.filter(e=>!R.includes(e)).length?u(!0):(await N(),E?.length&&(await O(),w(void 0)),B({[Ye.b6]:void 0}))}}),(0,C.jsx)(UserInputPreviewGroup,{slug:Ye.aq,title:(0,g.__)("How often do you create new content for this site?","google-site-kit"),values:m?.postFrequency?.values||[],options:A,loading:n,settingsView:o}),(0,C.jsx)(UserInputPreviewGroup,{slug:Ye.KM,title:(0,g.__)("What are your top 3 goals for this site?","google-site-kit"),values:m?.goals?.values||[],options:b,loading:n,settingsView:o}),s&&(0,C.jsx)(Ee.A,{error:s})]}),!o&&(0,C.jsxs)(c.Fragment,{children:[(0,C.jsx)("div",{className:"googlesitekit-user-input__preview-notice",children:(0,C.jsx)(rt.A,{})}),(0,C.jsxs)("div",{className:"googlesitekit-user-input__footer googlesitekit-user-input__buttons",children:[(0,C.jsxs)("div",{className:"googlesitekit-user-input__footer-nav",children:[(0,C.jsx)(d.SpinnerButton,{className:"googlesitekit-user-input__buttons--next",onClick:S,disabled:M||y,isSaving:y,children:(0,g.__)("Save","google-site-kit")}),(0,C.jsx)(d.Button,{className:"googlesitekit-user-input__buttons--back",onClick:t,disabled:y,tertiary:!0,children:(0,g.__)("Back","google-site-kit")})]}),(0,C.jsx)("div",{className:"googlesitekit-user-input__footer-cancel",children:(0,C.jsx)(Ke.A,{disabled:y})})]})]}),(0,C.jsx)(Qe.A,{children:(0,C.jsx)(Ze,{dialogActive:l,handleDialog:p})})]})}UserInputPreview.propTypes={submitChanges:S().func,goBack:S().func,error:S().object,loading:S().bool,settingsView:S().bool};var at=i(85097);function SettingsKeyMetrics({loading:e=!1}){const t=(0,x.useSelect)(e=>e(ae.oR).isKeyMetricsWidgetHidden()),i=(0,x.useSelect)(e=>e(ae.oR).getKeyMetrics()),{setKeyMetricsSetting:s,saveKeyMetricsSettings:n}=(0,x.useDispatch)(ae.oR),o=(0,c.useCallback)(async()=>{await s("isWidgetHidden",!t),await n({widgetSlugs:void 0})},[t,n,s]);return e?(0,C.jsx)(v.xA,{children:(0,C.jsx)(v.fI,{children:(0,C.jsx)(v.fh,{size:12,className:"googlesitekit-overflow-hidden",children:(0,C.jsx)(oe.A,{width:"260px",height:"21.3px"})})})}):void 0!==t&&i?.length?(0,C.jsx)(v.xA,{children:(0,C.jsx)(v.fI,{children:(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(d.Switch,{label:(0,g.__)("Display key metrics in dashboard","google-site-kit"),checked:!t,onClick:o,hideLabel:!1})})})}):null}function SettingsCardKeyMetrics(){const e=(0,y.A)(),t=(0,f.i)("setupFlowRefresh"),i=(0,at.W)(),s=(0,x.useSelect)(e=>e(ae.oR).isUserInputCompleted()),n=(0,x.useSelect)(e=>e(ae.oR).getUserInputSettings()?.purpose?.values||[]),o=(0,x.useSelect)(e=>(e(ae.oR).getUserInputSettings(),e(ae.oR).isResolving("getUserInputSettings",[]))),r=(0,x.useSelect)(e=>!e(ae.oR).hasFinishedResolution("isUserInputCompleted")),a=`${e}_kmw`,l=n.length>0,d=t?l:s,u=t?!l&&!o:!1===s,p=t?o:r;return(0,c.useEffect)(()=>{d&&(0,U.sx)(a,"summary_view")},[d,a]),(0,C.jsx)(h.A,{title:t?(0,g.__)("Personalized metrics","google-site-kit"):(0,g.__)("Key Metrics","google-site-kit"),header:!0,rounded:!0,children:(0,C.jsxs)("div",{className:j()("googlesitekit-settings-module googlesitekit-settings-module--active googlesitekit-settings-user-input",{"googlesitekit-settings-user-input--setupFlowRefresh":t}),children:[p&&(0,C.jsx)(oe.A,{width:"100%",smallHeight:"100px",tabletHeight:"100px",desktopHeight:"117px"}),d&&(0,C.jsxs)(c.Fragment,{children:[!t&&(0,C.jsx)(SettingsKeyMetrics,{loading:o}),(0,C.jsx)(v.xA,{children:(0,C.jsx)(v.fI,{children:(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(UserInputPreview,{loading:o,settingsView:!0})})})})]}),u&&(0,C.jsxs)(c.Fragment,{children:[!t&&(0,C.jsx)(SettingsKeyMetrics,{}),(0,C.jsxs)(c.Fragment,{children:[(0,C.jsx)(ConversionReportingSettingsSubtleNotification,{}),i&&(0,C.jsx)(Fe.A,{triggerID:"view_kmw_setup_cta",ttl:U.Du})]})]})]})})}function SettingsPlugin(){const e=(0,x.useSelect)(e=>e(B.O4).getShowAdminBar()),{setShowAdminBar:t}=(0,x.useDispatch)(B.O4),i=(0,y.A)(),s=(0,c.useCallback)(({target:e})=>{const s=e.checked?"enable_admin_bar_menu":"disable_admin_bar_menu";t(!!e.checked),(0,U.sx)(i,s)},[t,i]);return(0,C.jsx)(h.A,{className:"googlesitekit-settings-meta",title:(0,g.__)("Plugin Settings","google-site-kit"),header:!0,fill:!0,rounded:!0,children:(0,C.jsx)("div",{className:"googlesitekit-settings-module googlesitekit-settings-module--active",children:(0,C.jsx)(v.xA,{children:(0,C.jsx)(v.fI,{children:(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)("div",{className:"googlesitekit-settings-module__meta-items",children:(0,C.jsx)("div",{className:"googlesitekit-settings-module__meta-item googlesitekit-settings-module__meta-item--nomargin",children:(0,C.jsx)(d.Checkbox,{id:"admin-bar-toggle",name:"admin-bar-toggle",value:"1",checked:e,onChange:s,disabled:void 0===e,loading:void 0===e,children:(0,C.jsx)("span",{children:(0,g.__)("Display relevant page stats in the Admin bar","google-site-kit")})})})})})})})})})}function SettingsAdmin(){const e=(0,f.i)("proactiveUserEngagement"),t=(0,x.useSelect)(e=>e(ae.oR).getConfiguredAudiences()),i=(0,x.useSelect)(e=>e(b.i).isModuleConnected(je.L1)),s=(0,x.useSelect)(e=>e(Me.n).isGatheringData()),n=(0,x.useSelect)(e=>!!i&&e(ue.K9).isGatheringData()),o=i&&!1===s&&!1===n;return(0,x.useSelect)(e=>!e(b.i).hasFinishedResolution("isModuleConnected",[je.L1])||!1!==i&&(!e(Me.n).hasFinishedResolution("isGatheringData")||!e(ue.K9).hasFinishedResolution("isGatheringData")))?(0,C.jsxs)(v.fI,{children:[(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(oe.A,{width:"100%",smallHeight:"100px",tabletHeight:"100px",desktopHeight:"200px"})}),(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(oe.A,{width:"100%",smallHeight:"100px",tabletHeight:"100px",desktopHeight:"200px"})}),(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(oe.A,{width:"100%",smallHeight:"100px",tabletHeight:"100px",desktopHeight:"200px"})}),(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(oe.A,{width:"100%",smallHeight:"100px",tabletHeight:"100px",desktopHeight:"200px"})})]}):(0,C.jsxs)(v.fI,{children:[(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(SettingsCardConsentMode,{})}),o&&(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(SettingsCardKeyMetrics,{})}),(i||!!t)&&(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(SettingsCardAudiences,{})}),e&&(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(SettingsCardEmailReporting,{})}),(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(h.A,{title:(0,g.__)("Plugin Status","google-site-kit"),header:!0,rounded:!0,children:(0,C.jsxs)("div",{className:"googlesitekit-settings-module googlesitekit-settings-module--active",children:[(0,C.jsx)(v.xA,{children:(0,C.jsx)(v.fI,{children:(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)("div",{className:"googlesitekit-settings-module__meta-items",children:(0,C.jsxs)("p",{className:"googlesitekit-settings-module__status",children:[(0,g.__)("Site Kit is connected","google-site-kit"),(0,C.jsx)("span",{className:"googlesitekit-settings-module__status-icon googlesitekit-settings-module__status-icon--connected",children:(0,C.jsx)(Se.A,{width:10,height:8})})]})})})})}),(0,C.jsx)("footer",{className:"googlesitekit-settings-module__footer",children:(0,C.jsx)(v.xA,{children:(0,C.jsx)(v.fI,{children:(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(re.A,{})})})})})]})})}),(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(SettingsPlugin,{})}),(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(h.A,{className:"googlesitekit-settings-meta",title:(0,g.__)("Tracking","google-site-kit"),header:!0,fill:!0,rounded:!0,children:(0,C.jsx)("div",{className:"googlesitekit-settings-module googlesitekit-settings-module--active",children:(0,C.jsx)(v.xA,{children:(0,C.jsx)(v.fI,{children:(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)("div",{className:"googlesitekit-settings-module__meta-items",children:(0,C.jsx)("div",{className:"googlesitekit-settings-module__meta-item googlesitekit-settings-module__meta-item--nomargin",children:(0,C.jsx)(ne.A,{})})})})})})})})})]})}SettingsKeyMetrics.propTypes={loading:S().bool};var lt=i(42340),ct=i(62457);function SetupModule({slug:e,name:t,description:i}){const s=(0,y.A)(),[n,o]=(0,c.useState)(!1),{activateModule:r}=(0,x.useDispatch)(b.i),{navigateTo:a}=(0,x.useDispatch)(P.M),{setInternalServerError:l}=(0,x.useDispatch)(B.O4),d=(0,c.useCallback)(async()=>{o(!0);const{error:t,response:i}=await r(e);t?(l({id:"activate-module-error",description:t.message}),o(!1)):(await(0,U.sx)(`${s}_module-list`,"activate_module",e),await(0,O.SO)("module_setup",e,{ttl:300}),a(i.moduleReauthURL))},[r,a,l,e,s]),u=(0,x.useSelect)(t=>t(b.i).canActivateModule(e));return(0,C.jsxs)("div",{className:j()("googlesitekit-settings-connect-module",`googlesitekit-settings-connect-module--${e}`),children:[(0,C.jsx)("div",{className:"googlesitekit-settings-connect-module__switch",children:(0,C.jsx)(ct.A,{isSaving:n})}),(0,C.jsx)("div",{className:"googlesitekit-settings-connect-module__logo",children:(0,C.jsx)(K.A,{slug:e})}),(0,C.jsxs)("div",{className:"googlesitekit-settings-connect-module__heading",children:[(0,C.jsx)(N.A,{as:"h3",type:"title",size:"small",className:" googlesitekit-subheading-1 googlesitekit-settings-connect-module__title ",children:t}),(0,C.jsxs)("div",{className:"googlesitekit-settings-connect-module__badges",children:[te.includes(e)&&(0,C.jsx)(Z.A,{label:(0,g.__)("Experimental","google-site-kit")}),ee.includes(e)&&(0,C.jsx)(Z.A,{className:"googlesitekit-badge--beta",label:(0,g.__)("Beta","google-site-kit")}),J.includes(e)&&(0,C.jsx)(X.A,{hasNoSpacing:!0})]})]}),(0,C.jsx)("p",{className:"googlesitekit-settings-connect-module__text",children:i}),(0,C.jsx)("p",{className:"googlesitekit-settings-connect-module__cta",children:(0,C.jsx)(W.A,{onClick:d,href:"",disabled:!u||n,arrow:!0,children:(0,g.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,g.__)("Set up %s","google-site-kit"),t)})}),(0,C.jsx)(lt.A,{slug:e})]},e)}function SettingsInactiveModules(){const e=(0,x.useSelect)(e=>e(b.i).getModules());if(!e)return null;const t=Object.keys(e).map(t=>e[t]).filter(({internal:e,active:t})=>!e&&!t).sort((e,t)=>e.order-t.order);return 0===t.length?(0,C.jsx)(Re.A,{id:"no-more-modules",title:(0,g.__)("Congrats, you’ve connected all services!","google-site-kit"),description:(0,g.__)("We’re working on adding new services to Site Kit by Google all the time, so please check back in the future","google-site-kit"),type:Le.L.SUCCESS}):(0,C.jsx)(h.A,{title:(0,g.__)("Connect More Services to Gain More Insights","google-site-kit"),header:!0,rounded:!0,relative:!0,children:(0,C.jsx)(v.xA,{children:(0,C.jsx)(v.fI,{children:t.map(({slug:e,name:t,description:i})=>(0,C.jsx)(v.fh,{size:4,children:(0,C.jsx)(SetupModule,{slug:e,name:t,description:i})},e))})})})}SetupModule.propTypes={slug:S().string.isRequired,name:S().string.isRequired,description:S().string.isRequired};const gt=function SettingsModules(){const e=(0,x.useSelect)(e=>e(b.i).getModules());return void 0!==e&&Object.values(e).length?(0,C.jsxs)(l.dO,{children:[(0,C.jsx)(l.qh,{path:"/connected-services/:moduleSlug/:action",children:(0,C.jsx)(SettingsActiveModules,{})}),(0,C.jsx)(l.qh,{path:"/connected-services/:moduleSlug",children:(0,C.jsx)(SettingsActiveModules,{})}),(0,C.jsx)(l.qh,{path:"/connected-services",children:(0,C.jsx)(SettingsActiveModules,{})}),(0,C.jsx)(l.qh,{path:"/connect-more-services",children:(0,C.jsx)(SettingsInactiveModules,{})}),(0,C.jsx)(l.qh,{path:"/admin-settings",children:(0,C.jsx)(SettingsAdmin,{})}),(0,C.jsx)(l.rd,{from:"/settings/:moduleSlug/edit",to:"/connected-services/:moduleSlug/edit"}),(0,C.jsx)(l.rd,{from:"/settings/:moduleSlug",to:"/connected-services/:moduleSlug"}),(0,C.jsx)(l.rd,{from:"/settings",to:"/connected-services"}),(0,C.jsx)(l.rd,{from:"/connect",to:"/connect-more-services"}),(0,C.jsx)(l.rd,{from:"/admin",to:"/admin-settings"}),(0,C.jsx)(l.rd,{to:"/connected-services"})]}):null};function SettingsApp(){(0,k.A)();const e=(0,l.zy)();const[,t]=e.pathname.split("/"),i=SettingsApp.basePathToTabIndex[t],s=(0,y.A)(),o=(0,f.i)("proactiveUserEngagement"),r=(0,c.useCallback)(()=>{(0,A.sx)(s,"tab_select",t)},[t,s]);return(0,C.jsxs)(c.Fragment,{children:[(0,C.jsx)(p.A,{children:(0,C.jsx)(m.A,{})}),(0,C.jsx)("div",{className:"googlesitekit-module-page",children:(0,C.jsx)(v.xA,{children:(0,C.jsxs)(v.fI,{children:[(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(_.A,{title:(0,g.__)("Settings","google-site-kit")})}),(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(h.A,{transparent:!0,rounded:!0,children:(0,C.jsxs)(d.TabBar,{activeIndex:i,className:"googlesitekit-tab-bar__settings",handleActiveIndexUpdate:r,children:[(0,C.jsx)(d.Tab,{tag:n.N_,to:"/connected-services",replace:!1,children:(0,C.jsx)("span",{className:"mdc-tab__text-label",children:(0,g.__)("Connected Services","google-site-kit")})}),(0,C.jsx)(d.Tab,{tag:n.N_,to:"/connect-more-services",replace:!1,children:(0,C.jsx)("span",{className:"mdc-tab__text-label",children:(0,g.__)("Connect More Services","google-site-kit")})}),(0,C.jsx)(d.Tab,{tag:n.N_,to:"/admin-settings",replace:!1,children:(0,C.jsx)("span",{className:"mdc-tab__text-label",children:(0,g.__)("Admin Settings","google-site-kit")})})]})})}),(0,C.jsx)(v.fh,{size:12,children:(0,C.jsx)(gt,{})})]})})}),o&&(0,C.jsx)(u.A,{})]})}SettingsApp.propTypes={},SettingsApp.basePathToTabIndex={"connected-services":0,"connect-more-services":1,"admin-settings":2};const dt=(0,l.y)(SettingsApp);var ut=i(20697),pt=i(97015);(0,o.A)(()=>{const e=document.getElementById("js-googlesitekit-settings");e&&(0,r.render)(pt.createElement(a.A,{viewContext:ut.KK},pt.createElement(n.I9,null,pt.createElement(dt,null))),e)})},92917(e,t,i){i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(68102),n=i(50539),o=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:g,...d})=>{const u=(0,a.A)(e,g?.category),{dismissNotification:p}=(0,n.useDispatch)(r.D);return c.createElement(l.xA,null,c.createElement(l.fI,null,c.createElement(l.fh,{size:12,alignMiddle:!0},c.createElement(o.A,(0,s.A)({dismissButton:{...t,onClick:async function(i){await(t?.onClick?.(i)),u.dismiss(g?.label,g?.value),p(e,{...t?.dismissOptions||{}})}},ctaButton:{...i,onClick:async function(t){u.confirm(g?.label,g?.value),await(i?.onClick?.(t)),i?.dismissOnClick&&p(e,{...i?.dismissOptions})}}},d)))))}},78422(e,t,i){i.d(t,{A:()=>p});var s=i(4452),n=i.n(s),o=i(15844),r=i(52684),a=i(63696),l=i(82871),c=i(50304),g=i(2478),d=i(97015);const u=(0,a.forwardRef)(({className:e="",children:t,collapsible:i=!1,defaultCollapsed:s,isCollapsed:p,Header:m,headerContents:h,Footer:_,noPadding:f=!1,widgetSlug:k},y)=>{const[v,A]=(0,a.useState)(!!s),x=(0,r.A)(u);function b(){i&&A(e=>!e)}(0,a.useEffect)(()=>{void 0!==p&&A(p)},[p]),(0,o.A)(()=>{void 0!==s&&void 0!==p&&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 "${k}" is controlled by its parent component, and the \`defaultCollapsed\` prop will be ignored.`)});const I=!!i&&void 0===p;let j;return I&&(j=v?(0,l.__)("Expand section","google-site-kit"):(0,l.__)("Hide section","google-site-kit")),d.createElement("div",{className:n()("googlesitekit-widget",`googlesitekit-widget--${k}`,{"googlesitekit-widget--no-padding":f},{"googlesitekit-widget--with-header":m},e),ref:y},m&&d.createElement("div",{"aria-expanded":I?!v:void 0,"aria-controls":I?`googlesitekit-widget-body-${x}`:void 0,"aria-label":I?j:void 0,className:n()("googlesitekit-widget__header",{"googlesitekit-widget__header--collapsible":i,"googlesitekit-widget__header--collapsed":v}),onClick:I?b:void 0,onKeyUp:I?e=>{"Enter"===e.key&&b()}:void 0,role:I?"button":void 0,tabIndex:I?0:void 0},d.createElement(m,null,d.createElement("div",{className:"googlesitekit-widget__header-inner"},!!i&&d.createElement(c.A,{marginLeft:4,marginRight:10},d.createElement(g.A,{width:12,height:12,className:n()("googlesitekit-widget__header-icon",{"googlesitekit-widget__header-icon--collapsed":v})})),h))),d.createElement("div",{className:n()("googlesitekit-widget__body",{"googlesitekit-widget__body--collapsed":!!v}),id:i?`googlesitekit-widget-body-${x}`:void 0},t),_&&d.createElement("div",{className:"googlesitekit-widget__footer"},d.createElement(_,null)))}),p=u},92449(e,t,i){i.d(t,{Ay:()=>r,Kq:()=>o});const s=(0,i(63696).createContext)({}),{Consumer:n,Provider:o}=s,r=s},97513(e,t,i){i.d(t,{Fo:()=>o,Lg:()=>r,Qb:()=>n,dv:()=>l,mp:()=>a});var s=i(24355);const n="xlarge",o="desktop",r="tablet",a="small";function l(){const e=(0,s.SO)();return e>1280?n:e>960?o:e>600?r:a}},24355(e,t,i){i.d(t,{SO:()=>a});var s=i(99123),n=i(55620);function o(){return[globalThis.innerWidth,globalThis.innerHeight]}function r({fps:e=60,leading:t=!1,initialWidth:i=0,initialHeight:r=0}={}){const[a,l]=(0,n._)("undefined"==typeof document?[i,r]:o,e,t);function c(){return l(o)}return(0,s.A)(window,"resize",c),(0,s.A)(window,"orientationchange",c),a}function a(e={}){return r(e)[0]}},14777(e,t,i){i.d(t,{fh:()=>a,xA:()=>u,fI:()=>g});var s=i(68102),n=i(4452),o=i.n(n),r=i(97015);const a=({className:e="",alignTop:t=!1,alignMiddle:i=!1,alignBottom:n=!1,alignRight:a=!1,alignLeft:l=!1,smAlignRight:c=!1,mdAlignRight:g=!1,lgAlignRight:d=!1,smSize:u=0,smStart:p=0,smOrder:m=0,mdSize:h=0,mdStart:_=0,mdOrder:f=0,lgSize:k=0,lgStart:y=0,lgOrder:v=0,size:A=0,children:x,...b})=>r.createElement("div",(0,s.A)({},b,{className:o()(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":n,"mdc-layout-grid__cell--align-right":a,"mdc-layout-grid__cell--align-left":l,"mdc-layout-grid__cell--align-right-phone":c,"mdc-layout-grid__cell--align-right-tablet":g,"mdc-layout-grid__cell--align-right-desktop":d,[`mdc-layout-grid__cell--span-${A}`]:12>=A&&A>0,[`mdc-layout-grid__cell--span-${k}-desktop`]:12>=k&&k>0,[`mdc-layout-grid__cell--start-${y}-desktop`]:12>=y&&y>0,[`mdc-layout-grid__cell--order-${v}-desktop`]:12>=v&&v>0,[`mdc-layout-grid__cell--span-${h}-tablet`]:8>=h&&h>0,[`mdc-layout-grid__cell--start-${_}-tablet`]:8>=_&&_>0,[`mdc-layout-grid__cell--order-${f}-tablet`]:8>=f&&f>0,[`mdc-layout-grid__cell--span-${u}-phone`]:4>=u&&u>0,[`mdc-layout-grid__cell--start-${p}-phone`]:4>=p&&p>0,[`mdc-layout-grid__cell--order-${m}-phone`]:4>=m&&m>0})}),x);var l=i(63696),c=i(97015);const g=(0,l.forwardRef)(({className:e="",children:t,...i},n)=>c.createElement("div",(0,s.A)({ref:n,className:o()("mdc-layout-grid__inner",e)},i),t));var d=i(97015);const u=(0,l.forwardRef)(({alignLeft:e=!1,fill:t=!1,className:i="",children:n,collapsed:r=!1,...a},l)=>d.createElement("div",(0,s.A)({className:o()("mdc-layout-grid",i,{"mdc-layout-grid--align-left":e,"mdc-layout-grid--collapsed":r,"mdc-layout-grid--fill":t})},a,{ref:l}),n))},99893(e,t,i){i.d(t,{CV:()=>N,Cu:()=>A,K9:()=>s,Kr:()=>m,Lf:()=>u,Oh:()=>r,PW:()=>S,Rx:()=>D,S9:()=>h,TQ:()=>g,Vt:()=>C,Wl:()=>y,ZC:()=>n,ZY:()=>a,_p:()=>T,ag:()=>p,aj:()=>d,bz:()=>E,dC:()=>j,dq:()=>w,fB:()=>M,fV:()=>I,iB:()=>c,kc:()=>l,mo:()=>f,nc:()=>b,pL:()=>x,rm:()=>v,to:()=>o,wo:()=>_,yn:()=>k});const s="modules/analytics-4",n="account_create",o="property_create",r="webdatastream_create",a="analyticsSetup",l=10,c="https://www.googleapis.com/auth/tagmanager.readonly",g="enhanced-measurement-form",d="enhanced-measurement-enabled",u="enhanced-measurement-should-dismiss-activation-banner",p="analyticsAccountCreate",m="analyticsCustomDimensionsCreate",h="https://www.googleapis.com/auth/analytics.edit",_="dashboardAllTrafficWidgetDimensionName",f="dashboardAllTrafficWidgetDimensionColor",k="dashboardAllTrafficWidgetDimensionValue",y="dashboardAllTrafficWidgetActiveRowIndex",v="dashboardAllTrafficWidgetLoaded",A={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"}},x=Object.keys(A),b={ADD_TO_CART:"add_to_cart",PURCHASE:"purchase",SUBMIT_LEAD_FORM:"submit_lead_form",GENERATE_LEAD:"generate_lead",CONTACT:"contact"},I=[b.CONTACT,b.GENERATE_LEAD,b.SUBMIT_LEAD_FORM],j=[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"}}}}]}}]}}}}]}},S="audiencePermissionsSetup",N="audienceTileCustomDimensionCreate",E="audience-selection-panel-expirable-new-badge-",w="audience",C="customDimension",T="property",D=[w,C,T]},17443(e,t,i){i.d(t,{r:()=>AdminScreenTooltip,i:()=>s.i});var s=i(52274),n=i(63696),o=i(50539),r=i(62688),a=i(36703),l=i(40960),c=i(97513),g=i(94656),d=i(83202),u=i(71264),p=i(62540);function JoyrideTooltip(e){const{title:t,content:i,dismissLabel:s,disableOverlay:o=!0,target:r,cta:m=!1,className:h,styles:_={},slug:f="",placement:k="auto",onDismiss:y=()=>{},onView:v=()=>{},onTourStart:A=()=>{},onTourEnd:x=()=>{},floaterProps:b={}}=e;function I(){return!!globalThis.document.querySelector(r)}const[j,M]=(0,n.useState)(I),S=(0,c.dv)(),N=S===c.mp||S===c.Lg,[E,w]=(0,n.useState)(!0),C=(0,n.useRef)(N);if((0,l.A)(()=>{I()&&M(!0)},j?null:250),(0,n.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,j]),(0,n.useEffect)(()=>{let e;return C.current!==N&&(w(!1),e=setTimeout(()=>{w(!0)},50),C.current=N),()=>{e&&clearTimeout(e)}},[N]),!j)return null;const T=[{title:t,target:r,content:i,disableBeacon:!0,isFixed:!0,placement:k,cta:m,className:h,floaterProps:b}],D={close:s,last:s};return(0,p.jsx)(g.A,{slug:f,children:(0,p.jsx)(a.Ay,{callback:function({type:e}){switch(e){case a.qY.TOUR_START:A(),globalThis.document.body.classList.add("googlesitekit-showing-tooltip");break;case a.qY.TOUR_END:x(),globalThis.document.body.classList.remove("googlesitekit-showing-tooltip");break;case a.qY.STEP_AFTER:y();break;case a.qY.TOOLTIP:v()}},disableOverlay:o,spotlightPadding:0,floaterProps:u.ei,locale:D,steps:T,styles:{...u.R0,..._,options:{...u.R0.options,..._?.options},spotlight:{...u.R0.spotlight,..._?.spotlight}},tooltipComponent:d.A,run:E,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 m=i(7972),h=i(62659),_=i(13047);function AdminScreenTooltip(){const e=(0,h.A)(),{setValue:t}=(0,o.useDispatch)(m.nX),i=(0,c.dv)(),{isTooltipVisible:s=!1,target:r,placement:a,className:l,tooltipSlug:g,title:d,content:u,dismissLabel:f,gaTrackingEventLabel:k,floaterProps:y,isCenteredOnMobile:v=!0}=(0,o.useSelect)(e=>e(m.nX).getValue("admin-screen-tooltip")||{isTooltipVisible:!1});const A=(0,n.useCallback)(()=>{g&&(0,_.sx)(`${e}_${g}`,"tooltip_dismiss",k),t("admin-screen-tooltip",void 0)},[t,g,e,k]);if(!s)return null;const x=i===c.mp||i===c.Lg,b=v&&x,I=r??'#adminmenu [href*="page=googlesitekit-settings"]',j=a??"right";return(0,p.jsx)(JoyrideTooltip,{target:b?"body":I,placement:b?"center":j,className:b?"googlesitekit-tour-tooltip__modal_step":l||(r?void 0:"googlesitekit-tour-tooltip__fixed-settings-tooltip"),disableOverlay:!b,slug:"admin-screen-tooltip",title:d,content:u,dismissLabel:f,onView:function(){(0,_.sx)(`${e}_${g}`,"tooltip_view",k)},onDismiss:A,floaterProps:y})}},52274(e,t,i){i.d(t,{i:()=>r});var s=i(63696),n=i(50539),o=i(7972);function r(e){const{setValue:t}=(0,n.useDispatch)(o.nX);return(0,s.useCallback)(()=>{t("admin-screen-tooltip",{isTooltipVisible:!0,...e})},[t,e])}},5855(e,t,i){i.d(t,{A:()=>g});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(63696),l=i(62540);const c=(0,a.forwardRef)(({label:e,className:t,hasLeftSpacing:i=!1,...s},o)=>(0,l.jsx)("span",{ref:o,...s,className:n()("googlesitekit-badge",t,{"googlesitekit-badge--has-left-spacing":i}),children:e}));c.displayName="Badge",c.propTypes={label:r().string.isRequired,hasLeftSpacing:r().bool};const g=c},71189(e,t,i){i.d(t,{A:()=>CTAButton});var s=i(62688),n=i.n(s),o=i(49383),r=i(83366),a=i(62540);function CTAButton({label:e,ariaLabel:t,disabled:i,inProgress:s,onClick:n,href:l,external:c=!1,hideExternalIndicator:g=!1}){if(!e||!n&&!l)return null;let d;return c&&!g&&(d=(0,a.jsx)(r.A,{width:14,height:14})),(0,a.jsx)(o.SpinnerButton,{className:"googlesitekit-banner__cta","aria-label":t,disabled:i||s,isSaving:s,onClick:n,href:l,target:c?"_blank":void 0,trailingIcon:d,children:e})}CTAButton.propTypes={label:n().string,ariaLabel:n().string,disabled:n().bool,inProgress:n().bool,onClick:n().func,href:n().string,dismissOnClick:n().bool,dismissOptions:n().shape({expiresInSeconds:n().number,skipHidingFromQueue:n().bool})}},61983(e,t,i){i.d(t,{A:()=>DismissButton});var s=i(62688),n=i.n(s),o=i(82871),r=i(49383),a=i(62540);function DismissButton({className:e,label:t=(0,o.__)("Maybe later","google-site-kit"),onClick:i,disabled:s,tertiary:n=!0}){return i?(0,a.jsx)(r.Button,{className:e,onClick:i,disabled:s,tertiary:n,children:t}):null}DismissButton.propTypes={className:n().string,label:n().string,onClick:n().func,disabled:n().bool,tertiary:n().bool,dismissOptions:n().shape({expiresInSeconds:n().number,skipHidingFromQueue:n().bool})}},83891(e,t,i){i.d(t,{A:()=>_});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(63696),l=i(37325),c=i(97513),g=i(71189),d=i(13047),u=i(41671),p=i(62540);function Description({className:e,description:t,learnMoreLink:i,additionalDescription:s,children:o}){return(0,p.jsxs)("div",{className:n()("googlesitekit-banner__description",e),children:[(0,a.isValidElement)(t)?t:"string"==typeof t?(0,p.jsx)("span",{dangerouslySetInnerHTML:(0,d.p9)(t,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}):t," ",i?.href&&(0,p.jsx)(u.A,{...i}),s&&(0,p.jsx)("div",{className:"googlesitekit-banner__additional-description",children:s}),o]})}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 m=i(61983);function Footer({className:e,children:t}){return(0,p.jsx)("div",{className:n()("googlesitekit-banner__footer",e),children:t})}function HelpText({className:e,children:t}){return(0,p.jsx)("p",{className:n()("googlesitekit-banner__help-text",e),children:t})}function Title({className:e,children:t}){return(0,p.jsx)("p",{className:n()("googlesitekit-banner__title",e),children:t})}function TitleIcon({className:e,children:t}){return(0,p.jsx)("div",{className:n()("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:o,errorText:r,helpText:a,learnMoreLink:d,dismissButton:u,ctaButton:h,svg:_,footer:f},k)=>{const y=(0,c.dv)(),v=y===c.mp||y===c.Lg;let A=null;v&&_?.mobile?A=_.mobile:!v&&_?.desktop&&(A=_.desktop);const x=_?.verticalPosition?_.verticalPosition:"center";return(0,p.jsxs)("div",{ref:k,className:n()("googlesitekit-banner",e),children:[(0,p.jsxs)("div",{className:"googlesitekit-banner__content",children:[t&&(0,p.jsx)(TitleIcon,{children:t}),(0,p.jsx)(Title,{children:i}),(0,p.jsx)(Description,{description:s,learnMoreLink:d,additionalDescription:o}),a&&(0,p.jsx)(HelpText,{children:a}),r&&(0,p.jsx)(l.A,{type:"error",description:r}),(0,p.jsxs)("div",{className:"googlesitekit-notice__action",children:[h&&(0,p.jsx)(g.A,{...h}),u?.onClick&&(0,p.jsx)(m.A,{...u})]})]}),A&&(0,p.jsx)("div",{className:n()("googlesitekit-banner__svg-wrapper",{[`googlesitekit-banner__svg-wrapper--${x}`]:x}),style:{backgroundImage:`url(${A})`}}),f&&(0,p.jsx)(Footer,{children:f})]})});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(m.A.propTypes),ctaButton:r().shape(g.A.propTypes),svg:r().shape({desktop:r().elementType,mobile:r().elementType,verticalPosition:r().oneOf(["top","center","bottom"])}),footer:r().node};const _=h},38017(e,t,i){i.d(t,{A:()=>l});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(62540);function ChangeArrow({direction:e,invertColor:t,width:i,height:s}){return(0,a.jsx)("svg",{className:n()("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),n=i.n(s),o=i(62688),r=i.n(o),a=i(13047),l=i(62540);function ChangeBadge(e){const{previousValue:t,currentValue:i,isAbsolute:s}=e,o=s?i-t:(0,a.Zf)(t,i),r=o<0,c=0===o;return null===o?null:(0,l.jsx)("div",{className:n()("googlesitekit-change-badge",{"googlesitekit-change-badge--negative":r,"googlesitekit-change-badge--zero":c}),children:(0,a.Eo)(o,{style:"percent",signDisplay:"exceptZero",maximumFractionDigits:1})})}ChangeBadge.propTypes={isAbsolute:r().bool,previousValue:r().number.isRequired,currentValue:r().number.isRequired}},73198(e,t,i){i.d(t,{A:()=>ErrorNotice});var s=i(62688),n=i.n(s),o=i(63696),r=i(82871),a=i(84024),l=i(50539),c=i(3749),g=i(13047),d=i(13137),u=i(37325),p=i(62540);function ErrorNotice({className:e,error:t,hasButton:i=!1,storeName:s,message:n=t.message,noPrefix:m=!1,skipRetryMessage:h,hideIcon:_=!1}){const f=(0,l.useDispatch)(),k=(0,l.useSelect)(e=>s?e(s).getSelectorDataForError(t):null),y=(0,o.useCallback)(()=>{f(k.storeName).invalidateResolution(k.name,k.args)},[f,k]);if(!n||(0,d.G)(t))return null;const v=i&&(0,d.vl)(t,k);let A=n;i||h||(A=(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"),A)),m||(A=(0,r.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */ (0,r.__)("Error: %s","google-site-kit"),A));const x=t?.data?.reconnectURL;x&&(0,a.m)(x)&&(A=(0,r.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */ /* translators: 1: Original error message 2: Reconnect URL */ (0,r.__)('%1$s To fix this, redo the plugin setup.',"google-site-kit"),A,x));return(0,p.jsx)(u.A,{className:e,type:c.L.ERROR,description:(0,p.jsx)("span",{dangerouslySetInnerHTML:(0,g.p9)(A,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:v?{label:(0,r.__)("Retry","google-site-kit"),onClick:y}:void 0,hideIcon:_})}ErrorNotice.propTypes={className:n().string,error:n().shape({message:n().string}),hasButton:n().bool,storeName:n().string,message:n().string,noPrefix:n().bool,skipRetryMessage:n().bool,hideIcon:n().bool}},79961(e,t,i){i.d(t,{A:()=>o});var s=i(63696),n=i(84895);const o=(0,s.createContext)(n.t)},6730(e,t,i){i.d(t,{A:()=>GenericErrorHandlerActions});var s=i(62688),n=i.n(s),o=i(82871),r=i(38432),a=i(38021),l=i.n(a),c=i(63696),g=i(12417),d=i(1027),u=i(65123),p=i(49383),m=i(62540);function ReportErrorButton({message:e,componentStack:t}){const[i,s]=(0,c.useState)(!1);return(0,m.jsx)(p.Button,{"aria-label":i?(0,o.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){l()(`\`\`\`\n${e}\n${t}\n\`\`\``),s(!0)},trailingIcon:(0,m.jsx)(g.A,{className:"mdc-button__icon",icon:i?d.A:u.A}),children:i?(0,o.__)("Copied to clipboard","google-site-kit"):(0,o.__)("Copy error contents","google-site-kit")})}ReportErrorButton.propTypes={message:n().string,componentStack:n().string};const h=ReportErrorButton;function GenericErrorHandlerActions({message:e,componentStack:t}){return(0,m.jsxs)("div",{className:"googlesitekit-generic-error-handler-actions",children:[(0,m.jsx)(h,{message:e,componentStack:t}),(0,m.jsx)(r.A,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0,children:(0,o.__)("Report this problem","google-site-kit")})]})}GenericErrorHandlerActions.propTypes={message:n().string,componentStack:n().string}},72904(e,t,i){i.d(t,{A:()=>Xe});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(41814),l=i(63696),c=i(82871),g=i(50539),d=i(29785),u=i(97345),p=i(84730),m=i(7551),h=i(49993),_=i(13047),f=i(30805),k=i(62659);var y,v=i(4124),A=i(10740),x=i(45257),b=i(39525),I=i(15844),j=i(31589),M=i(30521),S=i(20697),N=i(7972);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",E({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 C,T,D,R;function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",L({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),C||(C=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 O;function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),O||(O=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 U,G,W;function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",V({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),U||(U=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"})),W||(W=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 Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",Y({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;tl.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={[m.Oo]:{[S.SH]:ee.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,[S.OT]:ee.CONTEXT_MAIN_DASHBOARD_TRAFFIC,[S.x2]:ee.CONTEXT_MAIN_DASHBOARD_SITE_GOALS,[S.en]:ee.CONTEXT_MAIN_DASHBOARD_CONTENT,[S.Ej]:ee.CONTEXT_MAIN_DASHBOARD_SPEED,[S.Gw]:ee.CONTEXT_MAIN_DASHBOARD_MONETIZATION},[m.oE]:{[S.OT]:ee.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,[S.en]:ee.CONTEXT_ENTITY_DASHBOARD_CONTENT,[S.Ej]:ee.CONTEXT_ENTITY_DASHBOARD_SPEED,[S.Gw]:ee.CONTEXT_ENTITY_DASHBOARD_MONETIZATION}};var ie=i(62540);function Navigation(){const e=(0,m.Ay)(),t=(0,l.useRef)(),i=(0,k.A)(),s=function(){const e=(0,m.Ay)(),t=(0,v.A)();return(0,g.useSelect)(i=>{const s=t?i(u.oR).getViewableModules():null,n=i(u.oR).isKeyMetricsWidgetHidden(),o={modules:s||void 0};return Object.keys(te[e]).reduce((t,s)=>(s===S.SH&&n||i(J.aO).isWidgetContextActive(te[e][s],o)&&t.push(s),t),[])})}(),{calculateScrollPosition:o,defaultChipID:r,findClosestSection:a,isValidChipID:d,scrollToChip:p,updateURLHash:h}=function({visibleSections:e}){const t=(0,X.dv)(),i=(0,v.A)(),s=(0,l.useCallback)(()=>e.includes(S.SH)?S.SH:i?e[0]||"":S.OT,[i,e])(),n=(0,l.useCallback)(t=>e.includes(t),[e]),o=(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:n}=t?.current?.getBoundingClientRect?.()??{};let o,r=s;for(const t of e){const e=document.getElementById(t);if(!e)continue;const s=e.getBoundingClientRect().top-20-(i||n||0);s<0&&(void 0===o||o{const t=e.closest(".mdc-chip"),s=t?.dataset?.contextId;h(s),A(s),p(s),(0,_.sx)(`${i}_navigation`,"tab_select",s),setTimeout(()=>{D(N.Fc,s)},50)},[p,D,h,i]),L=(0,l.useCallback)(()=>{if(!t?.current)return;const{top:e}=t?.current?.getBoundingClientRect();if(0===globalThis.scrollY)E(!1);else{const t=document.querySelector(".googlesitekit-header")?.getBoundingClientRect?.()?.bottom;E(e===t)}},[]),O=(0,l.useCallback)(e=>{function s(e){D(N.Fc,void 0),T(e),A(void 0)}const n=a(t);if(y)y===n&&s(n);else{const{hash:t}=globalThis.location;n!==t?.substring(1)&&(e&&(0,_.sx)(`${i}_navigation`,"tab_scroll",n),h(n),s(n))}},[a,y,D,h,i]);(0,I.A)(()=>{if(!f)return T(r),void setTimeout(()=>h(r));const e=d(f)?f:r;T(e),D(N.Fc,e),setTimeout(()=>{const t=o(e);globalThis.scrollY!==t?p(e):D(N.Fc,void 0)},50)});const P=(0,l.useCallback)(e=>{L(),O(e)},[O,L]),U=(0,M.A)(P,150);(0,j.A)("scroll",U);const G=20,W={[S.SH]:{label:(0,c.__)("Key metrics","google-site-kit"),icon:(0,ie.jsx)(z,{width:G,height:G})},[S.OT]:{label:(0,c.__)("Traffic","google-site-kit"),icon:(0,ie.jsx)(K,{width:G,height:G})},[S.x2]:{label:(0,c.__)("Site goals","google-site-kit"),icon:(0,ie.jsx)(F,{width:G,height:G})},[S.en]:{label:(0,c.__)("Content","google-site-kit"),icon:(0,ie.jsx)(w,{width:G,height:G})},[S.Ej]:{label:(0,c.__)("Speed","google-site-kit"),icon:(0,ie.jsx)(q,{width:G,height:G})},[S.Gw]:{label:(0,c.__)("Monetization","google-site-kit"),icon:(0,ie.jsx)(B,{width:G,height:G})}};return(0,ie.jsx)("nav",{className:n()("mdc-chip-set","googlesitekit-navigation",`googlesitekit-navigation--${e}`,{"googlesitekit-navigation--is-sticky":x}),ref:t,children:s.map(e=>(0,ie.jsx)(b.Chip,{id:e,label:W[e].label,leadingIcon:W[e].icon,onClick:R,selected:C===e,"data-context-id":e},e))})}function DashboardNavigation(){const e=(0,v.A)(),t=(0,g.useSelect)(t=>e?t(u.oR).getViewableModules():null),i=(0,g.useSelect)(e=>e(u.oR).getKeyMetrics());return(0,ie.jsx)(x.A,{loading:void 0===t||void 0===i,width:"100%",smallHeight:"59px",height:"71px",children:(0,ie.jsx)(Navigation,{})})}var se,ne,oe=i(49383),re=i(70301),ae=i(48276);function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.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"})),ne||(ne=l.createElement("path",{fill:"currentColor",d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"})));var ge=i(38432),de=i(83880);const ue=function EntityHeader(){const e=(0,k.A)(),t=(0,m.Ay)(),i=(0,g.useSelect)(e=>e(d.O4).getCurrentEntityTitle()),s=(0,g.useSelect)(e=>e(d.O4).getCurrentEntityURL()),n=(0,l.useRef)(),[o,r]=(0,l.useState)(s),a=(0,l.useCallback)(()=>{if(!n.current)return;const e=n.current.clientWidth-40,t=globalThis.getComputedStyle(n.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,j.A)("resize",u);const{navigateTo:p}=(0,g.useDispatch)(re.M),h=(0,g.useSelect)(e=>e(d.O4).getAdminURL("googlesitekit-dashboard")),f=(0,l.useCallback)(()=>{(0,_.sx)(`${e}_navigation`,"return_to_dashboard"),p(h)},[h,p,e]);return m.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)(oe.Button,{icon:(0,ie.jsx)(ce,{width:24,height:24}),"aria-label":(0,c.__)("Back to dashboard","google-site-kit"),onClick:f,text:!0,tertiary:!0,children:(0,c.__)("Back to dashboard","google-site-kit")})}),(0,ie.jsxs)("div",{ref:n,className:"googlesitekit-entity-header__details",children:[(0,ie.jsx)(de.A,{children:i}),(0,ie.jsx)(ge.A,{href:s,"aria-label":s,secondary:!0,external:!0,children:o})]})]})};var pe=i(44436),me=i(8732),he=i(89766);function CoreSiteBannerNotification({id:e,ctaURL:t,ctaTarget:i,...s}){const[n,o]=(0,l.useState)(!1),{dismissNotification:r,acceptNotification:a}=(0,g.useDispatch)(d.O4),{dismissNotification:c}=(0,g.useDispatch)(me.D),u=(0,l.useCallback)(async s=>{t&&s.preventDefault(),o(!0);const{error:n}=await a(e);n||await c(e,{expiresInSeconds:_.Jg}),o(!1),!n&&t&&("_blank"!==i?window.location.assign(t):window.open(t,"_blank"))},[e,a,c,t,i]),p=(0,l.useCallback)(async()=>{await r(e)},[e,r]);return(0,ie.jsx)(he.A,{onCTAClick:u,onDismissClick:p,ctaInProgress:n,...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 _e=CoreSiteBannerNotification;const fe=function CoreSiteBannerNotifications(){const e=(0,k.A)(),[t,i]=(0,l.useState)(!1),[s,n]=(0,l.useState)(!1),o=(0,l.useRef)(Date.now()),r=(0,g.useSelect)(e=>e(d.O4).isUsingProxy()&&!1===e(u.oR).areSurveysOnCooldown()?e(u.oR).getCurrentSurvey():null),[a,c]=(0,l.useState)([]),{registerNotification:m}=(0,g.useDispatch)(me.D),h=(0,g.useSelect)(e=>e(d.O4).getNotifications());return(0,l.useEffect)(()=>{const e=setTimeout(()=>{s||i(!0)},5e3);return()=>{clearTimeout(e)}},[s]),(0,l.useEffect)(()=>{Math.floor((Date.now()-o.current)/1e3)<5&&r&&n(!0)},[o,r,n]),(0,l.useEffect)(()=>{t&&!s&&h?.forEach(t=>{if(a.includes(t.id))return;const i={category:`${e}_remote-site-notification`,label:t.id};m(t.id,{Component:({Notification:e})=>(0,ie.jsx)(e,{gaTrackingEventArgs:i,children:(0,ie.jsx)(_e,{...t,gaTrackingEventArgs:i})}),priority:t.priority,areaSlug:p.bI.HEADER,isDismissible:t.dismissible}),c(e=>(e.push(t.id),e))})},[e,s,h,m,a,t]),null};var ke=i(67510),ye=i(67438);const ve="internal-server-error";function InternalServerError(){const e=(0,X.dv)(),t=(0,g.useSelect)(e=>e(d.O4).getInternalServerError());return(0,l.useEffect)(()=>{t&&globalThis.scrollTo({top:(0,$.YJ)(`#${ve}`,e),behavior:"smooth"})},[t,e]),t?(0,ie.jsx)(ye.A,{id:ve,children:(0,ie.jsx)(ke.A,{notificationID:ve,type:ke.Q.ERROR,title:t.title,description:t.description})}):null}function LegacyNotifications(){const e=(0,v.A)(),t=(0,m.Ay)(),i=(0,g.useSelect)(e=>e(u.oR).isAuthenticated());return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsx)(InternalServerError,{}),!e&&t===m.Oo&&i&&(0,ie.jsx)(fe,{})]})}var Ae=i(37834),xe=i(21795),be=i(53328),Ie=i(76729);function Divider({className:e}){return(0,ie.jsx)("li",{className:n()("mdc-list-divider",e),role:"separator"})}function MenuItem({id:e,className:t,role:i,isInteractive:s=!0,onClick:o,icon:r,label:a,description:l,trailing:c,children:g,itemClassName:d="googlesitekit-header-menu__item",iconClassName:u="googlesitekit-header-menu__item-icon",labelClassName:p="googlesitekit-header-menu__item-label",descriptionClassName:m="googlesitekit-header-menu__item-description",trailingClassName:h="googlesitekit-header-menu__item-trailing"}){const _=g||(0,ie.jsxs)("div",{className:d,children:[r&&(0,ie.jsx)("div",{className:u,children:r}),a&&(0,ie.jsx)("span",{className:p,children:a}),l&&(0,ie.jsx)("span",{className:m,children:l}),c&&(0,ie.jsx)("span",{className:h,children:c})]}),f=void 0===i&&s?"menuitem":i,k=n()(t,{"mdc-list-item":s}),y="function"==typeof o;return(0,ie.jsx)("li",{id:e,className:k||void 0,role:f,children:y?(0,ie.jsx)("button",{type:"button",className:"googlesitekit-header-menu__item-button",onClick:o,children:_}):_})}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 je,Me,Se=i(59865),Ne=i(94656),Ee=i(68832),we=i(12896),Ce=i(37467),Te=i(99893);function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",De({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),je||(je=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 Le,ze,Oe,Pe,Be,Ue=i(46467);function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",Ge({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Le||(Le=l.createElement("rect",{width:18,height:13,x:3,y:4,stroke:"currentColor",strokeWidth:1.5,rx:2})),ze||(ze=l.createElement("path",{fill:"currentColor",d:"M9 17h6v3H9z"})),Oe||(Oe=l.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M10 9h7M10 12h7"})),Pe||(Pe=l.createElement("circle",{cx:7,cy:9,r:1,fill:"currentColor"})),Be||(Be=l.createElement("circle",{cx:7,cy:12,r:1,fill:"currentColor"})));function Details(){const e=(0,g.useSelect)(e=>e(u.oR).getPicture()),t=(0,g.useSelect)(e=>e(u.oR).getFullName()),i=(0,g.useSelect)(e=>e(u.oR).getEmail());return(0,ie.jsxs)("div",{className:"googlesitekit-user-menu__details","aria-label":(0,c.__)("Google account","google-site-kit"),children:[!!e&&(0,ie.jsx)("img",{className:"googlesitekit-user-menu__details-avatar",src:e,alt:""}),(0,ie.jsxs)("div",{className:"googlesitekit-user-menu__details-info",children:[(0,ie.jsx)("p",{className:"googlesitekit-user-menu__details-info__name",children:t}),(0,ie.jsx)("p",{className:"googlesitekit-user-menu__details-info__email","aria-label":(0,c.__)("Email","google-site-kit"),children:i})]})]})}function UserMenu(){const e=(0,f.i)("proactiveUserEngagement"),t=(0,f.i)("setupFlowRefresh"),[i]=(0,Ce.A)("showProgress"),s=t&&"true"===i,n=(0,g.useSelect)(e=>e(d.O4).getProxyPermissionsURL()),o=(0,g.useSelect)(e=>e(u.oR).getEmail()),r=(0,g.useSelect)(e=>e(u.oR).getPicture()),a=(0,g.useSelect)(e=>e(u.oR).getFullName()),p=(0,g.useSelect)(e=>e(d.O4).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})),[m]=(0,Ee.A)(Te.CV,"isAutoCreatingCustomDimensionsForAudience"),{isTooltipVisible:y=!1,className:v}=(0,g.useSelect)(e=>e(N.nX).getValue("admin-screen-tooltip")||{isTooltipVisible:!1}),[A,x]=(0,l.useState)(!1),[b,I]=(0,l.useState)(!1),j=(0,l.useRef)(),M=(0,l.useRef)(),S=(0,k.A)(),{navigateTo:E}=(0,g.useDispatch)(re.M),w=e&&!s;(0,xe.A)(j,()=>I(!1)),(0,we.l)([be._f,be.wn],j,()=>{I(!1),M.current?.focus()});const C=(0,l.useCallback)(()=>{x(!1),I(!1)},[x,I]),{setValue:T}=(0,g.useDispatch)(N.nX),D=(0,l.useCallback)(()=>{b||((0,_.sx)(`${S}_headerbar`,"open_usermenu"),y&&v?.includes("googlesitekit-tour-tooltip--user-menu")&&T("admin-screen-tooltip",void 0)),I(!b)},[b,S,T,y,v]),R=(0,l.useCallback)(()=>{x(!A),I(!1)},[A]),L=(0,l.useCallback)(async(e,t)=>{const{detail:{item:i}}=t;switch(i?.id){case"manage-sites":n&&(await(0,_.sx)(`${S}_headerbar_usermenu`,"manage_sites"),E(n));break;case"disconnect":R();break;case"manage-email-reports":T(Ie.Q,!0);break;default:D()}},[n,D,R,E,T,S]),z=(0,l.useCallback)(async()=>{x(!1),await(0,h.IL)(),await(0,_.sx)(`${S}_headerbar_usermenu`,"disconnect_user"),E(p)},[p,E,S]);if(!o)return null;const O=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,o);return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsxs)("div",{ref:j,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,ie.jsx)(oe.Button,{disabled:m,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":m?void 0:(0,c.__)("Account","google-site-kit"),tooltipEnterDelayInMS:500,customizedTooltip:m?null:(0,ie.jsxs)("span",{"aria-label":O,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",{}),o]}),text:!0,tooltip:!0}),(0,ie.jsxs)(oe.Menu,{className:"googlesitekit-user-menu",menuOpen:b,onSelected:L,id:"user-menu",children:[(0,ie.jsx)(MenuSection,{children:(0,ie.jsx)(Details,{})}),w&&(0,ie.jsx)(MenuItem,{id:"manage-email-reports",icon:(0,ie.jsx)(Ue.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"}),!!n&&(0,ie.jsx)(MenuItem,{id:"manage-sites",icon:(0,ie.jsx)(We,{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)(Ne.A,{children:(0,ie.jsx)(Se.A,{dialogActive:A,handleConfirm:z,handleCancel:C,onClose:C,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,Fe=i(33052),He=i(75971);function ManageEmailReports(){const{setValue:e}=(0,He.wA)(N.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)(oe.Button,{className:"googlesitekit-view-only-menu__email-reporting-item",onClick:()=>e(Ie.Q,!0),icon:(0,ie.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--icon",children:(0,ie.jsx)(Ue.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 Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement("svg",Ye({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,k.A)(),t=(0,g.useSelect)(e=>e(u.oR).hasCapability(u.ej)),i=(0,g.useSelect)(e=>e(d.O4).getProxySetupURL()),s=(0,g.useSelect)(e=>e(d.O4).getDocumentationLinkURL("dashboard-sharing")),{navigateTo:n}=(0,g.useDispatch)(re.M),o=(0,l.useCallback)(async t=>{t.preventDefault(),await Promise.all([(0,h.SO)("start_user_setup",!0),(0,_.sx)(`${e}_headerbar_viewonly`,"start_user_setup",i?"proxy":"custom-oauth")]),n(i)},[i,n,e]),r=(0,l.useCallback)(()=>{(0,_.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. Learn more","google-site-kit"),{a:(0,ie.jsx)(ge.A,{href:s,onClick:r,"aria-label":(0,c.__)("Learn more about dashboard sharing","google-site-kit"),external:!0})});return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsx)(de.A,{className:"googlesitekit-view-only-menu__signin",children:a}),t&&(0,ie.jsx)(oe.Button,{onClick:o,children:(0,c._x)("Sign in with Google","Service name","google-site-kit")})]})}var Qe=i(88273);function Service({module:e}){const t=(0,g.useSelect)(e=>e(u.oR).hasCapability(u.ej)),{name:i,owner:s}=(0,g.useSelect)(t=>t(Qe.i).getModule(e)||{}),n=(0,g.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)(n,{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,k.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 Google Privacy Policy","google-site-kit"),{a:(0,ie.jsx)(ge.A,{href:"https://policies.google.com/privacy",external:!0})}),trackEventCategory:`${e}_headerbar_viewonly`,layout:"stacked"})}function ViewOnlyMenu(){const e=(0,f.i)("proactiveUserEngagement"),[t,i]=(0,l.useState)(!1),s=(0,l.useRef)(),o=(0,k.A)();(0,xe.A)(s,()=>i(!1)),(0,we.l)([be._f,be.wn],s,()=>i(!1));const r=(0,l.useCallback)(()=>{t||(0,_.sx)(`${o}_headerbar`,"open_viewonly"),i(!t)},[t,o]),a=(0,g.useSelect)(e=>e(u.oR).hasCapability(u.ej)),d=(0,g.useSelect)(e=>e(u.oR).getViewableModules());return(0,ie.jsxs)("div",{ref:s,className:n()("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)(oe.Button,{className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--phone googlesitekit-button-icon",onClick:r,icon:(0,ie.jsx)("span",{className:"mdc-button__icon","aria-hidden":"true",children:(0,ie.jsx)(qe,{className:"mdc-button__icon--image"})}),"aria-haspopup":"menu","aria-expanded":t,"aria-controls":"view-only-menu","aria-label":(0,c.__)("View only","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:(0,c.__)("View only","google-site-kit")}),(0,ie.jsxs)(oe.Menu,{menuOpen:t,onSelected:r,id:"view-only-menu",nonInteractive:!0,children:[(0,ie.jsx)(MenuSection,{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__description",children:(0,ie.jsx)(Description,{})}),Array.isArray(d)&&(0,ie.jsx)(MenuWithHeading,{className:"googlesitekit-view-only-menu__list-item",heading:(0,ie.jsx)(Fe.A,{as:"h4",size:"medium",type:"label",children:(0,c.__)("Shared services","google-site-kit")}),children:(0,ie.jsx)(SharedServices,{viewableModules:d})}),e&&(0,ie.jsx)(ManageEmailReports,{}),(0,ie.jsx)(Divider,{}),(0,ie.jsx)(MenuSection,{className:"googlesitekit-view-only-menu__list-item",children:(0,ie.jsx)(Tracking,{})})]})]})}function Header({children:e,subHeader:t,showNavigation:i}){const s=!!(0,m.Ay)(),o=(0,v.A)();!function(){const e=(0,k.A)(),t=(0,g.useSelect)(e=>e(d.O4).isUsingProxy()),i=(0,g.useSelect)(e=>e(d.O4).getSetupErrorMessage()),s=(0,f.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,_.sx)(`${e}_setup`,"complete_user_setup",t?"proxy":"custom-oauth")),s.cacheHit&&(await(0,h.LD)("start_site_setup"),(0,_.sx)(`${e}_setup`,"complete_site_setup",t?"proxy":"custom-oauth"))}()},[s,e,t,i])}();const r=(0,g.useSelect)(e=>e(d.O4).getAdminURL("googlesitekit-dashboard")),y=(0,g.useSelect)(e=>e(u.oR).isAuthenticated()),[x,b]=(0,a.A)({childList:!0}),I=!!b.target?.childElementCount;return(0,ie.jsxs)(l.Fragment,{children:[(0,ie.jsx)("header",{className:n()("googlesitekit-header",{"googlesitekit-header--has-subheader":I,"googlesitekit-header--has-navigation":i}),children:(0,ie.jsx)(A.xA,{children:(0,ie.jsxs)(A.fI,{children:[(0,ie.jsx)(A.fh,{smSize:1,mdSize:2,lgSize:4,className:"googlesitekit-header__logo",alignMiddle:!0,children:(0,ie.jsx)(ge.A,{"aria-label":(0,c.__)("Go to dashboard","google-site-kit"),className:"googlesitekit-header__logo-link",href:r,children:(0,ie.jsx)(pe.A,{})})}),(0,ie.jsxs)(A.fh,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0,children:[e,!y&&s&&o&&(0,ie.jsx)(ViewOnlyMenu,{}),y&&!o&&(0,ie.jsx)(UserMenu,{})]})]})})}),(0,ie.jsx)("div",{className:"googlesitekit-subheader",ref:x,children:t}),i&&(0,ie.jsx)(DashboardNavigation,{}),(0,ie.jsx)(ue,{}),(0,ie.jsx)(LegacyNotifications,{}),(0,ie.jsx)(Ae.A,{areaSlug:p.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),n=i.n(s),o=i(62540);function IconWrapper({children:e,marginLeft:t,marginRight:i}){return(0,o.jsx)("span",{className:"googlesitekit-icon-wrapper",style:{marginLeft:t,marginRight:i},children:e})}IconWrapper.propTypes={children:n().node.isRequired,marginLeft:n().number,marginRight:n().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:n,Provider:o}=s.A,r=o},7144(e,t,i){i.d(t,{EA:()=>o,GF:()=>f,Hl:()=>d,IX:()=>m,Is:()=>r,KD:()=>p,LO:()=>g,NO:()=>c,Nl:()=>l,QJ:()=>u,Uf:()=>n,XU:()=>_,Y0:()=>a,hs:()=>k,wb:()=>h});var s=i(82871);const n="key-metrics-setup-cta-widget",o="googlesitekit-key-metrics-selection-panel-opened",r="key-metrics-selection-form",a="key-metrics-selected",l="key-metrics-effective-selection",c="key-metrics-unstaged-selection",g=2,d=8,u={SLUG:"current-selection",LABEL:(0,s.__)("Current selection","google-site-kit")},p={SLUG:"suggested",LABEL:(0,s.__)("Suggested","google-site-kit")},m={SLUG:"visitors",LABEL:(0,s.__)("Visitors","google-site-kit")},h={SLUG:"driving-traffic",LABEL:(0,s.__)("Driving traffic","google-site-kit")},_={SLUG:"generating-leads",LABEL:(0,s.__)("Generating leads","google-site-kit")},f={SLUG:"selling-products",LABEL:(0,s.__)("Selling products","google-site-kit")},k={SLUG:"content-performance",LABEL:(0,s.__)("Content performance","google-site-kit")}},50454(e,t,i){i.d(t,{G:()=>d});var s=i(82871),n=i(29785),o=i(97345),r=i(99893),a=i(7144);function l({select:e,slug:t}){return e(r.K9).hasConversionReportingEvents(this.requiredConversionEventName)||e(o.oR).isKeyMetricActive(t)}function c({select:e,isViewOnlyDashboard:t}){return!t||!(!t||!e(r.K9).getAdSenseLinked())}function g({select:e,isViewOnlyDashboard:t}){return!t||e(r.K9).hasCustomDimensions(this.requiredCustomDimensions)}const d={[o.p3]:{title:(0,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}},[o.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:g,displayInWidgetArea:g,displayInList:g,metadata:{group:a.hs.SLUG}},[o.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:g,displayInWidgetArea:g,displayInList:g,metadata:{group:a.hs.SLUG}},[o.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:g,displayInWidgetArea:g,displayInList:g,metadata:{group:a.hs.SLUG}},[o.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}},[o.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(o.oR).isKeyMetricActive(o.pG)||e(n.O4).getProductPostType(),displayInWidgetArea:g,metadata:{group:a.GF.SLUG}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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}},[o.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:()=>N});var s,n=i(4452),o=i.n(n),r=i(62688),a=i.n(r),l=i(39941),c=i(63696),g=i(82871);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),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 p;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),p||(p=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"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 _;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),_||(_=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),v=i(50304),A=i(62540);const x="BUTTON",b="BUTTON_DISABLED",I="EXTERNAL_LINK",j="LINK",M="ROUTER_LINK",S=(0,c.forwardRef)((e,t)=>{const{"aria-label":i,secondary:s=!1,arrow:n=!1,back:r=!1,caps:a=!1,children:c,className:d="",danger:p=!1,disabled:m=!1,external:_=!1,hideExternalIndicator:f=!1,href:S="",inverse:N=!1,noFlex:E=!1,onClick:w,small:C=!1,standalone:T=!1,linkButton:D=!1,to:R,leadingIcon:L,trailingIcon:z,...O}=e;const P=S||R||!w?R?M:_?I:j:m?b:x;const B=P===x||P===b?"button":P===M?l.N_:"a",U=function(){let e;return P===I&&(e=(0,g._x)("(opens in a new tab)","screen reader text","google-site-kit")),P===b&&(e=(0,g._x)("(disabled)","screen reader text","google-site-kit")),e?i?`${i} ${e}`:"string"==typeof c?`${c} ${e}`:void 0:i}();let G=L,W=z;return r&&(G=(0,A.jsx)(k,{width:14,height:14})),_&&!f&&(W=(0,A.jsx)(y.A,{width:14,height:14})),n&&!N&&(W=(0,A.jsx)(h,{width:14,height:14})),n&&N&&(W=(0,A.jsx)(u,{width:14,height:14})),(0,A.jsxs)(B,{"aria-label":U,className:o()("googlesitekit-cta-link",d,{"googlesitekit-cta-link--secondary":s,"googlesitekit-cta-link--inverse":N,"googlesitekit-cta-link--small":C,"googlesitekit-cta-link--caps":a,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":m,"googlesitekit-cta-link--standalone":T,"googlesitekit-cta-link--link-button":D,"googlesitekit-cta-link--no-flex":!!E}),disabled:m,href:P!==j&&P!==I||m?void 0:S,onClick:w,rel:P===I?"noopener noreferrer":void 0,ref:t,target:P===I?"_blank":void 0,to:R,...O,children:[!!G&&(0,A.jsx)(v.A,{marginRight:5,children:G}),(0,A.jsx)("span",{className:"googlesitekit-cta-link__contents",children:c}),!!W&&(0,A.jsx)(v.A,{marginLeft:5,children:W})]})});S.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 N=S},45257(e,t,i){i.d(t,{A:()=>LoadingWrapper});var s=i(62688),n=i.n(s),o=i(4751),r=i(62540);function LoadingWrapper({loading:e,children:t,...i}){return e?(0,r.jsx)(o.A,{...i}):t}LoadingWrapper.propTypes={loading:n().bool,children:n().node,...o.A.propTypes}},44436(e,t,i){i.d(t,{A:()=>d});var s,n=i(82871),o=i(88933),r=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 80 21"},e),s||(s=r.createElement("path",{fill:"#5F6368",d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1zM69.985 3.117c0 .454-.167.853-.488 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.6 1.6 0 0 1-.488-1.175c0-.466.166-.854.488-1.176s.71-.488 1.175-.488c.455 0 .854.166 1.176.488.332.333.487.72.487 1.176m-.477 4.313v12.498h-2.351V7.43zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943q-1.014-.948-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333M2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974q-.883-.781-3.094-1.564l-1.22-.432Q3.371 9.997 2.04 8.716C1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673S2.75 1.209 3.693.72C4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676-.91 1.032-.91 1.742c0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6 6 0 0 1-2.495 1.919 8 8 0 0 1-3.116.621c-1.62 0-3.072-.466-4.358-1.408M15.969 3.449a1.95 1.95 0 0 1-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0 1 17.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 0 1-1.43.589c-.566-.012-1.043-.2-1.431-.588m-.067 2.595h2.994v13.883h-2.994zM25.406 19.85c-.544-.2-.987-.466-1.331-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122q.35-.116.765-.399v2.917c-.599.277-1.32.41-2.173.41a5 5 0 0 1-1.753-.3M33.623 19.407a6.63 6.63 0 0 1-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706s2.251-1.01 3.593-1.01c1.397 0 2.606.311 3.637.921a6.1 6.1 0 0 1 2.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.16 4.16 0 0 0 2.817 1.043c.854 0 1.597-.189 2.218-.588a4.27 4.27 0 0 0 1.508-1.597l2.528 1.198q-.981 1.713-2.561 2.694c-1.054.655-2.318.976-3.782.976q-2.046.033-3.66-.931m7.23-8.051a3.3 3.3 0 0 0-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296z"})));var c=i(55989),g=i(62540);const d=function Logo(){return(0,g.jsxs)("div",{className:"googlesitekit-logo","aria-hidden":"true",children:[(0,g.jsx)(o.A,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),(0,g.jsx)(l,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),(0,g.jsx)(c.A,{children:(0,n.__)("Site Kit by Google Logo","google-site-kit")})]})}},59865(e,t,i){i.d(t,{A:()=>p});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(52684),l=i(13606),c=i(82871),g=i(49383),d=i(85149),u=i(62540);function ModalDialog({className:e="",dialogActive:t=!1,handleCancel:i=null,onOpen:s=null,onClose:o=null,title:r=null,provides:p,handleConfirm:m,subtitle:h,confirmButton:_=null,notes:f=[],danger:k=!1,inProgress:y=!1,small:v=!1,medium:A=!1,buttonLink:x=null}){const b=`googlesitekit-dialog-description-${(0,a.A)(ModalDialog)}`,I=!(!p||!p.length);return(0,u.jsxs)(g.Dialog,{open:t,onOpen:s,onClose:o,"aria-describedby":I?b:void 0,tabIndex:"-1",className:n()(e,{"googlesitekit-dialog-sm":v,"googlesitekit-dialog-md":A}),children:[(0,u.jsxs)(g.DialogTitle,{children:[k&&(0,u.jsx)(d.A,{width:28,height:28}),r]}),h?(0,u.jsx)("p",{className:"mdc-dialog__lead",children:h}):[],(0,u.jsxs)(g.DialogContent,{children:[I&&(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:p.map(e=>(0,u.jsx)("li",{className:"mdc-list-item",children:(0,u.jsx)("span",{className:"mdc-list-item__text",children:e})},e))})}),f.length>0&&(0,u.jsx)("section",{className:"mdc-dialog__notes",children:f.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.__)("Note: %s","google-site-kit"),e),{strong:(0,u.jsx)("strong",{})}),"function"==typeof e&&(0,u.jsx)(e,{})]},`note-${t}`))})]}),(0,u.jsxs)(g.DialogFooter,{children:[(0,u.jsx)(g.Button,{className:"mdc-dialog__cancel-button",onClick:i,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),x?(0,u.jsx)(g.Button,{href:x,onClick:m,target:"_blank",danger:k,children:_}):(0,u.jsx)(g.SpinnerButton,{onClick:m,danger:k,disabled:y,isSaving:y,children:_||(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 p=ModalDialog},2671(e,t,i){i.d(t,{A:()=>ModuleIcon});var s=i(62688),n=i.n(s),o=i(50539),r=i(88273),a=i(62540);function ModuleIcon({slug:e,size:t,...i}){const s=(0,o.useSelect)(t=>t(r.i).getModuleIcon(e));return s?(0,a.jsx)(s,{width:t,height:t,...i}):null}ModuleIcon.propTypes={slug:n().string.isRequired,size:n().number},ModuleIcon.defaultProps={size:33}},60515(e,t,i){i.d(t,{A:()=>p});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(63696),l=i(82871),c=i(49383),g=i(5855),d=i(38432),u=i(62540);function NewBadge({tooltipTitle:e,learnMoreLink:t,forceOpen:i,hasLeftSpacing:s,hasNoSpacing:o,onLearnMoreClick:r=()=>{}}){const p=(0,u.jsx)(g.A,{className:n()("googlesitekit-new-badge",{"googlesitekit-new-badge--has-no-spacing":o}),label:(0,l.__)("New","google-site-kit"),hasLeftSpacing:s});return e?(0,u.jsx)(c.Tooltip,{tooltipClassName:"googlesitekit-new-badge__tooltip",title:(0,u.jsxs)(a.Fragment,{children:[e,(0,u.jsx)("br",{}),(0,u.jsx)(d.A,{href:t,onClick:r,external:!0,hideExternalIndicator:!0,children:(0,l.__)("Learn more","google-site-kit")})]}),placement:"top",enterTouchDelay:0,leaveTouchDelay:5e3,open:i,interactive:!0,children:p}):p}NewBadge.propTypes={tooltipTitle:r().string,learnMoreLink:r().string,forceOpen:r().bool,onLearnMoreClick:r().func,hasLeftSpacing:r().bool,hasNoSpacing:r().bool};const p=NewBadge},89766(e,t,i){i.d(t,{A:()=>l});var s=i(62688),n=i.n(s),o=i(67510),r=i(13047),a=i(62540);function NotificationFromServer({id:e,titleIcon:t,title:i,content:s,ctaLabel:n,ctaTarget:l,ctaURL:c,dismissible:g,dismissLabel:d,learnMoreLabel:u,learnMoreURL:p,onCTAClick:m,ctaInProgress:h,onDismissClick:_,gaTrackingEventArgs:f}){const k={expiresInSeconds:r.Jg};return(0,a.jsx)(o.A,{notificationID:e,type:o.Q.WARNING,titleIcon:t||void 0,title:i,description:s,learnMoreLink:p?{label:u,href:p}:void 0,ctaButton:{label:n,href:c,onClick:m,inProgress:h,dismissOptions:k,external:"_blank"===l},dismissButton:g?{label:d,onClick:_,dismissOptions:k}:void 0,gaTrackingEventArgs:f})}NotificationFromServer.propTypes={id:n().string.isRequired,title:n().string.isRequired,content:n().node,ctaLabel:n().string,ctaTarget:n().string,ctaURL:n().string,dismissible:n().bool,dismissLabel:n().string,learnMoreLabel:n().string,learnMoreURL:n().string,onCTAClick:n().func,ctaInProgress:n().bool,onDismissClick:n().func,gaTrackingEventArgs:n().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),n=i.n(s),o=i(62688),r=i.n(o),a=i(63696),l=i(13606),c=i(82871),g=i(50539),d=i(38432),u=i(97345),p=i(7076),m=i(62659),h=i(65054),_=i(49383),f=i(62540);function LayoutDefault({checkboxProps:e,label:t}){return(0,f.jsx)(_.Checkbox,{...e,children:t})}function LayoutStacked({checkboxProps:e,title:t,description:i}){return(0,f.jsxs)(a.Fragment,{children:[(0,f.jsx)(_.Checkbox,{...e,children:t}),(0,f.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 k="default",y="stacked";function OptIn({id:e="googlesitekit-opt-in",name:t="optIn",className:i,layout:s=k,title:o=null,description:r=null,trackEventCategory:_,trackEventAction:v="tracking_optin"}){const[A,x]=(0,a.useState)(),b=(0,g.useSelect)(e=>e(u.oR).isTrackingEnabled()),I=(0,g.useSelect)(e=>e(u.oR).getErrorForAction("setTrackingEnabled",[!b])),{setTrackingEnabled:j}=(0,g.useDispatch)(u.oR),M=(0,m.A)(),S=(0,a.useCallback)(async e=>{const{response:t,error:i}=await j(e);i?x(b):((0,h.M9)(t.enabled),t.enabled&&(0,h.sx)(_||M,v))},[b,j,_,v,M]);(0,a.useEffect)(()=>{void 0!==b&&void 0===A&&x(b)},[b,A]);const N=(0,p.d)(S,300),E=(0,a.useCallback)(e=>{const t=e.target.checked;x(t),N(t)},[N]),w=o??(0,f.jsx)("span",{children:(0,c.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")}),C=r??(0,l.A)((0,c.__)("All collected data is treated in accordance with the Google Privacy Policy","google-site-kit"),{a:(0,f.jsx)(d.A,{href:"https://policies.google.com/privacy",external:!0},"link"),span:(0,f.jsx)("span",{})}),T={id:e,name:t,value:"1",checked:A,onChange:E,loading:void 0===b};return(0,f.jsxs)("div",{className:n()("googlesitekit-opt-in",i,s===y&&"googlesitekit-opt-in--layout-stacked"),children:[s===y?(0,f.jsx)(LayoutStacked,{checkboxProps:T,title:w,description:C}):(0,f.jsx)(LayoutDefault,{checkboxProps:T,label:(0,f.jsxs)(a.Fragment,{children:[w," ",C]})}),I?.message&&(0,f.jsx)("div",{className:"googlesitekit-error-text",children:I?.message})]})}OptIn.propTypes={id:r().string,name:r().string,className:r().string,title:r().node,description:r().node,layout:r().oneOf([k,y]),trackEventCategory:r().string}},85172(e,t,i){i.d(t,{A:()=>PageHeader});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(10740),l=i(24560),c=i(18418),g=i(50304),d=i(33052),u=i(62540);function PageHeader(e){const{title:t,icon:i,className:s,status:o,statusText:r,fullWidth:p,children:m}=e,h=p?{size:12}:{smSize:4,mdSize:4,lgSize:6},_=""!==o||Boolean(m);return(0,u.jsx)("header",{className:"googlesitekit-page-header",children:(0,u.jsxs)(a.fI,{children:[t&&(0,u.jsxs)(a.fh,{...h,children:[i,(0,u.jsx)(d.A,{as:"h1",className:n()("googlesitekit-page-header__title",s),size:"medium",type:"title",children:t})]}),_&&(0,u.jsx)(a.fh,{smSize:4,mdSize:4,lgSize:6,alignBottom:!0,mdAlignRight:!0,children:(0,u.jsxs)("div",{className:"googlesitekit-page-header__details",children:[o&&(0,u.jsxs)("span",{className:n()("googlesitekit-page-header__status",`googlesitekit-page-header__status--${o}`),children:[r,(0,u.jsx)(g.A,{children:"connected"===o?(0,u.jsx)(l.A,{width:10,height:8}):(0,u.jsx)(c.A,{width:2,height:12})})]}),m]})})]})})}PageHeader.propTypes={title:r().string,icon:r().node,className:r().string,status:r().string,statusText:r().string,fullWidth:r().bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}},94656(e,t,i){i.d(t,{A:()=>l});var s=i(62688),n=i.n(s),o=i(47209),r=i(63696),a=i(78325);function Portal({children:e,slug:t}){const[i]=(0,r.useState)(document.createElement("div"));return(0,o.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:n().string,children:n().node},Portal.defaultProps={slug:"",children:null};const l=Portal},4751(e,t,i){i.d(t,{A:()=>c});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(97513),l=i(62540);function PreviewBlock({className:e,width:t,height:i,shape:s,padding:o,smallWidth:r,smallHeight:c,tabletWidth:g,tabletHeight:d,desktopWidth:u,desktopHeight:p}){const m=(0,a.dv)(),h={width:{[a.mp]:r,[a.Lg]:g,[a.Fo]:u,[a.Qb]:u},height:{[a.mp]:c,[a.Lg]:d,[a.Fo]:p,[a.Qb]:u}};return(0,l.jsx)("div",{className:n()("googlesitekit-preview-block",e,{"googlesitekit-preview-block--padding":o}),style:{width:h.width[m]||t,height:h.height[m]||i},children:(0,l.jsx)("div",{className:n()("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),n=i.n(s),o=i(4751),r=i(62540);function PreviewBlocks({width:e,height:t,shape:i,count:s,smallWidth:n,smallHeight:a,tabletWidth:l,tabletHeight:c,desktopWidth:g,desktopHeight:d}){const u=[];let p=0;for(;p++RecoverableModules});var s=i(62688),n=i.n(s),o=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,o.sprintf)(/* translators: %s: Module name */ /* translators: %s: Module name */ (0,o.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),t[0]):(0,o.sprintf)(/* translators: %s: List of module names */ /* translators: %s: List of module names */ (0,o.__)("The data for the following modules was previously shared by an admin who no longer has access: %s. Please contact another admin to restore it.","google-site-kit"),t.join((0,o._x)(", ","Recoverable modules","google-site-kit")));return(0,c.jsx)(l.A,{title:(0,o.__)("Data Unavailable","google-site-kit"),description:i})}RecoverableModules.propTypes={moduleSlugs:n().arrayOf(n().string).isRequired}},82246(e,t,i){i.d(t,{A:()=>d});var s=i(62688),n=i.n(s),o=i(81276),r=i(63696),a=i(49383),l=i(59865),c=i(62540);let g=null;function RefocusableModalDialog({dialogActive:e=!1,refocusQuerySelector:t=null,...i}){const s=(0,r.useCallback)(()=>{setTimeout(()=>{const e=t?document.querySelector(t):g;e&&document.body.contains(e)&&e.focus(),t||(g=null)})},[t]),n=(0,o.A)(e);return(0,r.useEffect)(()=>(!0===n&&!1===e&&s(),()=>{s()}),[n,e,s]),(0,c.jsx)(l.A,{dialogActive:e,...i})}!function(){function e(e){const t=e.target.closest("button, a, input");t&&!t.classList.contains("mdc-dialog__cancel-button")&&(g=t)}"undefined"!=typeof globalThis&&globalThis.document&&!globalThis._googlesitekitModalFocusTrackerInitialized&&(globalThis.document.addEventListener("mousedown",e),globalThis.document.addEventListener("keydown",t=>{"Enter"!==t.key&&" "!==t.key||e(t)}),globalThis._googlesitekitModalFocusTrackerInitialized=!0)}(),RefocusableModalDialog.propTypes={dialogActive:n().bool,refocusQuerySelector:n().string,...a.Dialog.propTypes};const d=RefocusableModalDialog},44192(e,t,i){i.d(t,{A:()=>ReportError});var s=i(17243),n=i(62688),o=i.n(n),r=i(63696),a=i(82871),l=i(81375),c=i(50539),g=i(88273),d=i(4124),u=i(13137),p=i(31012),m=i(55465),h=i(73198),_=i(12317),f=i(1641),k=i(62540);function ReportError({moduleSlug:e,error:t}){const i=(0,d.A)(),n=(0,c.useSelect)(t=>t(g.i).getModule(e)),o=Array.isArray(t)?t:[t];let y;function v(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"),n?.name),(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("The administrator sharing this module with you has lost access to the %s service, so you 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"),n?.name)):(y=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Insufficient permissions in %s","google-site-kit"),n?.name),(0,p.c)(e.message,n)):(0,u.e4)(e)}const A=(0,s.uniqWith)(o.map(e=>({...e,message:v(e),reconnectURL:e.data?.reconnectURL?(0,l.m)(e.data.reconnectURL,"code"):void 0})),(e,t)=>e.message===t.message&&e.reconnectURL===t.reconnectURL),x=o.some(e=>(0,u.SG)(e));x||1!==A.length?!x&&A.length>1&&(y=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Data errors in %s","google-site-kit"),n?.name)):y=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Data error in %s","google-site-kit"),n?.name);const b=(0,k.jsx)(r.Fragment,{children:A.map(e=>{const t=e?.data?.reconnectURL;return t?(0,k.jsx)(h.A,{error:e,message:e.message},e.message):(0,k.jsx)("p",{children:m.O.sanitize(e.message,{ALLOWED_TAGS:[]})},e.message)})});return(0,k.jsx)(_.A,{title:y,description:b,error:!0,children:(0,k.jsx)(f.A,{moduleSlug:e,error:t})})}ReportError.propTypes={moduleSlug:o().string.isRequired,error:o().oneOfType([o().arrayOf(o().object),o().object]).isRequired}},1641(e,t,i){i.d(t,{A:()=>ReportErrorActions});var s=i(62688),n=i.n(s),o=i(63696),r=i(13606),a=i(82871),l=i(49383),c=i(50539),g=i(29785),d=i(88273),u=i(4124),p=i(13137),m=i(38432),h=i(62540);function ReportErrorActions(e){const{moduleSlug:t,error:i,GetHelpLink:s,hideGetHelpLink:n,buttonVariant:_,onRetry:f,onRequestAccess:k,getHelpClassName:y,RequestAccessButton:v,RetryButton:A}=e,x=(0,u.A)(),b=(0,c.useSelect)(e=>e(d.i).getModuleStoreName(t)),I=(0,c.useSelect)(e=>"function"==typeof e(b)?.getServiceEntityAccessURL?e(b).getServiceEntityAccessURL():null),j=Array.isArray(i)?i:[i],M=(0,c.useSelect)(e=>j.map(t=>{const i=e(b)?.getSelectorDataForError(t);return{...t,selectorData:i}})),S=M?.filter(e=>(0,p.vl)(e,e.selectorData)&&"getReport"===e.selectorData.name),N=!!S.length,E=(0,c.useSelect)(e=>{const i={...N?S[0]:j[0]};return(0,p.SG)(i)&&(i.code=`${t}_insufficient_permissions`),e(g.O4).getErrorTroubleshootingLinkURL(i)}),w=(0,c.useDispatch)(),C=j.some(e=>(0,p.SG)(e)),T=(0,o.useCallback)(()=>{S.forEach(e=>{const{selectorData:t}=e;w(t.storeName).invalidateResolution(t.name,t.args)}),f?.()},[w,S,f]),D=I&&C&&!x;return(0,h.jsxs)("div",{className:"googlesitekit-report-error-actions",children:[D&&("function"==typeof v?(0,h.jsx)(v,{requestAccessURL:I}):(0,h.jsx)(l.Button,{onClick:k,href:I,target:"_blank",danger:"danger"===_,tertiary:"tertiary"===_,children:(0,a.__)("Request access","google-site-kit")})),N&&(0,h.jsxs)(o.Fragment,{children:["function"==typeof A?(0,h.jsx)(A,{handleRetry:T}):(0,h.jsx)(l.Button,{onClick:T,danger:"danger"===_,tertiary:"tertiary"===_,children:(0,a.__)("Retry","google-site-kit")}),!n&&(0,h.jsx)("span",{className:"googlesitekit-error-retry-text",children:(0,r.A)((0,a.__)("Retry didn’t work? ","google-site-kit"),{HelpLink:(0,h.jsx)(m.A,{href:E,external:!0,hideExternalIndicator:!0,children:(0,a.__)("Get help","google-site-kit")})})})]}),!N&&!n&&(0,h.jsx)("div",{className:y,children:"function"==typeof s?(0,h.jsx)(s,{linkURL:E}):(0,h.jsx)(m.A,{href:E,external:!0,hideExternalIndicator:!0,children:(0,a.__)("Get help","google-site-kit")})})]})}ReportErrorActions.propTypes={moduleSlug:n().string.isRequired,error:n().oneOfType([n().arrayOf(n().object),n().object]).isRequired,GetHelpLink:n().elementType,hideGetHelpLink:n().bool,buttonVariant:n().string,onRetry:n().func,onRequestAccess:n().func,getHelpClassName:n().string,RequestAccessButton:n().elementType,RetryButton:n().elementType}},15118(e,t,i){i.d(t,{A:()=>ReportZero});var s=i(62688),n=i.n(s),o=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,o.sprintf)(/* translators: %s: Module name */ /* translators: %s: Module name */ (0,o.__)("%s Gathering Data","google-site-kit"),t?.name),description:(0,o.sprintf)(/* translators: %s: Module name */ /* translators: %s: Module name */ (0,o.__)("%s data is not yet available, please check back later","google-site-kit"),t?.name)})}ReportZero.propTypes={moduleSlug:n().string.isRequired}},62779(e,t,i){i.d(t,{A:()=>f});var s=i(63696),n=i(13606),o=i(82871),r=i(50539),a=i(49993),l=i(70301),c=i(29785),g=i(7076),d=i(62659),u=i(65054),p=i(38432),m=i(59865),h=i(94656),_=i(62540);const f=function ResetButton({children:e}){const t=(0,r.useSelect)(e=>e(c.O4).getAdminURL("googlesitekit-splash",{notification:"reset_success"})),i=(0,r.useSelect)(e=>e(c.O4).isDoingReset()),f=(0,r.useSelect)(e=>e(l.M).isNavigatingTo(t||"")),[k,y]=(0,s.useState)(!1),[v,A]=(0,s.useState)(!1),x=(0,g.d)(y,3e3);(0,s.useEffect)(()=>{i||f?y(!0):x(!1)},[i,f,x]);const{reset:b}=(0,r.useDispatch)(c.O4),{navigateTo:I}=(0,r.useDispatch)(l.M),j=(0,d.A)(),M=(0,s.useCallback)(async()=>{await b(),await(0,a.IL)(),await(0,u.sx)(j,"reset_plugin"),I(t)},[I,t,b,j]),S=(0,s.useCallback)(()=>{A(!0)},[]),N=(0,s.useCallback)(()=>{A(!1)},[]);return(0,_.jsxs)(s.Fragment,{children:[(0,_.jsx)(p.A,{className:"googlesitekit-reset-button",onClick:S,children:e||(0,o.__)("Reset Site Kit","google-site-kit")}),(0,_.jsx)(h.A,{children:(0,_.jsx)(m.A,{dialogActive:v,handleConfirm:M,handleCancel:N,onClose:N,title:(0,o.__)("Reset Site Kit","google-site-kit"),subtitle:(0,n.A)((0,o.__)("Resetting will disconnect all users and remove all Site Kit settings and data within WordPress.
You and any other users who wish to use Site Kit will need to reconnect to restore access.","google-site-kit"),{br:(0,_.jsx)("br",{})}),confirmButton:(0,o.__)("Reset","google-site-kit"),inProgress:k,danger:!0,small:!0})})]})}},19826(e,t,i){i.d(t,{Ay:()=>r,Kq:()=>o});const s=(0,i(63696).createContext)(""),{Consumer:n,Provider:o}=s,r=s},63081(e,t,i){i.d(t,{A:()=>Root});var s=i(44010),n=i(77105),o=i(62688),r=i.n(o),a=i(63696),l=i(50539),c=i.n(l),g=i(82871),d=i(6730),u=i(19826),p=i(67510),m=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,m.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 n=s?.componentStack;return t&&n&&(n=n.replace(/\(.*\)/g,"(filtered)").replace(/at (.+) ?https?:\/\/.*/g,"at $1 (filtered)").replace(/at https?:\/\/.*/g,"").replace(/\n \n /g,"\n ")),(0,h.jsx)(p.A,{notificationID:"googlesitekit-error",className:"googlesitekit-error-handler",type:"error",title:(0,g.__)("Site Kit encountered an error","google-site-kit"),description:(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)(d.A,{message:i.message,componentStack:n}),(0,h.jsxs)("pre",{className:"googlesitekit-overflow-auto",children:[i.message,n]})]})})}}ErrorHandler.contextType=u.Ay,ErrorHandler.propTypes={children:r().node.isRequired};const _=ErrorHandler;var f=i(79961);const{Consumer:k,Provider:y}=f.A,v=y;var A=i(15844),x=i(97345),b=i(62659),I=i(71264);function FeatureTours(){const e=(0,b.A)(),{triggerTourForView:t}=(0,l.useDispatch)(x.oR);(0,A.A)(()=>{t(e)});const i=(0,l.useSelect)(e=>e(x.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)(I.Ay,{tourID:i.slug,steps:i.steps,gaEventCategory:i.gaEventCategory,isRepeatable:i.isRepeatable,callback:i.callback}):null}var j=i(20762),M=i(94656),S=i(82246),N=i(78990),E=i(11999),w=i(70301);const C=function AuthenticatedPermissionsModal(){const e=(0,l.useRegistry)(),t=(0,l.useSelect)(e=>e(x.oR).getPermissionScopeError()),i=(0,l.useSelect)(e=>e(x.oR).getUnsatisfiedScopes()),s=(0,l.useSelect)(e=>e(x.oR).getConnectURL({additionalScopes:t?.data?.scopes,redirectURL:t?.data?.redirectURL||globalThis.location.href,errorRedirectURL:t?.data?.errorRedirectURL})),{clearPermissionScopeError:n}=(0,l.useDispatch)(x.oR),{navigateTo:o}=(0,l.useDispatch)(w.M),{setValues:r}=(0,l.useDispatch)(E.s),c=(0,a.useCallback)(()=>{n()},[n]),d=(0,a.useCallback)(async()=>{r(x.$8,{permissionsError:t}),await(0,N.mR)(e),o(s)},[e,s,o,t,r]);return(0,a.useEffect)(()=>{!async function(){t?.data?.skipModal&&t?.data?.scopes?.length&&await d()}()},[d,t]),t?t?.data?.scopes?.length?t?.data?.skipModal||i&&t?.data?.scopes.every(e=>i.includes(e))?null:(0,h.jsx)(M.A,{children:(0,h.jsx)(S.A,{title:(0,g.__)("Additional Permissions Required","google-site-kit"),subtitle:t.message,confirmButton:(0,g.__)("Proceed","google-site-kit"),handleConfirm:d,handleCancel:c,onClose:c,dialogActive:!0,medium:!0})}):(globalThis.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",t),null):null};const T=function PermissionsModal(){return(0,l.useSelect)(e=>e(x.oR).isAuthenticated())?(0,h.jsx)(C,{}):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,N.P9)(t),s(!0)})()},[t,i]),i?e:null};var R=i(84895),L=i(86582);function Root({children:e,registry:t,viewContext:i=null}){const o=s.D,[r]=(0,a.useState)({key:"Root",value:!0});return(0,h.jsx)(a.StrictMode,{children:(0,h.jsx)(j.Ay,{value:r,children:(0,h.jsx)(l.RegistryProvider,{value:t,children:(0,h.jsx)(v,{value:R.t,children:(0,h.jsx)(u.Kq,{value:i,children:(0,h.jsx)(n.A,{theme:o(),children:(0,h.jsxs)(_,{children:[(0,h.jsxs)(D,{children:[e,i&&(0,h.jsx)(FeatureTours,{})]}),(0,L.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),n=i.n(s),o=i(63696),r=i(73198),a=i(62954),l=i(62540);function SelectionPanelError({error:e,noPrefix:t=!0,skipRetryMessage:i=!0}){const s=(0,o.useRef)();return(0,o.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:n().shape({message:n().string}),noPrefix:n().bool,skipRetryMessage:n().bool}},68329(e,t,i){i.d(t,{A:()=>a});var s=i(63696),n=i(37325),o=i(62540);const r=(0,s.forwardRef)((e,t)=>(0,o.jsx)(n.A,{className:"googlesitekit-notice--square googlesitekit-notice--side-panel",...e,ref:t})),a=r;r.propTypes={...n.A.propTypes}},15650(e,t,i){i.d(t,{kA:()=>SelectionPanelContent,gy:()=>SelectionPanelFooter,W4:()=>SelectionPanelHeader,y3:()=>SelectionPanelItem,DW:()=>SelectionPanelItems,Ay:()=>S});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(4544),l=i.n(a),c=i(21795),g=i(78174),d=i(63696),u=i(53328),p=i(94656),m=i(62540);function SideSheet({className:e,children:t,isOpen:i,isLoading:s,onOpen:o=()=>{},closeSheet:r=()=>{},focusTrapOptions:a={}}){const h=(0,d.useRef)(),[_,f]=(0,d.useState)(0);return(0,d.useEffect)(()=>{i?(f(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}()),o(),document.body.classList.add("googlesitekit-side-sheet-scroll-lock")):(f(0),document.body.classList.remove("googlesitekit-side-sheet-scroll-lock"))},[i,o]),(0,c.A)(h,function(e){e.target.closest?.(".googlesitekit-tooltip-popper")||r()}),(0,g.A)(e=>i&&u._f===e.keyCode,r),(0,m.jsxs)(p.A,{children:[(0,m.jsx)(l(),{active:!!i&&!s,focusTrapOptions:{fallbackFocus:"body",allowOutsideClick:function(e){return!!e.target.closest?.(".googlesitekit-tooltip-popper")},...a},children:(0,m.jsx)("section",{ref:h,className:n()("googlesitekit-side-sheet",e,{"googlesitekit-side-sheet--open":i}),role:"dialog","aria-modal":"true","aria-hidden":!i,tabIndex:"0",style:{"--googlesitekit-side-sheet-top":`${_}px`},children:t})}),i&&(0,m.jsx)("span",{className:"googlesitekit-side-sheet-overlay"})]})}function SelectionPanel({children:e,isOpen:t,isLoading:i,onOpen:s,closePanel:o,className:r}){const a=r?.split(/\s+/).map(e=>`.${e}`).join(""),l=a?`${a} .googlesitekit-selection-panel-item .googlesitekit-selection-box input`:".googlesitekit-selection-panel-item .googlesitekit-selection-box input";return(0,m.jsx)(SideSheet,{className:n()("googlesitekit-selection-panel",r),isOpen:t,isLoading:i,onOpen:s,closeSheet:o,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),_=i(33052),f=i(72545);function SelectionPanelHeader({children:e,title:t,onCloseClick:i}){return(0,m.jsxs)("header",{className:"googlesitekit-selection-panel-header",children:[(0,m.jsxs)("div",{className:"googlesitekit-selection-panel-header__row",children:[(0,m.jsx)(_.A,{as:"h3",size:"small",type:"headline",children:t}),(0,m.jsx)(h.A,{className:"googlesitekit-selection-panel-header__close",onClick:i,linkButton:!0,children:(0,m.jsx)(f.A,{width:"15",height:"15"})})]}),e]})}SelectionPanelHeader.propTypes={children:r().node,title:r().string,onCloseClick:r().func};var k=i(82871),y=i(5855),v=i(49383);function SelectionBox({badge:e,checked:t,children:i,disabled:s,id:o,onChange:r,title:a,value:l}){return(0,m.jsx)("div",{className:n()("googlesitekit-selection-box",{"googlesitekit-selection-box--disabled":s}),children:(0,m.jsx)(v.Checkbox,{checked:t,description:i,disabled:s,id:o,name:o,onChange:r,value:l,badge:e,children:a})})}function SelectionPanelItem({children:e,id:t,slug:i,title:s,description:n,isItemSelected:o,isItemDisabled:r,onCheckboxChange:a,subtitle:l,suffix:c,badge:g,isNewlyDetected:d}){return(0,m.jsxs)("div",{className:"googlesitekit-selection-panel-item",children:[(0,m.jsxs)(SelectionBox,{badge:g,checked:o,disabled:r,id:t,onChange:a,title:s,value:i,children:[l&&(0,m.jsx)("span",{className:"googlesitekit-selection-panel-item__subtitle",children:l}),n,e]}),d&&(0,m.jsx)(y.A,{label:(0,k.__)("New","google-site-kit")}),c&&(0,m.jsx)("span",{className:"googlesitekit-selection-panel-item__suffix",children:c})]})}function SelectionPanelItems({currentSelectionTitle:e=(0,k.__)("Current selection","google-site-kit"),availableItemsTitle:t=(0,k.__)("Additional items","google-site-kit"),savedItemSlugs:i=[],availableSavedItems:s={},availableUnsavedItems:n={},ItemComponent:o,notice:r}){function a(e){return Object.keys(e).map(t=>(0,m.jsx)(o,{slug:t,savedItemSlugs:i,...e[t]},t))}const l=Object.keys(n).length;return(0,m.jsxs)("div",{className:"googlesitekit-selection-panel-items",children:[0!==i.length&&(0,m.jsxs)(d.Fragment,{children:[(0,m.jsx)("p",{className:"googlesitekit-selection-panel-items__subheading",children:e}),(0,m.jsx)("div",{className:"googlesitekit-selection-panel-items__subsection",children:a(s)}),l>0&&(0,m.jsx)("p",{className:"googlesitekit-selection-panel-items__subheading",children:t})]}),l>0&&(0,m.jsx)("div",{className:"googlesitekit-selection-panel-items__subsection",children:a(n)}),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 A=i(17243),x=i(13606),b=i(50539),I=i(4751),j=i(99893),M=i(13047);function SelectionPanelFooter({savedItemSlugs:e=[],selectedItemSlugs:t=[],saveSettings:i=()=>{},minSelectedItemCount:s=0,maxSelectedItemCount:n=0,isBusy:o,onSaveSuccess:r=()=>{},onCancel:a=()=>{},isOpen:l,closePanel:c=()=>{}}){const[g,u]=(0,d.useState)(null),[p,h]=(0,d.useState)(!1),_=(0,b.useSelect)(e=>e(j.K9).isFetchingSyncAvailableAudiences()),f=(0,d.useMemo)(()=>!(0,A.isEqual)((0,M.N9)(t),(0,M.N9)(e)),[e,t]),y=e?.length>0&&f?(0,k.__)("Apply changes","google-site-kit"):(0,k.__)("Save selection","google-site-kit"),S=(0,d.useCallback)(async()=>{const{error:e}=await i(t);e||(r(),c(),u(y),h(!0))},[i,t,r,c,y]),N=(0,d.useCallback)(()=>{c(),a()},[c,a]),[E,w]=(0,d.useState)(null);(0,d.useEffect)(()=>{null!==E&&E!==l&&l&&(u(null),h(!1)),w(l)},[l,E]);const C=t?.length||0,T=_?(0,m.jsx)(I.A,{width:"89px",height:"20px"}):(0,m.jsx)("p",{className:"googlesitekit-selection-panel-footer__item-count",children:(0,x.A)((0,k.sprintf)(/* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */ /* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */ (0,k.__)("%1$d selected (up to %2$d)","google-site-kit"),C,n),{MaxCount:(0,m.jsx)("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})})});return(0,m.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,m.jsxs)("div",{className:"googlesitekit-selection-panel-footer__content",children:[T,(0,m.jsxs)("div",{className:"googlesitekit-selection-panel-footer__actions",children:[(0,m.jsx)(v.Button,{onClick:N,disabled:o,tertiary:!0,children:(0,k.__)("Cancel","google-site-kit")}),(0,m.jsx)(v.SpinnerButton,{onClick:S,isSaving:o,disabled:Cn||o||!l&&p,children:g||y})]})]})})}function SelectionPanelContent({children:e,className:t}){return(0,m.jsx)("div",{className:n()("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 S=SelectionPanel},62457(e,t,i){i.d(t,{A:()=>r});var s=i(62688),n=i.n(s),o=i(62540);function Spinner({isSaving:e,style:t={}}){return(0,o.jsx)("span",{className:"spinner",style:{display:e?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible",...t}})}Spinner.propTypes={isSaving:n().bool,style:n().object};const r=Spinner},83202(e,t,i){i.d(t,{A:()=>TourTooltip});var s=i(28056),n=i.n(s),o=i(4452),r=i.n(o),a=i(62688),l=i.n(a),c=i(82871),g=i(49383),d=i(30805);var u=i(72545),p=i(33052),m=i(62540);function TourTooltip({backProps:e,closeProps:t,index:i,primaryProps:o,size:a,step:l,tooltipProps:h}){const _=(0,d.i)("setupFlowRefresh"),f=a>1?function(e){return new Array(e??0).fill().map((e,t)=>t)}(a):[];function k(e){return r()("googlesitekit-tooltip-indicator",{active:e===i})}const y=_?10:14;return(0,m.jsx)("div",{className:r()("googlesitekit-tour-tooltip",l.className,{"googlesitekit-tour-tooltip--no-title":!l.title,"googlesitekit-tour-tooltip--setupFlowRefresh":_}),...h,children:(0,m.jsxs)(n(),{className:"googlesitekit-tooltip-card",children:[(0,m.jsxs)("div",{className:"googlesitekit-tooltip-body",children:[l.title&&(0,m.jsx)(p.A,{as:"h2",className:"googlesitekit-tooltip-title",size:"medium",type:"title",children:l.title}),(0,m.jsx)("div",{className:"googlesitekit-tooltip-content",children:l.content})]}),(0,m.jsxs)(s.CardActions,{className:"googlesitekit-tooltip-actions",children:[!_&&(0,m.jsx)("ul",{className:"googlesitekit-tooltip-indicators",children:f.map(e=>(0,m.jsx)("li",{className:k(e)},`indicator-${e}`))}),_&&(0,m.jsx)("p",{className:"googlesitekit-tooltip-steps",children:a>1&&`${i+1} / ${a}`}),(0,m.jsxs)("div",{className:"googlesitekit-tooltip-buttons",children:[0!==i&&(0,m.jsx)(g.Button,{className:"googlesitekit-tooltip-button",text:!_,tertiary:_,...e,children:e.title}),l.cta,o.title&&(0,m.jsx)(g.Button,{className:r()("googlesitekit-tooltip-button",{"googlesitekit-tooltip-button--primary":_}),text:!_,...o,children:o.title})]})]}),(0,m.jsx)(g.Button,{className:"googlesitekit-tooltip-close",icon:(0,m.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:()=>k,ei:()=>v});var s=i(62688),n=i.n(s),o=i(36703),r=i(15844),a=i(82871),l=i(50539),c=i(84895),g=i(7972),d=i(97345),u=i(97513),p=i(62659),m=i(65054),h=i(83202),_=i(62540);const f=(0,c.G)("setupFlowRefresh"),k={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:f?"rgba(0, 0, 0, 0.25)":"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:f?"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")},v={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)"}}},A={disableBeacon:!0,isFixed:!0,placement:"auto"},x={placement:"top",offset:0},b="feature_tooltip_view",I="feature_tooltip_advance",j="feature_tooltip_return",M="feature_tooltip_dismiss",S="feature_tooltip_complete";function TourTooltips({steps:e,tourID:t,gaEventCategory:i,isRepeatable:s,callback:n}){const a=`${t}-step`,c=`${t}-run`,{setValue:N}=(0,l.useDispatch)(g.nX),{dismissTour:E,receiveCurrentTour:w}=(0,l.useDispatch)(d.oR),C=(0,l.useRegistry)(),T=(0,p.A)(),D=(0,u.dv)(),R=(0,l.useSelect)(e=>e(g.nX).getValue(a)||0),L=(0,l.useSelect)(e=>{const i=s||!1===e(d.oR).isTourDismissed(t);return e(g.nX).getValue(c)&&i});function z(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}`,z(R)),N(c,!0)});const O=e.map(e=>e.isResponsive&&D===u.mp?{...A,...e,...x,floaterProps:{...e.floaterProps,target:e.target}}:{...A,...e}),P=f?{...v,styles:{...v.styles,floater:{filter:"drop-shadow(rgba(0, 0, 0, 0.25) 0px 4px 16px)"}}}:v;return(0,_.jsx)(o.Ay,{callback:function(r){!function({index:e,action:t,lifecycle:s,size:n,status:r,type:a}){const l=e+1,c="function"==typeof i?i(T):i;a===o.qY.TOOLTIP&&s===o.VD.TOOLTIP?(0,m.sx)(c,b,l):t===o.kl.CLOSE&&s===o.VD.COMPLETE?(0,m.sx)(c,M,l):t===o.kl.NEXT&&r===o.XQ.FINISHED&&a===o.qY.TOUR_END&&n===l&&(0,m.sx)(c,S,l),s===o.VD.COMPLETE&&r!==o.XQ.FINISHED&&(t===o.kl.PREV&&(0,m.sx)(c,j,l),t===o.kl.NEXT&&(0,m.sx)(c,I,l))}(r);const{action:l,index:g,status:d,step:p,type:h}=r,_=l===o.kl.CLOSE,f=!_&&[o.qY.STEP_AFTER,o.qY.TARGET_NOT_FOUND].includes(h),k=[o.XQ.FINISHED,o.XQ.SKIPPED].includes(d),y=_&&h===o.qY.STEP_AFTER,v=k||y;o.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:n}=t.getBoundingClientRect(),{height:o}=i.getBoundingClientRect(),r=s-o-60+window.scrollY;if(r>=0)window.scrollTo({top:r});else{const e=n-window.innerHeight+o+60+window.scrollY;window.scrollTo({top:e})}}(p),f?function(t,i){const s=t+(i===o.kl.PREV?-1:1);globalThis.document.body.classList.remove(z(t)),e[s]&&globalThis.document.body.classList.add(z(s)),N(a,s)}(g,l):v&&(globalThis.document.body.classList.remove("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),e[R]&&globalThis.document.body.classList.remove(z(R)),s?(N(c,!1),N(a,null),w(null)):E(t)),n&&n(r,C)},floaterProps:P,locale:y,run:L,stepIndex:R,steps:O,styles:k,tooltipComponent:h.A,showProgress:!f,continuous:!0,disableOverlayClose:!0,disableScrolling:!0})}TourTooltips.propTypes={steps:n().arrayOf(n().object).isRequired,tourID:n().string.isRequired,gaEventCategory:n().oneOfType([n().string,n().func]).isRequired,isRepeatable:n().bool,callback:n().func}},83880(e,t,i){i.d(t,{A:()=>c});var s=i(62688),n=i.n(s),o=i(97513),r=i(8513),a=i(33052),l=i(62540);function c({type:e=r.SZ,size:t,children:i,...s}){const n=(0,o.dv)();return(0,l.jsx)(a.A,{as:"p",type:e,size:t||(n===o.mp?r.Kk:r.Yw),...s,children:i})}c.propTypes={type:n().oneOf(r.tT),size:n().oneOf(r.oJ)}},8513(e,t,i){i.d(t,{Kk:()=>r,SZ:()=>s,Yw:()=>a,oJ:()=>l,s7:()=>n,tT:()=>o});const s="body",n="label",o=[s,"display","headline",n,"title"],r="small",a="medium",l=[r,a,"large"]},33052(e,t,i){i.d(t,{A:()=>Typography});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(8513),l=i(62540);function Typography({className:e,type:t,size:i,as:s="span",children:o,...r}){return(0,l.jsx)(s,{className:n()("googlesitekit-typography",e,{[`googlesitekit-typography--${t}`]:t&&a.tT.includes(t),[`googlesitekit-typography--${i}`]:i&&a.oJ.includes(i)}),...r,children:o})}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),n=i.n(s),o=i(62688),r=i.n(o),a=i(62540);function VisuallyHidden({className:e,children:t,...i}){return t?(0,a.jsx)("span",{...i,className:n()("screen-reader-text",e),children:t}):null}VisuallyHidden.propTypes={className:r().string,children:r().node},VisuallyHidden.defaultProps={className:""};const l=VisuallyHidden},11514(e,t,i){i.d(t,{X:()=>s});const s="consent-mode-setup-cta-widget"},338(e,t,i){i.d(t,{A:()=>UserSettingsSelectionPanel});var s=i(81276),n=i(63696),o=i(82871),r=i(50539),a=i(76729),l=i(3749),c=i(15650),g=i(7972),d=i(97345),u=i(62659),p=i(13047),m=i(62688),h=i.n(m),_=i(4452),f=i.n(_),k=i(4751),y=i(82218),v=i(33052),A=i(8513),x=i(29785),b=i(97513),I=i(62540);function FrequencySelector({isUserSubscribed:e,isLoading:t}){const i=(0,b.dv)()===b.mp,s=(0,r.useSelect)(e=>e(x.O4).isEmailReportingEnabled()),a=(0,n.useMemo)(()=>[(0,o._x)("Sunday","day name","google-site-kit"),(0,o._x)("Monday","day name","google-site-kit"),(0,o._x)("Tuesday","day name","google-site-kit"),(0,o._x)("Wednesday","day name","google-site-kit"),(0,o._x)("Thursday","day name","google-site-kit"),(0,o._x)("Friday","day name","google-site-kit"),(0,o._x)("Saturday","day name","google-site-kit")],[]);const l=(0,r.useSelect)(e=>e(x.O4).getStartOfWeek()),c=(0,r.useSelect)(e=>e(d.oR).getEmailReportingFrequency()),g=(0,r.useSelect)(e=>e(d.oR).getEmailReportingSavedFrequency()),{setEmailReportingFrequency:u}=(0,r.useDispatch)(d.oR),p=(0,o.sprintf)(/* translators: %s: localized day-of-week name (e.g. Monday). */ /* translators: %s: localized day-of-week name (e.g. Monday). */ (0,o.__)("Sent every %s","google-site-kit"),function(e){const t=Number.isInteger(e)&&e>=0&&e<=6?e:1;return a[t]}(l)),m={weekly:{label:(0,o.__)("Weekly","google-site-kit"),period:(0,o.__)("Last 7 days","google-site-kit"),description:p},monthly:{label:(0,o.__)("Monthly","google-site-kit"),period:(0,o.__)("Last month","google-site-kit"),description:(0,o.__)("Sent on the 1st of each month","google-site-kit")},quarterly:{label:(0,o.__)("Quarterly","google-site-kit"),period:(0,o.__)("Last quarter","google-site-kit"),description:(0,o.__)("Sent on the 1st of each quarter","google-site-kit")}};return t?(0,I.jsxs)(n.Fragment,{children:[(0,I.jsx)("br",{}),(0,I.jsx)(k.A,{width:"20%",height:"16px"}),(0,I.jsx)("br",{}),(0,I.jsx)("div",{className:"googlesitekit-frequency-selector",children:(0,I.jsx)(y.A,{width:"100%",height:"184px",count:3})})]}):!1===s?null:(0,I.jsxs)(n.Fragment,{children:[(0,I.jsx)(v.A,{className:"googlesitekit-frequency-selector-title",type:"label",size:"small",as:"h3",children:(0,o.__)("Frequency","google-site-kit")}),e&&g&&!i&&(0,I.jsx)("div",{className:"googlesitekit-frequency-selector__badge-row",children:d.lV.map(e=>(0,I.jsx)("div",{className:"googlesitekit-frequency-selector__badge-cell",children:e===g&&(0,I.jsx)("div",{className:"googlesitekit-frequency-selector__current-subscription",children:(0,I.jsx)(v.A,{type:A.SZ,size:A.Kk,children:(0,o.__)("Current subscription","google-site-kit")})},e)},e))}),(0,I.jsx)("div",{className:"googlesitekit-frequency-selector",role:"radiogroup","aria-label":(0,o.__)("Frequency","google-site-kit"),children:d.lV.map(t=>{const s=c===t,{label:n,period:r,description:a}=m[t]||{};return(0,I.jsxs)("div",{className:f()("googlesitekit-frequency-selector__card",{"googlesitekit-frequency-selector__card--selected":s}),role:"radio","aria-checked":s,tabIndex:0,onClick:()=>u(t),onKeyDown:e=>function(e,t){" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||(e.preventDefault(),u(t))}(e,t),children:[e&&g&&i&&t===g&&(0,I.jsx)("div",{className:f()("googlesitekit-frequency-selector__current-subscription",{"googlesitekit-frequency-selector__current-subscription--selected":s}),children:(0,I.jsx)(v.A,{type:A.SZ,size:A.Kk,children:(0,o.__)("Current subscription","google-site-kit")})}),(0,I.jsxs)("div",{className:"googlesitekit-frequency-selector__content",children:[(0,I.jsx)("div",{className:"googlesitekit-frequency-selector__label",children:(0,I.jsx)(v.A,{type:"label",size:"large",children:n})}),(0,I.jsxs)("div",{className:"googlesitekit-frequency-selector__period-description",children:[(0,I.jsx)("div",{className:"googlesitekit-frequency-selector__period",children:(0,I.jsx)(v.A,{type:"body",size:"small",children:r})}),(0,I.jsx)("div",{className:"googlesitekit-frequency-selector__description",children:(0,I.jsx)(v.A,{type:"body",size:"small",children:a})})]})]})]},t)})})]})}FrequencySelector.propTypes={isUserSubscribed:h().bool,isLoading:h().bool};var j=i(13606),M=i(25804),S=i(38432),N=i(7076),E=i(52684),w=i(55989),C=i(72545);function InviteSearchInput({value:e="",onChange:t}){const i=(0,E.A)(InviteSearchInput,"InviteSearchInput"),s=(0,n.useCallback)(e=>t(e.target.value),[t]),r=(0,n.useCallback)(()=>{t("")},[t]);return(0,I.jsxs)("div",{className:"googlesitekit-invite-search-input",children:[(0,I.jsx)(w.A,{children:(0,I.jsx)("label",{htmlFor:i,children:(0,o.__)("Search user name, role, or email","google-site-kit")})}),(0,I.jsx)("input",{id:i,type:"text",className:"googlesitekit-invite-search-input__input",placeholder:(0,o.__)("Search user name, role, or email","google-site-kit"),value:e,onChange:s}),e&&(0,I.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,o.__)("Clear search","google-site-kit"),children:(0,I.jsx)(C.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:g}=e,{inviteUser:d}=(0,r.useDispatch)(x.O4),m=(0,r.useSelect)(e=>e(x.O4).isInvitingUser(a)),h=(0,n.useCallback)(async()=>{(0,p.sx)(`${s}_email_reports_user_settings-sidebar`,"send_invite");const{error:e}=await d(a);i(a,e?{status:"error",message:e.message}:{status:"success"})},[s,a,d,i]);return(0,I.jsxs)("div",{className:"googlesitekit-invite-user-row",children:[(0,I.jsxs)("div",{className:"googlesitekit-invite-user-row__info",children:[(0,I.jsxs)("div",{className:"googlesitekit-invite-user-row__name",children:[l,(0,I.jsxs)("span",{className:"googlesitekit-invite-user-row__role",children:["(",g,")"]})]}),(0,I.jsx)("div",{className:"googlesitekit-invite-user-row__email",children:c})]}),(0,I.jsx)("div",{className:"googlesitekit-invite-user-row__action",children:"success"===t?.status||e.invited?(0,I.jsxs)("span",{className:"googlesitekit-invite-user-row__success",children:[(0,o.__)("Invitation sent","google-site-kit"),(0,I.jsx)(R.A,{width:"14",height:"14"})]}):"error"===t?.status?(0,I.jsx)("span",{className:"googlesitekit-invite-user-row__error",children:(0,j.A)((0,o.__)("Failed to send invite. Retry","google-site-kit"),{RetryLink:(0,I.jsx)(S.A,{"aria-label":(0,o.__)("Retry sending email subscription invite","google-site-kit"),onClick:h})})}):(0,I.jsx)(T.Button,{onClick:h,disabled:m,trailingIcon:(0,I.jsx)(D.A,{width:"18",height:"18"}),tertiary:!0,children:m?(0,o.__)("Sending…","google-site-kit"):(0,o.__)("Send invite","google-site-kit")})})]})}function InviteUserSkeletonList({visibleItems:e=3}){return(0,I.jsx)("div",{className:"googlesitekit-invite-user-list",children:Array.from({length:e}).map((e,t)=>(0,I.jsxs)("div",{className:"googlesitekit-invite-user-row googlesitekit-invite-user-row--loading",children:[(0,I.jsxs)("div",{className:"googlesitekit-invite-user-row__info",children:[(0,I.jsx)(k.A,{width:"120px",height:"16px"}),(0,I.jsx)(k.A,{width:"180px",height:"12px"})]}),(0,I.jsx)("div",{className:"googlesitekit-invite-user-row__action",children:(0,I.jsx)(k.A,{width:"90px",height:"32px",shape:"square"})})]},t))})}function EmptyMessage({text:e}){return(0,I.jsx)("div",{className:"googlesitekit-invite-user-list__empty",children:e})}function InviteUserList({users:e,searchTerm:t="",inviteResults:i={},onInviteResult:s,isLoading:n=!1}){return n?(0,I.jsx)(InviteUserSkeletonList,{visibleItems:3}):0===e.length?t?(0,I.jsx)(EmptyMessage,{text:(0,o.__)("No users match your search.","google-site-kit")}):(0,I.jsx)(EmptyMessage,{text:(0,o.__)("No users are eligible to receive invitations.","google-site-kit")}):(0,I.jsx)("div",{className:"googlesitekit-invite-user-list",children:e.map(e=>(0,I.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(d.oR).hasCapability(d.HD)),t=(0,r.useSelect)(e=>e(g.nX).getValue(a.Q)),[i,s]=(0,n.useState)(""),[l,c]=(0,n.useState)(""),[u,p]=(0,n.useState)({}),[m,h]=(0,n.useState)(t),_=(0,N.d)(c,300);(0,n.useEffect)(()=>{_(i)},[i,_]),(0,n.useEffect)(()=>{t&&h(!0)},[t]);const f=(0,r.useInViewSelect)(e=>m?e(x.O4).getEligibleSubscribers({search:l}):null,[l,m]),k=(0,r.useInViewSelect)(e=>m?e(x.O4).getEligibleSubscribers({search:""}):null,[m]),y=(0,r.useInViewSelect)(e=>!!m&&!e(x.O4).hasFinishedResolution("getEligibleSubscribers",[{search:l}]),[l,m]),v=(0,r.useSelect)(e=>e(x.O4).getDocumentationLinkURL("dashboard-sharing")),A=(0,r.useSelect)(e=>e(x.O4).getDocumentationLinkURL("email-reporting-inviting-others"));(0,n.useEffect)(()=>{e&&t&&(_.cancel(),s(""),c(""),p({}))},[t,e,_]);const b=(0,n.useCallback)((e,t)=>{p(i=>({...i,[e]:t}))},[]);if(!e)return null;const E=f?.users||[],w=(k?.total||0)>6,C=(0,j.A)((0,o.__)("You can only invite users who have access to the dashboard. Use the dashboard sharing feature to grant access. Learn more","google-site-kit"),{sharingLink:(0,I.jsx)(S.A,{href:v,external:!0,hideExternalIndicator:!0}),learnMoreLink:(0,I.jsx)(S.A,{href:A,external:!0,hideExternalIndicator:!0})});return(0,I.jsxs)("div",{className:"googlesitekit-invite-others-to-subscribe",children:[(0,I.jsxs)("div",{className:"googlesitekit-invite-others-to-subscribe__header",children:[(0,I.jsx)("span",{className:"googlesitekit-invite-others-to-subscribe__title",children:(0,o.__)("Invite others to subscribe","google-site-kit")}),(0,I.jsx)(M.A,{title:C})]}),w&&(0,I.jsx)(InviteSearchInput,{value:i,onChange:s}),(0,I.jsx)(InviteUserList,{users:E,searchTerm:l,inviteResults:u,onInviteResult:b,isLoading:y})]})}var L=i(75971),z=i(11763);const O="subscribe",P="unsubscribe",B="update_settings";function SubscribeActions({isSubscribed:e,onSubscribe:t,onUnsubscribe:i,updateSettings:s,isSavingSettings:r,isLoading:a}){const[l,c]=(0,n.useState)("");function g(e){switch(c(e),e){case B:s();break;case O:t();break;case P:i()}}return!1===(0,L.WM)(e=>e(x.O4).isEmailReportingEnabled())?null:(0,I.jsxs)("div",{className:"googlesitekit-selection-panel-subscribe-actions",children:[a&&(0,I.jsx)(y.A,{width:"140px",height:"42px",count:2}),!a&&e&&(0,I.jsx)(z.A,{onClick:()=>g(P),isSaving:r&&l===P,disabled:r,tertiary:!0,children:(0,o.__)("Unsubscribe","google-site-kit")}),!a&&(0,I.jsx)(z.A,{onClick:()=>g(e?B:O),isSaving:r&&l!==P,disabled:r,children:e?(0,o.__)("Update Settings","google-site-kit"):(0,o.__)("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 U=i(83880),G=i(88273),W=i(4124),V=i(20697),F=i(70301);function Header({closePanel:e,isLoading:t}){const i=(0,u.A)(),s=(0,W.A)(),a=(0,r.useSelect)(e=>e(x.O4).isEmailReportingEnabled()),l=(0,r.useSelect)(e=>e(x.O4).getSiteKitAdminSettingsURL({scrollTo:"email-reporting"})),{navigateTo:g}=(0,r.useDispatch)(F.M),d=(0,n.useCallback)(()=>{V.KK===i&&e(),g(l)},[l,g,e,i]);return(0,I.jsxs)(c.W4,{title:(0,o.__)("Email reports subscription","google-site-kit"),onCloseClick:e,children:[t&&(0,I.jsxs)(n.Fragment,{children:[(0,I.jsx)(k.A,{width:"100%",height:"16px"}),(0,I.jsx)("br",{})]}),!t&&!s&&a&&(0,I.jsx)(U.A,{children:(0,j.A)((0,o.__)("You can always deactivate this feature in Settings","google-site-kit"),{link:(0,I.jsx)(S.A,{onClick:d,secondary:!0})})})]})}Header.propTypes={closePanel:h().func.isRequired,isLoading:h().bool};var H=i(91117),Y=i(63737),q=i(37325),Z=i(68761),Q=i(30289);const K="email_reports_user_settings_reports_disabled_notice",X=(0,Q.A)(q.A);function EmailReportingDisabledNotice(){const e=(0,r.useSelect)(e=>e(x.O4).isEmailReportingEnabled()),t=(0,W.A)(),i=(0,r.useSelect)(e=>e(x.O4).getSiteKitAdminSettingsURL({scrollTo:"email-reporting"})),s=(0,Z.A)(K),{setValue:c}=(0,Y.A)(g.nX),d=(0,n.useCallback)(()=>{s.confirm(),c(a.Q,!1)},[c,s]);return e||t?null:(0,I.jsx)(X,{type:l.L.WARNING,title:(0,o.__)("Email reports are disabled","google-site-kit"),description:(0,o.__)("This feature was disabled for all users. You can enable email report subscriptions in settings.","google-site-kit"),ctaButton:{label:(0,o.__)("Edit settings","google-site-kit"),href:i,onClick:d},onInView:s.view})}const $=(0,Q.A)(q.A);function EmailReportingDisabledViewOnlyNotice(){const e=(0,r.useSelect)(e=>e(x.O4).isEmailReportingEnabled()),t=(0,W.A)(),i=(0,Z.A)(K);return e||!t?null:(0,I.jsx)($,{type:l.L.WARNING,title:(0,o.__)("Email reports are unavailable","google-site-kit"),description:(0,o.__)("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 ne="email_reports_user_settings_setup_analytics_notice",oe=(0,Q.A)(q.A);function SetupAnalyticsNotice(){const[e,t]=(0,n.useState)(!1),i=(0,Z.A)(ne),s=(0,r.useSelect)(e=>e(x.O4).isEmailReportingEnabled()),a=(0,W.A)(),c=(0,r.useSelect)(e=>e(G.i).isModuleActive(se.L1)),g=(0,r.useSelect)(e=>e(G.i).isModuleConnected(se.L1)),u=(0,r.useSelect)(e=>e(G.i).isModuleDisconnected(se.L1)),p=(0,r.useSelect)(e=>e(d.oR).isItemDismissed(ne)),{dismissItem:m}=(0,r.useDispatch)(d.oR),h=(0,te.A)(se.L1),_=(0,ie.A)(se.L1),f=c?_:h,k=(0,n.useCallback)(()=>{f&&(i.confirm(),t(!0),f())},[f,i]),y=(0,n.useCallback)(async()=>{i.dismiss(),await m(ne)},[m,i]),v=(0,r.useSelect)(e=>e(x.O4).getDocumentationLinkURL("ga4"));if(!s||a||!1!==p||g||u)return null;const A=c?(0,o.__)("Complete setup","google-site-kit"):(0,o.__)("Connect Analytics","google-site-kit");return(0,I.jsx)(oe,{type:l.L.NEW,title:(0,o.__)("Understand how visitors interact with your content","google-site-kit"),description:(0,j.A)((0,o.__)("Get visitor insights in your email report by connecting Analytics. Learn more","google-site-kit"),{a:(0,I.jsx)(ee.A,{id:ne,label:(0,o.__)("Learn more","google-site-kit"),url:v})}),ctaButton:{label:A,inProgress:e,disabled:e,onClick:k},dismissButton:{label:(0,o.__)("Maybe later","google-site-kit"),onClick:y},onInView:i.view})}function Notices({isLoading:e,onGoToSettings:t}){return e?null:(0,I.jsxs)(n.Fragment,{children:[(0,I.jsx)(J.A,{onGoToSettings:t}),(0,I.jsx)(H.A,{}),(0,I.jsx)(SetupAnalyticsNotice,{}),(0,I.jsx)(EmailReportingDisabledNotice,{}),(0,I.jsx)(EmailReportingDisabledViewOnlyNotice,{})]})}Notices.propTypes={isLoading:h().bool,onGoToSettings:h().func};var re=i(68329);function SelectionPanelFooter({notice:e,onNoticeDismiss:t}){return(0,I.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,I.jsx)("div",{className:"googlesitekit-selection-panel-footer__content",children:e?(0,I.jsx)(re.A,{type:e.type,title:e.title,description:e.text,dismissButton:{label:(0,o.__)("Got it","google-site-kit"),onClick:t},hideIcon:!0}):(0,I.jsx)(U.A,{type:"body",size:"small",children:(0,o.__)("All email reports sent are generated by Site Kit using data from your dashboard and sent to your WordPress email, so all your data stays with you","google-site-kit")})})})}function PanelContent({notice:e,isUserSubscribed:t,isSavingSettings:i,onSaveCallback:s,onSubscribe:a,onUnsubscribe:l,onNoticeDismiss:g,closePanel:u}){const p=(0,r.useSelect)(e=>e(d.oR).getUser()),m=p?.wpEmail,h=(0,W.A)(),_=(0,r.useSelect)(e=>e(x.O4).isEmailReportingEnabled()),f=(0,r.useSelect)(e=>h?null:e(x.O4).getEmailReportingErrors()),y=[_,(0,r.useSelect)(e=>e(d.oR).getEmailReportingSettings()),f,(0,r.useSelect)(e=>e(G.i).getModules())].some(e=>void 0===e);return(0,I.jsxs)(n.Fragment,{children:[(0,I.jsx)(Header,{closePanel:u,isLoading:y}),(0,I.jsxs)(c.kA,{className:"googlesitekit-user-settings-selection__panel-content",children:[(0,I.jsx)(Notices,{isLoading:y,onGoToSettings:u}),(0,I.jsxs)("div",{className:"googlesitekit-user-settings-selection__panel-description",children:[y&&(0,I.jsxs)(n.Fragment,{children:[(0,I.jsx)(k.A,{width:"100%",height:"16px"}),(0,I.jsx)(k.A,{width:"60%",height:"16px"})]}),!y&&_&&(0,I.jsxs)(U.A,{type:"body",size:"small",children:[(0,o.__)("You’ll receive the report to your WordPress user email","google-site-kit"),m&&(0,I.jsx)(v.A,{type:"body",size:"medium",children:m})]})]}),(0,I.jsx)(FrequencySelector,{isUserSubscribed:t,isLoading:y}),(0,I.jsx)(SubscribeActions,{onSubscribe:a,onUnsubscribe:l,updateSettings:s,isSubscribed:t,isSavingSettings:i,isLoading:y}),_&&!h&&(0,I.jsx)(InviteOthersToSubscribe,{})]}),_&&(0,I.jsx)(SelectionPanelFooter,{notice:e,onNoticeDismiss:g})]})}function UserSettingsSelectionPanel(){const e=(0,u.A)(),t=(0,r.useSelect)(e=>e(g.nX).getValue(a.Q)),i=(0,s.A)(t),m=(0,n.useCallback)(()=>{(0,p.sx)(`${e}_email_reports_user_settings-sidebar`,"user_settings_sidebar_view")},[e]),h=(0,r.useSelect)(e=>t?e(d.oR).getEmailReportingSettings():{}),_=(0,r.useSelect)(e=>!!t&&e(d.oR).isSavingEmailReportingSettings()),f=(0,r.useSelect)(e=>e(d.oR).getEmailReportingFrequency()),[k,y]=(0,n.useState)(null),{setValue:v}=(0,r.useDispatch)(g.nX),{saveEmailReportingSettings:A,resetEmailReportingSettings:x}=(0,r.useDispatch)(d.oR),b=(0,n.useCallback)(()=>{t&&(setTimeout(()=>{x(),y(null)},310),v(a.Q,!1),(0,p.sx)(`${e}_email_reports_user_settings-sidebar`,"user_settings_sidebar_close"))},[t,x,v,e]),j=(0,n.useCallback)(async()=>{const{error:t}=await A();(0,p.sx)(`${e}_email_reports_user_settings-sidebar`,"update_settings",f),y(t?{type:l.L.ERROR,text:t?.message||(0,o.__)("An error occurred.","google-site-kit")}:{type:l.L.SUCCESS,text:(0,o.__)("You’ve successfully updated frequency settings!","google-site-kit")})},[A,e,f]),M=(0,n.useCallback)(async()=>{const{error:t}=await A({subscribed:!0});(0,p.sx)(`${e}_email_reports_user_settings-sidebar`,"subscribe",f),y(t?{type:l.L.ERROR,text:t?.message||(0,o.__)("An error occurred.","google-site-kit")}:{type:l.L.SUCCESS,title:(0,o.__)("You’ve successfully subscribed to email reports!","google-site-kit"),text:(0,o.__)("Look for a confirmation email in your inbox. If you don’t see it, check your spam folder.","google-site-kit")})},[A,e,f]),S=(0,n.useCallback)(async()=>{const{error:t}=await A({subscribed:!1});(0,p.sx)(`${e}_email_reports_user_settings-sidebar`,"unsubscribe"),y(t?{type:l.L.ERROR,text:t?.message||(0,o.__)("An error occurred.","google-site-kit")}:{type:l.L.INFO_ALT_2,text:(0,o.__)("You’ve unsubscribed from email reports","google-site-kit")})},[A,e]),N=(0,n.useCallback)(()=>y(null),[]);return(0,n.useEffect)(()=>{!i&&t&&v("admin-screen-tooltip",{isTooltipVisible:!1})},[t,i,v]),(0,I.jsx)(c.Ay,{className:"googlesitekit-user-settings-selection-panel googlesitekit-email-reporting-settings",isOpen:!!t,onOpen:m,closePanel:b,children:(0,I.jsx)(PanelContent,{notice:k,isUserSubscribed:h?.subscribed,isSavingSettings:_,onSaveCallback:j,onSubscribe:M,onUnsubscribe:S,onNoticeDismiss:N,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),n=i(82871),o=i(50539),r=i(37325),a=i(3749),l=i(29785),c=i(97345),g=i(88273),d=i(68761),u=i(65929),p=i(4124),m=i(22942),h=i(30289),_=i(62540);const f="email_reports_analytics_disconnected_notice",k=(0,h.A)(r.A);function AnalyticsDisconnectedNotice(){const e=(0,p.A)(),[t,i]=(0,s.useState)(!1),r=(0,d.A)(f),h=(0,o.useSelect)(e=>e(l.O4).isEmailReportingEnabled()),y=(0,o.useSelect)(e=>e(g.i).isModuleConnected(m.L1)),v=(0,o.useSelect)(e=>e(g.i).isModuleDisconnected(m.L1)),A=(0,o.useSelect)(e=>e(c.oR).isItemDismissed(f)),{dismissItem:x}=(0,o.useDispatch)(c.oR),b=(0,u.A)(m.L1),I=(0,s.useCallback)(()=>{i(!0),r.confirm(),b()},[r,b]),j=(0,s.useCallback)(async()=>{r.dismiss(),await x(f)},[x,r]);if(!h||!1!==A||y||!v)return null;let M=(0,n.__)("Email reports won’t include Analytics data and metrics","google-site-kit");return e&&(M=(0,n.__)("Email reports won’t include Analytics data and metrics. To fix the issue contact your administrator.","google-site-kit")),(0,_.jsx)(k,{className:"googlesitekit-email-reporting__admin-settings-notice",type:a.L.WARNING,title:(0,n.__)("Analytics is disconnected","google-site-kit"),description:M,ctaButton:e?void 0:{label:(0,n.__)("Connect Analytics","google-site-kit"),inProgress:t,disabled:t,onClick:I},dismissButton:{label:(0,n.__)("Got it","google-site-kit"),onClick:j},onInView:r.view})}},14183(e,t,i){i.d(t,{A:()=>EmailReportingErrorNotices});var s=i(62688),n=i.n(s),o=i(50539),r=i(82871),a=i(37325),l=i(3749),c=i(75971),g=i(29785),d=i(68761),u=i(30289),p=i(62540);const m=(0,u.A)(a.A);function CronSchedulerErrorNotice(){const e=(0,d.A)("email_reporting_cron_scheduler_error_notice"),t=(0,c.WM)(e=>e(g.O4).getDocumentationLinkURL("email-reporting-scheduler-issues"));return(0,p.jsx)(m,{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 _=(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?.()),n=(0,c.WM)(t=>t(g.O4).getErrorTroubleshootingLinkURL({code:`${e}_insufficient_permissions`})),o=(0,d.A)("email_reports_permissions_error_notice");return(0,p.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: %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:o.view,ctaButton:s?{label:(0,r.__)("Request access","google-site-kit"),href:s,external:!0,hideExternalIndicator:!0,onClick:o.confirm}:null,dismissButton:n?{label:(0,r.__)("Get help","google-site-kit"),onClick:o.dismiss,href:n,external:!0}:null})}const f=(0,u.A)(a.A);function ReportErrorNotice({moduleSlug:e,onGoToSettings:t}){const i=(0,c.WM)(t=>t(h.i).getModule(e)),s=(0,d.A)("email_reports_report_error_notice"),n=(0,c.WM)(t=>t(g.O4).getModuleSettingsURL(e)),o=(0,c.WM)(e=>e(g.O4).getDocumentationLinkURL("email-reporting-module-issues"));return(0,p.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: %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:n?{label:(0,r.__)("Go to settings","google-site-kit"),href:n,onClick:()=>{t?.(),s.confirm()}}:null,dismissButton:{label:(0,r.__)("Get help","google-site-kit"),onClick:s.dismiss,href:o,external:!0}})}const k=(0,u.A)(a.A);function SendingErrorNotice(){const e=(0,d.A)("email_reports_sending_error_notice"),t=(0,c.WM)(e=>e(g.O4).getDocumentationLinkURL("email-reporting-deliverability-issues"));return(0,p.jsx)(k,{className:"googlesitekit-email-reporting__admin-settings-notice",type:l.L.ERROR,title:(0,r.__)("Email reports are failing to send","google-site-kit"),description:(0,r.__)("We were unable to deliver your report, 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,d.A)("email_reports_server_error_notice"),t=(0,c.WM)(e=>e(g.O4).getDocumentationLinkURL("email-reporting-server-issues"));return(0,p.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 v=i(4124);function EmailReportingErrorNotices({onGoToSettings:e}){const t=(0,v.A)(),i=(0,o.useSelect)(e=>e(g.O4).isEmailReportingEnabled()),s=(0,o.useSelect)(e=>e(g.O4).getEmailReportingErrors()),n=(0,o.useSelect)(e=>e(g.O4).getLatestEmailReportingError());if(!i||t||0===s?.length||void 0===n)return null;switch(n?.category_id){case"permissions_error":return(0,p.jsx)(PermissionsErrorNotice,{moduleSlug:n.module_slug});case"report_error":return(0,p.jsx)(ReportErrorNotice,{moduleSlug:n.module_slug,onGoToSettings:e});case"sending_error":return(0,p.jsx)(SendingErrorNotice,{});case"cron_scheduler_error":return(0,p.jsx)(CronSchedulerErrorNotice,{});default:return(0,p.jsx)(ServerErrorNotice,{})}}EmailReportingErrorNotices.propTypes={onGoToSettings:n().func}},78307(e,t,i){i.d(t,{A:()=>HelpMenu});var s,n,o=i(4452),r=i.n(o),a=i(62688),l=i.n(a),c=i(21795),g=i(63696),d=i(82871),u=i(53328),p=i(49383),m=i(50539),h=i(40194),_=i(29785),f=i(97345),k=i(88273),y=i(30805),v=i(12896),A=i(62659),x=i(58718),b=i(22942),I=i(99893),j=i(49481),M=i(13047);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=g.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M15.244 10.59a2.156 2.156 0 0 1 2.95-.755 2.145 2.145 0 0 1 .76 2.935l-3.039 5.022-.004.006a2.153 2.153 0 0 1-2.95.756v-.001a2.144 2.144 0 0 1-.757-2.94v-.002l3.036-5.014zM8.854 5.635a2.157 2.157 0 0 1 2.95-.756 2.144 2.144 0 0 1 .756 2.94l-.003.005-5.8 9.977a2.153 2.153 0 0 1-2.95.756 2.145 2.145 0 0 1-.757-2.94l.003-.007z"})),n||(n=g.createElement("path",{fill:"currentColor",stroke:"currentColor",strokeWidth:1.5,d:"M4.887 14.595c1.18 0 2.135.955 2.135 2.13 0 1.176-.954 2.13-2.135 2.13a2.134 2.134 0 0 1-2.137-2.13c0-1.175.955-2.13 2.137-2.13Z"})));var E,w,C;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),E||(E=g.createElement("circle",{cx:12,cy:11,r:8.25,stroke:"currentColor",strokeWidth:1.5})),w||(w=g.createElement("path",{fill:"currentColor",d:"m10 9 7-3-2.953 7.047L7 16z"})),C||(C=g.createElement("circle",{cx:12,cy:11,r:1,fill:"#fff"})));var R,L,z;function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),R||(R=g.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M19 8v11a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7z"})),L||(L=g.createElement("path",{fill:"currentColor",d:"M13.5 9V3L19 9z"})),z||(z=g.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M8.5 11.5h7M8.5 14.5h7M8.5 17.5H13"})));var B,U;function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement("svg",G({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),B||(B=g.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M5 5.75h14c.69 0 1.25.56 1.25 1.25v9.161c0 .69-.56 1.25-1.25 1.25H6.633l-.219.213-2.664 2.597V7c0-.69.56-1.25 1.25-1.25Z"})),U||(U=g.createElement("path",{fill:"currentColor",d:"M11.5 8.5H13v4h-1.5zM11.5 13.5H13V15h-1.5z"})));var V;function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement("svg",F({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),V||(V=g.createElement("path",{fill:"currentColor",d:"M9 16h2v-2H9zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})));var Y,q,Z;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;tg.createElement("svg",Q({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Y||(Y=g.createElement("mask",{id:"support_svg__a",fill:"#fff"},g.createElement("path",{d:"M12 2a9 9 0 0 1 2.128 17.745C10.508 21.823 5 23 5 23c.023-.017 2.69-2.024 3.053-3.911A9 9 0 0 1 3 11a9 9 0 0 1 9-9"}))),q||(q=g.createElement("path",{fill:"currentColor",d:"M12 2V.5zm9.001 9h1.5zm-2.25 5.953 1.125.993zm-1.802 1.566.826 1.252zm-2.3 1.086.441 1.433zm-.521.14-.354-1.458-.207.05-.186.107zM5 23l-.901-1.2-5.441 4.089 6.655-1.422zm3.053-3.911 1.473.284.217-1.128-1.031-.504zm-1.001-.57-.826 1.252zm-1.704-1.457-1.109 1.01zM3 11H1.5zm9-9v1.5a7.5 7.5 0 0 1 7.501 7.5h3C22.501 5.2 17.799.5 12 .5zm9.001 9h-1.5a7.47 7.47 0 0 1-1.875 4.96l1.125.993 1.125.993A10.47 10.47 0 0 0 22.5 11zm-2.25 5.953-1.125-.992a7.6 7.6 0 0 1-1.503 1.305l.826 1.253.826 1.252a10.6 10.6 0 0 0 2.1-1.825zm-1.802 1.566-.826-1.253a7.5 7.5 0 0 1-1.915.905l.441 1.434.441 1.433a10.5 10.5 0 0 0 2.685-1.267zm-2.3 1.086-.44-1.434c-.131.04-.273.077-.434.116l.353 1.458.353 1.458c.19-.046.397-.1.61-.165zm-.521.14-.747-1.3c-1.661.953-3.814 1.728-5.609 2.271a47 47 0 0 1-2.864.767l-.17.039-.04.009-.01.002h-.002L5 23l.314 1.467h.002l.004-.002.015-.003.052-.011.193-.044a49.75 49.75 0 0 0 3.062-.82c1.864-.564 4.275-1.417 6.233-2.541zM5 23l.901 1.2c.041-.032.783-.592 1.576-1.412.735-.76 1.777-2.007 2.049-3.415l-1.473-.284-1.473-.284c-.092.478-.564 1.178-1.26 1.898-.637.659-1.239 1.111-1.221 1.098zm3.053-3.911.659-1.348q-.438-.213-.834-.475l-.826 1.253-.826 1.252q.565.37 1.168.665zm-1.001-.57.826-1.253c-.523-.344-1.001-.753-1.422-1.215l-1.108 1.01-1.109 1.011a10.5 10.5 0 0 0 1.987 1.699zm-1.704-1.457 1.108-1.011A7.47 7.47 0 0 1 4.5 11h-3c0 2.723 1.039 5.207 2.74 7.072zM3 11h1.5A7.5 7.5 0 0 1 12 3.5v-3C6.2.5 1.5 5.2 1.5 11z",mask:"url(#support_svg__a)"})),Z||(Z=g.createElement("path",{fill:"currentColor",d:"M11.796 16q.487 0 .818-.312.332-.31.332-.767 0-.456-.332-.767a1.15 1.15 0 0 0-.818-.312q-.486 0-.817.312a1 1 0 0 0-.332.768q0 .457.332.766.33.312.817.312m.11-8.527q.62 0 1.006.311.387.312.387.788 0 .333-.243.706-.243.374-.685.726-.707.58-1.028 1.069-.32.486-.32.965 0 .31.221.518a.8.8 0 0 0 .574.208q.333 0 .586-.208a.9.9 0 0 0 .32-.56q.066-.332.299-.633.231-.3.762-.778.707-.622.961-1.11T15 8.407q0-1.08-.839-1.743Q13.321 6 11.951 6q-.928 0-1.624.343-.696.342-1.204 1.026a.53.53 0 0 0-.1.498q.078.27.32.456a.8.8 0 0 0 .652.136q.365-.073.608-.385.243-.29.564-.445t.74-.156"})));var X=i(38432),$=i(62540);function HelpMenuLink({children:e,href:t,gaEventLabel:i,onClick:s,icon:n}){const o=(0,A.A)(),r=(0,y.i)("setupFlowRefresh"),a=(0,g.useCallback)(async()=>{s?.(),i&&await(0,M.sx)(`${o}_headerbar_helpmenu`,r?"click_menu_item":"click_outgoing_link",i)},[s,i,o,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:n,external:!0,hideExternalIndicator:!0,children:e})})}HelpMenuLink.propTypes={children:l().node.isRequired,href:l().string,gaEventLabel:l().string,onClick:l().func};const J=HelpMenuLink;function HelpMenu({children:e,showFeatureTour:t=!1}){const[i,s]=(0,g.useState)(!1),n=(0,g.useRef)(),o=(0,A.A)(),a=(0,y.i)("setupFlowRefresh");(0,c.A)(n,()=>s(!1)),(0,v.l)([u._f,u.wn],n,()=>s(!1));const l=(0,m.useSelect)(e=>e(k.i).isModuleActive(x.Py)),S=(0,m.useSelect)(e=>{if(!t||!a)return!1;return e(k.i).isModuleConnected(b.L1)?!1===e(I.K9).isGatheringData():!1===e(j.n).isGatheringData()},[t,a]),E=(0,g.useCallback)(()=>{i||(0,M.sx)(`${o}_headerbar`,"open_helpmenu"),s(!i)},[i,o]),w=(0,g.useCallback)(()=>{s(!1)},[]),C=(0,m.useSelect)(e=>e(_.O4).getDocumentationLinkURL("fix-common-issues")),{triggerOnDemandTour:T}=(0,m.useDispatch)(f.oR),R=(0,h.G)(),L=(0,g.useCallback)(()=>{T(R)},[T,R]),z=[{gaEventLabel:"fix_common_issues",href:C,children:(0,d.__)("Fix common issues","google-site-kit")},{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/",children:(0,d.__)("Read help docs","google-site-kit")},{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/",children:(0,d.__)("Get support","google-site-kit")},...l?[{gaEventLabel:"adsense_help",href:"https://support.google.com/adsense/",children:(0,d.__)("Get help with AdSense","google-site-kit")}]:[]],O=[{gaEventLabel:"browse_documentation",href:"https://sitekit.withgoogle.com/documentation/",icon:(0,$.jsx)(P,{width:24,height:24}),children:(0,d.__)("Browse documentation","google-site-kit")},{gaEventLabel:"get_support",href:"https://wordpress.org/support/plugin/google-site-kit/",icon:(0,$.jsx)(K,{width:24,height:24}),children:(0,d.__)("Get free support","google-site-kit")},...S?[{gaEventLabel:"start_tour",onClick:L,icon:(0,$.jsx)(D,{width:24,height:24}),children:(0,d.__)("Start a feature tour","google-site-kit")}]:[],{gaEventLabel:"send_feedback",href:"https://wordpress.org/support/plugin/google-site-kit/reviews/",icon:(0,$.jsx)(W,{width:24,height:24}),children:(0,d.__)("Send feedback","google-site-kit")},...l?[{gaEventLabel:"get_adsense_help",href:"https://support.google.com/adsense/",icon:(0,$.jsx)(N,{width:24,height:24}),children:(0,d.__)("Get help with AdSense","google-site-kit")}]:[]];return(0,$.jsxs)("div",{ref:n,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,$.jsx)(p.Button,{"aria-controls":"googlesitekit-help-menu","aria-expanded":i,"aria-label":(0,d.__)("Help","google-site-kit"),"aria-haspopup":"menu",className:"googlesitekit-header__dropdown googlesitekit-border-radius-round googlesitekit-button-icon googlesitekit-help-menu__button mdc-button--dropdown",icon:(0,$.jsx)(H,{width:"20",height:"20"}),onClick:E,tooltipEnterDelayInMS:500,text:!0}),(0,$.jsxs)(p.Menu,{className:r()("googlesitekit-width-auto",{"googlesitekit-help-menu":a}),menuOpen:i,id:"googlesitekit-help-menu",onSelected:w,children:[e,(a?O:z).map((e,t)=>(0,$.jsx)(J,{...e},t))]})]})}HelpMenu.propTypes={children:l().node,showFeatureTour:l().bool}},75662(e,t,i){i.d(t,{A:()=>h});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(63696),l=i(44148),c=i(10740),g=i(62540);class LayoutFooter extends a.Component{render(){const{ctaLabel:e,ctaLink:t,footerContent:i}=this.props;return(0,g.jsx)("footer",{className:"googlesitekit-layout__footer",children:(0,g.jsx)(c.xA,{children:(0,g.jsx)(c.fI,{children:(0,g.jsxs)(c.fh,{size:12,children:[t&&e&&(0,g.jsx)(l.A,{className:"googlesitekit-data-block__source",name:e,href:t,external:!0}),i]})})})})}}LayoutFooter.propTypes={ctaLabel:r().string,ctaLink:r().string};const d=LayoutFooter;var u=i(38432),p=i(33052);class LayoutHeader extends a.Component{render(){const{title:e,badge:t,ctaLabel:i,ctaLink:s}=this.props,n=s?{alignMiddle:!0,smSize:4,lgSize:6}:{alignMiddle:!0,smSize:4,mdSize:8,lgSize:12};return(0,g.jsx)("header",{className:"googlesitekit-layout__header",children:(0,g.jsx)(c.xA,{children:(0,g.jsxs)(c.fI,{children:[e&&(0,g.jsx)(c.fh,{...n,children:(0,g.jsxs)(p.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-subheading-1 googlesitekit-layout__header-title",children:[e,t]})}),s&&(0,g.jsx)(c.fh,{smSize:4,lgSize:6,alignMiddle:!0,mdAlignRight:!0,children:(0,g.jsx)(u.A,{href:s,external:!0,children:i})})]})})})}}LayoutHeader.propTypes={title:r().string,badge:r().node,ctaLabel:r().string,ctaLink:r().string},LayoutHeader.defaultProps={title:"",badge:null,ctaLabel:"",ctaLink:""};const m=LayoutHeader;class Layout extends a.Component{render(){const{header:e,footer:t,children:i,title:s,badge:o,headerCTALabel:r,headerCTALink:a,footerCTALabel:l,footerCTALink:c,footerContent:u,className:p,fill:h,relative:_,rounded:f=!1,transparent:k=!1,...y}=this.props;return(0,g.jsxs)("div",{className:n()("googlesitekit-layout",p,{"googlesitekit-layout--fill":h,"googlesitekit-layout--relative":_,"googlesitekit-layout--rounded":f,"googlesitekit-layout--transparent":k}),...y,children:[e&&(0,g.jsx)(m,{title:s,badge:o,ctaLabel:r,ctaLink:a}),i,t&&(0,g.jsx)(d,{ctaLabel:l,ctaLink:c,footerContent:u})]})}}Layout.propTypes={header:r().bool,footer:r().bool,children:r().node.isRequired,title:r().string,badge:r().node,headerCTALabel:r().string,headerCTALink:r().string,footerCTALabel:r().string,footerCTALink:r().string,footerContent:r().node,className:r().string,fill:r().bool,relative:r().bool,rounded:r().bool,transparent:r().bool},Layout.defaultProps={header:!1,footer:!1,title:"",badge:null,headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1};const h=Layout},23955(e,t,i){i.d(t,{A:()=>AdBlockerWarning});var s,n=i(62688),o=i.n(n),r=i(50539),a=i(29785),l=i(88273),c=i(4452),g=i.n(c),d=i(13606),u=i(82871),p=i(38432),m=i(37325),h=i(3749),_=i(63696);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t_.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 14"},e),s||(s=_.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M4.5 1.5H3a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2V9M7 1.5h5v5M5 8.5 11.5 2"})));var y=i(62540);function AdBlockerWarningMessage({className:e,getHelpLink:t="",warningMessage:i=null}){return i?(0,y.jsx)(m.A,{className:g()("googlesitekit-notice--small",e),type:h.L.WARNING,description:(0,d.A)((0,u.sprintf)(/* translators: 1: The warning message. 2: "Get help" text. */ /* translators: 1: The warning message. 2: "Get help" text. */ (0,u.__)("%1$s. %2$s","google-site-kit"),i,(0,u.__)("Get help","google-site-kit")),{Link:(0,y.jsx)(p.A,{href:t,trailingIcon:(0,y.jsx)(k,{width:15,height:15}),external:!0,hideExternalIndicator:!0}),Strong:(0,y.jsx)("strong",{})}),hideIcon:!0}):null}function AdBlockerWarning({moduleSlug:e,className:t}){const i=(0,r.useSelect)(t=>t(l.i).getModuleStoreName(e)),s=(0,r.useSelect)(e=>e(i)?.getAdBlockerWarningMessage()),n=(0,r.useSelect)(t=>t(a.O4).getDocumentationLinkURL(`${e}-ad-blocker-detected`));return(0,y.jsx)(AdBlockerWarningMessage,{className:t,getHelpLink:n,warningMessage:s})}AdBlockerWarningMessage.propTypes={className:o().string,getHelpLink:o().string,warningMessage:o().string},AdBlockerWarning.propTypes={className:o().string,moduleSlug:o().string.isRequired}},12317(e,t,i){i.d(t,{A:()=>d});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(49383),l=i(38432),c=i(33052),g=i(62540);function CTA({title:e,headerText:t,headerContent:i,description:s,ctaLink:o,ctaLabel:r,ctaLinkExternal:d,ctaType:u,error:p,onClick:m,"aria-label":h,children:_}){return(0,g.jsxs)("div",{className:n()("googlesitekit-cta",{"googlesitekit-cta--error":p}),children:[(t||i)&&(0,g.jsxs)("div",{className:"googlesitekit-cta__header",children:[t&&(0,g.jsx)(c.A,{as:"h2",size:"small",type:"label",className:"googlesitekit-cta__header_text",children:t}),i]}),(0,g.jsxs)("div",{className:"googlesitekit-cta__body",children:[e&&(0,g.jsx)(c.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-cta__title",children:e}),s&&"string"==typeof s&&(0,g.jsx)("p",{className:"googlesitekit-cta__description",children:s}),s&&"string"!=typeof s&&(0,g.jsx)("div",{className:"googlesitekit-cta__description",children:s}),r&&"button"===u&&(0,g.jsx)(a.Button,{"aria-label":h,href:o,onClick:m,children:r}),r&&"link"===u&&(0,g.jsx)(l.A,{href:o,onClick:m,"aria-label":h,external:d,hideExternalIndicator:d,arrow:!0,children:r}),_]})]})}CTA.propTypes={title:r().string.isRequired,headerText:r().string,description:r().oneOfType([r().string,r().node]),ctaLink:r().string,ctaLinkExternal:r().bool,ctaLabel:r().string,ctaType:r().string,"aria-label":r().string,error:r().bool,onClick:r().func,children:r().node,headerContent:r().node},CTA.defaultProps={title:"",headerText:"",headerContent:"",description:"",ctaLink:"",ctaLabel:"",ctaType:"link",error:!1,onClick:()=>{}};const d=CTA},42340(e,t,i){i.d(t,{A:()=>ModuleSettingsWarning});var s=i(50539),n=i(37325),o=i(3749),r=i(97345),a=i(88273),l=i(23955),c=i(62540);function ModuleSettingsWarning({slug:e}){const t=(0,s.useSelect)(t=>t(a.i)?.getCheckRequirementsError(e));return t?r.od===t.code?(0,c.jsx)(l.A,{moduleSlug:e}):(0,c.jsx)(n.A,{className:"googlesitekit-notice--small",type:o.L.WARNING,description:t.message,hideIcon:!0}):null}},37834(e,t,i){i.d(t,{A:()=>Notifications});var s=i(62688),n=i.n(s),o=i(50539),r=i(84730),a=i(8732),l=i(50532),c=i.n(l),g=i(67438),d=i(62540);const u=c()(e=>({id:e,Notification:p(e)(g.A)}));function p(e){return t=>{function WithNotificationID(i){return(0,d.jsx)(t,{...i,id:e})}return WithNotificationID.displayName="WithNotificationID",(t.displayName||t.name)&&(WithNotificationID.displayName+=`(${t.displayName||t.name})`),WithNotificationID}}var m=i(62659);function Notifications({areaSlug:e,groupID:t=r.He.DEFAULT}){const i=(0,m.A)(),s=(0,o.useSelect)(e=>e(a.D).getQueuedNotifications(i,t));if(void 0===s?.[0]||s?.[0]?.areaSlug!==e)return null;const{id:n,Component:l}=s[0],c={...u(n)};return(0,d.jsx)(l,{...c})}Notifications.propTypes={viewContext:n().string,areaSlug:n().string}},75649(e,t,i){i.d(t,{A:()=>o});var s=i(63696),n=i(82871);function o({isDismissalFinal:e}={}){const[t]=(0,s.useState)(!0===e?(0,n.__)("Don’t show again","google-site-kit"):(0,n.__)("Maybe later","google-site-kit"));return t}},89065(e,t,i){i.d(t,{A:()=>SurveyViewTrigger});var s=i(62688),n=i.n(s),o=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,o.useEffect)(()=>{i(e,{ttl:t})},[e,t,i]),null}SurveyViewTrigger.propTypes={triggerID:n().string.isRequired,ttl:n().number}},26788(e,t,i){i.d(t,{A:()=>CancelUserInputButton});var s=i(62688),n=i.n(s),o=i(82871),r=i(49383),a=i(50539),l=i(70301),c=i(29785),g=i(62540);function CancelUserInputButton({disabled:e}){const t=(0,a.useSelect)(e=>e(c.O4).getAdminURL("googlesitekit-dashboard")),{navigateTo:i}=(0,a.useDispatch)(l.M);return(0,g.jsx)(r.Button,{className:"googlesitekit-user-input__buttons--cancel",onClick:()=>i(t),disabled:e,tertiary:!0,children:(0,o.__)("Cancel","google-site-kit")})}CancelUserInputButton.propTypes={disabled:n().bool}},48377(e,t,i){i.d(t,{A:()=>UserInputQuestionAuthor});var s=i(62688),n=i.n(s),o=i(82871),r=i(50539),a=i(83880),l=i(97345),c=i(62540);function UserInputQuestionAuthor({slug:e}){const t=(0,r.useSelect)(t=>t(l.oR).getUserInputSettingAuthor(e));return t&&t.photo&&t.login?(0,c.jsxs)("div",{className:"googlesitekit-user-input__author",children:[(0,c.jsx)(a.A,{children:(0,o.__)("This question has been answered by:","google-site-kit")}),(0,c.jsxs)("div",{className:"googlesitekit-user-input__author-info",children:[(0,c.jsx)("img",{alt:t.login,src:t.photo}),t.login]})]}):null}UserInputQuestionAuthor.propTypes={slug:n().string.isRequired}},75594(e,t,i){i.d(t,{A:()=>UserInputQuestionNotice});var s=i(4452),n=i.n(s),o=i(82871),r=i(62540);function UserInputQuestionNotice({className:e}){return(0,r.jsx)("p",{className:n()(e,"googlesitekit-user-input__question-notice"),children:(0,o.__)("You can always edit your answers later in Settings","google-site-kit")})}},9246(e,t,i){i.d(t,{A:()=>UserInputSelectOptions});var s=i(62688),n=i.n(s),o=i(63696),r=i(82871),a=i(53328),l=i(49383),c=i(50539),g=i(11999),d=i(70301),u=i(97345),p=i(62659),m=i(10740),h=i(13047),_=i(65573),f=i(62540);function UserInputSelectOptions({slug:e,descriptions:t,options:i,max:s,next:n,showInstructions:k,alignLeftOptions:y,gaTrackingEventArgs:v}){const A=(0,p.A)(),x=(0,c.useSelect)(t=>t(u.oR).getUserInputSetting(e)||[]),b=(0,c.useSelect)(e=>e(u.oR).isSavingUserInputSettings(x)),I=(0,c.useSelect)(e=>e(d.M).isNavigating()),{setUserInputSetting:j}=(0,c.useDispatch)(u.oR),M=(0,o.useRef)();(0,o.useEffect)(()=>{if(!M?.current)return;function e(e){e&&setTimeout(()=>{e.focus()},50)}const t=1===s?"radio":"checkbox",i=M.current.querySelector(`input[type="${t}"]:checked`);if(i)e(i);else{e(M.current.querySelector(`input[type="${t}"]`))}},[s]);const{setValues:S}=(0,c.useDispatch)(g.s),N=(0,o.useCallback)(t=>{const{target:i}=t,{value:n,checked:o}=i,r=new Set([n,...x]);o||r.delete(n);const a=Array.from(r).slice(0,s);if(v)(0,h.sx)(v.category,v.action,a.join());else{const t=e===_.aq?"content_frequency_question_answer":`site_${e}_question_answer`;(0,h.sx)(`${A}_kmw`,t,a.join())}e===_.a3&&S(_.we,{[e]:x}),j(e,a)},[x,s,v,e,j,A,S]),E=(0,o.useCallback)(e=>{e.keyCode===a.Fm&&x.length>0&&x.length<=s&&!x.includes("")&&n&&"function"==typeof n&&n()},[x,n,s]),w={[s>1?"onChange":"onClick"]:N},C=1===s?l.Radio:l.Checkbox,T=Object.keys(i).map(n=>{if("sell_products_or_service"===n)return!1;const o={id:`${e}-${n}`,value:n,description:t?.[n],checked:x.includes(n),onKeyDown:E,alignLeft:y,...w};return s>1?(o.disabled=x.length>=s&&!x.includes(n),o.name=`${e}-${n}`):o.name=e,(b||I)&&(o.disabled=!0),(0,f.jsx)("div",{className:"googlesitekit-user-input__select-option",children:(0,f.jsx)(C,{...o,children:i[n]})},n)});return(0,f.jsxs)(m.fh,{className:"googlesitekit-user-input__select-options-wrapper",lgStart:6,lgSize:6,mdSize:8,smSize:4,children:[k&&(0,f.jsx)("p",{className:"googlesitekit-user-input__select-instruction",children:(0,f.jsx)("span",{children:(0,r.sprintf)(/* translators: %s: number of answers allowed. */ /* translators: %s: number of answers allowed. */ (0,r._n)("Select only %d answer","Select up to %d answers",s,"google-site-kit"),s)})}),(0,f.jsx)("div",{className:"googlesitekit-user-input__select-options",ref:M,children:T})]})}UserInputSelectOptions.propTypes={slug:n().string.isRequired,descriptions:n().shape({}),options:n().shape({}).isRequired,max:n().number,next:n().func,showInstructions:n().bool,alignLeftOptions:n().bool,gaTrackingEventArgs:n().object},UserInputSelectOptions.defaultProps={max:1,showInstructions:!1,alignLeftOptions:!1}},65573(e,t,i){i.d(t,{Ax:()=>c,B$:()=>f,Dc:()=>_,Fy:()=>h,KM:()=>a,Tk:()=>d,W:()=>l,a3:()=>o,aq:()=>r,b6:()=>g,cz:()=>p,oG:()=>m,we:()=>u});var s=i(82871),n=i(99893);const o="purpose",r="postFrequency",a="goals",l=[o,r,a],c={[o]:1,[r]:1,[a]:3},g="googlesitekit-user-input-currently-editing",d="user_input_question_number",u="user_input_question_snapshot",p="user-input-legacy-site-purpose-dismissed-item",m={publish_blog:[n.nc.CONTACT,n.nc.GENERATE_LEAD,n.nc.SUBMIT_LEAD_FORM],publish_news:[n.nc.CONTACT,n.nc.GENERATE_LEAD,n.nc.SUBMIT_LEAD_FORM],monetize_content:[],sell_products_or_service:[n.nc.PURCHASE,n.nc.ADD_TO_CART],sell_products:[n.nc.PURCHASE,n.nc.ADD_TO_CART],provide_services:[n.nc.CONTACT,n.nc.GENERATE_LEAD,n.nc.SUBMIT_LEAD_FORM],share_portfolio:[n.nc.CONTACT,n.nc.GENERATE_LEAD,n.nc.SUBMIT_LEAD_FORM],other:[]};function h(){const e=(0,s.__)("Based on your answer, Site Kit will suggest the metrics you see on your dashboard to help you track how close you’re getting to your specific goals","google-site-kit");return[{title:(0,s.__)("What is the main purpose of this site?","google-site-kit"),description:e},{title:(0,s.__)("How often do you create new content for this site?","google-site-kit"),description:e},{title:(0,s.__)("What are your top 3 goals for this site?","google-site-kit"),description:e}]}function _(){return{USER_INPUT_ANSWERS_PURPOSE:{sell_products_or_service:(0,s.__)("Sell products or services","google-site-kit"),sell_products:(0,s.__)("Sell products","google-site-kit"),provide_services:(0,s.__)("Provide services","google-site-kit"),monetize_content:(0,s.__)("Monetize content","google-site-kit"),publish_blog:(0,s.__)("Publish a blog","google-site-kit"),publish_news:(0,s.__)("Publish news content","google-site-kit"),share_portfolio:(0,s.__)("Portfolio or business card","google-site-kit"),other:(0,s.__)("Other","google-site-kit")},USER_INPUT_ANSWERS_POST_FREQUENCY:{never:(0,s.__)("Never","google-site-kit"),daily:(0,s.__)("Daily","google-site-kit"),weekly:(0,s.__)("Weekly","google-site-kit"),monthly:(0,s.__)("Monthly","google-site-kit"),other:(0,s.__)("Other","google-site-kit")},USER_INPUT_ANSWERS_GOALS:{retaining_visitors:(0,s.__)("Retain visitors, turn them into loyal readers or customers","google-site-kit"),improving_performance:(0,s.__)("Improve speed and performance","google-site-kit"),finding_new_topics:(0,s.__)("Find new topics to write about that connect with my audience","google-site-kit"),growing_audience:(0,s.__)("Grow my audience","google-site-kit"),expanding_business:(0,s.__)("Expand my business into new cities, states or markets","google-site-kit"),generating_revenue:(0,s.__)("Generate more revenue","google-site-kit"),generating_leads:(0,s.__)("Generate leads","google-site-kit"),help_better_rank:(0,s.__)("Help my content rank in a better position in Google search results","google-site-kit"),understanding_content_performance:(0,s.__)("Understand which content is performing best","google-site-kit"),encourage_to_post:(0,s.__)("Encouragement to post more frequently","google-site-kit"),other:(0,s.__)("Other","google-site-kit")}}}function f(){return{USER_INPUT_ANSWERS_PURPOSE:{sell_products_or_service:(0,s.__)("E.g. selling products like devices, apparel, equipment, etc. or offering services like courses, consulting, tutoring, etc.","google-site-kit"),sell_products:(0,s.__)("E.g. selling devices, apparel, equipment, etc.","google-site-kit"),provide_services:(0,s.__)("E.g. offering courses, consulting, tutoring, etc.","google-site-kit"),monetize_content:(0,s.__)("Using display ads, affiliate links, sponsored content, etc.","google-site-kit"),publish_blog:(0,s.__)("Writing on a topic you’re passionate about, no focus on monetizing content","google-site-kit"),publish_news:(0,s.__)("E.g. local news, investigative pieces, interviews, etc.","google-site-kit"),share_portfolio:(0,s.__)("My website represents me or my company","google-site-kit"),other:void 0}}}},30845(e,t,i){i.d(t,{A:()=>n,j:()=>o});var s=i(82871);function n(e){return 0===e.length}function o(e,t=1){return 0===e.length?1===t?(0,s.__)("Please select an answer","google-site-kit"):(0,s.__)("Please select at least 1 answer","google-site-kit"):null}},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:()=>n,t:()=>s});const s=new Set(globalThis?._googlesitekitBaseData?.enabledFeatures||[]);function n(e,t=s){return t instanceof Set&&t.has(e)}},49993(e,t,i){i.d(t,{Gq:()=>d,IL:()=>h,LD:()=>p,SO:()=>u,a2:()=>n,xD:()=>m});var s=i(13047);const n="googlesitekit_",o=`${n}1.181.0_${globalThis._googlesitekitBaseData.storagePrefix}_`,r=["sessionStorage","localStorage"];let a,l=[...r];async function c(e){const t=globalThis[e];if(!t)return!1;try{const e="__storage_test__";return t.setItem(e,e),t.removeItem(e),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==t.length}}async function g(){if(void 0!==a)return a;for(const e of l)a||await c(e)&&(a=globalThis[e]);return void 0===a&&(a=null),a}async function d(e){const t=await g();if(t){const i=t.getItem(`${o}${e}`);if(i){const e=JSON.parse(i),{timestamp:t,ttl:s,value:n,isError:o}=e;if(t&&(!s||Math.round(Date.now()/1e3)-t_});var s=i(47485),n=i(62688),o=i.n(n),r=i(63696),a=i(82871),l=i(10740),c=i(99573),g=i(62540);function MaybeTooltip({children:e,disabled:t=!1,tooltip:i=!1,tooltipTitle:s=null,hasIconOnly:n=!1,tooltipEnterDelayInMS:o=100}){return!t&&(i&&s||n&&s)?(0,g.jsx)(c.A,{title:s,enterDelay:o,children:e}):e}MaybeTooltip.propTypes={children:o().node.isRequired,disabled:o().bool,tooltip:o().bool,tooltipTitle:o().oneOfType([o().string,o().element]),hasIconOnly:o().bool,tooltipEnterDelayInMS:o().number};var d=i(4452),u=i.n(d);const p=(0,r.forwardRef)(({children:e,href:t,text:i,className:s,danger:n,disabled:o,target:r,"aria-label":a,inverse:l,tertiary:c,callout:d,calloutStyle:p,...m},h)=>{const _=t&&!o?"a":"button";return(0,g.jsx)(_,{className:u()("mdc-button",s,{"mdc-button--raised":!i&&!c&&!d,"mdc-button--danger":n,"mdc-button--inverse":l,"mdc-button--tertiary":c,"mdc-button--callout":d,"mdc-button--callout-primary":d||"primary"===p,"mdc-button--callout-warning":"warning"===p,"mdc-button--callout-error":"error"===p}),href:o?void 0:t,ref:h,disabled:!!o,"aria-label":a,target:r||"_self",role:"a"===_?"button":void 0,...m,children:e})});p.propTypes={children:o().node,href:o().string,text:o().bool,className:o().string,danger:o().bool,disabled:o().bool,target:o().string,"aria-label":o().string,inverse:o().bool,tertiary:o().bool,callout:o().bool,calloutStyle:o().oneOf(["primary","warning","error"])};const m=p,h=(0,r.forwardRef)(({children:e,href:t=null,text:i=!1,className:n="",danger:o=!1,disabled:c=!1,target:d,icon:u=null,trailingIcon:p=null,"aria-label":h,title:_=null,customizedTooltip:f=null,tooltip:k=!1,inverse:y=!1,hideTooltipTitle:v=!1,tooltipEnterDelayInMS:A=100,tertiary:x=!1,callout:b=!1,calloutStyle:I=null,...j},M)=>{const S=(0,r.useCallback)(e=>{null!==e&&l.Nv.attachTo(e)},[]),N=(0,s.A)(M,S);const E=v?null:_||f||h;return(0,g.jsx)(MaybeTooltip,{disabled:c,tooltip:k,tooltipTitle:E,hasIconOnly:!!u&&void 0===e,tooltipEnterDelayInMS:A,children:(0,g.jsxs)(m,{href:t,disabled:c,className:n,danger:o,text:i,tertiary:x,inverse:y,callout:b,calloutStyle:I,ref:N,"aria-label":function(){let t=h;if("_blank"!==d)return t;const i=(0,a._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof e&&(t=t||e),t?`${t} ${i}`:i}(),target:d||"_self",...j,children:[u,e&&(0,g.jsx)("span",{className:"mdc-button__label",children:e}),p]})})});h.propTypes={onClick:o().func,children:o().node,href:o().string,text:o().bool,className:o().string,danger:o().bool,disabled:o().bool,icon:o().element,trailingIcon:o().element,title:o().string,customizedTooltip:o().element,tooltip:o().bool,inverse:o().bool,hideTooltipTitle:o().bool,callout:o().bool,calloutStyle:o().oneOf(["primary","warning","error"])};const _=h},99578(e,t,i){i.d(t,{A:()=>CircularProgress});var s=i(75762),n=i(62540);function CircularProgress(e){return(0,n.jsx)(s.A,{...e})}},11763(e,t,i){i.d(t,{A:()=>SpinnerButton,k:()=>d});var s=i(4452),n=i.n(s),o=i(17243),r=i(62688),a=i.n(r),l=i(85135),c=i(99578),g=i(62540);const d={BEFORE:"before",AFTER:"after"};function SpinnerButton(e){const{className:t,onClick:i=()=>{},isSaving:s=!1,spinnerPosition:r=d.AFTER,...a}=e,u=(0,o.pickBy)(a,e=>void 0!==e);return(0,g.jsx)(l.A,{className:n()(t,"googlesitekit-button-icon--spinner",{"googlesitekit-button-icon--spinner__running":s,"googlesitekit-button-icon--spinner__before":r===d.BEFORE,"googlesitekit-button-icon--spinner__after":r===d.AFTER}),icon:s&&r===d.BEFORE?(0,g.jsx)(c.A,{size:14}):void 0,trailingIcon:s&&r===d.AFTER?(0,g.jsx)(c.A,{size:14}):void 0,onClick:i,...u})}SpinnerButton.propTypes={className:a().string,onClick:a().func,isSaving:a().bool,spinnerPosition:a().oneOf(Object.values(d))}},99573(e,t,i){i.d(t,{A:()=>Tooltip});var s=i(90295),n=i(4452),o=i.n(n),r=i(62688),a=i.n(r),l=i(63696),c=i(62540);function Tooltip({children:e,popperClassName:t,tooltipClassName:i,onOpen:n,onClose:r,...a}){const g=(0,l.useRef)(!1),d=n?()=>{g.current||(g.current=!0,n?.())}:void 0,u=n?()=>{g.current=!1,r?.()}:r;return(0,c.jsx)(s.Ay,{classes:{popper:o()("googlesitekit-tooltip-popper",t),tooltip:o()("googlesitekit-tooltip",i)},onOpen:d,onClose:u,...a,arrow:!0,children:e})}Tooltip.propTypes={children:a().node,popperClassName:a().string,tooltipClassName:a().string,onOpen:a().func,onClose:a().func}},20697(e,t,i){i.d(t,{Ax:()=>o,CZ:()=>g,Ej:()=>I,Gw:()=>j,Is:()=>r,KK:()=>u,Nn:()=>S,OT:()=>A,SH:()=>v,Y$:()=>p,ZS:()=>a,bg:()=>_,en:()=>b,ep:()=>h,f7:()=>n,hi:()=>m,jU:()=>s,k$:()=>k,kz:()=>M,ly:()=>l,mo:()=>f,s3:()=>y,uR:()=>c,x2:()=>x,zx:()=>d});const s="mainDashboard",n="entityDashboard",o="mainDashboardViewOnly",r="entityDashboardViewOnly",a="userInput",l="activation",c="splash",g="adminBar",d="adminBarViewOnly",u="settings",p="adBlockingRecovery",m="wpDashboard",h="wpDashboardViewOnly",_="moduleSetup",f="metricSelection",k="wpBlockEditor",y="keyMetricsSetup",v="key-metrics",A="traffic",x="site-goals",b="content",I="speed",j="monetization",M=[s,n,o,r,a,c,u,_,f],S=[o,r,d,h]},78990(e,t,i){i.d(t,{P9:()=>f,k:()=>m,mR:()=>_});var s=i(32091),n=i.n(s),o=i(17243),r=i(50539),a=i.n(r),l=i(49993),c=i(13047);const g="CREATE_SNAPSHOT",d="DELETE_SNAPSHOT",u="RESTORE_SNAPSHOT",p="SET_STATE_FROM_SNAPSHOT";function m(e,{keysToSnapshot:t}={}){n()(e,"storeName is required to create a snapshot store.");const i={},s={*deleteSnapshot(){return yield{payload:{},type:d}},*restoreSnapshot(e={}){const{clearAfterRestore:t=!0}=e,{cacheHit:i,value:s}=yield{payload:{},type:u};return i&&(yield{payload:{snapshot:s},type:p},t&&(yield{payload:{},type:d})),i},*createSnapshot(){return yield{payload:{},type:g}}},a={[d]:()=>(0,l.LD)(`datastore::cache::${e}`),[g]:(0,r.createRegistryControl)(i=>()=>{const s=i.stores[e].store.getState(),n=t?.length>0?(0,o.pick)(s,t):s;return(0,l.SO)(`datastore::cache::${e}`,n)}),[u]:()=>(0,l.Gq)(`datastore::cache::${e}`,c.Jg)};return{initialState:i,actions:s,controls:a,reducer:function(e=i,{type:s,payload:n}){if(s===p){const{snapshot:i}=n,{error:s,...o}=i;return t?.length>0?{...e,...o}:o}return e}}}function h(e=a()){return Object.values(e.stores).filter(e=>Object.keys(e.getActions()).includes("restoreSnapshot"))}function _(e=a()){return Promise.all(h(e).map(e=>e.getActions().createSnapshot()))}function f(e=a()){return Promise.all(h(e).map(e=>e.getActions().restoreSnapshot()))}},49057(e,t,i){i.d(t,{Ay:()=>_,wA:()=>a.A,ws:()=>u.w,WM:()=>r.A});var s=i(66218),n=i(56805),o=i(78913),r=i(35470),a=i(63737),l=i(44319),c=i(45177),g=i(30043),d=i(66293),u=i(52721),p=i(97241);var m=i(8084);const h=(0,s.I)({},globalThis.wp?.data);h.combineStores=m.o3,h.commonActions=m.jU,h.commonControls=m._5,h.commonStore=m.x0,h.createReducer=function(e){return(0,p.Ay)(e)},h.useInViewSelect=u.w,h.controls=n.n,h.createRegistryControl=o.b,h.createRegistrySelector=o.N,h.useSelect=r.A,h.useDispatch=a.A,h.useRegistry=l.A,h.withSelect=c.A,h.withDispatch=g.A,h.RegistryProvider=d.Ay;const _=h},74426(e,t,i){function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function n(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()}function o(e){return e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}i.d(t,{Uf:()=>o,m2:()=>s,sP:()=>n})},8084(e,t,i){i.d(t,{$C:()=>S,RF:()=>M,WI:()=>I,_5:()=>A,jU:()=>v,o3:()=>y,x0:()=>b});var s=i(32091),n=i.n(s),o=i(17243),r=i(50532),a=i.n(r),l=i(78913);const c="GET_REGISTRY",g="AWAIT";function d(...e){const t=e.reduce((e,t)=>({...e,...t}),{}),i=x(e.reduce((e,t)=>[...e,...Object.keys(t)],[]));return n()(0===i.length,`collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ${i.join(", ")}. Check your data stores for duplicates.`),t}const u=d,p=d;function m(...e){const t=[...e];let i;return"function"!=typeof t[0]&&(i=t.shift()),(e=i,s={})=>t.reduce((e,t)=>t(e,s),e)}const h=d,_=d,f=d;function k(e){return e}function y(...e){const t=f(...e.map(e=>e.initialState||{}));return{initialState:t,controls:p(...e.map(e=>e.controls||{})),actions:u(...e.map(e=>e.actions||{})),reducer:m(t,...e.map(e=>e.reducer||k)),resolvers:h(...e.map(e=>e.resolvers||{})),selectors:_(...e.map(e=>e.selectors||{}))}}const v={getRegistry:()=>({payload:{},type:c}),*await(e){return{payload:{value:e},type:g}}},A={[c]:(0,l.b)(e=>()=>e),[g]:({payload:e})=>e.value};function x(e){const t=[],i={};for(let s=0;s=1?i[n]+1:1,i[n]>1&&t.push(n)}return t}const b={actions:v,controls:A,reducer:k};function I(e){return t=>j(e(t))}const j=a()(e=>(0,o.mapValues)(e,(e,t)=>(...i)=>{const s=e(...i);return n()(void 0!==s,`${t}(...) is not resolved`),s}));function M(e,{negate:t=!1}={}){return{safeSelector:(0,l.N)(i=>(s,...n)=>{const o=!t,r=!!t;try{return e(i,s,...n),o}catch{return r}}),dangerousSelector:(0,l.N)(t=>(i,...s)=>{e(t,i,...s)})}}function S(e,t){return n()("function"==typeof e,"a validator function is required."),n()("function"==typeof t,"an action creator function is required."),n()("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:()=>o,qc:()=>n});const s="core/site",n="primary",o="secondary"},7972(e,t,i){i.d(t,{Fc:()=>n,Yg:()=>o,nX:()=>s});const s="core/ui",n="activeContextID",o="forced-in-view-widget-areas"},97345(e,t,i){i.d(t,{$8:()=>r,$Q:()=>p,BT:()=>D,CQ:()=>M,D1:()=>q,DF:()=>Y,GM:()=>j,GT:()=>k,GU:()=>Z,HA:()=>O,HD:()=>u,HP:()=>T,J5:()=>B,JF:()=>N,JK:()=>_,Ml:()=>h,SS:()=>R,UF:()=>g,UY:()=>V,Vl:()=>L,W6:()=>H,Xq:()=>S,YQ:()=>E,Yw:()=>W,dV:()=>C,dX:()=>I,ej:()=>c,em:()=>o,ep:()=>x,fu:()=>v,gC:()=>y,hz:()=>m,jN:()=>Q,jx:()=>d,lV:()=>l,nH:()=>P,oR:()=>s,od:()=>a,p3:()=>f,pG:()=>b,qv:()=>n,qy:()=>w,t1:()=>F,t7:()=>G,tB:()=>A,tK:()=>U,u_:()=>z});const s="core/user",n="connected_url_mismatch",o="__global",r="temporary_persist_permission_error",a="adblocker_active",l=["weekly","monthly","quarterly"],c="googlesitekit_authenticate",g="googlesitekit_setup",d="googlesitekit_view_dashboard",u="googlesitekit_manage_options",p="googlesitekit_read_shared_module_data",m="googlesitekit_manage_module_sharing_options",h="googlesitekit_delegate_module_sharing_management",_="googlesitekit_update_plugins",f="kmAnalyticsAdSenseTopEarningContent",k="kmAnalyticsEngagedTrafficSource",y="kmAnalyticsLeastEngagingPages",v="kmAnalyticsNewVisitors",A="kmAnalyticsPopularAuthors",x="kmAnalyticsPopularContent",b="kmAnalyticsPopularProducts",I="kmAnalyticsReturningVisitors",j="kmAnalyticsTopCities",M="kmAnalyticsTopCitiesDrivingLeads",S="kmAnalyticsTopCitiesDrivingAddToCart",N="kmAnalyticsTopCitiesDrivingPurchases",E="kmAnalyticsTopDeviceDrivingPurchases",w="kmAnalyticsTopConvertingTrafficSource",C="kmAnalyticsTopCountries",T="kmAnalyticsTopPagesDrivingLeads",D="kmAnalyticsTopRecentTrendingPages",R="kmAnalyticsTopTrafficSource",L="kmAnalyticsTopTrafficSourceDrivingAddToCart",z="kmAnalyticsTopTrafficSourceDrivingLeads",O="kmAnalyticsTopTrafficSourceDrivingPurchases",P="kmAnalyticsPagesPerVisit",B="kmAnalyticsVisitLength",U="kmAnalyticsTopReturningVisitorPages",G="kmSearchConsolePopularKeywords",W="kmAnalyticsVisitsPerVisitor",V="kmAnalyticsMostEngagingPages",F="kmAnalyticsTopCategories",H=[f,k,y,v,A,x,b,I,F,j,M,S,N,E,w,C,D,R,L,P,B,U,W,V,F],Y=[...H,G],q="welcome-modal-with-tour",Z="welcome-modal-gathering-data",Q="initial-setup-notification-timeout"},88273(e,t,i){i.d(t,{U:()=>n,i:()=>s});const s="core/modules",n="insufficient_module_dependencies"},67438(e,t,i){i.d(t,{A:()=>Notification});var s=i(62688),n=i.n(s),o=i(63696),r=i(50539),a=i(8732),l=i(7972);function c(e){return`notification/${e}/viewed`}function g(e){return(0,r.useSelect)(t=>!!t(l.nX).getValue(c(e)),[e])}g.getKey=c;var d=i(68761),u=i(37133);function ViewedStateObserver({id:e,observeRef:t,threshold:i}){const s=(0,u.A)(t,{threshold:i}),{setValue:n}=(0,r.useDispatch)(l.nX),{markNotificationSeen:c}=(0,r.useDispatch)(a.D),d=!!s?.isIntersecting,p=g(e),m=(0,o.useRef)();function h(){m.current&&clearTimeout(m.current)}return(0,o.useEffect)(()=>(!p&&d?(h(),m.current=setTimeout(()=>{s?.isIntersecting&&(n(g.getKey(e),!0),c(e))},3e3)):!d&&m.current&&h(),()=>{h()}),[p,d,n,c,e,s]),null}ViewedStateObserver.propTypes={id:n().string,observeRef:n().object,threshold:n().number};var p=i(62540);function Notification({id:e,className:t,gaTrackingEventArgs:i,children:s,onView:n}){const l=(0,o.useRef)(),c=g(e),u=(0,d.A)(e,i?.category,{viewAction:i?.viewAction}),[m,h]=(0,o.useState)(!1),_=(0,r.useSelect)(t=>t(a.D).getNotificationSeenDates(e)),{dismissNotification:f}=(0,r.useDispatch)(a.D);return(0,o.useEffect)(()=>{!m&&c&&(u.view(i?.label,i?.value),n?.(),h(!0)),_?.length>=3&&f(e,{skipHidingFromQueue:!0})},[c,u,m,i,n,_,f,e]),(0,p.jsxs)("section",{id:e,ref:l,className:t,children:[s,!c&&(0,p.jsx)(ViewedStateObserver,{id:e,observeRef:l,threshold:.5})]})}Notification.propTypes={id:n().string,className:n().string,gaTrackingEventArgs:n().shape({category:n().string,viewAction:n().string,label:n().string,value:n().string}),children:n().node,onView:n().func}},62051(e,t,i){i.d(t,{A:()=>LearnMoreLink});var s=i(62688),n=i.n(s),o=i(38432),r=i(68761),a=i(62540);function LearnMoreLink({id:e,label:t,url:i,ariaLabel:s,gaTrackingEventArgs:n,external:l=!0,...c}){const g=(0,r.A)(e);return(0,a.jsx)(o.A,{onClick:function(e){e.persist(),g.clickLearnMore(n?.label,n?.value)},href:i,"aria-label":s,external:l,...c,children:t})}LearnMoreLink.propTypes={id:n().string,label:n().string,url:n().string,ariaLabel:n().string,gaTrackingEventArgs:n().shape({label:n().string,value:n().string}),external:n().bool}},67510(e,t,i){i.d(t,{Q:()=>_,A:()=>BannerNotification});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(50539),l=i(83891),c=i(71189),g=i(61983),d=i(41671),u=i(8732),p=i(68761),m=i(10740);var h=i(62540);const _={INFO:"info",ERROR:"error",WARNING:"warning"};function BannerNotification({notificationID:e,type:t=_.INFO,learnMoreLink:i,dismissButton:s,ctaButton:o,gaTrackingEventArgs:r,...c}){const g=(0,p.A)(e,r?.category),{dismissNotification:d}=(0,a.useDispatch)(u.D);let f=c?.svg;return f||t===_.INFO||(f={desktop:void 0,mobile:void 0,verticalPosition:"center"},t===_.WARNING&&(f.desktop="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYwIiBoZWlnaHQ9IjIzNCIgdmlld0JveD0iMCAwIDM2MCAyMzQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03My4xMzAyIDE3MC42NjhDODkuMzcxOSAxODkuOTkgMTE1LjQ3NiAxOTUuMTEgMTMxLjg2NSAxODkuOTkxQzE1My4yNDYgMTgzLjMxMiAxNjYuNjcyIDE2Mi45NjcgMTg1LjUwMiAxNjAuNTQ0QzIwNC4zMzMgMTU4LjEyMSAyMTUuNDA2IDE2OC43MDYgMjM1Ljg5NyAxNzAuMjMzQzI1Ni4zODkgMTcxLjc2IDI4MS4yMzIgMTY3LjYzIDI5Mi43OTEgMTM3LjkzNUMzMDQuMzQ5IDEwOC4yMzkgMjkzLjk0OCA3OC4yMzIxIDI3MC4yMTQgNjQuMzYxNUMyNDYuNDgxIDUwLjQ5MDggMjMzLjI3MSA2Ni43Njk0IDIxMC41NjQgNjguMTIzN0MxODcuODU4IDY5LjQ3NzkgMTc4LjAyMyA0NS44NTI4IDE2MS4wMjMgNDQuMzUyOEMxNDQuMDIzIDQyLjg1MjggMTM0LjUyMyA0NS44NTMgMTI0LjUyMyA1OC44NTI5QzExNC41MjMgNzEuODUyOCAxMjAuMzcxIDg1Ljc2NDEgODkuNTIzNSA5OS44NTNDNTguNjc1OCAxMTMuOTQyIDU2Ljg4ODUgMTUxLjM0NSA3My4xMzAyIDE3MC42NjhaIiBmaWxsPSIjRkZFNEIxIi8+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIwX2RfMjcwNV8xNzY4NikiPgo8cmVjdCB4PSIxMTYuNTIzIiB5PSI1Ny45MTk5IiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOC41MzMiIHJ4PSI2Ljk4MjUyIiBmaWxsPSIjRUJFRUYwIi8+CjxtYXNrIGlkPSJtYXNrMF8yNzA1XzE3Njg2IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIxMTYiIHk9IjU3IiB3aWR0aD0iMTI5IiBoZWlnaHQ9IjEzMiI+CjxyZWN0IHg9IjExNi41MjMiIHk9IjU3LjkxOTkiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTMwLjEzMyIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2ODYpIj4KPHJlY3QgeD0iMTI1LjA1NyIgeT0iMTE3LjY1MyIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjkzMzMiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHg9IjEyNS4wNTciIHk9IjEwMy4yNTMiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC45MzMzIiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjUuMDU3IiB5PSIxNTYuMDUzIiB3aWR0aD0iMTEwLjQiIGhlaWdodD0iMzAuOTMzMyIgcng9IjMuNzUxMjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljk0NjUiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAyMDMuNDU3IDk1LjYyNDkpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTYzLjk5IDk1LjYyNTcpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTI0LjUyMyA5NS42MjU3KSIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxwYXRoIGQ9Ik0xMTYuNTIzIDY0LjkzNTVDMTE2LjUyMyA2MS4wNzkyIDExOS42NSA1Ny45NTMgMTIzLjUwNiA1Ny45NTNIMjM3LjM4M0MyNDEuMjM5IDU3Ljk1MyAyNDQuMzY1IDYxLjA3OTIgMjQ0LjM2NSA2NC45MzU1VjY4LjUzM0gxMTYuNTIzVjY0LjkzNTVaIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSIxMjEuODEzIiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjcuMTA0IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzIuNDM3IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE4MC41MjMiIGN5PSIxMjAuODUzIiByPSIxNy4zNzkzIiBmaWxsPSIjNEUzMzAwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNzU4NjIiLz4KPGNpcmNsZSBjeD0iMS42NTUxNyIgY3k9IjEuNjU1MTciIHI9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTE2Ljk5MSkiIGZpbGw9IiNGRkU0QjEiLz4KPHJlY3Qgd2lkdGg9IjMuMzEwMzQiIGhlaWdodD0iOS4zNzkzMSIgcng9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTI4LjU3NykiIGZpbGw9IiNGRkU0QjEiLz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8yNzA1XzE3Njg2IiB4PSIxMDcuOTkiIHk9IjUxLjUxOTkiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0Ni4xMzMiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2ODYiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzY4NiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K"),t===_.ERROR&&(f.desktop="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9IjIwMiIgdmlld0JveD0iMCAwIDQwMCAyMDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NC44NTc1IDk3LjYxNjZDMTA1Ljg1NyAxMzQuMDIgMTUzLjIwMSAxMDYuMTIzIDE4MS4zNTcgMTE0LjU3MkMyMDkuNTEzIDEyMy4wMiAyMTMuNDY4IDE2MS41NDUgMjM1Ljg1NyAxNjkuOTI1QzI1OC4yNDUgMTc4LjMwNiAzMDMuMDY4IDE3MS41MTUgMzE2LjAwMiAxMzguMTM1QzMyOC45MzYgMTA0Ljc1NCAzMTIuMTY3IDgzLjY1MjkgMjg3LjY1MiA3Mi4xNjk0QzI2My4xMzYgNjAuNjg1OSAyNjguOTc2IDM2Ljc4MzYgMjM0LjE2NiAyNy44MDA5QzE5OS4zNTcgMTguODE4MiAxNzguNjY1IDQxLjI2NTEgMTQwLjE2NSAzMC43OTI3QzEwMS42NjUgMjAuMzIwNCA2My44NTc4IDYxLjIxMzEgODQuODU3NSA5Ny42MTY2WiIgZmlsbD0iI0ZGREVEMyIvPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMF9kXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTI3LjY2NiIgeT0iMzcuODQxMSIgd2lkdGg9IjEyOCIgaGVpZ2h0PSIxMjguMTk0IiByeD0iNi45ODI1MiIgZmlsbD0iI0VCRUVGMCIvPgo8bWFzayBpZD0ibWFzazBfMjcwNV8xNzYzMyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTI3IiB5PSIzNyIgd2lkdGg9IjEyOSIgaGVpZ2h0PSIxMzEiPgo8cmVjdCB4PSIxMjcuNjY2IiB5PSIzNy44NDExIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOS43OSIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTM2LjIiIHk9Ijk3LjQxNjkiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC44NTE4IiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzYuMiIgeT0iODMuMDU0NiIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjg1MTgiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxwYXRoIGQ9Ik0xMzYuMiAxMzkuNDY3QzEzNi4yIDEzNy4zOTUgMTM3Ljg3OSAxMzUuNzE2IDEzOS45NTEgMTM1LjcxNkgyNDIuODQ5QzI0NC45MiAxMzUuNzE2IDI0Ni42IDEzNy4zOTUgMjQ2LjYgMTM5LjQ2N1YxNjUuOTM1SDEzNi4yVjEzOS40NjdaIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC44OTY2IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMjE0LjU5OSA3NS40NDY3KSIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMTguODk2NiIgcng9IjIuMzE1NjkiIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3NS4xMzMgNzUuNDQ3NikiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljg5NjYiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAxMzUuNjY2IDc1LjQ0NzYpIiBmaWxsPSIjRjNGNUY3Ii8+CjwvZz4KPHBhdGggZD0iTTEyNy42NjYgNDQuODU2N0MxMjcuNjY2IDQxLjAwMDQgMTMwLjc5MyAzNy44NzQyIDEzNC42NDkgMzcuODc0MkgyNDguNTI2QzI1Mi4zODIgMzcuODc0MiAyNTUuNTA4IDQxLjAwMDQgMjU1LjUwOCA0NC44NTY3VjQ4LjQyNjNIMTI3LjY2NlY0NC44NTY3WiIgZmlsbD0id2hpdGUiLz4KPHJlY3QgeD0iMTMyLjk1NiIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTM4LjI0NyIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTQzLjU4IiB5PSI0MS4zOTE1IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUxNzM3IiByeD0iMS43NTg2OCIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE5MS42NjYiIGN5PSIxMDAuOTE1IiByPSIxNi44IiBmaWxsPSIjQUM0MjIwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNjY2NjciLz4KPHBhdGggZD0iTTE5Mi45MTQgOTMuOTgxOEgxOTAuNDE4QzE5MC4wOTIgOTMuOTgxOCAxODkuODQzIDk0LjI3MTQgMTg5Ljg5MSA5NC41OTM2TDE5MS4xMzkgMTAyLjk3M0MxOTEuMjI5IDEwMy41OCAxOTIuMTA0IDEwMy41OCAxOTIuMTk0IDEwMi45NzNMMTkzLjQ0MiA5NC41OTM2QzE5My40OSA5NC4yNzE0IDE5My4yNCA5My45ODE4IDE5Mi45MTQgOTMuOTgxOFoiIGZpbGw9IiNGRkRFRDMiLz4KPGNpcmNsZSBjeD0iMTkxLjY2NiIgY3k9IjEwNi43ODIiIHI9IjEuNiIgZmlsbD0iI0ZGREVEMyIvPgo8ZGVmcz4KPGZpbHRlciBpZD0iZmlsdGVyMF9kXzI3MDVfMTc2MzMiIHg9IjExOS4xMzMiIHk9IjMxLjQ0MTEiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0NS4yNjEiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2MzMiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzYzMyIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K")),(0,h.jsx)("div",{className:n()("googlesitekit-banner-notification",`googlesitekit-banner-notification--${t}`),children:(0,h.jsx)(m.xA,{className:"googlesitekit-page-content",children:(0,h.jsx)(m.fI,{children:(0,h.jsx)(m.fh,{size:12,children:(0,h.jsx)(l.A,{learnMoreLink:i&&{...i,onClick:async function(e){g.clickLearnMore(r?.label,r?.value),await(i?.onClick?.(e))}},dismissButton:s&&{...s,onClick:async function(t){await(s?.onClick?.(t)),g.dismiss(r?.label,r?.value),d(e,{...s?.dismissOptions})}},ctaButton:o&&{...o,onClick:async function(t){g.confirm(r?.label,r?.value),await(o?.onClick?.(t)),o?.dismissOnClick&&d(e,{...o?.dismissOptions})}},svg:f,...c})})})})})}BannerNotification.propTypes={notificationID:r().string.isRequired,type:r().oneOf(Object.values(_)),titleIcon:r().node,title:r().string,description:r().oneOfType([r().string,r().node]),learnMoreLink:r().shape(d.A.propTypes),dismissButton:r().shape(g.A.propTypes),ctaButton:r().shape(c.A.propTypes),gaTrackingEventArgs:r().shape({category:r().string,label:r().string,value:r().number})}},33903(e,t,i){i.d(t,{A:()=>OverlayNotification});var s=i(62688),n=i.n(s),o=i(50539),r=i(5230),a=i(4452),l=i.n(a),c=i(97513),g=i(63696),d=i(60515),u=i(49383),p=i(82871),m=i(62540);function DismissButton({label:e=(0,p.__)("Maybe later","google-site-kit"),onClick:t,disabled:i}){return(0,m.jsx)(u.Button,{onClick:t,disabled:i,tertiary:!0,children:e})}const h={label:n().string,onClick:n().func,disabled:n().bool};function CTAButton(e){const{label:t,...i}=e;return(0,m.jsx)(u.Button,{...i,children:t})}function Description({children:e}){return(0,m.jsx)("p",{className:"googlesitekit-overlay-card__description",children:e})}DismissButton.propTypes=h,CTAButton.propTypes={...h,href:n().string,target:n().string,trailingIcon:n().object},Description.propTypes={children:n().node.isRequired};var _=i(33052);function Title({children:e}){return(0,m.jsx)(_.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:n,GraphicMobile:o,newBadge:r}){const a=(0,c.dv)();return(0,m.jsxs)(g.Fragment,{children:[a!==c.mp&&n&&(0,m.jsx)("div",{className:"googlesitekit-overlay-card__graphic",children:(0,m.jsx)(n,{})}),(0,m.jsxs)("div",{className:"googlesitekit-overlay-card__body",children:[r&&(0,m.jsx)("div",{className:"googlesitekit-overlay-card__badge",children:(0,m.jsx)(d.A,{hasNoSpacing:!0})}),e&&(0,m.jsx)(Title,{children:e}),t&&(0,m.jsx)(Description,{children:t})]}),(i||s)&&(0,m.jsxs)("div",{className:"googlesitekit-overlay-card__actions",children:[s&&(0,m.jsx)(DismissButton,{...s}),i&&(0,m.jsx)(CTAButton,{...i})]}),a===c.mp&&o&&(0,m.jsx)(o,{})]})}function OverlayCard(e){const{visible:t,className:i,...s}=e,n=(0,c.dv)();if(!t)return null;const o=(0,m.jsx)("div",{className:l()("googlesitekit-overlay-card",i),children:(0,m.jsx)(Body,{...s})});return n===c.mp?o:(0,m.jsx)(r.A,{direction:"up",in:t,children:o})}Title.propTypes={children:n().node.isRequired},Body.propTypes={title:n().node,description:n().node,ctaButton:n().shape({...h,href:n().string,target:n().string,trailingIcon:n().element}),dismissButton:n().shape({...h}),GraphicDesktop:n().elementType,GraphicMobile:n().elementType,newBadge:n().bool},OverlayCard.propTypes={className:n().string,title:n().string,description:n().oneOfType([n().string,n().object]),ctaButton:n().shape({...h,href:n().string,target:n().string,trailingIcon:n().object}),dismissButton:n().shape(h),GraphicDesktop:n().elementType,GraphicMobile:n().elementType,newBadge:n().bool,visible:n().bool},OverlayCard.defaultProps={visible:!1};var f=i(8732),k=i(68761);function OverlayNotification({notificationID:e,ctaButton:t,dismissButton:i,gaTrackingEventArgs:s,...n}){const r=(0,k.A)(e,s?.category,{confirmAction:s?.confirmAction,dismissAction:s?.dismissAction}),{dismissNotification:a}=(0,o.useDispatch)(f.D);const{dismissOnClick:l,dismissOptions:c,...g}=t||{};const d=t?{...g,onClick:async function(i){r.confirm(s?.label,s?.value),await(t?.onClick?.(i)),l&&a(e,{...c})}}:void 0;return(0,m.jsx)(OverlayCard,{ctaButton:d,dismissButton:{...i,onClick:async function(t){await(i?.onClick?.(t)),r.dismiss(s?.label,s?.value),a(e,{...i.dismissOptions})}},...n,visible:!0})}OverlayNotification.propTypes={notificationID:n().string,ctaButton:n().object,dismissButton:n().oneOfType([n().object,n().bool])}},72050(e,t,i){i.d(t,{A:()=>SetupCTA});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(63696),l=i(49383),c=i(50539),g=i(83891),d=i(71189),u=i(61983),p=i(41671),m=i(8732),h=i(68761),_=i(10740),f=i(62540);function SetupCTA({notificationID:e,title:t,description:i,errorText:s,helpText:o,learnMoreLink:r,dismissButton:d,ctaButton:u,svg:p,footer:k,gaTrackingEventArgs:y,waitingProgress:v,...A}){const x=(0,h.A)(e,y?.category),{dismissNotification:b}=(0,c.useDispatch)(m.D);return(0,f.jsxs)(a.Fragment,{children:[!!v&&(0,f.jsx)(l.ProgressBar,{className:"googlesitekit-banner__progress-bar",...v}),(0,f.jsx)("div",{className:n()("googlesitekit-widget-context",{"googlesitekit-widget-context--with-progress-bar":!!v}),children:(0,f.jsx)(_.xA,{children:(0,f.jsx)(_.fI,{children:(0,f.jsx)(_.fh,{size:12,children:(0,f.jsx)(g.A,{className:"googlesitekit-banner--setup-cta",title:t,description:i,errorText:s,helpText:o,learnMoreLink:r&&{...r,onClick:async function(e){x.clickLearnMore(y?.label,y?.value),await(r?.onClick?.(e))}},dismissButton:d&&{...d,onClick:async function(t){await(d?.onClick?.(t)),x.dismiss(y?.label,y?.value),b(e,{...d?.dismissOptions})}},ctaButton:u&&{...u,onClick:async function(t){x.confirm(y?.label,y?.value),await(u?.onClick?.(t)),u?.dismissOnClick&&b(e,{...u?.dismissOptions})}},svg:p,footer:k,...A})})})})})]})}SetupCTA.propTypes={notificationID:r().string,title:r().string,description:r().oneOfType([r().string,r().node]),errorText:r().string,helpText:r().string,learnMoreLink:r().shape(p.A.propTypes),dismissButton:r().shape(u.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,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:()=>o,FQ:()=>r,He:()=>l,bI:()=>a,rq:()=>n,ui:()=>s});const s="warning-notification-gtg",n="gtg-setup-cta",o="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,{$:()=>o,D:()=>n});var s=i(20697);const n="core/notifications",o=[s.uR,s.jU,s.f7,s.Ax,s.Is]},68761(e,t,i){i.d(t,{A:()=>r});var s=i(63696),n=i(62659),o=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,n.A)(),g=t??`${c}_${e}`;return{view:(0,s.useCallback)((...e)=>(0,o.sx)(g,i,...e),[g,i]),confirm:(0,s.useCallback)((...e)=>(0,o.sx)(g,r,...e),[g,r]),dismiss:(0,s.useCallback)((...e)=>(0,o.sx)(g,a,...e),[g,a]),clickLearnMore:(0,s.useCallback)((...e)=>(0,o.sx)(g,l,...e),[g,l])}}},79754(e,t,i){i.d(t,{A:()=>WidgetNull});var s=i(62688),n=i.n(s),o=i(64515),r=i(96820),a=i(62540);const l={};function WidgetNull({widgetSlug:e}){return(0,r.A)(e,o.A,l),(0,a.jsx)(o.A,{})}WidgetNull.propTypes={widgetSlug:n().string.isRequired,...o.A.propTypes}},79266(e,t,i){i.d(t,{A:()=>WidgetRecoverableModules});var s=i(62688),n=i.n(s),o=i(63696),r=i(97591),a=i(96820),l=i(62540);function WidgetRecoverableModules({widgetSlug:e,moduleSlugs:t,...i}){const s=(0,o.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:n().string.isRequired,...r.A.propTypes}},4169(e,t,i){i.d(t,{N$:()=>n,aO:()=>o,qB:()=>s});const s={BOXES:"boxes",COMPOSITE:"composite"},n={QUARTER:"quarter",HALF:"half",FULL:"full"},o="core/widgets"},69908(e,t,i){i.r(t),i.d(t,{AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:()=>d,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:()=>p,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:()=>u,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:()=>g,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:()=>a,AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:()=>s,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:()=>c,AREA_MAIN_DASHBOARD_SITE_GOALS_PRIMARY:()=>n,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:()=>l,AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION:()=>r,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:()=>o,default:()=>m});const s="mainDashboardKeyMetricsPrimary",n="mainDashboardSiteGoalsPrimary",o="mainDashboardTrafficPrimary",r="mainDashboardTrafficAudienceSegmentation",a="mainDashboardContentPrimary",l="mainDashboardSpeedPrimary",c="mainDashboardMonetizationPrimary",g="entityDashboardTrafficPrimary",d="entityDashboardContentPrimary",u="entityDashboardSpeedPrimary",p="entityDashboardMonetizationPrimary",m={AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:s,AREA_MAIN_DASHBOARD_SITE_GOALS_PRIMARY:n,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:o,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:a,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:l,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:c,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:g,AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:d,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:u,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:p}},59352(e,t,i){i.r(t),i.d(t,{CONTEXT_ENTITY_DASHBOARD_CONTENT:()=>g,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:()=>u,CONTEXT_ENTITY_DASHBOARD_SPEED:()=>d,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:()=>c,CONTEXT_MAIN_DASHBOARD_CONTENT:()=>r,CONTEXT_MAIN_DASHBOARD_KEY_METRICS:()=>s,CONTEXT_MAIN_DASHBOARD_MONETIZATION:()=>l,CONTEXT_MAIN_DASHBOARD_SITE_GOALS:()=>n,CONTEXT_MAIN_DASHBOARD_SPEED:()=>a,CONTEXT_MAIN_DASHBOARD_TRAFFIC:()=>o,default:()=>p});const s="mainDashboardKeyMetrics",n="mainDashboardSiteGoals",o="mainDashboardTraffic",r="mainDashboardContent",a="mainDashboardSpeed",l="mainDashboardMonetization",c="entityDashboardTraffic",g="entityDashboardContent",d="entityDashboardSpeed",u="entityDashboardMonetization",p={CONTEXT_MAIN_DASHBOARD_KEY_METRICS:s,CONTEXT_MAIN_DASHBOARD_SITE_GOALS:n,CONTEXT_MAIN_DASHBOARD_TRAFFIC:o,CONTEXT_MAIN_DASHBOARD_CONTENT:r,CONTEXT_MAIN_DASHBOARD_SPEED:a,CONTEXT_MAIN_DASHBOARD_MONETIZATION:l,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:c,CONTEXT_ENTITY_DASHBOARD_CONTENT:g,CONTEXT_ENTITY_DASHBOARD_SPEED:d,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:u}},96820(e,t,i){i.d(t,{A:()=>r});var s=i(63696),n=i(50539),o=i(4169);function r(e,t,i){const{setWidgetState:r,unsetWidgetState:a}=(0,n.useDispatch)(o.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),n=i(15118),o=i(4169);const r={[o.N$.QUARTER]:3,[o.N$.HALF]:6,[o.N$.FULL]:12},a="googlesitekit-hidden",l=[n.A,s.A]},21213(e,t,i){i.d(t,{c1:()=>y,V8:()=>x,WP:()=>A});var s=i(50532),n=i.n(s),o=i(63696),r=i(78422),a=i(79754),l=i(79266),c=i(62688),g=i.n(c),d=i(44192),u=i(62540);function WidgetReportError({widgetSlug:e,...t}){return(0,u.jsx)(d.A,{...t})}WidgetReportError.propTypes={widgetSlug:g().string.isRequired,...d.A.propTypes};var p=i(15118),m=i(96820);function WidgetReportZero({widgetSlug:e,moduleSlug:t,...i}){const s=(0,o.useMemo)(()=>({moduleSlug:t}),[t]);return(0,m.A)(e,p.A,s),(0,u.jsx)(p.A,{moduleSlug:t,...i})}WidgetReportZero.propTypes={widgetSlug:g().string.isRequired,...p.A.propTypes};var h=i(17064),_=i(52684),f=i(50539),k=i(7972);function WPDashboardReportError({moduleSlug:e,error:t}){const i=(0,_.A)(WPDashboardReportError,"WPDashboardReportError"),{setValue:s}=(0,f.useDispatch)(k.nX),n=t.message,o=(0,f.useSelect)(t=>t(k.nX).getValue(`WPDashboardReportError-${e}-${n}`));return(0,h.A)(()=>{s(`WPDashboardReportError-${e}-${n}`,i)},()=>{s(`WPDashboardReportError-${e}-${n}`,void 0)}),o!==i?null:(0,u.jsx)(d.A,{moduleSlug:e,error:t})}WPDashboardReportError.propTypes={moduleSlug:g().string.isRequired,error:g().object.isRequired};const y=n()(e=>({widgetSlug:e,Widget:v(e)(r.A),WidgetRecoverableModules:v(e)(l.A),WidgetReportZero:v(e)(WidgetReportZero),WidgetReportError:v(e)(WidgetReportError),WidgetNull:v(e)(a.A)}));function v(e){return t=>{const i=(0,o.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 A(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 x(e){return t=>{function DecoratedComponent(i){return(0,u.jsx)(t,{...i,WPDashboardReportError:v(e)(WPDashboardReportError)})}return DecoratedComponent.displayName="WithWPDashboardWidgetComponentProps",(t.displayName||t.name)&&(DecoratedComponent.displayName+=`(${t.displayName||t.name})`),DecoratedComponent}}},96177(e,t,i){i.d(t,{Y2:()=>s.Y2,DO:()=>g,c1:()=>d.c1,X9:()=>l,JS:()=>o,T5:()=>u,WP:()=>d.WP});var s=i(33494),n=i(64515);function o(e){return!!e&&e.Component===n.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 n=[];if(!e?.length)return{columnWidths:i,rowIndexes:n};let l=0,c=0;function g({counter:e},{counter:t}){return e-t}function d({counter:e},{counter:t}){return t-e}function u({counter:e}){return e<=12}return e.forEach((p,m)=>{if(o(t[p.slug]))return i.push(0),void n.push(c);let h=a(l,p);const _=function(e,t,i){for(;++e12?(l-=s.Gr[f],n[m]++,9===l&&([i,l]=r(i,l)),l=s.Gr[f],c++):12===l&&(l=0,c++),i.push(s.Gr[f])}),9===l&&([i,l]=r(i,l)),{columnWidths:i,rowIndexes:n}}var c=i(17243);function g(e,t,{columnWidths:i,rowIndexes:n}){const o=[],r=[...i];if(!e?.length)return{gridColumnWidths:r,overrideComponents:o};let a=null,l=-1,g=[];if(function(e,t){const i={};for(let n=0;n1)}(e,t)){const i=Array.from({length:e.length-1}).fill(0);return{overrideComponents:[t[e[0].slug]],gridColumnWidths:[12,...i]}}return e.forEach((s,d)=>{if(o.push(null),a=t[s.slug],l=n[d],a)if(u=a,p=t[e[d+1]?.slug],m=l,h=n[d+1],m===h&&(0,c.isEqual)(u,p))g.push(i[d]),r[d]=0;else if(g.length>0){g.push(i[d]);const e=g.reduce((e,t)=>e+t,0);o[d]=a,r[d]=e,g=[]}var u,p,m,h}),{gridColumnWidths:r,overrideComponents:o}}var d=i(21213);function u(e){return(Array.isArray(e)?e:[e]).filter(e=>"string"==typeof e&&e.length>0)}},65929(e,t,i){i.d(t,{A:()=>u});var s=i(63696),n=i(50539),o=i(49993),r=i(70301),a=i(29785),l=i(97345),c=i(88273),g=i(65054),d=i(62659);function u(e){const t=(0,d.A)(),i=(0,n.useSelect)(t=>t(c.i).getModule(e)),u=(0,n.useSelect)(e=>e(l.oR).hasCapability(l.HD)),{activateModule:p}=(0,n.useDispatch)(c.i),{navigateTo:m}=(0,n.useDispatch)(r.M),{setInternalServerError:h}=(0,n.useDispatch)(a.O4),_=(0,s.useCallback)(async()=>{const{error:i,response:s}=await p(e);i?h({id:`${e}-setup-error`,description:i.message}):(await(0,g.sx)(`${t}_widget-activation-cta`,"activate_module",e),await(0,o.SO)("module_setup",e,{ttl:300}),m(s.moduleReauthURL))},[p,e,m,h,t]);return i?.name&&u?_:null}},69831(e,t,i){i.d(t,{A:()=>l});var s=i(63696),n=i(50539),o=i(70301),r=i(97345),a=i(88273);function l(e){const t=(0,n.useSelect)(e=>e(r.oR).hasCapability(r.HD)),i=(0,n.useSelect)(t=>t(a.i).getModuleStoreName(e)),l=(0,n.useSelect)(e=>e(i)?.getAdminReauthURL()),{navigateTo:c}=(0,n.useDispatch)(o.M),g=(0,s.useCallback)(()=>c(l),[l,c]);return l&&t?g:null}},7551(e,t,i){i.d(t,{Ay:()=>a,Oo:()=>o,oE:()=>r});var s=i(20697),n=i(62659);const o=s.jU,r=s.f7;function a(){const e=(0,n.A)();return e===s.jU||e===s.Ax?o:e===s.f7||e===s.Is?r:null}},7076(e,t,i){i.d(t,{d:()=>r});var s=i(17243),n=i(18117),o=i(63696);function r(...e){const t=(0,n.MA)(()=>(0,s.debounce)(...e),e);return(0,o.useEffect)(()=>()=>t.cancel(),[t]),t}},30805(e,t,i){i.d(t,{i:()=>r});var s=i(63696),n=i(79961),o=i(84895);function r(e){const t=(0,s.useContext)(n.A);return(0,o.G)(e,t)}},68832(e,t,i){i.d(t,{A:()=>a});var s=i(63737),n=i(35470),o=i(63696),r=i(11999);function a(e,t){const{setValues:i}=(0,s.A)(r.s),a=(0,o.useCallback)(s=>{i(e,{[t]:s})},[i,e,t]);return[(0,n.A)(i=>{const{getValue:s}=i(r.s);return s(e,t)},[e,t]),a]}},85097(e,t,i){i.d(t,{W:()=>l});var s=i(79257),n=i(35470),o=i(63696),r=i(52735),a=i(7972);function l({sticky:e=!1}={}){const t=(0,o.useContext)(r.A),[i,l]=(0,o.useState)(!1),c=(0,n.A)(e=>e(a.nX).getInViewResetCount()),g=(0,n.A)(e=>e(a.nX).getValue("forceInView"));return(0,o.useEffect)(()=>{t.value&&!i&&l(!0)},[i,t,l]),(0,o.useEffect)(()=>{g&&l(!0)},[g]),(0,s.A)(()=>{l(!1)},[c]),!(!e||!i)||!!t.value}},52721(e,t,i){i.d(t,{w:()=>a});var s=i(35470),n=i(63696),o=i(85097);function r(){}function a(e,t){const i=(0,o.W)({sticky:!0}),a=(0,n.useRef)(),l=(0,n.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:()=>n});var s=i(78174);function n(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,n]=(0,s.useState)(null);return(0,s.useEffect)(()=>{if(e.current&&"function"==typeof globalThis.IntersectionObserver){function i(e){n(e[e.length-1])}const s=new globalThis.IntersectionObserver(i,t);return s.observe(e.current),()=>{n(null),s.disconnect()}}return()=>{}},[e.current,t.threshold,t.root,t.rootMargin]),i}},5924(e,t,i){i.d(t,{A:()=>l});var s=i(15844),n=i(50539),o=i(76729),r=i(7972),a=i(37467);function l(){const[e,t]=(0,a.A)("panel"),{setValue:i}=(0,n.useDispatch)(r.nX);(0,s.A)(()=>{"email-reporting"===e&&(i(o.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),n=i(51568),o=i(82286);const __WEBPACK_DEFAULT_EXPORT__=function(e,t,i=globalThis){const[r,a]=(0,s.useState)((0,o.d)(i.location.href,e)||t);return[r,function(t){a(t);const s=(0,n.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),n=i(19826);const __WEBPACK_DEFAULT_EXPORT__=function(){return(0,s.useContext)(n.Ay)}},4124(e,t,i){i.d(t,{A:()=>o});var s=i(20697),n=i(62659);function o(){const e=(0,n.A)();return s.Nn.includes(e)}},10740(e,t,i){i.d(t,{$z:()=>s.$,CR:()=>n.C,Cf:()=>r.DialogContent,Es:()=>r.DialogFooter,Nv:()=>l.N,P3:()=>c.P,Si:()=>o.S,fI:()=>g.fI,fh:()=>g.fh,lG:()=>a.a,xA:()=>g.xA});var s=i(3412),n=i(56655),o=i(30454),r=i(12786),a=i.n(r),l=i(91046),c=i(26569),g=i(14777)},81597(e,t,i){i.d(t,{I:()=>s});const s="ads"},58718(e,t,i){i.d(t,{CX:()=>n,Py:()=>r,SM:()=>s,kj:()=>o});const s="adsense-connect-cta",n="adsense-connect-cta-tooltip-state",o="adsense-ga4-top-earnings-notice",r="adsense"},79506(e,t,i){i.d(t,{A:()=>AudienceErrorModal});var s=i(62688),n=i.n(s),o=i(13606),r=i(82871),a=i(50539),l=i(38432),c=i(94656),g=i(82246),d=i(29785),u=i(99893),p=i(13047),m=i(13137),h=i(62540);function AudienceErrorModal({apiErrors:e,hasOAuthError:t,inProgress:i,title:s,description:n,trackEventCategory:_,onCancel:f=()=>{},onRetry:k=()=>{}}){const y=Array.isArray(e)?e:[e],v=(0,a.useSelect)(e=>e(d.O4).getErrorTroubleshootingLinkURL({code:"analytics-4_insufficient_permissions"})),A=(0,a.useSelect)(e=>e(u.K9).getServiceEntityAccessURL()),x=(0,a.useSelect)(e=>e(d.O4).getErrorTroubleshootingLinkURL({code:"access_denied"}));if(!y.length&&!t)return null;const b=y.some(e=>(0,m.SG)(e));let I,j,M,S;return t?(I=(0,r.__)("Analytics update failed","google-site-kit"),j=(0,o.A)((0,r.__)("Setup was interrupted because you did not grant the necessary permissions. ","google-site-kit"),{HelpLink:(0,h.jsx)(l.A,{href:x,external:!0,hideExternalIndicator:!0,children:(0,r.__)("Get help","google-site-kit")})}),M=(0,r.__)("Retry","google-site-kit")):b?(I=(0,r.__)("Insufficient permissions","google-site-kit"),j=(0,o.A)((0,r.__)("You’ll need to contact your administrator. Trouble getting access? ","google-site-kit"),{HelpLink:(0,h.jsx)(l.A,{href:v,external:!0,hideExternalIndicator:!0,children:(0,r.__)("Get help","google-site-kit")})}),M=(0,r.__)("Request access","google-site-kit"),S=A):(I=s||(0,r.__)("Failed to set up visitor groups","google-site-kit"),j=n||(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)(g.A,{buttonLink:S,title:I,subtitle:j,handleConfirm:function(){let e;e=t?"auth_error_retry":b?"insufficient_permissions_error_request_access":"setup_error_retry",(0,p.sx)(_,e).finally(()=>{b||k()})},confirmButton:M,handleCancel:function(){let e;e=t?"auth_error_cancel":b?"insufficient_permissions_error_cancel":"setup_error_cancel",(0,p.sx)(_,e).finally(f)},onOpen:()=>{let e;e=t?"auth_error":b?"insufficient_permissions_error":"setup_error",(0,p.sx)(_,e)},onClose:f,inProgress:i,refocusQuerySelector:"#audience_segmentation_setup_cta-notification .googlesitekit-banner__cta",danger:!0,dialogActive:!0})})}AudienceErrorModal.propTypes={apiErrors:n().oneOfType([n().arrayOf(n().object),n().object,n().array]),hasOAuthError:n().bool,inProgress:n().bool,title:n().string,description:n().string,trackEventCategory:n().string,onCancel:n().func,onRetry:n().func}},92914(e,t,i){i.d(t,{W:()=>I,A:()=>IntroductoryOverlayNotification});var s,n,o=i(62688),r=i.n(o),a=i(82871),l=i(50539),c=i(33903),g=i(8732),d=i(97513),u=i(62659),p=i(11883),m=i(63696);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;tm.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 296 163"},e),s||(s=m.createElement("g",{clipPath:"url(#audience-segmentation-introductory-graphic-desktop_svg__a)"},m.createElement("path",{fill:"#B8E6CA",d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0z"}),m.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-desktop_svg__b)"},m.createElement("rect",{width:153,height:174,x:-10,y:25,fill:"#fff",rx:11})),m.createElement("rect",{width:53.016,height:9.516,x:9.031,y:110.641,fill:"#EBEEF0",rx:4.758}),m.createElement("rect",{width:19.031,height:9.516,x:9.031,y:95.688,fill:"#EBEEF0",rx:4.758}),m.createElement("rect",{width:19.031,height:9.516,x:9.031,y:148.703,fill:"#EBEEF0",rx:4.758}),m.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"}),m.createElement("rect",{width:36,height:9,x:9,y:46,fill:"#EBEEF0",rx:4.5}),m.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"}),m.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-desktop_svg__c)"},m.createElement("rect",{width:153,height:174,x:152,y:25,fill:"#fff",rx:11})),m.createElement("rect",{width:52.805,height:9.516,x:170.955,y:110.641,fill:"#EBEEF0",rx:4.758}),m.createElement("rect",{width:18.956,height:9.516,x:170.955,y:95.688,fill:"#EBEEF0",rx:4.758}),m.createElement("rect",{width:18.956,height:9.516,x:170.955,y:148.703,fill:"#EBEEF0",rx:4.758}),m.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"}),m.createElement("rect",{width:36,height:9,x:171,y:46,fill:"#EBEEF0",rx:4.5}),m.createElement("path",{stroke:"#EBEEF0",strokeWidth:2,d:"M295 73.5H152"}),m.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"}),m.createElement("path",{stroke:"#EBEEF0",strokeWidth:2,d:"M143 73.5H0"}))),n||(n=m.createElement("defs",null,m.createElement("filter",{id:"audience-segmentation-introductory-graphic-desktop_svg__b",width:185,height:206,x:-26,y:13,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.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"}),m.createElement("feOffset",{dy:4}),m.createElement("feGaussianBlur",{stdDeviation:8}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),m.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1395_20972"}),m.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1395_20972",result:"shape"})),m.createElement("filter",{id:"audience-segmentation-introductory-graphic-desktop_svg__c",width:185,height:206,x:136,y:13,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.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"}),m.createElement("feOffset",{dy:4}),m.createElement("feGaussianBlur",{stdDeviation:8}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),m.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1395_20972"}),m.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1395_20972",result:"shape"})),m.createElement("clipPath",{id:"audience-segmentation-introductory-graphic-desktop_svg__a"},m.createElement("path",{fill:"#fff",d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0z"})))));var f,k,y,v;function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;tm.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 343 123"},e),m.createElement("g",{clipPath:"url(#audience-segmentation-introductory-graphic-mobile_svg__a)"},f||(f=m.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"})),m.createElement("mask",{id:"audience-segmentation-introductory-graphic-mobile_svg__b",width:295,height:203,x:24,y:5,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},k||(k=m.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=m.createElement("g",{mask:"url(#audience-segmentation-introductory-graphic-mobile_svg__b)"},m.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-mobile_svg__c)"},m.createElement("rect",{width:100.401,height:136.493,x:71.449,y:21.433,fill:"#fff",rx:7.218})),m.createElement("rect",{width:34.79,height:6.244,x:83.941,y:77.631,fill:"#EBEEF0",rx:3.122}),m.createElement("rect",{width:12.489,height:6.244,x:83.941,y:67.819,fill:"#EBEEF0",rx:3.122}),m.createElement("rect",{width:12.489,height:6.244,x:83.941,y:99.983,fill:"#EBEEF0",rx:3.122}),m.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"}),m.createElement("rect",{width:23.624,height:5.906,x:83.926,y:35.213,fill:"#EBEEF0",rx:2.953}),m.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"}),m.createElement("rect",{width:36.574,height:6.244,x:83.043,y:109.796,fill:"#EBEEF0",rx:3.122}),m.createElement("path",{stroke:"#EBEEF0",strokeWidth:1.312,d:"M171.848 53.259H72.103"}),m.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-mobile_svg__d)"},m.createElement("rect",{width:100.401,height:136.493,x:184.973,y:21.433,fill:"#fff",rx:7.218})),m.createElement("rect",{width:34.652,height:6.244,x:197.414,y:77.631,fill:"#EBEEF0",rx:3.122}),m.createElement("rect",{width:12.439,height:6.244,x:197.414,y:67.819,fill:"#EBEEF0",rx:3.122}),m.createElement("rect",{width:12.439,height:6.244,x:197.41,y:99.983,fill:"#EBEEF0",rx:3.122}),m.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"}),m.createElement("rect",{width:23.624,height:5.906,x:197.449,y:35.213,fill:"#EBEEF0",rx:2.953}),m.createElement("path",{stroke:"#EBEEF0",strokeWidth:1.312,d:"M278.82 53.259h-93.838"}),m.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"}),m.createElement("rect",{width:36.429,height:6.244,x:196.523,y:109.796,fill:"#EBEEF0",rx:3.122})))),v||(v=m.createElement("defs",null,m.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"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.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"}),m.createElement("feOffset",{dy:4}),m.createElement("feGaussianBlur",{stdDeviation:8}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),m.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2898_16651"}),m.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2898_16651",result:"shape"})),m.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"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.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"}),m.createElement("feOffset",{dy:4}),m.createElement("feGaussianBlur",{stdDeviation:8}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),m.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2898_16651"}),m.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2898_16651",result:"shape"})),m.createElement("clipPath",{id:"audience-segmentation-introductory-graphic-mobile_svg__a"},m.createElement("path",{fill:"#fff",d:"M0 0h343v128H0z"})))));var b=i(62540);const I="audienceSegmentationIntroductoryOverlayNotification";function IntroductoryOverlayNotification({id:e,Notification:t}){const i=(0,u.A)(),s=(0,d.dv)(),{dismissNotification:n}=(0,l.useDispatch)(g.D);const o={category:`${i}_audiences-secondary-user-intro`};return(0,b.jsx)(t,{gaTrackingEventArgs:o,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:_,GraphicMobile:x,ctaButton:{label:(0,a.__)("Show me","google-site-kit"),onClick:function(t){t.preventDefault(),setTimeout(()=>{globalThis.scrollTo({top:(0,p.YJ)(".googlesitekit-widget-area--mainDashboardTrafficAudienceSegmentation",s),behavior:"smooth"})},0),n(e)}},dismissButton:{label:(0,a.__)("Got it","google-site-kit")},gaTrackingEventArgs:o})})}IntroductoryOverlayNotification.propTypes={id:r().string.isRequired,Notification:r().elementType.isRequired}},5343(e,t,i){i.d(t,{Z:()=>C,A:()=>T});var s=i(62688),n=i.n(s),o=i(39016),r=i(63696),a=i(82871),l=i(50539),c=i(17443),g=i(75649),d=i(29785),u=i(97345),p=i(72050),m=i(84730),h=i(8732),_=i(96177),f=i(68832),k=i(62659),y=i(79506),v=i(22942),A=i(99893),x=i(23403),b=i(13047),I=i(65385);var j=i(3749),M=i(92917),S=i(97513),N=i(11883),E=i(62540);const w="setup-success-notification-audiences";function SetupSuccessSubtleNotification({id:e,Notification:t}){const i=(0,S.dv)(),{dismissNotification:s}=(0,l.useDispatch)(h.D),n=(0,l.useSelect)(e=>e(u.oR).isAudienceSegmentationWidgetHidden());return(0,r.useEffect)(()=>{n&&s(w)},[s,n]),void 0===n?null:(0,E.jsx)(t,{children:(0,E.jsx)(M.A,{notificationID:e,type:j.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(w),setTimeout(()=>{globalThis.scrollTo({top:(0,N.YJ)(".googlesitekit-widget-area--mainDashboardTrafficAudienceSegmentation",i),behavior:"smooth"})},50)}},dismissButton:!0})})}SetupSuccessSubtleNotification.propTypes={id:n().string.isRequired,Notification:n().elementType.isRequired};const C="audience_segmentation_setup_cta-notification";function SetupCTABanner({id:e,Notification:t}){const i=(0,k.A)(),s=`${i}_audiences-setup-cta-dashboard`,{dismissNotification:n,registerNotification:o,pinNotification:_}=(0,l.useDispatch)(h.D),v={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")},I=(0,c.i)(v),j=(0,l.useSelect)(t=>t(h.D).isNotificationDismissalFinal(e)),M=(0,g.A)({isDismissalFinal:j}),[S,N]=(0,f.A)(A.PW,"autoSubmit"),[C,T]=(0,r.useState)(!1),D=(0,r.useCallback)(()=>{o(w,{Component:SetupSuccessSubtleNotification,areaSlug:m.bI.DASHBOARD_TOP}),n(e)},[o,n,e]),R=(0,r.useCallback)(()=>{T(!0)},[T]),L=(0,r.useCallback)(()=>_(e,m.He.SETUP_CTAS),[e,_]),{apiErrors:z,failedAudiences:O,isSaving:P,onEnableGroups:B}=(0,x.A)({onSuccess:D,onError:R,onOAuthNavigation:L}),{clearPermissionScopeError:U}=(0,l.useDispatch)(u.oR),{setSetupErrorCode:G}=(0,l.useDispatch)(d.O4),W=(0,r.useCallback)(()=>{N(!1),U(),G(null),T(!1)},[U,G,N]),V=(0,l.useSelect)(e=>e(d.O4).getSetupErrorCode()),F=(0,l.useSelect)(e=>e(d.O4).getDocumentationLinkURL("visitor-groups")),H=S&&"access_denied"===V,Y={gaTrackingEventArgs:{category:s}};return(0,E.jsxs)(r.Fragment,{children:[(0,E.jsx)(t,{...Y,children:(0,E.jsx)(p.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:F},ctaButton:{label:P?(0,a.__)("Enabling groups","google-site-kit"):(0,a.__)("Enable groups","google-site-kit"),onClick:B,disabled:P,inProgress:P},dismissButton:{label:M,onClick:I,disabled:P,dismissOptions:{expiresInSeconds:j?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}})}),(C||H)&&(0,E.jsx)(y.A,{hasOAuthError:H,apiErrors:z.length?z:O,onRetry:B,inProgress:P,onCancel:H?W:()=>T(!1),trackEventCategory:`${i}_audiences-setup`})]})}SetupCTABanner.propTypes={id:n().string,Notification:n().elementType};const T=(0,o.A)((0,I.A)({moduleName:v.L1}),(0,_.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),n=i(17243),o=i(62688),r=i.n(o),a=i(63696),l=i(50539),c=i(7972),g=i(62659),d=i(82871);const u="audience-segmentation-info-notice-ui",p="audience-segmentation-info-notice",m=[{slug:"new-visitors",content:(0,d.__)("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,d.__)("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,d.__)("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,d.__)("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,d.__)("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,d.__)("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,d.__)("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,k,y,v,A,x,b,I,j,M,S=i(22942),N=i(13047),E=i(13137),w=i(65385),C=i(30289),T=i(33052),D=i(97513),R=i(10740);function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",L({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"}}),_||(_=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"})),f||(f=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"})),k||(k=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"})),v||(v=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"})),A||(A=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"})),x||(x=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"})),I||(I=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"})),j||(j=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 O=i(49383),P=i(1641),B=i(83880),U=i(13606),G=i(38432),W=i(62540);function GetHelpLink({linkURL:e}){return(0,U.A)((0,d.__)("Contact your administrator. Trouble getting access? ","google-site-kit"),{HelpLink:(0,W.jsx)(G.A,{href:e,external:!0,hideExternalIndicator:!0,children:(0,d.__)("Get help","google-site-kit")})})}function ErrorWidgetDetails({failedAudiences:e,showRetryButton:t,onRetry:i,onRequestAccess:s,errors:n,hasInsufficientPermissionsError:o}){return e?.length?(0,W.jsxs)("div",{children:[(0,W.jsx)(B.A,{children:(0,d.__)("Failed to create the following audiences:","google-site-kit")}),(0,W.jsx)("ul",{className:"googlesitekit-widget-audience-segmentation-error__failed-audiences",children:e.map(e=>(0,W.jsx)("li",{children:e},e))}),(0,W.jsx)(O.Button,{onClick:i,danger:!0,children:(0,d.__)("Retry","google-site-kit")})]}):t&&i?(0,W.jsx)(O.Button,{onClick:i,danger:!0,children:(0,d.__)("Retry","google-site-kit")}):(0,W.jsx)(P.A,{moduleSlug:"analytics-4",error:n,GetHelpLink:o?GetHelpLink:void 0,hideGetHelpLink:!o,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:n,failedAudiences:o},r)=>{const a=(0,D.dv)(),l=a===D.mp,c=a===D.Lg,g=t.some(E.SG);return(0,W.jsx)(e,{ref:r,className:"googlesitekit-audience-segmentation-error-widget",noPadding:!0,children:(0,W.jsx)(R.xA,{className:"googlesitekit-audience-segmentation-error__widget-primary-cell",collapsed:!0,children:(0,W.jsxs)(R.fI,{children:[(0,W.jsxs)(R.fh,{smSize:6,mdSize:8,lgSize:7,children:[(0,W.jsx)(T.A,{as:"h3",type:"title",size:"large",children:g?(0,d.__)("Insufficient permissions","google-site-kit"):(0,d.__)("Your visitor groups data loading failed","google-site-kit")}),(0,W.jsx)("div",{className:"googlesitekit-widget-audience-segmentation-error__actions",children:(0,W.jsx)(ErrorWidgetDetails,{failedAudiences:o,showRetryButton:n,onRetry:i,onRequestAccess:s,errors:t,hasInsufficientPermissionsError:g})})]}),!l&&!c&&(0,W.jsx)(R.fh,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",smSize:6,mdSize:3,lgSize:5,children:(0,W.jsx)(z,{width:"233px"})}),c&&(0,W.jsx)(R.fh,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",mdSize:8,children:(0,W.jsx)(z,{width:"233px"})}),l&&(0,W.jsx)(R.fh,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",smSize:8,children:(0,W.jsx)(z,{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 F=V,H=(0,C.A)(F);function AudienceSegmentationErrorWidget({Widget:e,errors:t,onRetry:i,showRetryButton:s,failedAudiences:o}){const r=(0,g.A)(),{setValue:d}=(0,l.useDispatch)(c.nX),p=t?(0,n.castArray)(t):[],m=p.some(E.SG);return(0,a.useEffect)(()=>{d(u,!0)},[d]),(0,W.jsx)(H,{Widget:e,errors:p,onRetry:function(){(0,N.sx)(`${r}_audiences-all-tiles`,"data_loading_error_retry").finally(()=>{d(u,!1),i?.()})},failedAudiences:o,onRequestAccess:()=>{(0,N.sx)(`${r}_audiences-all-tiles`,"insufficient_permissions_error_request_access")},showRetryButton:s,onInView:()=>{const e=m?"insufficient_permissions_error":"data_loading_error";(0,N.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 Y=(0,w.A)({moduleName:S.L1})(AudienceSegmentationErrorWidget);i(92914),i(5343);var q=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},n)=>(0,W.jsxs)("div",{ref:n,className:X()("googlesitekit-lean-cta-banner",e),children:[(0,W.jsxs)("div",{className:"googlesitekit-lean-cta-banner__body",children:[i&&(0,W.jsx)("div",{className:"googlesitekit-lean-cta-banner__body-icon",children:(0,W.jsx)(i,{width:"32",height:"32"})}),(0,W.jsx)("div",{className:"googlesitekit-lean-cta-banner__body-content",children:t})]}),s&&(0,W.jsx)("div",{className:"googlesitekit-lean-cta-banner__graphic",children:(0,W.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 ne="audience-segmentation-add-group-notice",oe="googlesitekit-audience-selection-panel-opened",re="audience-selection-form",ae="audience-selected",le="audience-selection-changed",ce="audience-selection-dismissed-items-error",ge="audience-segmentation-creation-notice",de="audience-segmentation-creation-success-notice",ue="audience-creation-edit-scope-notice",pe="audience-creation-form";var me,he,_e,fe,ke,ye,ve,Ae,xe,be,Ie,je,Me,Se,Ne,Ee,we,Ce,Te,De,Re,Le,ze,Oe,Pe,Be,Ue,Ge,We,Ve,Fe,He,Ye,qe,Ze,Qe,Ke,Xe,$e,Je,et,tt,it,st,nt,ot,rt,at,lt,ct,gt,dt,ut,pt,mt,ht,_t,ft,kt,yt,vt,At,xt,bt,It,jt,Mt,St,Nt,Et;function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",wt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 211 109"},e),me||(me=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"})),_e||(_e=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"})),fe||(fe=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"})),ke||(ke=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"})),ve||(ve=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"})),Ae||(Ae=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"})),xe||(xe=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"})),Ie||(Ie=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"})),je||(je=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"})),Se||(Se=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"})),Ne||(Ne=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"})),Ee||(Ee=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"})),we||(we=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"})),Ce||(Ce=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"})),Le||(Le=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"})),ze||(ze=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"})),Oe||(Oe=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"})),Pe||(Pe=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.472,d:"M45.22 104.418h-4.47"})),Be||(Be=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"})),Ue||(Ue=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"})),We||(We=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"})),Fe||(Fe=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"})),Ye||(Ye=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"})),qe||(qe=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"})),nt||(nt=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"})),ot||(ot=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"})),gt||(gt=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"})),dt||(dt=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"})),pt||(pt=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"})),mt||(mt=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"})),_t||(_t=a.createElement("path",{fill:"#77AD8C",d:"m57.84 49.763-3.38 33.985 68.342 6.303 1.443-32.81z"})),ft||(ft=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"})),kt||(kt=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"})),vt||(vt=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"})),At||(At=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"})),xt||(xt=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"})),It||(It=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"})),jt||(jt=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"})),St||(St=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"})),Nt||(Nt=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"})),Et||(Et=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,g.A)(),s=(0,se.A)(),n=(0,l.useSelect)(e=>e(q.oR).didSetAudiences()),o=(0,l.useSelect)(e=>e(ie.i).getModuleIcon(S.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),p=n?"no-longer-available":"none-selected";function m(){(0,N.sx)(`${i}_audiences-no-audiences`,"select_groups",p).finally(()=>{a(oe,!0)})}return(0,W.jsxs)(J,{ref:t,className:"googlesitekit-no-audience-banner",Icon:o,SVGGraphic:Ct,children:[(0,W.jsxs)(B.A,{children:[n&&(0,U.A)((0,d.__)("It looks like your visitor groups aren’t available anymore. Select other groups.","google-site-kit"),{a:(0,W.jsx)(G.A,{onClick:m,secondary:!0})}),!n&&(0,U.A)((0,d.__)("You don’t have any visitor groups selected. Select groups.","google-site-kit"),{a:(0,W.jsx)(G.A,{onClick:m,secondary:!0})})]}),!s&&(0,W.jsx)(B.A,{children:(0,U.A)((0,d.__)("You can deactivate this widget in Settings.","google-site-kit"),{a:(0,W.jsx)(G.A,{onClick:()=>{(0,N.sx)(`${i}_audiences-no-audiences`,"change_settings",p).finally(()=>{u(r)})},secondary:!0})})})]})}),Dt=(0,C.A)(Tt);function NoAudienceBannerWidget({Widget:e,WidgetNull:t}){const i=(0,g.A)(),s=(0,l.useSelect)(e=>{const t=e(Q.K9).getOrSyncAvailableAudiences();return t?.map(e=>e.name)}),n=(0,l.useSelect)(e=>e(q.oR).getConfiguredAudiences()),o=(0,l.useSelect)(e=>e(q.oR).didSetAudiences()),r=n?.every(e=>Array.isArray(s)&&!s.includes(e));return n&&(0===n?.length||r)?(0,W.jsx)(e,{noPadding:!0,children:(0,W.jsx)(Dt,{onInView:()=>{(0,N.sx)(`${i}_audiences-no-audiences`,"view_banner",o?"no-longer-available":"none-selected")}})}):(0,W.jsx)(t,{})}NoAudienceBannerWidget.propTypes={Widget:r().elementType.isRequired,WidgetNull:r().elementType.isRequired};const Rt=(0,w.A)({moduleName:S.L1})(NoAudienceBannerWidget);var Lt=i(4751);function AudienceTileLoading(){return(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-loading",children:[(0,W.jsx)(Lt.A,{width:"100%",height:"20px"}),(0,W.jsx)(Lt.A,{width:"100%",height:"52px"}),(0,W.jsx)(Lt.A,{width:"100%",height:"52px"}),(0,W.jsx)(Lt.A,{width:"100%",height:"52px"}),(0,W.jsx)(Lt.A,{width:"100%",height:"52px"}),(0,W.jsx)(Lt.A,{width:"100%",height:"52px"}),(0,W.jsx)(Lt.A,{width:"100%",height:"52px"})]})}var zt=i(51568),Ot=i(69908),Pt=i(68832);const Bt="audience-tiles-show-error-modal";function Ut(){const e=(0,l.useSelect)(e=>e(c.nX).getValue(Bt)||!1,[]),{setValue:t}=(0,l.useDispatch)(c.nX),i=(0,a.useCallback)(e=>t(Bt,e),[t]),s=(0,l.useSelect)(e=>e(q.oR).hasScope(Q.S9),[]),{setPermissionScopeError:n,clearPermissionScopeError:o}=(0,l.useDispatch)(q.oR),{clearActionError:r}=(0,l.useDispatch)(Q.K9),{setSetupErrorCode:g}=(0,l.useDispatch)(te.O4),u=(0,l.useSelect)(e=>e(Q.K9).getPropertyID(),[]),p=(0,zt.F)(globalThis.location.href,{notification:"audience_segmentation",widgetArea:Ot.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION}),m=(0,zt.F)(globalThis.location.href,{widgetArea:Ot.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION}),[,h]=(0,Pt.A)(Q.CV,"autoSubmit"),[,_]=(0,Pt.A)(Q.CV,"isRetrying"),f=(0,a.useCallback)(({isRetrying:e}={})=>{h(!0),_(e),s||n({code:E.db,message:(0,d.__)("Additional permissions are required to create new audiences in Analytics.","google-site-kit"),data:{status:403,scopes:[Q.S9],skipModal:!0,skipDefaultErrorNotifications:!0,redirectURL:p,errorRedirectURL:m}})},[s,p,m,n,h,_]),k=(0,a.useCallback)(()=>{h(!1),_(!1),g(null),o(),r("createCustomDimension",[u,Q.Cu.googlesitekit_post_type]),i(!1)},[r,o,u,g,i,h,_]),[y]=(0,Pt.A)(Q.CV,"isAutoCreatingCustomDimensionsForAudience"),v=Q.Cu.googlesitekit_post_type.parameterName,A=(0,l.useSelect)(e=>e(Q.K9).isCreatingCustomDimension(v),[v]),x=(0,l.useSelect)(e=>e(Q.K9).isFetchingSyncAvailableCustomDimensions(),[]);return{onCreateCustomDimension:f,onCancel:k,isSaving:y||A||x,showErrorModal:e,setShowErrorModal:i}}var Gt=i(97015);const Wt=()=>{const e=(0,g.A)(),t=Q.Cu.googlesitekit_post_type.parameterName,i=(0,l.useSelect)(e=>e(Q.K9).getCreateCustomDimensionError(t),[]),[n]=(0,Pt.A)(Q.CV,"autoSubmit"),o=(0,l.useSelect)(e=>e(te.O4).getSetupErrorCode(),[]),r=!(!n||"access_denied"!==o),{onCreateCustomDimension:a,onCancel:c,isSaving:u}=Ut();return Gt.createElement(s.A,{apiErrors:[i],title:(0,d.__)("Failed to enable metric","google-site-kit"),description:(0,d.__)("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 n=i(Q.K9).getPartialDataSiteKitAudience(s);if(void 0===n)return{};const o={};n?o.newVsReturning="new-visitors"===n.audienceSlug?"new":"returning":o.audienceResourceName=s;const r=i(Q.K9).hasFinishedResolution("getReport",[{...e,dimensionFilters:{...e.dimensionFilters,...o}}]);return t[s]=r,t},{}))}function Ft(e,t){return(0,l.useSelect)(i=>t.reduce((t,s)=>{const n=i(Q.K9).getPartialDataSiteKitAudience(s);if(void 0===n)return t;const o={};n?o.newVsReturning="new-visitors"===n.audienceSlug?"new":"returning":o.audienceResourceName=s;const r=i(Q.K9).getErrorForSelector("getReport",[{...e,dimensionFilters:{...e.dimensionFilters,...o}}]);return r&&(t[s]=r),t},{}))}function Ht({isSiteKitAudiencePartialData:e,siteKitAudiences:t,otherAudiences:i}){const s=(0,l.useSelect)(e=>e(q.oR).getConfiguredAudiences()),n={audienceResourceName:s},o=(0,l.useSelect)(e=>e(q.oR).getDateRangeDates({compare:!0})),{startDate:r,endDate:a}=o,c=void 0===e?void 0:i.length>0||!1===e,g=t.length>0&&e,d={...o,dimensions:[{name:"audienceResourceName"}],dimensionFilters:n,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(d):null},[c,d]),p=(0,l.useSelect)(e=>{if(void 0!==c)return!c||e(Q.K9).hasFinishedResolution("getReport",[d])}),m=(0,l.useSelect)(e=>{if(void 0!==c)return c?e(Q.K9).getErrorForSelector("getReport",[d]):null}),h={...o,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"},_=(0,l.useInViewSelect)(e=>{if(void 0!==g)return g?e(Q.K9).getReport(h):null},[g,h]),f=(0,l.useSelect)(e=>{if(void 0!==g)return!g||e(Q.K9).hasFinishedResolution("getReport",[h])}),k=(0,l.useSelect)(e=>{if(void 0!==g)return g?e(Q.K9).getErrorForSelector("getReport",[h]):null}),y={startDate:r,endDate:a,metrics:[{name:"screenPageViews"}],reportID:"audience-segmentation_use-audience-tiles-reports_hook_totalPageviewsReportOptions"},v=(0,l.useInViewSelect)(e=>e(Q.K9).getReport(y)),A=(0,l.useSelect)(e=>e(Q.K9).hasFinishedResolution("getReport",[y])),x=(0,l.useSelect)(e=>e(Q.K9).getErrorForSelector("getReport",[y])),b=Number(v?.totals?.[0]?.metricValues?.[0]?.value)||0,I={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"},j=(0,l.useInViewSelect)(e=>e(Q.K9).getReportForAllAudiences(I,s)),M=Vt(I,s),S=Ft(I,s),N={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"},E=(0,l.useInViewSelect)(e=>e(Q.K9).getReportForAllAudiences(N,s)),w=Vt(N,s),C=Ft(N,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:p,reportError:m,siteKitAudiencesReport:_,siteKitAudiencesReportLoaded:f,siteKitAudiencesReportError:k,totalPageviews:b,totalPageviewsReportLoaded:A,totalPageviewsReportError:x,topCitiesReport:j,topCitiesReportsLoaded:M,topCitiesReportErrors:S,topContentReport:E,topContentReportsLoaded:w,topContentReportErrors:C,topContentPageTitlesReport:(0,l.useInViewSelect)(e=>e(Q.K9).getReportForAllAudiences(T,s)),topContentPageTitlesReportsLoaded:Vt(T,s),topContentPageTitlesReportErrors:Ft(T,s)}}var Yt=i(9318),qt=i(25804);function BadgeWithTooltip({className:e="",label:t,onTooltipOpen:i,tooltipTitle:s}){return(0,W.jsxs)("span",{className:X()("googlesitekit-badge-with-tooltip","googlesitekit-badge",e),children:[t,s&&(0,W.jsx)(qt.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;ta.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;ta.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;ta.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 ni;function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",oi({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),ni||(ni=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;ta.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 gi;function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",di({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),gi||(gi=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,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile__no-data",children:(0,d.__)("No data to show yet","google-site-kit")})}function AudienceTileCitiesMetric({TileIcon:e,title:t,topCities:i}){const s=i?.dimensionValues?.filter(Boolean)||[],n=!!s.length;return(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric googlesitekit-audience-segmentation-tile-metric--cities",children:[(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__icon",children:(0,W.jsx)(e,{})}),(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__container",children:[(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__title",children:t}),(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__content",children:[!n&&(0,W.jsx)(AudienceTileNoData,{}),n&&s.map((e,t)=>(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__cities-metric",children:[(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__cities-metric-name",children:e?.value}),(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__cities-metric-value",children:(0,N.Eo)(i?.metricValues[t]?.value/i?.total,{style:"percent",maximumFractionDigits:1})})]},e?.value))]})]})]})}function AudienceTileMetric({TileIcon:e,title:t,metricValue:i,Badge:s,metricValueFormat:n}){return(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric",children:[(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__icon",children:(0,W.jsx)(e,{})}),(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__container",children:[(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__value",children:(0,N.Eo)(i,n)}),(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__title",children:t})]}),(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__badge-container",children:(0,W.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 pi=(0,a.forwardRef)(({onClick:e,isSaving:t},i)=>(0,W.jsxs)("div",{ref:i,className:"googlesitekit-audience-segmentation-tile-metric__no-data",children:[(0,d.__)("No data to show","google-site-kit"),(0,W.jsx)(B.A,{children:(0,d.__)("Update Analytics to track metric","google-site-kit")}),(0,W.jsx)(O.SpinnerButton,{onClick:e,isSaving:t,disabled:t,danger:!0,children:(0,d.__)("Update","google-site-kit")})]}));pi.propTypes={onClick:r().func.isRequired,isSaving:r().bool};const mi=pi;function PartialDataNotice({content:e}){return(0,W.jsx)("span",{className:"googlesitekit-audience-segmentation-partial-data-notice",children:e})}PartialDataNotice.propTypes={content:r().node};const hi=(0,C.A)(mi);function AudienceTilePagesMetricContent({topContentTitles:e,topContent:t,isTopContentPartialData:i,hasCustomDimension:s,onCreateCustomDimension:n,isSaving:o}){const r=(0,g.A)(),a=(0,se.A)(),c=(0,D.dv)(),u=[D.mp,D.Lg].includes(c),p=t?.dimensionValues?.filter(Boolean)||[],m=!!p.length,h=(0,l.useSelect)(e=>e(q.oR).getDateRangeDates());function ContentLinkComponent({content:t}){const i=e[t?.value],s=t?.value,n=(0,l.useSelect)(e=>a?null:e(Q.K9).getServiceReportURL("all-pages-and-screens",{filters:{unifiedPagePathScreen:s},dates:h}));return a?(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile__top-content-metric-name",children:i}):(0,W.jsx)(G.A,{href:n,title:i,external:!0,hideExternalIndicator:!0,children:i})}return(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__content",children:[!s&&(0,W.jsx)(hi,{onClick:function(){(0,N.sx)(`${r}_audiences-top-content-cta`,"create_custom_dimension").finally(n)},isSaving:o,onInView:()=>{(0,N.sx)(`${r}_audiences-top-content-cta`,"view_cta")}}),s&&!m&&(0,W.jsx)(AudienceTileNoData,{}),s&&m&&p.map((e,i)=>(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__page-metric-container",children:[(0,W.jsx)(ContentLinkComponent,{content:e}),(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__page-metric-value",children:(0,N.Eo)(t?.metricValues[i]?.value)})]},e?.value)),u&&i&&(0,W.jsx)(PartialDataNotice,{content:(0,d.__)("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:n,isTopContentPartialData:o}){const r=(0,D.dv)(),c=(0,g.A)(),u=Q.Cu.googlesitekit_post_type.parameterName,p=(0,l.useSelect)(e=>!e(Q.K9).hasCustomDimensions(u)),m=(0,l.useSelect)(e=>e(Q.K9).getCreateCustomDimensionError(u)),[h]=(0,Pt.A)(Q.CV,"isRetrying"),[_]=(0,Pt.A)(Q.CV,"autoSubmit"),f=(0,l.useSelect)(e=>e(te.O4).getSetupErrorCode()),[k]=(0,Pt.A)(Q.CV,"isAutoCreatingCustomDimensionsForAudience"),y=_&&"access_denied"===f,v=[D.mp,D.Lg].includes(r),{onCreateCustomDimension:A,isSaving:x,setShowErrorModal:b}=Ut(),I=m&&!x||h&&!k||y;return(0,a.useEffect)(()=>{b(I)},[I,b]),(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric googlesitekit-audience-segmentation-tile-metric--top-content",children:[(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__icon",children:(0,W.jsx)(t,{})}),(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__container",children:[(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__title",children:[i,!v&&o&&(0,W.jsx)(BadgeWithTooltip,{className:"googlesitekit-audience-segmentation-partial-data-badge",label:(0,d.__)("Partial data","google-site-kit"),onTooltipOpen:()=>{(0,N.sx)(`${c}_audiences-tile`,"view_top_content_partial_data_tooltip",e)},tooltipTitle:(0,d.__)("Still collecting full data for this timeframe, partial data is displayed for this metric","google-site-kit")})]}),(0,W.jsx)(AudienceTilePagesMetricContent,{topContentTitles:n,topContent:s,isTopContentPartialData:o,hasCustomDimension:!p,onCreateCustomDimension:A,isSaving:x})]})]})}var _i,fi,ki,yi,vi,Ai,xi,bi,Ii,ji;function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",Mi({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 109 94"},e),_i||(_i=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"})),fi||(fi=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"})),ki||(ki=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"})),vi||(vi=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"}}),Ai||(Ai=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"})),xi||(xi=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"})),Ii||(Ii=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"})),ji||(ji=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,W.jsxs)(a.Fragment,{children:[(0,W.jsx)(Si,{className:"googlesitekit-audience-segmentation-tile__zero-data-image"}),(0,W.jsx)("p",{className:"googlesitekit-audience-segmentation-tile__zero-data-description",children:(0,d.__)("Site Kit is collecting data for this group.","google-site-kit")})]})}var Ni;function Ei(){return Ei=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",Ei({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"},e),Ni||(Ni=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,W.jsxs)(a.Fragment,{children:[(0,W.jsx)("p",{className:"googlesitekit-audience-segmentation-tile__zero-data-description",children:(0,d.__)("You can hide this group until data is available.","google-site-kit")}),(0,W.jsx)(G.A,{className:"googlesitekit-audience-segmentation-tile-hide-cta",onClick:e,leadingIcon:(0,W.jsx)(wi,{width:22,height:22}),secondary:!0,linkButton:!0,children:(0,d.__)("Temporarily hide","google-site-kit")})]})}AudienceTileCollectingDataHideable.propTypes={onHideTile:r().func.isRequired};const Ci=(0,a.forwardRef)(({Widget:e,audienceSlug:t,title:i,infoTooltip:s,isMobileBreakpoint:n,isTileHideable:o,onHideTile:r},a)=>{const l=(0,g.A)();return(0,W.jsx)(e,{ref:a,noPadding:!0,children:(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile",children:(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__zero-data-container",children:[!n&&(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile__header",children:(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__header-title",children:[i,s&&(0,W.jsx)(qt.A,{title:s,tooltipClassName:"googlesitekit-info-tooltip__content--audience",onOpen:()=>(0,N.sx)(`${l}_audiences-tile`,"view_tile_tooltip",t)})]})}),(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__zero-data-content",children:[(0,W.jsx)(AudienceTileCollectingData,{}),o&&(0,W.jsx)(AudienceTileCollectingDataHideable,{onHideTile:r})]})]})})})});Ci.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=Ci,Di=(0,C.A)(Ti);function AudienceTileZeroData({Widget:e,audienceSlug:t,title:i,infoTooltip:s,isMobileBreakpoint:n,isTileHideable:o,onHideTile:r}){const a=(0,g.A)();return(0,W.jsx)(Di,{Widget:e,audienceSlug:t,title:i,infoTooltip:s,isMobileBreakpoint:n,isTileHideable:o,onHideTile:function(){(0,N.sx)(`${a}_audiences-tile`,"temporarily_hide",t).finally(r)},onInView:()=>{(0,N.sx)(`${a}_audiences-tile`,"view_tile_collecting_data",t)}})}function AudienceTile({audienceSlug:e,title:t,infoTooltip:i,visitors:s,visitsPerVisitor:n,pagesPerVisit:o,pageviews:r,percentageOfTotalPageViews:a,topCities:c,topContent:u,topContentTitles:p,hasInvalidCustomDimensionError:m,Widget:h,audienceResourceName:_,isZeroData:f,isPartialData:k,isTileHideable:y,onHideTile:v}){const A=(0,D.dv)(),x=(0,g.A)(),b=(0,se.A)(),I=(0,l.useInViewSelect)(e=>{const t=e(Q.K9).getPropertyID();return t&&e(Q.K9).isPropertyPartialData(t)}),j=(0,l.useSelect)(e=>e(Q.K9).isSiteKitAudience(_)),M=(0,l.useInViewSelect)(e=>!j&&void 0!==I&&(!I&&_&&e(Q.K9).isAudiencePartialData(_)),[I,j,_]),S=(0,l.useInViewSelect)(e=>void 0!==I&&(!I&&!M&&e(Q.K9).isCustomDimensionPartialData("googlesitekit_post_type")),[M]),E=(0,l.useInViewSelect)(e=>e(Q.K9).hasCustomDimensions("googlesitekit_post_type"),[]),w=[D.mp,D.Lg].includes(A);return k&&f?(0,W.jsx)(AudienceTileZeroData,{Widget:h,audienceSlug:e,title:t,infoTooltip:i,isMobileBreakpoint:w,isTileHideable:y,onHideTile:v}):(0,W.jsx)(h,{noPadding:!0,children:(0,W.jsxs)("div",{className:X()("googlesitekit-audience-segmentation-tile",{"googlesitekit-audience-segmentation-tile--partial-data":M}),children:[!w&&(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__header",children:[(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__header-title",children:[t,i&&(0,W.jsx)(qt.A,{title:i,tooltipClassName:"googlesitekit-info-tooltip__content--audience",onOpen:()=>(0,N.sx)(`${x}_audiences-tile`,"view_tile_tooltip",e)})]}),M&&(0,W.jsx)(BadgeWithTooltip,{className:"googlesitekit-audience-segmentation-partial-data-badge",label:(0,d.__)("Partial data","google-site-kit"),tooltipTitle:(0,d.__)("Still collecting full data for this timeframe, partial data is displayed for this group","google-site-kit"),onTooltipOpen:()=>{(0,N.sx)(`${x}_audiences-tile`,"view_tile_partial_data_tooltip",e)}})]}),(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__metrics",children:[w&&M&&(0,W.jsx)(PartialDataNotice,{content:(0,d.__)("Still collecting full data for this timeframe, partial data is displayed for this group","google-site-kit")}),(0,W.jsx)(AudienceTileMetric,{TileIcon:ci,title:(0,d.__)("Visitors","google-site-kit"),metricValue:s.currentValue,Badge:()=>(0,W.jsx)(Qt.A,{previousValue:s.previousValue,currentValue:s.currentValue})}),(0,W.jsx)(AudienceTileMetric,{TileIcon:ui,title:(0,d.__)("Visits per visitor","google-site-kit"),metricValue:n.currentValue,Badge:()=>(0,W.jsx)(Qt.A,{previousValue:n.previousValue,currentValue:n.currentValue})}),(0,W.jsx)(AudienceTileMetric,{TileIcon:ei,title:(0,d.__)("Pages per visit","google-site-kit"),metricValue:o.currentValue,Badge:()=>(0,W.jsx)(Qt.A,{previousValue:o.previousValue,currentValue:o.currentValue}),metricValueFormat:{style:"decimal",maximumFractionDigits:2}}),(0,W.jsx)(AudienceTileMetric,{TileIcon:si,title:(0,d.sprintf)(/* translators: %s: is a percentage value such as 33.3%. */ /* translators: %s: is a percentage value such as 33.3%. */ (0,d.__)("%s of total pageviews","google-site-kit"),(0,N.Eo)(a,{style:"percent",maximumFractionDigits:1})),metricValue:r.currentValue,Badge:()=>(0,W.jsx)(Qt.A,{previousValue:r.previousValue,currentValue:r.currentValue})}),(0,W.jsx)(AudienceTileCitiesMetric,{TileIcon:Xt,title:(0,d.__)("Cities with the most visitors","google-site-kit"),topCities:c}),(!b||E&&!m)&&(0,W.jsx)(AudienceTilePagesMetric,{audienceSlug:e,TileIcon:ri,title:(0,d.__)("Top content by pageviews","google-site-kit"),topContentTitles:p,topContent:u,isTopContentPartialData:S})]})]})})}var Ri,Li,zi,Oi,Pi,Bi,Ui,Gi,Wi,Vi,Fi,Hi;function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",Yi({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"}}),Li||(Li=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"})),zi||(zi=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"})),Oi||(Oi=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"})),Pi||(Pi=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"})),Bi||(Bi=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"})),Ui||(Ui=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"})),Wi||(Wi=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"})),Fi||(Fi=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 n=e.some(e=>(0,E.SG)(e));return(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-error",ref:s,children:(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-error__container",children:[(0,W.jsx)(qi,{className:"googlesitekit-audience-segmentation-tile-error__image"}),(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-error__body",children:[(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-error__message",children:(0,W.jsx)(T.A,{as:"h3",type:"headline",size:"small",className:"googlesitekit-audience-segmentation-tile-error__title",children:n?(0,d.__)("Insufficient permissions","google-site-kit"):(0,d.__)("Data loading failed","google-site-kit")})}),(0,W.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-error__actions",children:(0,W.jsx)(P.A,{moduleSlug:"analytics-4",error:e,GetHelpLink:n?GetHelpLink:void 0,hideGetHelpLink:!n,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,C.A)(Qi);function AudienceTileError({audienceSlug:e,errors:t}){const i=(0,g.A)(),s=t.some(e=>(0,E.SG)(e));return(0,W.jsx)(Ki,{errors:t,onInView:()=>{const t=s?"insufficient_permissions_error":"data_loading_error";(0,N.sx)(`${i}_audiences-tile`,t,e)},onRetry:()=>{(0,N.sx)(`${i}_audiences-tile`,"data_loading_error_retry",e)},onRequestAccess:()=>{(0,N.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,U.A)((0,d.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */ (0,d.__)('%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. Learn more',"google-site-kit"),"New visitors"),{strong:(0,W.jsx)("strong",{}),link:(0,W.jsx)(G.A,{href:i,external:!0,hideExternalIndicator:!0})});case"returning-visitors":return(0,U.A)((0,d.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */ (0,d.__)('%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. Learn more',"google-site-kit"),"Returning visitors"),{strong:(0,W.jsx)("strong",{}),link:(0,W.jsx)(G.A,{href:i,external:!0,hideExternalIndicator:!0})});default:return(0,U.A)((0,d.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */ (0,d.__)("%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. Learn more","google-site-kit"),`${t}`),{strong:(0,W.jsx)("strong",{}),link:(0,W.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(q.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),n=(0,W.jsx)(G.A,{href:i,secondary:!0,external:!0});return(0,W.jsx)(e,{className:"googlesitekit-audience-segmentation-tile-placeholder",children:(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-placeholder__container",children:[(0,W.jsx)(Ct,{className:"googlesitekit-audience-segmentation-tile-placeholder__image"}),(0,W.jsxs)("div",{className:X()("googlesitekit-audience-segmentation-tile-placeholder__body",{"googlesitekit-audience-segmentation-tile-placeholder__body--without-selectable-audiences":!t}),children:[(0,W.jsx)(T.A,{as:"h3",type:"title",size:"small",className:"googlesitekit-audience-segmentation-tile-placeholder__title",children:t?(0,d.__)("Compare your group to other groups","google-site-kit"):(0,d.__)("Create more visitor groups","google-site-kit")}),(0,W.jsx)("p",{className:"googlesitekit-audience-segmentation-tile-placeholder__description",children:t?(0,U.A)((0,d.__)("Select another group to compare with your current group or learn more about how to group site visitors in Analytics","google-site-kit"),{AnalyticsLink:n,SelectGroupLink:(0,W.jsx)(G.A,{onClick:()=>s(oe,!0),secondary:!0})}):(0,U.A)((0,d.__)("Learn more about how to group site visitors in Analytics","google-site-kit"),{AnalyticsLink:n})})]})]})})}function MaybePlaceholderTile({Widget:e,loading:t,allTilesError:i,visibleAudienceCount:s}){return!1!==i&&!t||1!==s?null:t?(0,W.jsx)(e,{noPadding:!0,children:(0,W.jsx)(AudienceTileLoading,{})}):(0,W.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:n,topContentReportsLoaded:o,topContentPageTitlesReportsLoaded:r,visibleAudiences:c,Widget:g}){const d=(0,D.dv)(),u=(0,se.A)(),p=d===D.mp||d===D.Lg,m=(0,l.useInViewSelect)(e=>e(Q.K9).getOrSyncAvailableAudiences(),[]),h=(0,l.useInViewSelect)(e=>e(q.oR).getConfiguredAudiences(),[]),[_,f]=(0,l.useSelect)(e=>e(Q.K9).getConfiguredSiteKitAndOtherAudiences())||[[],[]],k=(0,l.useSelect)(e=>e(Q.K9).hasAudiencePartialData(_)),y=(0,l.useInViewSelect)(e=>h?.reduce((t,i)=>(t[i]=e(Q.K9).isAudiencePartialData(i),t),{}),[h]),{report:v,reportError:A,siteKitAudiencesReport:x,totalPageviews:b,totalPageviewsReportError:I,topCitiesReport:j,topContentReport:M,topContentReportErrors:S,topContentPageTitlesReport:N,topContentPageTitlesReportErrors:E}=Ht({isSiteKitAudiencePartialData:k,siteKitAudiences:_,otherAudiences:f});function w(e,t){const i=m?.filter(({name:t})=>t===e)?.[0]?.displayName||"",s=m?.filter(({name:t})=>t===e)?.[0]?.audienceSlug||"",{current:n,previous:o}=function(e){const t=_.some(t=>t.name===e),i=_.find(t=>t.name===e)?.audienceSlug;function s(s){let n;if(t&&k){const e="new-visitors"===i?"new":"returning";n=x?.rows?.find(({dimensionValues:t})=>t?.[0]?.value===e&&t?.[1]?.value===s)}else n=v?.rows?.find(({dimensionValues:t})=>t?.[0]?.value===e&&t?.[1]?.value===s);return[Number(n?.metricValues?.[0]?.value||0),Number(n?.metricValues?.[1]?.value||0),Number(n?.metricValues?.[2]?.value||0),Number(n?.metricValues?.[3]?.value||0)]}return{current:s("date_range_0"),previous:s("date_range_1")}}(e),r=n[0],a=o[0],l=n[1],c=o[1],g=n[2],d=o[2],u=n[3],p=o[3],h=j?.[t],f=M?.[t],A=N?.[t]?.rows?.reduce((e,t)=>(e[t.dimensionValues[0].value]=t.dimensionValues[1].value,e),{})||{},b=_.some(t=>t.name===e);let I=v,S=e;b&&k&&(I=x,S="new-visitors"===s?"new":"returning");const E=function(e,t){const i=e?.rows?.find(e=>e.dimensionValues?.[0]?.value===t);return 0===(i?.metricValues?.[0]?.value||0)}(I,S);return{audienceName:i,audienceSlug:s,visitors:r,prevVisitors:a,visitsPerVisitors:l,prevVisitsPerVisitors:c,pagesPerVisit:g,prevPagesPerVisit:d,pageviews:u,prevPageviews:p,topCities:h,topContent:f,topContentTitles:A,isZeroData:E,isPartialData:!b&&y[e]}}const C=Object.values(S).some(Yt.B)||Object.values(E).some(Yt.B),{dismissItem:T}=(0,l.useDispatch)(q.oR),{fetchSyncAvailableCustomDimensions:R}=(0,l.useDispatch)(Q.K9),L=(0,a.useCallback)(e=>{T(`audience-tile-${e}`)},[T]);return(0,a.useEffect)(()=>{!u&&C&&R()},[R,C,u]),(0,W.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[t&&!s&&(0,W.jsx)(Y,{Widget:g,errors:[...Object.values(i).flat(2),A,I]}),(!1===t||s)&&c.map((t,a)=>{if(p&&a!==e)return null;const{audienceName:l,audienceSlug:d,visitors:u,prevVisitors:m,visitsPerVisitors:h,prevVisitsPerVisitors:_,pagesPerVisit:f,prevPagesPerVisit:k,pageviews:y,prevPageviews:v,topCities:A,topContent:x,topContentTitles:I,isZeroData:j,isPartialData:M}=w(t,a),S=A?.rows?(0,Xi.S)(A.rows):[];return!s&&n?.[t]&&o?.[t]&&r?.[t]&&void 0!==j&&void 0!==M?i[t].length>0?(0,W.jsx)(AudienceTileError,{audienceSlug:d,errors:i[t]},t):(0,W.jsx)(AudienceTile,{audienceSlug:d,title:l,infoTooltip:(0,W.jsx)(AudienceTooltipMessage,{audienceName:l,audienceSlug:d}),visitors:{currentValue:u,previousValue:m},visitsPerVisitor:{currentValue:h,previousValue:_},pagesPerVisit:{currentValue:f,previousValue:k},pageviews:{currentValue:y,previousValue:v},percentageOfTotalPageViews:0!==b?y/b:0,topCities:{dimensionValues:[S?.[0]?.dimensionValues?.[0],S?.[1]?.dimensionValues?.[0],S?.[2]?.dimensionValues?.[0]],metricValues:[S?.[0]?.metricValues?.[0],S?.[1]?.metricValues?.[0],S?.[2]?.metricValues?.[0]],total:u},topContent:{dimensionValues:[x?.rows?.[0]?.dimensionValues?.[0],x?.rows?.[1]?.dimensionValues?.[0],x?.rows?.[2]?.dimensionValues?.[0]],metricValues:[x?.rows?.[0]?.metricValues?.[0],x?.rows?.[1]?.metricValues?.[0],x?.rows?.[2]?.metricValues?.[0]]},topContentTitles:I,hasInvalidCustomDimensionError:C,Widget:g,audienceResourceName:t,isZeroData:j,isPartialData:M,isTileHideable:c.length>1,onHideTile:()=>L(t)},t):(0,W.jsx)(g,{noPadding:!0,children:(0,W.jsx)(AudienceTileLoading,{})},t)}),!p&&(0,W.jsx)(MaybePlaceholderTile,{Widget:g,loading:s,allTilesError:t,visibleAudienceCount:c.length})]})}function Header({activeTileIndex:e,setActiveTile:t,visibleAudiences:i}){const s=(0,g.A)(),n=(0,l.useInViewSelect)(e=>e(Q.K9).getOrSyncAvailableAudiences(),[]);return(0,W.jsx)(O.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=n?.filter(({name:t})=>t===e)?.[0]?.displayName||"",o=n?.filter(({name:t})=>t===e)?.[0]?.audienceSlug||"",r=(0,W.jsx)(AudienceTooltipMessage,{audienceName:i,audienceSlug:o});return(0,W.jsxs)(O.Tab,{"aria-label":i,children:[i,(0,W.jsx)(qt.A,{title:r,tooltipClassName:"googlesitekit-info-tooltip__content--audience",onOpen:()=>{(0,N.sx)(`${s}_audiences-tile`,"view_tile_tooltip",o)}})]},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,n=(0,l.useInViewSelect)(e=>e(q.oR).getConfiguredAudiences(),[]),o=(0,l.useInViewSelect)(e=>e(Q.K9).getOrSyncAvailableAudiences(),[]),[r,c]=(0,l.useSelect)(e=>e(Q.K9).getConfiguredSiteKitAndOtherAudiences())||[[],[]],g=(0,l.useSelect)(e=>e(Q.K9).hasAudiencePartialData(r)),{report:d,reportLoaded:u,reportError:p,siteKitAudiencesReport:m,siteKitAudiencesReportLoaded:h,siteKitAudiencesReportError:_,totalPageviewsReportLoaded:f,totalPageviewsReportError:k,topCitiesReportsLoaded:y,topCitiesReportErrors:v,topContentReportsLoaded:A,topContentReportErrors:x,topContentPageTitlesReportsLoaded:b,topContentPageTitlesReportErrors:I}=Ht({isSiteKitAudiencePartialData:g,siteKitAudiences:r,otherAudiences:c}),j=n?.reduce((e,t)=>(e[t]=[],[v,x,I].forEach(i=>{const s=i[t];s&&!(0,Yt.B)(s)&&e[t].push(s)}),e),{}),M=(0,l.useSelect)(e=>e(q.oR).getDismissedItems()),{isDismissingItem:S}=(0,l.useSelect)(e=>e(q.oR)),{dismissItem:N}=(0,l.useDispatch)(q.oR),E=(0,a.useRef)({}),[w,C]=(0,a.useMemo)(()=>{const e=[],t=[],i=n?.slice().filter(e=>o.some(t=>t.name===e));for(;i?.length>0;){const s=i.shift(),n=M?.includes(`audience-tile-${s}`),o=r.some(e=>e.name===s);let a=d,l=s;if(o&&g){a=m;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;n&&c&&u||(n&&!c&&e.push(s),t.push(s))}return[e,t]},[o,n,M,g,d,r,m]);const T=function(){const e=[];return d&&e.push(p),m&&e.push(_),!(!e.every(Boolean)&&!k)||n?.every(e=>j[e].length>0)}();(0,a.useEffect)(()=>{w.forEach(e=>{const t=`audience-tile-${e}`;E.current[t]||(N(t,{expiresInSeconds:1}),E.current[t]=!0)})},[w,N,S]);const R=(0,l.useSelect)(e=>e(Q.K9).isFetchingSyncAvailableCustomDimensions()),[L,z]=(0,a.useState)(C[0]),O=(0,a.useCallback)(e=>{const t=C.indexOf(e);return-1===t?0:t},[C]);(0,a.useEffect)(()=>{C.includes(L)||z(C[0])},[L,C]);const P=O(L),{showErrorModal:B}=Ut(),U=t||!u||!h||!f||!y||!A||!b||R;return(0,W.jsxs)(a.Fragment,{children:[(0,W.jsxs)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:[!1===T&&!U&&s&&C.length>0&&(0,W.jsx)(Header,{activeTileIndex:P,setActiveTile:z,visibleAudiences:C}),(0,W.jsx)(Body,{activeTileIndex:P,allTilesError:T,individualTileErrors:j,loading:U,topCitiesReportsLoaded:y,topContentReportsLoaded:A,topContentPageTitlesReportsLoaded:b,visibleAudiences:C,Widget:e})]}),B&&(0,W.jsx)(Wt,{})]})}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(q.oR).getConfiguredAudiences()),s=(0,l.useSelect)(e=>e(Q.K9).hasSyncedAudiences()),n=(0,l.useSelect)(e=>e(Q.K9).isSyncingAudiences()),{clearActionErrors:o,maybeSyncAvailableAudiences:r,syncAvailableAudiences:c}=(0,l.useDispatch)(Q.K9),g=(0,l.useSelect)(e=>e(Q.K9).isSettingUpAudiences()),d=(0,l.useSelect)(e=>e(Q.K9).getErrorForAction("syncAvailableAudiences"));if((0,a.useEffect)(()=>{s||n||g||r()},[s,n,g,r]),d){const t=(0,E.SG)(d);return(0,W.jsx)(Y,{errors:d,Widget:e,onRetry:t?void 0:async()=>{await o("syncAvailableAudiences"),await c()},showRetryButton:!t})}const u=i?.some(e=>t?.includes(e));return u?(0,W.jsx)(AudienceTiles,{Widget:e,widgetLoading:!s||!t||!i}):s?(0,W.jsx)(Rt,{Widget:e,WidgetNull:Z.A}):(0,W.jsx)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:(0,W.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[(0,W.jsx)(e,{noPadding:!0,children:(0,W.jsx)(AudienceTileLoading,{})}),(0,W.jsx)(e,{noPadding:!0,children:(0,W.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,w.A)({moduleName:S.L1})(AudienceTilesWidget);var Ji=i(20762),es=i(15650),ts=i(11999),is=i(19793);function AudienceCreationSuccessNotice(){const e=(0,g.A)(),{setValue:t}=(0,l.useDispatch)(c.nX),i=(0,l.useSelect)(e=>e(c.nX).getValue(de)),s=(0,l.useSelect)(e=>e(c.nX).getValue(oe));return(0,a.useEffect)(()=>{s&&i&&(0,N.sx)(`${e}_audiences-sidebar-create-audiences-success`,"view_notification")},[s,i,e]),i?(0,W.jsxs)("div",{className:"googlesitekit-audience-selection-panel__success-notice",children:[(0,W.jsx)("div",{className:"googlesitekit-audience-selection-panel__success-notice-icon",children:(0,W.jsx)(is.A,{width:24,height:24})}),(0,W.jsx)("p",{className:"googlesitekit-audience-selection-panel__success-notice-message",children:(0,d.__)("Visitor group created successfully!","google-site-kit")}),(0,W.jsx)("div",{className:"googlesitekit-audience-selection-panel__success-notice-actions",children:(0,W.jsx)(O.Button,{onClick:()=>{(0,N.sx)(`${e}_audiences-sidebar-create-audiences-success`,"dismiss_notification").finally(()=>{t(de,!1)})},tertiary:!0,children:(0,d.__)("Got it","google-site-kit")})})]}):null}var ss,ns=i(3183);function os(){return os=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",os({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:n},o)=>(0,W.jsxs)("div",{ref:o,className:X()("googlesitekit-audience-segmentation-info-notice",e),children:[(0,W.jsx)(s,{width:"20",height:"20"}),(0,W.jsxs)("div",{className:"googlesitekit-audience-segmentation-info-notice__body",children:[(0,W.jsx)(B.A,{children:t}),i&&(0,W.jsx)(O.Button,{onClick:n,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 gs(){return gs=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",gs({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(q.oR).isItemDismissed(ne)),s=(0,l.useSelect)(e=>e(c.nX).getValue(oe)),n=(0,l.useSelect)(e=>e(Q.K9).isFetchingSyncAvailableAudiences()),[o]=(0,Pt.A)(re,ae),{dismissItem:r}=(0,l.useDispatch)(q.oR),g=(0,a.useCallback)(async()=>{await r(ne)},[r]);return(0,a.useEffect)(()=>{Array.isArray(o)&&(o.length>1&&t(!0),s||1!==o?.length||t(!1))},[o,s,t]),i||e||n||!o?.length?null:(0,W.jsx)(ls,{className:"googlesitekit-audience-selection-panel__add-group-notice",content:(0,d.__)("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,d.__)("Got it","google-site-kit"),Icon:ds,onDismiss:g})}AddGroupNotice.propTypes={savedItemSlugs:r().array};var us=i(37325),ps=i(3749),ms=i(11763);function AudienceCreationErrorNotice({apiErrors:e,hasOAuthError:t}){const i=(0,g.A)(),s=Array.isArray(e)?e:[e],n=(0,l.useSelect)(e=>e(te.O4).getErrorTroubleshootingLinkURL({code:"analytics-4_insufficient_permissions"})),o=(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(oe)),p=s.length>0,m=s.some(e=>(0,E.SG)(e));if((0,a.useEffect)(()=>{if(!u||!p&&!t)return;let e="setup_error";t?e="auth_error":m&&(e="insufficient_permissions_error"),(0,N.sx)(`${i}_audiences-sidebar-create-audiences`,e)},[p,m,t,u,i]),!s.length&&!t)return null;let h,_;return t?_=(0,U.A)((0,d.__)("Setup was interrupted because you didn’t grant the necessary permissions. Click on Create again to retry. If that doesn’t work, ","google-site-kit"),{HelpLink:(0,W.jsx)(G.A,{href:r,external:!0,hideExternalIndicator:!0,children:(0,d.__)("get help","google-site-kit")})}):m?(h=(0,d.__)("Insufficient permissions","google-site-kit"),_=(0,U.A)((0,d.__)("Contact your administrator. Trouble getting access? ","google-site-kit"),{HelpLink:(0,W.jsx)(G.A,{href:n,external:!0,hideExternalIndicator:!0,children:(0,d.__)("Get help","google-site-kit")})})):(h=(0,d.__)("Analytics update failed","google-site-kit"),_=(0,d.__)("Click on Create to try again.","google-site-kit")),(0,W.jsx)(us.A,{className:"googlesitekit-audience-creation-error-notice",type:ps.L.ERROR,title:h,description:_,ctaButton:m?{label:(0,d.__)("Request access","google-site-kit"),href:o,onClick:()=>{(0,N.sx)(`${i}_audiences-sidebar-create-audiences`,"insufficient_permissions_error_request_access")}}:void 0,hideIcon:!0})}function AudienceCreationNotice(){const e=(0,g.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:n}=(0,l.useDispatch)(q.oR),{setValue:o}=(0,l.useDispatch)(c.nX),r=(0,l.useInViewSelect)(e=>e(q.oR).isItemDismissed(ge)),u=(0,l.useInViewSelect)(e=>e(q.oR).isItemDismissed(ue)),p=(0,l.useInViewSelect)(e=>e(q.oR).hasScope(Q.S9)),m=(0,l.useSelect)(e=>e(c.nX).getValue(oe));const h=(0,zt.F)(globalThis.location.href,{notification:"audience_segmentation"}),{setPermissionScopeError:_}=(0,l.useDispatch)(q.oR),{createAudience:f,syncAvailableAudiences:k}=(0,l.useDispatch)(Q.K9),[y,v]=(0,Pt.A)(pe,"autoSubmit"),[A,x]=(0,Pt.A)(pe,"audienceToCreate"),[b,I]=(0,a.useState)([]),j=(0,a.useCallback)(async e=>{if(i(e),!p)return v(!0),x(e),void _({code:E.db,message:(0,d.__)("Additional permissions are required to create a new audience in Analytics.","google-site-kit"),data:{status:403,scopes:[Q.S9],skipModal:!0,redirectURL:h}});v(!1),x(void 0);const{error:t}=await f(Q.fB[e]);I(t?[t]:[]),await k(),i(!1),t||o(de,!0)},[p,f,v,x,k,_,h,o]);const M=(0,l.useSelect)(e=>e(te.O4).getSetupErrorCode()),S=y&&"access_denied"===M;(0,a.useEffect)(()=>{!async function(){p&&y&&(o(oe,!0),await j(A))}()},[A,j,p,y,o]);const w=!r&&s?.length<2;if((0,a.useEffect)(()=>{m&&w&&(0,N.sx)(`${e}_audiences-sidebar-create-audiences`,"view_notice")},[m,w,e]),(0,a.useEffect)(()=>{!m||p||u||(0,N.sx)(`${e}_audiences-sidebar-create-audiences`,"view_oauth_notice")},[p,u,m,e]),!w)return null;const C=Object.keys(Q.fB).filter(e=>!s.some(t=>t.audienceSlug===e));return(0,W.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice",children:[(0,W.jsx)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-header",children:(0,W.jsx)("p",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-title",children:(0,d.__)("Create groups suggested by Site Kit","google-site-kit")})}),(0,W.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-body",children:[C&&C.map(i=>(0,W.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience",children:[(0,W.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience-details",children:[(0,W.jsx)(T.A,{as:"h3",type:"title",size:"small",children:Q.fB[i].displayName}),(0,W.jsx)("p",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience-description",children:Q.fB[i].description})]}),(0,W.jsx)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience-button",children:(0,W.jsx)(ms.A,{spinnerPosition:ms.k.BEFORE,onClick:()=>{(0,N.sx)(`${e}_audiences-sidebar-create-audiences`,"create_audience",i).finally(()=>{j(i)})},isSaving:t===i,children:(0,d.__)("Create","google-site-kit")})})]},i)),(0,W.jsx)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-dismiss",children:(0,W.jsx)(G.A,{onClick:function(){n(ge)},children:(0,d.__)("No thanks","google-site-kit")})})]}),!p&&!u&&(0,W.jsx)(us.A,{type:ps.L.WARNING,description:(0,d.__)("Creating these groups require more data tracking. You will be directed to update your Analytics property.","google-site-kit"),dismissButton:{onClick:function(){(0,N.sx)(`${e}_audiences-sidebar-create-audiences`,"dismiss_oauth_notice").finally(()=>{n(ue)})}},hideIcon:!0}),(b.length>0||S)&&(0,W.jsx)(AudienceCreationErrorNotice,{apiErrors:b,hasOAuthError:S})]})}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:n,audienceType:o}){const r=`${Q.bz}${e}`,[c,g]=(0,Pt.A)(re,ae),[,u]=(0,Pt.A)(re,le),p=(0,l.useSelect)(e=>e(q.oR).hasExpirableItem(r)),m=(0,l.useSelect)(e=>e(q.oR).isExpirableItemActive(r)),[h,_]=(0,l.useSelect)(e=>e(Q.K9).getAudienceUserCountReportErrors())||[],f=[];_&&f.push(_),h&&f.push(h);const k=(0,l.useSelect)(t=>t(q.oR).isItemDismissed(`audience-tile-${e}`)),y=(0,a.useCallback)(t=>{g(t.target.checked?c.concat([e]):c.filter(t=>t!==e)),u(!0)},[c,g,u,e]),v="DEFAULT_AUDIENCE"!==o&&(!1===p||m),A=c?.includes(e),x=`audience-selection-checkbox-${e}`;function ItemBadge(){return k?(0,W.jsx)(BadgeWithTooltip,{label:(0,d.__)("Temporarily hidden","google-site-kit"),tooltipTitle:(0,d.__)("Site Kit is collecting data for this group. Once data is available the group will be added to your dashboard.","google-site-kit")}):v?(0,W.jsx)(hs.A,{}):null}return(0,W.jsx)(es.y3,{id:x,slug:e,title:t,subtitle:s,description:i,isItemSelected:A,onCheckboxChange:y,suffix:f.length?"-":(0,N.Eo)(n),badge:(k||v)&&(0,W.jsx)(ItemBadge,{})})}function AudienceItemPreviewBlock(){return(0,W.jsxs)("div",{className:"googlesitekit-selection-panel__loading",children:[(0,W.jsxs)("div",{className:"googlesitekit-selection-panel__loading-left",children:[(0,W.jsx)(Lt.A,{width:"90px",height:"20px",className:"googlesitekit-selection-panel__loading-item"}),(0,W.jsx)(Lt.A,{width:"293px",height:"15px",className:"googlesitekit-selection-panel__loading-item"})]}),(0,W.jsx)("div",{className:"googlesitekit-selection-panel__loading-right",children:(0,W.jsx)(Lt.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)(q.oR),{syncAvailableAudiences:n}=(0,l.useDispatch)(Q.K9),o=(0,se.A)(),r=(0,l.useSelect)(e=>e(c.nX).getValue(oe)),g=(0,l.useSelect)(e=>e(Q.K9).isFetchingSyncAvailableAudiences());(0,a.useEffect)(()=>{t&&r&&(i(!1),async function(){await n()}())},[t,r,n]);const u=(0,l.useInViewSelect)(e=>{const{getConfigurableAudiences:t,getReport:i,getAudiencesUserCountReportOptions:s,getConfigurableSiteKitAndOtherAudiences:n,hasAudiencePartialData:o}=e(Q.K9),r=t();if(void 0===r)return;if(!r.length)return[];const[a,l]=n(),c=o(a),g=e(q.oR).getDateRangeDates(),d=c&&i({...g,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:p=[]}=d||{},{rows:m=[]}=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(p,"new-visitors"===e.audienceSlug?"new":"returning"):h(m,e.name),{...e,userCount:Number(t?.metricValues?.[0]?.value)||0}})});function p(e,{audienceType:t,description:i,displayName:s,name:n,userCount:o}){let r="";switch(t){case"DEFAULT_AUDIENCE":r=(0,d.__)("Created by default by Google Analytics","google-site-kit"),i="";break;case"SITE_KIT_AUDIENCE":r=(0,d.__)("Created by Site Kit","google-site-kit");break;case"USER_AUDIENCE":r=(0,d.__)("Already exists in your Analytics property","google-site-kit")}return{...e,[n]:{title:s,subtitle:i,description:r,userCount:o,audienceType:t}}}const m=u?.filter(({name:t})=>e.includes(t)).reduce(p,{}),h=u?.filter(({name:t})=>!e.includes(t)).reduce(p,{}),_=(0,l.useSelect)(e=>{if(void 0===u)return;const{hasFinishedResolution:t,hasExpirableItem:i}=e(q.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,ns.A)(()=>{r&&void 0!==_&&_.length&&s(_.map(e=>({slug:e,expiresInSeconds:4*N.Du})))},[r,s,_]),(0,W.jsx)(es.DW,{availableItemsTitle:(0,d.__)("Additional groups","google-site-kit"),availableSavedItems:m,availableUnsavedItems:h,ItemComponent:g?AudienceItemPreviewBlock:AudienceItem,savedItemSlugs:e,notice:(0,W.jsxs)(a.Fragment,{children:[(0,W.jsx)(AddGroupNotice,{}),!o&&(0,W.jsx)(AudienceCreationNotice,{})]})})}function Footer({isOpen:e,closePanel:t,savedItemSlugs:i}){const s=(0,g.A)(),[n]=(0,Pt.A)(re,ae),[,o]=(0,Pt.A)(re,ce),r=(0,l.useSelect)(e=>e(q.oR).isSavingUserAudienceSettings()),c=(0,l.useInViewSelect)(e=>{const t=e(q.oR).getDismissedItems();return t?.filter(e=>e.startsWith("audience-tile-"))}),d=(0,l.useSelect)(e=>e(Q.K9).getOrSyncAvailableAudiences()),{saveUserAudienceSettings:u,removeDismissedItems:p}=(0,l.useDispatch)(q.oR),{getConfiguredAudiences:m}=(0,l.useSelect)(q.oR),h=(0,a.useCallback)(async e=>{o(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 p(...i)),t&&o(t))}return{error:t}},[c,p,u,o]),_=(0,a.useCallback)(()=>{const e={USER_AUDIENCE:"user",SITE_KIT_AUDIENCE:"site-kit",DEFAULT_AUDIENCE:"default"},t=m(),i=Object.keys(e).map(i=>{const s=t.filter(e=>{const t=d?.find(({name:t})=>e===t);return t?.audienceType===i});return`${e[i]}:${s.length}`}).join(",");(0,N.sx)(`${s}_audiences-sidebar`,"audiences_sidebar_save",i)},[d,m,s]),f=(0,a.useCallback)(()=>{(0,N.sx)(`${s}_audiences-sidebar`,"audiences_sidebar_cancel")},[s]);return(0,W.jsx)(es.gy,{savedItemSlugs:i,selectedItemSlugs:n,saveSettings:h,minSelectedItemCount:1,maxSelectedItemCount:3,isBusy:r,isOpen:e,closePanel:t,onSaveSuccess:_,onCancel:f})}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(q.oR).isSavingUserAudienceSettings()),{navigateTo:n}=(0,l.useDispatch)(ee.M),o=(0,a.useCallback)(()=>n(i),[i,n]);return(0,W.jsx)(es.W4,{title:(0,d.__)("Select visitor groups","google-site-kit"),onCloseClick:e,children:!t&&(0,W.jsx)(B.A,{children:(0,U.A)((0,d.__)("You can deactivate this widget in Settings","google-site-kit"),{link:(0,W.jsx)(G.A,{onClick:o,disabled:s,secondary:!0}),strong:(0,W.jsx)("strong",{})})})})}function LearnMoreLink(){const e=(0,l.useSelect)(e=>e(te.O4).getGoogleSupportURL({path:"/analytics/answer/12799087"}));return(0,W.jsx)("div",{className:"googlesitekit-audience-selection-panel__learn-more",children:(0,U.A)((0,d.__)("Learn more about grouping site visitors and audiences in Analytics","google-site-kit"),{link:(0,W.jsx)(G.A,{href:e,secondary:!0,external:!0}),strong:(0,W.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 _s=i(65695),fs=i(75971);function SaveErrorNotice({savedItemSlugs:e}){const[t]=(0,Pt.A)(re,ae),[i]=(0,Pt.A)(re,ce),s=(0,fs.ws)(e=>e(q.oR).getUserAudienceSettings()),o=(0,fs.WM)(e=>e(q.oR).getErrorForAction("saveUserAudienceSettings",[{...s,configuredAudiences:t}])),r=t?.length||0;let l;r<1?l=(0,d.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,d._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,d.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,d.__)("Select up to %1$d groups (%2$d selected)","google-site-kit"),3,r));const c=(0,a.useMemo)(()=>!(0,n.isEqual)((0,N.N9)(t),(0,N.N9)(e)),[t,e]);if(!l&&!o&&!i)return null;let g=o||i;return c&&l&&(g={message:l}),(0,W.jsx)(_s.A,{error:g})}function RequestAccessButton({requestAccessURL:e}){const t=(0,g.A)();return(0,W.jsx)(O.Button,{className:"googlesitekit-audience-selection-panel__error-notice-action",href:e,target:"_blank",onClick:()=>{(0,N.sx)(`${t}_audiences-sidebar`,"insufficient_permissions_error_request_access")},tertiary:!0,children:(0,d.__)("Request access","google-site-kit")})}function RetryButton({handleRetry:e}){const t=(0,g.A)();return(0,W.jsx)(O.Button,{className:"googlesitekit-audience-selection-panel__error-notice-action",onClick:()=>{e(),(0,N.sx)(`${t}_audiences-sidebar`,"data_loading_error_retry")},tertiary:!0,children:(0,d.__)("Retry","google-site-kit")})}function SyncErrorNotice(){const e=(0,g.A)(),t=(0,l.useSelect)(e=>e(Q.K9).getErrorForAction("syncAvailableAudiences")),[i,s]=(0,l.useInViewSelect)(e=>e(Q.K9).getAudienceUserCountReportErrors())||[],n=(0,l.useSelect)(e=>e(te.O4).getErrorTroubleshootingLinkURL({code:"analytics-4_insufficient_permissions"})),o=(0,l.useSelect)(e=>e(c.nX).getValue(oe)),{clearActionError:r,syncAvailableAudiences:u}=(0,l.useDispatch)(Q.K9),p=(0,a.useCallback)(async()=>{await r("syncAvailableAudiences"),u()},[r,u]),m=[];t&&m.push(t),s&&m.push(s),i&&m.push(i);const h=m.length>0,_=m.some(e=>(0,E.SG)(e));if((0,a.useEffect)(()=>{o&&h&&(0,N.sx)(`${e}_audiences-sidebar`,_?"insufficient_permissions_error":"data_loading_error")},[h,_,o,e]),!m.length)return null;const f=[s,i].some(e=>!!e);return(0,W.jsx)(us.A,{className:"googlesitekit-audience-selection-panel__error-notice googlesitekit-notice--error googlesitekit-notice--small googlesitekit-notice--square",type:ps.L.ERROR,description:_?(0,U.A)((0,d.__)("Insufficient permissions, contact your administrator. Trouble getting access? ","google-site-kit"),{HelpLink:(0,W.jsx)(G.A,{href:n,external:!0,hideExternalIndicator:!0,children:(0,d.__)("Get help","google-site-kit")})}):(0,d.__)("Data loading failed","google-site-kit"),actionContent:_||f?(0,W.jsx)(P.A,{moduleSlug:"analytics-4",error:m,buttonVariant:"danger",RequestAccessButton,RetryButton,hideGetHelpLink:!0}):(0,W.jsx)(RetryButton,{handleRetry:p}),hideIcon:!0})}function Panel(){const e=(0,g.A)(),t=(0,l.useSelect)(e=>e(c.nX).getValue(oe)),i=(0,l.useSelect)(e=>e(Q.K9).isFetchingSyncAvailableAudiences()),s=(0,l.useInViewSelect)(e=>{const{getConfigurableAudiences:t}=e(Q.K9),{getConfiguredAudiences:i}=e(q.oR),s=i()||[],n=t()||[];return n.length&&s.length?n.filter(({name:e})=>s.includes(e)).map(({name:e})=>e):[]}),[n]=(0,Pt.A)(pe,"autoSubmit"),{setValues:o}=(0,l.useDispatch)(ts.s),{setValue:r}=(0,l.useDispatch)(c.nX),d=(0,a.useCallback)(()=>{o(re,{[ae]:s,[le]:!1}),(0,N.sx)(`${e}_audiences-sidebar`,"audiences_sidebar_view")},[s,o,e]),u=(0,a.useCallback)(()=>{t&&(r(oe,!1),r(de,!1))},[r,t]);return(0,W.jsxs)(es.Ay,{className:"googlesitekit-audience-selection-panel",closePanel:u,isOpen:t||n,isLoading:i,onOpen:d,children:[(0,W.jsx)(Header_Header,{closePanel:u}),(0,W.jsxs)(es.kA,{className:"googlesitekit-audience-selection-panel__content",children:[(0,W.jsx)(AudienceItems,{savedItemSlugs:s}),(0,W.jsx)(LearnMoreLink,{}),(0,W.jsx)(SaveErrorNotice,{savedItemSlugs:s}),(0,W.jsx)(SyncErrorNotice,{}),(0,W.jsx)(AudienceCreationSuccessNotice,{})]}),(0,W.jsx)(Footer,{closePanel:u,isOpen:t,savedItemSlugs:s})]})}function AudienceSelectionPanel(){const e=(0,l.useSelect)(e=>e(c.nX).getValue(oe));return(0,W.jsx)(Ji.Ay,{value:{key:"AudienceSelectionPanel",value:!!e},children:(0,W.jsx)(Panel,{})})}RequestAccessButton.propTypes={requestAccessURL:r().string.isRequired},RetryButton.propTypes={handleRetry:r().func.isRequired};var ks=i(44148);function AudienceAreaFooter(){const e=(0,se.A)(),t=(0,l.useSelect)(e=>e(q.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(S.L1))?(0,W.jsx)(ks.A,{className:"googlesitekit-audience-widget__source",name:(0,d._x)("Analytics","Service name","google-site-kit"),href:i,external:!0}):null}var ys=i(674);function ChangeGroupsLink(){const e=(0,g.A)(),t=(0,l.useInViewSelect)(e=>e(Q.K9).getConfigurableAudiences(),[]),{setValue:i}=(0,l.useDispatch)(c.nX),s=(0,a.useCallback)(()=>{i(oe,!0),(0,N.sx)(`${e}_audiences-sidebar`,"change_groups")},[i,e]);return Array.isArray(t)&&t?.length>0?(0,W.jsx)(G.A,{className:"googlesitekit-widget-area__cta-link",onClick:s,leadingIcon:(0,W.jsx)(ys.A,{width:22,height:22}),secondary:!0,linkButton:!0,children:(0,d.__)("Change groups","google-site-kit")}):null}var vs,As,xs,bs,Is=i(65929);function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",js({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)"},vs||(vs=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"}},As||(As=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"}))),xs||(xs=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 Ss,Ns,Es,ws;function Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",Cs({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"-3 1 333.666 149.252"},e),Ss||(Ss=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)"},Ns||(Ns=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"}},Es||(Es=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"}))),ws||(ws=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,Is.A)(S.L1),s=(0,l.useSelect)(e=>e(ie.i).getModuleIcon(S.L1)),n=t?(0,W.jsx)(B.A,{children:(0,U.A)((0,d.__)("Google Analytics is disconnected, your audience metrics can’t be displayed. Connect Google Analytics","google-site-kit"),{a:(0,W.jsx)(G.A,{onClick:i,secondary:!0})})}):(0,W.jsxs)(a.Fragment,{children:[(0,W.jsx)(B.A,{children:(0,d.__)("Google Analytics is disconnected, your audience metrics can’t be displayed","google-site-kit")}),(0,W.jsx)(G.A,{onClick:i,secondary:!0,children:(0,d.__)("Connect Google Analytics","google-site-kit")})]});return(0,W.jsx)(e,{noPadding:!0,children:(0,W.jsx)(J,{Icon:s,SVGGraphic:t?Ms:Ts,children:n})})}ConnectAnalyticsCTAWidget.propTypes={Widget:r().elementType.isRequired};const Ds=(0,C.A)(ls);function InfoNoticeWidget({Widget:e,WidgetNull:t}){const i=(0,g.A)(),s=(0,l.useInViewSelect)(e=>{const t=e(Q.K9).getOrSyncAvailableAudiences();return t?.map(e=>e.name)},[]),n=(0,l.useInViewSelect)(e=>e(q.oR).getConfiguredAudiences(),[]),o=n?.some(e=>s?.includes(e)),r=m.length,h=(0,l.useInViewSelect)(e=>e(q.oR).isPromptDismissed(p),[]),_=(0,l.useSelect)(e=>e(c.nX).getValue(u)),f=(0,l.useInViewSelect)(e=>e(q.oR).getPromptDismissCount(p),[]),{dismissPrompt:k}=(0,l.useDispatch)(q.oR),y=(0,a.useCallback)(()=>{void 0!==f&&(0,N.sx)(`${i}_audiences-info-notice`,"dismiss_notice",m[f].slug).finally(()=>{const e=2*N.Du;k(p,{expiresInSeconds:f+1=r||!0===_)return(0,W.jsx)(t,{});const{slug:v,content:A}=m[f];return(0,W.jsx)(e,{noPadding:!0,children:(0,W.jsx)(Ds,{content:A,dismissLabel:(0,d.__)("Got it","google-site-kit"),onDismiss:y,onInView:()=>{(0,N.sx)(`${i}_audiences-info-notice`,"view_notice",v)}})})}InfoNoticeWidget.propTypes={Widget:r().elementType.isRequired,WidgetNull:r().elementType.isRequired};const Rs=(0,w.A)({moduleName:S.L1})(InfoNoticeWidget);var Ls=i(15844);function SecondaryUserSetupWidget({Widget:e}){const[t,i]=(0,a.useState)(null),s=(0,l.useSelect)(e=>e(Q.K9).isSettingUpAudiences()),{enableSecondaryUserAudienceGroup:n}=(0,l.useDispatch)(Q.K9);return(0,Ls.A)(()=>{s||(async()=>{const{error:e}=await n();e&&i(e)})()}),t?(0,W.jsx)(Y,{Widget:e,errors:t,onRetry:async function(){i(null);const{error:e}=await n();e&&i(e)},showRetryButton:!(0,E.SG)(t)}):(0,W.jsx)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:(0,W.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[(0,W.jsx)(e,{noPadding:!0,children:(0,W.jsx)(AudienceTileLoading,{})}),(0,W.jsx)(e,{noPadding:!0,children:(0,W.jsx)(AudienceTileLoading,{})})]})})}SecondaryUserSetupWidget.propTypes={Widget:r().elementType.isRequired};var zs=i(23403);function PrimaryUserSetupWidget({Widget:e}){const{apiErrors:t,isSaving:i,failedAudiences:s,onEnableGroups:n}=(0,zs.A)(),o=(0,l.useSelect)(e=>e(Q.K9).isSettingUpAudiences());return(0,Ls.A)(()=>{o||n()}),!t.length&&!s.length||i?(0,W.jsx)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:(0,W.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[(0,W.jsx)(e,{noPadding:!0,children:(0,W.jsx)(AudienceTileLoading,{})}),(0,W.jsx)(e,{noPadding:!0,children:(0,W.jsx)(AudienceTileLoading,{})})]})}):(0,W.jsx)(Y,{Widget:e,errors:t,onRetry:n,failedAudiences:s,showRetryButton:!(0,E.SG)(t[0])})}PrimaryUserSetupWidget.propTypes={Widget:r().elementType.isRequired}},22942(e,t,i){i.d(t,{A_:()=>g,DF:()=>u,L1:()=>p,M0:()=>r,Mc:()=>a,Ok:()=>c,U9:()=>l,iW:()=>o,ue:()=>n,wq:()=>s,xR:()=>d});const s=1,n=2,o=3,r="enhanced-measurement-activation-banner-tooltip-state",a="enhanced-measurement-activation-banner-dismissed-item",l="_r.explorerCard..selmet",c="_r.explorerCard..seldim",g="_r..dataFilters",d="_r..nav",u="key-metrics-connect-ga4-cta-widget",p="analytics-4"},23403(e,t,i){i.d(t,{A:()=>u});var s=i(99408),n=i(63696),o=i(82871),r=i(51568),a=i(50539),l=i(97345),c=i(68832),g=i(99893),d=i(13137);function u({redirectURL:e,onSuccess:t,onError:i,onOAuthNavigation:u}={}){const p=(0,s.A)(),[m,h]=(0,n.useState)([]),[_,f]=(0,n.useState)([]),[k,y]=(0,n.useState)(!1),v=(0,a.useSelect)(e=>e(l.oR).hasScope(g.S9)),[A,x]=(0,c.A)(g.PW,"autoSubmit"),{setPermissionScopeError:b}=(0,a.useDispatch)(l.oR),{enableAudienceGroup:I,fetchSyncAvailableCustomDimensions:j,determineNeedForAnalytics4EditScope:M,syncAvailableAudiences:S}=(0,a.useDispatch)(g.K9);e||(e=(0,r.F)(globalThis.location.href,{notification:"audience_segmentation"}));const N=(0,n.useCallback)(async()=>{const{error:e}=await S();if(e)return{error:e};const{error:t}=await j();if(t)return{error:t};if(!v){const{error:e,needsScope:t}=await M();if(e)return{error:e};if(t)return{needsScope:!0}}x(!1);const{error:i,failedSiteKitAudienceSlugs:s}=await I(_)||{};return{error:i,failedSiteKitAudienceSlugs:s}},[I,_,j,v,M,x,S]),E=(0,n.useCallback)(async()=>{y(!0);const{error:s,needsScope:n,failedSiteKitAudienceSlugs:r}=await N();if(n)return x(!0),await(u?.()),void b({code:d.db,message:(0,o.__)("Additional permissions are required to create new audiences in Analytics.","google-site-kit"),data:{status:403,scopes:[g.S9],skipModal:!0,skipDefaultErrorNotifications:!0,redirectURL:e,errorRedirectURL:globalThis.location.href}});if(s||r?i?.():t?.(),p()){function a(e){return e.length?[]:e}s?(h([s]),f(a)):Array.isArray(r)?(f(r),h(a)):(h(a),f(a)),y(!1)}},[N,p,x,u,b,e,i,t]);return(0,n.useEffect)(()=>{v&&A&&E()},[v,A,E]),{apiErrors:m,failedAudiences:_,isSaving:k,onEnableGroups:E}}},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")}},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})},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"},1405(e,t,i){i.d(t,{a:()=>s});const s="sign-in-with-google"},51193(e,t,i){i.d(t,{Du:()=>u,GH:()=>a,Gp:()=>l,IS:()=>f,Jg:()=>g,N_:()=>y,O5:()=>k,Ql:()=>p,Qr:()=>m,XH:()=>_,r0:()=>c,sq:()=>h,tt:()=>d});var s=i(32091),n=i.n(s),o=i(17243),r=i(82871);const a="Invalid dateString parameter, it must be a string.",l='Invalid date range, it must be a string with the format "last-x-days".',c=60,g=60*c,d=24*g,u=7*d;function p(){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 m(e=""){if(!(0,o.isString)(e))return!1;if(3!==e.split("-").length)return!1;const t=new Date(e);return(0,o.isDate)(t)&&!isNaN(t)}function h(e){n()((0,o.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 _(e){n()(m(e),a);const[t,i,s]=e.split("-");return new Date(t,i-1,s)}function f(e,t){return h(y(e,t*d))}function k(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){n()(m(e)||(0,o.isDate)(e)&&!isNaN(e),a);const i=m(e)?_(e).getTime():e.getTime();return new Date(i-1e3*t)}},13137(e,t,i){i.d(t,{G:()=>a,HY:()=>c,SG:()=>l,db:()=>n,e4:()=>d,vl:()=>g});i(17243);var s=i(82871);const n="missing_required_scopes",o="insufficientPermissions",r="forbidden";function a(e){return e?.code===n}function l(e){return[o,r].includes(e?.data?.reason)}function c(e){return!!e?.data?.reconnectURL}function g(e,t){return!(!t?.storeName||l(e)||a(e)||c(e))}function d(e){return"internal_server_error"===e?.code?(0,s.__)("There was a critical error on this website while fetching data","google-site-kit"):"invalid_json"===e?.code?(0,s.__)("The server provided an invalid response","google-site-kit"):e?.message}},62954(e,t,i){function s(e,t){const i=e.getBoundingClientRect(),s=t.getBoundingClientRect();return!(i.bottoms})},49746(e,t,i){i.d(t,{Eo:()=>d,JK:()=>h,K5:()=>m,jq:()=>p,mK:()=>g});var s=i(17243),n=i(50532),o=i.n(n),r=i(82871);function a(e,t={}){const{formatUnit:i,formatDecimal:s}=function(e,t={}){const{hours:i,minutes:s,seconds:n}=l(e);return{hours:i,minutes:s,seconds:n,formatUnit(){const{unitDisplay:o="short",...a}=t,l={unitDisplay:o,...a,style:"unit"};return 0===e?p(n,{...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"),n?p(n,{...l,unit:"second"}):"",s?p(s,{...l,unit:"minute"}):"",i?p(i,{...l,unit:"hour"}):"").trim()},formatDecimal(){const t=(0,r.sprintf)( // translators: %s: number of seconds with "s" as the abbreviated unit. // translators: %s: number of seconds with "s" as the abbreviated unit. (0,r.__)("%ds","google-site-kit"),n);if(0===e)return t;const o=(0,r.sprintf)( // translators: %s: number of minutes with "m" as the abbreviated unit. // translators: %s: number of minutes with "m" as the abbreviated unit. (0,r.__)("%dm","google-site-kit"),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"),n?t:"",s?o:"",i?a:"").trim()}}}(e,t);try{return i()}catch{return s()}}function l(e){e=parseInt(e,10),Number.isNaN(e)&&(e=0);return{hours:Math.floor(e/60/60),minutes:Math.floor(e/60%60),seconds:Math.floor(e%60)}}function c(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e}function g(e){let t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:(0,s.isPlainObject)(e)&&(t={...e}),t}function d(e,t={}){e=(0,s.isFinite)(e)?e:Number(e),(0,s.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const i=g(t),{style:n="metric"}=i;return"metric"===n?function(e){const t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?(0,r.sprintf)( // translators: %s: an abbreviated number in millions. // translators: %s: an abbreviated number in millions. (0,r.__)("%sM","google-site-kit"),p(c(e),e%10==0?{}:t)):1e4<=e?(0,r.sprintf)( // translators: %s: an abbreviated number in thousands. // translators: %s: an abbreviated number in thousands. (0,r.__)("%sK","google-site-kit"),p(c(e))):1e3<=e?(0,r.sprintf)( // translators: %s: an abbreviated number in thousands. // translators: %s: an abbreviated number in thousands. (0,r.__)("%sK","google-site-kit"),p(c(e),e%10==0?{}:t)):p(e,{signDisplay:"never",maximumFractionDigits:1})}(e):"duration"===n?a(e,i):"durationISO"===n?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):p(e,i)}const u=o()(console.warn);function p(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 n={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},o=["signDisplay","compactDisplay"],r={};for(const[e,t]of Object.entries(s))n[e]&&t===n[e]||o.includes(e)||(r[e]=t);try{return new Intl.NumberFormat(i,r).format(e)}catch{return new Intl.NumberFormat(i).format(e)}}function m(e,t={}){const{locale:i=h(),style:s="long",type:n="conjunction"}=t;if(Intl.ListFormat){return new Intl.ListFormat(i,{style:s,type:n}).format(e)} /* translators: used between list items, there is a space after the comma. */const o=(0,r.__)(", ","google-site-kit");return e.join(o)}function 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:()=>f.tt,Jg:()=>f.Jg,Gp:()=>f.Gp,GH:()=>f.GH,r0:()=>f.r0,Du:()=>f.Du,Zf:()=>N,Cn:()=>x,G7:()=>_,vH:()=>h,N_:()=>f.N_,zh:()=>w,mK:()=>g.mK,Ql:()=>f.Ql,vY:()=>A,sq:()=>f.sq,VZ:()=>b.VZ,JK:()=>g.JK,IS:()=>f.IS,pH:()=>b.pH,kf:()=>j,O5:()=>f.O5,Qr:()=>f.Qr,x6:()=>I,K5:()=>g.K5,S_:()=>m,dc:()=>b.dc,Eo:()=>g.Eo,jq:()=>g.jq,DK:()=>S.D,N9:()=>M,p9:()=>o.p,XH:()=>f.XH,Zm:()=>l,sx:()=>n.sx,BI:()=>n.BI,CZ:()=>o.C,BG:()=>E});var s=i(17243),n=i(65054),o=i(50477),r=i(10523),a=i.n(r);function l(e){return a()(JSON.stringify(c(e)))}function c(e){const t={};return Object.keys(e).sort().forEach(i=>{let s=e[i];s&&"object"==typeof s&&!Array.isArray(s)&&(s=c(s)),t[i]=s}),t}var g=i(49746);function d(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'$1')}function u(e){return`

${e.replace(/\n{2,}/g,"

")}

`}function p(e){return e.replace(/\n/gi,"
")}function m(e){const t=[d,u,p];let i=e;for(const e of t)i=e(i);return i}function h(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]}function _(e){const t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}var f=i(51193),k=i(30908),y=i(38017),v=i(62540);function A(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:i=!1}=t;return(0,k.Ay)((0,v.jsx)(y.A,{direction:e>0?"up":"down",invertColor:i}))}function x(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var b=i(48276);function I(e){const t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function j(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 S=i(11193);function N(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 E(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function w(e){if(!e)return"";const t=e.replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(t)).replace(/(\\)/g,"");return(0,s.unescape)(t)}},31012(e,t,i){i.d(t,{c:()=>r});var s=i(82871),n=i(22942),o=i(32803);function r(e="",t={}){const{slug:i="",name:r="",owner:a={}}=t||{};if(!i||!r)return e;let l="",c="";return n.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")):o.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:()=>n});var s=i(20697);function n(e){return s.kz.includes(e)}},11193(e,t,i){i.d(t,{D:()=>o});var s=i(32091),n=i.n(s);function o(e,{dateRangeLength:t}){n()(Array.isArray(e),"report must be an array to partition."),n()(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:()=>n});var s=i(31234);const n=i.n(s)()(globalThis)},50477(e,t,i){i.d(t,{C:()=>o,p:()=>n});var s=i(55465);function n(e,t={}){return{__html:s.O.sanitize(e,t)}}function o(e){const t="object"==typeof e?e.toString():e;return t?.replace?.(/\/+$/,"")}},11883(e,t,i){i.d(t,{YJ:()=>o,Eq:()=>r});var s=i(97513),n=i(17243);function o(e,t){const i=document.querySelector(e);if(!i)return 0;const s=i.getBoundingClientRect().top,n=r(t);return s+globalThis.scrollY-n}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,n.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:()=>I,sx:()=>x,BI:()=>b});var s=i(17243),n=i(84895);const o="_googlesitekitDataLayer",r="data-googlesitekit-gtag";function a(e){return function(){e[o]=e[o]||[],e[o].push(arguments)}}const l={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};const{activeModules:c=[],isSiteKitScreen:g,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:m,isAuthenticated:h,userRoles:_}=globalThis._googlesitekitTrackingData||{},f={activeModules:c,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:m,isSiteKitScreen:g,userRoles:_,isAuthenticated:h,pluginVersion:"1.181.0"},{enableTracking:k,disableTracking:y,isTrackingEnabled:v,initializeSnippet:A,trackEvent:x,trackEventOnce:b}=function(e,t=globalThis,i=globalThis){const c={...l,...e};c.referenceSiteURL&&(c.referenceSiteURL=c.referenceSiteURL.toString().replace(/\/+$/,""));const g=function(e,t){const i=a(t);let s;const{activeModules:l,referenceSiteURL:c,userIDHash:g,userRoles:d=[],isAuthenticated:u,pluginVersion:p}=e;return function(){const{document:t}=globalThis;if(void 0===s&&(s=!!t.querySelector(`script[${r}]`)),s)return!1;s=!0;const a=d?.length?d.join(","):"";i("js",new Date),i("config",e.trackingID,{groups:"site_kit",send_page_view:e.isSiteKitScreen,domain:c,plugin_version:p||"",enabled_features:Array.from(n.t).join(","),active_modules:l.join(","),authenticated:u?"1":"0",user_properties:{user_roles:a,user_identifier:g}});const m=t.createElement("script");return m.setAttribute(r,""),m.async=!0,m.src=`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${o}`,t.head.appendChild(m),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${o}`}}}(c,t),d=function(e,t,i,s){const n=a(t);return async function(t,o,r,a){const{trackingEnabled:l}=e;if(!l)return null;i();const c={send_to:"site_kit",event_category:t,event_label:r,value:a};return new Promise(e=>{const i=setTimeout(function(){s.console.warn(`Tracking event "${o}" (category "${t}") took too long to fire.`),e()},1e3);function r(){clearTimeout(i),e()}n("event",o,{...c,event_callback:r}),s._gaUserPrefs?.ioo?.()&&r()})}}(c,t,g,i),u={};return{enableTracking:function(){c.trackingEnabled=!0},disableTracking:function(){c.trackingEnabled=!1},initializeSnippet:g,isTrackingEnabled:function(){return!!c.trackingEnabled},trackEvent:d,trackEventOnce:function(...e){const t=JSON.stringify(e);u[t]||(u[t]=(0,s.once)(d)),u[t](...e)}}}(f);function I(e){e?k():y()}g&&d&&A()},48276(e,t,i){i.d(t,{VZ:()=>o,dc:()=>r,pH:()=>n,r0:()=>a});var s=i(84024);function n(e){try{return new URL(e).pathname}catch{}return null}function o(e,t){try{return new URL(t,e).href}catch{}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function r(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function a(e,t){if(!(0,s.m)(e))return e;if(e.length<=t)return e;const i=new URL(e),n=e.replace(i.origin,"");if(n.lengtha});var s=i(50539),n=i(74426),o=i(88273),r=i(62540);function a({moduleName:e,FallbackComponent:t,IncompleteComponent:i}){return a=>{function WhenActiveComponent(n){const l=(0,s.useSelect)(t=>t(o.i).getModule(e),[e]);if(!l)return null;const c=t||n.WidgetNull||null;if(!1===l.active)return c&&(0,r.jsx)(c,{...n});if(!1===l.connected){const e=i||c;return e&&(0,r.jsx)(e,{...n})}return(0,r.jsx)(a,{...n})}return WhenActiveComponent.displayName=`When${(0,n.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),n=i.n(s),o=i(63560),r=i(63696),a=i(62540);function l(e){function WithIntersectionObserverComponent({onInView:t,...i}){const s=(0,r.useRef)(),n=(0,o.A)(s,{root:null,threshold:.45}),[l,c]=(0,r.useState)(!1),g=!!n?.isIntersecting&&!!n?.intersectionRatio;return(0,r.useEffect)(()=>{n&&g&&!l&&(t(),c(!0))},[l,g,n,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:n().func.isRequired,...e.propTypes},WithIntersectionObserverComponent}},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=37937,e(e.s=t);var t});e.O()}]);