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

40 lines
218 KiB
JavaScript
Raw Normal View History

2026-03-31 11:30:59 +02:00
"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[510],{80:(e,i,t)=>{t.d(i,{CV:()=>k,Cu:()=>A,K9:()=>o,Kr:()=>j,Lf:()=>N,Oh:()=>s,PW:()=>E,Rx:()=>O,S9:()=>D,TQ:()=>g,Vt:()=>w,Wl:()=>T,ZC:()=>I,ZY:()=>a,_p:()=>C,ag:()=>u,aj:()=>l,bz:()=>h,dq:()=>L,f2:()=>r,fB:()=>x,fV:()=>S,iB:()=>c,kc:()=>M,mo:()=>y,nc:()=>p,rm:()=>m,to:()=>n,wo:()=>d,yn:()=>z});const o="modules/analytics-4",I="account_create",n="property_create",s="webdatastream_create",a="analyticsSetup",M=10,r=0,c="https://www.googleapis.com/auth/tagmanager.readonly",g="enhanced-measurement-form",l="enhanced-measurement-enabled",N="enhanced-measurement-should-dismiss-activation-banner",u="analyticsAccountCreate",j="analyticsCustomDimensionsCreate",D="https://www.googleapis.com/auth/analytics.edit",d="dashboardAllTrafficWidgetDimensionName",y="dashboardAllTrafficWidgetDimensionColor",z="dashboardAllTrafficWidgetDimensionValue",T="dashboardAllTrafficWidgetActiveRowIndex",m="dashboardAllTrafficWidgetLoaded",A={googlesitekit_post_date:{parameterName:"googlesitekit_post_date",displayName:"WordPress Post Date",description:"Created by Site Kit: Date when a post was published",scope:"EVENT"},googlesitekit_post_author:{parameterName:"googlesitekit_post_author",displayName:"WordPress Post Author",description:"Created by Site Kit: WordPress name of the post author",scope:"EVENT"},googlesitekit_post_categories:{parameterName:"googlesitekit_post_categories",displayName:"WordPress Post Categories",description:"Created by Site Kit: Names of categories assigned to a post",scope:"EVENT"},googlesitekit_post_type:{parameterName:"googlesitekit_post_type",displayName:"WordPress Post Type",description:"Created by Site Kit: Content type of a post",scope:"EVENT"}},p={ADD_TO_CART:"add_to_cart",PURCHASE:"purchase",SUBMIT_LEAD_FORM:"submit_lead_form",GENERATE_LEAD:"generate_lead",CONTACT:"contact"},S=[p.CONTACT,p.GENERATE_LEAD,p.SUBMIT_LEAD_FORM],x={"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"}}}}]}}]}}}}]}},E="audiencePermissionsSetup",k="audienceTileCustomDimensionCreate",h="audience-selection-panel-expirable-new-badge-",L="audience",w="customDimension",C="property",O=[L,w,C]},4124:(e,i,t)=>{t.d(i,{A:()=>n});var o=t(20697),I=t(62659);function n(){const e=(0,I.A)();return o.Nn.includes(e)}},4751:(e,i,t)=>{t.d(i,{A:()=>r});var o=t(62688),I=t.n(o),n=t(4452),s=t.n(n),a=t(97513),M=t(62540);function PreviewBlock({className:e,width:i,height:t,shape:o,padding:I,smallWidth:n,smallHeight:r,tabletWidth:c,tabletHeight:g,desktopWidth:l,desktopHeight:N}){const u=(0,a.dv)(),j={width:{[a.mp]:n,[a.Lg]:c,[a.Fo]:l,[a.Qb]:l},height:{[a.mp]:r,[a.Lg]:g,[a.Fo]:N,[a.Qb]:l}};return(0,M.jsx)("div",{className:s()("googlesitekit-preview-block",e,{"googlesitekit-preview-block--padding":I}),style:{width:j.width[u]||i,height:j.height[u]||t},children:(0,M.jsx)("div",{className:s()("googlesitekit-preview-block__wrapper",{"googlesiteki
(0,s._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),I?N(I,{...M,unit:"second"}):"",o?N(o,{...M,unit:"minute"}):"",t?N(t,{...M,unit:"hour"}):"").trim()},formatDecimal(){const i=(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"),I);if(0===e)return i;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"),o),a=(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"),t);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"),I?i:"",o?n:"",t?a:"").trim()}}}(e,i);try{return t()}catch{return o()}}function M(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 r(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e}function c(e){let i={};return"%"===e?i={style:"percent",maximumFractionDigits:2}:"s"===e?i={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?i={style:"currency",currency:e}:(0,o.isPlainObject)(e)&&(i={...e}),i}function g(e,i={}){e=(0,o.isFinite)(e)?e:Number(e),(0,o.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const t=c(i),{style:I="metric"}=t;return"metric"===I?function(e){const i={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"),N(r(e),e%10==0?{}:i)):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"),N(r(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"),N(r(e),e%10==0?{}:i)):N(e,{signDisplay:"never",maximumFractionDigits:1})}(e):"duration"===I?a(e,t):"durationISO"===I?function(e){let{hours:i,minutes:t,seconds:o}=M(e);return o=("0"+o).slice(-2),t=("0"+t).slice(-2),i=("0"+i).slice(-2),"00"===i?`${t}:${o}`:`${i}:${t}:${o}`}(e):N(e,t)}const l=n()(console.warn);function N(e,i={}){const{locale:t=j(),...o}=i;try{return new Intl.NumberFormat(t,o).format(e)}catch(i){l(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(t)}, ${JSON.stringify(o)} ).format( ${typeof e} )`,i.message)}const I={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},n=["signDisplay","compactDisplay"],s={};for(const[e,i]of Object.entries(o))I[e]&&i===I[e]||n.includes(e)||(s[e]=i);try{return new Intl.NumberFormat(t,s).format(e)}catch{return new Intl.NumberFormat(t).format(e)}}function u(e,i={}){const{locale:t=j(),style:o="long",type:I="conjunction"}=i;if(Intl.ListFormat){return new Intl.ListFormat(t,{style:o,type:I}).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 j(e=t.g){const i=(0,o.get)(e,["_googlesitekitLegacyData","locale"]);if(i){const e=i.match(/^(\w{2})?(_)?(\w{2})/);if(e&&e[0])return e[0].replace(/_/g,"-")}return e.navigator.language}},49993:(e,i,t)=>{t.d(i,{Gq:()=>g,IL:()=>j,LD:()=>N,SO:()=>l,a2:()=>I,xD:()=>u});var o=t(13047);const I="googlesitekit_",n=`${I}1.175.0_${t.g._googlesitekitBaseData.storagePrefix}_`,s=["sessionStorage","localStorage"];let a,M=[...s];async function r(e){const i=t.g[e];if(!i)return!1;try{const e="__storage_test__";return i.setItem(e,e),i.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!==i.length}}async function c(){if(void 0!==a)return a;for(const e of M)a||await r(e)&&(a=t.g[e]);return void 0===a&&(a=null),a}async function g(e){const i=await c();if(i){const t=i.getItem(`${n}${e}`);if(t){const e=JSON.parse(t),{timestamp:i,ttl:o,value:I,isError:n}=e;if(i&&(!o||Math.round(Date.now()/1e3)-i<o))return{cacheHit:!0,value:I,isError:n}}}return{cacheHit:!1,value:void 0}}async function l(e,i,{ttl:I=o.Jg,timestamp:s=Math.round(Date.now()/1e3),isError:a=!1}={}){const M=await c();if(M)try{return M.setItem(`${n}${e}`,JSON.stringify({timestamp:s,ttl:I,value:i,isError:a})),!0}catch(e){return t.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function N(e){const i=await c();if(i)try{const t=e.startsWith(I)?e:`${n}${e}`;return i.removeItem(t),!0}catch(e){return t.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function u(){const e=await c();if(e)try{const i=[];for(let t=0;t<e.length;t++){const o=e.key(t);0===o.indexOf(I)&&i.push(o)}return i}catch(e){return t.g.console.warn("Encountered an unexpected storage error:",e),[]}return[]}async function j(){if(await c()){const e=await u();for(const i of e)await N(i);return!0}return!1}},50304:(e,i,t)=>{t.d(i,{A:()=>IconWrapper});var o=t(62688),I=t.n(o),n=t(62540);function IconWrapper({children:e,marginLeft:i,marginRight:t}){return(0,n.jsx)("span",{className:"googlesitekit-icon-wrapper",style:{marginLeft:i,marginRight:t},children:e})}IconWrapper.propTypes={children:I().node.isRequired,marginLeft:I().number,marginRight:I().number}},50477:(e,i,t)=>{t.d(i,{C:()=>n,p:()=>I});var o=t(55465);function I(e,i={}){return{__html:o.O.sanitize(e,i)}}function n(e){const i="object"==typeof e?e.toString():e;return i?.replace?.(/\/+$/,"")}},50539:e=>{e.exports=googlesitekit.data},51193:(e,i,t)=>{t.d(i,{Du:()=>N,GH:()=>M,Gp:()=>r,IS:()=>y,Jg:()=>g,N_:()=>T,O5:()=>z,Ql:()=>u,Qr:()=>j,XH:()=>d,r0:()=>c,sq:()=>D,tt:()=>l});var o=t(32091),I=t.n(o),n=t(17243),s=t(82871);const a="Date param must construct to a valid date instance or be a valid date instance itself.",M="Invalid dateString parameter, it must be a string.",r='Invalid date range, it must be a string with the format "last-x-days".',c=60,g=60*c,l=24*g,N=7*l;function u(){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 j(e=""){if(!(0,n.isString)(e))return!1;if(3!==e.split("-").length)return!1;const i=new Date(e);return(0,n.isDate)(i)&&!isNaN(i)}function D(e){I()((0,n.isDate)(e)&&!isNaN(e),a);const i=`${e.getMonth()+1}`,t=`${e.getDate()}`;return[e.getFullYear(),i.length<2?`0${i}`:i,t.length<2?`0${t}`:t].join("-")}function d(e){I()(j(e),M);const[i,t,o]=e.split("-");return new Date(i,t-1,o)}function y(e,i){return D(T(e,i*l))}function z(e){const i=e.split("-");return 3===i.length&&"last"===i[0]&&!Number.isNaN(i[1])&&!Number.isNaN(parseFloat(i[1]))&&"days"===i[2]}function T(e,i){I()(j(e)||(0,n.isDate)(e)&&!isNaN(e),M);const t=j(e)?Date.parse(e):e.getTime();return new Date(t-1e3*i)}},52274:(e,i,t)=>{t.d(i,{i:()=>s});var o=t(63696),I=t(50539),n=t(7972);function s(e){const{setValue:i}=(0,I.useDispatch)(n.n);return(0,o.useCallback)(()=>{i("admin-screen-tooltip",{isTooltipVisible:!0,...e})},[i,e])}},55465:(e,i,t)=>{t.d(i,{O:()=>I});var o=t(31234);const I=t.n(o)()(t.g)},58718:(e,i,t)=>{t.d(i,{CX:()=>I,Py:()=>s,SM:()=>o,kj:()=>n});const o="adsense-connect-cta",I="adsense-connect-cta-tooltip-state",n="adsense-ga4-top-earnings-notice",s="adsense"},60515:(e,i,t)=>{t.d(i,{A:()=>N});var o=t(62688),I=t.n(o),n=t(4452),s=t.n(n),a=t(63696),M=t(82871),r=t(49383),c=t(5855),g=t(38432),l=t(62540);function NewBadge({tooltipTitle:e,learnMoreLink:i,forceOpen:t,hasLeftSpacing:o,hasNoSpacing:I,onLearnMoreClick:n=()=>{}}){const N=(0,l.jsx)(c.A,{className:s()("googlesitekit-new-badge",{"googlesitekit-new-badge--has-no-spacing":I}),label:(0,M.__)("New","google-site-kit"),hasLeftSpacing:o});return e?(0,l.jsx)(r.Tooltip,{tooltipClassName:"googlesitekit-new-badge__tooltip",title:(0,l.jsxs)(a.Fragment,{children:[e,(0,l.jsx)("br",{}),(0,l.jsx)(g.A,{href:i,onClick:n,external:!0,hideExternalIndicator:!0,children:(0,M.__)("Learn more","google-site-kit")})]}),placement:"top",enterTouchDelay:0,leaveTouchDelay:5e3,open:t,interactive:!0,children:N}):N}NewBadge.propTypes={tooltipTitle:I().string,learnMoreLink:I().string,forceOpen:I().bool,onLearnMoreClick:I().func,hasLeftSpacing:I().bool,hasNoSpacing:I().bool};const N=NewBadge},61983:(e,i,t)=>{t.d(i,{A:()=>DismissButton});var o=t(62688),I=t.n(o),n=t(82871),s=t(49383),a=t(62540);function DismissButton({className:e,label:i=(0,n.__)("Maybe later","google-site-kit"),onClick:t,disabled:o,tertiary:I=!0}){return t?(0,a.jsx)(s.Button,{className:e,onClick:t,disabled:o,tertiary:I,children:i}):null}DismissButton.propTypes={className:I().string,label:I().string,onClick:I().func,disabled:I().bool,tertiary:I().bool,dismissOptions:I().shape({expiresInSeconds:I().number,skipHidingFromQueue:I().bool})}},62659:(e,i,t)=>{t.d(i,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o=t(63696),I=t(19826);const __WEBPACK_DEFAULT_EXPORT__=function(){return(0,o.useContext)(I.Ay)}},65054:(e,i,t)=>{t.d(i,{M9:()=>S,sx:()=>A,BI:()=>p});var o=t(17243);const I="_googlesitekitDataLayer",n="data-googlesitekit-gtag";function s(e){return function(){e[I]=e[I]||[],e[I].push(arguments)}}var a=t(84895);const M={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};const{activeModules:r=[],isSiteKitScreen:c,trackingEnabled:g,trackingID:l,referenceSiteURL:N,userIDHash:u,isAuthenticated:j,userRoles:D}=t.g._googlesitekitTrackingData||{},d={activeModules:r,trackingEnabled:g,trackingID:l,referenceSiteURL:N,userIDHash:u,isSiteKitScreen:c,userRoles:D,isAuthenticated:j,pluginVersion:"1.175.0"},{enableTracking:y,disableTracking:z,isTrackingEnabled:T,initializeSnippet:m,trackEvent:A,trackEventOnce:p}=function(e,i=t.g,r=t.g){const c={...M,...e};c.referenceSiteURL&&(c.referenceSiteURL=c.referenceSiteURL.toString().replace(/\/+$/,""));const g=function(e,i){const o=s(i);let M;const{activeModules:r,referenceSiteURL:c,userIDHash:g,userRole
(0,s.__)("%s (Please try again.)","google-site-kit"),T)),N||(T=(0,s.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */
(0,s.__)("Error: %s","google-site-kit"),T));const m=i?.data?.reconnectURL;m&&(0,a.m)(m)&&(T=(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"),T,m));return(0,l.jsx)(c.A,{className:e,type:c.A.TYPES.ERROR,description:(0,l.jsx)("span",{dangerouslySetInnerHTML:(0,g.p9)(T,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:z?{label:(0,s.__)("Retry","google-site-kit"),onClick:y}:void 0,hideIcon:j})}ErrorNotice.propTypes={className:I().string,error:I().shape({message:I().string}),hasButton:I().bool,storeName:I().string,message:I().string,noPrefix:I().bool,skipRetryMessage:I().bool,hideIcon:I().bool}},73730:(e,i,t)=>{function o(e,i,t=()=>!0){return"string"==typeof e?t(e):!("object"!=typeof e||!i(e))||!!Array.isArray(e)&&e.every(e=>"string"==typeof e?t(e):"object"==typeof e&&i(e))}function I({startDate:e,endDate:i}){const t=e&&e.match(/^\d{4}-\d{2}-\d{2}$/),o=i&&i.match(/^\d{4}-\d{2}-\d{2}$/);return t&&o}function n(e){function i(e){const i=e.hasOwnProperty("fieldName")&&!!e.fieldName,t=e.hasOwnProperty("sortOrder")&&/(ASCENDING|DESCENDING)/i.test(e.sortOrder.toString());return i&&t}return Array.isArray(e)?e.every(e=>"object"==typeof e&&i(e)):"object"==typeof e&&i(e)}function s(e){return"string"==typeof e||!!Array.isArray(e)&&e.every(e=>"string"==typeof e)}t.d(i,{G4:()=>n,O5:()=>I,cX:()=>o,cq:()=>s})},74508:(e,i,t)=>{t.d(i,{s:()=>N});var o=t(4452),I=t.n(o),n=t(17243),s=t(82871),a=t(49746),M=t(13047),r=t(32091),c=t.n(r);var g=t(9616);function l(e,i){const t=[];return e.forEach(e=>{if(!e.metricValues)return;const{value:o}=e.metricValues[i],I=e.dimensionValues[0].value,n=(0,g.A)(I);t.push([n,o])}),t}function N(e,i,t,o,r=[(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")],g=[e=>parseFloat(e).toLocaleString(),e=>parseFloat(e).toLocaleString(),e=>(0,M.Eo)(e/100,{style:"percent",signDisplay:"never",maximumFractionDigits:2}),e=>(0,M.Eo)(e,"s")],N=[n.identity,n.identity,e=>100*e,n.identity]){const u=[...e?.rows||[]],j=u.length;if(2*t>j){const e=(0,M.XH)(o);for(let i=0;t>i;i++){const t=(e.getMonth()+1).toString(),o=e.getDate().toString(),I=e.getFullYear().toString()+(2>t.length?"0":"")+t+(2>o.length?"0":"")+o;if(i>j){const e=[{dimensionValues:[{value:I},{value:"date_range_0"}],metricValues:[{value:0},{value:0}]},{dimensionValues:[{value:I},{value:"date_range_1"}],metricValues:[{value:0},{value:0}]}];u.unshift(...e)}e.setDate(e.getDate()-1)}u.push({dimensionValues:[{value:"0"},{value:"date_range_0"}]},{dimensionValues:[{value:"0"},{value:"date_range_1"}]})}const D=r[i]===(0,s.__)("Session Duration","google-site-kit"),d=D?"timeofday":"number",y=[[{type:"date",label:(0,s.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:d,label:r[i]},{type:d,label:(0,s.__)("Previous period","google-site-kit")}]],{compareRange:z,currentRange:T}=function(e,{dateRangeLength:i}){function t(i){return e.filter(({dimensionValues:[,e]})=>e.value===i)}c()(Array.isArray(e),"report must be an array to partition."),c()(Number.isInteger(i)&&i>0,"dateRangeLength must be a positive integer.");const o=-1*i;return{currentRange:t("date_range_0").slice(o),compareRange:t("date_range_1").slice(2*o,o)}}(u,{dateRangeLength:t}),m=l(T,i),A=l(z,i),p=(0,a.JK)(),S={weekday:"short",month:"short",day:"numeric"};return m.forEach((e,t)=>{if(!e[0]||!e[1]||!A[t])return;const o=N[i],n=o(e[1]),a=o(A[t][1]),c=parseFloat(a),l=(0,M.Cn)(n,c),u=(0,M.vY)(l),j=(0,s.sprintf)(/* translators: 1: date for user stats, 2: previous date for user stats comparison */ /* translators: 1: date for user stats, 2: previous date for user stats comparison */
(0,s._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(p,S),A[t][0].toLocaleDateString(p,S)),d=(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"),r[i],g[i](n),u,(0,M.Eo)(Math.abs(l),"%"));y.push([e[0],`<div class="${I()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":l>0,"googlesitekit-visualization-tooltip--down":l<0})}">\n\t\t\t\t<p>${j}</p>\n\t\t\t\t<p>${d}</p>\n\t\t\t</div>`,D?(0,M.vH)(n):n,D?(0,M.vH)(a):a])}),y}},75649:(e,i,t)=>{t.d(i,{A:()=>n});var o=t(82871),I=t(63696);function n({isDismissalFinal:e}={}){const[i]=(0,I.useState)(!0===e?(0,o.__)("Dont show again","google-site-kit"):(0,o.__)("Maybe later","google-site-kit"));return i}},76729:(e,i,t)=>{t.d(i,{Q:()=>o});const o="emailReportingUserSettingsSelectionPanelOpened"},76984:(e,i,t)=>{t.d(i,{Q:()=>o});const o={NEW:"new",SUCCESS:"success",WARNING:"warning",INFO:"info",INFO_ALT:"info-alt",INFO_ALT_2:"info-alt-2",ERROR:"error"}},78990:(e,i,t)=>{t.d(i,{P9:()=>d,k:()=>u,mR:()=>D});var o=t(32091),I=t.n(o),n=t(17243),s=t(50539),a=t.n(s),M=t(49993),r=t(13047);const c="CREATE_SNAPSHOT",g="DELETE_SNAPSHOT",l="RESTORE_SNAPSHOT",N="SET_STATE_FROM_SNAPSHOT";function u(e,{keysToSnapshot:i}={}){I()(e,"storeName is required to create a snapshot store.");const t={},o={*deleteSnapshot(){return yield{payload:{},type:g}},*restoreSnapshot(e={}){const{clearAfterRestore:i=!0}=e,{cacheHit:t,value:o}=yield{payload:{},type:l};return t&&(yield{payload:{snapshot:o},type:N},i&&(yield{payload:{},type:g})),t},*createSnapshot(){return yield{payload:{},type:c}}},a={[g]:()=>(0,M.LD)(`datastore::cache::${e}`),[c]:(0,s.createRegistryControl)(t=>()=>{const o=t.stores[e].store.getState(),I=i?.length>0?(0,n.pick)(o,i):o;return(0,M.SO)(`datastore::cache::${e}`,I)}),[l]:()=>(0,M.Gq)(`datastore::cache::${e}`,r.Jg)};return{initialState:t,actions:o,controls:a,reducer:function(e=t,{type:o,payload:I}){if(o===N){const{snapshot:t}=I,{error:o,...n}=t;return i?.length>0?{...e,...n}:n}return e}}}function j(e=a()){return Object.values(e.stores).filter(e=>Object.keys(e.getActions()).includes("restoreSnapshot"))}function D(e=a()){return Promise.all(j(e).map(e=>e.getActions().createSnapshot()))}function d(e=a()){return Promise.all(j(e).map(e=>e.getActions().restoreSnapshot()))}},79961:(e,i,t)=>{t.d(i,{A:()=>n});var o=t(63696),I=t(84895);const n=(0,o.createContext)(I.t)},82871:e=>{e.exports=googlesitekit.i18n},83202:(e,i,t)=>{t.d(i,{A:()=>TourTooltip});var o=t(28056),I=t.n(o),n=t(4452),s=t.n(n),a=t(62688),M=t.n(a),r=t(82871),c=t(49383);var g=t(30805),l=t(72545),N=t(33052),u=t(62540);function TourTooltip({backProps:e,closeProps:i,index:t,primaryProps:n,size:a,step:M,tooltipProps:j}){const D=(0,g.i)("setupFlowRefresh"),d=a>1?function(e){return new Array(null!=e?e:0).fill().map((e,i)=>i)}(a):[];function y(e){return s()("googlesitekit-tooltip-indicator",{active:e===t})}const z=D?10:14;return(0,u.jsx)("div",{className:s()("googlesitekit-tour-tooltip",M.className,{"googlesitekit-tour-tooltip--setupFlowRefresh":D}),...j,children:(0,u.jsxs)(I(),{className:"googlesitekit-tooltip-card",children:[(0,u.jsxs)("div",{className:"googlesitekit-tooltip-body",children:[(0,u.jsx)(N.A,{as:"h2",className:"googlesitekit-tooltip-title",size:"medium",type:"title",children:M.title}),(0,u.jsx)("div",{className:"googlesitekit-tooltip-content",children:M.content})]}),(0,u.jsxs)(o.CardActions,{className:"googlesitekit-tooltip-actions",children:[!D&&(0,u.jsx)("ul",{className:"googlesitekit-tooltip-indicators",children:d.map(e=>(0,u.jsx)("li",{className:y(e)},`indicator-${e}`))}),D&&(0,u.jsxs)("p",{className:"googlesitekit-tooltip-steps",children:[t+1," / ",a]}),(0,u.jsxs)("div",{className:"googlesitekit-tooltip-buttons",children:[0!==t&&(0,u.jsx)(c.Button,{className:"googlesitekit-tooltip-button",text:!D,tertiary:D,...e,children:e.title}),M.cta,n.title&&(0,u.jsx)(c.Button,{className:s()("googlesitekit-tooltip-button",{"googlesitekit-tooltip-button--primary":D}),text:!D,...n,children:n.title})]})]}),(0,u.jsx)(c.Button,{className:"googlesitekit-tooltip-close",icon:(0,u.jsx)(l.A,{width:z,height:z}),onClick:i.onClick,"aria-label":(0,r.__)("Clos
(0,K.__)("Site Kit cant access all relevant data because you havent granted all permissions requested during setup. To use Site Kit, youll need to redo the setup for: %s make sure to approve all permissions at the authentication stage.","google-site-kit"),(0,ne.K5)(I));break;case Me:a=(0,K.sprintf)(/* translators: %s: Product name */ /* translators: %s: Product name */
(0,K.__)("Site Kit cant access the relevant data from %1$s because you havent granted all permissions requested during setup. To use Site Kit, youll need to redo the setup for %1$s make sure to approve all permissions at the authentication stage.","google-site-kit"),I[0]);break;case re:a=(0,K.__)("Site Kit cant access all relevant data because you havent granted all permissions requested during setup. To use Site Kit, youll need to redo the setup make sure to approve all permissions at the authentication stage.","google-site-kit")}return{title:n,message:a,ctaLabel:s}}var ge=t(76984),le=t(68832);var Ne=t(62688),ue=t.n(Ne),je=t(4124);function GatheringDataNotification({id:e,Notification:i}){const[t,I]=(0,ie.useState)(!1),n=(0,o.useSelect)(e=>e(Y.O4).getConnectMoreServicesURL()),{analyticsGatheringData:s,searchConsoleGatheringData:a}=function(){const e=(0,je.A)(),i=(0,o.useSelect)(e=>e(B.i).isModuleConnected(W.L1)),t=(0,o.useSelect)(i=>!e||i(c.oR).canViewSharedModule(W.L1)),I=(0,o.useSelect)(i=>!e||i(c.oR).canViewSharedModule(J.Y)),n=(0,o.useSelect)(i=>{if(!e)return!1;const t=i(B.i).getRecoverableModules();return void 0!==t?Object.keys(t).includes(W.L1):void 0}),s=(0,o.useSelect)(i=>{if(!e)return!1;const t=i(B.i).getRecoverableModules();return void 0!==t?Object.keys(t).includes(J.Y):void 0});return{analyticsGatheringData:(0,o.useInViewSelect)(e=>!(!i||!t||!1!==n)&&e(H.K9).isGatheringData(),[i,t,n]),searchConsoleGatheringData:(0,o.useInViewSelect)(e=>I&&!1===s&&e(V.n).isGatheringData(),[I,s]),analyticsHasZeroData:(0,o.useInViewSelect)(e=>!(!i||!t||!1!==n)&&e(H.K9).hasZeroData(),[i,t,n]),searchConsoleHasZeroData:(0,o.useInViewSelect)(e=>I&&!1===s&&e(V.n).hasZeroData(),[I,s])}}();let M,r=72;return s&&a?M=(0,K.__)("Search Console and Analytics are gathering data","google-site-kit"):s?M=(0,K.__)("Analytics is gathering data","google-site-kit"):a&&(r=48,M=(0,K.__)("Search Console is gathering data","google-site-kit")),r?(0,q.jsx)(i,{children:(0,q.jsx)($.A,{notificationID:e,type:$.Q.INFO,title:M,description:(0,K.sprintf)(/* translators: %s: the number of hours the site can be in a gathering data state */ /* translators: %s: the number of hours the site can be in a gathering data state */
(0,K._n)("It can take up to %s hour before stats show up for your site. While youre waiting, connect more services to get more stats.","It can take up to %s hours before stats show up for your site. While youre waiting, connect more services to get more stats.",r,"google-site-kit"),r),ctaButton:{label:(0,K.__)("Connect more services","google-site-kit"),href:n,dismissOnClick:!0,dismissOptions:{expiresInSeconds:ne.tt,skipHidingFromQueue:!0},onClick:()=>I(!0),inProgress:t},dismissButton:{label:(0,K.__)("Got it","google-site-kit"),dismissOptions:{expiresInSeconds:ne.tt},disabled:t},svg:{desktop:"data:image/svg+xml;base64,PHN2ZyB3aWR0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I0NTA3IiByeD0iMS42MjI1NCIgZmlsbD0iI0VCRUVGMCIvPgo8cGF0aCBkPSJNMTY1Ljg4NyA5MS4zMDk2SDExNC4wNTEiIHN0cm9rZT0iI0VCRUVGMCIgc3Ryb2tlLXdpZHRoPSIwLjY4MjA1MSIvPgo8cmVjdCB4PSIxNzIuMzc3IiB5PSI3NC43NyIgd2lkdGg9IjUyLjI2NjciIGhlaWdodD0iNzAuOTMzMyIgcng9IjMuNzUxMjgiIGZpbGw9IndoaXRlIi8+CjxyZWN0IHg9IjE3OS4xODMiIHk9IjEwMy45NzYiIHdpZHRoPSIxOC4wMzg5IiBo
(0,K.__)("%s data was previously shared with other users on the site by another admin who no longer has access. To restore access, you may recover the module as the new owner.","google-site-kit"),e[i[0]]?.name):I&&t?s=(0,K.__)("The data for the following modules was previously shared with other users on the site by another admin who no longer has access. To restore access, you may recover the module as the new owner.","google-site-kit"):I||t||!e?I&&!t&&(s=(0,K.__)("The data for the following modules was previously shared with other users on the site by another admin who no longer has access. To restore access, the module must be recovered by another admin who has access.","google-site-kit")):s=(0,K.sprintf)(/* translators: %s: module name. */ /* translators: %s: module name. */
(0,K.__)("%s data was previously shared with other users on the site by another admin who no longer has access. To restore access, the module must be recovered by another admin who has access.","google-site-kit"),Object.values(e)[0]?.name),s?(0,q.jsxs)(Ce.A,{children:[s," ",(0,q.jsx)(Oe.A,{label:(0,K.__)("Learn more","google-site-kit"),href:n})]}):null}var fe=t(49383);function Errors({recoveryErrors:e}){return(0,q.jsxs)("div",{className:"googlesitekit-module-recovery-errors",children:[1===Object.keys(e).length&&(0,q.jsx)(Ce.A,{children:(0,K.sprintf)(/* translators: %s: Error message */ /* translators: %s: Error message */
(0,K.__)("Error: %s","google-site-kit"),Object.values(e)[0].message)}),Object.keys(e).length>1&&(0,q.jsxs)(ie.Fragment,{children:[(0,q.jsx)(Ce.A,{children:(0,K.__)("The following modules failed to be recovered:","google-site-kit")}),(0,q.jsx)("ul",{children:Object.keys(e).map(i=>(0,q.jsx)("li",{children:(0,K.sprintf)(/* translators: 1: Module name, 2: Error message */ /* translators: 1: Module name, 2: Error message */
(0,K.__)("%1$s: %2$s","google-site-kit"),e[i].name,e[i].message)},i))})]})]})}function AdditionalDescription({inProgress:e,selectedModuleSlugs:i,hasUserRecoverableModules:t,recoverableModules:I,userRecoverableModuleSlugs:n,hasMultipleRecoverableModules:s,setSelectedModuleSlugs:a}){const M=(0,o.useSelect)(e=>e(B.i).getRecoveryErrors());return t||s?t?(0,q.jsxs)(ie.Fragment,{children:[s&&(0,q.jsxs)(ie.Fragment,{children:[i&&n.map(t=>(0,q.jsx)("div",{children:(0,q.jsx)(fe.Checkbox,{checked:i.includes(t),name:"module-recovery-alert-checkbox",id:`module-recovery-alert-checkbox-${t}`,onChange:()=>{i.includes(t)?a((0,Ie.without)(i,t)):a([...i,t])},disabled:e,value:t,children:I[t].name})},t)),(0,q.jsx)(Ce.A,{children:(0,K.__)("By recovering the selected modules, you will restore access for other users by sharing access via your Google account. This does not make any changes to external services and can be managed at any time via the dashboard sharing settings.","google-site-kit")})]}),!s&&(0,q.jsx)(Ce.A,{children:(0,K.__)("By recovering the module, you will restore access for other users by sharing access via your Google account. This does not make any changes to external services and can be managed at any time via the dashboard sharing settings.","google-site-kit")}),Object.keys(M).length>0&&(0,q.jsx)(Errors,{recoveryErrors:M})]}):(0,q.jsx)("ul",{className:"mdc-list mdc-list--non-interactive",children:Object.values(I||{}).map(e=>(0,q.jsx)("li",{className:"mdc-list-item",children:(0,q.jsx)("span",{className:"mdc-list-item__text",children:e.name})},e.slug))}):null}Errors.propTypes={recoveryErrors:ue().object.isRequired};var be=t(4751);var Ze=t(37467);function SiteKitSetupSuccessNotification({id:e,Notification:i}){const t=(0,o.useSelect)(e=>e(Y.O4).getConnectMoreServicesURL()),[,I]=(0,Ze.A)("notification"),n=(0,ie.useCallback)(()=>{I(void 0)},[I]);return(0,q.jsx)(i,{children:(0,q.jsx)($.A,{notificationID:e,title:(0,K.__)("Congrats on completing the setup for Site Kit!","google-site-kit"),description:(0,K.__)("Connect more services or edit connected services from the settings screen.","google-site-kit"),learnMoreLink:{href:t,label:(0,K.__)("Go to Settings","google-site-kit"),external:!1},dismissButton:{label:(0,K.__)("Got it!","google-site-kit"),onClick:n,tertiary:!1},svg:{desktop:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgwIiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDM4MCAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0zMzUuODc4IDc5LjAzMzZDMzU3LjMwOCAxMTkuMTE4IDM0OS45NCAxNzcuMDkzIDMwNC44NSAxOTguNDczQzI1OS43NTkgMjE5Ljg1NCAyMjMuNTczIDE4My4yOTcgMjAyLjU1NCAxODQuNTE5QzE4MS41MzQgMTg1Ljc0IDE3OC45NDUgMjA2LjY0OCAxNTQuNzQyIDIyMS42MkMxMzAuNTQgMjM2LjU5MyA2MS44NzA3IDIzMS4zMTMgMjIuNTMwOSAyMDAuMDc4Qy0xNi44MDg5IDE2OC44NDMgMi4xMjkzNCA5NS45Mjc0IDM2Ljg3NTQgNzguNzQwM0M3MS42MjE1IDYxLjU1MzIgODIuMDU3IDgwLjM2NjggMTE3LjEyNiA2Ni4xODE1QzE1Mi4xOTUgNTEuOTk2MiAxNDQuNDA4IDI2LjUzNTQgMTc2LjA1NCAxMC44OTQ2QzI0Ni42ODEgLTI0LjAxMjggMzE0LjQ0OCAzOC45NDg4IDMzNS44NzggNzkuMDMzNloiIGZpbGw9IiNEMEZCRTEiLz4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xODQzXzUzMzA2KSI+CjxyZWN0IHg9IjgxLjIwNyIgeT0iMTYuODEyNCIgd2lkdGg9IjE3MS45NTgiIGhlaWdodD0iMTcyLjY3NCIgcng9IjkuMzgwNDUiIGZpbGw9IiNFQkVFRjAiLz4KPG1hc2sgaWQ9Im1hc2swXzE4NDNfNTMzMDYiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjgxIiB5PSIxNiIgd2lkdGg9IjE3MyIgaGVpZ2h0PSIxNzYiPgo8cmVjdCB4PSI4MS4yMDciIHk9IjE2LjgxMjQiIHdpZHRoPSIxNzEuOTU4IiBoZWlnaHQ9IjE3NC44MjQiIHJ4PSI5LjM4MDQ1IiBmaWxsPSIjREVFM0U2Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF8xODQzXzUzMzA2KSI+CjxyZWN0IHg9IjkxLjk1MzEiIHk9Ijc2Ljk5NzciIHdpZHRoPSI3MC4yMTYiIGhlaWdodD0iOTUuMjkzMiIgcng9IjUuMDM5NTQiIGZpbGw9IndoaXRlIi8+CjxyZWN0IHg9IjEwMC42NzIiIHk9IjExNi4yMzMiIHdpZHRoPSIyNC4yODg2IiBoZWlnaHQ9IjQuMzU5NDkiIHJ4PSIyLjE3OTc1IiBmaWxsPSIjRUJFRUYwIi8+CjxyZWN0IHg9IjEwMC42NzIiIHk9IjEwOS4zODMiIHdpZHRoPSI4LjcxODk4IiBoZWlnaHQ9IjQuMzU5NDkiIHJ4PSIyLjE3OTc1IiBmaWxsPSIjRUJFRUYwIi8+CjxyZWN0IHg9IjEwMC42NzIiIHk9IjEzMS44MzkiIHdpZHRoPSI4LjcxODk4IiBoZWlnaHQ9IjQuMzU5NDkiIHJ4PSIyLjE3OTc1IiBmaWxsPSIjRUJFRUYwIi8+CjxwYXRoIGQ9Ik0xMzkuOTA2IDExNS4yOTlDMTM5LjkwNiAxMTMuMD
(0,K.__)("Congrats on completing the setup for %s!","google-site-kit"),s?.name),description:(0,K.__)("Connect more services to see more stats.","google-site-kit"),dismissButton:{onClick:function(){t(void 0),n(void 0)}},ctaButton:{label:(0,K.__)("Go to Settings","google-site-kit"),href:a}})})}SiteKitSetupSuccessNotification.propTypes={id:ue().string.isRequired,Notification:ue().elementType},ModuleSetupSuccessNotification.propTypes={id:ue().string.isRequired,Notification:ue().elementType.isRequired};var Ue,Re,Pe=t(81276),Ge=t(7972),Qe=t(76729),ve=t(33903);function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ye.apply(null,arguments)}const Be=e=>ie.createElement("svg",Ye({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 348 163"},e),Ue||(Ue=ie.createElement("g",{clipPath:"url(#email-reporting-overlay-desktop_svg__a)"},ie.createElement("path",{fill:"#B8E6CA",d:"M0 16C0 7.163 7.163 0 16 0h316c8.837 0 16 7.163 16 16v147H0z"}),ie.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__b)"},ie.createElement("path",{fill:"#EBEEF0",d:"M75.352 82.774a8.32 8.32 0 0 1 4.337-7.307l87.93-47.985a13.32 13.32 0 0 1 12.761 0l87.931 47.985a8.32 8.32 0 0 1 4.337 7.307v94.401a8.325 8.325 0 0 1-8.325 8.325H83.676a8.325 8.325 0 0 1-8.324-8.325z"})),ie.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__c)"},ie.createElement("rect",{width:88,height:57,x:66.467,y:-1.393,fill:"#fff",rx:9.075,transform:"rotate(-38.65 66.467 -1.393)"})),ie.createElement("rect",{width:61,height:6.763,x:84.463,y:.297,fill:"#EBEEF0",rx:3.3,transform:"rotate(-38.65 84.463 .297)"}),ie.createElement("rect",{width:41.249,height:15.94,x:93.201,y:10.905,fill:"#B8E6CA",rx:7.97,transform:"rotate(-38.65 93.201 10.905)"}),ie.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.237,d:"m105.805 14.774.966-7.501m0 0-3.388 2.634m3.388-2.634 2.636 3.2"}),ie.createElement("rect",{width:16.5,height:4.782,x:110.861,y:3.926,fill:"#fff",rx:1.65,transform:"rotate(-38.65 110.861 3.926)"}),ie.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__d)"},ie.createElement("rect",{width:87,height:57,x:171.227,y:1.983,fill:"#fff",rx:9.075,transform:"rotate(5.072 171.227 1.983)"})),ie.createElement("rect",{width:52,height:7,x:183.025,y:16.081,fill:"#EBEEF0",rx:3.3,transform:"rotate(5.072 183.025 16.081)"}),ie.createElement("rect",{width:41.249,height:16.5,x:181.969,y:30.268,fill:"#FFDED3",rx:8.25,transform:"rotate(5.072 181.969 30.268)"}),ie.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.237,d:"m188.852 36.676 4.937 5.9m0 0 .44-4.27m-.44 4.27-4.28-.32"}),ie.createElement("rect",{width:16.5,height:4.95,x:199.535,y:37.625,fill:"#fff",rx:1.65,transform:"rotate(5.072 199.535 37.625)"}),ie.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__e)"},ie.createElement("rect",{width:87,height:57,x:168.918,y:77.078,fill:"#fff",rx:9.075,transform:"rotate(21.428 168.918 77.078)"})),ie.createElement("rect",{width:20.625,height:6.6,x:176.383,y:94.187,fill:"#EBEEF0",rx:3.3,transform:"rotate(21.428 176.383 94.187)"}),ie.createElement("rect",{width:41.249,height:16.5,x:171.26,y:107.243,fill:"#FFDED3",rx:8.25,transform:"rotate(21.428 171.26 107.243)"}),ie.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.237,d:"m176.06 115.331 3.076 7.05m0 0 1.624-3.972m-1.624 3.972-4.016-1.511"}),ie.createElement("rect",{width:16.5,height:4.95,x:186.045,y:119.249,fill:"#fff",rx:1.65,transform:"rotate(21.428 186.045 119.249)"}),ie.createElement("g",{filter:"url(#email-reporting-overlay-desktop_svg__f)"},ie.createElement("rect",{width:88,height:57,x:101.674,y:57.565,fill:"#fff",rx:9.075,transform:"rotate(-9.325 101.674 57.565)"})),ie.createElement("rect",{width:41,height:7,x:116.609,y:68.287,fill:"#EBEEF0",rx:3.3,transform:"rotate(-9.325 116.609 68.287)"}),ie.createElement("rect",{width:41.249,h
/* translators: %s: Module name. */return(0,K.sprintf)((0,K.__)("Recover %s","google-site-kit"),t)}if(!t?.length)return;const n=new Set(t),s=[];for(const t of i)if(n.has(t)){const i=e[t]?.name;i&&s.push(i)}if(0===s.length)return;if(1===s.length)return(0,K.sprintf)(/* translators: %s: Module name. */ /* translators: %s: Module name. */
(0,K.__)("Recover %s","google-site-kit"),s[0]);if(2===s.length)return(0,K.sprintf)(/* translators: 1: First module name. 2: Second module name. */ /* translators: 1: First module name. 2: Second module name. */
(0,K.__)("Recover %1$s and %2$s","google-site-kit"),s[0],s[1]);const a=s[s.length-1],M=s.slice(0,-1);return(0,K.sprintf)(/* translators: 1: List of module names. 2: Last module name. */ /* translators: 1: List of module names. 2: Last module name. */
(0,K.__)("Recover %1$s and %2$s","google-site-kit"),M.join(", "),a)}({recoverableModules:r,userRecoverableModuleSlugs:c,selectedModuleSlugs:t,hasUserRecoverableModules:l,hasMultipleRecoverableModules:g});return(0,q.jsx)(i,{children:(0,q.jsx)($.A,{notificationID:e,type:$.Q.ERROR,title:(0,K.__)("Dashboard data for some services has been interrupted","google-site-kit"),description:y?(0,q.jsxs)(ie.Fragment,{children:[(0,q.jsx)(be.A,{width:"auto",height:"50px"}),(0,q.jsx)(be.A,{width:"auto",height:"60px"}),(0,q.jsx)(be.A,{width:"220px",height:"35px"})]}):(0,q.jsx)(Description,{recoverableModules:r,userRecoverableModuleSlugs:c,hasUserRecoverableModules:l,hasMultipleRecoverableModules:g}),additionalDescription:!y&&(0,q.jsx)(AdditionalDescription,{selectedModuleSlugs:t,hasUserRecoverableModules:l,hasMultipleRecoverableModules:g,recoverableModules:r,userRecoverableModuleSlugs:c,inProgress:s,setSelectedModuleSlugs:I}),ctaButton:z?void 0:{label:(0,K.__)("Recover","google-site-kit"),onClick:D,disabled:d,ariaLabel:T,inProgress:s},dismissButton:y?void 0:{label:(0,K.__)("Remind me later","google-site-kit"),tertiary:!z,className:Le()({"googlesitekit-banner__cta":z}),dismissOptions:z?{dismissExpires:ne.tt}:void 0}})})},priority:j.FQ.ERROR_LOW,areaSlug:j.bI.HEADER,viewContexts:[Q.jU],isDismissible:!1,checkRequirements:async({resolveSelect:e})=>{const i=await e(B.i).getRecoverableModules();return!!Object.keys(i||{}).length}},[Se.X]:{Component:ConsentModeSetupCTABanner,priority:j.FQ.SETUP_CTA_HIGH,areaSlug:j.bI.DASHBOARD_TOP,groupID:j.He.SETUP_CTAS,viewContexts:[Q.jU],isDismissible:!0,checkRequirements:async({select:e,resolveSelect:i})=>{await i(Y.O4).getConsentModeSettings();return!1===e(Y.O4).isConsentModeEnabled()&&i(Y.O4).isAdsConnected()},dismissRetries:2},[j.rq]:{Component:GoogleTagGatewaySetupBanner,priority:j.FQ.SETUP_CTA_LOW,areaSlug:j.bI.DASHBOARD_TOP,groupID:j.He.SETUP_CTAS,viewContexts:[Q.jU],checkRequirements:async({select:e,resolveSelect:i,dispatch:t})=>{if(!e(Y.O4).isAnyGoogleTagGatewayModuleConnected())return!1;await i(Y.O4).getGoogleTagGatewaySettings();const{isGoogleTagGatewayEnabled:o,isGTGHealthy:I,isScriptAccessEnabled:n}=e(Y.O4);if(o())return!1;const s=I(),a=n();return[s,a].includes(null)?(t(Y.O4).fetchGetGTGServerRequirementStatus(),!1):s&&a},isDismissible:!0,featureFlag:"googleTagGateway"},[j.ui]:{Component:function GoogleTagGatewayWarningNotification({id:e,Notification:i}){const t=(0,de.A)(),I=(0,o.useSelect)(e=>e(Y.O4).getDocumentationLinkURL("google-tag-gateway-server-requirements"));return(0,q.jsx)(i,{children:(0,q.jsx)(De.A,{notificationID:e,type:me.A.TYPES.WARNING,description:(0,ze.A)((0,K.__)("Google tag gateway for advertisers has been disabled due to server configuration issues. Measurement data is now being routed through the default Google server. Please contact your hosting provider to resolve the issue. <a>Learn more</a>","google-site-kit"),{a:(0,q.jsx)(Te.A,{href:I,onClick:()=>{(0,ne.sx)(`${t}_warning-notification-gtg`,"click_learn_more_link")},"aria-label":(0,K.__)("Learn more about Google tag gateway for advertisers server requirements","google-site-kit"),external:!0})}),dismissButton:{label:(0,K.__)("Got it","google-site-kit")}})})},areaSlug:j.bI.DASHBOARD_TOP,viewContexts:[Q.jU],checkRequirements:async({select:e,resolveSelect:i})=>{if(!e(Y.O4).isAnyGoogleTagGatewayModuleConnected())return!1;await i(Y.O4).getGoogleTagGatewaySettings();const{isGoogleTagGatewayEnabled:t,isGTGHealthy:o,isScriptAccessEnabled:I}=e(Y.O4);return t()&&(!o()||!I())},isDismissible:!0,featureFlag:"googleTagGateway"},[Je]:{Component:SetUpEmailReportingOverlayNotification,priority:j.FQ.SETUP_CTA_LOW,areaSlug:j.bI.OVERLAYS,groupID:j.He.SETUP_CTAS,featureFlag:"proactiveUserEngagement",viewContexts:[Q.jU,Q.Ax],isDismissible:!0,checkRequirements:async({select:e,resolveSelect:i},t)=>{if(await i(Y.O4).getEmailReportingSettings(),!1===e(Y.O4).isEmailReportingEnabled())return!1;const o=await i(c.oR).getEmailReportingSettings();if(void 0===o||o?.subscribed)return!1;if(Q.Nn.includes(t)){await Promise.all([i(B.i).getModules(),i(c.oR).getCa