34 lines
139 KiB
JavaScript
34 lines
139 KiB
JavaScript
|
|
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[4],{101:function(e,t,n){"use strict";(function(e,r){n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return TourTooltips}));var a=n(5),i=n.n(a),o=n(84),c=n(32),s=n(0),l=n.n(s),u=n(2),d=n(4),g=n(26),f=n(7),p=n(40),m=n(119),b=n(18);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}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"}},O={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")},y={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)"}}},k="feature_tooltip_view",E="feature_tooltip_advance",j="feature_tooltip_return",_="feature_tooltip_dismiss",S="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,a=t.tourID,s=t.gaEventCategory,l=t.callback,u="".concat(a,"-step"),w="".concat(a,"-run"),N=Object(d.useDispatch)(g.b).setValue,D=Object(d.useDispatch)(f.a).dismissTour,T=Object(d.useRegistry)(),R=Object(b.a)(),C=Object(d.useSelect)((function(e){return e(g.b).getValue(u)||0})),P=Object(d.useSelect)((function(e){return e(g.b).getValue(w)&&!1===e(f.a).isTourDismissed(a)}));Object(o.a)((function(){e.document.body.classList.add("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(a)),N(w,!0)}));var A=n.map((function(e){return function(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}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return r.createElement(c.e,{callback:function(t){!function(e){var t=e.index,n=e.action,r=e.lifecycle,a=e.size,i=e.status,o=e.type,l=t+1,u="function"==typeof s?s(R):s;o===c.b.TOOLTIP&&r===c.c.TOOLTIP?Object(p.b)(u,k,l):n===c.a.CLOSE&&r===c.c.COMPLETE?Object(p.b)(u,_,l):n===c.a.NEXT&&i===c.d.FINISHED&&o===c.b.TOUR_END&&a===l&&Object(p.b)(u,S,l),r===c.c.COMPLETE&&i!==c.d.FINISHED&&(n===c.a.PREV&&Object(p.b)(u,j,l),n===c.a.NEXT&&Object(p.b)(u,E,l))}(t);var n=t.action,r=t.index,i=t.status,o=t.step,d=t.type,g=n===c.a.CLOSE,f=!g&&[c.b.STEP_AFTER,c.b.TARGET_NOT_FOUND].includes(d),m=[c.d.FINISHED,c.d.SKIPPED].includes(i),b=g&&d===c.b.STEP_AFTER,v=m||b;if(c.b.STEP_BEFORE===d){var h,O,y=o.target;"string"==typeof o.target&&(y=e.document.querySelector(o.target)),null===(h=y)||void 0===h||null===(O=h.scrollIntoView)||void 0===O||O.call(h,{block:"center"})}f?function(e,t){N(u,e+(t===c.a.PREV?-1:1))}(r,n):v&&(e.document.body.classList.remove("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(a)),D(a)),l&&l(t,T)},floaterProps:y,locale:O,run:P,stepIndex:C,steps:A,styles:h,tooltipComponent:m.a,continuous:!0,disableOverlayClose:!0,disableScrolling:!0,showProgress:!0})}TourTooltips.propTypes={steps:l.a.arrayOf(l.a.object).isRequired,tourID:l.a.string.isRequired,gaEventCategory:l.a.oneOfType([l.a.string,l.a.func]).isRequired,callback:l.a.func}}).call(this,n(28),n(3))},102:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(10),o=n.n(i),c=n(11),s=n(21);function CTA(t){var n=t.title,r=t.headerText,a=t.headerContent,i=t.description,l=t.ctaLink,u=t.ctaLabel,d=t.ctaLinkExternal,g=t.ctaType,f=t.error,p=t.onClick,m=t["aria-label"],b=t.children;return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":f})},(r||a)&&e.createElement("div",{cla
|
|||
|
|
Object(s._n)("over the last %s day","over the last %s days",v,"google-site-kit"),v)))),e.createElement(d.a,{mdSize:8,lgSize:7,alignMiddle:!0},e.createElement(m.a,null)),e.createElement(d.a,{size:2,alignMiddle:!0},e.createElement(u.a,{className:"googlesitekit-adminbar__link",href:"#",onClick:h},Object(s.__)("More details","google-site-kit"))))),e.createElement(u.a,{className:"googlesitekit-adminbar__link googlesitekit-adminbar__link--mobile",href:"#",onClick:h},Object(s.__)("More details","google-site-kit"))):null}}).call(this,n(3))},1129:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdminBarWidgets}));var r=n(1),a=n(4),i=n(1130),o=n(1131),c=n(1132),s=n(1133),l=n(1134),u=n(19),d=n(7),g=n(17),f=n(248),p=n(86),m=n(29),b=Object(f.c)("adminBarImpressions")(i.a),v=Object(f.c)("adminBarClicks")(o.a),h=Object(f.c)("adminBarUniqueVisitors")(c.a),O=Object(f.c)("adminBarSessions")(s.a);function AdminBarWidgets(){var t=Object(a.useSelect)((function(e){return e(u.a).isModuleAvailable(m.g)})),n=Object(a.useSelect)((function(e){return e(u.a).isModuleConnected(m.g)})),i=Object(a.useSelect)((function(e){return e(u.a).isModuleActive(m.g)})),o=Object(a.useSelect)((function(e){return e(d.a).hasAccessToShareableModule(m.g)})),c=Object(a.useSelect)((function(e){return e(d.a).hasAccessToShareableModule(p.a)})),s=o?{lg:3,md:2}:{lg:6,md:4},f=c?{lg:3,md:2}:{lg:6,md:4};return e.createElement(g.k,null,c&&e.createElement(r.Fragment,null,e.createElement(g.a,{lgSize:s.lg,mdSize:s.md},e.createElement(b,null)),e.createElement(g.a,{lgSize:s.lg,mdSize:s.md},e.createElement(v,null))),n&&i&&o&&e.createElement(r.Fragment,null,e.createElement(g.a,{lgSize:f.lg,mdSize:f.md},e.createElement(h,null)),e.createElement(g.a,{lgSize:f.lg,mdSize:f.md},e.createElement(O,null))),t&&(!n||!i)&&e.createElement(g.a,{lgSize:6,mdSize:4},e.createElement(l.a,null)))}}).call(this,n(3))},1130:function(e,t,n){"use strict";(function(e){var r=n(20),a=n.n(r),i=n(2),o=n(4),c=n(242),s=n(48),l=n(122),u=n(7),d=n(13),g=n(70),f=n(9),p=n(440),m=n(92);t.a=function AdminBarImpressions(t){var n=t.WidgetReportError,r=Object(o.useSelect)((function(e){return e(g.b).isGatheringData()})),b=Object(o.useSelect)((function(e){return e(d.c).getCurrentEntityURL()})),v=Object(o.useSelect)((function(e){return e(u.a).getDateRangeDates({compare:!0,offsetDays:g.a})})),h=v.compareStartDate,O=v.endDate,y=Object(o.useSelect)((function(e){return e(u.a).getDateRangeNumberOfDays()})),k={startDate:h,endDate:O,dimensions:"date",url:b},E=Object(o.useSelect)((function(e){return e(g.b).getReport(k)})),j=Object(o.useSelect)((function(e){return e(g.b).hasFinishedResolution("getReport",[k])})),_=Object(o.useSelect)((function(e){return e(g.b).getErrorForSelector("getReport",[k])}));if(!j||void 0===r)return e.createElement(s.a,{width:"auto",height:"59px"});if(_)return e.createElement(n,{moduleSlug:"search-console",error:_});var S=Object(m.a)(E,{dateRangeLength:y}),w=S.compareRange,N=S.currentRange,D=Object(p.a)(N,"impressions"),T=Object(p.a)(w,"impressions"),R=Object(f.g)(T,D),C={gatheringData:r,gatheringDataNoticeStyle:l.a.SMALL};return e.createElement(c.a,a()({className:"overview-total-impressions",title:Object(i.__)("Total Impressions","google-site-kit"),datapoint:D,change:R,changeDataUnit:"%"},C))}}).call(this,n(3))},1131:function(e,t,n){"use strict";(function(e){var r=n(20),a=n.n(r),i=n(2),o=n(4),c=n(7),s=n(13),l=n(70),u=n(9),d=n(48),g=n(242),f=n(122),p=n(440),m=n(92);t.a=function AdminBarClicks(t){var n=t.WidgetReportError,r=Object(o.useSelect)((function(e){return e(l.b).isGatheringData()})),b=Object(o.useSelect)((function(e){return e(s.c).getCurrentEntityURL()})),v=Object(o.useSelect)((function(e){return e(c.a).getDateRangeDates({compare:!0,offsetDays:l.a})})),h=v.compareStartDate,O=v.endDate,y=Object(o.useSelect)((function(e){return e(c.a).getDateRangeNumberOfDays()})),k={startDate:h,endDate:O,dimensions:"date",url:b},E=Object(o.useSelect)((function(e){return e(l.b).getReport(k)})),j=Object(o.useSelect)((function(e){return e(l.b).hasFinishedResolution("getReport",[k])})),_=Object(o.useSelect)
|
|||
|
|
Object(l.__)("<strong>Note:</strong> %s","google-site-kit"),S),{strong:e.createElement("strong",null)}))),e.createElement(u.DialogFooter,null,e.createElement(u.Button,{className:"mdc-dialog__cancel-button",onClick:f,disabled:T,tertiary:!0},Object(l.__)("Cancel","google-site-kit")),L?e.createElement(u.Button,{href:L,onClick:k,target:"_blank",danger:N},_):e.createElement(u.SpinnerButton,{onClick:k,danger:N,disabled:T,isSaving:T},_||Object(l.__)("Disconnect","google-site-kit"))))}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:a.a.string,dialogActive:a.a.bool,handleDialog:a.a.func,handleConfirm:a.a.func.isRequired,onOpen:a.a.func,onClose:a.a.func,title:a.a.string,confirmButton:a.a.string,danger:a.a.bool,small:a.a.bool,medium:a.a.bool,buttonLink:a.a.string},t.a=ModalDialog}).call(this,n(3))},143:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(10),o=n.n(i),c=n(42),s=n(2),l=n(21),u=n(39);function SourceLink(t){var n=t.name,r=t.href,a=t.className,i=t.external;return Object(u.a)()?null:e.createElement("div",{className:o()("googlesitekit-source-link",a)},Object(c.a)(Object(s.sprintf)(/* translators: %s: source link */
|
|||
|
|
Object(s.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(l.a,{key:"link",href:r,external:i})}))}SourceLink.propTypes={name:a.a.string,href:a.a.string,className:a.a.string,external:a.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(3))},144:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportErrorActions}));var r=n(5),a=n.n(r),i=n(0),o=n.n(i),c=n(1),s=n(42),l=n(2),u=n(4),d=n(11),g=n(13),f=n(19),p=n(34),m=n(39),b=n(21);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 h(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){a()(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}function ReportErrorActions(t){var n=t.moduleSlug,r=t.error,a=t.GetHelpLink,i=t.hideGetHelpLink,o=t.buttonVariant,v=t.onRetry,O=t.onRequestAccess,y=t.getHelpClassName,k=t.RequestAccessButton,E=t.RetryButton,j=Object(m.a)(),_=Object(u.useSelect)((function(e){return e(f.a).getModuleStoreName(n)})),S=Object(u.useSelect)((function(e){var t;return"function"==typeof(null===(t=e(_))||void 0===t?void 0:t.getServiceEntityAccessURL)?e(_).getServiceEntityAccessURL():null})),w=Array.isArray(r)?r:[r],N=Object(u.useSelect)((function(e){return w.map((function(t){var n,r=null===(n=e(_))||void 0===n?void 0:n.getSelectorDataForError(t);return h(h({},t),{},{selectorData:r})}))})),D=null==N?void 0:N.filter((function(e){return Object(p.d)(e,e.selectorData)&&"getReport"===e.selectorData.name})),T=!!D.length,R=Object(u.useSelect)((function(e){var t=h({},T?D[0]:w[0]);return Object(p.e)(t)&&(t.code="".concat(n,"_insufficient_permissions")),e(g.c).getErrorTroubleshootingLinkURL(t)})),C=Object(u.useDispatch)(),P=w.some((function(e){return Object(p.e)(e)})),A=Object(c.useCallback)((function(){D.forEach((function(e){var t=e.selectorData;C(t.storeName).invalidateResolution(t.name,t.args)})),null==v||v()}),[C,D,v]),x=S&&P&&!j;return e.createElement("div",{className:"googlesitekit-report-error-actions"},x&&("function"==typeof k?e.createElement(k,{requestAccessURL:S}):e.createElement(d.Button,{onClick:O,href:S,target:"_blank",danger:"danger"===o,tertiary:"tertiary"===o},Object(l.__)("Request access","google-site-kit"))),T&&e.createElement(c.Fragment,null,"function"==typeof E?e.createElement(E,{handleRetry:A}):e.createElement(d.Button,{onClick:A,danger:"danger"===o,tertiary:"tertiary"===o},Object(l.__)("Retry","google-site-kit")),!i&&e.createElement("span",{className:"googlesitekit-error-retry-text"},Object(s.a)(Object(l.__)("Retry didn’t work? <HelpLink />","google-site-kit"),{HelpLink:e.createElement(b.a,{href:R,external:!0,hideExternalIndicator:!0},Object(l.__)("Get help","google-site-kit"))}))),!T&&!i&&e.createElement("div",{className:y},"function"==typeof a?e.createElement(a,{linkURL:R}):e.createElement(b.a,{href:R,external:!0,hideExternalIndicator:!0},Object(l.__)("Get help","google-site-kit"))))}ReportErrorActions.propTypes={moduleSlug:o.a.string.isRequired,error:o.a.oneOfType([o.a.arrayOf(o.a.object),o.a.object]).isRequired,GetHelpLink:o.a.elementType,hideGetHelpLink:o.a.bool,buttonVariant:o.a.string,onRetry:o.a.func,onRequestAccess:o.a.func,getHelpClassName:o.a.string,RequestAccessButton:o.a.elementType,RetryButton:o.a.elementType}}).call(this,n(3))},150:function(e,t,n){"use strict";var r=n(1),a=Object(r.createContext)(!1);t.a=a},156:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),a=n(4),i=n(49);function o(e,t,n){var o=Object(a.useDispatch)(i.a),c=o.setWidgetState,s=o.unsetWidgetState;Object(r.useEffect)((function(){return c(e,t,n),function(){s(e,t,n)}}),[e,t,n,c,s])}},159:function(e,t,n){"use strict";var r=n(1);function a(){retu
|
|||
|
|
Object(i.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),r[0]):Object(i.sprintf)(/* translators: %s: List of module names */
|
|||
|
|
Object(i.__)("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"),r.join(Object(i._x)(", ","Recoverable modules","google-site-kit")));return e.createElement(s.a,{title:Object(i.__)("Data Unavailable","google-site-kit"),description:a})}RecoverableModules.propTypes={moduleSlugs:a.a.arrayOf(a.a.string).isRequired}}).call(this,n(3))},177:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),a=n(86),i=n(29);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t||{},o=n.slug,c=void 0===o?"":o,s=n.name,l=void 0===s?"":s,u=n.owner,d=void 0===u?{}:u;if(!c||!l)return e;var g="",f="";return i.g===c?e.match(/account/i)?g=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/property/i)?g=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/view/i)&&(g=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit")):a.a===c&&(g=Object(r.__)("Your Google account does not have sufficient permissions for this Search Console property, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit")),g||(g=Object(r.sprintf)(/* translators: %s: module name */
|
|||
|
|
Object(r.__)("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"),l)),d&&d.login&&(f=Object(r.sprintf)(/* translators: %s: owner name */
|
|||
|
|
Object(r.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),d.login)),f||(f=Object(r.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(g," ").concat(f)}},178:function(e,t,n){"use strict";var r=n(1),a=n(61),i=Object(r.createContext)(a.a);t.a=i},179:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var r=n(5),a=n.n(r),i=n(0),o=n.n(i),c=n(15),s=n(1),l=n(2),u=n(4),d=n(19),g=n(34),f=n(177),p=n(88),m=n(102),b=n(144),v=n(39),h=n(59);function O(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 y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ReportError(t){var n,r=t.moduleSlug,a=t.error,i=Object(v.a)(),o=Object(u.useSelect)((function(e){return e(d.a).getModule(r)})),O=Array.isArray(a)?a:[a],k=function(e){return Object(g.e)(e)?i?(n=Object(l.sprintf)(/* translators: %s: module name */
|
|||
|
|
Object(l.__)("Access lost to %s","google-site-kit"),null==o?void 0:o.name),Object(l.sprintf)(/* translators: %s: module name */
|
|||
|
|
Object(l.__)("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==o?void 0:o.name)):(n=Object(l.sprintf)(/* translators: %s: module name */
|
|||
|
|
Object(l.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),Object(f.a)(e.message,o)):Object(g.b)(e)},E=Object(c.uniqWith)(O.map((function(e){var t;return y(y({},e),{},{message:k(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})),j=O.some((function(e){return Object(g.e)(e)}));j||1!==E.length?!j&&E.length>1&&(n=Object(l.sprintf)(/* translators: %s: module name */
|
|||
|
|
Object(l.__)("Data errors in %s","google-site-kit"),null==o?void 0:o.name)):n=Object(l.sprintf)(/* translators: %s: module name */
|
|||
|
|
Object(l.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name);var _=e.createElement(s.Fragment,null,E.map((function(t){var n;return(null==t||null===(n=t.data)||void 0===n?void 0:n.reconnectURL)?e.createElement(h.a,{key:t.message,error:t,message:t.message}):e.createElement("p",{key:t.message},p.a.sanitize(t.message,{ALLOWED_TAGS:[]}))})));return e.createElement(m.a,{title:n,description:_,error:!0},e.createElement(b.a,{moduleSlug:r,error:a}))}ReportError.propTypes={moduleSlug:o.a.string.isRequired,error:o.a.oneOfType([o.a.arrayOf(o.a.object),o.a.object]).isRequired}}).call(this,n(3))},18:function(e,t,n){"use strict";var r=n(1),a=n(65);t.a=function(){return Object(r.useContext)(a.b)}},181:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GenericErrorHandlerActions}));var r=n(0),a=n.n(r),i=n(2),o=n(21),c=n(202);function GenericErrorHandlerActions(t){var n=t.message,r=t.componentStack;return e.createElement("div",{className:"googlesitekit-generic-error-handler-actions"},e.createElement(c.a,{message:n,componentStack:r}),e.createElement(o.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(i.__)("Report this problem","google-site-kit")))}GenericErrorHandlerActions.propTypes={message:a.a.string,componentStack:a.a.string}}).call(this,n(3))},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(24),a=function(e){return r.f.includes(e)}},183:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var r=n(0),a=n.n(r),i=n(2),o=n(4),c=n(19),s=n(102);function ReportZero(t){var n=t.moduleSlug,r=Object(o.useSelect)((function(e){return e(c.a).getModule(n)}));return e.createElement(s.a,{title:Object(i.sprintf)(/* translators: %s: Module name */
|
|||
|
|
Object(i.__)("%s Gathering Data","google-site-kit"),null==r?void 0:r.name),description:Object(i.sprintf)(/* translators: %s: Module name */
|
|||
|
|
Object(i.__)("%s data is not yet available, please check back later","google-site-kit"),null==r?void 0:r.name)})}ReportZero.propTypes={moduleSlug:a.a.string.isRequired}}).call(this,n(3))},187:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(6),a=n.n(r),i=n(16),o=n.n(i),c=n(1),s=n(4),l=n(13),u=n(7),d=n(19),g=n(33),f=n(37),p=n(40),m=n(18);function b(e){var t=Object(m.a)(),n=Object(s.useSelect)((function(t){return t(d.a).getModule(e)})),r=Object(s.useSelect)((function(e){return e(u.a).hasCapability(u.K)})),i=Object(s.useDispatch)(d.a).activateModule,b=Object(s.useDispatch)(g.a).navigateTo,v=Object(s.useDispatch)(l.c).setInternalServerError,h=Object(c.useCallback)(o()(a.a.mark((function n(){var r,o,c;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i(e);case 2:if(r=n.sent,o=r.error,c=r.response,o){n.next=13;break}return n.next=8,Object(p.b)("".concat(t,"_widget-activation-cta"),"activate_module",e);case 8:return n.next=10,Object(f.f)("module_setup",e,{ttl:300});case 10:b(c.moduleReauthURL),n.next=14;break;case 13:v({id:"".concat(e,"-setup-error"),description:o.message});case 14:case"end":return n.stop()}}),n)}))),[i,e,b,v,t]);return(null==n?void 0:n.name)&&r?h:null}},19:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core/modules",a="insufficient_module_dependencies"},195:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var r=n(20),a=n.n(r),i=n(22),o=n.n(i),c=n(0),s=n.n(c),l=n(4),u=n(19);function ModuleIcon(t){var n=t.slug,r=t.size,i=o()(t,["slug","size"]),c=Object(l.useSelect)((function(e){return e(u.a).getModuleIcon(n)}));return c?e.createElement(c,a()({width:r,height:r},i)):null}ModuleIcon.propTypes={slug:s.a.string.isRequired,size:s.a.number},ModuleIcon.defaultProps={size:33}}).call(this,n(3))},2:function(e,t){e.exports=googlesitekit.i18n},202:function(e,t,n){"use strict";(function(e){var r=n(14),a=n.n(r),i=n(204),o=n.n(i),c=n(0),s=n.n(c),l=n(1),u=n(2),d=n(272),g=n(444),f=n(445),p=n(11);function ReportErrorButton(t){var n=t.message,r=t.componentStack,i=Object(l.useState)(!1),c=a()(i,2),s=c[0],m=c[1];return e.createElement(p.Button,{"aria-label":s?Object(u.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){o()("```\n".concat(n,"\n").concat(r,"\n```")),m(!0)},trailingIcon:e.createElement(d.a,{className:"mdc-button__icon",icon:s?g.a:f.a})},s?Object(u.__)("Copied to clipboard","google-site-kit"):Object(u.__)("Copy error contents","google-site-kit"))}ReportErrorButton.propTypes={message:s.a.string,componentStack:s.a.string},t.a=ReportErrorButton}).call(this,n(3))},21:function(e,t,n){"use strict";(function(e){var r=n(20),a=n.n(r),i=n(22),o=n.n(i),c=n(10),s=n.n(c),l=n(0),u=n.n(l),d=n(158),g=n(1),f=n(2),p=n(134),m=n(135),b=n(136),v=n(73),h=n(78),O=Object(g.forwardRef)((function(t,n){var r,i=t["aria-label"],c=t.secondary,l=void 0!==c&&c,u=t.arrow,g=void 0!==u&&u,O=t.back,y=void 0!==O&&O,k=t.caps,E=void 0!==k&&k,j=t.children,_=t.className,S=void 0===_?"":_,w=t.danger,N=void 0!==w&&w,D=t.disabled,T=void 0!==D&&D,R=t.external,C=void 0!==R&&R,P=t.hideExternalIndicator,A=void 0!==P&&P,x=t.href,L=void 0===x?"":x,I=t.inverse,M=void 0!==I&&I,B=t.noFlex,F=void 0!==B&&B,W=t.onClick,z=t.small,U=void 0!==z&&z,V=t.standalone,G=void 0!==V&&V,H=t.linkButton,q=void 0!==H&&H,K=t.to,X=t.leadingIcon,$=t.trailingIcon,Y=o()(t,["aria-label","secondary","arrow","back","caps","children","className","danger","disabled","external","hideExternalIndicator","href","inverse","noFlex","onClick","small","standalone","linkButton","to","leadingIcon","trailingIcon"]),J=L||K||!W?K?"ROUTER_LINK":C?"EXTERNAL_LINK":"LINK":T?"BUTTON_DISABLED":"BUTTON",Q="BUTTON"===J||"BUTTON_DISABLED"===J?"button":"ROUTER_LINK"===J?d.b:"a",Z=("EXTERNAL_LINK"===J&&(r=Object(f._x)("(opens in a new tab)","screen reader text","google-site-kit")),"BUTTON_DISABLED"===J&&(r=Object(f._x)("(disabled)","screen reader text","google-site-kit")),r?i?"".concat(i," ").concat(r):"stri
|
|||
|
|
Object(o.__)("%s (Please try again.)","google-site-kit"),w)),h||(w=Object(o.sprintf)(/* translators: $%s: Error message */
|
|||
|
|
Object(o.__)("Error: %s","google-site-kit"),w));var N=null==a||null===(n=a.data)||void 0===n?void 0:n.reconnectURL;N&&Object(c.a)(N)&&(w=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"),w,N));return e.createElement(u.a,{className:r,type:u.a.TYPES.ERROR,description:e.createElement("span",{dangerouslySetInnerHTML:Object(d.F)(w,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:S?{label:Object(o.__)("Retry","google-site-kit"),onClick:_}:void 0,hideIcon:k})}ErrorNotice.propTypes={className:a.a.string,error:a.a.shape({message:a.a.string}),hasButton:a.a.bool,storeName:a.a.string,message:a.a.string,noPrefix:a.a.bool,skipRetryMessage:a.a.bool,hideIcon:a.a.bool}}).call(this,n(3))},61:function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(28))},62:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(43);function a(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},65:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),a=Object(r.createContext)(""),i=(a.Consumer,a.Provider);t.b=a},683:function(e,t,n){"use strict";var r=n(1);function a(){return(a=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 i=r.createElement("path",{d:"M1 24.053l5-4.825 4 2.193 5.333-2.193 7.334 6.579 6-1.754 3-4.825 4.666 6.579 3.334-1.754L47.333 28 55 19.228l4.333 2.193 5.334-3.509 2 1.316h6L81.333 3 84 9.579l2.333-1.754L89 13.088l12-5.263",stroke:"#CCC",strokeWidth:2});t.a=function SvgCtaGraphVisitors(e){return r.createElement("svg",a({viewBox:"0 0 102 30",fill:"none"},e),i)}},695:function(e,t,n){"use strict";var r=n(1);function a(){return(a=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 i=r.createElement("path",{d:"M86.66 6.101a22.375 22.375 0 016.226-1.09l.215 7.871a14.544 14.544 0 00-4.046.709L86.66 6.1z",fill:"#DEDEDE"}),o=r.createElement("path",{d:"M75.423 14.275a22.544 22.544 0 0110.57-7.945l2.628 7.41a14.655 14.655 0 00-6.871 5.164l-6.327-4.63z",fill:"#C6C6C6"}),c=r.createElement("path",{d:"M75.317 40.725a22.482 22.482 0 01-4.226-12.872 22.637 22.637 0 013.925-13l6.47 4.426a14.714 14.714 0 00-2.552 8.45c.035 3.01.995 5.932 2.747 8.367l-6.364 4.63z",fill:"#F1F1F1"}),s=r.createElement("path",{d:"M106.601 45.702a22.401 22.401 0 01-16.346 4.074 22.282 22.282 0 01-14.517-8.485l6.217-4.827a14.483 14.483 0 009.436 5.515 14.562 14.562 0 0010.625-2.648l4.585 6.371z",fill:"#959595"}),l=r.createElement("path",{d:"M93.59 5c4.673 0 9.223 1.466 13.013 4.194a22.369 22.369 0 018.129 11.018 22.624 22.624 0 01-7.567 25.067l-4.783-6.223a14.703 14.703 0 004.919-16.293 14.538 14.538 0 00-5.284-7.162 14.477 14.477 0 00-8.458-2.726L93.59 5z",fill:"#C7C7C7"}),u=r.createElement("circle",{cx:83.5,cy:56.899,r:1.5,fill:"#959595"}),d=r.createElement("circle",{cx:90.5,cy:56.899,r:1.5,fill:"#C7C7C7"}),g=r.createElement("circle",{cx:97.5,cy:56.899,r:1.5,fill:"#DEDEDE"}),f=r.createElement("circle",{cx:104.5,cy:56.899,r:1.5,fill:"#F1F1F1"}),p=r.createElement("path",{stroke:"#ECE9F1",strokeWidth:.937,strokeLinecap:"round",d:"M.468 58.531h55.064"}),m=r.createElement("path",{stroke:"#ECE9F1",strokeWidth:.468,strokeLinecap:"round",d:"M.234 44.765h55.532M.234 30.765h55.532M.234 16.766h55.532"}),b=r.createElement("path",{opacity:.08,d:"M25.531 47.668c-4.138-1.288-5.95-4.746-9.87-5.24-4.053-.51-7.2 12.53-15.661 13.777V59h56V35.07c-2.25-.486-4.367-17.89-9.25-16.601-4.882 1.288-8.475 20.892-12.365 14.578-3.89-6.313-4.716 15.91-8.854 14.622z",fill:"url(#cta-graph-traffic_svg__paint0_linear_435_1677)"}),v=r.createElement("path",{d:"M2.766 1.116L.883 6.3h-.77L2.281.612h.496l-.011.504zM4.344 6.3L2.457 1.116 2.445.612h.496L5.117 6.3h-.773zm-.098-2.106
|
|||
|
|
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?w(i,b(b({},o),{},{unit:"second"})):"",a?w(a,b(b({},o),{},{unit:"minute"})):"",r?w(r,b(b({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(p.sprintf)(
|
|||
|
|
// translators: %s: number of seconds with "s" as the abbreviated unit.
|
|||
|
|
Object(p.__)("%ds","google-site-kit"),i);if(0===e)return t;var n=Object(p.sprintf)(
|
|||
|
|
// translators: %s: number of minutes with "m" as the abbreviated unit.
|
|||
|
|
Object(p.__)("%dm","google-site-kit"),a),o=Object(p.sprintf)(
|
|||
|
|
// translators: %s: number of hours with "h" as the abbreviated unit.
|
|||
|
|
Object(p.__)("%dh","google-site-kit"),r);return Object(p.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
|
|||
|
|
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?t:"",a?n:"",r?o:"").trim()}}},k=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},E=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(p.sprintf)(
|
|||
|
|
// translators: %s: an abbreviated number in millions.
|
|||
|
|
Object(p.__)("%sM","google-site-kit"),w(k(e),e%10==0?{}:t)):1e4<=e?Object(p.sprintf)(
|
|||
|
|
// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(p.__)("%sK","google-site-kit"),w(k(e))):1e3<=e?Object(p.sprintf)(
|
|||
|
|
// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(p.__)("%sK","google-site-kit"),w(k(e),e%10==0?{}:t)):w(e,{signDisplay:"never",maximumFractionDigits:1})};function j(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){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=j(t),r=n.style,a=void 0===r?"metric":r;return"metric"===a?E(e):"duration"===a?v(e,n):"durationISO"===a?h(e):w(e,n)}var S=f()(console.warn),w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?D():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(r,i).format(e)}catch(t){S("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},d=0,g=Object.entries(i);d<g.length;d++){var f=a()(g[d],2),p=f[0],m=f[1];c[p]&&m===c[p]||(s.includes(p)||(l[p]=m))}try{return new Intl.NumberFormat(r,l).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?D():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:i,type:c});return s.format(e)}
|
|||
|
|
/* translators: used between list items, there is a space after the comma. */var l=Object(p.__)(", ","google-site-kit");return e.join(l)},D=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))},88:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(160),a=n.n(r)()(e)}).call(this,n(28))},89:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(10),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(3))},9:function(e,t,n){"use strict";n.d(t,"I",(function(){return a.b})),n.d(t,"J",(function(){return a.c})),n.d(t,"F",(function(){return i.a})),n.d(t,"K",(function(){return i.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 b})),n.d(t,"i",(function(){return v})),n.d(t,"d",(function(){return j})),n.d(t,"c",(function(){return _})),n.d(t,"e",(function(){return S})),n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return N})),n.d(t,"f",(function(){return D})),n.d(t,"n",(function(){return T})),n.d(t,"w",(function(){return R})),n.d(t,"p",(function(){return C})),n.d(t,"G",(function(){return P})),n.d(t,"s",(function(){return A})),n.d(t,"v",(function(){return x})),n.d(t,"k",(function(){return L})),n.d(t,"o",(function(){return I.b})),n.d(t,"h",(function(){return I.a})),n.d(t,"t",(function(){return M.b})),n.d(t,"q",(function(){return M.a})),n.d(t,"A",(function(){return M.c})),n.d(t,"x",(function(){return B})),n.d(t,"u",(function(){return F})),n.d(t,"E",(function(){return U})),n.d(t,"D",(function(){return V.a})),n.d(t,"g",(function(){return G})),n.d(t,"L",(function(){return H})),n.d(t,"l",(function(){return q}));var r=n(15),a=n(40),i=n(76),o=n(36),c=n.n(o),s=n(103),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 a=t[r];a&&"object"===c()(a)&&!Array.isArray(a)&&(a=e(a)),n[r]=a})),n}(e)))};n(104);var d=n(87);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 p(e){return e.replace(/\n/gi,"<br>")}function m(e){for(var t=e,n=0,r=[g,f,p];n<r.length;n++){t=(0,r[n])(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=function(e){var t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t},h=n(14),O=n.n(h),y=n(12),k=n.n(y),E=n(2),j="Invalid dateString parameter, it must be a string.",_='Invalid date range, it must be a string with the format "last-x-days".',S=60,w=60*S,N=24*w,D=7*N;function T(){var e=function(e){return Object(E.sprintf)(/* translators: %s: number of days */
|
|||
|
|
Object(E._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 R(){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 C(e){k()(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 P(e){k()(R(e),j);var t=e.split("-"),n=O()(t,3),r=n[0],a=n[1],i=n[2];return new Date(r,a-1,i)}function A(e,t){return C(L(e,t*N))}function x(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){k()(R(e)||Object(r.isDate)(e)&&!isNaN(e),j);var n=R(e)?Date.parse(e):e.getTime();return new Date(n-1e3*t)}var I=n(107),M=n(85);function B(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function F(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var W=n(27),z=n.n(W),U=function(e){return Array.isArray(e)?z()(e).sort():e},V=n(92);function G(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 H=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},q=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";(function(e){n.d(t,"a",(function(){return d}));var r=n(14),a=n.n(r),i=n(196),o=n(138),c={},s=void 0===e?null:e,l=function(){return[e.innerWidth,e.innerHeight]},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=e.fps,n=e.leading,r=e.initialWidth,u=void 0===r?0:r,d=e.initialHeight,g=void 0===d?0:d,f=Object(i.a)("undefined"==typeof document?[u,g]:l,t,n),p=a()(f,2),m=p[0],b=p[1],v=function(){return b(l)};return Object(o.a)(s,"resize",v),Object(o.a)(s,"orientationchange",v),m},d=function(e){return u(e)[0]}}).call(this,n(28))},92:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(12),a=n.n(r),i=function(e,t){var n=t.dateRangeLength;a()(Array.isArray(e),"report must be an array to partition."),a()(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)}}},94:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c}));var r=n(23),a=n(120);function i(t,n){var r=document.querySelector(t);if(!r)return 0;var a=r.getBoundingClientRect().top,i=o(n);return a+e.scrollY-i}function o(e){var t=c(e),n=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(n).reduce((function(e,t){return e+t.offsetHeight}),0)}function c(t){var n=0,i=document.querySelector(".googlesitekit-header");return n=!!i&&"sticky"===e.getComputedStyle(i).position?function(e){var t=document.querySelector(".googlesitekit-header");if(t){if(e===r.b)return t.offsetHeight;var n=t.getBoundingClientRect().bottom;return n<0?0:n}return 0}(t):function(e){var t=document.querySelector("#wpadminbar");return t&&e!==r.b?t.offsetHeight:0}(t),(n=Object(a.a)(n))<0?0:n}}).call(this,n(28))},97:function(e,t,n){"use strict";var r=n(1);function a(){return(a=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 i=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"}
|