38 lines
256 KiB
JavaScript
38 lines
256 KiB
JavaScript
|
|
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[31],{101:function(e,t,n){"use strict";(function(e,a){n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return O})),n.d(t,"a",(function(){return TourTooltips}));var r=n(5),i=n.n(r),o=n(84),c=n(32),l=n(0),s=n.n(l),u=n(2),d=n(4),m=n(26),g=n(7),f=n(40),p=n(119),y=n(18);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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"}},v={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")},O={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)"}}},T="feature_tooltip_view",k="feature_tooltip_advance",E="feature_tooltip_return",N="feature_tooltip_dismiss",j="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,r=t.tourID,l=t.gaEventCategory,s=t.callback,u="".concat(r,"-step"),S="".concat(r,"-run"),_=Object(d.useDispatch)(m.b).setValue,A=Object(d.useDispatch)(g.a).dismissTour,I=Object(d.useRegistry)(),w=Object(y.a)(),C=Object(d.useSelect)((function(e){return e(m.b).getValue(u)||0})),Z=Object(d.useSelect)((function(e){return e(m.b).getValue(S)&&!1===e(g.a).isTourDismissed(r)}));Object(o.a)((function(){e.document.body.classList.add("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(r)),_(S,!0)}));var M=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((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return a.createElement(c.e,{callback:function(t){!function(e){var t=e.index,n=e.action,a=e.lifecycle,r=e.size,i=e.status,o=e.type,s=t+1,u="function"==typeof l?l(w):l;o===c.b.TOOLTIP&&a===c.c.TOOLTIP?Object(f.b)(u,T,s):n===c.a.CLOSE&&a===c.c.COMPLETE?Object(f.b)(u,N,s):n===c.a.NEXT&&i===c.d.FINISHED&&o===c.b.TOUR_END&&r===s&&Object(f.b)(u,j,s),a===c.c.COMPLETE&&i!==c.d.FINISHED&&(n===c.a.PREV&&Object(f.b)(u,E,s),n===c.a.NEXT&&Object(f.b)(u,k,s))}(t);var n=t.action,a=t.index,i=t.status,o=t.step,d=t.type,m=n===c.a.CLOSE,g=!m&&[c.b.STEP_AFTER,c.b.TARGET_NOT_FOUND].includes(d),p=[c.d.FINISHED,c.d.SKIPPED].includes(i),y=m&&d===c.b.STEP_AFTER,b=p||y;if(c.b.STEP_BEFORE===d){var h,v,O=o.target;"string"==typeof o.target&&(O=e.document.querySelector(o.target)),null===(h=O)||void 0===h||null===(v=h.scrollIntoView)||void 0===v||v.call(h,{block:"center"})}g?function(e,t){_(u,e+(t===c.a.PREV?-1:1))}(a,n):b&&(e.document.body.classList.remove("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(r)),A(r)),s&&s(t,I)},floaterProps:O,locale:v,run:Z,stepIndex:C,steps:M,styles:h,tooltipComponent:p.a,continuous:!0,disableOverlayClose:!0,disableScrolling:!0,showProgress:!0})}TourTooltips.propTypes={steps:s.a.arrayOf(s.a.object).isRequired,tourID:s.a.string.isRequired,gaEventCategory:s.a.oneOfType([s.a.string,s.a.func]).isRequired,callback:s.a.func}}).call(this,n(28),n(3))},102:function(e,t,n){"use strict";(function(e){var a=n(0),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n(21);function CTA(t){var n=t.title,a=t.headerText,r=t.headerContent,i=t.description,s=t.ctaLink,u=t.ctaLabel,d=t.ctaLinkExternal,m=t.ctaType,g=t.error,f=t.onClick,p=t["aria-label"],y=t.children;return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":g})},(a||r)&&e.createElement("div",{cl
|
|||
|
|
Object(d._n)("Unique visitors over the last %s day","Unique visitors over the last %s days",E,"google-site-kit"),E)),e.createElement(y.a,{chartType:"LineChart",data:A,loadingHeight:"270px",loadingWidth:"100%",loaded:!(S||void 0===a),options:C,gatheringData:a}))}WPDashboardUniqueVisitorsChartGA4.propTypes={WPDashboardReportError:u.a.elementType.isRequired}}).call(this,n(3))},1223:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WPDashboardActivateAnalyticsCTA}));var a=n(2),r=n(695),i=n(1224),o=n(585),c=n(438);function WPDashboardActivateAnalyticsCTA(){return e.createElement(o.a,null,e.createElement(c.a,{title:Object(a.__)("Traffic","google-site-kit"),GraphSVG:r.a,showIcons:!1}),e.createElement(c.a,{title:Object(a.__)("Most popular content","google-site-kit"),GraphSVG:i.a,showIcons:!1}))}}).call(this,n(3))},1224:function(e,t,n){"use strict";var a=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("path",{d:"M96.91 4.813l1.34-4.5h1.305L97.575 6h-.86l.195-1.188zm-1.234-4.5l1.336 4.5L97.215 6h-.867L94.378.312h1.298zm5.527 1.46V6h-1.129V1.773h1.129zM100.004.672c0-.164.057-.3.172-.406a.648.648 0 01.461-.16c.19 0 .342.053.457.16a.526.526 0 01.176.406c0 .164-.059.3-.176.406a.644.644 0 01-.457.16.648.648 0 01-.461-.16.53.53 0 01-.172-.406zm4.074 5.406c-.328 0-.622-.052-.883-.156a1.95 1.95 0 01-.664-.442 1.983 1.983 0 01-.414-.652 2.204 2.204 0 01-.144-.797v-.156c0-.32.045-.613.136-.879.092-.266.222-.496.391-.691.172-.196.38-.345.625-.45.245-.106.521-.16.828-.16.3 0 .565.05.797.149.232.099.426.24.582.422.159.182.279.4.359.656.081.252.121.534.121.844v.468h-3.359v-.75h2.254v-.086a.98.98 0 00-.086-.418.665.665 0 00-.25-.296.774.774 0 00-.43-.11.717.717 0 00-.382.098.756.756 0 00-.262.273 1.496 1.496 0 00-.149.414 2.656 2.656 0 00-.046.516v.156c0 .17.023.326.07.469.049.143.118.267.207.371a.94.94 0 00.328.242c.13.058.277.086.441.086.204 0 .392-.039.567-.117a1.23 1.23 0 00.457-.363l.547.593a1.67 1.67 0 01-.364.368 1.941 1.941 0 01-.546.289c-.214.073-.457.11-.731.11zm3.582-1.172l.879-3.133h.715l-.231 1.23L108.145 6h-.598l.113-1.094zm-.445-3.133l.629 3.13.058 1.097h-.703l-1.07-4.227h1.086zm2.844 3.079l.613-3.079h1.09L110.691 6h-.699l.067-1.148zm-.707-3.079l.875 3.11.121 1.117h-.602l-.879-2.992-.222-1.235h.707zm5.261 3.059a.364.364 0 00-.07-.219.616.616 0 00-.262-.18 2.555 2.555 0 00-.543-.156 4.25 4.25 0 01-.597-.175 2.052 2.052 0 01-.477-.262 1.128 1.128 0 01-.312-.36.994.994 0 01-.114-.48c0-.177.038-.344.114-.5.078-.156.188-.294.332-.414.145-.122.323-.218.531-.285.211-.07.448-.106.711-.106.367 0 .682.059.945.176.266.117.469.279.609.484.144.204.215.435.215.696h-1.125a.6.6 0 00-.07-.293.465.465 0 00-.211-.207.753.753 0 00-.367-.078.734.734 0 00-.324.066.495.495 0 00-.211.172.413.413 0 00-.032.41c.029.05.075.095.137.137.063.041.143.08.242.117.102.034.227.065.375.094.305.062.577.144.817.246.239.099.429.234.57.406.141.17.211.392.211.668 0 .188-.042.36-.125.516a1.242 1.242 0 01-.359.41 1.83 1.83 0 01-.563.27 2.624 2.624 0 01-.73.093c-.394 0-.727-.07-1-.21a1.59 1.59 0 01-.618-.536 1.245 1.245 0 01-.207-.672h1.067a.622.622 0 00.117.371.645.645 0 00.285.203c.117.042.244.063.379.063a.97.97 0 00.363-.059.51.51 0 00.219-.164.397.397 0 00.078-.242z",fill:"#C7C7C7"}),o=a.createElement("rect",{x:103,y:18.6,width:13.3,height:4.2,rx:2.1,fill:"#C7C7C7"}),c=a.createElement("rect",{x:107,y:33,width:9.1,height:4.2,rx:2.1,fill:"#C7C7C7"}),l=a.createElement("rect",{x:107,y:47,width:9.1,height:4.2,rx:2.1,fill:"#C7C7C7"}),s=a.createElement("rect",{x:110,y:61,width:5.6,height:4.2,rx:2.1,fill:"#C7C7C7"}),u=a.createElement("path",{d:"M2.848 17.981v5.72h-.723v-4.817l-1.457.531v-.652l2.066-.782h.114zm1.351 19.125v.594H.477v-.52l1.863-2.074c.229-.255.406-.47.531-.648.128-.18.216-.34.266-.48a1.27 1.27 0 00.078-.438c0-.188-.04-.357-.117-.508a.879.879 0 00-.336-.367 1.011 1.011 0 00-.54-.137c-.252 0-.463.05-.632.149a.913.913 0 00-.375.406 1.38 1.38 0 00-.125.602H.367c0
|
|||
|
|
Object(s.__)("<strong>Note:</strong> %s","google-site-kit"),j),{strong:e.createElement("strong",null)}))),e.createElement(u.DialogFooter,null,e.createElement(u.Button,{className:"mdc-dialog__cancel-button",onClick:g,disabled:I,tertiary:!0},Object(s.__)("Cancel","google-site-kit")),P?e.createElement(u.Button,{href:P,onClick:T,target:"_blank",danger:_},N):e.createElement(u.SpinnerButton,{onClick:T,danger:_,disabled:I,isSaving:I},N||Object(s.__)("Disconnect","google-site-kit"))))}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:r.a.string,dialogActive:r.a.bool,handleDialog:r.a.func,handleConfirm:r.a.func.isRequired,onOpen:r.a.func,onClose:r.a.func,title:r.a.string,confirmButton:r.a.string,danger:r.a.bool,small:r.a.bool,medium:r.a.bool,buttonLink:r.a.string},t.a=ModalDialog}).call(this,n(3))},143:function(e,t,n){"use strict";(function(e){var a=n(0),r=n.n(a),i=n(10),o=n.n(i),c=n(42),l=n(2),s=n(21),u=n(39);function SourceLink(t){var n=t.name,a=t.href,r=t.className,i=t.external;return Object(u.a)()?null:e.createElement("div",{className:o()("googlesitekit-source-link",r)},Object(c.a)(Object(l.sprintf)(/* translators: %s: source link */
|
|||
|
|
Object(l.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(s.a,{key:"link",href:a,external:i})}))}SourceLink.propTypes={name:r.a.string,href:r.a.string,className:r.a.string,external:r.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 a=n(5),r=n.n(a),i=n(0),o=n.n(i),c=n(1),l=n(42),s=n(2),u=n(4),d=n(11),m=n(13),g=n(19),f=n(34),p=n(39),y=n(21);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ReportErrorActions(t){var n=t.moduleSlug,a=t.error,r=t.GetHelpLink,i=t.hideGetHelpLink,o=t.buttonVariant,b=t.onRetry,v=t.onRequestAccess,O=t.getHelpClassName,T=t.RequestAccessButton,k=t.RetryButton,E=Object(p.a)(),N=Object(u.useSelect)((function(e){return e(g.a).getModuleStoreName(n)})),j=Object(u.useSelect)((function(e){var t;return"function"==typeof(null===(t=e(N))||void 0===t?void 0:t.getServiceEntityAccessURL)?e(N).getServiceEntityAccessURL():null})),S=Array.isArray(a)?a:[a],_=Object(u.useSelect)((function(e){return S.map((function(t){var n,a=null===(n=e(N))||void 0===n?void 0:n.getSelectorDataForError(t);return h(h({},t),{},{selectorData:a})}))})),A=null==_?void 0:_.filter((function(e){return Object(f.d)(e,e.selectorData)&&"getReport"===e.selectorData.name})),I=!!A.length,w=Object(u.useSelect)((function(e){var t=h({},I?A[0]:S[0]);return Object(f.e)(t)&&(t.code="".concat(n,"_insufficient_permissions")),e(m.c).getErrorTroubleshootingLinkURL(t)})),C=Object(u.useDispatch)(),Z=S.some((function(e){return Object(f.e)(e)})),M=Object(c.useCallback)((function(){A.forEach((function(e){var t=e.selectorData;C(t.storeName).invalidateResolution(t.name,t.args)})),null==b||b()}),[C,A,b]),D=j&&Z&&!E;return e.createElement("div",{className:"googlesitekit-report-error-actions"},D&&("function"==typeof T?e.createElement(T,{requestAccessURL:j}):e.createElement(d.Button,{onClick:v,href:j,target:"_blank",danger:"danger"===o,tertiary:"tertiary"===o},Object(s.__)("Request access","google-site-kit"))),I&&e.createElement(c.Fragment,null,"function"==typeof k?e.createElement(k,{handleRetry:M}):e.createElement(d.Button,{onClick:M,danger:"danger"===o,tertiary:"tertiary"===o},Object(s.__)("Retry","google-site-kit")),!i&&e.createElement("span",{className:"googlesitekit-error-retry-text"},Object(l.a)(Object(s.__)("Retry didn’t work? <HelpLink />","google-site-kit"),{HelpLink:e.createElement(y.a,{href:w,external:!0,hideExternalIndicator:!0},Object(s.__)("Get help","google-site-kit"))}))),!I&&!i&&e.createElement("div",{className:O},"function"==typeof r?e.createElement(r,{linkURL:w}):e.createElement(y.a,{href:w,external:!0,hideExternalIndicator:!0},Object(s.__)("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 a=n(1),r=Object(a.createContext)(!1);t.a=r},153:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return StoreErrorNotices}));var a=n(0),r=n.n(a),i=n(4),o=n(59),c=n(19),l=n(34),s=n(177);function StoreErrorNotices(t){var n=t.hasButton,a=void 0!==n&&n,r=t.moduleSlug,u=t.storeName,d=Object(i.useSelect)((function(e){return e(u).getErrors()})),m=Object(i.useSelect
|
|||
|
|
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"),a[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"),a.join(Object(i._x)(", ","Recoverable modules","google-site-kit")));return e.createElement(l.a,{title:Object(i.__)("Data Unavailable","google-site-kit"),description:r})}RecoverableModules.propTypes={moduleSlugs:r.a.arrayOf(r.a.string).isRequired}}).call(this,n(3))},177:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(2),r=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,l=n.name,s=void 0===l?"":l,u=n.owner,d=void 0===u?{}:u;if(!c||!s)return e;var m="",g="";return i.g===c?e.match(/account/i)?m=Object(a.__)("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)?m=Object(a.__)("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)&&(m=Object(a.__)("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")):r.a===c&&(m=Object(a.__)("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")),m||(m=Object(a.sprintf)(/* translators: %s: module name */
|
|||
|
|
Object(a.__)("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"),s)),d&&d.login&&(g=Object(a.sprintf)(/* translators: %s: owner name */
|
|||
|
|
Object(a.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),d.login)),g||(g=Object(a.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(m," ").concat(g)}},178:function(e,t,n){"use strict";var a=n(1),r=n(61),i=Object(a.createContext)(r.a);t.a=i},179:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var a=n(5),r=n.n(a),i=n(0),o=n.n(i),c=n(15),l=n(1),s=n(2),u=n(4),d=n(19),m=n(34),g=n(177),f=n(88),p=n(102),y=n(144),b=n(39),h=n(59);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function O(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){r()(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 ReportError(t){var n,a=t.moduleSlug,r=t.error,i=Object(b.a)(),o=Object(u.useSelect)((function(e){return e(d.a).getModule(a)})),v=Array.isArray(r)?r:[r],T=function(e){return Object(m.e)(e)?i?(n=Object(s.sprintf)(/* translators: %s: module name */
|
|||
|
|
Object(s.__)("Access lost to %s","google-site-kit"),null==o?void 0:o.name),Object(s.sprintf)(/* translators: %s: module name */
|
|||
|
|
Object(s.__)("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(s.sprintf)(/* translators: %s: module name */
|
|||
|
|
Object(s.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),Object(g.a)(e.message,o)):Object(m.b)(e)},k=Object(c.uniqWith)(v.map((function(e){var t;return O(O({},e),{},{message:T(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})),E=v.some((function(e){return Object(m.e)(e)}));E||1!==k.length?!E&&k.length>1&&(n=Object(s.sprintf)(/* translators: %s: module name */
|
|||
|
|
Object(s.__)("Data errors in %s","google-site-kit"),null==o?void 0:o.name)):n=Object(s.sprintf)(/* translators: %s: module name */
|
|||
|
|
Object(s.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name);var N=e.createElement(l.Fragment,null,k.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},f.a.sanitize(t.message,{ALLOWED_TAGS:[]}))})));return e.createElement(p.a,{title:n,description:N,error:!0},e.createElement(y.a,{moduleSlug:a,error:r}))}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 a=n(1),r=n(65);t.a=function(){return Object(a.useContext)(r.b)}},181:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GenericErrorHandlerActions}));var a=n(0),r=n.n(a),i=n(2),o=n(21),c=n(202);function GenericErrorHandlerActions(t){var n=t.message,a=t.componentStack;return e.createElement("div",{className:"googlesitekit-generic-error-handler-actions"},e.createElement(c.a,{message:n,componentStack:a}),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:r.a.string,componentStack:r.a.string}}).call(this,n(3))},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(24),r=function(e){return a.f.includes(e)}},183:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var a=n(0),r=n.n(a),i=n(2),o=n(4),c=n(19),l=n(102);function ReportZero(t){var n=t.moduleSlug,a=Object(o.useSelect)((function(e){return e(c.a).getModule(n)}));return e.createElement(l.a,{title:Object(i.sprintf)(/* translators: %s: Module name */
|
|||
|
|
Object(i.__)("%s Gathering Data","google-site-kit"),null==a?void 0:a.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==a?void 0:a.name)})}ReportZero.propTypes={moduleSlug:r.a.string.isRequired}}).call(this,n(3))},186:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return l}));var a=n(36),r=n.n(a);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0};return"string"==typeof e?n(e):!("object"!==r()(e)||!t(e))||!!Array.isArray(e)&&e.every((function(e){return"string"==typeof e?n(e):"object"===r()(e)&&t(e)}))}function o(e){var t=e.startDate,n=e.endDate,a=t&&t.match(/^\d{4}-\d{2}-\d{2}$/),r=n&&n.match(/^\d{4}-\d{2}-\d{2}$/);return a&&r}function c(e){var t=function(e){var t=e.hasOwnProperty("fieldName")&&!!e.fieldName,n=e.hasOwnProperty("sortOrder")&&/(ASCENDING|DESCENDING)/i.test(e.sortOrder.toString());return t&&n};return Array.isArray(e)?e.every((function(e){return"object"===r()(e)&&t(e)})):"object"===r()(e)&&t(e)}function l(e){return"string"==typeof e||!!Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}},187:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var a=n(6),r=n.n(a),i=n(16),o=n.n(i),c=n(1),l=n(4),s=n(13),u=n(7),d=n(19),m=n(33),g=n(37),f=n(40),p=n(18);function y(e){var t=Object(p.a)(),n=Object(l.useSelect)((function(t){return t(d.a).getModule(e)})),a=Object(l.useSelect)((function(e){return e(u.a).hasCapability(u.K)})),i=Object(l.useDispatch)(d.a).activateModule,y=Object(l.useDispatch)(m.a).navigateTo,b=Object(l.useDispatch)(s.c).setInternalServerError,h=Object(c.useCallback)(o()(r.a.mark((function n(){var a,o,c;return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i(e);case 2:if(a=n.sent,o=a.error,c=a.response,o){n.next=13;break}return n.next=8,Object(f.b)("".concat(t,"_widget-activation-cta"),"activate_module",e);case 8:return n.next=10,Object(g.f)("module_setup",e,{ttl:300});case 10:y(c.moduleReauthURL),n.next=14;break;case 13:b({id:"".concat(e,"-setup-error"),description:o.message});case 14:case"end":return n.stop()}}),n)}))),[i,e,y,b,t]);return(null==n?void 0:n.name)&&a?h:null}},19:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="core/modules",r="insufficient_module_dependencies"},195:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var a=n(20),r=n.n(a),i=n(22),o=n.n(i),c=n(0),l=n.n(c),s=n(4),u=n(19);function ModuleIcon(t){var n=t.slug,a=t.size,i=o()(t,["slug","size"]),c=Object(s.useSelect)((function(e){return e(u.a).getModuleIcon(n)}));return c?e.createElement(c,r()({width:a,height:a},i)):null}ModuleIcon.propTypes={slug:l.a.string.isRequired,size:l.a.number},ModuleIcon.defaultProps={size:33}}).call(this,n(3))},197:function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return T}));var a=n(5),r=n.n(a),i=n(1);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var c=i.createElement("path",{d:"M10 15.27L16.18 19l-1.64-7.03L20 7.24l-7.19-.61L10 0 7.19 6.63 0 7.24l5.46 4.73L3.82 19 10 15.27z"});var l=function SvgInfoIcon(e){return i.createElement("svg",o({viewBox:"0 0 20 20",fill:"currentColor"},e),c)};function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var u=i.createElement("path",{d:"M0 4h2v7H0zm0-4h2v2H0z",fill:"currentColor",fillRule:"evenodd"});var d=function SvgSuggestionIcon(e){return i.createElement("svg",s({viewBox:"0 0 2 11"},e),u)};function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}v
|
|||
|
|
Object(l._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(C,Z),w[n][0].toLocaleDateString(C,Z)),y=Object(l.sprintf)(/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
|
|||
|
|
Object(l._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),i[t],d[t](r),f,Object(u.B)(Math.abs(g),"%"));j.push([e[0],'<div class="'.concat(o()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":g>0,"googlesitekit-visualization-tooltip--down":g<0}),'">\n\t\t\t\t<p>').concat(p,"</p>\n\t\t\t\t<p>").concat(y,"</p>\n\t\t\t</div>"),E?Object(u.j)(r):r,E?Object(u.j)(c):c])}})),j}},48:function(e,t,n){"use strict";(function(e){var a=n(5),r=n.n(a),i=n(0),o=n.n(i),c=n(10),l=n.n(c),s=n(23);function PreviewBlock(t){var n,a,i=t.className,o=t.width,c=t.height,u=t.shape,d=t.padding,m=t.smallWidth,g=t.smallHeight,f=t.tabletWidth,p=t.tabletHeight,y=t.desktopWidth,b=t.desktopHeight,h=Object(s.e)(),v={width:(n={},r()(n,s.b,m),r()(n,s.c,f),r()(n,s.a,y),r()(n,s.d,y),n),height:(a={},r()(a,s.b,g),r()(a,s.c,p),r()(a,s.a,b),r()(a,s.d,y),a)};return e.createElement("div",{className:l()("googlesitekit-preview-block",i,{"googlesitekit-preview-block--padding":d}),style:{width:v.width[h]||o,height:v.height[h]||c}},e.createElement("div",{className:l()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===u})}))}PreviewBlock.propTypes={className:o.a.string,width:o.a.string,height:o.a.string,shape:o.a.string,padding:o.a.bool,smallWidth:o.a.string,smallHeight:o.a.string,tabletWidth:o.a.string,tabletHeight:o.a.string,desktopWidth:o.a.string,desktopHeight:o.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,n(3))},49:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var a={BOXES:"boxes",COMPOSITE:"composite"},r={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},526:function(e,t,n){"use strict";(function(e){var a=n(0),r=n.n(a),i=n(10),o=n.n(i),c=n(48);function PreviewTable(t){for(var n=t.rows,a=t.rowHeight,r=t.padding,i=[],l=0;n>l;l++)i.push(e.createElement("div",{className:"googlesitekit-preview-table__row",key:"table-row-"+l},e.createElement(c.a,{width:"100%",height:a+"px"})));return e.createElement("div",{className:o()("googlesitekit-preview-table",{"googlesitekit-preview-table--padding":r})},i)}PreviewTable.propTypes={rows:r.a.number,rowHeight:r.a.number,padding:r.a.bool},PreviewTable.defaultProps={rows:11,rowHeight:35,padding:!1},t.a=PreviewTable}).call(this,n(3))},527:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportTable}));var a=n(14),r=n.n(a),i=n(10),o=n.n(i),c=n(12),l=n.n(c),s=n(0),u=n.n(s),d=n(15),m=n(1),g=n(11),f=n(122);function ReportTable(t){var n=t.rows,a=t.columns,i=t.className,c=t.limit,s=t.zeroState,u=t.gatheringData,p=void 0!==u&&u,y=t.tabbedLayout,b=void 0!==y&&y;l()(Array.isArray(n),"rows must be an array."),l()(Array.isArray(a),"columns must be an array."),a.forEach((function(e){var t=e.Component,n=e.field,a=void 0===n?null:n;l()(t||null!==a,"each column must define a Component and/or a field.")})),l()(Number.isInteger(c)||void 0===c,"limit must be an integer, if provided.");var h=a.some((function(e){return!!e.badge})),v=Object(m.useState)(0),O=r()(v,2),T=O[0],k=O[1],E=b&&a.slice(1),N=b?[a[0],E[T]]:a;return e.createElement("div",{className:i},b&&e.createElement(g.TabBar,{className:"googlesitekit-tab-bar--start-aligned-high-contrast",activeIndex:T,handleActiveIndexUpdate:k},E.map((function(t){var n=t.title,a=t.badge;return e.createElement(g.Tab,{key:n,"aria-label":n},n,a)}))),e.createElement("div",{className:o()("googlesitekit-table","googlesitekit-table--with-list",{"googlesitekit-table--gathering-data":p})},e.createElement("table",{className:o()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(N.length,"-col"),{"googlesitekit-table__wrapper--tabbed-layout":b})},!b&&e.createElement("thead",{className:"googlesitekit-table__head"},h&&e.createElement("tr",{className:"
|
|||
|
|
Object(l._x)("%1$s (%2$s)","Analytics data stream name and measurement ID","google-site-kit"),r,o.measurementId):r)})))}WebDataStreamSelect.propTypes={hasModuleAccess:o.a.bool,isDisabled:o.a.bool,className:o.a.string}}).call(this,n(3))},573:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PropertySelect}));var a=n(10),r=n.n(a),i=n(0),o=n.n(i),c=n(1),l=n(2),s=n(11),u=n(4),d=n(8),m=n(72),g=n(9),f=n(18);function PropertySelect(t){var n=t.isDisabled,a=t.hasModuleAccess,i=t.className,o=t.onChange,p=void 0===o?function(){}:o,y=Object(u.useSelect)((function(e){return e(d.r).getAccountID()})),b=Object(u.useSelect)((function(e){return!1===a||n?null:e(d.r).getPropertySummaries(y)||[]})),h=Object(u.useSelect)((function(e){return e(d.r).getPropertyID()})),v=Object(u.useSelect)((function(e){return!n&&(e(d.r).isLoadingPropertySummaries()||e(d.r).isLoadingWebDataStreams({hasModuleAccess:a}))})),O=Object(f.a)(),T=Object(u.useDispatch)(d.r).selectProperty,k=Object(c.useCallback)((function(e,t){var n=t.dataset.value;h!==n&&(T(n),Object(g.I)("".concat(O,"_analytics"),n===d.s?"change_property_new":"change_property","ga4"),p())}),[p,h,T,O]);if(!Object(m.a)(y))return null;if(v)return e.createElement(s.ProgressBar,{smallHeight:80,desktopHeight:88,small:!0});var E=void 0===h||""===h||Object(m.f)(h);return!1===a?e.createElement(s.Select,{className:r()("googlesitekit-analytics-4__select-property",i),label:Object(l.__)("Property","google-site-kit"),value:h,enhanced:!0,outlined:!0,disabled:!0},e.createElement(s.Option,{value:h},h)):e.createElement(s.Select,{className:r()("googlesitekit-analytics-4__select-property",i,{"mdc-select--invalid":!E,"googlesitekit-analytics-4__select-property--loaded":!n&&!v}),label:Object(l.__)("Property","google-site-kit"),value:h,onEnhancedChange:k,disabled:n,enhanced:!0,outlined:!0},(b||[]).concat({_id:d.s,displayName:Object(l.__)("Set up a new property","google-site-kit")}).map((function(t){var n=t._id,a=t.displayName;return e.createElement(s.Option,{key:n,value:n},n===d.s?a:Object(l.sprintf)(/* translators: 1: Property name. 2: Property ID. */
|
|||
|
|
Object(l._x)("%1$s (%2$s)","Analytics property name and ID","google-site-kit"),a,n))})))}PropertySelect.propTypes={isDisabled:o.a.bool,hasModuleAccess:o.a.bool,className:o.a.string,onChange:o.a.func}}).call(this,n(3))},574:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WebDataStreamNameInput}));var a=n(10),r=n.n(a),i=n(84),o=n(1),c=n(2),l=n(115),s=n(4),u=n(30),d=n(13),m=n(8),g=n(529),f=n(11),p=n(72);function WebDataStreamNameInput(){var t=Object(s.useSelect)((function(e){return e(m.r).getPropertyID()})),n=Object(s.useSelect)((function(e){return e(m.r).getWebDataStreamID()})),a=Object(s.useSelect)((function(e){return e(u.a).getValue(m.o,"webDataStreamName")})),y=Object(s.useSelect)((function(e){return!!Object(p.e)(t)&&e(m.r).doesWebDataStreamExist(t,a)})),b=Object(s.useSelect)((function(e){return e(d.c).getReferenceSiteURL()})),h=Object(s.useDispatch)(u.a).setValues,v=Object(o.useCallback)((function(e){var t=e.currentTarget;h(m.o,{webDataStreamName:t.value})}),[h]);if(Object(i.a)((function(){if(!a&&Object(l.a)(b)){var e=new URL(b).hostname;h(m.o,{webDataStreamName:e})}})),n!==m.z)return null;var O=y||!a||!Object(p.h)(a),T=!1;return y?T=Object(c.__)("A web data stream with this name already exists.","google-site-kit"):a?Object(p.h)(a)||(T=Object(c.__)("This is not a valid web data stream name.","google-site-kit")):T=Object(c.__)("A web data stream name is required.","google-site-kit"),e.createElement("div",{className:"googlesitekit-analytics-webdatastreamname"},e.createElement(f.TextField,{className:r()({"mdc-text-field--error":O}),label:Object(c.__)("Web Data Stream Name","google-site-kit"),helperText:T,trailingIcon:O&&e.createElement("span",{className:"googlesitekit-text-field-icon--error"},e.createElement(g.a,null)),value:a,onChange:v,outlined:!0}))}}).call(this,n(3))},578:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TimezoneSelect}));var a=n(1),r=n(2),i=n(11),o=n(4),c=n(221),l=n(8),s=n(30);function TimezoneSelect(){var t=Object(o.useSelect)((function(e){return e(s.a).getValue(l.m,"countryCode")})),n=Object(o.useSelect)((function(e){return e(s.a).getValue(l.m,"timezone")})),u=Object(o.useDispatch)(s.a).setValues,d=Object(a.useCallback)((function(e,t){u(l.m,{timezone:t.dataset.value})}),[u]);return e.createElement(i.Select,{className:"googlesitekit-analytics__select-timezone",label:Object(r.__)("Timezone","google-site-kit"),value:n,onEnhancedChange:d,disabled:!t,enhanced:!0,outlined:!0},(c.d[t]||[]).map((function(t,n){var a=t.timeZoneId,r=t.displayName;return e.createElement(i.Option,{key:n,value:a},r)})))}}).call(this,n(3))},579:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AccountField}));var a=n(1),r=n(2),i=n(345),o=n(4),c=n(8),l=n(30);function AccountField(){var t=Object(o.useSelect)((function(e){return e(l.a).getValue(c.m,"accountName")})),n=Object(o.useDispatch)(l.a).setValues,s=Object(a.useCallback)((function(e){n(c.m,{accountName:e})}),[n]);return e.createElement(i.a,{label:Object(r.__)("Account","google-site-kit"),hasError:!t,value:t,setValue:s,name:"account"})}}).call(this,n(3))},580:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PropertyField}));var a=n(1),r=n(2),i=n(345),o=n(4),c=n(8),l=n(30);function PropertyField(){var t=Object(o.useSelect)((function(e){return e(l.a).getValue(c.m,"propertyName")})),n=Object(o.useDispatch)(l.a).setValues,s=Object(a.useCallback)((function(e){n(c.m,{propertyName:e})}),[n]);return e.createElement(i.a,{label:Object(r.__)("Property","google-site-kit"),value:t,hasError:!t,setValue:s,name:"property"})}}).call(this,n(3))},581:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CountrySelect}));var a=n(1),r=n(2),i=n(11),o=n(4),c=n(221),l=n(8),s=n(30);function CountrySelect(){var t=Object(o.useSelect)((function(e){return e(s.a).getValue(l.m,"countryCode")})),n=Object(o.useDispatch)(s.a).setValues,u=Object(a.useCallback)((function(e,a){var r=a.dataset.value;r!==t&&c.b[r]&&n(l.m,{countryCode:r,timezone:c.b[r].defaultTimeZoneId})}),[n,t]);return e.createElement(i.Select,
|
|||
|
|
Object(o.__)("%s (Please try again.)","google-site-kit"),S)),h||(S=Object(o.sprintf)(/* translators: $%s: Error message */
|
|||
|
|
Object(o.__)("Error: %s","google-site-kit"),S));var _=null==r||null===(n=r.data)||void 0===n?void 0:n.reconnectURL;_&&Object(c.a)(_)&&(S=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"),S,_));return e.createElement(u.a,{className:a,type:u.a.TYPES.ERROR,description:e.createElement("span",{dangerouslySetInnerHTML:Object(d.F)(S,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:j?{label:Object(o.__)("Retry","google-site-kit"),onClick:N}:void 0,hideIcon:T})}ErrorNotice.propTypes={className:r.a.string,error:r.a.shape({message:r.a.string}),hasButton:r.a.bool,storeName:r.a.string,message:r.a.string,noPrefix:r.a.bool,skipRetryMessage:r.a.bool,hideIcon:r.a.bool}}).call(this,n(3))},601:function(e,t,n){(function(e){Object.prototype.hasOwnProperty.call(e,"google")||(e.google={})}).call(this,n(28))},61:function(e,t,n){"use strict";(function(e){var a,r;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(a=e)||void 0===a||null===(r=a._googlesitekitBaseData)||void 0===r?void 0:r.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 r}));var a=n(43);function r(e){return function(){e[a.a]=e[a.a]||[],e[a.a].push(arguments)}}},65:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1),r=Object(a.createContext)(""),i=(r.Consumer,r.Provider);t.b=r},678:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DetailsPermaLinks}));var a=n(10),r=n.n(a),i=n(0),o=n.n(i),c=n(1),l=n(4),s=n(13),u=n(21),d=n(9);function DetailsPermaLinks(t){var n=t.title,a=t.path,i=t.serviceURL,o=Object(l.useSelect)((function(e){return e(s.c).getReferenceSiteURL()})),m=Object(d.q)(o,a),g=Object(l.useSelect)((function(e){return e(s.c).getAdminURL("googlesitekit-dashboard",{permaLink:m})}));return e.createElement(c.Fragment,null,e.createElement(u.a,{className:"googlesitekit-font-weight-medium",href:i||g,external:!!i,hideExternalIndicator:!0},n),e.createElement(u.a,{className:r()("googlesitekit-display-block","googlesitekit-overflow-wrap-break-word"),href:m,target:"_blank",small:!0},a))}DetailsPermaLinks.propTypes={title:o.a.string,path:o.a.string,serviceURL:o.a.string}}).call(this,n(3))},695:function(e,t,n){"use strict";var a=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.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=a.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=a.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"}),l=a.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"}),s=a.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=a.createElement("circle",{cx:83.5,cy:56.899,r:1.5,fill:"#959595"}),d=a.createElement("circle",{cx:90.5,cy:56.899,r:1.5,fill:"#C7C7C7"}),m=a.createElement("circle",{cx:97.5,cy:56.899,r:1.5,fill:"#DEDEDE"}),g=a.createElement("circle",{cx:104.5,cy:56.899,r:1.5,fill:"#F1F1F1"}),f=a.createElement("path",{stroke:"#ECE9F1",strokeWidth:.937,strokeLinecap:"round",d:"M.468 58.531h55.064"}),p=a.createElement("path",{stroke:"#ECE9F1",strokeWidth:.468,strokeLinecap:"round",d:"M.234 44.765h55.532M.234 30.765h55.532M.234 16.766h55.532"}),y=a.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
|
|||
|
|
Object(f._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?S(i,y(y({},o),{},{unit:"second"})):"",r?S(r,y(y({},o),{},{unit:"minute"})):"",a?S(a,y(y({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(f.sprintf)(
|
|||
|
|
// translators: %s: number of seconds with "s" as the abbreviated unit.
|
|||
|
|
Object(f.__)("%ds","google-site-kit"),i);if(0===e)return t;var n=Object(f.sprintf)(
|
|||
|
|
// translators: %s: number of minutes with "m" as the abbreviated unit.
|
|||
|
|
Object(f.__)("%dm","google-site-kit"),r),o=Object(f.sprintf)(
|
|||
|
|
// translators: %s: number of hours with "h" as the abbreviated unit.
|
|||
|
|
Object(f.__)("%dh","google-site-kit"),a);return Object(f.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
|
|||
|
|
Object(f._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?t:"",r?n:"",a?o:"").trim()}}},T=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},k=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(f.sprintf)(
|
|||
|
|
// translators: %s: an abbreviated number in millions.
|
|||
|
|
Object(f.__)("%sM","google-site-kit"),S(T(e),e%10==0?{}:t)):1e4<=e?Object(f.sprintf)(
|
|||
|
|
// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(f.__)("%sK","google-site-kit"),S(T(e))):1e3<=e?Object(f.sprintf)(
|
|||
|
|
// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(f.__)("%sK","google-site-kit"),S(T(e),e%10==0?{}:t)):S(e,{signDisplay:"never",maximumFractionDigits:1})};function E(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=y({},e)),t}function N(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=E(t),a=n.style,r=void 0===a?"metric":a;return"metric"===r?k(e):"duration"===r?b(e,n):"durationISO"===r?h(e):S(e,n)}var j=g()(console.warn),S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?A():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(a,i).format(e)}catch(t){j("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(a),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},l=["signDisplay","compactDisplay"],s={},d=0,m=Object.entries(i);d<m.length;d++){var g=r()(m[d],2),f=g[0],p=g[1];c[f]&&p===c[f]||(l.includes(f)||(s[f]=p))}try{return new Intl.NumberFormat(a,s).format(e)}catch(t){return new Intl.NumberFormat(a).format(e)}},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?A():n,r=t.style,i=void 0===r?"long":r,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(a,{style:i,type:c});return l.format(e)}
|
|||
|
|
/* translators: used between list items, there is a space after the comma. */var s=Object(f.__)(", ","google-site-kit");return e.join(s)},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var a=n.match(/^(\w{2})?(_)?(\w{2})/);if(a&&a[0])return a[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 r}));var a=n(160),r=n.n(a)()(e)}).call(this,n(28))},89:function(e,t,n){"use strict";(function(e){var a=n(0),r=n.n(a),i=n(10),o=n.n(i);function ChangeArrow(t){var n=t.direction,a=t.invertColor,r=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":a}),width:r,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:r.a.string,invertColor:r.a.bool,width:r.a.number,height:r.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(3))},9:function(e,t,n){"use strict";n.d(t,"I",(function(){return r.b})),n.d(t,"J",(function(){return r.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 p})),n.d(t,"j",(function(){return y})),n.d(t,"i",(function(){return b})),n.d(t,"d",(function(){return E})),n.d(t,"c",(function(){return N})),n.d(t,"e",(function(){return j})),n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return _})),n.d(t,"f",(function(){return A})),n.d(t,"n",(function(){return I})),n.d(t,"w",(function(){return w})),n.d(t,"p",(function(){return C})),n.d(t,"G",(function(){return Z})),n.d(t,"s",(function(){return M})),n.d(t,"v",(function(){return D})),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 G.b})),n.d(t,"q",(function(){return G.a})),n.d(t,"A",(function(){return G.c})),n.d(t,"x",(function(){return R})),n.d(t,"u",(function(){return x})),n.d(t,"E",(function(){return W})),n.d(t,"D",(function(){return F.a})),n.d(t,"g",(function(){return V})),n.d(t,"L",(function(){return z})),n.d(t,"l",(function(){return H}));var a=n(15),r=n(40),i=n(76),o=n(36),c=n.n(o),l=n(103),s=n.n(l),u=function(e){return s()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(a){var r=t[a];r&&"object"===c()(r)&&!Array.isArray(r)&&(r=e(r)),n[a]=r})),n}(e)))};n(104);var d=n(87);function m(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function g(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function f(e){return e.replace(/\n/gi,"<br>")}function p(e){for(var t=e,n=0,a=[m,g,f];n<a.length;n++){t=(0,a[n])(t)}return t}var y=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},h=n(14),v=n.n(h),O=n(12),T=n.n(O),k=n(2),E="Invalid dateString parameter, it must be a string.",N='Invalid date range, it must be a string with the format "last-x-days".',j=60,S=60*j,_=24*S,A=7*_;function I(){var e=function(e){return Object(k.sprintf)(/* translators: %s: number of days */
|
|||
|
|
Object(k._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 w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!Object(a.isString)(e))return!1;var t=e.split("-");if(3!==t.length)return!1;var n=new Date(e);return Object(a.isDate)(n)&&!isNaN(n)}function C(e){T()(Object(a.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 Z(e){T()(w(e),E);var t=e.split("-"),n=v()(t,3),a=n[0],r=n[1],i=n[2];return new Date(a,r-1,i)}function M(e,t){return C(P(e,t*_))}function D(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){T()(w(e)||Object(a.isDate)(e)&&!isNaN(e),E);var n=w(e)?Date.parse(e):e.getTime();return new Date(n-1e3*t)}var L=n(107),G=n(85);function R(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function x(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var B=n(27),U=n.n(B),W=function(e){return Array.isArray(e)?U()(e).sort():e},F=n(92);function V(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 a=(t-e)/e;return Number.isNaN(a)||!Number.isFinite(a)?null:a}var z=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(a.unescape)(t)}},90:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d}));var a=n(14),r=n.n(a),i=n(196),o=n(138),c={},l=void 0===e?null:e,s=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,a=e.initialWidth,u=void 0===a?0:a,d=e.initialHeight,m=void 0===d?0:d,g=Object(i.a)("undefined"==typeof document?[u,m]:s,t,n),f=r()(g,2),p=f[0],y=f[1],b=function(){return y(s)};return Object(o.a)(l,"resize",b),Object(o.a)(l,"orientationchange",b),p},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 a=n(12),r=n.n(a),i=function(e,t){var n=t.dateRangeLength;r()(Array.isArray(e),"report must be an array to partition."),r()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var a=-1*n;return{currentRange:e.slice(a),compareRange:e.slice(2*a,a)}}},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 a=n(23),r=n(120);function i(t,n){var a=document.querySelector(t);if(!a)return 0;var r=a.getBoundingClientRect().top,i=o(n);return r+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===a.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!==a.b?t.offsetHeight:0}(t),(n=Object(r.a)(n))<0?0:n}}).call(this,n(28))},97:function(e,t,n){"use strict";var a=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.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"}
|