Файловый менеджер - Редактировать - /home/avadvi5/public_html/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-settings-a39641402a30a7ae0ebd.js
Ðазад
"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[290,937],{80:(e,t,i)=>{i.d(t,{CV:()=>S,Cu:()=>A,K9:()=>s,Kr:()=>h,Lf:()=>p,Oh:()=>r,PW:()=>M,Rx:()=>T,S9:()=>_,TQ:()=>d,Vt:()=>w,Wl:()=>v,ZC:()=>n,ZY:()=>a,_p:()=>C,ag:()=>m,aj:()=>u,bz:()=>N,dq:()=>E,f2:()=>c,fB:()=>b,fV:()=>I,iB:()=>g,kc:()=>l,mo:()=>y,nc:()=>j,rm:()=>x,to:()=>o,wo:()=>f,yn:()=>k});const s="modules/analytics-4",n="account_create",o="property_create",r="webdatastream_create",a="analyticsSetup",l=10,c=0,g="https://www.googleapis.com/auth/tagmanager.readonly",d="enhanced-measurement-form",u="enhanced-measurement-enabled",p="enhanced-measurement-should-dismiss-activation-banner",m="analyticsAccountCreate",h="analyticsCustomDimensionsCreate",_="https://www.googleapis.com/auth/analytics.edit",f="dashboardAllTrafficWidgetDimensionName",y="dashboardAllTrafficWidgetDimensionColor",k="dashboardAllTrafficWidgetDimensionValue",v="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"}},j={ADD_TO_CART:"add_to_cart",PURCHASE:"purchase",SUBMIT_LEAD_FORM:"submit_lead_form",GENERATE_LEAD:"generate_lead",CONTACT:"contact"},I=[j.CONTACT,j.GENERATE_LEAD,j.SUBMIT_LEAD_FORM],b={"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"}}}}]}}]}}}}]}},M="audiencePermissionsSetup",S="audienceTileCustomDimensionCreate",N="audience-selection-panel-expirable-new-badge-",E="audience",w="customDimension",C="property",T=[E,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),g=i(15650),d=i(62688),u=i.n(d),p=i(29785),m=i(88273),h=i(13606),_=i(70301),f=i(4124),y=i(38432),k=i(83880),v=i(62659),x=i(20697),A=i(4751),j=i(62540);function Header({closePanel:e,isLoading:t}){const i=(0,v.A)(),o=(0,f.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)(_.M),d=(0,n.useCallback)(()=>{x.KK===i&&e(),c(l)},[l,c,e,i]);return(0,j.jsxs)(g.W4,{title:(0,s.__)("Email reports subscription","google-site-kit"),onCloseClick:e,children:[t&&(0,j.jsxs)(n.Fragment,{children:[(0,j.jsx)(A.A,{width:"100%",height:"16px"}),(0,j.jsx)("br",{})]}),!t&&!o&&a&&(0,j.jsx)(k.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,j.jsx)(y.A,{onClick:d,secondary:!0})})})]})}Header.propTypes={closePanel:u().func.isRequired,isLoading:u().bool};var I=i(68329),b=i(76984);function SelectionPanelFooter({notice:e,onNoticeDismiss:t}){return(0,j.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,j.jsx)("div",{className:"googlesitekit-selection-panel-footer__content",children:e?(0,j.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,j.jsx)(k.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:u().shape({title:u().node,text:u().node,type:u().oneOf(Object.values(b.Q))}),onNoticeDismiss:u().func};var M=i(33052),S=i(4452),N=i.n(S),E=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()),g=(0,r.useSelect)(e=>e(l.oR).getEmailReportingFrequency()),d=(0,r.useSelect)(e=>e(l.oR).getEmailReportingSavedFrequency()),{setEmailReportingFrequency:u}=(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,j.jsxs)(n.Fragment,{children:[(0,j.jsx)("br",{}),(0,j.jsx)(A.A,{width:"20%",height:"16px"}),(0,j.jsx)("br",{}),(0,j.jsx)("div",{className:"googlesitekit-frequency-selector",children:(0,j.jsx)(C.A,{width:"100%",height:"184px",count:3})})]}):!1===o?null:(0,j.jsxs)(n.Fragment,{children:[(0,j.jsx)(M.A,{className:"googlesitekit-frequency-selector-title",type:"label",size:"small",as:"h3",children:(0,s.__)("Frequency","google-site-kit")}),e&&d&&!i&&(0,j.jsx)("div",{className:"googlesitekit-frequency-selector__badge-row",children:l.lV.map(e=>(0,j.jsx)("div",{className:"googlesitekit-frequency-selector__badge-cell",children:e===d&&(0,j.jsx)("div",{className:"googlesitekit-frequency-selector__current-subscription",children:(0,j.jsx)(M.A,{type:E.SZ,size:E.Kk,children:(0,s.__)("Current subscription","google-site-kit")})},e)},e))}),(0,j.jsx)("div",{className:"googlesitekit-frequency-selector",role:"radiogroup","aria-label":(0,s.__)("Frequency","google-site-kit"),children:l.lV.map(t=>{const n=g===t,{label:o,period:r,description:a}=h[t]||{};return(0,j.jsxs)("div",{className:N()("googlesitekit-frequency-selector__card",{"googlesitekit-frequency-selector__card--selected":n}),role:"radio","aria-checked":n,tabIndex:0,onClick:()=>u(t),onKeyDown:e=>function(e,t){" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||(e.preventDefault(),u(t))}(e,t),children:[e&&d&&i&&t===d&&(0,j.jsx)("div",{className:N()("googlesitekit-frequency-selector__current-subscription",{"googlesitekit-frequency-selector__current-subscription--selected":n}),children:(0,j.jsx)(M.A,{type:E.SZ,size:E.Kk,children:(0,s.__)("Current subscription","google-site-kit")})}),(0,j.jsxs)("div",{className:"googlesitekit-frequency-selector__content",children:[(0,j.jsx)("div",{className:"googlesitekit-frequency-selector__label",children:(0,j.jsx)(M.A,{type:"label",size:"large",children:o})}),(0,j.jsxs)("div",{className:"googlesitekit-frequency-selector__period-description",children:[(0,j.jsx)("div",{className:"googlesitekit-frequency-selector__period",children:(0,j.jsx)(M.A,{type:"body",size:"small",children:r})}),(0,j.jsx)("div",{className:"googlesitekit-frequency-selector__description",children:(0,j.jsx)(M.A,{type:"body",size:"small",children:a})})]})]})]},t)})})]})}FrequencySelector.propTypes={isUserSubscribed:u().bool,isLoading:u().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 g(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,j.jsxs)("div",{className:"googlesitekit-selection-panel-subscribe-actions",children:[a&&(0,j.jsx)(C.A,{width:"140px",height:"42px",count:2}),!a&&e&&(0,j.jsx)(T.A,{onClick:()=>g(R.UNSUBSCRIBE),isSaving:r&&l===R.UNSUBSCRIBE,disabled:r,tertiary:!0,children:(0,s.__)("Unsubscribe","google-site-kit")}),!a&&(0,j.jsx)(T.A,{onClick:()=>g(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:u().bool,onSubscribe:u().func.isRequired,onUnsubscribe:u().func.isRequired,updateSettings:u().func.isRequired,isSavingSettings:u().bool,isLoading:u().bool};var z=i(91117),L=i(63737),O=i(25797),P=i(30289),B=i(68761);const U="email_reports_user_settings_reports_disabled_notice",G=(0,P.A)(O.A);function EmailReportingDisabledNotice(){const e=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),t=(0,f.A)(),i=(0,r.useSelect)(e=>e(p.O4).getSiteKitAdminSettingsURL({scrollTo:"email-reporting"})),o=(0,B.A)(U),{setValue:l}=(0,L.A)(a.n),g=(0,n.useCallback)(()=>{o.confirm(),l(c.Q,!1)},[l,o]);return e||t?null:(0,j.jsx)(G,{type:b.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:g},onInView:o.view})}const W=(0,P.A)(O.A);function EmailReportingDisabledViewOnlyNotice(){const e=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),t=(0,f.A)(),i=(0,B.A)(U);return e||!t?null:(0,j.jsx)(W,{type:b.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 V=i(14183),F=i(22942),H=i(65929),Y=i(69831),Z=i(62051);const Q="email_reports_user_settings_setup_analytics_notice",q=(0,P.A)(O.A);function SetupAnalyticsNotice(){const[e,t]=(0,n.useState)(!1),i=(0,B.A)(Q),o=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),a=(0,f.A)(),c=(0,r.useSelect)(e=>e(m.i).isModuleActive(F.L1)),g=(0,r.useSelect)(e=>e(m.i).isModuleConnected(F.L1)),d=(0,r.useSelect)(e=>e(m.i).isModuleDisconnected(F.L1)),u=(0,r.useSelect)(e=>e(l.oR).isItemDismissed(Q)),{dismissItem:_}=(0,r.useDispatch)(l.oR),y=(0,H.A)(F.L1),k=(0,Y.A)(F.L1),v=c?k:y,x=(0,n.useCallback)(()=>{v&&(i.confirm(),t(!0),v())},[v,i]),A=(0,n.useCallback)(async()=>{i.dismiss(),await _(Q)},[_,i]),I=(0,r.useSelect)(e=>e(p.O4).getDocumentationLinkURL("ga4"));if(!o||a||!1!==u||g||d)return null;const M=c?(0,s.__)("Complete setup","google-site-kit"):(0,s.__)("Connect Analytics","google-site-kit");return(0,j.jsx)(q,{type:b.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,j.jsx)(Z.A,{id:Q,label:(0,s.__)("Learn more","google-site-kit"),url:I})}),ctaButton:{label:M,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,j.jsxs)(n.Fragment,{children:[(0,j.jsx)(V.A,{onGoToSettings:t}),(0,j.jsx)(z.A,{}),(0,j.jsx)(SetupAnalyticsNotice,{}),(0,j.jsx)(EmailReportingDisabledNotice,{}),(0,j.jsx)(EmailReportingDisabledViewOnlyNotice,{})]})}Notices.propTypes={isLoading:u().bool,onGoToSettings:u().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,v.A)(),{id:a,name:l,email:c,role:g}=e,{inviteUser:d}=(0,r.useDispatch)(p.O4),u=(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 d(a);i(a,e?{status:"error",message:e.message}:{status:"success"})},[o,a,d,i]);return(0,j.jsxs)("div",{className:"googlesitekit-invite-user-row",children:[(0,j.jsxs)("div",{className:"googlesitekit-invite-user-row__info",children:[(0,j.jsxs)("div",{className:"googlesitekit-invite-user-row__name",children:[l,(0,j.jsxs)("span",{className:"googlesitekit-invite-user-row__role",children:["(",g,")"]})]}),(0,j.jsx)("div",{className:"googlesitekit-invite-user-row__email",children:c})]}),(0,j.jsx)("div",{className:"googlesitekit-invite-user-row__action",children:"success"===t?.status||e.invited?(0,j.jsxs)("span",{className:"googlesitekit-invite-user-row__success",children:[(0,s.__)("Invitation sent","google-site-kit"),(0,j.jsx)(ee.A,{width:"14",height:"14"})]}):"error"===t?.status?(0,j.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,j.jsx)(y.A,{"aria-label":(0,s.__)("Retry sending email subscription invite","google-site-kit"),onClick:m})})}):(0,j.jsx)(X.Button,{onClick:m,disabled:u,trailingIcon:(0,j.jsx)(J.A,{width:"18",height:"18"}),tertiary:!0,children:u?(0,s.__)("Sending…","google-site-kit"):(0,s.__)("Send invite","google-site-kit")})})]})}function InviteUserSkeletonList({visibleItems:e=3}){return(0,j.jsx)("div",{className:"googlesitekit-invite-user-list",children:Array.from({length:e}).map((e,t)=>(0,j.jsxs)("div",{className:"googlesitekit-invite-user-row googlesitekit-invite-user-row--loading",children:[(0,j.jsxs)("div",{className:"googlesitekit-invite-user-row__info",children:[(0,j.jsx)(A.A,{width:"120px",height:"16px"}),(0,j.jsx)(A.A,{width:"180px",height:"12px"})]}),(0,j.jsx)("div",{className:"googlesitekit-invite-user-row__action",children:(0,j.jsx)(A.A,{width:"90px",height:"32px",shape:"square"})})]},t))})}function EmptyMessage({text:e}){return(0,j.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,j.jsx)(InviteUserSkeletonList,{visibleItems:3}):0===e.length?t?(0,j.jsx)(EmptyMessage,{text:(0,s.__)("No users match your search.","google-site-kit")}):(0,j.jsx)(EmptyMessage,{text:(0,s.__)("No users are eligible to receive invitations.","google-site-kit")}):(0,j.jsx)("div",{className:"googlesitekit-invite-user-list",children:e.map(e=>(0,j.jsx)(InviteUserRow,{user:e,inviteResult:i[e.id],onInviteResult:n},e.id))})}InviteUserRow.propTypes={user:u().shape({id:u().number.isRequired,name:u().string.isRequired,email:u().string.isRequired,role:u().string,invited:u().bool}).isRequired,inviteResult:u().shape({status:u().oneOf(["success","error"]),message:u().string}),onInviteResult:u().func.isRequired},InviteUserSkeletonList.propTypes={visibleItems:u().number},InviteUserList.propTypes={users:u().arrayOf(u().shape({id:u().number.isRequired,name:u().string,email:u().string.isRequired,role:u().string})).isRequired,searchTerm:u().string,inviteResults:u().objectOf(u().shape({status:u().oneOf(["success","error"]),message:u().string})),onInviteResult:u().func.isRequired,isLoading:u().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,j.jsxs)("div",{className:"googlesitekit-invite-search-input",children:[(0,j.jsx)(se.A,{children:(0,j.jsx)("label",{htmlFor:i,children:(0,s.__)("Search user name, role, or email","google-site-kit")})}),(0,j.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,j.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,j.jsx)(ne.A,{width:"8",height:"8"})})]})}InviteSearchInput.propTypes={value:u().string,onChange:u().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)(""),[g,d]=(0,n.useState)(""),[u,m]=(0,n.useState)({}),[_,f]=(0,n.useState)(t),k=(0,$.d)(d,300);(0,n.useEffect)(()=>{k(i)},[i,k]),(0,n.useEffect)(()=>{t&&f(!0)},[t]);const v=(0,r.useInViewSelect)(e=>_?e(p.O4).getEligibleSubscribers({search:g}):null,[g,_]),x=(0,r.useInViewSelect)(e=>_?e(p.O4).getEligibleSubscribers({search:""}):null,[_]),A=(0,r.useInViewSelect)(e=>!!_&&!e(p.O4).hasFinishedResolution("getEligibleSubscribers",[{search:g}]),[g,_]),I=(0,r.useSelect)(e=>e(p.O4).getDocumentationLinkURL("dashboard-sharing")),b=(0,r.useSelect)(e=>e(p.O4).getDocumentationLinkURL("email-reporting-inviting-others"));(0,n.useEffect)(()=>{e&&t&&(k.cancel(),o(""),d(""),m({}))},[t,e,k]);const M=(0,n.useCallback)((e,t)=>{m(i=>({...i,[e]:t}))},[]);if(!e)return null;const S=v?.users||[],N=(x?.total||0)>oe,E=(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,j.jsx)(y.A,{href:I,external:!0,hideExternalIndicator:!0}),learnMoreLink:(0,j.jsx)(y.A,{href:b,external:!0,hideExternalIndicator:!0})});return(0,j.jsxs)("div",{className:"googlesitekit-invite-others-to-subscribe",children:[(0,j.jsxs)("div",{className:"googlesitekit-invite-others-to-subscribe__header",children:[(0,j.jsx)("span",{className:"googlesitekit-invite-others-to-subscribe__title",children:(0,s.__)("Invite others to subscribe","google-site-kit")}),(0,j.jsx)(K.A,{title:E})]}),N&&(0,j.jsx)(InviteSearchInput,{value:i,onChange:o}),(0,j.jsx)(InviteUserList,{users:S,searchTerm:g,inviteResults:u,onInviteResult:M,isLoading:A})]})}function PanelContent({notice:e,isUserSubscribed:t,isSavingSettings:i,onSaveCallback:o,onSubscribe:a,onUnsubscribe:c,onNoticeDismiss:d,closePanel:u}){const h=(0,r.useSelect)(e=>e(l.oR).getUser()),_=h?.wpEmail,y=(0,f.A)(),v=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),x=(0,r.useSelect)(e=>y?null:e(p.O4).getEmailReportingErrors()),I=[v,(0,r.useSelect)(e=>e(l.oR).getEmailReportingSettings()),x,(0,r.useSelect)(e=>e(m.i).getModules())].some(e=>void 0===e);return(0,j.jsxs)(n.Fragment,{children:[(0,j.jsx)(Header,{closePanel:u,isLoading:I}),(0,j.jsxs)(g.kA,{className:"googlesitekit-user-settings-selection__panel-content",children:[(0,j.jsx)(Notices,{isLoading:I,onGoToSettings:u}),(0,j.jsxs)("div",{className:"googlesitekit-user-settings-selection__panel-description",children:[I&&(0,j.jsxs)(n.Fragment,{children:[(0,j.jsx)(A.A,{width:"100%",height:"16px"}),(0,j.jsx)(A.A,{width:"60%",height:"16px"})]}),!I&&v&&(0,j.jsxs)(k.A,{type:"body",size:"small",children:[(0,s.__)("You’ll receive the report to your WordPress user email","google-site-kit"),_&&(0,j.jsx)(M.A,{type:"body",size:"medium",children:_})]})]}),(0,j.jsx)(FrequencySelector,{isUserSubscribed:t,isLoading:I}),(0,j.jsx)(SubscribeActions,{onSubscribe:a,onUnsubscribe:c,updateSettings:o,isSubscribed:t,isSavingSettings:i,isLoading:I}),v&&!y&&(0,j.jsx)(InviteOthersToSubscribe,{})]}),v&&(0,j.jsx)(SelectionPanelFooter,{notice:e,onNoticeDismiss:d})]})}function UserSettingsSelectionPanel(){const e=(0,v.A)(),t=(0,r.useSelect)(e=>e(a.n).getValue(c.Q)),i=(0,o.A)(t),d=(0,n.useCallback)(()=>{(0,te.sx)(`${e}_email_reports_user_settings-sidebar`,"user_settings_sidebar_view")},[e]),u=(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,_]=(0,n.useState)(null),{setValue:f}=(0,r.useDispatch)(a.n),{saveEmailReportingSettings:y,resetEmailReportingSettings:k}=(0,r.useDispatch)(l.oR),x=(0,n.useCallback)(()=>{t&&(setTimeout(()=>{k(),_(null)},310),f(c.Q,!1),(0,te.sx)(`${e}_email_reports_user_settings-sidebar`,"user_settings_sidebar_close"))},[t,k,f,e]),A=(0,n.useCallback)(async()=>{const{error:t}=await y();(0,te.sx)(`${e}_email_reports_user_settings-sidebar`,"update_settings",m),_(t?{type:b.Q.ERROR,text:t?.message||(0,s.__)("An error occurred.","google-site-kit")}:{type:b.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),_(t?{type:b.Q.ERROR,text:t?.message||(0,s.__)("An error occurred.","google-site-kit")}:{type:b.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]),M=(0,n.useCallback)(async()=>{const{error:t}=await y({subscribed:!1});(0,te.sx)(`${e}_email_reports_user_settings-sidebar`,"unsubscribe"),_(t?{type:b.Q.ERROR,text:t?.message||(0,s.__)("An error occurred.","google-site-kit")}:{type:b.Q.INFO_ALT_2,text:(0,s.__)("You’ve unsubscribed from email reports","google-site-kit")})},[y,e]),S=(0,n.useCallback)(()=>_(null),[]);return(0,n.useEffect)(()=>{!i&&t&&f("admin-screen-tooltip",{isTooltipVisible:!1})},[t,i,f]),(0,j.jsx)(g.Ay,{className:"googlesitekit-user-settings-selection-panel googlesitekit-email-reporting-settings",isOpen:!!t,onOpen:d,closePanel:x,children:(0,j.jsx)(PanelContent,{notice:h,isUserSubscribed:u?.subscribed,isSavingSettings:p,onSaveCallback:A,onSubscribe:I,onUnsubscribe:M,onNoticeDismiss:S,closePanel:x})})}PanelContent.propTypes={savedFrequency:u().string,notice:u().shape({title:u().string,text:u().string,type:u().oneOf(Object.values(b.Q))}),isUserSubscribed:u().bool,isSavingSettings:u().bool,onSaveCallback:u().func,onSubscribe:u().func,onUnsubscribe:u().func,onNoticeDismiss:u().func,closePanel:u().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"})))},1405:(e,t,i)=>{i.d(t,{a:()=>s});const s="sign-in-with-google"},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),g=i(29785),d=i(88273),u=i(13137),p=i(4124),m=i(38432),h=i(62540);function ReportErrorActions(e){const{moduleSlug:t,error:i,GetHelpLink:s,hideGetHelpLink:n,buttonVariant:_,onRetry:f,onRequestAccess:y,getHelpClassName:k,RequestAccessButton:v,RetryButton:x}=e,A=(0,p.A)(),j=(0,l.useSelect)(e=>e(d.i).getModuleStoreName(t)),I=(0,l.useSelect)(e=>"function"==typeof e(j)?.getServiceEntityAccessURL?e(j).getServiceEntityAccessURL():null),b=Array.isArray(i)?i:[i],M=(0,l.useSelect)(e=>b.map(t=>{const i=e(j)?.getSelectorDataForError(t);return{...t,selectorData:i}})),S=M?.filter(e=>(0,u.vl)(e,e.selectorData)&&"getReport"===e.selectorData.name),N=!!S.length,E=(0,l.useSelect)(e=>{const i={...N?S[0]:b[0]};return(0,u.SG)(i)&&(i.code=`${t}_insufficient_permissions`),e(g.O4).getErrorTroubleshootingLinkURL(i)}),w=(0,l.useDispatch)(),C=b.some(e=>(0,u.SG)(e)),T=(0,o.useCallback)(()=>{S.forEach(e=>{const{selectorData:t}=e;w(t.storeName).invalidateResolution(t.name,t.args)}),f?.()},[w,S,f]),D=I&&C&&!A;return(0,h.jsxs)("div",{className:"googlesitekit-report-error-actions",children:[D&&("function"==typeof v?(0,h.jsx)(v,{requestAccessURL:I}):(0,h.jsx)(c.Button,{onClick:y,href:I,target:"_blank",danger:"danger"===_,tertiary:"tertiary"===_,children:(0,a.__)("Request access","google-site-kit")})),N&&(0,h.jsxs)(o.Fragment,{children:["function"==typeof x?(0,h.jsx)(x,{handleRetry:T}):(0,h.jsx)(c.Button,{onClick:T,danger:"danger"===_,tertiary:"tertiary"===_,children:(0,a.__)("Retry","google-site-kit")}),!n&&(0,h.jsx)("span",{className:"googlesitekit-error-retry-text",children:(0,r.A)((0,a.__)("Retry didn’t work? <HelpLink />","google-site-kit"),{HelpLink:(0,h.jsx)(m.A,{href:E,external:!0,hideExternalIndicator:!0,children:(0,a.__)("Get help","google-site-kit")})})})]}),!N&&!n&&(0,h.jsx)("div",{className:k,children:"function"==typeof s?(0,h.jsx)(s,{linkURL:E}):(0,h.jsx)(m.A,{href:E,external:!0,hideExternalIndicator:!0,children:(0,a.__)("Get help","google-site-kit")})})]})}ReportErrorActions.propTypes={moduleSlug:n().string.isRequired,error:n().oneOfType([n().arrayOf(n().object),n().object]).isRequired,GetHelpLink:n().elementType,hideGetHelpLink:n().bool,buttonVariant:n().string,onRetry:n().func,onRequestAccess:n().func,getHelpClassName:n().string,RequestAccessButton:n().elementType,RetryButton:n().elementType}},2478:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;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 12 8"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.6.6 12 2 6 8 0 2 1.4.6 6 5.2z"})))},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}},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:g,tabletHeight:d,desktopWidth:u,desktopHeight:p}){const m=(0,a.dv)(),h={width:{[a.mp]:o,[a.Lg]:g,[a.Fo]:u,[a.Qb]:u},height:{[a.mp]:c,[a.Lg]:d,[a.Fo]:p,[a.Qb]:u}};return(0,l.jsx)("div",{className: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:()=>g});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(63696),l=i(62540);const c=(0,a.forwardRef)(({label:e,className:t,hasLeftSpacing:i=!1,...s},o)=>(0,l.jsx)("span",{ref:o,...s,className:n()("googlesitekit-badge",t,{"googlesitekit-badge--has-left-spacing":i}),children:e}));c.displayName="Badge",c.propTypes={label:r().string.isRequired,hasLeftSpacing:r().bool};const g=c},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),g=i(12417),d=i(1027),u=i(65123),p=i(49383),m=i(62540);function ReportErrorButton({message:e,componentStack:t}){const[i,s]=(0,c.useState)(!1);return(0,m.jsx)(p.Button,{"aria-label":i?(0,o.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){l()(`\`\`\`\n${e}\n${t}\n\`\`\``),s(!0)},trailingIcon:(0,m.jsx)(g.A,{className:"mdc-button__icon",icon:i?d.A:u.A}),children:i?(0,o.__)("Copied to clipboard","google-site-kit"):(0,o.__)("Copy error contents","google-site-kit")})}ReportErrorButton.propTypes={message:n().string,componentStack:n().string};const h=ReportErrorButton;function GenericErrorHandlerActions({message:e,componentStack:t}){return(0,m.jsxs)("div",{className:"googlesitekit-generic-error-handler-actions",children:[(0,m.jsx)(h,{message:e,componentStack:t}),(0,m.jsx)(r.A,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0,children:(0,o.__)("Report this problem","google-site-kit")})]})}GenericErrorHandlerActions.propTypes={message:n().string,componentStack:n().string}},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:()=>f,Hl:()=>d,IX:()=>m,Is:()=>r,KD:()=>p,LO:()=>g,NO:()=>c,Nl:()=>l,QJ:()=>u,Uf:()=>n,XU:()=>_,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",g=2,d=8,u={SLUG:"current-selection",LABEL:(0,s.__)("Current selection","google-site-kit")},p={SLUG:"suggested",LABEL:(0,s.__)("Suggested","google-site-kit")},m={SLUG:"visitors",LABEL:(0,s.__)("Visitors","google-site-kit")},h={SLUG:"driving-traffic",LABEL:(0,s.__)("Driving traffic","google-site-kit")},_={SLUG:"generating-leads",LABEL:(0,s.__)("Generating leads","google-site-kit")},f={SLUG:"selling-products",LABEL:(0,s.__)("Selling products","google-site-kit")},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:()=>S,RF:()=>M,WI:()=>I,_5:()=>x,jU:()=>v,o3:()=>k,x0:()=>j});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",g="AWAIT";function d(...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 u=d,p=d;function m(...e){const t=[...e];let i;return"function"!=typeof t[0]&&(i=t.shift()),(e=i,s={})=>t.reduce((e,t)=>t(e,s),e)}const h=d,_=d,f=d;function y(e){return e}function k(...e){const t=f(...e.map(e=>e.initialState||{}));return{initialState:t,controls:p(...e.map(e=>e.controls||{})),actions:u(...e.map(e=>e.actions||{})),reducer:m(t,...e.map(e=>e.reducer||y)),resolvers:h(...e.map(e=>e.resolvers||{})),selectors:_(...e.map(e=>e.selectors||{}))}}const v={getRegistry:()=>({payload:{},type:c}),*await(e){return{payload:{value:e},type:g}}},x={[c]:(0,l.b)(e=>()=>e),[g]:({payload:e})=>e.value};function A(e){const t=[],i={};for(let s=0;s<e.length;s++){const n=e[s];i[n]=i[n]>=1?i[n]+1:1,i[n]>1&&t.push(n)}return t}const j={actions:v,controls:x,reducer:y};function I(e){return t=>b(e(t))}const b=r()(e=>(0,a.mapValues)(e,(e,t)=>(...i)=>{const s=e(...i);return n()(void 0!==s,`${t}(...) is not resolved`),s}));function M(e,{negate:t=!1}={}){return{safeSelector:(0,l.N)(i=>(s,...n)=>{const o=!t,r=!!t;try{return e(i,s,...n),o}catch{return r}}),dangerousSelector:(0,l.N)(t=>(i,...s)=>{e(t,i,...s)})}}function S(e,t){return n()("function"==typeof e,"a validator function is required."),n()("function"==typeof t,"an action creator function is required."),n()("Generator"!==e[Symbol.toStringTag]&&"GeneratorFunction"!==e[Symbol.toStringTag],"an action’s validator function must not be a generator."),(...i)=>(e(...i),t(...i))}},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"]},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]},8777:(e,t,i)=>{var s=i(39941),n=i(131),o=i(78325),r=i(63081),a=i(49519),l=i(63696),c=i(82871),g=i(49383),d=i(82624),u=i(85172),p=i(75662),m=i(50539),h=i(88273),_=i(97345),f=i(49481),y=i(80),k=i(22942),v=i(10740),x=i(11974),A=i(62779),j=i(4452),I=i.n(j),b=i(63560),M=i(29785),S=i(5855),N=i(13606),E=i(38432),w=i(45257),C=i(62688),T=i.n(C),D=i(15844),R=i(13047),z=i(81597),L=i(82246),O=i(62659),P=i(62540);function ConfirmDisableConsentModeDialog({onConfirm:e,onCancel:t}){const i=(0,O.A)(),s=(0,m.useSelect)(e=>e(M.O4).isAdsConnectedUncached()),n=(0,m.useSelect)(e=>[k.L1,z.I].reduce((t,i)=>e(h.i).isModuleConnected(i)?[...t,e(h.i).getModule(i).name]:t,[])),o=n.length>0?(0,c.sprintf)(/* translators: %s: list of dependent modules */ /* translators: %s: list of dependent modules */ (0,c.__)("these active modules depend on consent mode and will be affected: %s","google-site-kit"),(0,R.K5)(n)):null;(0,D.A)(()=>{(0,R.sx)(`${i}_CoMo`,"view_modal")});let r=[(0,c.__)("Track how visitors interact with your site","google-site-kit")],a=(0,c.__)("Disabling consent mode may affect your ability in the European Economic Area, the UK and Switzerland to:","google-site-kit");return s&&(r=[(0,c.__)("Performance of your Ad campaigns","google-site-kit"),(0,c.__)("How visitors interact with your site via Analytics","google-site-kit")],a=(0,c.__)("Disabling consent mode may affect your ability to track these in the European Economic Area, the UK and Switzerland:","google-site-kit")),(0,P.jsx)(L.A,{className:"googlesitekit-settings-module__confirm-disconnect-modal",title:(0,c.__)("Disable consent mode?","google-site-kit"),subtitle:a,handleConfirm:e,handleCancel:t,onClose:t,provides:r,notes:[o],confirmButton:(0,c.__)("Disable","google-site-kit"),dialogActive:!0,danger:!0})}ConfirmDisableConsentModeDialog.propTypes={onConfirm:T().func.isRequired,onCancel:T().func.isRequired};var B=i(11514),U=i(73198),G=i(83880);function ConsentModeSwitch({loading:e}){const t=(0,O.A)(),[i,s]=(0,l.useState)(null),[n,o]=(0,l.useState)(!1),r=(0,m.useSelect)(e=>e(M.O4).isConsentModeEnabled()),a=(0,m.useSelect)(e=>e(M.O4).getDocumentationLinkURL("consent-mode")),d=(0,m.useSelect)(e=>e(M.O4).isFetchingSaveConsentModeSettings()),{setConsentModeEnabled:u,saveConsentModeSettings:p}=(0,m.useDispatch)(M.O4),{dismissPrompt:h,triggerSurvey:f}=(0,m.useDispatch)(_.oR),y=(0,m.useSelect)(e=>e(_.oR).isPromptDismissed(B.X));async function k(){s(null);const e=[p(),f("enable_como",{ttl:R.tt})],[{error:t}]=await Promise.all(e);t?s(t):y||await h(B.X)}return(0,P.jsxs)(l.Fragment,{children:[(0,P.jsxs)("div",{children:[(0,P.jsx)(w.A,{loading:e,width:"180px",height:"21.3px",children:(0,P.jsx)(g.Switch,{label:(0,c.__)("Enable consent mode","google-site-kit"),checked:r,disabled:e||d,onClick:()=>{r?((0,R.sx)(`${t}_CoMo`,"como_disable"),o(!0)):((0,R.sx)(`${t}_CoMo`,"como_enable"),u(!0),k())},hideLabel:!1})}),i&&(0,P.jsx)(U.A,{message:i.message}),!e&&r&&(0,P.jsx)("p",{className:"googlesitekit-settings-consent-mode-switch__enabled-notice",children:(0,c.__)("Site Kit added the necessary code to your tag to comply with consent mode.","google-site-kit")}),(0,P.jsx)(w.A,{className:"googlesitekit-settings-consent-mode-switch-description--loading",loading:e,width:"750px",height:"42px",smallWidth:"386px",smallHeight:"84px",tabletWidth:"540px",tabletHeight:"84px",children:(0,P.jsx)(G.A,{children:(0,N.A)((0,c.__)("Consent mode will help adjust tracking on your site, so only visitors who have explicitly given consent are tracked. <br />This is required in some parts of the world, like the European Economic Area. <a>Learn more</a>","google-site-kit"),{br:(0,P.jsx)("br",{}),a:(0,P.jsx)(E.A,{href:a,"aria-label":(0,c.__)("Learn more about consent mode","google-site-kit"),onClick:async()=>{await(0,R.sx)(`${t}_CoMo`,"como_learn_more")},external:!0})})})})]}),n&&(0,P.jsx)(ConfirmDisableConsentModeDialog,{onConfirm:()=>{(0,R.sx)(`${t}_CoMo`,"confirm_disconnect"),u(!1),o(!1),k()},onCancel:()=>{(0,R.sx)(`${t}_CoMo`,"cancel_disconnect"),o(!1)}})]})}var W=i(11763),V=i(33052);function WPConsentAPIRequirement({title:e,description:t,footer:i}){return(0,P.jsxs)("div",{className:"googlesitekit-settings-consent-mode-requirement",children:[(0,P.jsx)(V.A,{as:"h4",size:"large",type:"title",children:e}),(0,P.jsx)("p",{className:"googlesitekit-settings-consent-mode-requirement__description",children:t}),(0,P.jsx)("footer",{className:"googlesitekit-settings-consent-mode-requirement__footer",children:i})]})}WPConsentAPIRequirement.propTypes={title:T().string.isRequired,description:T().node.isRequired,footer:T().node.isRequired};var F=i(63972),H=i(25797);function WPConsentAPIRequirements(){const e=(0,O.A)(),t=(0,m.useSelect)(e=>e(M.O4).getDocumentationLinkURL("wp-consent-api")),i=(0,m.useSelect)(e=>e(M.O4).getDocumentationLinkURL("consent-management-platform")),{hasConsentAPI:s,wpConsentPlugin:n}=(0,m.useSelect)(e=>e(M.O4).getConsentAPIInfo()),{installActivateWPConsentAPI:o,activateConsentAPI:r}=(0,m.useDispatch)(M.O4),a=(0,m.useSelect)(e=>e(M.O4).getErrorForAction("installActivateWPConsentAPI")),g=(0,m.useSelect)(e=>e(M.O4).isApiFetching()),d=(0,m.useSelect)(e=>e(M.O4).isFetchingActivateConsentAPI()),u=(0,m.useSelect)(e=>e(M.O4).getApiInstallResponse()),p=(a?a.message:null)||u?.error,h={smSize:4,mdSize:4,lgSize:6};return(0,l.useEffect)(()=>{s&&(0,R.sx)(`${e}_CoMo`,"wp_consent_api_active")},[s,e]),(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)("p",{className:"googlesitekit-settings-consent-mode-requirements__description",children:(0,c.__)("In order for consent mode to work properly, these requirements must be met:","google-site-kit")}),(0,P.jsx)(v.xA,{className:"googlesitekit-settings-consent-mode-requirements__grid",children:(0,P.jsxs)(v.fI,{children:[(0,P.jsx)(v.fh,{...h,children:(0,P.jsx)(WPConsentAPIRequirement,{title:n?.installed?(0,c.__)("Activate WP Consent API","google-site-kit"):(0,c.__)("Install WP Consent API","google-site-kit"),description:(0,N.A)((0,c.__)("WP Consent API is a plugin that standardizes the communication of accepted consent categories between plugins. <a>Learn more</a>","google-site-kit"),{a:(0,P.jsx)(E.A,{href:t,"aria-label":(0,c.__)("Learn more about the WP Consent API","google-site-kit"),onClick:async()=>{await(0,R.sx)(`${e}_CoMo`,"wp_consent_api_learn_more")},external:!0})}),footer:(0,P.jsxs)(l.Fragment,{children:[s&&(0,P.jsxs)("div",{className:"googlesitekit-settings-consent-mode-requirement__consent-api-detected-wrapper",children:[(0,P.jsx)("span",{className:"googlesitekit-settings-consent-mode-requirement__consent-api-detected-icon",children:(0,P.jsx)(F.A,{})}),(0,c.__)("Site Kit detected WP Consent API for your site","google-site-kit")]}),!s&&(0,P.jsxs)(l.Fragment,{children:[n.installed&&(0,P.jsxs)(l.Fragment,{children:[!!u?.error&&(0,P.jsx)(U.A,{message:u?.error,skipRetryMessage:!0,hideIcon:!0}),(0,P.jsx)(W.A,{className:"googlesitekit-settings-consent-mode-requirement__install-button",isSaving:d,disabled:d,onClick:async()=>{r(),await(0,R.sx)(`${e}_CoMo`,"wp_consent_api_activate")},children:u?.error?(0,c.__)("Retry","google-site-kit"):(0,c.__)("Activate","google-site-kit")})]}),!n.installed&&(0,P.jsxs)(l.Fragment,{children:[p&&(0,P.jsx)(U.A,{message:p,skipRetryMessage:!0,hideIcon:!0}),(0,P.jsx)(W.A,{className:"googlesitekit-settings-consent-mode-requirement__install-button",isSaving:g,disabled:g,onClick:async()=>{o(),await(0,R.sx)(`${e}_CoMo`,"wp_consent_api_install")},children:p?(0,c.__)("Retry","google-site-kit"):(0,c.__)("Install","google-site-kit")})]})]})]})})}),(0,P.jsx)(v.fh,{...h,children:(0,P.jsx)(WPConsentAPIRequirement,{title:(0,c.__)("Install consent management plugin","google-site-kit"),description:(0,N.A)((0,c.__)("You’ll need a plugin compatible with the WP Consent API to display a notice to site visitors and get their consent for tracking. WordPress offers a variety of consent plugins you can choose from. <a>See suggested plugins</a>","google-site-kit"),{a:(0,P.jsx)(E.A,{href:i,"aria-label":(0,c.__)("Suggested consent management plugins","google-site-kit"),onClick:async()=>{await(0,R.sx)(`${e}_CoMo`,"consent_mgmt_plugin_learn_more")},external:!0})}),footer:(0,P.jsx)(H.A,{type:H.A.TYPES.INFO,className:"googlesitekit-notice--small",description:(0,c.__)("Make sure you have installed a plugin compatible with WP Consent API (Site Kit isn't able to verify the compatibility of all WP plugins).","google-site-kit")})})})]})})]})}function SettingsCardConsentMode(){const e=(0,O.A)(),t=(0,m.useSelect)(e=>e(M.O4).isAdsConnectedUncached()),i=(0,m.useSelect)(e=>e(M.O4).isConsentModeEnabled()),s=(0,m.useSelect)(e=>e(M.O4).getConsentAPIInfo()),n=(0,m.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:i}=e(M.O4);return!i("getConsentModeSettings")||!i("getConsentAPIInfo")||t("getConsentModeSettings")||t("getConsentAPIInfo")}),o=(0,l.useRef)(),r=(0,b.A)(o,{threshold:.25}),[a,g]=(0,l.useState)(!1),d=!!r?.intersectionRatio,{triggerSurvey:u}=(0,m.useDispatch)(_.oR);return(0,l.useEffect)(()=>{d&&!a&&((0,R.sx)(`${e}_CoMo`,"view_requirements"),t&&!1===i&&u("view_como_setup_cta",{ttl:R.tt}),g(!0))},[d,a,e,u,t,i]),(0,P.jsx)(p.A,{title:(0,c.__)("Consent mode","google-site-kit"),badge:t?(0,P.jsx)(S.A,{className:"googlesitekit-badge--primary",label:(0,c.__)("Recommended","google-site-kit")}):null,header:!0,rounded:!0,children:(0,P.jsx)("div",{className:"googlesitekit-settings-module googlesitekit-settings-module--active googlesitekit-settings-consent-mode",ref:o,children:(0,P.jsxs)(v.xA,{children:[(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,className:I()({"googlesitekit-overflow-hidden":n}),children:(0,P.jsx)(ConsentModeSwitch,{loading:n})})}),!n&&(0,P.jsxs)(l.Fragment,{children:[t&&!i&&(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(H.A,{type:H.A.TYPES.INFO,description:(0,c.__)("If you have Google Ads campaigns for this site, it’s highly recommended to enable consent mode - otherwise, you won’t be able to collect any metrics on the effectiveness of your campaigns in regions like the European Economic Area.","google-site-kit")})})}),!!s&&i&&(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(WPConsentAPIRequirements,{})})})]})]})})})}function ConversionReportingSettingsSubtleNotification(){const e=(0,O.A)(),[t,i]=(0,l.useState)(!1),[s,n]=(0,l.useState)(!1),o=(0,l.useRef)(),r=(0,b.A)(o,{threshold:.25}),a=!!r?.intersectionRatio;(0,l.useEffect)(()=>{!s&&a&&((0,R.sx)(`${e}_kmw-settings-change-from-manual-to-tailored`,"view_notification","conversion_reporting"),n(!0))},[s,a,e]);const g=(0,m.useSelect)(e=>e(M.O4).getAdminURL("googlesitekit-user-input")),d=(0,l.useCallback)(()=>{i(!0),(0,R.sx)(`${e}_kmw-settings-change-from-manual-to-tailored`,"confirm_get_tailored_metrics","conversion_reporting")},[i,e]);return(0,P.jsx)(v.xA,{ref:o,children:(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,alignMiddle:!0,children:(0,P.jsx)(H.A,{type:"new",title:(0,c.__)("Personalize your metrics","google-site-kit"),description:(0,c.__)("Set up your goals by answering 3 quick questions to help us show the most relevant data for your site","google-site-kit"),ctaButton:{label:(0,c.__)("Get tailored metrics","google-site-kit"),onClick:d,inProgress:t,disabled:t,href:g}})})})})}var Y=i(4751);function SettingsKeyMetrics({loading:e=!1}){const t=(0,m.useSelect)(e=>e(_.oR).isKeyMetricsWidgetHidden()),i=(0,m.useSelect)(e=>e(_.oR).getKeyMetrics()),{setKeyMetricsSetting:s,saveKeyMetricsSettings:n}=(0,m.useDispatch)(_.oR),o=(0,l.useCallback)(async()=>{await s("isWidgetHidden",!t),await n({widgetSlugs:void 0})},[t,n,s]);return e?(0,P.jsx)(v.xA,{children:(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,className:"googlesitekit-overflow-hidden",children:(0,P.jsx)(Y.A,{width:"260px",height:"21.3px"})})})}):void 0!==t&&i?.length?(0,P.jsx)(v.xA,{children:(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(g.Switch,{label:(0,c.__)("Display key metrics in dashboard","google-site-kit"),checked:!t,onClick:o,hideLabel:!1})})})}):null}SettingsKeyMetrics.propTypes={loading:T().bool};var Z,Q=i(70301),q=i(7972),K=i(65573),$=i(81276),X=i(30845);function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},J.apply(null,arguments)}const ee=e=>l.createElement("svg",J({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),Z||(Z=l.createElement("path",{stroke:"currentColor",strokeLinecap:"square",strokeWidth:2,d:"m15.835 8.333-5.834 5-5.833-5"})));function UserInputPreviewAnswers({loading:e,errorMessage:t,options:i,values:s}){return(0,P.jsx)("div",{className:"googlesitekit-user-input__preview-answers",children:(0,P.jsxs)(w.A,{loading:e,width:"340px",height:"36px",children:[t&&(0,P.jsx)("p",{className:"googlesitekit-error-text",children:t}),!t&&s.map(e=>(0,P.jsx)("div",{className:"googlesitekit-user-input__preview-answer",children:i[e]},e))]})})}var te=i(48377),ie=i(9246);function UserInputEditModeContent({onChange:e,options:t,settingsView:i,slug:s,values:n}){const o=(0,X.A)(n),r=(0,m.useSelect)(e=>e(q.n).getValue(K.b6)),a=(0,l.useRef)(),d=(0,X.j)(n,K.Ax[s]),u=`${(0,O.A)()}_kmw`,p=(0,m.useSelect)(e=>e(_.oR).hasUserInputSettingChanged(s)),h=r===s,f=(0,m.useSelect)(e=>e(Q.M).isNavigating()),y=(0,m.useSelect)(e=>e(_.oR).getUserInputSettings()),k=(0,m.useSelect)(e=>e(_.oR).isSavingUserInputSettings(y)),v=(0,X.A)(y?.[s]?.values||[]),x=k||f,A=(0,m.useSelect)(e=>e(_.oR).getErrorForAction("saveUserInputSettings",[])),{resetUserInputSettings:j,saveUserInputSettings:I}=(0,m.useDispatch)(_.oR),{setValues:b}=(0,m.useDispatch)(q.n),{USER_INPUT_ANSWERS_PURPOSE:M}=(0,K.B$)(),S=(0,l.useCallback)(()=>{h?(b({[K.b6]:void 0}),a.current?.focus?.()):((0,R.sx)(u,"question_edit",s),b({[K.b6]:s}))},[u,h,b,s]),N=(0,l.useCallback)(async()=>{x||(await j(),S())},[x,j,S]),E=(0,l.useCallback)(async()=>{if(!o)if(K.a3===s&&e)e();else{(await I()).error||((0,R.sx)(u,"question_update",s),S())}},[o,u,e,I,s,S]);return(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)(ie.A,{slug:s,max:K.Ax[s],options:t,descriptions:M,alignLeftOptions:!0}),d&&(0,P.jsx)("p",{className:"googlesitekit-error-text",children:d}),i&&(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)(te.A,{slug:s}),A&&(0,P.jsx)(U.A,{error:A}),(0,P.jsxs)("div",{className:"googlesitekit-user-input__preview-actions",children:[(0,P.jsx)(g.SpinnerButton,{disabled:o||v,onClick:p?E:S,isSaving:x,children:p||k?(0,c.__)("Apply changes","google-site-kit"):(0,c.__)("Save","google-site-kit")}),(0,P.jsx)(g.Button,{disabled:x,onClick:N,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")})]})]})]})}var se=i(68832);function UserInputPreviewGroup({slug:e,title:t,subtitle:i,values:s,options:n={},loading:o=!1,settingsView:r=!1,onChange:a}){const g=(0,O.A)(),d=(0,m.useSelect)(e=>e(Q.M).isNavigating()),u=(0,m.useSelect)(e=>e(q.n).getValue(K.b6)),p=(0,m.useSelect)(e=>{const t=e(_.oR).getUserInputSettings();return e(_.oR).isSavingUserInputSettings(t)}),h=(0,se.A)(K.we,K.a3),f=(0,$.A)(h);(0,l.useEffect)(()=>{e===K.a3&&f!==h&&void 0===h&&setTimeout(()=>{M.current?.focus?.()},100)},[h,f,e]);const{setValues:y}=(0,m.useDispatch)(q.n),{resetUserInputSettings:k}=(0,m.useDispatch)(_.oR),v=u===e,x=p||d,A=`${g}_kmw`,j=(0,l.useCallback)(()=>{v?(y({[K.b6]:void 0}),M.current?.focus?.()):((0,R.sx)(A,"question_edit",e),y({[K.b6]:e}))},[A,v,y,e]),b=(0,X.j)(s,K.Ax[e]),M=(0,l.useRef)(),S=(0,l.useCallback)(async()=>{if(r){if(x||u&&!v)return;v&&await k()}j()},[r,x,u,v,k,j]),N="function"==typeof i?i:void 0;return(0,P.jsxs)("div",{className:I()("googlesitekit-user-input__preview-group",{"googlesitekit-user-input__preview-group--editing":v,"googlesitekit-user-input__preview-group--individual-cta":r}),children:[(0,P.jsxs)("div",{className:I()("googlesitekit-user-input__preview-group-title",{"googlesitekit-user-input__preview-group-title-with-subtitle":N||i}),children:[(0,P.jsx)(w.A,{loading:o,width:"340px",height:"21px",children:(0,P.jsx)(G.A,{children:t})}),(0,P.jsx)(w.A,{loading:o,className:"googlesitekit-margin-left-auto",width:"60px",height:"26px",children:(0,P.jsxs)(E.A,{onClick:S,ref:M,disabled:x||!!u&&!v,trailingIcon:(0,P.jsx)(ee,{width:20,height:20}),secondary:!0,linkButton:!0,children:[v&&(0,c.__)("Close","google-site-kit"),!v&&(0,c.__)("Edit","google-site-kit")]})})]}),(0,P.jsx)(w.A,{children:(0,P.jsxs)("div",{className:"googlesitekit-user-input__preview-group-subtitle",children:[N&&(0,P.jsx)("div",{className:"googlesitekit-user-input__preview-group-subtitle-component",children:(0,P.jsx)(N,{})}),!N&&(0,P.jsx)(G.A,{children:i})]})}),!v&&(0,P.jsx)(UserInputPreviewAnswers,{values:s,options:n,loading:o,errorMessage:b}),v&&(0,P.jsx)(UserInputEditModeContent,{slug:e,options:n,onChange:a,settingsView:r,values:s})]})}UserInputPreviewGroup.propTypes={slug:T().string.isRequired,title:T().string.isRequired,subtitle:T().oneOfType([T().string,T().elementType]),values:T().arrayOf(T().string).isRequired,options:T().shape({}),loading:T().bool,settingsView:T().bool,onChange:T().func};var ne=i(75594),oe=i(37467),re=i(26788),ae=i(94656),le=i(11999),ce=i(50454);function ConfirmSitePurposeChangeModal({dialogActive:e=!1,handleDialog:t=null}){const i=(0,O.A)(),[s,n]=(0,l.useState)(!1),[o,r]=(0,l.useState)(null),a=(0,m.useSelect)(e=>e(y.K9).shouldIncludeConversionTailoredMetrics()),d=(0,m.useSelect)(e=>e(_.oR).getAnswerBasedMetrics(null,a)),u=(0,se.A)(K.we,K.a3),p=(0,m.useSelect)(e=>e(_.oR).getSavedUserInputSettings()),f=(0,m.useSelect)(e=>p?.purpose?.values?.length?"other"===p?.purpose?.values?.[0]?e(_.oR).getKeyMetrics():e(_.oR).getAnswerBasedMetrics(p?.purpose?.values?.[0]):[]),{setValues:v}=(0,m.useDispatch)(le.s),{setValues:x}=(0,m.useDispatch)(q.n),{resetUserInputSettings:A}=(0,m.useDispatch)(_.oR),j=(0,l.useCallback)(async()=>{u?.length&&(await A(),v(K.we,{[K.a3]:void 0})),x({[K.b6]:void 0}),t(),n(!1)},[t,u,A,v,x]),I=(0,m.useSelect)(e=>e(h.i).isModuleConnected(k.L1)?e(y.K9).getUserInputPurposeConversionEvents():[]),{setUserInputSetting:b,saveUserInputSettings:M}=(0,m.useDispatch)(_.oR),S=(0,l.useCallback)(async()=>{n(!0),b("includeConversionEvents",I),await M(),j()},[M,j,n,b,I]),N=(0,$.A)(e);(0,l.useEffect)(()=>{!0===N&&!1===e&&(s?(0,R.sx)(`${i}_kmw-settings-tailored-metrics-suggestions`,"confirm_update_metrics_selection","conversion_reporting"):(0,R.sx)(`${i}_kmw-settings-tailored-metrics-suggestions`,"cancel_update_metrics_selection","conversion_reporting"))},[N,e,s,i]),(0,l.useEffect)(()=>{p?.purpose?.values?.[0]&&null===o&&void 0!==f&&r(f)},[p,o,f,r]);const E=(0,$.A)(s);return(0,l.useEffect)(()=>{!E||s||e||null===o||setTimeout(()=>{r(null)},50)},[E,s,e,o,r]),(0,P.jsxs)(g.Dialog,{open:e,"aria-describedby":void 0,tabIndex:"-1",className:"googlesitekit-dialog-confirm-site-purpose-change",onClose:j,children:[(0,P.jsx)(g.DialogTitle,{children:(0,c.__)("Tailored metrics suggestions","google-site-kit")}),(0,P.jsxs)(G.A,{children:[(0,c.__)("You have changed your website purpose. We can suggest new tailored metrics for you based on your answers or you can keep your current metrics selection on your dashboard.","google-site-kit"),(0,P.jsx)("br",{}),(0,c.__)("You can always edit your metrics selection from the dashboard.","google-site-kit")]}),(0,P.jsx)(g.DialogContent,{children:(0,P.jsxs)("div",{className:"mdc-layout-grid__inner",children:[(0,P.jsxs)("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-4-phone",children:[(0,P.jsx)(V.A,{as:"h3",size:"small",type:"headline",children:(0,c.__)("Current metrics","google-site-kit")}),!!o&&(0,P.jsx)("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive",children:o.map(e=>(0,P.jsx)("li",{className:"mdc-list-item",children:(0,P.jsx)("span",{className:"mdc-list-item__text",children:ce.G[e]?.title})},e))})]}),(0,P.jsxs)("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-4-phone",children:[(0,P.jsx)(V.A,{as:"h3",size:"small",type:"headline",children:(0,c.__)("New tailored metrics","google-site-kit")}),!!d&&(0,P.jsx)("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive",children:d.map(e=>(0,P.jsx)("li",{className:"mdc-list-item",children:(0,P.jsx)("span",{className:"mdc-list-item__text",children:ce.G[e]?.title})},e))})]})]})}),(0,P.jsxs)(g.DialogFooter,{children:[(0,P.jsx)(g.Button,{className:"mdc-dialog__cancel-button",onClick:j,tertiary:!0,children:(0,c.__)("Keep current selection","google-site-kit")}),(0,P.jsx)(g.SpinnerButton,{isSaving:s,onClick:S,children:(0,c.__)("Update metrics selection","google-site-kit")})]})]})}ConfirmSitePurposeChangeModal.propTypes={dialogActive:T().bool,handleDialog:T().func};const ge=ConfirmSitePurposeChangeModal;function KeyMetricsSettingsSellProductsSubtleNotification(){const e=(0,O.A)(),{dismissItem:t}=(0,m.useDispatch)(_.oR),[i,s]=(0,l.useState)(!1),n=(0,l.useRef)(),o=(0,b.A)(n,{threshold:.25}),r=!!o?.intersectionRatio;(0,l.useEffect)(()=>{!i&&r&&((0,R.sx)(`${e}_kmw-settings-suggested-site-purpose-edit-notification`,"view_notification","conversion_reporting"),s(!0))},[i,r,e]);const a=(0,m.useSelect)(e=>e(_.oR).isItemDismissed(K.cz)),g=(0,l.useCallback)(async()=>{await t(K.cz),(0,R.sx)(`${e}_kmw-settings-suggested-site-purpose-edit-notification`,"confirm_notification","conversion_reporting")},[t,e]);return a?null:(0,P.jsx)(H.A,{type:H.A.TYPES.WARNING,description:(0,c.__)("To allow better personalization of suggested metrics, we have updated the answers list for this question with more accurate options. We recommend that you edit your answer.","google-site-kit"),dismissButton:{onClick:g}})}function UserInputPreview(e){const{goBack:t,submitChanges:i,error:s,loading:n=!1,settingsView:o=!1}=e,r=(0,l.useRef)(),[a,d]=(0,l.useState)(!1),u=(0,l.useCallback)(()=>{d(!1)},[d]),p=(0,m.useSelect)(e=>e(_.oR).getSavedUserInputSettings()),h=(0,m.useSelect)(e=>e(_.oR).isSavingUserInputSettings(p)),f=(0,m.useSelect)(e=>e(Q.M).isNavigating()),k=(0,m.useSelect)(e=>!!e(q.n).getValue(K.b6)),v=h||f,{USER_INPUT_ANSWERS_PURPOSE:x,USER_INPUT_ANSWERS_POST_FREQUENCY:A,USER_INPUT_ANSWERS_GOALS:j}=(0,K.Dc)(),[b]=(0,oe.A)("page"),M=K.W.some(e=>(0,X.A)(p?.[e]?.values||[])),S=(0,l.useCallback)(()=>{M||v||i()},[M,v,i]),{saveUserInputSettings:N}=(0,m.useDispatch)(_.oR),E=(0,se.A)(K.we,K.a3),C=(0,m.useSelect)(e=>e(_.oR).getSavedUserInputSettings()),T=(0,m.useSelect)(e=>void 0!==C&&C?.purpose?.values?.length?e(_.oR).getAnswerBasedMetrics(C?.purpose?.values?.[0]):[]),D=(0,m.useSelect)(e=>e(y.K9).shouldIncludeConversionTailoredMetrics()),R=(0,m.useSelect)(e=>e(_.oR).getAnswerBasedMetrics(null,D)),{resetUserInputSettings:z}=(0,m.useDispatch)(_.oR),{setValues:L}=(0,m.useDispatch)(le.s),{setValues:O}=(0,m.useDispatch)(q.n);(0,l.useEffect)(()=>{if(!r?.current||b?.startsWith("googlesitekit-settings"))return;const e=r.current.querySelector(".mdc-button");e&&setTimeout(()=>{e.focus()},50)},[b]);const{setUserInputSetting:B}=(0,m.useDispatch)(_.oR),G=(0,m.useSelect)(e=>e(q.n).getValue(K.b6));return(0,l.useEffect)(()=>{const e=[...p?.purpose?.values||[]];K.a3===G&&e.includes("sell_products_or_service")&&(B(K.a3,["sell_products"]),L(K.we,{[K.a3]:["sell_products_or_service"]}))},[p,B,G,L]),(0,P.jsxs)("div",{className:I()("googlesitekit-user-input__preview",{"googlesitekit-user-input__preview--editing":k}),ref:r,children:[(0,P.jsxs)("div",{className:"googlesitekit-user-input__preview-contents",children:[!o&&(0,P.jsx)("p",{className:"googlesitekit-user-input__preview-subheader",children:(0,c.__)("Review your answers","google-site-kit")}),o&&(0,P.jsx)("div",{className:"googlesitekit-settings-user-input__heading-container",children:(0,P.jsx)(w.A,{loading:n,width:"275px",height:"16px",children:(0,P.jsx)("p",{className:"googlesitekit-settings-user-input__heading",children:(0,c.__)("Edit your answers for more personalized metrics:","google-site-kit")})})}),(0,P.jsx)(UserInputPreviewGroup,{slug:K.a3,title:(0,c.__)("What is the main purpose of this site?","google-site-kit"),subtitle:p?.purpose?.values.includes("sell_products_or_service")?KeyMetricsSettingsSellProductsSubtleNotification:null,values:p?.purpose?.values||[],options:x,loading:n,settingsView:o,onChange:async function(){0!==R.filter(e=>!T.includes(e)).length?d(!0):(await N(),E?.length&&(await z(),L(K.we,{[K.a3]:void 0})),O({[K.b6]:void 0}))}}),(0,P.jsx)(UserInputPreviewGroup,{slug:K.aq,title:(0,c.__)("How often do you create new content for this site?","google-site-kit"),values:p?.postFrequency?.values||[],options:A,loading:n,settingsView:o}),(0,P.jsx)(UserInputPreviewGroup,{slug:K.KM,title:(0,c.__)("What are your top 3 goals for this site?","google-site-kit"),values:p?.goals?.values||[],options:j,loading:n,settingsView:o}),s&&(0,P.jsx)(U.A,{error:s})]}),!o&&(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)("div",{className:"googlesitekit-user-input__preview-notice",children:(0,P.jsx)(ne.A,{})}),(0,P.jsxs)("div",{className:"googlesitekit-user-input__footer googlesitekit-user-input__buttons",children:[(0,P.jsxs)("div",{className:"googlesitekit-user-input__footer-nav",children:[(0,P.jsx)(g.SpinnerButton,{className:"googlesitekit-user-input__buttons--next",onClick:S,disabled:M||v,isSaving:v,children:(0,c.__)("Save","google-site-kit")}),(0,P.jsx)(g.Button,{className:"googlesitekit-user-input__buttons--back",onClick:t,disabled:v,tertiary:!0,children:(0,c.__)("Back","google-site-kit")})]}),(0,P.jsx)("div",{className:"googlesitekit-user-input__footer-cancel",children:(0,P.jsx)(re.A,{disabled:v})})]})]}),(0,P.jsx)(ae.A,{children:(0,P.jsx)(ge,{dialogActive:a,handleDialog:u})})]})}UserInputPreview.propTypes={submitChanges:T().func,goBack:T().func,error:T().object,loading:T().bool,settingsView:T().bool};var de=i(89065),ue=i(85097);function SettingsCardKeyMetrics(){const e=(0,O.A)(),t=(0,ue.W)(),i=(0,m.useSelect)(e=>e(_.oR).isUserInputCompleted()),s=(0,m.useSelect)(e=>(e(_.oR).getUserInputSettings(),e(_.oR).isResolving("getUserInputSettings",[]))),n=(0,m.useSelect)(e=>!e(_.oR).hasFinishedResolution("isUserInputCompleted")),o=`${e}_kmw`;return(0,l.useEffect)(()=>{i&&(0,R.sx)(o,"summary_view")},[i,o]),(0,P.jsx)(p.A,{title:(0,c.__)("Key Metrics","google-site-kit"),header:!0,rounded:!0,children:(0,P.jsxs)("div",{className:"googlesitekit-settings-module googlesitekit-settings-module--active googlesitekit-settings-user-input",children:[n&&(0,P.jsx)(Y.A,{width:"100%",smallHeight:"100px",tabletHeight:"100px",desktopHeight:"117px"}),i&&(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)(SettingsKeyMetrics,{loading:s}),(0,P.jsx)(v.xA,{children:(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(UserInputPreview,{loading:s,settingsView:!0})})})})]}),!1===i&&(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)(SettingsKeyMetrics,{}),(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)(ConversionReportingSettingsSubtleNotification,{}),t&&(0,P.jsx)(de.A,{triggerID:"view_kmw_setup_cta",ttl:R.Du})]})]})]})})}var pe=i(76729),me=i(76984),he=i(30289),_e=i(68761);const fe="email_reports_new_notice",ye=(0,he.A)(H.A);function EmailReportingCardNotice({className:e}){const t=(0,m.useSelect)(e=>e(_.oR).getEmailReportingSettings()),i=(0,m.useSelect)(e=>e(_.oR).isEmailReportingSubscribed()),s=(0,m.useSelect)(e=>e(_.oR).isItemDismissed(fe)),n=(0,_e.A)(fe),{setValue:o}=(0,m.useDispatch)(q.n),{dismissItem:r}=(0,m.useDispatch)(_.oR),a=(0,l.useCallback)(()=>{n.confirm(),o(pe.Q,!0)},[o,n]),g=(0,l.useCallback)(async()=>{n.dismiss(),await r(fe)},[r,n]);return void 0===t||i||!1!==s?null:(0,P.jsx)(ye,{className:e,type:me.Q.NEW,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"),ctaButton:{label:(0,c.__)("Set up","google-site-kit"),onClick:a},dismissButton:{label:(0,c.__)("Maybe later","google-site-kit"),onClick:g},onInView:n.view})}EmailReportingCardNotice.propTypes={className:T().string};var ke=i(91117),ve=i(14183);function SettingsEmailReporting({loading:e=!1}){const t=(0,O.A)(),[i,s]=(0,l.useState)(!1),n=(0,m.useSelect)(e=>e(M.O4).isEmailReportingEnabled()),o=(0,m.useSelect)(e=>e(M.O4).getEmailReportingSettings()),r=(0,m.useSelect)(e=>e(_.oR).isEmailReportingSubscribed()),a=(0,m.useSelect)(e=>e(_.oR).isItemDismissed(fe)),d=(0,m.useSelect)(e=>e(M.O4).getDocumentationLinkURL("email-reporting")),{setEmailReportingEnabled:u,saveEmailReportingSettings:p}=(0,m.useDispatch)(M.O4),{setValue:h}=(0,m.useDispatch)(q.n),f=(0,l.useCallback)(async()=>{n?s(!0):((0,R.sx)(`${t}_email_reports`,"activate_periodic_email_reports"),await u(!0),await p())},[n,u,p,t]),y=(0,l.useCallback)(async()=>{(0,R.sx)(`${t}_email_reports`,"deactivate_periodic_email_reports"),s(!1),await u(!1),await p()},[p,u,t]),k=(0,l.useCallback)(()=>{(0,R.sx)(`${t}_email_reports_confirm_disable_modal`,"dismiss_modal"),s(!1)},[t]),x=(0,l.useCallback)(()=>{(0,R.sx)(`${t}_email_reports`,"manage_email_reports_subscription"),h(pe.Q,!0)},[t,h]),A=(0,l.useCallback)(()=>{(0,R.sx)(`${t}_email_reports_confirm_disable_modal`,"manage_email_reports_subscription"),k(),h(pe.Q,!0)},[t,h,k]);return e||void 0===o?null:(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)("div",{className:"googlesitekit-settings-email-reporting__switch",children:(0,P.jsx)(g.Switch,{label:(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)(V.A,{type:"body",size:"medium",className:"googlesitekit-settings-email-reporting__label",children:(0,c.__)("Enable email reports","google-site-kit")}),(0,P.jsx)("br",{}),(0,P.jsx)(V.A,{type:"body",size:"medium",className:"googlesitekit-settings-email-reporting__label-description",children:(0,N.A)((0,c.__)("This allows you and any dashboard sharing user to subscribe to email reports. <a>Learn more</a>","google-site-kit"),{a:(0,P.jsx)(E.A,{href:d,onClick:()=>{(0,R.sx)(`${t}_email_reports`,"click_learn_more_link")},external:!0})})})]}),checked:n,onClick:f,hideLabel:!1})})})}),n&&void 0!==o&&!r&&!1===a&&(0,P.jsx)(v.fI,{className:"googlesitekit-settings-email-reporting__manage",children:(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(EmailReportingCardNotice,{})})}),n&&void 0!==o&&void 0!==a&&(r||!1!==a)&&(0,P.jsx)(v.fI,{className:"googlesitekit-settings-email-reporting__manage",children:(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(E.A,{onClick:x,children:(0,c.__)("Manage email reports subscription","google-site-kit")})})}),(0,P.jsx)(ve.A,{}),(0,P.jsx)(ke.A,{}),i&&(0,P.jsx)(L.A,{className:"googlesitekit-settings-email-reporting__confirm-disable-modal",title:(0,c.__)("Are you sure you want to disable email reports?","google-site-kit"),subtitle:(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)("span",{children:(0,c.__)("Disabling email reports will pause sending email reports for all subscribed users.","google-site-kit")}),(0,P.jsx)("br",{}),(0,N.A)((0,c.__)("You can manage your subscription in your <a>email report settings</a>.","google-site-kit"),{a:(0,P.jsx)(E.A,{onClick:A})}),(0,P.jsx)("br",{}),(0,P.jsx)(E.A,{href:d,onClick:()=>{(0,R.sx)(`${t}_email_reports_confirm_disable_modal`,"click_learn_more_link")},external:!0,children:(0,c.__)("Learn more","google-site-kit")})]}),onOpen:()=>{(0,R.sx)(`${t}_email_reports_confirm_disable_modal`,"view_modal")},handleConfirm:y,handleCancel:k,onClose:k,confirmButton:(0,c.__)("Disable","google-site-kit"),dialogActive:!0})]})}SettingsEmailReporting.propTypes={loading:T().bool};var xe=i(97513),Ae=i(11883);function je(e){const[t]=(0,oe.A)("scrollTo"),s=(0,xe.dv)();(0,l.useEffect)(()=>{t===e&&setTimeout(()=>{i.g.scrollTo({top:(0,Ae.YJ)(`#${e}`,s)-20,behavior:"smooth"})},50)},[e,t,s])}function SettingsCardEmailReporting(){const e=(0,m.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:i}=e(M.O4);return!i("getEmailReportingSettings")||t("getEmailReportingSettings")}),t=(0,m.useSelect)(e=>e(M.O4).getEmailReportingSettings());return je("email-reporting"),(0,P.jsx)(p.A,{id:"email-reporting",title:(0,c.__)("Email reports","google-site-kit"),header:!0,rounded:!0,children:(0,P.jsxs)("div",{className:"googlesitekit-settings-module googlesitekit-settings-module--active googlesitekit-settings-email-reporting",children:[e&&(0,P.jsx)(Y.A,{width:"100%",height:"100px"}),!e&&void 0!==t&&(0,P.jsx)(v.xA,{children:(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(SettingsEmailReporting,{})})})})]})})}function SettingsPlugin(){const e=(0,m.useSelect)(e=>e(M.O4).getShowAdminBar()),{setShowAdminBar:t}=(0,m.useDispatch)(M.O4),i=(0,O.A)(),s=(0,l.useCallback)(({target:e})=>{const s=e.checked?"enable_admin_bar_menu":"disable_admin_bar_menu";t(!!e.checked),(0,R.sx)(i,s)},[t,i]);return(0,P.jsx)(p.A,{className:"googlesitekit-settings-meta",title:(0,c.__)("Plugin Settings","google-site-kit"),header:!0,fill:!0,rounded:!0,children:(0,P.jsx)("div",{className:"googlesitekit-settings-module googlesitekit-settings-module--active",children:(0,P.jsx)(v.xA,{children:(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)("div",{className:"googlesitekit-settings-module__meta-items",children:(0,P.jsx)("div",{className:"googlesitekit-settings-module__meta-item googlesitekit-settings-module__meta-item--nomargin",children:(0,P.jsx)(g.Checkbox,{id:"admin-bar-toggle",name:"admin-bar-toggle",value:"1",checked:e,onChange:s,disabled:void 0===e,loading:void 0===e,children:(0,P.jsx)("span",{children:(0,c.__)("Display relevant page stats in the Admin bar","google-site-kit")})})})})})})})})})}var Ie=i(24560),be=i(51568),Me=i(69908),Se=i(19793);const Ne="show_settings_visitor_groups_success_notification",Ee=(0,l.forwardRef)((e,t)=>{const i=(0,O.A)(),s=(0,m.useSelect)(e=>{const t=e(M.O4).getAdminURL("googlesitekit-dashboard");return(0,be.F)(t,{widgetArea:Me.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION})}),{navigateTo:n}=(0,m.useDispatch)(Q.M),{setValue:o}=(0,m.useDispatch)(q.n);function r(){o(Ne,!1)}return(0,P.jsxs)("div",{ref:t,className:"googlesitekit-settings-visitor-groups__setup-success googlesitekit-subtle-notification",children:[(0,P.jsx)("div",{className:"googlesitekit-subtle-notification__icon",children:(0,P.jsx)(Se.A,{width:24,height:24})}),(0,P.jsx)("div",{className:"googlesitekit-subtle-notification__content",children:(0,P.jsx)(G.A,{children:(0,c.__)("We’ve added the visitor groups section to your dashboard!","google-site-kit")})}),(0,P.jsxs)("div",{className:"googlesitekit-subtle-notification__action",children:[(0,P.jsx)(g.Button,{onClick:function(){(0,R.sx)(`${i}_audiences-setup-cta-settings-success`,"dismiss_notification").finally(r)},tertiary:!0,children:(0,c.__)("Got it","google-site-kit")}),(0,P.jsx)(g.Button,{onClick:function(){(0,R.sx)(`${i}_audiences-setup-cta-settings-success`,"confirm_notification").finally(async()=>{await r(),n(s)})},children:(0,c.__)("Show me","google-site-kit")})]})]})}),we=(0,he.A)(Ee);function SetupSuccess(){const e=(0,O.A)();return(0,P.jsx)(we,{onInView:()=>{(0,R.sx)(`${e}_audiences-setup-cta-settings-success`,"view_notification")}})}var Ce=i(51094),Te=i(23403);function SetupCTA(){const e=(0,O.A)(),[t,s]=(0,l.useState)(!1),n=(0,m.useSelect)(e=>e(M.O4).getDocumentationLinkURL("visitor-groups")),o=(0,l.useCallback)(()=>{s(!0)},[s]),{setValue:r}=(0,m.useDispatch)(q.n),{apiErrors:a,failedAudiences:d,isSaving:u,onEnableGroups:p}=(0,Te.A)({redirectURL:i.g.location.href,onSuccess:()=>{r(Ne,!0)},onError:o}),h=(0,m.useSelect)(e=>e(M.O4).getSetupErrorCode()),f=(0,se.A)(y.PW,"autoSubmit")&&"access_denied"===h,{setValues:k}=(0,m.useDispatch)(le.s),{setSetupErrorCode:v}=(0,m.useDispatch)(M.O4),{clearPermissionScopeError:x}=(0,m.useDispatch)(_.oR);return(0,P.jsxs)("div",{className:"googlesitekit-settings-visitor-groups__setup",children:[(0,P.jsx)(G.A,{children:(0,N.A)((0,c.__)("To set up new visitor groups for your site, Site Kit needs to update your Google Analytics property. <a>Learn more</a>","google-site-kit"),{a:(0,P.jsx)(E.A,{href:n,external:!0})})}),u&&(0,P.jsxs)("div",{className:"googlesitekit-settings-visitor-groups__setup-progress",children:[(0,P.jsx)(G.A,{children:(0,c.__)("Enabling groups","google-site-kit")}),(0,P.jsx)(g.ProgressBar,{compress:!0})]}),!u&&(0,P.jsx)(E.A,{onClick:function(){(0,R.sx)(`${e}_audiences-setup-cta-settings`,"enable_groups").finally(p)},children:(0,c.__)("Enable groups","google-site-kit")}),(t||f)&&(0,P.jsx)(Ce.Oc,{hasOAuthError:f,apiErrors:a.length?a:d,onRetry:p,inProgress:u,onCancel:f?function(){k(y.PW,{autoSubmit:!1}),x(),v(null),s(!1)}:()=>s(!1)})]})}function SettingsCardVisitorGroups(){const e=(0,O.A)(),t=(0,m.useSelect)(e=>e(_.oR).isAudienceSegmentationWidgetHidden()),i=(0,m.useSelect)(e=>e(_.oR).getConfiguredAudiences()),s=(0,m.useSelect)(e=>e(y.K9).getAudienceSegmentationSetupCompletedBy()),n=(0,m.useSelect)(e=>e(q.n).getValue(Ne)),{setAudienceSegmentationWidgetHidden:o,saveUserAudienceSettings:r}=(0,m.useDispatch)(_.oR),a=(0,l.useCallback)(()=>{const i=t?"audience_widgets_enable":"audience_widgets_disable";(0,R.sx)(`${e}_audiences-settings`,i).finally(async()=>{await o(!t),await r()})},[t,r,o,e]);if(je("visitor-groups"),void 0===i||void 0===s)return null;const d=!i&&null===s;return(0,P.jsx)(p.A,{id:"visitor-groups",className:"googlesitekit-settings-meta",title:(0,c.__)("Visitor groups","google-site-kit"),header:!0,fill:!0,rounded:!0,children:(0,P.jsx)("div",{className:"googlesitekit-settings-module googlesitekit-settings-module--active",children:(0,P.jsx)(v.xA,{children:(0,P.jsx)(v.fI,{children:(0,P.jsxs)(v.fh,{size:12,children:[d&&(0,P.jsx)(SetupCTA,{}),!d&&(0,P.jsxs)(l.Fragment,{children:[n&&(0,P.jsx)(SetupSuccess,{}),(0,P.jsx)(g.Switch,{label:(0,c.__)("Display visitor groups in dashboard","google-site-kit"),checked:!t,onClick:a,hideLabel:!1})]})]})})})})})}var De,Re=i(30805);function SettingsAdmin(){const e=(0,Re.i)("proactiveUserEngagement"),t=(0,m.useSelect)(e=>e(_.oR).getConfiguredAudiences()),i=(0,m.useSelect)(e=>e(h.i).isModuleConnected(k.L1)),s=(0,m.useSelect)(e=>e(f.n).isGatheringData()),n=(0,m.useSelect)(e=>!!i&&e(y.K9).isGatheringData()),o=i&&!1===s&&!1===n;return(0,m.useSelect)(e=>!e(h.i).hasFinishedResolution("isModuleConnected",[k.L1])||!1!==i&&(!e(f.n).hasFinishedResolution("isGatheringData")||!e(y.K9).hasFinishedResolution("isGatheringData")))?(0,P.jsxs)(v.fI,{children:[(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(Y.A,{width:"100%",smallHeight:"100px",tabletHeight:"100px",desktopHeight:"200px"})}),(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(Y.A,{width:"100%",smallHeight:"100px",tabletHeight:"100px",desktopHeight:"200px"})}),(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(Y.A,{width:"100%",smallHeight:"100px",tabletHeight:"100px",desktopHeight:"200px"})}),(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(Y.A,{width:"100%",smallHeight:"100px",tabletHeight:"100px",desktopHeight:"200px"})})]}):(0,P.jsxs)(v.fI,{children:[(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(SettingsCardConsentMode,{})}),o&&(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(SettingsCardKeyMetrics,{})}),(i||!!t)&&(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(SettingsCardVisitorGroups,{})}),e&&(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(SettingsCardEmailReporting,{})}),(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(p.A,{title:(0,c.__)("Plugin Status","google-site-kit"),header:!0,rounded:!0,children:(0,P.jsxs)("div",{className:"googlesitekit-settings-module googlesitekit-settings-module--active",children:[(0,P.jsx)(v.xA,{children:(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)("div",{className:"googlesitekit-settings-module__meta-items",children:(0,P.jsxs)("p",{className:"googlesitekit-settings-module__status",children:[(0,c.__)("Site Kit is connected","google-site-kit"),(0,P.jsx)("span",{className:"googlesitekit-settings-module__status-icon googlesitekit-settings-module__status-icon--connected",children:(0,P.jsx)(Ie.A,{width:10,height:8})})]})})})})}),(0,P.jsx)("footer",{className:"googlesitekit-settings-module__footer",children:(0,P.jsx)(v.xA,{children:(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(A.A,{})})})})})]})})}),(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(SettingsPlugin,{})}),(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(p.A,{className:"googlesitekit-settings-meta",title:(0,c.__)("Tracking","google-site-kit"),header:!0,fill:!0,rounded:!0,children:(0,P.jsx)("div",{className:"googlesitekit-settings-module googlesitekit-settings-module--active",children:(0,P.jsx)(v.xA,{children:(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)("div",{className:"googlesitekit-settings-module__meta-items",children:(0,P.jsx)("div",{className:"googlesitekit-settings-module__meta-item googlesitekit-settings-module__meta-item--nomargin",children:(0,P.jsx)(x.A,{})})})})})})})})})]})}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 Le=e=>l.createElement("svg",ze({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 23 30"},e),De||(De=l.createElement("path",{fill:"currentColor",d:"M20 10h-1.429V7.143C18.571 3.2 15.371 0 11.43 0a7.145 7.145 0 0 0-7.143 7.143V10H2.857A2.866 2.866 0 0 0 0 12.857v14.286A2.866 2.866 0 0 0 2.857 30H20a2.866 2.866 0 0 0 2.857-2.857V12.857A2.866 2.866 0 0 0 20 10m-8.571 12.857A2.866 2.866 0 0 1 8.57 20a2.866 2.866 0 0 1 2.858-2.857A2.866 2.866 0 0 1 14.286 20a2.866 2.866 0 0 1-2.857 2.857M15.857 10H7V7.143a4.43 4.43 0 0 1 4.429-4.429 4.43 4.43 0 0 1 4.428 4.429z"})));function SettingsOverlay({compress:e}){return(0,P.jsx)("div",{className:I()("googlesitekit-overlay",{"googlesitekit-overlay--compress":e}),children:(0,P.jsxs)("div",{className:"googlesitekit-overlay__wrapper",children:[(0,P.jsx)("div",{className:"googlesitekit-overlay__icon",children:(0,P.jsx)(Le,{width:"22",height:"30"})}),(0,P.jsx)(V.A,{as:"h3",size:"medium",type:"title",className:" googlesitekit-heading-2 googlesitekit-overlay__title ",children:(0,c.__)("Section locked while editing","google-site-kit")})]})})}SettingsOverlay.propTypes={compress:T().bool},SettingsOverlay.defaultProps={compress:!1};const Oe=SettingsOverlay;function SettingsRenderer({slug:e}){const{action:t,moduleSlug:i}=(0,a.g)(),s="edit"===t,n=i===e,[o,r]=(0,l.useState)(),c=(0,m.useSelect)(t=>t(h.i).isDoingSubmitChanges(e)),{SettingsEditComponent:g,SettingsViewComponent:d,SettingsSetupIncompleteComponent:u,moduleLoaded:p,connected:_}=(0,m.useSelect)(t=>{const i=t(h.i).getModule(e);return{...i,moduleLoaded:!!i}});(0,l.useEffect)(()=>{p&&void 0===o&&r(_)},[p,o,_]);const{rollbackChanges:f}=(0,m.useDispatch)(h.i);return(0,l.useEffect)(()=>{c||s||f(e)},[e,f,c,s]),n&&p?n&&!1===o?(0,P.jsx)(u,{slug:e}):s&&g?(0,P.jsx)(g,{}):d?(0,P.jsx)(d,{}):null:null}var Pe=i(19266),Be=i(1405);const Ue=[],Ge=[Be.a],We=[];var Ve=i(12896),Fe=i(2671),He=i(60515),Ye=i(2478),Ze=i(50304);function Header_Header({slug:e}){const t=(0,O.A)(),i=(0,a.W6)(),s=(0,l.useRef)(),{moduleSlug:n}=(0,a.g)(),o=n===e,r=(0,m.useSelect)(t=>t(h.i).getModule(e)),g=(0,l.useCallback)(()=>{o||(i.push(`/connected-services/${e}`),(0,R.sx)(`${t}_module-list`,"view_module_settings",e))},[i,e,t,o]),d=(0,l.useCallback)(()=>{o&&(i.push("/connected-services"),(0,R.sx)(`${t}_module-list`,"close_module_settings",e))},[i,e,t,o]);(0,Ve.l)([Pe.Fm],s,o?d:g),(0,Ve.l)([Pe._f],s,d);const{name:u,SettingsStatusComponent:p}=r;return r?(0,P.jsxs)("div",{className:I()("googlesitekit-settings-module__header",{"googlesitekit-settings-module__header--open":o}),id:`googlesitekit-settings-module__header--${e}`,type:"button",role:"tab","aria-selected":o,"aria-expanded":o,"aria-controls":`googlesitekit-settings-module__content--${e}`,to:"/connected-services"+(o?"":`/${e}`),onClick:o?d:g,ref:s,tabIndex:"0",children:[(0,P.jsx)(v.xA,{children:(0,P.jsxs)(v.fI,{children:[(0,P.jsxs)(v.fh,{lgSize:6,mdSize:4,smSize:4,className:"googlesitekit-settings-module__heading",children:[(0,P.jsx)(Fe.A,{slug:e,size:40,className:"googlesitekit-settings-module__heading-icon"}),(0,P.jsx)(V.A,{as:"h3",type:"title",size:"large",className:"googlesitekit-settings-module__title",children:u}),(0,P.jsxs)("div",{className:"googlesitekit-settings-module__heading-badges",children:[We.includes(e)&&(0,P.jsx)(S.A,{label:(0,c.__)("Experimental","google-site-kit"),hasLeftSpacing:!0}),Ge.includes(e)&&(0,P.jsx)(S.A,{className:"googlesitekit-badge--beta",label:(0,c.__)("Beta","google-site-kit"),hasLeftSpacing:!0}),Ue.includes(e)&&(0,P.jsx)(He.A,{hasLeftSpacing:!0})]})]}),(0,P.jsx)(v.fh,{lgSize:6,mdSize:4,smSize:4,alignMiddle:!0,mdAlignRight:!0,children:(0,P.jsx)(p,{slug:e})})]})}),(0,P.jsx)(Ze.A,{children:(0,P.jsx)(Ye.A,{width:12,height:8,className:"icon-chevron-down"})})]}):null}Header_Header.propTypes={slug:T().string.isRequired};var Qe,qe=i(49993);function Ke(){return Ke=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},Ke.apply(null,arguments)}const $e=e=>l.createElement("svg",Ke({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 10"},e),Qe||(Qe=l.createElement("path",{fill:"currentColor",d:"M0 7.917V10h2.083l6.144-6.144-2.083-2.083zm9.838-5.671a.553.553 0 0 0 0-.784l-1.3-1.3a.553.553 0 0 0-.784 0L6.738 1.18 8.82 3.262z"})));function FooterPrimaryAction({slug:e,isEditing:t,isSaving:i,handleConfirm:s,handleClose:n,handleEdit:o}){const r=(0,m.useSelect)(t=>t(h.i).getModule(e)),a=(0,m.useSelect)(t=>t(h.i).isModuleConnected(e)),d=(0,m.useSelect)(t=>t(h.i).areSettingsEditDependenciesLoaded(e)),u=(0,m.useSelect)(t=>t(h.i).canSubmitChanges(e)),p=(0,m.useSelect)(t=>t(h.i).haveSettingsChanged(e)),_=!!r?.SettingsEditComponent;return t||i?(0,P.jsxs)(l.Fragment,{children:[_&&a?(0,P.jsx)(g.SpinnerButton,{disabled:i||!d||!u&&p,onClick:s,isSaving:i,children:p||i?(0,c.__)("Confirm changes","google-site-kit"):(0,c.__)("Save","google-site-kit")}):(0,P.jsx)(g.Button,{onClick:n,children:(0,c.__)("Close","google-site-kit")}),_&&(0,P.jsx)(g.Button,{className:"googlesitekit-settings-module__footer-cancel",onClick:n,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")})]}):_||!r?.forceActive?(0,P.jsx)(E.A,{className:"googlesitekit-settings-module__edit-button",to:`/connected-services/${e}/edit`,onClick:o,"aria-label":(0,c.sprintf)(/* translators: %s is replaced with the module name */ /* translators: %s is replaced with the module name */ (0,c.__)("Edit %s settings","google-site-kit"),r?.name),trailingIcon:(0,P.jsx)($e,{className:"googlesitekit-settings-module__edit-button-icon",width:10,height:10}),children:(0,c.__)("Edit","google-site-kit")}):null}var Xe;function Je(){return Je=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},Je.apply(null,arguments)}const et=e=>l.createElement("svg",Je({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 13"},e),Xe||(Xe=l.createElement("path",{fill:"currentColor",d:"M.722 11.556c0 .794.65 1.444 1.445 1.444h5.777c.795 0 1.445-.65 1.445-1.444V2.889H.722zM10.112.722H7.582L6.861 0H3.25l-.722.722H0v1.445h10.111z"})));function FooterSecondaryAction({slug:e,isEditing:t,handleDialog:i}){const s=(0,m.useSelect)(t=>t(h.i).getModule(e)),n=(0,m.useSelect)(t=>t(h.i).getDetailsLinkURL(e));return t&&!s?.forceActive?(0,P.jsx)(E.A,{className:"googlesitekit-settings-module__remove-button",onClick:i,trailingIcon:(0,P.jsx)(et,{className:"googlesitekit-settings-module__remove-button-icon",width:13,height:13}),danger:!0,children:(0,c.sprintf)(/* translators: %s is replaced with the module name */ /* translators: %s is replaced with the module name */ (0,c.__)("Disconnect %s from Site Kit","google-site-kit"),s?.name)}):!t&&s?.connected&&n?(0,P.jsx)(E.A,{href:n,className:"googlesitekit-settings-module__cta-button",external:!0,children:(0,c.sprintf)(/* translators: %s is replaced with the module name */ /* translators: %s is replaced with the module name */ (0,c.__)("See full details in %s","google-site-kit"),s?.name)}):null}function Footer({slug:e}){const t=(0,O.A)(),i=(0,a.W6)(),{action:s,moduleSlug:n}=(0,a.g)(),o="edit"===s&&n===e,r=`module-${e}-error`,c=`module-${e}-dialogActive`,g=`module-${e}-isSaving`,d=(0,m.useSelect)(e=>e(q.n).getValue(c)),u=(0,m.useSelect)(e=>e(q.n).getValue(g)),p=(0,m.useSelect)(t=>t(h.i).getModule(e)),{submitChanges:_}=(0,m.useDispatch)(h.i),{clearErrors:f}=(0,m.useDispatch)(p?.storeName)||{},{setValue:y}=(0,m.useDispatch)(q.n),k=(0,l.useCallback)(async()=>{await(0,R.sx)(`${t}_module-list`,"cancel_module_settings",e),await(f?.()),i.push(`/connected-services/${e}`)},[f,i,t,e]),x=(0,l.useCallback)(async s=>{s.preventDefault(),y(g,!0);const{error:n}=await _(e);y(g,!1),n?y(r,n):(await(0,R.sx)(`${t}_module-list`,"update_module_settings",e),y(r,void 0),await(f?.()),i.push(`/connected-services/${e}`),await(0,qe.IL)())},[y,g,_,e,r,f,i,t]),A=(0,l.useCallback)(()=>{y(c,!d)},[d,c,y]),j=(0,l.useCallback)(()=>{(0,R.sx)(`${t}_module-list`,"edit_module_settings",e)},[e,t]);return p?(0,P.jsx)("footer",{className:"googlesitekit-settings-module__footer",children:(0,P.jsx)(v.xA,{children:(0,P.jsxs)(v.fI,{children:[(0,P.jsx)(v.fh,{lgSize:6,mdSize:8,smSize:4,children:(0,P.jsx)(FooterPrimaryAction,{slug:e,isEditing:o,isSaving:u,handleConfirm:x,handleClose:k,handleEdit:j})}),(0,P.jsx)(v.fh,{lgSize:6,mdSize:8,smSize:4,alignMiddle:!0,lgAlignRight:!0,children:(0,P.jsx)(FooterSecondaryAction,{slug:e,isEditing:o,handleDialog:A})})]})})}):null}Footer.propTypes={slug:T().string.isRequired};var tt=i(31589);function ConfirmDisconnect({slug:e}){const t=(0,O.A)(),[i,s]=(0,l.useState)(!1),{setValue:n}=(0,m.useDispatch)(q.n),o=`module-${e}-dialogActive`,r=(0,m.useSelect)(t=>t(h.i).getModuleDependantNames(e)),a=(0,m.useSelect)(t=>t(h.i).getModuleFeatures(e)),g=(0,m.useSelect)(t=>t(h.i).getModule(e)),d=(0,m.useSelect)(e=>e(M.O4).getAdminURL("googlesitekit-settings")),u=(0,m.useSelect)(e=>e(q.n).getValue(o)),p=(0,l.useCallback)(()=>{n(o,!1)},[o,n]),_=(0,l.useCallback)(e=>{Pe._f===e.keyCode&&u&&p()},[u,p]);(0,tt.A)("keydown",_);const{deactivateModule:f}=(0,m.useDispatch)(h.i),{navigateTo:y}=(0,m.useDispatch)(Q.M),k=(0,l.useCallback)(async()=>{if(g.forceActive)return;s(!0);const{error:i}=await f(e);i?s(!1):(await(0,qe.IL)(),await(0,R.sx)(`${t}_module-list`,"deactivate_module",e),y(d))},[e,g?.forceActive,d,f,y,t]);if(!g||!u)return null;const{name:v}=g,x=(0,c.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,c.__)("Disconnect %s from Site Kit?","google-site-kit"),v),A=[];return r.length>0&&A.push((0,c.sprintf)(/* translators: 1: module name, 2: list of dependent modules */ /* translators: 1: module name, 2: list of dependent modules */ (0,c.__)("these active modules depend on %1$s and will also be disconnected: %2$s","google-site-kit"),v,(0,R.K5)(r))),"function"==typeof g?.SettingsDisconnectNoteComponent&&A.push(g.SettingsDisconnectNoteComponent),(0,P.jsx)(L.A,{className:"googlesitekit-settings-module__confirm-disconnect-modal",handleCancel:p,onClose:p,title:x,provides:a,handleConfirm:k,notes:A,inProgress:i,dialogActive:!0,danger:!0})}function SettingsActiveModule(e){const{slug:t}=e,{action:i,moduleSlug:s}=(0,a.g)(),n="edit"===i,o=s===t,r=s!==t&&n,l=`module-${t}-error`,c=(0,m.useSelect)(e=>e(h.i).getErrorForAction("deactivateModule",[t])),g=(0,m.useSelect)(e=>e(q.n).getValue(l));return(0,P.jsxs)("div",{className:I()("googlesitekit-settings-module","googlesitekit-settings-module--active",`googlesitekit-settings-module--${t}`,{"googlesitekit-settings-module--error":(g||c)&&n}),children:[r&&(0,P.jsx)(Oe,{compress:!o}),(0,P.jsx)(Header_Header,{slug:t}),o&&(0,P.jsxs)("div",{id:`googlesitekit-settings-module__content--${t}`,className:"googlesitekit-settings-module__content googlesitekit-settings-module__content--open",role:"tabpanel","aria-labelledby":`googlesitekit-settings-module__header--${t}`,children:[(0,P.jsx)(v.xA,{children:(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(SettingsRenderer,{slug:t})})})}),(0,P.jsx)(Footer,{slug:t})]}),(0,P.jsx)(ConfirmDisconnect,{slug:t})]})}function SettingsActiveModules(){const e=(0,m.useSelect)(e=>e(h.i).getModules());if(!e)return null;const t=Object.keys(e).map(t=>e[t]).filter(({internal:e,active:t})=>!e&&t).sort((e,t)=>e.order-t.order);return(0,P.jsx)(p.A,{rounded:!0,children:t.map(({slug:e})=>(0,P.jsx)(SettingsActiveModule,{slug:e},e))})}ConfirmDisconnect.propTypes={slug:T().string.isRequired},SettingsActiveModule.propTypes={slug:T().string.isRequired};var it=i(62457),st=i(42340);function SetupModule({slug:e,name:t,description:i}){const s=(0,O.A)(),[n,o]=(0,l.useState)(!1),{activateModule:r}=(0,m.useDispatch)(h.i),{navigateTo:a}=(0,m.useDispatch)(Q.M),{setInternalServerError:g}=(0,m.useDispatch)(M.O4),d=(0,l.useCallback)(async()=>{o(!0);const{error:t,response:i}=await r(e);t?(g({id:"activate-module-error",description:t.message}),o(!1)):(await(0,R.sx)(`${s}_module-list`,"activate_module",e),await(0,qe.SO)("module_setup",e,{ttl:300}),a(i.moduleReauthURL))},[r,a,g,e,s]),u=(0,m.useSelect)(t=>t(h.i).canActivateModule(e));return(0,P.jsxs)("div",{className:I()("googlesitekit-settings-connect-module",`googlesitekit-settings-connect-module--${e}`),children:[(0,P.jsx)("div",{className:"googlesitekit-settings-connect-module__switch",children:(0,P.jsx)(it.A,{isSaving:n})}),(0,P.jsx)("div",{className:"googlesitekit-settings-connect-module__logo",children:(0,P.jsx)(Fe.A,{slug:e})}),(0,P.jsxs)("div",{className:"googlesitekit-settings-connect-module__heading",children:[(0,P.jsx)(V.A,{as:"h3",type:"title",size:"small",className:" googlesitekit-subheading-1 googlesitekit-settings-connect-module__title ",children:t}),(0,P.jsxs)("div",{className:"googlesitekit-settings-connect-module__badges",children:[We.includes(e)&&(0,P.jsx)(S.A,{label:(0,c.__)("Experimental","google-site-kit")}),Ge.includes(e)&&(0,P.jsx)(S.A,{className:"googlesitekit-badge--beta",label:(0,c.__)("Beta","google-site-kit")}),Ue.includes(e)&&(0,P.jsx)(He.A,{hasNoSpacing:!0})]})]}),(0,P.jsx)("p",{className:"googlesitekit-settings-connect-module__text",children:i}),(0,P.jsx)("p",{className:"googlesitekit-settings-connect-module__cta",children:(0,P.jsx)(E.A,{onClick:d,href:"",disabled:!u||n,arrow:!0,children:(0,c.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,c.__)("Set up %s","google-site-kit"),t)})}),(0,P.jsx)(st.A,{slug:e})]},e)}function SettingsInactiveModules(){const e=(0,m.useSelect)(e=>e(h.i).getModules());if(!e)return null;const t=Object.keys(e).map(t=>e[t]).filter(({internal:e,active:t})=>!e&&!t).sort((e,t)=>e.order-t.order);return 0===t.length?(0,P.jsx)(H.A,{id:"no-more-modules",title:(0,c.__)("Congrats, you’ve connected all services!","google-site-kit"),description:(0,c.__)("We’re working on adding new services to Site Kit by Google all the time, so please check back in the future","google-site-kit"),type:me.Q.SUCCESS}):(0,P.jsx)(p.A,{title:(0,c.__)("Connect More Services to Gain More Insights","google-site-kit"),header:!0,rounded:!0,relative:!0,children:(0,P.jsx)(v.xA,{children:(0,P.jsx)(v.fI,{children:t.map(({slug:e,name:t,description:i})=>(0,P.jsx)(v.fh,{size:4,children:(0,P.jsx)(SetupModule,{slug:e,name:t,description:i})},e))})})})}SetupModule.propTypes={slug:T().string.isRequired,name:T().string.isRequired,description:T().string.isRequired};const nt=function SettingsModules(){const e=(0,m.useSelect)(e=>e(h.i).getModules());return void 0!==e&&Object.values(e).length?(0,P.jsxs)(a.dO,{children:[(0,P.jsx)(a.qh,{path:"/connected-services/:moduleSlug/:action",children:(0,P.jsx)(SettingsActiveModules,{})}),(0,P.jsx)(a.qh,{path:"/connected-services/:moduleSlug",children:(0,P.jsx)(SettingsActiveModules,{})}),(0,P.jsx)(a.qh,{path:"/connected-services",children:(0,P.jsx)(SettingsActiveModules,{})}),(0,P.jsx)(a.qh,{path:"/connect-more-services",children:(0,P.jsx)(SettingsInactiveModules,{})}),(0,P.jsx)(a.qh,{path:"/admin-settings",children:(0,P.jsx)(SettingsAdmin,{})}),(0,P.jsx)(a.rd,{from:"/settings/:moduleSlug/edit",to:"/connected-services/:moduleSlug/edit"}),(0,P.jsx)(a.rd,{from:"/settings/:moduleSlug",to:"/connected-services/:moduleSlug"}),(0,P.jsx)(a.rd,{from:"/settings",to:"/connected-services"}),(0,P.jsx)(a.rd,{from:"/connect",to:"/connect-more-services"}),(0,P.jsx)(a.rd,{from:"/admin",to:"/admin-settings"}),(0,P.jsx)(a.rd,{to:"/connected-services"})]}):null};var ot=i(78307),rt=i(65054),at=i(338),lt=i(5924);function SettingsApp(){(0,lt.A)();const e=(0,a.zy)();const[,t]=e.pathname.split("/"),i=SettingsApp.basePathToTabIndex[t],n=(0,O.A)(),o=(0,Re.i)("proactiveUserEngagement"),r=(0,l.useCallback)(()=>{(0,rt.sx)(n,"tab_select",t)},[t,n]);return(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)(d.A,{children:(0,P.jsx)(ot.A,{})}),(0,P.jsx)("div",{className:"googlesitekit-module-page",children:(0,P.jsx)(v.xA,{children:(0,P.jsxs)(v.fI,{children:[(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(u.A,{title:(0,c.__)("Settings","google-site-kit")})}),(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(p.A,{transparent:!0,rounded:!0,children:(0,P.jsxs)(g.TabBar,{activeIndex:i,className:"googlesitekit-tab-bar__settings",handleActiveIndexUpdate:r,children:[(0,P.jsx)(g.Tab,{tag:s.N_,to:"/connected-services",replace:!1,children:(0,P.jsx)("span",{className:"mdc-tab__text-label",children:(0,c.__)("Connected Services","google-site-kit")})}),(0,P.jsx)(g.Tab,{tag:s.N_,to:"/connect-more-services",replace:!1,children:(0,P.jsx)("span",{className:"mdc-tab__text-label",children:(0,c.__)("Connect More Services","google-site-kit")})}),(0,P.jsx)(g.Tab,{tag:s.N_,to:"/admin-settings",replace:!1,children:(0,P.jsx)("span",{className:"mdc-tab__text-label",children:(0,c.__)("Admin Settings","google-site-kit")})})]})})}),(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(nt,{})})]})})}),o&&(0,P.jsx)(at.A,{})]})}SettingsApp.propTypes={},SettingsApp.basePathToTabIndex={"connected-services":0,"connect-more-services":1,"admin-settings":2};const ct=(0,a.y)(SettingsApp);var gt=i(20697);(0,n.A)(()=>{const e=document.getElementById("js-googlesitekit-settings");e&&(0,o.render)((0,P.jsx)(r.A,{viewContext:gt.KK,children:(0,P.jsx)(s.I9,{children:(0,P.jsx)(ct,{})})}),e)})},9246:(e,t,i)=>{i.d(t,{A:()=>UserInputSelectOptions});var s=i(62688),n=i.n(s),o=i(63696),r=i(19266),a=i(82871),l=i(50539),c=i(49383),g=i(97345),d=i(11999),u=i(70301),p=i(10740),m=i(65573),h=i(13047),_=i(62659),f=i(62540);function UserInputSelectOptions({slug:e,descriptions:t,options:i,max:s,next:n,showInstructions:y,alignLeftOptions:k,gaTrackingEventArgs:v}){const x=(0,_.A)(),A=(0,l.useSelect)(t=>t(g.oR).getUserInputSetting(e)||[]),j=(0,l.useSelect)(e=>e(g.oR).isSavingUserInputSettings(A)),I=(0,l.useSelect)(e=>e(u.M).isNavigating()),{setUserInputSetting:b}=(0,l.useDispatch)(g.oR),M=(0,o.useRef)();(0,o.useEffect)(()=>{if(!M?.current)return;function e(e){e&&setTimeout(()=>{e.focus()},50)}const t=1===s?"radio":"checkbox",i=M.current.querySelector(`input[type="${t}"]:checked`);if(i)e(i);else{e(M.current.querySelector(`input[type="${t}"]`))}},[s]);const{setValues:S}=(0,l.useDispatch)(d.s),N=(0,o.useCallback)(t=>{const{target:i}=t,{value:n,checked:o}=i,r=new Set([n,...A]);o||r.delete(n);const a=Array.from(r).slice(0,s);if(v)(0,h.sx)(v.category,v.action,a.join());else{const t=e===m.aq?"content_frequency_question_answer":`site_${e}_question_answer`;(0,h.sx)(`${x}_kmw`,t,a.join())}e===m.a3&&S(m.we,{[e]:A}),b(e,a)},[A,s,v,e,b,x,S]),E=(0,o.useCallback)(e=>{e.keyCode===r.Fm&&A.length>0&&A.length<=s&&!A.includes("")&&n&&"function"==typeof n&&n()},[A,n,s]),w={[s>1?"onChange":"onClick"]:N},C=1===s?c.Radio:c.Checkbox,T=Object.keys(i).map(n=>{if("sell_products_or_service"===n)return!1;const o={id:`${e}-${n}`,value:n,description:t?.[n],checked:A.includes(n),onKeyDown:E,alignLeft:k,...w};return s>1?(o.disabled=A.length>=s&&!A.includes(n),o.name=`${e}-${n}`):o.name=e,(j||I)&&(o.disabled=!0),(0,f.jsx)("div",{className:"googlesitekit-user-input__select-option",children:(0,f.jsx)(C,{...o,children:i[n]})},n)});return(0,f.jsxs)(p.fh,{className:"googlesitekit-user-input__select-options-wrapper",lgStart:6,lgSize:6,mdSize:8,smSize:4,children:[y&&(0,f.jsx)("p",{className:"googlesitekit-user-input__select-instruction",children:(0,f.jsx)("span",{children:(0,a.sprintf)(/* translators: %s: number of answers allowed. */ /* translators: %s: number of answers allowed. */ (0,a._n)("Select only %d answer","Select up to %d answers",s,"google-site-kit"),s)})}),(0,f.jsx)("div",{className:"googlesitekit-user-input__select-options",ref:M,children:T})]})}UserInputSelectOptions.propTypes={slug:n().string.isRequired,descriptions:n().shape({}),options:n().shape({}).isRequired,max:n().number,next:n().func,showInstructions:n().bool,alignLeftOptions:n().bool,gaTrackingEventArgs:n().object},UserInputSelectOptions.defaultProps={max:1,showInstructions:!1,alignLeftOptions:!1}},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:()=>g.fI,fh:()=>g.fh,lG:()=>c.a,xA:()=>g.xA});var s=i(91046),n=i(3412),o=i(30454),r=i(26569),a=i(56655),l=i(12786),c=i.n(l),g=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)}}},11514:(e,t,i)=>{i.d(t,{X:()=>s});const s="consent-mode-setup-cta-widget"},11763:(e,t,i)=>{i.d(t,{A:()=>SpinnerButton,k:()=>d});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(17243),l=i(85135),c=i(99578),g=i(62540);const d={BEFORE:"before",AFTER:"after"};function SpinnerButton(e){const{className:t,onClick:i=()=>{},isSaving:s=!1,spinnerPosition:n=d.AFTER,...o}=e,u=(0,a.pickBy)(o,e=>void 0!==e);return(0,g.jsx)(l.A,{className:r()(t,"googlesitekit-button-icon--spinner",{"googlesitekit-button-icon--spinner__running":s,"googlesitekit-button-icon--spinner__before":n===d.BEFORE,"googlesitekit-button-icon--spinner__after":n===d.AFTER}),icon:s&&n===d.BEFORE?(0,g.jsx)(c.A,{size:14}):void 0,trailingIcon:s&&n===d.AFTER?(0,g.jsx)(c.A,{size:14}):void 0,onClick:i,...u})}SpinnerButton.propTypes={className:n().string,onClick:n().func,isSaving:n().bool,spinnerPosition:n().oneOf(Object.values(d))}},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),g=i(50539),d=i(97345),u=i(65054),p=i(38432),m=i(62659),h=i(7076),_=i(49383),f=i(62540);function LayoutDefault({checkboxProps:e,label:t}){return(0,f.jsx)(_.Checkbox,{...e,children:t})}function LayoutStacked({checkboxProps:e,title:t,description:i}){return(0,f.jsxs)(a.Fragment,{children:[(0,f.jsx)(_.Checkbox,{...e,children:t}),(0,f.jsx)("div",{className:"googlesitekit-opt-in__description",children:i})]})}LayoutDefault.propTypes={checkboxProps:n().object.isRequired,label:n().node.isRequired},LayoutStacked.propTypes={checkboxProps:n().object.isRequired,title:n().node.isRequired,description:n().node.isRequired};const y="default",k="stacked";function OptIn({id:e="googlesitekit-opt-in",name:t="optIn",className:i,layout:s=y,title:n=null,description:o=null,trackEventCategory:_,trackEventAction:v="tracking_optin"}){const[x,A]=(0,a.useState)(),j=(0,g.useSelect)(e=>e(d.oR).isTrackingEnabled()),I=(0,g.useSelect)(e=>e(d.oR).getErrorForAction("setTrackingEnabled",[!j])),{setTrackingEnabled:b}=(0,g.useDispatch)(d.oR),M=(0,m.A)(),S=(0,a.useCallback)(async e=>{const{response:t,error:i}=await b(e);i?A(j):((0,u.M9)(t.enabled),t.enabled&&(0,u.sx)(_||M,v))},[j,b,_,v,M]);(0,a.useEffect)(()=>{void 0!==j&&void 0===x&&A(j)},[j,x]);const N=(0,h.d)(S,300),E=(0,a.useCallback)(e=>{const t=e.target.checked;A(t),N(t)},[N]),w=null!=n?n:(0,f.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,f.jsx)(p.A,{href:"https://policies.google.com/privacy",external:!0},"link"),span:(0,f.jsx)("span",{})}),T={id:e,name:t,value:"1",checked:x,onChange:E,loading:void 0===j};return(0,f.jsxs)("div",{className:r()("googlesitekit-opt-in",i,s===k&&"googlesitekit-opt-in--layout-stacked"),children:[s===k?(0,f.jsx)(LayoutStacked,{checkboxProps:T,title:w,description:C}):(0,f.jsx)(LayoutDefault,{checkboxProps:T,label:(0,f.jsxs)(a.Fragment,{children:[w," ",C]})}),I?.message&&(0,f.jsx)("div",{className:"googlesitekit-error-text",children:I?.message})]})}OptIn.propTypes={id:n().string,name:n().string,className:n().string,title:n().node,description:n().node,layout:n().oneOf([y,k]),trackEventCategory:n().string}},11999:(e,t,i)=>{i.d(t,{s:()=>s});const s="core/forms"},12317:(e,t,i)=>{i.d(t,{A:()=>d});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(49383),l=i(38432),c=i(33052),g=i(62540);function CTA({title:e,headerText:t,headerContent:i,description:s,ctaLink:n,ctaLabel:o,ctaLinkExternal:d,ctaType:u,error:p,onClick:m,"aria-label":h,children:_}){return(0,g.jsxs)("div",{className:r()("googlesitekit-cta",{"googlesitekit-cta--error":p}),children:[(t||i)&&(0,g.jsxs)("div",{className:"googlesitekit-cta__header",children:[t&&(0,g.jsx)(c.A,{as:"h2",size:"small",type:"label",className:"googlesitekit-cta__header_text",children:t}),i]}),(0,g.jsxs)("div",{className:"googlesitekit-cta__body",children:[e&&(0,g.jsx)(c.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-cta__title",children:e}),s&&"string"==typeof s&&(0,g.jsx)("p",{className:"googlesitekit-cta__description",children:s}),s&&"string"!=typeof s&&(0,g.jsx)("div",{className:"googlesitekit-cta__description",children:s}),o&&"button"===u&&(0,g.jsx)(a.Button,{"aria-label":h,href:n,onClick:m,children:o}),o&&"link"===u&&(0,g.jsx)(l.A,{href:n,onClick:m,"aria-label":h,external:d,hideExternalIndicator:d,arrow:!0,children:o}),_]})]})}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 d=CTA},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:()=>f.tt,Jg:()=>f.Jg,Gp:()=>f.Gp,GH:()=>f.GH,r0:()=>f.r0,Du:()=>f.Du,Zf:()=>N,Cn:()=>A,G7:()=>_,vH:()=>h,N_:()=>f.N_,zh:()=>w,mK:()=>g.mK,Ql:()=>f.Ql,vY:()=>x,sq:()=>f.sq,VZ:()=>j.VZ,JK:()=>g.JK,IS:()=>f.IS,pH:()=>j.pH,kf:()=>b,O5:()=>f.O5,Qr:()=>f.Qr,x6:()=>I,K5:()=>g.K5,S_:()=>m,dc:()=>j.dc,Eo:()=>g.Eo,jq:()=>g.jq,DK:()=>S.D,N9:()=>M,p9:()=>o.p,XH:()=>f.XH,Zm:()=>l,sx:()=>n.sx,BI:()=>n.BI,CZ:()=>o.C,BG:()=>E});var s=i(17243),n=i(65054),o=i(50477),r=i(10523),a=i.n(r);function l(e){return a()(JSON.stringify(c(e)))}function c(e){const t={};return Object.keys(e).sort().forEach(i=>{let s=e[i];s&&"object"==typeof s&&!Array.isArray(s)&&(s=c(s)),t[i]=s}),t}var g=i(49746);function d(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function u(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=[d,u,p];let i=e;for(const e of t)i=e(i);return i}function h(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]}function _(e){const t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}var f=i(51193),y=i(78159),k=i(38017),v=i(62540);function x(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:i=!1}=t;return(0,y.Ay)((0,v.jsx)(k.A,{direction:e>0?"up":"down",invertColor:i}))}function A(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var j=i(48276);function I(e){const t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function b(e){if("number"==typeof e)return!0;const t=(e||"").toString();return!!t&&!isNaN(t)}function M(e){return Array.isArray(e)?[...e].sort():e}var S=i(11193);function N(e,t){function i(e){return"0"===e||0===e}if(i(e)&&i(t))return 0;if(i(e)||Number.isNaN(e))return null;const s=(t-e)/e;return Number.isNaN(s)||!Number.isFinite(s)?null:s}function E(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function w(e){if(!e)return"";const t=e.replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(t)).replace(/(\\)/g,"");return(0,s.unescape)(t)}},13137:(e,t,i)=>{i.d(t,{G:()=>c,HY:()=>d,SG:()=>g,db:()=>n,e4:()=>p,vl:()=>u});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 g(e){return[o,r].includes(e?.data?.reason)}function d(e){return!!e?.data?.reconnectURL}function u(e,t){return!(!t?.storeName||g(e)||c(e)||d(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),g=i(52696),d=i(25797),u=i(76984),p=i(68761),m=i(30289),h=i(62540);const _="email_reports_permissions_error_notice",f=(0,m.A)(d.A);function PermissionsErrorNotice({moduleSlug:e}){const t=(0,g.WM)(t=>t(c.i).getModule(e)),i=(0,g.WM)(t=>t(c.i).getModuleStoreName(e)),s=(0,g.WM)(e=>e(i)?.getServiceEntityAccessURL?.()),n=(0,g.WM)(t=>t(r.O4).getErrorTroubleshootingLinkURL({code:`${e}_insufficient_permissions`})),o=(0,p.A)(_);return(0,h.jsx)(f,{className:"googlesitekit-email-reporting__admin-settings-notice",type:u.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",k=(0,m.A)(d.A);function ReportErrorNotice({moduleSlug:e,onGoToSettings:t}){const i=(0,g.WM)(t=>t(c.i).getModule(e)),s=(0,p.A)(y),n=(0,g.WM)(t=>t(r.O4).getModuleSettingsURL(e)),o=(0,g.WM)(e=>e(r.O4).getDocumentationLinkURL("email-reporting-module-issues"));return(0,h.jsx)(k,{className:"googlesitekit-email-reporting__admin-settings-notice",type:u.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 v="email_reports_sending_error_notice",x=(0,m.A)(d.A);function SendingErrorNotice(){const e=(0,p.A)(v),t=(0,g.WM)(e=>e(r.O4).getDocumentationLinkURL("email-reporting-deliverability-issues"));return(0,h.jsx)(x,{className:"googlesitekit-email-reporting__admin-settings-notice",type:u.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",j=(0,m.A)(d.A);function CronSchedulerErrorNotice(){const e=(0,p.A)(A),t=(0,g.WM)(e=>e(r.O4).getDocumentationLinkURL("email-reporting-scheduler-issues"));return(0,h.jsx)(j,{className:"googlesitekit-email-reporting__admin-settings-notice",type:u.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",b=(0,m.A)(d.A);function ServerErrorNotice(){const e=(0,p.A)(I),t=(0,g.WM)(e=>e(r.O4).getDocumentationLinkURL("email-reporting-server-issues"));return(0,h.jsx)(b,{className:"googlesitekit-email-reporting__admin-settings-notice",type:u.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:()=>S});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(4544),l=i.n(a),c=i(21795),g=i(78174),d=i(63696),u=i(19266),p=i(94656),m=i(62540);function SideSheet({className:e,children:t,isOpen:s,isLoading:o,onOpen:r=()=>{},closeSheet:a=()=>{},focusTrapOptions:h={}}){const _=(0,d.useRef)(),[f,y]=(0,d.useState)(0);return(0,d.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)(_,function(e){e.target.closest?.(".googlesitekit-tooltip-popper")||a()}),(0,g.A)(e=>s&&u._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:_,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":`${f}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),_=i(72545),f=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)(f.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)(_.A,{width:"15",height:"15"})})]}),e]})}SelectionPanelHeader.propTypes={children:r().node,title:r().string,onCloseClick:r().func};var y=i(82871),k=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)(k.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 v=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:g,isNewlyDetected:d}){return(0,m.jsxs)("div",{className:"googlesitekit-selection-panel-item",children:[(0,m.jsxs)(SelectionBox,{badge:g,checked:o,disabled:r,id:t,onChange:a,title:s,value:i,children:[l&&(0,m.jsx)("span",{className:"googlesitekit-selection-panel-item__subtitle",children:l}),n,e]}),d&&(0,m.jsx)(v.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)(d.Fragment,{children:[(0,m.jsx)("p",{className:"googlesitekit-selection-panel-items__subheading",children:e}),(0,m.jsx)("div",{className:"googlesitekit-selection-panel-items__subsection",children:a(s)}),l>0&&(0,m.jsx)("p",{className:"googlesitekit-selection-panel-items__subheading",children:t})]}),l>0&&(0,m.jsx)("div",{className:"googlesitekit-selection-panel-items__subsection",children:a(n)}),r]})}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),j=i(50539),I=i(13047),b=i(80),M=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[g,u]=(0,d.useState)(null),[p,h]=(0,d.useState)(!1),_=(0,j.useSelect)(e=>e(b.K9).isFetchingSyncAvailableAudiences()),f=(0,d.useMemo)(()=>!(0,x.isEqual)((0,I.N9)(t),(0,I.N9)(e)),[e,t]),v=e?.length>0&&f?(0,y.__)("Apply changes","google-site-kit"):(0,y.__)("Save selection","google-site-kit"),S=(0,d.useCallback)(async()=>{const{error:e}=await i(t);e||(r(),c(),u(v),h(!0))},[i,t,r,c,v]),N=(0,d.useCallback)(()=>{c(),a()},[c,a]),[E,w]=(0,d.useState)(null);(0,d.useEffect)(()=>{null!==E&&E!==l&&l&&(u(null),h(!1)),w(l)},[l,E]);const C=t?.length||0,T=_?(0,m.jsx)(M.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)(k.Button,{onClick:N,disabled:o,tertiary:!0,children:(0,y.__)("Cancel","google-site-kit")}),(0,m.jsx)(k.SpinnerButton,{onClick:S,isSaving:o,disabled:C<s||C>n||o||!l&&p,children:g||v})]})]})})}function SelectionPanelContent({children:e,className:t}){return(0,m.jsx)("div",{className:n()("googlesitekit-selection-panel__content",t),children:e})}SelectionPanelFooter.propTypes={savedItemSlugs:r().array,selectedItemSlugs:r().array,saveSettings:r().func,minSelectedItemCount:r().number,maxSelectedItemCount:r().number,isBusy:r().bool,onSaveSuccess:r().func,onCancel:r().func,isOpen:r().bool,closePanel:r().func},SelectionPanelContent.propTypes={children:r().node,className:r().string};const S=SelectionPanel},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),g=i(94656),d=i(71264),u=i(97513),p=i(62540);function JoyrideTooltip(e){const{title:t,content:s,dismissLabel:o,disableOverlay:r=!0,target:m,cta:h=!1,className:_,styles:f={},slug:y="",placement:k="auto",onDismiss:v=()=>{},onView:x=()=>{},onTourStart:A=()=>{},onTourEnd:j=()=>{}}=e;function I(){return!!i.g.document.querySelector(m)}const[b,M]=(0,n.useState)(I),S=(0,u.dv)(),N=S===u.mp||S===u.Lg,[E,w]=(0,n.useState)(!0),C=(0,n.useRef)(N);if((0,l.A)(()=>{I()&&M(!0)},b?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,b]),(0,n.useEffect)(()=>{let e;return C.current!==N&&(w(!1),e=setTimeout(()=>{w(!0)},50),C.current=N),()=>{e&&clearTimeout(e)}},[N]),!b)return null;const T=[{title:t,target:m,content:s,disableBeacon:!0,isFixed:!0,placement:k,cta:h,className:_}],D={close:o,last:o};return(0,p.jsx)(g.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:j(),i.g.document.body.classList.remove("googlesitekit-showing-tooltip");break;case a.qY.STEP_AFTER:v();break;case a.qY.TOOLTIP:x()}},disableOverlay:r,spotlightPadding:0,floaterProps:d.ei,locale:D,steps:T,styles:{...d.R0,...f,options:{...d.R0.options,...f?.options},spotlight:{...d.R0.spotlight,...f?.spotlight}},tooltipComponent:c.A,run:E,disableScrolling:!0})})}JoyrideTooltip.propTypes={title:r.PropTypes.node,content:r.PropTypes.string,disableOverlay:r.PropTypes.bool,dismissLabel:r.PropTypes.string,target:r.PropTypes.string.isRequired,onDismiss:r.PropTypes.func,onShow:r.PropTypes.func,className:r.PropTypes.string,styles:r.PropTypes.object,slug:r.PropTypes.string,placement:r.PropTypes.string,onView:r.PropTypes.func};var m=i(7972),h=i(13047),_=i(62659);function AdminScreenTooltip(){const e=(0,_.A)(),{setValue:t}=(0,o.useDispatch)(m.n),i=(0,u.dv)(),{isTooltipVisible:s=!1,target:r,placement:a,className:l,tooltipSlug:c,title:g,content:d,dismissLabel:f,gaTrackingEventLabel:y}=(0,o.useSelect)(e=>e(m.n).getValue("admin-screen-tooltip")||{isTooltipVisible:!1});const k=(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 v=i===u.mp||i===u.Lg,x=null!=r?r:'#adminmenu [href*="page=googlesitekit-settings"]',A=null!=a?a:"right";return(0,p.jsx)(JoyrideTooltip,{target:v?"body":x,placement:v?"center":A,className:v?"googlesitekit-tour-tooltip__modal_step":l||(r?void 0:"googlesitekit-tour-tooltip__fixed-settings-tooltip"),disableOverlay:!v,slug:"admin-screen-tooltip",title:g,content:d,dismissLabel:f,onView:function(){(0,h.sx)(`${e}_${c}`,"tooltip_view",y)},onDismiss:k})}},18418:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;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 2 12"},e),s||(s=n.createElement("g",{fill:"currentColor",fillRule:"evenodd"},n.createElement("path",{d:"M0 0h2v7H0zM0 10h2v2H0z"}))))},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:()=>g,Ej:()=>j,Gw:()=>I,Is:()=>r,KK:()=>u,Nn:()=>M,OT:()=>x,SH:()=>v,Y$:()=>p,ZS:()=>a,bg:()=>_,en:()=>A,ep:()=>h,f7:()=>n,hi:()=>m,jU:()=>s,k$:()=>y,kz:()=>b,ly:()=>l,mo:()=>f,s3:()=>k,uR:()=>c,zx:()=>d});const s="mainDashboard",n="entityDashboard",o="mainDashboardViewOnly",r="entityDashboardViewOnly",a="userInput",l="activation",c="splash",g="adminBar",d="adminBarViewOnly",u="settings",p="adBlockingRecovery",m="wpDashboard",h="wpDashboardViewOnly",_="moduleSetup",f="metricSelection",y="wpBlockEditor",k="keyMetricsSetup",v="key-metrics",x="traffic",A="content",j="speed",I="monetization",b=[s,n,o,r,a,c,u,_,f],M=[o,r,d,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:()=>k,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),g=i(15118),d=i(62540);function WidgetReportZero({widgetSlug:e,moduleSlug:t,...i}){const s=(0,l.useMemo)(()=>({moduleSlug:t}),[t]);return(0,c.A)(e,g.A,s),(0,d.jsx)(g.A,{moduleSlug:t,...i})}WidgetReportZero.propTypes={widgetSlug:a().string.isRequired,...g.A.propTypes};var u=i(44192);function WidgetReportError({widgetSlug:e,...t}){return(0,d.jsx)(u.A,{...t})}WidgetReportError.propTypes={widgetSlug:a().string.isRequired,...u.A.propTypes};var p=i(79754),m=i(79266),h=i(17064),_=i(52684),f=i(50539),y=i(7972);function WPDashboardReportError({moduleSlug:e,error:t}){const i=(0,_.A)(WPDashboardReportError,"WPDashboardReportError"),{setValue:s}=(0,f.useDispatch)(y.n),n=t.message,o=(0,f.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,d.jsx)(u.A,{moduleSlug:e,error:t})}WPDashboardReportError.propTypes={moduleSlug:a().string.isRequired,error:a().object.isRequired};const k=n()(e=>({widgetSlug:e,Widget:v(e)(o.A),WidgetRecoverableModules:v(e)(m.A),WidgetReportZero:v(e)(WidgetReportZero),WidgetReportError:v(e)(WidgetReportError),WidgetNull:v(e)(p.A)}));function v(e){return t=>{const i=(0,l.forwardRef)((i,s)=>(0,d.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=k(e);return e=>{function DecoratedComponent(i){return(0,d.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,d.jsx)(t,{...i,WPDashboardReportError:v(e)(WPDashboardReportError)})}return DecoratedComponent.displayName="WithWPDashboardWidgetComponentProps",(t.displayName||t.name)&&(DecoratedComponent.displayName+=`(${t.displayName||t.name})`),DecoratedComponent}}},22942:(e,t,i)=>{i.d(t,{A_:()=>g,DF:()=>u,L1:()=>p,M0:()=>r,Mc:()=>a,Ok:()=>c,U9:()=>l,iW:()=>o,ue:()=>n,wq:()=>s,xR:()=>d});const s=1,n=2,o=3,r="enhanced-measurement-activation-banner-tooltip-state",a="enhanced-measurement-activation-banner-dismissed-item",l="_r.explorerCard..selmet",c="_r.explorerCard..seldim",g="_r..dataFilters",d="_r..nav",u="key-metrics-connect-ga4-cta-widget",p="analytics-4"},23403:(e,t,i)=>{i.d(t,{A:()=>p});var s=i(99408),n=i(82871),o=i(63696),r=i(51568),a=i(50539),l=i(11999),c=i(97345),g=i(13137),d=i(80),u=i(68832);function p({redirectURL:e,onSuccess:t,onError:p,onOAuthNavigation:m}={}){const h=(0,s.A)(),[_,f]=(0,o.useState)([]),[y,k]=(0,o.useState)([]),[v,x]=(0,o.useState)(!1),A=(0,a.useSelect)(e=>e(c.oR).hasScope(d.S9)),j=(0,u.A)(d.PW,"autoSubmit"),{setValues:I}=(0,a.useDispatch)(l.s),{setPermissionScopeError:b}=(0,a.useDispatch)(c.oR),{enableAudienceGroup:M,fetchSyncAvailableCustomDimensions:S,determineNeedForAnalytics4EditScope:N,syncAvailableAudiences:E}=(0,a.useDispatch)(d.K9);e||(e=(0,r.F)(i.g.location.href,{notification:"audience_segmentation"}));const w=(0,o.useCallback)(async()=>{const{error:e}=await E();if(e)return{error:e};const{error:t}=await S();if(t)return{error:t};if(!A){const{error:e,needsScope:t}=await N();if(e)return{error:e};if(t)return{needsScope:!0}}I(d.PW,{autoSubmit:!1});const{error:i,failedSiteKitAudienceSlugs:s}=await M(y)||{};return{error:i,failedSiteKitAudienceSlugs:s}},[M,y,S,A,N,I,E]),C=(0,o.useCallback)(async()=>{x(!0);const{error:s,needsScope:o,failedSiteKitAudienceSlugs:r}=await w();if(o)return I(d.PW,{autoSubmit:!0}),await(m?.()),void b({code:g.db,message:(0,n.__)("Additional permissions are required to create new audiences in Analytics.","google-site-kit"),data:{status:403,scopes:[d.S9],skipModal:!0,skipDefaultErrorNotifications:!0,redirectURL:e,errorRedirectURL:i.g.location.href}});if(s||r?p?.():t?.(),h()){function a(e){return e.length?[]:e}s?(f([s]),k(a)):Array.isArray(r)?(k(r),f(a)):(f(a),k(a)),x(!1)}},[w,h,I,m,b,e,p,t]);return(0,o.useEffect)(()=>{A&&j&&C()},[A,j,C]),{apiErrors:_,failedAudiences:y,isSaving:v,onEnableGroups:C}}},23955:(e,t,i)=>{i.d(t,{A:()=>AdBlockerWarning});var s,n=i(62688),o=i.n(n),r=i(50539),a=i(29785),l=i(88273),c=i(4452),g=i.n(c),d=i(82871),u=i(13606),p=i(38432),m=i(63696);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},h.apply(null,arguments)}const _=e=>m.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 14"},e),s||(s=m.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M4.5 1.5H3a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2V9M7 1.5h5v5M5 8.5 11.5 2"})));var f=i(25797),y=i(62540);function AdBlockerWarningMessage({className:e,getHelpLink:t="",warningMessage:i=null}){return i?(0,y.jsx)(f.A,{className:g()("googlesitekit-notice--small",e),type:f.A.TYPES.WARNING,description:(0,u.A)((0,d.sprintf)(/* translators: 1: The warning message. 2: "Get help" text. */ /* translators: 1: The warning message. 2: "Get help" text. */ (0,d.__)("%1$s. <Link><Strong>%2$s</Strong></Link>","google-site-kit"),i,(0,d.__)("Get help","google-site-kit")),{Link:(0,y.jsx)(p.A,{href:t,trailingIcon:(0,y.jsx)(_,{width:15,height:15}),external:!0,hideExternalIndicator:!0}),Strong:(0,y.jsx)("strong",{})}),hideIcon:!0}):null}function AdBlockerWarning({moduleSlug:e,className:t}){const i=(0,r.useSelect)(t=>t(l.i).getModuleStoreName(e)),s=(0,r.useSelect)(e=>e(i)?.getAdBlockerWarningMessage()),n=(0,r.useSelect)(t=>t(a.O4).getDocumentationLinkURL(`${e}-ad-blocker-detected`));return(0,y.jsx)(AdBlockerWarningMessage,{className:t,getHelpLink:n,warningMessage:s})}AdBlockerWarningMessage.propTypes={className:o().string,getHelpLink:o().string,warningMessage:o().string},AdBlockerWarning.propTypes={className:o().string,moduleSlug:o().string.isRequired}},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]}},24560:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;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"}))))},25797:(e,t,i)=>{i.d(t,{A:()=>k});var s,n=i(62688),o=i.n(n),r=i(4452),a=i.n(r),l=i(63696),c=i(19793);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 warning_notice=e=>l.createElement("svg",g({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 d=i(42343),u=i(76984),p=i(62540);const m={[u.Q.NEW]:d.A,[u.Q.SUCCESS]:c.A,[u.Q.INFO]:warning_notice,[u.Q.WARNING]:warning_notice,[u.Q.ERROR]:warning_notice};function Icon({type:e}){const t=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(u.Q))},Title.propTypes={className:o().string,children:o().node},Description.propTypes={className:o().string,children:o().node};var h=i(49383),_=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)(_.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 f=i(82871);function DismissButton({label:e=(0,f.__)("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=u.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=u.Q,y.propTypes={className:o().string,title:o().oneOfType([o().string,o().object]),description:o().node,type:o().oneOf(Object.values(u.Q)),dismissButton:o().shape(DismissButton.propTypes),ctaButton:o().shape({...CTAButton.propTypes,label:o().string}),children:o().node,hideIcon:o().bool};const k=y},26788:(e,t,i)=>{i.d(t,{A:()=>CancelUserInputButton});var s=i(62688),n=i.n(s),o=i(82871),r=i(50539),a=i(49383),l=i(29785),c=i(70301),g=i(62540);function CancelUserInputButton({disabled:e}){const t=(0,r.useSelect)(e=>e(l.O4).getAdminURL("googlesitekit-dashboard")),{navigateTo:i}=(0,r.useDispatch)(c.M);return(0,g.jsx)(a.Button,{className:"googlesitekit-user-input__buttons--cancel",onClick:()=>i(t),disabled:e,tertiary:!0,children:(0,o.__)("Cancel","google-site-kit")})}CancelUserInputButton.propTypes={disabled:n().bool}},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),g=!!o?.isIntersecting&&!!o?.intersectionRatio;return(0,r.useEffect)(()=>{o&&g&&!l&&(t(),c(!0))},[l,g,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)}},30845:(e,t,i)=>{i.d(t,{A:()=>n,j:()=>o});var s=i(82871);function n(e){return 0===e.length}function o(e,t=1){return 0===e.length?1===t?(0,s.__)("Please select an answer","google-site-kit"):(0,s.__)("Please select at least 1 answer","google-site-kit"):null}},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}`}},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),g=i(62540);function NoticeNotification({notificationID:e,children:t,dismissButton:i,ctaButton:l,gaTrackingEventArgs:c,...d}){const u=(0,n.A)(e,c?.category),{dismissNotification:p}=(0,o.useDispatch)(r.D);return(0,g.jsx)(a.xA,{children:(0,g.jsx)(a.fI,{children:(0,g.jsx)(a.fh,{size:12,alignMiddle:!0,children:(0,g.jsx)(s.A,{dismissButton:{...i,onClick:async function(t){await(i?.onClick?.(t)),u.dismiss(c?.label,c?.value),p(e,{...i?.dismissOptions||{}})}},ctaButton:{...l,onClick:async function(t){u.confirm(c?.label,c?.value),await(l?.onClick?.(t)),l?.dismissOnClick&&p(e,{...l?.dismissOptions})}},...d,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"},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),g=i.n(c),d=i(97513),u=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),_=i(49383);function DismissButton({label:e=(0,h.__)("Maybe later","google-site-kit"),onClick:t,disabled:i}){return(0,m.jsx)(_.Button,{onClick:t,disabled:i,tertiary:!0,children:e})}const f={label:n().string,onClick:n().func,disabled:n().bool};function CTAButton(e){const{label:t,...i}=e;return(0,m.jsx)(_.Button,{...i,children:t})}DismissButton.propTypes=f,CTAButton.propTypes={...f,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,d.dv)();return(0,m.jsxs)(u.Fragment,{children:[a!==d.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===d.mp&&o&&(0,m.jsx)(o,{})]})}function OverlayCard(e){const{visible:t,className:i,...s}=e,n=(0,d.dv)();if(!t)return null;const o=(0,m.jsx)("div",{className:g()("googlesitekit-overlay-card",i),children:(0,m.jsx)(Body,{...s})});return n===d.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:g,dismissOptions:d,...u}=t||{};const p=t?{...u,onClick:async function(i){l.confirm(s?.label,s?.value),await(t?.onClick?.(i)),g&&c(e,{...d})}}: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({...f,href:n().string,target:n().string,trailingIcon:n().element}),dismissButton:n().shape({...f}),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({...f,href:n().string,target:n().string,trailingIcon:n().object}),dismissButton:n().shape(f),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])}},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),g=i.n(c),d=i(67438),u=i(62540);const p=g()(e=>({id:e,Notification:m(e)(d.A)}));function m(e){return t=>{function WithNotificationID(i){return(0,u.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],g={...p(n)};return(0,u.jsx)(c,{...g})}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:()=>N});var s,n=i(4452),o=i.n(n),r=i(62688),a=i.n(r),l=i(39941),c=i(63696),g=i(82871);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},d.apply(null,arguments)}const u=e=>c.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),s||(s=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"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 _;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 y=e=>c.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),_||(_=c.createElement("path",{d:"m12 20-8-8 8-8 1.425 1.4-5.6 5.6H20v2H7.825l5.6 5.6z"})));var k=i(83366),v=i(50304),x=i(62540);const A="BUTTON",j="BUTTON_DISABLED",I="EXTERNAL_LINK",b="LINK",M="ROUTER_LINK",S=(0,c.forwardRef)((e,t)=>{const{"aria-label":i,secondary:s=!1,arrow:n=!1,back:r=!1,caps:a=!1,children:c,className:d="",danger:p=!1,disabled:m=!1,external:_=!1,hideExternalIndicator:f=!1,href:S="",inverse:N=!1,noFlex:E=!1,onClick:w,small:C=!1,standalone:T=!1,linkButton:D=!1,to:R,leadingIcon:z,trailingIcon:L,...O}=e;const P=S||R||!w?R?M:_?I:b:m?j:A;const B=P===A||P===j?"button":P===M?l.N_:"a",U=function(){let e;return P===I&&(e=(0,g._x)("(opens in a new tab)","screen reader text","google-site-kit")),P===j&&(e=(0,g._x)("(disabled)","screen reader text","google-site-kit")),e?i?`${i} ${e}`:"string"==typeof c?`${c} ${e}`:void 0:i}();let G=z,W=L;return r&&(G=(0,x.jsx)(y,{width:14,height:14})),_&&!f&&(W=(0,x.jsx)(k.A,{width:14,height:14})),n&&!N&&(W=(0,x.jsx)(u,{width:14,height:14})),n&&N&&(W=(0,x.jsx)(h,{width:14,height:14})),(0,x.jsxs)(B,{"aria-label":U,className:o()("googlesitekit-cta-link",d,{"googlesitekit-cta-link--secondary":s,"googlesitekit-cta-link--inverse":N,"googlesitekit-cta-link--small":C,"googlesitekit-cta-link--caps":a,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":m,"googlesitekit-cta-link--standalone":T,"googlesitekit-cta-link--link-button":D,"googlesitekit-cta-link--no-flex":!!E}),disabled:m,href:P!==b&&P!==I||m?void 0:S,onClick:w,rel:P===I?"noopener noreferrer":void 0,ref:t,target:P===I?"_blank":void 0,to:R,...O,children:[!!G&&(0,x.jsx)(v.A,{marginRight:5,children:G}),(0,x.jsx)("span",{className:"googlesitekit-cta-link__contents",children:c}),!!W&&(0,x.jsx)(v.A,{marginLeft:5,children:W})]})});S.propTypes={arrow:a().bool,back:a().bool,caps:a().bool,children:a().node,className:a().string,danger:a().bool,disabled:a().bool,external:a().bool,hideExternalIndicator:a().bool,href:a().string,inverse:a().bool,leadingIcon:a().node,linkButton:a().bool,noFlex:a().bool,onClick:a().func,small:a().bool,standalone:a().bool,to:a().string,trailingIcon:a().node};const N=S},40194:(e,t,i)=>{i.d(t,{G:()=>_});var s=i(50539),n=i(88273),o=i(97345),r=i(8732),a=i(84730),l=i(22942),c=i(20697),g=i(62659),d=i(4124),u=i(82871);function p(e,t,i){return e?{slug:"dashboard-sharing",target:".googlesitekit-header",floaterProps:{target:".googlesitekit-view-only-menu"},title:(0,u.__)("Get instant access to insights, no setup","google-site-kit"),content:t?(0,u.__)("See what’s been shared with you here, or sign in with Google to configure services and sharing access","google-site-kit"):(0,u.__)("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,u.__)("Share insights with your team","google-site-kit"),content:(0,u.__)("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,u.__)("Track Search traffic trends, identify baselines","google-site-kit"),content:(0,u.__)("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,u.__)("Track how your site is doing on Search","google-site-kit"),content:(0,u.__)("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,u.__)("Want to know what people do once they land on your site?","google-site-kit"),content:(0,u.__)("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,u.__)("Your goals, measured and clear","google-site-kit"),content:(0,u.__)("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,u.__)("Track traffic trends, identify baselines","google-site-kit"),content:(0,u.__)("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,u.__)("Get to know your site visitors","google-site-kit"),content:(0,u.__)("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,u.__)("Discover your most popular and engaging content","google-site-kit"),content:(0,u.__)("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 _(){const e=(0,d.A)(),t=(0,g.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},42340:(e,t,i)=>{i.d(t,{A:()=>ModuleSettingsWarning});var s=i(50539),n=i(88273),o=i(97345),r=i(23955),a=i(25797),l=i(62540);function ModuleSettingsWarning({slug:e}){const t=(0,s.useSelect)(t=>t(n.i)?.getCheckRequirementsError(e));return t?o.od===t.code?(0,l.jsx)(r.A,{moduleSlug:e}):(0,l.jsx)(a.A,{className:"googlesitekit-notice--small",type:a.A.TYPES.WARNING,description:t.message,hideIcon:!0}):null}},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:()=>_});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(63696),l=i(13606),c=i(82871),g=i(38432),d=i(13047),u=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,u.A)(),_=(0,a.useContext)(m.Ay),f=(0,a.useCallback)(()=>{_.slug&&n&&(0,d.sx)(`${n}_widget`,"click_source_link",_.slug)},[n,_]);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(g.A,{key:"link",href:t,external:s,onClick:f})}))}SourceLink.propTypes={name:n().string,href:n().string,className:n().string,external:n().bool};const _=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),g=i(88273),d=i(13137),u=i(31012),p=i(55465),m=i(12317),h=i(1641),_=i(4124),f=i(73198),y=i(62540);function ReportError({moduleSlug:e,error:t}){const i=(0,_.A)(),s=(0,c.useSelect)(t=>t(g.i).getModule(e)),n=Array.isArray(t)?t:[t];let k;function v(e){return(0,d.SG)(e)?i?(k=(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)):(k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Insufficient permissions in %s","google-site-kit"),s?.name),(0,u.c)(e.message,s)):(0,d.e4)(e)}const x=(0,o.uniqWith)(n.map(e=>({...e,message:v(e),reconnectURL:e.data?.reconnectURL?(0,l.m)(e.data.reconnectURL,"code"):void 0})),(e,t)=>e.message===t.message&&e.reconnectURL===t.reconnectURL),A=n.some(e=>(0,d.SG)(e));A||1!==x.length?!A&&x.length>1&&(k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Data errors in %s","google-site-kit"),s?.name)):k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Data error in %s","google-site-kit"),s?.name);const j=(0,y.jsx)(r.Fragment,{children:x.map(e=>{const t=e?.data?.reconnectURL;return t?(0,y.jsx)(f.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:k,description:j,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:()=>d});var s,n=i(82871),o=i(88933),r=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},a.apply(null,arguments)}const l=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 80 21"},e),s||(s=r.createElement("path",{fill:"#5F6368",d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1zM69.985 3.117c0 .454-.167.853-.488 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.6 1.6 0 0 1-.488-1.175c0-.466.166-.854.488-1.176s.71-.488 1.175-.488c.455 0 .854.166 1.176.488.332.333.487.72.487 1.176m-.477 4.313v12.498h-2.351V7.43zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943q-1.014-.948-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333M2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974q-.883-.781-3.094-1.564l-1.22-.432Q3.371 9.997 2.04 8.716C1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673S2.75 1.209 3.693.72C4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676-.91 1.032-.91 1.742c0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6 6 0 0 1-2.495 1.919 8 8 0 0 1-3.116.621c-1.62 0-3.072-.466-4.358-1.408M15.969 3.449a1.95 1.95 0 0 1-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0 1 17.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 0 1-1.43.589c-.566-.012-1.043-.2-1.431-.588m-.067 2.595h2.994v13.883h-2.994zM25.406 19.85c-.544-.2-.987-.466-1.331-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122q.35-.116.765-.399v2.917c-.599.277-1.32.41-2.173.41a5 5 0 0 1-1.753-.3M33.623 19.407a6.63 6.63 0 0 1-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706s2.251-1.01 3.593-1.01c1.397 0 2.606.311 3.637.921a6.1 6.1 0 0 1 2.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.16 4.16 0 0 0 2.817 1.043c.854 0 1.597-.189 2.218-.588a4.27 4.27 0 0 0 1.508-1.597l2.528 1.198q-.981 1.713-2.561 2.694c-1.054.655-2.318.976-3.782.976q-2.046.033-3.66-.931m7.23-8.051a3.3 3.3 0 0 0-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296z"})));var c=i(55989),g=i(62540);const d=function Logo(){return(0,g.jsxs)("div",{className:"googlesitekit-logo","aria-hidden":"true",children:[(0,g.jsx)(o.A,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),(0,g.jsx)(l,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),(0,g.jsx)(c.A,{children:(0,n.__)("Site Kit by Google Logo","google-site-kit")})]})}},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}},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)}},48377:(e,t,i)=>{i.d(t,{A:()=>UserInputQuestionAuthor});var s=i(62688),n=i.n(s),o=i(82871),r=i(50539),a=i(97345),l=i(83880),c=i(62540);function UserInputQuestionAuthor({slug:e}){const t=(0,r.useSelect)(t=>t(a.oR).getUserInputSettingAuthor(e));return t&&t.photo&&t.login?(0,c.jsxs)("div",{className:"googlesitekit-user-input__author",children:[(0,c.jsx)(l.A,{children:(0,o.__)("This question has been answered by:","google-site-kit")}),(0,c.jsxs)("div",{className:"googlesitekit-user-input__author-info",children:[(0,c.jsx)("img",{alt:t.login,src:t.photo}),t.login]})]}):null}UserInputQuestionAuthor.propTypes={slug:n().string.isRequired}},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),g=i(97345),d=i(29785),u=i(8732),p=i(84730),m=i(80),h=i(62659),_=i(17443),f=i(13047),y=i(23403),k=i(79506),v=i(72050);var x=i(22942),A=i(65385),j=i(96177),I=i(32600),b=i(76984),M=i(11883),S=i(97513),N=i(62540);const E="setup-success-notification-audiences";function AudienceSegmentationSetupSuccessSubtleNotification({id:e,Notification:t}){const s=(0,S.dv)(),{dismissNotification:n}=(0,l.useDispatch)(u.D),r=(0,l.useSelect)(e=>e(g.oR).isAudienceSegmentationWidgetHidden());return(0,a.useEffect)(()=>{r&&n(E)},[n,r]),void 0===r?null:(0,N.jsx)(t,{children:(0,N.jsx)(I.A,{notificationID:e,type:b.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(E),setTimeout(()=>{i.g.scrollTo({top:(0,M.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)(u.D),{setValues:A}=(0,l.useDispatch)(c.s),j={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,_.i)(j),b=(0,l.useSelect)(t=>t(u.D).isNotificationDismissalFinal(e)),M=(0,C.A)({isDismissalFinal:b}),S=(0,w.A)(m.PW,"autoSubmit"),[T,D]=(0,a.useState)(!1),R=(0,a.useCallback)(()=>{r(E,{Component:AudienceSegmentationSetupSuccessSubtleNotification,areaSlug:p.bI.DASHBOARD_TOP}),n(e)},[r,n,e]),z=(0,a.useCallback)(()=>{D(!0)},[D]),L=(0,a.useCallback)(()=>x(e,p.He.SETUP_CTAS),[e,x]),{apiErrors:O,failedAudiences:P,isSaving:B,onEnableGroups:U}=(0,y.A)({onSuccess:R,onError:z,onOAuthNavigation:L}),{clearPermissionScopeError:G}=(0,l.useDispatch)(g.oR),{setSetupErrorCode:W}=(0,l.useDispatch)(d.O4),V=(0,a.useCallback)(()=>{A(m.PW,{autoSubmit:!1}),G(),W(null),D(!1)},[G,W,A]),F=(0,l.useSelect)(e=>e(d.O4).getSetupErrorCode()),H=(0,l.useSelect)(e=>e(d.O4).getDocumentationLinkURL("visitor-groups")),Y=S&&"access_denied"===F,Z={gaTrackingEventArgs:{category:s}};return(0,N.jsxs)(a.Fragment,{children:[(0,N.jsx)(t,{...Z,children:(0,N.jsx)(v.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:B?(0,o.__)("Enabling groups","google-site-kit"):(0,o.__)("Enable groups","google-site-kit"),onClick:U,disabled:B,inProgress:B},dismissButton:{label:M,onClick:I,disabled:B,dismissOptions:{expiresInSeconds:b?0:2*f.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,N.jsx)(k.A,{hasOAuthError:Y,apiErrors:O.length?O:P,onRetry:U,inProgress:B,onCancel:Y?V:()=>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,j.WP)("audienceSegmentationSetupCTA"))(AudienceSegmentationSetupCTABanner)},49057:(e,t,i)=>{i.d(t,{Ay:()=>_,wA:()=>a.A,ws:()=>u.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),g=i(30043),d=i(66293),u=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=u.w,h.controls=n.n,h.createRegistryControl=o.b,h.createRegistrySelector=o.N,h.useSelect=r.A,h.useDispatch=a.A,h.useRegistry=l.A,h.withSelect=c.A,h.withDispatch=g.A,h.RegistryProvider=d.Ay;const _=h},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:()=>d,JK:()=>h,K5:()=>m,jq:()=>p,mK:()=>g});var s=i(17243),n=i(50532),o=i.n(n),r=i(82871);function a(e,t={}){const{formatUnit:i,formatDecimal:s}=function(e,t={}){const{hours:i,minutes:s,seconds:n}=l(e);return{hours:i,minutes:s,seconds:n,formatUnit(){const{unitDisplay:o="short",...a}=t,l={unitDisplay:o,...a,style:"unit"};return 0===e?p(n,{...l,unit:"second"}):(0,r.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ (0,r._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),n?p(n,{...l,unit:"second"}):"",s?p(s,{...l,unit:"minute"}):"",i?p(i,{...l,unit:"hour"}):"").trim()},formatDecimal(){const t=(0,r.sprintf)( // translators: %s: number of seconds with "s" as the abbreviated unit. // translators: %s: number of seconds with "s" as the abbreviated unit. (0,r.__)("%ds","google-site-kit"),n);if(0===e)return t;const o=(0,r.sprintf)( // translators: %s: number of minutes with "m" as the abbreviated unit. // translators: %s: number of minutes with "m" as the abbreviated unit. (0,r.__)("%dm","google-site-kit"),s),a=(0,r.sprintf)( // translators: %s: number of hours with "h" as the abbreviated unit. // translators: %s: number of hours with "h" as the abbreviated unit. (0,r.__)("%dh","google-site-kit"),i);return(0,r.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ (0,r._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),n?t:"",s?o:"",i?a:"").trim()}}}(e,t);try{return i()}catch{return s()}}function l(e){e=parseInt(e,10),Number.isNaN(e)&&(e=0);return{hours:Math.floor(e/60/60),minutes:Math.floor(e/60%60),seconds:Math.floor(e%60)}}function c(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e}function g(e){let t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:(0,s.isPlainObject)(e)&&(t={...e}),t}function d(e,t={}){e=(0,s.isFinite)(e)?e:Number(e),(0,s.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const i=g(t),{style:n="metric"}=i;return"metric"===n?function(e){const t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?(0,r.sprintf)( // translators: %s: an abbreviated number in millions. // translators: %s: an abbreviated number in millions. (0,r.__)("%sM","google-site-kit"),p(c(e),e%10==0?{}:t)):1e4<=e?(0,r.sprintf)( // translators: %s: an abbreviated number in thousands. // translators: %s: an abbreviated number in thousands. (0,r.__)("%sK","google-site-kit"),p(c(e))):1e3<=e?(0,r.sprintf)( // translators: %s: an abbreviated number in thousands. // translators: %s: an abbreviated number in thousands. (0,r.__)("%sK","google-site-kit"),p(c(e),e%10==0?{}:t)):p(e,{signDisplay:"never",maximumFractionDigits:1})}(e):"duration"===n?a(e,i):"durationISO"===n?function(e){let{hours:t,minutes:i,seconds:s}=l(e);return s=("0"+s).slice(-2),i=("0"+i).slice(-2),t=("0"+t).slice(-2),"00"===t?`${i}:${s}`:`${t}:${i}:${s}`}(e):p(e,i)}const u=o()(console.warn);function p(e,t={}){const{locale:i=h(),...s}=t;try{return new Intl.NumberFormat(i,s).format(e)}catch(t){u(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(i)}, ${JSON.stringify(s)} ).format( ${typeof e} )`,t.message)}const n={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},o=["signDisplay","compactDisplay"],r={};for(const[e,t]of Object.entries(s))n[e]&&t===n[e]||o.includes(e)||(r[e]=t);try{return new Intl.NumberFormat(i,r).format(e)}catch{return new Intl.NumberFormat(i).format(e)}}function m(e,t={}){const{locale:i=h(),style:s="long",type:n="conjunction"}=t;if(Intl.ListFormat){return new Intl.ListFormat(i,{style:s,type:n}).format(e)} /* translators: used between list items, there is a space after the comma. */const o=(0,r.__)(", ","google-site-kit");return e.join(o)}function h(e=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:()=>d,IL:()=>h,LD:()=>p,SO:()=>u,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 g(){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 d(e){const t=await g();if(t){const i=t.getItem(`${o}${e}`);if(i){const e=JSON.parse(i),{timestamp:t,ttl:s,value:n,isError:o}=e;if(t&&(!s||Math.round(Date.now()/1e3)-t<s))return{cacheHit:!0,value:n,isError:o}}}return{cacheHit:!1,value:void 0}}async function u(e,t,{ttl:n=s.Jg,timestamp:r=Math.round(Date.now()/1e3),isError:a=!1}={}){const l=await g();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 g();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 g();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 g()){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:()=>d});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 g({select:e,isViewOnlyDashboard:t}){return!t||e(r.K9).hasCustomDimensions(this.requiredCustomDimensions)}const d={[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:g,displayInWidgetArea:g,displayInList:g,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:g,displayInWidgetArea:g,displayInList:g,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:g,displayInWidgetArea:g,displayInList:g,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:g,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),g=i(13137),d=i(7972),u=i(82871);const p="audience-segmentation-info-notice-ui",m="audience-segmentation-info-notice",h=[{slug:"new-visitors",content:(0,u.__)("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,u.__)("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,u.__)("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,u.__)("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,u.__)("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,u.__)("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,u.__)("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,k,v,x,A,j,I,b,M,S,N=i(10740),E=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),_||(_=a.createElement("path",{fill:"#F3F5F7",d:"M2.956 80.014a32.4 32.4 0 0 0 6.283 9.673c10.459 11.015 25.911 11.949 40.083 9.193A98.3 98.3 0 0 0 88.91 81.449c6.738-4.994 13.394-11.19 22.316-11.467 3.35-.103 6.814.82 9.345 2.998 5.259 4.497 5.165 12.186 9.269 17.516 5.458 7.088 13.308 9.283 21.87 10.101 24.191 2.309 53.006-5.265 69.646-23.694 14.857-16.452 16.64-42.63-1.343-57.629-8.216-6.852-19.483-9.992-30.117-8.392-8.127 1.223-16.378 4.942-24.791 5.977-9.908 1.22-16.033-2.943-24.05-7.79C127.086.641 108.62-2.597 92.807 2.292 77.671 6.972 66.777 19.747 52.048 25.36c-12.727 4.852-27.761 4.114-38.82 12.017C.143 46.727-3.146 65.603 2.956 80.014"})),a.createElement("path",{fill:"#161B18",d:"M118.945 116.194c32.642 0 59.104-1.654 59.104-3.694s-26.462-3.694-59.104-3.694c-32.643 0-59.105 1.654-59.105 3.694s26.462 3.694 59.105 3.694",opacity:.1,style:{mixBlendMode:"multiply"}}),f||(f=a.createElement("path",{fill:"#CBD0D3",d:"M118.945 116.194c32.642 0 59.104-1.654 59.104-3.694s-26.462-3.694-59.104-3.694c-32.643 0-59.105 1.654-59.105 3.694s26.462 3.694 59.105 3.694"})),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"})),k||(k=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.4,d:"M87.114 62.487c-1.015 16.075-6.61 30.497-2.87 48.618h-4.26M91.929 111.105h-4.261l7.53-48.618"})),v||(v=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"})),j||(j=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"})),b||(b=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"})),M||(M=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"})),S||(S=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),z=i(1641),L=i(13606),O=i(38432),P=i(62540);function GetHelpLink({linkURL:e}){return(0,L.A)((0,u.__)("Contact your administrator. Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:(0,P.jsx)(O.A,{href:e,external:!0,hideExternalIndicator:!0,children:(0,u.__)("Get help","google-site-kit")})})}function ErrorWidgetDetails({failedAudiences:e,showRetryButton:t,onRetry:i,onRequestAccess:s,errors:n,hasInsufficientPermissionsError:o}){return e?.length?(0,P.jsxs)("div",{children:[(0,P.jsx)(D.A,{children:(0,u.__)("Failed to create the following audiences:","google-site-kit")}),(0,P.jsx)("ul",{className:"googlesitekit-widget-audience-segmentation-error__failed-audiences",children:e.map(e=>(0,P.jsx)("li",{children:e},e))}),(0,P.jsx)(R.Button,{onClick:i,danger:!0,children:(0,u.__)("Retry","google-site-kit")})]}):t&&i?(0,P.jsx)(R.Button,{onClick:i,danger:!0,children:(0,u.__)("Retry","google-site-kit")}):(0,P.jsx)(z.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 B=(0,a.forwardRef)(({Widget:e,errors:t,onRetry:i,onRequestAccess:s,showRetryButton:n,failedAudiences:o},r)=>{const a=(0,E.dv)(),l=a===E.mp,c=a===E.Lg,d=t.some(g.SG);return(0,P.jsx)(e,{ref:r,className:"googlesitekit-audience-segmentation-error-widget",noPadding:!0,children:(0,P.jsx)(N.xA,{className:"googlesitekit-audience-segmentation-error__widget-primary-cell",collapsed:!0,children:(0,P.jsxs)(N.fI,{children:[(0,P.jsxs)(N.fh,{smSize:6,mdSize:8,lgSize:7,children:[(0,P.jsx)(T.A,{as:"h3",type:"title",size:"large",children:d?(0,u.__)("Insufficient permissions","google-site-kit"):(0,u.__)("Your visitor groups data loading failed","google-site-kit")}),(0,P.jsx)("div",{className:"googlesitekit-widget-audience-segmentation-error__actions",children:(0,P.jsx)(ErrorWidgetDetails,{failedAudiences:o,showRetryButton:n,onRetry:i,onRequestAccess:s,errors:t,hasInsufficientPermissionsError:d})})]}),!l&&!c&&(0,P.jsx)(N.fh,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",smSize:6,mdSize:3,lgSize:5,children:(0,P.jsx)(C,{width:"233px"})}),c&&(0,P.jsx)(N.fh,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",mdSize:8,children:(0,P.jsx)(C,{width:"233px"})}),l&&(0,P.jsx)(N.fh,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",smSize:8,children:(0,P.jsx)(C,{width:"233px"})})]})})})});B.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 U=B;var G=i(30289),W=i(13047),V=i(62659),F=i(22942);const H=(0,G.A)(U);function AudienceSegmentationErrorWidget({Widget:e,errors:t,onRetry:i,showRetryButton:s,failedAudiences:o}){const r=(0,V.A)(),{setValue:l}=(0,c.useDispatch)(d.n),u=t?(0,n.castArray)(t):[],m=u.some(g.SG);return(0,a.useEffect)(()=>{l(p,!0)},[l]),(0,P.jsx)(H,{Widget:e,errors:u,onRetry:function(){(0,W.sx)(`${r}_audiences-all-tiles`,"data_loading_error_retry").finally(()=>{l(p,!1),i?.()})},failedAudiences:o,onRequestAccess:()=>{(0,W.sx)(`${r}_audiences-all-tiles`,"insufficient_permissions_error_request_access")},showRetryButton:s,onInView:()=>{const e=m?"insufficient_permissions_error":"data_loading_error";(0,W.sx)(`${r}_audiences-all-tiles`,e)}})}AudienceSegmentationErrorWidget.propTypes={Widget:r().elementType.isRequired,errors:r().oneOfType([r().object,r().arrayOf(r().object)]).isRequired,onRetry:r().func,showRetryButton:r().bool,failedAudiences:r().arrayOf(r().string)};const Y=(0,l.A)({moduleName:F.L1})(AudienceSegmentationErrorWidget);i(97212),i(48385);var Z=i(80),Q=i(97345),q=i(9318),K=i(31790);function $(e,t){return(0,c.useSelect)(i=>t.reduce((t,s)=>{const n=i(Z.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(Z.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(Z.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(Z.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:Z.f2,compare:!0})),{startDate:r,endDate:a}=o,l=void 0===e?void 0:i.length>0||!1===e,g=t.length>0&&e,d={...o,dimensions:[{name:"audienceResourceName"}],dimensionFilters:n,metrics:[{name:"totalUsers"},{name:"sessionsPerUser"},{name:"screenPageViewsPerSession"},{name:"screenPageViews"}],reportID:"audience-segmentation_use-audience-tiles-reports_hook_reportOptions"},u=(0,c.useInViewSelect)(e=>{if(void 0!==l)return l?e(Z.K9).getReport(d):null},[l,d]),p=(0,c.useSelect)(e=>{if(void 0!==l)return!l||e(Z.K9).hasFinishedResolution("getReport",[d])}),m=(0,c.useSelect)(e=>{if(void 0!==l)return l?e(Z.K9).getErrorForSelector("getReport",[d]):null}),h={...o,dimensions:[{name:"newVsReturning"}],dimensionFilters:{newVsReturning:["new","returning"]},metrics:[{name:"totalUsers"},{name:"sessionsPerUser"},{name:"screenPageViewsPerSession"},{name:"screenPageViews"}],reportID:"audience-segmentation_use-audience-tiles-reports_hook_newVsReturningReportOptions"},_=(0,c.useInViewSelect)(e=>{if(void 0!==g)return g?e(Z.K9).getReport(h):null},[g,h]),f=(0,c.useSelect)(e=>{if(void 0!==g)return!g||e(Z.K9).hasFinishedResolution("getReport",[h])}),y=(0,c.useSelect)(e=>{if(void 0!==g)return g?e(Z.K9).getErrorForSelector("getReport",[h]):null}),k={startDate:r,endDate:a,metrics:[{name:"screenPageViews"}],reportID:"audience-segmentation_use-audience-tiles-reports_hook_totalPageviewsReportOptions"},v=(0,c.useInViewSelect)(e=>e(Z.K9).getReport(k)),x=(0,c.useSelect)(e=>e(Z.K9).hasFinishedResolution("getReport",[k])),A=(0,c.useSelect)(e=>e(Z.K9).getErrorForSelector("getReport",[k])),j=Number(v?.totals?.[0]?.metricValues?.[0]?.value)||0,I={startDate:r,endDate:a,dimensions:["city"],metrics:[{name:"totalUsers"}],orderby:[{metric:{metricName:"totalUsers"},desc:!0}],limit:4,reportID:"audience-segmentation_use-audience-tiles-reports_hook_topCitiesReportOptions"},b=(0,c.useInViewSelect)(e=>e(Z.K9).getReportForAllAudiences(I,s)),M=$(I,s),S=X(I,s),N={startDate:r,endDate:a,dimensions:["pagePath"],metrics:[{name:"screenPageViews"}],dimensionFilters:{"customEvent:googlesitekit_post_type":{filterType:"stringFilter",matchType:"EXACT",value:"post"}},orderby:[{metric:{metricName:"screenPageViews"},desc:!0}],limit:3,reportID:"audience-segmentation_use-audience-tiles-reports_hook_topContentReportOptions"},E=(0,c.useInViewSelect)(e=>e(Z.K9).getReportForAllAudiences(N,s)),w=$(N,s),C=X(N,s),T={startDate:r,endDate:a,dimensions:["pagePath","pageTitle"],metrics:[{name:"screenPageViews"}],dimensionFilters:{"customEvent:googlesitekit_post_type":{filterType:"stringFilter",matchType:"EXACT",value:"post"}},orderby:[{metric:{metricName:"screenPageViews"},desc:!0}],limit:15,reportID:"audience-segmentation_use-audience-tiles-reports_hook_topContentPageTitlesReportOptions"};return{report:u,reportLoaded:p,reportError:m,siteKitAudiencesReport:_,siteKitAudiencesReportLoaded:f,siteKitAudiencesReportError:y,totalPageviews:j,totalPageviewsReportLoaded:x,totalPageviewsReportError:A,topCitiesReport:b,topCitiesReportsLoaded:M,topCitiesReportErrors:S,topContentReport:E,topContentReportsLoaded:w,topContentReportErrors:C,topContentPageTitlesReport:(0,c.useInViewSelect)(e=>e(Z.K9).getReportForAllAudiences(T,s)),topContentPageTitlesReportsLoaded:$(T,s),topContentPageTitlesReportErrors:X(T,s)}}var ee,te,ie,se,ne,oe,re,ae,le,ce,ge,de,ue=i(4124),pe=i(4751);function AudienceTileLoading(){return(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-loading",children:[(0,P.jsx)(pe.A,{width:"100%",height:"20px"}),(0,P.jsx)(pe.A,{width:"100%",height:"52px"}),(0,P.jsx)(pe.A,{width:"100%",height:"52px"}),(0,P.jsx)(pe.A,{width:"100%",height:"52px"}),(0,P.jsx)(pe.A,{width:"100%",height:"52px"}),(0,P.jsx)(pe.A,{width:"100%",height:"52px"}),(0,P.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"})),ge||(ge=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"})),de||(de=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"}))),_e=(0,a.forwardRef)(({errors:e,onRetry:t,onRequestAccess:i},s)=>{const n=e.some(e=>(0,g.SG)(e));return(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-error",ref:s,children:(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-error__container",children:[(0,P.jsx)(he,{className:"googlesitekit-audience-segmentation-tile-error__image"}),(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-error__body",children:[(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-error__message",children:(0,P.jsx)(T.A,{as:"h3",type:"headline",size:"small",className:"googlesitekit-audience-segmentation-tile-error__title",children:n?(0,u.__)("Insufficient permissions","google-site-kit"):(0,u.__)("Data loading failed","google-site-kit")})}),(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-error__actions",children:(0,P.jsx)(z.A,{moduleSlug:"analytics-4",error:e,GetHelpLink:n?GetHelpLink:void 0,hideGetHelpLink:!n,buttonVariant:"danger",onRetry:t,onRequestAccess:i})})]})]})})});_e.propTypes={errors:r().array.isRequired,onRetry:r().func.isRequired,onRequestAccess:r().func.isRequired};const fe=_e,ye=(0,G.A)(fe);function AudienceTileError({audienceSlug:e,errors:t}){const i=(0,V.A)(),s=t.some(e=>(0,g.SG)(e));return(0,P.jsx)(ye,{errors:t,onInView:()=>{const t=s?"insufficient_permissions_error":"data_loading_error";(0,W.sx)(`${i}_audiences-tile`,t,e)},onRetry:()=>{(0,W.sx)(`${i}_audiences-tile`,"data_loading_error_retry",e)},onRequestAccess:()=>{(0,W.sx)(`${i}_audiences-tile`,"insufficient_permissions_error_request_access",e)}})}AudienceTileError.propTypes={audienceSlug:r().string.isRequired,errors:r().array.isRequired};var ke,ve=i(4452),xe=i.n(ve);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 je=e=>a.createElement("svg",Ae({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),ke||(ke=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 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 Me=e=>a.createElement("svg",be({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 Se;function Ne(){return Ne=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},Ne.apply(null,arguments)}const Ee=e=>a.createElement("svg",Ne({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),Se||(Se=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 ze=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 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)}const Pe=e=>a.createElement("svg",Oe({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,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric",children:[(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__icon",children:(0,P.jsx)(e,{})}),(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__container",children:[(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__value",children:(0,W.Eo)(i,n)}),(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__title",children:t})]}),(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__badge-container",children:(0,P.jsx)(s,{})})]})}function AudienceTileNoData(){return(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile__no-data",children:(0,u.__)("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,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric googlesitekit-audience-segmentation-tile-metric--cities",children:[(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__icon",children:(0,P.jsx)(e,{})}),(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__container",children:[(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__title",children:t}),(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__content",children:[!n&&(0,P.jsx)(AudienceTileNoData,{}),n&&s.map((e,t)=>(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__cities-metric",children:[(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__cities-metric-name",children:e?.value}),(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__cities-metric-value",children:(0,W.Eo)(i?.metricValues[t]?.value/i?.total,{style:"percent",maximumFractionDigits:1})})]},e?.value))]})]})]})}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 Be=i(51568),Ue=i(11999),Ge=i(29785),We=i(82267);function BadgeWithTooltip({className:e="",label:t,onTooltipOpen:i,tooltipTitle:s}){return(0,P.jsxs)("span",{className:xe()("googlesitekit-badge-with-tooltip","googlesitekit-badge",e),children:[t,s&&(0,P.jsx)(We.A,{onOpen:i,title:s})]})}function PartialDataNotice({content:e}){return(0,P.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 Ve=(0,a.forwardRef)(({onClick:e,isSaving:t},i)=>(0,P.jsxs)("div",{ref:i,className:"googlesitekit-audience-segmentation-tile-metric__no-data",children:[(0,u.__)("No data to show","google-site-kit"),(0,P.jsx)(D.A,{children:(0,u.__)("Update Analytics to track metric","google-site-kit")}),(0,P.jsx)(R.SpinnerButton,{onClick:e,isSaving:t,disabled:t,danger:!0,children:(0,u.__)("Update","google-site-kit")})]}));Ve.propTypes={onClick:r().func.isRequired,isSaving:r().bool};const Fe=Ve,He=(0,G.A)(Fe);function AudienceTilePagesMetricContent({topContentTitles:e,topContent:t,isTopContentPartialData:i,hasCustomDimension:s,onCreateCustomDimension:n,isSaving:o}){const r=(0,V.A)(),a=(0,ue.A)(),l=(0,E.dv)(),g=[E.mp,E.Lg].includes(l),d=t?.dimensionValues?.filter(Boolean)||[],p=!!d.length,m=(0,c.useSelect)(e=>e(Q.oR).getDateRangeDates({offsetDays:Z.f2}));function ContentLinkComponent({content:t}){const i=e[t?.value],s=t?.value,n=(0,c.useSelect)(e=>a?null:e(Z.K9).getServiceReportURL("all-pages-and-screens",{filters:{unifiedPagePathScreen:s},dates:m}));return a?(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile__top-content-metric-name",children:i}):(0,P.jsx)(O.A,{href:n,title:i,external:!0,hideExternalIndicator:!0,children:i})}return(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__content",children:[!s&&(0,P.jsx)(He,{onClick:function(){(0,W.sx)(`${r}_audiences-top-content-cta`,"create_custom_dimension").finally(n)},isSaving:o,onInView:()=>{(0,W.sx)(`${r}_audiences-top-content-cta`,"view_cta")}}),s&&!p&&(0,P.jsx)(AudienceTileNoData,{}),s&&p&&d.map((e,i)=>(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__page-metric-container",children:[(0,P.jsx)(ContentLinkComponent,{content:e}),(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__page-metric-value",children:(0,W.Eo)(t?.metricValues[i]?.value)})]},e?.value)),g&&i&&(0,P.jsx)(PartialDataNotice,{content:(0,u.__)("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),Ze=i(68832);function AudienceTilePagesMetric({audienceTileNumber:e,audienceSlug:t,TileIcon:n,title:o,topContent:r,topContentTitles:l,isTopContentPartialData:d}){const p=(0,E.dv)(),m=(0,V.A)(),h=Z.Cu.googlesitekit_post_type.parameterName,_=(0,c.useSelect)(e=>!e(Z.K9).hasCustomDimensions(h)),f=(0,c.useSelect)(e=>e(Q.oR).hasScope(Z.S9)),y=(0,Be.F)(i.g.location.href,{notification:"audience_segmentation",widgetArea:Ye.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION}),k=(0,Be.F)(i.g.location.href,{widgetArea:Ye.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION}),v=(0,Ze.A)(Z.CV,"isAutoCreatingCustomDimensionsForAudience"),x=(0,c.useSelect)(e=>e(Z.K9).isCreatingCustomDimension(h)),A=(0,c.useSelect)(e=>e(Z.K9).isFetchingSyncAvailableCustomDimensions()),j=(0,c.useSelect)(e=>e(Z.K9).getCreateCustomDimensionError(h)),I=(0,c.useSelect)(e=>e(Z.K9).getPropertyID()),{clearError:b}=(0,c.useDispatch)(Z.K9),{setValues:M}=(0,c.useDispatch)(Ue.s),{setPermissionScopeError:S,clearPermissionScopeError:N}=(0,c.useDispatch)(Q.oR),w=(0,Ze.A)(Z.CV,"isRetrying"),C=(0,Ze.A)(Z.CV,"autoSubmit"),T=(0,c.useSelect)(e=>e(Ge.O4).getSetupErrorCode()),{setSetupErrorCode:D}=(0,c.useDispatch)(Ge.O4),R=C&&"access_denied"===T,z=(0,a.useCallback)(({isRetrying:e}={})=>{M(Z.CV,{autoSubmit:!0,isRetrying:e}),f||S({code:g.db,message:(0,u.__)("Additional permissions are required to create new audiences in Analytics.","google-site-kit"),data:{status:403,scopes:[Z.S9],skipModal:!0,skipDefaultErrorNotifications:!0,redirectURL:y,errorRedirectURL:k}})},[f,y,k,S,M]),L=(0,a.useCallback)(()=>{M(Z.CV,{autoSubmit:!1,isRetrying:!1}),D(null),N(),b("createCustomDimension",[I,Z.Cu.googlesitekit_post_type])},[b,N,I,D,M]),O=[E.mp,E.Lg].includes(p),B=v||x||A;return(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric googlesitekit-audience-segmentation-tile-metric--top-content",children:[(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile-metric__icon",children:(0,P.jsx)(n,{})}),(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__container",children:[(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-metric__title",children:[o,!O&&d&&(0,P.jsx)(BadgeWithTooltip,{className:"googlesitekit-audience-segmentation-partial-data-badge",label:(0,u.__)("Partial data","google-site-kit"),onTooltipOpen:()=>{(0,W.sx)(`${m}_audiences-tile`,"view_top_content_partial_data_tooltip",t)},tooltipTitle:(0,u.__)("Still collecting full data for this timeframe, partial data is displayed for this metric","google-site-kit")})]}),(0,P.jsx)(AudienceTilePagesMetricContent,{topContentTitles:l,topContent:r,isTopContentPartialData:d,hasCustomDimension:!_,onCreateCustomDimension:z,isSaving:B}),0===e&&(j&&!B||w&&!v||R)&&(0,P.jsx)(s.A,{apiErrors:[j],title:(0,u.__)("Failed to enable metric","google-site-kit"),description:(0,u.__)("Oops! Something went wrong. Retry enabling the metric.","google-site-kit"),onRetry:()=>z({isRetrying:!0}),onCancel:L,inProgress:B,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,qe,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"})),qe||(qe=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,P.jsxs)(a.Fragment,{children:[(0,P.jsx)(rt,{className:"googlesitekit-audience-segmentation-tile__zero-data-image"}),(0,P.jsx)("p",{className:"googlesitekit-audience-segmentation-tile__zero-data-description",children:(0,u.__)("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,P.jsxs)(a.Fragment,{children:[(0,P.jsx)("p",{className:"googlesitekit-audience-segmentation-tile__zero-data-description",children:(0,u.__)("You can hide this group until data is available.","google-site-kit")}),(0,P.jsx)(O.A,{className:"googlesitekit-audience-segmentation-tile-hide-cta",onClick:e,leadingIcon:(0,P.jsx)(ct,{width:22,height:22}),secondary:!0,linkButton:!0,children:(0,u.__)("Temporarily hide","google-site-kit")})]})}AudienceTileCollectingDataHideable.propTypes={onHideTile:r().func.isRequired};const gt=(0,a.forwardRef)(({Widget:e,audienceSlug:t,title:i,infoTooltip:s,isMobileBreakpoint:n,isTileHideable:o,onHideTile:r},a)=>{const l=(0,V.A)();return(0,P.jsx)(e,{ref:a,noPadding:!0,children:(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile",children:(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__zero-data-container",children:[!n&&(0,P.jsx)("div",{className:"googlesitekit-audience-segmentation-tile__header",children:(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__header-title",children:[i,s&&(0,P.jsx)(We.A,{title:s,tooltipClassName:"googlesitekit-info-tooltip__content--audience",onOpen:()=>(0,W.sx)(`${l}_audiences-tile`,"view_tile_tooltip",t)})]})}),(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__zero-data-content",children:[(0,P.jsx)(AudienceTileCollectingData,{}),o&&(0,P.jsx)(AudienceTileCollectingDataHideable,{onHideTile:r})]})]})})})});gt.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 dt=gt,ut=(0,G.A)(dt);function AudienceTileZeroData({Widget:e,audienceSlug:t,title:i,infoTooltip:s,isMobileBreakpoint:n,isTileHideable:o,onHideTile:r}){const a=(0,V.A)();return(0,P.jsx)(ut,{Widget:e,audienceSlug:t,title:i,infoTooltip:s,isMobileBreakpoint:n,isTileHideable:o,onHideTile:function(){(0,W.sx)(`${a}_audiences-tile`,"temporarily_hide",t).finally(r)},onInView:()=>{(0,W.sx)(`${a}_audiences-tile`,"view_tile_collecting_data",t)}})}function AudienceTile({audienceTileNumber:e=0,audienceSlug:t,title:i,infoTooltip:s,visitors:n,visitsPerVisitor:o,pagesPerVisit:r,pageviews:a,percentageOfTotalPageViews:l,topCities:g,topContent:d,topContentTitles:p,hasInvalidCustomDimensionError:m,Widget:h,audienceResourceName:_,isZeroData:f,isPartialData:y,isTileHideable:k,onHideTile:v}){const x=(0,E.dv)(),A=(0,V.A)(),j=(0,ue.A)(),I=(0,c.useInViewSelect)(e=>{const t=e(Z.K9).getPropertyID();return t&&e(Z.K9).isPropertyPartialData(t)}),b=(0,c.useSelect)(e=>e(Z.K9).isSiteKitAudience(_)),M=(0,c.useInViewSelect)(e=>!b&&void 0!==I&&(!I&&_&&e(Z.K9).isAudiencePartialData(_)),[I,b,_]),S=(0,c.useInViewSelect)(e=>void 0!==I&&(!I&&!M&&e(Z.K9).isCustomDimensionPartialData("googlesitekit_post_type")),[M]),N=(0,c.useInViewSelect)(e=>e(Z.K9).hasCustomDimensions("googlesitekit_post_type"),[]),w=[E.mp,E.Lg].includes(x);return y&&f?(0,P.jsx)(AudienceTileZeroData,{Widget:h,audienceSlug:t,title:i,infoTooltip:s,isMobileBreakpoint:w,isTileHideable:k,onHideTile:v}):(0,P.jsx)(h,{noPadding:!0,children:(0,P.jsxs)("div",{className:xe()("googlesitekit-audience-segmentation-tile",{"googlesitekit-audience-segmentation-tile--partial-data":M}),children:[!w&&(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__header",children:[(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__header-title",children:[i,s&&(0,P.jsx)(We.A,{title:s,tooltipClassName:"googlesitekit-info-tooltip__content--audience",onOpen:()=>(0,W.sx)(`${A}_audiences-tile`,"view_tile_tooltip",t)})]}),M&&(0,P.jsx)(BadgeWithTooltip,{className:"googlesitekit-audience-segmentation-partial-data-badge",label:(0,u.__)("Partial data","google-site-kit"),tooltipTitle:(0,u.__)("Still collecting full data for this timeframe, partial data is displayed for this group","google-site-kit"),onTooltipOpen:()=>{(0,W.sx)(`${A}_audiences-tile`,"view_tile_partial_data_tooltip",t)}})]}),(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile__metrics",children:[w&&M&&(0,P.jsx)(PartialDataNotice,{content:(0,u.__)("Still collecting full data for this timeframe, partial data is displayed for this group","google-site-kit")}),(0,P.jsx)(AudienceTileMetric,{TileIcon:je,title:(0,u.__)("Visitors","google-site-kit"),metricValue:n.currentValue,Badge:()=>(0,P.jsx)(nt.A,{previousValue:n.previousValue,currentValue:n.currentValue})}),(0,P.jsx)(AudienceTileMetric,{TileIcon:Me,title:(0,u.__)("Visits per visitor","google-site-kit"),metricValue:o.currentValue,Badge:()=>(0,P.jsx)(nt.A,{previousValue:o.previousValue,currentValue:o.currentValue})}),(0,P.jsx)(AudienceTileMetric,{TileIcon:Ee,title:(0,u.__)("Pages per visit","google-site-kit"),metricValue:r.currentValue,Badge:()=>(0,P.jsx)(nt.A,{previousValue:r.previousValue,currentValue:r.currentValue}),metricValueFormat:{style:"decimal",maximumFractionDigits:2}}),(0,P.jsx)(AudienceTileMetric,{TileIcon:Te,title:(0,u.sprintf)(/* translators: %s: is a percentage value such as 33.3%. */ /* translators: %s: is a percentage value such as 33.3%. */ (0,u.__)("%s of total pageviews","google-site-kit"),(0,W.Eo)(l,{style:"percent",maximumFractionDigits:1})),metricValue:a.currentValue,Badge:()=>(0,P.jsx)(nt.A,{previousValue:a.previousValue,currentValue:a.currentValue})}),(0,P.jsx)(AudienceTileCitiesMetric,{TileIcon:ze,title:(0,u.__)("Cities with the most visitors","google-site-kit"),topCities:g}),(!j||N&&!m)&&(0,P.jsx)(AudienceTilePagesMetric,{audienceTileNumber:e,audienceSlug:t,TileIcon:Pe,title:(0,u.__)("Top content by pageviews","google-site-kit"),topContentTitles:p,topContent:d,isTopContentPartialData:S})]})]})})}function AudienceTooltipMessage({audienceSlug:e,audienceName:t}){const i=(0,c.useSelect)(e=>e(Ge.O4).getDocumentationLinkURL("visitor-group-insights"));return(0,a.useMemo)(()=>{switch(e){case"new-visitors":return(0,L.A)((0,u.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */ (0,u.__)('%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,P.jsx)("strong",{}),link:(0,P.jsx)(O.A,{href:i,external:!0,hideExternalIndicator:!0})});case"returning-visitors":return(0,L.A)((0,u.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */ (0,u.__)('%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,P.jsx)("strong",{}),link:(0,P.jsx)(O.A,{href:i,external:!0,hideExternalIndicator:!0})});default:return(0,L.A)((0,u.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */ (0,u.__)("%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,P.jsx)("strong",{}),link:(0,P.jsx)(O.A,{href:i,external:!0,hideExternalIndicator:!0})})}},[e,t,i])}var pt,mt,ht,_t,ft,yt,kt,vt,xt,At,jt,It,bt,Mt,St,Nt,Et,wt,Ct,Tt,Dt,Rt,zt,Lt,Ot,Pt,Bt,Ut,Gt,Wt,Vt,Ft,Ht,Yt,Zt,Qt,qt,Kt,$t,Xt,Jt,ei,ti,ii,si,ni,oi,ri,ai,li,ci,gi,di,ui,pi,mi,hi,_i,fi,yi,ki,vi,xi,Ai,ji,Ii,bi,Mi,Si,Ni;function Ei(){return Ei=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},Ei.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",Ei({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"})),_t||(_t=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"})),ft||(ft=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"})),kt||(kt=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"})),vt||(vt=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"})),jt||(jt=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"})),bt||(bt=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"})),Mt||(Mt=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"})),St||(St=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"})),Nt||(Nt=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"})),Et||(Et=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"})),zt||(zt=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"})),Ot||(Ot=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.472,d:"M45.22 104.418h-4.47"})),Pt||(Pt=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"})),Bt||(Bt=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"})),Ut||(Ut=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"})),Gt||(Gt=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"})),Wt||(Wt=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"})),Vt||(Vt=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"})),Ft||(Ft=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"})),Zt||(Zt=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"})),qt||(qt=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"})),gi||(gi=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"})),di||(di=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"})),ui||(ui=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"})),_i||(_i=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"})),fi||(fi=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"})),ki||(ki=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"})),vi||(vi=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"})),ji||(ji=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"})),bi||(bi=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"})),Mi||(Mi=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"})),Si||(Si=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"})),Ni||(Ni=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",zi="audience-selection-changed",Li="audience-selection-dismissed-items-error",Oi="audience-segmentation-creation-notice",Pi="audience-segmentation-creation-success-notice",Bi=1,Ui=3,Gi="audience-creation-edit-scope-notice",Wi="audience-creation-form";function PlaceholderTile({Widget:e}){const t=(0,c.useSelect)(e=>{const t=e(Q.oR).getConfiguredAudiences();return e(Z.K9).getConfigurableAudiences().some(e=>"DEFAULT_AUDIENCE"!==e.audienceType&&!t.includes(e.name))}),i=(0,c.useSelect)(e=>e(Ge.O4).getGoogleSupportURL({path:"/analytics/answer/12799087"})),{setValue:s}=(0,c.useDispatch)(d.n),n=(0,P.jsx)(O.A,{href:i,secondary:!0,external:!0});return(0,P.jsx)(e,{className:"googlesitekit-audience-segmentation-tile-placeholder",children:(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-tile-placeholder__container",children:[(0,P.jsx)(wi,{className:"googlesitekit-audience-segmentation-tile-placeholder__image"}),(0,P.jsxs)("div",{className:xe()("googlesitekit-audience-segmentation-tile-placeholder__body",{"googlesitekit-audience-segmentation-tile-placeholder__body--without-selectable-audiences":!t}),children:[(0,P.jsx)(T.A,{as:"h3",type:"title",size:"small",className:"googlesitekit-audience-segmentation-tile-placeholder__title",children:t?(0,u.__)("Compare your group to other groups","google-site-kit"):(0,u.__)("Create more visitor groups","google-site-kit")}),(0,P.jsx)("p",{className:"googlesitekit-audience-segmentation-tile-placeholder__description",children:t?(0,L.A)((0,u.__)("<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,P.jsx)(O.A,{onClick:()=>s(Ti,!0),secondary:!0})}):(0,L.A)((0,u.__)("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,P.jsx)(e,{noPadding:!0,children:(0,P.jsx)(AudienceTileLoading,{})}):(0,P.jsx)(PlaceholderTile,{Widget:e})}function Body({activeTileIndex:e,allTilesError:t,individualTileErrors:i,loading:s,topCitiesReportsLoaded:n,topContentReportsLoaded:o,topContentPageTitlesReportsLoaded:r,visibleAudiences:l,Widget:g}){const d=(0,E.dv)(),u=(0,ue.A)(),p=d===E.mp||d===E.Lg,m=(0,c.useInViewSelect)(e=>e(Z.K9).getOrSyncAvailableAudiences(),[]),h=(0,c.useInViewSelect)(e=>e(Q.oR).getConfiguredAudiences(),[]),[_,f]=(0,c.useSelect)(e=>e(Z.K9).getConfiguredSiteKitAndOtherAudiences())||[[],[]],y=(0,c.useSelect)(e=>e(Z.K9).hasAudiencePartialData(_)),k=(0,c.useInViewSelect)(e=>h?.reduce((t,i)=>(t[i]=e(Z.K9).isAudiencePartialData(i),t),{}),[h]),{report:v,reportError:x,siteKitAudiencesReport:A,totalPageviews:j,totalPageviewsReportError:I,topCitiesReport:b,topContentReport:M,topContentReportErrors:S,topContentPageTitlesReport:N,topContentPageTitlesReportErrors:w}=J({isSiteKitAudiencePartialData:y,siteKitAudiences:_,otherAudiences:f});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=_.some(t=>t.name===e),i=_.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=v?.rows?.find(({dimensionValues:t})=>t?.[0]?.value===e&&t?.[1]?.value===s);return[Number(n?.metricValues?.[0]?.value||0),Number(n?.metricValues?.[1]?.value||0),Number(n?.metricValues?.[2]?.value||0),Number(n?.metricValues?.[3]?.value||0)]}return{current:s("date_range_0"),previous:s("date_range_1")}}(e),r=n[0],a=o[0],l=n[1],c=o[1],g=n[2],d=o[2],u=n[3],p=o[3],h=b?.[t],f=M?.[t],x=N?.[t]?.rows?.reduce((e,t)=>(e[t.dimensionValues[0].value]=t.dimensionValues[1].value,e),{})||{},j=_.some(t=>t.name===e);let I=v,S=e;j&&y&&(I=A,S="new-visitors"===s?"new":"returning");const E=function(e,t){const i=e?.rows?.find(e=>e.dimensionValues?.[0]?.value===t);return 0===(i?.metricValues?.[0]?.value||0)}(I,S);return{audienceName:i,audienceSlug:s,visitors:r,prevVisitors:a,visitsPerVisitors:l,prevVisitsPerVisitors:c,pagesPerVisit:g,prevPagesPerVisit:d,pageviews:u,prevPageviews:p,topCities:h,topContent:f,topContentTitles:x,isZeroData:E,isPartialData:!j&&k[e]}}const T=Object.values(S).some(q.B)||Object.values(w).some(q.B),{dismissItem:D}=(0,c.useDispatch)(Q.oR),{fetchSyncAvailableCustomDimensions:R}=(0,c.useDispatch)(Z.K9),z=(0,a.useCallback)(e=>{D(`audience-tile-${e}`)},[D]);(0,a.useEffect)(()=>{!u&&T&&R()},[R,T,u]);let L=0;return(0,P.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[t&&!s&&(0,P.jsx)(Y,{Widget:g,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:d,visitors:u,prevVisitors:m,visitsPerVisitors:h,prevVisitsPerVisitors:_,pagesPerVisit:f,prevPagesPerVisit:y,pageviews:k,prevPageviews:v,topCities:x,topContent:A,topContentTitles:I,isZeroData:b,isPartialData:M}=C(t,a),S=x?.rows?(0,K.S)(x.rows):[];return!s&&n?.[t]&&o?.[t]&&r?.[t]&&void 0!==b&&void 0!==M?i[t].length>0?(0,P.jsx)(AudienceTileError,{audienceSlug:d,errors:i[t]},t):(0,P.jsx)(AudienceTile,{audienceTileNumber:L++,audienceSlug:d,title:c,infoTooltip:(0,P.jsx)(AudienceTooltipMessage,{audienceName:c,audienceSlug:d}),visitors:{currentValue:u,previousValue:m},visitsPerVisitor:{currentValue:h,previousValue:_},pagesPerVisit:{currentValue:f,previousValue:y},pageviews:{currentValue:k,previousValue:v},percentageOfTotalPageViews:0!==j?k/j:0,topCities:{dimensionValues:[S?.[0]?.dimensionValues?.[0],S?.[1]?.dimensionValues?.[0],S?.[2]?.dimensionValues?.[0]],metricValues:[S?.[0]?.metricValues?.[0],S?.[1]?.metricValues?.[0],S?.[2]?.metricValues?.[0]],total:u},topContent:{dimensionValues:[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:g,audienceResourceName:t,isZeroData:b,isPartialData:M,isTileHideable:l.length>1,onHideTile:()=>z(t)},t):(0,P.jsx)(g,{noPadding:!0,children:(0,P.jsx)(AudienceTileLoading,{})},t)}),!p&&(0,P.jsx)(MaybePlaceholderTile,{Widget:g,loading:s,allTilesError:t,visibleAudienceCount:l.length})]})}function Header({activeTileIndex:e,setActiveTile:t,visibleAudiences:i}){const s=(0,V.A)(),n=(0,c.useInViewSelect)(e=>e(Z.K9).getOrSyncAvailableAudiences(),[]);return(0,P.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,P.jsx)(AudienceTooltipMessage,{audienceName:i,audienceSlug:o});return(0,P.jsxs)(R.Tab,{"aria-label":i,children:[i,(0,P.jsx)(We.A,{title:r,tooltipClassName:"googlesitekit-info-tooltip__content--audience",onOpen:()=>{(0,W.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,E.dv)(),s=i===E.mp||i===E.Lg,n=(0,c.useInViewSelect)(e=>e(Q.oR).getConfiguredAudiences(),[]),o=(0,c.useInViewSelect)(e=>e(Z.K9).getOrSyncAvailableAudiences(),[]),[r,l]=(0,c.useSelect)(e=>e(Z.K9).getConfiguredSiteKitAndOtherAudiences())||[[],[]],g=(0,c.useSelect)(e=>e(Z.K9).hasAudiencePartialData(r)),{report:d,reportLoaded:u,reportError:p,siteKitAudiencesReport:m,siteKitAudiencesReportLoaded:h,siteKitAudiencesReportError:_,totalPageviewsReportLoaded:f,totalPageviewsReportError:y,topCitiesReportsLoaded:k,topCitiesReportErrors:v,topContentReportsLoaded:x,topContentReportErrors:A,topContentPageTitlesReportsLoaded:j,topContentPageTitlesReportErrors:I}=J({isSiteKitAudiencePartialData:g,siteKitAudiences:r,otherAudiences:l}),b=n?.reduce((e,t)=>(e[t]=[],[v,A,I].forEach(i=>{const s=i[t];s&&!(0,q.B)(s)&&e[t].push(s)}),e),{}),M=(0,c.useSelect)(e=>e(Q.oR).getDismissedItems()),{isDismissingItem:S}=(0,c.useSelect)(e=>e(Q.oR)),{dismissItem:N}=(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=M?.includes(`audience-tile-${s}`),o=r.some(e=>e.name===s);let a=d,l=s;if(o&&g){a=m;const e=r.find(e=>e.name===s)?.audienceSlug;l="new-visitors"===e?"new":"returning"}const c=AudienceTiles_hasZeroDataForAudience(a,l),u=i.length+t.length>0;n&&c&&u||(n&&!c&&e.push(s),t.push(s))}return[e,t]},[o,n,M,g,d,r,m]);const D=function(){const e=[];return d&&e.push(p),m&&e.push(_),!(!e.every(Boolean)&&!y)||n?.every(e=>b[e].length>0)}();(0,a.useEffect)(()=>{C.forEach(e=>{const t=`audience-tile-${e}`;w.current[t]||(N(t,{expiresInSeconds:1}),w.current[t]=!0)})},[C,N,S]);const R=(0,c.useSelect)(e=>e(Z.K9).isFetchingSyncAvailableCustomDimensions()),[z,L]=(0,a.useState)(T[0]),O=(0,a.useCallback)(e=>{const t=T.indexOf(e);return-1===t?0:t},[T]);(0,a.useEffect)(()=>{T.includes(z)||L(T[0])},[z,T]);const B=O(z),U=t||!u||!h||!f||!k||!x||!j||R;return(0,P.jsxs)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:[!1===D&&!U&&s&&T.length>0&&(0,P.jsx)(Header,{activeTileIndex:B,setActiveTile:L,visibleAudiences:T}),(0,P.jsx)(Body,{activeTileIndex:B,allTilesError:D,individualTileErrors:b,loading:U,topCitiesReportsLoaded:k,topContentReportsLoaded:x,topContentPageTitlesReportsLoaded:j,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 Vi=i(88273);const Fi=(0,a.forwardRef)(({className:e,children:t,Icon:i,SVGGraphic:s},n)=>(0,P.jsxs)("div",{ref:n,className:xe()("googlesitekit-lean-cta-banner",e),children:[(0,P.jsxs)("div",{className:"googlesitekit-lean-cta-banner__body",children:[i&&(0,P.jsx)("div",{className:"googlesitekit-lean-cta-banner__body-icon",children:(0,P.jsx)(i,{width:"32",height:"32"})}),(0,P.jsx)("div",{className:"googlesitekit-lean-cta-banner__body-content",children:t})]}),s&&(0,P.jsx)("div",{className:"googlesitekit-lean-cta-banner__graphic",children:(0,P.jsx)(s,{})})]}));Fi.propTypes={className:r().string,children:r().node.isRequired,Icon:r().elementType,SVGGraphic:r().elementType};const Hi=Fi;var Yi=i(70301);const Zi=(0,a.forwardRef)((e,t)=>{const i=(0,V.A)(),s=(0,ue.A)(),n=(0,c.useSelect)(e=>e(Q.oR).didSetAudiences()),o=(0,c.useSelect)(e=>e(Vi.i).getModuleIcon(F.L1)),r=(0,c.useSelect)(e=>e(Ge.O4).getSiteKitAdminSettingsURL({scrollTo:"visitor-groups"})),{setValue:a}=(0,c.useDispatch)(d.n),{navigateTo:l}=(0,c.useDispatch)(Yi.M),g=n?"no-longer-available":"none-selected";function p(){(0,W.sx)(`${i}_audiences-no-audiences`,"select_groups",g).finally(()=>{a(Ti,!0)})}return(0,P.jsxs)(Hi,{ref:t,className:"googlesitekit-no-audience-banner",Icon:o,SVGGraphic:wi,children:[(0,P.jsxs)(D.A,{children:[n&&(0,L.A)((0,u.__)("It looks like your visitor groups aren’t available anymore. <a>Select other groups</a>.","google-site-kit"),{a:(0,P.jsx)(O.A,{onClick:p,secondary:!0})}),!n&&(0,L.A)((0,u.__)("You don’t have any visitor groups selected. <a>Select groups</a>.","google-site-kit"),{a:(0,P.jsx)(O.A,{onClick:p,secondary:!0})})]}),!s&&(0,P.jsx)(D.A,{children:(0,L.A)((0,u.__)("You can deactivate this widget in <a>Settings</a>.","google-site-kit"),{a:(0,P.jsx)(O.A,{onClick:()=>{(0,W.sx)(`${i}_audiences-no-audiences`,"change_settings",g).finally(()=>{l(r)})},secondary:!0})})})]})}),Qi=(0,G.A)(Zi);function NoAudienceBannerWidget({Widget:e,WidgetNull:t}){const i=(0,V.A)(),s=(0,c.useSelect)(e=>{const t=e(Z.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,P.jsx)(e,{noPadding:!0,children:(0,P.jsx)(Qi,{onInView:()=>{(0,W.sx)(`${i}_audiences-no-audiences`,"view_banner",o?"no-longer-available":"none-selected")}})}):(0,P.jsx)(t,{})}NoAudienceBannerWidget.propTypes={Widget:r().elementType.isRequired,WidgetNull:r().elementType.isRequired};const qi=(0,l.A)({moduleName:F.L1})(NoAudienceBannerWidget);var Ki=i(79754);function AudienceTilesWidget({Widget:e}){const t=(0,c.useSelect)(e=>{const t=e(Z.K9).getOrSyncAvailableAudiences();return t?.map(e=>e.name)}),i=(0,c.useSelect)(e=>e(Q.oR).getConfiguredAudiences()),s=(0,c.useSelect)(e=>e(Z.K9).hasSyncedAudiences()),n=(0,c.useSelect)(e=>e(Z.K9).isSyncingAudiences()),{clearErrors:o,maybeSyncAvailableAudiences:r,syncAvailableAudiences:l}=(0,c.useDispatch)(Z.K9),d=(0,c.useSelect)(e=>e(Z.K9).isSettingUpAudiences()),u=(0,c.useSelect)(e=>e(Z.K9).getErrorForAction("syncAvailableAudiences"));if((0,a.useEffect)(()=>{s||n||d||r()},[s,n,d,r]),u){const t=(0,g.SG)(u);return(0,P.jsx)(Y,{errors:u,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,P.jsx)(AudienceTiles,{Widget:e,widgetLoading:!s||!t||!i}):s?(0,P.jsx)(qi,{Widget:e,WidgetNull:Ki.A}):(0,P.jsx)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:(0,P.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[(0,P.jsx)(e,{noPadding:!0,children:(0,P.jsx)(AudienceTileLoading,{})}),(0,P.jsx)(e,{noPadding:!0,children:(0,P.jsx)(AudienceTileLoading,{})})]})})}AudienceTilesWidget.propTypes={Widget:r().elementType.isRequired,WidgetNull:r().elementType.isRequired};const $i=(0,l.A)({moduleName:F.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=`${Z.bz}${e}`,l=(0,Ze.A)(Di,Ri),g=(0,c.useSelect)(e=>e(Q.oR).hasExpirableItem(r)),d=(0,c.useSelect)(e=>e(Q.oR).isExpirableItemActive(r)),[p,m]=(0,c.useSelect)(e=>e(Z.K9).getAudienceUserCountReportErrors())||[],h=[];m&&h.push(m),p&&h.push(p);const{setValues:_}=(0,c.useDispatch)(Ue.s),f=(0,c.useSelect)(t=>t(Q.oR).isItemDismissed(`audience-tile-${e}`)),y=(0,a.useCallback)(t=>{_(Di,{[Ri]:t.target.checked?l.concat([e]):l.filter(t=>t!==e),[zi]:!0})},[l,_,e]),k="DEFAULT_AUDIENCE"!==o&&(!1===g||d),v=l?.includes(e),x=`audience-selection-checkbox-${e}`;function ItemBadge(){return f?(0,P.jsx)(BadgeWithTooltip,{label:(0,u.__)("Temporarily hidden","google-site-kit"),tooltipTitle:(0,u.__)("Site Kit is collecting data for this group. Once data is available the group will be added to your dashboard.","google-site-kit")}):k?(0,P.jsx)(ts.A,{}):null}return(0,P.jsx)(is.y3,{id:x,slug:e,title:t,subtitle:s,description:i,isItemSelected:v,onCheckboxChange:y,suffix:h.length?"-":(0,W.Eo)(n),badge:(f||k)&&(0,P.jsx)(ItemBadge,{})})}function AudienceItemPreviewBlock(){return(0,P.jsxs)("div",{className:"googlesitekit-selection-panel__loading",children:[(0,P.jsxs)("div",{className:"googlesitekit-selection-panel__loading-left",children:[(0,P.jsx)(pe.A,{width:"90px",height:"20px",className:"googlesitekit-selection-panel__loading-item"}),(0,P.jsx)(pe.A,{width:"293px",height:"15px",className:"googlesitekit-selection-panel__loading-item"})]}),(0,P.jsx)("div",{className:"googlesitekit-selection-panel__loading-right",children:(0,P.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,P.jsxs)("div",{ref:o,className:xe()("googlesitekit-audience-segmentation-info-notice",e),children:[(0,P.jsx)(s,{width:"20",height:"20"}),(0,P.jsxs)("div",{className:"googlesitekit-audience-segmentation-info-notice__body",children:[(0,P.jsx)(D.A,{children:t}),i&&(0,P.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(d.n).getValue(Ti)),n=(0,c.useSelect)(e=>e(Z.K9).isFetchingSyncAvailableAudiences()),o=(0,Ze.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,P.jsx)(cs,{className:"googlesitekit-audience-selection-panel__add-group-notice",content:(0,u.__)("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,u.__)("Got it","google-site-kit"),Icon:ns,onDismiss:l})}AddGroupNotice.propTypes={savedItemSlugs:r().array};var gs=i(11763),ds=i(25797);function AudienceCreationErrorNotice({apiErrors:e,hasOAuthError:t}){const i=(0,V.A)(),s=Array.isArray(e)?e:[e],n=(0,c.useSelect)(e=>e(Ge.O4).getErrorTroubleshootingLinkURL({code:"analytics-4_insufficient_permissions"})),o=(0,c.useSelect)(e=>e(Z.K9).getServiceEntityAccessURL()),r=(0,c.useSelect)(e=>e(Ge.O4).getErrorTroubleshootingLinkURL({code:"access_denied"})),l=(0,c.useSelect)(e=>e(d.n).getValue(Ti)),p=s.length>0,m=s.some(e=>(0,g.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,W.sx)(`${i}_audiences-sidebar-create-audiences`,e)},[p,m,t,l,i]),!s.length&&!t)return null;let h,_;return t?_=(0,L.A)((0,u.__)("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,P.jsx)(O.A,{href:r,external:!0,hideExternalIndicator:!0,children:(0,u.__)("get help","google-site-kit")})}):m?(h=(0,u.__)("Insufficient permissions","google-site-kit"),_=(0,L.A)((0,u.__)("Contact your administrator. Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:(0,P.jsx)(O.A,{href:n,external:!0,hideExternalIndicator:!0,children:(0,u.__)("Get help","google-site-kit")})})):(h=(0,u.__)("Analytics update failed","google-site-kit"),_=(0,u.__)("Click on Create to try again.","google-site-kit")),(0,P.jsx)(ds.A,{className:"googlesitekit-audience-creation-error-notice",type:ds.A.TYPES.ERROR,title:h,description:_,ctaButton:m?{label:(0,u.__)("Request access","google-site-kit"),href:o,onClick:()=>{(0,W.sx)(`${i}_audiences-sidebar-create-audiences`,"insufficient_permissions_error_request_access")}}:void 0,hideIcon:!0})}function AudienceCreationNotice(){const e=(0,V.A)(),[t,s]=(0,a.useState)(!1),n=(0,c.useInViewSelect)(e=>{const{getConfigurableAudiences:t}=e(Z.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)(d.n),l=(0,c.useInViewSelect)(e=>e(Q.oR).isItemDismissed(Oi)),p=(0,c.useInViewSelect)(e=>e(Q.oR).isItemDismissed(Gi)),m=(0,c.useInViewSelect)(e=>e(Q.oR).hasScope(Z.S9)),h=(0,c.useSelect)(e=>e(d.n).getValue(Ti));const _=(0,Be.F)(i.g.location.href,{notification:"audience_segmentation"}),{setValues:f}=(0,c.useDispatch)(Ue.s),{setPermissionScopeError:y}=(0,c.useDispatch)(Q.oR),{createAudience:k,syncAvailableAudiences:v}=(0,c.useDispatch)(Z.K9),x=(0,Ze.A)(Wi,"autoSubmit"),A=(0,Ze.A)(Wi,"audienceToCreate"),[j,I]=(0,a.useState)([]),b=(0,a.useCallback)(async e=>{if(s(e),!m)return f(Wi,{autoSubmit:!0,audienceToCreate:e}),void y({code:g.db,message:(0,u.__)("Additional permissions are required to create a new audience in Analytics.","google-site-kit"),data:{status:403,scopes:[Z.S9],skipModal:!0,redirectURL:_}});f(Wi,{autoSubmit:!1,audienceToCreate:void 0});const{error:t}=await k(Z.fB[e]);I(t?[t]:[]),await v(),s(!1),t||r(Pi,!0)},[m,k,v,f,y,_,r]);const M=(0,c.useSelect)(e=>e(Ge.O4).getSetupErrorCode()),S=x&&"access_denied"===M;(0,a.useEffect)(()=>{!async function(){m&&x&&(r(Ti,!0),await b(A))}()},[A,b,m,x,r]);const N=!l&&n?.length<2;if((0,a.useEffect)(()=>{h&&N&&(0,W.sx)(`${e}_audiences-sidebar-create-audiences`,"view_notice")},[h,N,e]),(0,a.useEffect)(()=>{!h||m||p||(0,W.sx)(`${e}_audiences-sidebar-create-audiences`,"view_oauth_notice")},[m,p,h,e]),!N)return null;const E=Object.keys(Z.fB).filter(e=>!n.some(t=>t.audienceSlug===e));return(0,P.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice",children:[(0,P.jsx)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-header",children:(0,P.jsx)("p",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-title",children:(0,u.__)("Create groups suggested by Site Kit","google-site-kit")})}),(0,P.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-body",children:[E&&E.map(i=>(0,P.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience",children:[(0,P.jsxs)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience-details",children:[(0,P.jsx)(T.A,{as:"h3",type:"title",size:"small",children:Z.fB[i].displayName}),(0,P.jsx)("p",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience-description",children:Z.fB[i].description})]}),(0,P.jsx)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-audience-button",children:(0,P.jsx)(gs.A,{spinnerPosition:gs.k.BEFORE,onClick:()=>{(0,W.sx)(`${e}_audiences-sidebar-create-audiences`,"create_audience",i).finally(()=>{b(i)})},isSaving:t===i,children:(0,u.__)("Create","google-site-kit")})})]},i)),(0,P.jsx)("div",{className:"googlesitekit-audience-selection-panel__audience-creation-notice-dismiss",children:(0,P.jsx)(O.A,{onClick:function(){o(Oi)},children:(0,u.__)("No thanks","google-site-kit")})})]}),!m&&!p&&(0,P.jsx)(ds.A,{type:ds.A.TYPES.WARNING,description:(0,u.__)("Creating these groups require more data tracking. You will be directed to update your Analytics property.","google-site-kit"),dismissButton:{onClick:function(){(0,W.sx)(`${e}_audiences-sidebar-create-audiences`,"dismiss_oauth_notice").finally(()=>{o(Gi)})}},hideIcon:!0}),(j.length>0||S)&&(0,P.jsx)(AudienceCreationErrorNotice,{apiErrors:j,hasOAuthError:S})]})}function AudienceItems({savedItemSlugs:e=[]}){const[t,i]=(0,a.useState)(!0),{setExpirableItemTimers:s}=(0,c.useDispatch)(Q.oR),{syncAvailableAudiences:n}=(0,c.useDispatch)(Z.K9),o=(0,ue.A)(),r=(0,c.useSelect)(e=>e(d.n).getValue(Ti)),l=(0,c.useSelect)(e=>e(Z.K9).isFetchingSyncAvailableAudiences());(0,a.useEffect)(()=>{t&&r&&(i(!1),async function(){await n()}())},[t,r,n]);const g=(0,c.useInViewSelect)(e=>{const{getConfigurableAudiences:t,getReport:i,getAudiencesUserCountReportOptions:s,getConfigurableSiteKitAndOtherAudiences:n,hasAudiencePartialData:o}=e(Z.K9),r=t();if(void 0===r)return;if(!r.length)return[];const[a,l]=n(),c=o(a),g=e(Q.oR).getDateRangeDates({offsetDays:Z.f2}),d=c&&i({...g,metrics:[{name:"totalUsers"}],dimensions:[{name:"newVsReturning"}],reportID:"audience-segmentation_audience-items_component_newVsReturningReport"}),u=!1===c||!0===c&&l?.length>0?i(s(c?l:r)):{},{rows:p=[]}=d||{},{rows:m=[]}=u||{};function h(e,t){return e.find(e=>e?.dimensionValues?.[0]?.value===t)}return r.map(e=>{let t;return t="SITE_KIT_AUDIENCE"===e.audienceType&&c?h(p,"new-visitors"===e.audienceSlug?"new":"returning"):h(m,e.name),{...e,userCount:Number(t?.metricValues?.[0]?.value)||0}})});function p(e,{audienceType:t,description:i,displayName:s,name:n,userCount:o}){let r="";switch(t){case"DEFAULT_AUDIENCE":r=(0,u.__)("Created by default by Google Analytics","google-site-kit"),i="";break;case"SITE_KIT_AUDIENCE":r=(0,u.__)("Created by Site Kit","google-site-kit");break;case"USER_AUDIENCE":r=(0,u.__)("Already exists in your Analytics property","google-site-kit")}return{...e,[n]:{title:s,subtitle:i,description:r,userCount:o,audienceType:t}}}const m=g?.filter(({name:t})=>e.includes(t)).reduce(p,{}),h=g?.filter(({name:t})=>!e.includes(t)).reduce(p,{}),_=(0,c.useSelect)(e=>{if(void 0===g)return;const{hasFinishedResolution:t,hasExpirableItem:i}=e(Q.oR);return t("getExpirableItems")?g.filter(({audienceType:e,name:t})=>"DEFAULT_AUDIENCE"!==e&&!i(`${Z.bz}${t}`)).map(({name:e})=>`${Z.bz}${e}`):void 0});return(0,es.A)(()=>{r&&void 0!==_&&_.length&&s(_.map(e=>({slug:e,expiresInSeconds:4*W.Du})))},[r,s,_]),(0,P.jsx)(is.DW,{availableItemsTitle:(0,u.__)("Additional groups","google-site-kit"),availableSavedItems:m,availableUnsavedItems:h,ItemComponent:l?AudienceItemPreviewBlock:AudienceItem,savedItemSlugs:e,notice:(0,P.jsxs)(a.Fragment,{children:[(0,P.jsx)(AddGroupNotice,{}),!o&&(0,P.jsx)(AudienceCreationNotice,{})]})})}function RequestAccessButton({requestAccessURL:e}){const t=(0,V.A)();return(0,P.jsx)(R.Button,{className:"googlesitekit-audience-selection-panel__error-notice-action",href:e,target:"_blank",onClick:()=>{(0,W.sx)(`${t}_audiences-sidebar`,"insufficient_permissions_error_request_access")},tertiary:!0,children:(0,u.__)("Request access","google-site-kit")})}function RetryButton({handleRetry:e}){const t=(0,V.A)();return(0,P.jsx)(R.Button,{className:"googlesitekit-audience-selection-panel__error-notice-action",onClick:()=>{e(),(0,W.sx)(`${t}_audiences-sidebar`,"data_loading_error_retry")},tertiary:!0,children:(0,u.__)("Retry","google-site-kit")})}function SyncErrorNotice(){const e=(0,V.A)(),t=(0,c.useSelect)(e=>e(Z.K9).getErrorForAction("syncAvailableAudiences")),[i,s]=(0,c.useInViewSelect)(e=>e(Z.K9).getAudienceUserCountReportErrors())||[],n=(0,c.useSelect)(e=>e(Ge.O4).getErrorTroubleshootingLinkURL({code:"analytics-4_insufficient_permissions"})),o=(0,c.useSelect)(e=>e(d.n).getValue(Ti)),{clearError:r,syncAvailableAudiences:l}=(0,c.useDispatch)(Z.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,_=m.some(e=>(0,g.SG)(e));if((0,a.useEffect)(()=>{o&&h&&(0,W.sx)(`${e}_audiences-sidebar`,_?"insufficient_permissions_error":"data_loading_error")},[h,_,o,e]),!m.length)return null;const f=[s,i].some(e=>!!e);return(0,P.jsx)(ds.A,{className:"googlesitekit-audience-selection-panel__error-notice googlesitekit-notice--error googlesitekit-notice--small googlesitekit-notice--square",type:ds.A.TYPES.ERROR,description:_?(0,L.A)((0,u.__)("Insufficient permissions, contact your administrator. Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:(0,P.jsx)(O.A,{href:n,external:!0,hideExternalIndicator:!0,children:(0,u.__)("Get help","google-site-kit")})}):(0,u.__)("Data loading failed","google-site-kit"),hideIcon:!0,children:_||f?(0,P.jsx)(z.A,{moduleSlug:"analytics-4",error:m,buttonVariant:"danger",RequestAccessButton,RetryButton,hideGetHelpLink:!0}):(0,P.jsx)(RetryButton,{handleRetry:p})})}function Footer({isOpen:e,closePanel:t,savedItemSlugs:i}){const s=(0,V.A)(),n=(0,Ze.A)(Di,Ri),{setValues:o}=(0,c.useDispatch)(Ue.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-"))}),g=(0,c.useSelect)(e=>e(Z.K9).getOrSyncAvailableAudiences()),{saveUserAudienceSettings:d,removeDismissedItems:u}=(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 d({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 u(...i)),t&&o(Di,{[Li]:t}))}return{error:t}},[l,u,d,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=g?.find(({name:t})=>e===t);return t?.audienceType===i});return`${e[i]}:${s.length}`}).join(",");(0,W.sx)(`${s}_audiences-sidebar`,"audiences_sidebar_save",i)},[g,p,s]),_=(0,a.useCallback)(()=>{(0,W.sx)(`${s}_audiences-sidebar`,"audiences_sidebar_cancel")},[s]);return(0,P.jsx)(is.gy,{savedItemSlugs:i,selectedItemSlugs:n,saveSettings:m,minSelectedItemCount:Bi,maxSelectedItemCount:Ui,isBusy:r,isOpen:e,closePanel:t,onSaveSuccess:h,onCancel:_})}function Header_Header({closePanel:e}){const t=(0,ue.A)(),i=(0,c.useSelect)(e=>e(Ge.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,P.jsx)(is.W4,{title:(0,u.__)("Select visitor groups","google-site-kit"),onCloseClick:e,children:!t&&(0,P.jsx)(D.A,{children:(0,L.A)((0,u.__)("You can deactivate this widget in <link><strong>Settings</strong></link>","google-site-kit"),{link:(0,P.jsx)(O.A,{onClick:o,disabled:s,secondary:!0}),strong:(0,P.jsx)("strong",{})})})})}function LearnMoreLink(){const e=(0,c.useSelect)(e=>e(Ge.O4).getGoogleSupportURL({path:"/analytics/answer/12799087"}));return(0,P.jsx)("div",{className:"googlesitekit-audience-selection-panel__learn-more",children:(0,L.A)((0,u.__)("Learn more about grouping site visitors and audiences in <link><strong>Analytics</strong></link>","google-site-kit"),{link:(0,P.jsx)(O.A,{href:e,secondary:!0,external:!0}),strong:(0,P.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 us=i(19793);function AudienceCreationSuccessNotice(){const e=(0,V.A)(),{setValue:t}=(0,c.useDispatch)(d.n),i=(0,c.useSelect)(e=>e(d.n).getValue(Pi)),s=(0,c.useSelect)(e=>e(d.n).getValue(Ti));return(0,a.useEffect)(()=>{s&&i&&(0,W.sx)(`${e}_audiences-sidebar-create-audiences-success`,"view_notification")},[s,i,e]),i?(0,P.jsxs)("div",{className:"googlesitekit-audience-selection-panel__success-notice",children:[(0,P.jsx)("div",{className:"googlesitekit-audience-selection-panel__success-notice-icon",children:(0,P.jsx)(us.A,{width:24,height:24})}),(0,P.jsx)("p",{className:"googlesitekit-audience-selection-panel__success-notice-message",children:(0,u.__)("Visitor group created successfully!","google-site-kit")}),(0,P.jsx)("div",{className:"googlesitekit-audience-selection-panel__success-notice-actions",children:(0,P.jsx)(R.Button,{onClick:()=>{(0,W.sx)(`${e}_audiences-sidebar-create-audiences-success`,"dismiss_notification").finally(()=>{t(Pi,!1)})},tertiary:!0,children:(0,u.__)("Got it","google-site-kit")})})]}):null}var ps=i(52696),ms=i(65695);function SaveErrorNotice({savedItemSlugs:e}){const t=(0,Ze.A)(Di,Ri),i=(0,Ze.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<Bi?l=(0,u.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,u._n)("Select at least %1$d group (%2$d selected)","Select at least %1$d groups (%2$d selected)",Bi,"google-site-kit"),Bi,r):r>Ui&&(l=(0,u.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,u.__)("Select up to %1$d groups (%2$d selected)","google-site-kit"),Ui,r));const c=(0,a.useMemo)(()=>!(0,n.isEqual)((0,W.N9)(t),(0,W.N9)(e)),[t,e]);if(!l&&!o&&!i)return null;let g=o||i;return c&&l&&(g={message:l}),(0,P.jsx)(ms.A,{error:g})}function Panel(){const e=(0,V.A)(),t=(0,c.useSelect)(e=>e(d.n).getValue(Ti)),i=(0,c.useSelect)(e=>e(Z.K9).isFetchingSyncAvailableAudiences()),s=(0,c.useInViewSelect)(e=>{const{getConfigurableAudiences:t}=e(Z.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,Ze.A)(Wi,"autoSubmit"),{setValues:o}=(0,c.useDispatch)(Ue.s),{setValue:r}=(0,c.useDispatch)(d.n),l=(0,a.useCallback)(()=>{o(Di,{[Ri]:s,[zi]:!1}),(0,W.sx)(`${e}_audiences-sidebar`,"audiences_sidebar_view")},[s,o,e]),g=(0,a.useCallback)(()=>{t&&(r(Ti,!1),r(Pi,!1))},[r,t]);return(0,P.jsxs)(is.Ay,{className:"googlesitekit-audience-selection-panel",closePanel:g,isOpen:t||n,isLoading:i,onOpen:l,children:[(0,P.jsx)(Header_Header,{closePanel:g}),(0,P.jsxs)(is.kA,{className:"googlesitekit-audience-selection-panel__content",children:[(0,P.jsx)(AudienceItems,{savedItemSlugs:s}),(0,P.jsx)(LearnMoreLink,{}),(0,P.jsx)(SaveErrorNotice,{savedItemSlugs:s}),(0,P.jsx)(SyncErrorNotice,{}),(0,P.jsx)(AudienceCreationSuccessNotice,{})]}),(0,P.jsx)(Footer,{closePanel:g,isOpen:t,savedItemSlugs:s})]})}function AudienceSelectionPanel(){const e=(0,c.useSelect)(e=>e(d.n).getValue(Ti));return(0,P.jsx)(Ji.Ay,{value:{key:"AudienceSelectionPanel",value:!!e},children:(0,P.jsx)(Panel,{})})}var hs=i(44148);function AudienceAreaFooter(){const e=(0,ue.A)(),t=(0,c.useSelect)(e=>e(Q.oR).getDateRangeDates({offsetDays:Z.f2})),i=(0,c.useSelect)(i=>e?null:i(Z.K9).getServiceReportURL("audiences",{dates:t}));return(0,c.useSelect)(e=>e(Vi.i).isModuleConnected(F.L1))?(0,P.jsx)(hs.A,{className:"googlesitekit-audience-widget__source",name:(0,u._x)("Analytics","Service name","google-site-kit"),href:i,external:!0}):null}var _s,fs,ys,ks,vs=i(674);function ChangeGroupsLink(){const e=(0,V.A)(),t=(0,c.useInViewSelect)(e=>e(Z.K9).getConfigurableAudiences(),[]),{setValue:i}=(0,c.useDispatch)(d.n),s=(0,a.useCallback)(()=>{i(Ti,!0),(0,W.sx)(`${e}_audiences-sidebar`,"change_groups")},[i,e]);return Array.isArray(t)&&t?.length>0?(0,P.jsx)(O.A,{className:"googlesitekit-widget-area__cta-link",onClick:s,leadingIcon:(0,P.jsx)(vs.A,{width:22,height:22}),secondary:!0,linkButton:!0,children:(0,u.__)("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),_s||(_s=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)"},fs||(fs=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"}))),ks||(ks=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 js,Is,bs,Ms;function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Ss.apply(null,arguments)}const Ns=e=>a.createElement("svg",Ss({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 553 146"},e),a.createElement("g",{clipPath:"url(#audience-connect-analytics-cta-graphic-tablet_svg__a)"},js||(js=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"}))),bs||(bs=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})))),Ms||(Ms=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 Es=i(65929);function ConnectAnalyticsCTAWidget({Widget:e}){const t=(0,E.dv)()===E.Lg,i=(0,Es.A)(F.L1),s=(0,c.useSelect)(e=>e(Vi.i).getModuleIcon(F.L1)),n=t?(0,P.jsx)(D.A,{children:(0,L.A)((0,u.__)("Google Analytics is disconnected, your audience metrics can’t be displayed. <a>Connect Google Analytics</a>","google-site-kit"),{a:(0,P.jsx)(O.A,{onClick:i,secondary:!0})})}):(0,P.jsxs)(a.Fragment,{children:[(0,P.jsx)(D.A,{children:(0,u.__)("Google Analytics is disconnected, your audience metrics can’t be displayed","google-site-kit")}),(0,P.jsx)(O.A,{onClick:i,secondary:!0,children:(0,u.__)("Connect Google Analytics","google-site-kit")})]});return(0,P.jsx)(e,{noPadding:!0,children:(0,P.jsx)(Hi,{Icon:s,SVGGraphic:t?Ns:As,children:n})})}ConnectAnalyticsCTAWidget.propTypes={Widget:r().elementType.isRequired};const ws=(0,G.A)(cs);function InfoNoticeWidget({Widget:e,WidgetNull:t}){const i=(0,V.A)(),s=(0,c.useInViewSelect)(e=>{const t=e(Z.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),[]),g=(0,c.useSelect)(e=>e(d.n).getValue(p)),_=(0,c.useInViewSelect)(e=>e(Q.oR).getPromptDismissCount(m),[]),{dismissPrompt:f}=(0,c.useDispatch)(Q.oR),y=(0,a.useCallback)(()=>{void 0!==_&&(0,W.sx)(`${i}_audiences-info-notice`,"dismiss_notice",h[_].slug).finally(()=>{const e=2*W.Du;f(m,{expiresInSeconds:_+1<r?e:0})})},[_,f,r,i]);if(!0!==o||l||void 0===_||_>=r||!0===g)return(0,P.jsx)(t,{});const{slug:k,content:v}=h[_];return(0,P.jsx)(e,{noPadding:!0,children:(0,P.jsx)(ws,{content:v,dismissLabel:(0,u.__)("Got it","google-site-kit"),onDismiss:y,onInView:()=>{(0,W.sx)(`${i}_audiences-info-notice`,"view_notice",k)}})})}InfoNoticeWidget.propTypes={Widget:r().elementType.isRequired,WidgetNull:r().elementType.isRequired};const Cs=(0,l.A)({moduleName:F.L1})(InfoNoticeWidget);var Ts=i(15844);function SecondaryUserSetupWidget({Widget:e}){const[t,i]=(0,a.useState)(null),s=(0,c.useSelect)(e=>e(Z.K9).isSettingUpAudiences()),{enableSecondaryUserAudienceGroup:n}=(0,c.useDispatch)(Z.K9);return(0,Ts.A)(()=>{s||(async()=>{const{error:e}=await n();e&&i(e)})()}),t?(0,P.jsx)(Y,{Widget:e,errors:t,onRetry:async function(){i(null);const{error:e}=await n();e&&i(e)},showRetryButton:!(0,g.SG)(t)}):(0,P.jsx)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:(0,P.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[(0,P.jsx)(e,{noPadding:!0,children:(0,P.jsx)(AudienceTileLoading,{})}),(0,P.jsx)(e,{noPadding:!0,children:(0,P.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(Z.K9).isSettingUpAudiences());return(0,Ts.A)(()=>{o||n()}),!t.length&&!s.length||i?(0,P.jsx)(e,{className:"googlesitekit-widget-audience-tiles",noPadding:!0,children:(0,P.jsxs)("div",{className:"googlesitekit-widget-audience-tiles__body",children:[(0,P.jsx)(e,{noPadding:!0,children:(0,P.jsx)(AudienceTileLoading,{})}),(0,P.jsx)(e,{noPadding:!0,children:(0,P.jsx)(AudienceTileLoading,{})})]})}):(0,P.jsx)(Y,{Widget:e,errors:t,onRetry:n,failedAudiences:s,showRetryButton:!(0,g.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:()=>d,N_:()=>v,O5:()=>k,Ql:()=>m,Qr:()=>h,XH:()=>f,r0:()=>g,sq:()=>_,tt:()=>u});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".',g=60,d=60*g,u=24*d,p=7*u;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 _(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 f(e){n()(h(e),l);const[t,i,s]=e.split("-");return new Date(t,i-1,s)}function y(e,t){return _(v(e,t*u))}function k(e){const t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}function v(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)},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},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:()=>d,CONTEXT_ENTITY_DASHBOARD_SPEED:()=>g,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:()=>u});const s="mainDashboardKeyMetrics",n="mainDashboardTraffic",o="mainDashboardContent",r="mainDashboardSpeed",a="mainDashboardMonetization",l="entityDashboardTraffic",c="entityDashboardContent",g="entityDashboardSpeed",d="entityDashboardMonetization",u={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:g,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:d}},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),g=i(49383),d=i(85149),u=i(62540);function ModalDialog({className:e="",dialogActive:t=!1,handleCancel:i=null,onOpen:s=null,onClose:n=null,title:o=null,provides:p,handleConfirm:m,subtitle:h,confirmButton:_=null,notes:f=[],danger:y=!1,inProgress:k=!1,small:v=!1,medium:x=!1,buttonLink:A=null}){const j=`googlesitekit-dialog-description-${(0,a.A)(ModalDialog)}`,I=!(!p||!p.length);return(0,u.jsxs)(g.Dialog,{open:t,onOpen:s,onClose:n,"aria-describedby":I?j:void 0,tabIndex:"-1",className:r()(e,{"googlesitekit-dialog-sm":v,"googlesitekit-dialog-md":x}),children:[(0,u.jsxs)(g.DialogTitle,{children:[y&&(0,u.jsx)(d.A,{width:28,height:28}),o]}),h?(0,u.jsx)("p",{className:"mdc-dialog__lead",children:h}):[],(0,u.jsxs)(g.DialogContent,{children:[I&&(0,u.jsx)("section",{id:j,className:"mdc-dialog__provides",children:(0,u.jsx)("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive",children:p.map(e=>(0,u.jsx)("li",{className:"mdc-list-item",children:(0,u.jsx)("span",{className:"mdc-list-item__text",children:e})},e))})}),f.length>0&&(0,u.jsx)("section",{className:"mdc-dialog__notes",children:f.map((e,t)=>(0,u.jsxs)("p",{className:"mdc-dialog__note",children:["string"==typeof e&&(0,l.A)((0,c.sprintf)(/* translators: %s is replaced with some sub-note text. */ /* translators: %s is replaced with some sub-note text. */ (0,c.__)("<strong>Note:</strong> %s","google-site-kit"),e),{strong:(0,u.jsx)("strong",{})}),"function"==typeof e&&(0,u.jsx)(e,{})]},`note-${t}`))})]}),(0,u.jsxs)(g.DialogFooter,{children:[(0,u.jsx)(g.Button,{className:"mdc-dialog__cancel-button",onClick:i,disabled:k,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),A?(0,u.jsx)(g.Button,{href:A,onClick:m,target:"_blank",danger:y,children:_}):(0,u.jsx)(g.SpinnerButton,{onClick:m,danger:y,disabled:k,isSaving:k,children:_||(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),g=i(5855),d=i(38432),u=i(62540);function NewBadge({tooltipTitle:e,learnMoreLink:t,forceOpen:i,hasLeftSpacing:s,hasNoSpacing:n,onLearnMoreClick:o=()=>{}}){const p=(0,u.jsx)(g.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,u.jsx)(c.Tooltip,{tooltipClassName:"googlesitekit-new-badge__tooltip",title:(0,u.jsxs)(a.Fragment,{children:[e,(0,u.jsx)("br",{}),(0,u.jsx)(d.A,{href:t,onClick: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 g=(0,r.A)(e);return(0,a.jsx)(o.A,{onClick:function(e){e.persist(),g.clickLearnMore(n?.label,n?.value)},href:i,"aria-label":s,external:l,...c,children:t})}LearnMoreLink.propTypes={id:n().string,label:n().string,url:n().string,ariaLabel:n().string,gaTrackingEventArgs:n().shape({label:n().string,value:n().string}),external:n().bool}},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)}},62779:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(82871),n=i(63696),o=i(13606),r=i(7076),a=i(50539),l=i(59865),c=i(49993),g=i(94656),d=i(38432),u=i(29785),p=i(70301),m=i(65054),h=i(62659),_=i(62540);const f=function ResetButton({children:e}){const t=(0,a.useSelect)(e=>e(u.O4).getAdminURL("googlesitekit-splash",{notification:"reset_success"})),i=(0,a.useSelect)(e=>e(u.O4).isDoingReset()),f=(0,a.useSelect)(e=>e(p.M).isNavigatingTo(t||"")),[y,k]=(0,n.useState)(!1),[v,x]=(0,n.useState)(!1),A=(0,r.d)(k,3e3);(0,n.useEffect)(()=>{i||f?k(!0):A(!1)},[i,f,A]);const{reset:j}=(0,a.useDispatch)(u.O4),{navigateTo:I}=(0,a.useDispatch)(p.M),b=(0,h.A)(),M=(0,n.useCallback)(async()=>{await j(),await(0,c.IL)(),await(0,m.sx)(b,"reset_plugin"),I(t)},[I,t,j,b]),S=(0,n.useCallback)(()=>{x(!0)},[]),N=(0,n.useCallback)(()=>{x(!1)},[]);return(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)(d.A,{className:"googlesitekit-reset-button",onClick:S,children:e||(0,s.__)("Reset Site Kit","google-site-kit")}),(0,_.jsx)(g.A,{children:(0,_.jsx)(l.A,{dialogActive:v,handleConfirm:M,handleCancel:N,onClose:N,title:(0,s.__)("Reset Site Kit","google-site-kit"),subtitle:(0,o.A)((0,s.__)("Resetting will disconnect all users and remove all Site Kit settings and data within WordPress. <br />You and any other users who wish to use Site Kit will need to reconnect to restore access.","google-site-kit"),{br:(0,_.jsx)("br",{})}),confirmButton:(0,s.__)("Reset","google-site-kit"),inProgress:y,danger:!0,small:!0})})]})}},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),g=i(82871),d=i(6730),u=i(19826),p=i(67510),m=i(13047),h=i(62540);class ErrorHandler extends a.Component{constructor(e){super(e),this.state={error:null,info:null,copied:!1}}componentDidCatch(e,t){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,g.__)("Site Kit encountered an error","google-site-kit"),description:(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)(d.A,{message:t.message,componentStack:i.componentStack}),(0,h.jsxs)("pre",{className:"googlesitekit-overflow-auto",children:[t.message,i.componentStack]})]})}):e}}ErrorHandler.contextType=u.Ay,ErrorHandler.propTypes={children:n().node.isRequired};const _=ErrorHandler;var f=i(79961);const{Consumer:y,Provider:k}=f.A,v=k;var x=i(84895),A=i(82246),j=i(11999),I=i(70301),b=i(97345),M=i(78990),S=i(94656);const N=function AuthenticatedPermissionsModal(){const e=(0,l.useRegistry)(),t=(0,l.useSelect)(e=>e(b.oR).getPermissionScopeError()),s=(0,l.useSelect)(e=>e(b.oR).getUnsatisfiedScopes()),n=(0,l.useSelect)(e=>e(b.oR).getConnectURL({additionalScopes:t?.data?.scopes,redirectURL:t?.data?.redirectURL||i.g.location.href,errorRedirectURL:t?.data?.errorRedirectURL})),{clearPermissionScopeError:o}=(0,l.useDispatch)(b.oR),{navigateTo:r}=(0,l.useDispatch)(I.M),{setValues:c}=(0,l.useDispatch)(j.s),d=(0,a.useCallback)(()=>{o()},[o]),u=(0,a.useCallback)(async()=>{c(b.$8,{permissionsError:t}),await(0,M.mR)(e),r(n)},[e,n,r,t,c]);return(0,a.useEffect)(()=>{!async function(){t?.data?.skipModal&&t?.data?.scopes?.length&&await u()}()},[u,t]),t?t?.data?.scopes?.length?t?.data?.skipModal||s&&t?.data?.scopes.every(e=>s.includes(e))?null:(0,h.jsx)(S.A,{children:(0,h.jsx)(A.A,{title:(0,g.__)("Additional Permissions Required","google-site-kit"),subtitle:t.message,confirmButton:(0,g.__)("Proceed","google-site-kit"),handleConfirm:u,handleCancel:d,onClose:d,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 E=function PermissionsModal(){return(0,l.useSelect)(e=>e(b.oR).isAuthenticated())?(0,h.jsx)(N,{}):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,M.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)(b.oR);(0,C.A)(()=>{t(e)});const s=(0,l.useSelect)(e=>e(b.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),z=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)(v,{value:x.t,children:(0,h.jsx)(u.Kq,{value:i,children:(0,h.jsx)(r.A,{theme:s(),children:(0,h.jsxs)(_,{children:[(0,h.jsxs)(w,{children:[e,i&&(0,h.jsx)(FeatureTours,{})]}),(0,z.A)(i)&&(0,h.jsx)(E,{})]})})})})})})})}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:()=>j});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:g,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:m,isAuthenticated:h,userRoles:_}=i.g._googlesitekitTrackingData||{},f={activeModules:c,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:m,isSiteKitScreen:g,userRoles:_,isAuthenticated:h,pluginVersion:"1.177.0"},{enableTracking:y,disableTracking:k,isTrackingEnabled:v,initializeSnippet:x,trackEvent:A,trackEventOnce:j}=function(e,t=i.g,c=i.g){const g={...l,...e};g.referenceSiteURL&&(g.referenceSiteURL=g.referenceSiteURL.toString().replace(/\/+$/,""));const d=function(e,t){const s=r(t);let l;const{activeModules:c,referenceSiteURL:g,userIDHash:d,userRoles:u=[],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=u?.length?u.join(","):"";s("js",new Date),s("config",e.trackingID,{groups:"site_kit",send_page_view:e.isSiteKitScreen,domain:g,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:d}});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}`}}}(g,t),u=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()})}}(g,t,d,c),p={};return{enableTracking:function(){g.trackingEnabled=!0},disableTracking:function(){g.trackingEnabled=!1},initializeSnippet:d,isTrackingEnabled:function(){return!!g.trackingEnabled},trackEvent:u,trackEventOnce:function(...e){const t=JSON.stringify(e);p[t]||(p[t]=(0,s.once)(u)),p[t](...e)}}}(f);function I(e){e?y():k()}g&&d&&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}}},65573:(e,t,i)=>{i.d(t,{Ax:()=>c,B$:()=>f,Dc:()=>_,Fy:()=>h,KM:()=>a,Tk:()=>d,W:()=>l,a3:()=>o,aq:()=>r,b6:()=>g,cz:()=>p,oG:()=>m,we:()=>u});var s=i(82871),n=i(80);const o="purpose",r="postFrequency",a="goals",l=[o,r,a],c={[o]:1,[r]:1,[a]:3},g="googlesitekit-user-input-currently-editing",d="user_input_question_number",u="user_input_question_snapshot",p="user-input-legacy-site-purpose-dismissed-item",m={publish_blog:[n.nc.CONTACT,n.nc.GENERATE_LEAD,n.nc.SUBMIT_LEAD_FORM],publish_news:[n.nc.CONTACT,n.nc.GENERATE_LEAD,n.nc.SUBMIT_LEAD_FORM],monetize_content:[],sell_products_or_service:[n.nc.PURCHASE,n.nc.ADD_TO_CART],sell_products:[n.nc.PURCHASE,n.nc.ADD_TO_CART],provide_services:[n.nc.CONTACT,n.nc.GENERATE_LEAD,n.nc.SUBMIT_LEAD_FORM],share_portfolio:[n.nc.CONTACT,n.nc.GENERATE_LEAD,n.nc.SUBMIT_LEAD_FORM],other:[]};function h(){const e=(0,s.__)("Based on your answer, Site Kit will suggest the metrics you see on your dashboard to help you track how close you’re getting to your specific goals","google-site-kit");return[{title:(0,s.__)("What is the main purpose of this site?","google-site-kit"),description:e},{title:(0,s.__)("How often do you create new content for this site?","google-site-kit"),description:e},{title:(0,s.__)("What are your top 3 goals for this site?","google-site-kit"),description:e}]}function _(){return{USER_INPUT_ANSWERS_PURPOSE:{sell_products_or_service:(0,s.__)("Sell products or services","google-site-kit"),sell_products:(0,s.__)("Sell products","google-site-kit"),provide_services:(0,s.__)("Provide services","google-site-kit"),monetize_content:(0,s.__)("Monetize content","google-site-kit"),publish_blog:(0,s.__)("Publish a blog","google-site-kit"),publish_news:(0,s.__)("Publish news content","google-site-kit"),share_portfolio:(0,s.__)("Portfolio or business card","google-site-kit"),other:(0,s.__)("Other","google-site-kit")},USER_INPUT_ANSWERS_POST_FREQUENCY:{never:(0,s.__)("Never","google-site-kit"),daily:(0,s.__)("Daily","google-site-kit"),weekly:(0,s.__)("Weekly","google-site-kit"),monthly:(0,s.__)("Monthly","google-site-kit"),other:(0,s.__)("Other","google-site-kit")},USER_INPUT_ANSWERS_GOALS:{retaining_visitors:(0,s.__)("Retain visitors, turn them into loyal readers or customers","google-site-kit"),improving_performance:(0,s.__)("Improve speed and performance","google-site-kit"),finding_new_topics:(0,s.__)("Find new topics to write about that connect with my audience","google-site-kit"),growing_audience:(0,s.__)("Grow my audience","google-site-kit"),expanding_business:(0,s.__)("Expand my business into new cities, states or markets","google-site-kit"),generating_revenue:(0,s.__)("Generate more revenue","google-site-kit"),generating_leads:(0,s.__)("Generate leads","google-site-kit"),help_better_rank:(0,s.__)("Help my content rank in a better position in Google search results","google-site-kit"),understanding_content_performance:(0,s.__)("Understand which content is performing best","google-site-kit"),encourage_to_post:(0,s.__)("Encouragement to post more frequently","google-site-kit"),other:(0,s.__)("Other","google-site-kit")}}}function f(){return{USER_INPUT_ANSWERS_PURPOSE:{sell_products_or_service:(0,s.__)("E.g. selling products like devices, apparel, equipment, etc. or offering services like courses, consulting, tutoring, etc.","google-site-kit"),sell_products:(0,s.__)("E.g. selling devices, apparel, equipment, etc.","google-site-kit"),provide_services:(0,s.__)("E.g. offering courses, consulting, tutoring, etc.","google-site-kit"),monetize_content:(0,s.__)("Using display ads, affiliate links, sponsored content, etc.","google-site-kit"),publish_blog:(0,s.__)("Writing on a topic you’re passionate about, no focus on monetizing content","google-site-kit"),publish_news:(0,s.__)("E.g. local news, investigative pieces, interviews, etc.","google-site-kit"),share_portfolio:(0,s.__)("My website represents me or my company","google-site-kit"),other:void 0}}}},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:()=>u});var s=i(63696),n=i(50539),o=i(29785),r=i(97345),a=i(88273),l=i(70301),c=i(49993),g=i(65054),d=i(62659);function u(e){const t=(0,d.A)(),i=(0,n.useSelect)(t=>t(a.i).getModule(e)),u=(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),_=(0,s.useCallback)(async()=>{const{error:i,response:s}=await p(e);i?h({id:`${e}-setup-error`,description:i.message}):(await(0,g.sx)(`${t}_widget-activation-cta`,"activate_module",e),await(0,c.SO)("module_setup",e,{ttl:300}),m(s.moduleReauthURL))},[p,e,m,h,t]);return i?.name&&u?_: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 g(e){return`notification/${e}/viewed`}function d(e){return(0,r.useSelect)(t=>!!t(a.n).getValue(g(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:g}=(0,r.useDispatch)(l.D),u=!!s?.isIntersecting,p=d(e),m=(0,o.useRef)();function h(){m.current&&clearTimeout(m.current)}return(0,o.useEffect)(()=>(!p&&u?(h(),m.current=setTimeout(()=>{s?.isIntersecting&&(n(d.getKey(e),!0),g(e))},3e3)):!u&&m.current&&h(),()=>{h()}),[p,u,n,g,e,s]),null}d.getKey=g,ViewedStateObserver.propTypes={id:n().string,observeRef:n().object,threshold:n().number};var u=i(68761),p=i(62540);function Notification({id:e,className:t,gaTrackingEventArgs:i,children:s,onView:n}){const a=(0,o.useRef)(),c=d(e),g=(0,u.A)(e,i?.category,{viewAction:i?.viewAction}),[m,h]=(0,o.useState)(!1),_=(0,r.useSelect)(t=>t(l.D).getNotificationSeenDates(e)),{dismissNotification:f}=(0,r.useDispatch)(l.D);return(0,o.useEffect)(()=>{!m&&c&&(g.view(i?.label,i?.value),n?.(),h(!0)),_?.length>=3&&f(e,{skipHidingFromQueue:!0})},[c,g,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),g=i(83891),d=i(41671),u=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",_="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9IjIwMiIgdmlld0JveD0iMCAwIDQwMCAyMDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NC44NTc1IDk3LjYxNjZDMTA1Ljg1NyAxMzQuMDIgMTUzLjIwMSAxMDYuMTIzIDE4MS4zNTcgMTE0LjU3MkMyMDkuNTEzIDEyMy4wMiAyMTMuNDY4IDE2MS41NDUgMjM1Ljg1NyAxNjkuOTI1QzI1OC4yNDUgMTc4LjMwNiAzMDMuMDY4IDE3MS41MTUgMzE2LjAwMiAxMzguMTM1QzMyOC45MzYgMTA0Ljc1NCAzMTIuMTY3IDgzLjY1MjkgMjg3LjY1MiA3Mi4xNjk0QzI2My4xMzYgNjAuNjg1OSAyNjguOTc2IDM2Ljc4MzYgMjM0LjE2NiAyNy44MDA5QzE5OS4zNTcgMTguODE4MiAxNzguNjY1IDQxLjI2NTEgMTQwLjE2NSAzMC43OTI3QzEwMS42NjUgMjAuMzIwNCA2My44NTc4IDYxLjIxMzEgODQuODU3NSA5Ny42MTY2WiIgZmlsbD0iI0ZGREVEMyIvPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMF9kXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTI3LjY2NiIgeT0iMzcuODQxMSIgd2lkdGg9IjEyOCIgaGVpZ2h0PSIxMjguMTk0IiByeD0iNi45ODI1MiIgZmlsbD0iI0VCRUVGMCIvPgo8bWFzayBpZD0ibWFzazBfMjcwNV8xNzYzMyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTI3IiB5PSIzNyIgd2lkdGg9IjEyOSIgaGVpZ2h0PSIxMzEiPgo8cmVjdCB4PSIxMjcuNjY2IiB5PSIzNy44NDExIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOS43OSIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTM2LjIiIHk9Ijk3LjQxNjkiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC44NTE4IiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzYuMiIgeT0iODMuMDU0NiIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjg1MTgiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxwYXRoIGQ9Ik0xMzYuMiAxMzkuNDY3QzEzNi4yIDEzNy4zOTUgMTM3Ljg3OSAxMzUuNzE2IDEzOS45NTEgMTM1LjcxNkgyNDIuODQ5QzI0NC45MiAxMzUuNzE2IDI0Ni42IDEzNy4zOTUgMjQ2LjYgMTM5LjQ2N1YxNjUuOTM1SDEzNi4yVjEzOS40NjdaIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC44OTY2IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMjE0LjU5OSA3NS40NDY3KSIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMTguODk2NiIgcng9IjIuMzE1NjkiIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3NS4xMzMgNzUuNDQ3NikiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljg5NjYiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAxMzUuNjY2IDc1LjQ0NzYpIiBmaWxsPSIjRjNGNUY3Ii8+CjwvZz4KPHBhdGggZD0iTTEyNy42NjYgNDQuODU2N0MxMjcuNjY2IDQxLjAwMDQgMTMwLjc5MyAzNy44NzQyIDEzNC42NDkgMzcuODc0MkgyNDguNTI2QzI1Mi4zODIgMzcuODc0MiAyNTUuNTA4IDQxLjAwMDQgMjU1LjUwOCA0NC44NTY3VjQ4LjQyNjNIMTI3LjY2NlY0NC44NTY3WiIgZmlsbD0id2hpdGUiLz4KPHJlY3QgeD0iMTMyLjk1NiIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTM4LjI0NyIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTQzLjU4IiB5PSI0MS4zOTE1IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUxNzM3IiByeD0iMS43NTg2OCIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE5MS42NjYiIGN5PSIxMDAuOTE1IiByPSIxNi44IiBmaWxsPSIjQUM0MjIwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNjY2NjciLz4KPHBhdGggZD0iTTE5Mi45MTQgOTMuOTgxOEgxOTAuNDE4QzE5MC4wOTIgOTMuOTgxOCAxODkuODQzIDk0LjI3MTQgMTg5Ljg5MSA5NC41OTM2TDE5MS4xMzkgMTAyLjk3M0MxOTEuMjI5IDEwMy41OCAxOTIuMTA0IDEwMy41OCAxOTIuMTk0IDEwMi45NzNMMTkzLjQ0MiA5NC41OTM2QzE5My40OSA5NC4yNzE0IDE5My4yNCA5My45ODE4IDE5Mi45MTQgOTMuOTgxOFoiIGZpbGw9IiNGRkRFRDMiLz4KPGNpcmNsZSBjeD0iMTkxLjY2NiIgY3k9IjEwNi43ODIiIHI9IjEuNiIgZmlsbD0iI0ZGREVEMyIvPgo8ZGVmcz4KPGZpbHRlciBpZD0iZmlsdGVyMF9kXzI3MDVfMTc2MzMiIHg9IjExOS4xMzMiIHk9IjMxLjQ0MTEiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0NS4yNjEiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2MzMiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzYzMyIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K";var f=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,...d}){const u=(0,c.A)(e,r?.category),{dismissNotification:p}=(0,a.useDispatch)(l.D);let k=d?.svg;return k||t===y.INFO||(k={desktop:void 0,mobile:void 0,verticalPosition:"center"},t===y.WARNING&&(k.desktop=h),t===y.ERROR&&(k.desktop=_)),(0,f.jsx)("div",{className:n()("googlesitekit-banner-notification",`googlesitekit-banner-notification--${t}`),children:(0,f.jsx)(m.xA,{className:"googlesitekit-page-content",children:(0,f.jsx)(m.fI,{children:(0,f.jsx)(m.fh,{size:12,children:(0,f.jsx)(g.A,{learnMoreLink:i&&{...i,onClick:async function(e){u.clickLearnMore(r?.label,r?.value),await(i?.onClick?.(e))}},dismissButton:s&&{...s,onClick:async function(t){await(s?.onClick?.(t)),u.dismiss(r?.label,r?.value),p(e,{...s?.dismissOptions})}},ctaButton:o&&{...o,onClick:async function(t){u.confirm(r?.label,r?.value),await(o?.onClick?.(t)),o?.dismissOnClick&&p(e,{...o?.dismissOptions})}},svg:k,...d})})})})})}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(d.A.propTypes),dismissButton:r().shape(p.A.propTypes),ctaButton:r().shape(u.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)(),g=null!=t?t:`${c}_${e}`;return{view:(0,s.useCallback)((...e)=>(0,o.sx)(g,i,...e),[g,i]),confirm:(0,s.useCallback)((...e)=>(0,o.sx)(g,r,...e),[g,r]),dismiss:(0,s.useCallback)((...e)=>(0,o.sx)(g,a,...e),[g,a]),clickLearnMore:(0,s.useCallback)((...e)=>(0,o.sx)(g,l,...e),[g,l])}}},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])}},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),g=(0,s.useCallback)(()=>c(l),[l,c]);return l&&t?g:null}},69908:(e,t,i)=>{i.r(t),i.d(t,{AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:()=>g,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:()=>u,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:()=>d,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",g="entityDashboardContentPrimary",d="entityDashboardSpeedPrimary",u="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:g,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:d,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:u}},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:g=!1}){if(!e||!n&&!l)return null;let d;return c&&!g&&(d=(0,a.jsx)(r.A,{width:14,height:14})),(0,a.jsx)(o.SpinnerButton,{className:"googlesitekit-banner__cta","aria-label":t,disabled:i||s,isSaving:s,onClick:n,href:l,target:c?"_blank":void 0,trailingIcon:d,children:e})}CTAButton.propTypes={label:n().string,ariaLabel:n().string,disabled:n().bool,inProgress:n().bool,onClick:n().func,href:n().string,dismissOnClick:n().bool,dismissOptions:n().shape({expiresInSeconds:n().number,skipHidingFromQueue:n().bool})}},71264:(e,t,i)=>{i.d(t,{Ay:()=>TourTooltips,R0:()=>f,ei:()=>k});var s=i(15844),n=i(36703),o=i(62688),r=i.n(o),a=i(82871),l=i(50539),c=i(7972),g=i(97345),d=i(65054),u=i(83202),p=i(62659),m=i(84895),h=i(62540);const _=(0,m.G)("setupFlowRefresh"),f={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:_?"rgba(0, 0, 0, 0.25)":"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:_?"none":"2px solid #3c7251",backgroundColor:"#fff"}},y={back:(0,a.__)("Back","google-site-kit"),close:(0,a.__)("Close","google-site-kit"),last:(0,a.__)("Got it","google-site-kit"),next:(0,a.__)("Next","google-site-kit")},k={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},v={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:j,receiveCurrentTour:I}=(0,l.useDispatch)(g.oR),b=(0,l.useRegistry)(),M=(0,p.A)(),S=(0,l.useSelect)(e=>e(c.n).getValue(m)||0),N=(0,l.useSelect)(e=>{const i=r||!1===e(g.oR).isTourDismissed(t);return e(c.n).getValue(x)&&i});function E(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}`,E(S)),A(x,!0)});const w=e.map(e=>({disableBeacon:!0,isFixed:!0,placement:"auto",...e})),C=_?{...k,styles:{...k.styles,floater:{filter:"drop-shadow(rgba(0, 0, 0, 0.25) 0px 4px 16px)"}}}:k;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(M):o;a===n.qY.TOOLTIP&&i===n.VD.TOOLTIP?(0,d.sx)(c,v.VIEW,l):t===n.kl.CLOSE&&i===n.VD.COMPLETE?(0,d.sx)(c,v.DISMISS,l):t===n.kl.NEXT&&r===n.XQ.FINISHED&&a===n.qY.TOUR_END&&s===l&&(0,d.sx)(c,v.COMPLETE,l),i===n.VD.COMPLETE&&r!==n.XQ.FINISHED&&(t===n.kl.PREV&&(0,d.sx)(c,v.PREV,l),t===n.kl.NEXT&&(0,d.sx)(c,v.NEXT,l))}(s);const{action:l,index:c,status:g,step:u,type:p}=s,h=l===n.kl.CLOSE,_=!h&&[n.qY.STEP_AFTER,n.qY.TARGET_NOT_FOUND].includes(p),f=[n.XQ.FINISHED,n.XQ.SKIPPED].includes(g),y=h&&p===n.qY.STEP_AFTER,k=f||y;if(n.qY.STEP_BEFORE===p){let e=u.target;"string"==typeof u.target&&(e=i.g.document.querySelector(u.target)),e?.scrollIntoView?.({block:"center"})}_?function(t,s){const o=t+(s===n.kl.PREV?-1:1);i.g.document.body.classList.remove(E(t)),e[o]&&i.g.document.body.classList.add(E(o)),A(m,o)}(c,l):k&&(i.g.document.body.classList.remove("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),e[S]&&i.g.document.body.classList.remove(E(S)),r?(A(x,!1),A(m,null),I(null)):j(t)),a&&a(s,b)},floaterProps:C,locale:y,run:N,stepIndex:S,steps:w,styles:f,tooltipComponent:u.A,showProgress:!_,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),g=i(68761),d=i(83891),u=i(41671),p=i(71189),m=i(61983),h=i(10740),_=i(49383),f=i(62540);function SetupCTA({notificationID:e,title:t,description:i,errorText:s,helpText:o,learnMoreLink:r,dismissButton:u,ctaButton:p,svg:m,footer:y,gaTrackingEventArgs:k,waitingProgress:v,...x}){const A=(0,g.A)(e,k?.category),{dismissNotification:j}=(0,l.useDispatch)(c.D);return(0,f.jsxs)(a.Fragment,{children:[!!v&&(0,f.jsx)(_.ProgressBar,{className:"googlesitekit-banner__progress-bar",...v}),(0,f.jsx)("div",{className:n()("googlesitekit-widget-context",{"googlesitekit-widget-context--with-progress-bar":!!v}),children:(0,f.jsx)(h.xA,{children:(0,f.jsx)(h.fI,{children:(0,f.jsx)(h.fh,{size:12,children:(0,f.jsx)(d.A,{className:"googlesitekit-banner--setup-cta",title:t,description:i,errorText:s,helpText:o,learnMoreLink:r&&{...r,onClick:async function(e){A.clickLearnMore(k?.label,k?.value),await(r?.onClick?.(e))}},dismissButton:u&&{...u,onClick:async function(t){await(u?.onClick?.(t)),A.dismiss(k?.label,k?.value),j(e,{...u?.dismissOptions})}},ctaButton:p&&{...p,onClick:async function(t){A.confirm(k?.label,k?.value),await(p?.onClick?.(t)),p?.dismissOnClick&&j(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(u.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(_.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"})))},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),g=i(25797),d=i(13047),u=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 _=(0,l.useDispatch)(),f=(0,l.useSelect)(e=>s?e(s).getSelectorDataForError(t):null),y=(0,o.useCallback)(()=>{_(f.storeName).invalidateResolution(f.name,f.args)},[_,f]);if(!n||(0,c.G)(t))return null;const k=i&&(0,c.vl)(t,f);let v=n;i||m||(v=(0,r.sprintf)(/* translators: %s: Error message from Google API. */ /* translators: %s: Error message from Google API. */ (0,r.__)("%s (Please try again.)","google-site-kit"),v)),p||(v=(0,r.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */ (0,r.__)("Error: %s","google-site-kit"),v));const x=t?.data?.reconnectURL;x&&(0,a.m)(x)&&(v=(0,r.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */ /* translators: 1: Original error message 2: Reconnect URL */ (0,r.__)('%1$s To fix this, <a href="%2$s">redo the plugin setup</a>.',"google-site-kit"),v,x));return(0,u.jsx)(g.A,{className:e,type:g.A.TYPES.ERROR,description:(0,u.jsx)("span",{dangerouslySetInnerHTML:(0,d.p9)(v,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:k?{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:()=>g});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(63696),l=i(62540);const c=(0,a.forwardRef)(({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 g=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}},75594:(e,t,i)=>{i.d(t,{A:()=>UserInputQuestionNotice});var s=i(4452),n=i.n(s),o=i(82871),r=i(62540);function UserInputQuestionNotice({className:e}){return(0,r.jsx)("p",{className:n()(e,"googlesitekit-user-input__question-notice"),children:(0,o.__)("You can always edit your answers later in Settings","google-site-kit")})}},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}},75662:(e,t,i)=>{i.d(t,{A:()=>h});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(63696),l=i(10740),c=i(38432),g=i(33052),d=i(62540);class LayoutHeader extends a.Component{render(){const{title:e,badge:t,ctaLabel:i,ctaLink:s}=this.props,n=s?{alignMiddle:!0,smSize:4,lgSize:6}:{alignMiddle:!0,smSize:4,mdSize:8,lgSize:12};return(0,d.jsx)("header",{className:"googlesitekit-layout__header",children:(0,d.jsx)(l.xA,{children:(0,d.jsxs)(l.fI,{children:[e&&(0,d.jsx)(l.fh,{...n,children:(0,d.jsxs)(g.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-subheading-1 googlesitekit-layout__header-title",children:[e,t]})}),s&&(0,d.jsx)(l.fh,{smSize:4,lgSize:6,alignMiddle:!0,mdAlignRight:!0,children:(0,d.jsx)(c.A,{href:s,external:!0,children:i})})]})})})}}LayoutHeader.propTypes={title:n().string,badge:n().node,ctaLabel:n().string,ctaLink:n().string},LayoutHeader.defaultProps={title:"",badge:null,ctaLabel:"",ctaLink:""};const u=LayoutHeader;var p=i(44148);class LayoutFooter extends a.Component{render(){const{ctaLabel:e,ctaLink:t,footerContent:i}=this.props;return(0,d.jsx)("footer",{className:"googlesitekit-layout__footer",children:(0,d.jsx)(l.xA,{children:(0,d.jsx)(l.fI,{children:(0,d.jsxs)(l.fh,{size:12,children:[t&&e&&(0,d.jsx)(p.A,{className:"googlesitekit-data-block__source",name:e,href:t,external:!0}),i]})})})})}}LayoutFooter.propTypes={ctaLabel:n().string,ctaLink:n().string};const m=LayoutFooter;class Layout extends a.Component{render(){const{header:e,footer:t,children:i,title:s,badge:n,headerCTALabel:o,headerCTALink:a,footerCTALabel:l,footerCTALink:c,footerContent:g,className:p,fill:h,relative:_,rounded:f=!1,transparent:y=!1,...k}=this.props;return(0,d.jsxs)("div",{className:r()("googlesitekit-layout",p,{"googlesitekit-layout--fill":h,"googlesitekit-layout--relative":_,"googlesitekit-layout--rounded":f,"googlesitekit-layout--transparent":y}),...k,children:[e&&(0,d.jsx)(u,{title:s,badge:n,ctaLabel:o,ctaLink:a}),i,t&&(0,d.jsx)(m,{ctaLabel:l,ctaLink:c,footerContent:g})]})}}Layout.propTypes={header:n().bool,footer:n().bool,children:n().node.isRequired,title:n().string,badge:n().node,headerCTALabel:n().string,headerCTALink:n().string,footerCTALabel:n().string,footerCTALink:n().string,footerContent:n().node,className:n().string,fill:n().bool,relative:n().bool,rounded:n().bool,transparent:n().bool},Layout.defaultProps={header:!1,footer:!1,title:"",badge:null,headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1};const h=Layout},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),g=i(82871),d=i(50539),u=i(49383),p=i(13047),m=i(38432),h=i(62659),_=i(30805),f=i(62540);function HelpMenuLink({children:e,href:t,gaEventLabel:i,onClick:s,icon:n}){const o=(0,h.A)(),r=(0,_.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,f.jsx)("li",{className:"googlesitekit-help-menu-link mdc-list-item",role:"none",children:(0,f.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 k,v,x=i(88273),A=i(29785),j=i(97345),I=i(58718),b=i(12896),M=i(40194);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},S.apply(null,arguments)}const N=e=>l.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),k||(k=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"})),v||(v=l.createElement("path",{fill:"currentColor",d:"M11.5 8.5H13v4h-1.5zM11.5 13.5H13V15h-1.5z"})));var E,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),E||(E=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,z,L;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 P=e=>l.createElement("svg",O({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"}))),z||(z=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 B,U,G;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 V=e=>l.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),B||(B=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"})),U||(U=l.createElement("path",{fill:"currentColor",d:"M13.5 9V3L19 9z"})),G||(G=l.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M8.5 11.5h7M8.5 14.5h7M8.5 17.5H13"})));var F;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),F||(F=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 Z,Q;function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},q.apply(null,arguments)}const K=e=>l.createElement("svg",q({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Z||(Z=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,_.i)("setupFlowRefresh");(0,a.A)(s,()=>i(!1)),(0,b.l)([c._f,c.wn],s,()=>i(!1));const m=(0,d.useSelect)(e=>e(x.i).isModuleActive(I.Py)),k=(0,l.useCallback)(()=>{t||(0,p.sx)(`${o}_headerbar`,"open_helpmenu"),i(!t)},[t,o]),v=(0,l.useCallback)(()=>{i(!1)},[]),S=(0,d.useSelect)(e=>e(A.O4).getDocumentationLinkURL("fix-common-issues")),{triggerOnDemandTour:E}=(0,d.useDispatch)(j.oR),w=(0,M.G)(),C=(0,l.useCallback)(()=>{E(w)},[E,w]),T=[{gaEventLabel:"fix_common_issues",href:S,children:(0,g.__)("Fix common issues","google-site-kit")},{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/",children:(0,g.__)("Read help docs","google-site-kit")},{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/",children:(0,g.__)("Get support","google-site-kit")},...m?[{gaEventLabel:"adsense_help",href:"https://support.google.com/adsense/",children:(0,g.__)("Get help with AdSense","google-site-kit")}]:[]],R=[{gaEventLabel:"browse_documentation",href:"https://sitekit.withgoogle.com/documentation/",icon:(0,f.jsx)(V,{width:24,height:24}),children:(0,g.__)("Browse documentation","google-site-kit")},{gaEventLabel:"get_support",href:"https://wordpress.org/support/plugin/google-site-kit/",icon:(0,f.jsx)(P,{width:24,height:24}),children:(0,g.__)("Get free support","google-site-kit")},{gaEventLabel:"start_tour",onClick:C,icon:(0,f.jsx)(D,{width:24,height:24}),children:(0,g.__)("Start a feature tour","google-site-kit")},{gaEventLabel:"send_feedback",href:"https://wordpress.org/support/plugin/google-site-kit/reviews/",icon:(0,f.jsx)(N,{width:24,height:24}),children:(0,g.__)("Send feedback","google-site-kit")},...m?[{gaEventLabel:"get_adsense_help",href:"https://support.google.com/adsense/",icon:(0,f.jsx)(K,{width:24,height:24}),children:(0,g.__)("Get help with AdSense","google-site-kit")}]:[]];return(0,f.jsxs)("div",{ref:s,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,f.jsx)(u.Button,{"aria-controls":"googlesitekit-help-menu","aria-expanded":t,"aria-label":(0,g.__)("Help","google-site-kit"),"aria-haspopup":"menu",className:"googlesitekit-header__dropdown googlesitekit-border-radius-round googlesitekit-button-icon googlesitekit-help-menu__button mdc-button--dropdown",icon:(0,f.jsx)(Y,{width:"20",height:"20"}),onClick:k,tooltipEnterDelayInMS:500,text:!0}),(0,f.jsxs)(u.Menu,{className:n()("googlesitekit-width-auto",{"googlesitekit-help-menu":r}),menuOpen:t,id:"googlesitekit-help-menu",onSelected:v,children:[e,(r?R:T).map((e,t)=>(0,f.jsx)(y,{...e},t))]})]})}HelpMenu.propTypes={children:r().node}},78990:(e,t,i)=>{i.d(t,{P9:()=>f,k:()=>m,mR:()=>_});var s=i(32091),n=i.n(s),o=i(17243),r=i(50539),a=i.n(r),l=i(49993),c=i(13047);const g="CREATE_SNAPSHOT",d="DELETE_SNAPSHOT",u="RESTORE_SNAPSHOT",p="SET_STATE_FROM_SNAPSHOT";function m(e,{keysToSnapshot:t}={}){n()(e,"storeName is required to create a snapshot store.");const i={},s={*deleteSnapshot(){return yield{payload:{},type:d}},*restoreSnapshot(e={}){const{clearAfterRestore:t=!0}=e,{cacheHit:i,value:s}=yield{payload:{},type:u};return i&&(yield{payload:{snapshot:s},type:p},t&&(yield{payload:{},type:d})),i},*createSnapshot(){return yield{payload:{},type:g}}},a={[d]:()=>(0,l.LD)(`datastore::cache::${e}`),[g]:(0,r.createRegistryControl)(i=>()=>{const s=i.stores[e].store.getState(),n=t?.length>0?(0,o.pick)(s,t):s;return(0,l.SO)(`datastore::cache::${e}`,n)}),[u]:()=>(0,l.Gq)(`datastore::cache::${e}`,c.Jg)};return{initialState:i,actions:s,controls:a,reducer:function(e=i,{type:s,payload:n}){if(s===p){const{snapshot:i}=n,{error:s,...o}=i;return t?.length>0?{...e,...o}:o}return e}}}function h(e=a()){return Object.values(e.stores).filter(e=>Object.keys(e.getActions()).includes("restoreSnapshot"))}function _(e=a()){return Promise.all(h(e).map(e=>e.getActions().createSnapshot()))}function f(e=a()){return Promise.all(h(e).map(e=>e.getActions().restoreSnapshot()))}},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),g=i(94656),d=i(29785),u=i(80),p=i(13137),m=i(13047),h=i(62540);function AudienceErrorModal({apiErrors:e,hasOAuthError:t,inProgress:i,title:s,description:n,trackEventCategory:_,onCancel:f=()=>{},onRetry:y=()=>{}}){const k=Array.isArray(e)?e:[e],v=(0,a.useSelect)(e=>e(d.O4).getErrorTroubleshootingLinkURL({code:"analytics-4_insufficient_permissions"})),x=(0,a.useSelect)(e=>e(u.K9).getServiceEntityAccessURL()),A=(0,a.useSelect)(e=>e(d.O4).getErrorTroubleshootingLinkURL({code:"access_denied"}));if(!k.length&&!t)return null;const j=k.some(e=>(0,p.SG)(e));let I,b,M,S;return t?(I=(0,r.__)("Analytics update failed","google-site-kit"),b=(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")})}),M=(0,r.__)("Retry","google-site-kit")):j?(I=(0,r.__)("Insufficient permissions","google-site-kit"),b=(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:v,external:!0,hideExternalIndicator:!0,children:(0,r.__)("Get help","google-site-kit")})}),M=(0,r.__)("Request access","google-site-kit"),S=x):(I=s||(0,r.__)("Failed to set up visitor groups","google-site-kit"),b=n||(0,r.__)("Oops! Something went wrong. Retry enabling groups.","google-site-kit"),M=(0,r.__)("Retry","google-site-kit")),(0,h.jsx)(g.A,{children:(0,h.jsx)(c.A,{buttonLink:S,title:I,subtitle:b,handleConfirm:function(){let e;e=t?"auth_error_retry":j?"insufficient_permissions_error_request_access":"setup_error_retry",(0,m.sx)(_,e).finally(()=>{j||y()})},confirmButton:M,handleCancel:function(){let e;e=t?"auth_error_cancel":j?"insufficient_permissions_error_cancel":"setup_error_cancel",(0,m.sx)(_,e).finally(f)},onOpen:()=>{let e;e=t?"auth_error":j?"insufficient_permissions_error":"setup_error",(0,m.sx)(_,e)},onClose:f,inProgress:i,refocusQuerySelector:"#audience_segmentation_setup_cta-notification .googlesitekit-banner__cta",danger:!0,dialogActive:!0})})}AudienceErrorModal.propTypes={apiErrors:n().oneOfType([n().arrayOf(n().object),n().object,n().array]),hasOAuthError:n().bool,inProgress:n().bool,title:n().string,description:n().string,trackEventCategory:n().string,onCancel:n().func,onRetry:n().func}},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)},81597:(e,t,i)=>{i.d(t,{I:()=>s});const s="ads"},82218:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(62688),n=i.n(s),o=i(4751),r=i(62540);function PreviewBlocks({width:e,height:t,shape:i,count:s,smallWidth:n,smallHeight:a,tabletWidth:l,tabletHeight:c,desktopWidth:g,desktopHeight:d}){const u=[];let p=0;for(;p++<s;)u.push((0,r.jsx)(o.A,{width:e,height:t,shape:i,smallWidth:n,smallHeight:a,tabletWidth:l,tabletHeight:c,desktopWidth:g,desktopHeight:d},p));return u}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:()=>d});var s=i(62688),n=i.n(s),o=i(63696),r=i(81276),a=i(49383),l=i(59865),c=i(62540);let g=null;function RefocusableModalDialog({dialogActive:e=!1,refocusQuerySelector:t=null,...i}){const s=(0,o.useCallback)(()=>{setTimeout(()=>{const e=t?document.querySelector(t):g;e&&document.body.contains(e)&&e.focus(),t||(g=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")&&(g=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 d=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 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 d=e=>c.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=c.createElement("path",{fill:"currentColor",d:"M7.334 11.333h1.333v-4H7.334zM8.001 6a.658.658 0 0 0 .667-.667.6.6 0 0 0-.2-.467.6.6 0 0 0-.467-.2.66.66 0 0 0-.667.667q0 .284.183.483A.7.7 0 0 0 8.001 6m0 8.666a6.6 6.6 0 0 1-2.6-.516 6.9 6.9 0 0 1-2.117-1.434A6.9 6.9 0 0 1 1.851 10.6 6.6 6.6 0 0 1 1.334 8q0-1.385.517-2.6a6.9 6.9 0 0 1 1.433-2.117q.9-.9 2.117-1.417A6.4 6.4 0 0 1 8 1.333q1.383 0 2.6.533a6.6 6.6 0 0 1 2.116 1.417q.9.9 1.417 2.117.533 1.215.533 2.6 0 1.383-.533 2.6a6.6 6.6 0 0 1-1.417 2.116 6.9 6.9 0 0 1-2.116 1.434 6.6 6.6 0 0 1-2.6.516m0-1.333q2.233 0 3.783-1.55T13.334 8t-1.55-3.784-3.783-1.55-3.784 1.55T2.667 8t1.55 3.783 3.784 1.55"})));var u=i(62540);function InfoTooltip({onOpen:e,title:t,tooltipClassName:i}){return t?(0,u.jsx)(l.Tooltip,{className:"googlesitekit-info-tooltip",tooltipClassName:o()("googlesitekit-info-tooltip__content",i),title:t,placement:"top",enterTouchDelay:0,leaveTouchDelay:5e3,onOpen:e,interactive:!0,children:(0,u.jsx)("span",{tabIndex:"0",role:"tooltip",children:(0,u.jsx)(d,{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),g=i(50539),d=i(44436),u=i(21795),p=i(19266),m=i(49383),h=i(59865),_=i(62540);function Divider({className:e}){return(0,_.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:g,itemClassName:d="googlesitekit-header-menu__item",iconClassName:u="googlesitekit-header-menu__item-icon",labelClassName:p="googlesitekit-header-menu__item-label",descriptionClassName:m="googlesitekit-header-menu__item-description",trailingClassName:h="googlesitekit-header-menu__item-trailing"}){const f=g||(0,_.jsxs)("div",{className:d,children:[o&&(0,_.jsx)("div",{className:u,children:o}),a&&(0,_.jsx)("span",{className:p,children:a}),l&&(0,_.jsx)("span",{className:m,children:l}),c&&(0,_.jsx)("span",{className:h,children:c})]}),y=void 0===i&&s?"menuitem":i,k=r()(t,{"mdc-list-item":s}),v="function"==typeof n;return(0,_.jsx)("li",{id:e,className:k||void 0,role:y,children:v?(0,_.jsx)("button",{type:"button",className:"googlesitekit-header-menu__item-button",onClick:n,children:f}):f})}function MenuSection({id:e,className:t,role:i,children:s}){return(0,_.jsx)("li",{id:e,className:t,role:i,children:s})}function MenuWithHeading({heading:e,className:t,children:i}){return(0,_.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 f,y,k=i(13047),v=i(49993),x=i(94656),A=i(97345);function Details(){const e=(0,g.useSelect)(e=>e(A.oR).getPicture()),t=(0,g.useSelect)(e=>e(A.oR).getFullName()),i=(0,g.useSelect)(e=>e(A.oR).getEmail());return(0,_.jsxs)("div",{className:"googlesitekit-user-menu__details","aria-label":(0,l.__)("Google account","google-site-kit"),children:[!!e&&(0,_.jsx)("img",{className:"googlesitekit-user-menu__details-avatar",src:e,alt:""}),(0,_.jsxs)("div",{className:"googlesitekit-user-menu__details-info",children:[(0,_.jsx)("p",{className:"googlesitekit-user-menu__details-info__name",children:t}),(0,_.jsx)("p",{className:"googlesitekit-user-menu__details-info__email","aria-label":(0,l.__)("Email","google-site-kit"),children:i})]})]})}function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},j.apply(null,arguments)}const I=e=>c.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),f||(f=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 b,M,S,N,E;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),b||(b=c.createElement("rect",{width:18,height:13,x:3,y:4,stroke:"currentColor",strokeWidth:1.5,rx:2})),M||(M=c.createElement("path",{fill:"currentColor",d:"M9 17h6v3H9z"})),S||(S=c.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M10 9h7M10 12h7"})),N||(N=c.createElement("circle",{cx:7,cy:9,r:1,fill:"currentColor"})),E||(E=c.createElement("circle",{cx:7,cy:12,r:1,fill:"currentColor"})));var T=i(46467),D=i(29785),R=i(7972),z=i(70301),L=i(80),O=i(76729),P=i(12896),B=i(62659),U=i(68832),G=i(30805);function UserMenu(){const e=(0,G.i)("proactiveUserEngagement"),t=(0,g.useSelect)(e=>e(D.O4).getProxyPermissionsURL()),i=(0,g.useSelect)(e=>e(A.oR).getEmail()),s=(0,g.useSelect)(e=>e(A.oR).getPicture()),n=(0,g.useSelect)(e=>e(A.oR).getFullName()),o=(0,g.useSelect)(e=>e(D.O4).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})),r=(0,U.A)(L.CV,"isAutoCreatingCustomDimensionsForAudience"),{isTooltipVisible:a=!1,className:d}=(0,g.useSelect)(e=>e(R.n).getValue("admin-screen-tooltip")||{isTooltipVisible:!1}),[f,y]=(0,c.useState)(!1),[j,b]=(0,c.useState)(!1),M=(0,c.useRef)(),S=(0,c.useRef)(),N=(0,B.A)(),{navigateTo:E}=(0,g.useDispatch)(z.M);(0,u.A)(M,()=>b(!1)),(0,P.l)([p._f,p.wn],M,()=>{b(!1),S.current?.focus()});const w=(0,c.useCallback)(()=>{y(!1),b(!1)},[y,b]),{setValue:W}=(0,g.useDispatch)(R.n),V=(0,c.useCallback)(()=>{j||((0,k.sx)(`${N}_headerbar`,"open_usermenu"),a&&d?.includes("googlesitekit-tour-tooltip--user-menu")&&W("admin-screen-tooltip",void 0)),b(!j)},[j,N,W,a,d]),F=(0,c.useCallback)(()=>{y(!f),b(!1)},[f]),H=(0,c.useCallback)(async(e,i)=>{const{detail:{item:s}}=i;switch(s?.id){case"manage-sites":t&&(await(0,k.sx)(`${N}_headerbar_usermenu`,"manage_sites"),E(t));break;case"disconnect":F();break;case"manage-email-reports":W(O.Q,!0);break;default:V()}},[t,V,F,E,W,N]),Y=(0,c.useCallback)(async()=>{y(!1),await(0,v.IL)(),await(0,k.sx)(`${N}_headerbar_usermenu`,"disconnect_user"),E(o)},[o,E,N]);if(!i)return null;let Z;return n&&i&&(Z=(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&&(Z=(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&&(Z=(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,_.jsxs)(c.Fragment,{children:[(0,_.jsxs)("div",{ref:M,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,_.jsx)(m.Button,{disabled:r,ref:S,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:V,icon:!!s&&(0,_.jsx)("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true",children:(0,_.jsx)("img",{className:"mdc-button__icon--image",src:s,alt:(0,l.__)("User Avatar","google-site-kit")})}),"aria-haspopup":"menu","aria-expanded":j,"aria-controls":"user-menu","aria-label":r?void 0:(0,l.__)("Account","google-site-kit"),tooltipEnterDelayInMS:500,customizedTooltip:r?null:(0,_.jsxs)("span",{"aria-label":Z,children:[(0,_.jsx)("strong",{children:(0,l.__)("Google Account","google-site-kit")}),(0,_.jsx)("br",{}),(0,_.jsx)("br",{}),n,n&&(0,_.jsx)("br",{}),i]}),text:!0,tooltip:!0}),(0,_.jsxs)(m.Menu,{className:"googlesitekit-user-menu",menuOpen:j,onSelected:H,id:"user-menu",children:[(0,_.jsx)(MenuSection,{children:(0,_.jsx)(Details,{})}),e&&(0,_.jsx)(MenuItem,{id:"manage-email-reports",icon:(0,_.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,_.jsx)(MenuItem,{id:"manage-sites",icon:(0,_.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,_.jsx)(MenuItem,{id:"disconnect",icon:(0,_.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,_.jsx)(x.A,{children:(0,_.jsx)(h.A,{dialogActive:f,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 W=i(10740),V=i(4124),F=i(45257),H=i(15844),Y=i(31589),Z=i(39525),Q=i(30521),q=i(20697),K=i(7551),$=i(11883),X=i(97513);var J=i(59352),ee=i(4169);const te={[K.Oo]:{[q.SH]:J.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,[q.OT]:J.CONTEXT_MAIN_DASHBOARD_TRAFFIC,[q.en]:J.CONTEXT_MAIN_DASHBOARD_CONTENT,[q.Ej]:J.CONTEXT_MAIN_DASHBOARD_SPEED,[q.Gw]:J.CONTEXT_MAIN_DASHBOARD_MONETIZATION},[K.oE]:{[q.OT]:J.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,[q.en]:J.CONTEXT_ENTITY_DASHBOARD_CONTENT,[q.Ej]:J.CONTEXT_ENTITY_DASHBOARD_SPEED,[q.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 ge=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 de;function ue(){return ue=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},ue.apply(null,arguments)}const pe=e=>c.createElement("svg",ue({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 23 12"},e),de||(de=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 _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 fe=e=>c.createElement("svg",_e({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 ke(){return ke=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},ke.apply(null,arguments)}const ve=e=>c.createElement("svg",ke({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,B.A)(),n=function(){const e=(0,K.Ay)(),t=(0,V.A)();return(0,g.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===q.SH&&n||i(ee.aO).isWidgetContextActive(te[e][s],o)&&t.push(s),t),[])})}(),{calculateScrollPosition:o,defaultChipID:a,findClosestSection:d,isValidChipID:u,scrollToChip:p,updateURLHash:m}=function({visibleSections:e}){const t=(0,X.dv)(),s=(0,V.A)(),n=(0,c.useCallback)(()=>e.includes(q.SH)?q.SH:s?e[0]||"":q.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]),g=(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:g,isValidChipID:o,scrollToChip:l,updateURLHash:r}}({visibleSections:n}),h=i.g.location.hash?.substring(1),[f,y]=(0,c.useState)(h||void 0),[v,x]=(0,c.useState)(!1),[j,I]=(0,c.useState)(h),{setValue:b}=(0,g.useDispatch)(R.n),M=(0,c.useCallback)(({target:e})=>{const t=e.closest(".mdc-chip"),i=t?.dataset?.contextId;m(i),y(i),p(i),(0,k.sx)(`${s}_navigation`,"tab_select",i),setTimeout(()=>{b(R.F,i)},50)},[p,b,m,s]),S=(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)}},[]),N=(0,c.useCallback)(e=>{function n(e){b(R.F,void 0),I(e),y(void 0)}const o=d(t);if(f)f===o&&n(o);else{const{hash:t}=i.g.location;o!==t?.substring(1)&&(e&&(0,k.sx)(`${s}_navigation`,"tab_scroll",o),m(o),n(o))}},[d,f,b,m,s]);(0,H.A)(()=>{if(!h)return I(a),void setTimeout(()=>m(a));const e=u(h)?h:a;I(e),b(R.F,e),setTimeout(()=>{const t=o(e);i.g.scrollY!==t?p(e):b(R.F,void 0)},50)});const E=(0,c.useCallback)(e=>{S(),N(e)},[N,S]),w=(0,Q.A)(E,150);(0,Y.A)("scroll",w);const C={[q.SH]:{label:(0,l.__)("Key metrics","google-site-kit"),icon:(0,_.jsx)(ge,{width:"18",height:"16"})},[q.OT]:{label:(0,l.__)("Traffic","google-site-kit"),icon:(0,_.jsx)(ve,{width:"18",height:"16"})},[q.en]:{label:(0,l.__)("Content","google-site-kit"),icon:(0,_.jsx)(ne,{width:"18",height:"18"})},[q.Ej]:{label:(0,l.__)("Speed","google-site-kit"),icon:(0,_.jsx)(fe,{width:"20",height:"16"})},[q.Gw]:{label:(0,l.__)("Monetization","google-site-kit"),icon:(0,_.jsx)(pe,{width:"18",height:"16"})}};return(0,_.jsx)("nav",{className:r()("mdc-chip-set","googlesitekit-navigation",`googlesitekit-navigation--${e}`,{"googlesitekit-navigation--is-sticky":v}),ref:t,children:n.map(e=>(0,_.jsx)(Z.Chip,{id:e,label:C[e].label,leadingIcon:C[e].icon,onClick:M,selected:j===e,"data-context-id":e},e))})}function DashboardNavigation(){const e=(0,V.A)(),t=(0,g.useSelect)(t=>e?t(A.oR).getViewableModules():null),i=(0,g.useSelect)(e=>e(A.oR).getKeyMetrics());return(0,_.jsx)(F.A,{loading:void 0===t||void 0===i,width:"100%",smallHeight:"59px",height:"71px",children:(0,_.jsx)(Navigation,{})})}var xe,Ae;function je(){return je=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},je.apply(null,arguments)}const Ie=e=>c.createElement("svg",je({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 be=i(38432),Me=i(83880),Se=i(48276);const Ne=function EntityHeader(){const e=(0,B.A)(),t=(0,K.Ay)(),s=(0,g.useSelect)(e=>e(D.O4).getCurrentEntityTitle()),n=(0,g.useSelect)(e=>e(D.O4).getCurrentEntityURL()),o=(0,c.useRef)(),[r,a]=(0,c.useState)(n),d=(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,Se.r0)(n,s))},[n]),u=(0,Q.A)(d,150);(0,Y.A)("resize",u);const{navigateTo:p}=(0,g.useDispatch)(z.M),h=(0,g.useSelect)(e=>e(D.O4).getAdminURL("googlesitekit-dashboard")),f=(0,c.useCallback)(()=>{(0,k.sx)(`${e}_navigation`,"return_to_dashboard"),p(h)},[h,p,e]);return K.oE!==t||null===n||null===s?null:(0,_.jsxs)("div",{className:"googlesitekit-entity-header",children:[(0,_.jsx)("div",{className:"googlesitekit-entity-header__back",children:(0,_.jsx)(m.Button,{icon:(0,_.jsx)(Ie,{width:24,height:24}),"aria-label":(0,l.__)("Back to dashboard","google-site-kit"),onClick:f,text:!0,tertiary:!0,children:(0,l.__)("Back to dashboard","google-site-kit")})}),(0,_.jsxs)("div",{ref:o,className:"googlesitekit-entity-header__details",children:[(0,_.jsx)(Me.A,{children:s}),(0,_.jsx)(be.A,{href:n,"aria-label":n,secondary:!0,external:!0,children:r})]})]})};var Ee;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),Ee||(Ee=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,B.A)(),t=(0,g.useSelect)(e=>e(A.oR).hasCapability(A.ej)),i=(0,g.useSelect)(e=>e(D.O4).getProxySetupURL()),s=(0,g.useSelect)(e=>e(D.O4).getDocumentationLinkURL("dashboard-sharing")),{navigateTo:n}=(0,g.useDispatch)(z.M),o=(0,c.useCallback)(async t=>{t.preventDefault(),await Promise.all([(0,v.SO)("start_user_setup",!0),(0,k.sx)(`${e}_headerbar_viewonly`,"start_user_setup",i?"proxy":"custom-oauth")]),n(i)},[i,n,e]),r=(0,c.useCallback)(()=>{(0,k.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,_.jsx)(be.A,{href:s,onClick:r,"aria-label":(0,l.__)("Learn more about dashboard sharing","google-site-kit"),external:!0})});return(0,_.jsxs)(c.Fragment,{children:[(0,_.jsx)(Me.A,{className:"googlesitekit-view-only-menu__signin",children:a}),t&&(0,_.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,g.useSelect)(e=>e(A.oR).hasCapability(A.ej)),{name:i,owner:s}=(0,g.useSelect)(t=>t(De.i).getModule(e)||{}),n=(0,g.useSelect)(t=>t(De.i).getModuleIcon(e));return(0,_.jsxs)("li",{className:"googlesitekit-view-only-menu__service",children:[(0,_.jsx)("span",{className:"googlesitekit-view-only-menu__service--icon",children:(0,_.jsx)(n,{height:26})}),(0,_.jsx)("span",{className:"googlesitekit-view-only-menu__service--name",children:i}),t&&s?.login&&(0,_.jsx)("span",{className:"googlesitekit-view-only-menu__service--owner",children:s.login})]})}function SharedServices({viewableModules:e}){return Array.isArray(e)?(0,_.jsx)("ul",{children:e.map(e=>(0,_.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,B.A)();return(0,_.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,_.jsx)(be.A,{href:"https://policies.google.com/privacy",external:!0})}),trackEventCategory:`${e}_headerbar_viewonly`,layout:"stacked"})}var ze=i(52696);function ManageEmailReports(){const{setValue:e}=(0,ze.wA)(R.n);return(0,ze.WM)(e=>{const t=e(A.oR).getViewableModules();if(void 0!==t)return t.includes("analytics-4")||t.includes("search-console")})?(0,_.jsxs)(c.Fragment,{children:[(0,_.jsx)(Divider,{}),(0,_.jsx)(MenuItem,{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__email-reporting",isInteractive:!1,children:(0,_.jsx)(m.Button,{className:"googlesitekit-view-only-menu__email-reporting-item",onClick:()=>e(O.Q,!0),icon:(0,_.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--icon",children:(0,_.jsx)(T.A,{width:"24"})}),tertiary:!0,children:(0,_.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,G.i)("proactiveUserEngagement"),[t,i]=(0,c.useState)(!1),s=(0,c.useRef)(),n=(0,B.A)();(0,u.A)(s,()=>i(!1)),(0,P.l)([p._f,p.wn],s,()=>i(!1));const o=(0,c.useCallback)(()=>{t||(0,k.sx)(`${n}_headerbar`,"open_viewonly"),i(!t)},[t,n]),a=(0,g.useSelect)(e=>e(A.oR).hasCapability(A.ej)),d=(0,g.useSelect)(e=>e(A.oR).getViewableModules());return(0,_.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,_.jsx)(m.Button,{className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--phone googlesitekit-button-icon",onClick:o,icon:(0,_.jsx)("span",{className:"mdc-button__icon","aria-hidden":"true",children:(0,_.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,_.jsxs)(m.Menu,{menuOpen:t,onSelected:o,id:"view-only-menu",nonInteractive:!0,children:[(0,_.jsx)(MenuSection,{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__description",children:(0,_.jsx)(Description,{})}),Array.isArray(d)&&(0,_.jsx)(MenuWithHeading,{className:"googlesitekit-view-only-menu__list-item",heading:(0,_.jsx)(Le.A,{as:"h4",size:"medium",type:"label",children:(0,l.__)("Shared services","google-site-kit")}),children:(0,_.jsx)(SharedServices,{viewableModules:d})}),e&&(0,_.jsx)(ManageEmailReports,{}),(0,_.jsx)(Divider,{}),(0,_.jsx)(MenuSection,{className:"googlesitekit-view-only-menu__list-item",children:(0,_.jsx)(Tracking,{})})]})]})}var Oe=i(8732),Pe=i(84730),Be=i(89766);function CoreSiteBannerNotification({id:e,...t}){const{dismissNotification:i,acceptNotification:s}=(0,g.useDispatch)(D.O4),n=(0,c.useCallback)(()=>{s(e)},[e,s]),o=(0,c.useCallback)(()=>{i(e)},[e,i]);return(0,_.jsx)(Be.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 Ue=CoreSiteBannerNotification;const Ge=function CoreSiteBannerNotifications(){const e=(0,B.A)(),[t,i]=(0,c.useState)(!1),[s,n]=(0,c.useState)(!1),o=(0,c.useRef)(Date.now()),r=(0,g.useSelect)(e=>e(D.O4).isUsingProxy()&&!1===e(A.oR).areSurveysOnCooldown()?e(A.oR).getCurrentSurvey():null),[a,l]=(0,c.useState)([]),{registerNotification:d}=(0,g.useDispatch)(Oe.D),u=(0,g.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&&u?.forEach(t=>{if(a.includes(t.id))return;const i={category:`${e}_remote-site-notification`,label:t.id};d(t.id,{Component:({Notification:e})=>(0,_.jsx)(e,{gaTrackingEventArgs:i,children:(0,_.jsx)(Ue,{...t,gaTrackingEventArgs:i})}),priority:t.priority,areaSlug:Pe.bI.HEADER,isDismissible:t.dismissible}),l(e=>(e.push(t.id),e))})},[e,s,u,d,a,t]),null};var We=i(67510),Ve=i(67438);function InternalServerError(){const e=(0,g.useSelect)(e=>e(D.O4).getInternalServerError());return e?(0,_.jsx)(Ve.A,{id:"internal-server-error",children:(0,_.jsx)(We.A,{notificationID:"internal-server-error",type:We.Q.ERROR,title:e.title,description:e.description})}):null}function LegacyNotifications(){const e=(0,V.A)(),t=(0,K.Ay)(),i=(0,g.useSelect)(e=>e(A.oR).isAuthenticated());return(0,_.jsxs)(c.Fragment,{children:[(0,_.jsx)(InternalServerError,{}),!e&&t===K.Oo&&i&&(0,_.jsx)(Ge,{})]})}var Fe=i(37834);function Header({children:e,subHeader:t,showNavigation:i}){const s=!!(0,K.Ay)(),n=(0,V.A)();!function(){const e=(0,B.A)(),t=(0,g.useSelect)(e=>e(D.O4).isUsingProxy()),i=(0,g.useSelect)(e=>e(D.O4).getSetupErrorMessage()),s=(0,G.i)("setupFlowRefresh");(0,c.useEffect)(()=>{s||i||void 0===t||async function(){const i=await(0,v.Gq)("start_user_setup"),s=await(0,v.Gq)("start_site_setup");i.cacheHit&&(await(0,v.LD)("start_user_setup"),(0,k.sx)(`${e}_setup`,"complete_user_setup",t?"proxy":"custom-oauth")),s.cacheHit&&(await(0,v.LD)("start_site_setup"),(0,k.sx)(`${e}_setup`,"complete_site_setup",t?"proxy":"custom-oauth"))}()},[s,e,t,i])}();const o=(0,g.useSelect)(e=>e(D.O4).getAdminURL("googlesitekit-dashboard")),u=(0,g.useSelect)(e=>e(A.oR).isAuthenticated()),[p,m]=(0,a.A)({childList:!0}),h=!!m.target?.childElementCount;return(0,_.jsxs)(c.Fragment,{children:[(0,_.jsx)("header",{className:r()("googlesitekit-header",{"googlesitekit-header--has-subheader":h,"googlesitekit-header--has-navigation":i}),children:(0,_.jsx)(W.xA,{children:(0,_.jsxs)(W.fI,{children:[(0,_.jsx)(W.fh,{smSize:1,mdSize:2,lgSize:4,className:"googlesitekit-header__logo",alignMiddle:!0,children:(0,_.jsx)(be.A,{"aria-label":(0,l.__)("Go to dashboard","google-site-kit"),className:"googlesitekit-header__logo-link",href:o,children:(0,_.jsx)(d.A,{})})}),(0,_.jsxs)(W.fh,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0,children:[e,!u&&s&&n&&(0,_.jsx)(ViewOnlyMenu,{}),u&&!n&&(0,_.jsx)(UserMenu,{})]})]})})}),(0,_.jsx)("div",{className:"googlesitekit-subheader",ref:p,children:t}),i&&(0,_.jsx)(DashboardNavigation,{}),(0,_.jsx)(Ne,{}),(0,_.jsx)(LegacyNotifications,{}),(0,_.jsx)(Fe.A,{areaSlug:Pe.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),g=i(49383);var d=i(30805),u=i(72545),p=i(33052),m=i(62540);function TourTooltip({backProps:e,closeProps:t,index:i,primaryProps:o,size:a,step:l,tooltipProps:h}){const _=(0,d.i)("setupFlowRefresh"),f=a>1?function(e){return new Array(null!=e?e:0).fill().map((e,t)=>t)}(a):[];function y(e){return r()("googlesitekit-tooltip-indicator",{active:e===i})}const k=_?10:14;return(0,m.jsx)("div",{className:r()("googlesitekit-tour-tooltip",l.className,{"googlesitekit-tour-tooltip--setupFlowRefresh":_}),...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:[!_&&(0,m.jsx)("ul",{className:"googlesitekit-tooltip-indicators",children:f.map(e=>(0,m.jsx)("li",{className:y(e)},`indicator-${e}`))}),_&&(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)(g.Button,{className:"googlesitekit-tooltip-button",text:!_,tertiary:_,...e,children:e.title}),l.cta,o.title&&(0,m.jsx)(g.Button,{className:r()("googlesitekit-tooltip-button",{"googlesitekit-tooltip-button--primary":_}),text:!_,...o,children:o.title})]})]}),(0,m.jsx)(g.Button,{className:"googlesitekit-tooltip-close",icon:(0,m.jsx)(u.A,{width:k,height:k}),onClick:t.onClick,"aria-label":(0,c.__)("Close","google-site-kit"),text:!0,hideTooltipTitle:!0})]})})}TourTooltip.propTypes={backProps:l().object.isRequired,closeProps:l().object.isRequired,index:l().number.isRequired,isLastStep:l().bool.isRequired,primaryProps:l().object.isRequired,size:l().number.isRequired,step:l().shape({content:l().node,title:l().node,cta:l().oneOfType([l().element,l().bool]),className:l().string}).isRequired,tooltipProps:l().object.isRequired}},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:()=>_});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 g=i(13047),d=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,g.p9)(t,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}):t," ",i?.href&&(0,c.jsx)(d.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(d.A.propTypes),additionalDescription:r().oneOfType([r().string,r().node]),children:r().node},HelpText.propTypes={className:r().string,children:r().node};var u=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:g,dismissButton:d,ctaButton:h,svg:_,footer:f},y)=>{const k=(0,l.dv)(),v=k===l.mp||k===l.Lg;let x=null;v&&_?.mobile?x=_.mobile:!v&&_?.desktop&&(x=_.desktop);const A=_?.verticalPosition?_.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:g,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)(u.A,{...h}),d?.onClick&&(0,c.jsx)(p.A,{...d})]})]}),x&&(0,c.jsx)("div",{className:n()("googlesitekit-banner__svg-wrapper",{[`googlesitekit-banner__svg-wrapper--${A}`]:A}),style:{backgroundImage:`url(${x})`}}),f&&(0,c.jsx)(Footer,{children:f})]})});h.propTypes={titleIcon:r().node,title:r().string,description:r().oneOfType([r().string,r().node]),additionalDescription:r().oneOfType([r().string,r().node]),errorText:r().string,helpText:r().string,learnMoreLink:r().shape(d.A.propTypes),dismissButton:r().shape(p.A.propTypes),ctaButton:r().shape(u.A.propTypes),svg:r().shape({desktop:r().elementType,mobile:r().elementType,verticalPosition:r().oneOf(["top","center","bottom"])}),footer:r().node};const _=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:()=>u,fI:()=>g});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:g,lgAlignRight:d,smSize:u,smStart:p,smOrder:m,mdSize:h,mdStart:_,mdOrder:f,lgSize:y,lgStart:k,lgOrder:v,size:x,children:A,...j}=e;return(0,a.jsx)("div",{...j,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":g,"mdc-layout-grid__cell--align-right-desktop":d,[`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-${k}-desktop`]:12>=k&&k>0,[`mdc-layout-grid__cell--order-${v}-desktop`]:12>=v&&v>0,[`mdc-layout-grid__cell--span-${h}-tablet`]:8>=h&&h>0,[`mdc-layout-grid__cell--start-${_}-tablet`]:8>=_&&_>0,[`mdc-layout-grid__cell--order-${f}-tablet`]:8>=f&&f>0,[`mdc-layout-grid__cell--span-${u}-phone`]:4>=u&&u>0,[`mdc-layout-grid__cell--start-${p}-phone`]:4>=p&&p>0,[`mdc-layout-grid__cell--order-${m}-phone`]:4>=m&&m>0}),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 g=c,d=(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}));d.displayName="Grid",d.propTypes={alignLeft:n().bool,fill:n().bool,className:n().string,collapsed:n().bool,children:n().node},d.defaultProps={className:""};const u=d},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()),g=(0,n.A)(e=>e(a.n).getValue("forceInView"));return(0,o.useEffect)(()=>{t.value&&!i&&l(!0)},[i,t,l]),(0,o.useEffect)(()=>{g&&l(!0)},[g]),(0,s.A)(()=>{l(!1)},[c]),!(!e||!i)||!!t.value}},85135:(e,t,i)=>{i.d(t,{A:()=>_});var s=i(62688),n=i.n(s),o=i(47485),r=i(63696),a=i(82871),l=i(10740),c=i(4452),g=i.n(c),d=i(62540);const u=(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:u,calloutStyle:p,...m},h)=>{const _=t&&!o?"a":"button";return(0,d.jsx)(_,{className:g()("mdc-button",s,{"mdc-button--raised":!i&&!c&&!u,"mdc-button--danger":n,"mdc-button--inverse":l,"mdc-button--tertiary":c,"mdc-button--callout":u,"mdc-button--callout-primary":u||"primary"===p,"mdc-button--callout-warning":"warning"===p,"mdc-button--callout-error":"error"===p}),href:o?void 0:t,ref:h,disabled:!!o,"aria-label":a,target:r||"_self",role:"a"===_?"button":void 0,...m,children:e})});u.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=u;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,d.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:g,icon:u=null,trailingIcon:m=null,"aria-label":h,title:_=null,customizedTooltip:f=null,tooltip:y=!1,inverse:k=!1,hideTooltipTitle:v=!1,tooltipEnterDelayInMS:x=100,tertiary:A=!1,callout:j=!1,calloutStyle:I=null,...b},M)=>{const S=(0,r.useCallback)(e=>{null!==e&&l.Nv.attachTo(e)},[]),N=(0,o.A)(M,S);const E=v?null:_||f||h;return(0,d.jsx)(MaybeTooltip,{disabled:c,tooltip:y,tooltipTitle:E,hasIconOnly:!!u&&void 0===e,tooltipEnterDelayInMS:x,children:(0,d.jsxs)(p,{href:t,disabled:c,className:s,danger:n,text:i,tertiary:A,inverse:k,callout:j,calloutStyle:I,ref:N,"aria-label":function(){let t=h;if("_blank"!==g)return t;const i=(0,a._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof e&&(t=t||e),t?`${t} ${i}`:i}(),target:g||"_self",...b,children:[u,e&&(0,d.jsx)("span",{className:"mdc-button__label",children:e}),m]})})});h.propTypes={onClick:n().func,children:n().node,href:n().string,text:n().bool,className:n().string,danger:n().bool,disabled:n().bool,icon:n().element,trailingIcon:n().element,title:n().string,customizedTooltip:n().element,tooltip:n().bool,inverse:n().bool,hideTooltipTitle:n().bool,callout:n().bool,calloutStyle:n().oneOf(["primary","warning","error"])};const _=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"})))},85172:(e,t,i)=>{i.d(t,{A:()=>PageHeader});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(10740),l=i(24560),c=i(18418),g=i(50304),d=i(33052),u=i(62540);function PageHeader(e){const{title:t,icon:i,className:s,status:o,statusText:r,fullWidth:p,children:m}=e,h=p?{size:12}:{smSize:4,mdSize:4,lgSize:6},_=""!==o||Boolean(m);return(0,u.jsx)("header",{className:"googlesitekit-page-header",children:(0,u.jsxs)(a.fI,{children:[t&&(0,u.jsxs)(a.fh,{...h,children:[i,(0,u.jsx)(d.A,{as:"h1",className:n()("googlesitekit-page-header__title",s),size:"medium",type:"title",children:t})]}),_&&(0,u.jsx)(a.fh,{smSize:4,mdSize:4,lgSize:6,alignBottom:!0,mdAlignRight:!0,children:(0,u.jsxs)("div",{className:"googlesitekit-page-header__details",children:[o&&(0,u.jsxs)("span",{className:n()("googlesitekit-page-header__status",`googlesitekit-page-header__status--${o}`),children:[r,(0,u.jsx)(g.A,{children:"connected"===o?(0,u.jsx)(l.A,{width:10,height:8}):(0,u.jsx)(c.A,{width:2,height:12})})]}),m]})})]})})}PageHeader.propTypes={title:r().string,icon:r().node,className:r().string,status:r().string,statusText:r().string,fullWidth:r().bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}},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"},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:g,dismissLabel:d,learnMoreLabel:u,learnMoreURL:p,onCTAClick:m,onDismissClick:h,gaTrackingEventArgs:_}){const f={expiresInSeconds:r.Jg};return(0,a.jsx)(o.A,{notificationID:e,type:o.Q.WARNING,titleIcon:t||void 0,title:i,description:s,learnMoreLink:p?{label:u,href:p}:void 0,ctaButton:{label:n,href:c,onClick:m,dismissOptions:f,external:"_blank"===l},dismissButton:g?{label:d,onClick:h,dismissOptions:f}:void 0,gaTrackingEventArgs:_})}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},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),g=i(88273),d=i(22942),u=i(65929),p=i(4124),m=i(68761),h=i(30289),_=i(62540);const f="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)(f),h=(0,o.useSelect)(e=>e(c.O4).isEmailReportingEnabled()),k=(0,o.useSelect)(e=>e(g.i).isModuleConnected(d.L1)),v=(0,o.useSelect)(e=>e(g.i).isModuleDisconnected(d.L1)),x=(0,o.useSelect)(e=>e(r.oR).isItemDismissed(f)),{dismissItem:A}=(0,o.useDispatch)(r.oR),j=(0,u.A)(d.L1),I=(0,n.useCallback)(()=>{i(!0),a.confirm(),j()},[a,j]),b=(0,n.useCallback)(async()=>{a.dismiss(),await A(f)},[A,a]);if(!h||!1!==x||k||!v)return null;let M=(0,s.__)("Email reports won’t include Analytics data and metrics","google-site-kit");return e&&(M=(0,s.__)("Email reports won’t include Analytics data and metrics. To fix the issue contact your administrator.","google-site-kit")),(0,_.jsx)(y,{className:"googlesitekit-email-reporting__admin-settings-notice",type:l.Q.WARNING,title:(0,s.__)("Analytics is disconnected","google-site-kit"),description:M,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:b},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:()=>g,c1:()=>d.c1,X9:()=>l,JS:()=>o,T5:()=>u,WP:()=>d.WP});var s=i(33494),n=i(64515);function o(e){return!!e&&e.Component===n.A}function r(e,t){if(9!==t)return[e,t];let i=(e=[...e]).length-1;for(;0!==t&&i>=0;)3===e[i]?(t-=3,e[i]=4):6===e[i]&&(t-=6,e[i]=8),i--;return[e,t]}function a(e,t){return(Array.isArray(t.width)?t.width:[t.width]).map(t=>({counter:e+s.Gr[t],width:t}))}function l(e,t){let i=[];const n=[];if(!e?.length)return{columnWidths:i,rowIndexes:n};let l=0,c=0;function g({counter:e},{counter:t}){return e-t}function d({counter:e},{counter:t}){return t-e}function u({counter:e}){return e<=12}return e.forEach((p,m)=>{if(o(t[p.slug]))return i.push(0),void n.push(c);let h=a(l,p);const _=function(e,t,i){for(;++e<t.length;)if(!o(i[t[e].slug]))return t[e];return null}(m,e,t);if(null===_||0===a(h.sort(g)[0].counter,_).filter(u).length){h.some(u)&&(h=h.sort(d),h=h.filter(u))}const f=h[0].width;n.push(c),l+=s.Gr[f],l>12?(l-=s.Gr[f],n[m]++,9===l&&([i,l]=r(i,l)),l=s.Gr[f],c++):12===l&&(l=0,c++),i.push(s.Gr[f])}),9===l&&([i,l]=r(i,l)),{columnWidths:i,rowIndexes:n}}var c=i(17243);function g(e,t,{columnWidths:i,rowIndexes:n}){const o=[],r=[...i];if(!e?.length)return{gridColumnWidths:r,overrideComponents:o};let a=null,l=-1,g=[];if(function(e,t){const i={};for(let n=0;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,d)=>{if(o.push(null),a=t[s.slug],l=n[d],a)if(u=a,p=t[e[d+1]?.slug],m=l,h=n[d+1],m===h&&(0,c.isEqual)(u,p))g.push(i[d]),r[d]=0;else if(g.length>0){g.push(i[d]);const e=g.reduce((e,t)=>e+t,0);o[d]=a,r[d]=e,g=[]}var u,p,m,h}),{gridColumnWidths:r,overrideComponents:o}}var d=i(21213);function u(e){return(Array.isArray(e)?e:[e]).filter(e=>"string"==typeof e&&e.length>0)}},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 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 d=e=>c.createElement("svg",g({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 u,p,m,h;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 f=e=>c.createElement("svg",_({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)"},u||(u=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),k=i(11883),v=i(97513),x=i(8732),A=i(62659),j=i(62540);const I="audienceSegmentationIntroductoryOverlayNotification";function AudienceSegmentationIntroductoryOverlayNotification({id:e,Notification:t}){const s=(0,A.A)(),n=(0,v.dv)(),{dismissNotification:o}=(0,l.useDispatch)(x.D);const r={category:`${s}_audiences-secondary-user-intro`};return(0,j.jsx)(t,{gaTrackingEventArgs:r,children:(0,j.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:d,GraphicMobile:f,ctaButton:{label:(0,a.__)("Show me","google-site-kit"),onClick:function(t){t.preventDefault(),setTimeout(()=>{i.g.scrollTo({top:(0,k.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}},97345:(e,t,i)=>{i.d(t,{$8:()=>r,$Q:()=>p,BT:()=>D,CQ:()=>M,D1:()=>Z,DF:()=>Y,GM:()=>b,GT:()=>y,GU:()=>Q,HA:()=>O,HD:()=>u,HP:()=>T,J5:()=>B,JF:()=>N,JK:()=>_,Ml:()=>h,SS:()=>R,UF:()=>g,UY:()=>V,Vl:()=>z,W6:()=>H,Xq:()=>S,YQ:()=>E,Yw:()=>W,dV:()=>C,dX:()=>I,ej:()=>c,em:()=>o,ep:()=>A,fu:()=>v,gC:()=>k,hz:()=>m,jx:()=>d,lV:()=>l,nH:()=>P,oR:()=>s,od:()=>a,p3:()=>f,pG:()=>j,qv:()=>n,qy:()=>w,t1:()=>F,t7:()=>G,tB:()=>x,tK:()=>U,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",g="googlesitekit_setup",d="googlesitekit_view_dashboard",u="googlesitekit_manage_options",p="googlesitekit_read_shared_module_data",m="googlesitekit_manage_module_sharing_options",h="googlesitekit_delegate_module_sharing_management",_="googlesitekit_update_plugins",f="kmAnalyticsAdSenseTopEarningContent",y="kmAnalyticsEngagedTrafficSource",k="kmAnalyticsLeastEngagingPages",v="kmAnalyticsNewVisitors",x="kmAnalyticsPopularAuthors",A="kmAnalyticsPopularContent",j="kmAnalyticsPopularProducts",I="kmAnalyticsReturningVisitors",b="kmAnalyticsTopCities",M="kmAnalyticsTopCitiesDrivingLeads",S="kmAnalyticsTopCitiesDrivingAddToCart",N="kmAnalyticsTopCitiesDrivingPurchases",E="kmAnalyticsTopDeviceDrivingPurchases",w="kmAnalyticsTopConvertingTrafficSource",C="kmAnalyticsTopCountries",T="kmAnalyticsTopPagesDrivingLeads",D="kmAnalyticsTopRecentTrendingPages",R="kmAnalyticsTopTrafficSource",z="kmAnalyticsTopTrafficSourceDrivingAddToCart",L="kmAnalyticsTopTrafficSourceDrivingLeads",O="kmAnalyticsTopTrafficSourceDrivingPurchases",P="kmAnalyticsPagesPerVisit",B="kmAnalyticsVisitLength",U="kmAnalyticsTopReturningVisitorPages",G="kmSearchConsolePopularKeywords",W="kmAnalyticsVisitsPerVisitor",V="kmAnalyticsMostEngagingPages",F="kmAnalyticsTopCategories",H=[f,y,k,v,x,A,j,I,F,b,M,S,N,E,w,C,D,R,z,P,B,U,W,V,F],Y=[...H,G],Z="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 g=(0,l.useRef)(!1),d=s?()=>{g.current||(g.current=!0,s?.())}:void 0,u=s?()=>{g.current=!1,n?.()}:n;return(0,c.jsx)(a.Ay,{classes:{popper:r()("googlesitekit-tooltip-popper",t),tooltip:r()("googlesitekit-tooltip",i)},onOpen:d,onClose:u,...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=8777,e(e.s=t);var t});e.O()}]);
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0.3 |
proxy
|
phpinfo
|
ÐаÑтройка