42 lines
103 KiB
JavaScript
42 lines
103 KiB
JavaScript
|
|
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[28],{1:function(e,t){e.exports=googlesitekit.i18n},10:function(e,t){e.exports=googlesitekit.components},100:function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r(5),i=r.n(n),o=r(6),a=r.n(o),c=r(15),s=r.n(c),u=r(60),l=r(44);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r,n){var o=Object(u.a)(t);return function(){var t=s()(i.a.mark((function t(a,c,s,u){var d,f,m,p,b,v,O,h,y,_;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(d=e.activeModules,f=e.referenceSiteURL,m=e.trackingEnabled,p=e.trackingID,b=e.userIDHash,v=e.userRoles,O=void 0===v?[]:v,h=e.isAuthenticated,y=e.pluginVersion,m){t.next=3;break}return t.abrupt("return");case 3:return r(),_={send_to:p,event_category:a,event_label:s,value:u,dimension1:f,dimension2:O.join(","),dimension3:b,dimension4:y||"",dimension5:Array.from(l.a).join(","),dimension6:d.join(","),dimension7:h?"1":"0"},t.abrupt("return",new Promise((function(e){var t,r,i=setTimeout((function(){n.console.warn('Tracking event "'.concat(c,'" (category "').concat(a,'") took too long to fire.')),e()}),1e3),s=function(){clearTimeout(i),e()};o("event",c,g(g({},_),{},{event_callback:s})),(null===(t=n._gaUserPrefs)||void 0===t||null===(r=t.ioo)||void 0===r?void 0:r.call(t))&&s()})));case 6:case"end":return t.stop()}}),t)})));return function(e,r,n,i){return t.apply(this,arguments)}}()}},1003:function(e,t,r){"use strict";r.r(t),function(e){var n=r(4),i=r.n(n),o=r(623);Object(o.b)(i.a);var a=Object(o.a)(i.a);Object(o.c)(a),void 0===e.googlesitekit&&(e.googlesitekit={}),e.googlesitekit.widgets=a,t.default=a}.call(this,r(26))},101:function(e,t,r){"use strict";(function(e){var n=r(0),i=r.n(n),o=r(12),a=r.n(o),c=r(10),s=r(21),u=function CTA(t){var r=t.title,n=t.headerText,i=t.description,o=t.ctaLink,u=t.ctaLabel,l=t.ctaLinkExternal,d=t.ctaType,g=t.error,f=t.onClick,m=t["aria-label"],p=t.children;return e.createElement("div",{className:a()("googlesitekit-cta",{"googlesitekit-cta--error":g})},n&&e.createElement("h2",{className:"googlesitekit-cta__header_text"},n),r&&e.createElement("h3",{className:"googlesitekit-cta__title"},r),i&&"string"==typeof i&&e.createElement("p",{className:"googlesitekit-cta__description"},i),i&&"string"!=typeof i&&e.createElement("div",{className:"googlesitekit-cta__description"},i),u&&"button"===d&&e.createElement(c.Button,{"aria-label":m,href:o,onClick:f},u),u&&"link"===d&&e.createElement(s.a,{href:o,onClick:f,"aria-label":m,external:l,hideExternalIndicator:l,arrow:!0},u),p)};u.propTypes={title:i.a.string.isRequired,headerText:i.a.string,description:i.a.oneOfType([i.a.string,i.a.node]),ctaLink:i.a.string,ctaLinkExternal:i.a.bool,ctaLabel:i.a.string,ctaType:i.a.string,"aria-label":i.a.string,error:i.a.bool,onClick:i.a.func,children:i.a.node},u.defaultProps={title:"",headerText:"",description:"",ctaLink:"",ctaLabel:"",ctaType:"link",error:!1,onClick:function(){}},t.a=u}).call(this,r(3))},104:function(e,t,r){"use strict";(function(e,n){r.d(t,"c",(function(){return E})),r.d(t,"b",(function(){return k})),r.d(t,"a",(function(){return TourTooltips}));var i=r(6),o=r.n(i),a=r(89),c=r(27),s=r(0),u=r.n(s),l=r(1),d=r(4),g=r.n(d),f=r(29),m=r(9),p=r(34),b=r(117),v=r(20);function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var h=g.a.useSelect,y=g.a.useDispatch,_=g.a.useRegistry,E={options:
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(n.__)("Your Google account does not have sufficient permissions to access %s data, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"),c)),u&&u.login&&(d=Object(n.sprintf)(
|
|||
|
|
/* translators: %s: owner name */
|
|||
|
|
Object(n.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),u.login)),d||(d=Object(n.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(l," ").concat(d)}},150:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return RecoverableModules}));var n=r(0),i=r.n(n),o=r(1),a=r(4),c=r.n(a),s=r(18),u=r(101),l=c.a.useSelect;function RecoverableModules(t){var r=t.moduleSlugs,n=l((function(e){var t=e(s.a).getModules();if(void 0!==t)return r.map((function(e){return t[e].name}))}));if(void 0===n)return null;var i=1===n.length?Object(o.sprintf)(
|
|||
|
|
/* translators: %s: Module name */
|
|||
|
|
Object(o.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),n[0]):Object(o.sprintf)(
|
|||
|
|
/* translators: %s: List of module names */
|
|||
|
|
Object(o.__)("The data for the following modules was previously shared by an admin who no longer has access: %s. Please contact another admin to restore it.","google-site-kit"),n.join(Object(o._x)(", ","Recoverable modules","google-site-kit")));return e.createElement(u.a,{title:Object(o.__)("Data Unavailable","google-site-kit"),description:i})}RecoverableModules.propTypes={moduleSlugs:i.a.arrayOf(i.a.string).isRequired}}).call(this,r(3))},159:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(4),i=r.n(n),o=r(29),a=i.a.useSelect;function c(e){return a((function(t){return t(o.b).getValue(e)||{isTooltipVisible:!1,rehideAdminMenu:!1,rehideAdminSubMenu:!1}}))}},161:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ReportZero}));var n=r(0),i=r.n(n),o=r(1),a=r(4),c=r.n(a),s=r(18),u=r(101),l=c.a.useSelect;function ReportZero(t){var r=t.moduleSlug,n=l((function(e){return e(s.a).getModule(r)}));return e.createElement(u.a,{title:Object(o.sprintf)(
|
|||
|
|
/* translators: %s: Module name */
|
|||
|
|
Object(o.__)("%s Gathering Data","google-site-kit"),null==n?void 0:n.name),description:Object(o.sprintf)(
|
|||
|
|
/* translators: %s: Module name */
|
|||
|
|
Object(o.__)("%s data is not yet available, please check back later","google-site-kit"),null==n?void 0:n.name)})}ReportZero.propTypes={moduleSlug:i.a.string.isRequired}}).call(this,r(3))},17:function(e,t,r){"use strict";var n=r(218);r.d(t,"i",(function(){return n.a}));var i=r(288);r.d(t,"f",(function(){return i.a}));var o=r(289);r.d(t,"h",(function(){return o.a}));var a=r(290);r.d(t,"j",(function(){return a.a}));var c=r(287);r.d(t,"g",(function(){return c.a}));var s=r(95),u=r.n(s);r.d(t,"b",(function(){return u.a})),r.d(t,"c",(function(){return s.DialogContent})),r.d(t,"d",(function(){return s.DialogFooter}));var l=r(77);r.d(t,"a",(function(){return l.a})),r.d(t,"e",(function(){return l.b})),r.d(t,"k",(function(){return l.c}))},170:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ReportErrorActions}));var n=r(6),i=r.n(n),o=r(0),a=r.n(o),c=r(2),s=r(49),u=r(1),l=r(4),d=r.n(l),g=r(10),f=r(13),m=r(18),p=r(47),b=r(38),v=r(21);function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var h=d.a.useSelect,y=d.a.useDispatch;function ReportErrorActions(t){var r=t.moduleSlug,n=t.error,o=t.GetHelpLink,a=Object(b.a)(),l=h((function(e){return e(m.a).getModuleStoreName(r)})),d=h((function(e){var t;return"function"==typeof(null===(t=e(l))||void 0===t?void 0:t.getServiceEntityAccessURL)?e(l).getServiceEntityAccessURL():null})),_=Array.isArray(n)?n:[n],E=_.filter((function(e){return Object(p.d)(e,e.selectorData)&&"getReport"===e.selectorData.name})),A=!!E.length,k=h((function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},A?E[0]:_[0]);return Object(p.e)(t)&&(t.code="".concat(r,"_insufficient_permissions")),e(f.c).getErrorTroubleshootingLinkURL(t)})),T=y(),j=_.some((function(e){return Object(p.e)(e)})),w=Object(c.useCallback)((function(){E.forEach((function(e){var t=e.selectorData;T(t.storeName).invalidateResolution(t.name,t.args)}))}),[T,E]),S=d&&j&&!a;return e.createElement("div",{className:"googlesitekit-report-error-actions"},S&&e.createElement(g.Button,{href:d,target:"_blank"},Object(u.__)("Request access","google-site-kit")),A?e.createElement(c.Fragment,null,e.createElement(g.Button,{onClick:w},Object(u.__)("Retry","google-site-kit")),e.createElement("span",{className:"googlesitekit-error-retry-text"},Object(s.a)(Object(u.__)("Retry didn’t work? <HelpLink />","google-site-kit"),{HelpLink:e.createElement(v.a,{href:k,external:!0},Object(u.__)("Get help","google-site-kit"))}))):e.createElement("div",null,"function"==typeof o?e.createElement(o,{linkURL:k}):e.createElement(v.a,{href:k,external:!0},Object(u.__)("Get help","google-site-kit"))))}ReportErrorActions.propTypes={moduleSlug:a.a.string.isRequired,error:a.a.oneOfType([a.a.arrayOf(a.a.object),a.a.object]).isRequired,GetHelpLink:a.a.elementType}}).call(this,r(3))},177:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ReportError}));var n=r(6),i=r.n(n),o=r(0),a=r.n(o),c=r(14),s=r(2),u=r(1),l=r(4),d=r.n(l),g=r(18),f=r(47),m=r(148),p=r(84),b=r(78),v=r(101),O=r(170),h=r(38);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var E=d.a.useSelect;function
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(u.__)("Access lost to %s","google-site-kit"),null==a?void 0:a.name),Object(u.sprintf)(
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(u.__)("The administrator sharing this module with you has lost access to the %s service, so you won’t be able to see stats from it on the Site Kit dashboard. You can contact them or another administrator to restore access.","google-site-kit"),null==a?void 0:a.name)):(r=Object(u.sprintf)(
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(u.__)("Insufficient permissions in %s","google-site-kit"),null==a?void 0:a.name),Object(m.a)(e.message,a)):Object(f.b)(e)},y=Object(c.uniqWith)(l.map((function(e){var t;return _(_({},e),{},{message:d(e),reconnectURL:null===(t=e.data)||void 0===t?void 0:t.reconnectURL})})),(function(e,t){return e.message===t.message&&e.reconnectURL===t.reconnectURL})),A=l.some((function(e){return Object(f.e)(e)}));A||1!==y.length?!A&&y.length>1&&(r=Object(u.sprintf)(
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(u.__)("Data errors in %s","google-site-kit"),null==a?void 0:a.name)):r=Object(u.sprintf)(
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(u.__)("Data error in %s","google-site-kit"),null==a?void 0:a.name);var k=e.createElement(s.Fragment,null,y.map((function(t){var r,n=null==i||null===(r=i.data)||void 0===r?void 0:r.reconnectURL;return n?e.createElement(b.a,{key:t.message,message:t.message,reconnectURL:n}):e.createElement("p",{key:t.message},p.a.sanitize(t.message,{ALLOWED_TAGS:[]}))})));return e.createElement(v.a,{title:r,description:k,error:!0},e.createElement(O.a,{moduleSlug:n,error:i}))}ReportError.propTypes={moduleSlug:a.a.string.isRequired,error:a.a.oneOfType([a.a.arrayOf(a.a.object),a.a.object]).isRequired}}).call(this,r(3))},179:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return g})),r.d(t,"b",(function(){return m}));var n=r(23),i=r.n(n),o=r(79),a=r.n(o),c=r(261),s=r(309),u=r(310),l=r(311),d=r(262),g=a()((function(e){return{widgetSlug:e,Widget:f(e)(c.a),WidgetRecoverableModules:f(e)(d.a),WidgetReportZero:f(e)(s.a),WidgetReportError:f(e)(u.a),WidgetNull:f(e)(l.a)}}));function f(t){return function(r){var n=function WithWidgetSlug(n){return e.createElement(r,i()({},n,{widgetSlug:t}))};return n.displayName="WithWidgetSlug",(r.displayName||r.name)&&(n.displayName+="(".concat(r.displayName||r.name,")")),n}}var m=function(t){var r=g(t);return function(t){var n=function DecoratedComponent(n){return e.createElement(t,i()({},n,r))};return n.displayName="WithWidgetComponentProps",(t.displayName||t.name)&&(n.displayName+="(".concat(t.displayName||t.name,")")),n}}}).call(this,r(3))},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var n="core/modules",i="insufficient_module_dependencies"},19:function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"e",(function(){return i})),r.d(t,"f",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return s}));var n="modules/analytics-4",i="property_create",o="webdatastream_create",a=10,c=1,s="https://www.googleapis.com/auth/tagmanager.readonly"},193:function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return JoyrideTooltip}));var i=r(6),o=r.n(i),a=r(16),c=r.n(a),s=r(0),u=r(27),l=r(459),d=r(2),g=r(117),f=r(93),m=r(104);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function JoyrideTooltip(t){var r=t.title,i=t.content,o=t.dismissLabel,a=t.target,s=t.cta,p=void 0!==s&&s,v=t.className,O=t.styles,h=void 0===O?{}:O,y=t.slug,_=void 0===y?"":y,E=t.onDismiss,A=void 0===E?function(){}:E,k=t.onView,T=void 0===k?function(){}:k,j=t.onTourStart,w=void 0===j?function(){}:j,S=t.onTourEnd,R=void 0===S?function(){}:S,N=function(){return!!e.document.querySelector(a)},D=Object(d.useState)(N),P=c()(D,2),I=P[0],C=P[1];if(Object(l.a)((function(){N()&&C(!0)}),I?null:250),Object(d.useEffect)((function(){if(I&&e.ResizeObserver){var t=e.document.querySelector(a),r=new ResizeObserver((function(){e.dispatchEvent(new Event("resize"))}));return r.observe(t),function(){r.disconnect()}}}),[a,I]),!I)return null;var M=[{title:r,target:a,content:i,disableBeacon:!0,isFixed:!0,placement:"auto",cta:p,className:v}],W={last:o};return n.createElement(f.a,{slug:_},n.createElement(u.e,{callback:function(e){switch(e.type){case u.b.TOUR_START:w();break;case u.b.TOUR_END:R();break;case u.b.STEP_AFTER:A();break;case u.b.TOOLTIP:T()}},disableOverlay:!0,disableScrolling:!0,spotlightPadding:0,floaterProps:m.b,locale:W,steps:M,styles:b(b(b({},m.c),h),{},{options:b(b({},m.c.options),null==h?void 0:h.options),spotlight:b(b({},m.c.spotlight),null==h?void 0:h.spotlight)}),tooltipComponent:g.a,ru
|
|||
|
|
/* translators: %s: get help text. */
|
|||
|
|
Object(a.__)("Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:e.createElement(c.a,{href:r,external:!0},Object(a.__)("Get help","google-site-kit"))})}GetHelpLink.propTypes={linkURL:i.a.string.isRequired}}).call(this,r(3))},418:function(e,t,r){"use strict";var n=r(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var o=n.createElement("path",{d:"M7.334 11.333h1.333v-4H7.334v4zM8.001 6a.658.658 0 00.667-.667.605.605 0 00-.2-.467.605.605 0 00-.467-.2.658.658 0 00-.667.667c0 .189.061.35.183.483A.69.69 0 008.001 6zm0 8.666a6.583 6.583 0 01-2.6-.516 6.85 6.85 0 01-2.117-1.434A6.85 6.85 0 011.851 10.6 6.582 6.582 0 011.334 8c0-.923.172-1.79.517-2.6a6.85 6.85 0 011.433-2.117c.6-.6 1.306-1.072 2.117-1.417A6.404 6.404 0 018 1.333c.922 0 1.789.178 2.6.533a6.618 6.618 0 012.116 1.417c.6.6 1.072 1.306 1.417 2.117.355.81.533 1.677.533 2.6 0 .922-.178 1.789-.533 2.6a6.619 6.619 0 01-1.417 2.116 6.85 6.85 0 01-2.116 1.434 6.583 6.583 0 01-2.6.516zm0-1.333c1.489 0 2.75-.517 3.783-1.55s1.55-2.294 1.55-3.783c0-1.49-.517-2.75-1.55-3.784-1.033-1.033-2.294-1.55-3.783-1.55-1.49 0-2.75.517-3.784 1.55C3.184 5.25 2.667 6.511 2.667 8c0 1.489.517 2.75 1.55 3.783 1.034 1.033 2.295 1.55 3.784 1.55z",fill:"#108080"});t.a=function SvgInfoGreen(e){return n.createElement("svg",i({viewBox:"0 0 16 16",fill:"none"},e),o)}},42:function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"e",(function(){return i})),r.d(t,"d",(function(){return o})),r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return c})),r.d(t,"f",(function(){return s}));var n="Date param must construct to a valid date instance or be a valid date instance itself.",i="Invalid dateString parameter, it must be a string.",o='Invalid date range, it must be a string with the format "last-x-days".',a=3600,c=86400,s=604800},43:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e){return e instanceof Date&&!isNaN(e)}},44:function(e,t,r){"use strict";(function(e){var n,i;r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a}));var o=new Set((null===(n=e)||void 0===n||null===(i=n._googlesitekitBaseData)||void 0===i?void 0:i.enabledFeatures)||[]),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return t instanceof Set&&t.has(e)}}).call(this,r(26))},47:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"f",(function(){return c})),r.d(t,"e",(function(){return s})),r.d(t,"c",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"b",(function(){return d}));r(14);var n=r(1),i="missing_required_scopes",o="insufficientPermissions",a="forbidden";function c(e){return(null==e?void 0:e.code)===i}function s(e){var t;return[o,a].includes(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}function u(e){var t;return!!(null==e||null===(t=e.data)||void 0===t?void 0:t.reconnectURL)}function l(e,t){return!(!(null==t?void 0:t.storeName)||s(e)||c(e)||u(e))}function d(e){return"internal_server_error"===(null==e?void 0:e.code)?Object(n.__)("There was a critical error on this website while fetching data.","google-site-kit"):"invalid_json"===(null==e?void 0:e.code)?Object(n.__)("The server provided an invalid response.","google-site-kit"):null==e?void 0:e.message}},53:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(43),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var r=e.split("-");return 3===r.length&&Object(n.a)(new Date(e))}},57:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return i}));var n="modules/search-console",i=1},58:function(e,t,r){"use strict";r.d(t,"a",(function(){return b})),r.d(t,"b",(function(){return v}));var n=r(6),i=r.n(n),o=r(33),a=r.n(o),c=r(130),s=r(11),u=r.n(s),l=r(90),d=r.n(l),g=r(7);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols
|
|||
|
|
/* translators: %s: number of days */
|
|||
|
|
Object(g._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}}}},65:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(2),i=Object(n.createContext)(""),o=(i.Consumer,i.Provider);t.b=i},66:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"d",(function(){return c}));var n=r(94);function i(e){try{return new URL(e).pathname}catch(e){}return null}function o(e,t){try{return new URL(t,e).href}catch(e){}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function a(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function c(e,t){if(!Object(n.a)(e))return e;if(e.length<=t)return e;var r=new URL(e),i=e.replace(r.origin,"");if(i.length<t)return i;var o=i.length-Math.floor(t)+1;return"…"+i.substr(o)}},7:function(e,t,r){"use strict";r.d(t,"A",(function(){return i.b})),r.d(t,"x",(function(){return o.a})),r.d(t,"B",(function(){return o.b})),r.d(t,"z",(function(){return l})),r.d(t,"h",(function(){return d.a})),r.d(t,"v",(function(){return d.d})),r.d(t,"w",(function(){return d.e})),r.d(t,"s",(function(){return d.c})),r.d(t,"m",(function(){return d.b})),r.d(t,"t",(function(){return p})),r.d(t,"f",(function(){return b})),r.d(t,"b",(function(){return v.b})),r.d(t,"a",(function(){return v.a})),r.d(t,"c",(function(){return v.e})),r.d(t,"k",(function(){return v.g})),r.d(t,"i",(function(){return v.f})),r.d(t,"y",(function(){return v.k})),r.d(t,"j",(function(){return O.b})),r.d(t,"q",(function(){return O.c})),r.d(t,"e",(function(){return O.a})),r.d(t,"o",(function(){return h.b})),r.d(t,"l",(function(){return h.a})),r.d(t,"u",(function(){return h.c})),r.d(t,"r",(function(){return y})),r.d(t,"p",(function(){return _})),r.d(t,"n",(function(){return E})),r.d(t,"d",(function(){return A})),r.d(t,"C",(function(){return k})),r.d(t,"g",(function(){return T}));var n=r(14),i=r(34),o=r(73),a=r(33),c=r.n(a),s=r(90),u=r.n(s),l=function(e){return u()(JSON.stringify(function e(t){var r={};return Object.keys(t).sort().forEach((function(n){var i=t[n];i&&"object"===c()(i)&&!Array.isArray(i)&&(i=e(i)),r[n]=i})),r}(e)))};r(96);var d=r(74);function g(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function f(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function m(e){return e.replace(/\n/gi,"<br>")}function p(e){for(var t=e,r=0,n=[g,f,m];r<n.length;r++){t=(0,n[r])(t)}return t}var b=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)]},v=r(64),O=r(97),h=r(66);function y(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function _(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var E=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}};function A(e,t){var r=function(e){return"0"===e||0===e};if(r(e)&&r(t))return 0;if(r(e)||Number.isNaN(e))return null;var n=(t-e)/e;return Number.isNaN(n)||!Number.isFinite(n)?null:n}var k=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},T=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)}},71:function(e,t,r){"use strict";r.r(t),r.d(t,"CONTEXT_MAIN_DASHBOARD_KEY_METRICS",(function(){return n})),r.d(t,"CONTEXT_MAIN_DASHBOARD_TRAFFIC",(function(){return i})),r.d(t,"CONTEXT_MAIN_DASHBOARD_CONTENT",(function(){return o})),r.d(t,"CONTEXT_MAIN_DASHBOARD_SPEED",(function(){return a})),r.d(t,"CONTEXT_MAIN_DASHBOARD_MONETIZATION",(function(){return c})),r.d(t,"CONTEXT_ENTITY_DAS
|
|||
|
|
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
|
|||
|
|
Object(m._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?k(i,b(b({},a),{},{unit:"second"})):"",n?k(n,b(b({},a),{},{unit:"minute"})):"",r?k(r,b(b({},a),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(m.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit.
|
|||
|
|
Object(m.__)("%ds","google-site-kit"),i);if(0===e)return t;var o=Object(m.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
|
|||
|
|
Object(m.__)("%dm","google-site-kit"),n),a=Object(m.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit.
|
|||
|
|
Object(m.__)("%dh","google-site-kit"),r);return Object(m.sprintf)(
|
|||
|
|
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
|
|||
|
|
Object(m._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?t:"",n?o:"",r?a:"").trim()}}},h=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},y=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in millions.
|
|||
|
|
Object(m.__)("%sM","google-site-kit"),k(h(e),e%10==0?{}:t)):1e4<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(m.__)("%sK","google-site-kit"),k(h(e))):1e3<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(m.__)("%sK","google-site-kit"),k(h(e),e%10==0?{}:t)):k(e,{signDisplay:"never",maximumFractionDigits:1})};function _(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=b({},e)),t}function E(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,a()(e)),e=0);var r=_(t),n=r.style,i=void 0===n?"metric":n;return"metric"===i?y(e):"duration"===i?v(e,r):k(e,r)}var A=f()(console.warn),k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?j():r,o=l()(t,["locale"]);try{return new Intl.NumberFormat(n,o).format(e)}catch(t){A("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(o)," ).format( ").concat(a()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],u={},d=0,g=Object.entries(o);d<g.length;d++){var f=i()(g[d],2),m=f[0],p=f[1];c[m]&&p===c[m]||(s.includes(m)||(u[m]=p))}try{return new Intl.NumberFormat(n,u).format(e)}catch(t){return new Intl.NumberFormat(n).format(e)}},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?j():r,i=t.style,o=void 0===i?"long":i,a=t.type,c=void 0===a?"conjunction":a;if(Intl.ListFormat){var s=new Intl.ListFormat(n,{style:o,type:c});return s.format(e)}
|
|||
|
|
/* translators: used between list items, there is a space after the comma. */var u=Object(m.__)(", ","google-site-kit");return e.join(u)},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(r){var n=r.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,r(26))},758:function(e,t,r){"use strict";(function(e){var n=r(6),i=r.n(n),o=r(11),a=r.n(o),c=r(4),s=r.n(c),u=r(41),l=r(759),d=r(259);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var m=s.a.createRegistrySelector,p=Object.keys(u.b).map((function(e){return"WIDGET_AREA_STYLES.".concat(e)})).join(", "),b={assignWidgetArea:function(e,t){return{payload:{slug:e,contextSlugs:"string"==typeof t?[t]:t},type:"ASSIGN_WIDGET_AREA"}},registerWidgetArea:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.priority,n=void 0===r?10:r,i=t.style,o=void 0===i?u.b.BOXES:i,c=t.title,s=t.subtitle,l=t.Icon,d=t.CTA,g=t.filterActiveWidgets;return a()(e,"slug is required."),a()(c,"settings.title is required."),a()(Object.values(u.b).includes(o),"settings.style must be one of: ".concat(p,".")),{payload:{slug:e,settings:{priority:n,style:o,title:c,subtitle:s,Icon:l,CTA:d,filterActiveWidgets:g}},type:"REGISTER_WIDGET_AREA"}}},v=Object(d.a)((function(t,r){var n=r.type,i=r.payload;switch(n){case"ASSIGN_WIDGET_AREA":var o=i.slug;return i.contextSlugs.forEach((function(e){void 0===t.contextAssignments[e]&&(t.contextAssignments[e]=[]),t.contextAssignments[e].includes(o)||t.contextAssignments[e].push(o)})),t;case"REGISTER_WIDGET_AREA":var a=i.slug,c=i.settings;return void 0!==t.areas[a]?(e.console.warn('Could not register widget area with slug "'.concat(a,'". Widget area "').concat(a,'" is already registered.')),t):(t.areas[a]=f(f({},c),{},{slug:a}),t);default:return t}})),O={isWidgetAreaActive:m((function(e){return function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a()(r,"widgetAreaSlug is required to check a widget area is active.");var i=n.modules,o=e(u.a).getWidgetArea(r),c=e(u.a).getWidgets(r,{modules:i});return o.filterActiveWidgets&&(c=o.filterActiveWidgets(e,c)),c.some((function(t){return e(u.a).isWidgetActive(t.slug)}))}})),isWidgetAreaRegistered:function(e,t){return void 0!==e.areas[t]},getWidgetAreas:function(e,t){a()(t,"contextSlug is required.");var r=e.areas,n=e.contextAssignments;return Object(l.a)(Object.values(r).filter((function(e){return n[t]&&n[t].includes(e.slug)})),"priority")},getWidgetArea:function(e,t){return a()(t,"slug is required."),e.areas[t]||null}};t.a={initialState:{areas:{},contextAssignments:{}},actions:b,controls:{},reducer:v,resolvers:{},selectors:O}}).call(this,r(26))},759:function(e,t,r){"use strict";function n(e,t){return e.sort((function(e,r){return e[t]>r[t]?1:e[t]<r[t]?-1:0}))}r.d(t,"a",(function(){return n}))},760:function(e,t,r){"use strict";(function(e){var n=r(6),i=r.n(n),o=r(11),a=r.n(o),c=r(14),s=r(383),u=r(4),l=r.n(u),d=r(265),g=r(41),f=r(259);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.de
|
|||
|
|
/* translators: %s: Error message */
|
|||
|
|
Object(a.__)("Error: %s","google-site-kit"),r)),n&&Object(o.a)(n)&&(s=s+" "+Object(a.sprintf)(
|
|||
|
|
/* translators: %s: Reconnect URL */
|
|||
|
|
Object(a.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),n));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.x)(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,r(3))},83:function(e,t,r){"use strict";(function(e){var n=r(0),i=r.n(n),o=r(12),a=r.n(o);function ChangeArrow(t){var r=t.direction,n=t.invertColor,i=t.width,o=t.height;return e.createElement("svg",{className:a()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(r),{"googlesitekit-change-arrow--inverted-color":n}),width:i,height:o,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,r(3))},84:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(134),i=r.n(n)()(e)}).call(this,r(26))},87:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return o}));var n=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},i=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function o(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},9:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"o",(function(){return a})),r.d(t,"t",(function(){return c})),r.d(t,"v",(function(){return s})),r.d(t,"r",(function(){return u})),r.d(t,"s",(function(){return l})),r.d(t,"q",(function(){return d})),r.d(t,"p",(function(){return g})),r.d(t,"u",(function(){return f})),r.d(t,"d",(function(){return m})),r.d(t,"e",(function(){return p})),r.d(t,"f",(function(){return b})),r.d(t,"g",(function(){return v})),r.d(t,"h",(function(){return O})),r.d(t,"i",(function(){return h})),r.d(t,"j",(function(){return y})),r.d(t,"k",(function(){return _})),r.d(t,"l",(function(){return E})),r.d(t,"m",(function(){return A})),r.d(t,"n",(function(){return k})),r.d(t,"w",(function(){return T}));var n="core/user",i="connected_url_mismatch",o="__global",a="googlesitekit_authenticate",c="googlesitekit_setup",s="googlesitekit_view_dashboard",u="googlesitekit_manage_options",l="googlesitekit_read_shared_module_data",d="googlesitekit_manage_module_sharing_options",g="googlesitekit_delegate_module_sharing_management",f="googlesitekit_update_plugins",m="kmAnalyticsAdSenseTopEarningContent",p="kmAnalyticsEngagedTrafficSource",b="kmAnalyticsLoyalVisitors",v="kmAnalyticsNewVisitors",O="kmAnalyticsPopularContent",h="kmAnalyticsPopularProducts",y="kmAnalyticsTopCities",_="kmAnalyticsTopConvertingTrafficSource",E="kmAnalyticsTopCountries",A="kmAnalyticsTopTrafficSource",k="kmSearchConsolePopularKeywords",T=[].concat([m,p,b,v,O,h,y,_,E,A],[k])},93:function(e,t,r){"use strict";var n=r(16),i=r.n(n),o=r(270),a=r(0),c=r.n(a),s=r(2),u=r(121);function Portal(e){var t=e.children,r=e.slug,n=Object(s.useState)(document.createElement("div")),a=i()(n,1)[0];return Object(o.a)((function(){r&&a.classList.add("googlesitekit-portal-".concat(r));var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(a),function(){return e.removeChild(a)}})),Object(u.createPortal)(t,a)}Portal.propTypes={slug:c.a.string,children:c.a.node},Portal.defaultProps={slug:"",children:null},t.a=Portal},96:function(e,t,r){"use strict";(function(e){r(51),r(52)}).call(this,r(26))},97:function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return c}));var n=r(
|