Файловый менеджер - Редактировать - /home/avadvi5/public_html/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-main-dashboard-91958d74adb558eaefa5.js
Ðазад
"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[290,978,998],{80:(e,t,i)=>{i.d(t,{CV:()=>E,Cu:()=>A,K9:()=>s,Kr:()=>h,Lf:()=>p,Oh:()=>r,PW:()=>j,Rx:()=>T,S9:()=>f,TQ:()=>u,Vt:()=>w,Wl:()=>k,ZC:()=>n,ZY:()=>a,_p:()=>C,ag:()=>m,aj:()=>g,bz:()=>M,dq:()=>N,f2:()=>c,fB:()=>S,fV:()=>I,iB:()=>d,kc:()=>l,mo:()=>y,nc:()=>b,rm:()=>x,to:()=>o,wo:()=>_,yn:()=>v});const s="modules/analytics-4",n="account_create",o="property_create",r="webdatastream_create",a="analyticsSetup",l=10,c=0,d="https://www.googleapis.com/auth/tagmanager.readonly",u="enhanced-measurement-form",g="enhanced-measurement-enabled",p="enhanced-measurement-should-dismiss-activation-banner",m="analyticsAccountCreate",h="analyticsCustomDimensionsCreate",f="https://www.googleapis.com/auth/analytics.edit",_="dashboardAllTrafficWidgetDimensionName",y="dashboardAllTrafficWidgetDimensionColor",v="dashboardAllTrafficWidgetDimensionValue",k="dashboardAllTrafficWidgetActiveRowIndex",x="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"}},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],S={"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"}}}}]}}]}}}}]}},j="audiencePermissionsSetup",E="audienceTileCustomDimensionCreate",M="audience-selection-panel-expirable-new-badge-",N="audience",w="customDimension",C="property",T=[N,w,C]},338:(e,t,i)=>{i.d(t,{A:()=>UserSettingsSelectionPanel});var s=i(82871),n=i(63696),o=i(81276),r=i(50539),a=i(7972),l=i(97345),c=i(76729),d=i(15650),u=i(62688),g=i.n(u),p=i(29785),m=i(88273),h=i(13606),f=i(70301),_=i(4124),y=i(38432),v=i(83880),k=i(62659),x=i(20697),A=i(4751),b=i(62540);function Header({closePanel:e,isLoading:t}){const i=(0,k.A)(),o=(0,_.A)(),a=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),l=(0,r.useSelect)(e=>e(p.O4).getSiteKitAdminSettingsURL({scrollTo:"email-reporting"})),{navigateTo:c}=(0,r.useDispatch)(f.M),u=(0,n.useCallback)(()=>{x.KK===i&&e(),c(l)},[l,c,e,i]);return(0,b.jsxs)(d.W4,{title:(0,s.__)("Email reports subscription","google-site-kit"),onCloseClick:e,children:[t&&(0,b.jsxs)(n.Fragment,{children:[(0,b.jsx)(A.A,{width:"100%",height:"16px"}),(0,b.jsx)("br",{})]}),!t&&!o&&a&&(0,b.jsx)(v.A,{type:"body",size:"small",children:(0,h.A)((0,s.__)("You can always deactivate this feature in <link>Settings</link>","google-site-kit"),{link:(0,b.jsx)(y.A,{onClick:u,secondary:!0})})})]})}Header.propTypes={closePanel:g().func.isRequired,isLoading:g().bool};var I=i(68329),S=i(76984);function SelectionPanelFooter({notice:e,onNoticeDismiss:t}){return(0,b.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,b.jsx)("div",{className:"googlesitekit-selection-panel-footer__content",children:e?(0,b.jsx)(I.A,{type:e.type,title:e.title,description:e.text,dismissButton:{label:(0,s.__)("Got it","google-site-kit"),onClick:t},hideIcon:!0}):(0,b.jsx)(v.A,{type:"body",size:"small",children:(0,s.__)("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")})})})}SelectionPanelFooter.propTypes={notice:g().shape({title:g().node,text:g().node,type:g().oneOf(Object.values(S.Q))}),onNoticeDismiss:g().func};var j=i(33052),E=i(4452),M=i.n(E),N=i(8513),w=i(97513),C=i(82218);function FrequencySelector({isUserSubscribed:e,isLoading:t}){const i=(0,w.dv)()===w.mp,o=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),a=(0,n.useMemo)(()=>[(0,s._x)("Sunday","day name","google-site-kit"),(0,s._x)("Monday","day name","google-site-kit"),(0,s._x)("Tuesday","day name","google-site-kit"),(0,s._x)("Wednesday","day name","google-site-kit"),(0,s._x)("Thursday","day name","google-site-kit"),(0,s._x)("Friday","day name","google-site-kit"),(0,s._x)("Saturday","day name","google-site-kit")],[]);const c=(0,r.useSelect)(e=>e(p.O4).getStartOfWeek()),d=(0,r.useSelect)(e=>e(l.oR).getEmailReportingFrequency()),u=(0,r.useSelect)(e=>e(l.oR).getEmailReportingSavedFrequency()),{setEmailReportingFrequency:g}=(0,r.useDispatch)(l.oR),m=(0,s.sprintf)(/* translators: %s: localized day-of-week name (e.g. Monday). */ /* translators: %s: localized day-of-week name (e.g. Monday). */ (0,s.__)("Sent every %s","google-site-kit"),function(e){const t=Number.isInteger(e)&&e>=0&&e<=6?e:1;return a[t]}(c)),h={weekly:{label:(0,s.__)("Weekly","google-site-kit"),period:(0,s.__)("Last 7 days","google-site-kit"),description:m},monthly:{label:(0,s.__)("Monthly","google-site-kit"),period:(0,s.__)("Last month","google-site-kit"),description:(0,s.__)("Sent on the 1st of each month","google-site-kit")},quarterly:{label:(0,s.__)("Quarterly","google-site-kit"),period:(0,s.__)("Last quarter","google-site-kit"),description:(0,s.__)("Sent on the 1st of each quarter","google-site-kit")}};return t?(0,b.jsxs)(n.Fragment,{children:[(0,b.jsx)("br",{}),(0,b.jsx)(A.A,{width:"20%",height:"16px"}),(0,b.jsx)("br",{}),(0,b.jsx)("div",{className:"googlesitekit-frequency-selector",children:(0,b.jsx)(C.A,{width:"100%",height:"184px",count:3})})]}):!1===o?null:(0,b.jsxs)(n.Fragment,{children:[(0,b.jsx)(j.A,{className:"googlesitekit-frequency-selector-title",type:"label",size:"small",as:"h3",children:(0,s.__)("Frequency","google-site-kit")}),e&&u&&!i&&(0,b.jsx)("div",{className:"googlesitekit-frequency-selector__badge-row",children:l.lV.map(e=>(0,b.jsx)("div",{className:"googlesitekit-frequency-selector__badge-cell",children:e===u&&(0,b.jsx)("div",{className:"googlesitekit-frequency-selector__current-subscription",children:(0,b.jsx)(j.A,{type:N.SZ,size:N.Kk,children:(0,s.__)("Current subscription","google-site-kit")})},e)},e))}),(0,b.jsx)("div",{className:"googlesitekit-frequency-selector",role:"radiogroup","aria-label":(0,s.__)("Frequency","google-site-kit"),children:l.lV.map(t=>{const n=d===t,{label:o,period:r,description:a}=h[t]||{};return(0,b.jsxs)("div",{className:M()("googlesitekit-frequency-selector__card",{"googlesitekit-frequency-selector__card--selected":n}),role:"radio","aria-checked":n,tabIndex:0,onClick:()=>g(t),onKeyDown:e=>function(e,t){" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||(e.preventDefault(),g(t))}(e,t),children:[e&&u&&i&&t===u&&(0,b.jsx)("div",{className:M()("googlesitekit-frequency-selector__current-subscription",{"googlesitekit-frequency-selector__current-subscription--selected":n}),children:(0,b.jsx)(j.A,{type:N.SZ,size:N.Kk,children:(0,s.__)("Current subscription","google-site-kit")})}),(0,b.jsxs)("div",{className:"googlesitekit-frequency-selector__content",children:[(0,b.jsx)("div",{className:"googlesitekit-frequency-selector__label",children:(0,b.jsx)(j.A,{type:"label",size:"large",children:o})}),(0,b.jsxs)("div",{className:"googlesitekit-frequency-selector__period-description",children:[(0,b.jsx)("div",{className:"googlesitekit-frequency-selector__period",children:(0,b.jsx)(j.A,{type:"body",size:"small",children:r})}),(0,b.jsx)("div",{className:"googlesitekit-frequency-selector__description",children:(0,b.jsx)(j.A,{type:"body",size:"small",children:a})})]})]})]},t)})})]})}FrequencySelector.propTypes={isUserSubscribed:g().bool,isLoading:g().bool};var T=i(11763),D=i(52696);const R={SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",UPDATE_SETTINGS:"update_settings"};function SubscribeActions({isSubscribed:e,onSubscribe:t,onUnsubscribe:i,updateSettings:o,isSavingSettings:r,isLoading:a}){const[l,c]=(0,n.useState)("");function d(e){switch(c(e),e){case R.UPDATE_SETTINGS:o();break;case R.SUBSCRIBE:t();break;case R.UNSUBSCRIBE:i()}}return!1===(0,D.WM)(e=>e(p.O4).isEmailReportingEnabled())?null:(0,b.jsxs)("div",{className:"googlesitekit-selection-panel-subscribe-actions",children:[a&&(0,b.jsx)(C.A,{width:"140px",height:"42px",count:2}),!a&&e&&(0,b.jsx)(T.A,{onClick:()=>d(R.UNSUBSCRIBE),isSaving:r&&l===R.UNSUBSCRIBE,disabled:r,tertiary:!0,children:(0,s.__)("Unsubscribe","google-site-kit")}),!a&&(0,b.jsx)(T.A,{onClick:()=>d(e?R.UPDATE_SETTINGS:R.SUBSCRIBE),isSaving:r&&l!==R.UNSUBSCRIBE,disabled:r,children:e?(0,s.__)("Update Settings","google-site-kit"):(0,s.__)("Subscribe","google-site-kit")})]})}SubscribeActions.propTypes={isSubscribed:g().bool,onSubscribe:g().func.isRequired,onUnsubscribe:g().func.isRequired,updateSettings:g().func.isRequired,isSavingSettings:g().bool,isLoading:g().bool};var O=i(91117),L=i(63737),z=i(25797),B=i(30289),P=i(68761);const G="email_reports_user_settings_reports_disabled_notice",F=(0,B.A)(z.A);function EmailReportingDisabledNotice(){const e=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),t=(0,_.A)(),i=(0,r.useSelect)(e=>e(p.O4).getSiteKitAdminSettingsURL({scrollTo:"email-reporting"})),o=(0,P.A)(G),{setValue:l}=(0,L.A)(a.n),d=(0,n.useCallback)(()=>{o.confirm(),l(c.Q,!1)},[l,o]);return e||t?null:(0,b.jsx)(F,{type:S.Q.WARNING,title:(0,s.__)("Email reports are disabled","google-site-kit"),description:(0,s.__)("This feature was disabled for all users. You can enable email report subscriptions in settings.","google-site-kit"),ctaButton:{label:(0,s.__)("Edit settings","google-site-kit"),href:i,onClick:d},onInView:o.view})}const U=(0,B.A)(z.A);function EmailReportingDisabledViewOnlyNotice(){const e=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),t=(0,_.A)(),i=(0,P.A)(G);return e||!t?null:(0,b.jsx)(U,{type:S.Q.WARNING,title:(0,s.__)("Email reports are unavailable","google-site-kit"),description:(0,s.__)("To enable email reports, contact your administrator","google-site-kit"),onInView:i.view})}var W=i(14183),V=i(22942),H=i(65929),Y=i(69831),q=i(62051);const Q="email_reports_user_settings_setup_analytics_notice",Z=(0,B.A)(z.A);function SetupAnalyticsNotice(){const[e,t]=(0,n.useState)(!1),i=(0,P.A)(Q),o=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),a=(0,_.A)(),c=(0,r.useSelect)(e=>e(m.i).isModuleActive(V.L1)),d=(0,r.useSelect)(e=>e(m.i).isModuleConnected(V.L1)),u=(0,r.useSelect)(e=>e(m.i).isModuleDisconnected(V.L1)),g=(0,r.useSelect)(e=>e(l.oR).isItemDismissed(Q)),{dismissItem:f}=(0,r.useDispatch)(l.oR),y=(0,H.A)(V.L1),v=(0,Y.A)(V.L1),k=c?v:y,x=(0,n.useCallback)(()=>{k&&(i.confirm(),t(!0),k())},[k,i]),A=(0,n.useCallback)(async()=>{i.dismiss(),await f(Q)},[f,i]),I=(0,r.useSelect)(e=>e(p.O4).getDocumentationLinkURL("ga4"));if(!o||a||!1!==g||d||u)return null;const j=c?(0,s.__)("Complete setup","google-site-kit"):(0,s.__)("Connect Analytics","google-site-kit");return(0,b.jsx)(Z,{type:S.Q.NEW,title:(0,s.__)("Understand how visitors interact with your content","google-site-kit"),description:(0,h.A)((0,s.__)("Get visitor insights in your email report by connecting Analytics. <a>Learn more</a>","google-site-kit"),{a:(0,b.jsx)(q.A,{id:Q,label:(0,s.__)("Learn more","google-site-kit"),url:I})}),ctaButton:{label:j,inProgress:e,disabled:e,onClick:x},dismissButton:{label:(0,s.__)("Maybe later","google-site-kit"),onClick:A},onInView:i.view})}function Notices({isLoading:e,onGoToSettings:t}){return e?null:(0,b.jsxs)(n.Fragment,{children:[(0,b.jsx)(W.A,{onGoToSettings:t}),(0,b.jsx)(O.A,{}),(0,b.jsx)(SetupAnalyticsNotice,{}),(0,b.jsx)(EmailReportingDisabledNotice,{}),(0,b.jsx)(EmailReportingDisabledViewOnlyNotice,{})]})}Notices.propTypes={isLoading:g().bool,onGoToSettings:g().func};var K=i(82267),$=i(7076),X=i(49383),J=i(46467),ee=i(63972),te=i(13047);function InviteUserRow({user:e,inviteResult:t=null,onInviteResult:i}){const o=(0,k.A)(),{id:a,name:l,email:c,role:d}=e,{inviteUser:u}=(0,r.useDispatch)(p.O4),g=(0,r.useSelect)(e=>e(p.O4).isInvitingUser(a)),m=(0,n.useCallback)(async()=>{(0,te.sx)(`${o}_email_reports_user_settings-sidebar`,"send_invite");const{error:e}=await u(a);i(a,e?{status:"error",message:e.message}:{status:"success"})},[o,a,u,i]);return(0,b.jsxs)("div",{className:"googlesitekit-invite-user-row",children:[(0,b.jsxs)("div",{className:"googlesitekit-invite-user-row__info",children:[(0,b.jsxs)("div",{className:"googlesitekit-invite-user-row__name",children:[l,(0,b.jsxs)("span",{className:"googlesitekit-invite-user-row__role",children:["(",d,")"]})]}),(0,b.jsx)("div",{className:"googlesitekit-invite-user-row__email",children:c})]}),(0,b.jsx)("div",{className:"googlesitekit-invite-user-row__action",children:"success"===t?.status||e.invited?(0,b.jsxs)("span",{className:"googlesitekit-invite-user-row__success",children:[(0,s.__)("Invitation sent","google-site-kit"),(0,b.jsx)(ee.A,{width:"14",height:"14"})]}):"error"===t?.status?(0,b.jsx)("span",{className:"googlesitekit-invite-user-row__error",children:(0,h.A)((0,s.__)("Failed to send invite. <RetryLink>Retry</RetryLink>","google-site-kit"),{RetryLink:(0,b.jsx)(y.A,{"aria-label":(0,s.__)("Retry sending email subscription invite","google-site-kit"),onClick:m})})}):(0,b.jsx)(X.Button,{onClick:m,disabled:g,trailingIcon:(0,b.jsx)(J.A,{width:"18",height:"18"}),tertiary:!0,children:g?(0,s.__)("Sending…","google-site-kit"):(0,s.__)("Send invite","google-site-kit")})})]})}function InviteUserSkeletonList({visibleItems:e=3}){return(0,b.jsx)("div",{className:"googlesitekit-invite-user-list",children:Array.from({length:e}).map((e,t)=>(0,b.jsxs)("div",{className:"googlesitekit-invite-user-row googlesitekit-invite-user-row--loading",children:[(0,b.jsxs)("div",{className:"googlesitekit-invite-user-row__info",children:[(0,b.jsx)(A.A,{width:"120px",height:"16px"}),(0,b.jsx)(A.A,{width:"180px",height:"12px"})]}),(0,b.jsx)("div",{className:"googlesitekit-invite-user-row__action",children:(0,b.jsx)(A.A,{width:"90px",height:"32px",shape:"square"})})]},t))})}function EmptyMessage({text:e}){return(0,b.jsx)("div",{className:"googlesitekit-invite-user-list__empty",children:e})}function InviteUserList({users:e,searchTerm:t="",inviteResults:i={},onInviteResult:n,isLoading:o=!1}){return o?(0,b.jsx)(InviteUserSkeletonList,{visibleItems:3}):0===e.length?t?(0,b.jsx)(EmptyMessage,{text:(0,s.__)("No users match your search.","google-site-kit")}):(0,b.jsx)(EmptyMessage,{text:(0,s.__)("No users are eligible to receive invitations.","google-site-kit")}):(0,b.jsx)("div",{className:"googlesitekit-invite-user-list",children:e.map(e=>(0,b.jsx)(InviteUserRow,{user:e,inviteResult:i[e.id],onInviteResult:n},e.id))})}InviteUserRow.propTypes={user:g().shape({id:g().number.isRequired,name:g().string.isRequired,email:g().string.isRequired,role:g().string,invited:g().bool}).isRequired,inviteResult:g().shape({status:g().oneOf(["success","error"]),message:g().string}),onInviteResult:g().func.isRequired},InviteUserSkeletonList.propTypes={visibleItems:g().number},InviteUserList.propTypes={users:g().arrayOf(g().shape({id:g().number.isRequired,name:g().string,email:g().string.isRequired,role:g().string})).isRequired,searchTerm:g().string,inviteResults:g().objectOf(g().shape({status:g().oneOf(["success","error"]),message:g().string})),onInviteResult:g().func.isRequired,isLoading:g().bool};var ie=i(52684),se=i(55989),ne=i(72545);function InviteSearchInput({value:e="",onChange:t}){const i=(0,ie.A)(InviteSearchInput,"InviteSearchInput"),o=(0,n.useCallback)(e=>t(e.target.value),[t]),r=(0,n.useCallback)(()=>{t("")},[t]);return(0,b.jsxs)("div",{className:"googlesitekit-invite-search-input",children:[(0,b.jsx)(se.A,{children:(0,b.jsx)("label",{htmlFor:i,children:(0,s.__)("Search user name, role, or email","google-site-kit")})}),(0,b.jsx)("input",{id:i,type:"text",className:"googlesitekit-invite-search-input__input",placeholder:(0,s.__)("Search user name, role, or email","google-site-kit"),value:e,onChange:o}),e&&(0,b.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,s.__)("Clear search","google-site-kit"),children:(0,b.jsx)(ne.A,{width:"8",height:"8"})})]})}InviteSearchInput.propTypes={value:g().string,onChange:g().func.isRequired};const oe=6;function InviteOthersToSubscribe(){const e=(0,r.useSelect)(e=>e(l.oR).hasCapability(l.HD)),t=(0,r.useSelect)(e=>e(a.n).getValue(c.Q)),[i,o]=(0,n.useState)(""),[d,u]=(0,n.useState)(""),[g,m]=(0,n.useState)({}),[f,_]=(0,n.useState)(t),v=(0,$.d)(u,300);(0,n.useEffect)(()=>{v(i)},[i,v]),(0,n.useEffect)(()=>{t&&_(!0)},[t]);const k=(0,r.useInViewSelect)(e=>f?e(p.O4).getEligibleSubscribers({search:d}):null,[d,f]),x=(0,r.useInViewSelect)(e=>f?e(p.O4).getEligibleSubscribers({search:""}):null,[f]),A=(0,r.useInViewSelect)(e=>!!f&&!e(p.O4).hasFinishedResolution("getEligibleSubscribers",[{search:d}]),[d,f]),I=(0,r.useSelect)(e=>e(p.O4).getDocumentationLinkURL("dashboard-sharing")),S=(0,r.useSelect)(e=>e(p.O4).getDocumentationLinkURL("email-reporting-inviting-others"));(0,n.useEffect)(()=>{e&&t&&(v.cancel(),o(""),u(""),m({}))},[t,e,v]);const j=(0,n.useCallback)((e,t)=>{m(i=>({...i,[e]:t}))},[]);if(!e)return null;const E=k?.users||[],M=(x?.total||0)>oe,N=(0,h.A)((0,s.__)("You can only invite users who have access to the dashboard. Use the <sharingLink>dashboard sharing</sharingLink> feature to grant access. <learnMoreLink>Learn more</learnMoreLink>","google-site-kit"),{sharingLink:(0,b.jsx)(y.A,{href:I,external:!0,hideExternalIndicator:!0}),learnMoreLink:(0,b.jsx)(y.A,{href:S,external:!0,hideExternalIndicator:!0})});return(0,b.jsxs)("div",{className:"googlesitekit-invite-others-to-subscribe",children:[(0,b.jsxs)("div",{className:"googlesitekit-invite-others-to-subscribe__header",children:[(0,b.jsx)("span",{className:"googlesitekit-invite-others-to-subscribe__title",children:(0,s.__)("Invite others to subscribe","google-site-kit")}),(0,b.jsx)(K.A,{title:N})]}),M&&(0,b.jsx)(InviteSearchInput,{value:i,onChange:o}),(0,b.jsx)(InviteUserList,{users:E,searchTerm:d,inviteResults:g,onInviteResult:j,isLoading:A})]})}function PanelContent({notice:e,isUserSubscribed:t,isSavingSettings:i,onSaveCallback:o,onSubscribe:a,onUnsubscribe:c,onNoticeDismiss:u,closePanel:g}){const h=(0,r.useSelect)(e=>e(l.oR).getUser()),f=h?.wpEmail,y=(0,_.A)(),k=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),x=(0,r.useSelect)(e=>y?null:e(p.O4).getEmailReportingErrors()),I=[k,(0,r.useSelect)(e=>e(l.oR).getEmailReportingSettings()),x,(0,r.useSelect)(e=>e(m.i).getModules())].some(e=>void 0===e);return(0,b.jsxs)(n.Fragment,{children:[(0,b.jsx)(Header,{closePanel:g,isLoading:I}),(0,b.jsxs)(d.kA,{className:"googlesitekit-user-settings-selection__panel-content",children:[(0,b.jsx)(Notices,{isLoading:I,onGoToSettings:g}),(0,b.jsxs)("div",{className:"googlesitekit-user-settings-selection__panel-description",children:[I&&(0,b.jsxs)(n.Fragment,{children:[(0,b.jsx)(A.A,{width:"100%",height:"16px"}),(0,b.jsx)(A.A,{width:"60%",height:"16px"})]}),!I&&k&&(0,b.jsxs)(v.A,{type:"body",size:"small",children:[(0,s.__)("You’ll receive the report to your WordPress user email","google-site-kit"),f&&(0,b.jsx)(j.A,{type:"body",size:"medium",children:f})]})]}),(0,b.jsx)(FrequencySelector,{isUserSubscribed:t,isLoading:I}),(0,b.jsx)(SubscribeActions,{onSubscribe:a,onUnsubscribe:c,updateSettings:o,isSubscribed:t,isSavingSettings:i,isLoading:I}),k&&!y&&(0,b.jsx)(InviteOthersToSubscribe,{})]}),k&&(0,b.jsx)(SelectionPanelFooter,{notice:e,onNoticeDismiss:u})]})}function UserSettingsSelectionPanel(){const e=(0,k.A)(),t=(0,r.useSelect)(e=>e(a.n).getValue(c.Q)),i=(0,o.A)(t),u=(0,n.useCallback)(()=>{(0,te.sx)(`${e}_email_reports_user_settings-sidebar`,"user_settings_sidebar_view")},[e]),g=(0,r.useSelect)(e=>t?e(l.oR).getEmailReportingSettings():{}),p=(0,r.useSelect)(e=>!!t&&e(l.oR).isSavingEmailReportingSettings()),m=(0,r.useSelect)(e=>e(l.oR).getEmailReportingFrequency()),[h,f]=(0,n.useState)(null),{setValue:_}=(0,r.useDispatch)(a.n),{saveEmailReportingSettings:y,resetEmailReportingSettings:v}=(0,r.useDispatch)(l.oR),x=(0,n.useCallback)(()=>{t&&(setTimeout(()=>{v(),f(null)},310),_(c.Q,!1),(0,te.sx)(`${e}_email_reports_user_settings-sidebar`,"user_settings_sidebar_close"))},[t,v,_,e]),A=(0,n.useCallback)(async()=>{const{error:t}=await y();(0,te.sx)(`${e}_email_reports_user_settings-sidebar`,"update_settings",m),f(t?{type:S.Q.ERROR,text:t?.message||(0,s.__)("An error occurred.","google-site-kit")}:{type:S.Q.SUCCESS,text:(0,s.__)("You’ve successfully updated frequency settings!","google-site-kit")})},[y,e,m]),I=(0,n.useCallback)(async()=>{const{error:t}=await y({subscribed:!0});(0,te.sx)(`${e}_email_reports_user_settings-sidebar`,"subscribe",m),f(t?{type:S.Q.ERROR,text:t?.message||(0,s.__)("An error occurred.","google-site-kit")}:{type:S.Q.SUCCESS,title:(0,s.__)("You’ve successfully subscribed to email reports!","google-site-kit"),text:(0,s.__)("Look for a confirmation email in your inbox. If you don’t see it, check your spam folder.","google-site-kit")})},[y,e,m]),j=(0,n.useCallback)(async()=>{const{error:t}=await y({subscribed:!1});(0,te.sx)(`${e}_email_reports_user_settings-sidebar`,"unsubscribe"),f(t?{type:S.Q.ERROR,text:t?.message||(0,s.__)("An error occurred.","google-site-kit")}:{type:S.Q.INFO_ALT_2,text:(0,s.__)("You’ve unsubscribed from email reports","google-site-kit")})},[y,e]),E=(0,n.useCallback)(()=>f(null),[]);return(0,n.useEffect)(()=>{!i&&t&&_("admin-screen-tooltip",{isTooltipVisible:!1})},[t,i,_]),(0,b.jsx)(d.Ay,{className:"googlesitekit-user-settings-selection-panel googlesitekit-email-reporting-settings",isOpen:!!t,onOpen:u,closePanel:x,children:(0,b.jsx)(PanelContent,{notice:h,isUserSubscribed:g?.subscribed,isSavingSettings:p,onSaveCallback:A,onSubscribe:I,onUnsubscribe:j,onNoticeDismiss:E,closePanel:x})})}PanelContent.propTypes={savedFrequency:g().string,notice:g().shape({title:g().string,text:g().string,type:g().oneOf(Object.values(S.Q))}),isUserSubscribed:g().bool,isSavingSettings:g().bool,onSaveCallback:g().func,onSubscribe:g().func,onUnsubscribe:g().func,onNoticeDismiss:g().func,closePanel:g().func}},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;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.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"})))},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(50539),c=i(49383),d=i(29785),u=i(88273),g=i(13137),p=i(4124),m=i(38432),h=i(62540);function ReportErrorActions(e){const{moduleSlug:t,error:i,GetHelpLink:s,hideGetHelpLink:n,buttonVariant:f,onRetry:_,onRequestAccess:y,getHelpClassName:v,RequestAccessButton:k,RetryButton:x}=e,A=(0,p.A)(),b=(0,l.useSelect)(e=>e(u.i).getModuleStoreName(t)),I=(0,l.useSelect)(e=>"function"==typeof e(b)?.getServiceEntityAccessURL?e(b).getServiceEntityAccessURL():null),S=Array.isArray(i)?i:[i],j=(0,l.useSelect)(e=>S.map(t=>{const i=e(b)?.getSelectorDataForError(t);return{...t,selectorData:i}})),E=j?.filter(e=>(0,g.vl)(e,e.selectorData)&&"getReport"===e.selectorData.name),M=!!E.length,N=(0,l.useSelect)(e=>{const i={...M?E[0]:S[0]};return(0,g.SG)(i)&&(i.code=`${t}_insufficient_permissions`),e(d.O4).getErrorTroubleshootingLinkURL(i)}),w=(0,l.useDispatch)(),C=S.some(e=>(0,g.SG)(e)),T=(0,o.useCallback)(()=>{E.forEach(e=>{const{selectorData:t}=e;w(t.storeName).invalidateResolution(t.name,t.args)}),_?.()},[w,E,_]),D=I&&C&&!A;return(0,h.jsxs)("div",{className:"googlesitekit-report-error-actions",children:[D&&("function"==typeof k?(0,h.jsx)(k,{requestAccessURL:I}):(0,h.jsx)(c.Button,{onClick:y,href:I,target:"_blank",danger:"danger"===f,tertiary:"tertiary"===f,children:(0,a.__)("Request access","google-site-kit")})),M&&(0,h.jsxs)(o.Fragment,{children:["function"==typeof x?(0,h.jsx)(x,{handleRetry:T}):(0,h.jsx)(c.Button,{onClick:T,danger:"danger"===f,tertiary:"tertiary"===f,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? <HelpLink />","google-site-kit"),{HelpLink:(0,h.jsx)(m.A,{href:N,external:!0,hideExternalIndicator:!0,children:(0,a.__)("Get help","google-site-kit")})})})]}),!M&&!n&&(0,h.jsx)("div",{className:v,children:"function"==typeof s?(0,h.jsx)(s,{linkURL:N}):(0,h.jsx)(m.A,{href:N,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}},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}},4008:(e,t,i)=>{i.d(t,{Z:()=>c});var s=i(31589),n=i(40960),o=i(90187),r=i(63696),a=i(50539),l=i(7972);function c(){const{setIsOnline:e}=(0,a.useDispatch)(l.n),t=(0,a.useSelect)(e=>e(l.n).getIsOnline()),i=(0,r.useCallback)(async()=>{if(navigator.onLine){try{await(0,o.default)({path:"/google-site-kit/v1/"})}catch(t){if("fetch_error"===t?.code)return void e(!1)}e(!0)}else e(!1)},[e]);(0,s.A)("online",i),(0,s.A)("offline",i),(0,n.A)(i,t?12e4:15e3)}},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)}},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"},4751:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(97513),l=i(62540);function PreviewBlock({className:e,width:t,height:i,shape:s,padding:n,smallWidth:o,smallHeight:c,tabletWidth:d,tabletHeight:u,desktopWidth:g,desktopHeight:p}){const m=(0,a.dv)(),h={width:{[a.mp]:o,[a.Lg]:d,[a.Fo]:g,[a.Qb]:g},height:{[a.mp]:c,[a.Lg]:u,[a.Fo]:p,[a.Qb]:g}};return(0,l.jsx)("div",{className:r()("googlesitekit-preview-block",e,{"googlesitekit-preview-block--padding":n}),style:{width:h.width[m]||t,height:h.height[m]||i},children:(0,l.jsx)("div",{className:r()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===s})})})}PreviewBlock.propTypes={className:n().string,width:n().string,height:n().string,shape:n().string,padding:n().bool,smallWidth:n().string,smallHeight:n().string,tabletWidth:n().string,tabletHeight:n().string,desktopWidth:n().string,desktopHeight:n().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},5855:(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(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 d=c},5924:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(15844),n=i(50539),o=i(37467),r=i(7972),a=i(76729);function l(){const[e,t]=(0,o.A)("panel"),{setValue:i}=(0,n.useDispatch)(r.n);(0,s.A)(()=>{"email-reporting"===e&&(i(a.Q,!0),i("admin-screen-tooltip",{isTooltipVisible:!1}),t(void 0))})}},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),d=i(12417),u=i(1027),g=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)(d.A,{className:"mdc-button__icon",icon:i?u.A:g.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}},7076:(e,t,i)=>{i.d(t,{d:()=>r});var s=i(18117),n=i(17243),o=i(63696);function r(...e){const t=(0,s.MA)(()=>(0,n.debounce)(...e),e);return(0,o.useEffect)(()=>()=>t.cancel(),[t]),t}},7144:(e,t,i)=>{i.d(t,{EA:()=>o,GF:()=>_,Hl:()=>u,IX:()=>m,Is:()=>r,KD:()=>p,LO:()=>d,NO:()=>c,Nl:()=>l,QJ:()=>g,Uf:()=>n,XU:()=>f,Y0:()=>a,hs:()=>y,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",d=2,u=8,g={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")},f={SLUG:"generating-leads",LABEL:(0,s.__)("Generating leads","google-site-kit")},_={SLUG:"selling-products",LABEL:(0,s.__)("Selling products","google-site-kit")},y={SLUG:"content-performance",LABEL:(0,s.__)("Content performance","google-site-kit")}},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}},7972:(e,t,i)=>{i.d(t,{F:()=>n,n:()=>s});const s="core/ui",n="activeContextID"},8084:(e,t,i)=>{i.d(t,{$C:()=>E,RF:()=>j,WI:()=>I,_5:()=>x,jU:()=>k,o3:()=>v,x0:()=>b});var s=i(32091),n=i.n(s),o=i(50532),r=i.n(o),a=i(17243),l=i(78913);const c="GET_REGISTRY",d="AWAIT";function u(...e){const t=e.reduce((e,t)=>({...e,...t}),{}),i=A(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 g=u,p=u;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=u,f=u,_=u;function y(e){return e}function v(...e){const t=_(...e.map(e=>e.initialState||{}));return{initialState:t,controls:p(...e.map(e=>e.controls||{})),actions:g(...e.map(e=>e.actions||{})),reducer:m(t,...e.map(e=>e.reducer||y)),resolvers:h(...e.map(e=>e.resolvers||{})),selectors:f(...e.map(e=>e.selectors||{}))}}const k={getRegistry:()=>({payload:{},type:c}),*await(e){return{payload:{value:e},type:d}}},x={[c]:(0,l.b)(e=>()=>e),[d]:({payload:e})=>e.value};function A(e){const t=[],i={};for(let s=0;s<e.length;s++){const n=e[s];i[n]=i[n]>=1?i[n]+1:1,i[n]>1&&t.push(n)}return t}const b={actions:k,controls:x,reducer:y};function I(e){return t=>S(e(t))}const S=r()(e=>(0,a.mapValues)(e,(e,t)=>(...i)=>{const s=e(...i);return n()(void 0!==s,`${t}(...) is not resolved`),s}));function j(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 E(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))}},8513:(e,t,i)=>{i.d(t,{Kk:()=>o,SZ:()=>s,Yw:()=>r,oJ:()=>a,tT:()=>n});const s="body",n=[s,"display","headline","label","title"],o="small",r="medium",a=[o,r,"large"]},8712:(e,t,i)=>{i.d(t,{A:()=>DashboardSharingSettings});var s=i(4452),n=i.n(s),o=i(82871),r=i(50539),a=i(62688),l=i.n(a),c=i(63696),d=i(2671),u=i(62659),g=i(88273),p=i(29785),m=i(7972),h=i(29775),f=i(13047),_=i(97345),y=i(13606),v=i(19266),k=i(49383),x=i(38432),A=i(69195),b=i(11253),I=i(12896),S=i(62540);const j=(0,o.__)("All","google-site-kit"),E=(0,c.forwardRef)(({moduleSlug:e,isLocked:t=!1},i)=>{const s=(0,u.A)(),a=(0,c.useRef)(),{setSharedRoles:l}=(0,r.useDispatch)(g.i),{setValue:d}=(0,r.useDispatch)(m.n),p=(0,r.useSelect)(e=>e(g.i).getShareableRoles()),_=(0,r.useSelect)(t=>t(g.i).getSharedRoles(e)),y=(0,r.useSelect)(e=>e(m.n).getValue(h.zP))===e;(0,I.l)([v._f],i,()=>{y&&d(h.zP,void 0)});const E=(0,r.useSelect)(t=>t(g.i).haveModuleSharingSettingsChanged(e,"sharedRoles")),M=(0,c.useCallback)(()=>{y?(d(h.zP,void 0),E&&(0,f.sx)(`${s}_sharing`,"change_shared_roles",e)):d(h.zP,e)},[y,E,e,d,s]);(0,c.useEffect)(()=>{a.current&&(y?a.current.firstChild.focus():a.current.focus())},[y]);const N=(0,c.useCallback)(({type:t,target:i,keyCode:s})=>{if("keydown"===t&&s!==v.Fm)return;const n=i.closest(".mdc-chip"),o=n?.dataset?.chipId;if(!o)return;let r;r="all"===o?_?.length===p?.length?[]:p.map(({id:e})=>e):null===_?[o]:_.includes(o)?_.filter(e=>e!==o):[..._,o],l(e,r)},[e,l,_,p]);return p?(0,S.jsxs)("div",{className:n()("googlesitekit-user-role-select",{"googlesitekit-user-role-select--open":y}),children:[!y&&(0,S.jsx)(k.Button,{"aria-label":(0,o.__)("Edit roles","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:M,icon:(0,S.jsx)(A.A,{width:23,height:23}),tabIndex:t?-1:void 0,ref:a}),!y&&_?.length>0&&(0,S.jsx)("span",{className:"googlesitekit-user-role-select__current-roles",children:function(){const e=p?.reduce((e,t)=>(_.includes(t.id)&&e.push(t.displayName),e),[]);return e.join(", ")}()}),!y&&(!_||0===_?.length)&&(0,S.jsx)("span",{className:"googlesitekit-user-role-select__add-roles",children:(0,S.jsx)(x.A,{onClick:M,tabIndex:t?-1:void 0,children:(0,o.__)("Add roles","google-site-kit")})}),y&&(0,S.jsxs)(c.Fragment,{children:[(0,S.jsxs)("div",{className:"googlesitekit-user-role-select__chipset",ref:a,children:[(0,S.jsx)(k.Chip,{id:"all",label:j,onClick:N,onKeyDown:N,selected:_?.length===p?.length,className:"googlesitekit-user-role-select__chip--all"}),p.map(({id:e,displayName:t},i)=>(0,S.jsx)(k.Chip,{id:e,label:t,onClick:N,onKeyDown:N,selected:_?.includes(e)},i))]}),(0,S.jsx)(k.Button,{"aria-label":(0,o.__)("Done editing roles","google-site-kit"),title:(0,o.__)("Done","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:M,icon:(0,S.jsx)(b.A,{width:18,height:18}),tabIndex:t?-1:void 0})]})]}):null});E.propTypes={moduleSlug:l().string.isRequired,isLocked:l().bool};const M=E;var N=i(25797);const w=(0,c.forwardRef)(({moduleSlug:e,isLocked:t,hasSharingCapability:i,recoverable:s,recoverableModuleSupportLink:n},r)=>i?(0,S.jsx)(M,{moduleSlug:e,isLocked:t,ref:r}):s?(0,S.jsx)(N.A,{className:"googlesitekit-notice--small",type:N.A.TYPES.WARNING,description:(0,y.A)((0,o.__)("Managing user required to manage view access. <a>Learn more</a>","google-site-kit"),{a:(0,S.jsx)(x.A,{href:n,external:!0,hideExternalIndicator:!0})}),hideIcon:!0}):(0,S.jsx)("p",{className:"googlesitekit-dashboard-sharing-settings__note",children:(0,o.__)("Contact managing user to manage view access","google-site-kit")}));w.propTypes={moduleSlug:l().string.isRequired,isLocked:l().bool.isRequired,hasSharingCapability:l().bool,recoverable:l().bool,recoverableModuleSupportLink:l().string},w.displayName="ModuleViewAccess";const C=w;var T=i(12417),D=i(51135);const R=[{value:"owner",label:(0,o.__)("Only me","google-site-kit")},{value:"all_admins",label:(0,o.__)("Any admin signed in with Google","google-site-kit")}];function ModuleManageAccess({sharedOwnershipModule:e,hasOwnedModule:t,ownerUsername:i,hasSharingCapability:s,manageViewAccess:n,onChange:r}){return e?(0,S.jsxs)("p",{className:"googlesitekit-dashboard-sharing-settings__note",children:[(0,S.jsx)("span",{children:(0,o.__)("Any admin signed in with Google","google-site-kit")}),(0,S.jsx)(k.Tooltip,{title:(0,o.__)("This service requires general access to Google APIs rather than access to a specific user-owned property/entity, so view access is manageable by any admin signed in with Google.","google-site-kit"),children:(0,S.jsx)("span",{className:"googlesitekit-dashboard-sharing-settings__tooltip-icon",children:(0,S.jsx)(T.A,{icon:D.A,size:18})})})]}):t?(0,S.jsx)(k.Select,{className:"googlesitekit-dashboard-sharing-settings__select",value:n,options:R,onChange:r,onClick:r,outlined:!0}):i?(0,S.jsxs)("p",{className:"googlesitekit-dashboard-sharing-settings__note",children:[(0,y.A)((0,o.sprintf)(/* translators: %s: user who manages the module. */ /* translators: %s: user who manages the module. */ (0,o.__)("<span>Managed by</span> <strong>%s</strong>","google-site-kit"),i),{span:(0,S.jsx)("span",{}),strong:(0,S.jsx)("strong",{})}),(0,S.jsx)(k.Tooltip,{title:s?(0,o.sprintf)(/* translators: %s: name of the user who manages the module. */ /* translators: %s: name of the user who manages the module. */ (0,o.__)("%s has connected this and given managing permissions to all admins. You can change who can view this on the dashboard.","google-site-kit"),i):(0,o.sprintf)(/* translators: %s: name of the user who manages the module. */ /* translators: %s: name of the user who manages the module. */ (0,o.__)("Contact %s to change who can manage view access for this module","google-site-kit"),i),children:(0,S.jsx)("span",{className:"googlesitekit-dashboard-sharing-settings__tooltip-icon",children:(0,S.jsx)(T.A,{icon:D.A,size:18})})})]}):null}function Module({moduleSlug:e,moduleName:t,ownerUsername:i,recoverable:s}){const o=(0,u.A)(),a=(0,c.useRef)(),[l,y]=(0,c.useState)(void 0),v=(0,r.useSelect)(e=>e(g.i).hasRecoverableModules()),k=(0,r.useSelect)(e=>e(p.O4).hasMultipleAdmins()),x=v||k,A=(0,r.useSelect)(t=>{var i;return null!==(i=t(g.i).getSharingManagement(e))&&void 0!==i?i:"owner"}),b=(0,r.useSelect)(t=>t(_.oR).hasCapability(_.Ml,e)),I=(0,r.useSelect)(t=>t(_.oR).hasCapability(_.hz,e)),j=(0,r.useSelect)(e=>e(g.i).getSharedOwnershipModules()),E=(0,r.useSelect)(e=>e(m.n).getValue(h.zP)),M=(0,r.useSelect)(e=>e(g.i).isDoingSubmitSharingChanges()),N=(0,r.useSelect)(e=>e(p.O4).getDocumentationLinkURL("dashboard-sharing-module-recovery")),{setSharingManagement:w}=(0,r.useDispatch)(g.i),T=j&&Object.keys(j).includes(e);(0,c.useEffect)(()=>{y(T?"all_admins":A)},[A,T]);const D=(0,r.useSelect)(t=>t(g.i).haveModuleSharingSettingsChanged(e,"management"));(0,c.useEffect)(()=>{D&&(0,f.sx)(`${o}_sharing`,`change_management_${A}`,e)},[D,A,e,o]);const R=(0,c.useCallback)(t=>{const i=t.target.value;y(i),w(e,i)},[w,y,e]),O=e===E,L=!O&&void 0!==E||M;return(0,S.jsxs)("div",{className:n()("googlesitekit-dashboard-sharing-settings__module","googlesitekit-dashboard-sharing-settings__row",{"googlesitekit-dashboard-sharing-settings__row--editing":O,"googlesitekit-dashboard-sharing-settings__row--disabled":L}),ref:a,children:[(0,S.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__column--product",children:[(0,S.jsx)(d.A,{slug:e,size:48}),(0,S.jsx)("span",{className:"googlesitekit-dashboard-sharing-settings__module-name",children:t})]}),(0,S.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--view",children:(0,S.jsx)(C,{moduleSlug:e,isLocked:L,hasSharingCapability:I,recoverable:s,recoverableModuleSupportLink:N,ref:a})}),x&&(0,S.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--manage",children:(0,S.jsx)(ModuleManageAccess,{sharedOwnershipModule:T,hasOwnedModule:b,ownerUsername:i,hasSharingCapability:I,manageViewAccess:l,onChange:R})})]})}function DashboardSharingSettings(){const t=(0,r.useSelect)(e=>e(g.i).hasRecoverableModules()),i=(0,r.useSelect)(e=>e(p.O4).hasMultipleAdmins()),s=t||i,a=(0,r.useSelect)(t=>{const i=t(_.oR).getID(),s=t(g.i).getShareableModules(),n=[],o=[],r=[];for(e of Object.values(s))e.owner?.id===i?n.push(e):t(_.oR).hasCapability(_.hz,e.slug)?o.push(e):r.push(e);return[...n,...o,...r]});return void 0===a?null:(0,S.jsxs)("div",{className:n()("googlesitekit-dashboard-sharing-settings",{"googlesitekit-dashboard-sharing-settings--has-multiple-admins":s}),children:[(0,S.jsxs)("header",{className:"googlesitekit-dashboard-sharing-settings__header googlesitekit-dashboard-sharing-settings__row",children:[(0,S.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--product",children:(0,o.__)("Product","google-site-kit")}),(0,S.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--view",children:(0,o.__)("Who can view","google-site-kit")}),s&&(0,S.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--manage",children:(0,o.__)("Who can manage view access","google-site-kit")})]}),(0,S.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__main",children:a.map(({slug:e,name:t,owner:i,recoverable:s})=>(0,S.jsx)(Module,{moduleSlug:e,moduleName:t,ownerUsername:i?.login,recoverable:s},e))})]})}ModuleManageAccess.propTypes={sharedOwnershipModule:l().bool,hasOwnedModule:l().bool,ownerUsername:l().string,hasSharingCapability:l().bool,manageViewAccess:l().string,onChange:l().func.isRequired},Module.propTypes={moduleSlug:l().string.isRequired,moduleName:l().string.isRequired,ownerUsername:l().string,recoverable:l().bool},e=i.hmd(e)},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]},9318:(e,t,i)=>{i.d(t,{B:()=>s});i(80);function s(e){return 400===e?.code&&e?.message?.includes("is not a valid dimension")}},10740:(e,t,i)=>{i.d(t,{$z:()=>n.$,CR:()=>a.C,Cf:()=>l.DialogContent,Es:()=>l.DialogFooter,Nv:()=>s.N,P3:()=>r.P,Si:()=>o.S,fI:()=>d.fI,fh:()=>d.fh,lG:()=>c.a,xA:()=>d.xA});var s=i(91046),n=i(3412),o=i(30454),r=i(26569),a=i(56655),l=i(12786),c=i.n(l),d=i(84984)},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)}}},11253:(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;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.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"}))))},11763:(e,t,i)=>{i.d(t,{A:()=>SpinnerButton,k:()=>u});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(17243),l=i(85135),c=i(99578),d=i(62540);const u={BEFORE:"before",AFTER:"after"};function SpinnerButton(e){const{className:t,onClick:i=()=>{},isSaving:s=!1,spinnerPosition:n=u.AFTER,...o}=e,g=(0,a.pickBy)(o,e=>void 0!==e);return(0,d.jsx)(l.A,{className:r()(t,"googlesitekit-button-icon--spinner",{"googlesitekit-button-icon--spinner__running":s,"googlesitekit-button-icon--spinner__before":n===u.BEFORE,"googlesitekit-button-icon--spinner__after":n===u.AFTER}),icon:s&&n===u.BEFORE?(0,d.jsx)(c.A,{size:14}):void 0,trailingIcon:s&&n===u.AFTER?(0,d.jsx)(c.A,{size:14}):void 0,onClick:i,...g})}SpinnerButton.propTypes={className:n().string,onClick:n().func,isSaving:n().bool,spinnerPosition:n().oneOf(Object.values(u))}},11883:(e,t,i)=>{i.d(t,{YJ:()=>o,Eq:()=>r});var s=i(97513),n=i(17243);function o(e,t){const s=document.querySelector(e);if(!s)return 0;const n=s.getBoundingClientRect().top,o=r(t);return n+i.g.scrollY-o}function r(e){let t=function(e){let t=0;const o=document.querySelector(".googlesitekit-header");t=o&&"sticky"===i.g.getComputedStyle(o).position?function(e){const t=document.querySelector(".googlesitekit-header");if(t){if(e===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 o=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(o).reduce((e,t)=>e+t.offsetHeight,0),t}},11974:(e,t,i)=>{i.d(t,{A:()=>OptIn});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(63696),l=i(13606),c=i(82871),d=i(50539),u=i(97345),g=i(65054),p=i(38432),m=i(62659),h=i(7076),f=i(49383),_=i(62540);function LayoutDefault({checkboxProps:e,label:t}){return(0,_.jsx)(f.Checkbox,{...e,children:t})}function LayoutStacked({checkboxProps:e,title:t,description:i}){return(0,_.jsxs)(a.Fragment,{children:[(0,_.jsx)(f.Checkbox,{...e,children:t}),(0,_.jsx)("div",{className:"googlesitekit-opt-in__description",children:i})]})}LayoutDefault.propTypes={checkboxProps:n().object.isRequired,label:n().node.isRequired},LayoutStacked.propTypes={checkboxProps:n().object.isRequired,title:n().node.isRequired,description:n().node.isRequired};const y="default",v="stacked";function OptIn({id:e="googlesitekit-opt-in",name:t="optIn",className:i,layout:s=y,title:n=null,description:o=null,trackEventCategory:f,trackEventAction:k="tracking_optin"}){const[x,A]=(0,a.useState)(),b=(0,d.useSelect)(e=>e(u.oR).isTrackingEnabled()),I=(0,d.useSelect)(e=>e(u.oR).getErrorForAction("setTrackingEnabled",[!b])),{setTrackingEnabled:S}=(0,d.useDispatch)(u.oR),j=(0,m.A)(),E=(0,a.useCallback)(async e=>{const{response:t,error:i}=await S(e);i?A(b):((0,g.M9)(t.enabled),t.enabled&&(0,g.sx)(f||j,k))},[b,S,f,k,j]);(0,a.useEffect)(()=>{void 0!==b&&void 0===x&&A(b)},[b,x]);const M=(0,h.d)(E,300),N=(0,a.useCallback)(e=>{const t=e.target.checked;A(t),M(t)},[M]),w=null!=n?n:(0,_.jsx)("span",{children:(0,c.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")}),C=null!=o?o:(0,l.A)((0,c.__)("<span>All collected data is treated in accordance with the <a>Google Privacy Policy</a></span>","google-site-kit"),{a:(0,_.jsx)(p.A,{href:"https://policies.google.com/privacy",external:!0},"link"),span:(0,_.jsx)("span",{})}),T={id:e,name:t,value:"1",checked:x,onChange:N,loading:void 0===b};return(0,_.jsxs)("div",{className:r()("googlesitekit-opt-in",i,s===v&&"googlesitekit-opt-in--layout-stacked"),children:[s===v?(0,_.jsx)(LayoutStacked,{checkboxProps:T,title:w,description:C}):(0,_.jsx)(LayoutDefault,{checkboxProps:T,label:(0,_.jsxs)(a.Fragment,{children:[w," ",C]})}),I?.message&&(0,_.jsx)("div",{className:"googlesitekit-error-text",children:I?.message})]})}OptIn.propTypes={id:n().string,name:n().string,className:n().string,title:n().node,description:n().node,layout:n().oneOf([y,v]),trackEventCategory:n().string}},11999:(e,t,i)=>{i.d(t,{s:()=>s});const s="core/forms"},12317:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(49383),l=i(38432),c=i(33052),d=i(62540);function CTA({title:e,headerText:t,headerContent:i,description:s,ctaLink:n,ctaLabel:o,ctaLinkExternal:u,ctaType:g,error:p,onClick:m,"aria-label":h,children:f}){return(0,d.jsxs)("div",{className:r()("googlesitekit-cta",{"googlesitekit-cta--error":p}),children:[(t||i)&&(0,d.jsxs)("div",{className:"googlesitekit-cta__header",children:[t&&(0,d.jsx)(c.A,{as:"h2",size:"small",type:"label",className:"googlesitekit-cta__header_text",children:t}),i]}),(0,d.jsxs)("div",{className:"googlesitekit-cta__body",children:[e&&(0,d.jsx)(c.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-cta__title",children:e}),s&&"string"==typeof s&&(0,d.jsx)("p",{className:"googlesitekit-cta__description",children:s}),s&&"string"!=typeof s&&(0,d.jsx)("div",{className:"googlesitekit-cta__description",children:s}),o&&"button"===g&&(0,d.jsx)(a.Button,{"aria-label":h,href:n,onClick:m,children:o}),o&&"link"===g&&(0,d.jsx)(l.A,{href:n,onClick:m,"aria-label":h,external:u,hideExternalIndicator:u,arrow:!0,children:o}),f]})]})}CTA.propTypes={title:n().string.isRequired,headerText:n().string,description:n().oneOfType([n().string,n().node]),ctaLink:n().string,ctaLinkExternal:n().bool,ctaLabel:n().string,ctaType:n().string,"aria-label":n().string,error:n().bool,onClick:n().func,children:n().node,headerContent:n().node},CTA.defaultProps={title:"",headerText:"",headerContent:"",description:"",ctaLink:"",ctaLabel:"",ctaType:"link",error:!1,onClick:()=>{}};const u=CTA},12666:(e,t,i)=>{i.d(t,{A:()=>ChipTabGroup});var s=i(63696),n=i(81276),o=i(50539),r=i(7144),a=i(11999),l=i(80),c=i(22942),d=i(7972),u=i(97345),g=i(88273),p=i(97513),m=i(68832);var h=i(31589),f=i(7076);var _=i(62688),y=i.n(_),v=i(49383),k=i(4452),x=i.n(k),A=i(80452),b=i(42343),I=i(64515),S=i(62540);const j={[r.QJ.SLUG]:A.A,[r.KD.SLUG]:b.A};function Chip({slug:e,label:t,isActive:i,onClick:s,hasNewBadge:n=!1,selectedCount:o=0}){const r=j[e]||I.A;return(0,S.jsxs)(v.Button,{className:x()("googlesitekit-chip-tab-group__chip-item",{"googlesitekit-chip-tab-group__chip-item--active":i}),icon:(0,S.jsx)(r,{width:12,height:12,className:`googlesitekit-chip-tab-group__chip-item-svg googlesitekit-chip-tab-group__chip-item-svg__${e}`}),trailingIcon:o>0?(0,S.jsxs)("span",{className:"googlesitekit-chip-tab-group__chip-item-count",children:["(",o,")"]}):null,onClick:()=>s(e),children:[t,n&&(0,S.jsx)("span",{className:"googlesitekit-chip-tab-group__chip-item-new-dot"})]})}Chip.propTypes={slug:y().string.isRequired,label:y().string.isRequired,isActive:y().bool,hasNewBadge:y().bool,selectedCount:y().number,onClick:y().func.isRequired};const E={[r.QJ.SLUG]:A.A,[r.KD.SLUG]:b.A};function TabItems({containerRef:e,isMobileBreakpoint:t,chipItemRows:i,allGroups:s,isActive:n,onChipChange:o,selectedCounts:r,newlyDetectedMetrics:a,activeGroupIndex:l}){return(0,S.jsxs)("div",{className:"googlesitekit-chip-tab-group__tab-items",ref:e,children:[!t&&i.map(e=>(0,S.jsx)("div",{className:"googlesitekit-chip-tab-group__tab-items-row",children:e.map(e=>(0,S.jsx)(Chip,{slug:e.SLUG,label:e.LABEL,hasNewBadge:!!a?.[e.SLUG],isActive:e.SLUG===n,onClick:o,selectedCount:r[e.SLUG]},e.SLUG))},`row-${e[0].SLUG}`)),t&&(0,S.jsx)(v.TabBar,{activeIndex:l,handleActiveIndexUpdate:e=>o(null,e),children:s.map((e,t)=>{const i=E[e.SLUG]||I.A;return(0,S.jsxs)(v.Tab,{"aria-label":e.LABEL,children:[(0,S.jsx)(i,{width:12,height:12,className:`googlesitekit-chip-tab-group__chip-item-svg googlesitekit-chip-tab-group__tab-item-mobile-svg googlesitekit-chip-tab-group__chip-item-svg__${e.SLUG}`}),e.LABEL,r[e.SLUG]>0&&(0,S.jsxs)("span",{className:"googlesitekit-chip-tab-group__chip-item-count",children:["(",r[e.SLUG],")"]}),!!a?.[e.SLUG]&&(0,S.jsx)("span",{className:"googlesitekit-chip-tab-group__chip-item-new-dot"})]},t)})})]})}TabItems.propTypes={containerRef:y().object,isMobileBreakpoint:y().bool,chipItemRows:y().array.isRequired,allGroups:y().array.isRequired,isActive:y().string.isRequired,onChipChange:y().func.isRequired,selectedCounts:y().object.isRequired,newlyDetectedMetrics:y().object.isRequired,activeGroupIndex:y().number.isRequired};var M,N,w,C,T,D,R,O,L,z,B,P,G,F,U,W,V,H,Y,q,Q,Z,K=i(82871),$=i(4169),X=i(15650);function MetricItem({slug:e,title:t,description:i,isNewlyDetected:n,savedItemSlugs:l=[]}){const c=(0,o.useSelect)(t=>{const{getModule:i}=t(g.i),s=t($.aO).getWidget(e);return s?.modules.reduce((e,t)=>{const s=i(t);return s?.connected||!s?.name?e:[...e,s.name]},[])}),d=(0,m.A)(r.Is,r.Y0),{getValue:u}=(0,o.useSelect)(e=>e(a.s)),{setValues:p}=(0,o.useDispatch)(a.s),h=(0,s.useCallback)(t=>{const i=u(r.Is,r.Y0),s=t.target.checked?i.concat([e]):i.filter(t=>t!==e);p(r.Is,{[r.Y0]:s,[r.NO]:s})},[u,p,e]),f=d?.includes(e),_=!l.includes(e)&&c.length>0,y=`key-metric-selection-checkbox-${e}`;return(0,S.jsx)(X.y3,{id:y,slug:e,title:t,description:i,isNewlyDetected:n,isItemSelected:f,isItemDisabled:_,onCheckboxChange:h,children:c.length>0&&(0,S.jsx)("div",{className:"googlesitekit-selection-panel-item-error",children:(0,K.sprintf)(/* translators: %s: module names. */ /* translators: %s: module names. */ (0,K._n)("%s is disconnected, no data to show","%s are disconnected, no data to show",c.length,"google-site-kit"),c.join((0,K.__)(" and ","google-site-kit")))})})}function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},J.apply(null,arguments)}MetricItem.propTypes={slug:y().string.isRequired,title:y().string.isRequired,description:y().string.isRequired,isNewlyDetected:y().bool,savedItemSlugs:y().array};const key_metrics_no_selected_items=e=>s.createElement("svg",J({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 383 238"},e),M||(M=s.createElement("path",{fill:"#B8E6CA",d:"M59.238 58.571c-2.136 20.178 4.272 29.099 20.48 53.216 16.209 24.118-29.092 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.443-3.208 57.819 12.98 90.86 5.9s46.385-42.599 43.153-68.059c-5.59-44.041-26.24-49.107-34.893-66.461s2.902-52.997-30.287-73.16-76.71 14.42-112.503 12.37c-20.651-1.182-40.932-4.995-59.264.86-18.53 5.918-32.662 22.571-34.335 38.621"})),N||(N=s.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__a)"},s.createElement("rect",{width:130.621,height:89.651,x:242.455,y:45.266,fill:"#fff",rx:10.957,transform:"rotate(15 242.455 45.266)"}))),w||(w=s.createElement("rect",{width:24.903,height:7.969,x:253.726,y:64.785,fill:"#EBEEF0",rx:3.985,transform:"rotate(15 253.726 64.785)"})),C||(C=s.createElement("rect",{width:49.806,height:19.923,x:249.342,y:81.144,fill:"#FFDED3",rx:9.961,transform:"rotate(15 249.342 81.144)"})),T||(T=s.createElement("rect",{width:99.428,height:8.773,x:240.436,y:114.357,fill:"#EBEEF0",rx:3.985,transform:"rotate(15 240.436 114.357)"})),D||(D=s.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m256.195 90.198 4.644 8.044m0 0 1.412-4.986m-1.412 4.986-5.023-1.27"})),R||(R=s.createElement("rect",{width:19.923,height:5.977,x:268.706,y:93.551,fill:"#fff",rx:1.992,transform:"rotate(15 268.706 93.55)"})),O||(O=s.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__b)"},s.createElement("rect",{width:130.621,height:89.68,x:13.887,y:79.094,fill:"#fff",rx:10.957,transform:"rotate(-15 13.887 79.094)"}))),L||(L=s.createElement("rect",{width:62.386,height:7.798,x:32.989,y:90.122,fill:"#EBEEF0",rx:3.899,transform:"rotate(-15 32.99 90.122)"})),z||(z=s.createElement("rect",{width:49.806,height:19.923,x:37.691,y:106.902,fill:"#FFDED3",rx:9.961,transform:"rotate(-15 37.691 106.902)"})),B||(B=s.createElement("rect",{width:99.428,height:7.798,x:46.612,y:140.967,fill:"#EBEEF0",rx:3.899,transform:"rotate(-15 46.612 140.967)"})),P||(P=s.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m48.152 111.318 8.044 4.645m0 0-1.27-5.024m1.27 5.024-4.986 1.411"})),G||(G=s.createElement("rect",{width:19.923,height:5.977,x:60.663,y:107.966,fill:"#fff",rx:1.992,transform:"rotate(-15 60.663 107.966)"})),F||(F=s.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__c)"},s.createElement("rect",{width:130.621,height:89.68,x:126.251,y:37.4,fill:"#fff",rx:10.957}))),U||(U=s.createElement("rect",{width:98.333,height:7.867,x:143.013,y:53.134,fill:"#EBEEF0",rx:3.933})),W||(W=s.createElement("rect",{width:49.806,height:19.923,x:142.369,y:70.423,fill:"#B8E6CA",rx:9.961})),V||(V=s.createElement("rect",{width:33.04,height:7.867,x:143.013,y:105.84,fill:"#EBEEF0",rx:3.933})),H||(H=s.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.494,d:"m151.336 84.036 6.568-6.567m0 0-5.182-.073m5.182.073.073 5.18"})),Y||(Y=s.createElement("rect",{width:19.923,height:5.977,x:164.287,y:77.395,fill:"#fff",rx:1.992})),s.createElement("mask",{id:"key-metrics-no-selected-items_svg__d",width:273,height:230,x:58,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},q||(q=s.createElement("path",{fill:"#B8E6CA",d:"M59.237 58.571C57.1 78.75 63.509 87.67 79.717 111.787c16.209 24.118-29.091 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.444-3.208 57.82 12.98 90.86 5.9s46.385-42.599 43.153-68.059c-5.59-44.041-26.24-49.107-34.893-66.461s2.902-52.997-30.287-73.16-76.71 14.42-112.503 12.37c-20.651-1.182-40.932-4.995-59.264.86C75.042 25.868 60.91 42.52 59.237 58.57"}))),Q||(Q=s.createElement("g",{mask:"url(#key-metrics-no-selected-items_svg__d)"},s.createElement("path",{stroke:"#CBD0D3",strokeMiterlimit:10,strokeWidth:3.147,d:"m227.674 108.973 11.312-8.418M218.925 98.852l2.868-12.68M205.623 102.87l-5.375-13.037"}),s.createElement("path",{stroke:"#3C7251",strokeLinejoin:"round",strokeWidth:9.44,d:"M63.953 190.487c16.127 12.193 38.716 10.349 55.335 5.162 16.618-5.187 31.107-14.61 45.314-23.791 6.717-4.337 13.617-8.738 21.496-11.119s17.057-2.39 22.958 1.658c3.392 2.328 5.205 5.923 5.36 9.702"}),s.createElement("path",{stroke:"#CBD0D3",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:9.44,d:"m215.831 109.67-19.169 71.73"}),s.createElement("path",{stroke:"#161B18",strokeMiterlimit:10,strokeWidth:9.44,d:"m213.975 116.472-19.169 71.731"}))),Z||(Z=s.createElement("defs",null,s.createElement("filter",{id:"key-metrics-no-selected-items_svg__a",width:176.33,height:147.36,x:205.773,y:35.772,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},s.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.createElement("feOffset",{dy:3.985}),s.createElement("feGaussianBlur",{stdDeviation:7.969}),s.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),s.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),s.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),s.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})),s.createElement("filter",{id:"key-metrics-no-selected-items_svg__b",width:176.337,height:147.388,x:.409,y:35.793,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},s.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.createElement("feOffset",{dy:3.985}),s.createElement("feGaussianBlur",{stdDeviation:7.969}),s.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),s.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),s.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),s.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})),s.createElement("filter",{id:"key-metrics-no-selected-items_svg__c",width:162.497,height:121.556,x:110.313,y:25.447,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},s.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),s.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s.createElement("feOffset",{dy:3.985}),s.createElement("feGaussianBlur",{stdDeviation:7.969}),s.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),s.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),s.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2200_11981"}),s.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2200_11981",result:"shape"})))));var ee=i(83880);function TabContent({activeMetricItems:e,newlyDetectedMetrics:t,savedItemSlugs:i}){return(0,S.jsxs)("div",{className:"googlesitekit-chip-tab-group__tab-item",children:[Object.keys(e).map(s=>{const n=e[s].group,o=t?.[n]?.includes(s);return(0,S.jsx)(MetricItem,{slug:s,savedItemSlugs:i,isNewlyDetected:o,...e[s]},s)}),!Object.keys(e).length&&(0,S.jsxs)("div",{className:"googlesitekit-chip-tab-group__graphic",children:[(0,S.jsx)(key_metrics_no_selected_items,{height:250}),(0,S.jsx)(ee.A,{children:(0,K.__)("No metrics were selected yet","google-site-kit")})]})]})}TabContent.propTypes={activeMetricItems:y().object.isRequired,newlyDetectedMetrics:y().object.isRequired,savedItemSlugs:y().array};const te=Object.freeze([]);function ChipTabGroup({allMetricItems:e,savedItemSlugs:t}){const i=(0,s.useRef)(),[_,y]=(0,s.useState)(r.QJ.SLUG),[v,k]=(0,s.useState)(0),x=(0,p.dv)()===p.mp,A=(0,m.A)(r.Is,r.Y0),b=(0,m.A)(r.Is,r.Nl)||te,I=(0,m.A)(r.Is,r.NO)||te,j=(0,o.useSelect)(e=>e(u.oR).isUserInputCompleted()),E=(0,o.useSelect)(e=>{const t=e(u.oR).getUserPickedMetrics();if(t?.length){const i=e(l.K9).getKeyMetricsConversionEventWidgets();return Object.keys(i).filter(e=>t.some(t=>i[e].includes(t)))}const i=e(u.oR).getUserInputSettings();return i?.includeConversionEvents?.values}),M=(0,o.useSelect)(e=>e(g.i).isModuleConnected(c.L1)),N=(0,o.useSelect)(e=>M?e(l.K9).getDetectedEvents():[]),w=(0,o.useSelect)(e=>e(u.oR).getAnswerBasedMetrics(null,[...E||[],...N||[]])),{keyMetricsGroups:C,dynamicGroups:T}=function({detectedEvents:e=[],currentlyActiveEvents:t=[],isUserInputCompleted:i,answerBasedMetrics:n=[]}){const o=[l.nc.SUBMIT_LEAD_FORM,l.nc.CONTACT,l.nc.GENERATE_LEAD].filter(i=>e?.includes(i)||t?.includes(i)),a=[l.nc.ADD_TO_CART,l.nc.PURCHASE].filter(i=>e?.includes(i)||t?.includes(i)),c=(0,s.useMemo)(()=>[r.IX,r.wb,...o?.length?[r.XU]:[],...a?.length?[r.GF]:[],r.hs],[o,a]),d=(0,s.useMemo)(()=>i&&n?.length?[r.QJ,r.KD]:[r.QJ],[i,n]);return{hasGeneratingLeadsGroup:o,hasSellingProductsGroup:a,keyMetricsGroups:c,dynamicGroups:d}}({detectedEvents:N,currentlyActiveEvents:E,isUserInputCompleted:j,answerBasedMetrics:w}),D=(0,s.useMemo)(()=>[...T,...C],[T,C]),R=(0,o.useSelect)(e=>{if(!e(g.i).isModuleConnected(c.L1))return[];const t=e(l.K9).getDetectedEvents(),i=e(l.K9).getNewBadgeEvents();if(t?.length&&i?.length){const e=t.filter(e=>l.fV.includes(e)),s=i.filter(e=>l.fV.includes(e)),n=i.filter(e=>!l.fV.includes(e));if(e?.length>1&&s.length>0)return n}return i}),O=(0,o.useSelect)(e=>M?e(l.K9).getKeyMetricsConversionEventWidgets():[]),{selectedCounts:L,activeMetricItems:z,newlyDetectedMetrics:B}=function({allMetricItems:e={},isActive:t,effectiveSelection:i=[],answerBasedMetrics:n=[],selectedMetrics:o=[],newBadgeEvents:a=[],conversionReportingEventWidgets:l={}}){return(0,s.useMemo)(()=>{const s={[r.QJ.SLUG]:0},c={},d={};for(const g in e){const p=e[g].group;if((p===t||t===r.QJ.SLUG&&i.includes(g))&&(c[g]=e[g]),t===r.KD.SLUG&&n.includes(g)&&n.includes(g)&&(c[g]=e[g]),!s[p]){const t=Object.keys(e).filter(t=>!(e[t].group!==p||!o?.includes(t))).length;s[p]=t}var u;if(a?.length)a.some(e=>l[e].includes(g))&&(d[p]=[...null!==(u=d[p])&&void 0!==u?u:[],g])}return{selectedCounts:s,activeMetricItems:c,newlyDetectedMetrics:d}},[e,t,i,n,o,a,l])}({allMetricItems:e,isActive:_,effectiveSelection:b,answerBasedMetrics:w,selectedMetrics:A,newBadgeEvents:R,conversionReportingEventWidgets:O}),{setValues:P}=(0,o.useDispatch)(a.s),G=(0,s.useCallback)(()=>{P(r.Is,{[r.Y0]:A,[r.Nl]:[...b,...I],[r.NO]:[]})},[A,b,I,P]),F=(0,s.useCallback)((e,t)=>{if(e)y(e);else{const e=D[t];k(t),y(e.SLUG)}I.length&&G()},[D,I,y,G]),U=(0,o.useSelect)(e=>e(d.n).getValue(r.EA)),W=(0,n.A)(U),V=Object.keys(B);(0,s.useEffect)(()=>{if(!W&&U)if(y(r.QJ.SLUG),k(0),V.length&&x){const e=D.find(e=>e.SLUG===V[0]);k(D.indexOf(e)),y(e.SLUG)}else k(0),y(r.QJ.SLUG);W&&!U&&G()},[U,W,I,D,x,V,G]),function({containerRef:e,isMobileBreakpoint:t,isSelectionPanelOpen:i,isSelectionPanelOpenPrevious:n}){const o=(0,s.useCallback)(()=>{const i=e.current?.querySelector(".mdc-tab-scroller__scroll-content");if(!t)return;const s=e.current?.querySelectorAll(".googlesitekit-chip-tab-group__tab-items .mdc-tab");if(!s?.length||!i)return;const n=e.current?.getBoundingClientRect(),r=[];s.forEach((e,t)=>{const i=e.getBoundingClientRect();i.left>=n.left&&i.right<=n.right&&r.push(t)});const a=s[r.length];if(!a)return;const l=a.getBoundingClientRect();(l.left>=n.right||l.left-n.right<0&&-(l.left-n.right)<=20)&&("2px"===i.style.columnGap?i.style.columnGap="20px":i.style.columnGap="2px",o())},[e,t]),r=(0,f.d)(o,50);(0,h.A)("resize",r),(0,s.useEffect)(()=>{!n&&i&&o()},[i,n,o])}({containerRef:i,isMobileBreakpoint:x,isSelectionPanelOpen:U,isSelectionPanelOpenPrevious:W});const H=[[...T,...C.slice(0,2)],[...C.slice(2)]];return(0,S.jsxs)("div",{className:"googlesitekit-chip-tab-group",children:[(0,S.jsx)(TabItems,{containerRef:i,isMobileBreakpoint:x,chipItemRows:H,allGroups:D,isActive:_,onChipChange:F,selectedCounts:L,newlyDetectedMetrics:B,activeGroupIndex:v}),(0,S.jsx)(TabContent,{activeMetricItems:z,newlyDetectedMetrics:B,savedItemSlugs:t})]})}},12813:(e,t,i)=>{i.d(t,{A:()=>g});var s=i(50539),n=i(88273),o=i(7972),r=i(97345),a=i(7144),l=i(80),c=i(22942),d=i(49481),u=i(32803);function g(){const e=(0,s.useSelect)(e=>e(o.n).getValue("keepKeyMetricsSetupCTAWidgetVisible")),t=(0,s.useSelect)(e=>{const t=e(r.oR).isItemDismissed(a.Uf),i=e(r.oR).isDismissingItem(a.Uf),s=p(e,u.Y,d.n),n=p(e,c.L1,l.K9);return!1===t&&!1===i&&s&&n},[]);return e||t}function p(e,t,i){if(e(n.i).isModuleConnected(t)){const{isGatheringData:t,isDataAvailableOnLoad:s}=e(i);return t(),s()}return!1}},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)}},13047:(e,t,i)=>{i.d(t,{tt:()=>_.tt,Jg:()=>_.Jg,Gp:()=>_.Gp,GH:()=>_.GH,r0:()=>_.r0,Du:()=>_.Du,Zf:()=>M,Cn:()=>A,G7:()=>f,vH:()=>h,N_:()=>_.N_,zh:()=>w,mK:()=>d.mK,Ql:()=>_.Ql,vY:()=>x,sq:()=>_.sq,VZ:()=>b.VZ,JK:()=>d.JK,IS:()=>_.IS,pH:()=>b.pH,kf:()=>S,O5:()=>_.O5,Qr:()=>_.Qr,x6:()=>I,K5:()=>d.K5,S_:()=>m,dc:()=>b.dc,Eo:()=>d.Eo,jq:()=>d.jq,DK:()=>E.D,N9:()=>j,p9:()=>o.p,XH:()=>_.XH,Zm:()=>l,sx:()=>n.sx,BI:()=>n.BI,CZ:()=>o.C,BG:()=>N});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 d=i(49746);function u(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function g(e){return`<p>${e.replace(/\n{2,}/g,"</p><p>")}</p>`}function p(e){return e.replace(/\n/gi,"<br>")}function m(e){const t=[u,g,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 f(e){const t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}var _=i(51193),y=i(78159),v=i(38017),k=i(62540);function x(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:i=!1}=t;return(0,y.Ay)((0,k.jsx)(v.A,{direction:e>0?"up":"down",invertColor:i}))}function A(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var b=i(48276);function I(e){const t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function S(e){if("number"==typeof e)return!0;const t=(e||"").toString();return!!t&&!isNaN(t)}function j(e){return Array.isArray(e)?[...e].sort():e}var E=i(11193);function M(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 N(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)}},13137:(e,t,i)=>{i.d(t,{G:()=>c,HY:()=>u,SG:()=>d,db:()=>n,e4:()=>p,vl:()=>g});i(17243);var s=i(82871);const n="missing_required_scopes",o="insufficientPermissions",r="forbidden",a="internal_server_error",l="invalid_json";function c(e){return e?.code===n}function d(e){return[o,r].includes(e?.data?.reason)}function u(e){return!!e?.data?.reconnectURL}function g(e,t){return!(!t?.storeName||d(e)||c(e)||u(e))}function p(e){return e?.code===a?(0,s.__)("There was a critical error on this website while fetching data","google-site-kit"):e?.code===l?(0,s.__)("The server provided an invalid response","google-site-kit"):e?.message}},14183:(e,t,i)=>{i.d(t,{A:()=>EmailReportingErrorNotices});var s=i(62688),n=i.n(s),o=i(50539),r=i(29785),a=i(4124),l=i(82871),c=i(88273),d=i(52696),u=i(25797),g=i(76984),p=i(68761),m=i(30289),h=i(62540);const f="email_reports_permissions_error_notice",_=(0,m.A)(u.A);function PermissionsErrorNotice({moduleSlug:e}){const t=(0,d.WM)(t=>t(c.i).getModule(e)),i=(0,d.WM)(t=>t(c.i).getModuleStoreName(e)),s=(0,d.WM)(e=>e(i)?.getServiceEntityAccessURL?.()),n=(0,d.WM)(t=>t(r.O4).getErrorTroubleshootingLinkURL({code:`${e}_insufficient_permissions`})),o=(0,p.A)(f);return(0,h.jsx)(_,{className:"googlesitekit-email-reporting__admin-settings-notice",type:g.Q.ERROR,title:(0,l.__)("Email reports are failing to send","google-site-kit"),description:(0,l.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,l.__)("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,l.__)("Request access","google-site-kit"),href:s,external:!0,hideExternalIndicator:!0,onClick:o.confirm}:null,dismissButton:n?{label:(0,l.__)("Get help","google-site-kit"),onClick:o.dismiss,href:n,external:!0}:null})}const y="email_reports_report_error_notice",v=(0,m.A)(u.A);function ReportErrorNotice({moduleSlug:e,onGoToSettings:t}){const i=(0,d.WM)(t=>t(c.i).getModule(e)),s=(0,p.A)(y),n=(0,d.WM)(t=>t(r.O4).getModuleSettingsURL(e)),o=(0,d.WM)(e=>e(r.O4).getDocumentationLinkURL("email-reporting-module-issues"));return(0,h.jsx)(v,{className:"googlesitekit-email-reporting__admin-settings-notice",type:g.Q.ERROR,title:(0,l.__)("Email reports are failing to send","google-site-kit"),description:(0,l.sprintf)(/* translators: %1$s: module name */ /* translators: %1$s: module name */ (0,l.__)("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,l.__)("Go to settings","google-site-kit"),href:n,onClick:()=>{t?.(),s.confirm()}}:null,dismissButton:{label:(0,l.__)("Get help","google-site-kit"),onClick:s.dismiss,href:o,external:!0}})}const k="email_reports_sending_error_notice",x=(0,m.A)(u.A);function SendingErrorNotice(){const e=(0,p.A)(k),t=(0,d.WM)(e=>e(r.O4).getDocumentationLinkURL("email-reporting-deliverability-issues"));return(0,h.jsx)(x,{className:"googlesitekit-email-reporting__admin-settings-notice",type:g.Q.ERROR,title:(0,l.__)("Email reports are failing to send","google-site-kit"),description:(0,l.__)("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,l.__)("Get help","google-site-kit"),onClick:e.dismiss,href:t,external:!0}})}const A="email_reporting_cron_scheduler_error_notice",b=(0,m.A)(u.A);function CronSchedulerErrorNotice(){const e=(0,p.A)(A),t=(0,d.WM)(e=>e(r.O4).getDocumentationLinkURL("email-reporting-scheduler-issues"));return(0,h.jsx)(b,{className:"googlesitekit-email-reporting__admin-settings-notice",type:g.Q.ERROR,title:(0,l.__)("Email reports are failing to send","google-site-kit"),description:(0,l.__)("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,l.__)("Get help","google-site-kit"),onClick:e.dismiss,href:t,external:!0}})}const I="email_reports_server_error_notice",S=(0,m.A)(u.A);function ServerErrorNotice(){const e=(0,p.A)(I),t=(0,d.WM)(e=>e(r.O4).getDocumentationLinkURL("email-reporting-server-issues"));return(0,h.jsx)(S,{className:"googlesitekit-email-reporting__admin-settings-notice",type:g.Q.ERROR,title:(0,l.__)("Email reports are failing to send","google-site-kit"),description:(0,l.__)("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,l.__)("Get help","google-site-kit"),onClick:e.dismiss,href:t,external:!0}})}function EmailReportingErrorNotices({onGoToSettings:e}){const t=(0,a.A)(),i=(0,o.useSelect)(e=>e(r.O4).isEmailReportingEnabled()),s=(0,o.useSelect)(e=>e(r.O4).getEmailReportingErrors()),n=(0,o.useSelect)(e=>e(r.O4).getLatestEmailReportingError());if(!i||t||0===s?.length||void 0===n)return null;switch(n?.category_id){case"permissions_error":return(0,h.jsx)(PermissionsErrorNotice,{moduleSlug:n.module_slug});case"report_error":return(0,h.jsx)(ReportErrorNotice,{moduleSlug:n.module_slug,onGoToSettings:e});case"sending_error":return(0,h.jsx)(SendingErrorNotice,{});case"cron_scheduler_error":return(0,h.jsx)(CronSchedulerErrorNotice,{});default:return(0,h.jsx)(ServerErrorNotice,{})}}EmailReportingErrorNotices.propTypes={onGoToSettings:n().func}},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}},15650:(e,t,i)=>{i.d(t,{kA:()=>SelectionPanelContent,gy:()=>SelectionPanelFooter,W4:()=>SelectionPanelHeader,y3:()=>SelectionPanelItem,DW:()=>SelectionPanelItems,Ay:()=>E});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),d=i(78174),u=i(63696),g=i(19266),p=i(94656),m=i(62540);function SideSheet({className:e,children:t,isOpen:s,isLoading:o,onOpen:r=()=>{},closeSheet:a=()=>{},focusTrapOptions:h={}}){const f=(0,u.useRef)(),[_,y]=(0,u.useState)(0);return(0,u.useEffect)(()=>{s?(y(function(){const e=i.g.document?.getElementById("wpadminbar");if(!e)return 0;const{top:t,bottom:s,height:n}=e.getBoundingClientRect();return t<0||s<=0?0:n}()),r(),document.body.classList.add("googlesitekit-side-sheet-scroll-lock")):(y(0),document.body.classList.remove("googlesitekit-side-sheet-scroll-lock"))},[s,r]),(0,c.A)(f,function(e){e.target.closest?.(".googlesitekit-tooltip-popper")||a()}),(0,d.A)(e=>s&&g._f===e.keyCode,a),(0,m.jsxs)(p.A,{children:[(0,m.jsx)(l(),{active:!!s&&!o,focusTrapOptions:{fallbackFocus:"body",allowOutsideClick:function(e){return!!e.target.closest?.(".googlesitekit-tooltip-popper")},...h},children:(0,m.jsx)("section",{ref:f,className:n()("googlesitekit-side-sheet",e,{"googlesitekit-side-sheet--open":s}),role:"dialog","aria-modal":"true","aria-hidden":!s,tabIndex:"0",style:{"--googlesitekit-side-sheet-top":`${_}px`},children:t})}),s&&(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:l},children:e})}SideSheet.propTypes={className:r().string,children:r().node,isOpen:r().bool,isLoading:r().bool,onOpen:r().func,closeSheet:r().func,focusTrapOptions:r().object},SelectionPanel.propTypes={children:r().node,isOpen:r().bool,isLoading:r().bool,onOpen:r().func,closePanel:r().func,className:r().string};var h=i(38432),f=i(72545),_=i(33052);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 y=i(82871),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})})}SelectionBox.propTypes={badge:r().node,checked:r().bool,children:r().node,disabled:r().bool,id:r().string,onChange:r().func,title:r().string,value:r().string};var k=i(5855);function SelectionPanelItem({children:e,id:t,slug:i,title:s,description:n,isItemSelected:o,isItemDisabled:r,onCheckboxChange:a,subtitle:l,suffix:c,badge:d,isNewlyDetected:u}){return(0,m.jsxs)("div",{className:"googlesitekit-selection-panel-item",children:[(0,m.jsxs)(SelectionBox,{badge:d,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]}),u&&(0,m.jsx)(k.A,{label:(0,y.__)("New","google-site-kit")}),c&&(0,m.jsx)("span",{className:"googlesitekit-selection-panel-item__suffix",children:c})]})}function SelectionPanelItems({currentSelectionTitle:e=(0,y.__)("Current selection","google-site-kit"),availableItemsTitle:t=(0,y.__)("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)(u.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]})}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 x=i(17243),A=i(13606),b=i(50539),I=i(13047),S=i(80),j=i(4751);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[d,g]=(0,u.useState)(null),[p,h]=(0,u.useState)(!1),f=(0,b.useSelect)(e=>e(S.K9).isFetchingSyncAvailableAudiences()),_=(0,u.useMemo)(()=>!(0,x.isEqual)((0,I.N9)(t),(0,I.N9)(e)),[e,t]),k=e?.length>0&&_?(0,y.__)("Apply changes","google-site-kit"):(0,y.__)("Save selection","google-site-kit"),E=(0,u.useCallback)(async()=>{const{error:e}=await i(t);e||(r(),c(),g(k),h(!0))},[i,t,r,c,k]),M=(0,u.useCallback)(()=>{c(),a()},[c,a]),[N,w]=(0,u.useState)(null);(0,u.useEffect)(()=>{null!==N&&N!==l&&l&&(g(null),h(!1)),w(l)},[l,N]);const C=t?.length||0,T=f?(0,m.jsx)(j.A,{width:"89px",height:"20px"}):(0,m.jsx)("p",{className:"googlesitekit-selection-panel-footer__item-count",children:(0,A.A)((0,y.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,y.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","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:M,disabled:o,tertiary:!0,children:(0,y.__)("Cancel","google-site-kit")}),(0,m.jsx)(v.SpinnerButton,{onClick:E,isSaving:o,disabled:C<s||C>n||o||!l&&p,children:d||k})]})]})})}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 E=SelectionPanel},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(83202),d=i(94656),u=i(71264),g=i(97513),p=i(62540);function JoyrideTooltip(e){const{title:t,content:s,dismissLabel:o,disableOverlay:r=!0,target:m,cta:h=!1,className:f,styles:_={},slug:y="",placement:v="auto",onDismiss:k=()=>{},onView:x=()=>{},onTourStart:A=()=>{},onTourEnd:b=()=>{}}=e;function I(){return!!i.g.document.querySelector(m)}const[S,j]=(0,n.useState)(I),E=(0,g.dv)(),M=E===g.mp||E===g.Lg,[N,w]=(0,n.useState)(!0),C=(0,n.useRef)(M);if((0,l.A)(()=>{I()&&j(!0)},S?null:250),(0,n.useEffect)(()=>{let e=()=>{};if("function"==typeof i.g.ResizeObserver){const t=i.g.document.querySelector(m);if(t){const s=new ResizeObserver(()=>{i.g.dispatchEvent(new Event("resize"))});s.observe(t),e=()=>s.disconnect()}}return e},[m,S]),(0,n.useEffect)(()=>{let e;return C.current!==M&&(w(!1),e=setTimeout(()=>{w(!0)},50),C.current=M),()=>{e&&clearTimeout(e)}},[M]),!S)return null;const T=[{title:t,target:m,content:s,disableBeacon:!0,isFixed:!0,placement:v,cta:h,className:f}],D={close:o,last:o};return(0,p.jsx)(d.A,{slug:y,children:(0,p.jsx)(a.Ay,{callback:function({type:e}){switch(e){case a.qY.TOUR_START:A(),i.g.document.body.classList.add("googlesitekit-showing-tooltip");break;case a.qY.TOUR_END:b(),i.g.document.body.classList.remove("googlesitekit-showing-tooltip");break;case a.qY.STEP_AFTER:k();break;case a.qY.TOOLTIP:x()}},disableOverlay:r,spotlightPadding:0,floaterProps:u.ei,locale:D,steps:T,styles:{...u.R0,..._,options:{...u.R0.options,..._?.options},spotlight:{...u.R0.spotlight,..._?.spotlight}},tooltipComponent:c.A,run:N,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};var m=i(7972),h=i(13047),f=i(62659);function AdminScreenTooltip(){const e=(0,f.A)(),{setValue:t}=(0,o.useDispatch)(m.n),i=(0,g.dv)(),{isTooltipVisible:s=!1,target:r,placement:a,className:l,tooltipSlug:c,title:d,content:u,dismissLabel:_,gaTrackingEventLabel:y}=(0,o.useSelect)(e=>e(m.n).getValue("admin-screen-tooltip")||{isTooltipVisible:!1});const v=(0,n.useCallback)(()=>{c&&(0,h.sx)(`${e}_${c}`,"tooltip_dismiss",y),t("admin-screen-tooltip",void 0)},[t,c,e,y]);if(!s)return null;const k=i===g.mp||i===g.Lg,x=null!=r?r:'#adminmenu [href*="page=googlesitekit-settings"]',A=null!=a?a:"right";return(0,p.jsx)(JoyrideTooltip,{target:k?"body":x,placement:k?"center":A,className:k?"googlesitekit-tour-tooltip__modal_step":l||(r?void 0:"googlesitekit-tour-tooltip__fixed-settings-tooltip"),disableOverlay:!k,slug:"admin-screen-tooltip",title:d,content:u,dismissLabel:_,onView:function(){(0,h.sx)(`${e}_${c}`,"tooltip_view",y)},onDismiss:v})}},17884:(e,t,i)=>{i.d(t,{A:()=>F});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(50539),l=i(63696),c=i(96177),d=i(11883),u=i(4169),g=i(7972),p=i(10740),m=i(97513),h=i(20762),f=i(92449),_=i(17243),y=i(88273),v=i(73963),k=i(79266),x=i(33494),A=i(4124),b=i(62540);function WidgetRenderer({slug:e,OverrideComponent:t}){const i=(0,a.useSelect)(t=>t(u.aO).getWidget(e)),s=(0,m.dv)(),n=(0,c.c1)(e),{Widget:o,WidgetNull:r}=n,d=(0,a.useSelect)(e=>e(y.i).getRecoverableModules()),g=(0,A.A)(),p=(0,l.useMemo)(()=>i&&d&&(0,_.intersection)(i.modules,Object.keys(d)),[d,i]),h=(0,a.useSelect)(t=>t(u.aO).isWidgetPreloaded(e));if(!i||void 0===p||i?.hideOnBreakpoints?.includes(s))return(0,b.jsx)(r,{});const{Component:f,wrapWidget:I}=i;let S=(0,b.jsx)(f,{...n});return g&&p?.length&&(S=(0,b.jsx)(k.A,{widgetSlug:e,moduleSlugs:p})),t?S=(0,b.jsxs)(l.Fragment,{children:[(0,b.jsx)(v.A,{widgetSlug:"overridden",children:(0,b.jsx)(t,{})}),(0,b.jsx)("div",{className:x.Y2,children:S})]}):I&&(S=(0,b.jsx)(o,{children:S})),h?(0,b.jsx)("div",{className:x.Y2,children:S}):S}WidgetRenderer.propTypes={slug:n().string.isRequired,OverrideComponent:n().elementType};const I=WidgetRenderer;function WidgetCellWrapper({gridColumnWidth:e,children:t}){return 0===e?(0,b.jsx)("div",{className:x.Y2,children:t}):e<6?(0,b.jsx)(p.fh,{lgSize:e,mdSize:4,smSize:2,children:t}):e<8?(0,b.jsx)(p.fh,{lgSize:e,mdSize:8,children:t}):(0,b.jsx)(p.fh,{size:e,children:t})}WidgetCellWrapper.propTypes={gridColumnWidth:n().number.isRequired,children:n().element.isRequired};const S=WidgetCellWrapper;var j=i(38021),E=i.n(j),M=i(82871),N=i(12317),w=i(6730),C=i(19826),T=i(13047),D=i(83880);class WidgetErrorHandler extends l.Component{constructor(e){super(e),this.state={error:null,info:null},this.onErrorClick=this.onErrorClick.bind(this)}componentDidCatch(e,t){i.g.console.error("Widget error:",e,t),this.setState({error:e,info:t}),(0,T.sx)("widget_error",`handle_${this.context||"unknown"}_error`,`${this.props.slug}_${e?.message}\n${t?.componentStack}`.slice(0,500-this.props.slug.length-1))}onErrorClick(){const{error:e,info:t}=this.state;E()(`\`${e?.message}\n${t?.componentStack}\``)}render(){const{children:e}=this.props,{error:t,info:i}=this.state;return t?(0,b.jsx)("div",{className:"googlesitekit-widget-error-handler",children:(0,b.jsx)(N.A,{description:(0,b.jsxs)(l.Fragment,{children:[(0,b.jsx)(D.A,{children:(0,M.__)("An error prevented this Widget from being displayed properly. Report the exact contents of the error on the support forum to find out what caused it.","google-site-kit")}),(0,b.jsx)(w.A,{message:t.message,componentStack:i.componentStack})]}),onErrorClick:this.onErrorClick,onClick:this.onErrorClick,title:(0,M.__)("Error in Widget","google-site-kit"),error:!0})}):e}}WidgetErrorHandler.contextType=C.Ay,WidgetErrorHandler.propTypes={children:n().node.isRequired};const R=WidgetErrorHandler;var O=i(97345),L=i(37133),z=i(60515);function WidgetNewBadge({slug:e}){const t=(0,a.useSelect)(t=>t(u.aO).getWidgetArea(e)),{hasNewBadge:i}=t,s=`widget-area-expirable-new-badge-${e}`,n=(0,a.useSelect)(e=>e(O.oR).hasExpirableItem(s)),o=(0,a.useSelect)(e=>e(O.oR).isExpirableItemActive(s)),r=i&&(!1===n||o),{setExpirableItemTimers:c}=(0,a.useDispatch)(O.oR);return(0,l.useEffect)(()=>{void 0!==n&&void 0!==o&&i&&!n&&c([{slug:s,expiresInSeconds:4*T.Du}])},[i,s,n,o,c]),!!r&&(0,b.jsx)(z.A,{})}WidgetNewBadge.propTypes={slug:n().string.isRequired};var B=i(24355),P=i(33052);function WidgetAreaHeader({slug:e,Icon:t=!1,title:i="",subtitle:s="",CTA:n}){const o=(0,B.SO)(),r=n&&o>=783,a="function"==typeof s?s:void 0;return(0,b.jsxs)(l.Fragment,{children:[t&&(0,b.jsx)(t,{width:33,height:33}),i&&(0,b.jsxs)(P.A,{as:"h3",type:"headline",size:"small",className:"googlesitekit-widget-area-header__title",children:[i,(0,b.jsx)(WidgetNewBadge,{slug:e})]}),(s||n)&&(0,b.jsxs)("div",{className:"googlesitekit-widget-area-header__details",children:[s&&(0,b.jsxs)(P.A,{as:"h4",size:"medium",type:"body",className:"googlesitekit-widget-area-header__subtitle",children:[a&&(0,b.jsx)(a,{}),!a&&s,!i&&(0,b.jsx)(WidgetNewBadge,{slug:e})]}),r&&(0,b.jsx)("div",{className:"googlesitekit-widget-area-header__cta",children:(0,b.jsx)(n,{})})]})]})}function G(e){const t={[m.Qb]:48,[m.Fo]:48,[m.Lg]:32,[m.mp]:32}[e];return`${-Math.abs((0,d.Eq)(e)+t)}px ${-t}px ${-t}px ${-t}px`}function WidgetAreaRenderer({slug:e,contextID:t}){const i=(0,A.A)(),s=(0,a.useSelect)(e=>i?e(O.oR).getViewableModules():null),n=(0,B.SO)(),o=(0,m.dv)(),d=(0,l.useRef)(),_=(0,L.A)(d,{rootMargin:G(o),threshold:0}),y=(0,a.useSelect)(t=>t(u.aO).getWidgetArea(e)),{Icon:v,title:k,style:x,subtitle:j,CTA:E,Footer:M}=y,N=(0,a.useSelect)(t=>t(u.aO).getWidgets(e,{modules:s||void 0})),w=(0,a.useSelect)(e=>e(u.aO).getWidgetStates()),C=(0,a.useSelect)(t=>t(u.aO).isWidgetAreaActive(e,{modules:s||void 0})),T=(0,a.useSelect)(e=>e(g.n).getValue(g.F)),[D,z]=(0,l.useState)({key:`WidgetAreaRenderer-${e}`,value:T?T===t:!!_?.intersectionRatio});(0,l.useEffect)(()=>{z({key:`WidgetAreaRenderer-${e}`,value:T?T===t:!!_?.intersectionRatio})},[_,e,T,t]);const P=E&&n<=782;if(void 0===s)return null;const{columnWidths:F,rowIndexes:U}=(0,c.X9)(N,w),{gridColumnWidths:W,overrideComponents:V}=(0,c.DO)(N,w,{columnWidths:F,rowIndexes:U}),H=N.map((e,t)=>(0,b.jsx)(S,{gridColumnWidth:W[t],children:(0,b.jsx)(f.Kq,{value:e,children:(0,b.jsx)(R,{slug:e.slug,children:(0,b.jsx)(I,{OverrideComponent:V[t]?()=>{const{Component:e,metadata:i}=V[t];return(0,b.jsx)(e,{...i})}:void 0,slug:e.slug})})})},`${e.slug}-wrapper`));return(0,b.jsxs)(h.Ay,{value:D,children:[!!C&&(0,b.jsxs)(p.xA,{className:r()("googlesitekit-widget-area",`googlesitekit-widget-area--${e}`,`googlesitekit-widget-area--${x}`),ref:d,children:[(0,b.jsx)(p.fI,{children:(0,b.jsx)(p.fh,{className:"googlesitekit-widget-area-header",size:12,children:(0,b.jsx)(WidgetAreaHeader,{slug:e,Icon:v,title:k,subtitle:j,CTA:E})})}),(0,b.jsx)("div",{className:"googlesitekit-widget-area-widgets",children:(0,b.jsxs)(p.fI,{children:[x===u.qB.BOXES&&H,x===u.qB.COMPOSITE&&(0,b.jsx)(p.fh,{size:12,children:(0,b.jsx)(p.xA,{children:(0,b.jsx)(p.fI,{children:H})})})]})}),(0,b.jsxs)(p.fI,{children:[P&&(0,b.jsx)(p.fh,{className:"googlesitekit-widget-area-footer",lgSize:12,mdSize:4,smSize:2,children:(0,b.jsx)("div",{className:"googlesitekit-widget-area-footer__cta",children:(0,b.jsx)(E,{})})}),M&&(0,b.jsx)(p.fh,{className:"googlesitekit-widget-area-footer",lgSize:12,mdSize:P?4:8,smSize:P?2:4,children:(0,b.jsx)(M,{})})]})]}),!C&&(0,b.jsx)(p.xA,{className:r()(c.Y2,"googlesitekit-widget-area",{[`googlesitekit-widget-area--${e}`]:!!e,[`googlesitekit-widget-area--${x}`]:!!x}),ref:d,children:H})]})}function WidgetContextRenderer(e){const{id:t,slug:i,className:s,Header:n,Footer:o}=e,l=(0,A.A)(),c=(0,a.useSelect)(e=>l?e(O.oR).getViewableModules():null),d=(0,a.useSelect)(e=>i?e(u.aO).getWidgetAreas(i):null),g=(0,a.useSelect)(e=>!!i&&e(u.aO).isWidgetContextActive(i,{modules:c||void 0}));return void 0===c?null:(0,b.jsxs)("div",{id:t,className:r()("googlesitekit-widget-context",{"googlesitekit-hidden":!g},s),children:[n&&g&&(0,b.jsx)(p.xA,{children:(0,b.jsx)(p.fI,{children:(0,b.jsx)(p.fh,{size:12,children:(0,b.jsx)(n,{})})})}),d&&d.map(e=>(0,b.jsx)(WidgetAreaRenderer,{slug:e.slug,contextID:t},e.slug)),o&&g&&(0,b.jsx)(p.xA,{children:(0,b.jsx)(p.fI,{children:(0,b.jsx)(p.fh,{size:12,children:(0,b.jsx)(o,{})})})})]})}WidgetAreaHeader.propTypes={slug:n().string.isRequired,Icon:n().bool,title:n().oneOfType([n().string,n().element]),subtitle:n().oneOfType([n().string,n().elementType]),CTA:n().elementType},WidgetAreaRenderer.propTypes={slug:n().string.isRequired,contextID:n().string},WidgetContextRenderer.propTypes={id:n().string,slug:n().string,className:n().string,Header:n().elementType,Footer:n().elementType};const F=WidgetContextRenderer},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;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.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"})))},19826:(e,t,i)=>{i.d(t,{Ay:()=>r,Kq:()=>o});const s=(0,i(63696).createContext)(""),{Consumer:n,Provider:o}=s,r=s},20697:(e,t,i)=>{i.d(t,{Ax:()=>o,CZ:()=>d,Ej:()=>b,Gw:()=>I,Is:()=>r,KK:()=>g,Nn:()=>j,OT:()=>x,SH:()=>k,Y$:()=>p,ZS:()=>a,bg:()=>f,en:()=>A,ep:()=>h,f7:()=>n,hi:()=>m,jU:()=>s,k$:()=>y,kz:()=>S,ly:()=>l,mo:()=>_,s3:()=>v,uR:()=>c,zx:()=>u});const s="mainDashboard",n="entityDashboard",o="mainDashboardViewOnly",r="entityDashboardViewOnly",a="userInput",l="activation",c="splash",d="adminBar",u="adminBarViewOnly",g="settings",p="adBlockingRecovery",m="wpDashboard",h="wpDashboardViewOnly",f="moduleSetup",_="metricSelection",y="wpBlockEditor",v="keyMetricsSetup",k="key-metrics",x="traffic",A="content",b="speed",I="monetization",S=[s,n,o,r,a,c,g,f,_],j=[o,r,u,h]},20762:(e,t,i)=>{i.d(t,{Ay:()=>r});var s=i(52735);const{Consumer:n,Provider:o}=s.A,r=o},21213:(e,t,i)=>{i.d(t,{c1:()=>v,V8:()=>A,WP:()=>x});var s=i(50532),n=i.n(s),o=i(73963),r=i(62688),a=i.n(r),l=i(63696),c=i(96820),d=i(15118),u=i(62540);function WidgetReportZero({widgetSlug:e,moduleSlug:t,...i}){const s=(0,l.useMemo)(()=>({moduleSlug:t}),[t]);return(0,c.A)(e,d.A,s),(0,u.jsx)(d.A,{moduleSlug:t,...i})}WidgetReportZero.propTypes={widgetSlug:a().string.isRequired,...d.A.propTypes};var g=i(44192);function WidgetReportError({widgetSlug:e,...t}){return(0,u.jsx)(g.A,{...t})}WidgetReportError.propTypes={widgetSlug:a().string.isRequired,...g.A.propTypes};var p=i(79754),m=i(79266),h=i(17064),f=i(52684),_=i(50539),y=i(7972);function WPDashboardReportError({moduleSlug:e,error:t}){const i=(0,f.A)(WPDashboardReportError,"WPDashboardReportError"),{setValue:s}=(0,_.useDispatch)(y.n),n=t.message,o=(0,_.useSelect)(t=>t(y.n).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)(g.A,{moduleSlug:e,error:t})}WPDashboardReportError.propTypes={moduleSlug:a().string.isRequired,error:a().object.isRequired};const v=n()(e=>({widgetSlug:e,Widget:k(e)(o.A),WidgetRecoverableModules:k(e)(m.A),WidgetReportZero:k(e)(WidgetReportZero),WidgetReportError:k(e)(WidgetReportError),WidgetNull:k(e)(p.A)}));function k(e){return t=>{const i=(0,l.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 x(e){const t=v(e);return e=>{function DecoratedComponent(i){return(0,u.jsx)(e,{...i,...t})}return DecoratedComponent.displayName="WithWidgetComponentProps",(e.displayName||e.name)&&(DecoratedComponent.displayName+=`(${e.displayName||e.name})`),DecoratedComponent}}function A(e){return t=>{function DecoratedComponent(i){return(0,u.jsx)(t,{...i,WPDashboardReportError:k(e)(WPDashboardReportError)})}return DecoratedComponent.displayName="WithWPDashboardWidgetComponentProps",(t.displayName||t.name)&&(DecoratedComponent.displayName+=`(${t.displayName||t.name})`),DecoratedComponent}}},22764:(e,t,i)=>{i.d(t,{A:()=>DateRangeSelector});var s,n=i(21795),o=i(4452),r=i.n(o),a=i(63696),l=i(19266),c=i(82871),d=i(50539),u=i(49383);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},g.apply(null,arguments)}const p=e=>a.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 20"},e),s||(s=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 9H4v2h2zm4 0H8v2h2zm4 0h-2v2h2zm2-7h-1V0h-2v2H5V0H3v2H2C.89 2 .01 2.9.01 4L0 18a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 16H2V7h14z"})));var m=i(97345),h=i(12896),f=i(13047),_=i(7972),y=i(62659),v=i(62540);function DateRangeSelector(){const e=(0,f.Ql)(),t=(0,d.useSelect)(e=>e(m.oR).getDateRange()),{setDateRange:i}=(0,d.useDispatch)(m.oR),{resetInViewHook:s}=(0,d.useDispatch)(_.n),[o,g]=(0,a.useState)(!1),k=(0,a.useRef)(),x=(0,y.A)();(0,n.A)(k,()=>g(!1)),(0,h.l)([l._f,l.wn],k,()=>g(!1));const A=(0,a.useCallback)(()=>{g(!o)},[o]),b=(0,a.useCallback)(n=>{const o=Object.values(e)[n].slug;t!==o&&(0,f.sx)(`${x}_headerbar`,"change_daterange",o),s(),i(o),g(!1)},[e,t,s,i,x]),I=e[t]?.label,S=Object.values(e).map(e=>e.label);return(0,v.jsxs)("div",{ref:k,className:"googlesitekit-date-range-selector googlesitekit-dropdown-menu mdc-menu-surface--anchor",children:[(0,v.jsx)(u.Button,{className:r()("mdc-button--dropdown","googlesitekit-header__dropdown","googlesitekit-header__date-range-selector-menu","googlesitekit-border-radius-round--phone","googlesitekit-button-icon--phone"),onClick:A,icon:(0,v.jsx)(p,{width:"20",height:"20"}),"aria-haspopup":"menu","aria-expanded":o,"aria-controls":"date-range-selector-menu",title:(0,c.__)("Date range","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:I}),(0,v.jsx)(u.Menu,{menuOpen:o,menuItems:S,onSelected:b,id:"date-range-selector-menu",className:"googlesitekit-width-auto"})]})}},22942:(e,t,i)=>{i.d(t,{A_:()=>d,DF:()=>g,L1:()=>p,M0:()=>r,Mc:()=>a,Ok:()=>c,U9:()=>l,iW:()=>o,ue:()=>n,wq:()=>s,xR:()=>u});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",d="_r..dataFilters",u="_r..nav",g="key-metrics-connect-ga4-cta-widget",p="analytics-4"},23403:(e,t,i)=>{i.d(t,{A:()=>p});var s=i(99408),n=i(82871),o=i(63696),r=i(51568),a=i(50539),l=i(11999),c=i(97345),d=i(13137),u=i(80),g=i(68832);function p({redirectURL:e,onSuccess:t,onError:p,onOAuthNavigation:m}={}){const h=(0,s.A)(),[f,_]=(0,o.useState)([]),[y,v]=(0,o.useState)([]),[k,x]=(0,o.useState)(!1),A=(0,a.useSelect)(e=>e(c.oR).hasScope(u.S9)),b=(0,g.A)(u.PW,"autoSubmit"),{setValues:I}=(0,a.useDispatch)(l.s),{setPermissionScopeError:S}=(0,a.useDispatch)(c.oR),{enableAudienceGroup:j,fetchSyncAvailableCustomDimensions:E,determineNeedForAnalytics4EditScope:M,syncAvailableAudiences:N}=(0,a.useDispatch)(u.K9);e||(e=(0,r.F)(i.g.location.href,{notification:"audience_segmentation"}));const w=(0,o.useCallback)(async()=>{const{error:e}=await N();if(e)return{error:e};const{error:t}=await E();if(t)return{error:t};if(!A){const{error:e,needsScope:t}=await M();if(e)return{error:e};if(t)return{needsScope:!0}}I(u.PW,{autoSubmit:!1});const{error:i,failedSiteKitAudienceSlugs:s}=await j(y)||{};return{error:i,failedSiteKitAudienceSlugs:s}},[j,y,E,A,M,I,N]),C=(0,o.useCallback)(async()=>{x(!0);const{error:s,needsScope:o,failedSiteKitAudienceSlugs:r}=await w();if(o)return I(u.PW,{autoSubmit:!0}),await(m?.()),void S({code:d.db,message:(0,n.__)("Additional permissions are required to create new audiences in Analytics.","google-site-kit"),data:{status:403,scopes:[u.S9],skipModal:!0,skipDefaultErrorNotifications:!0,redirectURL:e,errorRedirectURL:i.g.location.href}});if(s||r?p?.():t?.(),h()){function a(e){return e.length?[]:e}s?(_([s]),v(a)):Array.isArray(r)?(v(r),_(a)):(_(a),v(a)),x(!1)}},[w,h,I,m,S,e,p,t]);return(0,o.useEffect)(()=>{A&&b&&C()},[A,b,C]),{apiErrors:f,failedAudiences:y,isSaving:k,onEnableGroups:C}}},24355:(e,t,i)=>{i.d(t,{SO:()=>l,xJ:()=>a});var s=i(55620),n=i(99123);function o(){return[i.g.innerWidth,i.g.innerHeight]}function r({fps:e=60,leading:t=!1,initialWidth:i=0,initialHeight:r=0}={}){const[a,l]=(0,s._)("undefined"==typeof document?[i,r]:o,e,t);function c(){return l(o)}return(0,n.A)(window,"resize",c),(0,n.A)(window,"orientationchange",c),a}function a(e={}){return r(e)[1]}function l(e={}){return r(e)[0]}},25797:(e,t,i)=>{i.d(t,{A:()=>v});var s,n=i(62688),o=i.n(n),r=i(4452),a=i.n(r),l=i(63696),c=i(19793);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},d.apply(null,arguments)}const warning_notice=e=>l.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=l.createElement("path",{fill:"currentColor",d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1m0 14a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m-1-2h2V6h-2z"})));var u=i(42343),g=i(76984),p=i(62540);const m={[g.Q.NEW]:u.A,[g.Q.SUCCESS]:c.A,[g.Q.INFO]:warning_notice,[g.Q.WARNING]:warning_notice,[g.Q.ERROR]:warning_notice};function Icon({type:e}){const t=m[e]||warning_notice;return(0,p.jsx)(t,{width:24,height:24})}function Title({className:e,children:t}){return(0,p.jsx)("p",{className:a()("googlesitekit-notice__title",e),children:t})}function Description({className:e,children:t}){return(0,p.jsx)("p",{className:a()("googlesitekit-notice__description",e),children:t})}Icon.propTypes={type:o().oneOf(Object.values(g.Q))},Title.propTypes={className:o().string,children:o().node},Description.propTypes={className:o().string,children:o().node};var h=i(49383),f=i(83366);function CTAButton({label:e,disabled:t,inProgress:i,onClick:s,href:n,external:o=!1,hideExternalIndicator:r=!1}){let l;return o&&!r&&(l=(0,p.jsx)(f.A,{width:14,height:14})),(0,p.jsx)(h.SpinnerButton,{className:a()("googlesitekit-notice__cta",{"googlesitekit-notice__cta--spinner__running":i}),disabled:t,isSaving:i,onClick:s,href:n,target:o?"_blank":void 0,trailingIcon:l,children:e})}CTAButton.propTypes={label:o().string.isRequired,disabled:o().bool,inProgress:o().bool,onClick:o().func,href:o().string,external:o().bool,hideExternalIndicator:o().bool};var _=i(82871);function DismissButton({label:e=(0,_.__)("Got it","google-site-kit"),onClick:t,disabled:i,href:s,external:n=!1}){return(0,p.jsx)(h.Button,{onClick:t,disabled:i,href:s,target:n?"_blank":void 0,tertiary:!0,children:e})}DismissButton.propTypes={label:o().string,onClick:o().func.isRequired,disabled:o().bool,href:o().string,external:o().bool};const y=(0,l.forwardRef)(({className:e,title:t,description:i,dismissButton:s,ctaButton:n,type:o=g.Q.INFO,children:r,hideIcon:l},c)=>(0,p.jsx)("div",{className:"googlesitekit-notice-container",ref:c,children:(0,p.jsxs)("div",{className:a()("googlesitekit-notice",`googlesitekit-notice--${o}`,e),role:"status",children:[!l&&(0,p.jsx)("div",{className:"googlesitekit-notice__icon",children:(0,p.jsx)(Icon,{type:o})}),(0,p.jsxs)("div",{className:"googlesitekit-notice__content",children:[t&&(0,p.jsx)(Title,{children:t}),i&&(0,p.jsx)(Description,{children:i})]}),(s?.label||s?.onClick||n?.label&&(n?.onClick||n?.href)||r)&&(0,p.jsxs)("div",{className:"googlesitekit-notice__action",children:[r,(s?.label||s?.onClick)&&(0,p.jsx)(DismissButton,{label:s.label,onClick:s.onClick,disabled:s.disabled,href:s.href,external:s.external}),n?.label&&(n?.onClick||n?.href)&&(0,p.jsx)(CTAButton,{label:n.label,onClick:n.onClick,inProgress:n.inProgress,disabled:n.disabled,href:n.href,external:n.external,hideExternalIndicator:n.hideExternalIndicator})]})]})}));y.TYPES=g.Q,y.propTypes={className:o().string,title:o().oneOfType([o().string,o().object]),description:o().node,type:o().oneOf(Object.values(g.Q)),dismissButton:o().shape(DismissButton.propTypes),ctaButton:o().shape({...CTAButton.propTypes,label:o().string}),children:o().node,hideIcon:o().bool};const v=y},26464:(e,t,i)=>{i.d(t,{A:()=>PanelContent});var s=i(4452),n=i.n(s),o=i(17243),r=i(62688),a=i.n(r),l=i(63696),c=i(82871),d=i(81276),u=i(50539),g=i(97345),p=i(80),m=i(22942),h=i(7144),f=i(50454),_=i(62954),y=i(65385),v=i(68832),k=i(68329),x=i(76984),A=i(62540);const b=(0,y.A)({moduleName:m.L1})(function CustomDimensionsNotice(){const e=(0,v.A)(h.Is,h.Y0),t=e?.flatMap(e=>{const t=f.G[e];return t?.requiredCustomDimensions||[]}),s=(0,u.useInViewSelect)(e=>!!t?.length&&!e(p.K9).hasCustomDimensions(t),[t]),n=(0,u.useInViewSelect)(e=>e(g.oR).hasScope(p.S9));(0,u.useInViewSelect)(e=>e(p.K9).getAvailableCustomDimensions());const o=(0,d.A)(s),r=(0,l.useRef)();if((0,l.useEffect)(()=>{if(s&&!1===o){const e=i.g.document.activeElement;e&&e.closest(".googlesitekit-selection-panel-item")&&(0,_.N)(r.current,e)&&e.scrollIntoView()}},[s,o]),!1===s)return null;const a=n?(0,c.__)("The metrics you selected require more data tracking. We will update your Analytics property after saving your selection.","google-site-kit"):(0,c.__)("The metrics you selected require more data tracking. You will be directed to update your Analytics property after saving your selection.","google-site-kit");return(0,A.jsx)(k.A,{ref:r,type:x.Q.WARNING,description:a,hideIcon:!0})});var I=i(13606),S=i(70301),j=i(29785),E=i(38432),M=i(15650),N=i(4124),w=i(83880);function Header({closePanel:e}){const t=(0,N.A)(),i=(0,u.useSelect)(e=>e(j.O4).getSiteKitAdminSettingsURL()),s=(0,u.useSelect)(e=>e(g.oR).isSavingKeyMetricsSettings()),{navigateTo:n}=(0,u.useDispatch)(S.M),o=(0,l.useCallback)(()=>n(i),[i,n]);return(0,A.jsx)(M.W4,{title:(0,c.sprintf)(/* translators: %d: number of max allowed metrics */ /* translators: %d: number of max allowed metrics */ (0,c.__)("Select up to %d metrics","google-site-kit"),h.Hl),onCloseClick:e,children:!t&&(0,A.jsx)(w.A,{children:(0,I.A)((0,c.__)("Edit your personalized goals or deactivate this widget in <link><strong>Settings</strong></link>","google-site-kit"),{link:(0,A.jsx)(E.A,{onClick:o,disabled:s,secondary:!0}),strong:(0,A.jsx)("strong",{})})})})}Header.propTypes={closePanel:a().func.isRequired};var C=i(11999),T=i(88273),D=i(13137),R=i(62659),O=i(78990),L=i(13047),z=i(49383),B=i(4751);function SelectionPanelFooter({savedItemSlugs:e=[],selectedItemSlugs:t=[],saveSettings:i=()=>{},minSelectedItemCount:s=0,maxSelectedItemCount:n=0,isBusy:r,onSaveSuccess:a=()=>{},onCancel:d=()=>{},isOpen:g,closePanel:m=()=>{},isFullScreen:h=!1}){const[f,_]=(0,l.useState)(null),[y,v]=(0,l.useState)(!1),k=(0,u.useSelect)(e=>e(p.K9).isFetchingSyncAvailableAudiences()),x=(0,l.useMemo)(()=>!(0,o.isEqual)((0,L.N9)(t),(0,L.N9)(e)),[e,t]);let b=e?.length>0&&x?(0,c.__)("Apply changes","google-site-kit"):(0,c.__)("Save selection","google-site-kit");h&&(b=(0,c.__)("Complete setup","google-site-kit"));const S=(0,l.useCallback)(async()=>{const{error:e}=await i(t);e||(a(),m(),h||(_(b),v(!0)))},[i,t,a,m,h,b]),j=(0,l.useCallback)(()=>{m(),d()},[m,d]),[E,M]=(0,l.useState)(null);(0,l.useEffect)(()=>{null!==E&&E!==g&&g&&(_(null),v(!1)),M(g)},[g,E]);const N=t?.length||0,w=k?(0,A.jsx)(B.A,{width:"89px",height:"20px"}):(0,A.jsx)("p",{className:"googlesitekit-selection-panel-footer__item-count",children:(0,I.A)((0,c.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,c.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),N,n),{MaxCount:(0,A.jsx)("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})})});return(0,A.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,A.jsx)("div",{className:"googlesitekit-selection-panel-footer__content",children:(0,A.jsxs)("div",{className:"googlesitekit-selection-panel-footer__actions",children:[(0,A.jsx)(z.Button,{onClick:j,disabled:r,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),w,(0,A.jsx)(z.SpinnerButton,{onClick:S,isSaving:r,disabled:N<s||N>n||r||!g&&y,children:f||b})]})})})}function Footer({isOpen:e,closePanel:t=o.noop,savedMetrics:i,onNavigationToOAuthURL:s=()=>{},isFullScreen:n=!1}){const r=(0,u.useRegistry)(),a=(0,R.A)(),d=(0,v.A)(h.Is,h.Y0),_=(0,u.useSelect)(e=>e(g.oR).isSavingKeyMetricsSettings()),y=`${a}_kmw-sidebar`,k=d?.flatMap(e=>{const t=f.G[e];return t?.requiredCustomDimensions||[]}),x=(0,u.useInViewSelect)(e=>{if(!k?.length)return!1;return!e(p.K9).hasCustomDimensions(k)},[k]),b=(0,u.useInViewSelect)(e=>e(g.oR).hasScope(p.S9)),I=(0,u.useSelect)(e=>e(T.i).isModuleConnected(m.L1)),E=(0,u.useSelect)(e=>e(j.O4).getAdminURL("googlesitekit-dashboard",{notification:"custom_dimensions"})),M=(0,u.useSelect)(e=>{const t=e(g.oR).getConnectURL({additionalScopes:[p.S9],redirectURL:E});return!!t&&e(S.M).isNavigatingTo(t)}),N=(0,u.useSelect)(e=>e(j.O4).getAdminURL("googlesitekit-dashboard")),w=(0,u.useSelect)(e=>!!N&&e(S.M).isNavigatingTo(N)),{saveKeyMetricsSettings:z,setPermissionScopeError:B}=(0,u.useDispatch)(g.oR),{setValues:P}=(0,u.useDispatch)(C.s),{navigateTo:G}=(0,u.useDispatch)(S.M),F=(0,u.useSelect)(e=>e(p.K9).getKeyMetricsConversionEventWidgets()),U=(0,l.useCallback)(async e=>{const{error:t}=await z({widgetSlugs:e});return{error:t}},[z]),W=(0,l.useCallback)(async e=>{if(Object.values(F).flat().some(t=>e.includes(t))?(0,L.sx)(y,"metrics_sidebar_save","conversion_reporting"):(0,L.sx)(y,"metrics_sidebar_save"),I&&x){if(P(p.Kr,{autoSubmit:!0}),!b)return s(),t(),void B({code:D.db,message:(0,c.__)("Additional permissions are required to create new Analytics custom dimensions","google-site-kit"),data:{status:403,scopes:[p.S9],skipModal:!0,redirectURL:E}});n&&await(0,O.mR)(r)}n&&G(N)},[F,I,x,n,y,P,b,s,t,B,E,r,G,N]),V=(0,l.useCallback)(()=>{(0,L.sx)(y,"metrics_sidebar_cancel"),n&&G(N)},[n,N,G,y]);return(0,A.jsx)(SelectionPanelFooter,{savedItemSlugs:i,selectedItemSlugs:d,saveSettings:U,minSelectedItemCount:h.LO,maxSelectedItemCount:h.Hl,isBusy:_||M||w&&n,onSaveSuccess:()=>{W(d)},onCancel:V,isOpen:e,closePanel:t,isFullScreen:n})}SelectionPanelFooter.propTypes={savedItemSlugs:a().array,selectedItemSlugs:a().array,saveSettings:a().func,saveError:a().object,minSelectedItemCount:a().number,maxSelectedItemCount:a().number,isBusy:a().bool,onSaveSuccess:a().func,onCancel:a().func,isOpen:a().bool,closePanel:a().func,isFullScreen:a().bool},Footer.propTypes={isOpen:a().bool,closePanel:a().func,savedMetrics:a().array,onNavigationToOAuthURL:a().func,isFullScreen:a().bool};var P=i(12666);function SelectionPanelItems({savedItemSlugs:e=[],allMetricItems:t}){return(0,A.jsx)("div",{className:"googlesitekit-selection-panel-items",children:(0,A.jsx)(P.A,{savedItemSlugs:e,allMetricItems:t})})}function MetricItems({savedMetrics:e}){const t=(0,N.A)(),{isKeyMetricAvailable:i}=(0,u.useSelect)(e=>e(g.oR)),s=(0,u.useInViewSelect)(e=>i=>f.G[i].displayInSelectionPanel({select:e,isViewOnlyDashboard:t,slug:i}),[t]);const n=Object.keys(f.G).reduce(function(e,t){if(!i(t))return e;if(void 0===s||"function"==typeof f.G[t].displayInSelectionPanel&&!s(t))return e;const{title:n,description:o,metadata:{group:r}}=f.G[t];return{...e,[t]:{title:n,description:o,group:r}}},{});return(0,A.jsx)(SelectionPanelItems,{savedItemSlugs:e,allMetricItems:n})}SelectionPanelItems.propTypes={savedItemSlugs:a().array,allMetricItems:a().object.isRequired},MetricItems.propTypes={savedMetrics:a().array};var G=i(65695);const F=(0,y.A)({moduleName:m.L1})(function KeyMetricsError({savedMetrics:e}){const t=(0,v.A)(h.Is,h.Y0),i=(0,u.useInViewSelect)(e=>e(g.oR).getKeyMetricsSettings()),s=(0,l.useMemo)(()=>!(0,o.isEqual)((0,L.N9)(t),(0,L.N9)(e)),[e,t]),n=(0,u.useSelect)(e=>e(g.oR).getErrorForAction("saveKeyMetricsSettings",[{...i,widgetSlugs:t}])),r=t?.length||0;let a;r<h.LO?a=(0,c.sprintf)(/* translators: 1: Minimum number of metrics that can be selected. 2: Number of selected metrics. */ /* translators: 1: Minimum number of metrics that can be selected. 2: Number of selected metrics. */ (0,c.__)("Select at least %1$d metrics (%2$d selected)","google-site-kit"),h.LO,r):r>h.Hl&&(a=(0,c.sprintf)(/* translators: 1: Maximum number of metrics that can be selected. 2: Number of selected metrics. */ /* translators: 1: Maximum number of metrics that can be selected. 2: Number of selected metrics. */ (0,c.__)("Select up to %1$d metrics (%2$d selected)","google-site-kit"),h.Hl,r));let d=n;return s&&a&&(d={message:a}),(0,A.jsx)(G.A,{error:d,skipRetryMessage:!!a})});function PanelContent({isOpen:e=!1,closePanel:t,savedViewableMetrics:i,showHeader:s=!0,setIsNavigatingToOAuthURL:r=o.noop,isFullScreen:a=!1}){return(0,A.jsxs)(l.Fragment,{children:[s&&(0,A.jsx)(Header,{closePanel:t}),(0,A.jsxs)(M.kA,{children:[(0,A.jsx)(MetricItems,{savedMetrics:i}),(0,A.jsx)(b,{})]}),(0,A.jsxs)("div",{className:n()("googlesitekit-user-input__footer-container",{"googlesitekit-user-input__footer-container--fullscreen":a}),children:[(0,A.jsx)(F,{savedMetrics:i}),(0,A.jsx)(Footer,{isOpen:e,closePanel:t,savedMetrics:i,onNavigationToOAuthURL:()=>{r(!0)},isFullScreen:a})]})]})}PanelContent.propTypes={isOpen:a().bool,closePanel:a().func,savedViewableMetrics:a().array,showHeader:a().bool,setIsNavigatingToOAuthURL:a().func,isFullScreen:a().bool}},28534:(e,t,i)=>{i.d(t,{A:()=>N});var s,n=i(15844),o=i(79257),r=i(52684),a=i(63696),l=i(82871),c=i(50539),d=i(49383),u=i(55989);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},g.apply(null,arguments)}const p=e=>a.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),s||(s=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 9.5c0 1.407-.45 2.714-1.218 3.783L20.49 19 19 20.49l-5.717-5.708A6.46 6.46 0 0 1 9.5 16 6.5 6.5 0 1 1 16 9.5m-11 0C5 11.99 7.01 14 9.5 14S14 11.99 14 9.5 11.99 5 9.5 5 5 7.01 5 9.5",clipRule:"evenodd"})));var m;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},h.apply(null,arguments)}const f=e=>a.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),m||(m=a.createElement("path",{fill:"currentColor",d:"m15.833 5.342-1.175-1.175L10 8.825 5.342 4.167 4.167 5.342 8.825 10l-4.658 4.658 1.175 1.175L10 11.175l4.658 4.658 1.175-1.175L11.175 10z"})));var _=i(62688),y=i.n(_),v=i(82351),k=i(19266),x=i(54419);var A=i(29785),b=i(62540);function I(){}function PostSearcherAutoSuggest({id:e,match:t,setMatch:i,isLoading:s,showDropdown:n=!0,setIsLoading:o=I,setIsActive:r=I,autoFocus:d,setCanSubmit:u=I,onClose:g=I,placeholder:p=""}){const m=(0,a.useRef)(),[h,f]=(0,a.useState)(""),_=t?.title,y=function(e,t){const[i,s]=(0,a.useState)(e);return(0,a.useEffect)(()=>{const i=setTimeout(()=>{s(e)},t);return()=>{clearTimeout(i)}},[e,t]),i}(h,h===_?0:200),[S,j]=(0,a.useState)([]),E=(0,l.__)("No results found","google-site-kit"),M=(0,c.useSelect)(e=>e(A.O4).getCurrentEntityTitle()),N=(0,a.useRef)(null),w=(0,a.useCallback)(()=>{r(!0)},[r]),C=(0,a.useCallback)(e=>{var t,i;e.relatedTarget?.classList.contains("autocomplete__option--result")||(r(!1),f(null!==(t=null!==(i=N.current)&&void 0!==i?i:M)&&void 0!==t?t:""))},[M,r]),T=(0,a.useCallback)(e=>{if(Array.isArray(S)&&e!==E){const t=S.find(t=>t.title.toLowerCase()===e.toLowerCase());t?(N.current=t.title,u(!0),i(t),f(t.title)):N.current=null}else N.current=null,u(!1)},[S,u,i,E,f]),D=(0,a.useCallback)(e=>{u(!1),f(e.target.value)},[u]);(0,a.useEffect)(()=>{if(""!==y&&y!==M&&y?.toLowerCase()!==_?.toLowerCase()){const e="undefined"==typeof AbortController?void 0:new AbortController;return async function(){o(!0);const t=(0,x.get)("core","search","entity-search",{query:encodeURIComponent(y)},{useCache:!1,signal:e?.signal});m.current=t;try{const e=await t;j(e)}catch{j(null)}finally{t===m.current&&o(!1)}}(),()=>e?.abort()}return()=>{}},[y,o,M,_]),(0,a.useEffect)(()=>{h||j([])},[h]),(0,a.useEffect)(()=>{M&&f(M)},[M]);const R=(0,a.useRef)(),O=(0,a.useCallback)(e=>{const t=R.current;switch(e.keyCode){case k.yZ:t?.value&&(e.preventDefault(),t.selectionStart=0,t.selectionEnd=0);break;case k.Kp:t?.value&&(e.preventDefault(),t.selectionStart=t.value.length,t.selectionEnd=t.value.length)}switch(e.keyCode){case k._f:g();break;case k.Fm:T(h)}},[g,T,h]);return(0,b.jsxs)(v.G3,{className:"autocomplete__wrapper",onSelect:T,children:[(0,b.jsx)(v.oK,{ref:R,id:e,className:"autocomplete__input autocomplete__input--default",type:"text",onBlur:C,onChange:D,onFocus:w,placeholder:p,onKeyDown:O,value:h,autoFocus:d}),!s&&n&&y!==M&&""!==y&&0===S?.length&&(0,b.jsx)(v.Nf,{portal:!1,children:(0,b.jsx)(v.ex,{className:"autocomplete__menu autocomplete__menu--inline",children:(0,b.jsx)(v.jO,{value:E,className:"autocomplete__option autocomplete__option--no-results"})})}),n&&""!==y&&y!==M&&S?.length>0&&(0,b.jsx)(v.Nf,{portal:!1,children:(0,b.jsx)(v.ex,{className:"autocomplete__menu autocomplete__menu--inline",children:S.map(({id:e,title:t})=>(0,b.jsx)(v.jO,{value:t,className:"autocomplete__option autocomplete__option--result"},e))})})]})}PostSearcherAutoSuggest.propTypes={id:y().string,match:y().object,setCanSubmit:y().func,setMatch:y().func,isLoading:y().bool,setIsLoading:y().func,onKeyDown:y().func,autoFocus:y().bool,placeholder:y().string};var S=i(70301),j=i(13047),E=i(7551),M=i(62659);const N=function EntitySearchInput(){const e=(0,r.A)(EntitySearchInput,"EntitySearchInput"),[t,i]=(0,a.useState)(!1),[s,g]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1),_=(0,M.A)(),y=(0,E.Ay)(),v=(0,a.useRef)(),k=(0,a.useCallback)(()=>{(0,j.sx)(`${_}_headerbar`,"open_urlsearch"),i(!0)},[_]),x=(0,a.useCallback)(()=>{(0,j.sx)(`${_}_headerbar`,"close_urlsearch"),i(!1)},[_]),[I,N]=(0,a.useState)({}),w=(0,c.useSelect)(e=>I?.url?e(A.O4).getAdminURL("googlesitekit-dashboard",{permaLink:I.url}):null),{navigateTo:C}=(0,c.useDispatch)(S.M);return(0,a.useEffect)(()=>{w&&(0,j.sx)(`${_}_headerbar_urlsearch`,"open_urldetails").finally(()=>{C(w)})},[w,C,_]),(0,n.A)(()=>{y===E.oE&&i(!0)}),(0,o.A)(()=>{t||v?.current?.focus()},[t]),t?(0,b.jsxs)("div",{className:"googlesitekit-entity-search googlesitekit-entity-search--is-open",children:[(0,b.jsx)(u.A,{children:(0,b.jsx)("label",{htmlFor:e,children:(0,l.__)("Page/URL Search","google-site-kit")})}),(0,b.jsx)(PostSearcherAutoSuggest,{id:e,match:I,setIsActive:h,setMatch:N,placeholder:(0,l.__)("Enter title or URL…","google-site-kit"),isLoading:s,setIsLoading:g,showDropdown:m,onClose:x,autoFocus:!0}),s&&m&&(0,b.jsx)(d.ProgressBar,{className:"googlesitekit-entity-search__loading",compress:!0}),(0,b.jsx)("div",{className:"googlesitekit-entity-search__actions",children:(0,b.jsx)(d.Button,{onClick:x,trailingIcon:(0,b.jsx)(f,{width:"30",height:"20"}),className:"googlesitekit-entity-search__close",title:(0,l.__)("Close","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0})})]}):(0,b.jsx)("div",{className:"googlesitekit-entity-search",children:(0,b.jsx)(d.Button,{className:"googlesitekit-border-radius-round--phone googlesitekit-button-icon--phone",onClick:k,ref:v,title:(0,l.__)("Search","google-site-kit"),trailingIcon:(0,b.jsx)(p,{width:"20",height:"20"}),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:(0,l.__)("URL Search","google-site-kit")})})}},29775:(e,t,i)=>{i.d(t,{hk:()=>o,tm:()=>n,zP:()=>s});const s="editing-user-role-select-slug-key",n="dashboardSharingDialogOpen",o="resetSharingDialogOpen"},29785:(e,t,i)=>{i.d(t,{O4:()=>s,OQ:()=>o,qc:()=>n});const s="core/site",n="primary",o="secondary"},30289:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(63560),n=i(62688),o=i.n(n),r=i(63696),a=i(62540);function l(e){function WithIntersectionObserverComponent({onInView:t,...i}){const n=(0,r.useRef)(),o=(0,s.A)(n,{root:null,threshold:.45}),[l,c]=(0,r.useState)(!1),d=!!o?.isIntersecting&&!!o?.intersectionRatio;return(0,r.useEffect)(()=>{o&&d&&!l&&(t(),c(!0))},[l,d,o,t]),(0,a.jsx)(e,{ref:n,...i})}return WithIntersectionObserverComponent.displayName="WithIntersectionObserverComponent",(e.displayName||e.name)&&(WithIntersectionObserverComponent.displayName+=`(${e.displayName||e.name})`),WithIntersectionObserverComponent.propTypes={onInView:o().func.isRequired,...e.propTypes},WithIntersectionObserverComponent}},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)}},31012:(e,t,i)=>{i.d(t,{c:()=>r});var s=i(82871),n=i(32803),o=i(22942);function r(e="",t={}){const{slug:i="",name:r="",owner:a={}}=t||{};if(!i||!r)return e;let l="",c="";return o.L1===i?e.match(/account/i)?l=(0,s.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/property/i)?l=(0,s.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/view/i)&&(l=(0,s.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit")):n.Y===i&&(l=(0,s.__)("Your Google account does not have sufficient permissions for this Search Console property, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit")),l||(l=(0,s.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,s.__)("Your Google account does not have sufficient permissions to access %s data, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"),r)),a&&a.login&&(c=(0,s.sprintf)(/* translators: %s: owner name */ /* translators: %s: owner name */ (0,s.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),a.login)),c||(c=(0,s.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),`${l} ${c}`}},31675:(e,t,i)=>{i.d(t,{A:()=>ExitSetup});var s=i(62688),n=i.n(s),o=i(82871),r=i(90559),a=i(52696),l=i(29785),c=i(70301),d=i(13047),u=i(62540);function ExitSetup({gaTrackingEventArgs:e}){const t=(0,a.WM)(e=>(0,d.CZ)(e(l.O4).getAdminURL())),{navigateTo:i}=(0,a.wA)(c.M);return(0,u.jsx)(r.$n,{onClick:async function(){await(0,d.sx)(e.category,"setup_flow_v3_exit_setup",e.label),i(`${t}/plugins.php`)},tertiary:!0,children:(0,o.__)("Exit setup","google-site-kit")})}ExitSetup.propTypes={gaTrackingEventArgs:n().object.isRequired}},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})},32600:(e,t,i)=>{i.d(t,{A:()=>NoticeNotification});var s=i(25797),n=i(68761),o=i(50539),r=i(8732),a=i(10740),l=i(62688),c=i.n(l),d=i(62540);function NoticeNotification({notificationID:e,children:t,dismissButton:i,ctaButton:l,gaTrackingEventArgs:c,...u}){const g=(0,n.A)(e,c?.category),{dismissNotification:p}=(0,o.useDispatch)(r.D);return(0,d.jsx)(a.xA,{children:(0,d.jsx)(a.fI,{children:(0,d.jsx)(a.fh,{size:12,alignMiddle:!0,children:(0,d.jsx)(s.A,{dismissButton:{...i,onClick:async function(t){await(i?.onClick?.(t)),g.dismiss(c?.label,c?.value),p(e,{...i?.dismissOptions||{}})}},ctaButton:{...l,onClick:async function(t){g.confirm(c?.label,c?.value),await(l?.onClick?.(t)),l?.dismissOnClick&&p(e,{...l?.dismissOptions})}},...u,children:t})})})})}NoticeNotification.propTypes={notificationID:c().string.isRequired,children:c().node,dismissButton:c().oneOfType([c().bool,c().object]),ctaButton:c().object,gaTrackingEventArgs:c().object}},32803:(e,t,i)=>{i.d(t,{Y:()=>s});const s="search-console"},32885:(e,t,i)=>{i.d(t,{A:()=>Checkbox});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(63696),l=i(62457),c=i(62540);function Checkbox(e){const{onChange:t,id:i,name:s,value:o,checked:r,disabled:d,children:u,tabIndex:g,onKeyDown:p,loading:m,alignLeft:h,description:f,badge:_}=e,y=_?(0,c.jsxs)("div",{className:"mdc-checkbox__label-wrapper",children:[(0,c.jsx)("label",{htmlFor:i,children:u}),_]}):(0,c.jsx)("label",{htmlFor:i,children:u});return(0,c.jsxs)("div",{className:"mdc-form-field",children:[(0,c.jsx)("div",{className:n()("mdc-checkbox",{"mdc-checkbox--disabled":d,"mdc-checkbox--align-left":h}),children:m?(0,c.jsx)(l.A,{style:{margin:"0"},isSaving:!0}):(0,c.jsxs)(a.Fragment,{children:[(0,c.jsx)("input",{className:"mdc-checkbox__native-control",type:"checkbox",id:i,name:s,value:o,checked:r,disabled:d,onChange:t,tabIndex:g,onKeyDown:p}),(0,c.jsxs)("div",{className:"mdc-checkbox__background",children:[(0,c.jsx)("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 12 9",children:(0,c.jsx)("path",{className:"mdc-checkbox__checkmark-path",d:"M2.08301 5.28834L3.55703 7.29507C4.24647 8.23368 5.5034 8.23368 6.19285 7.29507L10.083 1.99902",fill:"none",stroke:"none"})}),(0,c.jsx)("div",{className:"mdc-checkbox__mixedmark"})]})]})}),!f&&y,f&&(0,c.jsxs)("div",{className:"mdc-checkbox__content",children:[y,(0,c.jsx)("div",{className:"mdc-checkbox__description",children:f})]})]})}Checkbox.propTypes={onChange:r().func.isRequired,onKeyDown:r().func,id:r().string.isRequired,name:r().string.isRequired,value:r().string.isRequired,checked:r().bool,disabled:r().bool,children:r().node.isRequired,tabIndex:r().oneOfType([r().number,r().string]),loading:r().bool,alignLeft:r().bool,description:r().node,badge:r().node},Checkbox.defaultProps={checked:!1,disabled:!1,tabIndex:void 0,onKeyDown:null,loading:!1,alignLeft:!1,description:""}},33052:(e,t,i)=>{i.d(t,{A:()=>Typography});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(8513),l=i(62540);function Typography({className:e,type:t,size:i,as:s="span",children:n,...o}){return(0,l.jsx)(s,{className:r()("googlesitekit-typography",e,{[`googlesitekit-typography--${t}`]:t&&a.tT.includes(t),[`googlesitekit-typography--${i}`]:i&&a.oJ.includes(i)}),...o,children:n})}Typography.propTypes={className:n().string,type:n().oneOf(a.tT),size:n().oneOf(a.oJ),as:n().oneOfType([n().string,n().elementType])}},33494:(e,t,i)=>{i.d(t,{Gr:()=>r,We:()=>l,Y2:()=>a});var s=i(4169),n=i(15118),o=i(97591);const r={[s.N$.QUARTER]:3,[s.N$.HALF]:6,[s.N$.FULL]:12},a="googlesitekit-hidden",l=[n.A,o.A]},33903:(e,t,i)=>{i.d(t,{A:()=>OverlayNotification});var s=i(62688),n=i.n(s),o=i(50539),r=i(8732),a=i(68761),l=i(5230),c=i(4452),d=i.n(c),u=i(97513),g=i(63696),p=i(33052),m=i(62540);function Title({children:e}){return(0,m.jsx)(p.A,{as:"h3",size:"medium",type:"title",className:"googlesitekit-overlay-card__title",children:e})}function Description({children:e}){return(0,m.jsx)("p",{className:"googlesitekit-overlay-card__description",children:e})}Title.propTypes={children:n().node.isRequired},Description.propTypes={children:n().node.isRequired};var h=i(82871),f=i(49383);function DismissButton({label:e=(0,h.__)("Maybe later","google-site-kit"),onClick:t,disabled:i}){return(0,m.jsx)(f.Button,{onClick:t,disabled:i,tertiary:!0,children:e})}const _={label:n().string,onClick:n().func,disabled:n().bool};function CTAButton(e){const{label:t,...i}=e;return(0,m.jsx)(f.Button,{...i,children:t})}DismissButton.propTypes=_,CTAButton.propTypes={..._,href:n().string,target:n().string,trailingIcon:n().object};var y=i(60515);function Body({title:e,description:t,ctaButton:i,dismissButton:s,GraphicDesktop:n,GraphicMobile:o,newBadge:r}){const a=(0,u.dv)();return(0,m.jsxs)(g.Fragment,{children:[a!==u.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)(y.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===u.mp&&o&&(0,m.jsx)(o,{})]})}function OverlayCard(e){const{visible:t,className:i,...s}=e,n=(0,u.dv)();if(!t)return null;const o=(0,m.jsx)("div",{className:d()("googlesitekit-overlay-card",i),children:(0,m.jsx)(Body,{...s})});return n===u.mp?o:(0,m.jsx)(l.A,{direction:"up",in:t,children:o})}function OverlayNotification({notificationID:e,ctaButton:t,dismissButton:i,gaTrackingEventArgs:s,...n}){const l=(0,a.A)(e,s?.category,{confirmAction:s?.confirmAction,dismissAction:s?.dismissAction}),{dismissNotification:c}=(0,o.useDispatch)(r.D);const{dismissOnClick:d,dismissOptions:u,...g}=t||{};const p=t?{...g,onClick:async function(i){l.confirm(s?.label,s?.value),await(t?.onClick?.(i)),d&&c(e,{...u})}}:void 0;return(0,m.jsx)(OverlayCard,{ctaButton:p,dismissButton:{...i,onClick:async function(t){await(i?.onClick?.(t)),l.dismiss(s?.label,s?.value),c(e,{...i.dismissOptions})}},...n,visible:!0})}Body.propTypes={title:n().node,description:n().node,ctaButton:n().shape({..._,href:n().string,target:n().string,trailingIcon:n().element}),dismissButton:n().shape({..._}),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({..._,href:n().string,target:n().string,trailingIcon:n().object}),dismissButton:n().shape(_),GraphicDesktop:n().elementType,GraphicMobile:n().elementType,newBadge:n().bool,visible:n().bool},OverlayCard.defaultProps={visible:!1},OverlayNotification.propTypes={notificationID:n().string,ctaButton:n().object,dismissButton:n().oneOfType([n().object,n().bool])}},36826:(e,t,i)=>{var s=i(131),n=i(78325),o=i(49993),r=i(63081),a=i(20697),l=i(62688),c=i.n(l),d=i(63696),u=i(15844),g=i(18117),p=i(82871),m=i(51568),h=i(50539),f=i(29785),_=i(88273),y=i(70301),v=i(22942),k=i(13047),x=i(30805),A=i(37467),b=i(58588),I=i(62659),S=i(78307),j=i(10740),E=i(82624),M=i(4452),N=i.n(M),w=i(38432),C=i(49383),T=i(62540);function ModuleSetupFooter({module:e,onCancel:t,onComplete:i}){const[s,n]=(0,d.useState)(!1),o=(0,b.A)(),r=(0,h.useSelect)(e=>e(f.O4).getAdminURL("googlesitekit-settings",o)),a=(0,h.useSelect)(t=>t(e?.storeName)?.isSetupBlocked?.()),l=(0,h.useSelect)(t=>t(_.i).canSubmitChanges(e?.slug)),c=(0,d.useCallback)(async()=>{n(!0),await i(),n(!1)},[n,i]);return e?(0,T.jsx)("div",{className:N()("googlesitekit-setup__footer",`googlesitekit-setup__footer--${e?.slug}`),children:(0,T.jsx)(j.xA,{children:(0,T.jsxs)(j.fI,{children:[(0,T.jsx)(j.fh,{smSize:2,mdSize:4,lgSize:6,alignMiddle:!0,children:(0,T.jsx)(w.A,{id:`setup-${e.slug}-cancel`,href:r,onClick:t,children:a?(0,p.__)("Back","google-site-kit"):(0,p.__)("Cancel","google-site-kit")})}),i&&(0,T.jsx)(j.fh,{smSize:2,mdSize:4,lgSize:6,alignRight:!0,children:(0,T.jsx)(C.SpinnerButton,{id:`setup-${e.slug}-complete`,onClick:c,disabled:!l||s,isSaving:s,children:(0,p.__)("Complete Setup","google-site-kit")})})]})})}):null}ModuleSetupFooter.propTypes={module:c().shape({slug:c().string.isRequired,storeName:c().string.isRequired}).isRequired,onCancel:c().func.isRequired,onComplete:c().func};var D=i(31675),R=i(88288);function ModuleSetup({moduleSlug:e}){const t=(0,I.A)(),{navigateTo:i}=(0,h.useDispatch)(y.M),s=(0,x.i)("setupFlowRefresh"),[n]=(0,A.A)("showProgress"),r=(0,b.A)(),a=s&&e===v.L1&&"true"===n,l=(0,h.useSelect)(t=>t(_.i).getModule(e)),c=(0,h.useRegistry)(),M=(0,g.l6)(async s=>{if(await(0,o.LD)("module_setup"),a?await(0,k.sx)(`${t}_setup`,"setup_flow_v3_complete_analytics_step"):await(0,k.sx)("moduleSetup","complete_module_setup",e),s)return void i((0,m.F)(s,r));const{select:n,resolveSelect:l}=c;await l(f.O4).getSiteInfo();const d=n(f.O4).getAdminURL("googlesitekit-dashboard",{...r,notification:"authentication_success",slug:e});i(d)},[r,c,i,e,t,a]),N=l?.onCompleteSetup,w=(0,d.useCallback)(()=>N(c,M),[N,c,M]),C=(0,d.useCallback)(async()=>{await(0,k.sx)("moduleSetup","cancel_module_setup",e)},[e]);if((0,u.A)(()=>{a?(0,k.sx)(`${t}_setup`,"setup_flow_v3_view_analytics_step"):(0,k.sx)("moduleSetup","view_module_setup",e)}),!l?.SetupComponent)return null;const{SetupComponent:O}=l;return(0,T.jsxs)(d.Fragment,{children:[(0,T.jsxs)(E.A,{subHeader:a?(0,T.jsx)(R.A,{currentSegment:3,totalSegments:6}):null,children:[a&&(0,T.jsx)(D.A,{gaTrackingEventArgs:{category:`${t}_setup`,label:e}}),(0,T.jsx)(S.A,{})]}),(0,T.jsx)("div",{className:"googlesitekit-setup",children:(0,T.jsx)(j.xA,{children:(0,T.jsx)(j.fI,{children:(0,T.jsx)(j.fh,{size:12,children:(0,T.jsxs)("section",{className:"googlesitekit-setup__wrapper",children:[(0,T.jsx)(j.xA,{children:(0,T.jsx)(j.fI,{children:(0,T.jsxs)(j.fh,{size:12,children:[!a&&(0,T.jsx)("p",{className:"googlesitekit-setup__intro-title",children:(0,p.__)("Connect Service","google-site-kit")}),(0,T.jsx)(O,{module:l,finishSetup:M})]})})}),!a&&(0,T.jsx)(ModuleSetupFooter,{module:l,onCancel:C,onComplete:"function"==typeof N?w:void 0})]})})})})})]})}ModuleSetup.propTypes={moduleSlug:c().string.isRequired};var O=i(59352),L=i(85662),z=i(17884),B=i(51094),P=i(28534),G=i(22764),F=i(89065),U=i(97345),W=i(5230),V=i(11999),H=i(12417),Y=i(56009),q=i(88933),Q=i(33052);function SurveyHeader({title:e,dismissSurvey:t}){return(0,T.jsxs)("div",{className:"googlesitekit-survey__header",children:[(0,T.jsx)("div",{className:"googlesitekit-survey__header-logo",children:(0,T.jsx)(q.A,{width:24,height:24})}),(0,T.jsxs)("div",{className:"googlesitekit-survey__header-details",children:[(0,T.jsx)(Q.A,{as:"h3",type:"headline",size:"small",children:e}),(0,T.jsx)(C.Button,{"aria-label":(0,p.__)("Dismiss","google-site-kit"),icon:(0,T.jsx)(H.A,{icon:Y.A,size:40}),onClick:t,className:"googlesitekit-survey__header-close"})]})]})}SurveyHeader.propTypes={title:c().string.isRequired,dismissSurvey:c().func.isRequired};const Z=SurveyHeader;function SurveyCompletion({title:e,children:t,ctaText:i,ctaURL:s,ctaOnClick:n,dismissSurvey:o}){return(0,T.jsxs)("div",{className:"googlesitekit-survey__completion",children:[(0,T.jsx)(Z,{title:e,dismissSurvey:o}),(0,T.jsx)("div",{className:"googlesitekit-survey__body",children:t}),s&&i&&(0,T.jsx)("div",{className:"googlesitekit-survey__footer",children:(0,T.jsx)(C.Button,{href:s,onClick:n,target:"_blank",children:i})})]})}SurveyCompletion.propTypes={title:c().string.isRequired,children:c().node,ctaText:c().string,ctaURL:c().string,ctaOnClick:c().func,dismissSurvey:c().func.isRequired},SurveyCompletion.defaultProps={title:"",children:null,ctaText:"",ctaURL:"",ctaOnClick:null};const K=SurveyCompletion;var $=i(13606);function SurveyTerms(){const e=(0,h.useSelect)(e=>e(f.O4).getGooglePrivacyPolicyURL()),t=(0,h.useSelect)(e=>e(f.O4).getGoogleTermsURL());return(0,T.jsx)("p",{className:"googlesitekit-survey__terms",children:(0,$.A)((0,p.__)("By continuing, you agree to allow Google to use your answers and account info to improve services, per our <privacy>Privacy</privacy> & <terms>Terms</terms>.","google-site-kit"),{privacy:(0,T.jsx)(w.A,{href:e,external:!0,hideExternalIndicator:!0,noFlex:!0}),terms:(0,T.jsx)(w.A,{href:t,external:!0,hideExternalIndicator:!0,noFlex:!0})})})}var X,J=i(83880);function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},ee.apply(null,arguments)}var te;function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},ie.apply(null,arguments)}var se;function survey_neutral_extends(){return survey_neutral_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},survey_neutral_extends.apply(null,arguments)}var ne;function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},oe.apply(null,arguments)}var re;function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},ae.apply(null,arguments)}const le={1:e=>d.createElement("svg",ee({xmlns:"http://www.w3.org/2000/svg",fill:"none"},e),X||(X=d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.985 0C6.705 0 0 6.72 0 15s6.705 15 14.985 15C23.28 30 30 23.28 30 15S23.28 0 14.985 0M15 27C8.37 27 3 21.63 3 15S8.37 3 15 3s12 5.37 12 12-5.37 12-12 12m7.5-15.75a2.247 2.247 0 0 1-2.25 2.25A2.247 2.247 0 0 1 18 11.25 2.247 2.247 0 0 1 20.25 9a2.247 2.247 0 0 1 2.25 2.25M9.75 13.5A2.247 2.247 0 0 0 12 11.25 2.247 2.247 0 0 0 9.75 9a2.247 2.247 0 0 0-2.25 2.25 2.247 2.247 0 0 0 2.25 2.25m-2.415 9c1.2-3.06 4.17-5.25 7.665-5.25s6.465 2.19 7.665 5.25z",clipRule:"evenodd"}))),2:e=>d.createElement("svg",ie({xmlns:"http://www.w3.org/2000/svg",fill:"none"},e),te||(te=d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15S6.705 0 14.985 0C23.28 0 30 6.72 30 15m-9.75-1.5a2.247 2.247 0 0 0 2.25-2.25A2.247 2.247 0 0 0 20.25 9 2.247 2.247 0 0 0 18 11.25a2.247 2.247 0 0 0 2.25 2.25m-13.725 9c1.245-3.495 4.56-6 8.49-6 3.915 0 7.23 2.505 8.475 6h-3.315c-1.035-1.785-2.955-3-5.16-3-2.22 0-4.125 1.215-5.175 3zM12 11.25a2.247 2.247 0 0 1-2.25 2.25 2.247 2.247 0 0 1-2.25-2.25A2.247 2.247 0 0 1 9.75 9 2.247 2.247 0 0 1 12 11.25M15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3",clipRule:"evenodd"}))),3:e=>d.createElement("svg",survey_neutral_extends({xmlns:"http://www.w3.org/2000/svg",fill:"none"},e),se||(se=d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15S6.705 0 14.985 0C23.28 0 30 6.72 30 15M9.75 9A2.247 2.247 0 0 1 12 11.25a2.247 2.247 0 0 1-2.25 2.25 2.247 2.247 0 0 1-2.25-2.25A2.247 2.247 0 0 1 9.75 9m10.5 0A2.247 2.247 0 0 0 18 11.25a2.247 2.247 0 0 0 2.25 2.25 2.247 2.247 0 0 0 2.25-2.25A2.247 2.247 0 0 0 20.25 9M10.5 22.5v-3h9v3zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3",clipRule:"evenodd"}))),4:e=>d.createElement("svg",oe({xmlns:"http://www.w3.org/2000/svg",fill:"none"},e),ne||(ne=d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15S6.705 0 14.985 0C23.28 0 30 6.72 30 15m-9.75-1.5a2.247 2.247 0 0 0 2.25-2.25A2.247 2.247 0 0 0 20.25 9 2.247 2.247 0 0 0 18 11.25a2.247 2.247 0 0 0 2.25 2.25m3.225 4.5c-1.245 3.495-4.56 6-8.49 6-3.915 0-7.23-2.505-8.475-6h3.315c1.035 1.785 2.955 3 5.16 3 2.22 0 4.125-1.215 5.175-3zM12 11.25a2.247 2.247 0 0 1-2.25 2.25 2.247 2.247 0 0 1-2.25-2.25A2.247 2.247 0 0 1 9.75 9 2.247 2.247 0 0 1 12 11.25M15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3",clipRule:"evenodd"}))),5:e=>d.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",fill:"none"},e),re||(re=d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.985 0C6.705 0 0 6.72 0 15s6.705 15 14.985 15C23.28 30 30 23.28 30 15S23.28 0 14.985 0M15 27C8.37 27 3 21.63 3 15S8.37 3 15 3s12 5.37 12 12-5.37 12-12 12m7.5-15.75a2.247 2.247 0 0 1-2.25 2.25A2.247 2.247 0 0 1 18 11.25 2.247 2.247 0 0 1 20.25 9a2.247 2.247 0 0 1 2.25 2.25M9.75 13.5A2.247 2.247 0 0 0 12 11.25 2.247 2.247 0 0 0 9.75 9a2.247 2.247 0 0 0-2.25 2.25 2.247 2.247 0 0 0 2.25 2.25M22.665 18c-1.2 3.06-4.17 5.25-7.665 5.25S8.535 21.06 7.335 18z",clipRule:"evenodd"})))};function SurveyQuestionRatingChoice({choice:e,answerQuestion:t}){const i=(0,d.useCallback)(()=>{"function"==typeof t&&t({answer:{answer_ordinal:e.answer_ordinal}})},[t,e]),s=le[e.answer_ordinal];return s?(0,T.jsxs)("div",{className:"googlesitekit-survey__choice",children:[(0,T.jsx)(C.Button,{icon:(0,T.jsx)(s,{width:30,height:30}),"aria-label":e.text,onClick:i}),(0,T.jsx)(J.A,{children:e.text})]}):null}SurveyQuestionRatingChoice.propTypes={choice:c().shape({answer_ordinal:c().oneOfType([c().string,c().number]),text:c().string}).isRequired};const ce=SurveyQuestionRatingChoice;function SurveyQuestionRating({question:e,choices:t,answerQuestion:i,dismissSurvey:s}){return(0,T.jsxs)("div",{className:"googlesitekit-survey__question-rating",children:[(0,T.jsx)(Z,{title:e,dismissSurvey:s}),(0,T.jsx)("div",{className:"googlesitekit-survey__body",children:(0,T.jsx)("div",{className:"googlesitekit-survey__choices",children:t.map((e,t)=>(0,T.jsx)(ce,{choice:e,answerQuestion:i},t))})})]})}SurveyQuestionRating.propTypes={question:c().string.isRequired,choices:c().arrayOf(c().shape({answer_ordinal:c().oneOfType([c().string,c().number]),text:c().string})).isRequired,answerQuestion:c().func.isRequired,dismissSurvey:c().func.isRequired};const de=SurveyQuestionRating;var ue=i(52684),ge=i(55989);function SurveyQuestionOpenText({question:e,answerQuestion:t,placeholder:i,subtitle:s,dismissSurvey:n,submitButtonText:o}){const[r,a]=(0,d.useState)("");const l=(0,d.useCallback)(e=>{a(e.target.value.slice(0,200))},[a]),c=(0,ue.A)(SurveyQuestionOpenText,"SurveyQuestionOpenText");return(0,T.jsxs)("div",{className:"googlesitekit-survey__open-text",children:[(0,T.jsx)(Z,{title:e,dismissSurvey:n}),(0,T.jsxs)("div",{className:"googlesitekit-survey__body",children:[(0,T.jsx)(ge.A,{children:(0,T.jsx)("label",{htmlFor:c,children:i})}),(0,T.jsx)(C.TextField,{name:`survey-opentext-${c}`,helperText:s,onChange:l,label:i,inputType:"textarea",id:c,value:r,textarea:!0})]}),(0,T.jsx)("div",{className:"googlesitekit-survey__footer",children:(0,T.jsx)(C.Button,{disabled:0===r.length,onClick:function(){t({answer:r})},children:o})})]})}SurveyQuestionOpenText.propTypes={question:c().string.isRequired,subtitle:c().string.isRequired,placeholder:c().string.isRequired,answerQuestion:c().func.isRequired,dismissSurvey:c().func.isRequired,submitButtonText:c().string.isRequired};const pe=SurveyQuestionOpenText;var me=i(17243);function SurveyQuestionMultiSelect({question:e,choices:t,answerQuestion:i,dismissSurvey:s,minChoices:n=1,maxChoices:o,submitButtonText:r}){const a=(0,ue.A)(SurveyQuestionMultiSelect,"SurveyQuestionMultiSelect"),l=t.map(({answer_ordinal:e,write_in:t})=>({answer_ordinal:e,selected:!1,...t?{answer_text:""}:{}})),c=(0,me.keyBy)(l,"answer_ordinal"),[u,g]=(0,d.useState)(c);const m=t.filter(({write_in:e,answer_ordinal:t})=>{if(e){const{selected:e,answer_text:i}=u[t];if(e&&0===i.length)return!0}return!1}).length>0,h=Object.values(u).filter(({selected:e})=>e).length,f=o&&h===o,_=m||h<n;return(0,T.jsxs)("div",{className:"googlesitekit-survey__multi-select",children:[(0,T.jsx)(Z,{title:e,dismissSurvey:s}),(0,T.jsx)("div",{className:"googlesitekit-survey__body",children:t.map(({answer_ordinal:e,text:t,write_in:i})=>{const s=u[e],n=`${a}-answer-${e}`;return(0,T.jsxs)("div",{className:N()("googlesitekit-survey__multi-select__choice",{"googlesitekit-survey__multi-select__choice--disabled":f&&!s.selected}),children:[(0,T.jsx)(C.Checkbox,{checked:s.selected,disabled:f&&!s.selected,onChange:()=>function(e){const t={...u,[e]:{...u[e],selected:!u[e].selected}};g(t)}(e),value:`${e}`,id:n,name:n,children:t}),i&&(0,T.jsxs)(d.Fragment,{children:[(0,T.jsx)(ge.A,{children:(0,T.jsx)("label",{htmlFor:`${n}-write-in`,children:(0,p.sprintf)(/* translators: %s: Option name */ /* translators: %s: Option name */ (0,p.__)("Text input for option %s","google-site-kit"),t)})}),(0,T.jsx)(C.TextField,{id:`${n}-write-in`,onChange:t=>function(e,t){const i={...u,[t]:{...u[t],answer_text:e.target.value?.slice(0,200)}};g(i)}(t,e),value:s.answer_text,disabled:!s.selected})]})]},n)})}),(0,T.jsxs)("div",{className:"googlesitekit-survey__footer",children:[n>1&&(0,T.jsx)(C.HelperText,{persistent:!0,children:(0,p.sprintf)(/* translators: %s: the number of answers. */ /* translators: %s: the number of answers. */ (0,p.__)("Choose at least %s answers","google-site-kit"),n)}),(0,T.jsx)(C.Button,{onClick:function(){const e=Object.values(u).filter(({selected:e})=>e).map(({answer_ordinal:e,answer_text:t})=>t?{answer_ordinal:e,answer_text:t}:{answer_ordinal:e});i({answer:e})},disabled:_,children:r})]})]})}SurveyQuestionMultiSelect.propTypes={question:c().string.isRequired,choices:c().arrayOf(c().shape({answer_ordinal:c().oneOfType([c().string,c().number]),text:c().string,write_in:c().bool})).isRequired,answerQuestion:c().func.isRequired,dismissSurvey:c().func.isRequired,minChoices:c().number,maxChoices:c().number,submitButtonText:c().string.isRequired};const he=SurveyQuestionMultiSelect;function SurveyQuestionSingleSelectChoice({value:e,setValue:t,writeIn:i,setWriteIn:s,choice:n}){const{answer_ordinal:o,text:r,write_in:a}=n,l=e===o,c=`googlesitekit-survey__multi-select-${o}-${r}`;return(0,T.jsxs)("div",{className:"googlesitekit-single-select__choice",children:[(0,T.jsx)(C.Radio,{id:r.replace(/ /g,"-"),value:o,checked:l,name:r,onClick:()=>t(o),children:r}),a&&(0,T.jsxs)(d.Fragment,{children:[(0,T.jsx)(ge.A,{children:(0,T.jsx)("label",{htmlFor:c,children:(0,p.sprintf)(/* translators: %s: Option name */ /* translators: %s: Option name */ (0,p.__)("Text input for option %s","google-site-kit"),r)})}),(0,T.jsx)(C.TextField,{id:c,onChange:e=>s(e.target.value.slice(0,200)),value:i,disabled:!l})]})]})}SurveyQuestionSingleSelectChoice.propTypes={choice:c().shape({answer_ordinal:c().oneOfType([c().string,c().number]),text:c().string,write_in:c().bool}),value:c().string.isRequired,setValue:c().func.isRequired,writeIn:c().string.isRequired,setWriteIn:c().func.isRequired};const fe=SurveyQuestionSingleSelectChoice;function SurveyQuestionSingleSelect({question:e,choices:t,answerQuestion:i,dismissSurvey:s,submitButtonText:n}){const[o,r]=(0,d.useState)(""),[a,l]=(0,d.useState)(""),c=t.map(e=>({...e,answer_ordinal:`${e.answer_ordinal}`})),u=!!o&&c.filter(({answer_ordinal:e,write_in:t})=>e===o&&t).length>0;const g=""===o||u&&""===a;return(0,T.jsxs)("div",{className:"googlesitekit-single-select",children:[(0,T.jsx)(Z,{title:e,dismissSurvey:s}),(0,T.jsx)("div",{className:"googlesitekit-survey__body",children:c.map((e,t)=>(0,T.jsx)(fe,{value:o,setValue:r,writeIn:a,setWriteIn:l,choice:e},t))}),(0,T.jsx)("div",{className:"googlesitekit-survey__footer",children:(0,T.jsx)(C.Button,{onClick:function(){const e=u?{answer_text:a}:{};i({answer:{answer_ordinal:Number(o),...e}})},disabled:g,children:n})})]})}SurveyQuestionSingleSelect.propTypes={question:c().string.isRequired,choices:c().arrayOf(c().shape({answer_ordinal:c().oneOfType([c().string,c().number]),text:c().string,write_in:c().bool})).isRequired,answerQuestion:c().func.isRequired,dismissSurvey:c().func.isRequired};const _e=SurveyQuestionSingleSelect,ye={MULTI_SELECT:"multi_select",OPEN_TEXT:"open_text",RATING:"rating",SINGLE_SELECT:"single_select"};function SurveyQuestion({currentQuestion:e,answerQuestion:t,dismissSurvey:i,isLastQuestion:s}){const n={key:e.question_text,answerQuestion:t,dismissSurvey:i,question:e.question_text,submitButtonText:s?(0,p.__)("Submit","google-site-kit"):(0,p.__)("Next","google-site-kit")};return(0,T.jsxs)(d.Fragment,{children:[e.question_type===ye.MULTI_SELECT&&(0,T.jsx)(he,{...n,choices:e.question.answer_choice,minChoices:e.question.min_choices,maxChoices:e.question.max_choices}),e.question_type===ye.OPEN_TEXT&&(0,T.jsx)(pe,{...n,subtitle:e.question.subtitle,placeholder:e.question.placeholder}),e.question_type===ye.RATING&&(0,T.jsx)(de,{...n,choices:e.question.answer_choice}),e.question_type===ye.SINGLE_SELECT&&(0,T.jsx)(_e,{...n,choices:e.question.answer_choice})]})}function ve(e,t){return!1===e.some(({trigger_condition:e})=>!(!Array.isArray(e)||0===e.length)&&e.some(e=>e.question_ordinal===t.question_ordinal))}function ke(e){return e.reduce((e,{question_ordinal:t,answer:i})=>({...e,[t]:i.answer.answer_ordinal||i.answer}),{})}SurveyQuestion.propTypes={currentQuestion:c().object.isRequired,answerQuestion:c().func.isRequired,dismissSurvey:c().func.isRequired,isLastQuestion:c().bool.isRequired};var xe=i(68832);const Ae=Object.freeze([]);function CurrentSurvey(){const[e,t]=(0,d.useState)(!1),[i,s]=(0,d.useState)(!1),[n,o]=(0,d.useState)(!1),[r,a]=(0,d.useState)(!1),l=(0,h.useSelect)(e=>e(U.oR).getCurrentSurveyCompletions()),c=(0,h.useSelect)(e=>e(U.oR).getCurrentSurveyQuestions()),g=(0,h.useSelect)(e=>e(U.oR).getCurrentSurveySession()),p=(0,h.useSelect)(e=>e(U.oR).isTrackingEnabled()),m=g?`survey-${g.session_id}`:null,f=(0,xe.A)(m,"hideSurvey"),_=(0,xe.A)(m,"answers")||Ae,{setValues:y}=(0,h.useDispatch)(V.s),{sendSurveyEvent:v}=(0,h.useDispatch)(U.oR);(0,d.useEffect)(()=>{c?.length&&!e&&(t(!0),v("survey_shown"))},[c,e,v]);const{currentQuestion:k,currentQuestionOrdinal:x}=function(e,t){const i=ke(t);let s=Math.max(0,...t.map(e=>e.question_ordinal))+1;const n=e?.find(e=>{const{question_ordinal:t,trigger_condition:n}=e;if(t<s)return!1;if(Array.isArray(n)&&n.length>0)for(const e of n){const t=i[e.question_ordinal];if(!t)return s++,!1;const n=e.answer_ordinal||[];if(!Array.isArray(t)&&!n.includes(t))return s++,!1;if(Array.isArray(t)&&!t.some(({answer_ordinal:e})=>n.includes(e))){s++;break}}return t===s});return{currentQuestion:n,currentQuestionOrdinal:s}}(c,_),A=(0,d.useCallback)(e=>{r||(a(!0),v("question_answered",{question_ordinal:k?.question_ordinal,answer:e}),setTimeout(()=>{y(m,{answers:[..._,{question_ordinal:k?.question_ordinal,answer:e}]}),a(!1)},300))},[_,k,m,v,y,r]),b=function(e,t,i,s){const n=ke(t);let o;return e?.length&&s>e.length&&(o=(i||[]).find(e=>{const t=e.trigger_condition||[];for(const i of t)if(i.answer_ordinal.includes(n[i.question_ordinal]))return o=e,!0;return!1}),o||(o=i[0])),o}(c,_,l,x),I=(0,d.useCallback)(()=>{v("follow_up_link_clicked",{completion_ordinal:b?.completion_ordinal}),v("survey_closed"),y(m,{hideSurvey:!0})},[m,v,y,b]),S=(0,d.useCallback)(()=>{v("survey_closed"),o(!1)},[v]),j=(0,d.useCallback)(()=>{y(m,{hideSurvey:!0})},[m,y]);return(0,d.useEffect)(()=>{b&&!i&&(s(!0),v("completion_shown",{completion_ordinal:b?.completion_ordinal}))},[i,v,b]),(0,u.A)(()=>{o(!0)}),!f&&c&&l&&void 0!==p?b?(0,T.jsx)(W.A,{direction:"up",in:n,onExited:j,children:(0,T.jsx)("div",{className:"googlesitekit-survey",children:(0,T.jsx)(K,{dismissSurvey:S,ctaOnClick:I,ctaText:b.follow_up_text,ctaURL:b.follow_up_url,title:b.completion_title,children:b.completion_text})})}):Object.values(ye).includes(k?.question_type)?(0,T.jsx)(W.A,{direction:"up",in:n,onExited:j,children:(0,T.jsxs)("div",{className:"googlesitekit-survey",children:[(0,T.jsx)(SurveyQuestion,{currentQuestion:k,answerQuestion:A,dismissSurvey:S,isLastQuestion:ve(c,k)}),!1===p&&1===k?.question_ordinal&&(0,T.jsx)("div",{className:"googlesitekit-survey__footer",children:(0,T.jsx)(SurveyTerms,{})})]})}):null:null}var be=i(94656);function CurrentSurveyPortal(){return(0,h.useSelect)(e=>e(f.O4).isUsingProxy()&&!1===e(U.oR).areSurveysOnCooldown()?e(U.oR).getCurrentSurvey():null)?(0,T.jsx)(be.A,{slug:"survey",children:(0,T.jsx)(CurrentSurvey,{})}):null}var Ie=i(7972),Se=i(7144),je=i(20762),Ee=i(26464),Me=i(15650);function Panel(){const e=(0,I.A)(),t=(0,h.useSelect)(e=>e(Ie.n).getValue(Se.EA)),i=(0,h.useInViewSelect)(e=>{const t=e(U.oR).getKeyMetrics();if(!Array.isArray(t))return[];const{isKeyMetricAvailable:i}=e(U.oR);return t.filter(i)}),{setValues:s}=(0,h.useDispatch)(V.s),{setValue:n}=(0,h.useDispatch)(Ie.n),o=(0,d.useCallback)(()=>{s(Se.Is,{[Se.Y0]:i,[Se.Nl]:i}),(0,k.sx)(`${e}_kmw-sidebar`,"metrics_sidebar_view")},[i,s,e]),r=(0,d.useCallback)(()=>{t&&n(Se.EA,!1)},[n,t]),[a,l]=(0,d.useState)(!1);return(0,T.jsx)(Me.Ay,{isOpen:t||a,onOpen:o,closePanel:r,className:"googlesitekit-km-selection-panel googlesitekit-acr-km-selection-panel",children:(0,T.jsx)(Ee.A,{isOpen:t,closePanel:r,savedViewableMetrics:i,setIsNavigatingToOAuthURL:l})})}function MetricsSelectionPanel(){const e=(0,h.useSelect)(e=>e(Ie.n).getValue(Se.EA));return(0,T.jsx)(je.Ay,{value:{key:"MetricsSelectionPanel",value:!!e},children:(0,T.jsx)(Panel,{})})}var Ne=i(338),we=i(8732),Ce=i(46369);function PUESurveyTriggers(){const e=(0,h.useSelect)(e=>e(U.oR).getEmailReportingSettings()),t=(0,h.useSelect)(e=>e(U.oR).isEmailReportingSubscribed()),i=(0,h.useSelect)(e=>e(U.oR).isItemDismissed(Ce.rF)),s=(0,h.useSelect)(e=>e(we.D).getNotificationSeenDates(Ce.sw));return void 0===e||void 0===i?null:t?(0,T.jsx)(F.A,{triggerID:"view_pue",ttl:k.tt}):i?(0,T.jsx)(F.A,{triggerID:"view_pue_not_subscribed",ttl:k.tt}):s.length>0?(0,T.jsx)(F.A,{triggerID:"view_pue_setup_cta",ttl:k.tt}):null}var Te,De,Re,Oe,Le,ze,Be,Pe,Ge,Fe,Ue,We,Ve,He,Ye,qe,Qe,Ze,Ke,$e,Xe,Je,et,tt,it,st,nt=i(63560),ot=i(80),rt=i(49481),at=i(17443),lt=i(72545);function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},ct.apply(null,arguments)}const dt=e=>d.createElement("svg",ct({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 491 200"},e),Te||(Te=d.createElement("path",{fill:"#93C9A8",d:"M374.624 60.533c0 24.52-2.088 43.431-13.712 63.097-10.795 18.261-30.444 17.108-48.397 28.312-20.136 12.567-42.751 37.211-69.37 40.447-12.591 0-24.769-1.775-36.298-5.089-32.573-9.363-55.682-31.012-72.595-59.626-11.625-19.666-16.94-54.756-16.94-79.276 0-37.733 10.159-59.63 35.492-83.666 32.843-31.16 51.516-23.922 90.341-23.922 25.462 0 49.234-6.904 69.37 5.662 37.288 23.272 62.109 66.773 62.109 114.06",opacity:.15})),De||(De=d.createElement("path",{fill:"#93C9A8",d:"M298.176-66.556c22.315 10.16 34.484 31.672 47.55 50.432 12.134 17.42 5.532 44.216 8.267 65.246 3.068 23.586 13.484 45.1 5.367 70.736-5.233 11.492-11.91 21.871-19.718 31.02-22.059 25.85-49.651 14.388-82.722 17.968-22.729 2.46-43.683 31.549-94.646 13.752s-55.006-84.939-35.593-125.386c19.414-40.447-16.18-59.053 16.179-106.78s112.28-36.585 155.316-16.989",opacity:.15})),Re||(Re=d.createElement("path",{fill:"#93C9A8",d:"M344.706 168.217c-20.38 18.1-37.644 30.321-62.596 35.148-23.17 4.484-36.758-12.746-59.363-19.44-25.352-7.508-62.579-8.166-84.975-27.965-9.322-10.496-29.727-16.67-41.399-44.741S116.053-.848 77.348-51.565c7.74-24.207 66.567 14.44 86.946-3.66 31.364-27.856 57.085-35.553 95.817-32.18 50.215 4.374 58.022 25.282 86.766 57.645 18.85 21.224 55.28 44.775 59.742 70.836 10.01 58.453-22.609 92.232-61.913 127.141",opacity:.15})),Oe||(Oe=d.createElement("g",{filter:"url(#welcome-modal-graphic_svg__a)"},d.createElement("path",{fill:"#fff",d:"M175.04 39h142v77h-142z"}))),Le||(Le=d.createElement("g",{filter:"url(#welcome-modal-graphic_svg__b)"},d.createElement("path",{fill:"#3C7251",d:"M384.672 82a3.86 3.86 0 0 1 3.858 3.857v14.857a1 1 0 0 1-1 1h-5.714a1 1 0 0 1-1-1v-6.153l-19.126 19.127a6.43 6.43 0 0 1-4.547 1.883h-5.479l-22.169 22.169-5.455-5.455 22.545-22.545a6.43 6.43 0 0 1 4.546-1.883h5.48l18.143-18.143h-5.796a1 1 0 0 1-1-1V83a1 1 0 0 1 1-1z"}))),ze||(ze=d.createElement("g",{filter:"url(#welcome-modal-graphic_svg__c)"},d.createElement("path",{fill:"#fff",d:"M164.04 57h164v89h-164z"}))),Be||(Be=d.createElement("g",{filter:"url(#welcome-modal-graphic_svg__d)"},d.createElement("path",{fill:"#fff",d:"M154.04 78h184v100h-184z"}))),Pe||(Pe=d.createElement("rect",{width:47.688,height:76.952,x:275.04,y:91,fill:"#BED4FF",rx:3.219})),Ge||(Ge=d.createElement("circle",{cx:288.045,cy:104.006,r:6.503,fill:"#7F9CD4"})),Fe||(Fe=d.createElement("path",{fill:"#7F9CD4",d:"m288.749 116.134-9.374 10.026h39.017l-14.188-15.174-10.135 10.839z"})),Ue||(Ue=d.createElement("rect",{width:13.858,height:5.423,x:292.064,y:158.195,fill:"#7F9CD4",rx:2.711})),We||(We=d.createElement("path",{fill:"#7F9CD4",fillRule:"evenodd",d:"M312.912 143.13c0 .832-.674 1.507-1.506 1.507h-25.305a1.507 1.507 0 0 1 0-3.013h25.305c.832 0 1.506.674 1.506 1.506M312.912 148.553c0 .832-.674 1.506-1.506 1.506h-25.305a1.507 1.507 0 1 1 0-3.012h25.305c.832 0 1.506.674 1.506 1.506",clipRule:"evenodd"})),Ve||(Ve=d.createElement("rect",{width:95,height:26,x:168.04,y:91,fill:"#EBEEF0",rx:6.025})),He||(He=d.createElement("rect",{width:56.033,height:6.628,x:167.807,y:124.151,fill:"#EBEEF0",rx:3.314})),Ye||(Ye=d.createElement("rect",{width:72,height:3,x:168.04,y:137,fill:"#EBEEF0",rx:1.5})),qe||(qe=d.createElement("rect",{width:61,height:3,x:168.04,y:145,fill:"#EBEEF0",rx:1.5})),Qe||(Qe=d.createElement("rect",{width:89,height:3,x:168.04,y:154,fill:"#EBEEF0",rx:1.5})),Ze||(Ze=d.createElement("g",{strokeWidth:16,filter:"url(#welcome-modal-graphic_svg__e)"},d.createElement("path",{stroke:"#C59539",d:"M154.04 106a24.004 24.004 0 0 1 24 24 24 24 0 0 1-14.816 22.173 24 24 0 0 1-26.155-5.202 23.995 23.995 0 0 1-5.203-26.155A24.008 24.008 0 0 1 154.04 106Z"}),d.createElement("path",{stroke:"#E1B155",d:"M154.04 106a24 24 0 1 1-4.349.397"}),d.createElement("path",{stroke:"#FECE72",d:"M154.04 106a24 24 0 0 1 22.778 16.44 24 24 0 0 1-8.429 26.798 23.998 23.998 0 0 1-37.006-11.321 24 24 0 0 1-.348-14.757"}))),d.createElement("g",{filter:"url(#welcome-modal-graphic_svg__f)"},Ke||(Ke=d.createElement("path",{fill:"#93C9A8",d:"M244.749 23.698c-2.779 1.212-8.827 3.721-14.573 5.243-1.668.441-2.896 1.926-2.826 3.65 1.008 24.775 14.487 35.352 18.962 35.352 4.47 0 18.123-12.53 18.417-35.51.021-1.653-1.161-3.055-2.754-3.495-5.736-1.581-11.444-4.018-14.108-5.219a3.84 3.84 0 0 0-3.118-.02"})),d.createElement("mask",{id:"welcome-modal-graphic_svg__g",width:38,height:45,x:227,y:23,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},$e||($e=d.createElement("path",{fill:"#B8E6CA",d:"M244.805 23.698c-2.778 1.212-8.826 3.721-14.573 5.243-1.668.441-2.896 1.926-2.826 3.65 1.009 24.775 14.487 35.352 18.962 35.352 4.47 0 18.123-12.53 18.417-35.51.021-1.653-1.161-3.055-2.754-3.495-5.736-1.581-11.444-4.018-14.108-5.219a3.84 3.84 0 0 0-3.118-.02"}))),Xe||(Xe=d.createElement("g",{mask:"url(#welcome-modal-graphic_svg__g)"},d.createElement("path",{fill:"#77AD8C",d:"M246.305 23s-8.312 3.876-16.075 5.939c-1.667.442-2.894 1.927-2.824 3.65 1.004 24.776 14.439 35.354 18.899 35.354z"}))),Je||(Je=d.createElement("circle",{cx:246.233,cy:42.025,r:7.409,fill:"#D0FBE1"})),et||(et=d.createElement("circle",{cx:246.089,cy:42.094,r:9.432,stroke:"#B8E6CA",strokeWidth:1.5,opacity:.5})),d.createElement("mask",{id:"welcome-modal-graphic_svg__h",width:16,height:16,x:238,y:34,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},tt||(tt=d.createElement("circle",{cx:246.234,cy:42.025,r:7.409,fill:"#D0FBE1"}))),it||(it=d.createElement("g",{mask:"url(#welcome-modal-graphic_svg__h)"},d.createElement("path",{stroke:"#5C9271",strokeWidth:1.693,d:"m242.84 41.696 2.752 2.751 4.656-4.656"})))),st||(st=d.createElement("defs",null,d.createElement("filter",{id:"welcome-modal-graphic_svg__a",width:168.399,height:103.399,x:161.84,y:29.1,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},d.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),d.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"}),d.createElement("feOffset",{dy:3.3}),d.createElement("feGaussianBlur",{stdDeviation:6.6}),d.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),d.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),d.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_5011_49988"}),d.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_5011_49988",result:"shape"})),d.createElement("filter",{id:"welcome-modal-graphic_svg__b",width:74.49,height:65.74,x:319.04,y:81,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},d.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),d.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"}),d.createElement("feOffset",{dy:4}),d.createElement("feGaussianBlur",{stdDeviation:2.5}),d.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),d.createElement("feColorMatrix",{values:"0 0 0 0 0.12549 0 0 0 0 0.0352941 0 0 0 0 0.27451 0 0 0 0.15 0"}),d.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_5011_49988"}),d.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_5011_49988",result:"shape"})),d.createElement("filter",{id:"welcome-modal-graphic_svg__c",width:190.399,height:115.399,x:150.84,y:47.1,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},d.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),d.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"}),d.createElement("feOffset",{dy:3.3}),d.createElement("feGaussianBlur",{stdDeviation:6.6}),d.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),d.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),d.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_5011_49988"}),d.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_5011_49988",result:"shape"})),d.createElement("filter",{id:"welcome-modal-graphic_svg__d",width:210.399,height:126.399,x:140.84,y:68.1,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},d.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),d.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"}),d.createElement("feOffset",{dy:3.3}),d.createElement("feGaussianBlur",{stdDeviation:6.6}),d.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),d.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),d.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_5011_49988"}),d.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_5011_49988",result:"shape"})),d.createElement("filter",{id:"welcome-modal-graphic_svg__e",width:72,height:72,x:118.04,y:98,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},d.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),d.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"}),d.createElement("feOffset",{dy:4}),d.createElement("feGaussianBlur",{stdDeviation:2}),d.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),d.createElement("feColorMatrix",{values:"0 0 0 0 0.266708 0 0 0 0 0.181632 0 0 0 0 0.0185698 0 0 0 0.2 0"}),d.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_5011_49988"}),d.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_5011_49988",result:"shape"})),d.createElement("filter",{id:"welcome-modal-graphic_svg__f",width:48.98,height:56.164,x:221.549,y:20.478,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},d.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),d.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"}),d.createElement("feOffset",{dy:2.9}),d.createElement("feGaussianBlur",{stdDeviation:2.9}),d.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),d.createElement("feColorMatrix",{values:"0 0 0 0 0.0374806 0 0 0 0 0.12439 0 0 0 0 0.292214 0 0 0 0.3 0"}),d.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_5011_49988"}),d.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_5011_49988",result:"shape"})))));var ut,gt,pt;function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},mt.apply(null,arguments)}const ht=e=>d.createElement("svg",mt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 491 200"},e),ut||(ut=d.createElement("path",{fill:"url(#welcome-modal-data-gathering-complete-graphic_svg__a)",d:"M0 16C0 7.163 7.163 0 16 0h459c8.837 0 16 7.163 16 16v184H0z"})),gt||(gt=d.createElement("g",{clipPath:"url(#welcome-modal-data-gathering-complete-graphic_svg__b)"},d.createElement("path",{fill:"#93C9A8",d:"M374.585 60.533c0 24.519-2.088 43.431-13.712 63.097-10.795 18.261-30.444 17.108-48.398 28.312-20.135 12.567-42.75 37.211-69.369 40.447-12.591 0-24.769-1.775-36.298-5.089-32.573-9.363-55.682-31.012-72.596-59.626-11.624-19.666-16.939-54.756-16.939-79.276 0-37.733 10.159-59.63 35.492-83.666 32.843-31.16 51.516-23.922 90.341-23.922 25.462 0 49.234-6.904 69.369 5.662 37.289 23.272 62.11 66.773 62.11 114.06",opacity:.15}),d.createElement("path",{fill:"#93C9A8",d:"M298.136-66.556c22.315 10.16 34.483 31.672 47.55 50.432 12.133 17.42 5.531 44.216 8.267 65.246 3.068 23.586 13.484 45.1 5.366 70.736-5.233 11.492-11.909 21.871-19.717 31.02-22.059 25.85-49.651 14.389-82.722 17.968-22.73 2.46-43.683 31.549-94.647 13.752s-55.006-84.939-35.592-125.386-16.18-59.053 16.178-106.78S255.1-86.154 298.136-66.558",opacity:.15}),d.createElement("path",{fill:"#93C9A8",d:"M344.669 163.217c-20.379 18.1-37.644 30.321-62.596 35.148-23.17 4.483-36.758-12.746-59.363-19.44-25.352-7.508-62.579-8.166-84.975-27.965-9.321-10.496-29.726-16.67-41.398-44.741S116.017-5.848 77.312-56.565c7.74-24.207 66.566 14.44 86.946-3.66 31.363-27.856 57.084-35.553 95.816-32.18 50.216 4.374 58.022 25.282 86.766 57.645 18.851 21.224 55.28 44.775 59.743 70.836 10.009 58.453-22.61 92.232-61.914 127.141",opacity:.15}),d.createElement("g",{filter:"url(#welcome-modal-data-gathering-complete-graphic_svg__c)"},d.createElement("rect",{width:335,height:124.074,x:78,y:48.87,fill:"#fff",rx:7.037})),d.createElement("g",{strokeLinecap:"round",clipPath:"url(#welcome-modal-data-gathering-complete-graphic_svg__d)"},d.createElement("path",{stroke:"#EBEEF0",strokeWidth:1.551,d:"M95.06 101.603h184.561M95.06 117.845h184.561M95.06 134.088h184.561M95.06 150.331h184.561"}),d.createElement("path",{stroke:"#93C9A8",strokeLinejoin:"round",strokeWidth:6.204,d:"M86.53 133.397c9.855-.999 16.157-8.282 27.916-9.306 11.621-1.012 13.183 25.203 40.712 16.673s27.529-29.856 53.507-27.917 32.85-11.9 45.699-12.735 23.504 13.363 29.908 13.898"})),d.createElement("path",{stroke:"#CBD0D3",strokeLinecap:"round",strokeWidth:6.204,d:"M313.742 65.93h12.408"}),d.createElement("path",{stroke:"#CBD0D3",strokeLinecap:"round",strokeWidth:10.857,d:"M99.713 79.114h17.836"}),d.createElement("path",{stroke:"#EBEEF0",strokeLinecap:"round",strokeWidth:6.204,d:"M98.162 65.93h8.53M337.004 65.93h12.407M360.27 65.93h12.407"}),d.createElement("path",{stroke:"#3C7251",strokeWidth:20.162,d:"M342.82 96.175a25.977 25.977 0 1 1 0 51.954 25.977 25.977 0 0 1 0-51.954Z"}),d.createElement("path",{stroke:"#77AD8C",strokeWidth:20.162,d:"M342.82 96.175a25.979 25.979 0 1 1-4.708.43"}),d.createElement("path",{stroke:"#B8E6CA",strokeWidth:20.162,d:"M342.82 96.175a25.98 25.98 0 0 1 24.781 33.772 25.98 25.98 0 0 1-24.373 18.181 26 26 0 0 1-15.279-4.674 25.98 25.98 0 0 1-10.03-28.705"}),d.createElement("circle",{cx:461,cy:30,r:18,fill:"#93C9A8"}),d.createElement("path",{stroke:"#fff",strokeWidth:1.5,d:"m456 25 10 10M466 25l-10 10"}))),pt||(pt=d.createElement("defs",null,d.createElement("clipPath",{id:"welcome-modal-data-gathering-complete-graphic_svg__b"},d.createElement("path",{fill:"#fff",d:"M0 0h491v200H0z"})),d.createElement("clipPath",{id:"welcome-modal-data-gathering-complete-graphic_svg__d"},d.createElement("path",{fill:"#fff",d:"M95.06 92.297h182.235v68.24H95.06z"})),d.createElement("linearGradient",{id:"welcome-modal-data-gathering-complete-graphic_svg__a",x1:245.5,x2:245.5,y1:0,y2:200,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#D0FBE1"}),d.createElement("stop",{offset:1,stopColor:"#fff"})),d.createElement("filter",{id:"welcome-modal-data-gathering-complete-graphic_svg__c",width:355.472,height:144.546,x:67.764,y:41.193,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},d.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),d.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"}),d.createElement("feOffset",{dy:2.559}),d.createElement("feGaussianBlur",{stdDeviation:5.118}),d.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),d.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),d.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1578_41791"}),d.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1578_41791",result:"shape"})))));var ft=i(40194),_t=i(97015),yt=function(e){return e[e.DATA_AVAILABLE=0]="DATA_AVAILABLE",e[e.GATHERING_DATA=1]="GATHERING_DATA",e[e.DATA_GATHERING_COMPLETE=2]="DATA_GATHERING_COMPLETE",e}(yt||{});const vt={[yt.DATA_AVAILABLE]:"default",[yt.GATHERING_DATA]:"gathering_data",[yt.DATA_GATHERING_COMPLETE]:"data_available"};function WelcomeModal(){const e=(0,I.A)(),[t,i]=(0,d.useState)(!0),s=(0,h.useSelect)(e=>e(_.i).isModuleConnected(v.L1)),n=(0,h.useSelect)(e=>!!s&&e(ot.K9).isGatheringData()),r=(0,h.useSelect)(e=>e(rt.n).isGatheringData()),a=(0,h.useSelect)(e=>e(U.oR).isItemDismissed(U.GU)),l=s?n:r;let c;c=l?yt.GATHERING_DATA:a?yt.DATA_GATHERING_COMPLETE:yt.DATA_AVAILABLE;const{dismissItem:u,triggerOnDemandTour:g}=(0,h.useDispatch)(U.oR),[,m]=(0,A.A)("notification"),f={target:".googlesitekit-help-menu__button",tooltipSlug:"welcome-modal",title:(0,p.__)("You can always take the dashboard tour from the help menu","google-site-kit"),dismissLabel:(0,p.__)("Got it","google-site-kit"),gaTrackingEventLabel:vt[c]},y=(0,at.i)(f),x=(0,d.useCallback)(async()=>{i(!1),c!==yt.GATHERING_DATA&&await u(U.D1),c!==yt.GATHERING_DATA&&c!==yt.DATA_AVAILABLE||await u(U.GU),m(void 0)},[c,m,u]),b=(0,d.useCallback)(()=>{x(),c!==yt.GATHERING_DATA&&y()},[x,c,y]),S=(0,ft.G)(),E=(0,d.useCallback)(()=>{x(),g(S)},[x,g,S]),M=(0,d.useRef)(null),N=(0,nt.A)(M,{threshold:.25}),[w,T]=(0,d.useState)(!1),D=!!N?.intersectionRatio;(0,d.useEffect)(()=>{D&&!w&&(T(!0),(0,k.sx)(`${e}_welcome-modal`,"view_notice",vt[c]),async function(){const t=await(0,o.Gq)("start_site_setup"),i=await(0,o.Gq)("start_user_setup");t.cacheHit&&(await(0,o.LD)("start_site_setup"),(0,k.sx)(`${e}_setup`,"setup_flow_v3_complete_site_setup")),i.cacheHit&&(await(0,o.LD)("start_user_setup"),(0,k.sx)(`${e}_setup`,"setup_flow_v3_complete_user_setup"))}())},[D,w,e,c]);const R=(0,d.useCallback)(()=>{(0,k.sx)(`${e}_welcome-modal`,"confirm_notice",vt[c])},[e,c]),O=(0,d.useCallback)(()=>{(0,k.sx)(`${e}_welcome-modal`,"dismiss_notice",vt[c])},[e,c]);if((0,h.useSelect)(e=>e(U.oR).isDataGatheringCompleteModalActive())&&c===yt.GATHERING_DATA)return null;if(void 0===l)return null;if(!t)return null;const L=c===yt.DATA_GATHERING_COMPLETE?(0,p.__)("Data gathering complete!","google-site-kit"):(0,p.__)("Welcome to Site Kit","google-site-kit");let z;switch(c){case yt.DATA_AVAILABLE:z=(0,p.__)("Initial setup complete! Take a look at the special features Site Kit added to your dashboard based on your site goals","google-site-kit");break;case yt.GATHERING_DATA:z=(0,$.A)((0,p.__)("Initial setup complete!<br />Site Kit is gathering data and soon metrics for your site will show on your dashboard","google-site-kit"),{br:_t.createElement("br",null)});break;case yt.DATA_GATHERING_COMPLETE:z=(0,p.__)("Take this quick tour to see the most important parts of your dashboard. It will show you where to look to track your site’s success as you get more visitors.","google-site-kit")}return _t.createElement(j.lG,{className:"googlesitekit-dialog googlesitekit-welcome-modal",onClose:()=>{O(),b()},open:!0},_t.createElement(j.Cf,{className:"googlesitekit-welcome-modal__content"},_t.createElement("div",{ref:M,className:"googlesitekit-welcome-modal__graphic"},c===yt.DATA_GATHERING_COMPLETE?_t.createElement(ht,null):_t.createElement(dt,null),_t.createElement(C.Button,{className:"googlesitekit-welcome-modal__close-button",icon:_t.createElement(lt.A,{width:10,height:10}),onClick:()=>{O(),b()},"aria-label":(0,p.__)("Close","google-site-kit"),hideTooltipTitle:!0})),_t.createElement("div",{className:"googlesitekit-welcome-modal__text"},_t.createElement(Q.A,{as:"h1",className:"googlesitekit-welcome-modal__title",size:"large",type:"headline"},L),_t.createElement(J.A,{type:"body",size:"medium",className:"googlesitekit-welcome-modal__description"},z))),_t.createElement(j.Es,{className:"googlesitekit-welcome-modal__footer"},c===yt.GATHERING_DATA?_t.createElement(C.Button,{onClick:()=>{R(),x()}},(0,p.__)("Get started","google-site-kit")):_t.createElement(d.Fragment,null,_t.createElement(C.Button,{onClick:()=>{O(),b()},tertiary:!0},(0,p.__)("Maybe later","google-site-kit")),_t.createElement(C.Button,{onClick:()=>{R(),E()}},(0,p.__)("Start tour","google-site-kit")))))}var kt=i(4169),xt=i(4124),At=i(97343),bt=i(56628),It=i(56084),St=i(97513),jt=i(4008),Et=i(11883),Mt=i(12813),Nt=i(37834),wt=i(84730),Ct=i(73135);function DashboardMainApp(){const[e,t]=(0,d.useState)(!1),s=(0,xt.A)(),n=(0,St.dv)(),[o,r]=(0,A.A)("widgetArea"),{setValues:l}=(0,h.useDispatch)(V.s),c=(0,h.useSelect)(e=>e(U.oR).getGrantedScopes()),g=(0,xe.A)(U.$8,"permissionsError"),p=void 0!==c&&g?.data?.scopes?.some(e=>c.includes(e)),m=(0,h.useSelect)(e=>e(U.oR).hasAccessToShareableModule(v.L1)),_=(0,h.useSelect)(e=>m?e(U.oR).getConfiguredAudiences():null);(0,u.A)(()=>{if(s||setTimeout(()=>t(!0),5e3),o){const e=`.googlesitekit-widget-area--${o}`;setTimeout(()=>{function t(){i.g.scrollTo({top:(0,Et.YJ)(e,n),behavior:"smooth"})}i.g.addEventListener("scrollend",function e(){t(),i.g.removeEventListener("scrollend",e)}),t(),r(void 0)},100)}}),(0,d.useEffect)(()=>{void 0!==g&&p&&l(U.$8,{permissionsError:{}})},[p,l,g]);const y=(0,h.useSelect)(e=>s?e(U.oR).getViewableModules():null),b={modules:y||void 0},I=(0,h.useSelect)(e=>e(kt.aO).isWidgetContextActive(O.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,b)),j=(0,h.useSelect)(e=>e(kt.aO).isWidgetContextActive(O.CONTEXT_MAIN_DASHBOARD_TRAFFIC,b)),M=(0,h.useSelect)(e=>e(kt.aO).isWidgetContextActive(O.CONTEXT_MAIN_DASHBOARD_CONTENT,b)),w=(0,h.useSelect)(e=>e(kt.aO).isWidgetContextActive(O.CONTEXT_MAIN_DASHBOARD_SPEED,b)),C=(0,h.useSelect)(e=>e(kt.aO).isWidgetContextActive(O.CONTEXT_MAIN_DASHBOARD_MONETIZATION,b)),D=(0,h.useSelect)(e=>e(U.oR).isKeyMetricsWidgetHidden()),R=(0,Mt.A)(),W=(0,h.useSelect)(e=>!0===e(f.O4).isKeyMetricsSetupCompleted()&&!1===D||e(U.oR).isAuthenticated()&&!1===e(f.O4).isKeyMetricsSetupCompleted()&&R),H=(0,x.i)("proactiveUserEngagement"),Y=(0,x.i)("setupFlowRefresh"),q=(0,h.useSelect)(e=>!!Y&&(e(U.oR).isDataGatheringCompleteModalActive()||(0,Ct.s)()));(0,jt.Z)();let Q=null;return C?Q=a.Gw:w?Q=a.Ej:M?Q=a.en:j?Q=a.OT:I&&(Q=a.SH),(0,T.jsxs)(d.Fragment,{children:[(0,T.jsx)(It.A,{}),(0,T.jsx)(bt.A,{}),(0,T.jsx)(at.r,{}),(0,T.jsxs)(E.A,{showNavigation:!0,children:[(0,T.jsx)(P.A,{}),(0,T.jsx)(G.A,{}),!s&&(0,T.jsx)(L.A,{}),(0,T.jsx)(S.A,{})]}),(0,T.jsxs)("div",{className:"googlesitekit-page-content",children:[(0,T.jsx)(Nt.A,{areaSlug:wt.bI.DASHBOARD_TOP}),(0,T.jsx)(Nt.A,{areaSlug:wt.bI.DASHBOARD_TOP,groupID:wt.He.SETUP_CTAS}),(0,T.jsx)(Nt.A,{areaSlug:wt.bI.OVERLAYS,groupID:wt.He.SETUP_CTAS}),!0!==D&&(0,T.jsx)(z.A,{id:a.SH,slug:O.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,className:N()({"googlesitekit-widget-context--last":Q===a.SH})}),(0,T.jsx)(z.A,{id:a.OT,slug:O.CONTEXT_MAIN_DASHBOARD_TRAFFIC,className:N()({"googlesitekit-widget-context--last":Q===a.OT})}),(0,T.jsx)(z.A,{id:a.en,slug:O.CONTEXT_MAIN_DASHBOARD_CONTENT,className:N()({"googlesitekit-widget-context--last":Q===a.en})}),(0,T.jsx)(z.A,{id:a.Ej,slug:O.CONTEXT_MAIN_DASHBOARD_SPEED,className:N()({"googlesitekit-widget-context--last":Q===a.Ej})}),(0,T.jsx)(z.A,{id:a.Gw,slug:O.CONTEXT_MAIN_DASHBOARD_MONETIZATION,className:N()({"googlesitekit-widget-context--last":Q===a.Gw})})]}),(0,T.jsx)(F.A,{triggerID:"view_dashboard",ttl:k.tt}),e&&(0,T.jsx)(CurrentSurveyPortal,{}),W&&(0,T.jsx)(MetricsSelectionPanel,{}),H&&(0,T.jsxs)(d.Fragment,{children:[(0,T.jsx)(Ne.A,{}),(0,T.jsx)(PUESurveyTriggers,{})]}),_&&(0,T.jsx)(B.Rl,{}),q&&(0,T.jsx)(WelcomeModal,{}),(0,T.jsx)(At.A,{})]})}function DashboardEntryPoint({setupModuleSlug:e}){const t=(0,x.i)("proactiveUserEngagement");return e?t?(0,T.jsxs)(d.Fragment,{children:[(0,T.jsx)(ModuleSetup,{moduleSlug:e}),(0,T.jsx)(Ne.A,{})]}):(0,T.jsx)(ModuleSetup,{moduleSlug:e}):(0,T.jsx)(DashboardMainApp,{})}DashboardEntryPoint.propTypes={setupModuleSlug:c().string},(0,s.A)(async()=>{i.g._googlesitekitLegacyData.admin.resetSession&&await(0,o.IL)();const e=document.getElementById("js-googlesitekit-main-dashboard");if(e){const{setupModuleSlug:t,viewOnly:i}=e.dataset;let s=a.bg;t||(s=i?a.Ax:a.jU),(0,n.render)((0,T.jsx)(r.A,{viewContext:s,children:(0,T.jsx)(DashboardEntryPoint,{setupModuleSlug:t})}),e)}})},37133:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(63696);const __WEBPACK_DEFAULT_EXPORT__=function(e,t){const[n,o]=(0,s.useState)(null);return(0,s.useEffect)(()=>{if(e.current&&"function"==typeof i.g.IntersectionObserver){function s(e){o(e[e.length-1])}const n=new i.g.IntersectionObserver(s,t);return n.observe(e.current),()=>{o(null),n.disconnect()}}return()=>{}},[e.current,t.threshold,t.root,t.rootMargin]),n}},37467:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(63696),n=i(82286),o=i(51568);const __WEBPACK_DEFAULT_EXPORT__=function(e,t,r=i.g){const[a,l]=(0,s.useState)((0,n.d)(r.location.href,e)||t);return[a,function(t){l(t);const i=(0,o.F)(r.location.href,{[e]:t});r.history.replaceState(null,"",i)}]}},37834:(e,t,i)=>{i.d(t,{A:()=>Notifications});var s=i(62688),n=i.n(s),o=i(50539),r=i(62659),a=i(8732),l=i(84730),c=i(50532),d=i.n(c),u=i(67438),g=i(62540);const p=d()(e=>({id:e,Notification:m(e)(u.A)}));function m(e){return t=>{function WithNotificationID(i){return(0,g.jsx)(t,{...i,id:e})}return WithNotificationID.displayName="WithNotificationID",(t.displayName||t.name)&&(WithNotificationID.displayName+=`(${t.displayName||t.name})`),WithNotificationID}}function Notifications({areaSlug:e,groupID:t=l.He.DEFAULT}){const i=(0,r.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:c}=s[0],d={...p(n)};return(0,g.jsx)(c,{...d})}Notifications.propTypes={viewContext:n().string,areaSlug:n().string}},38017:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(62540);function ChangeArrow({direction:e,invertColor:t,width:i,height:s}){return(0,a.jsx)("svg",{className:r()("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:n().string,invertColor:n().bool,width:n().number,height:n().number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9};const l=ChangeArrow},38432:(e,t,i)=>{i.d(t,{A:()=>M});var s,n=i(4452),o=i.n(n),r=i(62688),a=i.n(r),l=i(39941),c=i(63696),d=i(82871);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},u.apply(null,arguments)}const g=e=>c.createElement("svg",u({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:"currentColor"}),c.createElement("path",{fill:"#FFF",d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 0 0 .325.79.46.46 0 0 0 .325-.135l3.037-3.038a.46.46 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.46.46 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var p;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},m.apply(null,arguments)}const h=e=>c.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:"#FFF"}),c.createElement("path",{fill:"currentColor",d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 0 0 .325.79.46.46 0 0 0 .325-.135l3.037-3.038a.46.46 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.46.46 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var f;function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},_.apply(null,arguments)}const y=e=>c.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),f||(f=c.createElement("path",{d:"m12 20-8-8 8-8 1.425 1.4-5.6 5.6H20v2H7.825l5.6 5.6z"})));var v=i(83366),k=i(50304),x=i(62540);const A="BUTTON",b="BUTTON_DISABLED",I="EXTERNAL_LINK",S="LINK",j="ROUTER_LINK",E=(0,c.forwardRef)((e,t)=>{const{"aria-label":i,secondary:s=!1,arrow:n=!1,back:r=!1,caps:a=!1,children:c,className:u="",danger:p=!1,disabled:m=!1,external:f=!1,hideExternalIndicator:_=!1,href:E="",inverse:M=!1,noFlex:N=!1,onClick:w,small:C=!1,standalone:T=!1,linkButton:D=!1,to:R,leadingIcon:O,trailingIcon:L,...z}=e;const B=E||R||!w?R?j:f?I:S:m?b:A;const P=B===A||B===b?"button":B===j?l.N_:"a",G=function(){let e;return B===I&&(e=(0,d._x)("(opens in a new tab)","screen reader text","google-site-kit")),B===b&&(e=(0,d._x)("(disabled)","screen reader text","google-site-kit")),e?i?`${i} ${e}`:"string"==typeof c?`${c} ${e}`:void 0:i}();let F=O,U=L;return r&&(F=(0,x.jsx)(y,{width:14,height:14})),f&&!_&&(U=(0,x.jsx)(v.A,{width:14,height:14})),n&&!M&&(U=(0,x.jsx)(g,{width:14,height:14})),n&&M&&(U=(0,x.jsx)(h,{width:14,height:14})),(0,x.jsxs)(P,{"aria-label":G,className:o()("googlesitekit-cta-link",u,{"googlesitekit-cta-link--secondary":s,"googlesitekit-cta-link--inverse":M,"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":!!N}),disabled:m,href:B!==S&&B!==I||m?void 0:E,onClick:w,rel:B===I?"noopener noreferrer":void 0,ref:t,target:B===I?"_blank":void 0,to:R,...z,children:[!!F&&(0,x.jsx)(k.A,{marginRight:5,children:F}),(0,x.jsx)("span",{className:"googlesitekit-cta-link__contents",children:c}),!!U&&(0,x.jsx)(k.A,{marginLeft:5,children:U})]})});E.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 M=E},40194:(e,t,i)=>{i.d(t,{G:()=>f});var s=i(50539),n=i(88273),o=i(97345),r=i(8732),a=i(84730),l=i(22942),c=i(20697),d=i(62659),u=i(4124),g=i(82871);function p(e,t,i){return e?{slug:"dashboard-sharing",target:".googlesitekit-header",floaterProps:{target:".googlesitekit-view-only-menu"},title:(0,g.__)("Get instant access to insights, no setup","google-site-kit"),content:t?(0,g.__)("See what’s been shared with you here, or sign in with Google to configure services and sharing access","google-site-kit"):(0,g.__)("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,g.__)("Share insights with your team","google-site-kit"),content:(0,g.__)("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 m({isViewOnly:e,canAuthenticate:t,isAnalyticsConnected:i,isActivateAnalyticsNotificationPresent:s,windowHeight:n}){if(!i){const i=[{target:".googlesitekit-widget--searchFunnelGA4",floaterProps:{target:"number"==typeof n&&n<930?".googlesitekit-widget--searchFunnelGA4 .googlesitekit-chart":".googlesitekit-widget--searchFunnelGA4 .googlesitekit-widget__body"},title:(0,g.__)("Track Search traffic trends, identify baselines","google-site-kit"),content:(0,g.__)("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"},{target:".googlesitekit-widget--searchConsolePopularKeywords",floaterProps:{target:".googlesitekit-widget--searchConsolePopularKeywords .googlesitekit-table__wrapper"},title:(0,g.__)("Track how your site is doing on Search","google-site-kit"),content:(0,g.__)("Know what’s driving growth and bringing your site more visitors","google-site-kit"),offset:0,spotlightPadding:0,placement:"top"},p(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,g.__)("Want to know what people do once they land on your site?","google-site-kit"),content:(0,g.__)("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:"welcome-without-analytics",isRepeatable:!0,contexts:[c.jU,c.Ax],gaEventCategory:e=>`${e}_dashboard-tour-sc`,steps:i}}return{slug:"welcome-with-analytics",isRepeatable:!0,contexts:[c.jU,c.Ax],gaEventCategory:e=>`${e}_dashboard-tour-ga4`,steps:[{target:".googlesitekit-widget-area--mainDashboardKeyMetricsPrimary",floaterProps:{target:".googlesitekit-km-change-metrics-cta"},title:(0,g.__)("Your goals, measured and clear","google-site-kit"),content:(0,g.__)("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"},{target:".googlesitekit-widget--analyticsAllTrafficGA4",floaterProps:{target:".googlesitekit-widget--analyticsAllTraffic__user-count-chart"},title:(0,g.__)("Track traffic trends, identify baselines","google-site-kit"),content:(0,g.__)("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"},{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,g.__)("Get to know your site visitors","google-site-kit"),content:(0,g.__)("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"},{target:".googlesitekit-widget--analyticsModulePopularPagesGA4",floaterProps:{target:".googlesitekit-table__head-item--pageviews .googlesitekit-table__head-item-title"},title:(0,g.__)("Discover your most popular and engaging content","google-site-kit"),content:(0,g.__)("Find out what your audience loves and double down on what resonates most","google-site-kit"),offset:25,spotlightPadding:0,placement:"top"},p(e,t,!0)]}}var h=i(24355);function f(){const e=(0,u.A)(),t=(0,d.A)(),i=(0,h.xJ)();return m({isViewOnly:e,canAuthenticate:(0,s.useSelect)(e=>e(o.oR).hasCapability(o.ej)),isAnalyticsConnected:!!(0,s.useSelect)(e=>e(n.i).isModuleConnected(l.L1)),isActivateAnalyticsNotificationPresent:(0,s.useSelect)(e=>{if(t!==c.jU)return!1;const i=e(r.D).getQueuedNotifications(c.jU,a.He.DEFAULT);return"activate-analytics-notification"===i?.[0]?.id}),windowHeight:i})}},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},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;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.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"})))},44148:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(63696),l=i(13606),c=i(82871),d=i(38432),u=i(13047),g=i(4124),p=i(62659),m=i(92449);var h=i(97015);function SourceLink({name:e="",href:t="",className:i="",external:s=!1}){const n=(0,p.A)(),o=(0,g.A)(),f=(0,a.useContext)(m.Ay),_=(0,a.useCallback)(()=>{f.slug&&n&&(0,u.sx)(`${n}_widget`,"click_source_link",f.slug)},[n,f]);return o?null:h.createElement("div",{className:r()("googlesitekit-source-link",i)},(0,l.A)((0,c.sprintf)(/* translators: %s: source link */ /* translators: %s: source link */ (0,c.__)("Source: %s","google-site-kit"),`<a>${e}</a>`),{a:h.createElement(d.A,{key:"link",href:t,external:s,onClick:_})}))}SourceLink.propTypes={name:n().string,href:n().string,className:n().string,external:n().bool};const f=SourceLink},44192:(e,t,i)=>{i.d(t,{A:()=>ReportError});var s=i(62688),n=i.n(s),o=i(17243),r=i(63696),a=i(82871),l=i(81375),c=i(50539),d=i(88273),u=i(13137),g=i(31012),p=i(55465),m=i(12317),h=i(1641),f=i(4124),_=i(73198),y=i(62540);function ReportError({moduleSlug:e,error:t}){const i=(0,f.A)(),s=(0,c.useSelect)(t=>t(d.i).getModule(e)),n=Array.isArray(t)?t:[t];let v;function k(e){return(0,u.SG)(e)?i?(v=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Access lost to %s","google-site-kit"),s?.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"),s?.name)):(v=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Insufficient permissions in %s","google-site-kit"),s?.name),(0,g.c)(e.message,s)):(0,u.e4)(e)}const x=(0,o.uniqWith)(n.map(e=>({...e,message:k(e),reconnectURL:e.data?.reconnectURL?(0,l.m)(e.data.reconnectURL,"code"):void 0})),(e,t)=>e.message===t.message&&e.reconnectURL===t.reconnectURL),A=n.some(e=>(0,u.SG)(e));A||1!==x.length?!A&&x.length>1&&(v=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Data errors in %s","google-site-kit"),s?.name)):v=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Data error in %s","google-site-kit"),s?.name);const b=(0,y.jsx)(r.Fragment,{children:x.map(e=>{const t=e?.data?.reconnectURL;return t?(0,y.jsx)(_.A,{error:e,message:e.message},e.message):(0,y.jsx)("p",{children:p.O.sanitize(e.message,{ALLOWED_TAGS:[]})},e.message)})});return(0,y.jsx)(m.A,{title:v,description:b,error:!0,children:(0,y.jsx)(h.A,{moduleSlug:e,error:t})})}ReportError.propTypes={moduleSlug:n().string.isRequired,error:n().oneOfType([n().arrayOf(n().object),n().object]).isRequired}},44436:(e,t,i)=>{i.d(t,{A:()=>u});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;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},a.apply(null,arguments)}const l=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 80 21"},e),s||(s=r.createElement("path",{fill:"#5F6368",d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1zM69.985 3.117c0 .454-.167.853-.488 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.6 1.6 0 0 1-.488-1.175c0-.466.166-.854.488-1.176s.71-.488 1.175-.488c.455 0 .854.166 1.176.488.332.333.487.72.487 1.176m-.477 4.313v12.498h-2.351V7.43zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943q-1.014-.948-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333M2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974q-.883-.781-3.094-1.564l-1.22-.432Q3.371 9.997 2.04 8.716C1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673S2.75 1.209 3.693.72C4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676-.91 1.032-.91 1.742c0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6 6 0 0 1-2.495 1.919 8 8 0 0 1-3.116.621c-1.62 0-3.072-.466-4.358-1.408M15.969 3.449a1.95 1.95 0 0 1-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0 1 17.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 0 1-1.43.589c-.566-.012-1.043-.2-1.431-.588m-.067 2.595h2.994v13.883h-2.994zM25.406 19.85c-.544-.2-.987-.466-1.331-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122q.35-.116.765-.399v2.917c-.599.277-1.32.41-2.173.41a5 5 0 0 1-1.753-.3M33.623 19.407a6.63 6.63 0 0 1-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706s2.251-1.01 3.593-1.01c1.397 0 2.606.311 3.637.921a6.1 6.1 0 0 1 2.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.16 4.16 0 0 0 2.817 1.043c.854 0 1.597-.189 2.218-.588a4.27 4.27 0 0 0 1.508-1.597l2.528 1.198q-.981 1.713-2.561 2.694c-1.054.655-2.318.976-3.782.976q-2.046.033-3.66-.931m7.23-8.051a3.3 3.3 0 0 0-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296z"})));var c=i(55989),d=i(62540);const u=function Logo(){return(0,d.jsxs)("div",{className:"googlesitekit-logo","aria-hidden":"true",children:[(0,d.jsx)(o.A,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),(0,d.jsx)(l,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),(0,d.jsx)(c.A,{children:(0,n.__)("Site Kit by Google Logo","google-site-kit")})]})}},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}},46369:(e,t,i)=>{i.d(t,{sw:()=>I,rF:()=>S,Ay:()=>SetUpEmailReportingOverlayNotification});var s,n,o=i(62688),r=i.n(o),a=i(63696),l=i(81276),c=i(82871),d=i(50539),u=i(7972),g=i(97345),p=i(8732),m=i(76729),h=i(17443),f=i(33903);function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},_.apply(null,arguments)}const y=e=>a.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 348 163"},e),s||(s=a.createElement("g",{clipPath:"url(#email-reporting-overlay-desktop_svg__a)"},a.createElement("path",{fill:"#B8E6CA",d:"M0 16C0 7.163 7.163 0 16 0h316c8.837 0 16 7.163 16 16v147H0z"}),a.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__b)"},a.createElement("path",{fill:"#EBEEF0",d:"M75.352 82.774a8.32 8.32 0 0 1 4.337-7.307l87.93-47.985a13.32 13.32 0 0 1 12.761 0l87.931 47.985a8.32 8.32 0 0 1 4.337 7.307v94.401a8.325 8.325 0 0 1-8.325 8.325H83.676a8.325 8.325 0 0 1-8.324-8.325z"})),a.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__c)"},a.createElement("rect",{width:88,height:57,x:66.467,y:-1.393,fill:"#fff",rx:9.075,transform:"rotate(-38.65 66.467 -1.393)"})),a.createElement("rect",{width:61,height:6.763,x:84.463,y:.297,fill:"#EBEEF0",rx:3.3,transform:"rotate(-38.65 84.463 .297)"}),a.createElement("rect",{width:41.249,height:15.94,x:93.201,y:10.905,fill:"#B8E6CA",rx:7.97,transform:"rotate(-38.65 93.201 10.905)"}),a.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.237,d:"m105.805 14.774.966-7.501m0 0-3.388 2.634m3.388-2.634 2.636 3.2"}),a.createElement("rect",{width:16.5,height:4.782,x:110.861,y:3.926,fill:"#fff",rx:1.65,transform:"rotate(-38.65 110.861 3.926)"}),a.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__d)"},a.createElement("rect",{width:87,height:57,x:171.227,y:1.983,fill:"#fff",rx:9.075,transform:"rotate(5.072 171.227 1.983)"})),a.createElement("rect",{width:52,height:7,x:183.025,y:16.081,fill:"#EBEEF0",rx:3.3,transform:"rotate(5.072 183.025 16.081)"}),a.createElement("rect",{width:41.249,height:16.5,x:181.969,y:30.268,fill:"#FFDED3",rx:8.25,transform:"rotate(5.072 181.969 30.268)"}),a.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.237,d:"m188.852 36.676 4.937 5.9m0 0 .44-4.27m-.44 4.27-4.28-.32"}),a.createElement("rect",{width:16.5,height:4.95,x:199.535,y:37.625,fill:"#fff",rx:1.65,transform:"rotate(5.072 199.535 37.625)"}),a.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__e)"},a.createElement("rect",{width:87,height:57,x:168.918,y:77.078,fill:"#fff",rx:9.075,transform:"rotate(21.428 168.918 77.078)"})),a.createElement("rect",{width:20.625,height:6.6,x:176.383,y:94.187,fill:"#EBEEF0",rx:3.3,transform:"rotate(21.428 176.383 94.187)"}),a.createElement("rect",{width:41.249,height:16.5,x:171.26,y:107.243,fill:"#FFDED3",rx:8.25,transform:"rotate(21.428 171.26 107.243)"}),a.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.237,d:"m176.06 115.331 3.076 7.05m0 0 1.624-3.972m-1.624 3.972-4.016-1.511"}),a.createElement("rect",{width:16.5,height:4.95,x:186.045,y:119.249,fill:"#fff",rx:1.65,transform:"rotate(21.428 186.045 119.249)"}),a.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__f)"},a.createElement("rect",{width:88,height:57,x:101.674,y:57.565,fill:"#fff",rx:9.075,transform:"rotate(-9.325 101.674 57.565)"})),a.createElement("rect",{width:41,height:7,x:116.609,y:68.287,fill:"#EBEEF0",rx:3.3,transform:"rotate(-9.325 116.609 68.287)"}),a.createElement("rect",{width:41.249,height:16.5,x:119.109,y:82.291,fill:"#B8E6CA",rx:8.25,transform:"rotate(-9.325 119.109 82.291)"}),a.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.237,d:"m128.264 92.214 4.486-6.25m0 0-4.244.636m4.244-.635.755 4.224"}),a.createElement("rect",{width:16.5,height:4.95,x:137.955,y:85.049,fill:"#fff",rx:1.65,transform:"rotate(-9.325 137.955 85.049)"}),a.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__g)"},a.createElement("path",{fill:"#fff",d:"M75.352 82.647c0-1.968 2.17-3.163 3.833-2.11l90.363 57.192a8.33 8.33 0 0 0 8.904 0l90.363-57.192c1.663-1.053 3.833.142 3.833 2.11v94.528a8.325 8.325 0 0 1-8.325 8.325H83.676a8.325 8.325 0 0 1-8.324-8.325z"})),a.createElement("path",{stroke:"#EBEEF0",strokeOpacity:.75,strokeWidth:2.497,d:"m78.682 183.003 64.933-62.436M269.318 183.003l-64.933-62.436"}))),n||(n=a.createElement("defs",null,a.createElement("filter",{id:"email-reporting-overlay-desktop_svg__b",width:229.297,height:191.646,x:59.352,y:17.854,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},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:8}),a.createElement("feGaussianBlur",{stdDeviation:8}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0.193775 0 0 0 0 0.34389 0 0 0 0 0.252153 0 0 0 0.2 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_623_10575"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_623_10575",result:"shape"})),a.createElement("filter",{id:"email-reporting-overlay-desktop_svg__c",width:123.366,height:118.517,x:56.947,y:-62.574,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:3.3}),a.createElement("feGaussianBlur",{stdDeviation:6.6}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_623_10575"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_623_10575",result:"shape"})),a.createElement("filter",{id:"email-reporting-overlay-desktop_svg__d",width:116.565,height:89.335,x:153.753,y:-7.151,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:3.3}),a.createElement("feGaussianBlur",{stdDeviation:6.6}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_623_10575"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_623_10575",result:"shape"})),a.createElement("filter",{id:"email-reporting-overlay-desktop_svg__e",width:122.839,height:105.872,x:137.58,y:69.864,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:3.3}),a.createElement("feGaussianBlur",{stdDeviation:6.6}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_623_10575"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_623_10575",result:"shape"})),a.createElement("filter",{id:"email-reporting-overlay-desktop_svg__f",width:119.774,height:94.207,x:89.824,y:34.756,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:3.3}),a.createElement("feGaussianBlur",{stdDeviation:6.6}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_623_10575"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_623_10575",result:"shape"})),a.createElement("filter",{id:"email-reporting-overlay-desktop_svg__g",width:223.936,height:131.994,x:62.032,y:63.496,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:-3.33}),a.createElement("feGaussianBlur",{stdDeviation:6.66}),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.05 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_623_10575"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_623_10575",result:"shape"})),a.createElement("clipPath",{id:"email-reporting-overlay-desktop_svg__a"},a.createElement("path",{fill:"#fff",d:"M0 16C0 7.163 7.163 0 16 0h316c8.837 0 16 7.163 16 16v147H0z"})))));var v,k;function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},x.apply(null,arguments)}const A=e=>a.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 343 104"},e),v||(v=a.createElement("g",{clipPath:"url(#email-reporting-overlay-mobile_svg__a)"},a.createElement("path",{fill:"#B8E6CA",d:"M304.553 64.365c2.4 22.73-4.803 32.78-23.025 59.949-18.222 27.17 7.404 59.277-20.779 89.869-33.528 36.394-150.686 39.364-201.232 24.212C8.97 223.242-4.063 191.922-.431 163.24 4.5 124.314 27.02 123.577 40 104.5c19.276-28.325 1.687-66.286 39-89s80.086 6.697 120.326 4.388c23.216-1.332 46.017-5.627 66.626.968 20.832 6.667 36.719 25.428 38.601 43.509"}),a.createElement("g",{filter:"url(#email-reporting-overlay-mobile_svg__b)"},a.createElement("path",{fill:"#EBEEF0",d:"M97.55 54.93a6.28 6.28 0 0 1 3.274-5.515l66.361-36.214a10.05 10.05 0 0 1 9.631 0l66.361 36.214a6.28 6.28 0 0 1 3.273 5.515v71.244a6.283 6.283 0 0 1-6.283 6.283H103.833a6.283 6.283 0 0 1-6.282-6.283z"})),a.createElement("g",{filter:"url(#email-reporting-overlay-mobile_svg__c)"},a.createElement("rect",{width:65.659,height:43.018,x:169.907,y:3.573,fill:"#fff",rx:6.849,transform:"rotate(5.072 169.907 3.573)"})),a.createElement("rect",{width:39.244,height:5.283,x:178.812,y:14.213,fill:"#EBEEF0",rx:2.49,transform:"rotate(5.072 178.812 14.213)"}),a.createElement("rect",{width:31.131,height:12.452,x:178.013,y:24.92,fill:"#FFDED3",rx:6.226,transform:"rotate(5.072 178.013 24.92)"}),a.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.934,d:"m183.207 29.756 3.726 4.452m0 0 .332-3.222m-.332 3.222-3.229-.24"}),a.createElement("rect",{width:12.452,height:3.736,x:191.272,y:30.472,fill:"#fff",rx:1.245,transform:"rotate(5.072 191.272 30.472)"}),a.createElement("g",{filter:"url(#email-reporting-overlay-mobile_svg__d)"},a.createElement("rect",{width:65.659,height:43.018,x:168.165,y:50.631,fill:"#fff",rx:6.849,transform:"rotate(21.428 168.165 50.631)"})),a.createElement("rect",{width:15.565,height:4.981,x:173.799,y:63.543,fill:"#EBEEF0",rx:2.49,transform:"rotate(21.428 173.799 63.543)"}),a.createElement("rect",{width:31.131,height:12.452,x:169.932,y:73.397,fill:"#FFDED3",rx:6.226,transform:"rotate(21.428 169.932 73.397)"}),a.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.934,d:"m173.554 79.5 2.322 5.321m0 0 1.225-2.998m-1.225 2.998-3.032-1.14"}),a.createElement("rect",{width:12.452,height:3.736,x:181.091,y:82.458,fill:"#fff",rx:1.245,transform:"rotate(21.428 181.091 82.458)"}),a.createElement("g",{filter:"url(#email-reporting-overlay-mobile_svg__e)"},a.createElement("rect",{width:66.413,height:43.018,x:117.415,y:35.905,fill:"#fff",rx:6.849,transform:"rotate(-9.325 117.415 35.905)"})),a.createElement("rect",{width:30.943,height:5.283,x:128.687,y:43.996,fill:"#EBEEF0",rx:2.49,transform:"rotate(-9.325 128.687 43.996)"}),a.createElement("rect",{width:31.131,height:12.452,x:130.575,y:54.565,fill:"#B8E6CA",rx:6.226,transform:"rotate(-9.325 130.575 54.565)"}),a.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.934,d:"m137.483 62.054 3.386-4.716m0 0-3.203.48m3.203-.48.57 3.188"}),a.createElement("rect",{width:12.452,height:3.736,x:144.797,y:56.647,fill:"#fff",rx:1.245,transform:"rotate(-9.325 144.797 56.647)"}),a.createElement("g",{filter:"url(#email-reporting-overlay-mobile_svg__f)"},a.createElement("path",{fill:"#fff",d:"M97.55 54.834c0-1.485 1.639-2.387 2.894-1.593l68.196 43.163a6.28 6.28 0 0 0 6.72 0l68.197-43.163c1.255-.794 2.893.108 2.893 1.593v71.34a6.283 6.283 0 0 1-6.283 6.283H103.833a6.283 6.283 0 0 1-6.282-6.283z"})),a.createElement("path",{stroke:"#EBEEF0",strokeOpacity:.75,strokeWidth:1.885,d:"m100.063 130.572 49.005-47.12M243.937 130.572l-49.005-47.12"}))),k||(k=a.createElement("defs",null,a.createElement("filter",{id:"email-reporting-overlay-mobile_svg__b",width:173.05,height:144.635,x:85.476,y:5.935,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},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:6.038}),a.createElement("feGaussianBlur",{stdDeviation:6.038}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0.193775 0 0 0 0 0.34389 0 0 0 0 0.252153 0 0 0 0.2 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1164_30170"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1164_30170",result:"shape"})),a.createElement("filter",{id:"email-reporting-overlay-mobile_svg__c",width:87.972,height:67.421,x:156.721,y:-3.32,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:2.49}),a.createElement("feGaussianBlur",{stdDeviation:4.981}),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_1164_30170"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1164_30170",result:"shape"})),a.createElement("filter",{id:"email-reporting-overlay-mobile_svg__d",width:92.706,height:79.901,x:144.515,y:45.187,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:2.49}),a.createElement("feGaussianBlur",{stdDeviation:4.981}),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_1164_30170"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1164_30170",result:"shape"})),a.createElement("filter",{id:"email-reporting-overlay-mobile_svg__e",width:90.393,height:71.098,x:108.472,y:18.69,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:2.49}),a.createElement("feGaussianBlur",{stdDeviation:4.981}),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_1164_30170"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1164_30170",result:"shape"})),a.createElement("filter",{id:"email-reporting-overlay-mobile_svg__f",width:169.004,height:99.615,x:87.499,y:40.381,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.createElement("feOffset",{dy:-2.513}),a.createElement("feGaussianBlur",{stdDeviation:5.026}),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.05 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1164_30170"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1164_30170",result:"shape"})),a.createElement("clipPath",{id:"email-reporting-overlay-mobile_svg__a"},a.createElement("path",{fill:"#fff",d:"M0 0h343v104H0z"})))));var b=i(62540);const I="email_reports_setup_overlay_notification",S=`${I}_setup_cta`;function SetUpEmailReportingOverlayNotification({id:e,Notification:t}){const i=(0,d.useSelect)(e=>e(u.n).getValue(m.Q)),s=(0,l.A)(i),{setValue:n}=(0,d.useDispatch)(u.n),{dismissNotification:o}=(0,d.useDispatch)(p.D),{dismissItem:r}=(0,d.useDispatch)(g.oR),_=(0,a.useCallback)(()=>{r(S,{expiresInSeconds:0}),n(m.Q,!0)},[r,n]),v={target:".googlesitekit-user-selector",placement:"bottom-end",className:"googlesitekit-tour-tooltip--user-menu",tooltipSlug:I,title:(0,c.__)("You can always manage your email reports subscription from the user menu","google-site-kit"),dismissLabel:(0,c.__)("Got it","google-site-kit")},k=(0,h.i)(v),x=(0,a.useCallback)(()=>{k()},[k]),j=(0,d.useSelect)(e=>e(g.oR).isEmailReportingSubscribed());return(0,a.useEffect)(()=>{s&&!i&&(o(e),j||setTimeout(()=>{k()},310))},[s,i,o,e,j,k]),(0,b.jsx)(t,{children:(0,b.jsx)(f.A,{notificationID:e,title:(0,c.__)("Get site insights in your inbox","google-site-kit"),description:(0,c.__)("Receive the most important insights about your site’s performance, key trends, and tailored metrics directly in your inbox","google-site-kit"),GraphicDesktop:y,GraphicMobile:A,ctaButton:{label:(0,c.__)("Set up","google-site-kit"),onClick:_,dismissOnClick:!0},dismissButton:{label:(0,c.__)("Maybe later","google-site-kit"),onClick:x},newBadge:!0})})}SetUpEmailReportingOverlayNotification.propTypes={id:r().string.isRequired,Notification:r().elementType.isRequired}},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;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},a.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=r.createElement("rect",{width:18,height:12,x:3,y:6,stroke:"currentColor",strokeWidth:1.5,rx:2})),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"})))},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.length<t)return n;const o=n.length-Math.floor(t)+1;return"…"+n.substr(o)}},48385:(e,t,i)=>{i.d(t,{Z:()=>T,A:()=>D});var s=i(62688),n=i.n(s),o=i(82871),r=i(39016),a=i(63696),l=i(50539),c=i(11999),d=i(97345),u=i(29785),g=i(8732),p=i(84730),m=i(80),h=i(62659),f=i(17443),_=i(13047),y=i(23403),v=i(79506),k=i(72050);var x=i(22942),A=i(65385),b=i(96177),I=i(32600),S=i(76984),j=i(11883),E=i(97513),M=i(62540);const N="setup-success-notification-audiences";function AudienceSegmentationSetupSuccessSubtleNotification({id:e,Notification:t}){const s=(0,E.dv)(),{dismissNotification:n}=(0,l.useDispatch)(g.D),r=(0,l.useSelect)(e=>e(d.oR).isAudienceSegmentationWidgetHidden());return(0,a.useEffect)(()=>{r&&n(N)},[n,r]),void 0===r?null:(0,M.jsx)(t,{children:(0,M.jsx)(I.A,{notificationID:e,type:S.Q.SUCCESS,title:(0,o.__)("Success! Visitor groups added to your dashboard","google-site-kit"),description:(0,o.__)("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,o.__)("Show me","google-site-kit"),onClick:function(e){e.preventDefault(),n(N),setTimeout(()=>{i.g.scrollTo({top:(0,j.YJ)(".googlesitekit-widget-area--mainDashboardTrafficAudienceSegmentation",s),behavior:"smooth"})},50)}},dismissButton:!0})})}AudienceSegmentationSetupSuccessSubtleNotification.propTypes={id:n().string.isRequired,Notification:n().elementType.isRequired};var w=i(68832),C=i(75649);const T="audience_segmentation_setup_cta-notification";function AudienceSegmentationSetupCTABanner({id:e,Notification:t}){const i=(0,h.A)(),s=`${i}_audiences-setup-cta-dashboard`,{dismissNotification:n,registerNotification:r,pinNotification:x}=(0,l.useDispatch)(g.D),{setValues:A}=(0,l.useDispatch)(c.s),b={tooltipSlug:e,title:(0,o.__)("You can always enable groups in Settings later","google-site-kit"),content:(0,o.__)("The visitors group section will be added to your dashboard once you set it up.","google-site-kit"),dismissLabel:(0,o.__)("Got it","google-site-kit")},I=(0,f.i)(b),S=(0,l.useSelect)(t=>t(g.D).isNotificationDismissalFinal(e)),j=(0,C.A)({isDismissalFinal:S}),E=(0,w.A)(m.PW,"autoSubmit"),[T,D]=(0,a.useState)(!1),R=(0,a.useCallback)(()=>{r(N,{Component:AudienceSegmentationSetupSuccessSubtleNotification,areaSlug:p.bI.DASHBOARD_TOP}),n(e)},[r,n,e]),O=(0,a.useCallback)(()=>{D(!0)},[D]),L=(0,a.useCallback)(()=>x(e,p.He.SETUP_CTAS),[e,x]),{apiErrors:z,failedAudiences:B,isSaving:P,onEnableGroups:G}=(0,y.A)({onSuccess:R,onError:O,onOAuthNavigation:L}),{clearPermissionScopeError:F}=(0,l.useDispatch)(d.oR),{setSetupErrorCode:U}=(0,l.useDispatch)(u.O4),W=(0,a.useCallback)(()=>{A(m.PW,{autoSubmit:!1}),F(),U(null),D(!1)},[F,U,A]),V=(0,l.useSelect)(e=>e(u.O4).getSetupErrorCode()),H=(0,l.useSelect)(e=>e(u.O4).getDocumentationLinkURL("visitor-groups")),Y=E&&"access_denied"===V,q={gaTrackingEventArgs:{category:s}};return(0,M.jsxs)(a.Fragment,{children:[(0,M.jsx)(t,{...q,children:(0,M.jsx)(k.A,{notificationID:e,title:(0,o.__)("Learn how different types of visitors interact with your site","google-site-kit"),description:(0,o.__)('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:H},ctaButton:{label:P?(0,o.__)("Enabling groups","google-site-kit"):(0,o.__)("Enable groups","google-site-kit"),onClick:G,disabled:P,inProgress:P},dismissButton:{label:j,onClick:I,disabled:P,dismissOptions:{expiresInSeconds:S?0:2*_.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}})}),(T||Y)&&(0,M.jsx)(v.A,{hasOAuthError:Y,apiErrors:z.length?z:B,onRetry:G,inProgress:P,onCancel:Y?W:()=>D(!1),trackEventCategory:`${i}_audiences-setup`})]})}AudienceSegmentationSetupCTABanner.propTypes={id:n().string,Notification:n().elementType};const D=(0,r.A)((0,A.A)({moduleName:x.L1}),(0,b.WP)("audienceSegmentationSetupCTA"))(AudienceSegmentationSetupCTABanner)},49057:(e,t,i)=>{i.d(t,{Ay:()=>f,wA:()=>a.A,ws:()=>g.w,WM:()=>r.A});var s=i(29725),n=i(56805),o=i(78913),r=i(35470),a=i(63737),l=i(44319),c=i(31170),d=i(30043),u=i(66293),g=i(52721),p=i(8084),m=i(97241);const h=(0,s.I)({},i.g.wp?.data);h.combineStores=p.o3,h.commonActions=p.jU,h.commonControls=p._5,h.commonStore=p.x0,h.createReducer=function(e){return(0,m.Ay)(e)},h.useInViewSelect=g.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=d.A,h.RegistryProvider=u.Ay;const f=h},49383:e=>{e.exports=googlesitekit.components},49481:(e,t,i)=>{i.d(t,{f:()=>n,n:()=>s});const s="modules/search-console",n=0},49746:(e,t,i)=>{i.d(t,{Eo:()=>u,JK:()=>h,K5:()=>m,jq:()=>p,mK:()=>d});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 d(e){let t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:(0,s.isPlainObject)(e)&&(t={...e}),t}function u(e,t={}){e=(0,s.isFinite)(e)?e:Number(e),(0,s.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const i=d(t),{style: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 g=o()(console.warn);function p(e,t={}){const{locale:i=h(),...s}=t;try{return new Intl.NumberFormat(i,s).format(e)}catch(t){g(`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=i.g){const t=(0,s.get)(e,["_googlesitekitLegacyData","locale"]);if(t){const e=t.match(/^(\w{2})?(_)?(\w{2})/);if(e&&e[0])return e[0].replace(/_/g,"-")}return e.navigator.language}},49993:(e,t,i)=>{i.d(t,{Gq:()=>u,IL:()=>h,LD:()=>p,SO:()=>g,a2:()=>n,xD:()=>m});var s=i(13047);const n="googlesitekit_",o=`${n}1.177.0_${i.g._googlesitekitBaseData.storagePrefix}_`,r=["sessionStorage","localStorage"];let a,l=[...r];async function c(e){const t=i.g[e];if(!t)return!1;try{const e="__storage_test__";return t.setItem(e,e),t.removeItem(e),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==t.length}}async function d(){if(void 0!==a)return a;for(const e of l)a||await c(e)&&(a=i.g[e]);return void 0===a&&(a=null),a}async function u(e){const t=await d();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<s))return{cacheHit:!0,value:n,isError:o}}}return{cacheHit:!1,value:void 0}}async function g(e,t,{ttl:n=s.Jg,timestamp:r=Math.round(Date.now()/1e3),isError:a=!1}={}){const l=await d();if(l)try{return l.setItem(`${o}${e}`,JSON.stringify({timestamp:r,ttl:n,value:t,isError:a})),!0}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function p(e){const t=await d();if(t)try{const i=e.startsWith(n)?e:`${o}${e}`;return t.removeItem(i),!0}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function m(){const e=await d();if(e)try{const t=[];for(let i=0;i<e.length;i++){const s=e.key(i);0===s.indexOf(n)&&t.push(s)}return t}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),[]}return[]}async function h(){if(await d()){const e=await m();for(const t of e)await p(t);return!0}return!1}},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}},50454:(e,t,i)=>{i.d(t,{G:()=>u});var s=i(82871),n=i(97345),o=i(29785),r=i(80);function a({select:e,slug:t}){return e(r.K9).hasConversionReportingEvents(this.requiredConversionEventName)||e(n.oR).isKeyMetricActive(t)}var l=i(7144);function c({select:e,isViewOnlyDashboard:t}){return!t||!(!t||!e(r.K9).getAdSenseLinked())}function d({select:e,isViewOnlyDashboard:t}){return!t||e(r.K9).hasCustomDimensions(this.requiredCustomDimensions)}const u={[n.p3]:{title:(0,s.__)("Top earning pages","google-site-kit"),description:(0,s.__)("Pages that generated the most AdSense revenue","google-site-kit"),infoTooltip:(0,s.__)("Pages that generated the most AdSense revenue","google-site-kit"),displayInSelectionPanel:c,displayInList:c,metadata:{group:l.hs.SLUG}},[n.BT]:{title:(0,s.__)("Top recent trending pages","google-site-kit"),description:(0,s.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),infoTooltip:(0,s.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_date"],displayInSelectionPanel:d,displayInWidgetArea:d,displayInList:d,metadata:{group:l.hs.SLUG}},[n.tB]:{title:(0,s.__)("Most popular authors by pageviews","google-site-kit"),description:(0,s.__)("Authors whose posts got the most visits","google-site-kit"),infoTooltip:(0,s.__)("Authors whose posts got the most visits","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_author"],displayInSelectionPanel:d,displayInWidgetArea:d,displayInList:d,metadata:{group:l.hs.SLUG}},[n.t1]:{title:(0,s.__)("Top categories by pageviews","google-site-kit"),description:(0,s.__)("Categories that your site visitors viewed the most","google-site-kit"),infoTooltip:(0,s.__)("Categories that your site visitors viewed the most","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_categories"],displayInSelectionPanel:d,displayInWidgetArea:d,displayInList:d,metadata:{group:l.hs.SLUG}},[n.ep]:{title:(0,s.__)("Most popular content by pageviews","google-site-kit"),description:(0,s.__)("Pages that brought in the most visitors","google-site-kit"),infoTooltip:(0,s.__)("Pages your visitors read the most","google-site-kit"),metadata:{group:l.hs.SLUG}},[n.pG]:{title:(0,s.__)("Most popular products by pageviews","google-site-kit"),description:(0,s.__)("Products that brought in the most visitors","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_type"],displayInSelectionPanel:({select:e})=>e(n.oR).isKeyMetricActive(n.pG)||e(o.O4).getProductPostType(),displayInWidgetArea:d,metadata:{group:l.GF.SLUG}},[n.nH]:{title:(0,s.__)("Pages per visit","google-site-kit"),description:(0,s.__)("Number of pages visitors viewed per session on average","google-site-kit"),infoTooltip:(0,s.__)("Number of pages visitors viewed per session on average","google-site-kit"),metadata:{group:l.IX.SLUG}},[n.J5]:{title:(0,s.__)("Visit length","google-site-kit"),description:(0,s.__)("Average duration of engaged visits","google-site-kit"),infoTooltip:(0,s.__)("Average duration of engaged visits","google-site-kit"),metadata:{group:l.IX.SLUG}},[n.Yw]:{title:(0,s.__)("Visits per visitor","google-site-kit"),description:(0,s.__)("Average number of sessions per site visitor","google-site-kit"),infoTooltip:(0,s.__)("Average number of sessions per site visitor","google-site-kit"),metadata:{group:l.IX.SLUG}},[n.UY]:{title:(0,s.__)("Most engaging pages","google-site-kit"),description:(0,s.__)("Pages with the highest engagement rate","google-site-kit"),infoTooltip:(0,s.__)("Pages with the highest engagement rate","google-site-kit"),metadata:{group:l.hs.SLUG}},[n.gC]:{title:(0,s.__)("Least engaging pages","google-site-kit"),description:(0,s.__)("Pages with the highest percentage of visitors that left without engagement with your site","google-site-kit"),infoTooltip:(0,s.__)("Percentage of visitors that left without engagement with your site","google-site-kit"),metadata:{group:l.hs.SLUG}},[n.tK]:{title:(0,s.__)("Top pages by returning visitors","google-site-kit"),description:(0,s.__)("Pages that attracted the most returning visitors","google-site-kit"),infoTooltip:(0,s.__)("Pages that attracted the most returning visitors","google-site-kit"),metadata:{group:l.IX.SLUG}},[n.fu]:{title:(0,s.__)("New visitors","google-site-kit"),description:(0,s.__)("How many new visitors you got and how the overall audience changed","google-site-kit"),infoTooltip:(0,s.__)("Portion of visitors who visited your site for the first time in this timeframe","google-site-kit"),metadata:{group:l.IX.SLUG}},[n.dX]:{title:(0,s.__)("Returning visitors","google-site-kit"),description:(0,s.__)("Portion of people who visited your site more than once","google-site-kit"),infoTooltip:(0,s.__)("Portion of your site’s visitors that returned at least once in this timeframe","google-site-kit"),metadata:{group:l.IX.SLUG}},[n.SS]:{title:(0,s.__)("Top traffic source","google-site-kit"),description:(0,s.__)("Channel which brought in the most visitors to your site","google-site-kit"),infoTooltip:(0,s.__)("Channel (e.g. social, paid, search) that brought in the most visitors to your site","google-site-kit"),metadata:{group:l.wb.SLUG}},[n.Vl]:{title:(0,s.__)("Top traffic source driving add to cart","google-site-kit"),description:(0,s.__)("Channel which brought in the most add to cart events to your site","google-site-kit"),infoTooltip:(0,s.__)("Channel (e.g. social, paid, search) that brought in the most add to cart events to your site","google-site-kit"),requiredConversionEventName:[r.nc.ADD_TO_CART],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[n.u_]:{title:(0,s.__)("Top traffic source driving leads","google-site-kit"),description:(0,s.__)("Channel which brought in the most leads to your site","google-site-kit"),infoTooltip:(0,s.__)("Channel (e.g. social, paid, search) that brought in the most leads to your site","google-site-kit"),requiredConversionEventName:[r.nc.SUBMIT_LEAD_FORM,r.nc.CONTACT,r.nc.GENERATE_LEAD],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.XU.SLUG}},[n.HA]:{title:(0,s.__)("Top traffic source driving purchases","google-site-kit"),description:(0,s.__)("Channel which brought in the most purchases to your site","google-site-kit"),infoTooltip:(0,s.__)("Channel (e.g. social, paid, search) that brought in the most purchases to your site","google-site-kit"),requiredConversionEventName:[r.nc.PURCHASE],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[n.GT]:{title:(0,s.__)("Most engaged traffic source","google-site-kit"),description:(0,s.__)("Visitors coming via this channel spent the most time on your site","google-site-kit"),infoTooltip:(0,s.__)("Channel (e.g. social, paid, search) that brought in the most visitors who had a meaningful engagement with your site","google-site-kit"),metadata:{group:l.wb.SLUG}},[n.qy]:{title:(0,s.__)("Top converting traffic source","google-site-kit"),description:(0,s.__)("Channel which brought in the most visits that resulted in key events","google-site-kit"),infoTooltip:(0,s.__)("Channel (e.g. social, paid, search) that brought in visitors who generated the most key events","google-site-kit"),metadata:{group:l.wb.SLUG}},[n.GM]:{title:(0,s.__)("Top cities driving traffic","google-site-kit"),description:(0,s.__)("Which cities you get the most visitors from","google-site-kit"),infoTooltip:(0,s.__)("The cities where most of your visitors came from","google-site-kit"),metadata:{group:l.wb.SLUG}},[n.CQ]:{title:(0,s.__)("Top cities driving leads","google-site-kit"),description:(0,s.__)("Cities driving the most contact form submissions","google-site-kit"),infoTooltip:(0,s.__)("Cities driving the most contact form submissions","google-site-kit"),requiredConversionEventName:[r.nc.SUBMIT_LEAD_FORM,r.nc.CONTACT,r.nc.GENERATE_LEAD],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.XU.SLUG}},[n.Xq]:{title:(0,s.__)("Top cities driving add to cart","google-site-kit"),description:(0,s.__)("Cities where visitors most frequently add products to their carts","google-site-kit"),infoTooltip:(0,s.__)("Cities where visitors most frequently add products to their carts","google-site-kit"),requiredConversionEventName:[r.nc.ADD_TO_CART],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[n.JF]:{title:(0,s.__)("Top cities driving purchases","google-site-kit"),description:(0,s.__)("Cities driving the most purchases","google-site-kit"),infoTooltip:(0,s.__)("Cities driving the most purchases","google-site-kit"),requiredConversionEventName:[r.nc.PURCHASE],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[n.YQ]:{title:(0,s.__)("Top device driving purchases","google-site-kit"),description:(0,s.__)("Top device driving the most purchases","google-site-kit"),infoTooltip:(0,s.__)("Top device driving the most purchases","google-site-kit"),requiredConversionEventName:[r.nc.PURCHASE],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.GF.SLUG}},[n.dV]:{title:(0,s.__)("Top countries driving traffic","google-site-kit"),description:(0,s.__)("Which countries you get the most visitors from","google-site-kit"),infoTooltip:(0,s.__)("The countries where most of your visitors came from","google-site-kit"),metadata:{group:l.wb.SLUG}},[n.t7]:{title:(0,s.__)("Top performing keywords","google-site-kit"),description:(0,s.__)("What people searched for before they came to your site","google-site-kit"),infoTooltip:(0,s.__)("The top search queries for your site by highest clickthrough rate","google-site-kit"),metadata:{group:l.wb.SLUG}},[n.HP]:{title:(0,s.__)("Top pages driving leads","google-site-kit"),description:(0,s.__)("Pages on which forms are most frequently submitted","google-site-kit"),requiredConversionEventName:[r.nc.SUBMIT_LEAD_FORM,r.nc.CONTACT,r.nc.GENERATE_LEAD],displayInSelectionPanel:a,displayInList:a,metadata:{group:l.XU.SLUG}}}},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?.(/\/+$/,"")}},50539:e=>{e.exports=googlesitekit.data},51094:(e,t,i)=>{i.d(t,{Fs:()=>AudienceAreaFooter,Oc:()=>s.A,Rl:()=>AudienceSelectionPanel,c9:()=>$i,x_:()=>ChangeGroupsLink,H8:()=>ConnectAnalyticsCTAWidget,xE:()=>Cs,vw:()=>PrimaryUserSetupWidget,VR:()=>SecondaryUserSetupWidget});var s=i(79506),n=i(17243),o=i(62688),r=i.n(o),a=i(63696),l=i(65385),c=i(50539),d=i(13137),u=i(7972),g=i(82871);const p="audience-segmentation-info-notice-ui",m="audience-segmentation-info-notice",h=[{slug:"new-visitors",content:(0,g.__)("The higher the portion of new visitors you have, the more your audience is growing. Looking at what content brings them to your site may give you insights on how to reach even more people.","google-site-kit")},{slug:"compare-metrics",content:(0,g.__)("Select up to three visitor groups to display on the dashboard and easily compare metrics between them.","google-site-kit")},{slug:"custom-audiences",content:(0,g.__)("Configure your own custom audiences in Analytics to gain deeper insights into visitor behavior, for example consider creating an “Existing customers” or “Subscribers” segment, depending on what goals you have for your site.","google-site-kit")},{slug:"purchasers",content:(0,g.__)("Select the Purchasers visitor group to gain insights into which visitors bring the most revenue to your site.","google-site-kit")},{slug:"returning-visitors",content:(0,g.__)("The more returning visitors your site has, the stronger and more loyal an audience you’re building. Check which content brings people back to your site - it might help you create a strategy to build a community.","google-site-kit")},{slug:"compare-new-returning",content:(0,g.__)("Compare the ratio of “new” to “returning” visitors – this can give you insights on whether you have more people stopping by as a one-off, or more loyal visitors.","google-site-kit")},{slug:"compare-cities",content:(0,g.__)("Check the cities which bring you more new vs more returning visitors – there might be new audiences you could engage with in locations you hadn’t thought about.","google-site-kit")}];var f,_,y,v,k,x,A,b,I,S,j,E,M=i(10740),N=i(97513);function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},w.apply(null,arguments)}const C=e=>a.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 233 117"},e),f||(f=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"})),y||(y=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.396,d:"M99.725 51.387c1.758 6.518 7.872 11.126 14.356 13.01 6.484 1.882 13.377 1.514 20.12 1.177 3.188-.158 6.449-.298 9.503.627s5.912 3.137 6.724 6.222c.466 1.773.121 3.686-.787 5.274"})),v||(v=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.4,d:"M87.114 62.487c-1.015 16.075-6.61 30.497-2.87 48.618h-4.26M91.929 111.105h-4.261l7.53-48.618"})),k||(k=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"})),x||(x=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"})),b||(b=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"})),I||(I=a.createElement("path",{stroke:"#7B807D",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:3.607,d:"m159.169 21.79-22.985 89.068"})),S||(S=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"})),E||(E=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 T=i(33052),D=i(83880),R=i(49383),O=i(1641),L=i(13606),z=i(38432),B=i(62540);function GetHelpLink({linkURL:e}){return(0,L.A)((0,g.__)("Contact your administrator. Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:(0,B.jsx)(z.A,{href:e,external:!0,hideExternalIndicator:!0,children:(0,g.__)("Get help","google-site-kit")})})}function ErrorWidgetDetails({failedAudiences:e,showRetryButton:t,onRetry:i,onRequestAccess:s,errors:n,hasInsufficientPermissionsError:o}){return e?.length?(0,B.jsxs)("div",{children:[(0,B.jsx)(D.A,{children:(0,g.__)("Failed to create the following audiences:","google-site-kit")}),(0,B.jsx)("ul",{className:"googlesitekit-widget-audience-segmentation-error__failed-audiences",children:e.map(e=>(0,B.jsx)("li",{children:e},e))}),(0,B.jsx)(R.Button,{onClick:i,danger:!0,children:(0,g.__)("Retry","google-site-kit")})]}):t&&i?(0,B.jsx)(R.Button,{onClick:i,danger:!0,children:(0,g.__)("Retry","google-site-kit")}):(0,B.jsx)(O.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 P=(0,a.forwardRef)(({Widget:e,errors:t,onRetry:i,onRequestAccess:s,showRetryButton:n,failedAudiences:o},r)=>{const a=(0,N.dv)(),l=a===N.mp,c=a===N.Lg,u=t.some(d.SG);return(0,B.jsx)(e,{ref:r,className:"googlesitekit-audience-segmentation-error-widget",noPadding:!0,children:(0,B.jsx)(M.xA,{className:"googlesitekit-audience-segmentation-error__widget-primary-cell",collapsed:!0,children:(0,B.jsxs)(M.fI,{children:[(0,B.jsxs)(M.fh,{smSize:6,mdSize:8,lgSize:7,children:[(0,B.jsx)(T.A,{as:"h3",type:"title",size:"large",children:u?(0,g.__)("Insufficient permissions","google-site-kit"):(0,g.__)("Your visitor groups data loading failed","google-site-kit")}),(0,B.jsx)("div",{className:"googlesitekit-widget-audience-segmentation-error__actions",children:(0,B.jsx)(ErrorWidgetDetails,{failedAudiences:o,showRetryButton:n,onRetry:i,onRequestAccess:s,errors:t,hasInsufficientPermissionsError:u})})]}),!l&&!c&&(0,B.jsx)(M.fh,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",smSize:6,mdSize:3,lgSize:5,children:(0,B.jsx)(C,{width:"233px"})}),c&&(0,B.jsx)(M.fh,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",mdSize:8,children:(0,B.jsx)(C,{width:"233px"})}),l&&(0,B.jsx)(M.fh,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",smSize:8,children:(0,B.jsx)(C,{width:"233px"})})]})})})});P.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 G=P;var F=i(30289),U=i(13047),W=i(62659),V=i(22942);const H=(0,F.A)(G);function AudienceSegmentationErrorWidget({Widget:e,errors:t,onRetry:i,showRetryButton:s,failedAudiences:o}){const r=(0,W.A)(),{setValue:l}=(0,c.useDispatch)(u.n),g=t?(0,n.castArray)(t):[],m=g.some(d.SG);return(0,a.useEffect)(()=>{l(p,!0)},[l]),(0,B.jsx)(H,{Widget:e,errors:g,onRetry:function(){(0,U.sx)(`${r}_audiences-all-tiles`,"data_loading_error_retry").finally(()=>{l(p,!1),i?.()})},failedAudiences:o,onRequestAccess:()=>{(0,U.sx)(`${r}_audiences-all-tiles`,"insufficient_permissions_error_request_access")},showRetryButton:s,onInView:()=>{const e=m?"insufficient_permissions_error":"data_loading_error";(0,U.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,l.A)({moduleName:V.L1})(AudienceSegmentationErrorWidget);i(97212),i(48385);var q=i(80),Q=i(97345),Z=i(9318),K=i(31790);function $(e,t){return(0,c.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 X(e,t){return(0,c.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 J({isSiteKitAudiencePartialData:e,siteKitAudiences:t,otherAudiences:i}){const s=(0,c.useSelect)(e=>e(Q.oR).getConfiguredAudiences()),n={audienceResourceName:s},o=(0,c.useSelect)(e=>e(Q.oR).getDateRangeDates({offsetDays:q.f2,compare:!0})),{startDate:r,endDate:a}=o,l=void 0===e?void 0:i.length>0||!1===e,d=t.length>0&&e,u={...o,dimensions:[{name:"audienceResourceName"}],dimensionFilters:n,metrics:[{name:"totalUsers"},{name:"sessionsPerUser"},{name:"screenPageViewsPerSession"},{name:"screenPageViews"}],reportID:"audience-segmentation_use-audience-tiles-reports_hook_reportOptions"},g=(0,c.useInViewSelect)(e=>{if(void 0!==l)return l?e(q.K9).getReport(u):null},[l,u]),p=(0,c.useSelect)(e=>{if(void 0!==l)return!l||e(q.K9).hasFinishedResolution("getReport",[u])}),m=(0,c.useSelect)(e=>{if(void 0!==l)return l?e(q.K9).getErrorForSelector("getReport",[u]):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"},f=(0,c.useInViewSelect)(e=>{if(void 0!==d)return d?e(q.K9).getReport(h):null},[d,h]),_=(0,c.useSelect)(e=>{if(void 0!==d)return!d||e(q.K9).hasFinishedResolution("getReport",[h])}),y=(0,c.useSelect)(e=>{if(void 0!==d)return d?e(q.K9).getErrorForSelector("getReport",[h]):null}),v={startDate:r,endDate:a,metrics:[{name:"screenPageViews"}],reportID:"audience-segmentation_use-audience-tiles-reports_hook_totalPageviewsReportOptions"},k=(0,c.useInViewSelect)(e=>e(q.K9).getReport(v)),x=(0,c.useSelect)(e=>e(q.K9).hasFinishedResolution("getReport",[v])),A=(0,c.useSelect)(e=>e(q.K9).getErrorForSelector("getReport",[v])),b=Number(k?.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"},S=(0,c.useInViewSelect)(e=>e(q.K9).getReportForAllAudiences(I,s)),j=$(I,s),E=X(I,s),M={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"},N=(0,c.useInViewSelect)(e=>e(q.K9).getReportForAllAudiences(M,s)),w=$(M,s),C=X(M,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:g,reportLoaded:p,reportError:m,siteKitAudiencesReport:f,siteKitAudiencesReportLoaded:_,siteKitAudiencesReportError:y,totalPageviews:b,totalPageviewsReportLoaded:x,totalPageviewsReportError:A,topCitiesReport:S,topCitiesReportsLoaded:j,topCitiesReportErrors:E,topContentReport:N,topContentReportsLoaded:w,topContentReportErrors:C,topContentPageTitlesReport:(0,c.useInViewSelect)(e=>e(q.K9).getReportForAllAudiences(T,s)),topContentPageTitlesReportsLoaded:$(T,s),topContentPageTitlesReportErrors:X(T,s)}}var ee,te,ie,se,ne,oe,re,ae,le,ce,de,ue,ge=i(4124),pe=i(4751);function AudienceTileLoading(){return(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-loading",children:[(0,B.jsx)(pe.A,{width:"100%",height:"20px"}),(0,B.jsx)(pe.A,{width:"100%",height:"52px"}),(0,B.jsx)(pe.A,{width:"100%",height:"52px"}),(0,B.jsx)(pe.A,{width:"100%",height:"52px"}),(0,B.jsx)(pe.A,{width:"100%",height:"52px"}),(0,B.jsx)(pe.A,{width:"100%",height:"52px"}),(0,B.jsx)(pe.A,{width:"100%",height:"52px"})]})}function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},me.apply(null,arguments)}const he=e=>a.createElement("svg",me({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 190 142"},e),ee||(ee=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"}}),te||(te=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"})),ie||(ie=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"})),se||(se=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"})),ne||(ne=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"})),oe||(oe=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"})),re||(re=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"})),ae||(ae=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"})),le||(le=a.createElement("path",{stroke:"#7B807D",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:4.393,d:"m145.07 26.773-28 108.499"})),ce||(ce=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"})),de||(de=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"})),ue||(ue=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"}))),fe=(0,a.forwardRef)(({errors:e,onRetry:t,onRequestAccess:i},s)=>{const n=e.some(e=>(0,d.SG)(e));return(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-error",ref:s,children:(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-error__container",children:[(0,B.jsx)(he,{className:"googlesitekit-audience-segmentation-tile-error__image"}),(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-error__body",children:[(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-error__message",children:(0,B.jsx)(T.A,{as:"h3",type:"headline",size:"small",className:"googlesitekit-audience-segmentation-tile-error__title",children:n?(0,g.__)("Insufficient permissions","google-site-kit"):(0,g.__)("Data loading failed","google-site-kit")})}),(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-error__actions",children:(0,B.jsx)(O.A,{moduleSlug:"analytics-4",error:e,GetHelpLink:n?GetHelpLink:void 0,hideGetHelpLink:!n,buttonVariant:"danger",onRetry:t,onRequestAccess:i})})]})]})})});fe.propTypes={errors:r().array.isRequired,onRetry:r().func.isRequired,onRequestAccess:r().func.isRequired};const _e=fe,ye=(0,F.A)(_e);function AudienceTileError({audienceSlug:e,errors:t}){const i=(0,W.A)(),s=t.some(e=>(0,d.SG)(e));return(0,B.jsx)(ye,{errors:t,onInView:()=>{const t=s?"insufficient_permissions_error":"data_loading_error";(0,U.sx)(`${i}_audiences-tile`,t,e)},onRetry:()=>{(0,U.sx)(`${i}_audiences-tile`,"data_loading_error_retry",e)},onRequestAccess:()=>{(0,U.sx)(`${i}_audiences-tile`,"insufficient_permissions_error_request_access",e)}})}AudienceTileError.propTypes={audienceSlug:r().string.isRequired,errors:r().array.isRequired};var ve,ke=i(4452),xe=i.n(ke);function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Ae.apply(null,arguments)}const be=e=>a.createElement("svg",Ae({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),ve||(ve=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 Ie;function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Se.apply(null,arguments)}const je=e=>a.createElement("svg",Se({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),Ie||(Ie=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"})));var Ee;function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Me.apply(null,arguments)}const Ne=e=>a.createElement("svg",Me({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),Ee||(Ee=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 we;function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Ce.apply(null,arguments)}const Te=e=>a.createElement("svg",Ce({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),we||(we=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 De;function Re(){return Re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Re.apply(null,arguments)}const Oe=e=>a.createElement("svg",Re({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),De||(De=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 Le;function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},ze.apply(null,arguments)}const Be=e=>a.createElement("svg",ze({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),Le||(Le=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"})));function AudienceTileMetric({TileIcon:e,title:t,metricValue:i,Badge:s,metricValueFormat:n}){return(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric",children:[(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__icon",children:(0,B.jsx)(e,{})}),(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__container",children:[(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__value",children:(0,U.Eo)(i,n)}),(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__title",children:t})]}),(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__badge-container",children:(0,B.jsx)(s,{})})]})}function AudienceTileNoData(){return(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile__no-data",children:(0,g.__)("No data to show yet","google-site-kit")})}function AudienceTileCitiesMetric({TileIcon:e,title:t,topCities:i}){const s=i?.dimensionValues?.filter(Boolean)||[],n=!!s.length;return(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric googlesitekit-audience-segmentation-tile-metric--cities",children:[(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__icon",children:(0,B.jsx)(e,{})}),(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__container",children:[(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__title",children:t}),(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__content",children:[!n&&(0,B.jsx)(AudienceTileNoData,{}),n&&s.map((e,t)=>(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__cities-metric",children:[(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__cities-metric-name",children:e?.value}),(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__cities-metric-value",children:(0,U.Eo)(i?.metricValues[t]?.value/i?.total,{style:"percent",maximumFractionDigits:1})})]},e?.value))]})]})]})}AudienceTileMetric.propTypes={TileIcon:r().elementType.isRequired,title:r().string.isRequired,metricValue:r().number.isRequired,Badge:r().elementType.isRequired,metricValueFormat:r().object},AudienceTileCitiesMetric.propTypes={TileIcon:r().elementType.isRequired,title:r().string.isRequired,topCities:r().object};var Pe=i(51568),Ge=i(11999),Fe=i(29785),Ue=i(82267);function BadgeWithTooltip({className:e="",label:t,onTooltipOpen:i,tooltipTitle:s}){return(0,B.jsxs)("span",{className:xe()("googlesitekit-badge-with-tooltip","googlesitekit-badge",e),children:[t,s&&(0,B.jsx)(Ue.A,{onOpen:i,title:s})]})}function PartialDataNotice({content:e}){return(0,B.jsx)("span",{className:"googlesitekit-audience-segmentation-partial-data-notice",children:e})}BadgeWithTooltip.propTypes={onTooltipOpen:r().func,tooltipTitle:r().node,className:r().string,label:r().node.isRequired},PartialDataNotice.propTypes={content:r().node};const We=(0,a.forwardRef)(({onClick:e,isSaving:t},i)=>(0,B.jsxs)("div",{ref:i,className:"googlesitekit-audience-segmentation-tile-metric__no-data",children:[(0,g.__)("No data to show","google-site-kit"),(0,B.jsx)(D.A,{children:(0,g.__)("Update Analytics to track metric","google-site-kit")}),(0,B.jsx)(R.SpinnerButton,{onClick:e,isSaving:t,disabled:t,danger:!0,children:(0,g.__)("Update","google-site-kit")})]}));We.propTypes={onClick:r().func.isRequired,isSaving:r().bool};const Ve=We,He=(0,F.A)(Ve);function AudienceTilePagesMetricContent({topContentTitles:e,topContent:t,isTopContentPartialData:i,hasCustomDimension:s,onCreateCustomDimension:n,isSaving:o}){const r=(0,W.A)(),a=(0,ge.A)(),l=(0,N.dv)(),d=[N.mp,N.Lg].includes(l),u=t?.dimensionValues?.filter(Boolean)||[],p=!!u.length,m=(0,c.useSelect)(e=>e(Q.oR).getDateRangeDates({offsetDays:q.f2}));function ContentLinkComponent({content:t}){const i=e[t?.value],s=t?.value,n=(0,c.useSelect)(e=>a?null:e(q.K9).getServiceReportURL("all-pages-and-screens",{filters:{unifiedPagePathScreen:s},dates:m}));return a?(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile__top-content-metric-name",children:i}):(0,B.jsx)(z.A,{href:n,title:i,external:!0,hideExternalIndicator:!0,children:i})}return(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__content",children:[!s&&(0,B.jsx)(He,{onClick:function(){(0,U.sx)(`${r}_audiences-top-content-cta`,"create_custom_dimension").finally(n)},isSaving:o,onInView:()=>{(0,U.sx)(`${r}_audiences-top-content-cta`,"view_cta")}}),s&&!p&&(0,B.jsx)(AudienceTileNoData,{}),s&&p&&u.map((e,i)=>(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__page-metric-container",children:[(0,B.jsx)(ContentLinkComponent,{content:e}),(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__page-metric-value",children:(0,U.Eo)(t?.metricValues[i]?.value)})]},e?.value)),d&&i&&(0,B.jsx)(PartialDataNotice,{content:(0,g.__)("Still collecting full data for this timeframe, partial data is displayed for this metric","google-site-kit")})]})}AudienceTilePagesMetricContent.propTypes={topContentTitles:r().object,topContent:r().object,isTopContentPartialData:r().bool,hasCustomDimension:r().bool,onCreateCustomDimension:r().func,isSaving:r().bool};var Ye=i(69908),qe=i(68832);function AudienceTilePagesMetric({audienceTileNumber:e,audienceSlug:t,TileIcon:n,title:o,topContent:r,topContentTitles:l,isTopContentPartialData:u}){const p=(0,N.dv)(),m=(0,W.A)(),h=q.Cu.googlesitekit_post_type.parameterName,f=(0,c.useSelect)(e=>!e(q.K9).hasCustomDimensions(h)),_=(0,c.useSelect)(e=>e(Q.oR).hasScope(q.S9)),y=(0,Pe.F)(i.g.location.href,{notification:"audience_segmentation",widgetArea:Ye.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION}),v=(0,Pe.F)(i.g.location.href,{widgetArea:Ye.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION}),k=(0,qe.A)(q.CV,"isAutoCreatingCustomDimensionsForAudience"),x=(0,c.useSelect)(e=>e(q.K9).isCreatingCustomDimension(h)),A=(0,c.useSelect)(e=>e(q.K9).isFetchingSyncAvailableCustomDimensions()),b=(0,c.useSelect)(e=>e(q.K9).getCreateCustomDimensionError(h)),I=(0,c.useSelect)(e=>e(q.K9).getPropertyID()),{clearError:S}=(0,c.useDispatch)(q.K9),{setValues:j}=(0,c.useDispatch)(Ge.s),{setPermissionScopeError:E,clearPermissionScopeError:M}=(0,c.useDispatch)(Q.oR),w=(0,qe.A)(q.CV,"isRetrying"),C=(0,qe.A)(q.CV,"autoSubmit"),T=(0,c.useSelect)(e=>e(Fe.O4).getSetupErrorCode()),{setSetupErrorCode:D}=(0,c.useDispatch)(Fe.O4),R=C&&"access_denied"===T,O=(0,a.useCallback)(({isRetrying:e}={})=>{j(q.CV,{autoSubmit:!0,isRetrying:e}),_||E({code:d.db,message:(0,g.__)("Additional permissions are required to create new audiences in Analytics.","google-site-kit"),data:{status:403,scopes:[q.S9],skipModal:!0,skipDefaultErrorNotifications:!0,redirectURL:y,errorRedirectURL:v}})},[_,y,v,E,j]),L=(0,a.useCallback)(()=>{j(q.CV,{autoSubmit:!1,isRetrying:!1}),D(null),M(),S("createCustomDimension",[I,q.Cu.googlesitekit_post_type])},[S,M,I,D,j]),z=[N.mp,N.Lg].includes(p),P=k||x||A;return(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric googlesitekit-audience-segmentation-tile-metric--top-content",children:[(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__icon",children:(0,B.jsx)(n,{})}),(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__container",children:[(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__title",children:[o,!z&&u&&(0,B.jsx)(BadgeWithTooltip,{className:"googlesitekit-audience-segmentation-partial-data-badge",label:(0,g.__)("Partial data","google-site-kit"),onTooltipOpen:()=>{(0,U.sx)(`${m}_audiences-tile`,"view_top_content_partial_data_tooltip",t)},tooltipTitle:(0,g.__)("Still collecting full data for this timeframe, partial data is displayed for this metric","google-site-kit")})]}),(0,B.jsx)(AudienceTilePagesMetricContent,{topContentTitles:l,topContent:r,isTopContentPartialData:u,hasCustomDimension:!f,onCreateCustomDimension:O,isSaving:P}),0===e&&(b&&!P||w&&!k||R)&&(0,B.jsx)(s.A,{apiErrors:[b],title:(0,g.__)("Failed to enable metric","google-site-kit"),description:(0,g.__)("Oops! Something went wrong. Retry enabling the metric.","google-site-kit"),onRetry:()=>O({isRetrying:!0}),onCancel:L,inProgress:P,hasOAuthError:R,trackEventCategory:`${m}_audiences-top-content-cta`})]})]})}AudienceTilePagesMetric.propTypes={audienceTileNumber:r().number,audienceSlug:r().string.isRequired,TileIcon:r().elementType.isRequired,title:r().string.isRequired,topContent:r().object,topContentTitles:r().object,isTopContentPartialData:r().bool};var Qe,Ze,Ke,$e,Xe,Je,et,tt,it,st,nt=i(74655);function ot(){return ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},ot.apply(null,arguments)}const rt=e=>a.createElement("svg",ot({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 109 94"},e),Qe||(Qe=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"})),Ze||(Ze=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"})),Ke||(Ke=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"})),$e||($e=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"})),Xe||(Xe=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"}}),Je||(Je=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"})),et||(et=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"})),tt||(tt=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"})),it||(it=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"})),st||(st=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,B.jsxs)(a.Fragment,{children:[(0,B.jsx)(rt,{className:"googlesitekit-audience-segmentation-tile__zero-data-image"}),(0,B.jsx)("p",{className:"googlesitekit-audience-segmentation-tile__zero-data-description",children:(0,g.__)("Site Kit is collecting data for this group.","google-site-kit")})]})}var at;function lt(){return lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},lt.apply(null,arguments)}const ct=e=>a.createElement("svg",lt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"},e),at||(at=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,B.jsxs)(a.Fragment,{children:[(0,B.jsx)("p",{className:"googlesitekit-audience-segmentation-tile__zero-data-description",children:(0,g.__)("You can hide this group until data is available.","google-site-kit")}),(0,B.jsx)(z.A,{className:"googlesitekit-audience-segmentation-tile-hide-cta",onClick:e,leadingIcon:(0,B.jsx)(ct,{width:22,height:22}),secondary:!0,linkButton:!0,children:(0,g.__)("Temporarily hide","google-site-kit")})]})}AudienceTileCollectingDataHideable.propTypes={onHideTile:r().func.isRequired};const dt=(0,a.forwardRef)(({Widget:e,audienceSlug:t,title:i,infoTooltip:s,isMobileBreakpoint:n,isTileHideable:o,onHideTile:r},a)=>{const l=(0,W.A)();return(0,B.jsx)(e,{ref:a,noPadding:!0,children:(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile",children:(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__zero-data-container",children:[!n&&(0,B.jsx)("div",{className:"googlesitekit-audience-segmentation-tile__header",children:(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__header-title",children:[i,s&&(0,B.jsx)(Ue.A,{title:s,tooltipClassName:"googlesitekit-info-tooltip__content--audience",onOpen:()=>(0,U.sx)(`${l}_audiences-tile`,"view_tile_tooltip",t)})]})}),(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__zero-data-content",children:[(0,B.jsx)(AudienceTileCollectingData,{}),o&&(0,B.jsx)(AudienceTileCollectingDataHideable,{onHideTile:r})]})]})})})});dt.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 ut=dt,gt=(0,F.A)(ut);function AudienceTileZeroData({Widget:e,audienceSlug:t,title:i,infoTooltip:s,isMobileBreakpoint:n,isTileHideable:o,onHideTile:r}){const a=(0,W.A)();return(0,B.jsx)(gt,{Widget:e,audienceSlug:t,title:i,infoTooltip:s,isMobileBreakpoint:n,isTileHideable:o,onHideTile:function(){(0,U.sx)(`${a}_audiences-tile`,"temporarily_hide",t).finally(r)},onInView:()=>{(0,U.sx)(`${a}_audiences-tile`,"view_tile_collecting_data",t)}})}function AudienceTile({audienceTileNumber:e=0,audienceSlug:t,title:i,infoTooltip:s,visitors:n,visitsPerVisitor:o,pagesPerVisit:r,pageviews:a,percentageOfTotalPageViews:l,topCities:d,topContent:u,topContentTitles:p,hasInvalidCustomDimensionError:m,Widget:h,audienceResourceName:f,isZeroData:_,isPartialData:y,isTileHideable:v,onHideTile:k}){const x=(0,N.dv)(),A=(0,W.A)(),b=(0,ge.A)(),I=(0,c.useInViewSelect)(e=>{const t=e(q.K9).getPropertyID();return t&&e(q.K9).isPropertyPartialData(t)}),S=(0,c.useSelect)(e=>e(q.K9).isSiteKitAudience(f)),j=(0,c.useInViewSelect)(e=>!S&&void 0!==I&&(!I&&f&&e(q.K9).isAudiencePartialData(f)),[I,S,f]),E=(0,c.useInViewSelect)(e=>void 0!==I&&(!I&&!j&&e(q.K9).isCustomDimensionPartialData("googlesitekit_post_type")),[j]),M=(0,c.useInViewSelect)(e=>e(q.K9).hasCustomDimensions("googlesitekit_post_type"),[]),w=[N.mp,N.Lg].includes(x);return y&&_?(0,B.jsx)(AudienceTileZeroData,{Widget:h,audienceSlug:t,title:i,infoTooltip:s,isMobileBreakpoint:w,isTileHideable:v,onHideTile:k}):(0,B.jsx)(h,{noPadding:!0,children:(0,B.jsxs)("div",{className:xe()("googlesitekit-audience-segmentation-tile",{"googlesitekit-audience-segmentation-tile--partial-data":j}),children:[!w&&(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__header",children:[(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__header-title",children:[i,s&&(0,B.jsx)(Ue.A,{title:s,tooltipClassName:"googlesitekit-info-tooltip__content--audience",onOpen:()=>(0,U.sx)(`${A}_audiences-tile`,"view_tile_tooltip",t)})]}),j&&(0,B.jsx)(BadgeWithTooltip,{className:"googlesitekit-audience-segmentation-partial-data-badge",label:(0,g.__)("Partial data","google-site-kit"),tooltipTitle:(0,g.__)("Still collecting full data for this timeframe, partial data is displayed for this group","google-site-kit"),onTooltipOpen:()=>{(0,U.sx)(`${A}_audiences-tile`,"view_tile_partial_data_tooltip",t)}})]}),(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__metrics",children:[w&&j&&(0,B.jsx)(PartialDataNotice,{content:(0,g.__)("Still collecting full data for this timeframe, partial data is displayed for this group","google-site-kit")}),(0,B.jsx)(AudienceTileMetric,{TileIcon:be,title:(0,g.__)("Visitors","google-site-kit"),metricValue:n.currentValue,Badge:()=>(0,B.jsx)(nt.A,{previousValue:n.previousValue,currentValue:n.currentValue})}),(0,B.jsx)(AudienceTileMetric,{TileIcon:je,title:(0,g.__)("Visits per visitor","google-site-kit"),metricValue:o.currentValue,Badge:()=>(0,B.jsx)(nt.A,{previousValue:o.previousValue,currentValue:o.currentValue})}),(0,B.jsx)(AudienceTileMetric,{TileIcon:Ne,title:(0,g.__)("Pages per visit","google-site-kit"),metricValue:r.currentValue,Badge:()=>(0,B.jsx)(nt.A,{previousValue:r.previousValue,currentValue:r.currentValue}),metricValueFormat:{style:"decimal",maximumFractionDigits:2}}),(0,B.jsx)(AudienceTileMetric,{TileIcon:Te,title:(0,g.sprintf)(/* translators: %s: is a percentage value such as 33.3%. */ /* translators: %s: is a percentage value such as 33.3%. */ (0,g.__)("%s of total pageviews","google-site-kit"),(0,U.Eo)(l,{style:"percent",maximumFractionDigits:1})),metricValue:a.currentValue,Badge:()=>(0,B.jsx)(nt.A,{previousValue:a.previousValue,currentValue:a.currentValue})}),(0,B.jsx)(AudienceTileCitiesMetric,{TileIcon:Oe,title:(0,g.__)("Cities with the most visitors","google-site-kit"),topCities:d}),(!b||M&&!m)&&(0,B.jsx)(AudienceTilePagesMetric,{audienceTileNumber:e,audienceSlug:t,TileIcon:Be,title:(0,g.__)("Top content by pageviews","google-site-kit"),topContentTitles:p,topContent:u,isTopContentPartialData:E})]})]})})}function AudienceTooltipMessage({audienceSlug:e,audienceName:t}){const i=(0,c.useSelect)(e=>e(Fe.O4).getDocumentationLinkURL("visitor-group-insights"));return(0,a.useMemo)(()=>{switch(e){case"new-visitors":return(0,L.A)((0,g.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */ (0,g.__)('%s are people who visited your site for the first time. Note that under some circumstances it\'s possible for a visitor to be counted in both the "new" and "returning" groups. <link>Learn more</link>',"google-site-kit"),"<strong>New visitors</strong>"),{strong:(0,B.jsx)("strong",{}),link:(0,B.jsx)(z.A,{href:i,external:!0,hideExternalIndicator:!0})});case"returning-visitors":return(0,L.A)((0,g.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */ (0,g.__)('%s are people who have visited your site at least once before. Note that under some circumstances it\'s possible for a visitor to be counted in both the "new" and "returning" groups. <link>Learn more</link>',"google-site-kit"),"<strong>Returning visitors</strong>"),{strong:(0,B.jsx)("strong",{}),link:(0,B.jsx)(z.A,{href:i,external:!0,hideExternalIndicator:!0})});default:return(0,L.A)((0,g.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */ (0,g.__)("%s is an audience that already exists in your Analytics property. Note that it's possible for a visitor to be counted in more than one group. <link>Learn more</link>","google-site-kit"),`<strong>${t}</strong>`),{strong:(0,B.jsx)("strong",{}),link:(0,B.jsx)(z.A,{href:i,external:!0,hideExternalIndicator:!0})})}},[e,t,i])}var pt,mt,ht,ft,_t,yt,vt,kt,xt,At,bt,It,St,jt,Et,Mt,Nt,wt,Ct,Tt,Dt,Rt,Ot,Lt,zt,Bt,Pt,Gt,Ft,Ut,Wt,Vt,Ht,Yt,qt,Qt,Zt,Kt,$t,Xt,Jt,ei,ti,ii,si,ni,oi,ri,ai,li,ci,di,ui,gi,pi,mi,hi,fi,_i,yi,vi,ki,xi,Ai,bi,Ii,Si,ji,Ei,Mi;function Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Ni.apply(null,arguments)}AudienceTileZeroData.propTypes={Widget:r().elementType.isRequired,audienceSlug:r().string.isRequired,title:r().string.isRequired,infoTooltip:r().oneOfType([r().string,r().element]),isMobileBreakpoint:r().bool,isTileHideable:r().bool,onHideTile:r().func},AudienceTile.propTypes={audienceTileNumber:r().number,audienceSlug:r().string.isRequired,title:r().string.isRequired,infoTooltip:r().oneOfType([r().string,r().element]),visitors:r().object,visitsPerVisitor:r().object,pagesPerVisit:r().object,pageviews:r().object,percentageOfTotalPageViews:r().number,topCities:r().object,topContent:r().object,topContentTitles:r().object,hasInvalidCustomDimensionError:r().bool,Widget:r().elementType.isRequired,audienceResourceName:r().string.isRequired,isZeroData:r().bool,isPartialData:r().bool,isTileHideable:r().bool,onHideTile:r().func},AudienceTooltipMessage.propTypes={audienceSlug:r().string.isRequired};const wi=e=>a.createElement("svg",Ni({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 211 109"},e),pt||(pt=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"}}),mt||(mt=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"})),ht||(ht=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"})),ft||(ft=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"})),_t||(_t=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"})),yt||(yt=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"})),vt||(vt=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"})),kt||(kt=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"})),xt||(xt=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"})),At||(At=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"})),bt||(bt=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"})),It||(It=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"})),St||(St=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"})),jt||(jt=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"})),Et||(Et=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"})),Mt||(Mt=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"})),Nt||(Nt=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"})),wt||(wt=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"})),Ct||(Ct=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:1.472,d:"m39.988 67.196.768 37.221"})),Tt||(Tt=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"})),Dt||(Dt=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"})),Rt||(Rt=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"})),Ot||(Ot=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"})),Lt||(Lt=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"})),zt||(zt=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.472,d:"M45.22 104.418h-4.47"})),Bt||(Bt=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"})),Pt||(Pt=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"})),Gt||(Gt=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"})),Ft||(Ft=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"})),Ut||(Ut=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"})),Wt||(Wt=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"})),Vt||(Vt=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"})),Ht||(Ht=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"})),Yt||(Yt=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"})),qt||(qt=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"})),Qt||(Qt=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"})),Zt||(Zt=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"})),Kt||(Kt=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"})),$t||($t=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"})),Xt||(Xt=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"})),Jt||(Jt=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"})),ei||(ei=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"})),ti||(ti=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"})),ii||(ii=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"})),si||(si=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"})),ni||(ni=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"})),oi||(oi=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"})),ri||(ri=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"})),ai||(ai=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"})),li||(li=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"})),ci||(ci=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"})),di||(di=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"})),ui||(ui=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"})),gi||(gi=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"})),pi||(pi=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"})),mi||(mi=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"})),hi||(hi=a.createElement("path",{fill:"#77AD8C",d:"m57.84 49.763-3.38 33.985 68.342 6.303 1.443-32.81z"})),fi||(fi=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"})),_i||(_i=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"})),yi||(yi=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"})),vi||(vi=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"})),ki||(ki=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"})),xi||(xi=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"})),Ai||(Ai=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"})),bi||(bi=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"})),Ii||(Ii=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"})),Si||(Si=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"})),ji||(ji=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"})),Ei||(Ei=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"})),Mi||(Mi=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"}))),Ci="audience-segmentation-add-group-notice",Ti="googlesitekit-audience-selection-panel-opened",Di="audience-selection-form",Ri="audience-selected",Oi="audience-selection-changed",Li="audience-selection-dismissed-items-error",zi="audience-segmentation-creation-notice",Bi="audience-segmentation-creation-success-notice",Pi=1,Gi=3,Fi="audience-creation-edit-scope-notice",Ui="audience-creation-form";function PlaceholderTile({Widget:e}){const t=(0,c.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,c.useSelect)(e=>e(Fe.O4).getGoogleSupportURL({path:"/analytics/answer/12799087"})),{setValue:s}=(0,c.useDispatch)(u.n),n=(0,B.jsx)(z.A,{href:i,secondary:!0,external:!0});return(0,B.jsx)(e,{className:"googlesitekit-audience-segmentation-tile-placeholder",children:(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-placeholder__container",children:[(0,B.jsx)(wi,{className:"googlesitekit-audience-segmentation-tile-placeholder__image"}),(0,B.jsxs)("div",{className:xe()("googlesitekit-audience-segmentation-tile-placeholder__body",{"googlesitekit-audience-segmentation-tile-placeholder__body--without-selectable-audiences":!t}),children:[(0,B.jsx)(T.A,{as:"h3",type:"title",size:"small",className:"googlesitekit-audience-segmentation-tile-placeholder__title",children:t?(0,g.__)("Compare your group to other groups","google-site-kit"):(0,g.__)("Create more visitor groups","google-site-kit")}),(0,B.jsx)("p",{className:"googlesitekit-audience-segmentation-tile-placeholder__description",children:t?(0,L.A)((0,g.__)("<SelectGroupLink>Select</SelectGroupLink> another group to compare with your current group or learn more about how to group site visitors in <AnalyticsLink>Analytics</AnalyticsLink>","google-site-kit"),{AnalyticsLink:n,SelectGroupLink:(0,B.jsx)(z.A,{onClick:()=>s(Ti,!0),secondary:!0})}):(0,L.A)((0,g.__)("Learn more about how to group site visitors in <AnalyticsLink>Analytics</AnalyticsLink>","google-site-kit"),{AnalyticsLink:n})})]})]})})}function MaybePlaceholderTile({Widget:e,loading:t,allTilesError:i,visibleAudienceCount:s}){return!1!==i&&!t||1!==s?null:t?(0,B.jsx)(e,{noPadding:!0,children:(0,B.jsx)(AudienceTileLoading,{})}):(0,B.jsx)(PlaceholderTile,{Widget:e})}function Body({activeTileIndex:e,allTilesError:t,individualTileErrors:i,loading:s,topCitiesReportsLoaded:n,topContentReportsLoaded:o,topContentPageTitlesReportsLoaded:r,visibleAudiences:l,Widget:d}){const u=(0,N.dv)(),g=(0,ge.A)(),p=u===N.mp||u===N.Lg,m=(0,c.useInViewSelect)(e=>e(q.K9).getOrSyncAvailableAudiences(),[]),h=(0,c.useInViewSelect)(e=>e(Q.oR).getConfiguredAudiences(),[]),[f,_]=(0,c.useSelect)(e=>e(q.K9).getConfiguredSiteKitAndOtherAudiences())||[[],[]],y=(0,c.useSelect)(e=>e(q.K9).hasAudiencePartialData(f)),v=(0,c.useInViewSelect)(e=>h?.reduce((t,i)=>(t[i]=e(q.K9).isAudiencePartialData(i),t),{}),[h]),{report:k,reportError:x,siteKitAudiencesReport:A,totalPageviews:b,totalPageviewsReportError:I,topCitiesReport:S,topContentReport:j,topContentReportErrors:E,topContentPageTitlesReport:M,topContentPageTitlesReportErrors:w}=J({isSiteKitAudiencePartialData:y,siteKitAudiences:f,otherAudiences:_});function C(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=f.some(t=>t.name===e),i=f.find(t=>t.name===e)?.audienceSlug;function s(s){let n;if(t&&y){const e="new-visitors"===i?"new":"returning";n=A?.rows?.find(({dimensionValues:t})=>t?.[0]?.value===e&&t?.[1]?.value===s)}else n=k?.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],d=n[2],u=o[2],g=n[3],p=o[3],h=S?.[t],_=j?.[t],x=M?.[t]?.rows?.reduce((e,t)=>(e[t.dimensionValues[0].value]=t.dimensionValues[1].value,e),{})||{},b=f.some(t=>t.name===e);let I=k,E=e;b&&y&&(I=A,E="new-visitors"===s?"new":"returning");const N=function(e,t){const i=e?.rows?.find(e=>e.dimensionValues?.[0]?.value===t);return 0===(i?.metricValues?.[0]?.value||0)}(I,E);return{audienceName:i,audienceSlug:s,visitors:r,prevVisitors:a,visitsPerVisitors:l,prevVisitsPerVisitors:c,pagesPerVisit:d,prevPagesPerVisit:u,pageviews:g,prevPageviews:p,topCities:h,topContent:_,topContentTitles:x,isZeroData:N,isPartialData:!b&&v[e]}}const T=Object.values(E).some(Z.B)||Object.values(w).some(Z.B),{dismissItem:D}=(0,c.useDispatch)(Q.oR),{fetchSyncAvailableCustomDimensions:R}=(0,c.useDispatch)(q.K9),O=(0,a.useCallback)(e=>{D(`audience-tile-${e}`)},[D]);(0,a.useEffect)(()=>{!g&&T&&R()},[R,T,g]);let L=0;return(0,B.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[t&&!s&&(0,B.jsx)(Y,{Widget:d,errors:[...Object.values(i).flat(2),x,I]}),(!1===t||s)&&l.map((t,a)=>{if(p&&a!==e)return null;const{audienceName:c,audienceSlug:u,visitors:g,prevVisitors:m,visitsPerVisitors:h,prevVisitsPerVisitors:f,pagesPerVisit:_,prevPagesPerVisit:y,pageviews:v,prevPageviews:k,topCities:x,topContent:A,topContentTitles:I,isZeroData:S,isPartialData:j}=C(t,a),E=x?.rows?(0,K.S)(x.rows):[];return!s&&n?.[t]&&o?.[t]&&r?.[t]&&void 0!==S&&void 0!==j?i[t].length>0?(0,B.jsx)(AudienceTileError,{audienceSlug:u,errors:i[t]},t):(0,B.jsx)(AudienceTile,{audienceTileNumber:L++,audienceSlug:u,title:c,infoTooltip:(0,B.jsx)(AudienceTooltipMessage,{audienceName:c,audienceSlug:u}),visitors:{currentValue:g,previousValue:m},visitsPerVisitor:{currentValue:h,previousValue:f},pagesPerVisit:{currentValue:_,previousValue:y},pageviews:{currentValue:v,previousValue:k},percentageOfTotalPageViews:0!==b?v/b:0,topCities:{dimensionValues:[E?.[0]?.dimensionValues?.[0],E?.[1]?.dimensionValues?.[0],E?.[2]?.dimensionValues?.[0]],metricValues:[E?.[0]?.metricValues?.[0],E?.[1]?.metricValues?.[0],E?.[2]?.metricValues?.[0]],total:g},topContent:{dimensionValues:[A?.rows?.[0]?.dimensionValues?.[0],A?.rows?.[1]?.dimensionValues?.[0],A?.rows?.[2]?.dimensionValues?.[0]],metricValues:[A?.rows?.[0]?.metricValues?.[0],A?.rows?.[1]?.metricValues?.[0],A?.rows?.[2]?.metricValues?.[0]]},topContentTitles:I,hasInvalidCustomDimensionError:T,Widget:d,audienceResourceName:t,isZeroData:S,isPartialData:j,isTileHideable:l.length>1,onHideTile:()=>O(t)},t):(0,B.jsx)(d,{noPadding:!0,children:(0,B.jsx)(AudienceTileLoading,{})},t)}),!p&&(0,B.jsx)(MaybePlaceholderTile,{Widget:d,loading:s,allTilesError:t,visibleAudienceCount:l.length})]})}function Header({activeTileIndex:e,setActiveTile:t,visibleAudiences:i}){const s=(0,W.A)(),n=(0,c.useInViewSelect)(e=>e(q.K9).getOrSyncAvailableAudiences(),[]);return(0,B.jsx)(R.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,B.jsx)(AudienceTooltipMessage,{audienceName:i,audienceSlug:o});return(0,B.jsxs)(R.Tab,{"aria-label":i,children:[i,(0,B.jsx)(Ue.A,{title:r,tooltipClassName:"googlesitekit-info-tooltip__content--audience",onOpen:()=>{(0,U.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,N.dv)(),s=i===N.mp||i===N.Lg,n=(0,c.useInViewSelect)(e=>e(Q.oR).getConfiguredAudiences(),[]),o=(0,c.useInViewSelect)(e=>e(q.K9).getOrSyncAvailableAudiences(),[]),[r,l]=(0,c.useSelect)(e=>e(q.K9).getConfiguredSiteKitAndOtherAudiences())||[[],[]],d=(0,c.useSelect)(e=>e(q.K9).hasAudiencePartialData(r)),{report:u,reportLoaded:g,reportError:p,siteKitAudiencesReport:m,siteKitAudiencesReportLoaded:h,siteKitAudiencesReportError:f,totalPageviewsReportLoaded:_,totalPageviewsReportError:y,topCitiesReportsLoaded:v,topCitiesReportErrors:k,topContentReportsLoaded:x,topContentReportErrors:A,topContentPageTitlesReportsLoaded:b,topContentPageTitlesReportErrors:I}=J({isSiteKitAudiencePartialData:d,siteKitAudiences:r,otherAudiences:l}),S=n?.reduce((e,t)=>(e[t]=[],[k,A,I].forEach(i=>{const s=i[t];s&&!(0,Z.B)(s)&&e[t].push(s)}),e),{}),j=(0,c.useSelect)(e=>e(Q.oR).getDismissedItems()),{isDismissingItem:E}=(0,c.useSelect)(e=>e(Q.oR)),{dismissItem:M}=(0,c.useDispatch)(Q.oR),w=(0,a.useRef)({}),[C,T]=(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=j?.includes(`audience-tile-${s}`),o=r.some(e=>e.name===s);let a=u,l=s;if(o&&d){a=m;const e=r.find(e=>e.name===s)?.audienceSlug;l="new-visitors"===e?"new":"returning"}const c=AudienceTiles_hasZeroDataForAudience(a,l),g=i.length+t.length>0;n&&c&&g||(n&&!c&&e.push(s),t.push(s))}return[e,t]},[o,n,j,d,u,r,m]);const D=function(){const e=[];return u&&e.push(p),m&&e.push(f),!(!e.every(Boolean)&&!y)||n?.every(e=>S[e].length>0)}();(0,a.useEffect)(()=>{C.forEach(e=>{const t=`audience-tile-${e}`;w.current[t]||(M(t,{expiresInSeconds:1}),w.current[t]=!0)})},[C,M,E]);const R=(0,c.useSelect)(e=>e(q.K9).isFetchingSyncAvailableCustomDimensions()),[O,L]=(0,a.useState)(T[0]),z=(0,a.useCallback)(e=>{const t=T.indexOf(e);return-1===t?0:t},[T]);(0,a.useEffect)(()=>{T.includes(O)||L(T[0])},[O,T]);const P=z(O),G=t||!g||!h||!_||!v||!x||!b||R;return(0,B.jsxs)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:[!1===D&&!G&&s&&T.length>0&&(0,B.jsx)(Header,{activeTileIndex:P,setActiveTile:L,visibleAudiences:T}),(0,B.jsx)(Body,{activeTileIndex:P,allTilesError:D,individualTileErrors:S,loading:G,topCitiesReportsLoaded:v,topContentReportsLoaded:x,topContentPageTitlesReportsLoaded:b,visibleAudiences:T,Widget:e})]})}MaybePlaceholderTile.propTypes={Widget:r().elementType.isRequired,loading:r().bool.isRequired,allTilesError:r().bool,visibleAudienceCount:r().number.isRequired},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};var Wi=i(88273);const Vi=(0,a.forwardRef)(({className:e,children:t,Icon:i,SVGGraphic:s},n)=>(0,B.jsxs)("div",{ref:n,className:xe()("googlesitekit-lean-cta-banner",e),children:[(0,B.jsxs)("div",{className:"googlesitekit-lean-cta-banner__body",children:[i&&(0,B.jsx)("div",{className:"googlesitekit-lean-cta-banner__body-icon",children:(0,B.jsx)(i,{width:"32",height:"32"})}),(0,B.jsx)("div",{className:"googlesitekit-lean-cta-banner__body-content",children:t})]}),s&&(0,B.jsx)("div",{className:"googlesitekit-lean-cta-banner__graphic",children:(0,B.jsx)(s,{})})]}));Vi.propTypes={className:r().string,children:r().node.isRequired,Icon:r().elementType,SVGGraphic:r().elementType};const Hi=Vi;var Yi=i(70301);const qi=(0,a.forwardRef)((e,t)=>{const i=(0,W.A)(),s=(0,ge.A)(),n=(0,c.useSelect)(e=>e(Q.oR).didSetAudiences()),o=(0,c.useSelect)(e=>e(Wi.i).getModuleIcon(V.L1)),r=(0,c.useSelect)(e=>e(Fe.O4).getSiteKitAdminSettingsURL({scrollTo:"visitor-groups"})),{setValue:a}=(0,c.useDispatch)(u.n),{navigateTo:l}=(0,c.useDispatch)(Yi.M),d=n?"no-longer-available":"none-selected";function p(){(0,U.sx)(`${i}_audiences-no-audiences`,"select_groups",d).finally(()=>{a(Ti,!0)})}return(0,B.jsxs)(Hi,{ref:t,className:"googlesitekit-no-audience-banner",Icon:o,SVGGraphic:wi,children:[(0,B.jsxs)(D.A,{children:[n&&(0,L.A)((0,g.__)("It looks like your visitor groups aren’t available anymore. <a>Select other groups</a>.","google-site-kit"),{a:(0,B.jsx)(z.A,{onClick:p,secondary:!0})}),!n&&(0,L.A)((0,g.__)("You don’t have any visitor groups selected. <a>Select groups</a>.","google-site-kit"),{a:(0,B.jsx)(z.A,{onClick:p,secondary:!0})})]}),!s&&(0,B.jsx)(D.A,{children:(0,L.A)((0,g.__)("You can deactivate this widget in <a>Settings</a>.","google-site-kit"),{a:(0,B.jsx)(z.A,{onClick:()=>{(0,U.sx)(`${i}_audiences-no-audiences`,"change_settings",d).finally(()=>{l(r)})},secondary:!0})})})]})}),Qi=(0,F.A)(qi);function NoAudienceBannerWidget({Widget:e,WidgetNull:t}){const i=(0,W.A)(),s=(0,c.useSelect)(e=>{const t=e(q.K9).getOrSyncAvailableAudiences();return t?.map(e=>e.name)}),n=(0,c.useSelect)(e=>e(Q.oR).getConfiguredAudiences()),o=(0,c.useSelect)(e=>e(Q.oR).didSetAudiences()),r=n?.every(e=>Array.isArray(s)&&!s.includes(e));return n&&(0===n?.length||r)?(0,B.jsx)(e,{noPadding:!0,children:(0,B.jsx)(Qi,{onInView:()=>{(0,U.sx)(`${i}_audiences-no-audiences`,"view_banner",o?"no-longer-available":"none-selected")}})}):(0,B.jsx)(t,{})}NoAudienceBannerWidget.propTypes={Widget:r().elementType.isRequired,WidgetNull:r().elementType.isRequired};const Zi=(0,l.A)({moduleName:V.L1})(NoAudienceBannerWidget);var Ki=i(79754);function AudienceTilesWidget({Widget:e}){const t=(0,c.useSelect)(e=>{const t=e(q.K9).getOrSyncAvailableAudiences();return t?.map(e=>e.name)}),i=(0,c.useSelect)(e=>e(Q.oR).getConfiguredAudiences()),s=(0,c.useSelect)(e=>e(q.K9).hasSyncedAudiences()),n=(0,c.useSelect)(e=>e(q.K9).isSyncingAudiences()),{clearErrors:o,maybeSyncAvailableAudiences:r,syncAvailableAudiences:l}=(0,c.useDispatch)(q.K9),u=(0,c.useSelect)(e=>e(q.K9).isSettingUpAudiences()),g=(0,c.useSelect)(e=>e(q.K9).getErrorForAction("syncAvailableAudiences"));if((0,a.useEffect)(()=>{s||n||u||r()},[s,n,u,r]),g){const t=(0,d.SG)(g);return(0,B.jsx)(Y,{errors:g,Widget:e,onRetry:t?void 0:async()=>{await o("syncAvailableAudiences"),await l()},showRetryButton:!t})}const p=i?.some(e=>t?.includes(e));return p?(0,B.jsx)(AudienceTiles,{Widget:e,widgetLoading:!s||!t||!i}):s?(0,B.jsx)(Zi,{Widget:e,WidgetNull:Ki.A}):(0,B.jsx)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:(0,B.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[(0,B.jsx)(e,{noPadding:!0,children:(0,B.jsx)(AudienceTileLoading,{})}),(0,B.jsx)(e,{noPadding:!0,children:(0,B.jsx)(AudienceTileLoading,{})})]})})}AudienceTilesWidget.propTypes={Widget:r().elementType.isRequired,WidgetNull:r().elementType.isRequired};const $i=(0,l.A)({moduleName:V.L1})(AudienceTilesWidget);var Xi,Ji=i(20762),es=i(3183),ts=i(60515),is=i(15650);function AudienceItem({slug:e,title:t,description:i,subtitle:s,userCount:n,audienceType:o}){const r=`${q.bz}${e}`,l=(0,qe.A)(Di,Ri),d=(0,c.useSelect)(e=>e(Q.oR).hasExpirableItem(r)),u=(0,c.useSelect)(e=>e(Q.oR).isExpirableItemActive(r)),[p,m]=(0,c.useSelect)(e=>e(q.K9).getAudienceUserCountReportErrors())||[],h=[];m&&h.push(m),p&&h.push(p);const{setValues:f}=(0,c.useDispatch)(Ge.s),_=(0,c.useSelect)(t=>t(Q.oR).isItemDismissed(`audience-tile-${e}`)),y=(0,a.useCallback)(t=>{f(Di,{[Ri]:t.target.checked?l.concat([e]):l.filter(t=>t!==e),[Oi]:!0})},[l,f,e]),v="DEFAULT_AUDIENCE"!==o&&(!1===d||u),k=l?.includes(e),x=`audience-selection-checkbox-${e}`;function ItemBadge(){return _?(0,B.jsx)(BadgeWithTooltip,{label:(0,g.__)("Temporarily hidden","google-site-kit"),tooltipTitle:(0,g.__)("Site Kit is collecting data for this group. Once data is available the group will be added to your dashboard.","google-site-kit")}):v?(0,B.jsx)(ts.A,{}):null}return(0,B.jsx)(is.y3,{id:x,slug:e,title:t,subtitle:s,description:i,isItemSelected:k,onCheckboxChange:y,suffix:h.length?"-":(0,U.Eo)(n),badge:(_||v)&&(0,B.jsx)(ItemBadge,{})})}function AudienceItemPreviewBlock(){return(0,B.jsxs)("div",{className:"googlesitekit-selection-panel__loading",children:[(0,B.jsxs)("div",{className:"googlesitekit-selection-panel__loading-left",children:[(0,B.jsx)(pe.A,{width:"90px",height:"20px",className:"googlesitekit-selection-panel__loading-item"}),(0,B.jsx)(pe.A,{width:"293px",height:"15px",className:"googlesitekit-selection-panel__loading-item"})]}),(0,B.jsx)("div",{className:"googlesitekit-selection-panel__loading-right",children:(0,B.jsx)(pe.A,{width:"43px",height:"20px",className:"googlesitekit-selection-panel__loading-item"})})]})}function ss(){return ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},ss.apply(null,arguments)}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};const ns=e=>a.createElement("svg",ss({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 23 22"},e),Xi||(Xi=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"})));var os;function rs(){return rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},rs.apply(null,arguments)}const as=e=>a.createElement("svg",rs({xmlns:"http://www.w3.org/2000/svg",fill:"none"},e),os||(os=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"}))),ls=(0,a.forwardRef)(({className:e,content:t,dismissLabel:i,Icon:s=as,onDismiss:n},o)=>(0,B.jsxs)("div",{ref:o,className:xe()("googlesitekit-audience-segmentation-info-notice",e),children:[(0,B.jsx)(s,{width:"20",height:"20"}),(0,B.jsxs)("div",{className:"googlesitekit-audience-segmentation-info-notice__body",children:[(0,B.jsx)(D.A,{children:t}),i&&(0,B.jsx)(R.Button,{onClick:n,className:"googlesitekit-audience-segmentation-info-notice__dismiss",tertiary:!0,children:i})]})]}));ls.propTypes={className:r().string,content:r().string.isRequired,dismissLabel:r().string,Icon:r().elementType,onDismiss:r().func};const cs=ls;function AddGroupNotice(){const[e,t]=(0,a.useState)(!1),i=(0,c.useInViewSelect)(e=>e(Q.oR).isItemDismissed(Ci)),s=(0,c.useSelect)(e=>e(u.n).getValue(Ti)),n=(0,c.useSelect)(e=>e(q.K9).isFetchingSyncAvailableAudiences()),o=(0,qe.A)(Di,Ri),{dismissItem:r}=(0,c.useDispatch)(Q.oR),l=(0,a.useCallback)(async()=>{await r(Ci)},[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,B.jsx)(cs,{className:"googlesitekit-audience-selection-panel__add-group-notice",content:(0,g.__)("By adding another group to your dashboard, you will be able to compare them and understand which content brings back users from each group","google-site-kit"),dismissLabel:(0,g.__)("Got it","google-site-kit"),Icon:ns,onDismiss:l})}AddGroupNotice.propTypes={savedItemSlugs:r().array};var ds=i(11763),us=i(25797);function AudienceCreationErrorNotice({apiErrors:e,hasOAuthError:t}){const i=(0,W.A)(),s=Array.isArray(e)?e:[e],n=(0,c.useSelect)(e=>e(Fe.O4).getErrorTroubleshootingLinkURL({code:"analytics-4_insufficient_permissions"})),o=(0,c.useSelect)(e=>e(q.K9).getServiceEntityAccessURL()),r=(0,c.useSelect)(e=>e(Fe.O4).getErrorTroubleshootingLinkURL({code:"access_denied"})),l=(0,c.useSelect)(e=>e(u.n).getValue(Ti)),p=s.length>0,m=s.some(e=>(0,d.SG)(e));if((0,a.useEffect)(()=>{if(!l||!p&&!t)return;let e="setup_error";t?e="auth_error":m&&(e="insufficient_permissions_error"),(0,U.sx)(`${i}_audiences-sidebar-create-audiences`,e)},[p,m,t,l,i]),!s.length&&!t)return null;let h,f;return t?f=(0,L.A)((0,g.__)("Setup was interrupted because you didn’t grant the necessary permissions. Click on Create again to retry. If that doesn’t work, <HelpLink />","google-site-kit"),{HelpLink:(0,B.jsx)(z.A,{href:r,external:!0,hideExternalIndicator:!0,children:(0,g.__)("get help","google-site-kit")})}):m?(h=(0,g.__)("Insufficient permissions","google-site-kit"),f=(0,L.A)((0,g.__)("Contact your administrator. Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:(0,B.jsx)(z.A,{href:n,external:!0,hideExternalIndicator:!0,children:(0,g.__)("Get help","google-site-kit")})})):(h=(0,g.__)("Analytics update failed","google-site-kit"),f=(0,g.__)("Click on Create to try again.","google-site-kit")),(0,B.jsx)(us.A,{className:"googlesitekit-audience-creation-error-notice",type:us.A.TYPES.ERROR,title:h,description:f,ctaButton:m?{label:(0,g.__)("Request access","google-site-kit"),href:o,onClick:()=>{(0,U.sx)(`${i}_audiences-sidebar-create-audiences`,"insufficient_permissions_error_request_access")}}:void 0,hideIcon:!0})}function AudienceCreationNotice(){const e=(0,W.A)(),[t,s]=(0,a.useState)(!1),n=(0,c.useInViewSelect)(e=>{const{getConfigurableAudiences:t}=e(q.K9),i=t();if(void 0!==i)return i.length?i.filter(({audienceType:e})=>"SITE_KIT_AUDIENCE"===e):[]}),{dismissItem:o}=(0,c.useDispatch)(Q.oR),{setValue:r}=(0,c.useDispatch)(u.n),l=(0,c.useInViewSelect)(e=>e(Q.oR).isItemDismissed(zi)),p=(0,c.useInViewSelect)(e=>e(Q.oR).isItemDismissed(Fi)),m=(0,c.useInViewSelect)(e=>e(Q.oR).hasScope(q.S9)),h=(0,c.useSelect)(e=>e(u.n).getValue(Ti));const f=(0,Pe.F)(i.g.location.href,{notification:"audience_segmentation"}),{setValues:_}=(0,c.useDispatch)(Ge.s),{setPermissionScopeError:y}=(0,c.useDispatch)(Q.oR),{createAudience:v,syncAvailableAudiences:k}=(0,c.useDispatch)(q.K9),x=(0,qe.A)(Ui,"autoSubmit"),A=(0,qe.A)(Ui,"audienceToCreate"),[b,I]=(0,a.useState)([]),S=(0,a.useCallback)(async e=>{if(s(e),!m)return _(Ui,{autoSubmit:!0,audienceToCreate:e}),void y({code:d.db,message:(0,g.__)("Additional permissions are required to create a new audience in Analytics.","google-site-kit"),data:{status:403,scopes:[q.S9],skipModal:!0,redirectURL:f}});_(Ui,{autoSubmit:!1,audienceToCreate:void 0});const{error:t}=await v(q.fB[e]);I(t?[t]:[]),await k(),s(!1),t||r(Bi,!0)},[m,v,k,_,y,f,r]);const j=(0,c.useSelect)(e=>e(Fe.O4).getSetupErrorCode()),E=x&&"access_denied"===j;(0,a.useEffect)(()=>{!async function(){m&&x&&(r(Ti,!0),await S(A))}()},[A,S,m,x,r]);const M=!l&&n?.length<2;if((0,a.useEffect)(()=>{h&&M&&(0,U.sx)(`${e}_audiences-sidebar-create-audiences`,"view_notice")},[h,M,e]),(0,a.useEffect)(()=>{!h||m||p||(0,U.sx)(`${e}_audiences-sidebar-create-audiences`,"view_oauth_notice")},[m,p,h,e]),!M)return null;const N=Object.keys(q.fB).filter(e=>!n.some(t=>t.audienceSlug===e));return(0,B.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice",children:[(0,B.jsx)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-header",children:(0,B.jsx)("p",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-title",children:(0,g.__)("Create groups suggested by Site Kit","google-site-kit")})}),(0,B.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-body",children:[N&&N.map(i=>(0,B.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience",children:[(0,B.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience-details",children:[(0,B.jsx)(T.A,{as:"h3",type:"title",size:"small",children:q.fB[i].displayName}),(0,B.jsx)("p",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience-description",children:q.fB[i].description})]}),(0,B.jsx)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience-button",children:(0,B.jsx)(ds.A,{spinnerPosition:ds.k.BEFORE,onClick:()=>{(0,U.sx)(`${e}_audiences-sidebar-create-audiences`,"create_audience",i).finally(()=>{S(i)})},isSaving:t===i,children:(0,g.__)("Create","google-site-kit")})})]},i)),(0,B.jsx)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-dismiss",children:(0,B.jsx)(z.A,{onClick:function(){o(zi)},children:(0,g.__)("No thanks","google-site-kit")})})]}),!m&&!p&&(0,B.jsx)(us.A,{type:us.A.TYPES.WARNING,description:(0,g.__)("Creating these groups require more data tracking. You will be directed to update your Analytics property.","google-site-kit"),dismissButton:{onClick:function(){(0,U.sx)(`${e}_audiences-sidebar-create-audiences`,"dismiss_oauth_notice").finally(()=>{o(Fi)})}},hideIcon:!0}),(b.length>0||E)&&(0,B.jsx)(AudienceCreationErrorNotice,{apiErrors:b,hasOAuthError:E})]})}function AudienceItems({savedItemSlugs:e=[]}){const[t,i]=(0,a.useState)(!0),{setExpirableItemTimers:s}=(0,c.useDispatch)(Q.oR),{syncAvailableAudiences:n}=(0,c.useDispatch)(q.K9),o=(0,ge.A)(),r=(0,c.useSelect)(e=>e(u.n).getValue(Ti)),l=(0,c.useSelect)(e=>e(q.K9).isFetchingSyncAvailableAudiences());(0,a.useEffect)(()=>{t&&r&&(i(!1),async function(){await n()}())},[t,r,n]);const d=(0,c.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),d=e(Q.oR).getDateRangeDates({offsetDays:q.f2}),u=c&&i({...d,metrics:[{name:"totalUsers"}],dimensions:[{name:"newVsReturning"}],reportID:"audience-segmentation_audience-items_component_newVsReturningReport"}),g=!1===c||!0===c&&l?.length>0?i(s(c?l:r)):{},{rows:p=[]}=u||{},{rows:m=[]}=g||{};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,g.__)("Created by default by Google Analytics","google-site-kit"),i="";break;case"SITE_KIT_AUDIENCE":r=(0,g.__)("Created by Site Kit","google-site-kit");break;case"USER_AUDIENCE":r=(0,g.__)("Already exists in your Analytics property","google-site-kit")}return{...e,[n]:{title:s,subtitle:i,description:r,userCount:o,audienceType:t}}}const m=d?.filter(({name:t})=>e.includes(t)).reduce(p,{}),h=d?.filter(({name:t})=>!e.includes(t)).reduce(p,{}),f=(0,c.useSelect)(e=>{if(void 0===d)return;const{hasFinishedResolution:t,hasExpirableItem:i}=e(Q.oR);return t("getExpirableItems")?d.filter(({audienceType:e,name:t})=>"DEFAULT_AUDIENCE"!==e&&!i(`${q.bz}${t}`)).map(({name:e})=>`${q.bz}${e}`):void 0});return(0,es.A)(()=>{r&&void 0!==f&&f.length&&s(f.map(e=>({slug:e,expiresInSeconds:4*U.Du})))},[r,s,f]),(0,B.jsx)(is.DW,{availableItemsTitle:(0,g.__)("Additional groups","google-site-kit"),availableSavedItems:m,availableUnsavedItems:h,ItemComponent:l?AudienceItemPreviewBlock:AudienceItem,savedItemSlugs:e,notice:(0,B.jsxs)(a.Fragment,{children:[(0,B.jsx)(AddGroupNotice,{}),!o&&(0,B.jsx)(AudienceCreationNotice,{})]})})}function RequestAccessButton({requestAccessURL:e}){const t=(0,W.A)();return(0,B.jsx)(R.Button,{className:"googlesitekit-audience-selection-panel__error-notice-action",href:e,target:"_blank",onClick:()=>{(0,U.sx)(`${t}_audiences-sidebar`,"insufficient_permissions_error_request_access")},tertiary:!0,children:(0,g.__)("Request access","google-site-kit")})}function RetryButton({handleRetry:e}){const t=(0,W.A)();return(0,B.jsx)(R.Button,{className:"googlesitekit-audience-selection-panel__error-notice-action",onClick:()=>{e(),(0,U.sx)(`${t}_audiences-sidebar`,"data_loading_error_retry")},tertiary:!0,children:(0,g.__)("Retry","google-site-kit")})}function SyncErrorNotice(){const e=(0,W.A)(),t=(0,c.useSelect)(e=>e(q.K9).getErrorForAction("syncAvailableAudiences")),[i,s]=(0,c.useInViewSelect)(e=>e(q.K9).getAudienceUserCountReportErrors())||[],n=(0,c.useSelect)(e=>e(Fe.O4).getErrorTroubleshootingLinkURL({code:"analytics-4_insufficient_permissions"})),o=(0,c.useSelect)(e=>e(u.n).getValue(Ti)),{clearError:r,syncAvailableAudiences:l}=(0,c.useDispatch)(q.K9),p=(0,a.useCallback)(async()=>{await r("syncAvailableAudiences"),l()},[r,l]),m=[];t&&m.push(t),s&&m.push(s),i&&m.push(i);const h=m.length>0,f=m.some(e=>(0,d.SG)(e));if((0,a.useEffect)(()=>{o&&h&&(0,U.sx)(`${e}_audiences-sidebar`,f?"insufficient_permissions_error":"data_loading_error")},[h,f,o,e]),!m.length)return null;const _=[s,i].some(e=>!!e);return(0,B.jsx)(us.A,{className:"googlesitekit-audience-selection-panel__error-notice googlesitekit-notice--error googlesitekit-notice--small googlesitekit-notice--square",type:us.A.TYPES.ERROR,description:f?(0,L.A)((0,g.__)("Insufficient permissions, contact your administrator. Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:(0,B.jsx)(z.A,{href:n,external:!0,hideExternalIndicator:!0,children:(0,g.__)("Get help","google-site-kit")})}):(0,g.__)("Data loading failed","google-site-kit"),hideIcon:!0,children:f||_?(0,B.jsx)(O.A,{moduleSlug:"analytics-4",error:m,buttonVariant:"danger",RequestAccessButton,RetryButton,hideGetHelpLink:!0}):(0,B.jsx)(RetryButton,{handleRetry:p})})}function Footer({isOpen:e,closePanel:t,savedItemSlugs:i}){const s=(0,W.A)(),n=(0,qe.A)(Di,Ri),{setValues:o}=(0,c.useDispatch)(Ge.s),r=(0,c.useSelect)(e=>e(Q.oR).isSavingUserAudienceSettings()),l=(0,c.useInViewSelect)(e=>{const t=e(Q.oR).getDismissedItems();return t?.filter(e=>e.startsWith("audience-tile-"))}),d=(0,c.useSelect)(e=>e(q.K9).getOrSyncAvailableAudiences()),{saveUserAudienceSettings:u,removeDismissedItems:g}=(0,c.useDispatch)(Q.oR),{getConfiguredAudiences:p}=(0,c.useSelect)(Q.oR),m=(0,a.useCallback)(async e=>{o(Di,{[Li]:null});let{error:t}=await u({configuredAudiences:e});if(!t){const i=l?.filter(t=>{const i=t.replace("audience-tile-","");return!e.includes(i)})||[];e.every(e=>l?.includes(`audience-tile-${e}`))&&i.push(`audience-tile-${e[0]}`),i?.length>0&&(({error:t}=await g(...i)),t&&o(Di,{[Li]:t}))}return{error:t}},[l,g,u,o]),h=(0,a.useCallback)(()=>{const e={USER_AUDIENCE:"user",SITE_KIT_AUDIENCE:"site-kit",DEFAULT_AUDIENCE:"default"},t=p(),i=Object.keys(e).map(i=>{const s=t.filter(e=>{const t=d?.find(({name:t})=>e===t);return t?.audienceType===i});return`${e[i]}:${s.length}`}).join(",");(0,U.sx)(`${s}_audiences-sidebar`,"audiences_sidebar_save",i)},[d,p,s]),f=(0,a.useCallback)(()=>{(0,U.sx)(`${s}_audiences-sidebar`,"audiences_sidebar_cancel")},[s]);return(0,B.jsx)(is.gy,{savedItemSlugs:i,selectedItemSlugs:n,saveSettings:m,minSelectedItemCount:Pi,maxSelectedItemCount:Gi,isBusy:r,isOpen:e,closePanel:t,onSaveSuccess:h,onCancel:f})}function Header_Header({closePanel:e}){const t=(0,ge.A)(),i=(0,c.useSelect)(e=>e(Fe.O4).getSiteKitAdminSettingsURL({scrollTo:"visitor-groups"})),s=(0,c.useSelect)(e=>e(Q.oR).isSavingUserAudienceSettings()),{navigateTo:n}=(0,c.useDispatch)(Yi.M),o=(0,a.useCallback)(()=>n(i),[i,n]);return(0,B.jsx)(is.W4,{title:(0,g.__)("Select visitor groups","google-site-kit"),onCloseClick:e,children:!t&&(0,B.jsx)(D.A,{children:(0,L.A)((0,g.__)("You can deactivate this widget in <link><strong>Settings</strong></link>","google-site-kit"),{link:(0,B.jsx)(z.A,{onClick:o,disabled:s,secondary:!0}),strong:(0,B.jsx)("strong",{})})})})}function LearnMoreLink(){const e=(0,c.useSelect)(e=>e(Fe.O4).getGoogleSupportURL({path:"/analytics/answer/12799087"}));return(0,B.jsx)("div",{className:"googlesitekit-audience-selection-panel__learn-more",children:(0,L.A)((0,g.__)("Learn more about grouping site visitors and audiences in <link><strong>Analytics</strong></link>","google-site-kit"),{link:(0,B.jsx)(z.A,{href:e,secondary:!0,external:!0}),strong:(0,B.jsx)("strong",{})})})}AudienceCreationErrorNotice.propTypes={apiErrors:r().oneOfType([r().arrayOf(r().object),r().object,r().array]),hasOAuthError:r().bool},AudienceItems.propTypes={savedItemSlugs:r().array},RequestAccessButton.propTypes={requestAccessURL:r().string.isRequired},RetryButton.propTypes={handleRetry:r().func.isRequired},Footer.propTypes={isOpen:r().bool,closePanel:r().func.isRequired,savedItemSlugs:r().array},Header_Header.propTypes={closePanel:r().func.isRequired};var gs=i(19793);function AudienceCreationSuccessNotice(){const e=(0,W.A)(),{setValue:t}=(0,c.useDispatch)(u.n),i=(0,c.useSelect)(e=>e(u.n).getValue(Bi)),s=(0,c.useSelect)(e=>e(u.n).getValue(Ti));return(0,a.useEffect)(()=>{s&&i&&(0,U.sx)(`${e}_audiences-sidebar-create-audiences-success`,"view_notification")},[s,i,e]),i?(0,B.jsxs)("div",{className:"googlesitekit-audience-selection-panel__success-notice",children:[(0,B.jsx)("div",{className:"googlesitekit-audience-selection-panel__success-notice-icon",children:(0,B.jsx)(gs.A,{width:24,height:24})}),(0,B.jsx)("p",{className:"googlesitekit-audience-selection-panel__success-notice-message",children:(0,g.__)("Visitor group created successfully!","google-site-kit")}),(0,B.jsx)("div",{className:"googlesitekit-audience-selection-panel__success-notice-actions",children:(0,B.jsx)(R.Button,{onClick:()=>{(0,U.sx)(`${e}_audiences-sidebar-create-audiences-success`,"dismiss_notification").finally(()=>{t(Bi,!1)})},tertiary:!0,children:(0,g.__)("Got it","google-site-kit")})})]}):null}var ps=i(52696),ms=i(65695);function SaveErrorNotice({savedItemSlugs:e}){const t=(0,qe.A)(Di,Ri),i=(0,qe.A)(Di,Li),s=(0,ps.ws)(e=>e(Q.oR).getUserAudienceSettings()),o=(0,ps.WM)(e=>e(Q.oR).getErrorForAction("saveUserAudienceSettings",[{...s,configuredAudiences:t}])),r=t?.length||0;let l;r<Pi?l=(0,g.sprintf)(/* translators: 1: Minimum number of groups that can be selected. 2: Number of selected groups. */ /* translators: 1: Minimum number of groups that can be selected. 2: Number of selected groups. */ (0,g._n)("Select at least %1$d group (%2$d selected)","Select at least %1$d groups (%2$d selected)",Pi,"google-site-kit"),Pi,r):r>Gi&&(l=(0,g.sprintf)(/* translators: 1: Maximum number of groups that can be selected. 2: Number of selected groups. */ /* translators: 1: Maximum number of groups that can be selected. 2: Number of selected groups. */ (0,g.__)("Select up to %1$d groups (%2$d selected)","google-site-kit"),Gi,r));const c=(0,a.useMemo)(()=>!(0,n.isEqual)((0,U.N9)(t),(0,U.N9)(e)),[t,e]);if(!l&&!o&&!i)return null;let d=o||i;return c&&l&&(d={message:l}),(0,B.jsx)(ms.A,{error:d})}function Panel(){const e=(0,W.A)(),t=(0,c.useSelect)(e=>e(u.n).getValue(Ti)),i=(0,c.useSelect)(e=>e(q.K9).isFetchingSyncAvailableAudiences()),s=(0,c.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,qe.A)(Ui,"autoSubmit"),{setValues:o}=(0,c.useDispatch)(Ge.s),{setValue:r}=(0,c.useDispatch)(u.n),l=(0,a.useCallback)(()=>{o(Di,{[Ri]:s,[Oi]:!1}),(0,U.sx)(`${e}_audiences-sidebar`,"audiences_sidebar_view")},[s,o,e]),d=(0,a.useCallback)(()=>{t&&(r(Ti,!1),r(Bi,!1))},[r,t]);return(0,B.jsxs)(is.Ay,{className:"googlesitekit-audience-selection-panel",closePanel:d,isOpen:t||n,isLoading:i,onOpen:l,children:[(0,B.jsx)(Header_Header,{closePanel:d}),(0,B.jsxs)(is.kA,{className:"googlesitekit-audience-selection-panel__content",children:[(0,B.jsx)(AudienceItems,{savedItemSlugs:s}),(0,B.jsx)(LearnMoreLink,{}),(0,B.jsx)(SaveErrorNotice,{savedItemSlugs:s}),(0,B.jsx)(SyncErrorNotice,{}),(0,B.jsx)(AudienceCreationSuccessNotice,{})]}),(0,B.jsx)(Footer,{closePanel:d,isOpen:t,savedItemSlugs:s})]})}function AudienceSelectionPanel(){const e=(0,c.useSelect)(e=>e(u.n).getValue(Ti));return(0,B.jsx)(Ji.Ay,{value:{key:"AudienceSelectionPanel",value:!!e},children:(0,B.jsx)(Panel,{})})}var hs=i(44148);function AudienceAreaFooter(){const e=(0,ge.A)(),t=(0,c.useSelect)(e=>e(Q.oR).getDateRangeDates({offsetDays:q.f2})),i=(0,c.useSelect)(i=>e?null:i(q.K9).getServiceReportURL("audiences",{dates:t}));return(0,c.useSelect)(e=>e(Wi.i).isModuleConnected(V.L1))?(0,B.jsx)(hs.A,{className:"googlesitekit-audience-widget__source",name:(0,g._x)("Analytics","Service name","google-site-kit"),href:i,external:!0}):null}var fs,_s,ys,vs,ks=i(674);function ChangeGroupsLink(){const e=(0,W.A)(),t=(0,c.useInViewSelect)(e=>e(q.K9).getConfigurableAudiences(),[]),{setValue:i}=(0,c.useDispatch)(u.n),s=(0,a.useCallback)(()=>{i(Ti,!0),(0,U.sx)(`${e}_audiences-sidebar`,"change_groups")},[i,e]);return Array.isArray(t)&&t?.length>0?(0,B.jsx)(z.A,{className:"googlesitekit-widget-area__cta-link",onClick:s,leadingIcon:(0,B.jsx)(ks.A,{width:22,height:22}),secondary:!0,linkButton:!0,children:(0,g.__)("Change groups","google-site-kit")}):null}function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},xs.apply(null,arguments)}const As=e=>a.createElement("svg",xs({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"-3 1 333.666 149.252"},e),fs||(fs=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)"},_s||(_s=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"}},ys||(ys=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"}))),vs||(vs=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})))));var bs,Is,Ss,js;function Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Es.apply(null,arguments)}const Ms=e=>a.createElement("svg",Es({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)"},bs||(bs=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"}},Is||(Is=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"}))),Ss||(Ss=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})))),js||(js=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 Ns=i(65929);function ConnectAnalyticsCTAWidget({Widget:e}){const t=(0,N.dv)()===N.Lg,i=(0,Ns.A)(V.L1),s=(0,c.useSelect)(e=>e(Wi.i).getModuleIcon(V.L1)),n=t?(0,B.jsx)(D.A,{children:(0,L.A)((0,g.__)("Google Analytics is disconnected, your audience metrics can’t be displayed. <a>Connect Google Analytics</a>","google-site-kit"),{a:(0,B.jsx)(z.A,{onClick:i,secondary:!0})})}):(0,B.jsxs)(a.Fragment,{children:[(0,B.jsx)(D.A,{children:(0,g.__)("Google Analytics is disconnected, your audience metrics can’t be displayed","google-site-kit")}),(0,B.jsx)(z.A,{onClick:i,secondary:!0,children:(0,g.__)("Connect Google Analytics","google-site-kit")})]});return(0,B.jsx)(e,{noPadding:!0,children:(0,B.jsx)(Hi,{Icon:s,SVGGraphic:t?Ms:As,children:n})})}ConnectAnalyticsCTAWidget.propTypes={Widget:r().elementType.isRequired};const ws=(0,F.A)(cs);function InfoNoticeWidget({Widget:e,WidgetNull:t}){const i=(0,W.A)(),s=(0,c.useInViewSelect)(e=>{const t=e(q.K9).getOrSyncAvailableAudiences();return t?.map(e=>e.name)},[]),n=(0,c.useInViewSelect)(e=>e(Q.oR).getConfiguredAudiences(),[]),o=n?.some(e=>s?.includes(e)),r=h.length,l=(0,c.useInViewSelect)(e=>e(Q.oR).isPromptDismissed(m),[]),d=(0,c.useSelect)(e=>e(u.n).getValue(p)),f=(0,c.useInViewSelect)(e=>e(Q.oR).getPromptDismissCount(m),[]),{dismissPrompt:_}=(0,c.useDispatch)(Q.oR),y=(0,a.useCallback)(()=>{void 0!==f&&(0,U.sx)(`${i}_audiences-info-notice`,"dismiss_notice",h[f].slug).finally(()=>{const e=2*U.Du;_(m,{expiresInSeconds:f+1<r?e:0})})},[f,_,r,i]);if(!0!==o||l||void 0===f||f>=r||!0===d)return(0,B.jsx)(t,{});const{slug:v,content:k}=h[f];return(0,B.jsx)(e,{noPadding:!0,children:(0,B.jsx)(ws,{content:k,dismissLabel:(0,g.__)("Got it","google-site-kit"),onDismiss:y,onInView:()=>{(0,U.sx)(`${i}_audiences-info-notice`,"view_notice",v)}})})}InfoNoticeWidget.propTypes={Widget:r().elementType.isRequired,WidgetNull:r().elementType.isRequired};const Cs=(0,l.A)({moduleName:V.L1})(InfoNoticeWidget);var Ts=i(15844);function SecondaryUserSetupWidget({Widget:e}){const[t,i]=(0,a.useState)(null),s=(0,c.useSelect)(e=>e(q.K9).isSettingUpAudiences()),{enableSecondaryUserAudienceGroup:n}=(0,c.useDispatch)(q.K9);return(0,Ts.A)(()=>{s||(async()=>{const{error:e}=await n();e&&i(e)})()}),t?(0,B.jsx)(Y,{Widget:e,errors:t,onRetry:async function(){i(null);const{error:e}=await n();e&&i(e)},showRetryButton:!(0,d.SG)(t)}):(0,B.jsx)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:(0,B.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[(0,B.jsx)(e,{noPadding:!0,children:(0,B.jsx)(AudienceTileLoading,{})}),(0,B.jsx)(e,{noPadding:!0,children:(0,B.jsx)(AudienceTileLoading,{})})]})})}SecondaryUserSetupWidget.propTypes={Widget:r().elementType.isRequired};var Ds=i(23403);function PrimaryUserSetupWidget({Widget:e}){const{apiErrors:t,isSaving:i,failedAudiences:s,onEnableGroups:n}=(0,Ds.A)(),o=(0,c.useSelect)(e=>e(q.K9).isSettingUpAudiences());return(0,Ts.A)(()=>{o||n()}),!t.length&&!s.length||i?(0,B.jsx)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:(0,B.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[(0,B.jsx)(e,{noPadding:!0,children:(0,B.jsx)(AudienceTileLoading,{})}),(0,B.jsx)(e,{noPadding:!0,children:(0,B.jsx)(AudienceTileLoading,{})})]})}):(0,B.jsx)(Y,{Widget:e,errors:t,onRetry:n,failedAudiences:s,showRetryButton:!(0,d.SG)(t[0])})}PrimaryUserSetupWidget.propTypes={Widget:r().elementType.isRequired}},51193:(e,t,i)=>{i.d(t,{Du:()=>p,GH:()=>l,Gp:()=>c,IS:()=>y,Jg:()=>u,N_:()=>k,O5:()=>v,Ql:()=>m,Qr:()=>h,XH:()=>_,r0:()=>d,sq:()=>f,tt:()=>g});var s=i(32091),n=i.n(s),o=i(17243),r=i(82871);const a="Date param must construct to a valid date instance or be a valid date instance itself.",l="Invalid dateString parameter, it must be a string.",c='Invalid date range, it must be a string with the format "last-x-days".',d=60,u=60*d,g=24*u,p=7*g;function m(){function e(e){return(0,r.sprintf)(/* translators: %s: number of days */ /* translators: %s: number of days */ (0,r._n)("Last %s day","Last %s days",e,"google-site-kit"),e)}return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}function h(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 f(e){n()((0,o.isDate)(e)&&!isNaN(e),a);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()(h(e),l);const[t,i,s]=e.split("-");return new Date(t,i-1,s)}function y(e,t){return f(k(e,t*g))}function v(e){const t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}function k(e,t){n()(h(e)||(0,o.isDate)(e)&&!isNaN(e),l);const i=h(e)?Date.parse(e):e.getTime();return new Date(i-1e3*t)}},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.n);return(0,s.useCallback)(()=>{t("admin-screen-tooltip",{isTooltipVisible:!0,...e})},[t,e])}},52696:(e,t,i)=>{i.d(t,{WM:()=>s.WM,wA:()=>s.wA,ws:()=>s.ws});var s=i(49057);void 0===i.g.googlesitekit&&(i.g.googlesitekit={}),i.g.googlesitekit.data=s.Ay},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}},52735:(e,t,i)=>{i.d(t,{A:()=>s});const s=(0,i(63696).createContext)(!1)},54419:e=>{e.exports=googlesitekit.api},55465:(e,t,i)=>{i.d(t,{O:()=>n});var s=i(31234);const n=i.n(s)()(i.g)},55989:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(62540);function VisuallyHidden({className:e,children:t,...i}){return t?(0,a.jsx)("span",{...i,className:r()("screen-reader-text",e),children:t}):null}VisuallyHidden.propTypes={className:n().string,children:n().node},VisuallyHidden.defaultProps={className:""};const l=VisuallyHidden},56084:(e,t,i)=>{i.d(t,{A:()=>CoreDashboardEffects});var s=i(5924),n=i(81042),o=i(63696);function CoreDashboardEffects(){return(0,s.A)(),function(){const{y:e}=(0,n.A)(),[t,s]=(0,o.useState)(!1),r="googlesitekit-plugin--has-scrolled";(0,o.useEffect)(()=>{t?i.g.document.body.classList.add(r):i.g.document.body.classList.remove(r)},[t]),e>0&&!t?s(!0):0===e&&t&&s(!1)}(),null}},56628:(e,t,i)=>{i.d(t,{A:()=>ModuleDashboardEffects});var s=i(50539),n=i(88273),o=i(7551),r=i(62540);const a={[o.Oo]:"DashboardMainEffectComponent",[o.oE]:"DashboardEntityEffectComponent"};function ModuleDashboardEffects(){const e=(0,o.Ay)(),t=(0,s.useSelect)(e=>e(n.i).getModules());if(!t)return null;const i=a[e];return Object.values(t).reduce((e,t)=>{const s=t[i];return t.active&&s?[...e,(0,r.jsx)(s,{},t.slug)]:e},[])}},58588:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(63696),n=i(37467);function o(){const[e]=(0,n.A)("notification"),[t]=(0,n.A)("panel");return(0,s.useMemo)(()=>{const i={};return e&&(i.notification=e),t&&(i.panel=t),i},[e,t])}},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"},59352:(e,t,i)=>{i.r(t),i.d(t,{CONTEXT_ENTITY_DASHBOARD_CONTENT:()=>c,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:()=>u,CONTEXT_ENTITY_DASHBOARD_SPEED:()=>d,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:()=>l,CONTEXT_MAIN_DASHBOARD_CONTENT:()=>o,CONTEXT_MAIN_DASHBOARD_KEY_METRICS:()=>s,CONTEXT_MAIN_DASHBOARD_MONETIZATION:()=>a,CONTEXT_MAIN_DASHBOARD_SPEED:()=>r,CONTEXT_MAIN_DASHBOARD_TRAFFIC:()=>n,default:()=>g});const s="mainDashboardKeyMetrics",n="mainDashboardTraffic",o="mainDashboardContent",r="mainDashboardSpeed",a="mainDashboardMonetization",l="entityDashboardTraffic",c="entityDashboardContent",d="entityDashboardSpeed",u="entityDashboardMonetization",g={CONTEXT_MAIN_DASHBOARD_KEY_METRICS:s,CONTEXT_MAIN_DASHBOARD_TRAFFIC:n,CONTEXT_MAIN_DASHBOARD_CONTENT:o,CONTEXT_MAIN_DASHBOARD_SPEED:r,CONTEXT_MAIN_DASHBOARD_MONETIZATION:a,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:l,CONTEXT_ENTITY_DASHBOARD_CONTENT:c,CONTEXT_ENTITY_DASHBOARD_SPEED:d,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:u}},59865:(e,t,i)=>{i.d(t,{A:()=>p});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(52684),l=i(13606),c=i(82871),d=i(49383),u=i(85149),g=i(62540);function ModalDialog({className:e="",dialogActive:t=!1,handleCancel:i=null,onOpen:s=null,onClose:n=null,title:o=null,provides:p,handleConfirm:m,subtitle:h,confirmButton:f=null,notes:_=[],danger:y=!1,inProgress:v=!1,small:k=!1,medium:x=!1,buttonLink:A=null}){const b=`googlesitekit-dialog-description-${(0,a.A)(ModalDialog)}`,I=!(!p||!p.length);return(0,g.jsxs)(d.Dialog,{open:t,onOpen:s,onClose:n,"aria-describedby":I?b:void 0,tabIndex:"-1",className:r()(e,{"googlesitekit-dialog-sm":k,"googlesitekit-dialog-md":x}),children:[(0,g.jsxs)(d.DialogTitle,{children:[y&&(0,g.jsx)(u.A,{width:28,height:28}),o]}),h?(0,g.jsx)("p",{className:"mdc-dialog__lead",children:h}):[],(0,g.jsxs)(d.DialogContent,{children:[I&&(0,g.jsx)("section",{id:b,className:"mdc-dialog__provides",children:(0,g.jsx)("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive",children:p.map(e=>(0,g.jsx)("li",{className:"mdc-list-item",children:(0,g.jsx)("span",{className:"mdc-list-item__text",children:e})},e))})}),_.length>0&&(0,g.jsx)("section",{className:"mdc-dialog__notes",children:_.map((e,t)=>(0,g.jsxs)("p",{className:"mdc-dialog__note",children:["string"==typeof e&&(0,l.A)((0,c.sprintf)(/* translators: %s is replaced with some sub-note text. */ /* translators: %s is replaced with some sub-note text. */ (0,c.__)("<strong>Note:</strong> %s","google-site-kit"),e),{strong:(0,g.jsx)("strong",{})}),"function"==typeof e&&(0,g.jsx)(e,{})]},`note-${t}`))})]}),(0,g.jsxs)(d.DialogFooter,{children:[(0,g.jsx)(d.Button,{className:"mdc-dialog__cancel-button",onClick:i,disabled:v,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),A?(0,g.jsx)(d.Button,{href:A,onClick:m,target:"_blank",danger:y,children:f}):(0,g.jsx)(d.SpinnerButton,{onClick:m,danger:y,disabled:v,isSaving:v,children:f||(0,c.__)("Disconnect","google-site-kit")})]})]})}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:n().string,dialogActive:n().bool,handleDialog:n().func,handleConfirm:n().func.isRequired,onOpen:n().func,onClose:n().func,title:n().string,provides:n().arrayOf(n().string),confirmButton:n().string,notes:n().arrayOf(n().oneOfType([n().string,n().elementType])),danger:n().bool,small:n().bool,medium:n().bool,buttonLink:n().string};const p=ModalDialog},60515:(e,t,i)=>{i.d(t,{A:()=>p});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(63696),l=i(82871),c=i(49383),d=i(5855),u=i(38432),g=i(62540);function NewBadge({tooltipTitle:e,learnMoreLink:t,forceOpen:i,hasLeftSpacing:s,hasNoSpacing:n,onLearnMoreClick:o=()=>{}}){const p=(0,g.jsx)(d.A,{className:r()("googlesitekit-new-badge",{"googlesitekit-new-badge--has-no-spacing":n}),label:(0,l.__)("New","google-site-kit"),hasLeftSpacing:s});return e?(0,g.jsx)(c.Tooltip,{tooltipClassName:"googlesitekit-new-badge__tooltip",title:(0,g.jsxs)(a.Fragment,{children:[e,(0,g.jsx)("br",{}),(0,g.jsx)(u.A,{href:t,onClick:o,external:!0,hideExternalIndicator:!0,children:(0,l.__)("Learn more","google-site-kit")})]}),placement:"top",enterTouchDelay:0,leaveTouchDelay:5e3,open:i,interactive:!0,children:p}):p}NewBadge.propTypes={tooltipTitle:n().string,learnMoreLink:n().string,forceOpen:n().bool,onLearnMoreClick:n().func,hasLeftSpacing:n().bool,hasNoSpacing:n().bool};const p=NewBadge},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})}},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 d=(0,r.A)(e);return(0,a.jsx)(o.A,{onClick:function(e){e.persist(),d.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}},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},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)}},62954:(e,t,i)=>{function s(e,t){const i=e.getBoundingClientRect(),s=t.getBoundingClientRect();return!(i.bottom<s.top||s.bottom<i.top||i.right<s.left||s.right<i.left)}i.d(t,{N:()=>s})},63081:(e,t,i)=>{i.d(t,{A:()=>Root});var s=i(62688),n=i.n(s),o=i(44010),r=i(77105),a=i(63696),l=i(50539),c=i.n(l),d=i(82871),u=i(6730),g=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){i.g.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}=this.props,{error:t,info:i}=this.state;return t?(0,h.jsx)(p.A,{notificationID:"googlesitekit-error",className:"googlesitekit-error-handler",type:"error",title:(0,d.__)("Site Kit encountered an error","google-site-kit"),description:(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)(u.A,{message:t.message,componentStack:i.componentStack}),(0,h.jsxs)("pre",{className:"googlesitekit-overflow-auto",children:[t.message,i.componentStack]})]})}):e}}ErrorHandler.contextType=g.Ay,ErrorHandler.propTypes={children:n().node.isRequired};const f=ErrorHandler;var _=i(79961);const{Consumer:y,Provider:v}=_.A,k=v;var x=i(84895),A=i(82246),b=i(11999),I=i(70301),S=i(97345),j=i(78990),E=i(94656);const M=function AuthenticatedPermissionsModal(){const e=(0,l.useRegistry)(),t=(0,l.useSelect)(e=>e(S.oR).getPermissionScopeError()),s=(0,l.useSelect)(e=>e(S.oR).getUnsatisfiedScopes()),n=(0,l.useSelect)(e=>e(S.oR).getConnectURL({additionalScopes:t?.data?.scopes,redirectURL:t?.data?.redirectURL||i.g.location.href,errorRedirectURL:t?.data?.errorRedirectURL})),{clearPermissionScopeError:o}=(0,l.useDispatch)(S.oR),{navigateTo:r}=(0,l.useDispatch)(I.M),{setValues:c}=(0,l.useDispatch)(b.s),u=(0,a.useCallback)(()=>{o()},[o]),g=(0,a.useCallback)(async()=>{c(S.$8,{permissionsError:t}),await(0,j.mR)(e),r(n)},[e,n,r,t,c]);return(0,a.useEffect)(()=>{!async function(){t?.data?.skipModal&&t?.data?.scopes?.length&&await g()}()},[g,t]),t?t?.data?.scopes?.length?t?.data?.skipModal||s&&t?.data?.scopes.every(e=>s.includes(e))?null:(0,h.jsx)(E.A,{children:(0,h.jsx)(A.A,{title:(0,d.__)("Additional Permissions Required","google-site-kit"),subtitle:t.message,confirmButton:(0,d.__)("Proceed","google-site-kit"),handleConfirm:g,handleCancel:u,onClose:u,dialogActive:!0,medium:!0})}):(i.g.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",t),null):null};const N=function PermissionsModal(){return(0,l.useSelect)(e=>e(S.oR).isAuthenticated())?(0,h.jsx)(M,{}):null};const w=function RestoreSnapshots({children:e}){const t=(0,l.useRegistry)(),[i,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{i||(async()=>{await(0,j.P9)(t),s(!0)})()},[t,i]),i?e:null};var C=i(15844),T=i(62659),D=i(71264);function FeatureTours(){const e=(0,T.A)(),{triggerTourForView:t}=(0,l.useDispatch)(S.oR);(0,C.A)(()=>{t(e)});const s=(0,l.useSelect)(e=>e(S.oR).getCurrentTour());return(0,a.useEffect)(()=>{if(!s)return()=>{};const e=document.getElementById("js-googlesitekit-main-dashboard");if(!e)return()=>{};const t=new ResizeObserver(()=>{i.g.dispatchEvent(new Event("resize"))});return t.observe(e),()=>{t.disconnect()}},[s]),s?(0,h.jsx)(D.Ay,{tourID:s.slug,steps:s.steps,gaEventCategory:s.gaEventCategory,isRepeatable:s.isRepeatable,callback:s.callback}):null}var R=i(20762),O=i(86582);function Root({children:e,registry:t,viewContext:i=null}){const s=o.D,[n]=(0,a.useState)({key:"Root",value:!0});return(0,h.jsx)(a.StrictMode,{children:(0,h.jsx)(R.Ay,{value:n,children:(0,h.jsx)(l.RegistryProvider,{value:t,children:(0,h.jsx)(k,{value:x.t,children:(0,h.jsx)(g.Kq,{value:i,children:(0,h.jsx)(r.A,{theme:s(),children:(0,h.jsxs)(f,{children:[(0,h.jsxs)(w,{children:[e,i&&(0,h.jsx)(FeatureTours,{})]}),(0,O.A)(i)&&(0,h.jsx)(N,{})]})})})})})})})}Root.propTypes={children:n().node,registry:n().object,viewContext:n().string.isRequired},Root.defaultProps={registry:c()}},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;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.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"})))},64515:(e,t,i)=>{function Null(){return null}i.d(t,{A:()=>Null})},65054:(e,t,i)=>{i.d(t,{M9:()=>I,sx:()=>A,BI:()=>b});var s=i(17243);const n="_googlesitekitDataLayer",o="data-googlesitekit-gtag";function r(e){return function(){e[n]=e[n]||[],e[n].push(arguments)}}var a=i(84895);const l={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};const{activeModules:c=[],isSiteKitScreen:d,trackingEnabled:u,trackingID:g,referenceSiteURL:p,userIDHash:m,isAuthenticated:h,userRoles:f}=i.g._googlesitekitTrackingData||{},_={activeModules:c,trackingEnabled:u,trackingID:g,referenceSiteURL:p,userIDHash:m,isSiteKitScreen:d,userRoles:f,isAuthenticated:h,pluginVersion:"1.177.0"},{enableTracking:y,disableTracking:v,isTrackingEnabled:k,initializeSnippet:x,trackEvent:A,trackEventOnce:b}=function(e,t=i.g,c=i.g){const d={...l,...e};d.referenceSiteURL&&(d.referenceSiteURL=d.referenceSiteURL.toString().replace(/\/+$/,""));const u=function(e,t){const s=r(t);let l;const{activeModules:c,referenceSiteURL:d,userIDHash:u,userRoles:g=[],isAuthenticated:p,pluginVersion:m}=e;return function(){const{document:t}=i.g;if(void 0===l&&(l=!!t.querySelector(`script[${o}]`)),l)return!1;l=!0;const r=g?.length?g.join(","):"";s("js",new Date),s("config",e.trackingID,{groups:"site_kit",send_page_view:e.isSiteKitScreen,domain:d,plugin_version:m||"",enabled_features:Array.from(a.t).join(","),active_modules:c.join(","),authenticated:p?"1":"0",user_properties:{user_roles:r,user_identifier:u}});const h=t.createElement("script");return h.setAttribute(o,""),h.async=!0,h.src=`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${n}`,t.head.appendChild(h),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${n}`}}}(d,t),g=function(e,t,i,s){const n=r(t);return async function(t,o,r,a){const{trackingEnabled:l}=e;if(!l)return null;i();const c={send_to:"site_kit",event_category:t,event_label:r,value:a};return new Promise(e=>{const i=setTimeout(function(){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()})}}(d,t,u,c),p={};return{enableTracking:function(){d.trackingEnabled=!0},disableTracking:function(){d.trackingEnabled=!1},initializeSnippet:u,isTrackingEnabled:function(){return!!d.trackingEnabled},trackEvent:g,trackEventOnce:function(...e){const t=JSON.stringify(e);p[t]||(p[t]=(0,s.once)(g)),p[t](...e)}}}(_);function I(e){e?y():v()}d&&u&&x()},65385:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(50539),n=i(88273),o=i(74426),r=i(62540);function a({moduleName:e,FallbackComponent:t,IncompleteComponent:i}){return a=>{function WhenActiveComponent(o){const l=(0,s.useSelect)(t=>t(n.i).getModule(e),[e]);if(!l)return null;const c=t||o.WidgetNull||null;if(!1===l.active)return c&&(0,r.jsx)(c,{...o});if(!1===l.connected){const e=i||c;return e&&(0,r.jsx)(e,{...o})}return(0,r.jsx)(a,{...o})}return WhenActiveComponent.displayName=`When${(0,o.Uf)(e)}Active`,(a.displayName||a.name)&&(WhenActiveComponent.displayName+=`(${a.displayName||a.name})`),WhenActiveComponent}}},65695:(e,t,i)=>{i.d(t,{A:()=>SelectionPanelError});var s=i(62688),n=i.n(s),o=i(63696),r=i(62954),a=i(73198),l=i(62540);function SelectionPanelError({error:e,noPrefix:t=!0,skipRetryMessage:s=!0}){const n=(0,o.useRef)();return(0,o.useEffect)(()=>{if(e){const e=i.g.document.activeElement;e&&e.closest(".googlesitekit-selection-panel-item")&&(0,r.N)(n.current,e)&&e.scrollIntoView()}},[e]),e?(0,l.jsx)("div",{ref:n,children:(0,l.jsx)(a.A,{className:"googlesitekit-notice--square googlesitekit-notice--side-panel",error:e,noPrefix:t,skipRetryMessage:s})}):null}SelectionPanelError.propTypes={error:n().shape({message:n().string}),noPrefix:n().bool,skipRetryMessage:n().bool}},65929:(e,t,i)=>{i.d(t,{A:()=>g});var s=i(63696),n=i(50539),o=i(29785),r=i(97345),a=i(88273),l=i(70301),c=i(49993),d=i(65054),u=i(62659);function g(e){const t=(0,u.A)(),i=(0,n.useSelect)(t=>t(a.i).getModule(e)),g=(0,n.useSelect)(e=>e(r.oR).hasCapability(r.HD)),{activateModule:p}=(0,n.useDispatch)(a.i),{navigateTo:m}=(0,n.useDispatch)(l.M),{setInternalServerError:h}=(0,n.useDispatch)(o.O4),f=(0,s.useCallback)(async()=>{const{error:i,response:s}=await p(e);i?h({id:`${e}-setup-error`,description:i.message}):(await(0,d.sx)(`${t}_widget-activation-cta`,"activate_module",e),await(0,c.SO)("module_setup",e,{ttl:300}),m(s.moduleReauthURL))},[p,e,m,h,t]);return i?.name&&g?f:null}},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(7972),l=i(8732),c=i(37133);function d(e){return`notification/${e}/viewed`}function u(e){return(0,r.useSelect)(t=>!!t(a.n).getValue(d(e)),[e])}function ViewedStateObserver({id:e,observeRef:t,threshold:i}){const s=(0,c.A)(t,{threshold:i}),{setValue:n}=(0,r.useDispatch)(a.n),{markNotificationSeen:d}=(0,r.useDispatch)(l.D),g=!!s?.isIntersecting,p=u(e),m=(0,o.useRef)();function h(){m.current&&clearTimeout(m.current)}return(0,o.useEffect)(()=>(!p&&g?(h(),m.current=setTimeout(()=>{s?.isIntersecting&&(n(u.getKey(e),!0),d(e))},3e3)):!g&&m.current&&h(),()=>{h()}),[p,g,n,d,e,s]),null}u.getKey=d,ViewedStateObserver.propTypes={id:n().string,observeRef:n().object,threshold:n().number};var g=i(68761),p=i(62540);function Notification({id:e,className:t,gaTrackingEventArgs:i,children:s,onView:n}){const a=(0,o.useRef)(),c=u(e),d=(0,g.A)(e,i?.category,{viewAction:i?.viewAction}),[m,h]=(0,o.useState)(!1),f=(0,r.useSelect)(t=>t(l.D).getNotificationSeenDates(e)),{dismissNotification:_}=(0,r.useDispatch)(l.D);return(0,o.useEffect)(()=>{!m&&c&&(d.view(i?.label,i?.value),n?.(),h(!0)),f?.length>=3&&_(e,{skipHidingFromQueue:!0})},[c,d,m,i,n,f,_,e]),(0,p.jsxs)("section",{id:e,ref:a,className:t,children:[s,!c&&(0,p.jsx)(ViewedStateObserver,{id:e,observeRef:a,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}},67510:(e,t,i)=>{i.d(t,{Q:()=>y,A:()=>BannerNotification});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(50539),l=i(8732),c=i(68761),d=i(83891),u=i(41671),g=i(71189),p=i(61983),m=i(10740);const h="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYwIiBoZWlnaHQ9IjIzNCIgdmlld0JveD0iMCAwIDM2MCAyMzQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03My4xMzAyIDE3MC42NjhDODkuMzcxOSAxODkuOTkgMTE1LjQ3NiAxOTUuMTEgMTMxLjg2NSAxODkuOTkxQzE1My4yNDYgMTgzLjMxMiAxNjYuNjcyIDE2Mi45NjcgMTg1LjUwMiAxNjAuNTQ0QzIwNC4zMzMgMTU4LjEyMSAyMTUuNDA2IDE2OC43MDYgMjM1Ljg5NyAxNzAuMjMzQzI1Ni4zODkgMTcxLjc2IDI4MS4yMzIgMTY3LjYzIDI5Mi43OTEgMTM3LjkzNUMzMDQuMzQ5IDEwOC4yMzkgMjkzLjk0OCA3OC4yMzIxIDI3MC4yMTQgNjQuMzYxNUMyNDYuNDgxIDUwLjQ5MDggMjMzLjI3MSA2Ni43Njk0IDIxMC41NjQgNjguMTIzN0MxODcuODU4IDY5LjQ3NzkgMTc4LjAyMyA0NS44NTI4IDE2MS4wMjMgNDQuMzUyOEMxNDQuMDIzIDQyLjg1MjggMTM0LjUyMyA0NS44NTMgMTI0LjUyMyA1OC44NTI5QzExNC41MjMgNzEuODUyOCAxMjAuMzcxIDg1Ljc2NDEgODkuNTIzNSA5OS44NTNDNTguNjc1OCAxMTMuOTQyIDU2Ljg4ODUgMTUxLjM0NSA3My4xMzAyIDE3MC42NjhaIiBmaWxsPSIjRkZFNEIxIi8+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIwX2RfMjcwNV8xNzY4NikiPgo8cmVjdCB4PSIxMTYuNTIzIiB5PSI1Ny45MTk5IiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOC41MzMiIHJ4PSI2Ljk4MjUyIiBmaWxsPSIjRUJFRUYwIi8+CjxtYXNrIGlkPSJtYXNrMF8yNzA1XzE3Njg2IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIxMTYiIHk9IjU3IiB3aWR0aD0iMTI5IiBoZWlnaHQ9IjEzMiI+CjxyZWN0IHg9IjExNi41MjMiIHk9IjU3LjkxOTkiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTMwLjEzMyIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2ODYpIj4KPHJlY3QgeD0iMTI1LjA1NyIgeT0iMTE3LjY1MyIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjkzMzMiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHg9IjEyNS4wNTciIHk9IjEwMy4yNTMiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC45MzMzIiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjUuMDU3IiB5PSIxNTYuMDUzIiB3aWR0aD0iMTEwLjQiIGhlaWdodD0iMzAuOTMzMyIgcng9IjMuNzUxMjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljk0NjUiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAyMDMuNDU3IDk1LjYyNDkpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTYzLjk5IDk1LjYyNTcpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTI0LjUyMyA5NS42MjU3KSIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxwYXRoIGQ9Ik0xMTYuNTIzIDY0LjkzNTVDMTE2LjUyMyA2MS4wNzkyIDExOS42NSA1Ny45NTMgMTIzLjUwNiA1Ny45NTNIMjM3LjM4M0MyNDEuMjM5IDU3Ljk1MyAyNDQuMzY1IDYxLjA3OTIgMjQ0LjM2NSA2NC45MzU1VjY4LjUzM0gxMTYuNTIzVjY0LjkzNTVaIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSIxMjEuODEzIiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjcuMTA0IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzIuNDM3IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE4MC41MjMiIGN5PSIxMjAuODUzIiByPSIxNy4zNzkzIiBmaWxsPSIjNEUzMzAwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNzU4NjIiLz4KPGNpcmNsZSBjeD0iMS42NTUxNyIgY3k9IjEuNjU1MTciIHI9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTE2Ljk5MSkiIGZpbGw9IiNGRkU0QjEiLz4KPHJlY3Qgd2lkdGg9IjMuMzEwMzQiIGhlaWdodD0iOS4zNzkzMSIgcng9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTI4LjU3NykiIGZpbGw9IiNGRkU0QjEiLz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8yNzA1XzE3Njg2IiB4PSIxMDcuOTkiIHk9IjUxLjUxOTkiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0Ni4xMzMiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2ODYiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzY4NiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K",f="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9IjIwMiIgdmlld0JveD0iMCAwIDQwMCAyMDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NC44NTc1IDk3LjYxNjZDMTA1Ljg1NyAxMzQuMDIgMTUzLjIwMSAxMDYuMTIzIDE4MS4zNTcgMTE0LjU3MkMyMDkuNTEzIDEyMy4wMiAyMTMuNDY4IDE2MS41NDUgMjM1Ljg1NyAxNjkuOTI1QzI1OC4yNDUgMTc4LjMwNiAzMDMuMDY4IDE3MS41MTUgMzE2LjAwMiAxMzguMTM1QzMyOC45MzYgMTA0Ljc1NCAzMTIuMTY3IDgzLjY1MjkgMjg3LjY1MiA3Mi4xNjk0QzI2My4xMzYgNjAuNjg1OSAyNjguOTc2IDM2Ljc4MzYgMjM0LjE2NiAyNy44MDA5QzE5OS4zNTcgMTguODE4MiAxNzguNjY1IDQxLjI2NTEgMTQwLjE2NSAzMC43OTI3QzEwMS42NjUgMjAuMzIwNCA2My44NTc4IDYxLjIxMzEgODQuODU3NSA5Ny42MTY2WiIgZmlsbD0iI0ZGREVEMyIvPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMF9kXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTI3LjY2NiIgeT0iMzcuODQxMSIgd2lkdGg9IjEyOCIgaGVpZ2h0PSIxMjguMTk0IiByeD0iNi45ODI1MiIgZmlsbD0iI0VCRUVGMCIvPgo8bWFzayBpZD0ibWFzazBfMjcwNV8xNzYzMyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTI3IiB5PSIzNyIgd2lkdGg9IjEyOSIgaGVpZ2h0PSIxMzEiPgo8cmVjdCB4PSIxMjcuNjY2IiB5PSIzNy44NDExIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOS43OSIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTM2LjIiIHk9Ijk3LjQxNjkiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC44NTE4IiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzYuMiIgeT0iODMuMDU0NiIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjg1MTgiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxwYXRoIGQ9Ik0xMzYuMiAxMzkuNDY3QzEzNi4yIDEzNy4zOTUgMTM3Ljg3OSAxMzUuNzE2IDEzOS45NTEgMTM1LjcxNkgyNDIuODQ5QzI0NC45MiAxMzUuNzE2IDI0Ni42IDEzNy4zOTUgMjQ2LjYgMTM5LjQ2N1YxNjUuOTM1SDEzNi4yVjEzOS40NjdaIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC44OTY2IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMjE0LjU5OSA3NS40NDY3KSIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMTguODk2NiIgcng9IjIuMzE1NjkiIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3NS4xMzMgNzUuNDQ3NikiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljg5NjYiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAxMzUuNjY2IDc1LjQ0NzYpIiBmaWxsPSIjRjNGNUY3Ii8+CjwvZz4KPHBhdGggZD0iTTEyNy42NjYgNDQuODU2N0MxMjcuNjY2IDQxLjAwMDQgMTMwLjc5MyAzNy44NzQyIDEzNC42NDkgMzcuODc0MkgyNDguNTI2QzI1Mi4zODIgMzcuODc0MiAyNTUuNTA4IDQxLjAwMDQgMjU1LjUwOCA0NC44NTY3VjQ4LjQyNjNIMTI3LjY2NlY0NC44NTY3WiIgZmlsbD0id2hpdGUiLz4KPHJlY3QgeD0iMTMyLjk1NiIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTM4LjI0NyIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTQzLjU4IiB5PSI0MS4zOTE1IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUxNzM3IiByeD0iMS43NTg2OCIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE5MS42NjYiIGN5PSIxMDAuOTE1IiByPSIxNi44IiBmaWxsPSIjQUM0MjIwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNjY2NjciLz4KPHBhdGggZD0iTTE5Mi45MTQgOTMuOTgxOEgxOTAuNDE4QzE5MC4wOTIgOTMuOTgxOCAxODkuODQzIDk0LjI3MTQgMTg5Ljg5MSA5NC41OTM2TDE5MS4xMzkgMTAyLjk3M0MxOTEuMjI5IDEwMy41OCAxOTIuMTA0IDEwMy41OCAxOTIuMTk0IDEwMi45NzNMMTkzLjQ0MiA5NC41OTM2QzE5My40OSA5NC4yNzE0IDE5My4yNCA5My45ODE4IDE5Mi45MTQgOTMuOTgxOFoiIGZpbGw9IiNGRkRFRDMiLz4KPGNpcmNsZSBjeD0iMTkxLjY2NiIgY3k9IjEwNi43ODIiIHI9IjEuNiIgZmlsbD0iI0ZGREVEMyIvPgo8ZGVmcz4KPGZpbHRlciBpZD0iZmlsdGVyMF9kXzI3MDVfMTc2MzMiIHg9IjExOS4xMzMiIHk9IjMxLjQ0MTEiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0NS4yNjEiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2MzMiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzYzMyIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K";var _=i(62540);const y={INFO:"info",ERROR:"error",WARNING:"warning"};function BannerNotification({notificationID:e,type:t=y.INFO,learnMoreLink:i,dismissButton:s,ctaButton:o,gaTrackingEventArgs:r,...u}){const g=(0,c.A)(e,r?.category),{dismissNotification:p}=(0,a.useDispatch)(l.D);let v=u?.svg;return v||t===y.INFO||(v={desktop:void 0,mobile:void 0,verticalPosition:"center"},t===y.WARNING&&(v.desktop=h),t===y.ERROR&&(v.desktop=f)),(0,_.jsx)("div",{className:n()("googlesitekit-banner-notification",`googlesitekit-banner-notification--${t}`),children:(0,_.jsx)(m.xA,{className:"googlesitekit-page-content",children:(0,_.jsx)(m.fI,{children:(0,_.jsx)(m.fh,{size:12,children:(0,_.jsx)(d.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),p(e,{...s?.dismissOptions})}},ctaButton:o&&{...o,onClick:async function(t){g.confirm(r?.label,r?.value),await(o?.onClick?.(t)),o?.dismissOnClick&&p(e,{...o?.dismissOptions})}},svg:v,...u})})})})})}BannerNotification.propTypes={notificationID:r().string.isRequired,type:r().oneOf(Object.values(y)),titleIcon:r().node,title:r().string,description:r().oneOfType([r().string,r().node]),learnMoreLink:r().shape(u.A.propTypes),dismissButton:r().shape(p.A.propTypes),ctaButton:r().shape(g.A.propTypes),gaTrackingEventArgs:r().shape({category:r().string,label:r().string,value:r().number})}},68329:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(63696),n=i(25797),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}},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)(),d=null!=t?t:`${c}_${e}`;return{view:(0,s.useCallback)((...e)=>(0,o.sx)(d,i,...e),[d,i]),confirm:(0,s.useCallback)((...e)=>(0,o.sx)(d,r,...e),[d,r]),dismiss:(0,s.useCallback)((...e)=>(0,o.sx)(d,a,...e),[d,a]),clickLearnMore:(0,s.useCallback)((...e)=>(0,o.sx)(d,l,...e),[d,l])}}},68832:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(35470),n=i(11999);function o(e,t){return(0,s.A)(i=>{const{getValue:s}=i(n.s);return s(e,t)},[e,t])}},69195:(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;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),s||(s=n.createElement("path",{fill:"currentColor",d:"M16.666 7.5V5H15v2.5h-2.5v1.666H15v2.5h1.666v-2.5h2.5V7.5zM7.5 10a3.332 3.332 0 1 0 0-6.667A3.332 3.332 0 1 0 7.5 10m0-5c.916 0 1.666.75 1.666 1.666 0 .917-.75 1.667-1.666 1.667-.917 0-1.667-.75-1.667-1.667C5.833 5.75 6.583 5 7.5 5m5.325 7.133c-1.4-.717-3.217-1.3-5.325-1.3s-3.925.583-5.325 1.3A2.48 2.48 0 0 0 .833 14.35v2.316h13.333V14.35c0-.934-.508-1.792-1.341-2.217M12.5 15h-10v-.65c0-.317.166-.6.433-.734A10.1 10.1 0 0 1 7.5 12.5c1.975 0 3.575.608 4.566 1.116a.81.81 0 0 1 .434.734z"})))},69831:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(63696),n=i(50539),o=i(97345),r=i(88273),a=i(70301);function l(e){const t=(0,n.useSelect)(e=>e(o.oR).hasCapability(o.HD)),i=(0,n.useSelect)(t=>t(r.i).getModuleStoreName(e)),l=(0,n.useSelect)(e=>e(i)?.getAdminReauthURL()),{navigateTo:c}=(0,n.useDispatch)(a.M),d=(0,s.useCallback)(()=>c(l),[l,c]);return l&&t?d:null}},69908:(e,t,i)=>{i.r(t),i.d(t,{AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:()=>d,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:()=>g,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:()=>u,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:()=>c,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:()=>r,AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:()=>s,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:()=>l,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:()=>a,AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION:()=>o,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:()=>n,default:()=>p});const s="mainDashboardKeyMetricsPrimary",n="mainDashboardTrafficPrimary",o="mainDashboardTrafficAudienceSegmentation",r="mainDashboardContentPrimary",a="mainDashboardSpeedPrimary",l="mainDashboardMonetizationPrimary",c="entityDashboardTrafficPrimary",d="entityDashboardContentPrimary",u="entityDashboardSpeedPrimary",g="entityDashboardMonetizationPrimary",p={AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:s,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:n,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:r,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:a,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:l,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:c,AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:d,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:u,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:g}},70301:(e,t,i)=>{i.d(t,{M:()=>s});const s="core/location"},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:d=!1}){if(!e||!n&&!l)return null;let u;return c&&!d&&(u=(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:u,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})}},71264:(e,t,i)=>{i.d(t,{Ay:()=>TourTooltips,R0:()=>_,ei:()=>v});var s=i(15844),n=i(36703),o=i(62688),r=i.n(o),a=i(82871),l=i(50539),c=i(7972),d=i(97345),u=i(65054),g=i(83202),p=i(62659),m=i(84895),h=i(62540);const f=(0,m.G)("setupFlowRefresh"),_={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)"}}},k={VIEW:"feature_tooltip_view",NEXT:"feature_tooltip_advance",PREV:"feature_tooltip_return",DISMISS:"feature_tooltip_dismiss",COMPLETE:"feature_tooltip_complete"};function TourTooltips({steps:e,tourID:t,gaEventCategory:o,isRepeatable:r,callback:a}){const m=`${t}-step`,x=`${t}-run`,{setValue:A}=(0,l.useDispatch)(c.n),{dismissTour:b,receiveCurrentTour:I}=(0,l.useDispatch)(d.oR),S=(0,l.useRegistry)(),j=(0,p.A)(),E=(0,l.useSelect)(e=>e(c.n).getValue(m)||0),M=(0,l.useSelect)(e=>{const i=r||!1===e(d.oR).isTourDismissed(t);return e(c.n).getValue(x)&&i});function N(i){return`googlesitekit-showing-feature-tour--${t}-${e[i].slug||i}`}(0,s.A)(function(){i.g.document.body.classList.add("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`,N(E)),A(x,!0)});const w=e.map(e=>({disableBeacon:!0,isFixed:!0,placement:"auto",...e})),C=f?{...v,styles:{...v.styles,floater:{filter:"drop-shadow(rgba(0, 0, 0, 0.25) 0px 4px 16px)"}}}:v;return(0,h.jsx)(n.Ay,{callback:function(s){!function({index:e,action:t,lifecycle:i,size:s,status:r,type:a}){const l=e+1,c="function"==typeof o?o(j):o;a===n.qY.TOOLTIP&&i===n.VD.TOOLTIP?(0,u.sx)(c,k.VIEW,l):t===n.kl.CLOSE&&i===n.VD.COMPLETE?(0,u.sx)(c,k.DISMISS,l):t===n.kl.NEXT&&r===n.XQ.FINISHED&&a===n.qY.TOUR_END&&s===l&&(0,u.sx)(c,k.COMPLETE,l),i===n.VD.COMPLETE&&r!==n.XQ.FINISHED&&(t===n.kl.PREV&&(0,u.sx)(c,k.PREV,l),t===n.kl.NEXT&&(0,u.sx)(c,k.NEXT,l))}(s);const{action:l,index:c,status:d,step:g,type:p}=s,h=l===n.kl.CLOSE,f=!h&&[n.qY.STEP_AFTER,n.qY.TARGET_NOT_FOUND].includes(p),_=[n.XQ.FINISHED,n.XQ.SKIPPED].includes(d),y=h&&p===n.qY.STEP_AFTER,v=_||y;if(n.qY.STEP_BEFORE===p){let e=g.target;"string"==typeof g.target&&(e=i.g.document.querySelector(g.target)),e?.scrollIntoView?.({block:"center"})}f?function(t,s){const o=t+(s===n.kl.PREV?-1:1);i.g.document.body.classList.remove(N(t)),e[o]&&i.g.document.body.classList.add(N(o)),A(m,o)}(c,l):v&&(i.g.document.body.classList.remove("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),e[E]&&i.g.document.body.classList.remove(N(E)),r?(A(x,!1),A(m,null),I(null)):b(t)),a&&a(s,S)},floaterProps:C,locale:y,run:M,stepIndex:E,steps:w,styles:_,tooltipComponent:g.A,showProgress:!f,continuous:!0,disableOverlayClose:!0,disableScrolling:!0})}TourTooltips.propTypes={steps:r().arrayOf(r().object).isRequired,tourID:r().string.isRequired,gaEventCategory:r().oneOfType([r().string,r().func]).isRequired,isRepeatable:r().bool,callback:r().func}},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(50539),c=i(8732),d=i(68761),u=i(83891),g=i(41671),p=i(71189),m=i(61983),h=i(10740),f=i(49383),_=i(62540);function SetupCTA({notificationID:e,title:t,description:i,errorText:s,helpText:o,learnMoreLink:r,dismissButton:g,ctaButton:p,svg:m,footer:y,gaTrackingEventArgs:v,waitingProgress:k,...x}){const A=(0,d.A)(e,v?.category),{dismissNotification:b}=(0,l.useDispatch)(c.D);return(0,_.jsxs)(a.Fragment,{children:[!!k&&(0,_.jsx)(f.ProgressBar,{className:"googlesitekit-banner__progress-bar",...k}),(0,_.jsx)("div",{className:n()("googlesitekit-widget-context",{"googlesitekit-widget-context--with-progress-bar":!!k}),children:(0,_.jsx)(h.xA,{children:(0,_.jsx)(h.fI,{children:(0,_.jsx)(h.fh,{size:12,children:(0,_.jsx)(u.A,{className:"googlesitekit-banner--setup-cta",title:t,description:i,errorText:s,helpText:o,learnMoreLink:r&&{...r,onClick:async function(e){A.clickLearnMore(v?.label,v?.value),await(r?.onClick?.(e))}},dismissButton:g&&{...g,onClick:async function(t){await(g?.onClick?.(t)),A.dismiss(v?.label,v?.value),b(e,{...g?.dismissOptions})}},ctaButton:p&&{...p,onClick:async function(t){A.confirm(v?.label,v?.value),await(p?.onClick?.(t)),p?.dismissOnClick&&b(e,{...p?.dismissOptions})}},svg:m,footer:y,...x})})})})})]})}SetupCTA.propTypes={notificationID:r().string,title:r().string,description:r().oneOfType([r().string,r().node]),errorText:r().string,helpText:r().string,learnMoreLink:r().shape(g.A.propTypes),dismissButton:r().shape(m.A.propTypes),ctaButton:r().shape(p.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(f.ProgressBar.propTypes)}},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;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.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"})))},73135:(e,t,i)=>{i.d(t,{s:()=>n});var s=i(82286);function n(){return"initial_setup_success"===(0,s.d)(location.href,"notification")}},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(13137),d=i(25797),u=i(13047),g=i(62540);function ErrorNotice({className:e,error:t,hasButton:i=!1,storeName:s,message:n=t.message,noPrefix:p=!1,skipRetryMessage:m,hideIcon:h=!1}){const f=(0,l.useDispatch)(),_=(0,l.useSelect)(e=>s?e(s).getSelectorDataForError(t):null),y=(0,o.useCallback)(()=>{f(_.storeName).invalidateResolution(_.name,_.args)},[f,_]);if(!n||(0,c.G)(t))return null;const v=i&&(0,c.vl)(t,_);let k=n;i||m||(k=(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"),k)),p||(k=(0,r.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */ (0,r.__)("Error: %s","google-site-kit"),k));const x=t?.data?.reconnectURL;x&&(0,a.m)(x)&&(k=(0,r.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */ /* translators: 1: Original error message 2: Reconnect URL */ (0,r.__)('%1$s To fix this, <a href="%2$s">redo the plugin setup</a>.',"google-site-kit"),k,x));return(0,g.jsx)(d.A,{className:e,type:d.A.TYPES.ERROR,description:(0,g.jsx)("span",{dangerouslySetInnerHTML:(0,u.p9)(k,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:v?{label:(0,r.__)("Retry","google-site-kit"),onClick:y}:void 0,hideIcon:h})}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}},73963:(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(63696),l=i(62540);const c=(0,a.forwardRef)(({children:e,className:t,widgetSlug:i,noPadding:s,Header:o,Footer:r},a)=>(0,l.jsxs)("div",{className:n()("googlesitekit-widget",`googlesitekit-widget--${i}`,{"googlesitekit-widget--no-padding":s},{"googlesitekit-widget--with-header":o},t),ref:a,children:[o&&(0,l.jsx)("div",{className:"googlesitekit-widget__header",children:(0,l.jsx)(o,{})}),(0,l.jsx)("div",{className:"googlesitekit-widget__body",children:e}),r&&(0,l.jsx)("div",{className:"googlesitekit-widget__footer",children:(0,l.jsx)(r,{})})]}));c.defaultProps={children:void 0,noPadding:!1},c.propTypes={children:r().node,widgetSlug:r().string.isRequired,noPadding:r().bool,Header:r().elementType,Footer:r().elementType};const d=c},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})},74655:(e,t,i)=>{i.d(t,{A:()=>ChangeBadge});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(13047),l=i(62540);function ChangeBadge(e){const{previousValue:t,currentValue:i,isAbsolute:s}=e,n=s?i-t:(0,a.Zf)(t,i),o=n<0,c=0===n;return null===n?null:(0,l.jsx)("div",{className:r()("googlesitekit-change-badge",{"googlesitekit-change-badge--negative":o,"googlesitekit-change-badge--zero":c}),children:(0,a.Eo)(n,{style:"percent",signDisplay:"exceptZero",maximumFractionDigits:1})})}ChangeBadge.propTypes={isAbsolute:n().bool,previousValue:n().number.isRequired,currentValue:n().number.isRequired}},75649:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(82871),n=i(63696);function o({isDismissalFinal:e}={}){const[t]=(0,n.useState)(!0===e?(0,s.__)("Don’t show again","google-site-kit"):(0,s.__)("Maybe later","google-site-kit"));return t}},76729:(e,t,i)=>{i.d(t,{Q:()=>s});const s="emailReportingUserSettingsSelectionPanelOpened"},76984:(e,t,i)=>{i.d(t,{Q:()=>s});const s={NEW:"new",SUCCESS:"success",WARNING:"warning",INFO:"info",INFO_ALT:"info-alt",INFO_ALT_2:"info-alt-2",ERROR:"error"}},78307:(e,t,i)=>{i.d(t,{A:()=>HelpMenu});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(21795),l=i(63696),c=i(19266),d=i(82871),u=i(50539),g=i(49383),p=i(13047),m=i(38432),h=i(62659),f=i(30805),_=i(62540);function HelpMenuLink({children:e,href:t,gaEventLabel:i,onClick:s,icon:n}){const o=(0,h.A)(),r=(0,f.i)("setupFlowRefresh"),a=(0,l.useCallback)(async()=>{s?.(),i&&await(0,p.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)(m.A,{className:"mdc-list-item__text",href:t,role:"menuitem",onClick:a,leadingIcon:n,external:!0,hideExternalIndicator:!0,children:e})})}HelpMenuLink.propTypes={children:r().node.isRequired,href:r().string,gaEventLabel:r().string,onClick:r().func};const y=HelpMenuLink;var v,k,x=i(88273),A=i(29785),b=i(97345),I=i(58718),S=i(12896),j=i(40194);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},E.apply(null,arguments)}const M=e=>l.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),v||(v=l.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"})),k||(k=l.createElement("path",{fill:"currentColor",d:"M11.5 8.5H13v4h-1.5zM11.5 13.5H13V15h-1.5z"})));var N,w,C;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},T.apply(null,arguments)}const D=e=>l.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),N||(N=l.createElement("circle",{cx:12,cy:11,r:8.25,stroke:"currentColor",strokeWidth:1.5})),w||(w=l.createElement("path",{fill:"currentColor",d:"m10 9 7-3-2.953 7.047L7 16z"})),C||(C=l.createElement("circle",{cx:12,cy:11,r:1,fill:"#fff"})));var R,O,L;function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},z.apply(null,arguments)}const B=e=>l.createElement("svg",z({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),R||(R=l.createElement("mask",{id:"support_svg__a",fill:"#fff"},l.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"}))),O||(O=l.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)"})),L||(L=l.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 P,G,F;function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},U.apply(null,arguments)}const W=e=>l.createElement("svg",U({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),P||(P=l.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"})),G||(G=l.createElement("path",{fill:"currentColor",d:"M13.5 9V3L19 9z"})),F||(F=l.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M8.5 11.5h7M8.5 14.5h7M8.5 17.5H13"})));var V;function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},H.apply(null,arguments)}const Y=e=>l.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),V||(V=l.createElement("path",{fill:"currentColor",d:"M9 16h2v-2H9zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})));var q,Q;function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Z.apply(null,arguments)}const K=e=>l.createElement("svg",Z({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),q||(q=l.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"})),Q||(Q=l.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"})));function HelpMenu({children:e}){const[t,i]=(0,l.useState)(!1),s=(0,l.useRef)(),o=(0,h.A)(),r=(0,f.i)("setupFlowRefresh");(0,a.A)(s,()=>i(!1)),(0,S.l)([c._f,c.wn],s,()=>i(!1));const m=(0,u.useSelect)(e=>e(x.i).isModuleActive(I.Py)),v=(0,l.useCallback)(()=>{t||(0,p.sx)(`${o}_headerbar`,"open_helpmenu"),i(!t)},[t,o]),k=(0,l.useCallback)(()=>{i(!1)},[]),E=(0,u.useSelect)(e=>e(A.O4).getDocumentationLinkURL("fix-common-issues")),{triggerOnDemandTour:N}=(0,u.useDispatch)(b.oR),w=(0,j.G)(),C=(0,l.useCallback)(()=>{N(w)},[N,w]),T=[{gaEventLabel:"fix_common_issues",href:E,children:(0,d.__)("Fix common issues","google-site-kit")},{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/",children:(0,d.__)("Read help docs","google-site-kit")},{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/",children:(0,d.__)("Get support","google-site-kit")},...m?[{gaEventLabel:"adsense_help",href:"https://support.google.com/adsense/",children:(0,d.__)("Get help with AdSense","google-site-kit")}]:[]],R=[{gaEventLabel:"browse_documentation",href:"https://sitekit.withgoogle.com/documentation/",icon:(0,_.jsx)(W,{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)(B,{width:24,height:24}),children:(0,d.__)("Get free support","google-site-kit")},{gaEventLabel:"start_tour",onClick:C,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)(M,{width:24,height:24}),children:(0,d.__)("Send feedback","google-site-kit")},...m?[{gaEventLabel:"get_adsense_help",href:"https://support.google.com/adsense/",icon:(0,_.jsx)(K,{width:24,height:24}),children:(0,d.__)("Get help with AdSense","google-site-kit")}]:[]];return(0,_.jsxs)("div",{ref:s,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,_.jsx)(g.Button,{"aria-controls":"googlesitekit-help-menu","aria-expanded":t,"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)(Y,{width:"20",height:"20"}),onClick:v,tooltipEnterDelayInMS:500,text:!0}),(0,_.jsxs)(g.Menu,{className:n()("googlesitekit-width-auto",{"googlesitekit-help-menu":r}),menuOpen:t,id:"googlesitekit-help-menu",onSelected:k,children:[e,(r?R:T).map((e,t)=>(0,_.jsx)(y,{...e},t))]})]})}HelpMenu.propTypes={children:r().node}},78990:(e,t,i)=>{i.d(t,{P9:()=>_,k:()=>m,mR:()=>f});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 d="CREATE_SNAPSHOT",u="DELETE_SNAPSHOT",g="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:u}},*restoreSnapshot(e={}){const{clearAfterRestore:t=!0}=e,{cacheHit:i,value:s}=yield{payload:{},type:g};return i&&(yield{payload:{snapshot:s},type:p},t&&(yield{payload:{},type:u})),i},*createSnapshot(){return yield{payload:{},type:d}}},a={[u]:()=>(0,l.LD)(`datastore::cache::${e}`),[d]:(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)}),[g]:()=>(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 f(e=a()){return Promise.all(h(e).map(e=>e.getActions().createSnapshot()))}function _(e=a()){return Promise.all(h(e).map(e=>e.getActions().restoreSnapshot()))}},79266:(e,t,i)=>{i.d(t,{A:()=>WidgetRecoverableModules});var s=i(62688),n=i.n(s),o=i(63696),r=i(96820),a=i(97591),l=i(62540);function WidgetRecoverableModules({widgetSlug:e,moduleSlugs:t,...i}){const s=(0,o.useMemo)(()=>({moduleSlug:[...t].sort().join(","),moduleSlugs:t}),[t]);return(0,r.A)(e,a.A,s),(0,l.jsx)(a.A,{moduleSlugs:t,...i})}WidgetRecoverableModules.propTypes={widgetSlug:n().string.isRequired,...a.A.propTypes}},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(82246),d=i(94656),u=i(29785),g=i(80),p=i(13137),m=i(13047),h=i(62540);function AudienceErrorModal({apiErrors:e,hasOAuthError:t,inProgress:i,title:s,description:n,trackEventCategory:f,onCancel:_=()=>{},onRetry:y=()=>{}}){const v=Array.isArray(e)?e:[e],k=(0,a.useSelect)(e=>e(u.O4).getErrorTroubleshootingLinkURL({code:"analytics-4_insufficient_permissions"})),x=(0,a.useSelect)(e=>e(g.K9).getServiceEntityAccessURL()),A=(0,a.useSelect)(e=>e(u.O4).getErrorTroubleshootingLinkURL({code:"access_denied"}));if(!v.length&&!t)return null;const b=v.some(e=>(0,p.SG)(e));let I,S,j,E;return t?(I=(0,r.__)("Analytics update failed","google-site-kit"),S=(0,o.A)((0,r.__)("Setup was interrupted because you did not grant the necessary permissions. <HelpLink />","google-site-kit"),{HelpLink:(0,h.jsx)(l.A,{href:A,external:!0,hideExternalIndicator:!0,children:(0,r.__)("Get help","google-site-kit")})}),j=(0,r.__)("Retry","google-site-kit")):b?(I=(0,r.__)("Insufficient permissions","google-site-kit"),S=(0,o.A)((0,r.__)("You’ll need to contact your administrator. Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:(0,h.jsx)(l.A,{href:k,external:!0,hideExternalIndicator:!0,children:(0,r.__)("Get help","google-site-kit")})}),j=(0,r.__)("Request access","google-site-kit"),E=x):(I=s||(0,r.__)("Failed to set up visitor groups","google-site-kit"),S=n||(0,r.__)("Oops! Something went wrong. Retry enabling groups.","google-site-kit"),j=(0,r.__)("Retry","google-site-kit")),(0,h.jsx)(d.A,{children:(0,h.jsx)(c.A,{buttonLink:E,title:I,subtitle:S,handleConfirm:function(){let e;e=t?"auth_error_retry":b?"insufficient_permissions_error_request_access":"setup_error_retry",(0,m.sx)(f,e).finally(()=>{b||y()})},confirmButton:j,handleCancel:function(){let e;e=t?"auth_error_cancel":b?"insufficient_permissions_error_cancel":"setup_error_cancel",(0,m.sx)(f,e).finally(_)},onOpen:()=>{let e;e=t?"auth_error":b?"insufficient_permissions_error":"setup_error",(0,m.sx)(f,e)},onClose:_,inProgress:i,refocusQuerySelector:"#audience_segmentation_setup_cta-notification .googlesitekit-banner__cta",danger:!0,dialogActive:!0})})}AudienceErrorModal.propTypes={apiErrors: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}},79754:(e,t,i)=>{i.d(t,{A:()=>WidgetNull});var s=i(62688),n=i.n(s),o=i(96820),r=i(64515),a=i(62540);const l={};function WidgetNull({widgetSlug:e}){return(0,o.A)(e,r.A,l),(0,a.jsx)(r.A,{})}WidgetNull.propTypes={widgetSlug:n().string.isRequired,...r.A.propTypes}},79961:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(63696),n=i(84895);const o=(0,s.createContext)(n.t)},80452:(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;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 9"},e),s||(s=n.createElement("path",{stroke:"currentColor",strokeLinecap:"square",strokeWidth:1.6,d:"m2 5.309 1.474 2.14c.69 1.001 1.946 1.001 2.636 0L10 1.8"})))},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:d,desktopHeight:u}){const g=[];let p=0;for(;p++<s;)g.push((0,r.jsx)(o.A,{width:e,height:t,shape:i,smallWidth:n,smallHeight:a,tabletWidth:l,tabletHeight:c,desktopWidth:d,desktopHeight:u},p));return g}PreviewBlocks.propTypes={width:n().string,height:n().string,shape:n().string,count:n().number,smallWidth:n().string,smallHeight:n().string,tabletWidth:n().string,tabletHeight:n().string,desktopWidth:n().string,desktopHeight:n().string},PreviewBlocks.defaultProps={width:"100px",height:"100px",shape:"square",count:1};const a=PreviewBlocks},82246:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(62688),n=i.n(s),o=i(63696),r=i(81276),a=i(49383),l=i(59865),c=i(62540);let d=null;function RefocusableModalDialog({dialogActive:e=!1,refocusQuerySelector:t=null,...i}){const s=(0,o.useCallback)(()=>{setTimeout(()=>{const e=t?document.querySelector(t):d;e&&document.body.contains(e)&&e.focus(),t||(d=null)})},[t]),n=(0,r.A)(e);return(0,o.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")&&(d=t)}void 0!==i.g&&i.g.document&&!i.g._googlesitekitModalFocusTrackerInitialized&&(i.g.document.addEventListener("mousedown",e),i.g.document.addEventListener("keydown",t=>{"Enter"!==t.key&&" "!==t.key||e(t)}),i.g._googlesitekitModalFocusTrackerInitialized=!0)}(),RefocusableModalDialog.propTypes={dialogActive:n().bool,refocusQuerySelector:n().string,...a.Dialog.propTypes};const u=RefocusableModalDialog},82267:(e,t,i)=>{i.d(t,{A:()=>InfoTooltip});var s,n=i(4452),o=i.n(n),r=i(62688),a=i.n(r),l=i(49383),c=i(63696);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},d.apply(null,arguments)}const u=e=>c.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=c.createElement("path",{fill:"currentColor",d:"M7.334 11.333h1.333v-4H7.334zM8.001 6a.658.658 0 0 0 .667-.667.6.6 0 0 0-.2-.467.6.6 0 0 0-.467-.2.66.66 0 0 0-.667.667q0 .284.183.483A.7.7 0 0 0 8.001 6m0 8.666a6.6 6.6 0 0 1-2.6-.516 6.9 6.9 0 0 1-2.117-1.434A6.9 6.9 0 0 1 1.851 10.6 6.6 6.6 0 0 1 1.334 8q0-1.385.517-2.6a6.9 6.9 0 0 1 1.433-2.117q.9-.9 2.117-1.417A6.4 6.4 0 0 1 8 1.333q1.383 0 2.6.533a6.6 6.6 0 0 1 2.116 1.417q.9.9 1.417 2.117.533 1.215.533 2.6 0 1.383-.533 2.6a6.6 6.6 0 0 1-1.417 2.116 6.9 6.9 0 0 1-2.116 1.434 6.6 6.6 0 0 1-2.6.516m0-1.333q2.233 0 3.783-1.55T13.334 8t-1.55-3.784-3.783-1.55-3.784 1.55T2.667 8t1.55 3.783 3.784 1.55"})));var g=i(62540);function InfoTooltip({onOpen:e,title:t,tooltipClassName:i}){return t?(0,g.jsx)(l.Tooltip,{className:"googlesitekit-info-tooltip",tooltipClassName:o()("googlesitekit-info-tooltip__content",i),title:t,placement:"top",enterTouchDelay:0,leaveTouchDelay:5e3,onOpen:e,interactive:!0,children:(0,g.jsx)("span",{tabIndex:"0",role:"tooltip",children:(0,g.jsx)(u,{width:"16",height:"16"})})}):null}InfoTooltip.propTypes={onOpen:a().func,title:a().oneOfType([a().string,a().element]),tooltipClassName:a().string}},82624:(e,t,i)=>{i.d(t,{A:()=>He});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(41814),l=i(82871),c=i(63696),d=i(50539),u=i(44436),g=i(21795),p=i(19266),m=i(49383),h=i(59865),f=i(62540);function Divider({className:e}){return(0,f.jsx)("li",{className:r()("mdc-list-divider",e),role:"separator"})}function MenuItem({id:e,className:t,role:i,isInteractive:s=!0,onClick:n,icon:o,label:a,description:l,trailing:c,children:d,itemClassName:u="googlesitekit-header-menu__item",iconClassName:g="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 _=d||(0,f.jsxs)("div",{className:u,children:[o&&(0,f.jsx)("div",{className:g,children:o}),a&&(0,f.jsx)("span",{className:p,children:a}),l&&(0,f.jsx)("span",{className:m,children:l}),c&&(0,f.jsx)("span",{className:h,children:c})]}),y=void 0===i&&s?"menuitem":i,v=r()(t,{"mdc-list-item":s}),k="function"==typeof n;return(0,f.jsx)("li",{id:e,className:v||void 0,role:y,children:k?(0,f.jsx)("button",{type:"button",className:"googlesitekit-header-menu__item-button",onClick:n,children:_}):_})}function MenuSection({id:e,className:t,role:i,children:s}){return(0,f.jsx)("li",{id:e,className:t,role:i,children:s})}function MenuWithHeading({heading:e,className:t,children:i}){return(0,f.jsxs)(MenuSection,{className:t,children:[e,i]})}Divider.propTypes={className:n().string},MenuItem.propTypes={id:n().string,className:n().string,role:n().string,isInteractive:n().bool,onClick:n().func,icon:n().node,label:n().node,description:n().node,trailing:n().node,children:n().node,itemClassName:n().string,iconClassName:n().string,labelClassName:n().string,descriptionClassName:n().string,trailingClassName:n().string},MenuSection.propTypes={id:n().string,className:n().string,role:n().string,children:n().node},MenuWithHeading.propTypes={heading:n().node,className:n().string,children:n().node};var _,y,v=i(13047),k=i(49993),x=i(94656),A=i(97345);function Details(){const e=(0,d.useSelect)(e=>e(A.oR).getPicture()),t=(0,d.useSelect)(e=>e(A.oR).getFullName()),i=(0,d.useSelect)(e=>e(A.oR).getEmail());return(0,f.jsxs)("div",{className:"googlesitekit-user-menu__details","aria-label":(0,l.__)("Google account","google-site-kit"),children:[!!e&&(0,f.jsx)("img",{className:"googlesitekit-user-menu__details-avatar",src:e,alt:""}),(0,f.jsxs)("div",{className:"googlesitekit-user-menu__details-info",children:[(0,f.jsx)("p",{className:"googlesitekit-user-menu__details-info__name",children:t}),(0,f.jsx)("p",{className:"googlesitekit-user-menu__details-info__email","aria-label":(0,l.__)("Email","google-site-kit"),children:i})]})]})}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},b.apply(null,arguments)}const I=e=>c.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),_||(_=c.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"})),y||(y=c.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 S,j,E,M,N;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},w.apply(null,arguments)}const C=e=>c.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),S||(S=c.createElement("rect",{width:18,height:13,x:3,y:4,stroke:"currentColor",strokeWidth:1.5,rx:2})),j||(j=c.createElement("path",{fill:"currentColor",d:"M9 17h6v3H9z"})),E||(E=c.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M10 9h7M10 12h7"})),M||(M=c.createElement("circle",{cx:7,cy:9,r:1,fill:"currentColor"})),N||(N=c.createElement("circle",{cx:7,cy:12,r:1,fill:"currentColor"})));var T=i(46467),D=i(29785),R=i(7972),O=i(70301),L=i(80),z=i(76729),B=i(12896),P=i(62659),G=i(68832),F=i(30805);function UserMenu(){const e=(0,F.i)("proactiveUserEngagement"),t=(0,d.useSelect)(e=>e(D.O4).getProxyPermissionsURL()),i=(0,d.useSelect)(e=>e(A.oR).getEmail()),s=(0,d.useSelect)(e=>e(A.oR).getPicture()),n=(0,d.useSelect)(e=>e(A.oR).getFullName()),o=(0,d.useSelect)(e=>e(D.O4).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})),r=(0,G.A)(L.CV,"isAutoCreatingCustomDimensionsForAudience"),{isTooltipVisible:a=!1,className:u}=(0,d.useSelect)(e=>e(R.n).getValue("admin-screen-tooltip")||{isTooltipVisible:!1}),[_,y]=(0,c.useState)(!1),[b,S]=(0,c.useState)(!1),j=(0,c.useRef)(),E=(0,c.useRef)(),M=(0,P.A)(),{navigateTo:N}=(0,d.useDispatch)(O.M);(0,g.A)(j,()=>S(!1)),(0,B.l)([p._f,p.wn],j,()=>{S(!1),E.current?.focus()});const w=(0,c.useCallback)(()=>{y(!1),S(!1)},[y,S]),{setValue:U}=(0,d.useDispatch)(R.n),W=(0,c.useCallback)(()=>{b||((0,v.sx)(`${M}_headerbar`,"open_usermenu"),a&&u?.includes("googlesitekit-tour-tooltip--user-menu")&&U("admin-screen-tooltip",void 0)),S(!b)},[b,M,U,a,u]),V=(0,c.useCallback)(()=>{y(!_),S(!1)},[_]),H=(0,c.useCallback)(async(e,i)=>{const{detail:{item:s}}=i;switch(s?.id){case"manage-sites":t&&(await(0,v.sx)(`${M}_headerbar_usermenu`,"manage_sites"),N(t));break;case"disconnect":V();break;case"manage-email-reports":U(z.Q,!0);break;default:W()}},[t,W,V,N,U,M]),Y=(0,c.useCallback)(async()=>{y(!1),await(0,k.IL)(),await(0,v.sx)(`${M}_headerbar_usermenu`,"disconnect_user"),N(o)},[o,N,M]);if(!i)return null;let q;return n&&i&&(q=(0,l.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,l.__)("Google Account for %1$s (Email: %2$s)","google-site-kit"),n,i)),n&&!i&&(q=(0,l.sprintf)(/* translators: Account info text. 1: User's (full) name. */ /* translators: Account info text. 1: User's (full) name. */ (0,l.__)("Google Account for %1$s","google-site-kit"),n)),!n&&i&&(q=(0,l.sprintf)(/* translators: Account info text. 1: User's email address. */ /* translators: Account info text. 1: User's email address. */ (0,l.__)("Google Account (Email: %1$s)","google-site-kit"),i)),(0,f.jsxs)(c.Fragment,{children:[(0,f.jsxs)("div",{ref:j,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,f.jsx)(m.Button,{disabled:r,ref:E,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:W,icon:!!s&&(0,f.jsx)("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true",children:(0,f.jsx)("img",{className:"mdc-button__icon--image",src:s,alt:(0,l.__)("User Avatar","google-site-kit")})}),"aria-haspopup":"menu","aria-expanded":b,"aria-controls":"user-menu","aria-label":r?void 0:(0,l.__)("Account","google-site-kit"),tooltipEnterDelayInMS:500,customizedTooltip:r?null:(0,f.jsxs)("span",{"aria-label":q,children:[(0,f.jsx)("strong",{children:(0,l.__)("Google Account","google-site-kit")}),(0,f.jsx)("br",{}),(0,f.jsx)("br",{}),n,n&&(0,f.jsx)("br",{}),i]}),text:!0,tooltip:!0}),(0,f.jsxs)(m.Menu,{className:"googlesitekit-user-menu",menuOpen:b,onSelected:H,id:"user-menu",children:[(0,f.jsx)(MenuSection,{children:(0,f.jsx)(Details,{})}),e&&(0,f.jsx)(MenuItem,{id:"manage-email-reports",icon:(0,f.jsx)(T.A,{width:"24"}),label:(0,l.__)("Manage email reports","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"}),!!t&&(0,f.jsx)(MenuItem,{id:"manage-sites",icon:(0,f.jsx)(C,{width:"24"}),label:(0,l.__)("Manage Sites","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"}),(0,f.jsx)(MenuItem,{id:"disconnect",icon:(0,f.jsx)(I,{width:"24"}),label:(0,l.__)("Disconnect","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"})]})]}),(0,f.jsx)(x.A,{children:(0,f.jsx)(h.A,{dialogActive:_,handleConfirm:Y,handleCancel:w,onClose:w,title:(0,l.__)("Disconnect","google-site-kit"),subtitle:(0,l.__)("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,l.__)("Disconnect","google-site-kit"),danger:!0,small:!0})})]})}var U=i(10740),W=i(4124),V=i(45257),H=i(15844),Y=i(31589),q=i(39525),Q=i(30521),Z=i(20697),K=i(7551),$=i(11883),X=i(97513);var J=i(59352),ee=i(4169);const te={[K.Oo]:{[Z.SH]:J.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,[Z.OT]:J.CONTEXT_MAIN_DASHBOARD_TRAFFIC,[Z.en]:J.CONTEXT_MAIN_DASHBOARD_CONTENT,[Z.Ej]:J.CONTEXT_MAIN_DASHBOARD_SPEED,[Z.Gw]:J.CONTEXT_MAIN_DASHBOARD_MONETIZATION},[K.oE]:{[Z.OT]:J.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,[Z.en]:J.CONTEXT_ENTITY_DASHBOARD_CONTENT,[Z.Ej]:J.CONTEXT_ENTITY_DASHBOARD_SPEED,[Z.Gw]:J.CONTEXT_ENTITY_DASHBOARD_MONETIZATION}};var ie;function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},se.apply(null,arguments)}const ne=e=>c.createElement("svg",se({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 18"},e),ie||(ie=c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M18 16V2c0-1.1-1-2-2.222-2H2.222C1 0 0 .9 0 2v14c0 1.1 1 2 2.222 2h13.556C17 18 18 17.1 18 16M9 7h5V5H9zm7-5H2v14h14zM4 4h4v4H4zm10 7H9v2h5zM4 10h4v4H4z",clipRule:"evenodd"})));var oe,re,ae,le;function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},ce.apply(null,arguments)}const de=e=>c.createElement("svg",ce({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 12"},e),oe||(oe=c.createElement("rect",{width:5,height:5,x:.5,fill:"currentColor",rx:1})),re||(re=c.createElement("rect",{width:5,height:5,x:7.5,fill:"currentColor",rx:1})),ae||(ae=c.createElement("rect",{width:5,height:5,x:.5,y:7,fill:"currentColor",rx:1})),le||(le=c.createElement("rect",{width:5,height:5,x:7.5,y:7,fill:"currentColor",rx:1})));var ue;function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},ge.apply(null,arguments)}const pe=e=>c.createElement("svg",ge({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 23 12"},e),ue||(ue=c.createElement("path",{fill:"currentColor",d:"M16.1 0v2h2.967l-5.946 5.17-4.6-4L0 10.59 1.622 12l6.9-6 4.6 4L20.7 3.42V6H23V0z"})));var me,he;function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},fe.apply(null,arguments)}const _e=e=>c.createElement("svg",fe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 16"},e),me||(me=c.createElement("path",{fill:"currentColor",d:"m18.378 4.543-1.232 1.854a8.02 8.02 0 0 1-.22 7.598H3.043A8.02 8.02 0 0 1 4.154 4.49 8.01 8.01 0 0 1 13.57 2.82l1.853-1.233A10.01 10.01 0 0 0 3.117 2.758a10.026 10.026 0 0 0-1.797 12.24A2 2 0 0 0 3.043 16h13.873a2 2 0 0 0 1.742-1.002 10.03 10.03 0 0 0-.27-10.465z"})),he||(he=c.createElement("path",{fill:"currentColor",d:"M8.572 11.399a2.003 2.003 0 0 0 2.835 0l5.669-8.51-8.504 5.673a2.005 2.005 0 0 0 0 2.837"})));var ye;function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},ve.apply(null,arguments)}const ke=e=>c.createElement("svg",ve({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 16"},e),ye||(ye=c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 0h3.971v16H7zM0 8h4v8H0zm18-3h-4v11h4z",clipRule:"evenodd"})));function Navigation(){const e=(0,K.Ay)(),t=(0,c.useRef)(),s=(0,P.A)(),n=function(){const e=(0,K.Ay)(),t=(0,W.A)();return(0,d.useSelect)(i=>{const s=t?i(A.oR).getViewableModules():null,n=i(A.oR).isKeyMetricsWidgetHidden(),o={modules:s||void 0};return Object.keys(te[e]).reduce((t,s)=>(s===Z.SH&&n||i(ee.aO).isWidgetContextActive(te[e][s],o)&&t.push(s),t),[])})}(),{calculateScrollPosition:o,defaultChipID:a,findClosestSection:u,isValidChipID:g,scrollToChip:p,updateURLHash:m}=function({visibleSections:e}){const t=(0,X.dv)(),s=(0,W.A)(),n=(0,c.useCallback)(()=>e.includes(Z.SH)?Z.SH:s?e[0]||"":Z.OT,[s,e])(),o=(0,c.useCallback)(t=>e.includes(t),[e]),r=(0,c.useCallback)(e=>{i.g.history.replaceState({},"",`#${e}`)},[]),a=(0,c.useCallback)(e=>e!==n?(0,$.YJ)(`#${e}`,t):0,[t,n]),l=(0,c.useCallback)(e=>{i.g.scrollTo({top:a(e,t,n),behavior:"smooth"})},[t,a,n]),d=(0,c.useCallback)(t=>{var i;const s=document.querySelector(".googlesitekit-entity-header")?.getBoundingClientRect?.()?.bottom,{bottom:o}=null!==(i=t?.current?.getBoundingClientRect?.())&&void 0!==i?i:{};let r,a=n;for(const t of e){const e=document.getElementById(t);if(!e)continue;const i=e.getBoundingClientRect().top-20-(s||o||0);i<0&&(void 0===r||r<i)&&(r=i,a=t)}return a},[n,e]);return{calculateScrollPosition:a,defaultChipID:n,findClosestSection:d,isValidChipID:o,scrollToChip:l,updateURLHash:r}}({visibleSections:n}),h=i.g.location.hash?.substring(1),[_,y]=(0,c.useState)(h||void 0),[k,x]=(0,c.useState)(!1),[b,I]=(0,c.useState)(h),{setValue:S}=(0,d.useDispatch)(R.n),j=(0,c.useCallback)(({target:e})=>{const t=e.closest(".mdc-chip"),i=t?.dataset?.contextId;m(i),y(i),p(i),(0,v.sx)(`${s}_navigation`,"tab_select",i),setTimeout(()=>{S(R.F,i)},50)},[p,S,m,s]),E=(0,c.useCallback)(()=>{if(!t?.current)return;const{top:e}=t?.current?.getBoundingClientRect();if(0===i.g.scrollY)x(!1);else{const t=document.querySelector(".googlesitekit-header")?.getBoundingClientRect?.()?.bottom;x(e===t)}},[]),M=(0,c.useCallback)(e=>{function n(e){S(R.F,void 0),I(e),y(void 0)}const o=u(t);if(_)_===o&&n(o);else{const{hash:t}=i.g.location;o!==t?.substring(1)&&(e&&(0,v.sx)(`${s}_navigation`,"tab_scroll",o),m(o),n(o))}},[u,_,S,m,s]);(0,H.A)(()=>{if(!h)return I(a),void setTimeout(()=>m(a));const e=g(h)?h:a;I(e),S(R.F,e),setTimeout(()=>{const t=o(e);i.g.scrollY!==t?p(e):S(R.F,void 0)},50)});const N=(0,c.useCallback)(e=>{E(),M(e)},[M,E]),w=(0,Q.A)(N,150);(0,Y.A)("scroll",w);const C={[Z.SH]:{label:(0,l.__)("Key metrics","google-site-kit"),icon:(0,f.jsx)(de,{width:"18",height:"16"})},[Z.OT]:{label:(0,l.__)("Traffic","google-site-kit"),icon:(0,f.jsx)(ke,{width:"18",height:"16"})},[Z.en]:{label:(0,l.__)("Content","google-site-kit"),icon:(0,f.jsx)(ne,{width:"18",height:"18"})},[Z.Ej]:{label:(0,l.__)("Speed","google-site-kit"),icon:(0,f.jsx)(_e,{width:"20",height:"16"})},[Z.Gw]:{label:(0,l.__)("Monetization","google-site-kit"),icon:(0,f.jsx)(pe,{width:"18",height:"16"})}};return(0,f.jsx)("nav",{className:r()("mdc-chip-set","googlesitekit-navigation",`googlesitekit-navigation--${e}`,{"googlesitekit-navigation--is-sticky":k}),ref:t,children:n.map(e=>(0,f.jsx)(q.Chip,{id:e,label:C[e].label,leadingIcon:C[e].icon,onClick:j,selected:b===e,"data-context-id":e},e))})}function DashboardNavigation(){const e=(0,W.A)(),t=(0,d.useSelect)(t=>e?t(A.oR).getViewableModules():null),i=(0,d.useSelect)(e=>e(A.oR).getKeyMetrics());return(0,f.jsx)(V.A,{loading:void 0===t||void 0===i,width:"100%",smallHeight:"59px",height:"71px",children:(0,f.jsx)(Navigation,{})})}var xe,Ae;function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},be.apply(null,arguments)}const Ie=e=>c.createElement("svg",be({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),xe||(xe=c.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),Ae||(Ae=c.createElement("path",{fill:"currentColor",d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"})));var Se=i(38432),je=i(83880),Ee=i(48276);const Me=function EntityHeader(){const e=(0,P.A)(),t=(0,K.Ay)(),s=(0,d.useSelect)(e=>e(D.O4).getCurrentEntityTitle()),n=(0,d.useSelect)(e=>e(D.O4).getCurrentEntityURL()),o=(0,c.useRef)(),[r,a]=(0,c.useState)(n),u=(0,c.useCallback)(()=>{if(!o.current)return;const e=o.current.clientWidth-40,t=i.g.getComputedStyle(o.current.lastChild,null).getPropertyValue("font-size"),s=2*e/parseFloat(t);a((0,Ee.r0)(n,s))},[n]),g=(0,Q.A)(u,150);(0,Y.A)("resize",g);const{navigateTo:p}=(0,d.useDispatch)(O.M),h=(0,d.useSelect)(e=>e(D.O4).getAdminURL("googlesitekit-dashboard")),_=(0,c.useCallback)(()=>{(0,v.sx)(`${e}_navigation`,"return_to_dashboard"),p(h)},[h,p,e]);return K.oE!==t||null===n||null===s?null:(0,f.jsxs)("div",{className:"googlesitekit-entity-header",children:[(0,f.jsx)("div",{className:"googlesitekit-entity-header__back",children:(0,f.jsx)(m.Button,{icon:(0,f.jsx)(Ie,{width:24,height:24}),"aria-label":(0,l.__)("Back to dashboard","google-site-kit"),onClick:_,text:!0,tertiary:!0,children:(0,l.__)("Back to dashboard","google-site-kit")})}),(0,f.jsxs)("div",{ref:o,className:"googlesitekit-entity-header__details",children:[(0,f.jsx)(je.A,{children:s}),(0,f.jsx)(Se.A,{href:n,"aria-label":n,secondary:!0,external:!0,children:r})]})]})};var Ne;function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},we.apply(null,arguments)}const Ce=e=>c.createElement("svg",we({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 10"},e),Ne||(Ne=c.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 Te=i(13606);function Description(){const e=(0,P.A)(),t=(0,d.useSelect)(e=>e(A.oR).hasCapability(A.ej)),i=(0,d.useSelect)(e=>e(D.O4).getProxySetupURL()),s=(0,d.useSelect)(e=>e(D.O4).getDocumentationLinkURL("dashboard-sharing")),{navigateTo:n}=(0,d.useDispatch)(O.M),o=(0,c.useCallback)(async t=>{t.preventDefault(),await Promise.all([(0,k.SO)("start_user_setup",!0),(0,v.sx)(`${e}_headerbar_viewonly`,"start_user_setup",i?"proxy":"custom-oauth")]),n(i)},[i,n,e]),r=(0,c.useCallback)(()=>{(0,v.sx)(`${e}_headerbar_viewonly`,"click_learn_more_link")},[e]),a=t?(0,l.__)("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,Te.A)((0,l.__)("You can see stats from all shared Google services, but you can't make any changes. <a>Learn more</a>","google-site-kit"),{a:(0,f.jsx)(Se.A,{href:s,onClick:r,"aria-label":(0,l.__)("Learn more about dashboard sharing","google-site-kit"),external:!0})});return(0,f.jsxs)(c.Fragment,{children:[(0,f.jsx)(je.A,{className:"googlesitekit-view-only-menu__signin",children:a}),t&&(0,f.jsx)(m.Button,{onClick:o,children:(0,l._x)("Sign in with Google","Service name","google-site-kit")})]})}var De=i(88273);function Service({module:e}){const t=(0,d.useSelect)(e=>e(A.oR).hasCapability(A.ej)),{name:i,owner:s}=(0,d.useSelect)(t=>t(De.i).getModule(e)||{}),n=(0,d.useSelect)(t=>t(De.i).getModuleIcon(e));return(0,f.jsxs)("li",{className:"googlesitekit-view-only-menu__service",children:[(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__service--icon",children:(0,f.jsx)(n,{height:26})}),(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__service--name",children:i}),t&&s?.login&&(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__service--owner",children:s.login})]})}function SharedServices({viewableModules:e}){return Array.isArray(e)?(0,f.jsx)("ul",{children:e.map(e=>(0,f.jsx)(Service,{module:e},e))}):null}Service.propTypes={module:n().string.isRequired},SharedServices.propTypes={viewableModules:n().arrayOf(n().string)};var Re=i(11974);function Tracking(){const e=(0,P.A)();return(0,f.jsx)(Re.A,{title:(0,l.__)("Help us improve Site Kit","google-site-kit"),description:(0,Te.A)((0,l.__)("Share anonymous usage data. All collected data is treated in accordance with the <a>Google Privacy Policy</a>","google-site-kit"),{a:(0,f.jsx)(Se.A,{href:"https://policies.google.com/privacy",external:!0})}),trackEventCategory:`${e}_headerbar_viewonly`,layout:"stacked"})}var Oe=i(52696);function ManageEmailReports(){const{setValue:e}=(0,Oe.wA)(R.n);return(0,Oe.WM)(e=>{const t=e(A.oR).getViewableModules();if(void 0!==t)return t.includes("analytics-4")||t.includes("search-console")})?(0,f.jsxs)(c.Fragment,{children:[(0,f.jsx)(Divider,{}),(0,f.jsx)(MenuItem,{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__email-reporting",isInteractive:!1,children:(0,f.jsx)(m.Button,{className:"googlesitekit-view-only-menu__email-reporting-item",onClick:()=>e(z.Q,!0),icon:(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--icon",children:(0,f.jsx)(T.A,{width:"24"})}),tertiary:!0,children:(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--name",children:(0,l.__)("Manage email reports","google-site-kit")})})})]}):null}var Le=i(33052);function ViewOnlyMenu(){const e=(0,F.i)("proactiveUserEngagement"),[t,i]=(0,c.useState)(!1),s=(0,c.useRef)(),n=(0,P.A)();(0,g.A)(s,()=>i(!1)),(0,B.l)([p._f,p.wn],s,()=>i(!1));const o=(0,c.useCallback)(()=>{t||(0,v.sx)(`${n}_headerbar`,"open_viewonly"),i(!t)},[t,n]),a=(0,d.useSelect)(e=>e(A.oR).hasCapability(A.ej)),u=(0,d.useSelect)(e=>e(A.oR).getViewableModules());return(0,f.jsxs)("div",{ref:s,className:r()("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,f.jsx)(m.Button,{className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--phone googlesitekit-button-icon",onClick:o,icon:(0,f.jsx)("span",{className:"mdc-button__icon","aria-hidden":"true",children:(0,f.jsx)(Ce,{className:"mdc-button__icon--image"})}),"aria-haspopup":"menu","aria-expanded":t,"aria-controls":"view-only-menu","aria-label":(0,l.__)("View only","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:(0,l.__)("View only","google-site-kit")}),(0,f.jsxs)(m.Menu,{menuOpen:t,onSelected:o,id:"view-only-menu",nonInteractive:!0,children:[(0,f.jsx)(MenuSection,{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__description",children:(0,f.jsx)(Description,{})}),Array.isArray(u)&&(0,f.jsx)(MenuWithHeading,{className:"googlesitekit-view-only-menu__list-item",heading:(0,f.jsx)(Le.A,{as:"h4",size:"medium",type:"label",children:(0,l.__)("Shared services","google-site-kit")}),children:(0,f.jsx)(SharedServices,{viewableModules:u})}),e&&(0,f.jsx)(ManageEmailReports,{}),(0,f.jsx)(Divider,{}),(0,f.jsx)(MenuSection,{className:"googlesitekit-view-only-menu__list-item",children:(0,f.jsx)(Tracking,{})})]})]})}var ze=i(8732),Be=i(84730),Pe=i(89766);function CoreSiteBannerNotification({id:e,...t}){const{dismissNotification:i,acceptNotification:s}=(0,d.useDispatch)(D.O4),n=(0,c.useCallback)(()=>{s(e)},[e,s]),o=(0,c.useCallback)(()=>{i(e)},[e,i]);return(0,f.jsx)(Pe.A,{onCTAClick:n,onDismissClick:o,...t,id:e})}CoreSiteBannerNotification.propTypes={content:n().string,ctaLabel:n().string,ctaTarget:n().string,ctaURL:n().string,dismissLabel:n().string,dismissible:n().bool,gaTrackingEventArgs:n().object,id:n().string.isRequired,learnMoreLabel:n().string,learnMoreURL:n().string,title:n().string.isRequired},CoreSiteBannerNotification.defaultProps={content:"",ctaLabel:"",ctaTarget:"",ctaURL:"",dismissLabel:(0,l.__)("OK, Got it!","google-site-kit"),dismissible:!0,learnMoreLabel:"",learnMoreURL:""};const Ge=CoreSiteBannerNotification;const Fe=function CoreSiteBannerNotifications(){const e=(0,P.A)(),[t,i]=(0,c.useState)(!1),[s,n]=(0,c.useState)(!1),o=(0,c.useRef)(Date.now()),r=(0,d.useSelect)(e=>e(D.O4).isUsingProxy()&&!1===e(A.oR).areSurveysOnCooldown()?e(A.oR).getCurrentSurvey():null),[a,l]=(0,c.useState)([]),{registerNotification:u}=(0,d.useDispatch)(ze.D),g=(0,d.useSelect)(e=>e(D.O4).getNotifications());return(0,c.useEffect)(()=>{const e=setTimeout(()=>{s||i(!0)},5e3);return()=>{clearTimeout(e)}},[s]),(0,c.useEffect)(()=>{Math.floor((Date.now()-o.current)/1e3)<5&&r&&n(!0)},[o,r,n]),(0,c.useEffect)(()=>{t&&!s&&g?.forEach(t=>{if(a.includes(t.id))return;const i={category:`${e}_remote-site-notification`,label:t.id};u(t.id,{Component:({Notification:e})=>(0,f.jsx)(e,{gaTrackingEventArgs:i,children:(0,f.jsx)(Ge,{...t,gaTrackingEventArgs:i})}),priority:t.priority,areaSlug:Be.bI.HEADER,isDismissible:t.dismissible}),l(e=>(e.push(t.id),e))})},[e,s,g,u,a,t]),null};var Ue=i(67510),We=i(67438);function InternalServerError(){const e=(0,d.useSelect)(e=>e(D.O4).getInternalServerError());return e?(0,f.jsx)(We.A,{id:"internal-server-error",children:(0,f.jsx)(Ue.A,{notificationID:"internal-server-error",type:Ue.Q.ERROR,title:e.title,description:e.description})}):null}function LegacyNotifications(){const e=(0,W.A)(),t=(0,K.Ay)(),i=(0,d.useSelect)(e=>e(A.oR).isAuthenticated());return(0,f.jsxs)(c.Fragment,{children:[(0,f.jsx)(InternalServerError,{}),!e&&t===K.Oo&&i&&(0,f.jsx)(Fe,{})]})}var Ve=i(37834);function Header({children:e,subHeader:t,showNavigation:i}){const s=!!(0,K.Ay)(),n=(0,W.A)();!function(){const e=(0,P.A)(),t=(0,d.useSelect)(e=>e(D.O4).isUsingProxy()),i=(0,d.useSelect)(e=>e(D.O4).getSetupErrorMessage()),s=(0,F.i)("setupFlowRefresh");(0,c.useEffect)(()=>{s||i||void 0===t||async function(){const i=await(0,k.Gq)("start_user_setup"),s=await(0,k.Gq)("start_site_setup");i.cacheHit&&(await(0,k.LD)("start_user_setup"),(0,v.sx)(`${e}_setup`,"complete_user_setup",t?"proxy":"custom-oauth")),s.cacheHit&&(await(0,k.LD)("start_site_setup"),(0,v.sx)(`${e}_setup`,"complete_site_setup",t?"proxy":"custom-oauth"))}()},[s,e,t,i])}();const o=(0,d.useSelect)(e=>e(D.O4).getAdminURL("googlesitekit-dashboard")),g=(0,d.useSelect)(e=>e(A.oR).isAuthenticated()),[p,m]=(0,a.A)({childList:!0}),h=!!m.target?.childElementCount;return(0,f.jsxs)(c.Fragment,{children:[(0,f.jsx)("header",{className:r()("googlesitekit-header",{"googlesitekit-header--has-subheader":h,"googlesitekit-header--has-navigation":i}),children:(0,f.jsx)(U.xA,{children:(0,f.jsxs)(U.fI,{children:[(0,f.jsx)(U.fh,{smSize:1,mdSize:2,lgSize:4,className:"googlesitekit-header__logo",alignMiddle:!0,children:(0,f.jsx)(Se.A,{"aria-label":(0,l.__)("Go to dashboard","google-site-kit"),className:"googlesitekit-header__logo-link",href:o,children:(0,f.jsx)(u.A,{})})}),(0,f.jsxs)(U.fh,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0,children:[e,!g&&s&&n&&(0,f.jsx)(ViewOnlyMenu,{}),g&&!n&&(0,f.jsx)(UserMenu,{})]})]})})}),(0,f.jsx)("div",{className:"googlesitekit-subheader",ref:p,children:t}),i&&(0,f.jsx)(DashboardNavigation,{}),(0,f.jsx)(Me,{}),(0,f.jsx)(LegacyNotifications,{}),(0,f.jsx)(Ve.A,{areaSlug:Be.bI.HEADER})]})}Header.displayName="Header",Header.propTypes={children:n().node,subHeader:n().element,showNavigation:n().bool},Header.defaultProps={children:null,subHeader:null};const He=Header},82871:e=>{e.exports=googlesitekit.i18n},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),d=i(49383);var u=i(30805),g=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 f=(0,u.i)("setupFlowRefresh"),_=a>1?function(e){return new Array(null!=e?e:0).fill().map((e,t)=>t)}(a):[];function y(e){return r()("googlesitekit-tooltip-indicator",{active:e===i})}const v=f?10:14;return(0,m.jsx)("div",{className:r()("googlesitekit-tour-tooltip",l.className,{"googlesitekit-tour-tooltip--setupFlowRefresh":f}),...h,children:(0,m.jsxs)(n(),{className:"googlesitekit-tooltip-card",children:[(0,m.jsxs)("div",{className:"googlesitekit-tooltip-body",children:[(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:[!f&&(0,m.jsx)("ul",{className:"googlesitekit-tooltip-indicators",children:_.map(e=>(0,m.jsx)("li",{className:y(e)},`indicator-${e}`))}),f&&(0,m.jsxs)("p",{className:"googlesitekit-tooltip-steps",children:[i+1," / ",a]}),(0,m.jsxs)("div",{className:"googlesitekit-tooltip-buttons",children:[0!==i&&(0,m.jsx)(d.Button,{className:"googlesitekit-tooltip-button",text:!f,tertiary:f,...e,children:e.title}),l.cta,o.title&&(0,m.jsx)(d.Button,{className:r()("googlesitekit-tooltip-button",{"googlesitekit-tooltip-button--primary":f}),text:!f,...o,children:o.title})]})]}),(0,m.jsx)(d.Button,{className:"googlesitekit-tooltip-close",icon:(0,m.jsx)(g.A,{width:v,height:v}),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}},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;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.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"})))},83880:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(62688),n=i.n(s),o=i(97513),r=i(33052),a=i(8513),l=i(62540);function c({type:e=a.SZ,size:t,children:i,...s}){const n=(0,o.dv)();return(0,l.jsx)(r.A,{as:"p",type:e,size:t||(n===o.mp?a.Kk:a.Yw),...s,children:i})}c.propTypes={type:n().oneOf(a.tT),size:n().oneOf(a.oJ)}},83891:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(63696),l=i(97513),c=i(62540);function TitleIcon({className:e,children:t}){return(0,c.jsx)("div",{className:n()("googlesitekit-banner__title-icon",e),children:t})}function Title({className:e,children:t}){return(0,c.jsx)("p",{className:n()("googlesitekit-banner__title",e),children:t})}TitleIcon.propTypes={className:r().string,children:r().node},Title.propTypes={className:r().string,children:r().node};var d=i(13047),u=i(41671);function Description({className:e,description:t,learnMoreLink:i,additionalDescription:s,children:o}){return(0,c.jsxs)("div",{className:n()("googlesitekit-banner__description",e),children:[(0,a.isValidElement)(t)?t:"string"==typeof t?(0,c.jsx)("span",{dangerouslySetInnerHTML:(0,d.p9)(t,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}):t," ",i?.href&&(0,c.jsx)(u.A,{...i}),s&&(0,c.jsx)("div",{className:"googlesitekit-banner__additional-description",children:s}),o]})}function HelpText({className:e,children:t}){return(0,c.jsx)("p",{className:n()("googlesitekit-banner__help-text",e),children:t})}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},HelpText.propTypes={className:r().string,children:r().node};var g=i(71189),p=i(61983);function Footer({className:e,children:t}){return(0,c.jsx)("div",{className:n()("googlesitekit-banner__footer",e),children:t})}Footer.propTypes={className:r().string,children:r().node};var m=i(25797);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:f,footer:_},y)=>{const v=(0,l.dv)(),k=v===l.mp||v===l.Lg;let x=null;k&&f?.mobile?x=f.mobile:!k&&f?.desktop&&(x=f.desktop);const A=f?.verticalPosition?f.verticalPosition:"center";return(0,c.jsxs)("div",{ref:y,className:n()("googlesitekit-banner",e),children:[(0,c.jsxs)("div",{className:"googlesitekit-banner__content",children:[t&&(0,c.jsx)(TitleIcon,{children:t}),(0,c.jsx)(Title,{children:i}),(0,c.jsx)(Description,{description:s,learnMoreLink:d,additionalDescription:o}),a&&(0,c.jsx)(HelpText,{children:a}),r&&(0,c.jsx)(m.A,{type:"error",description:r}),(0,c.jsxs)("div",{className:"googlesitekit-notice__action",children:[h&&(0,c.jsx)(g.A,{...h}),u?.onClick&&(0,c.jsx)(p.A,{...u})]})]}),x&&(0,c.jsx)("div",{className:n()("googlesitekit-banner__svg-wrapper",{[`googlesitekit-banner__svg-wrapper--${A}`]:A}),style:{backgroundImage:`url(${x})`}}),_&&(0,c.jsx)(Footer,{children:_})]})});h.propTypes={titleIcon:r().node,title:r().string,description:r().oneOfType([r().string,r().node]),additionalDescription:r().oneOfType([r().string,r().node]),errorText:r().string,helpText:r().string,learnMoreLink:r().shape(u.A.propTypes),dismissButton:r().shape(p.A.propTypes),ctaButton:r().shape(g.A.propTypes),svg:r().shape({desktop:r().elementType,mobile:r().elementType,verticalPosition:r().oneOf(["top","center","bottom"])}),footer:r().node};const f=h},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"}},84895:(e,t,i)=>{i.d(t,{G:()=>n,t:()=>s});const s=new Set(i.g?._googlesitekitBaseData?.enabledFeatures||[]);function n(e,t=s){return t instanceof Set&&t.has(e)}},84984:(e,t,i)=>{i.d(t,{fh:()=>Cell,xA:()=>g,fI:()=>d});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(62540);function Cell(e){const{className:t,alignTop:i,alignMiddle:s,alignBottom:n,alignRight:o,alignLeft:l,smAlignRight:c,mdAlignRight:d,lgAlignRight:u,smSize:g,smStart:p,smOrder:m,mdSize:h,mdStart:f,mdOrder:_,lgSize:y,lgStart:v,lgOrder:k,size:x,children:A,...b}=e;return(0,a.jsx)("div",{...b,className:r()(t,"mdc-layout-grid__cell",{"mdc-layout-grid__cell--align-top":i,"mdc-layout-grid__cell--align-middle":s,"mdc-layout-grid__cell--align-bottom":n,"mdc-layout-grid__cell--align-right":o,"mdc-layout-grid__cell--align-left":l,"mdc-layout-grid__cell--align-right-phone":c,"mdc-layout-grid__cell--align-right-tablet":d,"mdc-layout-grid__cell--align-right-desktop":u,[`mdc-layout-grid__cell--span-${x}`]:12>=x&&x>0,[`mdc-layout-grid__cell--span-${y}-desktop`]:12>=y&&y>0,[`mdc-layout-grid__cell--start-${v}-desktop`]:12>=v&&v>0,[`mdc-layout-grid__cell--order-${k}-desktop`]:12>=k&&k>0,[`mdc-layout-grid__cell--span-${h}-tablet`]:8>=h&&h>0,[`mdc-layout-grid__cell--start-${f}-tablet`]:8>=f&&f>0,[`mdc-layout-grid__cell--order-${_}-tablet`]:8>=_&&_>0,[`mdc-layout-grid__cell--span-${g}-phone`]:4>=g&&g>0,[`mdc-layout-grid__cell--start-${p}-phone`]:4>=p&&p>0,[`mdc-layout-grid__cell--order-${m}-phone`]:4>=m&&m>0}),children:A})}Cell.propTypes={smSize:n().number,smStart:n().number,smOrder:n().number,mdSize:n().number,mdStart:n().number,mdOrder:n().number,lgSize:n().number,lgStart:n().number,lgOrder:n().number,size:n().number,alignTop:n().bool,alignMiddle:n().bool,alignBottom:n().bool,alignRight:n().bool,alignLeft:n().bool,smAlignRight:n().bool,mdAlignRight:n().bool,lgAlignRight:n().bool,className:n().string,children:n().node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,smOrder:0,mdSize:0,mdStart:0,mdOrder:0,lgSize:0,lgStart:0,lgOrder:0};var l=i(63696);const c=(0,l.forwardRef)(({className:e,children:t,...i},s)=>(0,a.jsx)("div",{ref:s,className:r()("mdc-layout-grid__inner",e),...i,children:t}));c.displayName="Row",c.propTypes={className:n().string,children:n().node},c.defaultProps={className:""};const d=c,u=(0,l.forwardRef)(({alignLeft:e,fill:t,className:i,children:s,collapsed:n,...o},l)=>(0,a.jsx)("div",{className:r()("mdc-layout-grid",i,{"mdc-layout-grid--align-left":e,"mdc-layout-grid--collapsed":n,"mdc-layout-grid--fill":t}),...o,ref:l,children:s}));u.displayName="Grid",u.propTypes={alignLeft:n().bool,fill:n().bool,className:n().string,collapsed:n().bool,children:n().node},u.defaultProps={className:""};const g=u},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.n).getInViewResetCount()),d=(0,n.A)(e=>e(a.n).getValue("forceInView"));return(0,o.useEffect)(()=>{t.value&&!i&&l(!0)},[i,t,l]),(0,o.useEffect)(()=>{d&&l(!0)},[d]),(0,s.A)(()=>{l(!1)},[c]),!(!e||!i)||!!t.value}},85135:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(62688),n=i.n(s),o=i(47485),r=i(63696),a=i(82871),l=i(10740),c=i(4452),d=i.n(c),u=i(62540);const g=(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:g,calloutStyle:p,...m},h)=>{const f=t&&!o?"a":"button";return(0,u.jsx)(f,{className:d()("mdc-button",s,{"mdc-button--raised":!i&&!c&&!g,"mdc-button--danger":n,"mdc-button--inverse":l,"mdc-button--tertiary":c,"mdc-button--callout":g,"mdc-button--callout-primary":g||"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"===f?"button":void 0,...m,children:e})});g.propTypes={children:n().node,href:n().string,text:n().bool,className:n().string,danger:n().bool,disabled:n().bool,target:n().string,"aria-label":n().string,inverse:n().bool,tertiary:n().bool,callout:n().bool,calloutStyle:n().oneOf(["primary","warning","error"])};const p=g;var m=i(99573);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,u.jsx)(m.A,{title:s,enterDelay:o,children:e}):e}MaybeTooltip.propTypes={children:n().node.isRequired,disabled:n().bool,tooltip:n().bool,tooltipTitle:n().oneOfType([n().string,n().element]),hasIconOnly:n().bool,tooltipEnterDelayInMS:n().number};const h=(0,r.forwardRef)(({children:e,href:t=null,text:i=!1,className:s="",danger:n=!1,disabled:c=!1,target:d,icon:g=null,trailingIcon:m=null,"aria-label":h,title:f=null,customizedTooltip:_=null,tooltip:y=!1,inverse:v=!1,hideTooltipTitle:k=!1,tooltipEnterDelayInMS:x=100,tertiary:A=!1,callout:b=!1,calloutStyle:I=null,...S},j)=>{const E=(0,r.useCallback)(e=>{null!==e&&l.Nv.attachTo(e)},[]),M=(0,o.A)(j,E);const N=k?null:f||_||h;return(0,u.jsx)(MaybeTooltip,{disabled:c,tooltip:y,tooltipTitle:N,hasIconOnly:!!g&&void 0===e,tooltipEnterDelayInMS:x,children:(0,u.jsxs)(p,{href:t,disabled:c,className:s,danger:n,text:i,tertiary:A,inverse:v,callout:b,calloutStyle:I,ref:M,"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",...S,children:[g,e&&(0,u.jsx)("span",{className:"mdc-button__label",children:e}),m]})})});h.propTypes={onClick:n().func,children:n().node,href:n().string,text:n().bool,className:n().string,danger:n().bool,disabled:n().bool,icon:n().element,trailingIcon:n().element,title:n().string,customizedTooltip:n().element,tooltip:n().bool,inverse:n().bool,hideTooltipTitle:n().bool,callout:n().bool,calloutStyle:n().oneOf(["primary","warning","error"])};const f=h},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;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-labelledby":"warning-title warning-desc",viewBox:"0 0 24 24"},e),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"})))},85662:(e,t,i)=>{i.d(t,{A:()=>DashboardSharingSettingsButton});var s=i(82871),n=i(63696),o=i(50539),r=i(49383),a=i(69195),l=i(62659),c=i(13047),d=i(7972),u=i(29785),g=i(80),p=i(29775),m=i(81042),h=i(31589),f=i(78174),_=i(4452),y=i.n(_),v=i(13606),k=i(19266),x=i(12417),A=i(59837),b=i(88273),I=i(97513),S=i(94656),j=i(10740),E=i(38432),M=i(8712),N=i(62688),w=i.n(N),C=i(62540);function Notice(){const e=(0,o.useSelect)(e=>e(b.i).canSubmitSharingChanges()),t=(0,o.useSelect)(e=>e(b.i).haveSharingSettingsExpanded("management")),i=(0,o.useSelect)(e=>e(b.i).haveSharingSettingsExpanded("sharedRoles"));return(0,C.jsxs)("p",{className:"googlesitekit-dashboard-sharing-settings__notice",children:[t&&e&&(0,C.jsx)("span",{children:(0,v.A)((0,s.__)("By clicking <strong>Apply</strong>, you will give other authenticated admins of your site permission to manage view-only access to Site Kit dashboard data from the chosen Google service","google-site-kit"),{strong:(0,C.jsx)("strong",{})})}),!t&&e&&i&&(0,C.jsx)("span",{children:(0,v.A)((0,s.__)("By clicking <strong>Apply</strong>, you’re granting the selected roles view-only access to data from the Google services you’ve connected via your account","google-site-kit"),{strong:(0,C.jsx)("strong",{})})})]})}var T=i(73198);function Footer({closeDialog:e,openResetDialog:t}){const i=(0,l.A)(),[a,u]=(0,n.useState)(null),[g,m]=(0,n.useState)(!1),h=(0,o.useSelect)(e=>e(b.i).canSubmitSharingChanges()),f=(0,o.useSelect)(e=>e(b.i).isDoingSubmitSharingChanges()),_=(0,o.useSelect)(e=>e(b.i).haveSharingSettingsExpanded("management")),y=(0,o.useSelect)(e=>e(b.i).haveSharingSettingsExpanded("sharedRoles")),v=(0,o.useSelect)(e=>e(b.i).haveSharingSettingsUpdated()),k=(0,o.useSelect)(e=>!!e(d.n).getValue(p.tm)),x=(0,o.useSelect)(e=>!!e(d.n).getValue(p.hk)),{resetSharingSettings:A,saveSharingSettings:I}=(0,o.useDispatch)(b.i),{setValue:S}=(0,o.useDispatch)(d.n),j=(0,n.useCallback)(async()=>{u(null);const{error:t}=await I();t?u(t.message):((0,c.sx)(`${i}_sharing`,"settings_confirm"),S(p.zP,void 0),e())},[i,I,S,e]),M=(0,n.useCallback)(async()=>{u(null),m(!0);const{error:t}=await A();t?u(t.message):(m(!1),e())},[e,A]),N=(0,n.useCallback)(()=>{(0,c.sx)(`${i}_sharing`,"settings_cancel"),e()},[e,i]),w=a||_||y;return(0,C.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer",children:[w&&(0,C.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-notice",children:[a&&(0,C.jsx)(T.A,{message:a}),!a&&(0,C.jsx)(Notice,{})]}),(0,C.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions",children:[v&&k&&!w&&(0,C.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions-left",children:(0,C.jsx)(E.A,{onClick:t,className:"googlesitekit-reset-sharing-permissions-button",danger:!0,children:(0,s.__)("Reset sharing permissions","google-site-kit")})}),(0,C.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions-right",children:[(0,C.jsx)(r.Button,{onClick:N,tertiary:!0,children:(0,s.__)("Cancel","google-site-kit")}),k&&(0,C.jsx)(r.SpinnerButton,{onClick:j,disabled:f||!h,isSaving:f,children:(0,s.__)("Apply","google-site-kit")}),x&&(0,C.jsx)(r.SpinnerButton,{onClick:M,disabled:g,isSaving:g,danger:!0,children:(0,s.__)("Reset","google-site-kit")})]})]})]})}Footer.propTypes={closeDialog:w().func.isRequired,openResetDialog:w().func.isRequired};var D=i(33052);function DashboardSharingDialog(){const[e,t]=(0,n.useState)(!1),i=(0,n.useRef)(void 0),l=(0,I.dv)(),{y:c}=(0,m.A)(),{setValue:g}=(0,o.useDispatch)(d.n),{rollbackSharingSettings:_}=(0,o.useDispatch)(b.i),N=(0,o.useSelect)(e=>!!e(d.n).getValue(p.tm)),w=(0,o.useSelect)(e=>!!e(d.n).getValue(p.hk)),T=(0,o.useSelect)(e=>e(d.n).getValue(p.zP)),R=(0,o.useSelect)(e=>e(b.i).haveSharingSettingsChanged()),O=(0,o.useSelect)(e=>e(u.O4).getDocumentationLinkURL("dashboard-sharing"));(0,n.useEffect)(()=>{if(e){const e=document.querySelector(".googlesitekit-reset-sharing-permissions-button");e&&e.focus(),t(!1)}},[e]);const L={};l===I.mp&&(L.top=(c<46?46-c:0)+"px",L.height=`calc(100% - 46px + ${c<46?c:46}px)`),(0,n.useEffect)(()=>{!N&&R&&_()},[N,R,_]);const z=(0,n.useCallback)(()=>{g(p.tm,!0)},[g]),B=(0,n.useCallback)(()=>{g(p.tm,!1),g(p.zP,void 0)},[g]),P=(0,n.useCallback)(()=>{B(),g(p.hk,!0)},[B,g]),G=(0,n.useCallback)(()=>{g(p.hk,!1),z(),t(!0)},[z,g]),F=(0,n.useCallback)(()=>{w?G():B()},[G,B,w]),U=(0,n.useCallback)(e=>{w&&e.target.classList.contains("mdc-dialog__scrim")&&G()},[w,G]);return(0,h.A)("click",U),(0,f.A)(e=>w&&k._f===e.keyCode,G),(0,C.jsx)(S.A,{children:(0,C.jsxs)(j.lG,{open:N||w,onClose:F,className:"googlesitekit-dialog googlesitekit-sharing-settings-dialog",style:L,escapeKeyAction:void 0!==T||w?"":"close",scrimClickAction:void 0!==T||w?"":"close",children:[(0,C.jsx)("div",{className:"googlesitekit-dialog__back-wrapper","aria-hidden":l!==I.mp,ref:i,children:(0,C.jsx)(r.Button,{"aria-label":(0,s.__)("Back","google-site-kit"),className:"googlesitekit-dialog__back",onClick:F,children:(0,C.jsx)(x.A,{icon:A.A})})}),(0,C.jsxs)(j.Cf,{className:"googlesitekit-dialog__content",children:[(0,C.jsxs)("div",{className:"googlesitekit-dialog__header",children:[N&&(0,C.jsx)("div",{className:"googlesitekit-dialog__header-icon","aria-hidden":l===I.mp,children:(0,C.jsx)("span",{children:(0,C.jsx)(a.A,{width:20,height:20})})}),(0,C.jsxs)("div",{className:"googlesitekit-dialog__header-titles",children:[(0,C.jsxs)(D.A,{as:"h2",className:"googlesitekit-dialog__title",size:"medium",type:"headline",children:[N&&(0,C.jsx)("span",{children:(0,s.__)("Dashboard sharing & permissions","google-site-kit")}),w&&(0,C.jsx)("span",{children:(0,s.__)("Reset dashboard sharing permissions","google-site-kit")})]}),(0,C.jsxs)("p",{className:y()("googlesitekit-dialog__subtitle",{"googlesitekit-dialog__subtitle--emphasis":w}),children:[N&&(0,C.jsx)("span",{children:(0,v.A)((0,s.__)("Share a view-only version of your Site Kit dashboard with other WordPress roles. <a>Learn more</a>","google-site-kit"),{a:(0,C.jsx)(E.A,{"aria-label":(0,s.__)("Learn more about dashboard sharing","google-site-kit"),href:O,external:!0})})}),w&&(0,C.jsx)("span",{children:(0,s.__)("Warning: Resetting these permissions will remove view-only access for all users. Are you sure you want to reset all dashboard sharing permissions?","google-site-kit")})]})]})]}),N&&(0,C.jsx)("div",{className:"googlesitekit-dialog__main",children:(0,C.jsx)(M.A,{})})]}),(0,C.jsx)(j.Es,{className:"googlesitekit-dialog__footer",children:(0,C.jsx)(Footer,{closeDialog:F,openResetDialog:P})})]})})}var R=i(68832);function DashboardSharingSettingsButton(){const e=(0,l.A)(),{setValue:t}=(0,o.useDispatch)(d.n),i=(0,o.useSelect)(e=>e(u.O4).hasMultipleAdmins()),m=(0,R.A)(g.CV,"isAutoCreatingCustomDimensionsForAudience"),h=(0,n.useCallback)(()=>{(0,c.sx)(`${e}_headerbar`,"open_sharing",i?"advanced":"simple"),t(p.tm,!0)},[t,e,i]);return(0,C.jsxs)(n.Fragment,{children:[(0,C.jsx)(r.Button,{"aria-label":(0,s.__)("Open sharing settings","google-site-kit"),className:"googlesitekit-sharing-settings__button googlesitekit-header__dropdown googlesitekit-border-radius-round googlesitekit-button-icon",onClick:h,icon:(0,C.jsx)(a.A,{width:20,height:20}),tooltipEnterDelayInMS:500,disabled:m}),(0,C.jsx)(DashboardSharingDialog,{})]})}},86582:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(20697);function n(e){return s.kz.includes(e)}},88273:(e,t,i)=>{i.d(t,{U:()=>n,i:()=>s});const s="core/modules",n="insufficient_module_dependencies"},88288:(e,t,i)=>{i.d(t,{A:()=>ProgressIndicator});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(62540);function ProgressIndicator({currentSegment:e=0,totalSegments:t=0,className:i}){return(0,a.jsxs)("div",{style:{gridTemplateColumns:`46px repeat(${t||1}, 1fr)`},className:n()("googlesitekit-progress-indicator",i),children:[(0,a.jsx)("div",{className:n()("googlesitekit-progress-indicator__segment")}),t>0&&Array.from(Array(e+1).keys()).map(i=>(0,a.jsx)("div",{className:n()("googlesitekit-progress-indicator__segment",{"googlesitekit-progress-indicator__segment--final":e+1===t})},i))]})}ProgressIndicator.propTypes={currentSegment:r().number,totalSegments:r().number,className:r().string}},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;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.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"}))))},89065:(e,t,i)=>{i.d(t,{A:()=>SurveyViewTrigger});var s=i(63696),n=i(62688),o=i.n(n),r=i(50539),a=i(97345);function SurveyViewTrigger({triggerID:e,ttl:t=0}){const{triggerSurvey:i}=(0,r.useDispatch)(a.oR);return(0,s.useEffect)(()=>{i(e,{ttl:t})},[e,t,i]),null}SurveyViewTrigger.propTypes={triggerID:o().string.isRequired,ttl:o().number}},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:d,dismissLabel:u,learnMoreLabel:g,learnMoreURL:p,onCTAClick:m,onDismissClick:h,gaTrackingEventArgs:f}){const _={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:g,href:p}:void 0,ctaButton:{label:n,href:c,onClick:m,dismissOptions:_,external:"_blank"===l},dismissButton:d?{label:u,onClick:h,dismissOptions:_}: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,onDismissClick:n().func,gaTrackingEventArgs:n().object};const l=NotificationFromServer},90187:(e,t,i)=>{i.d(t,{default:()=>m});var s=i(57255),n=i.n(s),o=i(58433);const r=function(e){const t=Object.keys(e).reduce((t,i)=>(t[(0,o.F)(i)]=e[i],t),{});let i=!1;return(e,s)=>{if(i)return s(e);setTimeout(()=>{i=!0},3e3);const{parse:n=!0}=e,r=e.path;if("string"==typeof e.path){const i=e.method?.toUpperCase()||"GET",s=(0,o.F)(r);if(n&&"GET"===i&&t[s]){const e=Promise.resolve(t[s].body);return delete t[s],e}if("OPTIONS"===i&&t[i]&&t[i][s]){const e=Promise.resolve(t[i][s]);return delete t[i][s],e}}return s(e)}};var a=i(45019),l=i.n(a);const c=function(e={}){const{onDuplicate:t}=e,i=new(l());return function(e,s){const n=i.get(e);if(n instanceof Promise)return t?.(e),n;const o=s(e);return i.set(e,o),o.catch(()=>{}).finally(()=>{i.delete(e)}),o}},{nonce:d,nonceEndpoint:u,preloadedData:g,rootURL:p}=i.g._googlesitekitAPIFetchData||{};n().nonceEndpoint=u,n().nonceMiddleware=n().createNonceMiddleware(d),n().rootURLMiddleware=n().createRootURLMiddleware(p),n().dedupeMiddleware=c({onDuplicate:function(e){i.g.console.warn("Google Site Kit API: duplicate request",e)}}),n().preloadingMiddleware=r(g),n().use(n().nonceMiddleware),n().use(n().mediaUploadMiddleware),n().use(n().rootURLMiddleware),n().use(n().dedupeMiddleware),n().use(n().preloadingMiddleware);const m=n()},90559:(e,t,i)=>{i.d(t,{$n:()=>L});var s=i(12786),n=i.n(s),o=i(91310),r=i.n(o),a=i(26805),l=i.n(a),c=i(65165),d=i.n(c),u=i(85135),g=i(32885),p=i(39525),m=i(4452),h=i.n(m),f=i(62688),_=i.n(f),y=i(62540);function Chip({id:e,label:t,onClick:i,selected:s,className:n,CheckMark:o=p.ChipCheckmark,disabled:r,...a}){return(0,y.jsx)(p.Chip,{chipCheckmark:(0,y.jsx)(o,{}),"data-chip-id":e,id:e,label:t,onClick:e=>{r||i?.(e)},selected:s,className:h()("googlesitekit-chip",n,{"googlesitekit-chip--disabled":r}),...a})}Chip.propTypes={id:_().string.isRequired,label:_().string.isRequired,onClick:_().func,selected:_().bool,className:_().string,CheckMark:_().elementType};var v=i(99578),k=i(47485),x=i(63696),A=i(10740);const b=(0,x.forwardRef)(({children:e,className:t,menuOpen:i,menuItems:s,onSelected:n,nonInteractive:o,id:r},a)=>{const[l,c]=(0,x.useState)(null),d=(0,x.useRef)(null),u=(0,k.A)(a,d),g=(0,x.useCallback)(e=>{const{detail:{index:t}}=e;n(t,e)},[n]);return(0,x.useEffect)(()=>{if(!d?.current)return()=>{};const e=new A.CR(d.current);return e.listen("MDCMenu:selected",g),e.quickOpen=!0,c(e),()=>{e.unlisten("MDCMenu:selected",g),e.destroy()}},[d,g,o]),(0,x.useEffect)(()=>{l&&(l.open=i,l.setDefaultFocusState(1))},[l,i]),(0,y.jsx)("div",{className:h()("mdc-menu","mdc-menu-surface",t),ref:u,children:(0,y.jsxs)("ul",{"aria-hidden":!i,"aria-orientation":"vertical",className:h()("mdc-list",{"mdc-list--non-interactive":o}),id:r,role:"menu",tabIndex:"-1",children:[!e&&s.map((e,t)=>(0,y.jsx)("li",{className:"mdc-list-item",role:"menuitem",children:(0,y.jsx)("span",{className:"mdc-list-item__text",children:e})},t)),e]})})});b.displayName="Menu",b.propTypes={className:_().string,children:_().node,menuOpen:_().bool.isRequired,menuItems:_().array,id:_().string.isRequired,onSelected:_().func,nonInteractive:_().bool},b.defaultProps={onSelected:()=>{},nonInteractive:!1};const I=b;var S=i(97513);function ProgressBar({className:e,small:t,compress:i,indeterminate:s,height:n,verticalSpacing:o,mobileVerticalSpacing:r,tabletVerticalSpacing:a,desktopVerticalSpacing:l,progress:c}){const d=(0,S.dv)();let u,g=o;S.mp===d&&void 0!==r?g=r:S.Lg===d&&void 0!==a?g=a:S.Qb!==d&&S.Fo!==d||void 0===l||(g=l),void 0!==g&&(u=0===g?0:Math.round(g/2));const p=c?`scaleX(${c})`:void 0;return(0,y.jsxs)("div",{role:"progressbar",style:{marginTop:u,marginBottom:u,...n&&{height:`${n}px`}},className:h()("mdc-linear-progress",e,{"mdc-linear-progress--indeterminate":s,"mdc-linear-progress--small":t,"mdc-linear-progress--compress":i}),children:[(0,y.jsx)("div",{className:"mdc-linear-progress__buffering-dots"}),(0,y.jsx)("div",{className:"mdc-linear-progress__buffer"}),(0,y.jsx)("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:{transform:p},children:(0,y.jsx)("span",{className:"mdc-linear-progress__bar-inner"})}),(0,y.jsx)("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar",children:(0,y.jsx)("span",{className:"mdc-linear-progress__bar-inner"})})]})}function Radio(e){const{id:t,name:i,value:s,checked:n=!1,disabled:o=!1,children:r,tabIndex:a,onKeyDown:l=null,onClick:c=null,onChange:d=null,alignLeft:u=!1,description:g}=e,p=(0,x.useCallback)(e=>{if(null!==e){const t=new A.$z(e),i=e.querySelector(".mdc-radio");i&&(t.input=new A.Si(i))}},[]);return(0,y.jsxs)("div",{className:"mdc-form-field",ref:p,children:[(0,y.jsxs)("div",{className:h()("mdc-radio",{"mdc-radio--disabled":o,"mdc-radio--align-left":u}),children:[(0,y.jsx)("input",{className:"mdc-radio__native-control",onClick:c,onKeyDown:l,type:"radio",id:t,name:i,value:s,checked:n,disabled:o,tabIndex:a,onChange:d,readOnly:!0}),(0,y.jsxs)("div",{className:"mdc-radio__background",children:[(0,y.jsx)("div",{className:"mdc-radio__outer-circle"}),(0,y.jsx)("div",{className:"mdc-radio__inner-circle"})]})]}),!g&&(0,y.jsx)("label",{htmlFor:t,children:r}),g&&(0,y.jsxs)("div",{className:"mdc-radio__content",children:[(0,y.jsx)("label",{htmlFor:t,children:r}),(0,y.jsx)("div",{className:"mdc-radio__description",children:g})]})]})}ProgressBar.propTypes={className:_().string,small:_().bool,compress:_().bool,indeterminate:_().bool,progress:_().number,height:_().number,verticalSpacing:_().number,mobileVerticalSpacing:_().number,tabletVerticalSpacing:_().number,desktopVerticalSpacing:_().number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0,height:4},Radio.propTypes={onClick:_().func,onKeyDown:_().func,onChange:_().func,id:_().string.isRequired,name:_().string.isRequired,value:_().string.isRequired,checked:_().bool,disabled:_().bool,children:_().string.isRequired,tabIndex:_().oneOfType([_().number,_().string]),description:_().node};var j=i(52684);var E=i(11763),M=i(19266);function Switch({onClick:e,label:t,checked:i,disabled:s,hideLabel:n}){const o=(0,j.A)(Switch),r=(0,x.useCallback)(e=>{null!==e&&A.P3.attachTo(e)},[]),a=(0,x.useCallback)(t=>{"function"==typeof e&&M.Fm===t.keyCode&&e(t)},[e]),l=`googlesitekit-switch-${o}`;return(0,y.jsxs)(x.Fragment,{children:[(0,y.jsxs)("div",{"aria-checked":i?"true":"false",className:h()("mdc-switch",{"mdc-switch--checked":i,"mdc-switch--disabled":s}),onClick:e,onKeyDown:a,role:"switch",ref:r,tabIndex:0,children:[(0,y.jsx)("div",{className:"mdc-switch__track",children:" "}),(0,y.jsx)("div",{className:"mdc-switch__thumb-underlay",children:(0,y.jsx)("div",{className:"mdc-switch__thumb",children:(0,y.jsx)("input",{type:"checkbox",id:l,className:"mdc-switch__native-control",role:"switch",checked:i,disabled:s,readOnly:!0})})})]}),(0,y.jsx)("label",{className:h()({"screen-reader-only":n}),htmlFor:l,children:t})]})}Switch.propTypes={id:_().string,onClick:_().func,label:_().node.isRequired,checked:_().bool,disabled:_().bool,hideLabel:_().bool},Switch.defaultProps={checked:!1,disabled:!1,hideLabel:!0};const N=Switch;var w=i(38748),C=i.n(w);function TextField({className:e,name:t,label:i,noLabel:s,outlined:n,textarea:o,leadingIcon:r,trailingIcon:a,helperText:l,id:c,inputType:d,value:u,size:g,maxLength:p,tabIndex:m,disabled:h,onChange:f,onKeyDown:_}){const v=(0,j.A)(TextField,"googlesitekit-textfield");return(0,y.jsx)(C(),{className:e,name:t,label:i,noLabel:s,outlined:n,textarea:o,leadingIcon:r,trailingIcon:a,helperText:l&&(0,y.jsx)(w.HelperText,{persistent:!0,children:l}),children:(0,y.jsx)(w.Input,{id:c||v,inputType:d,value:u,size:g,maxLength:p,tabIndex:m,disabled:h,onChange:f,onKeyDown:_})})}TextField.propTypes={className:_().string,name:_().string,label:_().string,noLabel:_().bool,outlined:_().bool,textarea:_().bool,leadingIcon:_().element,trailingIcon:_().oneOfType([_().bool,_().element]),helperText:_().oneOfType([_().bool,_().string]),id:_().string,inputType:_().string,value:_().oneOfType([_().string,_().number]),size:_().number,maxLength:_().number,tabIndex:_().oneOfType([_().number,_().string]),disabled:_().bool,onChange:_().func,onKeyDown:_().func};const T=TextField;var D=i(99573);const R={Button:u.A,Checkbox:g.A,Chip,CircularProgress:v.A,Dialog:n(),DialogTitle:s.DialogTitle,DialogContent:s.DialogContent,DialogFooter:s.DialogFooter,HelperText:w.HelperText,Menu:I,Option:o.Option,ProgressBar,Radio,Select:function Select({id:e,helperText:t,...i}){const s=(0,j.A)(Select,"googlesitekit-select");return(0,y.jsx)(r(),{id:e||s,helperText:t?(0,y.jsx)(o.SelectHelperText,{children:t}):void 0,...i})},SpinnerButton:E.A,SPINNER_POSITION:E.k,Switch:N,Tab:l(),TabBar:d(),TextField:T,Tooltip:D.A},O=R;void 0===i.g.googlesitekit&&(i.g.googlesitekit={}),i.g.googlesitekit.components=O;const{Button:L,Checkbox:z,Chip:B,CircularProgress:P,Dialog:G,DialogTitle:F,DialogContent:U,DialogFooter:W,Menu:V,Option:H,ProgressBar:Y,Radio:q,Select:Q,SpinnerButton:Z,Switch:K,Tab:$,TabBar:X,TextField:J,HelperText:ee,Tooltip:te}=O},91117:(e,t,i)=>{i.d(t,{A:()=>AnalyticsDisconnectedNotice});var s=i(82871),n=i(63696),o=i(50539),r=i(97345),a=i(25797),l=i(76984),c=i(29785),d=i(88273),u=i(22942),g=i(65929),p=i(4124),m=i(68761),h=i(30289),f=i(62540);const _="email_reports_analytics_disconnected_notice",y=(0,h.A)(a.A);function AnalyticsDisconnectedNotice(){const e=(0,p.A)(),[t,i]=(0,n.useState)(!1),a=(0,m.A)(_),h=(0,o.useSelect)(e=>e(c.O4).isEmailReportingEnabled()),v=(0,o.useSelect)(e=>e(d.i).isModuleConnected(u.L1)),k=(0,o.useSelect)(e=>e(d.i).isModuleDisconnected(u.L1)),x=(0,o.useSelect)(e=>e(r.oR).isItemDismissed(_)),{dismissItem:A}=(0,o.useDispatch)(r.oR),b=(0,g.A)(u.L1),I=(0,n.useCallback)(()=>{i(!0),a.confirm(),b()},[a,b]),S=(0,n.useCallback)(async()=>{a.dismiss(),await A(_)},[A,a]);if(!h||!1!==x||v||!k)return null;let j=(0,s.__)("Email reports won’t include Analytics data and metrics","google-site-kit");return e&&(j=(0,s.__)("Email reports won’t include Analytics data and metrics. To fix the issue contact your administrator.","google-site-kit")),(0,f.jsx)(y,{className:"googlesitekit-email-reporting__admin-settings-notice",type:l.Q.WARNING,title:(0,s.__)("Analytics is disconnected","google-site-kit"),description:j,ctaButton:e?void 0:{label:(0,s.__)("Connect Analytics","google-site-kit"),inProgress:t,disabled:t,onClick:I},dismissButton:{label:(0,s.__)("Got it","google-site-kit"),onClick:S},onInView:a.view})}},92449:(e,t,i)=>{i.d(t,{Ay:()=>r,Kq:()=>o});const s=(0,i(63696).createContext)({}),{Consumer:n,Provider:o}=s,r=s},94656:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(47209),n=i(62688),o=i.n(n),r=i(63696),a=i(78325);function Portal({children:e,slug:t}){const[i]=(0,r.useState)(document.createElement("div"));return(0,s.A)(()=>{t&&i.classList.add(`googlesitekit-portal-${t}`);const e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(i),()=>e.removeChild(i)}),(0,a.createPortal)(e,i)}Portal.propTypes={slug:o().string,children:o().node},Portal.defaultProps={slug:"",children:null};const l=Portal},96177:(e,t,i)=>{i.d(t,{Y2:()=>s.Y2,DO:()=>d,c1:()=>u.c1,X9:()=>l,JS:()=>o,T5:()=>g,WP:()=>u.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 d({counter:e},{counter:t}){return e-t}function u({counter:e},{counter:t}){return t-e}function g({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 f=function(e,t,i){for(;++e<t.length;)if(!o(i[t[e].slug]))return t[e];return null}(m,e,t);if(null===f||0===a(h.sort(d)[0].counter,f).filter(g).length){h.some(g)&&(h=h.sort(u),h=h.filter(g))}const _=h[0].width;n.push(c),l+=s.Gr[_],l>12?(l-=s.Gr[_],n[m]++,9===l&&([i,l]=r(i,l)),l=s.Gr[_],c++):12===l&&(l=0,c++),i.push(s.Gr[_])}),9===l&&([i,l]=r(i,l)),{columnWidths:i,rowIndexes:n}}var c=i(17243);function d(e,t,{columnWidths:i,rowIndexes:n}){const o=[],r=[...i];if(!e?.length)return{gridColumnWidths:r,overrideComponents:o};let a=null,l=-1,d=[];if(function(e,t){const i={};for(let n=0;n<e.length;n++){const o=e[n],r=t?.[o.slug],a=r?.Component,l=r?.metadata?.moduleSlug,c=s.We.includes(a);if(!a||!l||!c)return!1;if(i[l]){if(i[l]!==a)return!1}else i[l]=a}return!(Object.keys(i).length>1)}(e,t)){const i=Array.from({length:e.length-1}).fill(0);return{overrideComponents:[t[e[0].slug]],gridColumnWidths:[12,...i]}}return e.forEach((s,u)=>{if(o.push(null),a=t[s.slug],l=n[u],a)if(g=a,p=t[e[u+1]?.slug],m=l,h=n[u+1],m===h&&(0,c.isEqual)(g,p))d.push(i[u]),r[u]=0;else if(d.length>0){d.push(i[u]);const e=d.reduce((e,t)=>e+t,0);o[u]=a,r[u]=e,d=[]}var g,p,m,h}),{gridColumnWidths:r,overrideComponents:o}}var u=i(21213);function g(e){return(Array.isArray(e)?e:[e]).filter(e=>"string"==typeof e&&e.length>0)}},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])}},97212:(e,t,i)=>{i.d(t,{W:()=>I,A:()=>AudienceSegmentationIntroductoryOverlayNotification});var s,n,o=i(62688),r=i.n(o),a=i(82871),l=i(50539),c=i(63696);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},d.apply(null,arguments)}const u=e=>c.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 296 163"},e),s||(s=c.createElement("g",{clipPath:"url(#audience-segmentation-introductory-graphic-desktop_svg__a)"},c.createElement("path",{fill:"#B8E6CA",d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0z"}),c.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-desktop_svg__b)"},c.createElement("rect",{width:153,height:174,x:-10,y:25,fill:"#fff",rx:11})),c.createElement("rect",{width:53.016,height:9.516,x:9.031,y:110.641,fill:"#EBEEF0",rx:4.758}),c.createElement("rect",{width:19.031,height:9.516,x:9.031,y:95.688,fill:"#EBEEF0",rx:4.758}),c.createElement("rect",{width:19.031,height:9.516,x:9.031,y:148.703,fill:"#EBEEF0",rx:4.758}),c.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"}),c.createElement("rect",{width:36,height:9,x:9,y:46,fill:"#EBEEF0",rx:4.5}),c.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"}),c.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-desktop_svg__c)"},c.createElement("rect",{width:153,height:174,x:152,y:25,fill:"#fff",rx:11})),c.createElement("rect",{width:52.805,height:9.516,x:170.955,y:110.641,fill:"#EBEEF0",rx:4.758}),c.createElement("rect",{width:18.956,height:9.516,x:170.955,y:95.688,fill:"#EBEEF0",rx:4.758}),c.createElement("rect",{width:18.956,height:9.516,x:170.955,y:148.703,fill:"#EBEEF0",rx:4.758}),c.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"}),c.createElement("rect",{width:36,height:9,x:171,y:46,fill:"#EBEEF0",rx:4.5}),c.createElement("path",{stroke:"#EBEEF0",strokeWidth:2,d:"M295 73.5H152"}),c.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"}),c.createElement("path",{stroke:"#EBEEF0",strokeWidth:2,d:"M143 73.5H0"}))),n||(n=c.createElement("defs",null,c.createElement("filter",{id:"audience-segmentation-introductory-graphic-desktop_svg__b",width:185,height:206,x:-26,y:13,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},c.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),c.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"}),c.createElement("feOffset",{dy:4}),c.createElement("feGaussianBlur",{stdDeviation:8}),c.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),c.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),c.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1395_20972"}),c.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1395_20972",result:"shape"})),c.createElement("filter",{id:"audience-segmentation-introductory-graphic-desktop_svg__c",width:185,height:206,x:136,y:13,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},c.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),c.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"}),c.createElement("feOffset",{dy:4}),c.createElement("feGaussianBlur",{stdDeviation:8}),c.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),c.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),c.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1395_20972"}),c.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1395_20972",result:"shape"})),c.createElement("clipPath",{id:"audience-segmentation-introductory-graphic-desktop_svg__a"},c.createElement("path",{fill:"#fff",d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0z"})))));var g,p,m,h;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},f.apply(null,arguments)}const _=e=>c.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 343 123"},e),c.createElement("g",{clipPath:"url(#audience-segmentation-introductory-graphic-mobile_svg__a)"},g||(g=c.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"})),c.createElement("mask",{id:"audience-segmentation-introductory-graphic-mobile_svg__b",width:295,height:203,x:24,y:5,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},p||(p=c.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||(m=c.createElement("g",{mask:"url(#audience-segmentation-introductory-graphic-mobile_svg__b)"},c.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-mobile_svg__c)"},c.createElement("rect",{width:100.401,height:136.493,x:71.449,y:21.433,fill:"#fff",rx:7.218})),c.createElement("rect",{width:34.79,height:6.244,x:83.941,y:77.631,fill:"#EBEEF0",rx:3.122}),c.createElement("rect",{width:12.489,height:6.244,x:83.941,y:67.819,fill:"#EBEEF0",rx:3.122}),c.createElement("rect",{width:12.489,height:6.244,x:83.941,y:99.983,fill:"#EBEEF0",rx:3.122}),c.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"}),c.createElement("rect",{width:23.624,height:5.906,x:83.926,y:35.213,fill:"#EBEEF0",rx:2.953}),c.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"}),c.createElement("rect",{width:36.574,height:6.244,x:83.043,y:109.796,fill:"#EBEEF0",rx:3.122}),c.createElement("path",{stroke:"#EBEEF0",strokeWidth:1.312,d:"M171.848 53.259H72.103"}),c.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-mobile_svg__d)"},c.createElement("rect",{width:100.401,height:136.493,x:184.973,y:21.433,fill:"#fff",rx:7.218})),c.createElement("rect",{width:34.652,height:6.244,x:197.414,y:77.631,fill:"#EBEEF0",rx:3.122}),c.createElement("rect",{width:12.439,height:6.244,x:197.414,y:67.819,fill:"#EBEEF0",rx:3.122}),c.createElement("rect",{width:12.439,height:6.244,x:197.41,y:99.983,fill:"#EBEEF0",rx:3.122}),c.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"}),c.createElement("rect",{width:23.624,height:5.906,x:197.449,y:35.213,fill:"#EBEEF0",rx:2.953}),c.createElement("path",{stroke:"#EBEEF0",strokeWidth:1.312,d:"M278.82 53.259h-93.838"}),c.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"}),c.createElement("rect",{width:36.429,height:6.244,x:196.523,y:109.796,fill:"#EBEEF0",rx:3.122})))),h||(h=c.createElement("defs",null,c.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"},c.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),c.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"}),c.createElement("feOffset",{dy:4}),c.createElement("feGaussianBlur",{stdDeviation:8}),c.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),c.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),c.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2898_16651"}),c.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2898_16651",result:"shape"})),c.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"},c.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),c.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"}),c.createElement("feOffset",{dy:4}),c.createElement("feGaussianBlur",{stdDeviation:8}),c.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),c.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),c.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2898_16651"}),c.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2898_16651",result:"shape"})),c.createElement("clipPath",{id:"audience-segmentation-introductory-graphic-mobile_svg__a"},c.createElement("path",{fill:"#fff",d:"M0 0h343v128H0z"})))));var y=i(33903),v=i(11883),k=i(97513),x=i(8732),A=i(62659),b=i(62540);const I="audienceSegmentationIntroductoryOverlayNotification";function AudienceSegmentationIntroductoryOverlayNotification({id:e,Notification:t}){const s=(0,A.A)(),n=(0,k.dv)(),{dismissNotification:o}=(0,l.useDispatch)(x.D);const r={category:`${s}_audiences-secondary-user-intro`};return(0,b.jsx)(t,{gaTrackingEventArgs:r,children:(0,b.jsx)(y.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:u,GraphicMobile:_,ctaButton:{label:(0,a.__)("Show me","google-site-kit"),onClick:function(t){t.preventDefault(),setTimeout(()=>{i.g.scrollTo({top:(0,v.YJ)(".googlesitekit-widget-area--mainDashboardTrafficAudienceSegmentation",n),behavior:"smooth"})},0),o(e)}},dismissButton:{label:(0,a.__)("Got it","google-site-kit")},gaTrackingEventArgs:r})})}AudienceSegmentationIntroductoryOverlayNotification.propTypes={id:r().string.isRequired,Notification:r().elementType.isRequired}},97343:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(63696),n=i(82871),o=i(50539),r=i(7972),a=i(25797),l=i(62540);const c=function OfflineNotification(){const[e,t]=(0,s.useState)(!1),i=(0,o.useSelect)(e=>e(r.n).getIsOnline());return(0,s.useEffect)(()=>{i&&e&&t(!1)},[i,e]),(0,l.jsx)("div",{"aria-live":"polite",children:!i&&!e&&(0,l.jsx)(a.A,{className:"googlesitekit-notice-snackbar--bottom-right",type:a.A.TYPES.WARNING,description:(0,n.__)("You are currently offline. Some features may not be available.","google-site-kit"),ctaButton:{label:(0,n.__)("OK, Got it!","google-site-kit"),onClick:()=>t(!0)}})})}},97345:(e,t,i)=>{i.d(t,{$8:()=>r,$Q:()=>p,BT:()=>D,CQ:()=>j,D1:()=>q,DF:()=>Y,GM:()=>S,GT:()=>y,GU:()=>Q,HA:()=>z,HD:()=>g,HP:()=>T,J5:()=>P,JF:()=>M,JK:()=>f,Ml:()=>h,SS:()=>R,UF:()=>d,UY:()=>W,Vl:()=>O,W6:()=>H,Xq:()=>E,YQ:()=>N,Yw:()=>U,dV:()=>C,dX:()=>I,ej:()=>c,em:()=>o,ep:()=>A,fu:()=>k,gC:()=>v,hz:()=>m,jx:()=>u,lV:()=>l,nH:()=>B,oR:()=>s,od:()=>a,p3:()=>_,pG:()=>b,qv:()=>n,qy:()=>w,t1:()=>V,t7:()=>F,tB:()=>x,tK:()=>G,u_:()=>L});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",d="googlesitekit_setup",u="googlesitekit_view_dashboard",g="googlesitekit_manage_options",p="googlesitekit_read_shared_module_data",m="googlesitekit_manage_module_sharing_options",h="googlesitekit_delegate_module_sharing_management",f="googlesitekit_update_plugins",_="kmAnalyticsAdSenseTopEarningContent",y="kmAnalyticsEngagedTrafficSource",v="kmAnalyticsLeastEngagingPages",k="kmAnalyticsNewVisitors",x="kmAnalyticsPopularAuthors",A="kmAnalyticsPopularContent",b="kmAnalyticsPopularProducts",I="kmAnalyticsReturningVisitors",S="kmAnalyticsTopCities",j="kmAnalyticsTopCitiesDrivingLeads",E="kmAnalyticsTopCitiesDrivingAddToCart",M="kmAnalyticsTopCitiesDrivingPurchases",N="kmAnalyticsTopDeviceDrivingPurchases",w="kmAnalyticsTopConvertingTrafficSource",C="kmAnalyticsTopCountries",T="kmAnalyticsTopPagesDrivingLeads",D="kmAnalyticsTopRecentTrendingPages",R="kmAnalyticsTopTrafficSource",O="kmAnalyticsTopTrafficSourceDrivingAddToCart",L="kmAnalyticsTopTrafficSourceDrivingLeads",z="kmAnalyticsTopTrafficSourceDrivingPurchases",B="kmAnalyticsPagesPerVisit",P="kmAnalyticsVisitLength",G="kmAnalyticsTopReturningVisitorPages",F="kmSearchConsolePopularKeywords",U="kmAnalyticsVisitsPerVisitor",W="kmAnalyticsMostEngagingPages",V="kmAnalyticsTopCategories",H=[_,y,v,k,x,A,b,I,V,S,j,E,M,N,w,C,D,R,O,B,P,G,U,W,V],Y=[...H,F],q="welcome-modal-with-tour",Q="welcome-modal-gathering-data"},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}},97591:(e,t,i)=>{i.d(t,{A:()=>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}},99573:(e,t,i)=>{i.d(t,{A:()=>Tooltip});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(90295),l=i(63696),c=i(62540);function Tooltip({children:e,popperClassName:t,tooltipClassName:i,onOpen:s,onClose:n,...o}){const d=(0,l.useRef)(!1),u=s?()=>{d.current||(d.current=!0,s?.())}:void 0,g=s?()=>{d.current=!1,n?.()}:n;return(0,c.jsx)(a.Ay,{classes:{popper:r()("googlesitekit-tooltip-popper",t),tooltip:r()("googlesitekit-tooltip",i)},onOpen:u,onClose:g,...o,arrow:!0,children:e})}Tooltip.propTypes={children:n().node,popperClassName:n().string,tooltipClassName:n().string,onOpen:n().func,onClose:n().func}},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})}}},e=>{e.O(0,[660],()=>{return t=36826,e(e.s=t);var t});e.O()}]);
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0.29 |
proxy
|
phpinfo
|
ÐаÑтройка