29 lines
189 KiB
JavaScript
29 lines
189 KiB
JavaScript
|
|
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[25],{10:function(e,t){e.exports=googlesitekit.components},100:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var r=n(243),i=n(86),a=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var a=n.invertColor,o=void 0!==a&&a;return Object(r.a)(e.createElement(i.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}}).call(this,n(4))},1e3:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ZeroDataNotification}));var r=n(2),i=n(3),a=n(13),o=n(1001),c=n(9),s=n(782),l=n(113),u=n(183),d=n(210);function ZeroDataNotification(t){var n=t.id,f=t.Notification,p=Object(i.useSelect)((function(e){return e(a.c).getDocumentationLinkURL("not-enough-traffic")}));return e.createElement(f,{className:"googlesitekit-publisher-win"},e.createElement(s.a,{title:Object(r.__)("Not enough traffic yet to display stats","google-site-kit"),description:e.createElement(l.a,{text:Object(r.__)("Site Kit will start showing stats on the dashboard as soon as enough people have visited your site. Keep working on your site to attract more visitors.","google-site-kit"),learnMoreLink:e.createElement(u.a,{id:n,label:Object(r.__)("Learn more","google-site-kit"),url:p})}),actions:e.createElement(d.a,{id:n,dismissLabel:Object(r.__)("Remind me later","google-site-kit"),dismissExpires:c.a}),SmallImageSVG:o.a}))}}).call(this,n(4))},1001:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("ellipse",{cx:175.51,cy:381.74,rx:104,ry:8.26,fill:"#F1F3F4"}),o=r.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"}),c=r.createElement("path",{d:"M201.85 238.9l61.65 74a20 20 0 011 24.29l-30 42.81h32.13",stroke:"#1967D2",strokeLinejoin:"round",strokeWidth:9.27}),s=r.createElement("path",{stroke:"#1967D2",strokeLinejoin:"round",strokeWidth:9.27,d:"M214.03 222.14L114.03 380h-29.6"}),l=r.createElement("path",{stroke:"#185ABC",strokeLinejoin:"round",strokeWidth:9.27,d:"M201.85 238.9l46.71 56.1M214.03 222.14L167.87 295"}),u=r.createElement("path",{d:"M129.21 229.83l-11.7-42.66A50 50 0 01136 133.78L191 93a10 10 0 004-8V61.71M270.79 229.83l11.7-42.66A50 50 0 00264 133.78L209.05 93a10 10 0 01-4.05-8V61.71",stroke:"#4285F4",strokeLinejoin:"round",strokeWidth:9.27}),d=r.createElement("path",{d:"M199.87 289.41a81.45 81.45 0 0081.58-81.32l-162.9-.26a81.45 81.45 0 0081.32 81.58z",fill:"#1A73E8"}),f=r.createElement("path",{d:"M172.86 256.89c13.38 16.47 37.19 21.05 54.28 0",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6.66});t.a=function SvgZeroStateBlue(e){return r.createElement("svg",i({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,l,u,d,f)}},1002:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GA4AdSenseLinkedNotification}));var r=n(0),i=n.n(r),a=n(2),o=n(140),c=n(47);function GA4AdSenseLinkedNotification(t){var n=t.id,r=t.Notification;return e.createElement(r,null,e.createElement(o.a,{notificationID:n,type:c.a.SUCCESS,title:Object(a.__)("Your AdSense and Analytics accounts are linked","google-site-kit"),description:Object(a.__)("We’ll let you know as soon as there’s enough data available","google-site-kit"),dismissButton:!0}))}GA4AdSenseLinkedNotification.propTypes={id:i.a.string.isRequired,Notification:i.a.elementType.isRequired}}).call(this,n(4))},1003:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupErrorNotification}));var r=n(2),i=n(3),a=n(13),o=n(200),c=n(113),s=n(189);function SetupErrorNotification(t){var n=t.id,l=t.Notification,u=Object
|
|||
|
|
Object(r.__)("%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===(n=u[d[0]])||void 0===n?void 0:n.name):p&&f?Object(r.__)("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"):p||f||!u?p&&!f?Object(r.__)("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(r.sprintf)(/* translators: %s: module name. */
|
|||
|
|
Object(r.__)("%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===(s=Object.values(u)[0])||void 0===s?void 0:s.name),learnMoreLink:e.createElement(c.a,{id:l,label:Object(r.__)("Learn more","google-site-kit"),url:g})})}}).call(this,n(4))},1019:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return RecoverableActions}));var r=n(27),i=n.n(r),a=n(6),o=n.n(a),c=n(16),s=n.n(c),l=n(5),u=n.n(l),d=n(15),f=n.n(d),p=n(14),g=n(209),m=n(1),v=n(2),b=n(3),h=n(10),y=n(19),E=n(33),O=n(1020),_=n(182);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RecoverableActions(t){var n=t.id,r=t.recoverableModules,a=t.userRecoverableModuleSlugs,c=t.hasMultipleRecoverableModules,l=Object(m.useState)(null),d=f()(l,2),k=d[0],w=d[1],S=Object(m.useState)(!1),x=f()(S,2),N=x[0],A=x[1],D=Object(g.a)(),T=Object(b.useSelect)((function(e){if(r){var t=e(y.a).getRecoveredModules();if(!t)return{};var n=Object.keys(r),i=function(e){var n;return null==t||null===(n=t.error)||void 0===n?void 0:n[e]};return n.filter((function(e){return!!i(e)})).reduce((function(e,t){return j(j({},e),{},u()({},t,j({name:r[t].name},i(t))))}),{})}})),C=Object(b.useDispatch)(y.a),R=C.recoverModules,M=C.clearRecoveredModules,P=Object(b.useDispatch)(E.a).dismissNotification,L=Object(m.useCallback)(s()(o.a.mark((function e(){var t,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!0),e.next=3,M();case 3:return e.next=5,R(k);case 5:r=e.sent,i=Object.keys((null==r||null===(t=r.response)||void 0===t?void 0:t.success)||{}).filter((function(e){return r.response.success[e]})),a.length===i.length&&P(n,{skipHidingFromQueue:!1}),D()&&(w(null),A(!1));case 9:case"end":return e.stop()}}),e)}))),[n,D,M,P,R,k,a]);Object(m.useEffect)((function(){null===k&&Array.isArray(a)&&w(a)}),[k,a]);var I=!(null==k?void 0:k.length);return e.createElement(m.Fragment,null,c&&e.createElement(m.Fragment,null,k&&a.map((function(t){return e.createElement("div",{key:t},e.createElement(h.Checkbox,{checked:k.includes(t),name:"module-recovery-alert-checkbox",id:"module-recovery-alert-checkbox-".concat(t),onChange:function(){k.includes(t)?w(Object(p.without)(k,t)):w([].concat(i()(k),[t]))},disabled:N,value:t},r[t].name))})),e.createElement("p",{className:"googlesitekit-publisher-win__desc"},Object(v.__)("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"))),!c&&e.createElement("p",{className:"googlesitekit-publisher-win__desc"},Object(v.__)("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(T).length>0&&e.createElement(O.a,{recoveryErrors:T}),e.createElement(_.a,{id:n,ctaLabel:Object(v.__)("Recover","google-site-kit"),isSaving:N,onCTAClick:L,dismissOnCTAClick:!1,dismissLabel:Object(v.__)("Remind me later","google-site-kit"),ctaDismissOptions:{skipHidingFromQueue:!1},ctaDisabled:I}))}}).call(this,n(4))},102:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n(60),i=n(40),a=n(59);function o(t,n){var o,c=Object(r.a)(n),s=t.activeModules,l=t.referenceSiteURL,u=t.userID
|
|||
|
|
Object(o.__)("Error: %s","google-site-kit"),Object.values(n)[0].message)),Object.keys(n).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(n).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"),n[t].name,n[t].message))})))))}Errors.propTypes={recoveryErrors:i.a.object.isRequired}}).call(this,n(4))},1021:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UnrecoverableActions}));var r=n(1),i=n(2),a=n(9),o=n(210);function UnrecoverableActions(t){var n=t.id,c=t.recoverableModules,s=t.hasMultipleRecoverableModules;return e.createElement(r.Fragment,null,s&&e.createElement("ul",{className:"mdc-list mdc-list--non-interactive"},Object.values(c||{}).map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t.slug},e.createElement("span",{className:"mdc-list-item__text"},t.name))}))),e.createElement(o.a,{id:n,dismissLabel:Object(i.__)("Remind me later","google-site-kit"),dismissExpires:a.a}))}}).call(this,n(4))},1022:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SiteKitSetupSuccessNotification}));var r=n(15),i=n.n(r),a=n(0),o=n.n(a),c=n(2),s=n(1),l=n(3),u=n(13),d=n(1023),f=n(1024),p=n(113),g=n(183),m=n(210),v=n(176);function SiteKitSetupSuccessNotification(t){var n=t.id,r=t.Notification,a=Object(l.useSelect)((function(e){return e(u.c).getAdminURL("googlesitekit-settings")})),o=Object(v.a)("notification"),b=i()(o,2)[1],h=Object(s.useCallback)((function(){b(void 0)}),[b]);return e.createElement(r,{className:"googlesitekit-publisher-win"},e.createElement(f.a,{title:Object(c.__)("Congrats on completing the setup for Site Kit!","google-site-kit"),description:e.createElement(p.a,{text:Object(c.__)("Connect more services to see more stats.","google-site-kit"),learnMoreLink:e.createElement(g.a,{id:n,label:Object(c.__)("Go to Settings","google-site-kit"),url:"".concat(a,"#/connect-more-services"),external:!1})}),actions:e.createElement(m.a,{id:n,dismissLabel:Object(c.__)("OK, Got it!","google-site-kit"),onDismiss:h}),SVG:d.a}))}SiteKitSetupSuccessNotification.propTypes={id:o.a.string.isRequired,Notification:o.a.elementType}}).call(this,n(4))},1023:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.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=r.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=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M248.83 47.55l93.63 144.69"}),s=r.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}),l=r.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}),u=r.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}),d=r.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"}),f=r.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}),p=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M316.62 152.31l25.84 39.93"});t.a=function SvgSuccessGreen(e){return r.createElement("svg",i({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,l,u,d,f,p)}},1024:function(e,t,n){"use strict";(function(e){
|
|||
|
|
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),h(void 0)}},ctaButton:{label:Object(c.__)("Go to Settings","google-site-kit"),href:"".concat(E,"#/connect-more-services")}}))}ModuleSetupSuccessNotification.propTypes={id:o.a.string.isRequired,Notification:o.a.elementType.isRequired}}).call(this,n(4))},103:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(6),i=n.n(r),a=n(5),o=n.n(a),c=n(16),s=n.n(c),l=n(60);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n,r){var a=Object(l.a)(t);return function(){var t=s()(i.a.mark((function t(o,c,s,l){var u;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.trackingEnabled){t.next=3;break}return t.abrupt("return");case 3:return n(),u={send_to:"site_kit",event_category:o,event_label:s,value:l},t.abrupt("return",new Promise((function(e){var t,n,i=setTimeout((function(){r.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),e()}),1e3),s=function(){clearTimeout(i),e()};a("event",c,d(d({},u),{},{event_callback:s})),(null===(t=r._gaUserPrefs)||void 0===t||null===(n=t.ioo)||void 0===n?void 0:n.call(t))&&s()})));case 6:case"end":return t.stop()}}),t)})));return function(e,n,r,i){return t.apply(this,arguments)}}()}},104:function(e,t,n){"use strict";var r=n(125);n.d(t,"a",(function(){return r.a}));var i=n(126);n.d(t,"c",(function(){return i.a}));var a=n(127);n.d(t,"b",(function(){return a.a}))},105:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7 14 1.41z",fill:"currentColor"});t.a=function SvgClose(e){return r.createElement("svg",i({viewBox:"0 0 14 14",fill:"none"},e),a)}},106:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.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"});t.a=function SvgStarFill(e){return r.createElement("svg",i({viewBox:"0 0 24 24",fill:"none"},e),a)}},109:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TourTooltip}));var r=n(22),i=n.n(r),a=n(153),o=n.n(a),c=n(11),s=n.n(c),l=n(0),u=n.n(l),d=n(2),f=n(10),p=n(155),g=n(105);function TourTooltip(t){var n=t.backProps,r=t.closeProps,c=t.index,l=t.primaryProps,u=t.size,m=t.step,v=t.tooltipProps,b=u>1?Object(p.a)(u):[],h=function(e){return s()("googlesitekit-tooltip-indicator",{active:e===c})};return e.createElement("div",i()({className:s()("googlesitekit-tour-tooltip",m.className)},v),e.createElement(o.a,{className:"googlesitekit-tooltip-card"},e.createElement("div",{className:"googlesitekit-tooltip-body"},e.createElement("h2",{className:"googlesitekit-tooltip-title"},m.title),e.createElement("div",{className:"googlesitekit-tooltip-content"},m.content)),e.createElement(a.CardActions,{className:"googlesitekit-tooltip-actions"},e.createElement("ul",{className:"googlesitekit-tooltip-indicators"},b.map((function(t){return e
|
|||
|
|
Object(s._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(T,C),D[n][0].toLocaleDateString(T,C)),v=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],d[t](i),g,Object(u.B)(Math.abs(p),"%"));w.push([e[0],'<div class="'.concat(o()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":p>0,"googlesitekit-visualization-tooltip--down":p<0}),'">\n\t\t\t\t<p>').concat(m,"</p>\n\t\t\t\t<p>").concat(v,"</p>\n\t\t\t</div>"),k?Object(u.j)(i):i,k?Object(u.j)(c):c])}})),w}},46:function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"i",(function(){return d}));var r="modules/tagmanager",i="account_create",a="container_create",o="web",c="amp",s="tagmanagerSetup",l="https://www.googleapis.com/auth/tagmanager.readonly",u="https://www.googleapis.com/auth/tagmanager.edit.containers",d="SETUP_WITH_ANALYTICS"},47:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={NEW:"new",SUCCESS:"success",WARNING:"warning",INFO:"info",ERROR:"error"}},51:function(e,t,n){"use strict";(function(e){var r=n(5),i=n.n(r),a=n(0),o=n.n(a),c=n(11),s=n.n(c),l=n(1),u=n(171),d=n(172),f=n(173),p=n(137),g=n(138),m=n(47);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=Object(l.forwardRef)((function(t,n){var r=t.className,i=t.title,a=t.description,o=t.dismissButton,c=t.ctaButton,l=t.type,v=void 0===l?m.a.INFO:l,b=t.children,h=t.hideIcon;return e.createElement("div",{ref:n,className:s()("googlesitekit-notice","googlesitekit-notice--".concat(v),r)},!h&&e.createElement("div",{className:"googlesitekit-notice__icon"},e.createElement(u.a,{type:v})),e.createElement("div",{className:"googlesitekit-notice__content"},i&&e.createElement(d.a,null,i),a&&e.createElement(f.a,null,a)),((null==o?void 0:o.label)||(null==o?void 0:o.onClick)||(null==c?void 0:c.label)&&((null==c?void 0:c.onClick)||(null==c?void 0:c.href)))&&e.createElement("div",{className:"googlesitekit-notice__action"},b,((null==o?void 0:o.label)||(null==o?void 0:o.onClick))&&e.createElement(g.a,{label:o.label,onClick:o.onClick,disabled:o.disabled}),(null==c?void 0:c.label)&&((null==c?void 0:c.onClick)||(null==c?void 0:c.href))&&e.createElement(p.a,{label:c.label,onClick:c.onClick,inProgress:c.inProgress,disabled:c.disabled,href:c.href,external:c.external,hideExternalIndicator:c.hideExternalIndicator})))}));h.TYPES=m.a,h.propTypes={className:o.a.string,title:o.a.oneOfType([o.a.string,o.a.object]),description:o.a.oneOfType([o.a.string,o.a.object]),type:o.a.oneOf(Object.values(m.a)),dismissButton:o.a.shape(g.a.propTypes),ctaButton:o.a.shape(b(b({},p.a.propTypes),{},{label:o.a.string})),children:o.a.node,hideIcon:o.a.bool},t.a=h}).call(this,n(4))},53:function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(108),o=n(2),c=n(9);function ErrorText(t){var n=t.message,r=t.reconnectURL,i=t.noPrefix;if(!n)return null;var s=n;void 0!==i&&i||(s=Object(o.sprintf)(/* translators: %s: Error message */
|
|||
|
|
Object(o.__)("Error: %s","google-site-kit"),n)),r&&Object(a.a)(r)&&(s=s+" "+Object(o.sprintf)(/* translators: %s: Reconnect URL */
|
|||
|
|
Object(o.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),r));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.F)(s,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:i.a.string.isRequired,reconnectURL:i.a.string,noPrefix:i.a.bool},ErrorText.defaultProps={reconnectURL:"",noPrefix:!1},t.a=ErrorText}).call(this,n(4))},555:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SimpleNotification}));var r=n(17),i=n(192);function SimpleNotification(t){var n=t.actions,a=t.description,o=t.title;return e.createElement(r.e,null,e.createElement(r.k,null,e.createElement(r.a,{size:11,className:"googlesitekit-publisher-win__content"},e.createElement(i.a,{title:o}),a,n)))}}).call(this,n(4))},59:function(e,t,n){"use strict";(function(e){var r,i;n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));var a=new Set((null===(r=e)||void 0===r||null===(i=r._googlesitekitBaseData)||void 0===i?void 0:i.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,n(28))},592:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="consent-mode-setup-cta-widget"},60:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(40);function i(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return x})),n.d(t,"c",(function(){return N})),n.d(t,"d",(function(){return D})),n.d(t,"e",(function(){return T})),n.d(t,"g",(function(){return R})),n.d(t,"f",(function(){return M}));var r,i=n(6),a=n.n(i),o=n(27),c=n.n(o),s=n(5),l=n.n(s),u=n(12),d=n.n(u),f=n(64),p=n.n(f),g=n(14),m=n(117);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return b(b({},e),t)}),{}),i=t.reduce((function(e,t){return[].concat(c()(e),c()(Object.keys(t)))}),[]),a=A(i);return d()(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.")),r},y=h,E=h,O=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=[].concat(t);return"function"!=typeof i[0]&&(r=i.shift()),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.reduce((function(e,n){return n(e,t)}),e)}},_=h,k=h,j=h,w=function(e){return e},S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=j.apply(void 0,c()(t.map((function(e){return e.initialState||{}}))));return{initialState:r,controls:E.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:O.apply(void 0,[r].concat(c()(t.map((function(e){return e.reducer||w}))))),resolvers:_.apply(void 0,c()(t.map((function(e){return e.resolvers||{}})))),selectors:k.apply(void 0,c()(t.map((function(e){return e.selectors||{}}))))}},x={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)}))},N=(r={},l()(r,"GET_REG
|
|||
|
|
Object(g._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?S(a,v(v({},o),{},{unit:"second"})):"",i?S(i,v(v({},o),{},{unit:"minute"})):"",r?S(r,v(v({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(g.sprintf)(
|
|||
|
|
// translators: %s: number of seconds with "s" as the abbreviated unit.
|
|||
|
|
Object(g.__)("%ds","google-site-kit"),a);if(0===e)return t;var n=Object(g.sprintf)(
|
|||
|
|
// translators: %s: number of minutes with "m" as the abbreviated unit.
|
|||
|
|
Object(g.__)("%dm","google-site-kit"),i),o=Object(g.sprintf)(
|
|||
|
|
// translators: %s: number of hours with "h" as the abbreviated unit.
|
|||
|
|
Object(g.__)("%dh","google-site-kit"),r);return Object(g.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
|
|||
|
|
Object(g._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?t:"",i?n:"",r?o:"").trim()}}},O=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},_=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(g.sprintf)(
|
|||
|
|
// translators: %s: an abbreviated number in millions.
|
|||
|
|
Object(g.__)("%sM","google-site-kit"),S(O(e),e%10==0?{}:t)):1e4<=e?Object(g.sprintf)(
|
|||
|
|
// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(g.__)("%sK","google-site-kit"),S(O(e))):1e3<=e?Object(g.sprintf)(
|
|||
|
|
// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(g.__)("%sK","google-site-kit"),S(O(e),e%10==0?{}:t)):S(e,{signDisplay:"never",maximumFractionDigits:1})};function k(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(d.isPlainObject)(e)&&(t=v({},e)),t}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n=k(t),r=n.style,i=void 0===r?"metric":r;return"metric"===i?_(e):"duration"===i?b(e,n):"durationISO"===i?h(e):S(e,n)}var w=p()(console.warn),S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?N():n,a=u()(t,["locale"]);try{return new Intl.NumberFormat(r,a).format(e)}catch(t){w("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(a)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},d=0,f=Object.entries(a);d<f.length;d++){var p=i()(f[d],2),g=p[0],m=p[1];c[g]&&m===c[g]||(s.includes(g)||(l[g]=m))}try{return new Intl.NumberFormat(r,l).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?N():n,i=t.style,a=void 0===i?"long":i,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:a,type:c});return s.format(e)}
|
|||
|
|
/* translators: used between list items, there is a space after the comma. */var l=Object(g.__)(", ","google-site-kit");return e.join(l)},N=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(28))},85:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(150),i=n.n(r)()(e)}).call(this,n(28))},86:function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(11),o=n.n(a);function ChangeArrow(t){var n=t.direction,r=t.invertColor,i=t.width,a=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:i,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:i.a.string,invertColor:i.a.bool,width:i.a.number,height:i.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(4))},88:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1zm0 14a1.5 1.5 0 100 3 1.5 1.5 0 000-3zm-1-2h2V6h-2v7z",fill:"currentColor"});t.a=function SvgWarningNotice(e){return r.createElement("svg",i({viewBox:"0 0 24 24",fill:"none"},e),a)}},9:function(e,t,n){"use strict";n.d(t,"I",(function(){return i.b})),n.d(t,"J",(function(){return i.c})),n.d(t,"F",(function(){return a.a})),n.d(t,"K",(function(){return a.b})),n.d(t,"H",(function(){return u})),n.d(t,"m",(function(){return d.a})),n.d(t,"B",(function(){return d.d})),n.d(t,"C",(function(){return d.e})),n.d(t,"y",(function(){return d.c})),n.d(t,"r",(function(){return d.b})),n.d(t,"z",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"i",(function(){return b})),n.d(t,"d",(function(){return k})),n.d(t,"c",(function(){return j})),n.d(t,"e",(function(){return w})),n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return x})),n.d(t,"f",(function(){return N})),n.d(t,"n",(function(){return A})),n.d(t,"w",(function(){return D})),n.d(t,"p",(function(){return T})),n.d(t,"G",(function(){return C})),n.d(t,"s",(function(){return R})),n.d(t,"v",(function(){return M})),n.d(t,"k",(function(){return P})),n.d(t,"o",(function(){return L.b})),n.d(t,"h",(function(){return L.a})),n.d(t,"t",(function(){return I.b})),n.d(t,"q",(function(){return I.a})),n.d(t,"A",(function(){return I.c})),n.d(t,"x",(function(){return F})),n.d(t,"u",(function(){return B})),n.d(t,"E",(function(){return z})),n.d(t,"D",(function(){return G.a})),n.d(t,"g",(function(){return W})),n.d(t,"L",(function(){return q})),n.d(t,"l",(function(){return H}));var r=n(14),i=n(37),a=n(75),o=n(35),c=n.n(o),s=n(98),l=n.n(s),u=function(e){return l()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===c()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))};n(99);var d=n(84);function f(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function p(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function g(e){return e.replace(/\n/gi,"<br>")}function m(e){for(var t=e,n=0,r=[f,p,g];n<r.length;n++){t=(0,r[n])(t)}return t}var v=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)]},b=function(e){var t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t},
|
|||
|
|
Object(_._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 D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!Object(r.isString)(e))return!1;var t=e.split("-");if(3!==t.length)return!1;var n=new Date(e);return Object(r.isDate)(n)&&!isNaN(n)}function T(e){O()(Object(r.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),n="".concat(e.getDate());return[e.getFullYear(),t.length<2?"0".concat(t):t,n.length<2?"0".concat(n):n].join("-")}function C(e){O()(D(e),k);var t=e.split("-"),n=y()(t,3),r=n[0],i=n[1],a=n[2];return new Date(r,i-1,a)}function R(e,t){return T(P(e,t*x))}function M(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 P(e,t){O()(D(e)||Object(r.isDate)(e)&&!isNaN(e),k);var n=D(e)?Date.parse(e):e.getTime();return new Date(n-1e3*t)}var L=n(100),I=n(81);function F(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function B(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var U=n(27),V=n.n(U),z=function(e){return Array.isArray(e)?V()(e).sort():e},G=n(90);function W(e,t){var n=function(e){return"0"===e||0===e};if(n(e)&&n(t))return 0;if(n(e)||Number.isNaN(e))return null;var r=(t-e)/e;return Number.isNaN(r)||!Number.isFinite(r)?null:r}var q=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},H=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(r.unescape)(t)}},90:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(12),i=n.n(r),a=function(e,t){var n=t.dateRangeLength;i()(Array.isArray(e),"report must be an array to partition."),i()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var r=-1*n;return{currentRange:e.slice(r),compareRange:e.slice(2*r,r)}}},91:function(e,t,n){"use strict";(function(e,r){n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return TourTooltips}));var i=n(5),a=n.n(i),o=n(82),c=n(30),s=n(0),l=n.n(s),u=n(2),d=n(3),f=n(24),p=n(7),g=n(37),m=n(109),v=n(18);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var h={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:"2px solid #3c7251",backgroundColor:"#fff"}},y={back:Object(u.__)("Back","google-site-kit"),close:Object(u.__)("Close","google-site-kit"),last:Object(u.__)("Got it","google-site-kit"),next:Object(u.__)("Next","google-site-kit")},E={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},O="feature_tooltip_view",_="feature_tooltip_advance",k="feature_tooltip_return",j="feature_tooltip_dismiss",w="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,i=t.tourID,s=t.gaEventCategory,l=t.callback,u="".concat(i,"-step"),S="".concat(i,"-run"),x=Object(d.useDispatch)(f.b).setValue,N=Object(d.useDispatch)(p.a).dismissTour,A=Object(d.useRegistry)(),D=Object(v.a)(),T=Object(d.useSelect)((function(e){return e(f.b).getValue(u)||0})),C=Object(d.useSelect)((function(e){return e(f.b).getValue(S)&&!1===e(p.a).isTourDismissed(i)}));Object(o.a)((function(){e.document.body.classList.add("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(i)),x(S,!0)}));var R=n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(
|
|||
|
|
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)(s));break;case"single":l=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"),s[0]);break;case"generic":l=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:u,message:l,ctaLabel:d}}},996:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UnsatisfiedScopesAlertGTE}));var i=n(2),a=n(3),o=n(13),c=n(7),s=n(46),l=n(29),u=n(200),d=n(113),f=n(183),p=n(189);function UnsatisfiedScopesAlertGTE(t){var n=t.id,g=t.Notification,m=Object(a.useSelect)((function(e){return e(l.a).getValue(c.d,"permissionsError")})),v=Object(a.useSelect)((function(t){var n;return t(c.a).getConnectURL({additionalScopes:[s.h],redirectURL:(null==m||null===(n=m.data)||void 0===n?void 0:n.redirectURL)||e.location.href})})),b=Object(a.useSelect)((function(e){return e(o.c).getGoogleSupportURL({path:"/tagmanager/answer/11994839"})}));return void 0===v?null:r.createElement(g,{className:"googlesitekit-publisher-win googlesitekit-publisher-win--win-error"},r.createElement(u.a,{title:Object(i.__)("Site Kit needs additional permissions to detect updates to tags on your site","google-site-kit"),description:r.createElement(d.a,{text:Object(i.__)("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:r.createElement(f.a,{id:n,label:Object(i.__)("Learn more","google-site-kit"),url:b})}),actions:r.createElement(p.a,{id:n,ctaLabel:Object(i.__)("Grant permission","google-site-kit"),ctaLink:v})}))}}).call(this,n(28),n(4))},997:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GatheringDataNotification}));var r=n(0),i=n.n(r),a=n(2),o=n(3),c=n(13),s=n(9),l=n(998),u=n(782),d=n(113),f=n(182),p=n(999);function GatheringDataNotification(t){var n,r=t.id,i=t.Notification,g=Object(o.useSelect)((function(e){return e(c.c).getAdminURL("googlesitekit-settings")})),m=Object(l.a)(),v=m.analyticsGatheringData,b=m.searchConsoleGatheringData,h=72;return v&&b?n=Object(a.__)("Search Console and Analytics are gathering data","google-site-kit"):v?n=Object(a.__)("Analytics is gathering data","google-site-kit"):b&&(h=48,n=Object(a.__)("Search Console is gathering data","google-site-kit")),h?e.createElement(i,{className:"googlesitekit-publisher-win"},e.createElement(u.a,{title:n,description:e.createElement(d.a,{text: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.",h,"google-site-kit"),h)}),actions:e.createElement(f.a,{id:r,ctaLabel:Object(a.__)("See other services","google-site-kit"),ctaLink:"".concat(g,"#/connect-more-services"),dismissLabel:Object(a.__)("Maybe later","google-site-kit"),dismissExpires:s.a}),SmallImageSVG:p.a})):null}GatheringDataNotification.propTypes={id:i.a.string,Notification:i.a.elementType}}).call(this,n(4))},998:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),i=n(19),a=n(7),o=n(8),c=n(66),s=n(34);function l(){var e=Object(s.a)(),t=Object(r.useSelect)((function(e){return e(i.a).isModuleConnected("analytics-4")})),n=Object(r.useSelect)((function(t){return!e||t(a.a).canViewSharedModule("analytics-4")})),l=Object(r.useSelect)((function(t){return!e||t(a.a).canViewSharedModule("search-console")})),u=Object(r.useSelect)((function(t){if(!e)return!1;var n=t(i.a).getRecoverableModules();return void 0!==n?Object.keys(n).includes("analytics-4"):void 0})),d=Object(r.useSelect)((function(t){if(!e)return!1;var n=t(i.a).getRecoverableModules();return void 0!==n?Object.keys(n).includes("search-console"):void 0}));return{analyticsGatheringData:Object(r.useInViewSelect)((function(e){return!(!t||!n||!1!==u)&&e(o.r).isGatheringData()}),[t,n,u]),searchConsoleGatheringData:Object(r.useInViewSelect)((function(e){return l&&!1===d&&e(c.b).isGatheringData()}),[l,d]),analyticsHasZeroData:Object(r.useInViewSelect)((function(e){return!(!t||!n||!1!==u)&&e(o.r).hasZeroData()}),[t,n,u]),searchConsoleHasZeroData:Object(r.useInViewSelect)((function(e){return l&&!1===d&&e(c.b).hasZeroData()}),[l,d])}}},999:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M128.91 163c-12.56 3.66-25.8 10.57-31.82 22.81-6.35 12.93-1.46 28.49 10.19 36.65M271.09 163c12.56 3.66 25.8 10.57 31.82 22.81 6.35 12.93 1.46 28.49-10.19 36.65",stroke:"#EE675C",strokeLinejoin:"round",strokeWidth:9.27}),o=r.createElement("ellipse",{cx:200,cy:381.74,rx:79.51,ry:8.26,fill:"#F1F3F4"}),c=r.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"}),s=r.createElement("path",{d:"M216.76 201.8s-64.53 36.51-77.35 71.84c-4.72 13 3.53 27.36 17.27 29 11.31 1.39 28.4-3.14 53.06-24.33v31.36",stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:9.27}),l=r.createElement("path",{d:"M216.76 201.8s-35.21 19.92-58.76 44.56",stroke:"#B31412",strokeLinejoin:"round",strokeWidth:9.27}),u=r.createElement("path",{stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:9.27,d:"M218.98 201.47V380h29.52"}),d=r.createElement("path",{stroke:"#B31412",strokeLinejoin:"round",strokeWidth:9.27,d:"M218.98 201.47v47.5"}),f=r.createElement("circle",{cx:200,cy:162.34,r:81.45,fill:"#D93025"}),p=r.createElement("path",{d:"M206.36 156.18c-18.33 10.42-42 6.07-50.25-19.59M164.26 137.72c-5.22-2.69-9-2.82-16.17-.91",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6.62}),g=r.createElement("path",{d:"M107.28 222.48c28.36 19.87 76.07-7.28 88.72-35.17M292.72 222.48c-28.36 19.87-76.07-7.28-88.72-35.17",stroke:"#EE675C",strokeLinejoin:"round",strokeWidth:9.27});t.a=function SvgZeroStateRed(e){return r.createElement("svg",i({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,l,u,d,f,p,g)}}},[[1274,1,0]]]);
|