30 lines
254 KiB
JavaScript
30 lines
254 KiB
JavaScript
|
|
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[25],{1e3:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return GoogleTagGatewaySetupBanner}));var n=i(6),r=i.n(n),a=i(16),o=i.n(a),c=i(14),s=i.n(c),u=i(0),l=i.n(u),g=i(1),I=i(42),M=i(2),d=i(4),j=i(203),f=i(41),N=i(51),p=i(13),y=i(7),m=i(9),D=i(239),b=i(1004),v=i(1005),O=i(823);function GoogleTagGatewaySetupBanner(t){var i=t.id,n=t.Notification,a=Object(g.useState)(!1),c=s()(a,2),u=c[0],l=c[1],h=Object(d.useDispatch)(p.c),T=h.setGoogleTagGatewayEnabled,E=h.saveGoogleTagGatewaySettings,z={tooltipSlug:i,content:Object(M.__)("You can always enable Google tag gateway for advertisers in Settings later","google-site-kit"),dismissLabel:Object(M.__)("Got it","google-site-kit")},S=Object(j.b)(z),A=Object(d.useSelect)((function(e){return e(p.c).isUsingProxy()})),k=Object(d.useDispatch)(f.a),x=k.dismissNotification,w=k.registerNotification,C=Object(d.useSelect)((function(e){return e(p.c).getDocumentationLinkURL("google-tag-gateway-introduction")})),L=function(){var e=o()(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),T(!0),e.next=4,E();case 4:if(t=e.sent,!t.error){e.next=9;break}return l(!1),e.abrupt("return");case 9:x(i),w(O.a,{Component:O.b,areaSlug:N.c.DASHBOARD_TOP,isDismissible:!1,featureFlag:"googleTagGateway"}),l(!1);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),P=Object(d.useSelect)((function(e){var t=e(p.c).getGoogleTagGatewaySettings();return e(p.c).getErrorForAction("saveGoogleTagGatewaySettings",[t])})),R=Object(d.useDispatch)(y.a).triggerSurvey,Z=Object(g.useCallback)((function(){A&&R("view_gtg_setup_cta",{ttl:m.a})}),[R,A]);return e.createElement(n,{onView:Z},e.createElement(D.a,{notificationID:i,title:Object(M.__)("Get more comprehensive stats by collecting metrics via your own site","google-site-kit"),description:Object(I.a)(Object(M.__)("Enable Google tag gateway for advertisers (<em>beta</em>) to send measurement through your own domain - this helps improve the quality and completeness of Analytics or Ads metrics.","google-site-kit"),{em:e.createElement("em",null)}),learnMoreLink:{href:C},ctaButton:{label:Object(M.__)("Enable Google tag gateway for advertisers","google-site-kit"),onClick:L,inProgress:u},dismissButton:{label:Object(M.__)("Maybe later","google-site-kit"),onClick:S},svg:{desktop:b.a,mobile:v.a,verticalPosition:"bottom"},errorText:null==P?void 0:P.message}))}GoogleTagGatewaySetupBanner.propTypes={id:l.a.string,Notification:l.a.elementType}}).call(this,i(3))},1004:function(e,t,i){"use strict";t.a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDg1IiBoZWlnaHQ9IjI1OCIgdmlld0JveD0iMCAwIDQ4NSAyNTgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xNDYxXzExMzgzKSI+CjxwYXRoIGQ9Ik00MzMuMzQ1IDMwOC41MDVDNDAyLjg3MiAzMzkuOTE0IDM2Mi43NzcgMzQ0LjkyOSAzMjEuMDUxIDMzOS43MDhDMjQ5Ljc3OSAzMzAuNzkzIDI1Mi4yNTggMjY1LjUgMjAyLjcyIDIzMUMxNzEuNjA5IDIwOS4zMzMgMTE5Ljc0MiAyNTUuODA0IDY1LjcyMDMgMjM1LjVDNS4yOTE0NyAyMTIuNzg4IC0zMi43Nzk2IDEzMC4wMDMgMzkuMjIwMyA2Ny41QzkzLjcwMzUgMjAuMjAzNCAxMzEuMDUgNTEuOTc5NCAxNzIuNzIgNDlDMjE0LjM5MSA0Ni4wMjA2IDIyOS40ODMgMzUuNzQzOSAyNDguMjU4IDE4LjYyOTJDMjcwLjE2MiAtMS4zMzg4NCAzMDguNzIgLTMuOTExOCAzMzcuNDcyIDQuNTc1MzhDMzY2LjgxIDEzLjIzNTUgMzg3LjY5MSAzMy44NTU4IDM5NS42NzQgNjMuNDk3MUM0MDEuNzUxIDg2LjA3IDM5OS4xMDEgMTI4LjgzMiA0MTUuMjU4IDE1MC4xMjlDNDM3LjI1OCAxNzkuMTI5IDQ1Mi43MDggMTg3Ljc0MiA0NTkuNzc3IDIyMS42MjlDNDY1LjkxNyAyNTEuMDYgNDUxLjU5NSAyODkuNjUgNDMzLjM0NSAzMDguNTA1WiIgZmlsbD0iI0I4RTZDQSIvPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMF9kXzE0NjFfMTEzODMpIj4KPHBhdGggZD0iTTExNy4yMiA0NS43NjM5QzExNy4yMiAzOC4xNjIzIDEyMy4zODMgMzIgMTMwLjk4NCAzMkgyOTguNDU2QzMwNi4wNTggMzIgMzEyLjIyIDM4LjE2MjMgMzEyLjIyIDQ1Ljc2MzlWMjYyLjIzNkMzMTIuMjIgMjY5LjgzOCAzMDYuMDU4IDI3NiAyOTguNDU2IDI3NkgxMzAuOTg0QzEyMy4zODMgMjc2IDExNy4yMiAyNjkuODM4IDExNy4yMiAyNjIuMjM2VjQ1Ljc2MzlaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxwYXRoIGQ9Ik00Ny45MTE4IDg3LjY4MTFDNjQuNzI5OSA4Ny42ODExIDc4LjI4NDUgNzMuNjc2NSA3OC4yODQ1IDU2LjVDNzguMjg0NSAzO
|
|||
|
|
Object(n.__)("%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"),null===(t=r[a[0]])||void 0===t?void 0:t.name):c&&o?Object(n.__)("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"):c||o||!r?c&&!o?Object(n.__)("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"):void 0:Object(n.sprintf)(/* translators: %s: module name. */
|
|||
|
|
Object(n.__)("%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"),null===(i=Object.values(r)[0])||void 0===i?void 0:i.name)}},1011:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return AdditionalDescription}));var n=i(27),r=i.n(n),a=i(15),o=i(2),c=i(1),s=i(4),u=i(11),l=i(19),g=i(1012);function AdditionalDescription(t){var i=t.inProgress,n=t.selectedModuleSlugs,I=t.hasUserRecoverableModules,M=t.recoverableModules,d=t.userRecoverableModuleSlugs,j=t.hasMultipleRecoverableModules,f=t.setSelectedModuleSlugs,N=Object(s.useSelect)((function(e){return e(l.a).getRecoveryErrors()}));return I||j?I?e.createElement(c.Fragment,null,j&&e.createElement(c.Fragment,null,n&&d.map((function(t){return e.createElement("div",{key:t},e.createElement(u.Checkbox,{checked:n.includes(t),name:"module-recovery-alert-checkbox",id:"module-recovery-alert-checkbox-".concat(t),onChange:function(){n.includes(t)?f(Object(a.without)(n,t)):f([].concat(r()(n),[t]))},disabled:i,value:t},M[t].name))})),e.createElement("p",{className:"googlesitekit-publisher-win__desc"},Object(o.__)("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"))),!j&&e.createElement("p",{className:"googlesitekit-publisher-win__desc"},Object(o.__)("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(N).length>0&&e.createElement(g.a,{recoveryErrors:N})):e.createElement("ul",{className:"mdc-list mdc-list--non-interactive"},Object.values(M||{}).map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t.slug},e.createElement("span",{className:"mdc-list-item__text"},t.name))}))):null}}).call(this,i(3))},1012:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return Errors}));var n=i(0),r=i.n(n),a=i(1),o=i(2);function Errors(t){var i=t.recoveryErrors;return e.createElement("div",{className:"googlesitekit-module-recovery-errors"},1===Object.keys(i).length&&e.createElement("p",null,Object(o.sprintf)(/* translators: %s: Error message */
|
|||
|
|
Object(o.__)("Error: %s","google-site-kit"),Object.values(i)[0].message)),Object.keys(i).length>1&&e.createElement(a.Fragment,null,e.createElement("p",null,Object(o.__)("The following modules failed to be recovered:","google-site-kit")),e.createElement("ul",null,Object.keys(i).map((function(t){return e.createElement("li",{key:t},Object(o.sprintf)(/* translators: 1: Module name, 2: Error message */
|
|||
|
|
Object(o.__)("%1$s: %2$s","google-site-kit"),i[t].name,i[t].message))})))))}Errors.propTypes={recoveryErrors:r.a.object.isRequired}}).call(this,i(3))},1013:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return SiteKitSetupSuccessNotification}));var n=i(14),r=i.n(n),a=i(0),o=i.n(a),c=i(2),s=i(1),u=i(4),l=i(13),g=i(1014),I=i(1015),M=i(189),d=i(577),j=i(263),f=i(205);function SiteKitSetupSuccessNotification(t){var i=t.id,n=t.Notification,a=Object(u.useSelect)((function(e){return e(l.c).getConnectMoreServicesURL()})),o=Object(f.a)("notification"),N=r()(o,2)[1],p=Object(s.useCallback)((function(){N(void 0)}),[N]);return e.createElement(n,{className:"googlesitekit-publisher-win"},e.createElement(I.a,{title:Object(c.__)("Congrats on completing the setup for Site Kit!","google-site-kit"),description:e.createElement(M.a,{text:Object(c.__)("Connect more services to see more stats.","google-site-kit"),learnMoreLink:e.createElement(d.a,{id:i,label:Object(c.__)("Go to Settings","google-site-kit"),url:a,external:!1})}),actions:e.createElement(j.a,{id:i,dismissLabel:Object(c.__)("OK, Got it!","google-site-kit"),onDismiss:p}),SVG:g.a}))}SiteKitSetupSuccessNotification.propTypes={id:o.a.string.isRequired,Notification:o.a.elementType}}).call(this,i(3))},1014:function(e,t,i){"use strict";var n=i(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}var a=n.createElement("path",{stroke:"#E8EAED",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:6,d:"M200 10v31.42M105 35.46l15.71 27.2M35.46 105l27.2 15.71M10 200h31.42M35.46 295l27.2-15.71M364.54 295l-27.2-15.71M390 200h-31.42M364.54 105l-27.2 15.71M295 35.46l-15.71 27.2"}),o=n.createElement("path",{d:"M251.2 51.21c-.67-1 10.33-9.56 11.16-10.16 5.81-4.22 12.64-8 19.94-8.46 7.91-.53 15.45 2.58 23 4.58 10.31 2.77 21.44 3.8 32.09 1.69 9.59-1.9 20.83-5.9 27.87-12.93-.24.24.3 2.83.33 3.18a65.31 65.31 0 010 8.51 59.1 59.1 0 01-7 25.06 43.41 43.41 0 01-18.94 18.13C329.14 86 317.78 88.93 307 93.41c-6.7 2.79-18.11 7.23-18.11 16.07z",fill:"#F439A0"}),c=n.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M248.83 47.55l93.63 144.69"}),s=n.createElement("path",{d:"M279.89 172.88c18.52 6.68 53.35 9.87 64.53-10.87 14.77-27.39-23.47-38.52-43.87-34.53M88.94 145C13 233.15 70 296.93 119 267.62",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:9}),u=n.createElement("path",{d:"M234.54 260.65c59.23 111 7.37 98-23.53 93.23l2 20.19M186.58 274.6c31.93 144.76-28.4 65.93-35.58 53.33l-12.25 14.36",stroke:"#188038",strokeLinejoin:"round",strokeWidth:9}),l=n.createElement("path",{d:"M234.54 260.65q3.92 7.32 7.19 14M186.58 274.6q2.19 9.88 3.81 18.42",stroke:"#137333",strokeLinejoin:"round",strokeWidth:9}),g=n.createElement("path",{fill:"#1E8E3E",d:"M170.71 172.85l-98 39.35 39.35 98 98-39.35 98-39.35-39.35-98-98 39.35z"}),I=n.createElement("path",{d:"M158.45 268.63c-16.25 2.37-32.52-5.2-43.75-18.63l83.92-22.8",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6}),M=n.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M316.62 152.31l25.84 39.93"});t.a=function SvgSuccessGreen(e){return n.createElement("svg",r({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,u,l,g,I,M)}},1015:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return NotificationWithSmallerRightSVG}));var n=i(17),r=i(188);function NotificationWithSmallerRightSVG(t){var i=t.actions,a=t.description,o=t.title,c=t.SVG;return e.createElement(n.e,null,e.createElement(n.k,null,e.createElement(n.a,{smSize:4,mdSize:6,lgSize:8,className:"googlesitekit-publisher-win__content"},e.createElement(r.a,{title:o}),a,i),e.createElement(n.a,{smSize:4,mdSize:2,lgSize:4,className:"googlesitekit-publisher-win__image"},e.createElement("div",{className:"googlesitekit-publisher-win__image-smaller"},e.createElement(c,null)))))}}).call(this,i(3))},1016:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return ModuleSetupSuccessNotification}
|
|||
|
|
Object(c.__)("Congrats on completing the setup for %s!","google-site-kit"),null==y?void 0:y.name),description:Object(c.__)("Connect more services to see more stats.","google-site-kit"),dismissButton:{onClick:function(){o(void 0),p(void 0)}},ctaButton:{label:Object(c.__)("Go to Settings","google-site-kit"),href:m}}))}ModuleSetupSuccessNotification.propTypes={id:o.a.string.isRequired,Notification:o.a.elementType.isRequired}}).call(this,i(3))},1017:function(e,t,i){"use strict";var n=i(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}var a=n.createElement("g",{clipPath:"url(#analytics-adsense-linked-desktop_svg__clip0_100_3563)"},n.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0V16z",fill:"#B8E6CA"}),n.createElement("g",{filter:"url(#analytics-adsense-linked-desktop_svg__filter0_d_100_3563)"},n.createElement("rect",{x:24,y:23,width:248,height:174,rx:11,fill:"#fff"}),n.createElement("rect",{x:48,y:96,width:116,height:14,rx:7,fill:"#9CEBEB"}),n.createElement("rect",{x:48,y:124,width:141,height:14,rx:7,fill:"#9CEBEB"}),n.createElement("rect",{x:48,y:153,width:97,height:14,rx:7,fill:"#9CEBEB"}),n.createElement("path",{d:"M222 103a7 7 0 017-7h12a7 7 0 110 14h-12a7 7 0 01-7-7zM222 131a7 7 0 017-7h12a7 7 0 110 14h-12a7 7 0 01-7-7zM222 159a7 7 0 017-7h12a7 7 0 110 14h-12a7 7 0 01-7-7z",fill:"#EBEEF0"}),n.createElement("rect",{x:48,y:44,width:36,height:9,rx:4.5,fill:"#EBEEF0"}),n.createElement("rect",{x:46.672,y:162.656,width:55.734,height:9.516,rx:4.758,fill:"#EBEEF0"}),n.createElement("path",{d:"M272 72H24",stroke:"#EBEEF0",strokeWidth:2}))),o=n.createElement("defs",null,n.createElement("clipPath",{id:"analytics-adsense-linked-desktop_svg__clip0_100_3563"},n.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0V16z",fill:"#fff"})),n.createElement("filter",{id:"analytics-adsense-linked-desktop_svg__filter0_d_100_3563",x:8,y:11,width:280,height:206,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},n.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),n.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),n.createElement("feOffset",{dy:4}),n.createElement("feGaussianBlur",{stdDeviation:8}),n.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),n.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),n.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_100_3563"}),n.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_100_3563",result:"shape"})));t.a=function SvgAnalyticsAdsenseLinkedDesktop(e){return n.createElement("svg",r({viewBox:"0 0 296 163",fill:"none"},e),a,o)}},1018:function(e,t,i){"use strict";var n=i(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}var a=n.createElement("g",{clipPath:"url(#analytics-adsense-linked-mobile_svg__clip0_413_2990)"},n.createElement("path",{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.509z",fill:"#B8E6CA"}),n.createElement("g",{filter:"url(#analytics-adsense-linked-mobile_svg__filter0_d_413_2990)"},n.createElement("rect",{x:74.81,y:12.732,width:193.381,height:135.679,rx:8.577,fill:"#fff"}),n.createElement("rect",{x:93.524,y:69.655,width:90.452,height:10.917,rx:5.458,fill:"#9CEBEB"}),n.createElement("rect",{x:93.524,y:91.488,width:109.946,height:10.917,rx:5.458,fill:"#9CEBEB"}),n.createElement("rect",{x:93.524,y:114.101,width:75.637,height:
|
|||
|
|
Object(s._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(k,x),A[i][0].toLocaleDateString(k,x)),f=Object(s.sprintf)(/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
|
|||
|
|
Object(s._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),a[t],g[t](r),d,Object(l.B)(Math.abs(M),"%"));h.push([e[0],'<div class="'.concat(o()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":M>0,"googlesitekit-visualization-tooltip--down":M<0}),'">\n\t\t\t\t<p>').concat(j,"</p>\n\t\t\t\t<p>").concat(f,"</p>\n\t\t\t</div>"),v?Object(l.j)(r):r,v?Object(l.j)(c):c])}})),h}},48:function(e,t,i){"use strict";(function(e){var n=i(5),r=i.n(n),a=i(0),o=i.n(a),c=i(10),s=i.n(c),u=i(23);function PreviewBlock(t){var i,n,a=t.className,o=t.width,c=t.height,l=t.shape,g=t.padding,I=t.smallWidth,M=t.smallHeight,d=t.tabletWidth,j=t.tabletHeight,f=t.desktopWidth,N=t.desktopHeight,p=Object(u.e)(),y={width:(i={},r()(i,u.b,I),r()(i,u.c,d),r()(i,u.a,f),r()(i,u.d,f),i),height:(n={},r()(n,u.b,M),r()(n,u.c,j),r()(n,u.a,N),r()(n,u.d,f),n)};return e.createElement("div",{className:s()("googlesitekit-preview-block",a,{"googlesitekit-preview-block--padding":g}),style:{width:y.width[p]||o,height:y.height[p]||c}},e.createElement("div",{className:s()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===l})}))}PreviewBlock.propTypes={className:o.a.string,width:o.a.string,height:o.a.string,shape:o.a.string,padding:o.a.bool,smallWidth:o.a.string,smallHeight:o.a.string,tabletWidth:o.a.string,tabletHeight:o.a.string,desktopWidth:o.a.string,desktopHeight:o.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,i(3))},51:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return r})),i.d(t,"e",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"d",(function(){return c}));var n="warning-notification-gtg",r="gtg-setup-cta",a={ERROR_HIGH:30,ERROR_LOW:60,WARNING:100,INFO:150,SETUP_CTA_HIGH:150,SETUP_CTA_LOW:200},o={HEADER:"notification-area-header",DASHBOARD_TOP:"notification-area-dashboard-top",OVERLAYS:"notification-area-overlays"},c={DEFAULT:"default",SETUP_CTAS:"setup-ctas"}},577:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return LearnMoreLink}));var n=i(20),r=i.n(n),a=i(22),o=i.n(a),c=i(0),s=i.n(c),u=i(21),l=i(69);function LearnMoreLink(t){var i=t.id,n=t.label,a=t.url,c=t.ariaLabel,s=t.gaTrackingEventArgs,g=t.external,I=void 0===g||g,M=o()(t,["id","label","url","ariaLabel","gaTrackingEventArgs","external"]),d=Object(l.a)(i);return e.createElement(u.a,r()({onClick:function(e){e.persist(),d.clickLearnMore(null==s?void 0:s.label,null==s?void 0:s.value)},href:a,"aria-label":c,external:I},M),n)}LearnMoreLink.propTypes={id:s.a.string,label:s.a.string,url:s.a.string,ariaLabel:s.a.string,gaTrackingEventArgs:s.a.shape({label:s.a.string,value:s.a.string}),external:s.a.bool}}).call(this,i(3))},588:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var n="consent-mode-setup-cta-widget"},59:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return ErrorNotice}));var n=i(0),r=i.n(n),a=i(1),o=i(2),c=i(115),s=i(4),u=i(34),l=i(35),g=i(9);function ErrorNotice(t){var i,n=t.className,r=t.error,I=t.hasButton,M=void 0!==I&&I,d=t.storeName,j=t.message,f=void 0===j?r.message:j,N=t.noPrefix,p=void 0!==N&&N,y=t.skipRetryMessage,m=t.hideIcon,D=void 0!==m&&m,b=Object(s.useDispatch)(),v=Object(s.useSelect)((function(e){return d?e(d).getSelectorDataForError(r):null})),O=Object(a.useCallback)((function(){b(v.storeName).invalidateResolution(v.name,v.args)}),[b,v]);if(!f||Object(u.f)(r))return null;var h=M&&Object(u.d)(r,v),T=f;M||y||(T=Object(o.sprintf)(/* translators: %s: Error message from Google API. */
|
|||
|
|
Object(o.__)("%s (Please try again.)","google-site-kit"),T)),p||(T=Object(o.sprintf)(/* translators: $%s: Error message */
|
|||
|
|
Object(o.__)("Error: %s","google-site-kit"),T));var E=null==r||null===(i=r.data)||void 0===i?void 0:i.reconnectURL;E&&Object(c.a)(E)&&(T=Object(o.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */
|
|||
|
|
Object(o.__)('%1$s To fix this, <a href="%2$s">redo the plugin setup</a>.',"google-site-kit"),T,E));return e.createElement(l.a,{className:n,type:l.a.TYPES.ERROR,description:e.createElement("span",{dangerouslySetInnerHTML:Object(g.F)(T,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:h?{label:Object(o.__)("Retry","google-site-kit"),onClick:O}:void 0,hideIcon:D})}ErrorNotice.propTypes={className:r.a.string,error:r.a.shape({message:r.a.string}),hasButton:r.a.bool,storeName:r.a.string,message:r.a.string,noPrefix:r.a.bool,skipRetryMessage:r.a.bool,hideIcon:r.a.bool}}).call(this,i(3))},61:function(e,t,i){"use strict";(function(e){var n,r;i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return o}));var a=new Set((null===(n=e)||void 0===n||null===(r=n._googlesitekitBaseData)||void 0===r?void 0:r.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return t instanceof Set&&t.has(e)}}).call(this,i(28))},62:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(43);function r(e){return function(){e[n.a]=e[n.a]||[],e[n.a].push(arguments)}}},63:function(e,t,i){"use strict";i.d(t,"a",(function(){return T})),i.d(t,"b",(function(){return E})),i.d(t,"c",(function(){return z})),i.d(t,"d",(function(){return A})),i.d(t,"e",(function(){return k})),i.d(t,"g",(function(){return w})),i.d(t,"f",(function(){return C}));var n,r=i(6),a=i.n(r),o=i(27),c=i.n(o),s=i(5),u=i.n(s),l=i(12),g=i.n(l),I=i(66),M=i.n(I),d=i(15),j=i(125);function f(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function N(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?f(Object(i),!0).forEach((function(t){u()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):f(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var p=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t.reduce((function(e,t){return N(N({},e),t)}),{}),r=t.reduce((function(e,t){return[].concat(c()(e),c()(Object.keys(t)))}),[]),a=S(r);return g()(0===a.length,"collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ".concat(a.join(", "),". Check your data stores for duplicates.")),n},y=p,m=p,D=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n,r=[].concat(t);return"function"!=typeof r[0]&&(n=r.shift()),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.reduce((function(e,i){return i(e,t)}),e)}},b=p,v=p,O=p,h=function(e){return e},T=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=O.apply(void 0,c()(t.map((function(e){return e.initialState||{}}))));return{initialState:n,controls:m.apply(void 0,c()(t.map((function(e){return e.controls||{}})))),actions:y.apply(void 0,c()(t.map((function(e){return e.actions||{}})))),reducer:D.apply(void 0,[n].concat(c()(t.map((function(e){return e.reducer||h}))))),resolvers:b.apply(void 0,c()(t.map((function(e){return e.resolvers||{}})))),selectors:v.apply(void 0,c()(t.map((function(e){return e.selectors||{}}))))}},E={getRegistry:function(){return{payload:{},type:"GET_REGISTRY"}},await:a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{payload:{value:t},type:"AWAIT"});case 1:case"end":return e.stop()}}),e)}))},z=(n={},u()(n,"GET_REGISTRY",Object(j.a)((function(e){return function(){return e}}))),u()(n,"AWAIT",(function(e){return e.payload.value})),n),S=function(e){for(var t=[],i={},n=0;n<e.length;n++){var r=e[n];i[r]=i[r]>=1?i[r]+1:1,i[r]>1&&t.push(r)}return t},A={actions:E,controls:z,reducer:h},k=function(e){return function(t){return x(e(t))}},x=M()((function(e){retur
|
|||
|
|
Object(d._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?T(a,f(f({},o),{},{unit:"second"})):"",r?T(r,f(f({},o),{},{unit:"minute"})):"",n?T(n,f(f({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(d.sprintf)(
|
|||
|
|
// translators: %s: number of seconds with "s" as the abbreviated unit.
|
|||
|
|
Object(d.__)("%ds","google-site-kit"),a);if(0===e)return t;var i=Object(d.sprintf)(
|
|||
|
|
// translators: %s: number of minutes with "m" as the abbreviated unit.
|
|||
|
|
Object(d.__)("%dm","google-site-kit"),r),o=Object(d.sprintf)(
|
|||
|
|
// translators: %s: number of hours with "h" as the abbreviated unit.
|
|||
|
|
Object(d.__)("%dh","google-site-kit"),n);return Object(d.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
|
|||
|
|
Object(d._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?t:"",r?i:"",n?o:"").trim()}}},D=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},b=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(d.sprintf)(
|
|||
|
|
// translators: %s: an abbreviated number in millions.
|
|||
|
|
Object(d.__)("%sM","google-site-kit"),T(D(e),e%10==0?{}:t)):1e4<=e?Object(d.sprintf)(
|
|||
|
|
// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(d.__)("%sK","google-site-kit"),T(D(e))):1e3<=e?Object(d.sprintf)(
|
|||
|
|
// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(d.__)("%sK","google-site-kit"),T(D(e),e%10==0?{}:t)):T(e,{signDisplay:"never",maximumFractionDigits:1})};function v(e){var t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:Object(g.isPlainObject)(e)&&(t=f({},e)),t}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(g.isFinite)(e)?e:Number(e),Object(g.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var i=v(t),n=i.style,r=void 0===n?"metric":n;return"metric"===r?b(e):"duration"===r?N(e,i):"durationISO"===r?p(e):T(e,i)}var h=M()(console.warn),T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.locale,n=void 0===i?z():i,a=l()(t,["locale"]);try{return new Intl.NumberFormat(n,a).format(e)}catch(t){h("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(a)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],u={},g=0,I=Object.entries(a);g<I.length;g++){var M=r()(I[g],2),d=M[0],j=M[1];c[d]&&j===c[d]||(s.includes(d)||(u[d]=j))}try{return new Intl.NumberFormat(n,u).format(e)}catch(t){return new Intl.NumberFormat(n).format(e)}},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.locale,n=void 0===i?z():i,r=t.style,a=void 0===r?"long":r,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(n,{style:a,type:c});return s.format(e)}
|
|||
|
|
/* translators: used between list items, there is a space after the comma. */var u=Object(d.__)(", ","google-site-kit");return e.join(u)},z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,i=Object(g.get)(t,["_googlesitekitLegacyData","locale"]);if(i){var n=i.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,i(28))},88:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return r}));var n=i(160),r=i.n(n)()(e)}).call(this,i(28))},89:function(e,t,i){"use strict";(function(e){var n=i(0),r=i.n(n),a=i(10),o=i.n(a);function ChangeArrow(t){var i=t.direction,n=t.invertColor,r=t.width,a=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(i),{"googlesitekit-change-arrow--inverted-color":n}),width:r,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:r.a.string,invertColor:r.a.bool,width:r.a.number,height:r.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,i(3))},9:function(e,t,i){"use strict";i.d(t,"I",(function(){return r.b})),i.d(t,"J",(function(){return r.c})),i.d(t,"F",(function(){return a.a})),i.d(t,"K",(function(){return a.b})),i.d(t,"H",(function(){return l})),i.d(t,"m",(function(){return g.a})),i.d(t,"B",(function(){return g.d})),i.d(t,"C",(function(){return g.e})),i.d(t,"y",(function(){return g.c})),i.d(t,"r",(function(){return g.b})),i.d(t,"z",(function(){return j})),i.d(t,"j",(function(){return f})),i.d(t,"i",(function(){return N})),i.d(t,"d",(function(){return v})),i.d(t,"c",(function(){return O})),i.d(t,"e",(function(){return h})),i.d(t,"b",(function(){return T})),i.d(t,"a",(function(){return E})),i.d(t,"f",(function(){return z})),i.d(t,"n",(function(){return S})),i.d(t,"w",(function(){return A})),i.d(t,"p",(function(){return k})),i.d(t,"G",(function(){return x})),i.d(t,"s",(function(){return w})),i.d(t,"v",(function(){return C})),i.d(t,"k",(function(){return L})),i.d(t,"o",(function(){return P.b})),i.d(t,"h",(function(){return P.a})),i.d(t,"t",(function(){return R.b})),i.d(t,"q",(function(){return R.a})),i.d(t,"A",(function(){return R.c})),i.d(t,"x",(function(){return Z})),i.d(t,"u",(function(){return G})),i.d(t,"E",(function(){return Q})),i.d(t,"D",(function(){return Y.a})),i.d(t,"g",(function(){return _})),i.d(t,"L",(function(){return H})),i.d(t,"l",(function(){return W}));var n=i(15),r=i(40),a=i(76),o=i(36),c=i.n(o),s=i(103),u=i.n(s),l=function(e){return u()(JSON.stringify(function e(t){var i={};return Object.keys(t).sort().forEach((function(n){var r=t[n];r&&"object"===c()(r)&&!Array.isArray(r)&&(r=e(r)),i[n]=r})),i}(e)))};i(104);var g=i(87);function I(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function M(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function d(e){return e.replace(/\n/gi,"<br>")}function j(e){for(var t=e,i=0,n=[I,M,d];i<n.length;i++){t=(0,n[i])(t)}return t}var f=function(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]},N=function(e){var t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t},p=i(14),y=i.n(p),m=i(12),D=i.n(m),b=i(2),v="Invalid dateString parameter, it must be a string.",O='Invalid date range, it must be a string with the format "last-x-days".',h=60,T=60*h,E=24*T,z=7*E;function S(){var e=function(e){return Object(b.sprintf)(/* translators: %s: number of days */
|
|||
|
|
Object(b._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 A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!Object(n.isString)(e))return!1;var t=e.split("-");if(3!==t.length)return!1;var i=new Date(e);return Object(n.isDate)(i)&&!isNaN(i)}function k(e){D()(Object(n.isDate)(e)&&!isNaN(e),"Date param must construct to a valid date instance or be a valid date instance itself.");var t="".concat(e.getMonth()+1),i="".concat(e.getDate());return[e.getFullYear(),t.length<2?"0".concat(t):t,i.length<2?"0".concat(i):i].join("-")}function x(e){D()(A(e),v);var t=e.split("-"),i=y()(t,3),n=i[0],r=i[1],a=i[2];return new Date(n,r-1,a)}function w(e,t){return k(L(e,t*E))}function C(e){var t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}function L(e,t){D()(A(e)||Object(n.isDate)(e)&&!isNaN(e),v);var i=A(e)?Date.parse(e):e.getTime();return new Date(i-1e3*t)}var P=i(107),R=i(85);function Z(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function G(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var U=i(27),B=i.n(U),Q=function(e){return Array.isArray(e)?B()(e).sort():e},Y=i(92);function _(e,t){var i=function(e){return"0"===e||0===e};if(i(e)&&i(t))return 0;if(i(e)||Number.isNaN(e))return null;var n=(t-e)/e;return Number.isNaN(n)||!Number.isFinite(n)?null:n}var H=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},W=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(n.unescape)(t)}},90:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return g}));var n=i(14),r=i.n(n),a=i(196),o=i(138),c={},s=void 0===e?null:e,u=function(){return[e.innerWidth,e.innerHeight]},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=e.fps,i=e.leading,n=e.initialWidth,l=void 0===n?0:n,g=e.initialHeight,I=void 0===g?0:g,M=Object(a.a)("undefined"==typeof document?[l,I]:u,t,i),d=r()(M,2),j=d[0],f=d[1],N=function(){return f(u)};return Object(o.a)(s,"resize",N),Object(o.a)(s,"orientationchange",N),j},g=function(e){return l(e)[0]}}).call(this,i(28))},92:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i(12),r=i.n(n),a=function(e,t){var i=t.dateRangeLength;r()(Array.isArray(e),"report must be an array to partition."),r()(Number.isInteger(i)&&i>0,"dateRangeLength must be a positive integer.");var n=-1*i;return{currentRange:e.slice(n),compareRange:e.slice(2*n,n)}}},94:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return c}));var n=i(23),r=i(120);function a(t,i){var n=document.querySelector(t);if(!n)return 0;var r=n.getBoundingClientRect().top,a=o(i);return r+e.scrollY-a}function o(e){var t=c(e),i=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(i).reduce((function(e,t){return e+t.offsetHeight}),0)}function c(t){var i=0,a=document.querySelector(".googlesitekit-header");return i=!!a&&"sticky"===e.getComputedStyle(a).position?function(e){var t=document.querySelector(".googlesitekit-header");if(t){if(e===n.b)return t.offsetHeight;var i=t.getBoundingClientRect().bottom;return i<0?0:i}return 0}(t):function(e){var t=document.querySelector("#wpadminbar");return t&&e!==n.b?t.offsetHeight:0}(t),(i=Object(r.a)(i))<0?0:i}}).call(this,i(28))},97:function(e,t,i){"use strict";var n=i(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}var a=n.createElement("path",{d:"M5.825 22l2.325-7.6L2 10h7.6L12 2l2.4 8H22l-6.15 4.4 2.325 7.6L12 17.3 5.825 22z",fill:"currentColor"}
|
|||
|
|
Object(o.__)("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"),Object(c.y)(l));break;case"single":g=Object(o.sprintf)(/* translators: %s: Product name */
|
|||
|
|
Object(o.__)("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"),l[0]);break;case"generic":g=Object(o.__)("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:I,message:g,ctaLabel:M}}},991:function(e,t,i){"use strict";(function(e,n){i.d(t,"a",(function(){return UnsatisfiedScopesAlertGTE}));var r=i(14),a=i.n(r),o=i(2),c=i(1),s=i(4),u=i(13),l=i(7),g=i(47),I=i(30),M=i(227),d=i(38);function UnsatisfiedScopesAlertGTE(t){var i=t.id,r=t.Notification,j=Object(c.useState)(!1),f=a()(j,2),N=f[0],p=f[1],y=Object(s.useSelect)((function(e){return e(I.a).getValue(l.d,"permissionsError")})),m=Object(s.useSelect)((function(t){var i;return t(l.a).getConnectURL({additionalScopes:[g.h],redirectURL:(null==y||null===(i=y.data)||void 0===i?void 0:i.redirectURL)||e.location.href})})),D=Object(s.useSelect)((function(e){return e(u.c).getGoogleSupportURL({path:"/tagmanager/answer/11994839"})}));return void 0===m?null:n.createElement(r,null,n.createElement(M.b,{notificationID:i,type:d.a.ERROR,title:Object(o.__)("Site Kit needs additional permissions to detect updates to tags on your site","google-site-kit"),description:Object(o.__)("To continue using Analytics with Site Kit, you need to grant permission to check for any changes in your Google tag’s target Analytics property. The Google tag feature was recently updated to allow users to change a tag’s connected Analytics property without editing site code. Because of this change, Site Kit now must regularly check if the tag on your site matches the Analytics property destination.","google-site-kit"),learnMoreLink:{href:D},ctaButton:{label:Object(o.__)("Grant permission","google-site-kit"),href:m,inProgress:N,onClick:function(){return p(!0)}}}))}}).call(this,i(28),i(3))},992:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return GatheringDataNotification}));var n=i(0),r=i.n(n),a=i(2),o=i(4),c=i(13),s=i(9),u=i(993),l=i(227),g=i(994),I=i(41);function GatheringDataNotification(t){var i,n=t.id,r=t.Notification,M=Object(o.useSelect)((function(e){return e(c.c).getConnectMoreServicesURL()})),d=Object(u.a)(),j=d.analyticsGatheringData,f=d.searchConsoleGatheringData,N=Object(o.useDispatch)(I.a).dismissNotification,p=72;return j&&f?i=Object(a.__)("Search Console and Analytics are gathering data","google-site-kit"):j?i=Object(a.__)("Analytics is gathering data","google-site-kit"):f&&(p=48,i=Object(a.__)("Search Console is gathering data","google-site-kit")),p?e.createElement(r,null,e.createElement(l.b,{notificationID:n,type:l.a.INFO,title:i,description:Object(a.sprintf)(/* translators: %s: the number of hours the site can be in a gathering data state */
|
|||
|
|
Object(a._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.",p,"google-site-kit"),p),ctaButton:{label:Object(a.__)("Connect more services","google-site-kit"),href:M,onClick:function(){N(n,{expiresInSeconds:s.a})}},dismissButton:{label:Object(a.__)("Got it","google-site-kit")},dismissOptions:{expiresInSeconds:s.a},svg:{desktop:g.a,mobile:void 0,verticalPosition:"center"}})):null}GatheringDataNotification.propTypes={id:r.a.string,Notification:r.a.elementType}}).call(this,i(3))},993:function(e,t,i){"use strict";i.d(t,"a",(function(){return g}));var n=i(4),r=i(19),a=i(7),o=i(8),c=i(29),s=i(70),u=i(86),l=i(39);function g(){var e=Object(l.a)(),t=Object(n.useSelect)((function(e){return e(r.a).isModuleConnected(c.g)})),i=Object(n.useSelect)((function(t){return!e||t(a.a).canViewSharedModule(c.g)})),g=Object(n.useSelect)((function(t){return!e||t(a.a).canViewSharedModule(u.a)})),I=Object(n.useSelect)((function(t){if(!e)return!1;var i=t(r.a).getRecoverableModules();return void 0!==i?Object.keys(i).includes(c.g):void 0})),M=Object(n.useSelect)((function(t){if(!e)return!1;var i=t(r.a).getRecoverableModules();return void 0!==i?Object.keys(i).includes(u.a):void 0}));return{analyticsGatheringData:Object(n.useInViewSelect)((function(e){return!(!t||!i||!1!==I)&&e(o.r).isGatheringData()}),[t,i,I]),searchConsoleGatheringData:Object(n.useInViewSelect)((function(e){return g&&!1===M&&e(s.b).isGatheringData()}),[g,M]),analyticsHasZeroData:Object(n.useInViewSelect)((function(e){return!(!t||!i||!1!==I)&&e(o.r).hasZeroData()}),[t,i,I]),searchConsoleHasZeroData:Object(n.useInViewSelect)((function(e){return g&&!1===M&&e(s.b).hasZeroData()}),[g,M])}}},994:function(e,t,i){"use strict";t.a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQ3IiBoZWlnaHQ9IjE2NiIgdmlld0JveD0iMCAwIDI0NyAxNjYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yMjEuMzY5IDEwOC45NDFDMjE1LjQ0IDEzNy40OTIgMTg3Ljk3MyAxNjMuMDEyIDE1Ni45NzcgMTU1QzEyNS45ODEgMTQ2Ljk4OCAxMjUuNTAxIDExOSAxMDcuMDAxIDExMUM4OC41MDEzIDEwMyA3OS4wNDc1IDExOC40MjMgNTYuODg4OCAxMTIuNTMxQzM0LjczMDEgMTA2LjY0IDE3LjI4ODggODcuMjgyNiAxNy4yOTA5IDU3LjM5MUMxNy4yOTMgMjcuNDk5NSA0NS45OTk0IDEuNDk5OTggNzEuNDk5MyAzLjk5OTk4Qzk2Ljk5OTMgNi40OTk5NyAxMDYgMjMuOTk5IDEyNS41IDI4LjQ5OTVDMTQ1IDMzIDE1NS40OTkgMjEuOTk5OCAxNzYuNDk4IDI1QzIyNi4yNTUgMzIuMTA4OSAyMjcuMjk4IDgwLjM5IDIyMS4zNjkgMTA4Ljk0MVoiIGZpbGw9IiNEMEZCRTEiLz4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xODQyXzQ4NjUyKSI+CjxyZWN0IHg9IjQ2LjAwMDciIHk9IjI2LjU0NjUiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTIwLjg4OSIgcng9IjYuOTgyNTIiIGZpbGw9IiNFQkVFRjAiLz4KPG1hc2sgaWQ9Im1hc2swXzE4NDJfNDg2NTIiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjQ2IiB5PSIyNiIgd2lkdGg9IjEyOSIgaGVpZ2h0PSIxMjEiPgo8cmVjdCB4PSI0Ni4wMDA3IiB5PSIyNi41NDY1IiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyMCIgcng9IjYuOTgyNTIiIGZpbGw9IiNERUUzRTYiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzE4NDJfNDg2NTIpIj4KPHJlY3QgeD0iNTQuMDAwNyIgeT0iNjcuNDM1OCIgd2lkdGg9IjUyLjI2NjciIGhlaWdodD0iNzAuOTMzMyIgcng9IjMuNzUxMjgiIGZpbGw9IndoaXRlIi8+CjxyZWN0IHg9IjYwLjQ5MTkiIHk9Ijk2LjY0MTQiIHdpZHRoPSIxOC4wNzk3IiBoZWlnaHQ9IjMuMjQ1MDciIHJ4PSIxLjYyMjU0IiBmaWxsPSIjRUJFRUYwIi8+CjxyZWN0IHg9IjYwLjQ5MTkiIHk9IjkxLjU0MTUiIHdpZHRoPSI2LjQ5MDE0IiBoZWlnaHQ9IjMuMjQ1MDciIHJ4PSIxLjYyMjU0IiBmaWxsPSIjRUJFRUYwIi8+CjxyZWN0IHg9IjYwLjQ5MTkiIHk9IjEwOC4yNTciIHdpZHRoPSI2LjQ5MDE0IiBoZWlnaHQ9IjMuMjQ1MDciIHJ4PSIxLjYyMjU0IiBmaWxsPSIjRUJFRUYwIi8+CjxyZWN0IHg9IjYwLjQ5MTkiIHk9IjEyNC4yODUiIHdpZHRoPSI2LjQ5MDE0IiBoZWlnaHQ9IjMuMjQ1MDciIHJ4PSIxLjYyMjU0IiBmaWxsPSIjRUJFRUYwIi8+CjxwYXRoIGQ9Ik04OS42OTcgOTUuOTQ1NEM4OS42OTcgOTQuMjgxMiA5MS4wNDYxIDkyLjkzMjEgOTIuNzEwMyA5Mi45MzIxSDk3LjM0NjFDOTkuMDEwMyA5Mi45MzIxIDEwMC4zNTkgOTQuMjgxMiAxMDAuMzU5IDk1Ljk0NTRDMTAwLjM1OSA5Ny42MDk2IDk5LjAxMDMgOTguOTU4NyA5Ny4zNDYxIDk4Ljk1ODdIOTIuNzEwM0M5MS4wNDYxIDk4Ljk1ODcgODkuNjk3IDk3LjYwOTYgODkuNjk3IDk1Ljk0NTRaIiBmaWxsPSIjRUJFRUYwIi8+CjxyZWN0IHg9IjYwLjQ4IiB5PSI3NC41OTciIHdpZHRoPSIxMi4yNzY5IiBoZWlnaHQ9IjMuMDY
|