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

44 lines
211 KiB
JavaScript
Raw Permalink Normal View History

2026-03-31 11:30:59 +02:00
(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[168],{80:(e,t,a)=>{"use strict";a.d(t,{CV:()=>x,Cu:()=>b,K9:()=>i,Kr:()=>y,Lf:()=>g,Oh:()=>s,PW:()=>S,Rx:()=>D,S9:()=>h,TQ:()=>u,Vt:()=>j,Wl:()=>I,ZC:()=>o,ZY:()=>r,_p:()=>Z,ag:()=>p,aj:()=>m,bz:()=>_,dq:()=>C,f2:()=>c,fB:()=>v,fV:()=>M,iB:()=>d,kc:()=>l,mo:()=>T,nc:()=>k,rm:()=>A,to:()=>n,wo:()=>f,yn:()=>N});const i="modules/analytics-4",o="account_create",n="property_create",s="webdatastream_create",r="analyticsSetup",l=10,c=0,d="https://www.googleapis.com/auth/tagmanager.readonly",u="enhanced-measurement-form",m="enhanced-measurement-enabled",g="enhanced-measurement-should-dismiss-activation-banner",p="analyticsAccountCreate",y="analyticsCustomDimensionsCreate",h="https://www.googleapis.com/auth/analytics.edit",f="dashboardAllTrafficWidgetDimensionName",T="dashboardAllTrafficWidgetDimensionColor",N="dashboardAllTrafficWidgetDimensionValue",I="dashboardAllTrafficWidgetActiveRowIndex",A="dashboardAllTrafficWidgetLoaded",b={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"}},k={ADD_TO_CART:"add_to_cart",PURCHASE:"purchase",SUBMIT_LEAD_FORM:"submit_lead_form",GENERATE_LEAD:"generate_lead",CONTACT:"contact"},M=[k.CONTACT,k.GENERATE_LEAD,k.SUBMIT_LEAD_FORM],v={"new-visitors":{description:"People who visited the site for the first time",displayName:"New visitors",membershipDurationDays:-1,filterClauses:[{clauseType:"INCLUDE",simpleFilter:{scope:"AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS",filterExpression:{andGroup:{filterExpressions:[{orGroup:{filterExpressions:[{dimensionOrMetricFilter:{fieldName:"newVsReturning",stringFilter:{matchType:"EXACT",value:"new"}}}]}},{orGroup:{filterExpressions:[{notExpression:{dimensionOrMetricFilter:{fieldName:"groupId",stringFilter:{matchType:"EXACT",value:"created_by_googlesitekit:new_visitors"}}}}]}}]}}}}]},"returning-visitors":{description:"People who have visited your site at least once before",displayName:"Returning visitors",membershipDurationDays:-1,filterClauses:[{clauseType:"INCLUDE",simpleFilter:{scope:"AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS",filterExpression:{andGroup:{filterExpressions:[{orGroup:{filterExpressions:[{dimensionOrMetricFilter:{fieldName:"newVsReturning",stringFilter:{matchType:"EXACT",value:"returning"}}}]}},{orGroup:{filterExpressions:[{notExpression:{dimensionOrMetricFilter:{fieldName:"groupId",stringFilter:{matchType:"EXACT",value:"created_by_googlesitekit:returning_visitors"}}}}]}}]}}}}]}},S="audiencePermissionsSetup",x="audienceTileCustomDimensionCreate",_="audience-selection-panel-expirable-new-badge-",C="audience",j="customDimension",Z="property",D=[C,j,Z]},1641:(e,t,a)=>{"use strict";a.d(t,{A:()=>ReportErrorActions});var i=a(62688),o=a.n(i),n=a(63696),s=a(13606),r=a(82871),l=a(50539),c=a(49383),d=a(29785),u=a(88273),m=a(13137),g=a(4124),p=a(38432),y=a(62540);function ReportErrorActions(e){const{moduleSlug:t,error:a,GetHelpLink:i,hideGetHelpLink:o,buttonVariant:h,onRetry:f,onRequestAccess:T,getHelpClassName:N,RequestAccessButton:I,RetryButton:A}=e,b=(0,g.A)(),k=(0,l.useSelect)(e=>e(u.i).getModuleStoreName(t)),M=(0,l.useSelect)(e=>"function"==typeof e(k)?.getServiceEntityAccessURL?e(k).getServiceEntityAccessURL():null),v=Array.isArray(a)?a:[a],S=(0,l.useSelect)(e=>v.map(t=>{const a=e(k)?.getSelectorDataForError(t);return{...t,selectorData:a}})),x=S?.filter(e=>(0,m.vl)(e,e.selectorDat
(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}},16312:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(17243);function o(e,t){return(0,i.sumBy)(e,t)||0}},19793:(e,t,a)=>{"use strict";a.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var i,o=a(63696);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}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),i||(i=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,a)=>{"use strict";a.d(t,{Ay:()=>s,Kq:()=>n});const i=(0,a(63696).createContext)(""),{Consumer:o,Provider:n}=i,s=i},20697:(e,t,a)=>{"use strict";a.d(t,{Ax:()=>n,CZ:()=>d,Ej:()=>k,Gw:()=>M,Is:()=>s,KK:()=>m,Nn:()=>S,OT:()=>A,SH:()=>I,Y$:()=>g,ZS:()=>r,bg:()=>h,en:()=>b,ep:()=>y,f7:()=>o,hi:()=>p,jU:()=>i,k$:()=>T,kz:()=>v,ly:()=>l,mo:()=>f,s3:()=>N,uR:()=>c,zx:()=>u});const i="mainDashboard",o="entityDashboard",n="mainDashboardViewOnly",s="entityDashboardViewOnly",r="userInput",l="activation",c="splash",d="adminBar",u="adminBarViewOnly",m="settings",g="adBlockingRecovery",p="wpDashboard",y="wpDashboardViewOnly",h="moduleSetup",f="metricSelection",T="wpBlockEditor",N="keyMetricsSetup",I="key-metrics",A="traffic",b="content",k="speed",M="monetization",v=[i,o,n,s,r,c,m,h,f],S=[n,s,u,y]},20762:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>s});var i=a(52735);const{Consumer:o,Provider:n}=i.A,s=n},21213:(e,t,a)=>{"use strict";a.d(t,{c1:()=>N,V8:()=>b,WP:()=>A});var i=a(50532),o=a.n(i),n=a(73963),s=a(62688),r=a.n(s),l=a(63696),c=a(96820),d=a(15118),u=a(62540);function WidgetReportZero({widgetSlug:e,moduleSlug:t,...a}){const i=(0,l.useMemo)(()=>({moduleSlug:t}),[t]);return(0,c.A)(e,d.A,i),(0,u.jsx)(d.A,{moduleSlug:t,...a})}WidgetReportZero.propTypes={widgetSlug:r().string.isRequired,...d.A.propTypes};var m=a(44192);function WidgetReportError({widgetSlug:e,...t}){return(0,u.jsx)(m.A,{...t})}WidgetReportError.propTypes={widgetSlug:r().string.isRequired,...m.A.propTypes};var g=a(79754),p=a(79266),y=a(17064),h=a(52684),f=a(50539),T=a(7972);function WPDashboardReportError({moduleSlug:e,error:t}){const a=(0,h.A)(WPDashboardReportError,"WPDashboardReportError"),{setValue:i}=(0,f.useDispatch)(T.n),o=t.message,n=(0,f.useSelect)(t=>t(T.n).getValue(`WPDashboardReportError-${e}-${o}`));return(0,y.A)(()=>{i(`WPDashboardReportError-${e}-${o}`,a)},()=>{i(`WPDashboardReportError-${e}-${o}`,void 0)}),n!==a?null:(0,u.jsx)(m.A,{moduleSlug:e,error:t})}WPDashboardReportError.propTypes={moduleSlug:r().string.isRequired,error:r().object.isRequired};const N=o()(e=>({widgetSlug:e,Widget:I(e)(n.A),WidgetRecoverableModules:I(e)(p.A),WidgetReportZero:I(e)(WidgetReportZero),WidgetReportError:I(e)(WidgetReportError),WidgetNull:I(e)(g.A)}));function I(e){return t=>{const a=(0,l.forwardRef)((a,i)=>(0,u.jsx)(t,{...a,ref:i,widgetSlug:e}));return a.displayName="WithWidgetSlug",(t.displayName||t.name)&&(a.displayName+=`(${t.displayName||t.name})`),a}}function A(e){const t=N(e);return e=>{function DecoratedComponent(a){return(0,u.jsx)(e,{...a,...t})}return DecoratedComponent.displayName="WithWidgetComponentProps",(e.displayName||e.name)&&(DecoratedComponent.displayName+=`(${e.displayName||e.name})`),DecoratedComponent}}function b(e){return t=>{function DecoratedComponent(a){return(0,u.jsx)(t,{...a,WPDashboardReportError:I(e)(WPDashboardReportError)})}return DecoratedComponent.displayName="WithWPDashboardWidgetComponentProps",(t.displayName||t.name)&&(DecoratedComponent.displayName+=`(${t.displayName||t.name})`),Decorate
(0,i.__)("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"),s)),r&&r.login&&(c=(0,i.sprintf)(/* translators: %s: owner name */ /* translators: %s: owner name */
(0,i.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),r.login)),c||(c=(0,i.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),`${l} ${c}`}},32803:(e,t,a)=>{"use strict";a.d(t,{Y:()=>i});const i="search-console"},33052:(e,t,a)=>{"use strict";a.d(t,{A:()=>Typography});var i=a(62688),o=a.n(i),n=a(4452),s=a.n(n),r=a(8513),l=a(62540);function Typography({className:e,type:t,size:a,as:i="span",children:o,...n}){return(0,l.jsx)(i,{className:s()("googlesitekit-typography",e,{[`googlesitekit-typography--${t}`]:t&&r.tT.includes(t),[`googlesitekit-typography--${a}`]:a&&r.oJ.includes(a)}),...n,children:o})}Typography.propTypes={className:o().string,type:o().oneOf(r.tT),size:o().oneOf(r.oJ),as:o().oneOfType([o().string,o().elementType])}},33340:(e,t,a)=>{"use strict";a.d(t,{A:()=>DetailsPermaLinks});var i=a(4452),o=a.n(i),n=a(62688),s=a.n(n),r=a(63696),l=a(50539),c=a(29785),d=a(38432),u=a(13047),m=a(62540);function DetailsPermaLinks({title:e,path:t,serviceURL:a}){const i=(0,l.useSelect)(e=>e(c.O4).getReferenceSiteURL()),n=(0,u.VZ)(i,t),s=(0,l.useSelect)(e=>e(c.O4).getAdminURL("googlesitekit-dashboard",{permaLink:n}));return(0,m.jsxs)(r.Fragment,{children:[(0,m.jsx)(d.A,{className:"googlesitekit-font-weight-medium",href:a||s,external:!!a,hideExternalIndicator:!0,children:e}),(0,m.jsx)(d.A,{className:o()("googlesitekit-display-block","googlesitekit-overflow-wrap-break-word"),href:n,target:"_blank",small:!0,children:t})]})}DetailsPermaLinks.propTypes={title:s().string,path:s().string,serviceURL:s().string}},35410:(e,t,a)=>{"use strict";a.d(t,{A:()=>SetupPluginConversionTrackingNotice});var i=a(4452),o=a.n(i),n=a(50539),s=a(29785),r=a(62540);function SetupPluginConversionTrackingNotice({className:e,message:t}){const a=(0,n.useSelect)(e=>e(s.O4).isConversionTrackingEnabled());return a||void 0===a?null:(0,r.jsx)("p",{className:o()(e,"googlesitekit-color--surfaces-on-background-variant googlesitekit-plugin-conversion-tracking-notice"),children:t})}},37316:(e,t,a)=>{"use strict";a.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var i,o=a(63696);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}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 48 53"},e),i||(i=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#F9AB00",d:"M48 46.376a6.63 6.63 0 0 1-2.18 4.952 6.47 6.47 0 0 1-5.11 1.625c-3.339-.495-5.789-3.433-5.708-6.848V6.891C34.925 3.475 37.379.537 40.72.045a6.47 6.47 0 0 1 5.102 1.631A6.63 6.63 0 0 1 48 6.622z"}),o.createElement("path",{fill:"#E37400",fillRule:"nonzero",d:"M6.5 40.002a6.5 6.5 0 0 1 4.594 1.901 6.5 6.5 0 0 1 1.906 4.6 6.5 6.5 0 0 1-1.906 4.596A6.5 6.5 0 0 1 6.5 53a6.5 6.5 0 0 1-4.594-1.9A6.5 6.5 0 0 1 0 46.501a6.5 6.5 0 0 1 1.905-4.6A6.5 6.5 0 0 1 6.5 40zM24.348 20.002c-3.62.197-6.429 3.256-6.346 6.908v17.644c0 4.79 2.092 7.696 5.16 8.314a6.5 6.5 0 0 0 5.442-1.358A6.61 6.61 0 0 0 31 46.4V26.605a6.62 6.62 0 0 0-1.912-4.668A6.52 6.52 0 0 0 24.459 20z"}))))},38017:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var i=a(62688),o=a.n(i),n=a(4452),s=a.n(n),r=a(62540);function ChangeArrow({direction:e,invertColor:t,width:a,height:i}){return(0,r.jsx)("svg",{className:s()("googlesitekit-change-arrow",`googlesitekit-change-arrow--${e}`,{"googlesitekit-change-arrow--inverted-color":t}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.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,
(0,c.__)("Source: %s","google-site-kit"),`<a>${e}</a>`),{a:y.createElement(d.A,{key:"link",href:t,external:i,onClick:f})}))}SourceLink.propTypes={name:o().string,href:o().string,className:o().string,external:o().bool};const h=SourceLink},44161:(e,t,a)=>{"use strict";a.d(t,{A:()=>GoogleChart});a(39368);var i=a(4452),o=a.n(i),n=a(32091),s=a.n(n),r=a(62688),l=a.n(r),c=a(89054),d=a(15844),u=a(52684),m=a(63696),g=a(4751),p=a(97345),y=a(13113),h=a(50539),f=a(38021),T=a.n(f),N=a(82871),I=a(12317),A=a(6730),b=a(19826),k=a(13047),M=a(83880),v=a(62540);class GoogleChartErrorHandler extends m.Component{constructor(e){super(e),this.state={error:null,info:null},this.onErrorClick=this.onErrorClick.bind(this)}componentDidCatch(e,t){a.g.console.error("Google Charts error:",e,t),this.setState({error:e,info:t}),(0,k.sx)("google_chart_error",`handle_${this.context||"unknown"}_error`,`${e?.message}\n${t?.componentStack}`.slice(0,500))}onErrorClick(){const{error:e,info:t}=this.state;T()(`\`${e?.message}\n${t?.componentStack}\``)}render(){const{children:e}=this.props,{error:t,info:a}=this.state;return t?(0,v.jsx)("div",{className:"googlesitekit-googlechart-error-handler",children:(0,v.jsx)(I.A,{description:(0,v.jsxs)(m.Fragment,{children:[(0,v.jsx)(M.A,{children:(0,N.__)("An error prevented this Google chart 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,v.jsx)(A.A,{message:t.message,componentStack:a.componentStack})]}),onErrorClick:this.onErrorClick,onClick:this.onErrorClick,title:(0,N.__)("Error in Google Chart","google-site-kit"),error:!0})}):e}}GoogleChartErrorHandler.contextType=b.Ay,GoogleChartErrorHandler.propTypes={children:l().node.isRequired};const S=GoogleChartErrorHandler;var x=a(12417),_=a(51135),C=a(49383),j=a(62659),Z=a(7076);function DateMarker({id:e,text:t}){const a=`${(0,j.A)()}_ga4-data-collection-line`;(0,m.useEffect)(()=>{(0,k.sx)(a,"chart_line_view")},[a]);const i=(0,m.useCallback)(()=>{(0,k.sx)(a,"chart_tooltip_view")},[a]),o=(0,Z.d)(i,5e3,{leading:!0,trailing:!1});return(0,v.jsxs)(m.Fragment,{children:[(0,v.jsx)("div",{id:`googlesitekit-chart__date-marker-line--${e}`,className:"googlesitekit-chart__date-marker-line"}),t&&(0,v.jsx)("div",{id:`googlesitekit-chart__date-marker-tooltip--${e}`,className:"googlesitekit-chart__date-marker-tooltip",children:(0,v.jsx)(C.Tooltip,{title:t,onOpen:o,children:(0,v.jsx)("span",{children:(0,v.jsx)(x.A,{fill:"currentColor",icon:_.A,size:18})})})})]})}var D=a(7972),w=a(86582),E=a(28975),G=a(97513);function GoogleChart(e){const{chartEvents:t,chartType:i,children:n,className:r,data:l,dateMarkers:f,getChartWrapper:T,height:N,loaded:I,loadingHeight:A,loadingWidth:b,onMouseOver:M,onMouseOut:x,onReady:_,onSelect:C,selectedStats:Z,width:L,options:R,gatheringData:P,...O}=e,z=(0,u.A)(GoogleChart),B=(0,G.dv)(),{startDate:U,endDate:W}=(0,h.useSelect)(e=>e(p.oR).getDateRangeDates({offsetDays:0})),V=(0,j.A)(),H=(0,h.useSelect)(e=>e(D.n).getValue("googleChartsCollisionError")),[F,q]=(0,m.useState)(!1),{setValue:Y}=(0,h.useDispatch)(D.n),K=(0,E.gZ)(l,Z),$="PieChart"===i?"circular":"square",Q=(0,E._8)(A,N,b,L),J=(0,v.jsx)("div",{className:"googlesitekit-chart-loading",children:(0,v.jsx)(g.A,{className:"googlesitekit-chart-loading__wrapper",shape:$,...Q})}),X=(0,m.useRef)(),ee=(0,m.useRef)();(0,d.A)(()=>{void 0===H&&((0,w.A)(V)&&a.g?.google?.charts&&(a.g.google.charts=void 0),!(0,w.A)(V)&&a.g?.google?.charts?Y("googleChartsCollisionError",!0):Y("googleChartsCollisionError",!1))}),(0,m.useEffect)(()=>()=>{if(ee.current&&X.current){const{events:e}=ee.current.visualization;e.removeAllListeners(X.current.getChart()),e.removeAllListeners(X.current)}},[]),(0,m.useLayoutEffect)(()=>{M&&ee.current?.visualization.events.addListener(X.current.getChart(),"onmouseover",e=>{M(e,{chartWrapper:X.current,google:ee.current})}),x&&ee.current?.visualization.events.addListener(X.current.getChart(),"onmouseout",e=>{x(e,{chartWrapper:X.current,google:ee.current})})},[M,x]);const te=f.filter(e=>{return!!((t=new Date(e.date))&&U&&
(0,r.__)("Access lost to %s","google-site-kit"),i?.name),(0,r.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,r.__)("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"),i?.name)):(N=(0,r.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,r.__)("Insufficient permissions in %s","google-site-kit"),i?.name),(0,m.c)(e.message,i)):(0,u.e4)(e)}const A=(0,n.uniqWith)(o.map(e=>({...e,message:I(e),reconnectURL:e.data?.reconnectURL?(0,l.m)(e.data.reconnectURL,"code"):void 0})),(e,t)=>e.message===t.message&&e.reconnectURL===t.reconnectURL),b=o.some(e=>(0,u.SG)(e));b||1!==A.length?!b&&A.length>1&&(N=(0,r.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,r.__)("Data errors in %s","google-site-kit"),i?.name)):N=(0,r.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,r.__)("Data error in %s","google-site-kit"),i?.name);const k=(0,T.jsx)(s.Fragment,{children:A.map(e=>{const t=e?.data?.reconnectURL;return t?(0,T.jsx)(f.A,{error:e,message:e.message},e.message):(0,T.jsx)("p",{children:g.O.sanitize(e.message,{ALLOWED_TAGS:[]})},e.message)})});return(0,T.jsx)(p.A,{title:N,description:k,error:!0,children:(0,T.jsx)(y.A,{moduleSlug:e,error:t})})}ReportError.propTypes={moduleSlug:o().string.isRequired,error:o().oneOfType([o().arrayOf(o().object),o().object]).isRequired}},48276:(e,t,a)=>{"use strict";a.d(t,{VZ:()=>n,dc:()=>s,pH:()=>o,r0:()=>r});var i=a(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 s(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function r(e,t){if(!(0,i.m)(e))return e;if(e.length<=t)return e;const a=new URL(e),o=e.replace(a.origin,"");if(o.length<t)return o;const n=o.length-Math.floor(t)+1;return"…"+o.substr(n)}},49383:e=>{"use strict";e.exports=googlesitekit.components},49481:(e,t,a)=>{"use strict";a.d(t,{f:()=>o,n:()=>i});const i="modules/search-console",o=0},49746:(e,t,a)=>{"use strict";a.d(t,{Eo:()=>u,JK:()=>y,K5:()=>p,jq:()=>g,mK:()=>d});var i=a(17243),o=a(50532),n=a.n(o),s=a(82871);function r(e,t={}){const{formatUnit:a,formatDecimal:i}=function(e,t={}){const{hours:a,minutes:i,seconds:o}=l(e);return{hours:a,minutes:i,seconds:o,formatUnit(){const{unitDisplay:n="short",...r}=t,l={unitDisplay:n,...r,style:"unit"};return 0===e?g(o,{...l,unit:"second"}):(0,s.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,s._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?g(o,{...l,unit:"second"}):"",i?g(i,{...l,unit:"minute"}):"",a?g(a,{...l,unit:"hour"}):"").trim()},formatDecimal(){const t=(0,s.sprintf)(
// translators: %s: number of seconds with "s" as the abbreviated unit.
// translators: %s: number of seconds with "s" as the abbreviated unit.
(0,s.__)("%ds","google-site-kit"),o);if(0===e)return t;const n=(0,s.sprintf)(
// translators: %s: number of minutes with "m" as the abbreviated unit.
// translators: %s: number of minutes with "m" as the abbreviated unit.
(0,s.__)("%dm","google-site-kit"),i),r=(0,s.sprintf)(
// translators: %s: number of hours with "h" as the abbreviated unit.
// translators: %s: number of hours with "h" as the abbreviated unit.
(0,s.__)("%dh","google-site-kit"),a);return(0,s.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,s._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?t:"",i?n:"",a?r:"").trim()}}}(e,t);try{return a()}catch{return i()}}function l(e){e=parseInt(e,10),Number.isNaN(e)&&(e=0);return{hours:Math.floor(e/60/60),minutes:Math.floor(e/60%60),seconds:Math.floor(e%60)}}function c(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e}function d(e){let t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:(0,i.isPlainObject)(e)&&(t={...e}),t}function u(e,t={}){e=(0,i.isFinite)(e)?e:Number(e),(0,i.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const a=d(t),{style:o="metric"}=a;return"metric"===o?function(e){const t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?(0,s.sprintf)(
// translators: %s: an abbreviated number in millions.
// translators: %s: an abbreviated number in millions.
(0,s.__)("%sM","google-site-kit"),g(c(e),e%10==0?{}:t)):1e4<=e?(0,s.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,s.__)("%sK","google-site-kit"),g(c(e))):1e3<=e?(0,s.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,s.__)("%sK","google-site-kit"),g(c(e),e%10==0?{}:t)):g(e,{signDisplay:"never",maximumFractionDigits:1})}(e):"duration"===o?r(e,a):"durationISO"===o?function(e){let{hours:t,minutes:a,seconds:i}=l(e);return i=("0"+i).slice(-2),a=("0"+a).slice(-2),t=("0"+t).slice(-2),"00"===t?`${a}:${i}`:`${t}:${a}:${i}`}(e):g(e,a)}const m=n()(console.warn);function g(e,t={}){const{locale:a=y(),...i}=t;try{return new Intl.NumberFormat(a,i).format(e)}catch(t){m(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(a)}, ${JSON.stringify(i)} ).format( ${typeof e} )`,t.message)}const o={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},n=["signDisplay","compactDisplay"],s={};for(const[e,t]of Object.entries(i))o[e]&&t===o[e]||n.includes(e)||(s[e]=t);try{return new Intl.NumberFormat(a,s).format(e)}catch{return new Intl.NumberFormat(a).format(e)}}function p(e,t={}){const{locale:a=y(),style:i="long",type:o="conjunction"}=t;if(Intl.ListFormat){return new Intl.ListFormat(a,{style:i,type:o}).format(e)}
/* translators: used between list items, there is a space after the comma. */const n=(0,s.__)(", ","google-site-kit");return e.join(n)}function y(e=a.g){const t=(0,i.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,a)=>{"use strict";a.d(t,{Gq:()=>u,IL:()=>y,LD:()=>g,SO:()=>m,a2:()=>o,xD:()=>p});var i=a(13047);const o="googlesitekit_",n=`${o}1.175.0_${a.g._googlesitekitBaseData.storagePrefix}_`,s=["sessionStorage","localStorage"];let r,l=[...s];async function c(e){const t=a.g[e];if(!t)return!1;try{const e="__storage_test__";return t.setItem(e,e),t.removeItem(e),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==t.length}}async function d(){if(void 0!==r)return r;for(const e of l)r||await c(e)&&(r=a.g[e]);return void 0===r&&(r=null),r}async function u(e){const t=await d();if(t){const a=t.getItem(`${n}${e}`);if(a){const e=JSON.parse(a),{timestamp:t,ttl:i,value:o,isError:n}=e;if(t&&(!i||Math.round(Date.now()/1e3)-t<i))return{cacheHit:!0,value:o,isError:n}}}return{cacheHit:!1,value:void 0}}async function m(e,t,{ttl:o=i.Jg,timestamp:s=Math.round(Date.now()/1e3),isError:r=!1}={}){const l=await d();if(l)try{return l.setItem(`${n}${e}`,JSON.stringify({timestamp:s,ttl:o,value:t,isError:r})),!0}catch(e){return a.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function g(e){const t=await d();if(t)try{const a=e.startsWith(o)?e:`${n}${e}`;return t.removeItem(a),!0}catch(e){return a.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function p(){const e=await d();if(e)try{const t=[];for(let a=0;a<e.length;a++){const i=e.key(a);0===i.indexOf(o)&&t.push(i)}return t}catch(e){return a.g.console.warn("Encountered an unexpected storage error:",e),[]}return[]}async function y(){if(await d()){const e=await p();for(const t of e)await g(t);return!0}return!1}},50231:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var i=a(62688),o=a.n(i),n=a(17243),s=a(4452),r=a.n(s),l=a(31589),c=a(63696),d=a(62540);function TableOverflowContainer({children:e}){const[t,a]=(0,c.useState)(!1),i=(0,c.useRef)(),o=(0,n.debounce)(s,100);function s(){if(!i.current)return;const{scrollLeft:e,scrollWidth:t,offsetWidth:o}=i.current,n=t-o;a(e<n-16&&0<n-16)}return(0,l.A)("resize",o),(0,c.useEffect)(()=>{s()},[]),(0,d.jsx)("div",{onScroll:(0,n.debounce)(s,100),className:r()("googlesitekit-table-overflow",{"googlesitekit-table-overflow--gradient":t}),children:(0,d.jsx)("div",{ref:i,className:"googlesitekit-table-overflow__container",children:e})})}TableOverflowContainer.propTypes={children:o().element};const u=TableOverflowContainer},50304:(e,t,a)=>{"use strict";a.d(t,{A:()=>IconWrapper});var i=a(62688),o=a.n(i),n=a(62540);function IconWrapper({children:e,marginLeft:t,marginRight:a}){return(0,n.jsx)("span",{className:"googlesitekit-icon-wrapper",style:{marginLeft:t,marginRight:a},children:e})}IconWrapper.propTypes={children:o().node.isRequired,marginLeft:o().number,marginRight:o().number}},50477:(e,t,a)=>{"use strict";a.d(t,{C:()=>n,p:()=>o});var i=a(55465);function o(e,t={}){return{__html:i.O.sanitize(e,t)}}function n(e){const t="object"==typeof e?e.toString():e;return t?.replace?.(/\/+$/,"")}},50539:e=>{"use strict";e.exports=googlesitekit.data},51193:(e,t,a)=>{"use strict";a.d(t,{Du:()=>g,GH:()=>l,Gp:()=>c,IS:()=>T,Jg:()=>u,N_:()=>I,O5:()=>N,Ql:()=>p,Qr:()=>y,XH:()=>f,r0:()=>d,sq:()=>h,tt:()=>m});var i=a(32091),o=a.n(i),n=a(17243),s=a(82871);const r="Date param must construct to a valid date instance or be a valid date instance itself.",l="Invalid dateString parameter, it must be a string.",c='Invalid date range, it must be a string with the format "last-x-days".',d=60,u=60*d,m=24*u,g=7*m;function p(){function e(e){return(0,s.sprintf)(/* translators: %s: number of days */ /* translators: %s: number of days */
(0,s._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 y(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 h(e){o()((0,n.isDate)(e)&&!isNaN(e),r);const t=`${e.getMonth()+1}`,a=`${e.getDate()}`;return[e.getFullYear(),t.length<2?`0${t}`:t,a.length<2?`0${a}`:a].join("-")}function f(e){o()(y(e),l);const[t,a,i]=e.split("-");return new Date(t,a-1,i)}function T(e,t){return h(I(e,t*m))}function N(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 I(e,t){o()(y(e)||(0,n.isDate)(e)&&!isNaN(e),l);const a=y(e)?Date.parse(e):e.getTime();return new Date(a-1e3*t)}},51858:(e,t,a)=>{"use strict";a.d(t,{cN:()=>l,yD:()=>d});var i=a(32091),o=a.n(i),n=a(84024),s=a(30511),r=a(80);function l({siteName:e,siteURL:t,timezone:a},i=Intl.DateTimeFormat().resolvedOptions().timeZone){o()((0,n.m)(t),"A valid siteURL is required.");const{hostname:l,pathname:c}=new URL(t);return{accountName:e||l,propertyName:`${l}${c}`.replace(/\/$/,""),dataStreamName:l,countryCode:s.hd[a]||s.hd[i],timezone:s.hd[a]?a:i,[r.aj]:!0}}function c(e){const t=e.account?.match(/accounts\/([^/]+)/),a=t?.[1];return{...e,_id:a}}function d(e){return Array.isArray(e)?e.map(e=>({...c(e),propertySummaries:(e.propertySummaries||[]).map(e=>function(e){const t=e.property?.match(/properties\/([^/]+)/),a=t?.[1],i=e.parent?.match(/accounts\/([^/]+)/),o=i?.[1];return{...e,_id:a,_accountID:o}}(e))})):e}},52735:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});const i=(0,a(63696).createContext)(!1)},52787:(e,t,a)=>{"use strict";var i=a(131),o=a(78325),n=a(63081),s=a(20697),r=a(63560),l=a(63696),c=a(82871),d=a(50539),u=a(38432),m=a(4452),g=a.n(m),p=a(88273),y=a(97345),h=a(32803),f=a(22942),T=a(21213),N=a(62688),I=a.n(N),A=a(49481),b=a(63505),k=a(4751),M=a(13113),v=a(13047),S=a(16312),x=a(11193),_=a(62540);function WPDashboardImpressions({WPDashboardReportError:e}){const t=(0,d.useInViewSelect)(e=>e(A.n).isGatheringData()),{compareStartDate:a,endDate:i}=(0,d.useSelect)(e=>e(y.oR).getDateRangeDates({compare:!0,offsetDays:A.f})),o=(0,d.useSelect)(e=>e(y.oR).getDateRangeNumberOfDays()),n={startDate:a,endDate:i,dimensions:"date",reportID:"dashboard_wp-dashboard-impressions_component_reportArgs"},s=(0,d.useInViewSelect)(e=>e(A.n).getReport(n),[n]),r=(0,d.useSelect)(e=>e(A.n).getErrorForSelector("getReport",[n]));if((0,d.useSelect)(e=>!e(A.n).hasFinishedResolution("getReport",[n]))||void 0===t)return(0,_.jsx)(k.A,{width:"48%",height:"92px"});if(r)return(0,_.jsx)(e,{moduleSlug:"search-console",error:r});const{compareRange:l,currentRange:u}=(0,x.D)(s,{dateRangeLength:o}),m=(0,S.A)(u,"impressions"),g=(0,S.A)(l,"impressions"),p=(0,v.Zf)(g,m),h={gatheringData:t,gatheringDataNoticeStyle:M.v.SMALL};return(0,_.jsx)(b.A,{className:"googlesitekit-wp-dashboard-stats__data-table overview-total-impressions",title:(0,c.__)("Total Impressions","google-site-kit"),datapoint:m,change:p,changeDataUnit:"%",...h})}WPDashboardImpressions.propTypes={WPDashboardReportError:I().elementType.isRequired};const C=WPDashboardImpressions;function WPDashboardClicks({WPDashboardReportError:e}){const t=(0,d.useInViewSelect)(e=>e(A.n).isGatheringData()),{compareStartDate:a,endDate:i}=(0,d.useSelect)(e=>e(y.oR).getDateRangeDates({compare:!0,offsetDays:A.f})),o=(0,d.useSelect)(e=>e(y.oR).getDateRangeNumberOfDays()),n={startDate:a,endDate:i,dimensions:"date",reportID:"dashboard_wp-dashboard-clicks_component_reportArgs"},s=(0,d.useInViewSelect)(e=>e(A.n).getReport(n),[n]),r=(0,d.useSelect)(e=>e(A.n).getErrorForSelector("getReport",[n]));if((0,d.useSelect)(e=>!e(A.n).hasFinishedResolution("getReport",[n]))||void 0===t)return(0,_.jsx)(k.A,{width:"48%",height:"92px"});if(r)return(0,_.jsx)(e,{moduleSlug:"search-console",error:r});const{compareR
(0,c._n)("Unique visitors over the last %s day","Unique visitors over the last %s days",u,"google-site-kit"),u)}),(0,_.jsx)(U.A,{chartType:"LineChart",data:f,loadingHeight:"270px",loadingWidth:"100%",loaded:!(p||void 0===a),options:N,gatheringData:a})]})}WPDashboardUniqueVisitorsChartGA4.propTypes={WPDashboardReportError:I().elementType.isRequired};var H,F,q,Y,K,$,Q,J,X,ee,te=a(6205);function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},ae.apply(null,arguments)}const ie=e=>l.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 117 70"},e),H||(H=l.createElement("path",{fill:"#C7C7C7",d:"m96.91 4.813 1.34-4.5h1.305L97.575 6h-.86zm-1.234-4.5 1.336 4.5L97.215 6h-.867L94.378.313zm5.527 1.46V6h-1.129V1.773zM100.004.672q0-.246.172-.406a.65.65 0 0 1 .461-.16q.285 0 .457.16a.53.53 0 0 1 .176.406q0 .247-.176.406a.64.64 0 0 1-.457.16.65.65 0 0 1-.461-.16.53.53 0 0 1-.172-.406m4.074 5.406q-.492 0-.883-.156a1.95 1.95 0 0 1-.664-.442 2 2 0 0 1-.414-.652 2.2 2.2 0 0 1-.144-.797v-.156q0-.48.136-.879.138-.399.391-.691.258-.293.625-.45.368-.16.828-.16.45 0 .797.149t.582.422q.239.272.359.656.121.378.121.844v.468h-3.359v-.75h2.254v-.086a1 1 0 0 0-.086-.418.67.67 0 0 0-.25-.296.77.77 0 0 0-.43-.11.7.7 0 0 0-.382.098.76.76 0 0 0-.262.273 1.5 1.5 0 0 0-.149.414 2.7 2.7 0 0 0-.046.516v.156q0 .255.07.469.074.215.207.371a.94.94 0 0 0 .328.242q.195.087.441.086.305 0 .567-.117a1.2 1.2 0 0 0 .457-.363l.547.593a1.7 1.7 0 0 1-.364.368 2 2 0 0 1-.546.289q-.32.11-.731.11m3.582-1.172.879-3.133h.715l-.231 1.23L108.145 6h-.598zm-.445-3.133.629 3.13.058 1.097h-.703l-1.07-4.227zm2.844 3.079.613-3.079h1.09L110.691 6h-.699zm-.707-3.079.875 3.11.121 1.117h-.602l-.879-2.992-.222-1.235zm5.261 3.059a.36.36 0 0 0-.07-.219.6.6 0 0 0-.262-.18 2.6 2.6 0 0 0-.543-.156 4 4 0 0 1-.597-.175 2 2 0 0 1-.477-.262 1.1 1.1 0 0 1-.312-.36 1 1 0 0 1-.114-.48q0-.266.114-.5.117-.234.332-.414.218-.184.531-.285.316-.106.711-.106.55 0 .945.176.399.176.609.484.216.305.215.696h-1.125a.6.6 0 0 0-.07-.293.47.47 0 0 0-.211-.207.75.75 0 0 0-.367-.078.7.7 0 0 0-.324.066.5.5 0 0 0-.211.172.41.41 0 0 0-.032.41q.044.075.137.137.094.061.242.117.153.05.375.094.457.093.817.246.359.148.57.406.211.255.211.668 0 .282-.125.516a1.24 1.24 0 0 1-.359.41 1.8 1.8 0 0 1-.563.27 2.6 2.6 0 0 1-.73.093q-.59 0-1-.21a1.6 1.6 0 0 1-.618-.536 1.25 1.25 0 0 1-.207-.672h1.067a.62.62 0 0 0 .117.371.65.65 0 0 0 .285.203q.176.063.379.063a1 1 0 0 0 .363-.059.5.5 0 0 0 .219-.164.4.4 0 0 0 .078-.242"})),F||(F=l.createElement("rect",{width:13.3,height:4.2,x:103,y:18.6,fill:"#C7C7C7",rx:2.1})),q||(q=l.createElement("rect",{width:9.1,height:4.2,x:107,y:33,fill:"#C7C7C7",rx:2.1})),Y||(Y=l.createElement("rect",{width:9.1,height:4.2,x:107,y:47,fill:"#C7C7C7",rx:2.1})),K||(K=l.createElement("rect",{width:5.6,height:4.2,x:110,y:61,fill:"#C7C7C7",rx:2.1})),$||($=l.createElement("path",{fill:"#C7C7C7",d:"M2.848 17.981v5.72h-.723v-4.817l-1.457.531v-.652l2.066-.782zm1.351 19.125v.594H.477v-.52l1.863-2.074q.344-.382.531-.648.192-.27.266-.48a1.3 1.3 0 0 0 .078-.438q0-.281-.117-.508a.9.9 0 0 0-.336-.367 1 1 0 0 0-.54-.137q-.378 0-.632.149a.9.9 0 0 0-.375.406 1.4 1.4 0 0 0-.125.602H.367q0-.48.211-.88.211-.398.625-.632.414-.238 1.02-.238.538 0 .922.191.382.187.585.531.207.34.208.797a1.6 1.6 0 0 1-.086.508q-.083.254-.23.508-.145.254-.34.5a8 8 0 0 1-.41.484l-1.524 1.652zM1.527 48.501h.516q.378 0 .625-.125a.86.86 0 0 0 .371-.348q.125-.222.125-.5 0-.328-.11-.55a.73.73 0 0 0-.327-.336 1.2 1.2 0 0 0-.555-.114q-.304 0-.54.121a.9.9 0 0 0-.362.336 1 1 0 0 0-.13.516H.419q0-.434.219-.79.219-.354.613-.566.399-.21.922-.21.516 0 .902.183.387.18.602.54.215.354.215.886 0 .215-.102.46a1.4 1.4 0 0 1-.309.454q-.207.21-.539.348a2.2 2.2 0 0 1-.796.133h-.618zm0 .594v-.434h.618q.543 0 .898.129.355.128.559.344.207.214.289.472.086.255.086.508 0 .4-.137.707-.133.309-.38.524a1.6 1.6 0 0 1-.57.324q-.327.11-.714.11-.371 0-.7-.106a1.8 1.8 0 0 1-.574-.305 1.4 1.4 0 0 1-.39-.496 1.6 1.6 0 0 1-.14-.67
(0,c.__)("<strong>Note:</strong> %s","google-site-kit"),e),{strong:(0,m.jsx)("strong",{})}),"function"==typeof e&&(0,m.jsx)(e,{})]},`note-${t}`))})]}),(0,m.jsxs)(d.DialogFooter,{children:[(0,m.jsx)(d.Button,{className:"mdc-dialog__cancel-button",onClick:a,disabled:N,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),b?(0,m.jsx)(d.Button,{href:b,onClick:p,target:"_blank",danger:T,children:h}):(0,m.jsx)(d.SpinnerButton,{onClick:p,danger:T,disabled:N,isSaving:N,children:h||(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 g=ModalDialog},61983:(e,t,a)=>{"use strict";a.d(t,{A:()=>DismissButton});var i=a(62688),o=a.n(i),n=a(82871),s=a(49383),r=a(62540);function DismissButton({className:e,label:t=(0,n.__)("Maybe later","google-site-kit"),onClick:a,disabled:i,tertiary:o=!0}){return a?(0,r.jsx)(s.Button,{className:e,onClick:a,disabled:i,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})}},62659:(e,t,a)=>{"use strict";a.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var i=a(63696),o=a(19826);const __WEBPACK_DEFAULT_EXPORT__=function(){return(0,i.useContext)(o.Ay)}},63081:(e,t,a)=>{"use strict";a.d(t,{A:()=>Root});var i=a(62688),o=a.n(i),n=a(44010),s=a(77105),r=a(63696),l=a(50539),c=a.n(l),d=a(82871),u=a(6730),m=a(19826),g=a(67510),p=a(13047),y=a(62540);class ErrorHandler extends r.Component{constructor(e){super(e),this.state={error:null,info:null,copied:!1}}componentDidCatch(e,t){a.g.console.error("Caught an error:",e,t),this.setState({error:e,info:t}),(0,p.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:a}=this.state;return t?(0,y.jsx)(g.A,{notificationID:"googlesitekit-error",className:"googlesitekit-error-handler",type:"error",title:(0,d.__)("Site Kit encountered an error","google-site-kit"),description:(0,y.jsxs)(r.Fragment,{children:[(0,y.jsx)(u.A,{message:t.message,componentStack:a.componentStack}),(0,y.jsxs)("pre",{className:"googlesitekit-overflow-auto",children:[t.message,a.componentStack]})]})}):e}}ErrorHandler.contextType=m.Ay,ErrorHandler.propTypes={children:o().node.isRequired};const h=ErrorHandler;var f=a(79961);const{Consumer:T,Provider:N}=f.A,I=N;var A=a(84895),b=a(82246),k=a(11999),M=a(70301),v=a(97345),S=a(78990),x=a(94656);const _=function AuthenticatedPermissionsModal(){const e=(0,l.useRegistry)(),t=(0,l.useSelect)(e=>e(v.oR).getPermissionScopeError()),i=(0,l.useSelect)(e=>e(v.oR).getUnsatisfiedScopes()),o=(0,l.useSelect)(e=>e(v.oR).getConnectURL({additionalScopes:t?.data?.scopes,redirectURL:t?.data?.redirectURL||a.g.location.href,errorRedirectURL:t?.data?.errorRedirectURL})),{clearPermissionScopeError:n}=(0,l.useDispatch)(v.oR),{navigateTo:s}=(0,l.useDispatch)(M.M),{setValues:c}=(0,l.useDispatch)(k.s),u=(0,r.useCallback)(()=>{n()},[n]),m=(0,r.useCallback)(async()=>{c(v.$8,{permissionsError:t}),await(0,S.mR)(e),s(o)},[e,o,s,t,c]);return(0,r.useEffect)(()=>{!async function(){t?.data?.skipModal&&t?.data?.scopes?.length&&await m()}()},[m,t]),t?t?.data?.scopes?.length?t?.data?.skipModal||i&&t?.data?.scopes.every(e=>i.includes(e))?null:(0,y.jsx)(x.A,{children:(0,y.jsx)(b.A,{title:(0,d.__)("Additional Permissions Required","google-site-kit"),subtitle:t.message,confirmButton:(0,d.__)("Proceed","google-site-kit"),handleConfirm:m,handleCancel:u,onClose:u,dialogActive:!0,medium:!0})}):(a.g.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",t),null):null};co
(0,s.__)("%s (Please try again.)","google-site-kit"),I)),g||(I=(0,s.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */
(0,s.__)("Error: %s","google-site-kit"),I));const A=t?.data?.reconnectURL;A&&(0,r.m)(A)&&(I=(0,s.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */ /* translators: 1: Original error message 2: Reconnect URL */
(0,s.__)('%1$s To fix this, <a href="%2$s">redo the plugin setup</a>.',"google-site-kit"),I,A));return(0,m.jsx)(d.A,{className:e,type:d.A.TYPES.ERROR,description:(0,m.jsx)("span",{dangerouslySetInnerHTML:(0,u.p9)(I,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:N?{label:(0,s.__)("Retry","google-site-kit"),onClick:T}:void 0,hideIcon:y})}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}},73730:(e,t,a)=>{"use strict";function i(e,t,a=()=>!0){return"string"==typeof e?a(e):!("object"!=typeof e||!t(e))||!!Array.isArray(e)&&e.every(e=>"string"==typeof e?a(e):"object"==typeof e&&t(e))}function o({startDate:e,endDate:t}){const a=e&&e.match(/^\d{4}-\d{2}-\d{2}$/),i=t&&t.match(/^\d{4}-\d{2}-\d{2}$/);return a&&i}function n(e){function t(e){const t=e.hasOwnProperty("fieldName")&&!!e.fieldName,a=e.hasOwnProperty("sortOrder")&&/(ASCENDING|DESCENDING)/i.test(e.sortOrder.toString());return t&&a}return Array.isArray(e)?e.every(e=>"object"==typeof e&&t(e)):"object"==typeof e&&t(e)}function s(e){return"string"==typeof e||!!Array.isArray(e)&&e.every(e=>"string"==typeof e)}a.d(t,{G4:()=>n,O5:()=>o,cX:()=>i,cq:()=>s})},73963:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var i=a(4452),o=a.n(i),n=a(62688),s=a.n(n),r=a(63696),l=a(62540);const c=(0,r.forwardRef)(({children:e,className:t,widgetSlug:a,noPadding:i,Header:n,Footer:s},r)=>(0,l.jsxs)("div",{className:o()("googlesitekit-widget",`googlesitekit-widget--${a}`,{"googlesitekit-widget--no-padding":i},{"googlesitekit-widget--with-header":n},t),ref:r,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}),s&&(0,l.jsx)("div",{className:"googlesitekit-widget__footer",children:(0,l.jsx)(s,{})})]}));c.defaultProps={children:void 0,noPadding:!1},c.propTypes={children:s().node,widgetSlug:s().string.isRequired,noPadding:s().bool,Header:s().elementType,Footer:s().elementType};const d=c},74508:(e,t,a)=>{"use strict";a.d(t,{s:()=>g});var i=a(4452),o=a.n(i),n=a(17243),s=a(82871),r=a(49746),l=a(13047),c=a(32091),d=a.n(c);var u=a(9616);function m(e,t){const a=[];return e.forEach(e=>{if(!e.metricValues)return;const{value:i}=e.metricValues[t],o=e.dimensionValues[0].value,n=(0,u.A)(o);a.push([n,i])}),a}function g(e,t,a,i,c=[(0,s.__)("Users","google-site-kit"),(0,s.__)("Sessions","google-site-kit"),(0,s.__)("Engagement Rate","google-site-kit"),(0,s.__)("Session Duration","google-site-kit")],u=[e=>parseFloat(e).toLocaleString(),e=>parseFloat(e).toLocaleString(),e=>(0,l.Eo)(e/100,{style:"percent",signDisplay:"never",maximumFractionDigits:2}),e=>(0,l.Eo)(e,"s")],g=[n.identity,n.identity,e=>100*e,n.identity]){const p=[...e?.rows||[]],y=p.length;if(2*a>y){const e=(0,l.XH)(i);for(let t=0;a>t;t++){const a=(e.getMonth()+1).toString(),i=e.getDate().toString(),o=e.getFullYear().toString()+(2>a.length?"0":"")+a+(2>i.length?"0":"")+i;if(t>y){const e=[{dimensionValues:[{value:o},{value:"date_range_0"}],metricValues:[{value:0},{value:0}]},{dimensionValues:[{value:o},{value:"date_range_1"}],metricValues:[{value:0},{value:0}]}];p.unshift(...e)}e.setDate(e.getDate()-1)}p.push({dimensionValues:[{value:"0"},{value:"date_range_0"}]},{dimensionValues:[{value:"0"},{value:"date_range_1"}]})}const h=c[t]===(0,s.__)("Session Duration","google-site-kit"),f=h?"timeofday":"number",T=[[{type:"date",label:(0,s.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:f,label:c[t]},{type:f,label:(0,s.__)("Previous period","google-site-kit")}]],{compareRange:N,currentRange:I}=function(e,{dateRangeLength:t}){function a(t){return e.filter(({dimensionValues:[,e]})=>e.value===t)}d()(Array.isArray(e),"report must be an array to partition."),d()(Number.isInteger(t)&&t>0,"dateRangeLength must be a positive integer.");const i=-1*t;return{currentRange:a("date_range_0").slice(i),compareRange:a("date_range_1").slice(2*i,i)}}(p,{dateRangeLength:a}),A=m(I,t),b=m(N,t),k=(0
(0,s._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(k,M),b[a][0].toLocaleDateString(k,M)),f=(0,s.sprintf)(/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */ /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
(0,s._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),c[t],u[t](n),p,(0,l.Eo)(Math.abs(m),"%"));T.push([e[0],`<div class="${o()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":m>0,"googlesitekit-visualization-tooltip--down":m<0})}">\n\t\t\t\t<p>${y}</p>\n\t\t\t\t<p>${f}</p>\n\t\t\t</div>`,h?(0,l.vH)(n):n,h?(0,l.vH)(r):r])}),T}},75110:(e,t,a)=>{"use strict";a.d(t,{A:()=>PreviewGraph});var i,o=a(62688),n=a.n(o),s=a(63696);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},r.apply(null,arguments)}const l=e=>s.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 6"},e),i||(i=s.createElement("path",{fill:"currentColor",d:"m0 3.01.443.387 1.755-1.534v3.344h.628V1.863L4.578 3.4l.446-.39L2.512.811z"})));var c=a(33052),d=a(62540);function PreviewGraph({title:e,GraphSVG:t,showIcons:a}){return(0,d.jsxs)("div",{className:"googlesitekit-analytics-cta__preview-graph",children:[(0,d.jsx)(c.A,{as:"h3",size:"small",type:"body",className:"googlesitekit-analytics-cta__preview-graph--title",children:e}),(0,d.jsx)("div",{children:(0,d.jsx)(t,{})}),a&&(0,d.jsxs)("div",{className:"googlesitekit-analytics-cta__preview-graph--icons",children:[(0,d.jsx)(l,{className:"googlesitekit-analytics-cta__preview-graph--up-arrow"}),(0,d.jsx)("span",{className:"googlesitekit-analytics-cta__preview-graph--bar"})]})]})}PreviewGraph.propTypes={title:n().string.isRequired,GraphSVG:n().elementType.isRequired,showIcons:n().bool},PreviewGraph.defaultProps={showIcons:!0}},76984:(e,t,a)=>{"use strict";a.d(t,{Q:()=>i});const i={NEW:"new",SUCCESS:"success",WARNING:"warning",INFO:"info",INFO_ALT:"info-alt",INFO_ALT_2:"info-alt-2",ERROR:"error"}},78014:(e,t,a)=>{"use strict";a.d(t,{A:()=>StoreErrorNotices});var i=a(62688),o=a.n(i),n=a(50539),s=a(73198),r=a(88273),l=a(13137),c=a(31012),d=a(62540);function StoreErrorNotices({hasButton:e=!1,moduleSlug:t,storeName:a}){const i=(0,n.useSelect)(e=>e(a).getErrors()),o=(0,n.useSelect)(e=>e(r.i).getModule(t)),u=[];return i.filter(e=>!(!e?.message||u.includes(e.message))&&(u.push(e.message),!0)).map((t,i)=>{let{message:n}=t;return(0,l.SG)(t)&&(n=(0,c.c)(n,o)),(0,d.jsx)(s.A,{error:t,hasButton:e,storeName:a,message:n},i)})}StoreErrorNotices.propTypes={hasButton:o().bool,storeName:o().string.isRequired,moduleSlug:o().string}},78990:(e,t,a)=>{"use strict";a.d(t,{P9:()=>f,k:()=>p,mR:()=>h});var i=a(32091),o=a.n(i),n=a(17243),s=a(50539),r=a.n(s),l=a(49993),c=a(13047);const d="CREATE_SNAPSHOT",u="DELETE_SNAPSHOT",m="RESTORE_SNAPSHOT",g="SET_STATE_FROM_SNAPSHOT";function p(e,{keysToSnapshot:t}={}){o()(e,"storeName is required to create a snapshot store.");const a={},i={*deleteSnapshot(){return yield{payload:{},type:u}},*restoreSnapshot(e={}){const{clearAfterRestore:t=!0}=e,{cacheHit:a,value:i}=yield{payload:{},type:m};return a&&(yield{payload:{snapshot:i},type:g},t&&(yield{payload:{},type:u})),a},*createSnapshot(){return yield{payload:{},type:d}}},r={[u]:()=>(0,l.LD)(`datastore::cache::${e}`),[d]:(0,s.createRegistryControl)(a=>()=>{const i=a.stores[e].store.getState(),o=t?.length>0?(0,n.pick)(i,t):i;return(0,l.SO)(`datastore::cache::${e}`,o)}),[m]:()=>(0,l.Gq)(`datastore::cache::${e}`,c.Jg)};return{initialState:a,actions:i,controls:r,reducer:function(e=a,{type:i,payload:o}){if(i===g){const{snapshot:a}=o,{error:i,...n}=a;return t?.length>0?{...e,...n}:n}return e}}}function y(e=r()){return Object.values(e.stores).filter(e=>Object.keys(e.getActions()).includes("restoreSnapshot"))}function h(e=r()){return Promise.all(y(e).map(e=>e.getActions().createSnapshot()))}function f(e=r()){return Promise.all(y(e).map(e=>e.getActions().restoreSnapshot()))}},79266:(e,t,a)=>{"use strict";a.d(t,{A:()=>WidgetRecoverableModules});var i=a(62688),o=a.n(i),n=a(63696),s=a(96820),r=a(97591),l=a(62540);function WidgetRecoverableModules({widgetSlug:e,moduleSlugs:t,...a}){const i=(0,n.useMemo)(()=>({modu
(0,r._x)("%1$s (%2$s)","Analytics property name and ID","google-site-kit"),t,e)},e))})}PropertySelect.propTypes={isDisabled:o().bool,hasModuleAccess:o().bool,className:o().string,onChange:o().func};var B=a(9279);function WebDataStreamHint(){const e=(0,m.useSelect)(e=>e(f.O4).getDocumentationLinkURL("ga4-data-stream"));return(0,_.jsx)(O.A,{leadingText:(0,r.__)("What is a web data stream?","google-site-kit"),tooltipText:(0,c.A)((0,r.__)("A data stream is a flow of data from your visitors to Analytics. When a data stream is created, Analytics generates a snippet of code that is added to your site to collect that data. <a>Learn more</a>","google-site-kit"),{a:(0,_.jsx)(E.A,{href:e,external:!0,hideExternalIndicator:!0})})})}var U=a(15844),W=a(84024),V=a(14307);function WebDataStreamNameInput(){const e=(0,m.useSelect)(e=>e(y.K9).getPropertyID()),t=(0,m.useSelect)(e=>e(y.K9).getWebDataStreamID()),a=(0,x.A)(y.ZY,"webDataStreamName"),i=(0,m.useSelect)(t=>!!(0,z.Hl)(e)&&t(y.K9).doesWebDataStreamExist(e,a)),o=(0,m.useSelect)(e=>e(f.O4).getReferenceSiteURL()),{setValues:n}=(0,m.useDispatch)(N.s),c=(0,l.useCallback)(({currentTarget:e})=>{n(y.ZY,{webDataStreamName:e.value})},[n]);if((0,U.A)(()=>{if(!a&&(0,W.m)(o)){const{hostname:e}=new URL(o);n(y.ZY,{webDataStreamName:e})}}),t!==y.Oh)return null;const d=i||!a||!(0,z.uv)(a);let u=!1;return i?u=(0,r.__)("A web data stream with this name already exists.","google-site-kit"):a?(0,z.uv)(a)||(u=(0,r.__)("This is not a valid web data stream name.","google-site-kit")):u=(0,r.__)("A web data stream name is required.","google-site-kit"),(0,_.jsx)("div",{className:"googlesitekit-analytics-webdatastreamname",children:(0,_.jsx)(g.TextField,{className:s()({"mdc-text-field--error":d}),label:(0,r.__)("Web data stream name","google-site-kit"),helperText:u,trailingIcon:d&&(0,_.jsx)("span",{className:"googlesitekit-text-field-icon--error",children:(0,_.jsx)(V.A,{})}),value:a,onChange:c,outlined:!0})})}function WebDataStreamSelect(e){const{hasModuleAccess:t,isDisabled:a,className:i,onChange:o}=e,n=(0,m.useSelect)(e=>e(y.K9).getAccountID()),{propertyID:c,webDataStreamID:d,measurementID:u}=(0,m.useSelect)(e=>e(y.K9).getSettings()||{}),p=(0,m.useSelect)(e=>(0,z.Hl)(c)&&t?e(y.K9).getWebDataStreams(c):[]),h=(0,m.useSelect)(e=>!a&&e(y.K9).isLoadingWebDataStreams({hasModuleAccess:t})),f=(0,j.A)(),{setWebDataStreamID:T,updateSettingsForMeasurementID:N}=(0,m.useDispatch)(y.K9),I=(0,l.useCallback)((e,{dataset:t})=>{const a=t.value;d!==a&&(T(a),N(p.find(({_id:e})=>e===a)?.webStreamData?.measurementId||""),(0,b.sx)(`${f}_analytics`,a===y.Oh?"change_webdatastream_new":"change_webdatastream","ga4"),o&&o())},[p,d,T,N,f,o]);if(!(0,z.HX)(n))return null;if(h)return(0,_.jsx)(g.ProgressBar,{mobileVerticalSpacing:76,desktopVerticalSpacing:84,small:!0});const A=void 0===d||""===d||(0,z.dQ)(d);return!1===t?(0,_.jsx)(g.Select,{className:s()("googlesitekit-analytics-4__select-webdatastream",i),label:(0,r.__)("Web data stream","google-site-kit"),value:u,enhanced:!0,outlined:!0,disabled:!0,children:(0,_.jsx)(g.Option,{value:u,children:u})}):(0,_.jsx)(g.Select,{className:s()("googlesitekit-analytics-4__select-webdatastream",i,{"mdc-select--invalid":!A}),label:(0,r.__)("Web data stream","google-site-kit"),value:d,onEnhancedChange:I,disabled:a||!(0,z.mh)(c),enhanced:!0,outlined:!0,children:(p||[]).concat({_id:y.Oh,displayName:(0,r.__)("Set up a new web data stream","google-site-kit")}).map(({_id:e,displayName:t,webStreamData:a={}},i)=>(0,_.jsx)(g.Option,{value:e,children:e!==y.Oh&&a?.measurementId?(0,r.sprintf)(/* translators: 1: Data stream name. 2: Measurement ID. */ /* translators: 1: Data stream name. 2: Measurement ID. */
(0,r._x)("%1$s (%2$s)","Analytics data stream name and measurement ID","google-site-kit"),t,a.measurementId):t},i))})}WebDataStreamSelect.propTypes={hasModuleAccess:o().bool,isDisabled:o().bool,className:o().string};a(67526);function ZeroDataMessage({skipPrefix:e}){const t=(0,m.useSelect)(e=>e(f.O4).getCurrentEntityURL());return e?t?(0,_.jsx)("span",{children:(0,r.__)("Your page hasnt received any visitors yet","google-site-kit")}):(0,_.jsx)("span",{children:(0,r.__)("Your site hasnt received any visitors yet","google-site-kit")}):t?(0,_.jsx)("span",{children:(0,r.__)("No data to display: your page hasnt received any visitors yet","google-site-kit")}):(0,_.jsx)("span",{children:(0,r.__)("No data to display: your site hasnt received any visitors yet","google-site-kit")})}ZeroDataMessage.propTypes={skipPrefix:o().bool}},88273:(e,t,a)=>{"use strict";a.d(t,{U:()=>o,i:()=>i});const i="core/modules",o="insufficient_module_dependencies"},92449:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>s,Kq:()=>n});const i=(0,a(63696).createContext)({}),{Consumer:o,Provider:n}=i,s=i},94406:(e,t,a)=>{"use strict";a.d(t,{A:()=>DataBlockGroup});var i=a(31589),o=a(15844),n=a(63696),s=a(7076),r=a(62540);function DataBlockGroup({className:e,children:t}){const l=(0,n.useRef)();function c(e,t){e.forEach(e=>{const a=e?.querySelector(".googlesitekit-data-block__datapoint");a&&(a.style.fontSize=t)})}const d=(0,s.d)(function(){const e=l?.current?.querySelectorAll(".googlesitekit-data-block");if(!e?.length)return;let t=1;if(c(e,""),e.forEach(e=>{const a=e.querySelector(".googlesitekit-data-block__datapoint");if(!a)return;const i=a?.parentElement?.offsetWidth;if(a.scrollWidth>i){const e=i/a.scrollWidth,o=Math.floor(10*e)/10;o<t&&(t=o)}}),t<1&&t>0){const i=parseInt(a.g?.getComputedStyle(e[0].querySelector(".googlesitekit-data-block__datapoint"))?.fontSize,10),o=Math.floor(i*t);c(e,`${Math.max(o,14)}px`)}},50);return(0,i.A)("resize",d),(0,o.A)(()=>{d()}),(0,r.jsx)("div",{ref:l,className:e,children:t})}},94656:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var i=a(47209),o=a(62688),n=a.n(o),s=a(63696),r=a(78325);function Portal({children:e,slug:t}){const[a]=(0,s.useState)(document.createElement("div"));return(0,i.A)(()=>{t&&a.classList.add(`googlesitekit-portal-${t}`);const e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(a),()=>e.removeChild(a)}),(0,r.createPortal)(e,a)}Portal.propTypes={slug:n().string,children:n().node},Portal.defaultProps={slug:"",children:null};const l=Portal},96574:(e,t,a)=>{"use strict";a.d(t,{A:()=>ReportTable});var i=a(4452),o=a.n(i),n=a(32091),s=a.n(n),r=a(62688),l=a.n(r),c=a(17243),d=a(63696),u=a(49383),m=a(13113),g=a(62540);function ReportTable(e){const{rows:t,columns:a,className:i,limit:n,zeroState:r,gatheringData:l=!1,tabbedLayout:p=!1}=e;s()(Array.isArray(t),"rows must be an array."),s()(Array.isArray(a),"columns must be an array."),a.forEach(({Component:e,field:t=null})=>{s()(e||null!==t,"each column must define a Component and/or a field.")}),s()(Number.isInteger(n)||void 0===n,"limit must be an integer, if provided.");const y=a.some(({badge:e})=>!!e),[h,f]=(0,d.useState)(0),T=p&&a.slice(1),N=p?[a[0],T[h]]:a;return(0,g.jsxs)("div",{className:i,children:[p&&(0,g.jsx)(u.TabBar,{className:"googlesitekit-tab-bar--start-aligned-high-contrast",activeIndex:h,handleActiveIndexUpdate:f,children:T.map(({title:e,badge:t})=>(0,g.jsxs)(u.Tab,{"aria-label":e,children:[e,t]},e))}),(0,g.jsx)("div",{className:o()("googlesitekit-table","googlesitekit-table--with-list",{"googlesitekit-table--gathering-data":l}),children:(0,g.jsxs)("table",{className:o()("googlesitekit-table__wrapper",`googlesitekit-table__wrapper--${N.length}-col`,{"googlesitekit-table__wrapper--tabbed-layout":p}),children:[!p&&(0,g.jsxs)("thead",{className:"googlesitekit-table__head",children:[y&&(0,g.jsx)("tr",{className:"googlesitekit-table__head-badges",children:a.map(({badge:e,primary:t,className:a,columnHeaderClassName:i},n)=>(0,g.jsx)("th",{className:o()("googlesitekit-table__head-item","googlesitekit-table__head-item--badge",{"googlesi
(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:a})}RecoverableModules.propTypes={moduleSlugs:o().arrayOf(o().string).isRequired}}},e=>{e.O(0,[660],()=>{return t=52787,e(e.s=t);var t});e.O()}]);