kollapsminoriteten/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-entity-dashbo...

50 lines
236 KiB
JavaScript
Raw Normal View History

2026-03-31 11:30:59 +02:00
"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:()=>k,nc:()=>j,rm:()=>v,to:()=>n,wo:()=>b,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",b="dashboardAllTrafficWidgetDimensionName",k="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(5856),d=i(62688),u=i.n(d),p=i(29785),h=i(88273),m=i(13606),f=i(70301),b=i(4124),k=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,b.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,{ch
(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 28 days","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 90 days","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(6373
(0,k.__)("%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,k.__)("Cancel","google-site-kit")}),(0,h.jsx)(_.SpinnerButton,{onClick:w,isSaving:n,disabled:M<s||M>o||n||!l&&p,children:g||y})]})]})})}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};const w=SelectionPanel},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,b=d;function k(e){return e}function _(...e){const t=b(...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||k)),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
(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,k]=(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(b.oR).hasCapability(b.Ml,e)),S=(0,r.useSelect)(t=>t(b.oR).hasCapability(b.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)(()=>{k(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;k(i),T(e,i)},[T,k,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(b.oR).getID(),s=t(u.i).getShareableModules(),o=[],n=[],r=[];for(e of Object.values(s))e.owner?.id===i?o.push(e):t(b.oR).hasCapability(b.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
(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}},17884:(e,t,i)=>{i.d(t,{A:()=>W});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),b=i(17243),k=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(k.i).getRecoverableModules()),u=(0,x.A)(),p=(0,l.useMemo)(()=>i&&g&&(0,b.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"
(0,s.__)("Your Google account does not have sufficient permissions to access %s data, so you wont 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 .
(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:W,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)(b.A,{})]}),(0,O.jsxs)("div",{className:"googlesitekit-page-content",children:[(0,O.jsx)(h.A,{id:k.OT,slug:p.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,className:r()({"googlesitekit-widget-context--last":U===k.OT})}),(0,O.jsx)(h.A,{id:k.en,slug:p.CONTEXT_ENTITY_DASHBOARD_CONTENT,className:r()({"googlesitekit-widget-context--last":U===k.en})}),(0,O.jsx)(h.A,{id:k.Ej,slug:p.CONTEXT_ENTITY_DASHBOARD_SPEED,className:r()({"googlesitekit-widget-context--last":U===k.Ej})}),(0,O.jsx)(h.A,{id:k.Gw,slug:p.CONTEXT_ENTITY_DASHBOARD_MONETIZATION,className:r()({"googlesitekit-widget-context--last":U===k.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?k.Is:k.f7,children:(0,O.jsx)(L,{})}),e)}})},40194:(e,t,i)=>{i.d(t,{G:()=>m});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 whats 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 whats 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}){if(!i){const i=[{target:".googlesitekit-widget--searchFunnelGA4",floaterProps:{target:".googlesitekit-widget--searchFunnelGA4 .googlesitekit-widget__body"},title:(0,u.__)("Track Search traffic trends, identify baselines","google-site-kit"),content:(0,u.__)("Know whats 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 whats 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 A
(0,c.__)("Source: %s","google-site-kit"),`<a>${e}</a>`),{a:m.createElement(g.A,{key:"link",href:t,external:s,onClick:b})}))}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),b=i(73198),k=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 wont 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,k.jsx)(r.Fragment,{children:v.map(e=>{const t=e?.data?.reconnectURL;return t?(0,k.jsx)(b.A,{error:e,message:e.message},e.message):(0,k.jsx)("p",{children:p.O.sanitize(e.message,{ALLOWED_TAGS:[]})},e.message)})});return(0,k.jsx)(h.A,{title:_,description:j,error:!0,children:(0,k.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}LoadingW
(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.175.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:()=>k,Jg:()=>d,N_:()=>y,O5:()=>_,Ql:()=>h,Qr:()=>m,XH:()=>b,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 b(e){o()(m(e),l);const[t,i,s]=e.split("-");return new Date(t,i-1,s)}function k(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:
(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:k,children:f}):(0,u.jsx)(g.SpinnerButton,{onClick:h,danger:k,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]})]})}):
(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:k}: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:b=!1,transparent:k=!1,..._}=this.props;return(0,d.jsxs)("div",{className:r()("googlesitekit-layout",p,{"googlesitekit-layout--fill":m,"googlesitekit-layout--relative":f,"googlesitekit-layout--rounded":b,"googlesitekit-layout--transparent":k}),..._,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:
(0,r.__)("We were unable to generate your report due to insufficient permissions in %s. To fix this, contact your administrator or get help. Report delivery will automatically resume once the issue is resolved.","google-site-kit"),t.name),onInView:c.view,ctaButton:s?{label:(0,r.__)("Request access","google-site-kit"),href:s,external:!0,hideExternalIndicator:!0,onClick:c.confirm}:null,dismissButton:n?{label:(0,r.__)("Get help","google-site-kit"),onClick:c.dismiss,href:n,external:!0}:null})}const f="email_reports_report_error_notice",b=(0,u.A)(c.A);function ReportErrorNotice({moduleSlug:e}){const t=(0,l.WM)(t=>t(a.i).getModule(e)),i=(0,d.A)(f),s=(0,l.WM)(t=>t(o.O4).getModuleSettingsURL(e)),n=(0,l.WM)(e=>e(o.O4).getDocumentationLinkURL("email-reporting"));return(0,p.jsx)(b,{className:"googlesitekit-email-reporting__admin-settings-notice",type:g.Q.ERROR,title:(0,r.__)("Email reports are failing to send","google-site-kit"),description:(0,r.sprintf)(/* translators: %1$s: module name */ /* translators: %1$s: module name */
(0,r.__)("We were unable to generate your report because data loading failed for %1$s. To fix this, go to %1$s settings in Site Kit or get help. Report delivery will automatically resume once the issue is resolved.","google-site-kit"),t.name),onInView:i.view,ctaButton:s?{label:(0,r.__)("Go to settings","google-site-kit"),href:s,onClick:i.confirm}:null,dismissButton:{label:(0,r.__)("Get help","google-site-kit"),onClick:i.dismiss,href:n,external:!0}})}const k="email_reports_sending_error_notice",_=(0,u.A)(c.A);function SendingErrorNotice(){const e=(0,d.A)(k);return(0,p.jsx)(_,{className:"googlesitekit-email-reporting__admin-settings-notice",type:g.Q.ERROR,title:(0,r.__)("Email reports are failing to send","google-site-kit"),description:(0,r.__)("We were unable to deliver your report, likely due to your WordPress email configuration. To fix this, go to your WordPress sites system settings or contact your host. Report delivery will automatically resume once the issue is resolved. ","google-site-kit"),onInView:e.view})}const y="email_reports_server_error_notice",v=(0,u.A)(c.A);function ServerErrorNotice(){const e=(0,d.A)(y);return(0,p.jsx)(v,{className:"googlesitekit-email-reporting__admin-settings-notice",type:g.Q.ERROR,title:(0,r.__)("Email reports are failing to send","google-site-kit"),description:(0,r.__)("We were unable to deliver your report. Report delivery will automatically resume once the issue is resolved.","google-site-kit"),onInView:e.view})}function EmailReportingErrorNotices(){const e=(0,n.A)(),t=(0,s.useSelect)(e=>e(o.O4).isEmailReportingEnabled()),i=(0,s.useSelect)(e=>e(o.O4).getEmailReportingErrors()),r=(0,s.useSelect)(e=>e(o.O4).getLatestEmailReportingError());if(!t||e||0===i?.length||void 0===r)return null;switch(r?.category_id){case"permissions_error":return(0,p.jsx)(PermissionsErrorNotice,{moduleSlug:r.module_slug});case"report_error":return(0,p.jsx)(ReportErrorNotice,{moduleSlug:r.module_slug});case"sending_error":return(0,p.jsx)(SendingErrorNotice,{});default:return(0,p.jsx)(ServerErrorNotice,{})}}},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(
(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:b,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||(
(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()}]);