Файловый менеджер - Редактировать - /home/avadvi5/public_html/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-entity-dashboard-7b19fc7e1085b1c7f090.js
Ðазад
"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[290,804],{80:(e,t,i)=>{i.d(t,{CV:()=>w,Cu:()=>x,K9:()=>s,Kr:()=>m,Lf:()=>p,Oh:()=>r,PW:()=>N,Rx:()=>E,S9:()=>f,TQ:()=>d,Vt:()=>T,Wl:()=>y,ZC:()=>o,ZY:()=>a,_p:()=>M,ag:()=>h,aj:()=>u,bz:()=>I,dq:()=>C,f2:()=>c,fB:()=>A,fV:()=>S,iB:()=>g,kc:()=>l,mo:()=>b,nc:()=>j,rm:()=>v,to:()=>n,wo:()=>k,yn:()=>_});const s="modules/analytics-4",o="account_create",n="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",h="analyticsAccountCreate",m="analyticsCustomDimensionsCreate",f="https://www.googleapis.com/auth/analytics.edit",k="dashboardAllTrafficWidgetDimensionName",b="dashboardAllTrafficWidgetDimensionColor",_="dashboardAllTrafficWidgetDimensionValue",y="dashboardAllTrafficWidgetActiveRowIndex",v="dashboardAllTrafficWidgetLoaded",x={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"},S=[j.CONTACT,j.GENERATE_LEAD,j.SUBMIT_LEAD_FORM],A={"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"}}}}]}}]}}}}]}},N="audiencePermissionsSetup",w="audienceTileCustomDimensionCreate",I="audience-selection-panel-expirable-new-badge-",C="audience",T="customDimension",M="property",E=[C,T,M]},338:(e,t,i)=>{i.d(t,{A:()=>UserSettingsSelectionPanel});var s=i(82871),o=i(63696),n=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),h=i(88273),m=i(13606),f=i(70301),k=i(4124),b=i(38432),_=i(83880),y=i(62659),v=i(20697),x=i(4751),j=i(62540);function Header({closePanel:e,isLoading:t}){const i=(0,y.A)(),n=(0,k.A)(),a=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),l=(0,r.useSelect)(e=>e(p.O4).getSiteKitAdminSettingsURL({scrollTo:"email-reporting"})),{navigateTo:c}=(0,r.useDispatch)(f.M),d=(0,o.useCallback)(()=>{v.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)(o.Fragment,{children:[(0,j.jsx)(x.A,{width:"100%",height:"16px"}),(0,j.jsx)("br",{})]}),!t&&!n&&a&&(0,j.jsx)(_.A,{type:"body",size:"small",children:(0,m.A)((0,s.__)("You can always deactivate this feature in <link>Settings</link>","google-site-kit"),{link:(0,j.jsx)(b.A,{onClick:d,secondary:!0})})})]})}Header.propTypes={closePanel:u().func.isRequired,isLoading:u().bool};var S=i(68329),A=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)(S.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)(_.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(A.Q))}),onNoticeDismiss:u().func};var N=i(33052),w=i(4452),I=i.n(w),C=i(8513),T=i(97513),M=i(82218);function FrequencySelector({isUserSubscribed:e,isLoading:t}){const i=(0,T.dv)()===T.mp,n=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),a=(0,o.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),h=(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)),m={weekly:{label:(0,s.__)("Weekly","google-site-kit"),period:(0,s.__)("Last 7 days","google-site-kit"),description:h},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)(o.Fragment,{children:[(0,j.jsx)("br",{}),(0,j.jsx)(x.A,{width:"20%",height:"16px"}),(0,j.jsx)("br",{}),(0,j.jsx)("div",{className:"googlesitekit-frequency-selector",children:(0,j.jsx)(M.A,{width:"100%",height:"184px",count:3})})]}):!1===n?null:(0,j.jsxs)(o.Fragment,{children:[(0,j.jsx)(N.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)(N.A,{type:C.SZ,size:C.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 o=g===t,{label:n,period:r,description:a}=m[t]||{};return(0,j.jsxs)("div",{className:I()("googlesitekit-frequency-selector__card",{"googlesitekit-frequency-selector__card--selected":o}),role:"radio","aria-checked":o,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:I()("googlesitekit-frequency-selector__current-subscription",{"googlesitekit-frequency-selector__current-subscription--selected":o}),children:(0,j.jsx)(N.A,{type:C.SZ,size:C.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)(N.A,{type:"label",size:"large",children:n})}),(0,j.jsxs)("div",{className:"googlesitekit-frequency-selector__period-description",children:[(0,j.jsx)("div",{className:"googlesitekit-frequency-selector__period",children:(0,j.jsx)(N.A,{type:"body",size:"small",children:r})}),(0,j.jsx)("div",{className:"googlesitekit-frequency-selector__description",children:(0,j.jsx)(N.A,{type:"body",size:"small",children:a})})]})]})]},t)})})]})}FrequencySelector.propTypes={isUserSubscribed:u().bool,isLoading:u().bool};var E=i(11763),R=i(52696);const D={SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",UPDATE_SETTINGS:"update_settings"};function SubscribeActions({isSubscribed:e,onSubscribe:t,onUnsubscribe:i,updateSettings:n,isSavingSettings:r,isLoading:a}){const[l,c]=(0,o.useState)("");function g(e){switch(c(e),e){case D.UPDATE_SETTINGS:n();break;case D.SUBSCRIBE:t();break;case D.UNSUBSCRIBE:i()}}return!1===(0,R.WM)(e=>e(p.O4).isEmailReportingEnabled())?null:(0,j.jsxs)("div",{className:"googlesitekit-selection-panel-subscribe-actions",children:[a&&(0,j.jsx)(M.A,{width:"140px",height:"42px",count:2}),!a&&e&&(0,j.jsx)(E.A,{onClick:()=>g(D.UNSUBSCRIBE),isSaving:r&&l===D.UNSUBSCRIBE,disabled:r,tertiary:!0,children:(0,s.__)("Unsubscribe","google-site-kit")}),!a&&(0,j.jsx)(E.A,{onClick:()=>g(e?D.UPDATE_SETTINGS:D.SUBSCRIBE),isSaving:r&&l!==D.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 O=i(91117),L=i(63737),P=i(25797),z=i(30289),B=i(68761);const W="email_reports_user_settings_reports_disabled_notice",H=(0,z.A)(P.A);function EmailReportingDisabledNotice(){const e=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),t=(0,k.A)(),i=(0,r.useSelect)(e=>e(p.O4).getSiteKitAdminSettingsURL({scrollTo:"email-reporting"})),n=(0,B.A)(W),{setValue:l}=(0,L.A)(a.n),g=(0,o.useCallback)(()=>{n.confirm(),l(c.Q,!1)},[l,n]);return e||t?null:(0,j.jsx)(H,{type:A.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:n.view})}const U=(0,z.A)(P.A);function EmailReportingDisabledViewOnlyNotice(){const e=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),t=(0,k.A)(),i=(0,B.A)(W);return e||!t?null:(0,j.jsx)(U,{type:A.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 G=i(14183),V=i(22942),F=i(65929),Y=i(69831),Z=i(62051);const q="email_reports_user_settings_setup_analytics_notice",$=(0,z.A)(P.A);function SetupAnalyticsNotice(){const[e,t]=(0,o.useState)(!1),i=(0,B.A)(q),n=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),a=(0,k.A)(),c=(0,r.useSelect)(e=>e(h.i).isModuleActive(V.L1)),g=(0,r.useSelect)(e=>e(h.i).isModuleConnected(V.L1)),d=(0,r.useSelect)(e=>e(h.i).isModuleDisconnected(V.L1)),u=(0,r.useSelect)(e=>e(l.oR).isItemDismissed(q)),{dismissItem:f}=(0,r.useDispatch)(l.oR),b=(0,F.A)(V.L1),_=(0,Y.A)(V.L1),y=c?_:b,v=(0,o.useCallback)(()=>{y&&(i.confirm(),t(!0),y())},[y,i]),x=(0,o.useCallback)(async()=>{i.dismiss(),await f(q)},[f,i]),S=(0,r.useSelect)(e=>e(p.O4).getDocumentationLinkURL("ga4"));if(!n||a||!1!==u||g||d)return null;const N=c?(0,s.__)("Complete setup","google-site-kit"):(0,s.__)("Connect Analytics","google-site-kit");return(0,j.jsx)($,{type:A.Q.NEW,title:(0,s.__)("Understand how visitors interact with your content","google-site-kit"),description:(0,m.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:S})}),ctaButton:{label:N,inProgress:e,disabled:e,onClick:v},dismissButton:{label:(0,s.__)("Maybe later","google-site-kit"),onClick:x},onInView:i.view})}function Notices({isLoading:e,onGoToSettings:t}){return e?null:(0,j.jsxs)(o.Fragment,{children:[(0,j.jsx)(G.A,{onGoToSettings:t}),(0,j.jsx)(O.A,{}),(0,j.jsx)(SetupAnalyticsNotice,{}),(0,j.jsx)(EmailReportingDisabledNotice,{}),(0,j.jsx)(EmailReportingDisabledViewOnlyNotice,{})]})}Notices.propTypes={isLoading:u().bool,onGoToSettings:u().func};var Q=i(82267),X=i(7076),K=i(49383),J=i(46467),ee=i(63972),te=i(13047);function InviteUserRow({user:e,inviteResult:t=null,onInviteResult:i}){const n=(0,y.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)),h=(0,o.useCallback)(async()=>{(0,te.sx)(`${n}_email_reports_user_settings-sidebar`,"send_invite");const{error:e}=await d(a);i(a,e?{status:"error",message:e.message}:{status:"success"})},[n,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,m.A)((0,s.__)("Failed to send invite. <RetryLink>Retry</RetryLink>","google-site-kit"),{RetryLink:(0,j.jsx)(b.A,{"aria-label":(0,s.__)("Retry sending email subscription invite","google-site-kit"),onClick:h})})}):(0,j.jsx)(K.Button,{onClick:h,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)(x.A,{width:"120px",height:"16px"}),(0,j.jsx)(x.A,{width:"180px",height:"12px"})]}),(0,j.jsx)("div",{className:"googlesitekit-invite-user-row__action",children:(0,j.jsx)(x.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:o,isLoading:n=!1}){return n?(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:o},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),oe=i(72545);function InviteSearchInput({value:e="",onChange:t}){const i=(0,ie.A)(InviteSearchInput,"InviteSearchInput"),n=(0,o.useCallback)(e=>t(e.target.value),[t]),r=(0,o.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:n}),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)(oe.A,{width:"8",height:"8"})})]})}InviteSearchInput.propTypes={value:u().string,onChange:u().func.isRequired};const ne=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,n]=(0,o.useState)(""),[g,d]=(0,o.useState)(""),[u,h]=(0,o.useState)({}),[f,k]=(0,o.useState)(t),_=(0,X.d)(d,300);(0,o.useEffect)(()=>{_(i)},[i,_]),(0,o.useEffect)(()=>{t&&k(!0)},[t]);const y=(0,r.useInViewSelect)(e=>f?e(p.O4).getEligibleSubscribers({search:g}):null,[g,f]),v=(0,r.useInViewSelect)(e=>f?e(p.O4).getEligibleSubscribers({search:""}):null,[f]),x=(0,r.useInViewSelect)(e=>!!f&&!e(p.O4).hasFinishedResolution("getEligibleSubscribers",[{search:g}]),[g,f]),S=(0,r.useSelect)(e=>e(p.O4).getDocumentationLinkURL("dashboard-sharing")),A=(0,r.useSelect)(e=>e(p.O4).getDocumentationLinkURL("email-reporting-inviting-others"));(0,o.useEffect)(()=>{e&&t&&(_.cancel(),n(""),d(""),h({}))},[t,e,_]);const N=(0,o.useCallback)((e,t)=>{h(i=>({...i,[e]:t}))},[]);if(!e)return null;const w=y?.users||[],I=(v?.total||0)>ne,C=(0,m.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)(b.A,{href:S,external:!0,hideExternalIndicator:!0}),learnMoreLink:(0,j.jsx)(b.A,{href:A,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)(Q.A,{title:C})]}),I&&(0,j.jsx)(InviteSearchInput,{value:i,onChange:n}),(0,j.jsx)(InviteUserList,{users:w,searchTerm:g,inviteResults:u,onInviteResult:N,isLoading:x})]})}function PanelContent({notice:e,isUserSubscribed:t,isSavingSettings:i,onSaveCallback:n,onSubscribe:a,onUnsubscribe:c,onNoticeDismiss:d,closePanel:u}){const m=(0,r.useSelect)(e=>e(l.oR).getUser()),f=m?.wpEmail,b=(0,k.A)(),y=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),v=(0,r.useSelect)(e=>b?null:e(p.O4).getEmailReportingErrors()),S=[y,(0,r.useSelect)(e=>e(l.oR).getEmailReportingSettings()),v,(0,r.useSelect)(e=>e(h.i).getModules())].some(e=>void 0===e);return(0,j.jsxs)(o.Fragment,{children:[(0,j.jsx)(Header,{closePanel:u,isLoading:S}),(0,j.jsxs)(g.kA,{className:"googlesitekit-user-settings-selection__panel-content",children:[(0,j.jsx)(Notices,{isLoading:S,onGoToSettings:u}),(0,j.jsxs)("div",{className:"googlesitekit-user-settings-selection__panel-description",children:[S&&(0,j.jsxs)(o.Fragment,{children:[(0,j.jsx)(x.A,{width:"100%",height:"16px"}),(0,j.jsx)(x.A,{width:"60%",height:"16px"})]}),!S&&y&&(0,j.jsxs)(_.A,{type:"body",size:"small",children:[(0,s.__)("You’ll receive the report to your WordPress user email","google-site-kit"),f&&(0,j.jsx)(N.A,{type:"body",size:"medium",children:f})]})]}),(0,j.jsx)(FrequencySelector,{isUserSubscribed:t,isLoading:S}),(0,j.jsx)(SubscribeActions,{onSubscribe:a,onUnsubscribe:c,updateSettings:n,isSubscribed:t,isSavingSettings:i,isLoading:S}),y&&!b&&(0,j.jsx)(InviteOthersToSubscribe,{})]}),y&&(0,j.jsx)(SelectionPanelFooter,{notice:e,onNoticeDismiss:d})]})}function UserSettingsSelectionPanel(){const e=(0,y.A)(),t=(0,r.useSelect)(e=>e(a.n).getValue(c.Q)),i=(0,n.A)(t),d=(0,o.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()),h=(0,r.useSelect)(e=>e(l.oR).getEmailReportingFrequency()),[m,f]=(0,o.useState)(null),{setValue:k}=(0,r.useDispatch)(a.n),{saveEmailReportingSettings:b,resetEmailReportingSettings:_}=(0,r.useDispatch)(l.oR),v=(0,o.useCallback)(()=>{t&&(setTimeout(()=>{_(),f(null)},310),k(c.Q,!1),(0,te.sx)(`${e}_email_reports_user_settings-sidebar`,"user_settings_sidebar_close"))},[t,_,k,e]),x=(0,o.useCallback)(async()=>{const{error:t}=await b();(0,te.sx)(`${e}_email_reports_user_settings-sidebar`,"update_settings",h),f(t?{type:A.Q.ERROR,text:t?.message||(0,s.__)("An error occurred.","google-site-kit")}:{type:A.Q.SUCCESS,text:(0,s.__)("You’ve successfully updated frequency settings!","google-site-kit")})},[b,e,h]),S=(0,o.useCallback)(async()=>{const{error:t}=await b({subscribed:!0});(0,te.sx)(`${e}_email_reports_user_settings-sidebar`,"subscribe",h),f(t?{type:A.Q.ERROR,text:t?.message||(0,s.__)("An error occurred.","google-site-kit")}:{type:A.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")})},[b,e,h]),N=(0,o.useCallback)(async()=>{const{error:t}=await b({subscribed:!1});(0,te.sx)(`${e}_email_reports_user_settings-sidebar`,"unsubscribe"),f(t?{type:A.Q.ERROR,text:t?.message||(0,s.__)("An error occurred.","google-site-kit")}:{type:A.Q.INFO_ALT_2,text:(0,s.__)("You’ve unsubscribed from email reports","google-site-kit")})},[b,e]),w=(0,o.useCallback)(()=>f(null),[]);return(0,o.useEffect)(()=>{!i&&t&&k("admin-screen-tooltip",{isTooltipVisible:!1})},[t,i,k]),(0,j.jsx)(g.Ay,{className:"googlesitekit-user-settings-selection-panel googlesitekit-email-reporting-settings",isOpen:!!t,onOpen:d,closePanel:v,children:(0,j.jsx)(PanelContent,{notice:m,isUserSubscribed:u?.subscribed,isSavingSettings:p,onSaveCallback:x,onSubscribe:S,onUnsubscribe:N,onNoticeDismiss:w,closePanel:v})})}PanelContent.propTypes={savedFrequency:u().string,notice:u().shape({title:u().string,text:u().string,type:u().oneOf(Object.values(A.Q))}),isUserSubscribed:u().bool,isSavingSettings:u().bool,onSaveCallback:u().func,onSubscribe:u().func,onUnsubscribe:u().func,onNoticeDismiss:u().func,closePanel:u().func}},1641:(e,t,i)=>{i.d(t,{A:()=>ReportErrorActions});var s=i(62688),o=i.n(s),n=i(63696),r=i(13606),a=i(82871),l=i(50539),c=i(49383),g=i(29785),d=i(88273),u=i(13137),p=i(4124),h=i(38432),m=i(62540);function ReportErrorActions(e){const{moduleSlug:t,error:i,GetHelpLink:s,hideGetHelpLink:o,buttonVariant:f,onRetry:k,onRequestAccess:b,getHelpClassName:_,RequestAccessButton:y,RetryButton:v}=e,x=(0,p.A)(),j=(0,l.useSelect)(e=>e(d.i).getModuleStoreName(t)),S=(0,l.useSelect)(e=>"function"==typeof e(j)?.getServiceEntityAccessURL?e(j).getServiceEntityAccessURL():null),A=Array.isArray(i)?i:[i],N=(0,l.useSelect)(e=>A.map(t=>{const i=e(j)?.getSelectorDataForError(t);return{...t,selectorData:i}})),w=N?.filter(e=>(0,u.vl)(e,e.selectorData)&&"getReport"===e.selectorData.name),I=!!w.length,C=(0,l.useSelect)(e=>{const i={...I?w[0]:A[0]};return(0,u.SG)(i)&&(i.code=`${t}_insufficient_permissions`),e(g.O4).getErrorTroubleshootingLinkURL(i)}),T=(0,l.useDispatch)(),M=A.some(e=>(0,u.SG)(e)),E=(0,n.useCallback)(()=>{w.forEach(e=>{const{selectorData:t}=e;T(t.storeName).invalidateResolution(t.name,t.args)}),k?.()},[T,w,k]),R=S&&M&&!x;return(0,m.jsxs)("div",{className:"googlesitekit-report-error-actions",children:[R&&("function"==typeof y?(0,m.jsx)(y,{requestAccessURL:S}):(0,m.jsx)(c.Button,{onClick:b,href:S,target:"_blank",danger:"danger"===f,tertiary:"tertiary"===f,children:(0,a.__)("Request access","google-site-kit")})),I&&(0,m.jsxs)(n.Fragment,{children:["function"==typeof v?(0,m.jsx)(v,{handleRetry:E}):(0,m.jsx)(c.Button,{onClick:E,danger:"danger"===f,tertiary:"tertiary"===f,children:(0,a.__)("Retry","google-site-kit")}),!o&&(0,m.jsx)("span",{className:"googlesitekit-error-retry-text",children:(0,r.A)((0,a.__)("Retry didn’t work? <HelpLink />","google-site-kit"),{HelpLink:(0,m.jsx)(h.A,{href:C,external:!0,hideExternalIndicator:!0,children:(0,a.__)("Get help","google-site-kit")})})})]}),!I&&!o&&(0,m.jsx)("div",{className:_,children:"function"==typeof s?(0,m.jsx)(s,{linkURL:C}):(0,m.jsx)(h.A,{href:C,external:!0,hideExternalIndicator:!0,children:(0,a.__)("Get help","google-site-kit")})})]})}ReportErrorActions.propTypes={moduleSlug:o().string.isRequired,error:o().oneOfType([o().arrayOf(o().object),o().object]).isRequired,GetHelpLink:o().elementType,hideGetHelpLink:o().bool,buttonVariant:o().string,onRetry:o().func,onRequestAccess:o().func,getHelpClassName:o().string,RequestAccessButton:o().elementType,RetryButton:o().elementType}},2671:(e,t,i)=>{i.d(t,{A:()=>ModuleIcon});var s=i(62688),o=i.n(s),n=i(50539),r=i(88273),a=i(62540);function ModuleIcon({slug:e,size:t,...i}){const s=(0,n.useSelect)(t=>t(r.i).getModuleIcon(e));return s?(0,a.jsx)(s,{width:t,height:t,...i}):null}ModuleIcon.propTypes={slug:o().string.isRequired,size:o().number},ModuleIcon.defaultProps={size:33}},4008:(e,t,i)=>{i.d(t,{Z:()=>c});var s=i(31589),o=i(40960),n=i(90187),r=i(63696),a=i(50539),l=i(7972);function c(){const{setIsOnline:e}=(0,a.useDispatch)(l.n),t=(0,a.useSelect)(e=>e(l.n).getIsOnline()),i=(0,r.useCallback)(async()=>{if(navigator.onLine){try{await(0,n.default)({path:"/google-site-kit/v1/"})}catch(t){if("fetch_error"===t?.code)return void e(!1)}e(!0)}else e(!1)},[e]);(0,s.A)("online",i),(0,s.A)("offline",i),(0,o.A)(i,t?12e4:15e3)}},4124:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(20697),o=i(62659);function n(){const e=(0,o.A)();return s.Nn.includes(e)}},4169:(e,t,i)=>{i.d(t,{N$:()=>o,aO:()=>n,qB:()=>s});const s={BOXES:"boxes",COMPOSITE:"composite"},o={QUARTER:"quarter",HALF:"half",FULL:"full"},n="core/widgets"},4751:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(62688),o=i.n(s),n=i(4452),r=i.n(n),a=i(97513),l=i(62540);function PreviewBlock({className:e,width:t,height:i,shape:s,padding:o,smallWidth:n,smallHeight:c,tabletWidth:g,tabletHeight:d,desktopWidth:u,desktopHeight:p}){const h=(0,a.dv)(),m={width:{[a.mp]:n,[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":o}),style:{width:m.width[h]||t,height:m.height[h]||i},children:(0,l.jsx)("div",{className:r()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===s})})})}PreviewBlock.propTypes={className:o().string,width:o().string,height:o().string,shape:o().string,padding:o().bool,smallWidth:o().string,smallHeight:o().string,tabletWidth:o().string,tabletHeight:o().string,desktopWidth:o().string,desktopHeight:o().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),o=i.n(s),n=i(62688),r=i.n(n),a=i(63696),l=i(62540);const c=(0,a.forwardRef)(({label:e,className:t,hasLeftSpacing:i=!1,...s},n)=>(0,l.jsx)("span",{ref:n,...s,className:o()("googlesitekit-badge",t,{"googlesitekit-badge--has-left-spacing":i}),children:e}));c.displayName="Badge",c.propTypes={label:r().string.isRequired,hasLeftSpacing:r().bool};const g=c},5924:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(15844),o=i(50539),n=i(37467),r=i(7972),a=i(76729);function l(){const[e,t]=(0,n.A)("panel"),{setValue:i}=(0,o.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),o=i.n(s),n=i(82871),r=i(38432),a=i(38021),l=i.n(a),c=i(63696),g=i(12417),d=i(1027),u=i(65123),p=i(49383),h=i(62540);function ReportErrorButton({message:e,componentStack:t}){const[i,s]=(0,c.useState)(!1);return(0,h.jsx)(p.Button,{"aria-label":i?(0,n.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){l()(`\`\`\`\n${e}\n${t}\n\`\`\``),s(!0)},trailingIcon:(0,h.jsx)(g.A,{className:"mdc-button__icon",icon:i?d.A:u.A}),children:i?(0,n.__)("Copied to clipboard","google-site-kit"):(0,n.__)("Copy error contents","google-site-kit")})}ReportErrorButton.propTypes={message:o().string,componentStack:o().string};const m=ReportErrorButton;function GenericErrorHandlerActions({message:e,componentStack:t}){return(0,h.jsxs)("div",{className:"googlesitekit-generic-error-handler-actions",children:[(0,h.jsx)(m,{message:e,componentStack:t}),(0,h.jsx)(r.A,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0,children:(0,n.__)("Report this problem","google-site-kit")})]})}GenericErrorHandlerActions.propTypes={message:o().string,componentStack:o().string}},7076:(e,t,i)=>{i.d(t,{d:()=>r});var s=i(18117),o=i(17243),n=i(63696);function r(...e){const t=(0,s.MA)(()=>(0,o.debounce)(...e),e);return(0,n.useEffect)(()=>()=>t.cancel(),[t]),t}},7551:(e,t,i)=>{i.d(t,{Ay:()=>a,Oo:()=>n,oE:()=>r});var s=i(20697),o=i(62659);const n=s.jU,r=s.f7;function a(){const e=(0,o.A)();return e===s.jU||e===s.Ax?n:e===s.f7||e===s.Is?r:null}},7972:(e,t,i)=>{i.d(t,{F:()=>o,n:()=>s});const s="core/ui",o="activeContextID"},8084:(e,t,i)=>{i.d(t,{$C:()=>w,RF:()=>N,WI:()=>S,_5:()=>v,jU:()=>y,o3:()=>_,x0:()=>j});var s=i(32091),o=i.n(s),n=i(50532),r=i.n(n),a=i(17243),l=i(78913);const c="GET_REGISTRY",g="AWAIT";function d(...e){const t=e.reduce((e,t)=>({...e,...t}),{}),i=x(e.reduce((e,t)=>[...e,...Object.keys(t)],[]));return o()(0===i.length,`collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ${i.join(", ")}. Check your data stores for duplicates.`),t}const u=d,p=d;function h(...e){const t=[...e];let i;return"function"!=typeof t[0]&&(i=t.shift()),(e=i,s={})=>t.reduce((e,t)=>t(e,s),e)}const m=d,f=d,k=d;function b(e){return e}function _(...e){const t=k(...e.map(e=>e.initialState||{}));return{initialState:t,controls:p(...e.map(e=>e.controls||{})),actions:u(...e.map(e=>e.actions||{})),reducer:h(t,...e.map(e=>e.reducer||b)),resolvers:m(...e.map(e=>e.resolvers||{})),selectors:f(...e.map(e=>e.selectors||{}))}}const y={getRegistry:()=>({payload:{},type:c}),*await(e){return{payload:{value:e},type:g}}},v={[c]:(0,l.b)(e=>()=>e),[g]:({payload:e})=>e.value};function x(e){const t=[],i={};for(let s=0;s<e.length;s++){const o=e[s];i[o]=i[o]>=1?i[o]+1:1,i[o]>1&&t.push(o)}return t}const j={actions:y,controls:v,reducer:b};function S(e){return t=>A(e(t))}const A=r()(e=>(0,a.mapValues)(e,(e,t)=>(...i)=>{const s=e(...i);return o()(void 0!==s,`${t}(...) is not resolved`),s}));function N(e,{negate:t=!1}={}){return{safeSelector:(0,l.N)(i=>(s,...o)=>{const n=!t,r=!!t;try{return e(i,s,...o),n}catch{return r}}),dangerousSelector:(0,l.N)(t=>(i,...s)=>{e(t,i,...s)})}}function w(e,t){return o()("function"==typeof e,"a validator function is required."),o()("function"==typeof t,"an action creator function is required."),o()("Generator"!==e[Symbol.toStringTag]&&"GeneratorFunction"!==e[Symbol.toStringTag],"an action’s validator function must not be a generator."),(...i)=>(e(...i),t(...i))}},8513:(e,t,i)=>{i.d(t,{Kk:()=>n,SZ:()=>s,Yw:()=>r,oJ:()=>a,tT:()=>o});const s="body",o=[s,"display","headline","label","title"],n="small",r="medium",a=[n,r,"large"]},8712:(e,t,i)=>{i.d(t,{A:()=>DashboardSharingSettings});var s=i(4452),o=i.n(s),n=i(82871),r=i(50539),a=i(62688),l=i.n(a),c=i(63696),g=i(2671),d=i(62659),u=i(88273),p=i(29785),h=i(7972),m=i(29775),f=i(13047),k=i(97345),b=i(13606),_=i(19266),y=i(49383),v=i(38432),x=i(69195),j=i(11253),S=i(12896),A=i(62540);const N=(0,n.__)("All","google-site-kit"),w=(0,c.forwardRef)(({moduleSlug:e,isLocked:t=!1},i)=>{const s=(0,d.A)(),a=(0,c.useRef)(),{setSharedRoles:l}=(0,r.useDispatch)(u.i),{setValue:g}=(0,r.useDispatch)(h.n),p=(0,r.useSelect)(e=>e(u.i).getShareableRoles()),k=(0,r.useSelect)(t=>t(u.i).getSharedRoles(e)),b=(0,r.useSelect)(e=>e(h.n).getValue(m.zP))===e;(0,S.l)([_._f],i,()=>{b&&g(m.zP,void 0)});const w=(0,r.useSelect)(t=>t(u.i).haveModuleSharingSettingsChanged(e,"sharedRoles")),I=(0,c.useCallback)(()=>{b?(g(m.zP,void 0),w&&(0,f.sx)(`${s}_sharing`,"change_shared_roles",e)):g(m.zP,e)},[b,w,e,g,s]);(0,c.useEffect)(()=>{a.current&&(b?a.current.firstChild.focus():a.current.focus())},[b]);const C=(0,c.useCallback)(({type:t,target:i,keyCode:s})=>{if("keydown"===t&&s!==_.Fm)return;const o=i.closest(".mdc-chip"),n=o?.dataset?.chipId;if(!n)return;let r;r="all"===n?k?.length===p?.length?[]:p.map(({id:e})=>e):null===k?[n]:k.includes(n)?k.filter(e=>e!==n):[...k,n],l(e,r)},[e,l,k,p]);return p?(0,A.jsxs)("div",{className:o()("googlesitekit-user-role-select",{"googlesitekit-user-role-select--open":b}),children:[!b&&(0,A.jsx)(y.Button,{"aria-label":(0,n.__)("Edit roles","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:I,icon:(0,A.jsx)(x.A,{width:23,height:23}),tabIndex:t?-1:void 0,ref:a}),!b&&k?.length>0&&(0,A.jsx)("span",{className:"googlesitekit-user-role-select__current-roles",children:function(){const e=p?.reduce((e,t)=>(k.includes(t.id)&&e.push(t.displayName),e),[]);return e.join(", ")}()}),!b&&(!k||0===k?.length)&&(0,A.jsx)("span",{className:"googlesitekit-user-role-select__add-roles",children:(0,A.jsx)(v.A,{onClick:I,tabIndex:t?-1:void 0,children:(0,n.__)("Add roles","google-site-kit")})}),b&&(0,A.jsxs)(c.Fragment,{children:[(0,A.jsxs)("div",{className:"googlesitekit-user-role-select__chipset",ref:a,children:[(0,A.jsx)(y.Chip,{id:"all",label:N,onClick:C,onKeyDown:C,selected:k?.length===p?.length,className:"googlesitekit-user-role-select__chip--all"}),p.map(({id:e,displayName:t},i)=>(0,A.jsx)(y.Chip,{id:e,label:t,onClick:C,onKeyDown:C,selected:k?.includes(e)},i))]}),(0,A.jsx)(y.Button,{"aria-label":(0,n.__)("Done editing roles","google-site-kit"),title:(0,n.__)("Done","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:I,icon:(0,A.jsx)(j.A,{width:18,height:18}),tabIndex:t?-1:void 0})]})]}):null});w.propTypes={moduleSlug:l().string.isRequired,isLocked:l().bool};const I=w;var C=i(25797);const T=(0,c.forwardRef)(({moduleSlug:e,isLocked:t,hasSharingCapability:i,recoverable:s,recoverableModuleSupportLink:o},r)=>i?(0,A.jsx)(I,{moduleSlug:e,isLocked:t,ref:r}):s?(0,A.jsx)(C.A,{className:"googlesitekit-notice--small",type:C.A.TYPES.WARNING,description:(0,b.A)((0,n.__)("Managing user required to manage view access. <a>Learn more</a>","google-site-kit"),{a:(0,A.jsx)(v.A,{href:o,external:!0,hideExternalIndicator:!0})}),hideIcon:!0}):(0,A.jsx)("p",{className:"googlesitekit-dashboard-sharing-settings__note",children:(0,n.__)("Contact managing user to manage view access","google-site-kit")}));T.propTypes={moduleSlug:l().string.isRequired,isLocked:l().bool.isRequired,hasSharingCapability:l().bool,recoverable:l().bool,recoverableModuleSupportLink:l().string},T.displayName="ModuleViewAccess";const M=T;var E=i(12417),R=i(51135);const D=[{value:"owner",label:(0,n.__)("Only me","google-site-kit")},{value:"all_admins",label:(0,n.__)("Any admin signed in with Google","google-site-kit")}];function ModuleManageAccess({sharedOwnershipModule:e,hasOwnedModule:t,ownerUsername:i,hasSharingCapability:s,manageViewAccess:o,onChange:r}){return e?(0,A.jsxs)("p",{className:"googlesitekit-dashboard-sharing-settings__note",children:[(0,A.jsx)("span",{children:(0,n.__)("Any admin signed in with Google","google-site-kit")}),(0,A.jsx)(y.Tooltip,{title:(0,n.__)("This service requires general access to Google APIs rather than access to a specific user-owned property/entity, so view access is manageable by any admin signed in with Google.","google-site-kit"),children:(0,A.jsx)("span",{className:"googlesitekit-dashboard-sharing-settings__tooltip-icon",children:(0,A.jsx)(E.A,{icon:R.A,size:18})})})]}):t?(0,A.jsx)(y.Select,{className:"googlesitekit-dashboard-sharing-settings__select",value:o,options:D,onChange:r,onClick:r,outlined:!0}):i?(0,A.jsxs)("p",{className:"googlesitekit-dashboard-sharing-settings__note",children:[(0,b.A)((0,n.sprintf)(/* translators: %s: user who manages the module. */ /* translators: %s: user who manages the module. */ (0,n.__)("<span>Managed by</span> <strong>%s</strong>","google-site-kit"),i),{span:(0,A.jsx)("span",{}),strong:(0,A.jsx)("strong",{})}),(0,A.jsx)(y.Tooltip,{title:s?(0,n.sprintf)(/* translators: %s: name of the user who manages the module. */ /* translators: %s: name of the user who manages the module. */ (0,n.__)("%s has connected this and given managing permissions to all admins. You can change who can view this on the dashboard.","google-site-kit"),i):(0,n.sprintf)(/* translators: %s: name of the user who manages the module. */ /* translators: %s: name of the user who manages the module. */ (0,n.__)("Contact %s to change who can manage view access for this module","google-site-kit"),i),children:(0,A.jsx)("span",{className:"googlesitekit-dashboard-sharing-settings__tooltip-icon",children:(0,A.jsx)(E.A,{icon:R.A,size:18})})})]}):null}function Module({moduleSlug:e,moduleName:t,ownerUsername:i,recoverable:s}){const n=(0,d.A)(),a=(0,c.useRef)(),[l,b]=(0,c.useState)(void 0),_=(0,r.useSelect)(e=>e(u.i).hasRecoverableModules()),y=(0,r.useSelect)(e=>e(p.O4).hasMultipleAdmins()),v=_||y,x=(0,r.useSelect)(t=>{var i;return null!==(i=t(u.i).getSharingManagement(e))&&void 0!==i?i:"owner"}),j=(0,r.useSelect)(t=>t(k.oR).hasCapability(k.Ml,e)),S=(0,r.useSelect)(t=>t(k.oR).hasCapability(k.hz,e)),N=(0,r.useSelect)(e=>e(u.i).getSharedOwnershipModules()),w=(0,r.useSelect)(e=>e(h.n).getValue(m.zP)),I=(0,r.useSelect)(e=>e(u.i).isDoingSubmitSharingChanges()),C=(0,r.useSelect)(e=>e(p.O4).getDocumentationLinkURL("dashboard-sharing-module-recovery")),{setSharingManagement:T}=(0,r.useDispatch)(u.i),E=N&&Object.keys(N).includes(e);(0,c.useEffect)(()=>{b(E?"all_admins":x)},[x,E]);const R=(0,r.useSelect)(t=>t(u.i).haveModuleSharingSettingsChanged(e,"management"));(0,c.useEffect)(()=>{R&&(0,f.sx)(`${n}_sharing`,`change_management_${x}`,e)},[R,x,e,n]);const D=(0,c.useCallback)(t=>{const i=t.target.value;b(i),T(e,i)},[T,b,e]),O=e===w,L=!O&&void 0!==w||I;return(0,A.jsxs)("div",{className:o()("googlesitekit-dashboard-sharing-settings__module","googlesitekit-dashboard-sharing-settings__row",{"googlesitekit-dashboard-sharing-settings__row--editing":O,"googlesitekit-dashboard-sharing-settings__row--disabled":L}),ref:a,children:[(0,A.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__column--product",children:[(0,A.jsx)(g.A,{slug:e,size:48}),(0,A.jsx)("span",{className:"googlesitekit-dashboard-sharing-settings__module-name",children:t})]}),(0,A.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--view",children:(0,A.jsx)(M,{moduleSlug:e,isLocked:L,hasSharingCapability:S,recoverable:s,recoverableModuleSupportLink:C,ref:a})}),v&&(0,A.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--manage",children:(0,A.jsx)(ModuleManageAccess,{sharedOwnershipModule:E,hasOwnedModule:j,ownerUsername:i,hasSharingCapability:S,manageViewAccess:l,onChange:D})})]})}function DashboardSharingSettings(){const t=(0,r.useSelect)(e=>e(u.i).hasRecoverableModules()),i=(0,r.useSelect)(e=>e(p.O4).hasMultipleAdmins()),s=t||i,a=(0,r.useSelect)(t=>{const i=t(k.oR).getID(),s=t(u.i).getShareableModules(),o=[],n=[],r=[];for(e of Object.values(s))e.owner?.id===i?o.push(e):t(k.oR).hasCapability(k.hz,e.slug)?n.push(e):r.push(e);return[...o,...n,...r]});return void 0===a?null:(0,A.jsxs)("div",{className:o()("googlesitekit-dashboard-sharing-settings",{"googlesitekit-dashboard-sharing-settings--has-multiple-admins":s}),children:[(0,A.jsxs)("header",{className:"googlesitekit-dashboard-sharing-settings__header googlesitekit-dashboard-sharing-settings__row",children:[(0,A.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--product",children:(0,n.__)("Product","google-site-kit")}),(0,A.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--view",children:(0,n.__)("Who can view","google-site-kit")}),s&&(0,A.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__column--manage",children:(0,n.__)("Who can manage view access","google-site-kit")})]}),(0,A.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__main",children:a.map(({slug:e,name:t,owner:i,recoverable:s})=>(0,A.jsx)(Module,{moduleSlug:e,moduleName:t,ownerUsername:i?.login,recoverable:s},e))})]})}ModuleManageAccess.propTypes={sharedOwnershipModule:l().bool,hasOwnedModule:l().bool,ownerUsername:l().string,hasSharingCapability:l().bool,manageViewAccess:l().string,onChange:l().func.isRequired},Module.propTypes={moduleSlug:l().string.isRequired,moduleName:l().string.isRequired,ownerUsername:l().string,recoverable:l().bool},e=i.hmd(e)},8732:(e,t,i)=>{i.d(t,{$:()=>n,D:()=>o});var s=i(20697);const o="core/notifications",n=[s.uR,s.jU,s.f7,s.Ax,s.Is]},10740:(e,t,i)=>{i.d(t,{$z:()=>o.$,CR:()=>a.C,Cf:()=>l.DialogContent,Es:()=>l.DialogFooter,Nv:()=>s.N,P3:()=>r.P,Si:()=>n.S,fI:()=>g.fI,fh:()=>g.fh,lG:()=>c.a,xA:()=>g.xA});var s=i(91046),o=i(3412),n=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:()=>n});var s=i(32091),o=i.n(s);function n(e,{dateRangeLength:t}){o()(Array.isArray(e),"report must be an array to partition."),o()(Number.isInteger(t)&&t>0,"dateRangeLength must be a positive integer.");const i=-1*t;return{currentRange:e.slice(i),compareRange:e.slice(2*i,i)}}},11253:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=i(63696);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},n.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},e),s||(s=o.createElement("g",{fill:"currentColor",fillRule:"evenodd"},o.createElement("path",{d:"M0 6.414 1.415 5l5.292 5.292-1.414 1.415z"}),o.createElement("path",{d:"m14.146.146 1.415 1.414L5.414 11.707 4 10.292z"}))))},11763:(e,t,i)=>{i.d(t,{A:()=>SpinnerButton,k:()=>d});var s=i(62688),o=i.n(s),n=i(4452),r=i.n(n),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:o=d.AFTER,...n}=e,u=(0,a.pickBy)(n,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":o===d.BEFORE,"googlesitekit-button-icon--spinner__after":o===d.AFTER}),icon:s&&o===d.BEFORE?(0,g.jsx)(c.A,{size:14}):void 0,trailingIcon:s&&o===d.AFTER?(0,g.jsx)(c.A,{size:14}):void 0,onClick:i,...u})}SpinnerButton.propTypes={className:o().string,onClick:o().func,isSaving:o().bool,spinnerPosition:o().oneOf(Object.values(d))}},11883:(e,t,i)=>{i.d(t,{YJ:()=>n,Eq:()=>r});var s=i(97513),o=i(17243);function n(e,t){const s=document.querySelector(e);if(!s)return 0;const o=s.getBoundingClientRect().top,n=r(t);return o+i.g.scrollY-n}function r(e){let t=function(e){let t=0;const n=document.querySelector(".googlesitekit-header");t=n&&"sticky"===i.g.getComputedStyle(n).position?function(e){const t=document.querySelector(".googlesitekit-header");if(t){if(e===s.mp)return t.offsetHeight;const i=t.getBoundingClientRect().bottom;return i<0?0:i}return 0}(e):function(e){const t=document.querySelector("#wpadminbar");if(t&&e!==s.mp)return t.offsetHeight;return 0}(e);return t=function(e){return(0,o.isFinite)(e)?e:0}(t),t<0?0:t}(e);const n=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(n).reduce((e,t)=>e+t.offsetHeight,0),t}},11974:(e,t,i)=>{i.d(t,{A:()=>OptIn});var s=i(62688),o=i.n(s),n=i(4452),r=i.n(n),a=i(63696),l=i(13606),c=i(82871),g=i(50539),d=i(97345),u=i(65054),p=i(38432),h=i(62659),m=i(7076),f=i(49383),k=i(62540);function LayoutDefault({checkboxProps:e,label:t}){return(0,k.jsx)(f.Checkbox,{...e,children:t})}function LayoutStacked({checkboxProps:e,title:t,description:i}){return(0,k.jsxs)(a.Fragment,{children:[(0,k.jsx)(f.Checkbox,{...e,children:t}),(0,k.jsx)("div",{className:"googlesitekit-opt-in__description",children:i})]})}LayoutDefault.propTypes={checkboxProps:o().object.isRequired,label:o().node.isRequired},LayoutStacked.propTypes={checkboxProps:o().object.isRequired,title:o().node.isRequired,description:o().node.isRequired};const b="default",_="stacked";function OptIn({id:e="googlesitekit-opt-in",name:t="optIn",className:i,layout:s=b,title:o=null,description:n=null,trackEventCategory:f,trackEventAction:y="tracking_optin"}){const[v,x]=(0,a.useState)(),j=(0,g.useSelect)(e=>e(d.oR).isTrackingEnabled()),S=(0,g.useSelect)(e=>e(d.oR).getErrorForAction("setTrackingEnabled",[!j])),{setTrackingEnabled:A}=(0,g.useDispatch)(d.oR),N=(0,h.A)(),w=(0,a.useCallback)(async e=>{const{response:t,error:i}=await A(e);i?x(j):((0,u.M9)(t.enabled),t.enabled&&(0,u.sx)(f||N,y))},[j,A,f,y,N]);(0,a.useEffect)(()=>{void 0!==j&&void 0===v&&x(j)},[j,v]);const I=(0,m.d)(w,300),C=(0,a.useCallback)(e=>{const t=e.target.checked;x(t),I(t)},[I]),T=null!=o?o:(0,k.jsx)("span",{children:(0,c.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")}),M=null!=n?n:(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,k.jsx)(p.A,{href:"https://policies.google.com/privacy",external:!0},"link"),span:(0,k.jsx)("span",{})}),E={id:e,name:t,value:"1",checked:v,onChange:C,loading:void 0===j};return(0,k.jsxs)("div",{className:r()("googlesitekit-opt-in",i,s===_&&"googlesitekit-opt-in--layout-stacked"),children:[s===_?(0,k.jsx)(LayoutStacked,{checkboxProps:E,title:T,description:M}):(0,k.jsx)(LayoutDefault,{checkboxProps:E,label:(0,k.jsxs)(a.Fragment,{children:[T," ",M]})}),S?.message&&(0,k.jsx)("div",{className:"googlesitekit-error-text",children:S?.message})]})}OptIn.propTypes={id:o().string,name:o().string,className:o().string,title:o().node,description:o().node,layout:o().oneOf([b,_]),trackEventCategory:o().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),o=i.n(s),n=i(4452),r=i.n(n),a=i(49383),l=i(38432),c=i(33052),g=i(62540);function CTA({title:e,headerText:t,headerContent:i,description:s,ctaLink:o,ctaLabel:n,ctaLinkExternal:d,ctaType:u,error:p,onClick:h,"aria-label":m,children:f}){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}),n&&"button"===u&&(0,g.jsx)(a.Button,{"aria-label":m,href:o,onClick:h,children:n}),n&&"link"===u&&(0,g.jsx)(l.A,{href:o,onClick:h,"aria-label":m,external:d,hideExternalIndicator:d,arrow:!0,children:n}),f]})]})}CTA.propTypes={title:o().string.isRequired,headerText:o().string,description:o().oneOfType([o().string,o().node]),ctaLink:o().string,ctaLinkExternal:o().bool,ctaLabel:o().string,ctaType:o().string,"aria-label":o().string,error:o().bool,onClick:o().func,children:o().node,headerContent:o().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:()=>o});var s=i(78174);function o(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:()=>k.tt,Jg:()=>k.Jg,Gp:()=>k.Gp,GH:()=>k.GH,r0:()=>k.r0,Du:()=>k.Du,Zf:()=>I,Cn:()=>x,G7:()=>f,vH:()=>m,N_:()=>k.N_,zh:()=>T,mK:()=>g.mK,Ql:()=>k.Ql,vY:()=>v,sq:()=>k.sq,VZ:()=>j.VZ,JK:()=>g.JK,IS:()=>k.IS,pH:()=>j.pH,kf:()=>A,O5:()=>k.O5,Qr:()=>k.Qr,x6:()=>S,K5:()=>g.K5,S_:()=>h,dc:()=>j.dc,Eo:()=>g.Eo,jq:()=>g.jq,DK:()=>w.D,N9:()=>N,p9:()=>n.p,XH:()=>k.XH,Zm:()=>l,sx:()=>o.sx,BI:()=>o.BI,CZ:()=>n.C,BG:()=>C});var s=i(17243),o=i(65054),n=i(50477),r=i(10523),a=i.n(r);function l(e){return a()(JSON.stringify(c(e)))}function c(e){const t={};return Object.keys(e).sort().forEach(i=>{let s=e[i];s&&"object"==typeof s&&!Array.isArray(s)&&(s=c(s)),t[i]=s}),t}var g=i(49746);function d(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function u(e){return`<p>${e.replace(/\n{2,}/g,"</p><p>")}</p>`}function p(e){return e.replace(/\n/gi,"<br>")}function h(e){const t=[d,u,p];let i=e;for(const e of t)i=e(i);return i}function m(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]}function f(e){const t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}var k=i(51193),b=i(78159),_=i(38017),y=i(62540);function v(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:i=!1}=t;return(0,b.Ay)((0,y.jsx)(_.A,{direction:e>0?"up":"down",invertColor:i}))}function x(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var j=i(48276);function S(e){const t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function A(e){if("number"==typeof e)return!0;const t=(e||"").toString();return!!t&&!isNaN(t)}function N(e){return Array.isArray(e)?[...e].sort():e}var w=i(11193);function I(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 C(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function T(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:()=>o,e4:()=>p,vl:()=>u});i(17243);var s=i(82871);const o="missing_required_scopes",n="insufficientPermissions",r="forbidden",a="internal_server_error",l="invalid_json";function c(e){return e?.code===o}function g(e){return[n,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),o=i.n(s),n=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),h=i(30289),m=i(62540);const f="email_reports_permissions_error_notice",k=(0,h.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?.()),o=(0,g.WM)(t=>t(r.O4).getErrorTroubleshootingLinkURL({code:`${e}_insufficient_permissions`})),n=(0,p.A)(f);return(0,m.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: %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:n.view,ctaButton:s?{label:(0,l.__)("Request access","google-site-kit"),href:s,external:!0,hideExternalIndicator:!0,onClick:n.confirm}:null,dismissButton:o?{label:(0,l.__)("Get help","google-site-kit"),onClick:n.dismiss,href:o,external:!0}:null})}const b="email_reports_report_error_notice",_=(0,h.A)(d.A);function ReportErrorNotice({moduleSlug:e,onGoToSettings:t}){const i=(0,g.WM)(t=>t(c.i).getModule(e)),s=(0,p.A)(b),o=(0,g.WM)(t=>t(r.O4).getModuleSettingsURL(e)),n=(0,g.WM)(e=>e(r.O4).getDocumentationLinkURL("email-reporting-module-issues"));return(0,m.jsx)(_,{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:o?{label:(0,l.__)("Go to settings","google-site-kit"),href:o,onClick:()=>{t?.(),s.confirm()}}:null,dismissButton:{label:(0,l.__)("Get help","google-site-kit"),onClick:s.dismiss,href:n,external:!0}})}const y="email_reports_sending_error_notice",v=(0,h.A)(d.A);function SendingErrorNotice(){const e=(0,p.A)(y),t=(0,g.WM)(e=>e(r.O4).getDocumentationLinkURL("email-reporting-deliverability-issues"));return(0,m.jsx)(v,{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 x="email_reporting_cron_scheduler_error_notice",j=(0,h.A)(d.A);function CronSchedulerErrorNotice(){const e=(0,p.A)(x),t=(0,g.WM)(e=>e(r.O4).getDocumentationLinkURL("email-reporting-scheduler-issues"));return(0,m.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 S="email_reports_server_error_notice",A=(0,h.A)(d.A);function ServerErrorNotice(){const e=(0,p.A)(S),t=(0,g.WM)(e=>e(r.O4).getDocumentationLinkURL("email-reporting-server-issues"));return(0,m.jsx)(A,{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,n.useSelect)(e=>e(r.O4).isEmailReportingEnabled()),s=(0,n.useSelect)(e=>e(r.O4).getEmailReportingErrors()),o=(0,n.useSelect)(e=>e(r.O4).getLatestEmailReportingError());if(!i||t||0===s?.length||void 0===o)return null;switch(o?.category_id){case"permissions_error":return(0,m.jsx)(PermissionsErrorNotice,{moduleSlug:o.module_slug});case"report_error":return(0,m.jsx)(ReportErrorNotice,{moduleSlug:o.module_slug,onGoToSettings:e});case"sending_error":return(0,m.jsx)(SendingErrorNotice,{});case"cron_scheduler_error":return(0,m.jsx)(CronSchedulerErrorNotice,{});default:return(0,m.jsx)(ServerErrorNotice,{})}}EmailReportingErrorNotices.propTypes={onGoToSettings:o().func}},15118:(e,t,i)=>{i.d(t,{A:()=>ReportZero});var s=i(62688),o=i.n(s),n=i(82871),r=i(50539),a=i(88273),l=i(12317),c=i(62540);function ReportZero({moduleSlug:e}){const t=(0,r.useSelect)(t=>t(a.i).getModule(e));return(0,c.jsx)(l.A,{title:(0,n.sprintf)(/* translators: %s: Module name */ /* translators: %s: Module name */ (0,n.__)("%s Gathering Data","google-site-kit"),t?.name),description:(0,n.sprintf)(/* translators: %s: Module name */ /* translators: %s: Module name */ (0,n.__)("%s data is not yet available, please check back later","google-site-kit"),t?.name)})}ReportZero.propTypes={moduleSlug:o().string.isRequired}},15650:(e,t,i)=>{i.d(t,{kA:()=>SelectionPanelContent,gy:()=>SelectionPanelFooter,W4:()=>SelectionPanelHeader,y3:()=>SelectionPanelItem,DW:()=>SelectionPanelItems,Ay:()=>w});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(4544),l=i.n(a),c=i(21795),g=i(78174),d=i(63696),u=i(19266),p=i(94656),h=i(62540);function SideSheet({className:e,children:t,isOpen:s,isLoading:n,onOpen:r=()=>{},closeSheet:a=()=>{},focusTrapOptions:m={}}){const f=(0,d.useRef)(),[k,b]=(0,d.useState)(0);return(0,d.useEffect)(()=>{s?(b(function(){const e=i.g.document?.getElementById("wpadminbar");if(!e)return 0;const{top:t,bottom:s,height:o}=e.getBoundingClientRect();return t<0||s<=0?0:o}()),r(),document.body.classList.add("googlesitekit-side-sheet-scroll-lock")):(b(0),document.body.classList.remove("googlesitekit-side-sheet-scroll-lock"))},[s,r]),(0,c.A)(f,function(e){e.target.closest?.(".googlesitekit-tooltip-popper")||a()}),(0,g.A)(e=>s&&u._f===e.keyCode,a),(0,h.jsxs)(p.A,{children:[(0,h.jsx)(l(),{active:!!s&&!n,focusTrapOptions:{fallbackFocus:"body",allowOutsideClick:function(e){return!!e.target.closest?.(".googlesitekit-tooltip-popper")},...m},children:(0,h.jsx)("section",{ref:f,className:o()("googlesitekit-side-sheet",e,{"googlesitekit-side-sheet--open":s}),role:"dialog","aria-modal":"true","aria-hidden":!s,tabIndex:"0",style:{"--googlesitekit-side-sheet-top":`${k}px`},children:t})}),s&&(0,h.jsx)("span",{className:"googlesitekit-side-sheet-overlay"})]})}function SelectionPanel({children:e,isOpen:t,isLoading:i,onOpen:s,closePanel:n,className:r}){const a=r?.split(/\s+/).map(e=>`.${e}`).join(""),l=a?`${a} .googlesitekit-selection-panel-item .googlesitekit-selection-box input`:".googlesitekit-selection-panel-item .googlesitekit-selection-box input";return(0,h.jsx)(SideSheet,{className:o()("googlesitekit-selection-panel",r),isOpen:t,isLoading:i,onOpen:s,closeSheet:n,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 m=i(38432),f=i(72545),k=i(33052);function SelectionPanelHeader({children:e,title:t,onCloseClick:i}){return(0,h.jsxs)("header",{className:"googlesitekit-selection-panel-header",children:[(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-header__row",children:[(0,h.jsx)(k.A,{as:"h3",size:"small",type:"headline",children:t}),(0,h.jsx)(m.A,{className:"googlesitekit-selection-panel-header__close",onClick:i,linkButton:!0,children:(0,h.jsx)(f.A,{width:"15",height:"15"})})]}),e]})}SelectionPanelHeader.propTypes={children:r().node,title:r().string,onCloseClick:r().func};var b=i(82871),_=i(49383);function SelectionBox({badge:e,checked:t,children:i,disabled:s,id:n,onChange:r,title:a,value:l}){return(0,h.jsx)("div",{className:o()("googlesitekit-selection-box",{"googlesitekit-selection-box--disabled":s}),children:(0,h.jsx)(_.Checkbox,{checked:t,description:i,disabled:s,id:n,name:n,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 y=i(5855);function SelectionPanelItem({children:e,id:t,slug:i,title:s,description:o,isItemSelected:n,isItemDisabled:r,onCheckboxChange:a,subtitle:l,suffix:c,badge:g,isNewlyDetected:d}){return(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-item",children:[(0,h.jsxs)(SelectionBox,{badge:g,checked:n,disabled:r,id:t,onChange:a,title:s,value:i,children:[l&&(0,h.jsx)("span",{className:"googlesitekit-selection-panel-item__subtitle",children:l}),o,e]}),d&&(0,h.jsx)(y.A,{label:(0,b.__)("New","google-site-kit")}),c&&(0,h.jsx)("span",{className:"googlesitekit-selection-panel-item__suffix",children:c})]})}function SelectionPanelItems({currentSelectionTitle:e=(0,b.__)("Current selection","google-site-kit"),availableItemsTitle:t=(0,b.__)("Additional items","google-site-kit"),savedItemSlugs:i=[],availableSavedItems:s={},availableUnsavedItems:o={},ItemComponent:n,notice:r}){function a(e){return Object.keys(e).map(t=>(0,h.jsx)(n,{slug:t,savedItemSlugs:i,...e[t]},t))}const l=Object.keys(o).length;return(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-items",children:[0!==i.length&&(0,h.jsxs)(d.Fragment,{children:[(0,h.jsx)("p",{className:"googlesitekit-selection-panel-items__subheading",children:e}),(0,h.jsx)("div",{className:"googlesitekit-selection-panel-items__subsection",children:a(s)}),l>0&&(0,h.jsx)("p",{className:"googlesitekit-selection-panel-items__subheading",children:t})]}),l>0&&(0,h.jsx)("div",{className:"googlesitekit-selection-panel-items__subsection",children:a(o)}),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 v=i(17243),x=i(13606),j=i(50539),S=i(13047),A=i(80),N=i(4751);function SelectionPanelFooter({savedItemSlugs:e=[],selectedItemSlugs:t=[],saveSettings:i=()=>{},minSelectedItemCount:s=0,maxSelectedItemCount:o=0,isBusy:n,onSaveSuccess:r=()=>{},onCancel:a=()=>{},isOpen:l,closePanel:c=()=>{}}){const[g,u]=(0,d.useState)(null),[p,m]=(0,d.useState)(!1),f=(0,j.useSelect)(e=>e(A.K9).isFetchingSyncAvailableAudiences()),k=(0,d.useMemo)(()=>!(0,v.isEqual)((0,S.N9)(t),(0,S.N9)(e)),[e,t]),y=e?.length>0&&k?(0,b.__)("Apply changes","google-site-kit"):(0,b.__)("Save selection","google-site-kit"),w=(0,d.useCallback)(async()=>{const{error:e}=await i(t);e||(r(),c(),u(y),m(!0))},[i,t,r,c,y]),I=(0,d.useCallback)(()=>{c(),a()},[c,a]),[C,T]=(0,d.useState)(null);(0,d.useEffect)(()=>{null!==C&&C!==l&&l&&(u(null),m(!1)),T(l)},[l,C]);const M=t?.length||0,E=f?(0,h.jsx)(N.A,{width:"89px",height:"20px"}):(0,h.jsx)("p",{className:"googlesitekit-selection-panel-footer__item-count",children:(0,x.A)((0,b.sprintf)(/* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */ /* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */ (0,b.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),M,o),{MaxCount:(0,h.jsx)("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})})});return(0,h.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-footer__content",children:[E,(0,h.jsxs)("div",{className:"googlesitekit-selection-panel-footer__actions",children:[(0,h.jsx)(_.Button,{onClick:I,disabled:n,tertiary:!0,children:(0,b.__)("Cancel","google-site-kit")}),(0,h.jsx)(_.SpinnerButton,{onClick:w,isSaving:n,disabled:M<s||M>o||n||!l&&p,children:g||y})]})]})})}function SelectionPanelContent({children:e,className:t}){return(0,h.jsx)("div",{className:o()("googlesitekit-selection-panel__content",t),children:e})}SelectionPanelFooter.propTypes={savedItemSlugs:r().array,selectedItemSlugs:r().array,saveSettings:r().func,minSelectedItemCount:r().number,maxSelectedItemCount:r().number,isBusy:r().bool,onSaveSuccess:r().func,onCancel:r().func,isOpen:r().bool,closePanel:r().func},SelectionPanelContent.propTypes={children:r().node,className:r().string};const w=SelectionPanel},17884:(e,t,i)=>{i.d(t,{A:()=>H});var s=i(62688),o=i.n(s),n=i(4452),r=i.n(n),a=i(50539),l=i(63696),c=i(96177),g=i(11883),d=i(4169),u=i(7972),p=i(10740),h=i(97513),m=i(20762),f=i(92449),k=i(17243),b=i(88273),_=i(73963),y=i(79266),v=i(33494),x=i(4124),j=i(62540);function WidgetRenderer({slug:e,OverrideComponent:t}){const i=(0,a.useSelect)(t=>t(d.aO).getWidget(e)),s=(0,h.dv)(),o=(0,c.c1)(e),{Widget:n,WidgetNull:r}=o,g=(0,a.useSelect)(e=>e(b.i).getRecoverableModules()),u=(0,x.A)(),p=(0,l.useMemo)(()=>i&&g&&(0,k.intersection)(i.modules,Object.keys(g)),[g,i]),m=(0,a.useSelect)(t=>t(d.aO).isWidgetPreloaded(e));if(!i||void 0===p||i?.hideOnBreakpoints?.includes(s))return(0,j.jsx)(r,{});const{Component:f,wrapWidget:S}=i;let A=(0,j.jsx)(f,{...o});return u&&p?.length&&(A=(0,j.jsx)(y.A,{widgetSlug:e,moduleSlugs:p})),t?A=(0,j.jsxs)(l.Fragment,{children:[(0,j.jsx)(_.A,{widgetSlug:"overridden",children:(0,j.jsx)(t,{})}),(0,j.jsx)("div",{className:v.Y2,children:A})]}):S&&(A=(0,j.jsx)(n,{children:A})),m?(0,j.jsx)("div",{className:v.Y2,children:A}):A}WidgetRenderer.propTypes={slug:o().string.isRequired,OverrideComponent:o().elementType};const S=WidgetRenderer;function WidgetCellWrapper({gridColumnWidth:e,children:t}){return 0===e?(0,j.jsx)("div",{className:v.Y2,children:t}):e<6?(0,j.jsx)(p.fh,{lgSize:e,mdSize:4,smSize:2,children:t}):e<8?(0,j.jsx)(p.fh,{lgSize:e,mdSize:8,children:t}):(0,j.jsx)(p.fh,{size:e,children:t})}WidgetCellWrapper.propTypes={gridColumnWidth:o().number.isRequired,children:o().element.isRequired};const A=WidgetCellWrapper;var N=i(38021),w=i.n(N),I=i(82871),C=i(12317),T=i(6730),M=i(19826),E=i(13047),R=i(83880);class WidgetErrorHandler extends l.Component{constructor(e){super(e),this.state={error:null,info:null},this.onErrorClick=this.onErrorClick.bind(this)}componentDidCatch(e,t){i.g.console.error("Widget error:",e,t),this.setState({error:e,info:t}),(0,E.sx)("widget_error",`handle_${this.context||"unknown"}_error`,`${this.props.slug}_${e?.message}\n${t?.componentStack}`.slice(0,500-this.props.slug.length-1))}onErrorClick(){const{error:e,info:t}=this.state;w()(`\`${e?.message}\n${t?.componentStack}\``)}render(){const{children:e}=this.props,{error:t,info:i}=this.state;return t?(0,j.jsx)("div",{className:"googlesitekit-widget-error-handler",children:(0,j.jsx)(C.A,{description:(0,j.jsxs)(l.Fragment,{children:[(0,j.jsx)(R.A,{children:(0,I.__)("An error prevented this Widget from being displayed properly. Report the exact contents of the error on the support forum to find out what caused it.","google-site-kit")}),(0,j.jsx)(T.A,{message:t.message,componentStack:i.componentStack})]}),onErrorClick:this.onErrorClick,onClick:this.onErrorClick,title:(0,I.__)("Error in Widget","google-site-kit"),error:!0})}):e}}WidgetErrorHandler.contextType=M.Ay,WidgetErrorHandler.propTypes={children:o().node.isRequired};const D=WidgetErrorHandler;var O=i(97345),L=i(37133),P=i(60515);function WidgetNewBadge({slug:e}){const t=(0,a.useSelect)(t=>t(d.aO).getWidgetArea(e)),{hasNewBadge:i}=t,s=`widget-area-expirable-new-badge-${e}`,o=(0,a.useSelect)(e=>e(O.oR).hasExpirableItem(s)),n=(0,a.useSelect)(e=>e(O.oR).isExpirableItemActive(s)),r=i&&(!1===o||n),{setExpirableItemTimers:c}=(0,a.useDispatch)(O.oR);return(0,l.useEffect)(()=>{void 0!==o&&void 0!==n&&i&&!o&&c([{slug:s,expiresInSeconds:4*E.Du}])},[i,s,o,n,c]),!!r&&(0,j.jsx)(P.A,{})}WidgetNewBadge.propTypes={slug:o().string.isRequired};var z=i(24355),B=i(33052);function WidgetAreaHeader({slug:e,Icon:t=!1,title:i="",subtitle:s="",CTA:o}){const n=(0,z.SO)(),r=o&&n>=783,a="function"==typeof s?s:void 0;return(0,j.jsxs)(l.Fragment,{children:[t&&(0,j.jsx)(t,{width:33,height:33}),i&&(0,j.jsxs)(B.A,{as:"h3",type:"headline",size:"small",className:"googlesitekit-widget-area-header__title",children:[i,(0,j.jsx)(WidgetNewBadge,{slug:e})]}),(s||o)&&(0,j.jsxs)("div",{className:"googlesitekit-widget-area-header__details",children:[s&&(0,j.jsxs)(B.A,{as:"h4",size:"medium",type:"body",className:"googlesitekit-widget-area-header__subtitle",children:[a&&(0,j.jsx)(a,{}),!a&&s,!i&&(0,j.jsx)(WidgetNewBadge,{slug:e})]}),r&&(0,j.jsx)("div",{className:"googlesitekit-widget-area-header__cta",children:(0,j.jsx)(o,{})})]})]})}function W(e){const t={[h.Qb]:48,[h.Fo]:48,[h.Lg]:32,[h.mp]:32}[e];return`${-Math.abs((0,g.Eq)(e)+t)}px ${-t}px ${-t}px ${-t}px`}function WidgetAreaRenderer({slug:e,contextID:t}){const i=(0,x.A)(),s=(0,a.useSelect)(e=>i?e(O.oR).getViewableModules():null),o=(0,z.SO)(),n=(0,h.dv)(),g=(0,l.useRef)(),k=(0,L.A)(g,{rootMargin:W(n),threshold:0}),b=(0,a.useSelect)(t=>t(d.aO).getWidgetArea(e)),{Icon:_,title:y,style:v,subtitle:N,CTA:w,Footer:I}=b,C=(0,a.useSelect)(t=>t(d.aO).getWidgets(e,{modules:s||void 0})),T=(0,a.useSelect)(e=>e(d.aO).getWidgetStates()),M=(0,a.useSelect)(t=>t(d.aO).isWidgetAreaActive(e,{modules:s||void 0})),E=(0,a.useSelect)(e=>e(u.n).getValue(u.F)),[R,P]=(0,l.useState)({key:`WidgetAreaRenderer-${e}`,value:E?E===t:!!k?.intersectionRatio});(0,l.useEffect)(()=>{P({key:`WidgetAreaRenderer-${e}`,value:E?E===t:!!k?.intersectionRatio})},[k,e,E,t]);const B=w&&o<=782;if(void 0===s)return null;const{columnWidths:H,rowIndexes:U}=(0,c.X9)(C,T),{gridColumnWidths:G,overrideComponents:V}=(0,c.DO)(C,T,{columnWidths:H,rowIndexes:U}),F=C.map((e,t)=>(0,j.jsx)(A,{gridColumnWidth:G[t],children:(0,j.jsx)(f.Kq,{value:e,children:(0,j.jsx)(D,{slug:e.slug,children:(0,j.jsx)(S,{OverrideComponent:V[t]?()=>{const{Component:e,metadata:i}=V[t];return(0,j.jsx)(e,{...i})}:void 0,slug:e.slug})})})},`${e.slug}-wrapper`));return(0,j.jsxs)(m.Ay,{value:R,children:[!!M&&(0,j.jsxs)(p.xA,{className:r()("googlesitekit-widget-area",`googlesitekit-widget-area--${e}`,`googlesitekit-widget-area--${v}`),ref:g,children:[(0,j.jsx)(p.fI,{children:(0,j.jsx)(p.fh,{className:"googlesitekit-widget-area-header",size:12,children:(0,j.jsx)(WidgetAreaHeader,{slug:e,Icon:_,title:y,subtitle:N,CTA:w})})}),(0,j.jsx)("div",{className:"googlesitekit-widget-area-widgets",children:(0,j.jsxs)(p.fI,{children:[v===d.qB.BOXES&&F,v===d.qB.COMPOSITE&&(0,j.jsx)(p.fh,{size:12,children:(0,j.jsx)(p.xA,{children:(0,j.jsx)(p.fI,{children:F})})})]})}),(0,j.jsxs)(p.fI,{children:[B&&(0,j.jsx)(p.fh,{className:"googlesitekit-widget-area-footer",lgSize:12,mdSize:4,smSize:2,children:(0,j.jsx)("div",{className:"googlesitekit-widget-area-footer__cta",children:(0,j.jsx)(w,{})})}),I&&(0,j.jsx)(p.fh,{className:"googlesitekit-widget-area-footer",lgSize:12,mdSize:B?4:8,smSize:B?2:4,children:(0,j.jsx)(I,{})})]})]}),!M&&(0,j.jsx)(p.xA,{className:r()(c.Y2,"googlesitekit-widget-area",{[`googlesitekit-widget-area--${e}`]:!!e,[`googlesitekit-widget-area--${v}`]:!!v}),ref:g,children:F})]})}function WidgetContextRenderer(e){const{id:t,slug:i,className:s,Header:o,Footer:n}=e,l=(0,x.A)(),c=(0,a.useSelect)(e=>l?e(O.oR).getViewableModules():null),g=(0,a.useSelect)(e=>i?e(d.aO).getWidgetAreas(i):null),u=(0,a.useSelect)(e=>!!i&&e(d.aO).isWidgetContextActive(i,{modules:c||void 0}));return void 0===c?null:(0,j.jsxs)("div",{id:t,className:r()("googlesitekit-widget-context",{"googlesitekit-hidden":!u},s),children:[o&&u&&(0,j.jsx)(p.xA,{children:(0,j.jsx)(p.fI,{children:(0,j.jsx)(p.fh,{size:12,children:(0,j.jsx)(o,{})})})}),g&&g.map(e=>(0,j.jsx)(WidgetAreaRenderer,{slug:e.slug,contextID:t},e.slug)),n&&u&&(0,j.jsx)(p.xA,{children:(0,j.jsx)(p.fI,{children:(0,j.jsx)(p.fh,{size:12,children:(0,j.jsx)(n,{})})})})]})}WidgetAreaHeader.propTypes={slug:o().string.isRequired,Icon:o().bool,title:o().oneOfType([o().string,o().element]),subtitle:o().oneOfType([o().string,o().elementType]),CTA:o().elementType},WidgetAreaRenderer.propTypes={slug:o().string.isRequired,contextID:o().string},WidgetContextRenderer.propTypes={id:o().string,slug:o().string,className:o().string,Header:o().elementType,Footer:o().elementType};const H=WidgetContextRenderer},18418:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=i(63696);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},n.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2 12"},e),s||(s=o.createElement("g",{fill:"currentColor",fillRule:"evenodd"},o.createElement("path",{d:"M0 0h2v7H0zM0 10h2v2H0z"}))))},19793:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=i(63696);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},n.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1m4.806 8.592.592-.806-1.612-1.184-.592.806-3.89 5.296c-.166.226-.36.296-.512.296s-.346-.07-.512-.296l-1.474-2.007-.592-.806-1.612 1.184.592.806 1.474 2.007C9.191 15.6 9.971 16 10.792 16s1.6-.4 2.124-1.112z",clipRule:"evenodd"})))},19826:(e,t,i)=>{i.d(t,{Ay:()=>r,Kq:()=>n});const s=(0,i(63696).createContext)(""),{Consumer:o,Provider:n}=s,r=s},20697:(e,t,i)=>{i.d(t,{Ax:()=>n,CZ:()=>g,Ej:()=>j,Gw:()=>S,Is:()=>r,KK:()=>u,Nn:()=>N,OT:()=>v,SH:()=>y,Y$:()=>p,ZS:()=>a,bg:()=>f,en:()=>x,ep:()=>m,f7:()=>o,hi:()=>h,jU:()=>s,k$:()=>b,kz:()=>A,ly:()=>l,mo:()=>k,s3:()=>_,uR:()=>c,zx:()=>d});const s="mainDashboard",o="entityDashboard",n="mainDashboardViewOnly",r="entityDashboardViewOnly",a="userInput",l="activation",c="splash",g="adminBar",d="adminBarViewOnly",u="settings",p="adBlockingRecovery",h="wpDashboard",m="wpDashboardViewOnly",f="moduleSetup",k="metricSelection",b="wpBlockEditor",_="keyMetricsSetup",y="key-metrics",v="traffic",x="content",j="speed",S="monetization",A=[s,o,n,r,a,c,u,f,k],N=[n,r,d,m]},20762:(e,t,i)=>{i.d(t,{Ay:()=>r});var s=i(52735);const{Consumer:o,Provider:n}=s.A,r=n},21213:(e,t,i)=>{i.d(t,{c1:()=>_,V8:()=>x,WP:()=>v});var s=i(50532),o=i.n(s),n=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),h=i(79266),m=i(17064),f=i(52684),k=i(50539),b=i(7972);function WPDashboardReportError({moduleSlug:e,error:t}){const i=(0,f.A)(WPDashboardReportError,"WPDashboardReportError"),{setValue:s}=(0,k.useDispatch)(b.n),o=t.message,n=(0,k.useSelect)(t=>t(b.n).getValue(`WPDashboardReportError-${e}-${o}`));return(0,m.A)(()=>{s(`WPDashboardReportError-${e}-${o}`,i)},()=>{s(`WPDashboardReportError-${e}-${o}`,void 0)}),n!==i?null:(0,d.jsx)(u.A,{moduleSlug:e,error:t})}WPDashboardReportError.propTypes={moduleSlug:a().string.isRequired,error:a().object.isRequired};const _=o()(e=>({widgetSlug:e,Widget:y(e)(n.A),WidgetRecoverableModules:y(e)(h.A),WidgetReportZero:y(e)(WidgetReportZero),WidgetReportError:y(e)(WidgetReportError),WidgetNull:y(e)(p.A)}));function y(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 v(e){const t=_(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 x(e){return t=>{function DecoratedComponent(i){return(0,d.jsx)(t,{...i,WPDashboardReportError:y(e)(WPDashboardReportError)})}return DecoratedComponent.displayName="WithWPDashboardWidgetComponentProps",(t.displayName||t.name)&&(DecoratedComponent.displayName+=`(${t.displayName||t.name})`),DecoratedComponent}}},22764:(e,t,i)=>{i.d(t,{A:()=>DateRangeSelector});var s,o=i(21795),n=i(4452),r=i.n(n),a=i(63696),l=i(19266),c=i(82871),g=i(50539),d=i(49383);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},u.apply(null,arguments)}const p=e=>a.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 20"},e),s||(s=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 9H4v2h2zm4 0H8v2h2zm4 0h-2v2h2zm2-7h-1V0h-2v2H5V0H3v2H2C.89 2 .01 2.9.01 4L0 18a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 16H2V7h14z"})));var h=i(97345),m=i(12896),f=i(13047),k=i(7972),b=i(62659),_=i(62540);function DateRangeSelector(){const e=(0,f.Ql)(),t=(0,g.useSelect)(e=>e(h.oR).getDateRange()),{setDateRange:i}=(0,g.useDispatch)(h.oR),{resetInViewHook:s}=(0,g.useDispatch)(k.n),[n,u]=(0,a.useState)(!1),y=(0,a.useRef)(),v=(0,b.A)();(0,o.A)(y,()=>u(!1)),(0,m.l)([l._f,l.wn],y,()=>u(!1));const x=(0,a.useCallback)(()=>{u(!n)},[n]),j=(0,a.useCallback)(o=>{const n=Object.values(e)[o].slug;t!==n&&(0,f.sx)(`${v}_headerbar`,"change_daterange",n),s(),i(n),u(!1)},[e,t,s,i,v]),S=e[t]?.label,A=Object.values(e).map(e=>e.label);return(0,_.jsxs)("div",{ref:y,className:"googlesitekit-date-range-selector googlesitekit-dropdown-menu mdc-menu-surface--anchor",children:[(0,_.jsx)(d.Button,{className:r()("mdc-button--dropdown","googlesitekit-header__dropdown","googlesitekit-header__date-range-selector-menu","googlesitekit-border-radius-round--phone","googlesitekit-button-icon--phone"),onClick:x,icon:(0,_.jsx)(p,{width:"20",height:"20"}),"aria-haspopup":"menu","aria-expanded":n,"aria-controls":"date-range-selector-menu",title:(0,c.__)("Date range","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:S}),(0,_.jsx)(d.Menu,{menuOpen:n,menuItems:A,onSelected:j,id:"date-range-selector-menu",className:"googlesitekit-width-auto"})]})}},22942:(e,t,i)=>{i.d(t,{A_:()=>g,DF:()=>u,L1:()=>p,M0:()=>r,Mc:()=>a,Ok:()=>c,U9:()=>l,iW:()=>n,ue:()=>o,wq:()=>s,xR:()=>d});const s=1,o=2,n=3,r="enhanced-measurement-activation-banner-tooltip-state",a="enhanced-measurement-activation-banner-dismissed-item",l="_r.explorerCard..selmet",c="_r.explorerCard..seldim",g="_r..dataFilters",d="_r..nav",u="key-metrics-connect-ga4-cta-widget",p="analytics-4"},24355:(e,t,i)=>{i.d(t,{SO:()=>l,xJ:()=>a});var s=i(55620),o=i(99123);function n(){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]:n,e,t);function c(){return l(n)}return(0,o.A)(window,"resize",c),(0,o.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,o=i(63696);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},n.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},e),s||(s=o.createElement("g",{fill:"currentColor",fillRule:"evenodd"},o.createElement("path",{d:"M0 6.414 1.415 5l5.292 5.292-1.414 1.415z"}),o.createElement("path",{d:"m14.146.146 1.415 1.414L5.414 11.707 4 10.292z"}))))},25797:(e,t,i)=>{i.d(t,{A:()=>_});var s,o=i(62688),n=i.n(o),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 h={[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=h[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:n().oneOf(Object.values(u.Q))},Title.propTypes={className:n().string,children:n().node},Description.propTypes={className:n().string,children:n().node};var m=i(49383),f=i(83366);function CTAButton({label:e,disabled:t,inProgress:i,onClick:s,href:o,external:n=!1,hideExternalIndicator:r=!1}){let l;return n&&!r&&(l=(0,p.jsx)(f.A,{width:14,height:14})),(0,p.jsx)(m.SpinnerButton,{className:a()("googlesitekit-notice__cta",{"googlesitekit-notice__cta--spinner__running":i}),disabled:t,isSaving:i,onClick:s,href:o,target:n?"_blank":void 0,trailingIcon:l,children:e})}CTAButton.propTypes={label:n().string.isRequired,disabled:n().bool,inProgress:n().bool,onClick:n().func,href:n().string,external:n().bool,hideExternalIndicator:n().bool};var k=i(82871);function DismissButton({label:e=(0,k.__)("Got it","google-site-kit"),onClick:t,disabled:i,href:s,external:o=!1}){return(0,p.jsx)(m.Button,{onClick:t,disabled:i,href:s,target:o?"_blank":void 0,tertiary:!0,children:e})}DismissButton.propTypes={label:n().string,onClick:n().func.isRequired,disabled:n().bool,href:n().string,external:n().bool};const b=(0,l.forwardRef)(({className:e,title:t,description:i,dismissButton:s,ctaButton:o,type:n=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--${n}`,e),role:"status",children:[!l&&(0,p.jsx)("div",{className:"googlesitekit-notice__icon",children:(0,p.jsx)(Icon,{type:n})}),(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||o?.label&&(o?.onClick||o?.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}),o?.label&&(o?.onClick||o?.href)&&(0,p.jsx)(CTAButton,{label:o.label,onClick:o.onClick,inProgress:o.inProgress,disabled:o.disabled,href:o.href,external:o.external,hideExternalIndicator:o.hideExternalIndicator})]})]})}));b.TYPES=u.Q,b.propTypes={className:n().string,title:n().oneOfType([n().string,n().object]),description:n().node,type:n().oneOf(Object.values(u.Q)),dismissButton:n().shape(DismissButton.propTypes),ctaButton:n().shape({...CTAButton.propTypes,label:n().string}),children:n().node,hideIcon:n().bool};const _=b},28534:(e,t,i)=>{i.d(t,{A:()=>C});var s,o=i(15844),n=i(79257),r=i(52684),a=i(63696),l=i(82871),c=i(50539),g=i(49383),d=i(55989);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},u.apply(null,arguments)}const p=e=>a.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),s||(s=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 9.5c0 1.407-.45 2.714-1.218 3.783L20.49 19 19 20.49l-5.717-5.708A6.46 6.46 0 0 1 9.5 16 6.5 6.5 0 1 1 16 9.5m-11 0C5 11.99 7.01 14 9.5 14S14 11.99 14 9.5 11.99 5 9.5 5 5 7.01 5 9.5",clipRule:"evenodd"})));var h;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 f=e=>a.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),h||(h=a.createElement("path",{fill:"currentColor",d:"m15.833 5.342-1.175-1.175L10 8.825 5.342 4.167 4.167 5.342 8.825 10l-4.658 4.658 1.175 1.175L10 11.175l4.658 4.658 1.175-1.175L11.175 10z"})));var k=i(62688),b=i.n(k),_=i(82351),y=i(19266),v=i(54419);var x=i(29785),j=i(62540);function S(){}function PostSearcherAutoSuggest({id:e,match:t,setMatch:i,isLoading:s,showDropdown:o=!0,setIsLoading:n=S,setIsActive:r=S,autoFocus:g,setCanSubmit:d=S,onClose:u=S,placeholder:p=""}){const h=(0,a.useRef)(),[m,f]=(0,a.useState)(""),k=t?.title,b=function(e,t){const[i,s]=(0,a.useState)(e);return(0,a.useEffect)(()=>{const i=setTimeout(()=>{s(e)},t);return()=>{clearTimeout(i)}},[e,t]),i}(m,m===k?0:200),[A,N]=(0,a.useState)([]),w=(0,l.__)("No results found","google-site-kit"),I=(0,c.useSelect)(e=>e(x.O4).getCurrentEntityTitle()),C=(0,a.useRef)(null),T=(0,a.useCallback)(()=>{r(!0)},[r]),M=(0,a.useCallback)(e=>{var t,i;e.relatedTarget?.classList.contains("autocomplete__option--result")||(r(!1),f(null!==(t=null!==(i=C.current)&&void 0!==i?i:I)&&void 0!==t?t:""))},[I,r]),E=(0,a.useCallback)(e=>{if(Array.isArray(A)&&e!==w){const t=A.find(t=>t.title.toLowerCase()===e.toLowerCase());t?(C.current=t.title,d(!0),i(t),f(t.title)):C.current=null}else C.current=null,d(!1)},[A,d,i,w,f]),R=(0,a.useCallback)(e=>{d(!1),f(e.target.value)},[d]);(0,a.useEffect)(()=>{if(""!==b&&b!==I&&b?.toLowerCase()!==k?.toLowerCase()){const e="undefined"==typeof AbortController?void 0:new AbortController;return async function(){n(!0);const t=(0,v.get)("core","search","entity-search",{query:encodeURIComponent(b)},{useCache:!1,signal:e?.signal});h.current=t;try{const e=await t;N(e)}catch{N(null)}finally{t===h.current&&n(!1)}}(),()=>e?.abort()}return()=>{}},[b,n,I,k]),(0,a.useEffect)(()=>{m||N([])},[m]),(0,a.useEffect)(()=>{I&&f(I)},[I]);const D=(0,a.useRef)(),O=(0,a.useCallback)(e=>{const t=D.current;switch(e.keyCode){case y.yZ:t?.value&&(e.preventDefault(),t.selectionStart=0,t.selectionEnd=0);break;case y.Kp:t?.value&&(e.preventDefault(),t.selectionStart=t.value.length,t.selectionEnd=t.value.length)}switch(e.keyCode){case y._f:u();break;case y.Fm:E(m)}},[u,E,m]);return(0,j.jsxs)(_.G3,{className:"autocomplete__wrapper",onSelect:E,children:[(0,j.jsx)(_.oK,{ref:D,id:e,className:"autocomplete__input autocomplete__input--default",type:"text",onBlur:M,onChange:R,onFocus:T,placeholder:p,onKeyDown:O,value:m,autoFocus:g}),!s&&o&&b!==I&&""!==b&&0===A?.length&&(0,j.jsx)(_.Nf,{portal:!1,children:(0,j.jsx)(_.ex,{className:"autocomplete__menu autocomplete__menu--inline",children:(0,j.jsx)(_.jO,{value:w,className:"autocomplete__option autocomplete__option--no-results"})})}),o&&""!==b&&b!==I&&A?.length>0&&(0,j.jsx)(_.Nf,{portal:!1,children:(0,j.jsx)(_.ex,{className:"autocomplete__menu autocomplete__menu--inline",children:A.map(({id:e,title:t})=>(0,j.jsx)(_.jO,{value:t,className:"autocomplete__option autocomplete__option--result"},e))})})]})}PostSearcherAutoSuggest.propTypes={id:b().string,match:b().object,setCanSubmit:b().func,setMatch:b().func,isLoading:b().bool,setIsLoading:b().func,onKeyDown:b().func,autoFocus:b().bool,placeholder:b().string};var A=i(70301),N=i(13047),w=i(7551),I=i(62659);const C=function EntitySearchInput(){const e=(0,r.A)(EntitySearchInput,"EntitySearchInput"),[t,i]=(0,a.useState)(!1),[s,u]=(0,a.useState)(!1),[h,m]=(0,a.useState)(!1),k=(0,I.A)(),b=(0,w.Ay)(),_=(0,a.useRef)(),y=(0,a.useCallback)(()=>{(0,N.sx)(`${k}_headerbar`,"open_urlsearch"),i(!0)},[k]),v=(0,a.useCallback)(()=>{(0,N.sx)(`${k}_headerbar`,"close_urlsearch"),i(!1)},[k]),[S,C]=(0,a.useState)({}),T=(0,c.useSelect)(e=>S?.url?e(x.O4).getAdminURL("googlesitekit-dashboard",{permaLink:S.url}):null),{navigateTo:M}=(0,c.useDispatch)(A.M);return(0,a.useEffect)(()=>{T&&(0,N.sx)(`${k}_headerbar_urlsearch`,"open_urldetails").finally(()=>{M(T)})},[T,M,k]),(0,o.A)(()=>{b===w.oE&&i(!0)}),(0,n.A)(()=>{t||_?.current?.focus()},[t]),t?(0,j.jsxs)("div",{className:"googlesitekit-entity-search googlesitekit-entity-search--is-open",children:[(0,j.jsx)(d.A,{children:(0,j.jsx)("label",{htmlFor:e,children:(0,l.__)("Page/URL Search","google-site-kit")})}),(0,j.jsx)(PostSearcherAutoSuggest,{id:e,match:S,setIsActive:m,setMatch:C,placeholder:(0,l.__)("Enter title or URL…","google-site-kit"),isLoading:s,setIsLoading:u,showDropdown:h,onClose:v,autoFocus:!0}),s&&h&&(0,j.jsx)(g.ProgressBar,{className:"googlesitekit-entity-search__loading",compress:!0}),(0,j.jsx)("div",{className:"googlesitekit-entity-search__actions",children:(0,j.jsx)(g.Button,{onClick:v,trailingIcon:(0,j.jsx)(f,{width:"30",height:"20"}),className:"googlesitekit-entity-search__close",title:(0,l.__)("Close","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0})})]}):(0,j.jsx)("div",{className:"googlesitekit-entity-search",children:(0,j.jsx)(g.Button,{className:"googlesitekit-border-radius-round--phone googlesitekit-button-icon--phone",onClick:y,ref:_,title:(0,l.__)("Search","google-site-kit"),trailingIcon:(0,j.jsx)(p,{width:"20",height:"20"}),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:(0,l.__)("URL Search","google-site-kit")})})}},29775:(e,t,i)=>{i.d(t,{hk:()=>n,tm:()=>o,zP:()=>s});const s="editing-user-role-select-slug-key",o="dashboardSharingDialogOpen",n="resetSharingDialogOpen"},29785:(e,t,i)=>{i.d(t,{O4:()=>s,OQ:()=>n,qc:()=>o});const s="core/site",o="primary",n="secondary"},30289:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(63560),o=i(62688),n=i.n(o),r=i(63696),a=i(62540);function l(e){function WithIntersectionObserverComponent({onInView:t,...i}){const o=(0,r.useRef)(),n=(0,s.A)(o,{root:null,threshold:.45}),[l,c]=(0,r.useState)(!1),g=!!n?.isIntersecting&&!!n?.intersectionRatio;return(0,r.useEffect)(()=>{n&&g&&!l&&(t(),c(!0))},[l,g,n,t]),(0,a.jsx)(e,{ref:o,...i})}return WithIntersectionObserverComponent.displayName="WithIntersectionObserverComponent",(e.displayName||e.name)&&(WithIntersectionObserverComponent.displayName+=`(${e.displayName||e.name})`),WithIntersectionObserverComponent.propTypes={onInView:n().func.isRequired,...e.propTypes},WithIntersectionObserverComponent}},30805:(e,t,i)=>{i.d(t,{i:()=>r});var s=i(63696),o=i(79961),n=i(84895);function r(e){const t=(0,s.useContext)(o.A);return(0,n.G)(e,t)}},31012:(e,t,i)=>{i.d(t,{c:()=>r});var s=i(82871),o=i(32803),n=i(22942);function r(e="",t={}){const{slug:i="",name:r="",owner:a={}}=t||{};if(!i||!r)return e;let l="",c="";return n.L1===i?e.match(/account/i)?l=(0,s.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/property/i)?l=(0,s.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/view/i)&&(l=(0,s.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit")):o.Y===i&&(l=(0,s.__)("Your Google account does not have sufficient permissions for this Search Console property, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit")),l||(l=(0,s.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,s.__)("Your Google account does not have sufficient permissions to access %s data, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"),r)),a&&a.login&&(c=(0,s.sprintf)(/* translators: %s: owner name */ /* translators: %s: owner name */ (0,s.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),a.login)),c||(c=(0,s.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),`${l} ${c}`}},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),o=i.n(s),n=i(4452),r=i.n(n),a=i(8513),l=i(62540);function Typography({className:e,type:t,size:i,as:s="span",children:o,...n}){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)}),...n,children:o})}Typography.propTypes={className:o().string,type:o().oneOf(a.tT),size:o().oneOf(a.oJ),as:o().oneOfType([o().string,o().elementType])}},33494:(e,t,i)=>{i.d(t,{Gr:()=>r,We:()=>l,Y2:()=>a});var s=i(4169),o=i(15118),n=i(97591);const r={[s.N$.QUARTER]:3,[s.N$.HALF]:6,[s.N$.FULL]:12},a="googlesitekit-hidden",l=[o.A,n.A]},37133:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(63696);const __WEBPACK_DEFAULT_EXPORT__=function(e,t){const[o,n]=(0,s.useState)(null);return(0,s.useEffect)(()=>{if(e.current&&"function"==typeof i.g.IntersectionObserver){function s(e){n(e[e.length-1])}const o=new i.g.IntersectionObserver(s,t);return o.observe(e.current),()=>{n(null),o.disconnect()}}return()=>{}},[e.current,t.threshold,t.root,t.rootMargin]),o}},37467:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(63696),o=i(82286),n=i(51568);const __WEBPACK_DEFAULT_EXPORT__=function(e,t,r=i.g){const[a,l]=(0,s.useState)((0,o.d)(r.location.href,e)||t);return[a,function(t){l(t);const i=(0,n.F)(r.location.href,{[e]:t});r.history.replaceState(null,"",i)}]}},37834:(e,t,i)=>{i.d(t,{A:()=>Notifications});var s=i(62688),o=i.n(s),n=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:h(e)(d.A)}));function h(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,n.useSelect)(e=>e(a.D).getQueuedNotifications(i,t));if(void 0===s?.[0]||s?.[0]?.areaSlug!==e)return null;const{id:o,Component:c}=s[0],g={...p(o)};return(0,u.jsx)(c,{...g})}Notifications.propTypes={viewContext:o().string,areaSlug:o().string}},38017:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(62688),o=i.n(s),n=i(4452),r=i.n(n),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:o().string,invertColor:o().bool,width:o().number,height:o().number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9};const l=ChangeArrow},38432:(e,t,i)=>{i.d(t,{A:()=>I});var s,o=i(4452),n=i.n(o),r=i(62688),a=i.n(r),l=i(39941),c=i(63696),g=i(82871);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},d.apply(null,arguments)}const u=e=>c.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),s||(s=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"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 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 m=e=>c.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),p||(p=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"#FFF"}),c.createElement("path",{fill:"currentColor",d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 0 0 .325.79.46.46 0 0 0 .325-.135l3.037-3.038a.46.46 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.46.46 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var f;function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},k.apply(null,arguments)}const b=e=>c.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),f||(f=c.createElement("path",{d:"m12 20-8-8 8-8 1.425 1.4-5.6 5.6H20v2H7.825l5.6 5.6z"})));var _=i(83366),y=i(50304),v=i(62540);const x="BUTTON",j="BUTTON_DISABLED",S="EXTERNAL_LINK",A="LINK",N="ROUTER_LINK",w=(0,c.forwardRef)((e,t)=>{const{"aria-label":i,secondary:s=!1,arrow:o=!1,back:r=!1,caps:a=!1,children:c,className:d="",danger:p=!1,disabled:h=!1,external:f=!1,hideExternalIndicator:k=!1,href:w="",inverse:I=!1,noFlex:C=!1,onClick:T,small:M=!1,standalone:E=!1,linkButton:R=!1,to:D,leadingIcon:O,trailingIcon:L,...P}=e;const z=w||D||!T?D?N:f?S:A:h?j:x;const B=z===x||z===j?"button":z===N?l.N_:"a",W=function(){let e;return z===S&&(e=(0,g._x)("(opens in a new tab)","screen reader text","google-site-kit")),z===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 H=O,U=L;return r&&(H=(0,v.jsx)(b,{width:14,height:14})),f&&!k&&(U=(0,v.jsx)(_.A,{width:14,height:14})),o&&!I&&(U=(0,v.jsx)(u,{width:14,height:14})),o&&I&&(U=(0,v.jsx)(m,{width:14,height:14})),(0,v.jsxs)(B,{"aria-label":W,className:n()("googlesitekit-cta-link",d,{"googlesitekit-cta-link--secondary":s,"googlesitekit-cta-link--inverse":I,"googlesitekit-cta-link--small":M,"googlesitekit-cta-link--caps":a,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":h,"googlesitekit-cta-link--standalone":E,"googlesitekit-cta-link--link-button":R,"googlesitekit-cta-link--no-flex":!!C}),disabled:h,href:z!==A&&z!==S||h?void 0:w,onClick:T,rel:z===S?"noopener noreferrer":void 0,ref:t,target:z===S?"_blank":void 0,to:D,...P,children:[!!H&&(0,v.jsx)(y.A,{marginRight:5,children:H}),(0,v.jsx)("span",{className:"googlesitekit-cta-link__contents",children:c}),!!U&&(0,v.jsx)(y.A,{marginLeft:5,children:U})]})});w.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 I=w},38878:(e,t,i)=>{var s=i(131),o=i(78325),n=i(4452),r=i.n(n),a=i(63696),l=i(13606),c=i(82871),g=i(50539),d=i(82624),u=i(83880),p=i(59352),h=i(17884),m=i(28534),f=i(22764),k=i(78307),b=i(20697),_=i(29785),y=i(97345),v=i(38432),x=i(55989),j=i(10740),S=i(85172),A=i(75662),N=i(4169),w=i(85662),I=i(4124),C=i(97343),T=i(4008),M=i(56084),E=i(56628),R=i(338),D=i(30805),O=i(62540);const L=function DashboardEntityApp(){const e=(0,I.A)(),t=(0,D.i)("proactiveUserEngagement"),i=(0,g.useSelect)(t=>e?t(y.oR).getViewableModules():null),s=(0,g.useSelect)(e=>e(_.O4).getCurrentEntityURL()),o=(0,g.useSelect)(e=>e(_.O4).getPermaLinkParam()),n=(0,g.useSelect)(e=>e(_.O4).getAdminURL("googlesitekit-dashboard")),L={modules:i||void 0},P=(0,g.useSelect)(e=>e(N.aO).isWidgetContextActive(p.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,L)),z=(0,g.useSelect)(e=>e(N.aO).isWidgetContextActive(p.CONTEXT_ENTITY_DASHBOARD_CONTENT,L)),B=(0,g.useSelect)(e=>e(N.aO).isWidgetContextActive(p.CONTEXT_ENTITY_DASHBOARD_SPEED,L)),W=(0,g.useSelect)(e=>e(N.aO).isWidgetContextActive(p.CONTEXT_ENTITY_DASHBOARD_MONETIZATION,L)),H=(0,g.useSelect)(e=>e(_.O4).getDocumentationLinkURL("url-not-part-of-this-site"));(0,T.Z)();let U=null;return W?U=b.Gw:B?U=b.Ej:z?U=b.en:P&&(U=b.OT),null===s?(0,O.jsxs)("div",{className:"googlesitekit-widget-context googlesitekit-module-page googlesitekit-entity-dashboard",children:[(0,O.jsx)(M.A,{}),(0,O.jsx)(E.A,{}),(0,O.jsx)(j.xA,{children:(0,O.jsx)(j.fI,{children:(0,O.jsx)(j.fh,{size:12,children:(0,O.jsxs)(a.Fragment,{children:[(0,O.jsx)(v.A,{href:n,back:!0,small:!0,children:(0,c.__)("Back to the Site Kit dashboard","google-site-kit")}),(0,O.jsx)(S.A,{title:(0,c.__)("Detailed Page Stats","google-site-kit"),className:"googlesitekit-heading-2 googlesitekit-entity-dashboard__heading",fullWidth:!0}),(0,O.jsx)(A.A,{className:"googlesitekit-entity-dashboard__entity-header",children:(0,O.jsx)(j.xA,{children:(0,O.jsx)(j.fI,{children:(0,O.jsx)(j.fh,{size:12,children:(0,O.jsx)(u.A,{children:(0,l.A)((0,c.sprintf)(/* translators: %s: current entity URL. */ /* translators: %s: current entity URL. */ (0,c.__)("It looks like the URL %s is not part of this site or is not based on standard WordPress content types, therefore there is no data available to display. Visit our <link1>support forums</link1> or <link2><VisuallyHidden>Site Kit</VisuallyHidden> website</link2> for support or further information.","google-site-kit"),`<strong>${o}</strong>`),{strong:(0,O.jsx)("strong",{}),link1:(0,O.jsx)(v.A,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0}),link2:(0,O.jsx)(v.A,{href:H,external:!0}),VisuallyHidden:(0,O.jsx)(x.A,{})})})})})})})]})})})}),(0,O.jsx)(C.A,{})]}):(0,O.jsxs)(a.Fragment,{children:[(0,O.jsx)(M.A,{}),(0,O.jsx)(E.A,{}),(0,O.jsxs)(d.A,{showNavigation:!0,children:[(0,O.jsx)(m.A,{}),(0,O.jsx)(f.A,{}),!e&&(0,O.jsx)(w.A,{}),(0,O.jsx)(k.A,{})]}),(0,O.jsxs)("div",{className:"googlesitekit-page-content",children:[(0,O.jsx)(h.A,{id:b.OT,slug:p.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,className:r()({"googlesitekit-widget-context--last":U===b.OT})}),(0,O.jsx)(h.A,{id:b.en,slug:p.CONTEXT_ENTITY_DASHBOARD_CONTENT,className:r()({"googlesitekit-widget-context--last":U===b.en})}),(0,O.jsx)(h.A,{id:b.Ej,slug:p.CONTEXT_ENTITY_DASHBOARD_SPEED,className:r()({"googlesitekit-widget-context--last":U===b.Ej})}),(0,O.jsx)(h.A,{id:b.Gw,slug:p.CONTEXT_ENTITY_DASHBOARD_MONETIZATION,className:r()({"googlesitekit-widget-context--last":U===b.Gw})}),(0,O.jsx)(C.A,{})]}),t&&(0,O.jsx)(R.A,{})]})};var P=i(63081);(0,s.A)(()=>{const e=document.getElementById("js-googlesitekit-entity-dashboard");if(e){const{viewOnly:t}=e.dataset;(0,o.render)((0,O.jsx)(P.A,{viewContext:t?b.Is:b.f7,children:(0,O.jsx)(L,{})}),e)}})},40194:(e,t,i)=>{i.d(t,{G:()=>f});var s=i(50539),o=i(88273),n=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 h({isViewOnly:e,canAuthenticate:t,isAnalyticsConnected:i,isActivateAnalyticsNotificationPresent:s,windowHeight:o}){if(!i){const i=[{target:".googlesitekit-widget--searchFunnelGA4",floaterProps:{target:"number"==typeof o&&o<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 m=i(24355);function f(){const e=(0,d.A)(),t=(0,g.A)(),i=(0,m.xJ)();return h({isViewOnly:e,canAuthenticate:(0,s.useSelect)(e=>e(n.oR).hasCapability(n.ej)),isAnalyticsConnected:!!(0,s.useSelect)(e=>e(o.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),o=i.n(s),n=i(82871),r=i(38432),a=i(97015);const LearnMoreLink=({className:e,external:t=!0,href:i,label:s=(0,n.__)("Learn more","google-site-kit"),onClick:o=()=>{}})=>i?a.createElement(r.A,{href:i,className:e,onClick:o,external:t},s):null;LearnMoreLink.propTypes={href:o().string.isRequired,className:o().string,label:o().string,external:o().bool,onClick:o().func};const l=LearnMoreLink},42343:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=i(63696);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},n.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=o.createElement("path",{fill:"currentColor",d:"m5.825 22 2.325-7.6L2 10h7.6L12 2l2.4 8H22l-6.15 4.4 2.325 7.6L12 17.3z"})))},44148:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(62688),o=i.n(s),n=i(4452),r=i.n(n),a=i(63696),l=i(13606),c=i(82871),g=i(38432),d=i(13047),u=i(4124),p=i(62659),h=i(92449);var m=i(97015);function SourceLink({name:e="",href:t="",className:i="",external:s=!1}){const o=(0,p.A)(),n=(0,u.A)(),f=(0,a.useContext)(h.Ay),k=(0,a.useCallback)(()=>{f.slug&&o&&(0,d.sx)(`${o}_widget`,"click_source_link",f.slug)},[o,f]);return n?null:m.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:m.createElement(g.A,{key:"link",href:t,external:s,onClick:k})}))}SourceLink.propTypes={name:o().string,href:o().string,className:o().string,external:o().bool};const f=SourceLink},44192:(e,t,i)=>{i.d(t,{A:()=>ReportError});var s=i(62688),o=i.n(s),n=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),h=i(12317),m=i(1641),f=i(4124),k=i(73198),b=i(62540);function ReportError({moduleSlug:e,error:t}){const i=(0,f.A)(),s=(0,c.useSelect)(t=>t(g.i).getModule(e)),o=Array.isArray(t)?t:[t];let _;function y(e){return(0,d.SG)(e)?i?(_=(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)):(_=(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 v=(0,n.uniqWith)(o.map(e=>({...e,message:y(e),reconnectURL:e.data?.reconnectURL?(0,l.m)(e.data.reconnectURL,"code"):void 0})),(e,t)=>e.message===t.message&&e.reconnectURL===t.reconnectURL),x=o.some(e=>(0,d.SG)(e));x||1!==v.length?!x&&v.length>1&&(_=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */ (0,a.__)("Data errors in %s","google-site-kit"),s?.name)):_=(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,b.jsx)(r.Fragment,{children:v.map(e=>{const t=e?.data?.reconnectURL;return t?(0,b.jsx)(k.A,{error:e,message:e.message},e.message):(0,b.jsx)("p",{children:p.O.sanitize(e.message,{ALLOWED_TAGS:[]})},e.message)})});return(0,b.jsx)(h.A,{title:_,description:j,error:!0,children:(0,b.jsx)(m.A,{moduleSlug:e,error:t})})}ReportError.propTypes={moduleSlug:o().string.isRequired,error:o().oneOfType([o().arrayOf(o().object),o().object]).isRequired}},44436:(e,t,i)=>{i.d(t,{A:()=>d});var s,o=i(82871),n=i(88933),r=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},a.apply(null,arguments)}const l=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 80 21"},e),s||(s=r.createElement("path",{fill:"#5F6368",d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1zM69.985 3.117c0 .454-.167.853-.488 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.6 1.6 0 0 1-.488-1.175c0-.466.166-.854.488-1.176s.71-.488 1.175-.488c.455 0 .854.166 1.176.488.332.333.487.72.487 1.176m-.477 4.313v12.498h-2.351V7.43zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943q-1.014-.948-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333M2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974q-.883-.781-3.094-1.564l-1.22-.432Q3.371 9.997 2.04 8.716C1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673S2.75 1.209 3.693.72C4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676-.91 1.032-.91 1.742c0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6 6 0 0 1-2.495 1.919 8 8 0 0 1-3.116.621c-1.62 0-3.072-.466-4.358-1.408M15.969 3.449a1.95 1.95 0 0 1-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0 1 17.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 0 1-1.43.589c-.566-.012-1.043-.2-1.431-.588m-.067 2.595h2.994v13.883h-2.994zM25.406 19.85c-.544-.2-.987-.466-1.331-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122q.35-.116.765-.399v2.917c-.599.277-1.32.41-2.173.41a5 5 0 0 1-1.753-.3M33.623 19.407a6.63 6.63 0 0 1-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706s2.251-1.01 3.593-1.01c1.397 0 2.606.311 3.637.921a6.1 6.1 0 0 1 2.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.16 4.16 0 0 0 2.817 1.043c.854 0 1.597-.189 2.218-.588a4.27 4.27 0 0 0 1.508-1.597l2.528 1.198q-.981 1.713-2.561 2.694c-1.054.655-2.318.976-3.782.976q-2.046.033-3.66-.931m7.23-8.051a3.3 3.3 0 0 0-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296z"})));var c=i(55989),g=i(62540);const d=function Logo(){return(0,g.jsxs)("div",{className:"googlesitekit-logo","aria-hidden":"true",children:[(0,g.jsx)(n.A,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),(0,g.jsx)(l,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),(0,g.jsx)(c.A,{children:(0,o.__)("Site Kit by Google Logo","google-site-kit")})]})}},45257:(e,t,i)=>{i.d(t,{A:()=>LoadingWrapper});var s=i(62688),o=i.n(s),n=i(4751),r=i(62540);function LoadingWrapper({loading:e,children:t,...i}){return e?(0,r.jsx)(n.A,{...i}):t}LoadingWrapper.propTypes={loading:o().bool,children:o().node,...n.A.propTypes}},46467:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o,n,r=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},a.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=r.createElement("rect",{width:18,height:12,x:3,y:6,stroke:"currentColor",strokeWidth:1.5,rx:2})),o||(o=r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m3.566 7.5 7.086 7.086a2 2 0 0 0 2.829 0l7.019-7.02"})),n||(n=r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M20.246 17.5 15.5 12.754M4 17.5l4.746-4.746"})))},48276:(e,t,i)=>{i.d(t,{VZ:()=>n,dc:()=>r,pH:()=>o,r0:()=>a});var s=i(84024);function o(e){try{return new URL(e).pathname}catch{}return null}function n(e,t){try{return new URL(t,e).href}catch{}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function r(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function a(e,t){if(!(0,s.m)(e))return e;if(e.length<=t)return e;const i=new URL(e),o=e.replace(i.origin,"");if(o.length<t)return o;const n=o.length-Math.floor(t)+1;return"…"+o.substr(n)}},49057:(e,t,i)=>{i.d(t,{Ay:()=>f,wA:()=>a.A,ws:()=>u.w,WM:()=>r.A});var s=i(29725),o=i(56805),n=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),h=i(97241);const m=(0,s.I)({},i.g.wp?.data);m.combineStores=p.o3,m.commonActions=p.jU,m.commonControls=p._5,m.commonStore=p.x0,m.createReducer=function(e){return(0,h.Ay)(e)},m.useInViewSelect=u.w,m.controls=o.n,m.createRegistryControl=n.b,m.createRegistrySelector=n.N,m.useSelect=r.A,m.useDispatch=a.A,m.useRegistry=l.A,m.withSelect=c.A,m.withDispatch=g.A,m.RegistryProvider=d.Ay;const f=m},49383:e=>{e.exports=googlesitekit.components},49746:(e,t,i)=>{i.d(t,{Eo:()=>d,JK:()=>m,K5:()=>h,jq:()=>p,mK:()=>g});var s=i(17243),o=i(50532),n=i.n(o),r=i(82871);function a(e,t={}){const{formatUnit:i,formatDecimal:s}=function(e,t={}){const{hours:i,minutes:s,seconds:o}=l(e);return{hours:i,minutes:s,seconds:o,formatUnit(){const{unitDisplay:n="short",...a}=t,l={unitDisplay:n,...a,style:"unit"};return 0===e?p(o,{...l,unit:"second"}):(0,r.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ (0,r._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?p(o,{...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"),o);if(0===e)return t;const n=(0,r.sprintf)( // translators: %s: number of minutes with "m" as the abbreviated unit. // translators: %s: number of minutes with "m" as the abbreviated unit. (0,r.__)("%dm","google-site-kit"),s),a=(0,r.sprintf)( // translators: %s: number of hours with "h" as the abbreviated unit. // translators: %s: number of hours with "h" as the abbreviated unit. (0,r.__)("%dh","google-site-kit"),i);return(0,r.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ (0,r._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?t:"",s?n:"",i?a:"").trim()}}}(e,t);try{return i()}catch{return s()}}function l(e){e=parseInt(e,10),Number.isNaN(e)&&(e=0);return{hours:Math.floor(e/60/60),minutes:Math.floor(e/60%60),seconds:Math.floor(e%60)}}function c(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e}function g(e){let t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:(0,s.isPlainObject)(e)&&(t={...e}),t}function d(e,t={}){e=(0,s.isFinite)(e)?e:Number(e),(0,s.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const i=g(t),{style:o="metric"}=i;return"metric"===o?function(e){const t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?(0,r.sprintf)( // translators: %s: an abbreviated number in millions. // translators: %s: an abbreviated number in millions. (0,r.__)("%sM","google-site-kit"),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"===o?a(e,i):"durationISO"===o?function(e){let{hours:t,minutes:i,seconds:s}=l(e);return s=("0"+s).slice(-2),i=("0"+i).slice(-2),t=("0"+t).slice(-2),"00"===t?`${i}:${s}`:`${t}:${i}:${s}`}(e):p(e,i)}const u=n()(console.warn);function p(e,t={}){const{locale:i=m(),...s}=t;try{return new Intl.NumberFormat(i,s).format(e)}catch(t){u(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(i)}, ${JSON.stringify(s)} ).format( ${typeof e} )`,t.message)}const o={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},n=["signDisplay","compactDisplay"],r={};for(const[e,t]of Object.entries(s))o[e]&&t===o[e]||n.includes(e)||(r[e]=t);try{return new Intl.NumberFormat(i,r).format(e)}catch{return new Intl.NumberFormat(i).format(e)}}function h(e,t={}){const{locale:i=m(),style:s="long",type:o="conjunction"}=t;if(Intl.ListFormat){return new Intl.ListFormat(i,{style:s,type:o}).format(e)} /* translators: used between list items, there is a space after the comma. */const n=(0,r.__)(", ","google-site-kit");return e.join(n)}function m(e=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:()=>m,LD:()=>p,SO:()=>u,a2:()=>o,xD:()=>h});var s=i(13047);const o="googlesitekit_",n=`${o}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(`${n}${e}`);if(i){const e=JSON.parse(i),{timestamp:t,ttl:s,value:o,isError:n}=e;if(t&&(!s||Math.round(Date.now()/1e3)-t<s))return{cacheHit:!0,value:o,isError:n}}}return{cacheHit:!1,value:void 0}}async function u(e,t,{ttl:o=s.Jg,timestamp:r=Math.round(Date.now()/1e3),isError:a=!1}={}){const l=await g();if(l)try{return l.setItem(`${n}${e}`,JSON.stringify({timestamp:r,ttl:o,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(o)?e:`${n}${e}`;return t.removeItem(i),!0}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function h(){const e=await g();if(e)try{const t=[];for(let i=0;i<e.length;i++){const s=e.key(i);0===s.indexOf(o)&&t.push(s)}return t}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),[]}return[]}async function m(){if(await g()){const e=await h();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),o=i.n(s),n=i(62540);function IconWrapper({children:e,marginLeft:t,marginRight:i}){return(0,n.jsx)("span",{className:"googlesitekit-icon-wrapper",style:{marginLeft:t,marginRight:i},children:e})}IconWrapper.propTypes={children:o().node.isRequired,marginLeft:o().number,marginRight:o().number}},50477:(e,t,i)=>{i.d(t,{C:()=>n,p:()=>o});var s=i(55465);function o(e,t={}){return{__html:s.O.sanitize(e,t)}}function n(e){const t="object"==typeof e?e.toString():e;return t?.replace?.(/\/+$/,"")}},50539:e=>{e.exports=googlesitekit.data},51193:(e,t,i)=>{i.d(t,{Du:()=>p,GH:()=>l,Gp:()=>c,IS:()=>b,Jg:()=>d,N_:()=>y,O5:()=>_,Ql:()=>h,Qr:()=>m,XH:()=>k,r0:()=>g,sq:()=>f,tt:()=>u});var s=i(32091),o=i.n(s),n=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 h(){function e(e){return(0,r.sprintf)(/* translators: %s: number of days */ /* translators: %s: number of days */ (0,r._n)("Last %s day","Last %s days",e,"google-site-kit"),e)}return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}function m(e=""){if(!(0,n.isString)(e))return!1;if(3!==e.split("-").length)return!1;const t=new Date(e);return(0,n.isDate)(t)&&!isNaN(t)}function f(e){o()((0,n.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 k(e){o()(m(e),l);const[t,i,s]=e.split("-");return new Date(t,i-1,s)}function b(e,t){return f(y(e,t*u))}function _(e){const t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}function y(e,t){o()(m(e)||(0,n.isDate)(e)&&!isNaN(e),l);const i=m(e)?Date.parse(e):e.getTime();return new Date(i-1e3*t)}},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),o=i(63696),n=i(85097);function r(){}function a(e,t){const i=(0,n.W)({sticky:!0}),a=(0,o.useRef)(),l=(0,o.useCallback)(e,t),c=(0,s.A)(i?l:r);return i&&(a.current=c),a.current}},52735:(e,t,i)=>{i.d(t,{A:()=>s});const s=(0,i(63696).createContext)(!1)},54419:e=>{e.exports=googlesitekit.api},55465:(e,t,i)=>{i.d(t,{O:()=>o});var s=i(31234);const o=i.n(s)()(i.g)},55989:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(62688),o=i.n(s),n=i(4452),r=i.n(n),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:o().string,children:o().node},VisuallyHidden.defaultProps={className:""};const l=VisuallyHidden},56084:(e,t,i)=>{i.d(t,{A:()=>CoreDashboardEffects});var s=i(5924),o=i(81042),n=i(63696);function CoreDashboardEffects(){return(0,s.A)(),function(){const{y:e}=(0,o.A)(),[t,s]=(0,n.useState)(!1),r="googlesitekit-plugin--has-scrolled";(0,n.useEffect)(()=>{t?i.g.document.body.classList.add(r):i.g.document.body.classList.remove(r)},[t]),e>0&&!t?s(!0):0===e&&t&&s(!1)}(),null}},56628:(e,t,i)=>{i.d(t,{A:()=>ModuleDashboardEffects});var s=i(50539),o=i(88273),n=i(7551),r=i(62540);const a={[n.Oo]:"DashboardMainEffectComponent",[n.oE]:"DashboardEntityEffectComponent"};function ModuleDashboardEffects(){const e=(0,n.Ay)(),t=(0,s.useSelect)(e=>e(o.i).getModules());if(!t)return null;const i=a[e];return Object.values(t).reduce((e,t)=>{const s=t[i];return t.active&&s?[...e,(0,r.jsx)(s,{},t.slug)]:e},[])}},58718:(e,t,i)=>{i.d(t,{CX:()=>o,Py:()=>r,SM:()=>s,kj:()=>n});const s="adsense-connect-cta",o="adsense-connect-cta-tooltip-state",n="adsense-ga4-top-earnings-notice",r="adsense"},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:()=>n,CONTEXT_MAIN_DASHBOARD_KEY_METRICS:()=>s,CONTEXT_MAIN_DASHBOARD_MONETIZATION:()=>a,CONTEXT_MAIN_DASHBOARD_SPEED:()=>r,CONTEXT_MAIN_DASHBOARD_TRAFFIC:()=>o,default:()=>u});const s="mainDashboardKeyMetrics",o="mainDashboardTraffic",n="mainDashboardContent",r="mainDashboardSpeed",a="mainDashboardMonetization",l="entityDashboardTraffic",c="entityDashboardContent",g="entityDashboardSpeed",d="entityDashboardMonetization",u={CONTEXT_MAIN_DASHBOARD_KEY_METRICS:s,CONTEXT_MAIN_DASHBOARD_TRAFFIC:o,CONTEXT_MAIN_DASHBOARD_CONTENT:n,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),o=i.n(s),n=i(4452),r=i.n(n),a=i(52684),l=i(13606),c=i(82871),g=i(49383),d=i(85149),u=i(62540);function ModalDialog({className:e="",dialogActive:t=!1,handleCancel:i=null,onOpen:s=null,onClose:o=null,title:n=null,provides:p,handleConfirm:h,subtitle:m,confirmButton:f=null,notes:k=[],danger:b=!1,inProgress:_=!1,small:y=!1,medium:v=!1,buttonLink:x=null}){const j=`googlesitekit-dialog-description-${(0,a.A)(ModalDialog)}`,S=!(!p||!p.length);return(0,u.jsxs)(g.Dialog,{open:t,onOpen:s,onClose:o,"aria-describedby":S?j:void 0,tabIndex:"-1",className:r()(e,{"googlesitekit-dialog-sm":y,"googlesitekit-dialog-md":v}),children:[(0,u.jsxs)(g.DialogTitle,{children:[b&&(0,u.jsx)(d.A,{width:28,height:28}),n]}),m?(0,u.jsx)("p",{className:"mdc-dialog__lead",children:m}):[],(0,u.jsxs)(g.DialogContent,{children:[S&&(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))})}),k.length>0&&(0,u.jsx)("section",{className:"mdc-dialog__notes",children:k.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:_,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),x?(0,u.jsx)(g.Button,{href:x,onClick:h,target:"_blank",danger:b,children:f}):(0,u.jsx)(g.SpinnerButton,{onClick:h,danger:b,disabled:_,isSaving:_,children:f||(0,c.__)("Disconnect","google-site-kit")})]})]})}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:o().string,dialogActive:o().bool,handleDialog:o().func,handleConfirm:o().func.isRequired,onOpen:o().func,onClose:o().func,title:o().string,provides:o().arrayOf(o().string),confirmButton:o().string,notes:o().arrayOf(o().oneOfType([o().string,o().elementType])),danger:o().bool,small:o().bool,medium:o().bool,buttonLink:o().string};const p=ModalDialog},60515:(e,t,i)=>{i.d(t,{A:()=>p});var s=i(62688),o=i.n(s),n=i(4452),r=i.n(n),a=i(63696),l=i(82871),c=i(49383),g=i(5855),d=i(38432),u=i(62540);function NewBadge({tooltipTitle:e,learnMoreLink:t,forceOpen:i,hasLeftSpacing:s,hasNoSpacing:o,onLearnMoreClick:n=()=>{}}){const p=(0,u.jsx)(g.A,{className:r()("googlesitekit-new-badge",{"googlesitekit-new-badge--has-no-spacing":o}),label:(0,l.__)("New","google-site-kit"),hasLeftSpacing:s});return e?(0,u.jsx)(c.Tooltip,{tooltipClassName:"googlesitekit-new-badge__tooltip",title:(0,u.jsxs)(a.Fragment,{children:[e,(0,u.jsx)("br",{}),(0,u.jsx)(d.A,{href:t,onClick:n,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:o().string,learnMoreLink:o().string,forceOpen:o().bool,onLearnMoreClick:o().func,hasLeftSpacing:o().bool,hasNoSpacing:o().bool};const p=NewBadge},61983:(e,t,i)=>{i.d(t,{A:()=>DismissButton});var s=i(62688),o=i.n(s),n=i(82871),r=i(49383),a=i(62540);function DismissButton({className:e,label:t=(0,n.__)("Maybe later","google-site-kit"),onClick:i,disabled:s,tertiary:o=!0}){return i?(0,a.jsx)(r.Button,{className:e,onClick:i,disabled:s,tertiary:o,children:t}):null}DismissButton.propTypes={className:o().string,label:o().string,onClick:o().func,disabled:o().bool,tertiary:o().bool,dismissOptions:o().shape({expiresInSeconds:o().number,skipHidingFromQueue:o().bool})}},62051:(e,t,i)=>{i.d(t,{A:()=>LearnMoreLink});var s=i(62688),o=i.n(s),n=i(38432),r=i(68761),a=i(62540);function LearnMoreLink({id:e,label:t,url:i,ariaLabel:s,gaTrackingEventArgs:o,external:l=!0,...c}){const g=(0,r.A)(e);return(0,a.jsx)(n.A,{onClick:function(e){e.persist(),g.clickLearnMore(o?.label,o?.value)},href:i,"aria-label":s,external:l,...c,children:t})}LearnMoreLink.propTypes={id:o().string,label:o().string,url:o().string,ariaLabel:o().string,gaTrackingEventArgs:o().shape({label:o().string,value:o().string}),external:o().bool}},62659:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(63696),o=i(19826);const __WEBPACK_DEFAULT_EXPORT__=function(){return(0,s.useContext)(o.Ay)}},63081:(e,t,i)=>{i.d(t,{A:()=>Root});var s=i(62688),o=i.n(s),n=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),h=i(13047),m=i(62540);class ErrorHandler extends a.Component{constructor(e){super(e),this.state={error:null,info:null,copied:!1}}componentDidCatch(e,t){i.g.console.error("Caught an error:",e,t),this.setState({error:e,info:t}),(0,h.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,m.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,m.jsxs)(a.Fragment,{children:[(0,m.jsx)(d.A,{message:t.message,componentStack:i.componentStack}),(0,m.jsxs)("pre",{className:"googlesitekit-overflow-auto",children:[t.message,i.componentStack]})]})}):e}}ErrorHandler.contextType=u.Ay,ErrorHandler.propTypes={children:o().node.isRequired};const f=ErrorHandler;var k=i(79961);const{Consumer:b,Provider:_}=k.A,y=_;var v=i(84895),x=i(82246),j=i(11999),S=i(70301),A=i(97345),N=i(78990),w=i(94656);const I=function AuthenticatedPermissionsModal(){const e=(0,l.useRegistry)(),t=(0,l.useSelect)(e=>e(A.oR).getPermissionScopeError()),s=(0,l.useSelect)(e=>e(A.oR).getUnsatisfiedScopes()),o=(0,l.useSelect)(e=>e(A.oR).getConnectURL({additionalScopes:t?.data?.scopes,redirectURL:t?.data?.redirectURL||i.g.location.href,errorRedirectURL:t?.data?.errorRedirectURL})),{clearPermissionScopeError:n}=(0,l.useDispatch)(A.oR),{navigateTo:r}=(0,l.useDispatch)(S.M),{setValues:c}=(0,l.useDispatch)(j.s),d=(0,a.useCallback)(()=>{n()},[n]),u=(0,a.useCallback)(async()=>{c(A.$8,{permissionsError:t}),await(0,N.mR)(e),r(o)},[e,o,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,m.jsx)(w.A,{children:(0,m.jsx)(x.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 C=function PermissionsModal(){return(0,l.useSelect)(e=>e(A.oR).isAuthenticated())?(0,m.jsx)(I,{}):null};const T=function RestoreSnapshots({children:e}){const t=(0,l.useRegistry)(),[i,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{i||(async()=>{await(0,N.P9)(t),s(!0)})()},[t,i]),i?e:null};var M=i(15844),E=i(62659),R=i(71264);function FeatureTours(){const e=(0,E.A)(),{triggerTourForView:t}=(0,l.useDispatch)(A.oR);(0,M.A)(()=>{t(e)});const s=(0,l.useSelect)(e=>e(A.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,m.jsx)(R.Ay,{tourID:s.slug,steps:s.steps,gaEventCategory:s.gaEventCategory,isRepeatable:s.isRepeatable,callback:s.callback}):null}var D=i(20762),O=i(86582);function Root({children:e,registry:t,viewContext:i=null}){const s=n.D,[o]=(0,a.useState)({key:"Root",value:!0});return(0,m.jsx)(a.StrictMode,{children:(0,m.jsx)(D.Ay,{value:o,children:(0,m.jsx)(l.RegistryProvider,{value:t,children:(0,m.jsx)(y,{value:v.t,children:(0,m.jsx)(u.Kq,{value:i,children:(0,m.jsx)(r.A,{theme:s(),children:(0,m.jsxs)(f,{children:[(0,m.jsxs)(T,{children:[e,i&&(0,m.jsx)(FeatureTours,{})]}),(0,O.A)(i)&&(0,m.jsx)(C,{})]})})})})})})})}Root.propTypes={children:o().node,registry:o().object,viewContext:o().string.isRequired},Root.defaultProps={registry:c()}},63972:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=i(63696);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},n.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 9"},e),s||(s=o.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M1 3.838 4.106 7 10 1"})))},64515:(e,t,i)=>{function Null(){return null}i.d(t,{A:()=>Null})},65054:(e,t,i)=>{i.d(t,{M9:()=>S,sx:()=>x,BI:()=>j});var s=i(17243);const o="_googlesitekitDataLayer",n="data-googlesitekit-gtag";function r(e){return function(){e[o]=e[o]||[],e[o].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:h,isAuthenticated:m,userRoles:f}=i.g._googlesitekitTrackingData||{},k={activeModules:c,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:h,isSiteKitScreen:g,userRoles:f,isAuthenticated:m,pluginVersion:"1.177.0"},{enableTracking:b,disableTracking:_,isTrackingEnabled:y,initializeSnippet:v,trackEvent:x,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:h}=e;return function(){const{document:t}=i.g;if(void 0===l&&(l=!!t.querySelector(`script[${n}]`)),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:h||"",enabled_features:Array.from(a.t).join(","),active_modules:c.join(","),authenticated:p?"1":"0",user_properties:{user_roles:r,user_identifier:d}});const m=t.createElement("script");return m.setAttribute(n,""),m.async=!0,m.src=`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${o}`,t.head.appendChild(m),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${o}`}}}(g,t),u=function(e,t,i,s){const o=r(t);return async function(t,n,r,a){const{trackingEnabled:l}=e;if(!l)return null;i();const c={send_to:"site_kit",event_category:t,event_label:r,value:a};return new Promise(e=>{const i=setTimeout(function(){s.console.warn(`Tracking event "${n}" (category "${t}") took too long to fire.`),e()},1e3);function r(){clearTimeout(i),e()}o("event",n,{...c,event_callback:r}),s._gaUserPrefs?.ioo?.()&&r()})}}(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)}}}(k);function S(e){e?b():_()}g&&d&&v()},65929:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(63696),o=i(50539),n=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,o.useSelect)(t=>t(a.i).getModule(e)),u=(0,o.useSelect)(e=>e(r.oR).hasCapability(r.HD)),{activateModule:p}=(0,o.useDispatch)(a.i),{navigateTo:h}=(0,o.useDispatch)(l.M),{setInternalServerError:m}=(0,o.useDispatch)(n.O4),f=(0,s.useCallback)(async()=>{const{error:i,response:s}=await p(e);i?m({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}),h(s.moduleReauthURL))},[p,e,h,m,t]);return i?.name&&u?f:null}},67438:(e,t,i)=>{i.d(t,{A:()=>Notification});var s=i(62688),o=i.n(s),n=i(63696),r=i(50539),a=i(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:o}=(0,r.useDispatch)(a.n),{markNotificationSeen:g}=(0,r.useDispatch)(l.D),u=!!s?.isIntersecting,p=d(e),h=(0,n.useRef)();function m(){h.current&&clearTimeout(h.current)}return(0,n.useEffect)(()=>(!p&&u?(m(),h.current=setTimeout(()=>{s?.isIntersecting&&(o(d.getKey(e),!0),g(e))},3e3)):!u&&h.current&&m(),()=>{m()}),[p,u,o,g,e,s]),null}d.getKey=g,ViewedStateObserver.propTypes={id:o().string,observeRef:o().object,threshold:o().number};var u=i(68761),p=i(62540);function Notification({id:e,className:t,gaTrackingEventArgs:i,children:s,onView:o}){const a=(0,n.useRef)(),c=d(e),g=(0,u.A)(e,i?.category,{viewAction:i?.viewAction}),[h,m]=(0,n.useState)(!1),f=(0,r.useSelect)(t=>t(l.D).getNotificationSeenDates(e)),{dismissNotification:k}=(0,r.useDispatch)(l.D);return(0,n.useEffect)(()=>{!h&&c&&(g.view(i?.label,i?.value),o?.(),m(!0)),f?.length>=3&&k(e,{skipHidingFromQueue:!0})},[c,g,h,i,o,f,k,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:o().string,className:o().string,gaTrackingEventArgs:o().shape({category:o().string,viewAction:o().string,label:o().string,value:o().string}),children:o().node,onView:o().func}},67510:(e,t,i)=>{i.d(t,{Q:()=>b,A:()=>BannerNotification});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(50539),l=i(8732),c=i(68761),g=i(83891),d=i(41671),u=i(71189),p=i(61983),h=i(10740);const m="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYwIiBoZWlnaHQ9IjIzNCIgdmlld0JveD0iMCAwIDM2MCAyMzQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03My4xMzAyIDE3MC42NjhDODkuMzcxOSAxODkuOTkgMTE1LjQ3NiAxOTUuMTEgMTMxLjg2NSAxODkuOTkxQzE1My4yNDYgMTgzLjMxMiAxNjYuNjcyIDE2Mi45NjcgMTg1LjUwMiAxNjAuNTQ0QzIwNC4zMzMgMTU4LjEyMSAyMTUuNDA2IDE2OC43MDYgMjM1Ljg5NyAxNzAuMjMzQzI1Ni4zODkgMTcxLjc2IDI4MS4yMzIgMTY3LjYzIDI5Mi43OTEgMTM3LjkzNUMzMDQuMzQ5IDEwOC4yMzkgMjkzLjk0OCA3OC4yMzIxIDI3MC4yMTQgNjQuMzYxNUMyNDYuNDgxIDUwLjQ5MDggMjMzLjI3MSA2Ni43Njk0IDIxMC41NjQgNjguMTIzN0MxODcuODU4IDY5LjQ3NzkgMTc4LjAyMyA0NS44NTI4IDE2MS4wMjMgNDQuMzUyOEMxNDQuMDIzIDQyLjg1MjggMTM0LjUyMyA0NS44NTMgMTI0LjUyMyA1OC44NTI5QzExNC41MjMgNzEuODUyOCAxMjAuMzcxIDg1Ljc2NDEgODkuNTIzNSA5OS44NTNDNTguNjc1OCAxMTMuOTQyIDU2Ljg4ODUgMTUxLjM0NSA3My4xMzAyIDE3MC42NjhaIiBmaWxsPSIjRkZFNEIxIi8+CjxnIGZpbHRlcj0idXJsKCNmaWx0ZXIwX2RfMjcwNV8xNzY4NikiPgo8cmVjdCB4PSIxMTYuNTIzIiB5PSI1Ny45MTk5IiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOC41MzMiIHJ4PSI2Ljk4MjUyIiBmaWxsPSIjRUJFRUYwIi8+CjxtYXNrIGlkPSJtYXNrMF8yNzA1XzE3Njg2IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIxMTYiIHk9IjU3IiB3aWR0aD0iMTI5IiBoZWlnaHQ9IjEzMiI+CjxyZWN0IHg9IjExNi41MjMiIHk9IjU3LjkxOTkiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTMwLjEzMyIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2ODYpIj4KPHJlY3QgeD0iMTI1LjA1NyIgeT0iMTE3LjY1MyIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjkzMzMiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHg9IjEyNS4wNTciIHk9IjEwMy4yNTMiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC45MzMzIiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjUuMDU3IiB5PSIxNTYuMDUzIiB3aWR0aD0iMTEwLjQiIGhlaWdodD0iMzAuOTMzMyIgcng9IjMuNzUxMjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljk0NjUiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAyMDMuNDU3IDk1LjYyNDkpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTYzLjk5IDk1LjYyNTcpIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC45NDY1IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMTI0LjUyMyA5NS42MjU3KSIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxwYXRoIGQ9Ik0xMTYuNTIzIDY0LjkzNTVDMTE2LjUyMyA2MS4wNzkyIDExOS42NSA1Ny45NTMgMTIzLjUwNiA1Ny45NTNIMjM3LjM4M0MyNDEuMjM5IDU3Ljk1MyAyNDQuMzY1IDYxLjA3OTIgMjQ0LjM2NSA2NC45MzU1VjY4LjUzM0gxMTYuNTIzVjY0LjkzNTVaIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSIxMjEuODEzIiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMjcuMTA0IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzIuNDM3IiB5PSI2MS40Nzk2IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUyNjY3IiByeD0iMS43NjMzMyIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE4MC41MjMiIGN5PSIxMjAuODUzIiByPSIxNy4zNzkzIiBmaWxsPSIjNEUzMzAwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNzU4NjIiLz4KPGNpcmNsZSBjeD0iMS42NTUxNyIgY3k9IjEuNjU1MTciIHI9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTE2Ljk5MSkiIGZpbGw9IiNGRkU0QjEiLz4KPHJlY3Qgd2lkdGg9IjMuMzEwMzQiIGhlaWdodD0iOS4zNzkzMSIgcng9IjEuNjU1MTciIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3OC44NjggMTI4LjU3NykiIGZpbGw9IiNGRkU0QjEiLz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8yNzA1XzE3Njg2IiB4PSIxMDcuOTkiIHk9IjUxLjUxOTkiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0Ni4xMzMiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2ODYiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzY4NiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K",f="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9IjIwMiIgdmlld0JveD0iMCAwIDQwMCAyMDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NC44NTc1IDk3LjYxNjZDMTA1Ljg1NyAxMzQuMDIgMTUzLjIwMSAxMDYuMTIzIDE4MS4zNTcgMTE0LjU3MkMyMDkuNTEzIDEyMy4wMiAyMTMuNDY4IDE2MS41NDUgMjM1Ljg1NyAxNjkuOTI1QzI1OC4yNDUgMTc4LjMwNiAzMDMuMDY4IDE3MS41MTUgMzE2LjAwMiAxMzguMTM1QzMyOC45MzYgMTA0Ljc1NCAzMTIuMTY3IDgzLjY1MjkgMjg3LjY1MiA3Mi4xNjk0QzI2My4xMzYgNjAuNjg1OSAyNjguOTc2IDM2Ljc4MzYgMjM0LjE2NiAyNy44MDA5QzE5OS4zNTcgMTguODE4MiAxNzguNjY1IDQxLjI2NTEgMTQwLjE2NSAzMC43OTI3QzEwMS42NjUgMjAuMzIwNCA2My44NTc4IDYxLjIxMzEgODQuODU3NSA5Ny42MTY2WiIgZmlsbD0iI0ZGREVEMyIvPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMF9kXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTI3LjY2NiIgeT0iMzcuODQxMSIgd2lkdGg9IjEyOCIgaGVpZ2h0PSIxMjguMTk0IiByeD0iNi45ODI1MiIgZmlsbD0iI0VCRUVGMCIvPgo8bWFzayBpZD0ibWFzazBfMjcwNV8xNzYzMyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTI3IiB5PSIzNyIgd2lkdGg9IjEyOSIgaGVpZ2h0PSIxMzEiPgo8cmVjdCB4PSIxMjcuNjY2IiB5PSIzNy44NDExIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOS43OSIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI3MDVfMTc2MzMpIj4KPHJlY3QgeD0iMTM2LjIiIHk9Ijk3LjQxNjkiIHdpZHRoPSIxMTAuNCIgaGVpZ2h0PSIzMC44NTE4IiByeD0iMy43NTEyOCIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB4PSIxMzYuMiIgeT0iODMuMDU0NiIgd2lkdGg9IjExMC40IiBoZWlnaHQ9IjMwLjg1MTgiIHJ4PSIzLjc1MTI4IiBmaWxsPSIjRjNGNUY3Ii8+CjxwYXRoIGQ9Ik0xMzYuMiAxMzkuNDY3QzEzNi4yIDEzNy4zOTUgMTM3Ljg3OSAxMzUuNzE2IDEzOS45NTEgMTM1LjcxNkgyNDIuODQ5QzI0NC45MiAxMzUuNzE2IDI0Ni42IDEzNy4zOTUgMjQ2LjYgMTM5LjQ2N1YxNjUuOTM1SDEzNi4yVjEzOS40NjdaIiBmaWxsPSIjRjNGNUY3Ii8+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIxOC44OTY2IiByeD0iMi4zMTU2OSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMjE0LjU5OSA3NS40NDY3KSIgZmlsbD0iI0YzRjVGNyIvPgo8cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMTguODk2NiIgcng9IjIuMzE1NjkiIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDE3NS4xMzMgNzUuNDQ3NikiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjE4Ljg5NjYiIHJ4PSIyLjMxNTY5IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAxMzUuNjY2IDc1LjQ0NzYpIiBmaWxsPSIjRjNGNUY3Ii8+CjwvZz4KPHBhdGggZD0iTTEyNy42NjYgNDQuODU2N0MxMjcuNjY2IDQxLjAwMDQgMTMwLjc5MyAzNy44NzQyIDEzNC42NDkgMzcuODc0MkgyNDguNTI2QzI1Mi4zODIgMzcuODc0MiAyNTUuNTA4IDQxLjAwMDQgMjU1LjUwOCA0NC44NTY3VjQ4LjQyNjNIMTI3LjY2NlY0NC44NTY3WiIgZmlsbD0id2hpdGUiLz4KPHJlY3QgeD0iMTMyLjk1NiIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTM4LjI0NyIgeT0iNDEuMzkxNSIgd2lkdGg9IjMuNTI2NjciIGhlaWdodD0iMy41MTczNyIgcng9IjEuNzU4NjgiIGZpbGw9IiNGM0Y1RjciLz4KPHJlY3QgeD0iMTQzLjU4IiB5PSI0MS4zOTE1IiB3aWR0aD0iMy41MjY2NyIgaGVpZ2h0PSIzLjUxNzM3IiByeD0iMS43NTg2OCIgZmlsbD0iI0YzRjVGNyIvPgo8L2c+CjxjaXJjbGUgY3g9IjE5MS42NjYiIGN5PSIxMDAuOTE1IiByPSIxNi44IiBmaWxsPSIjQUM0MjIwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNjY2NjciLz4KPHBhdGggZD0iTTE5Mi45MTQgOTMuOTgxOEgxOTAuNDE4QzE5MC4wOTIgOTMuOTgxOCAxODkuODQzIDk0LjI3MTQgMTg5Ljg5MSA5NC41OTM2TDE5MS4xMzkgMTAyLjk3M0MxOTEuMjI5IDEwMy41OCAxOTIuMTA0IDEwMy41OCAxOTIuMTk0IDEwMi45NzNMMTkzLjQ0MiA5NC41OTM2QzE5My40OSA5NC4yNzE0IDE5My4yNCA5My45ODE4IDE5Mi45MTQgOTMuOTgxOFoiIGZpbGw9IiNGRkRFRDMiLz4KPGNpcmNsZSBjeD0iMTkxLjY2NiIgY3k9IjEwNi43ODIiIHI9IjEuNiIgZmlsbD0iI0ZGREVEMyIvPgo8ZGVmcz4KPGZpbHRlciBpZD0iZmlsdGVyMF9kXzI3MDVfMTc2MzMiIHg9IjExOS4xMzMiIHk9IjMxLjQ0MTEiIHdpZHRoPSIxNDUuMDY3IiBoZWlnaHQ9IjE0NS4yNjEiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi4xMzMzMyIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjI2NjY3Ii8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI3MDVfMTc2MzMiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMjcwNV8xNzYzMyIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K";var k=i(62540);const b={INFO:"info",ERROR:"error",WARNING:"warning"};function BannerNotification({notificationID:e,type:t=b.INFO,learnMoreLink:i,dismissButton:s,ctaButton:n,gaTrackingEventArgs:r,...d}){const u=(0,c.A)(e,r?.category),{dismissNotification:p}=(0,a.useDispatch)(l.D);let _=d?.svg;return _||t===b.INFO||(_={desktop:void 0,mobile:void 0,verticalPosition:"center"},t===b.WARNING&&(_.desktop=m),t===b.ERROR&&(_.desktop=f)),(0,k.jsx)("div",{className:o()("googlesitekit-banner-notification",`googlesitekit-banner-notification--${t}`),children:(0,k.jsx)(h.xA,{className:"googlesitekit-page-content",children:(0,k.jsx)(h.fI,{children:(0,k.jsx)(h.fh,{size:12,children:(0,k.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:n&&{...n,onClick:async function(t){u.confirm(r?.label,r?.value),await(n?.onClick?.(t)),n?.dismissOnClick&&p(e,{...n?.dismissOptions})}},svg:_,...d})})})})})}BannerNotification.propTypes={notificationID:r().string.isRequired,type:r().oneOf(Object.values(b)),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),o=i(25797),n=i(62540);const r=(0,s.forwardRef)((e,t)=>(0,n.jsx)(o.A,{className:"googlesitekit-notice--square googlesitekit-notice--side-panel",...e,ref:t})),a=r;r.propTypes={...o.A.propTypes}},68761:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(63696),o=i(62659),n=i(13047);function r(e,t,{viewAction:i="view_notification",confirmAction:r="confirm_notification",dismissAction:a="dismiss_notification",clickLearnMoreAction:l="click_learn_more_link"}={}){const c=(0,o.A)(),g=null!=t?t:`${c}_${e}`;return{view:(0,s.useCallback)((...e)=>(0,n.sx)(g,i,...e),[g,i]),confirm:(0,s.useCallback)((...e)=>(0,n.sx)(g,r,...e),[g,r]),dismiss:(0,s.useCallback)((...e)=>(0,n.sx)(g,a,...e),[g,a]),clickLearnMore:(0,s.useCallback)((...e)=>(0,n.sx)(g,l,...e),[g,l])}}},68832:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(35470),o=i(11999);function n(e,t){return(0,s.A)(i=>{const{getValue:s}=i(o.s);return s(e,t)},[e,t])}},69195:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=i(63696);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},n.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),s||(s=o.createElement("path",{fill:"currentColor",d:"M16.666 7.5V5H15v2.5h-2.5v1.666H15v2.5h1.666v-2.5h2.5V7.5zM7.5 10a3.332 3.332 0 1 0 0-6.667A3.332 3.332 0 1 0 7.5 10m0-5c.916 0 1.666.75 1.666 1.666 0 .917-.75 1.667-1.666 1.667-.917 0-1.667-.75-1.667-1.667C5.833 5.75 6.583 5 7.5 5m5.325 7.133c-1.4-.717-3.217-1.3-5.325-1.3s-3.925.583-5.325 1.3A2.48 2.48 0 0 0 .833 14.35v2.316h13.333V14.35c0-.934-.508-1.792-1.341-2.217M12.5 15h-10v-.65c0-.317.166-.6.433-.734A10.1 10.1 0 0 1 7.5 12.5c1.975 0 3.575.608 4.566 1.116a.81.81 0 0 1 .434.734z"})))},69831:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(63696),o=i(50539),n=i(97345),r=i(88273),a=i(70301);function l(e){const t=(0,o.useSelect)(e=>e(n.oR).hasCapability(n.HD)),i=(0,o.useSelect)(t=>t(r.i).getModuleStoreName(e)),l=(0,o.useSelect)(e=>e(i)?.getAdminReauthURL()),{navigateTo:c}=(0,o.useDispatch)(a.M),g=(0,s.useCallback)(()=>c(l),[l,c]);return l&&t?g:null}},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),o=i.n(s),n=i(49383),r=i(83366),a=i(62540);function CTAButton({label:e,ariaLabel:t,disabled:i,inProgress:s,onClick:o,href:l,external:c=!1,hideExternalIndicator:g=!1}){if(!e||!o&&!l)return null;let d;return c&&!g&&(d=(0,a.jsx)(r.A,{width:14,height:14})),(0,a.jsx)(n.SpinnerButton,{className:"googlesitekit-banner__cta","aria-label":t,disabled:i||s,isSaving:s,onClick:o,href:l,target:c?"_blank":void 0,trailingIcon:d,children:e})}CTAButton.propTypes={label:o().string,ariaLabel:o().string,disabled:o().bool,inProgress:o().bool,onClick:o().func,href:o().string,dismissOnClick:o().bool,dismissOptions:o().shape({expiresInSeconds:o().number,skipHidingFromQueue:o().bool})}},71264:(e,t,i)=>{i.d(t,{Ay:()=>TourTooltips,R0:()=>k,ei:()=>_});var s=i(15844),o=i(36703),n=i(62688),r=i.n(n),a=i(82871),l=i(50539),c=i(7972),g=i(97345),d=i(65054),u=i(83202),p=i(62659),h=i(84895),m=i(62540);const f=(0,h.G)("setupFlowRefresh"),k={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:f?"rgba(0, 0, 0, 0.25)":"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:f?"none":"2px solid #3c7251",backgroundColor:"#fff"}},b={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")},_={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)"}}},y={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:n,isRepeatable:r,callback:a}){const h=`${t}-step`,v=`${t}-run`,{setValue:x}=(0,l.useDispatch)(c.n),{dismissTour:j,receiveCurrentTour:S}=(0,l.useDispatch)(g.oR),A=(0,l.useRegistry)(),N=(0,p.A)(),w=(0,l.useSelect)(e=>e(c.n).getValue(h)||0),I=(0,l.useSelect)(e=>{const i=r||!1===e(g.oR).isTourDismissed(t);return e(c.n).getValue(v)&&i});function C(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}`,C(w)),x(v,!0)});const T=e.map(e=>({disableBeacon:!0,isFixed:!0,placement:"auto",...e})),M=f?{..._,styles:{..._.styles,floater:{filter:"drop-shadow(rgba(0, 0, 0, 0.25) 0px 4px 16px)"}}}:_;return(0,m.jsx)(o.Ay,{callback:function(s){!function({index:e,action:t,lifecycle:i,size:s,status:r,type:a}){const l=e+1,c="function"==typeof n?n(N):n;a===o.qY.TOOLTIP&&i===o.VD.TOOLTIP?(0,d.sx)(c,y.VIEW,l):t===o.kl.CLOSE&&i===o.VD.COMPLETE?(0,d.sx)(c,y.DISMISS,l):t===o.kl.NEXT&&r===o.XQ.FINISHED&&a===o.qY.TOUR_END&&s===l&&(0,d.sx)(c,y.COMPLETE,l),i===o.VD.COMPLETE&&r!==o.XQ.FINISHED&&(t===o.kl.PREV&&(0,d.sx)(c,y.PREV,l),t===o.kl.NEXT&&(0,d.sx)(c,y.NEXT,l))}(s);const{action:l,index:c,status:g,step:u,type:p}=s,m=l===o.kl.CLOSE,f=!m&&[o.qY.STEP_AFTER,o.qY.TARGET_NOT_FOUND].includes(p),k=[o.XQ.FINISHED,o.XQ.SKIPPED].includes(g),b=m&&p===o.qY.STEP_AFTER,_=k||b;if(o.qY.STEP_BEFORE===p){let e=u.target;"string"==typeof u.target&&(e=i.g.document.querySelector(u.target)),e?.scrollIntoView?.({block:"center"})}f?function(t,s){const n=t+(s===o.kl.PREV?-1:1);i.g.document.body.classList.remove(C(t)),e[n]&&i.g.document.body.classList.add(C(n)),x(h,n)}(c,l):_&&(i.g.document.body.classList.remove("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),e[w]&&i.g.document.body.classList.remove(C(w)),r?(x(v,!1),x(h,null),S(null)):j(t)),a&&a(s,A)},floaterProps:M,locale:b,run:I,stepIndex:w,steps:T,styles:k,tooltipComponent:u.A,showProgress:!f,continuous:!0,disableOverlayClose:!0,disableScrolling:!0})}TourTooltips.propTypes={steps:r().arrayOf(r().object).isRequired,tourID:r().string.isRequired,gaEventCategory:r().oneOfType([r().string,r().func]).isRequired,isRepeatable:r().bool,callback:r().func}},72545:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=i(63696);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},n.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},e),s||(s=o.createElement("path",{fill:"currentColor",d:"M14 1.41 12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7z"})))},73198:(e,t,i)=>{i.d(t,{A:()=>ErrorNotice});var s=i(62688),o=i.n(s),n=i(63696),r=i(82871),a=i(84024),l=i(50539),c=i(13137),g=i(25797),d=i(13047),u=i(62540);function ErrorNotice({className:e,error:t,hasButton:i=!1,storeName:s,message:o=t.message,noPrefix:p=!1,skipRetryMessage:h,hideIcon:m=!1}){const f=(0,l.useDispatch)(),k=(0,l.useSelect)(e=>s?e(s).getSelectorDataForError(t):null),b=(0,n.useCallback)(()=>{f(k.storeName).invalidateResolution(k.name,k.args)},[f,k]);if(!o||(0,c.G)(t))return null;const _=i&&(0,c.vl)(t,k);let y=o;i||h||(y=(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"),y)),p||(y=(0,r.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */ (0,r.__)("Error: %s","google-site-kit"),y));const v=t?.data?.reconnectURL;v&&(0,a.m)(v)&&(y=(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"),y,v));return(0,u.jsx)(g.A,{className:e,type:g.A.TYPES.ERROR,description:(0,u.jsx)("span",{dangerouslySetInnerHTML:(0,d.p9)(y,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:_?{label:(0,r.__)("Retry","google-site-kit"),onClick:b}:void 0,hideIcon:m})}ErrorNotice.propTypes={className:o().string,error:o().shape({message:o().string}),hasButton:o().bool,storeName:o().string,message:o().string,noPrefix:o().bool,skipRetryMessage:o().bool,hideIcon:o().bool}},73963:(e,t,i)=>{i.d(t,{A:()=>g});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(63696),l=i(62540);const c=(0,a.forwardRef)(({children:e,className:t,widgetSlug:i,noPadding:s,Header:n,Footer:r},a)=>(0,l.jsxs)("div",{className:o()("googlesitekit-widget",`googlesitekit-widget--${i}`,{"googlesitekit-widget--no-padding":s},{"googlesitekit-widget--with-header":n},t),ref:a,children:[n&&(0,l.jsx)("div",{className:"googlesitekit-widget__header",children:(0,l.jsx)(n,{})}),(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},75662:(e,t,i)=>{i.d(t,{A:()=>m});var s=i(62688),o=i.n(s),n=i(4452),r=i.n(n),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,o=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,{...o,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:o().string,badge:o().node,ctaLabel:o().string,ctaLink:o().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:o().string,ctaLink:o().string};const h=LayoutFooter;class Layout extends a.Component{render(){const{header:e,footer:t,children:i,title:s,badge:o,headerCTALabel:n,headerCTALink:a,footerCTALabel:l,footerCTALink:c,footerContent:g,className:p,fill:m,relative:f,rounded:k=!1,transparent:b=!1,..._}=this.props;return(0,d.jsxs)("div",{className:r()("googlesitekit-layout",p,{"googlesitekit-layout--fill":m,"googlesitekit-layout--relative":f,"googlesitekit-layout--rounded":k,"googlesitekit-layout--transparent":b}),..._,children:[e&&(0,d.jsx)(u,{title:s,badge:o,ctaLabel:n,ctaLink:a}),i,t&&(0,d.jsx)(h,{ctaLabel:l,ctaLink:c,footerContent:g})]})}}Layout.propTypes={header:o().bool,footer:o().bool,children:o().node.isRequired,title:o().string,badge:o().node,headerCTALabel:o().string,headerCTALink:o().string,footerCTALabel:o().string,footerCTALink:o().string,footerContent:o().node,className:o().string,fill:o().bool,relative:o().bool,rounded:o().bool,transparent:o().bool},Layout.defaultProps={header:!1,footer:!1,title:"",badge:null,headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1};const m=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),o=i.n(s),n=i(62688),r=i.n(n),a=i(21795),l=i(63696),c=i(19266),g=i(82871),d=i(50539),u=i(49383),p=i(13047),h=i(38432),m=i(62659),f=i(30805),k=i(62540);function HelpMenuLink({children:e,href:t,gaEventLabel:i,onClick:s,icon:o}){const n=(0,m.A)(),r=(0,f.i)("setupFlowRefresh"),a=(0,l.useCallback)(async()=>{s?.(),i&&await(0,p.sx)(`${n}_headerbar_helpmenu`,r?"click_menu_item":"click_outgoing_link",i)},[s,i,n,r]);return(0,k.jsx)("li",{className:"googlesitekit-help-menu-link mdc-list-item",role:"none",children:(0,k.jsx)(h.A,{className:"mdc-list-item__text",href:t,role:"menuitem",onClick:a,leadingIcon:o,external:!0,hideExternalIndicator:!0,children:e})})}HelpMenuLink.propTypes={children:r().node.isRequired,href:r().string,gaEventLabel:r().string,onClick:r().func};const b=HelpMenuLink;var _,y,v=i(88273),x=i(29785),j=i(97345),S=i(58718),A=i(12896),N=i(40194);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 I=e=>l.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),_||(_=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"})),y||(y=l.createElement("path",{fill:"currentColor",d:"M11.5 8.5H13v4h-1.5zM11.5 13.5H13V15h-1.5z"})));var C,T,M;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 R=e=>l.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),C||(C=l.createElement("circle",{cx:12,cy:11,r:8.25,stroke:"currentColor",strokeWidth:1.5})),T||(T=l.createElement("path",{fill:"currentColor",d:"m10 9 7-3-2.953 7.047L7 16z"})),M||(M=l.createElement("circle",{cx:12,cy:11,r:1,fill:"#fff"})));var D,O,L;function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},P.apply(null,arguments)}const z=e=>l.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),D||(D=l.createElement("mask",{id:"support_svg__a",fill:"#fff"},l.createElement("path",{d:"M12 2a9 9 0 0 1 2.128 17.745C10.508 21.823 5 23 5 23c.023-.017 2.69-2.024 3.053-3.911A9 9 0 0 1 3 11a9 9 0 0 1 9-9"}))),O||(O=l.createElement("path",{fill:"currentColor",d:"M12 2V.5zm9.001 9h1.5zm-2.25 5.953 1.125.993zm-1.802 1.566.826 1.252zm-2.3 1.086.441 1.433zm-.521.14-.354-1.458-.207.05-.186.107zM5 23l-.901-1.2-5.441 4.089 6.655-1.422zm3.053-3.911 1.473.284.217-1.128-1.031-.504zm-1.001-.57-.826 1.252zm-1.704-1.457-1.109 1.01zM3 11H1.5zm9-9v1.5a7.5 7.5 0 0 1 7.501 7.5h3C22.501 5.2 17.799.5 12 .5zm9.001 9h-1.5a7.47 7.47 0 0 1-1.875 4.96l1.125.993 1.125.993A10.47 10.47 0 0 0 22.5 11zm-2.25 5.953-1.125-.992a7.6 7.6 0 0 1-1.503 1.305l.826 1.253.826 1.252a10.6 10.6 0 0 0 2.1-1.825zm-1.802 1.566-.826-1.253a7.5 7.5 0 0 1-1.915.905l.441 1.434.441 1.433a10.5 10.5 0 0 0 2.685-1.267zm-2.3 1.086-.44-1.434c-.131.04-.273.077-.434.116l.353 1.458.353 1.458c.19-.046.397-.1.61-.165zm-.521.14-.747-1.3c-1.661.953-3.814 1.728-5.609 2.271a47 47 0 0 1-2.864.767l-.17.039-.04.009-.01.002h-.002L5 23l.314 1.467h.002l.004-.002.015-.003.052-.011.193-.044a49.75 49.75 0 0 0 3.062-.82c1.864-.564 4.275-1.417 6.233-2.541zM5 23l.901 1.2c.041-.032.783-.592 1.576-1.412.735-.76 1.777-2.007 2.049-3.415l-1.473-.284-1.473-.284c-.092.478-.564 1.178-1.26 1.898-.637.659-1.239 1.111-1.221 1.098zm3.053-3.911.659-1.348q-.438-.213-.834-.475l-.826 1.253-.826 1.252q.565.37 1.168.665zm-1.001-.57.826-1.253c-.523-.344-1.001-.753-1.422-1.215l-1.108 1.01-1.109 1.011a10.5 10.5 0 0 0 1.987 1.699zm-1.704-1.457 1.108-1.011A7.47 7.47 0 0 1 4.5 11h-3c0 2.723 1.039 5.207 2.74 7.072zM3 11h1.5A7.5 7.5 0 0 1 12 3.5v-3C6.2.5 1.5 5.2 1.5 11z",mask:"url(#support_svg__a)"})),L||(L=l.createElement("path",{fill:"currentColor",d:"M11.796 16q.487 0 .818-.312.332-.31.332-.767 0-.456-.332-.767a1.15 1.15 0 0 0-.818-.312q-.486 0-.817.312a1 1 0 0 0-.332.768q0 .457.332.766.33.312.817.312m.11-8.527q.62 0 1.006.311.387.312.387.788 0 .333-.243.706-.243.374-.685.726-.707.58-1.028 1.069-.32.486-.32.965 0 .31.221.518a.8.8 0 0 0 .574.208q.333 0 .586-.208a.9.9 0 0 0 .32-.56q.066-.332.299-.633.231-.3.762-.778.707-.622.961-1.11T15 8.407q0-1.08-.839-1.743Q13.321 6 11.951 6q-.928 0-1.624.343-.696.342-1.204 1.026a.53.53 0 0 0-.1.498q.078.27.32.456a.8.8 0 0 0 .652.136q.365-.073.608-.385.243-.29.564-.445t.74-.156"})));var B,W,H;function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},U.apply(null,arguments)}const G=e=>l.createElement("svg",U({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"})),W||(W=l.createElement("path",{fill:"currentColor",d:"M13.5 9V3L19 9z"})),H||(H=l.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M8.5 11.5h7M8.5 14.5h7M8.5 17.5H13"})));var V;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=>l.createElement("svg",F({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),V||(V=l.createElement("path",{fill:"currentColor",d:"M9 16h2v-2H9zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})));var Z,q;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 Q=e=>l.createElement("svg",$({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)(),n=(0,m.A)(),r=(0,f.i)("setupFlowRefresh");(0,a.A)(s,()=>i(!1)),(0,A.l)([c._f,c.wn],s,()=>i(!1));const h=(0,d.useSelect)(e=>e(v.i).isModuleActive(S.Py)),_=(0,l.useCallback)(()=>{t||(0,p.sx)(`${n}_headerbar`,"open_helpmenu"),i(!t)},[t,n]),y=(0,l.useCallback)(()=>{i(!1)},[]),w=(0,d.useSelect)(e=>e(x.O4).getDocumentationLinkURL("fix-common-issues")),{triggerOnDemandTour:C}=(0,d.useDispatch)(j.oR),T=(0,N.G)(),M=(0,l.useCallback)(()=>{C(T)},[C,T]),E=[{gaEventLabel:"fix_common_issues",href:w,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")},...h?[{gaEventLabel:"adsense_help",href:"https://support.google.com/adsense/",children:(0,g.__)("Get help with AdSense","google-site-kit")}]:[]],D=[{gaEventLabel:"browse_documentation",href:"https://sitekit.withgoogle.com/documentation/",icon:(0,k.jsx)(G,{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,k.jsx)(z,{width:24,height:24}),children:(0,g.__)("Get free support","google-site-kit")},{gaEventLabel:"start_tour",onClick:M,icon:(0,k.jsx)(R,{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,k.jsx)(I,{width:24,height:24}),children:(0,g.__)("Send feedback","google-site-kit")},...h?[{gaEventLabel:"get_adsense_help",href:"https://support.google.com/adsense/",icon:(0,k.jsx)(Q,{width:24,height:24}),children:(0,g.__)("Get help with AdSense","google-site-kit")}]:[]];return(0,k.jsxs)("div",{ref:s,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,k.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,k.jsx)(Y,{width:"20",height:"20"}),onClick:_,tooltipEnterDelayInMS:500,text:!0}),(0,k.jsxs)(u.Menu,{className:o()("googlesitekit-width-auto",{"googlesitekit-help-menu":r}),menuOpen:t,id:"googlesitekit-help-menu",onSelected:y,children:[e,(r?D:E).map((e,t)=>(0,k.jsx)(b,{...e},t))]})]})}HelpMenu.propTypes={children:r().node}},78990:(e,t,i)=>{i.d(t,{P9:()=>k,k:()=>h,mR:()=>f});var s=i(32091),o=i.n(s),n=i(17243),r=i(50539),a=i.n(r),l=i(49993),c=i(13047);const g="CREATE_SNAPSHOT",d="DELETE_SNAPSHOT",u="RESTORE_SNAPSHOT",p="SET_STATE_FROM_SNAPSHOT";function h(e,{keysToSnapshot:t}={}){o()(e,"storeName is required to create a snapshot store.");const i={},s={*deleteSnapshot(){return yield{payload:{},type:d}},*restoreSnapshot(e={}){const{clearAfterRestore:t=!0}=e,{cacheHit:i,value:s}=yield{payload:{},type:u};return i&&(yield{payload:{snapshot:s},type: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(),o=t?.length>0?(0,n.pick)(s,t):s;return(0,l.SO)(`datastore::cache::${e}`,o)}),[u]:()=>(0,l.Gq)(`datastore::cache::${e}`,c.Jg)};return{initialState:i,actions:s,controls:a,reducer:function(e=i,{type:s,payload:o}){if(s===p){const{snapshot:i}=o,{error:s,...n}=i;return t?.length>0?{...e,...n}:n}return e}}}function m(e=a()){return Object.values(e.stores).filter(e=>Object.keys(e.getActions()).includes("restoreSnapshot"))}function f(e=a()){return Promise.all(m(e).map(e=>e.getActions().createSnapshot()))}function k(e=a()){return Promise.all(m(e).map(e=>e.getActions().restoreSnapshot()))}},79266:(e,t,i)=>{i.d(t,{A:()=>WidgetRecoverableModules});var s=i(62688),o=i.n(s),n=i(63696),r=i(96820),a=i(97591),l=i(62540);function WidgetRecoverableModules({widgetSlug:e,moduleSlugs:t,...i}){const s=(0,n.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:o().string.isRequired,...a.A.propTypes}},79754:(e,t,i)=>{i.d(t,{A:()=>WidgetNull});var s=i(62688),o=i.n(s),n=i(96820),r=i(64515),a=i(62540);const l={};function WidgetNull({widgetSlug:e}){return(0,n.A)(e,r.A,l),(0,a.jsx)(r.A,{})}WidgetNull.propTypes={widgetSlug:o().string.isRequired,...r.A.propTypes}},79961:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(63696),o=i(84895);const n=(0,s.createContext)(o.t)},82218:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(62688),o=i.n(s),n=i(4751),r=i(62540);function PreviewBlocks({width:e,height:t,shape:i,count:s,smallWidth:o,smallHeight:a,tabletWidth:l,tabletHeight:c,desktopWidth:g,desktopHeight:d}){const u=[];let p=0;for(;p++<s;)u.push((0,r.jsx)(n.A,{width:e,height:t,shape:i,smallWidth:o,smallHeight:a,tabletWidth:l,tabletHeight:c,desktopWidth:g,desktopHeight:d},p));return u}PreviewBlocks.propTypes={width:o().string,height:o().string,shape:o().string,count:o().number,smallWidth:o().string,smallHeight:o().string,tabletWidth:o().string,tabletHeight:o().string,desktopWidth:o().string,desktopHeight:o().string},PreviewBlocks.defaultProps={width:"100px",height:"100px",shape:"square",count:1};const a=PreviewBlocks},82246:(e,t,i)=>{i.d(t,{A:()=>d});var s=i(62688),o=i.n(s),n=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,n.useCallback)(()=>{setTimeout(()=>{const e=t?document.querySelector(t):g;e&&document.body.contains(e)&&e.focus(),t||(g=null)})},[t]),o=(0,r.A)(e);return(0,n.useEffect)(()=>(!0===o&&!1===e&&s(),()=>{s()}),[o,e,s]),(0,c.jsx)(l.A,{dialogActive:e,...i})}!function(){function e(e){const t=e.target.closest("button, a, input");t&&!t.classList.contains("mdc-dialog__cancel-button")&&(g=t)}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:o().bool,refocusQuerySelector:o().string,...a.Dialog.propTypes};const d=RefocusableModalDialog},82267:(e,t,i)=>{i.d(t,{A:()=>InfoTooltip});var s,o=i(4452),n=i.n(o),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:n()("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:()=>Fe});var s=i(62688),o=i.n(s),n=i(4452),r=i.n(n),a=i(41814),l=i(82871),c=i(63696),g=i(50539),d=i(44436),u=i(21795),p=i(19266),h=i(49383),m=i(59865),f=i(62540);function Divider({className:e}){return(0,f.jsx)("li",{className:r()("mdc-list-divider",e),role:"separator"})}function MenuItem({id:e,className:t,role:i,isInteractive:s=!0,onClick:o,icon:n,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:h="googlesitekit-header-menu__item-description",trailingClassName:m="googlesitekit-header-menu__item-trailing"}){const k=g||(0,f.jsxs)("div",{className:d,children:[n&&(0,f.jsx)("div",{className:u,children:n}),a&&(0,f.jsx)("span",{className:p,children:a}),l&&(0,f.jsx)("span",{className:h,children:l}),c&&(0,f.jsx)("span",{className:m,children:c})]}),b=void 0===i&&s?"menuitem":i,_=r()(t,{"mdc-list-item":s}),y="function"==typeof o;return(0,f.jsx)("li",{id:e,className:_||void 0,role:b,children:y?(0,f.jsx)("button",{type:"button",className:"googlesitekit-header-menu__item-button",onClick:o,children:k}):k})}function MenuSection({id:e,className:t,role:i,children:s}){return(0,f.jsx)("li",{id:e,className:t,role:i,children:s})}function MenuWithHeading({heading:e,className:t,children:i}){return(0,f.jsxs)(MenuSection,{className:t,children:[e,i]})}Divider.propTypes={className:o().string},MenuItem.propTypes={id:o().string,className:o().string,role:o().string,isInteractive:o().bool,onClick:o().func,icon:o().node,label:o().node,description:o().node,trailing:o().node,children:o().node,itemClassName:o().string,iconClassName:o().string,labelClassName:o().string,descriptionClassName:o().string,trailingClassName:o().string},MenuSection.propTypes={id:o().string,className:o().string,role:o().string,children:o().node},MenuWithHeading.propTypes={heading:o().node,className:o().string,children:o().node};var k,b,_=i(13047),y=i(49993),v=i(94656),x=i(97345);function Details(){const e=(0,g.useSelect)(e=>e(x.oR).getPicture()),t=(0,g.useSelect)(e=>e(x.oR).getFullName()),i=(0,g.useSelect)(e=>e(x.oR).getEmail());return(0,f.jsxs)("div",{className:"googlesitekit-user-menu__details","aria-label":(0,l.__)("Google account","google-site-kit"),children:[!!e&&(0,f.jsx)("img",{className:"googlesitekit-user-menu__details-avatar",src:e,alt:""}),(0,f.jsxs)("div",{className:"googlesitekit-user-menu__details-info",children:[(0,f.jsx)("p",{className:"googlesitekit-user-menu__details-info__name",children:t}),(0,f.jsx)("p",{className:"googlesitekit-user-menu__details-info__email","aria-label":(0,l.__)("Email","google-site-kit"),children:i})]})]})}function 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 S=e=>c.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),k||(k=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"})),b||(b=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 A,N,w,I,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 M=e=>c.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),A||(A=c.createElement("rect",{width:18,height:13,x:3,y:4,stroke:"currentColor",strokeWidth:1.5,rx:2})),N||(N=c.createElement("path",{fill:"currentColor",d:"M9 17h6v3H9z"})),w||(w=c.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M10 9h7M10 12h7"})),I||(I=c.createElement("circle",{cx:7,cy:9,r:1,fill:"currentColor"})),C||(C=c.createElement("circle",{cx:7,cy:12,r:1,fill:"currentColor"})));var E=i(46467),R=i(29785),D=i(7972),O=i(70301),L=i(80),P=i(76729),z=i(12896),B=i(62659),W=i(68832),H=i(30805);function UserMenu(){const e=(0,H.i)("proactiveUserEngagement"),t=(0,g.useSelect)(e=>e(R.O4).getProxyPermissionsURL()),i=(0,g.useSelect)(e=>e(x.oR).getEmail()),s=(0,g.useSelect)(e=>e(x.oR).getPicture()),o=(0,g.useSelect)(e=>e(x.oR).getFullName()),n=(0,g.useSelect)(e=>e(R.O4).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})),r=(0,W.A)(L.CV,"isAutoCreatingCustomDimensionsForAudience"),{isTooltipVisible:a=!1,className:d}=(0,g.useSelect)(e=>e(D.n).getValue("admin-screen-tooltip")||{isTooltipVisible:!1}),[k,b]=(0,c.useState)(!1),[j,A]=(0,c.useState)(!1),N=(0,c.useRef)(),w=(0,c.useRef)(),I=(0,B.A)(),{navigateTo:C}=(0,g.useDispatch)(O.M);(0,u.A)(N,()=>A(!1)),(0,z.l)([p._f,p.wn],N,()=>{A(!1),w.current?.focus()});const T=(0,c.useCallback)(()=>{b(!1),A(!1)},[b,A]),{setValue:U}=(0,g.useDispatch)(D.n),G=(0,c.useCallback)(()=>{j||((0,_.sx)(`${I}_headerbar`,"open_usermenu"),a&&d?.includes("googlesitekit-tour-tooltip--user-menu")&&U("admin-screen-tooltip",void 0)),A(!j)},[j,I,U,a,d]),V=(0,c.useCallback)(()=>{b(!k),A(!1)},[k]),F=(0,c.useCallback)(async(e,i)=>{const{detail:{item:s}}=i;switch(s?.id){case"manage-sites":t&&(await(0,_.sx)(`${I}_headerbar_usermenu`,"manage_sites"),C(t));break;case"disconnect":V();break;case"manage-email-reports":U(P.Q,!0);break;default:G()}},[t,G,V,C,U,I]),Y=(0,c.useCallback)(async()=>{b(!1),await(0,y.IL)(),await(0,_.sx)(`${I}_headerbar_usermenu`,"disconnect_user"),C(n)},[n,C,I]);if(!i)return null;let Z;return o&&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"),o,i)),o&&!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"),o)),!o&&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,f.jsxs)(c.Fragment,{children:[(0,f.jsxs)("div",{ref:N,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,f.jsx)(h.Button,{disabled:r,ref:w,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:G,icon:!!s&&(0,f.jsx)("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true",children:(0,f.jsx)("img",{className:"mdc-button__icon--image",src:s,alt:(0,l.__)("User Avatar","google-site-kit")})}),"aria-haspopup":"menu","aria-expanded":j,"aria-controls":"user-menu","aria-label":r?void 0:(0,l.__)("Account","google-site-kit"),tooltipEnterDelayInMS:500,customizedTooltip:r?null:(0,f.jsxs)("span",{"aria-label":Z,children:[(0,f.jsx)("strong",{children:(0,l.__)("Google Account","google-site-kit")}),(0,f.jsx)("br",{}),(0,f.jsx)("br",{}),o,o&&(0,f.jsx)("br",{}),i]}),text:!0,tooltip:!0}),(0,f.jsxs)(h.Menu,{className:"googlesitekit-user-menu",menuOpen:j,onSelected:F,id:"user-menu",children:[(0,f.jsx)(MenuSection,{children:(0,f.jsx)(Details,{})}),e&&(0,f.jsx)(MenuItem,{id:"manage-email-reports",icon:(0,f.jsx)(E.A,{width:"24"}),label:(0,l.__)("Manage email reports","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"}),!!t&&(0,f.jsx)(MenuItem,{id:"manage-sites",icon:(0,f.jsx)(M,{width:"24"}),label:(0,l.__)("Manage Sites","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"}),(0,f.jsx)(MenuItem,{id:"disconnect",icon:(0,f.jsx)(S,{width:"24"}),label:(0,l.__)("Disconnect","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"})]})]}),(0,f.jsx)(v.A,{children:(0,f.jsx)(m.A,{dialogActive:k,handleConfirm:Y,handleCancel:T,onClose:T,title:(0,l.__)("Disconnect","google-site-kit"),subtitle:(0,l.__)("Disconnecting Site Kit by Google will remove your access to all services. After disconnecting, you will need to re-authorize to restore service.","google-site-kit"),confirmButton:(0,l.__)("Disconnect","google-site-kit"),danger:!0,small:!0})})]})}var U=i(10740),G=i(4124),V=i(45257),F=i(15844),Y=i(31589),Z=i(39525),q=i(30521),$=i(20697),Q=i(7551),X=i(11883),K=i(97513);var J=i(59352),ee=i(4169);const te={[Q.Oo]:{[$.SH]:J.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,[$.OT]:J.CONTEXT_MAIN_DASHBOARD_TRAFFIC,[$.en]:J.CONTEXT_MAIN_DASHBOARD_CONTENT,[$.Ej]:J.CONTEXT_MAIN_DASHBOARD_SPEED,[$.Gw]:J.CONTEXT_MAIN_DASHBOARD_MONETIZATION},[Q.oE]:{[$.OT]:J.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,[$.en]:J.CONTEXT_ENTITY_DASHBOARD_CONTENT,[$.Ej]:J.CONTEXT_ENTITY_DASHBOARD_SPEED,[$.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 oe=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 ne,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),ne||(ne=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 he,me;function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},fe.apply(null,arguments)}const ke=e=>c.createElement("svg",fe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 16"},e),he||(he=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"})),me||(me=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 be;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 ye=e=>c.createElement("svg",_e({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 16"},e),be||(be=c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 0h3.971v16H7zM0 8h4v8H0zm18-3h-4v11h4z",clipRule:"evenodd"})));function Navigation(){const e=(0,Q.Ay)(),t=(0,c.useRef)(),s=(0,B.A)(),o=function(){const e=(0,Q.Ay)(),t=(0,G.A)();return(0,g.useSelect)(i=>{const s=t?i(x.oR).getViewableModules():null,o=i(x.oR).isKeyMetricsWidgetHidden(),n={modules:s||void 0};return Object.keys(te[e]).reduce((t,s)=>(s===$.SH&&o||i(ee.aO).isWidgetContextActive(te[e][s],n)&&t.push(s),t),[])})}(),{calculateScrollPosition:n,defaultChipID:a,findClosestSection:d,isValidChipID:u,scrollToChip:p,updateURLHash:h}=function({visibleSections:e}){const t=(0,K.dv)(),s=(0,G.A)(),o=(0,c.useCallback)(()=>e.includes($.SH)?$.SH:s?e[0]||"":$.OT,[s,e])(),n=(0,c.useCallback)(t=>e.includes(t),[e]),r=(0,c.useCallback)(e=>{i.g.history.replaceState({},"",`#${e}`)},[]),a=(0,c.useCallback)(e=>e!==o?(0,X.YJ)(`#${e}`,t):0,[t,o]),l=(0,c.useCallback)(e=>{i.g.scrollTo({top:a(e,t,o),behavior:"smooth"})},[t,a,o]),g=(0,c.useCallback)(t=>{var i;const s=document.querySelector(".googlesitekit-entity-header")?.getBoundingClientRect?.()?.bottom,{bottom:n}=null!==(i=t?.current?.getBoundingClientRect?.())&&void 0!==i?i:{};let r,a=o;for(const t of e){const e=document.getElementById(t);if(!e)continue;const i=e.getBoundingClientRect().top-20-(s||n||0);i<0&&(void 0===r||r<i)&&(r=i,a=t)}return a},[o,e]);return{calculateScrollPosition:a,defaultChipID:o,findClosestSection:g,isValidChipID:n,scrollToChip:l,updateURLHash:r}}({visibleSections:o}),m=i.g.location.hash?.substring(1),[k,b]=(0,c.useState)(m||void 0),[y,v]=(0,c.useState)(!1),[j,S]=(0,c.useState)(m),{setValue:A}=(0,g.useDispatch)(D.n),N=(0,c.useCallback)(({target:e})=>{const t=e.closest(".mdc-chip"),i=t?.dataset?.contextId;h(i),b(i),p(i),(0,_.sx)(`${s}_navigation`,"tab_select",i),setTimeout(()=>{A(D.F,i)},50)},[p,A,h,s]),w=(0,c.useCallback)(()=>{if(!t?.current)return;const{top:e}=t?.current?.getBoundingClientRect();if(0===i.g.scrollY)v(!1);else{const t=document.querySelector(".googlesitekit-header")?.getBoundingClientRect?.()?.bottom;v(e===t)}},[]),I=(0,c.useCallback)(e=>{function o(e){A(D.F,void 0),S(e),b(void 0)}const n=d(t);if(k)k===n&&o(n);else{const{hash:t}=i.g.location;n!==t?.substring(1)&&(e&&(0,_.sx)(`${s}_navigation`,"tab_scroll",n),h(n),o(n))}},[d,k,A,h,s]);(0,F.A)(()=>{if(!m)return S(a),void setTimeout(()=>h(a));const e=u(m)?m:a;S(e),A(D.F,e),setTimeout(()=>{const t=n(e);i.g.scrollY!==t?p(e):A(D.F,void 0)},50)});const C=(0,c.useCallback)(e=>{w(),I(e)},[I,w]),T=(0,q.A)(C,150);(0,Y.A)("scroll",T);const M={[$.SH]:{label:(0,l.__)("Key metrics","google-site-kit"),icon:(0,f.jsx)(ge,{width:"18",height:"16"})},[$.OT]:{label:(0,l.__)("Traffic","google-site-kit"),icon:(0,f.jsx)(ye,{width:"18",height:"16"})},[$.en]:{label:(0,l.__)("Content","google-site-kit"),icon:(0,f.jsx)(oe,{width:"18",height:"18"})},[$.Ej]:{label:(0,l.__)("Speed","google-site-kit"),icon:(0,f.jsx)(ke,{width:"20",height:"16"})},[$.Gw]:{label:(0,l.__)("Monetization","google-site-kit"),icon:(0,f.jsx)(pe,{width:"18",height:"16"})}};return(0,f.jsx)("nav",{className:r()("mdc-chip-set","googlesitekit-navigation",`googlesitekit-navigation--${e}`,{"googlesitekit-navigation--is-sticky":y}),ref:t,children:o.map(e=>(0,f.jsx)(Z.Chip,{id:e,label:M[e].label,leadingIcon:M[e].icon,onClick:N,selected:j===e,"data-context-id":e},e))})}function DashboardNavigation(){const e=(0,G.A)(),t=(0,g.useSelect)(t=>e?t(x.oR).getViewableModules():null),i=(0,g.useSelect)(e=>e(x.oR).getKeyMetrics());return(0,f.jsx)(V.A,{loading:void 0===t||void 0===i,width:"100%",smallHeight:"59px",height:"71px",children:(0,f.jsx)(Navigation,{})})}var ve,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 Se=e=>c.createElement("svg",je({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),ve||(ve=c.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),xe||(xe=c.createElement("path",{fill:"currentColor",d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"})));var Ae=i(38432),Ne=i(83880),we=i(48276);const Ie=function EntityHeader(){const e=(0,B.A)(),t=(0,Q.Ay)(),s=(0,g.useSelect)(e=>e(R.O4).getCurrentEntityTitle()),o=(0,g.useSelect)(e=>e(R.O4).getCurrentEntityURL()),n=(0,c.useRef)(),[r,a]=(0,c.useState)(o),d=(0,c.useCallback)(()=>{if(!n.current)return;const e=n.current.clientWidth-40,t=i.g.getComputedStyle(n.current.lastChild,null).getPropertyValue("font-size"),s=2*e/parseFloat(t);a((0,we.r0)(o,s))},[o]),u=(0,q.A)(d,150);(0,Y.A)("resize",u);const{navigateTo:p}=(0,g.useDispatch)(O.M),m=(0,g.useSelect)(e=>e(R.O4).getAdminURL("googlesitekit-dashboard")),k=(0,c.useCallback)(()=>{(0,_.sx)(`${e}_navigation`,"return_to_dashboard"),p(m)},[m,p,e]);return Q.oE!==t||null===o||null===s?null:(0,f.jsxs)("div",{className:"googlesitekit-entity-header",children:[(0,f.jsx)("div",{className:"googlesitekit-entity-header__back",children:(0,f.jsx)(h.Button,{icon:(0,f.jsx)(Se,{width:24,height:24}),"aria-label":(0,l.__)("Back to dashboard","google-site-kit"),onClick:k,text:!0,tertiary:!0,children:(0,l.__)("Back to dashboard","google-site-kit")})}),(0,f.jsxs)("div",{ref:n,className:"googlesitekit-entity-header__details",children:[(0,f.jsx)(Ne.A,{children:s}),(0,f.jsx)(Ae.A,{href:o,"aria-label":o,secondary:!0,external:!0,children:r})]})]})};var Ce;function Te(){return Te=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},Te.apply(null,arguments)}const Me=e=>c.createElement("svg",Te({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 10"},e),Ce||(Ce=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 Ee=i(13606);function Description(){const e=(0,B.A)(),t=(0,g.useSelect)(e=>e(x.oR).hasCapability(x.ej)),i=(0,g.useSelect)(e=>e(R.O4).getProxySetupURL()),s=(0,g.useSelect)(e=>e(R.O4).getDocumentationLinkURL("dashboard-sharing")),{navigateTo:o}=(0,g.useDispatch)(O.M),n=(0,c.useCallback)(async t=>{t.preventDefault(),await Promise.all([(0,y.SO)("start_user_setup",!0),(0,_.sx)(`${e}_headerbar_viewonly`,"start_user_setup",i?"proxy":"custom-oauth")]),o(i)},[i,o,e]),r=(0,c.useCallback)(()=>{(0,_.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,Ee.A)((0,l.__)("You can see stats from all shared Google services, but you can't make any changes. <a>Learn more</a>","google-site-kit"),{a:(0,f.jsx)(Ae.A,{href:s,onClick:r,"aria-label":(0,l.__)("Learn more about dashboard sharing","google-site-kit"),external:!0})});return(0,f.jsxs)(c.Fragment,{children:[(0,f.jsx)(Ne.A,{className:"googlesitekit-view-only-menu__signin",children:a}),t&&(0,f.jsx)(h.Button,{onClick:n,children:(0,l._x)("Sign in with Google","Service name","google-site-kit")})]})}var Re=i(88273);function Service({module:e}){const t=(0,g.useSelect)(e=>e(x.oR).hasCapability(x.ej)),{name:i,owner:s}=(0,g.useSelect)(t=>t(Re.i).getModule(e)||{}),o=(0,g.useSelect)(t=>t(Re.i).getModuleIcon(e));return(0,f.jsxs)("li",{className:"googlesitekit-view-only-menu__service",children:[(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__service--icon",children:(0,f.jsx)(o,{height:26})}),(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__service--name",children:i}),t&&s?.login&&(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__service--owner",children:s.login})]})}function SharedServices({viewableModules:e}){return Array.isArray(e)?(0,f.jsx)("ul",{children:e.map(e=>(0,f.jsx)(Service,{module:e},e))}):null}Service.propTypes={module:o().string.isRequired},SharedServices.propTypes={viewableModules:o().arrayOf(o().string)};var De=i(11974);function Tracking(){const e=(0,B.A)();return(0,f.jsx)(De.A,{title:(0,l.__)("Help us improve Site Kit","google-site-kit"),description:(0,Ee.A)((0,l.__)("Share anonymous usage data. All collected data is treated in accordance with the <a>Google Privacy Policy</a>","google-site-kit"),{a:(0,f.jsx)(Ae.A,{href:"https://policies.google.com/privacy",external:!0})}),trackEventCategory:`${e}_headerbar_viewonly`,layout:"stacked"})}var Oe=i(52696);function ManageEmailReports(){const{setValue:e}=(0,Oe.wA)(D.n);return(0,Oe.WM)(e=>{const t=e(x.oR).getViewableModules();if(void 0!==t)return t.includes("analytics-4")||t.includes("search-console")})?(0,f.jsxs)(c.Fragment,{children:[(0,f.jsx)(Divider,{}),(0,f.jsx)(MenuItem,{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__email-reporting",isInteractive:!1,children:(0,f.jsx)(h.Button,{className:"googlesitekit-view-only-menu__email-reporting-item",onClick:()=>e(P.Q,!0),icon:(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--icon",children:(0,f.jsx)(E.A,{width:"24"})}),tertiary:!0,children:(0,f.jsx)("span",{className:"googlesitekit-view-only-menu__email-reporting-item--name",children:(0,l.__)("Manage email reports","google-site-kit")})})})]}):null}var Le=i(33052);function ViewOnlyMenu(){const e=(0,H.i)("proactiveUserEngagement"),[t,i]=(0,c.useState)(!1),s=(0,c.useRef)(),o=(0,B.A)();(0,u.A)(s,()=>i(!1)),(0,z.l)([p._f,p.wn],s,()=>i(!1));const n=(0,c.useCallback)(()=>{t||(0,_.sx)(`${o}_headerbar`,"open_viewonly"),i(!t)},[t,o]),a=(0,g.useSelect)(e=>e(x.oR).hasCapability(x.ej)),d=(0,g.useSelect)(e=>e(x.oR).getViewableModules());return(0,f.jsxs)("div",{ref:s,className:r()("googlesitekit-view-only-menu","googlesitekit-dropdown-menu","googlesitekit-dropdown-menu__icon-menu","mdc-menu-surface--anchor",{"googlesitekit-view-only-menu--user-can-authenticate":a}),children:[(0,f.jsx)(h.Button,{className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--phone googlesitekit-button-icon",onClick:n,icon:(0,f.jsx)("span",{className:"mdc-button__icon","aria-hidden":"true",children:(0,f.jsx)(Me,{className:"mdc-button__icon--image"})}),"aria-haspopup":"menu","aria-expanded":t,"aria-controls":"view-only-menu","aria-label":(0,l.__)("View only","google-site-kit"),tooltipEnterDelayInMS:500,text:!0,tooltip:!0,children:(0,l.__)("View only","google-site-kit")}),(0,f.jsxs)(h.Menu,{menuOpen:t,onSelected:n,id:"view-only-menu",nonInteractive:!0,children:[(0,f.jsx)(MenuSection,{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__description",children:(0,f.jsx)(Description,{})}),Array.isArray(d)&&(0,f.jsx)(MenuWithHeading,{className:"googlesitekit-view-only-menu__list-item",heading:(0,f.jsx)(Le.A,{as:"h4",size:"medium",type:"label",children:(0,l.__)("Shared services","google-site-kit")}),children:(0,f.jsx)(SharedServices,{viewableModules:d})}),e&&(0,f.jsx)(ManageEmailReports,{}),(0,f.jsx)(Divider,{}),(0,f.jsx)(MenuSection,{className:"googlesitekit-view-only-menu__list-item",children:(0,f.jsx)(Tracking,{})})]})]})}var Pe=i(8732),ze=i(84730),Be=i(89766);function CoreSiteBannerNotification({id:e,...t}){const{dismissNotification:i,acceptNotification:s}=(0,g.useDispatch)(R.O4),o=(0,c.useCallback)(()=>{s(e)},[e,s]),n=(0,c.useCallback)(()=>{i(e)},[e,i]);return(0,f.jsx)(Be.A,{onCTAClick:o,onDismissClick:n,...t,id:e})}CoreSiteBannerNotification.propTypes={content:o().string,ctaLabel:o().string,ctaTarget:o().string,ctaURL:o().string,dismissLabel:o().string,dismissible:o().bool,gaTrackingEventArgs:o().object,id:o().string.isRequired,learnMoreLabel:o().string,learnMoreURL:o().string,title:o().string.isRequired},CoreSiteBannerNotification.defaultProps={content:"",ctaLabel:"",ctaTarget:"",ctaURL:"",dismissLabel:(0,l.__)("OK, Got it!","google-site-kit"),dismissible:!0,learnMoreLabel:"",learnMoreURL:""};const We=CoreSiteBannerNotification;const He=function CoreSiteBannerNotifications(){const e=(0,B.A)(),[t,i]=(0,c.useState)(!1),[s,o]=(0,c.useState)(!1),n=(0,c.useRef)(Date.now()),r=(0,g.useSelect)(e=>e(R.O4).isUsingProxy()&&!1===e(x.oR).areSurveysOnCooldown()?e(x.oR).getCurrentSurvey():null),[a,l]=(0,c.useState)([]),{registerNotification:d}=(0,g.useDispatch)(Pe.D),u=(0,g.useSelect)(e=>e(R.O4).getNotifications());return(0,c.useEffect)(()=>{const e=setTimeout(()=>{s||i(!0)},5e3);return()=>{clearTimeout(e)}},[s]),(0,c.useEffect)(()=>{Math.floor((Date.now()-n.current)/1e3)<5&&r&&o(!0)},[n,r,o]),(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,f.jsx)(e,{gaTrackingEventArgs:i,children:(0,f.jsx)(We,{...t,gaTrackingEventArgs:i})}),priority:t.priority,areaSlug:ze.bI.HEADER,isDismissible:t.dismissible}),l(e=>(e.push(t.id),e))})},[e,s,u,d,a,t]),null};var Ue=i(67510),Ge=i(67438);function InternalServerError(){const e=(0,g.useSelect)(e=>e(R.O4).getInternalServerError());return e?(0,f.jsx)(Ge.A,{id:"internal-server-error",children:(0,f.jsx)(Ue.A,{notificationID:"internal-server-error",type:Ue.Q.ERROR,title:e.title,description:e.description})}):null}function LegacyNotifications(){const e=(0,G.A)(),t=(0,Q.Ay)(),i=(0,g.useSelect)(e=>e(x.oR).isAuthenticated());return(0,f.jsxs)(c.Fragment,{children:[(0,f.jsx)(InternalServerError,{}),!e&&t===Q.Oo&&i&&(0,f.jsx)(He,{})]})}var Ve=i(37834);function Header({children:e,subHeader:t,showNavigation:i}){const s=!!(0,Q.Ay)(),o=(0,G.A)();!function(){const e=(0,B.A)(),t=(0,g.useSelect)(e=>e(R.O4).isUsingProxy()),i=(0,g.useSelect)(e=>e(R.O4).getSetupErrorMessage()),s=(0,H.i)("setupFlowRefresh");(0,c.useEffect)(()=>{s||i||void 0===t||async function(){const i=await(0,y.Gq)("start_user_setup"),s=await(0,y.Gq)("start_site_setup");i.cacheHit&&(await(0,y.LD)("start_user_setup"),(0,_.sx)(`${e}_setup`,"complete_user_setup",t?"proxy":"custom-oauth")),s.cacheHit&&(await(0,y.LD)("start_site_setup"),(0,_.sx)(`${e}_setup`,"complete_site_setup",t?"proxy":"custom-oauth"))}()},[s,e,t,i])}();const n=(0,g.useSelect)(e=>e(R.O4).getAdminURL("googlesitekit-dashboard")),u=(0,g.useSelect)(e=>e(x.oR).isAuthenticated()),[p,h]=(0,a.A)({childList:!0}),m=!!h.target?.childElementCount;return(0,f.jsxs)(c.Fragment,{children:[(0,f.jsx)("header",{className:r()("googlesitekit-header",{"googlesitekit-header--has-subheader":m,"googlesitekit-header--has-navigation":i}),children:(0,f.jsx)(U.xA,{children:(0,f.jsxs)(U.fI,{children:[(0,f.jsx)(U.fh,{smSize:1,mdSize:2,lgSize:4,className:"googlesitekit-header__logo",alignMiddle:!0,children:(0,f.jsx)(Ae.A,{"aria-label":(0,l.__)("Go to dashboard","google-site-kit"),className:"googlesitekit-header__logo-link",href:n,children:(0,f.jsx)(d.A,{})})}),(0,f.jsxs)(U.fh,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0,children:[e,!u&&s&&o&&(0,f.jsx)(ViewOnlyMenu,{}),u&&!o&&(0,f.jsx)(UserMenu,{})]})]})})}),(0,f.jsx)("div",{className:"googlesitekit-subheader",ref:p,children:t}),i&&(0,f.jsx)(DashboardNavigation,{}),(0,f.jsx)(Ie,{}),(0,f.jsx)(LegacyNotifications,{}),(0,f.jsx)(Ve.A,{areaSlug:ze.bI.HEADER})]})}Header.displayName="Header",Header.propTypes={children:o().node,subHeader:o().element,showNavigation:o().bool},Header.defaultProps={children:null,subHeader:null};const Fe=Header},82871:e=>{e.exports=googlesitekit.i18n},83202:(e,t,i)=>{i.d(t,{A:()=>TourTooltip});var s=i(28056),o=i.n(s),n=i(4452),r=i.n(n),a=i(62688),l=i.n(a),c=i(82871),g=i(49383);var d=i(30805),u=i(72545),p=i(33052),h=i(62540);function TourTooltip({backProps:e,closeProps:t,index:i,primaryProps:n,size:a,step:l,tooltipProps:m}){const f=(0,d.i)("setupFlowRefresh"),k=a>1?function(e){return new Array(null!=e?e:0).fill().map((e,t)=>t)}(a):[];function b(e){return r()("googlesitekit-tooltip-indicator",{active:e===i})}const _=f?10:14;return(0,h.jsx)("div",{className:r()("googlesitekit-tour-tooltip",l.className,{"googlesitekit-tour-tooltip--setupFlowRefresh":f}),...m,children:(0,h.jsxs)(o(),{className:"googlesitekit-tooltip-card",children:[(0,h.jsxs)("div",{className:"googlesitekit-tooltip-body",children:[(0,h.jsx)(p.A,{as:"h2",className:"googlesitekit-tooltip-title",size:"medium",type:"title",children:l.title}),(0,h.jsx)("div",{className:"googlesitekit-tooltip-content",children:l.content})]}),(0,h.jsxs)(s.CardActions,{className:"googlesitekit-tooltip-actions",children:[!f&&(0,h.jsx)("ul",{className:"googlesitekit-tooltip-indicators",children:k.map(e=>(0,h.jsx)("li",{className:b(e)},`indicator-${e}`))}),f&&(0,h.jsxs)("p",{className:"googlesitekit-tooltip-steps",children:[i+1," / ",a]}),(0,h.jsxs)("div",{className:"googlesitekit-tooltip-buttons",children:[0!==i&&(0,h.jsx)(g.Button,{className:"googlesitekit-tooltip-button",text:!f,tertiary:f,...e,children:e.title}),l.cta,n.title&&(0,h.jsx)(g.Button,{className:r()("googlesitekit-tooltip-button",{"googlesitekit-tooltip-button--primary":f}),text:!f,...n,children:n.title})]})]}),(0,h.jsx)(g.Button,{className:"googlesitekit-tooltip-close",icon:(0,h.jsx)(u.A,{width:_,height:_}),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,o=i(63696);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},n.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),s||(s=o.createElement("path",{d:"M5 21a2 2 0 0 1-1.425-.575A2 2 0 0 1 3 19V5q0-.825.575-1.4Q4.175 3 5 3h7v2H5v14h14v-7h2v7q0 .825-.6 1.425Q19.825 21 19 21zm4.7-5.3-1.4-1.4L17.6 5H14V3h7v7h-2V6.4z"})))},83880:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(62688),o=i.n(s),n=i(97513),r=i(33052),a=i(8513),l=i(62540);function c({type:e=a.SZ,size:t,children:i,...s}){const o=(0,n.dv)();return(0,l.jsx)(r.A,{as:"p",type:e,size:t||(o===n.mp?a.Kk:a.Yw),...s,children:i})}c.propTypes={type:o().oneOf(a.tT),size:o().oneOf(a.oJ)}},83891:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(63696),l=i(97513),c=i(62540);function TitleIcon({className:e,children:t}){return(0,c.jsx)("div",{className:o()("googlesitekit-banner__title-icon",e),children:t})}function Title({className:e,children:t}){return(0,c.jsx)("p",{className:o()("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:n}){return(0,c.jsxs)("div",{className:o()("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}),n]})}function HelpText({className:e,children:t}){return(0,c.jsx)("p",{className:o()("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:o()("googlesitekit-banner__footer",e),children:t})}Footer.propTypes={className:r().string,children:r().node};var h=i(25797);const m=(0,a.forwardRef)(({className:e,titleIcon:t,title:i,description:s,additionalDescription:n,errorText:r,helpText:a,learnMoreLink:g,dismissButton:d,ctaButton:m,svg:f,footer:k},b)=>{const _=(0,l.dv)(),y=_===l.mp||_===l.Lg;let v=null;y&&f?.mobile?v=f.mobile:!y&&f?.desktop&&(v=f.desktop);const x=f?.verticalPosition?f.verticalPosition:"center";return(0,c.jsxs)("div",{ref:b,className:o()("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:n}),a&&(0,c.jsx)(HelpText,{children:a}),r&&(0,c.jsx)(h.A,{type:"error",description:r}),(0,c.jsxs)("div",{className:"googlesitekit-notice__action",children:[m&&(0,c.jsx)(u.A,{...m}),d?.onClick&&(0,c.jsx)(p.A,{...d})]})]}),v&&(0,c.jsx)("div",{className:o()("googlesitekit-banner__svg-wrapper",{[`googlesitekit-banner__svg-wrapper--${x}`]:x}),style:{backgroundImage:`url(${v})`}}),k&&(0,c.jsx)(Footer,{children:k})]})});m.propTypes={titleIcon:r().node,title:r().string,description:r().oneOfType([r().string,r().node]),additionalDescription:r().oneOfType([r().string,r().node]),errorText:r().string,helpText:r().string,learnMoreLink:r().shape(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 f=m},84730:(e,t,i)=>{i.d(t,{Bp:()=>n,FQ:()=>r,He:()=>l,bI:()=>a,rq:()=>o,ui:()=>s});const s="warning-notification-gtg",o="gtg-setup-cta",n="setup-success-notification-site-kit",r={ERROR_HIGH:30,ERROR_LOW:60,WARNING:100,INFO:150,SETUP_CTA_HIGH:150,SETUP_CTA_LOW:200},a={HEADER:"notification-area-header",DASHBOARD_TOP:"notification-area-dashboard-top",OVERLAYS:"notification-area-overlays"},l={DEFAULT:"default",SETUP_CTAS:"setup-ctas"}},84895:(e,t,i)=>{i.d(t,{G:()=>o,t:()=>s});const s=new Set(i.g?._googlesitekitBaseData?.enabledFeatures||[]);function o(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),o=i.n(s),n=i(4452),r=i.n(n),a=i(62540);function Cell(e){const{className:t,alignTop:i,alignMiddle:s,alignBottom:o,alignRight:n,alignLeft:l,smAlignRight:c,mdAlignRight:g,lgAlignRight:d,smSize:u,smStart:p,smOrder:h,mdSize:m,mdStart:f,mdOrder:k,lgSize:b,lgStart:_,lgOrder:y,size:v,children:x,...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":o,"mdc-layout-grid__cell--align-right":n,"mdc-layout-grid__cell--align-left":l,"mdc-layout-grid__cell--align-right-phone":c,"mdc-layout-grid__cell--align-right-tablet":g,"mdc-layout-grid__cell--align-right-desktop":d,[`mdc-layout-grid__cell--span-${v}`]:12>=v&&v>0,[`mdc-layout-grid__cell--span-${b}-desktop`]:12>=b&&b>0,[`mdc-layout-grid__cell--start-${_}-desktop`]:12>=_&&_>0,[`mdc-layout-grid__cell--order-${y}-desktop`]:12>=y&&y>0,[`mdc-layout-grid__cell--span-${m}-tablet`]:8>=m&&m>0,[`mdc-layout-grid__cell--start-${f}-tablet`]:8>=f&&f>0,[`mdc-layout-grid__cell--order-${k}-tablet`]:8>=k&&k>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-${h}-phone`]:4>=h&&h>0}),children:x})}Cell.propTypes={smSize:o().number,smStart:o().number,smOrder:o().number,mdSize:o().number,mdStart:o().number,mdOrder:o().number,lgSize:o().number,lgStart:o().number,lgOrder:o().number,size:o().number,alignTop:o().bool,alignMiddle:o().bool,alignBottom:o().bool,alignRight:o().bool,alignLeft:o().bool,smAlignRight:o().bool,mdAlignRight:o().bool,lgAlignRight:o().bool,className:o().string,children:o().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:o().string,children:o().node},c.defaultProps={className:""};const g=c,d=(0,l.forwardRef)(({alignLeft:e,fill:t,className:i,children:s,collapsed:o,...n},l)=>(0,a.jsx)("div",{className:r()("mdc-layout-grid",i,{"mdc-layout-grid--align-left":e,"mdc-layout-grid--collapsed":o,"mdc-layout-grid--fill":t}),...n,ref:l,children:s}));d.displayName="Grid",d.propTypes={alignLeft:o().bool,fill:o().bool,className:o().string,collapsed:o().bool,children:o().node},d.defaultProps={className:""};const u=d},85097:(e,t,i)=>{i.d(t,{W:()=>l});var s=i(79257),o=i(35470),n=i(63696),r=i(52735),a=i(7972);function l({sticky:e=!1}={}){const t=(0,n.useContext)(r.A),[i,l]=(0,n.useState)(!1),c=(0,o.A)(e=>e(a.n).getInViewResetCount()),g=(0,o.A)(e=>e(a.n).getValue("forceInView"));return(0,n.useEffect)(()=>{t.value&&!i&&l(!0)},[i,t,l]),(0,n.useEffect)(()=>{g&&l(!0)},[g]),(0,s.A)(()=>{l(!1)},[c]),!(!e||!i)||!!t.value}},85135:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(62688),o=i.n(s),n=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:o,disabled:n,target:r,"aria-label":a,inverse:l,tertiary:c,callout:u,calloutStyle:p,...h},m)=>{const f=t&&!n?"a":"button";return(0,d.jsx)(f,{className:g()("mdc-button",s,{"mdc-button--raised":!i&&!c&&!u,"mdc-button--danger":o,"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:n?void 0:t,ref:m,disabled:!!n,"aria-label":a,target:r||"_self",role:"a"===f?"button":void 0,...h,children:e})});u.propTypes={children:o().node,href:o().string,text:o().bool,className:o().string,danger:o().bool,disabled:o().bool,target:o().string,"aria-label":o().string,inverse:o().bool,tertiary:o().bool,callout:o().bool,calloutStyle:o().oneOf(["primary","warning","error"])};const p=u;var h=i(99573);function MaybeTooltip({children:e,disabled:t=!1,tooltip:i=!1,tooltipTitle:s=null,hasIconOnly:o=!1,tooltipEnterDelayInMS:n=100}){return!t&&(i&&s||o&&s)?(0,d.jsx)(h.A,{title:s,enterDelay:n,children:e}):e}MaybeTooltip.propTypes={children:o().node.isRequired,disabled:o().bool,tooltip:o().bool,tooltipTitle:o().oneOfType([o().string,o().element]),hasIconOnly:o().bool,tooltipEnterDelayInMS:o().number};const m=(0,r.forwardRef)(({children:e,href:t=null,text:i=!1,className:s="",danger:o=!1,disabled:c=!1,target:g,icon:u=null,trailingIcon:h=null,"aria-label":m,title:f=null,customizedTooltip:k=null,tooltip:b=!1,inverse:_=!1,hideTooltipTitle:y=!1,tooltipEnterDelayInMS:v=100,tertiary:x=!1,callout:j=!1,calloutStyle:S=null,...A},N)=>{const w=(0,r.useCallback)(e=>{null!==e&&l.Nv.attachTo(e)},[]),I=(0,n.A)(N,w);const C=y?null:f||k||m;return(0,d.jsx)(MaybeTooltip,{disabled:c,tooltip:b,tooltipTitle:C,hasIconOnly:!!u&&void 0===e,tooltipEnterDelayInMS:v,children:(0,d.jsxs)(p,{href:t,disabled:c,className:s,danger:o,text:i,tertiary:x,inverse:_,callout:j,calloutStyle:S,ref:I,"aria-label":function(){let t=m;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",...A,children:[u,e&&(0,d.jsx)("span",{className:"mdc-button__label",children:e}),h]})})});m.propTypes={onClick:o().func,children:o().node,href:o().string,text:o().bool,className:o().string,danger:o().bool,disabled:o().bool,icon:o().element,trailingIcon:o().element,title:o().string,customizedTooltip:o().element,tooltip:o().bool,inverse:o().bool,hideTooltipTitle:o().bool,callout:o().bool,calloutStyle:o().oneOf(["primary","warning","error"])};const f=m},85149:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o,n=i(63696);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-labelledby":"warning-title warning-desc",viewBox:"0 0 24 24"},e),s||(s=n.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),o||(o=n.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})))},85172:(e,t,i)=>{i.d(t,{A:()=>PageHeader});var s=i(4452),o=i.n(s),n=i(62688),r=i.n(n),a=i(10740),l=i(24560),c=i(18418),g=i(50304),d=i(33052),u=i(62540);function PageHeader(e){const{title:t,icon:i,className:s,status:n,statusText:r,fullWidth:p,children:h}=e,m=p?{size:12}:{smSize:4,mdSize:4,lgSize:6},f=""!==n||Boolean(h);return(0,u.jsx)("header",{className:"googlesitekit-page-header",children:(0,u.jsxs)(a.fI,{children:[t&&(0,u.jsxs)(a.fh,{...m,children:[i,(0,u.jsx)(d.A,{as:"h1",className:o()("googlesitekit-page-header__title",s),size:"medium",type:"title",children:t})]}),f&&(0,u.jsx)(a.fh,{smSize:4,mdSize:4,lgSize:6,alignBottom:!0,mdAlignRight:!0,children:(0,u.jsxs)("div",{className:"googlesitekit-page-header__details",children:[n&&(0,u.jsxs)("span",{className:o()("googlesitekit-page-header__status",`googlesitekit-page-header__status--${n}`),children:[r,(0,u.jsx)(g.A,{children:"connected"===n?(0,u.jsx)(l.A,{width:10,height:8}):(0,u.jsx)(c.A,{width:2,height:12})})]}),h]})})]})})}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}},85662:(e,t,i)=>{i.d(t,{A:()=>DashboardSharingSettingsButton});var s=i(82871),o=i(63696),n=i(50539),r=i(49383),a=i(69195),l=i(62659),c=i(13047),g=i(7972),d=i(29785),u=i(80),p=i(29775),h=i(81042),m=i(31589),f=i(78174),k=i(4452),b=i.n(k),_=i(13606),y=i(19266),v=i(12417),x=i(59837),j=i(88273),S=i(97513),A=i(94656),N=i(10740),w=i(38432),I=i(8712),C=i(62688),T=i.n(C),M=i(62540);function Notice(){const e=(0,n.useSelect)(e=>e(j.i).canSubmitSharingChanges()),t=(0,n.useSelect)(e=>e(j.i).haveSharingSettingsExpanded("management")),i=(0,n.useSelect)(e=>e(j.i).haveSharingSettingsExpanded("sharedRoles"));return(0,M.jsxs)("p",{className:"googlesitekit-dashboard-sharing-settings__notice",children:[t&&e&&(0,M.jsx)("span",{children:(0,_.A)((0,s.__)("By clicking <strong>Apply</strong>, you will give other authenticated admins of your site permission to manage view-only access to Site Kit dashboard data from the chosen Google service","google-site-kit"),{strong:(0,M.jsx)("strong",{})})}),!t&&e&&i&&(0,M.jsx)("span",{children:(0,_.A)((0,s.__)("By clicking <strong>Apply</strong>, you’re granting the selected roles view-only access to data from the Google services you’ve connected via your account","google-site-kit"),{strong:(0,M.jsx)("strong",{})})})]})}var E=i(73198);function Footer({closeDialog:e,openResetDialog:t}){const i=(0,l.A)(),[a,d]=(0,o.useState)(null),[u,h]=(0,o.useState)(!1),m=(0,n.useSelect)(e=>e(j.i).canSubmitSharingChanges()),f=(0,n.useSelect)(e=>e(j.i).isDoingSubmitSharingChanges()),k=(0,n.useSelect)(e=>e(j.i).haveSharingSettingsExpanded("management")),b=(0,n.useSelect)(e=>e(j.i).haveSharingSettingsExpanded("sharedRoles")),_=(0,n.useSelect)(e=>e(j.i).haveSharingSettingsUpdated()),y=(0,n.useSelect)(e=>!!e(g.n).getValue(p.tm)),v=(0,n.useSelect)(e=>!!e(g.n).getValue(p.hk)),{resetSharingSettings:x,saveSharingSettings:S}=(0,n.useDispatch)(j.i),{setValue:A}=(0,n.useDispatch)(g.n),N=(0,o.useCallback)(async()=>{d(null);const{error:t}=await S();t?d(t.message):((0,c.sx)(`${i}_sharing`,"settings_confirm"),A(p.zP,void 0),e())},[i,S,A,e]),I=(0,o.useCallback)(async()=>{d(null),h(!0);const{error:t}=await x();t?d(t.message):(h(!1),e())},[e,x]),C=(0,o.useCallback)(()=>{(0,c.sx)(`${i}_sharing`,"settings_cancel"),e()},[e,i]),T=a||k||b;return(0,M.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer",children:[T&&(0,M.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-notice",children:[a&&(0,M.jsx)(E.A,{message:a}),!a&&(0,M.jsx)(Notice,{})]}),(0,M.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions",children:[_&&y&&!T&&(0,M.jsx)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions-left",children:(0,M.jsx)(w.A,{onClick:t,className:"googlesitekit-reset-sharing-permissions-button",danger:!0,children:(0,s.__)("Reset sharing permissions","google-site-kit")})}),(0,M.jsxs)("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions-right",children:[(0,M.jsx)(r.Button,{onClick:C,tertiary:!0,children:(0,s.__)("Cancel","google-site-kit")}),y&&(0,M.jsx)(r.SpinnerButton,{onClick:N,disabled:f||!m,isSaving:f,children:(0,s.__)("Apply","google-site-kit")}),v&&(0,M.jsx)(r.SpinnerButton,{onClick:I,disabled:u,isSaving:u,danger:!0,children:(0,s.__)("Reset","google-site-kit")})]})]})]})}Footer.propTypes={closeDialog:T().func.isRequired,openResetDialog:T().func.isRequired};var R=i(33052);function DashboardSharingDialog(){const[e,t]=(0,o.useState)(!1),i=(0,o.useRef)(void 0),l=(0,S.dv)(),{y:c}=(0,h.A)(),{setValue:u}=(0,n.useDispatch)(g.n),{rollbackSharingSettings:k}=(0,n.useDispatch)(j.i),C=(0,n.useSelect)(e=>!!e(g.n).getValue(p.tm)),T=(0,n.useSelect)(e=>!!e(g.n).getValue(p.hk)),E=(0,n.useSelect)(e=>e(g.n).getValue(p.zP)),D=(0,n.useSelect)(e=>e(j.i).haveSharingSettingsChanged()),O=(0,n.useSelect)(e=>e(d.O4).getDocumentationLinkURL("dashboard-sharing"));(0,o.useEffect)(()=>{if(e){const e=document.querySelector(".googlesitekit-reset-sharing-permissions-button");e&&e.focus(),t(!1)}},[e]);const L={};l===S.mp&&(L.top=(c<46?46-c:0)+"px",L.height=`calc(100% - 46px + ${c<46?c:46}px)`),(0,o.useEffect)(()=>{!C&&D&&k()},[C,D,k]);const P=(0,o.useCallback)(()=>{u(p.tm,!0)},[u]),z=(0,o.useCallback)(()=>{u(p.tm,!1),u(p.zP,void 0)},[u]),B=(0,o.useCallback)(()=>{z(),u(p.hk,!0)},[z,u]),W=(0,o.useCallback)(()=>{u(p.hk,!1),P(),t(!0)},[P,u]),H=(0,o.useCallback)(()=>{T?W():z()},[W,z,T]),U=(0,o.useCallback)(e=>{T&&e.target.classList.contains("mdc-dialog__scrim")&&W()},[T,W]);return(0,m.A)("click",U),(0,f.A)(e=>T&&y._f===e.keyCode,W),(0,M.jsx)(A.A,{children:(0,M.jsxs)(N.lG,{open:C||T,onClose:H,className:"googlesitekit-dialog googlesitekit-sharing-settings-dialog",style:L,escapeKeyAction:void 0!==E||T?"":"close",scrimClickAction:void 0!==E||T?"":"close",children:[(0,M.jsx)("div",{className:"googlesitekit-dialog__back-wrapper","aria-hidden":l!==S.mp,ref:i,children:(0,M.jsx)(r.Button,{"aria-label":(0,s.__)("Back","google-site-kit"),className:"googlesitekit-dialog__back",onClick:H,children:(0,M.jsx)(v.A,{icon:x.A})})}),(0,M.jsxs)(N.Cf,{className:"googlesitekit-dialog__content",children:[(0,M.jsxs)("div",{className:"googlesitekit-dialog__header",children:[C&&(0,M.jsx)("div",{className:"googlesitekit-dialog__header-icon","aria-hidden":l===S.mp,children:(0,M.jsx)("span",{children:(0,M.jsx)(a.A,{width:20,height:20})})}),(0,M.jsxs)("div",{className:"googlesitekit-dialog__header-titles",children:[(0,M.jsxs)(R.A,{as:"h2",className:"googlesitekit-dialog__title",size:"medium",type:"headline",children:[C&&(0,M.jsx)("span",{children:(0,s.__)("Dashboard sharing & permissions","google-site-kit")}),T&&(0,M.jsx)("span",{children:(0,s.__)("Reset dashboard sharing permissions","google-site-kit")})]}),(0,M.jsxs)("p",{className:b()("googlesitekit-dialog__subtitle",{"googlesitekit-dialog__subtitle--emphasis":T}),children:[C&&(0,M.jsx)("span",{children:(0,_.A)((0,s.__)("Share a view-only version of your Site Kit dashboard with other WordPress roles. <a>Learn more</a>","google-site-kit"),{a:(0,M.jsx)(w.A,{"aria-label":(0,s.__)("Learn more about dashboard sharing","google-site-kit"),href:O,external:!0})})}),T&&(0,M.jsx)("span",{children:(0,s.__)("Warning: Resetting these permissions will remove view-only access for all users. Are you sure you want to reset all dashboard sharing permissions?","google-site-kit")})]})]})]}),C&&(0,M.jsx)("div",{className:"googlesitekit-dialog__main",children:(0,M.jsx)(I.A,{})})]}),(0,M.jsx)(N.Es,{className:"googlesitekit-dialog__footer",children:(0,M.jsx)(Footer,{closeDialog:H,openResetDialog:B})})]})})}var D=i(68832);function DashboardSharingSettingsButton(){const e=(0,l.A)(),{setValue:t}=(0,n.useDispatch)(g.n),i=(0,n.useSelect)(e=>e(d.O4).hasMultipleAdmins()),h=(0,D.A)(u.CV,"isAutoCreatingCustomDimensionsForAudience"),m=(0,o.useCallback)(()=>{(0,c.sx)(`${e}_headerbar`,"open_sharing",i?"advanced":"simple"),t(p.tm,!0)},[t,e,i]);return(0,M.jsxs)(o.Fragment,{children:[(0,M.jsx)(r.Button,{"aria-label":(0,s.__)("Open sharing settings","google-site-kit"),className:"googlesitekit-sharing-settings__button googlesitekit-header__dropdown googlesitekit-border-radius-round googlesitekit-button-icon",onClick:m,icon:(0,M.jsx)(a.A,{width:20,height:20}),tooltipEnterDelayInMS:500,disabled:h}),(0,M.jsx)(DashboardSharingDialog,{})]})}},86582:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(20697);function o(e){return s.kz.includes(e)}},88273:(e,t,i)=>{i.d(t,{U:()=>o,i:()=>s});const s="core/modules",o="insufficient_module_dependencies"},88933:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,o=i(63696);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},n.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 43 44"},e),s||(s=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#FBBC05",d:"m2.253 12.252 7.399 5.658A13 13 0 0 0 9 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22 22 0 0 1 0 22c0-3.506.81-6.814 2.253-9.748"}),o.createElement("path",{fill:"#EA4335",d:"m9.652 17.91-7.4-5.658A21.94 21.94 0 0 1 22 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91"}),o.createElement("path",{fill:"#34A853",d:"m2.25 31.742 7.396-5.67A12.975 12.975 0 0 0 22 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.94 21.94 0 0 1 2.25 31.742"}),o.createElement("path",{fill:"#4285F4",d:"m36.34 38.52-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52"}))))},89766:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(62688),o=i.n(s),n=i(67510),r=i(13047),a=i(62540);function NotificationFromServer({id:e,titleIcon:t,title:i,content:s,ctaLabel:o,ctaTarget:l,ctaURL:c,dismissible:g,dismissLabel:d,learnMoreLabel:u,learnMoreURL:p,onCTAClick:h,onDismissClick:m,gaTrackingEventArgs:f}){const k={expiresInSeconds:r.Jg};return(0,a.jsx)(n.A,{notificationID:e,type:n.Q.WARNING,titleIcon:t||void 0,title:i,description:s,learnMoreLink:p?{label:u,href:p}:void 0,ctaButton:{label:o,href:c,onClick:h,dismissOptions:k,external:"_blank"===l},dismissButton:g?{label:d,onClick:m,dismissOptions:k}:void 0,gaTrackingEventArgs:f})}NotificationFromServer.propTypes={id:o().string.isRequired,title:o().string.isRequired,content:o().node,ctaLabel:o().string,ctaTarget:o().string,ctaURL:o().string,dismissible:o().bool,dismissLabel:o().string,learnMoreLabel:o().string,learnMoreURL:o().string,onCTAClick:o().func,onDismissClick:o().func,gaTrackingEventArgs:o().object};const l=NotificationFromServer},90187:(e,t,i)=>{i.d(t,{default:()=>h});var s=i(57255),o=i.n(s),n=i(58433);const r=function(e){const t=Object.keys(e).reduce((t,i)=>(t[(0,n.F)(i)]=e[i],t),{});let i=!1;return(e,s)=>{if(i)return s(e);setTimeout(()=>{i=!0},3e3);const{parse:o=!0}=e,r=e.path;if("string"==typeof e.path){const i=e.method?.toUpperCase()||"GET",s=(0,n.F)(r);if(o&&"GET"===i&&t[s]){const e=Promise.resolve(t[s].body);return delete t[s],e}if("OPTIONS"===i&&t[i]&&t[i][s]){const e=Promise.resolve(t[i][s]);return delete t[i][s],e}}return s(e)}};var a=i(45019),l=i.n(a);const c=function(e={}){const{onDuplicate:t}=e,i=new(l());return function(e,s){const o=i.get(e);if(o instanceof Promise)return t?.(e),o;const n=s(e);return i.set(e,n),n.catch(()=>{}).finally(()=>{i.delete(e)}),n}},{nonce:g,nonceEndpoint:d,preloadedData:u,rootURL:p}=i.g._googlesitekitAPIFetchData||{};o().nonceEndpoint=d,o().nonceMiddleware=o().createNonceMiddleware(g),o().rootURLMiddleware=o().createRootURLMiddleware(p),o().dedupeMiddleware=c({onDuplicate:function(e){i.g.console.warn("Google Site Kit API: duplicate request",e)}}),o().preloadingMiddleware=r(u),o().use(o().nonceMiddleware),o().use(o().mediaUploadMiddleware),o().use(o().rootURLMiddleware),o().use(o().dedupeMiddleware),o().use(o().preloadingMiddleware);const h=o()},91117:(e,t,i)=>{i.d(t,{A:()=>AnalyticsDisconnectedNotice});var s=i(82871),o=i(63696),n=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),h=i(68761),m=i(30289),f=i(62540);const k="email_reports_analytics_disconnected_notice",b=(0,m.A)(a.A);function AnalyticsDisconnectedNotice(){const e=(0,p.A)(),[t,i]=(0,o.useState)(!1),a=(0,h.A)(k),m=(0,n.useSelect)(e=>e(c.O4).isEmailReportingEnabled()),_=(0,n.useSelect)(e=>e(g.i).isModuleConnected(d.L1)),y=(0,n.useSelect)(e=>e(g.i).isModuleDisconnected(d.L1)),v=(0,n.useSelect)(e=>e(r.oR).isItemDismissed(k)),{dismissItem:x}=(0,n.useDispatch)(r.oR),j=(0,u.A)(d.L1),S=(0,o.useCallback)(()=>{i(!0),a.confirm(),j()},[a,j]),A=(0,o.useCallback)(async()=>{a.dismiss(),await x(k)},[x,a]);if(!m||!1!==v||_||!y)return null;let N=(0,s.__)("Email reports won’t include Analytics data and metrics","google-site-kit");return e&&(N=(0,s.__)("Email reports won’t include Analytics data and metrics. To fix the issue contact your administrator.","google-site-kit")),(0,f.jsx)(b,{className:"googlesitekit-email-reporting__admin-settings-notice",type:l.Q.WARNING,title:(0,s.__)("Analytics is disconnected","google-site-kit"),description:N,ctaButton:e?void 0:{label:(0,s.__)("Connect Analytics","google-site-kit"),inProgress:t,disabled:t,onClick:S},dismissButton:{label:(0,s.__)("Got it","google-site-kit"),onClick:A},onInView:a.view})}},92449:(e,t,i)=>{i.d(t,{Ay:()=>r,Kq:()=>n});const s=(0,i(63696).createContext)({}),{Consumer:o,Provider:n}=s,r=s},94656:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(47209),o=i(62688),n=i.n(o),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:n().string,children:n().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:()=>n,T5:()=>u,WP:()=>d.WP});var s=i(33494),o=i(64515);function n(e){return!!e&&e.Component===o.A}function r(e,t){if(9!==t)return[e,t];let i=(e=[...e]).length-1;for(;0!==t&&i>=0;)3===e[i]?(t-=3,e[i]=4):6===e[i]&&(t-=6,e[i]=8),i--;return[e,t]}function a(e,t){return(Array.isArray(t.width)?t.width:[t.width]).map(t=>({counter:e+s.Gr[t],width:t}))}function l(e,t){let i=[];const o=[];if(!e?.length)return{columnWidths:i,rowIndexes:o};let l=0,c=0;function g({counter:e},{counter:t}){return e-t}function d({counter:e},{counter:t}){return t-e}function u({counter:e}){return e<=12}return e.forEach((p,h)=>{if(n(t[p.slug]))return i.push(0),void o.push(c);let m=a(l,p);const f=function(e,t,i){for(;++e<t.length;)if(!n(i[t[e].slug]))return t[e];return null}(h,e,t);if(null===f||0===a(m.sort(g)[0].counter,f).filter(u).length){m.some(u)&&(m=m.sort(d),m=m.filter(u))}const k=m[0].width;o.push(c),l+=s.Gr[k],l>12?(l-=s.Gr[k],o[h]++,9===l&&([i,l]=r(i,l)),l=s.Gr[k],c++):12===l&&(l=0,c++),i.push(s.Gr[k])}),9===l&&([i,l]=r(i,l)),{columnWidths:i,rowIndexes:o}}var c=i(17243);function g(e,t,{columnWidths:i,rowIndexes:o}){const n=[],r=[...i];if(!e?.length)return{gridColumnWidths:r,overrideComponents:n};let a=null,l=-1,g=[];if(function(e,t){const i={};for(let o=0;o<e.length;o++){const n=e[o],r=t?.[n.slug],a=r?.Component,l=r?.metadata?.moduleSlug,c=s.We.includes(a);if(!a||!l||!c)return!1;if(i[l]){if(i[l]!==a)return!1}else i[l]=a}return!(Object.keys(i).length>1)}(e,t)){const i=Array.from({length:e.length-1}).fill(0);return{overrideComponents:[t[e[0].slug]],gridColumnWidths:[12,...i]}}return e.forEach((s,d)=>{if(n.push(null),a=t[s.slug],l=o[d],a)if(u=a,p=t[e[d+1]?.slug],h=l,m=o[d+1],h===m&&(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);n[d]=a,r[d]=e,g=[]}var u,p,h,m}),{gridColumnWidths:r,overrideComponents:n}}var d=i(21213);function u(e){return(Array.isArray(e)?e:[e]).filter(e=>"string"==typeof e&&e.length>0)}},96820:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(63696),o=i(50539),n=i(4169);function r(e,t,i){const{setWidgetState:r,unsetWidgetState:a}=(0,o.useDispatch)(n.aO);(0,s.useEffect)(()=>(r(e,t,i),()=>{a(e,t,i)}),[e,t,i,r,a])}},97343:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(63696),o=i(82871),n=i(50539),r=i(7972),a=i(25797),l=i(62540);const c=function OfflineNotification(){const[e,t]=(0,s.useState)(!1),i=(0,n.useSelect)(e=>e(r.n).getIsOnline());return(0,s.useEffect)(()=>{i&&e&&t(!1)},[i,e]),(0,l.jsx)("div",{"aria-live":"polite",children:!i&&!e&&(0,l.jsx)(a.A,{className:"googlesitekit-notice-snackbar--bottom-right",type:a.A.TYPES.WARNING,description:(0,o.__)("You are currently offline. Some features may not be available.","google-site-kit"),ctaButton:{label:(0,o.__)("OK, Got it!","google-site-kit"),onClick:()=>t(!0)}})})}},97345:(e,t,i)=>{i.d(t,{$8:()=>r,$Q:()=>p,BT:()=>R,CQ:()=>N,D1:()=>Z,DF:()=>Y,GM:()=>A,GT:()=>b,GU:()=>q,HA:()=>P,HD:()=>u,HP:()=>E,J5:()=>B,JF:()=>I,JK:()=>f,Ml:()=>m,SS:()=>D,UF:()=>g,UY:()=>G,Vl:()=>O,W6:()=>F,Xq:()=>w,YQ:()=>C,Yw:()=>U,dV:()=>M,dX:()=>S,ej:()=>c,em:()=>n,ep:()=>x,fu:()=>y,gC:()=>_,hz:()=>h,jx:()=>d,lV:()=>l,nH:()=>z,oR:()=>s,od:()=>a,p3:()=>k,pG:()=>j,qv:()=>o,qy:()=>T,t1:()=>V,t7:()=>H,tB:()=>v,tK:()=>W,u_:()=>L});const s="core/user",o="connected_url_mismatch",n="__global",r="temporary_persist_permission_error",a="adblocker_active",l=["weekly","monthly","quarterly"],c="googlesitekit_authenticate",g="googlesitekit_setup",d="googlesitekit_view_dashboard",u="googlesitekit_manage_options",p="googlesitekit_read_shared_module_data",h="googlesitekit_manage_module_sharing_options",m="googlesitekit_delegate_module_sharing_management",f="googlesitekit_update_plugins",k="kmAnalyticsAdSenseTopEarningContent",b="kmAnalyticsEngagedTrafficSource",_="kmAnalyticsLeastEngagingPages",y="kmAnalyticsNewVisitors",v="kmAnalyticsPopularAuthors",x="kmAnalyticsPopularContent",j="kmAnalyticsPopularProducts",S="kmAnalyticsReturningVisitors",A="kmAnalyticsTopCities",N="kmAnalyticsTopCitiesDrivingLeads",w="kmAnalyticsTopCitiesDrivingAddToCart",I="kmAnalyticsTopCitiesDrivingPurchases",C="kmAnalyticsTopDeviceDrivingPurchases",T="kmAnalyticsTopConvertingTrafficSource",M="kmAnalyticsTopCountries",E="kmAnalyticsTopPagesDrivingLeads",R="kmAnalyticsTopRecentTrendingPages",D="kmAnalyticsTopTrafficSource",O="kmAnalyticsTopTrafficSourceDrivingAddToCart",L="kmAnalyticsTopTrafficSourceDrivingLeads",P="kmAnalyticsTopTrafficSourceDrivingPurchases",z="kmAnalyticsPagesPerVisit",B="kmAnalyticsVisitLength",W="kmAnalyticsTopReturningVisitorPages",H="kmSearchConsolePopularKeywords",U="kmAnalyticsVisitsPerVisitor",G="kmAnalyticsMostEngagingPages",V="kmAnalyticsTopCategories",F=[k,b,_,y,v,x,j,S,V,A,N,w,I,C,T,M,R,D,O,z,B,W,U,G,V],Y=[...F,H],Z="welcome-modal-with-tour",q="welcome-modal-gathering-data"},97513:(e,t,i)=>{i.d(t,{Fo:()=>n,Lg:()=>r,Qb:()=>o,dv:()=>l,mp:()=>a});var s=i(24355);const o="xlarge",n="desktop",r="tablet",a="small";function l(){const e=(0,s.SO)();return e>1280?o:e>960?n:e>600?r:a}},97591:(e,t,i)=>{i.d(t,{A:()=>RecoverableModules});var s=i(62688),o=i.n(s),n=i(82871),r=i(50539),a=i(88273),l=i(12317),c=i(62540);function RecoverableModules({moduleSlugs:e}){const t=(0,r.useSelect)(t=>{const i=t(a.i).getModules();if(void 0!==i)return e.map(e=>i[e].name)});if(void 0===t)return null;const i=1===t.length?(0,n.sprintf)(/* translators: %s: Module name */ /* translators: %s: Module name */ (0,n.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),t[0]):(0,n.sprintf)(/* translators: %s: List of module names */ /* translators: %s: List of module names */ (0,n.__)("The data for the following modules was previously shared by an admin who no longer has access: %s. Please contact another admin to restore it.","google-site-kit"),t.join((0,n._x)(", ","Recoverable modules","google-site-kit")));return(0,c.jsx)(l.A,{title:(0,n.__)("Data Unavailable","google-site-kit"),description:i})}RecoverableModules.propTypes={moduleSlugs:o().arrayOf(o().string).isRequired}},99573:(e,t,i)=>{i.d(t,{A:()=>Tooltip});var s=i(62688),o=i.n(s),n=i(4452),r=i.n(n),a=i(90295),l=i(63696),c=i(62540);function Tooltip({children:e,popperClassName:t,tooltipClassName:i,onOpen:s,onClose:o,...n}){const g=(0,l.useRef)(!1),d=s?()=>{g.current||(g.current=!0,s?.())}:void 0,u=s?()=>{g.current=!1,o?.()}:o;return(0,c.jsx)(a.Ay,{classes:{popper:r()("googlesitekit-tooltip-popper",t),tooltip:r()("googlesitekit-tooltip",i)},onOpen:d,onClose:u,...n,arrow:!0,children:e})}Tooltip.propTypes={children:o().node,popperClassName:o().string,tooltipClassName:o().string,onOpen:o().func,onClose:o().func}},99578:(e,t,i)=>{i.d(t,{A:()=>CircularProgress});var s=i(75762),o=i(62540);function CircularProgress(e){return(0,o.jsx)(s.A,{...e})}}},e=>{e.O(0,[660],()=>{return t=38878,e(e.s=t);var t});e.O()}]);
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0.1 |
proxy
|
phpinfo
|
ÐаÑтройка