40 lines
227 KiB
JavaScript
40 lines
227 KiB
JavaScript
|
|
"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[510],{2362:(e,i,t)=>{t.d(i,{A:()=>I});var o=t(4452),n=t.n(o),a=t(62688),s=t.n(a),r=t(63696),l=t(62540);const c=(0,r.forwardRef)(({label:e,className:i,hasLeftSpacing:t=!1,...o},a)=>(0,l.jsx)("span",{ref:a,...o,className:n()("googlesitekit-badge",i,{"googlesitekit-badge--has-left-spacing":t}),children:e}));c.displayName="Badge",c.propTypes={label:s().string.isRequired,hasLeftSpacing:s().bool};const I=c},2522:(e,i,t)=>{t.d(i,{D:()=>a});var o=t(32091),n=t.n(o);function a(e,{dateRangeLength:i}){n()(Array.isArray(e),"report must be an array to partition."),n()(Number.isInteger(i)&&i>0,"dateRangeLength must be a positive integer.");const t=-1*i;return{currentRange:e.slice(t),compareRange:e.slice(2*t,t)}}},3288:(e,i,t)=>{t.d(i,{Q:()=>o});const o="emailReportingUserSettingsSelectionPanelOpened"},3714:(e,i,t)=>{t.d(i,{Kk:()=>a,SZ:()=>o,Yw:()=>s,oJ:()=>r,tT:()=>n});const o="body",n=[o,"display","headline","label","title"],a="small",s="medium",r=[a,s,"large"]},3782:(e,i,t)=>{t.d(i,{A:()=>CTAButton});var o=t(62688),n=t.n(o),a=t(49383),s=t(83366),r=t(62540);function CTAButton({label:e,ariaLabel:i,disabled:t,inProgress:o,onClick:n,href:l,external:c=!1,hideExternalIndicator:I=!1}){if(!e||!n&&!l)return null;let g;return c&&!I&&(g=(0,r.jsx)(s.A,{width:14,height:14})),(0,r.jsx)(a.SpinnerButton,{className:"googlesitekit-banner__cta","aria-label":i,disabled:t||o,isSaving:o,onClick:n,href:l,target:c?"_blank":void 0,trailingIcon:g,children:e})}CTAButton.propTypes={label:n().string,ariaLabel:n().string,disabled:n().bool,inProgress:n().bool,onClick:n().func,href:n().string,dismissOnClick:n().bool,dismissOptions:n().shape({expiresInSeconds:n().number,skipHidingFromQueue:n().bool})}},4869:(e,i,t)=>{t.d(i,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function(e){if("string"==typeof e&&e.match(/[0-9]{8}/)){const i=e.slice(0,4),t=Number(e.slice(4,6))-1,o=e.slice(6,8);return new Date(i,t.toString(),o)}return!1}},7070:(e,i,t)=>{t.d(i,{A:()=>s});var o=t(63696),n=t(77766),a=t(12850);function s(e,i,{viewAction:t="view_notification",confirmAction:s="confirm_notification",dismissAction:r="dismiss_notification",clickLearnMoreAction:l="click_learn_more_link"}={}){const c=(0,n.A)(),I=null!=i?i:`${c}_${e}`;return{view:(0,o.useCallback)((...e)=>(0,a.sx)(I,t,...e),[I,t]),confirm:(0,o.useCallback)((...e)=>(0,a.sx)(I,s,...e),[I,s]),dismiss:(0,o.useCallback)((...e)=>(0,a.sx)(I,r,...e),[I,r]),clickLearnMore:(0,o.useCallback)((...e)=>(0,a.sx)(I,l,...e),[I,l])}}},7081:(e,i,t)=>{t.d(i,{F:()=>n,n:()=>o});const o="core/ui",n="activeContextID"},7184:(e,i,t)=>{t.d(i,{A:()=>j});var o=t(4452),n=t.n(o),a=t(62688),s=t.n(a),r=t(63696),l=t(32947),c=t(62540);function TitleIcon({className:e,children:i}){return(0,c.jsx)("div",{className:n()("googlesitekit-banner__title-icon",e),children:i})}function Title({className:e,children:i}){return(0,c.jsx)("p",{className:n()("googlesitekit-banner__title",e),children:i})}TitleIcon.propTypes={className:s().string,children:s().node},Title.propTypes={className:s().string,children:s().node};var I=t(12850),g=t(30823);function Description({className:e,description:i,learnMoreLink:t,additionalDescription:o,children:a}){return(0,c.jsxs)("div",{className:n()("googlesitekit-banner__description",e),children:[(0,r.isValidElement)(i)?i:"string"==typeof i?(0,c.jsx)("span",{dangerouslySetInnerHTML:(0,I.p9)(i,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}):i," ",t?.href&&(0,c.jsx)(g.A,{...t}),o&&(0,c.jsx)("div",{className:"googlesitekit-banner__additional-description",children:o}),a]})}function HelpText({className:e,children:i}){return(0,c.jsx)("p",{className:n()("googlesitekit-banner__help-text",e),children:i})}Description.propTypes={className:s().string,description:s().oneOfType([s().string,s().node]),learnMoreLink:s().shape(g.A.propTypes),additionalDescription:s().oneOfType([s().string,s().node]),children:s().node},HelpText.propTypes={className:s().string,children:s().node};var M=t(3782),u=t(29584);function Foote
|
|||
|
|
(0,m._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 f(e=""){if(!(0,o.isString)(e))return!1;if(3!==e.split("-").length)return!1;const i=new Date(e);return(0,o.isDate)(i)&&!isNaN(i)}function k(e){D()((0,o.isDate)(e)&&!isNaN(e),p);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 w(e){D()(f(e),z);const[i,t,o]=e.split("-");return new Date(i,t-1,o)}function C(e,i){return k(b(e,i*E))}function O(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 b(e,i){D()(f(e)||(0,o.isDate)(e)&&!isNaN(e),z);const t=f(e)?Date.parse(e):e.getTime();return new Date(t-1e3*i)}var L=t(69743),v=t(94552),R=t(62540);function Z(e,i={}){if(Number.isNaN(Number(e)))return"";const{invertColor:t=!1}=i;return(0,L.Ay)((0,R.jsx)(v.A,{direction:e>0?"up":"down",invertColor:t}))}function P(e,i){return e>0&&i>0?e/i-1:e>0?1:i>0?-1:0}var U=t(8143);function G(e){const i=parseFloat(e)||0;return!!Number.isInteger(i)&&i>0}function B(e){if("number"==typeof e)return!0;const i=(e||"").toString();return!!i&&!isNaN(i)}function Q(e){return Array.isArray(e)?[...e].sort():e}var Y=t(2522);function _(e,i){function t(e){return"0"===e||0===e}if(t(e)&&t(i))return 0;if(t(e)||Number.isNaN(e))return null;const o=(i-e)/e;return Number.isNaN(o)||!Number.isFinite(o)?null:o}function H(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function W(e){if(!e)return"";const i=e.replace(/&#(\d+);/g,(e,i)=>String.fromCharCode(i)).replace(/(\\)/g,"");return(0,o.unescape)(i)}},14007:(e,i,t)=>{t.d(i,{A:()=>l});var o=t(47209),n=t(62688),a=t.n(n),s=t(63696),r=t(78325);function Portal({children:e,slug:i}){const[t]=(0,s.useState)(document.createElement("div"));return(0,o.A)(()=>{i&&t.classList.add(`googlesitekit-portal-${i}`);const e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(t),()=>e.removeChild(t)}),(0,r.createPortal)(e,t)}Portal.propTypes={slug:a().string,children:a().node},Portal.defaultProps={slug:"",children:null};const l=Portal},15167:(e,i,t)=>{t.d(i,{A:()=>Typography});var o=t(62688),n=t.n(o),a=t(4452),s=t.n(a),r=t(3714),l=t(62540);function Typography({className:e,type:i,size:t,as:o="span",children:n,...a}){return(0,l.jsx)(o,{className:s()("googlesitekit-typography",e,{[`googlesitekit-typography--${i}`]:i&&r.tT.includes(i),[`googlesitekit-typography--${t}`]:t&&r.oJ.includes(t)}),...a,children:n})}Typography.propTypes={className:n().string,type:n().oneOf(r.tT),size:n().oneOf(r.oJ),as:n().oneOfType([n().string,n().elementType])}},15210:(e,i,t)=>{t.d(i,{O:()=>n});var o=t(31234);const n=t.n(o)()(t.g)},15577:(e,i,t)=>{t.d(i,{SO:()=>c});var o=t(55620),n=t(99123);const a={},s=void 0===t.g?null:t.g;function r(){return[t.g.innerWidth,t.g.innerHeight]}function l(e=a){const{fps:i,leading:t,initialWidth:l=0,initialHeight:c=0}=e,[I,g]=(0,o._)("undefined"==typeof document?[l,c]:r,i,t);function M(){return g(r)}return(0,n.A)(s,"resize",M),(0,n.A)(s,"orientationchange",M),I}function c(e){return l(e)[0]}},15863:(e,i,t)=>{t.d(i,{i:()=>s});var o=t(63696),n=t(50539),a=t(7081);function s(e){const{setValue:i}=(0,n.useDispatch)(a.n);return(0,o.useCallback)(()=>{i("admin-screen-tooltip",{isTooltipVisible:!0,...e})},[i,e])}},19793:(e,i,t)=>{t.d(i,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o,n=t(63696);function a(){return a=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},a.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),o||(o=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.
|
|||
|
|
(0,K.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),(0,se.K5)(n));break;case ce:r=(0,K.sprintf)(/* translators: %s: Product name */ /* translators: %s: Product name */
|
|||
|
|
(0,K.__)("Site Kit can’t access the relevant data from %1$s because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for %1$s – make sure to approve all permissions at the authentication stage.","google-site-kit"),n[0]);break;case Ie:r=(0,K.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup – make sure to approve all permissions at the authentication stage.","google-site-kit")}return{title:a,message:r,ctaLabel:s}}var Me=t(49655),ue=t(27333);var de=t(62688),Ne=t.n(de),je=t(35323);function GatheringDataNotification({id:e,Notification:i}){const[t,n]=(0,te.useState)(!1),a=(0,o.useSelect)(e=>e(Q.O4).getConnectMoreServicesURL()),{analyticsGatheringData:s,searchConsoleGatheringData:r}=function(){const e=(0,je.A)(),i=(0,o.useSelect)(e=>e(Y.i).isModuleConnected(W.L1)),t=(0,o.useSelect)(i=>!e||i(I.oR).canViewSharedModule(W.L1)),n=(0,o.useSelect)(i=>!e||i(I.oR).canViewSharedModule(J.Y)),a=(0,o.useSelect)(i=>{if(!e)return!1;const t=i(Y.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(Y.i).getRecoverableModules();return void 0!==t?Object.keys(t).includes(J.Y):void 0});return{analyticsGatheringData:(0,o.useInViewSelect)(e=>!(!i||!t||!1!==a)&&e(H.K9).isGatheringData(),[i,t,a]),searchConsoleGatheringData:(0,o.useInViewSelect)(e=>n&&!1===s&&e(F.n).isGatheringData(),[n,s]),analyticsHasZeroData:(0,o.useInViewSelect)(e=>!(!i||!t||!1!==a)&&e(H.K9).hasZeroData(),[i,t,a]),searchConsoleHasZeroData:(0,o.useInViewSelect)(e=>n&&!1===s&&e(F.n).hasZeroData(),[n,s])}}();let l,c=72;return s&&r?l=(0,K.__)("Search Console and Analytics are gathering data","google-site-kit"):s?l=(0,K.__)("Analytics is gathering data","google-site-kit"):r&&(c=48,l=(0,K.__)("Search Console is gathering data","google-site-kit")),c?(0,ee.jsx)(i,{children:(0,ee.jsx)($.A,{notificationID:e,type:$.Q.INFO,title:l,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 you’re waiting, connect more services to get more stats.","It can take up to %s hours before stats show up for your site. While you’re waiting, connect more services to get more stats.",c,"google-site-kit"),c),ctaButton:{label:(0,K.__)("Connect more services","google-site-kit"),href:a,dismissOnClick:!0,dismissOptions:{expiresInSeconds:se.tt,skipHidingFromQueue:!0},onClick:()=>n(!0),inProgress:t},dismissButton:{label:(0,K.__)("Got it","google-site-kit"),dismissOptions:{expiresInSeconds:se.tt},disab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IiB3aWR0aD0iMTkuMDA2OCIgaGVpZ2h0PSIzLjI0NTA3IiByeD0iMS42MjI1NCIgZmlsbD0iI0VCRUVGMCIvPgo8cGF0aCBkPSJNMTY1Ljg4NyA5MS4zMDk2SDExNC4wNTEiIHN0cm9rZT0iI0VCRUVGMCIgc3Ryb2tlLXdpZHRoPSIwLjY4MjA1MSIvPgo8cmVjdCB4PSIxNzIuMzc3IiB5PSI3NC43NyIgd2lkdGg9IjUyLjI2NjciIGhlaWdodD0iNzAuOTMzMyIgcng9IjMuNzUxMjgiIGZpbGw9IndoaXRlIi8+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):n&&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"):n||t||!e?n&&!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,ee.jsxs)(Ce.A,{children:[s," ",(0,ee.jsx)(Oe.A,{label:(0,K.__)("Learn more","google-site-kit"),href:a})]}):null}var be=t(49383);function Errors({recoveryErrors:e}){return(0,ee.jsxs)("div",{className:"googlesitekit-module-recovery-errors",children:[1===Object.keys(e).length&&(0,ee.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,ee.jsxs)(te.Fragment,{children:[(0,ee.jsx)(Ce.A,{children:(0,K.__)("The following modules failed to be recovered:","google-site-kit")}),(0,ee.jsx)("ul",{children:Object.keys(e).map(i=>(0,ee.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:n,userRecoverableModuleSlugs:a,hasMultipleRecoverableModules:s,setSelectedModuleSlugs:r}){const l=(0,o.useSelect)(e=>e(Y.i).getRecoveryErrors());return t||s?t?(0,ee.jsxs)(te.Fragment,{children:[s&&(0,ee.jsxs)(te.Fragment,{children:[i&&a.map(t=>(0,ee.jsx)("div",{children:(0,ee.jsx)(be.Checkbox,{checked:i.includes(t),name:"module-recovery-alert-checkbox",id:`module-recovery-alert-checkbox-${t}`,onChange:()=>{i.includes(t)?r((0,ae.without)(i,t)):r([...i,t])},disabled:e,value:t,children:n[t].name})},t)),(0,ee.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,ee.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(l).length>0&&(0,ee.jsx)(Errors,{recoveryErrors:l})]}):(0,ee.jsx)("ul",{className:"mdc-list mdc-list--non-interactive",children:Object.values(n||{}).map(e=>(0,ee.jsx)("li",{className:"mdc-list-item",children:(0,ee.jsx)("span",{className:"mdc-list-item__text",children:e.name})},e.slug))}):null}Errors.propTypes={recoveryErrors:Ne().object.isRequired};var Le=t(23224);var ve=t(20068);function SiteKitSetupSuccessNotification({id:e,Notification:i}){const t=(0,o.useSelect)(e=>e(Q.O4).getConnectMoreServicesURL()),[,n]=(0,ve.A)("notification"),a=(0,te.useCallback)(()=>{n(void 0)},[n]);return(0,ee.jsx)(i,{children:(0,ee.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:a,tertiary:!1},svg:{desktop:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgwIiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDM4MCAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0zMzUuODc4IDc5LjAzMzZDMzU3LjMwOCAxMTkuMTE4IDM0OS45NCAxNzcuMDkzIDMwNC44NSAxOTguNDczQzI1OS43NTkgMjE5Ljg1NCAyMjMuNTczIDE4My4yOTcgMjAyLjU1NCAxODQuNTE5QzE4MS41MzQgMTg1Ljc0IDE3OC45NDUgMjA2LjY0OCAxNTQuNzQyIDIyMS42MkMxMzAuNTQgMjM2LjU5MyA2MS44NzA3IDIzMS4zMTMgMjIuNTMwOSAyMDAuMDc4Qy0xNi44MDg5IDE2OC44NDMgMi4xMjkzNCA5NS45Mjc0IDM2Ljg3NTQgNzguNzQwM0M3MS42MjE1IDYxLjU1MzIgODIuMDU3IDgwLjM2NjggMTE3LjEyNiA2Ni4xODE1QzE1Mi4xOTUgNTEuOTk2MiAxNDQuNDA4IDI2LjUzNTQgMTc2LjA1NCAxMC44OTQ2QzI0Ni42ODEgLTI0LjAxMjggMzE0LjQ0OCAzOC45NDg4IDMzNS44NzggNzkuMDMzNloiIGZpbGw9IiNEMEZCRTEiLz4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xODQzXzUzMzA2KSI+CjxyZWN0IHg9IjgxLjIwNyIgeT0iMTYuODEyNCIgd2lkdGg9IjE3MS45NTgiIGhlaWdodD0iMTcyLjY3NCIgcng9IjkuMzgwNDUiIGZpbGw9IiNFQkVFRjAiLz4KPG1hc2sgaWQ9Im1hc2swXzE4NDNfNTMzMDYiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjgxIiB5PSIxNiIgd2lkdGg9IjE3MyIgaGVpZ2h0PSIxNzYiPgo8cmVjdCB4PSI4MS4yMDciIHk9IjE2LjgxMjQiIHdpZHRoPSIxNzEuOTU4IiBoZWlnaHQ9IjE3NC44MjQiIHJ4PSI5LjM4MDQ1IiBmaWxsPSIjREVFM0U2Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF8xODQzXzUzMzA2KSI+CjxyZWN0IHg9IjkxLjk1MzEiIHk9Ijc2Ljk5NzciIHdpZHRoPSI3MC4yMTYiIGhlaWdodD0iOTUuMjkzMiIgcng9IjUuMDM5NTQiIGZpbGw9IndoaXRlIi8+CjxyZWN0IHg9IjEwMC42NzIiIHk9IjExNi4yMzMiIHdpZHRoPSIyNC4yODg2IiBoZWlnaHQ9IjQuMzU5NDkiIHJ4PSIyLjE3OTc1IiBmaWxsPSIjRUJFRUYwIi8+CjxyZWN0IHg9IjEwMC42NzIiIHk9IjEwOS4zODMiIHdpZHRoPSI4LjcxODk4IiBoZWlnaHQ9IjQuMzU5NDkiIHJ4PSIyLjE3OTc1IiBmaWxsPSIjRUJFRUYwIi8+CjxyZWN0IHg9IjEwMC42NzIiIHk9IjEzMS44MzkiIHdpZHRoPSI4LjcxODk4IiBoZWlnaHQ9IjQuMzU5NDkiIHJ4PSIyLjE3OTc1IiBmaWxsPSIjRUJFRUYwIi8+CjxwYXRoIGQ9Ik0xMzkuOTA2IDExNS4yOTlDMTM5L
|
|||
|
|
(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),a(void 0)}},ctaButton:{label:(0,K.__)("Go to Settings","google-site-kit"),href:r}})})}var Re,Ze;function Pe(){return Pe=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},Pe.apply(null,arguments)}SiteKitSetupSuccessNotification.propTypes={id:Ne().string.isRequired,Notification:Ne().elementType},ModuleSetupSuccessNotification.propTypes={id:Ne().string.isRequired,Notification:Ne().elementType.isRequired};const Ue=e=>te.createElement("svg",Pe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 296 163"},e),Re||(Re=te.createElement("g",{clipPath:"url(#analytics-adsense-linked-desktop_svg__a)"},te.createElement("path",{fill:"#B8E6CA",d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0z"}),te.createElement("g",{filter:"url(#analytics-adsense-linked-desktop_svg__b)"},te.createElement("rect",{width:248,height:174,x:24,y:23,fill:"#fff",rx:11}),te.createElement("rect",{width:116,height:14,x:48,y:96,fill:"#9CEBEB",rx:7}),te.createElement("rect",{width:141,height:14,x:48,y:124,fill:"#9CEBEB",rx:7}),te.createElement("rect",{width:97,height:14,x:48,y:153,fill:"#9CEBEB",rx:7}),te.createElement("path",{fill:"#EBEEF0",d:"M222 103a7 7 0 0 1 7-7h12a7 7 0 1 1 0 14h-12a7 7 0 0 1-7-7M222 131a7 7 0 0 1 7-7h12a7 7 0 1 1 0 14h-12a7 7 0 0 1-7-7M222 159a7 7 0 0 1 7-7h12a7 7 0 1 1 0 14h-12a7 7 0 0 1-7-7"}),te.createElement("rect",{width:36,height:9,x:48,y:44,fill:"#EBEEF0",rx:4.5}),te.createElement("rect",{width:55.734,height:9.516,x:46.672,y:162.656,fill:"#EBEEF0",rx:4.758}),te.createElement("path",{stroke:"#EBEEF0",strokeWidth:2,d:"M272 72H24"})))),Ze||(Ze=te.createElement("defs",null,te.createElement("clipPath",{id:"analytics-adsense-linked-desktop_svg__a"},te.createElement("path",{fill:"#fff",d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0z"})),te.createElement("filter",{id:"analytics-adsense-linked-desktop_svg__b",width:280,height:206,x:8,y:11,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},te.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),te.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),te.createElement("feOffset",{dy:4}),te.createElement("feGaussianBlur",{stdDeviation:8}),te.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),te.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),te.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_100_3563"}),te.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_100_3563",result:"shape"})))));var Ge,Be;function Qe(){return Qe=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},Qe.apply(null,arguments)}const Ye=e=>te.createElement("svg",Qe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 343 123"},e),Ge||(Ge=te.createElement("g",{clipPath:"url(#analytics-adsense-linked-mobile_svg__a)"},te.createElement("path",{fill:"#B8E6CA",d:"M311.553 64.365c2.4 22.73-4.803 32.78-23.025 59.95-18.222 27.169 7.404 59.276-20.779 89.868-33.528 36.394-150.686 39.364-201.232 24.212-50.546-15.153-63.58-46.473-59.948-75.155C11.5 124.315 38.52 112.077 51.5 93 70.776 64.675 48.687 38.214 86 15.5s80.086 6.697 120.326 4.388c23.216-1.332 46.017-5.627 66.626.968 20.832 6.667 36.719 25.428 38.601 43.509"}),te.createElement("g",{filter:"url(#analytics-adsense-linked-mobile_svg__b)"},te.createElement("rect",{width:193.381,height:135.679,x:74.81,y:12.732,fill:"#fff",rx:8.577}),te.createElement("rect",{width:90.452,height:10.917,x:93.524,y:69.655,fill:"#9CEBEB",rx:5.458}),te.createElement("rect",{width:109.946,height:10.917,x:93.524,y:91.488,fill:"#9CEBEB",rx:5.45
|
|||
|
|
/* translators: %s: Module name. */return(0,K.sprintf)((0,K.__)("Recover %s","google-site-kit"),t)}if(!t?.length)return;const a=new Set(t),s=[];for(const t of i)if(a.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 r=s[s.length-1],l=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"),l.join(", "),r)}({recoverableModules:c,userRecoverableModuleSlugs:I,selectedModuleSlugs:t,hasUserRecoverableModules:M,hasMultipleRecoverableModules:g});return(0,ee.jsx)(i,{children:(0,ee.jsx)($.A,{notificationID:e,type:$.Q.ERROR,title:(0,K.__)("Dashboard data for some services has been interrupted","google-site-kit"),description:D?(0,ee.jsxs)(te.Fragment,{children:[(0,ee.jsx)(Le.A,{width:"auto",height:"50px"}),(0,ee.jsx)(Le.A,{width:"auto",height:"60px"}),(0,ee.jsx)(Le.A,{width:"220px",height:"35px"})]}):(0,ee.jsx)(Description,{recoverableModules:c,userRecoverableModuleSlugs:I,hasUserRecoverableModules:M,hasMultipleRecoverableModules:g}),additionalDescription:!D&&(0,ee.jsx)(AdditionalDescription,{selectedModuleSlugs:t,hasUserRecoverableModules:M,hasMultipleRecoverableModules:g,recoverableModules:c,userRecoverableModuleSlugs:I,inProgress:s,setSelectedModuleSlugs:n}),ctaButton:m?void 0:{label:(0,K.__)("Recover","google-site-kit"),onClick:j,disabled:y,ariaLabel:p,inProgress:s},dismissButton:D?void 0:{label:(0,K.__)("Remind me later","google-site-kit"),tertiary:!m,className:ke()({"googlesitekit-banner__cta":m}),dismissOptions:m?{dismissExpires:se.tt}:void 0}})})},priority:N.FQ.ERROR_LOW,areaSlug:N.bI.HEADER,viewContexts:[G.jU],isDismissible:!1,checkRequirements:async({resolveSelect:e})=>{const i=await e(Y.i).getRecoverableModules();return!!Object.keys(i||{}).length}},[Ee.X]:{Component:ConsentModeSetupCTABanner,priority:N.FQ.SETUP_CTA_HIGH,areaSlug:N.bI.DASHBOARD_TOP,groupID:N.He.SETUP_CTAS,viewContexts:[G.jU],isDismissible:!0,checkRequirements:async({select:e,resolveSelect:i})=>{await i(Q.O4).getConsentModeSettings();return!1===e(Q.O4).isConsentModeEnabled()&&i(Q.O4).isAdsConnected()},dismissRetries:2},[N.rq]:{Component:GoogleTagGatewaySetupBanner,priority:N.FQ.SETUP_CTA_LOW,areaSlug:N.bI.DASHBOARD_TOP,groupID:N.He.SETUP_CTAS,viewContexts:[G.jU],checkRequirements:async({select:e,resolveSelect:i,dispatch:t})=>{if(!e(Q.O4).isAnyGoogleTagGatewayModuleConnected())return!1;await i(Q.O4).getGoogleTagGatewaySettings();const{isGoogleTagGatewayEnabled:o,isGTGHealthy:n,isScriptAccessEnabled:a}=e(Q.O4);if(o())return!1;const s=n(),r=a();return[s,r].includes(null)?(t(Q.O4).fetchGetGTGServerRequirementStatus(),!1):s&&r},isDismissible:!0,featureFlag:"googleTagGateway"},[N.ui]:{Component:function GoogleTagGatewayWarningNotification({id:e,Notification:i}){const t=(0,De.A)(),n=(0,o.useSelect)(e=>e(Q.O4).getDocumentationLinkURL("google-tag-gateway-server-requirements"));return(0,ee.jsx)(i,{children:(0,ee.jsx)(ye.A,{notificationID:e,type:Te.A.TYPES.WARNING,description:(0,pe.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,ee.jsx)(ze.A,{href:n,onClick:()=>{(0,se.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:N.bI.DASHBOARD_TOP,viewContexts:[G.jU],checkRequirements:async({select:e,resolveSelect:i})=>{if(!e(Q.O4).isAnyGoogleTagGatewayModuleConnected())return!1;await i(Q.O4).getGoogleTagGatewaySettings();const{isGoogleTagGatewayEnabled:t,isGTGHealthy:o,isScriptAccessEnabled:n}=e(Q.O4);return t()&&(!o()||!n())},isDismissible:!0,featureFlag:"googleTagGateway"},[Ve]:{Component:AnalyticsAndAdSenseAccountsDetectedAsLinkedOverlayNotification,priority:N.FQ.SETUP_CTA_HIGH,areaSlug:N.bI.OVERLAYS,groupID:N.He.SETUP_CTAS,viewContexts:[G.jU,G.Ax],isDismissible:!0,checkRequirements:async({select:e,resolveSelect:i})=>{await Promise.all([i(I.oR).getAuthentication(),i(Y.i).getModules()]);const t=e(Y.i).isModuleConnected(X.Py),o=e(Y.i).isModuleConnected(W.L1),n=e(I.oR).hasAccessToShareableModule(X.Py),a=e(I.oR).hasAccessToShareableModule(W.L1);if(!(t&&o&&n&&a))return!1;await
|
|||
|
|
(0,s._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(A,h),T[t][0].toLocaleDateString(A,h)),y=(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[i],g[i](a),d,(0,l.Eo)(Math.abs(M),"%"));D.push([e[0],`<div class="${n()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":M>0,"googlesitekit-visualization-tooltip--down":M<0})}">\n\t\t\t\t<p>${N}</p>\n\t\t\t\t<p>${y}</p>\n\t\t\t</div>`,j?(0,l.vH)(a):a,j?(0,l.vH)(r):r])}),D}},75487:(e,i,t)=>{t.d(i,{fh:()=>Cell,xA:()=>M,fI:()=>I});var o=t(62688),n=t.n(o),a=t(4452),s=t.n(a),r=t(62540);function Cell(e){const{className:i,alignTop:t,alignMiddle:o,alignBottom:n,alignRight:a,alignLeft:l,smAlignRight:c,mdAlignRight:I,lgAlignRight:g,smSize:M,smStart:u,smOrder:d,mdSize:N,mdStart:j,mdOrder:y,lgSize:D,lgStart:m,lgOrder:p,size:z,children:T,...A}=e;return(0,r.jsx)("div",{...A,className:s()(i,"mdc-layout-grid__cell",{"mdc-layout-grid__cell--align-top":t,"mdc-layout-grid__cell--align-middle":o,"mdc-layout-grid__cell--align-bottom":n,"mdc-layout-grid__cell--align-right":a,"mdc-layout-grid__cell--align-left":l,"mdc-layout-grid__cell--align-right-phone":c,"mdc-layout-grid__cell--align-right-tablet":I,"mdc-layout-grid__cell--align-right-desktop":g,[`mdc-layout-grid__cell--span-${z}`]:12>=z&&z>0,[`mdc-layout-grid__cell--span-${D}-desktop`]:12>=D&&D>0,[`mdc-layout-grid__cell--start-${m}-desktop`]:12>=m&&m>0,[`mdc-layout-grid__cell--order-${p}-desktop`]:12>=p&&p>0,[`mdc-layout-grid__cell--span-${N}-tablet`]:8>=N&&N>0,[`mdc-layout-grid__cell--start-${j}-tablet`]:8>=j&&j>0,[`mdc-layout-grid__cell--order-${y}-tablet`]:8>=y&&y>0,[`mdc-layout-grid__cell--span-${M}-phone`]:4>=M&&M>0,[`mdc-layout-grid__cell--start-${u}-phone`]:4>=u&&u>0,[`mdc-layout-grid__cell--order-${d}-phone`]:4>=d&&d>0}),children:T})}Cell.propTypes={smSize:n().number,smStart:n().number,smOrder:n().number,mdSize:n().number,mdStart:n().number,mdOrder:n().number,lgSize:n().number,lgStart:n().number,lgOrder:n().number,size:n().number,alignTop:n().bool,alignMiddle:n().bool,alignBottom:n().bool,alignRight:n().bool,alignLeft:n().bool,smAlignRight:n().bool,mdAlignRight:n().bool,lgAlignRight:n().bool,className:n().string,children:n().node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,smOrder:0,mdSize:0,mdStart:0,mdOrder:0,lgSize:0,lgStart:0,lgOrder:0};var l=t(63696);const c=(0,l.forwardRef)(({className:e,children:i,...t},o)=>(0,r.jsx)("div",{ref:o,className:s()("mdc-layout-grid__inner",e),...t,children:i}));c.displayName="Row",c.propTypes={className:n().string,children:n().node},c.defaultProps={className:""};const I=c,g=(0,l.forwardRef)(({alignLeft:e,fill:i,className:t,children:o,collapsed:n,...a},l)=>(0,r.jsx)("div",{className:s()("mdc-layout-grid",t,{"mdc-layout-grid--align-left":e,"mdc-layout-grid--collapsed":n,"mdc-layout-grid--fill":i}),...a,ref:l,children:o}));g.displayName="Grid",g.propTypes={alignLeft:n().bool,fill:n().bool,className:n().string,collapsed:n().bool,children:n().node},g.defaultProps={className:""};const M=g},76422:(e,i,t)=>{t.d(i,{A:()=>OverlayNotification});var o=t(62688),n=t.n(o),a=t(50539),s=t(71423),r=t(7070),l=t(5230),c=t(4452),I=t.n(c),g=t(32947),M=t(63696),u=t(15167),d=t(62540);function Title({children:e}){return(0,d.jsx)(u.A,{as:"h3",size:"medium",type:"title",className:"googlesitekit-overlay-card__title",children:e})}function Description({children:e}){return(0,d.jsx)("p",{className:"googlesitekit-overlay-card__description",children:e})}Title.propTypes={children:n().node.isRequired},Description.propTypes={children:n().node.isRequired};var N=t(82871),j=t(49383);function DismissButton({label:e=(0,N.__)("Maybe later","google-site-kit"),onClick:i,disabled:t}){return(0,d.jsx)(j.Button,{onClick:i,disabled:t,tertiary:!0,children:e})}const y={label:n().string,onClick:n().func,disabled:n().bool};function CTAButton(e){const{label:i,...t}=e;return(0,d.jsx)(j.Button,{...t,children:i})}DismissButton.propTypes=y,CTAButton.propTypes={...y,href:n().string,target:n().string,trailingIcon:n().object};var D=t(98652);function Body({title:e,description:i,ctaButton:t,dismissButton:o,GraphicDesktop:n,GraphicMobile:a,newBadge:
|
|||
|
|
(0,s.__)("%s (Please try again.)","google-site-kit"),p)),u||(p=(0,s.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */
|
|||
|
|
(0,s.__)("Error: %s","google-site-kit"),p));const z=i?.data?.reconnectURL;z&&(0,r.m)(z)&&(p=(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"),p,z));return(0,M.jsx)(I.A,{className:e,type:I.A.TYPES.ERROR,description:(0,M.jsx)("span",{dangerouslySetInnerHTML:(0,g.p9)(p,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:m?{label:(0,s.__)("Retry","google-site-kit"),onClick:D}:void 0,hideIcon:N})}ErrorNotice.propTypes={className:n().string,error:n().shape({message:n().string}),hasButton:n().bool,storeName:n().string,message:n().string,noPrefix:n().bool,skipRetryMessage:n().bool,hideIcon:n().bool}},78340:(e,i,t)=>{t.d(i,{s:()=>o});const o="core/forms"},79829:(e,i,t)=>{t.d(i,{Eo:()=>g,JK:()=>N,K5:()=>d,jq:()=>u,mK:()=>I});var o=t(17243),n=t(50532),a=t.n(n),s=t(82871);function r(e,i={}){const{formatUnit:t,formatDecimal:o}=function(e,i={}){const{hours:t,minutes:o,seconds:n}=l(e);return{hours:t,minutes:o,seconds:n,formatUnit(){const{unitDisplay:a="short",...r}=i,l={unitDisplay:a,...r,style:"unit"};return 0===e?u(n,{...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"),n?u(n,{...l,unit:"second"}):"",o?u(o,{...l,unit:"minute"}):"",t?u(t,{...l,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"),n);if(0===e)return i;const a=(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),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"),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"),n?i:"",o?a:"",t?r:"").trim()}}}(e,i);try{return t()}catch{return o()}}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 I(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=I(i),{style:n="metric"}=t;return"metric"===n?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"),u(c(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"),u(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"),u(c(e),e%10==0?{}:i)):u(e,{signDisplay:"never",maximumFractionDigits:1})}(e):"duration"===n?r(e,t):"durationISO"===n?function(e){let{hours:i,minutes:t,seconds:o}=l(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):u(e,t)}const M=a()(console.warn);function u(e,i={}){const{locale:t=N(),...o}=i;try{return new Intl.NumberFormat(t,o).format(e)}catch(i){M(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(t)}, ${JSON.stringify(o)} ).format( ${typeof e} )`,i.message)}const n={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},a=["signDisplay","compactDisplay"],s={};for(const[e,i]of Object.entries(o))n[e]&&i===n[e]||a.includes(e)||(s[e]=i);try{return new Intl.NumberFormat(t,s).format(e)}catch{return new Intl.NumberFormat(t).format(e)}}function d(e,i={}){const{locale:t=N(),style:o="long",type:n="conjunction"}=i;if(Intl.ListFormat){return new Intl.ListFormat(t,{style:o,type:n}).format(e)}
|
|||
|
|
/* translators: used between list items, there is a space after the comma. */const a=(0,s.__)(", ","google-site-kit");return e.join(a)}function N(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}},80035:(e,i,t)=>{t.d(i,{A:()=>m});var o,n=t(62688),a=t.n(n),s=t(4452),r=t.n(s),l=t(63696),c=t(19793);function I(){return I=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},I.apply(null,arguments)}const warning_notice=e=>l.createElement("svg",I({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),o||(o=l.createElement("path",{fill:"currentColor",d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1m0 14a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m-1-2h2V6h-2z"})));var g=t(42343),M=t(49655),u=t(62540);const d={[M.Q.NEW]:g.A,[M.Q.SUCCESS]:c.A,[M.Q.INFO]:warning_notice,[M.Q.WARNING]:warning_notice,[M.Q.ERROR]:warning_notice};function Icon({type:e}){const i=d[e]||warning_notice;return(0,u.jsx)(i,{width:24,height:24})}function Title({className:e,children:i}){return(0,u.jsx)("p",{className:r()("googlesitekit-notice__title",e),children:i})}function Description({className:e,children:i}){return(0,u.jsx)("p",{className:r()("googlesitekit-notice__description",e),children:i})}Icon.propTypes={type:a().oneOf(Object.values(M.Q))},Title.propTypes={className:a().string,children:a().node},Description.propTypes={className:a().string,children:a().node};var N=t(49383),j=t(83366);function CTAButton({label:e,disabled:i,inProgress:t,onClick:o,href:n,external:a=!1,hideExternalIndicator:s=!1}){let r;return a&&!s&&(r=(0,u.jsx)(j.A,{width:14,height:14})),(0,u.jsx)(N.SpinnerButton,{className:"googlesitekit-notice__cta",disabled:i,isSaving:t,onClick:o,href:n,target:a?"_blank":void 0,trailingIcon:r,children:e})}CTAButton.propTypes={label:a().string.isRequired,disabled:a().bool,inProgress:a().bool,onClick:a().func,href:a().string,external:a().bool,hideExternalIndicator:a().bool};var y=t(82871);function DismissButton({label:e=(0,y.__)("Got it","google-site-kit"),onClick:i,disabled:t}){return(0,u.jsx)(N.Button,{onClick:i,disabled:t,tertiary:!0,children:e})}DismissButton.propTypes={label:a().string,onClick:a().func.isRequired,disabled:a().bool};const D=(0,l.forwardRef)(({className:e,title:i,description:t,dismissButton:o,ctaButton:n,type:a=M.Q.INFO,children:s,hideIcon:l},c)=>(0,u.jsxs)("div",{ref:c,className:r()("googlesitekit-notice",`googlesitekit-notice--${a}`,e),children:[!l&&(0,u.jsx)("div",{className:"googlesitekit-notice__icon",children:(0,u.jsx)(Icon,{type:a})}),(0,u.jsxs)("div",{className:"googlesitekit-notice__content",children:[i&&(0,u.jsx)(Title,{children:i}),t&&(0,u.jsx)(Description,{children:t})]}),(o?.label||o?.onClick||n?.label&&(n?.onClick||n?.href)||s)&&(0,u.jsxs)("div",{className:"googlesitekit-notice__action",children:[s,(o?.label||o?.onClick)&&(0,u.jsx)(DismissButton,{label:o.label,onClick:o.onClick,disabled:o.disabled}),n?.label&&(n?.onClick||n?.href)&&(0,u.jsx)(CTAButton,{label:n.label,onClick:n.onClick,inProgress:n.inProgress,disabled:n.disabled,href:n.href,external:n.external,hideExternalIndicator:n.hideExternalIndicator})]})]}));D.TYPES=M.Q,D.propTypes={className:a().string,title:a().oneOfType([a().string,a().object]),description:a().node,type:a().oneOf(Object.values(M.Q)),dismissButton:a().shape(DismissButton.propTypes),ctaButton:a().shape({...CTAButton.propTypes,label:a().string}),children:a().node,hideIcon:a().bool};const m=D},82046:(e,i,t)=>{t.d(i,{C:()=>a,p:()=>n});var o=t(15210);function n(e,i={}){return{__html:o.O.sanitize(e,i)}}function a(e){const i="object"==typeof e?e.toString():e;return i?.replace?.(/\/+$/,"")}},82871:e=>{e.exports=googlesitekit.i18n},83366:(e,i,t)=>{t.d(i,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var o,n=t(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];f
|