26 lines
94 KiB
JavaScript
26 lines
94 KiB
JavaScript
|
|
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[21],{10:function(e,t){e.exports=googlesitekit.components},100:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o}));var n=r(59),i=r(39),a=r(57);function o(t,r){var o,c=Object(n.a)(r),s=t.activeModules,l=t.referenceSiteURL,u=t.userIDHash,d=t.userRoles,g=void 0===d?[]:d,f=t.isAuthenticated,p=t.pluginVersion;return function(){var r=e.document;if(void 0===o&&(o=!!r.querySelector("script[".concat(i.b,"]"))),!o){o=!0;var n=(null==g?void 0:g.length)?g.join(","):"";c("js",new Date),c("config",t.trackingID,{groups:"site_kit",send_page_view:t.isSiteKitScreen,domain:l,plugin_version:p||"",enabled_features:Array.from(a.a).join(","),active_modules:s.join(","),authenticated:f?"1":"0",user_properties:{user_roles:n,user_identifier:u}});var d=r.createElement("script");return d.setAttribute(i.b,""),d.async=!0,d.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(i.a),r.head.appendChild(d),{scriptTagSrc:"https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(i.a)}}}}}).call(this,r(28))},101:function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var n=r(5),i=r.n(n),a=r(6),o=r.n(a),c=r(16),s=r.n(c),l=r(59);function u(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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r,n){var a=Object(l.a)(t);return function(){var t=s()(i.a.mark((function t(o,c,s,l){var u;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.trackingEnabled){t.next=3;break}return t.abrupt("return");case 3:return r(),u={send_to:"site_kit",event_category:o,event_label:s,value:l},t.abrupt("return",new Promise((function(e){var t,r,i=setTimeout((function(){n.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),e()}),1e3),s=function(){clearTimeout(i),e()};a("event",c,d(d({},u),{},{event_callback:s})),(null===(t=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)}}()}},102:function(e,t,r){"use strict";var n=r(123);r.d(t,"a",(function(){return n.a}));var i=r(124);r.d(t,"c",(function(){return i.a}));var a=r(125);r.d(t,"b",(function(){return a.a}))},103:function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"f",(function(){return i})),r.d(t,"e",(function(){return a})),r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return c})),r.d(t,"c",(function(){return s})),r.d(t,"h",(function(){return l})),r.d(t,"g",(function(){return u}));var n="modules/pagespeed-insights",i="mobile",a="desktop",o="data_lab",c="data_field",s="data_recommendations",l="dashboardPageSpeedWidgetStrategy",u="dashboardPageSpeedWidgetDataSource"},1065:function(e,t,r){"use strict";(function(e){var n=r(1066),i=r(50);t.a=Object(i.a)({moduleName:"pagespeed-insights"})((function DashboardPageSpeedWidget(t){var r=t.Widget;return e.createElement(r,{className:"googlesitekit-pagespeed-widget",noPadding:!0},e.createElement(n.a,null))}))}).call(this,r(4))},1066:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return DashboardPageSpeed}));var n=r(5),i=r.n(n),a=r(16),o=r.n(a),c=r(6),s=r.n(c),l=r(15),u=r.n(l),d=r(11),g=r.n(d),f=r(240),p=r(0),m=r(2),v=r(45),b=r.n(v),h=r(10),O=r(3),_=r(1067),y=r(20),E=r(1070),k=r(1071),j=r(1073),w=r(1077),A=r(36),R=r(13),N=r(23),S=r(103),D=r(510),T=r(18),L=r(1078);function DashboardPageSpeed(){var t=Object(p.useRef)(),r=Object(p.useState)(!1),n=u()(r,2),a=n[0],c=n[1],l=Object(T.a)(),d=Ob
|
||
|
|
/* translators: %s: number of seconds */
|
||
|
|
Object(s._x)("%s s","duration","google-site-kit"),_),category:null==v?void 0:v.category,isUnavailable:!v}),e.createElement(l.a,{title:Object(s._x)("Cumulative Layout Shift","core web vitals name","google-site-kit"),description:Object(s.__)("How stable the elements on the page are","google-site-kit"),displayValue:y,category:null==b?void 0:b.category,isUnavailable:!b}),e.createElement(l.a,{title:Object(s._x)("Interaction to Next Paint","core web vitals name","google-site-kit"),description:Object(s.__)("How quickly your page responds when people interact with it","google-site-kit"),displayValue:Object(s.sprintf)(
|
||
|
|
/* translators: %s: number of milliseconds */
|
||
|
|
Object(s._x)("%s ms","duration","google-site-kit"),null==h?void 0:h.percentile),category:(null==h?void 0:h.category)||m.a,isLast:!0,isUnavailable:!h,hintText:Object(c.a)(Object(s.__)("INP is a new Core Web Vital that replaced FID in March 2024. <LearnMoreLink />","google-site-kit"),{LearnMoreLink:e.createElement(d.a,null)})}))))}FieldReportMetrics.propTypes={data:i.a.object,error:i.a.object}}).call(this,r(4))},1072:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return INPLearnMoreLink}));var n=r(2),i=r(20);function INPLearnMoreLink(){return e.createElement(i.a,{href:"https://web.dev/inp-cwv/",external:!0,"aria-label":Object(n.__)("Learn more about INP replacing FID.","google-site-kit")},Object(n.__)("Learn more","google-site-kit"))}}).call(this,r(4))},1073:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return Recommendations}));var n=r(1),i=r.n(n),a=r(11),o=r.n(a),c=r(2),s=r(103),l=r(1074),u=r(1075),d=r(17);function Recommendations(t){var r=t.className,n=t.recommendations,i=t.referenceURL,a=t.strategy;return(null==n?void 0:n.length)?e.createElement("div",{className:o()("googlesitekit-pagespeed--recommendations",r)},e.createElement("div",{className:"googlesitekit-pagespeed-recommendations__title"},Object(c.__)("Recommendations on how to improve your site","google-site-kit")),n.map((function(t){var r=t.id,n=t.title;return e.createElement(u.a,{key:r,auditID:r,title:n,referenceURL:i,strategy:a})}))):e.createElement(d.e,null,e.createElement(d.k,null,e.createElement(d.a,null,Object(c.__)("No recommendations for now","google-site-kit")),e.createElement(d.a,{className:"googlesitekit-pagespeed__zero-recommendations"},e.createElement(l.a,null))))}Recommendations.propTypes={className:i.a.string,recommendations:i.a.arrayOf(i.a.object),referenceURL:i.a.string.isRequired,strategy:i.a.oneOf([s.f,s.e]).isRequired},Recommendations.defaultProps={className:""}}).call(this,r(4))},1074:function(e,t,r){"use strict";var n=r(0);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 a=n.createElement("path",{d:"M281.11 316.17a16 16 0 01-20.69 15.23M118.86 316.17a16 16 0 0020.69 15.23M201 300.22h-66.19a16 16 0 00-16 15.95h0",stroke:"#F29900",strokeLinejoin:"round",strokeWidth:9.4}),o=n.createElement("path",{d:"M198.06 300.22h67.1a16 16 0 0115.95 15.95h0",stroke:"#F29900",strokeLinejoin:"round",strokeWidth:9.4}),c=n.createElement("path",{d:"M249.64 206.74c-1.42 24.59 12.3 59.39 35.05 71.31 15.3 8 34.85 1.6 37.66-16.54C324.46 247.84 316.82 233 308 223c0 0 14.73-2.8 14.73-21.22M150.36 206.74c1.42 24.59-12.3 59.39-35.05 71.31-15.3 8-34.85 1.6-37.66-16.54C75.54 247.84 83.18 233 92 223c0 0-14.73-2.8-14.73-21.22",stroke:"#FBBC04",strokeLinejoin:"round",strokeWidth:9.4}),s=n.createElement("path",{fill:"#F9AB00",d:"M145.23 76.68h109.53v219.7H145.23z"}),l=n.createElement("path",{d:"M172.74 142.94c13.38 16.48 37.19 21.05 54.28 0",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6.66}),u=n.createElement("path",{stroke:"#F29900",strokeLinejoin:"round",strokeWidth:9.4,d:"M260.42 331.4l-141.56-45.03-10.4 28.08"}),d=n.createElement("path",{stroke:"#F29900",strokeLinejoin:"round",strokeWidth:9.4,d:"M139.55 331.4l141.56-45.03 10.4 28.08"}),g=n.createElement("ellipse",{cx:200,cy:381.74,rx:79.51,ry:8.26,fill:"#F1F3F4"}),f=n.createElement("path",{stroke:"#E8EAED",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:6,d:"M200 10v31.42M105 35.46l15.71 27.2M35.46 105l27.2 15.71M10 200h31.42M35.46 295l27.2-15.71M364.54 295l-27.2-15.71M390 200h-31.42M364.54 105l-27.2 15.71M295 35.46l-15.71 27.2"});t.a=function SvgZeroStateYellow(e){return n.createElement("svg",i({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,l,u,d,g,f)}},1075:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return Recommendation}));var n=r(1),i=r.n(n),a=r(0),o=r(3),c=r(103),s=r(1076),l=r(9),u=r(18);function Recommendation(t){var r=t.auditID,n=t.title,i=t.referenceURL,d=t.strategy,g=Object(u.a)(),f=Object(
|
||
|
|
/* translators: %s: link with translated service name */
|
||
|
|
Object(n.__)("View details at %s","google-site-kit"),"<a>".concat(Object(n._x)("PageSpeed Insights","Service name","google-site-kit"),"</a>")),{a:e.createElement(s.a,{href:r,external:!0})}))}}).call(this,r(4))},1078:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return DashboardPageSpeedLoading}));var n=r(802),i=r(44);function DashboardPageSpeedLoading(){return e.createElement("div",{className:"googlesitekit-pagespeed-widget__content"},e.createElement("header",{className:"googlesitekit-pagespeed-widget__header"},e.createElement("div",{className:"googlesitekit-pagespeed-widget__data-src-tabs"},e.createElement(n.a,{count:3,smallWidth:"70px",smallHeight:"48px",width:"120px",height:"48px"})),e.createElement("div",{className:"googlesitekit-pagespeed-widget__device-size-tab-bar-wrapper"},e.createElement(n.a,{count:2,width:"56px",height:"32px"}))),e.createElement("section",{className:"googlesitekit-pagespeed-widget__values"},e.createElement(n.a,{count:5,smallWidth:"100%",smallHeight:"90px",width:"100%",height:"78px"})),e.createElement("div",{className:"googlesitekit-pagespeed-report__row"},e.createElement(i.a,{width:"130px",height:"40px"})),e.createElement("div",{className:"googlesitekit-pagespeed-report__footer"},e.createElement(i.a,{width:"224px",height:"40px"})))}}).call(this,r(4))},1079:function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return SetupSuccessNotification}));var i=r(15),a=r.n(i),o=r(1),c=r.n(o),s=r(2),l=r(3),u=r(41),d=r(115),g=r(168),f=r(92),p=r(147),m=r(24),v=r(93),b=r(22);function SetupSuccessNotification(t){var r=t.id,i=t.Notification,o=Object(m.e)(),c=Object(p.a)("notification"),h=a()(c,2)[1],O=Object(p.a)("slug"),_=a()(O,2)[1],y=Object(l.useDispatch)(u.a).dismissNotification,E=function(){h(void 0),_(void 0)},k="#".concat(b.d);return n.createElement(i,null,n.createElement(d.a,{title:Object(s.__)("Congrats on completing the setup for PageSpeed Insights!","google-site-kit"),description:Object(s.__)("Jump to the bottom of the dashboard to see how fast your home page is","google-site-kit"),dismissCTA:n.createElement(f.a,{id:r,primary:!1,dismissLabel:Object(s.__)("Got it","google-site-kit"),onDismiss:E}),additionalCTA:n.createElement(g.a,{id:r,ctaLabel:Object(s.__)("Show me","google-site-kit"),onCTAClick:function(t){t.preventDefault(),y(r),E(),e.history.replaceState({},"",k),e.scrollTo({top:Object(v.a)(k,o),behavior:"smooth"})}})}))}SetupSuccessNotification.propTypes={id:c.a.string.isRequired,Notification:c.a.elementType.isRequired}}).call(this,r(28),r(4))},115:function(e,t,r){"use strict";(function(e){var n=r(1),i=r.n(n),a=r(11),o=r.n(a),c=r(0),s=r(137),l=r(58),u=r(131),d=r(17),g=Object(c.forwardRef)((function(t,r){var n=t.className,i=t.title,a=t.description,c=t.dismissCTA,g=t.additionalCTA,f=t.reverseCTAs,p=void 0!==f&&f,m=t.type,v=void 0===m?"success":m,b=t.icon;return e.createElement(d.e,{ref:r},e.createElement(d.k,null,e.createElement(d.a,{alignMiddle:!0,size:12,className:o()("googlesitekit-subtle-notification",n,{"googlesitekit-subtle-notification--success":"success"===v,"googlesitekit-subtle-notification--warning":"warning"===v,"googlesitekit-subtle-notification--new-feature":"new-feature"===v})},e.createElement("div",{className:"googlesitekit-subtle-notification__icon"},b,"success"===v&&!b&&e.createElement(s.a,{width:24,height:24}),"warning"===v&&!b&&e.createElement(l.a,{width:24,height:24}),"new-feature"===v&&!b&&e.createElement(u.a,{width:24,height:24})),e.createElement("div",{className:"googlesitekit-subtle-notification__content"},e.createElement("p",null,i),e.createElement("p",{className:"googlesitekit-subtle-notification__secondary_description"},a)),e.createElement("div",{className:"googlesitekit-subtle-notification__action"},!p&&c,p&&g,!p&&g,p&&c))))}));g.propTypes={className:i.a.string,title:i.a.node,description:i.a.node,dismissCTA:i.a.node,additionalCTA:i.a.node,reverseCTAs:i.a.bool,type:i.a.oneOf(["success","warning","new-feature"]),icon:i.a.object},t.a=g}).call(this,r(4))},123:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return Cell}));var n=r
|
||
|
|
/* translators: %s: Error message */
|
||
|
|
Object(o.__)("Error: %s","google-site-kit"),r)),n&&Object(a.a)(n)&&(s=s+" "+Object(o.sprintf)(
|
||
|
|
/* translators: %s: Reconnect URL */
|
||
|
|
Object(o.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),n));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.F)(s,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:i.a.string.isRequired,reconnectURL:i.a.string,noPrefix:i.a.bool},ErrorText.defaultProps={reconnectURL:"",noPrefix:!1},t.a=ErrorText}).call(this,r(4))},57:function(e,t,r){"use strict";(function(e){var n,i;r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o}));var a=new Set((null===(n=e)||void 0===n||null===(i=n._googlesitekitBaseData)||void 0===i?void 0:i.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return t instanceof Set&&t.has(e)}}).call(this,r(28))},58:function(e,t,r){"use strict";var n=r(0);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 a=n.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),o=n.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"});t.a=function SvgWarning(e){return n.createElement("svg",i({fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e),a,o)}},587:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ReportMetric}));var n=r(6),i=r.n(n),a=r(1),o=r.n(a),c=r(11),s=r.n(c),l=r(2),u=r(531),d=r(77),g=r(132);function ReportMetric(t){var r,n=t.title,a=t.description,o=t.displayValue,c=t.category,f=t.experimental,p=t.isLast,m=t.isHidden,v=t.isUnavailable,b=t.hintText;return c=null===(r=c)||void 0===r?void 0:r.toLowerCase(),e.createElement("tr",{className:s()("googlesitekit-pagespeed-report__row","googlesitekit-pagespeed-report-metric",{"googlesitekit-pagespeed-report__row--last":p,"googlesitekit-pagespeed-report__row--hidden":m,"googlesitekit-pagespeed-report__row--unavailable":v})},e.createElement("td",null,e.createElement("div",{className:"googlesitekit-pagespeed-report-metric__title"},n,!!f&&e.createElement(d.a,{label:Object(l.__)("Experimental","google-site-kit"),className:"googlesitekit-pagespeed-report-metric__badge"}),v&&e.createElement(g.a,{title:Object(l.__)("Field data is still being gathered for this metric and will become available once your site gets sufficient traffic","google-site-kit")})),e.createElement("div",{className:"googlesitekit-pagespeed-report-metric__description"},a),b&&e.createElement("div",{className:"googlesitekit-pagespeed-report-metric__hint-text"},b)),e.createElement("td",{className:s()("googlesitekit-pagespeed-report-metric-value",i()({},"googlesitekit-pagespeed-report-metric--".concat(c),!!c))},e.createElement("div",{className:"googlesitekit-pagespeed-report-metric-value-container"},e.createElement("div",{className:"googlesitekit-pagespeed-report-metric-value__display-value"},v?"—":o),e.createElement("div",{className:"googlesitekit-pagespeed-report-metric-value__rating"},v&&e.createElement("span",null,Object(l.__)("gathering data","google-site-kit")),!v&&c===u.b&&e.createElement("span",null,Object(l._x)("Good","Performance rating","google-site-kit")),!v&&c===u.a&&e.createElement("span",null,Object(l._x)("Needs improvement","Performance rating","google-site-kit")),!v&&c===u.c&&e.createElement("span",null,Object(l._x)("Poor","Performance rating","google-site-kit"))))))}ReportMetric.propTypes={title:o.a.string.isRequired,description:o.a.string.isRequired,displayValue:o.a.string.isRequired,category:o.a.string,experimental:o.a.bool,isLast:o.a.bool,isHidden:o.a.bool,hintText:o.a.node}}).call(this,r(4))},59:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(39);function i(e){return function(){e[n.a]=e[n.a]||[],e[n.a].push(arguments)}}},61:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),i=Object(n.createContext)(""),a=(i.Consumer,i.Provider);t.b=i},64:function(e,t,r){"use strict";r.d(t,"a",(f
|
||
|
|
/* 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"),a?A(a,v(v({},o),{},{unit:"second"})):"",i?A(i,v(v({},o),{},{unit:"minute"})):"",n?A(n,v(v({},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"),a);if(0===e)return t;var r=Object(p.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
|
||
|
|
Object(p.__)("%dm","google-site-kit"),i),o=Object(p.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit.
|
||
|
|
Object(p.__)("%dh","google-site-kit"),n);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"),a?t:"",i?r:"",n?o:"").trim()}}},y=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"),A(y(e),e%10==0?{}:t)):1e4<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
|
||
|
|
Object(p.__)("%sK","google-site-kit"),A(y(e))):1e3<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
|
||
|
|
Object(p.__)("%sK","google-site-kit"),A(y(e),e%10==0?{}:t)):A(e,{signDisplay:"never",maximumFractionDigits:1})};function k(e){var t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:Object(d.isPlainObject)(e)&&(t=v({},e)),t}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var r=k(t),n=r.style,i=void 0===n?"metric":n;return"metric"===i?E(e):"duration"===i?b(e,r):"durationISO"===i?h(e):A(e,r)}var w=f()(console.warn),A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?N():r,a=u()(t,["locale"]);try{return new Intl.NumberFormat(n,a).format(e)}catch(t){w("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(a)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},d=0,g=Object.entries(a);d<g.length;d++){var f=i()(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(n,l).format(e)}catch(t){return new Intl.NumberFormat(n).format(e)}},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?N():r,i=t.style,a=void 0===i?"long":i,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(n,{style:a,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)},N=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(28))},84:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(149),i=r.n(n)()(e)}).call(this,r(28))},85:function(e,t,r){"use strict";(function(e){var n=r(1),i=r.n(n),a=r(11),o=r.n(a);function ChangeArrow(t){var r=t.direction,n=t.invertColor,i=t.width,a=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(r),{"googlesitekit-change-arrow--inverted-color":n}),width:i,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"}))}ChangeArrow.propTypes={direction:i.a.string,invertColor:i.a.bool,width:i.a.number,height:i.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,r(4))},88:function(e,t,r){"use strict";r.r(t),r.d(t,"AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY",(function(){return n})),r.d(t,"AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY",(function(){return i})),r.d(t,"AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION",(function(){return a})),r.d(t,"AREA_MAIN_DASHBOARD_CONTENT_PRIMARY",(function(){return o})),r.d(t,"AREA_MAIN_DASHBOARD_SPEED_PRIMARY",(function(){return c})),r.d(t,"AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY",(function(){return s})),r.d(t,"AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY",(function(){return l})),r.d(t,"AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY",(function(){return u})),r.d(t,"AREA_ENTITY_DASHBOARD_SPEED_PRIMARY",(function(){return d})),r.d(t,"AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY",(function(){return g}));var n="mainDashboardKeyMetricsPrimary",i="mainDashboardTrafficPrimary",a="mainDashboardTrafficAudienceSegmentation",o="mainDashboardContentPrimary",c="mainDashboardSpeedPrimary",s="mainDashboardMonetizationPrimary",l="entityDashboardTrafficPrimary",u="entityDashboardContentPrimary",d="entityDashboardSpeedPrimary",g="entityDashboardMonetizationPrimary";t.default={AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:n,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:i,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:o,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:c,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:s,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:l,AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:u,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:d,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:g}},89:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(12),i=r.n(n),a=function(e,t){var r=t.dateRangeLength;i()(Array.isArray(e),"report must be an array to partition."),i()(Number.isInteger(r)&&r>0,"dateRangeLength must be a positive integer.");var n=-1*r;return{currentRange:e.slice(n),compareRange:e.slice(2*n,n)}}},9:function(e,t,r){"use strict";r.d(t,"I",(function(){return i.b})),r.d(t,"J",(function(){return i.c})),r.d(t,"F",(function(){return a.a})),r.d(t,"K",(function(){return a.b})),r.d(t,"H",(function(){return u})),r.d(t,"m",(function(){return d.a})),r.d(t,"B",(function(){return d.d})),r.d(t,"C",(function(){return d.e})),r.d(t,"y",(function(){return d.c})),r.d(t,"r",(function(){return d.b})),r.d(t,"z",(function(){return m})),r.d(t,"j",(function(){return v})),r.d(t,"i",(function(){return b})),r.d(t,"d",(function(){return k})),r.d(t,"c",(function(){return j})),r.d(t,"e",(function(){return w})),r.d(t,"b",(function(){return A})),r.d(t,"a",(function(){return R})),r.d(t,"f",(function(){return N})),r.d(t,"n",(function(){return S})),r.d(t,"w",(function(){return D})),r.d(t,"p",(function(){return T})),r.d(t,"G",(function(){return L})),r.d(t,"s",(function(){return P})),r.d(t,"v",(function(){return I})),r.d(t,"k",(function(){return M})),r.d(t,"o",(function(){return C.b}
|
||
|
|
/* 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 D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!Object(n.isString)(e))return!1;var t=e.split("-");if(3!==t.length)return!1;var r=new Date(e);return Object(n.isDate)(r)&&!isNaN(r)}function T(e){y()(Object(n.isDate)(e)&&!isNaN(e),"Date param must construct to a valid date instance or be a valid date instance itself.");var t="".concat(e.getMonth()+1),r="".concat(e.getDate());return[e.getFullYear(),t.length<2?"0".concat(t):t,r.length<2?"0".concat(r):r].join("-")}function L(e){y()(D(e),k);var t=e.split("-"),r=O()(t,3),n=r[0],i=r[1],a=r[2];return new Date(n,i-1,a)}function P(e,t){return T(M(e,t*R))}function I(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 M(e,t){y()(D(e)||Object(n.isDate)(e)&&!isNaN(e),k);var r=D(e)?Date.parse(e):e.getTime();return new Date(r-1e3*t)}var C=r(98),x=r(80);function H(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 B=r(27),z=r.n(B),U=function(e){return Array.isArray(e)?z()(e).sort():e},W=r(89);function q(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 V=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},Y=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)}},911:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return SettingsView}));var n=r(2),i=r(3),a=r(9),o=r(103);function SettingsView(){var t=Object(i.useSelect)((function(e){return e(o.d).getAdminScreenURL()})),r=Object(n.sprintf)(
|
||
|
|
/* translators: %s: is the URL to the Site Kit dashboard. */
|
||
|
|
Object(n.__)('To view insights, <a href="%s">visit the dashboard</a>',"google-site-kit"),"".concat(t,"#speed"));return e.createElement("p",{dangerouslySetInnerHTML:Object(a.F)(r,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})})}}).call(this,r(4))},92:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return Dismiss}));var n=r(5),i=r.n(n),a=r(6),o=r.n(a),c=r(16),s=r.n(c),l=r(1),u=r.n(l),d=r(2),g=r(3),f=r(73),p=r(41),m=r(10);function v(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?v(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Dismiss(t){var r=t.id,n=t.primary,a=void 0===n||n,o=t.dismissLabel,c=void 0===o?Object(d.__)("OK, Got it!","google-site-kit"):o,l=t.dismissExpires,u=void 0===l?0:l,v=t.disabled,h=t.onDismiss,O=void 0===h?function(){}:h,_=t.gaTrackingEventArgs,y=t.dismissOptions,E=Object(f.a)(r,null==_?void 0:_.category),k=Object(g.useDispatch)(p.a).dismissNotification,j=function(){var e=s()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null==O?void 0:O(t);case 2:E.dismiss(null==_?void 0:_.label,null==_?void 0:_.value),k(r,b(b({},y),{},{expiresInSeconds:u}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return e.createElement(m.Button,{tertiary:!a,onClick:j,disabled:v},c)}Dismiss.propTypes={id:u.a.string,primary:u.a.bool,dismissLabel:u.a.string,dismissExpires:u.a.number,disabled:u.a.bool,onDismiss:u.a.func,gaTrackingEventArgs:u.a.shape({label:u.a.string,value:u.a.string})}}).call(this,r(4))},93:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return c}));var n=r(24),i=r(130);function a(t,r){var n=document.querySelector(t);if(!n)return 0;var i=n.getBoundingClientRect().top,a=o(r);return i+e.scrollY-a}function o(e){var t=c(e),r=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(r).reduce((function(e,t){return e+t.offsetHeight}),0)}function c(t){var r=0,a=document.querySelector(".googlesitekit-header");return r=!!a&&"sticky"===e.getComputedStyle(a).position?function(e){var t=document.querySelector(".googlesitekit-header");if(t){if(e===n.b)return t.offsetHeight;var r=t.getBoundingClientRect().bottom;return r<0?0:r}return 0}(t):function(e){var t=document.querySelector("#wpadminbar");return t&&e!==n.b?t.offsetHeight:0}(t),(r=Object(i.a)(r))<0?0:r}}).call(this,r(28))},97:function(e,t,r){"use strict";(function(e){r(51),r(53)}).call(this,r(28))},98:function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return o}));var n=r(239),i=r(85),a=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var a=r.invertColor,o=void 0!==a&&a;return Object(n.a)(e.createElement(i.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}}).call(this,r(4))},99:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return d}));var n=r(6),i=r.n(n),a=r(14),o=r(100),c=r(101);function s(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.de
|