28 lines
76 KiB
JavaScript
28 lines
76 KiB
JavaScript
|
|
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[21],{1:function(e,t){e.exports=googlesitekit.i18n},10:function(e,t,r){"use strict";var n=r(95),a=r.n(n);r.d(t,"r",(function(){return a.a})),r.d(t,"g",(function(){return n.HelperText})),r.d(t,"h",(function(){return n.Input}));var i=r(179);r.d(t,"m",(function(){return i.a}));var o=r(250);r.d(t,"j",(function(){return o.a}));var c=r(251);r.d(t,"l",(function(){return c.a}));var s=r(122),l=r.n(s);r.d(t,"q",(function(){return l.a})),r.d(t,"o",(function(){return s.Option}));var u=r(252);r.d(t,"n",(function(){return u.a}));var d=r(249);r.d(t,"i",(function(){return d.a}));var g=r(248);r.d(t,"k",(function(){return g.a}));var f=r(96),p=r.n(f);r.d(t,"c",(function(){return p.a})),r.d(t,"d",(function(){return f.DialogContent})),r.d(t,"e",(function(){return f.DialogFooter}));var m=r(247);r.d(t,"b",(function(){return m.a}));var b=r(102);r.d(t,"a",(function(){return b.a})),r.d(t,"f",(function(){return b.b})),r.d(t,"p",(function(){return b.c}))},102:function(e,t,r){"use strict";var n=r(117);r.d(t,"a",(function(){return n.a}));var a=r(118);r.d(t,"c",(function(){return a.a}));var i=r(119);r.d(t,"b",(function(){return i.a}))},1089:function(e,t,r){"use strict";r.r(t);var n=r(4),a=r.n(n),i=r(143),o=r.n(i),c=r(321),s=r.n(c),l=r(1),u=r(176),d=r(705),g=r(779),f=r(2);function p(){return(p=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 m=f.createElement("defs",null,f.createElement("radialGradient",{id:"pagespeed-insights_svg__b",cx:1360.51,cy:10958.05,r:458.83,gradientTransform:"matrix(.5 0 0 .5 -675.69 -5476.24)",gradientUnits:"userSpaceOnUse"},f.createElement("stop",{offset:0,stopColor:"#fff",stopOpacity:.1}),f.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),f.createElement("linearGradient",{id:"pagespeed-insights_svg__a",x1:1572.36,y1:11164.11,x2:1691.74,y2:11283.49,gradientTransform:"matrix(.5 0 0 .5 -675.69 -5476.24)",gradientUnits:"userSpaceOnUse"},f.createElement("stop",{offset:0,stopColor:"#212121",stopOpacity:.2}),f.createElement("stop",{offset:1,stopColor:"#212121",stopOpacity:0}))),b=f.createElement("path",{d:"M183.93 25.08v121.19a12.53 12.53 0 01-12.54 12.54H12.58A12.53 12.53 0 010 146.27V25.08z",fill:"#e1e1e1"}),v=f.createElement("path",{d:"M12.58 0h158.81a12.53 12.53 0 0112.54 12.54v12.54H0V12.54A12.53 12.53 0 0112.58 0z",fill:"#c2c2c2"}),h=f.createElement("path",{d:"M171.39 0H12.58A12.57 12.57 0 000 12.54v1A12.58 12.58 0 0112.58 1h158.81a12.59 12.59 0 0112.54 12.54v-1A12.58 12.58 0 00171.39 0z",fillOpacity:.2,fill:"#fff"}),_=f.createElement("path",{fill:"#212121",fillOpacity:.1,d:"M0 25.08h183.93v1H0z"}),y=f.createElement("path",{d:"M91.91 62.69a66.76 66.76 0 00-66.76 66.86c0 1.4-.09 3.14 0 4.18h29.13a36.26 36.26 0 010-4.18 37.64 37.64 0 0157.36-32l21-21a66.62 66.62 0 00-40.73-13.86z",fill:"#4285f4"}),O=f.createElement("path",{d:"M132.64 76.52l-21 21a37.59 37.59 0 0117.9 32 36.26 36.26 0 010 4.18h29.27c.08-1 0-2.78 0-4.18a66.73 66.73 0 00-26.17-53z",fill:"#f44336"}),E=f.createElement("circle",{fill:"#eee",cx:16.76,cy:12.54,r:4.18}),k=f.createElement("circle",{fill:"#eee",cx:33.48,cy:12.54,r:4.18}),w=f.createElement("path",{fill:"#212121",fillOpacity:.1,d:"M171.41 157.76H12.54A12.57 12.57 0 010 145.23v1a12.57 12.57 0 0012.54 12.54h158.87a12.58 12.58 0 0012.59-12.5v-1a12.58 12.58 0 01-12.54 12.53z"}),j=f.createElement("path",{d:"M132.86 79.06a2.06 2.06 0 00.39-1.22 2.1 2.1 0 00-2.09-2.09 2 2 0 00-1.28.46l-45.57 35.07a12.53 12.53 0 1018.37 16.41l30.17-48.65z",fill:"#9e9e9e"}),R=f.createElement("path",{d:"M132.82 76.58a2 2 0 01.43 1.26 2.06 2.06 0 01-.39 1.22l-30.17 48.65a12.53 12.53 0 01-18.84 3.05l28.08 28.07h59.47a12.53 12.53 0 0012.54-12.54v-18.61z",fill:"url(#pagespeed-insights_svg__a)"}),A=f.createElement("path",{d:"M183.93 12.54A12.53 12.53 0 00171.39 0H12.58A12.53 12.53 0 000 12.54v133.73a12.53 12.53 0 0012.54 12.54h158.85a12.53 12.53 0 0012.54-12.54z",fill:"url(#pagespeed-insights_svg__b)"
|
||
|
|
/* 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(o.w)(r,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})})}}).call(this,r(3))},73:function(e,t,r){"use strict";r.d(t,"d",(function(){return n.e})),r.d(t,"c",(function(){return n.d})),r.d(t,"b",(function(){return n.b})),r.d(t,"a",(function(){return n.a})),r.d(t,"f",(function(){return c})),r.d(t,"g",(function(){return l})),r.d(t,"h",(function(){return u})),r.d(t,"i",(function(){return d.a})),r.d(t,"e",(function(){return f})),r.d(t,"j",(function(){return s.a}));var n=r(39),a=r(7),i=r.n(a),o=r(40),c=function(e){i()(Object(o.a)(e),n.c);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("-")},s=r(37),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=Object(s.a)(e);return r.setDate(r.getDate()-t),c(r)},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]},d=r(47);var g=r(1);function f(){var e=function(e){return Object(g.sprintf)(
|
||
|
|
/* translators: %s: number of days */
|
||
|
|
Object(g._n)("Last %s day","Last %s days",e,"google-site-kit"),e)};return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}},75:function(e,t,r){"use strict";(function(e){r.d(t,"c",(function(){return O})),r.d(t,"d",(function(){return k})),r.d(t,"b",(function(){return w})),r.d(t,"a",(function(){return j}));var n=r(14),a=r.n(n),i=r(30),o=r.n(i),c=r(6),s=r.n(c),l=r(22),u=r.n(l),d=r(29),g=r(74),f=r.n(g),p=r(1);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=h(e,t),n=r.formatUnit,a=r.formatDecimal;try{return n()}catch(e){return a()}},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var r=Math.floor(e/60/60),n=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:r,minutes:n,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=b(b({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?k(a,b(b({},o),{},{unit:"second"})):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?k(a,b(b({},o),{},{unit:"second"})):"",n?k(n,b(b({},o),{},{unit:"minute"})):"",r?k(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"),a);if(0===e)return t;var i=Object(p.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
|
||
|
|
Object(p.__)("%dm","google-site-kit"),n),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"),a?t:"",n?i:"",r?o:"").trim()}}},_=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},y=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in millions.
|
||
|
|
Object(p.__)("%sM","google-site-kit"),k(_(e),e%10==0?{}:t)):1e4<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
|
||
|
|
Object(p.__)("%sK","google-site-kit"),k(_(e))):1e3<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
|
||
|
|
Object(p.__)("%sK","google-site-kit"),k(_(e),e%10==0?{}:t)):k(e,{signDisplay:"never",maximumFractionDigits:1})},O=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 r={};if("%"===t)r={style:"percent",maximumFractionDigits:2};else{if("s"===t)return v(e,{unitDisplay:"narrow"});t&&"string"==typeof t?r={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(r=b({},t))}var n=r,a=n.style,i=void 0===a?"metric":a;return"metric"===i?y(e):"duration"===i?v(e,t):k(e,r)},E=f()(console.warn),k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?j():r,i=u()(t,["locale"]);try{return new Intl.NumberFormat(n,i).format(e)}catch(t){E("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").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(n,l).format(e)}catch(t){return new Intl.NumberFormat(n).format(e)}},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?j():r,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(n,{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)},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(r){var n=r.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,r(21))},76:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(2),a=Object(n.createContext)(""),i=(a.Consumer,a.Provider);t.b=a},77:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));var n=r(130),a=r.n(n)()(e)}).call(this,r(21))},779:function(e,t,r){"use strict";(function(e){var n=r(780),a=r(213);t.a=Object(a.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(3))},780:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return DashboardPageSpeed}));var n=r(5),a=r.n(n),i=r(16),o=r.n(i),c=r(6),s=r.n(c),l=r(14),u=r.n(l),d=r(11),g=r.n(d),f=r(301),p=r.n(f),m=r(388),b=r.n(m),v=r(493),h=r(2),_=r(1),y=r(35),O=r.n(y),E=r(4),k=r.n(E),w=r(13),j=r(781),R=r(18),A=r(784),N=r(785),S=r(786),D=r(790),P=r(33),T=r(15),L=r(34),M=r(80),I=r(128),x=r(20),C=r(791),H=k.a.useSelect,F=k.a.useDispatch,U=k.a.useInViewSelect;function DashboardPageSpeed(){var t=Object(h.useRef)(),r=Object(h.useState)(!1),n=u()(r,2),i=n[0],c=n[1],l=Object(x.a)(),d=H((function(e){return e(T.c).getCurrentReferenceURL()})),f=H((function(e){return e(L.b).getValue(M.h)}))||M.f,m=H((function(e){return e(L.b).getValue(M.g)}))||M.b,y=H((function(e){var t=e(M.d);return{isFetchingMobile:!t.hasFinishedResolution("getReport",[d,M.f]),errorMobile:t.getErrorForSelector("getReport",[d,M.f]),isFetchingDesktop:!t.hasFinishedResolution("getReport",[d,M.e]),errorDesktop:t.getErrorForSelector("getReport",[d,M.e])}})),E=y.isFetchingMobile,k=y.isFetchingDesktop,z=y.errorMobile,B=y.errorDesktop,W=U((function(e){return e(M.d).getReport(d,M.f)})),q=U((function(e){return e(M.d).getReport(d,M.e)})),V=F(L.b).setValues,Y=F(M.d).invalidateResolution,K=Object(v.a)(t,{threshold:.25}),$=!!(null==K?void 0:K.intersectionRatio),G=f===M.f?E:k;Object(h.useEffect)((function(){$&&!i&&(Object(P.b)("".concat(l,"_pagespeed-widget"),"widget_view"),Object(P.b)("".concat(l,"_pagespeed-widget"),"default_tab_view",m.replace("data_","")),c(!0))}),[$,m,l,i]);var Z=Object(h.useCallback)((function(e){var t;switch(e){case 0:V(s()({},M.g,M.b)),t="lab";break;case 1:V(s()({},M.g,M.a)),t="field";break;case 2:V(s()({},M.g,M.c)),t="recommendations"}Object(P.b)("".concat(l,"_pagespeed-widget"),"tab_select",t)}),[V,l]),J=Object(h.useCallback)((function(e){e.slug===M.e?V(s()({},M.h,M.e)):V(s()({},M.h,M.f))}),[V]),X=Object(h.useCallback)(function(){var e=o()(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,O.a.invalidateCache("modules","pagespeed-insights","pagespeed");case 3:Y("getReport",[d,M.e]),Y("getReport",[d,M.f]);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[Y,d]),Q=f===M.f?W:q,ee=f===M.f?z:B,te=H((function(e){return e(M.d).hasFinishedResolution("getReport",[d,f])})),re=U((function(e){if(ee)return[];var t=e(M.d).getAuditsWithStackPack(d,f,"wordpress");if(!t||!Object.keys(t).length)return[];var r=[];return Object.keys(t).forEach((function(e){var n=t[e];"numeric"!==n.scoreDisplayMode&&"binary"!==n.scoreDisplayMode||n.score>=.9||r.push({id:n.id,title:n.title})})),r}),[d,f,te]);Object(h.useEffect)((function(){var e,t;(null==W||null===(e=W.loadingExperience)||void 0===e?void 0:e.metrics)&&(null==q||null===(t=q.loadingExperience)||void 0===t?void 0:t.metrics)&&V(s()({},M.g,M.a))}),[W,q,V]);var ne=!d||G&&!Q||!m,ae=m===M.a&&["LARGEST_CONTENTFUL_PAINT_MS","CUMULATIVE_LAYOUT_SHIFT_SCORE","FIRST_INPUT_DELAY_MS"].every((function(e){var t,r;return null==Q||null===(t=Q.loadingExperience)||void 0===t||nul
|
||
|
|
/* translators: %s: number of seconds */
|
||
|
|
Object(c._x)("%s s","duration","google-site-kit"),_),category:p.category}),e.createElement(s.a,{title:Object(c._x)("Cumulative Layout Shift","core web vitals name","google-site-kit"),description:Object(c.__)("How stable the elements on the page are","google-site-kit"),displayValue:y,category:m.category}),e.createElement(s.a,{title:Object(c._x)("First Input Delay","core web vitals name","google-site-kit"),description:Object(c.__)("Time it takes for the browser to respond when people first interact with the page","google-site-kit"),displayValue:Object(c.sprintf)(
|
||
|
|
/* translators: %s: number of milliseconds */
|
||
|
|
Object(c._x)("%s ms","duration","google-site-kit"),b.percentile),category:b.category,isLast:!v}),e.createElement(s.a,{title:Object(c._x)("Interaction to Next Paint","core web vitals name","google-site-kit"),description:Object(c.__)("How quickly your page responds when people interact with it","google-site-kit"),displayValue:Object(c.sprintf)(
|
||
|
|
/* translators: %s: number of milliseconds */
|
||
|
|
Object(c._x)("%s ms","duration","google-site-kit"),null==v?void 0:v.percentile),category:(null==v?void 0:v.category)||f.a,experimental:!0,isLast:!!v,isHidden:!v}))))}FieldReportMetrics.propTypes={data:a.a.object,error:a.a.object}}).call(this,r(3))},786:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return Recommendations}));var n=r(0),a=r.n(n),i=r(11),o=r.n(i),c=r(1),s=r(80),l=r(787),u=r(788),d=r(10);function Recommendations(t){var r=t.className,n=t.recommendations,a=t.referenceURL,i=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:a,strategy:i})}))):e.createElement(d.f,null,e.createElement(d.p,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:a.a.string,recommendations:a.a.arrayOf(a.a.object),referenceURL:a.a.string.isRequired,strategy:a.a.oneOf([s.f,s.e]).isRequired},Recommendations.defaultProps={className:""}}).call(this,r(3))},787:function(e,t,r){"use strict";var n=r(2);function a(){return(a=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 i=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",a({viewBox:"0 0 400 400",fill:"none"},e),i,o,c,s,l,u,d,g,f)}},788:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return Recommendation}));var n=r(0),a=r.n(n),i=r(2),o=r(4),c=r.n(o),s=r(80),l=r(789),u=r(9),d=r(20),g=c.a.useSelect;function Recommendation(t){var r=t.auditID,n=t.title,a=t.referenceURL,o=t.strategy,c=Object(d.a)(),f=Object(i.useCallback)((function(){Object(u.z)("".concat(c,"_pagespeed-widget"),"stack_pack_expand",r)}),[r,c]),p=g((function(e){return e(s.d).getStackPackDescription(a,o,r,"wordpress")}));if(!p)return null;var m=Object(u.s)(p.description);return e.createElement(l.a,{id:r,title:n,onOpen:f},e.createElement("div",{dangerouslySetInnerHTML:Object(u.w)(m,{ALLOWED_TAGS:["a","p"],ALLOWED_ATTR:["href","rel","target"]})}))}Recommendation.propTypes={auditID:a.a.string.isRequired,title:a.a.string.isRequired,referenceURL:a.a.s
|
||
|
|
/* 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(l.a,{href:r,external:!0})}))}}).call(this,r(3))},791:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return DashboardPageSpeedLoading}));var n=r(586),a=r(94);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(a.a,{width:"130px",height:"40px"})),e.createElement("div",{className:"googlesitekit-pagespeed-report__footer"},e.createElement(a.a,{width:"224px",height:"40px"})))}}).call(this,r(3))},80:function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"f",(function(){return a})),r.d(t,"e",(function(){return i})),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",a="mobile",i="desktop",o="data_lab",c="data_field",s="data_recommendations",l="dashboardPageSpeedWidgetStrategy",u="dashboardPageSpeedWidgetDataSource"},84:function(e,t,r){"use strict";(function(e){var n=r(0),a=r.n(n),i=r(101),o=r(1),c=r(9);function ErrorText(t){var r=t.message,n=t.reconnectURL;if(!r)return null;var a=Object(o.sprintf)(
|
||
|
|
/* translators: %s: Error message */
|
||
|
|
Object(o.__)("Error: %s","google-site-kit"),r);n&&Object(i.a)(n)&&(a=a+" "+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.w)(a,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:a.a.string.isRequired,reconnectURL:a.a.string},ErrorText.defaultProps={reconnectURL:""},t.a=ErrorText}).call(this,r(3))},85:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return l}));var n=r(14),a=r.n(n);function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){s=!0,i=e},f:function(){try{c||null==r.return||r.return()}finally{if(s)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},s=function(e){for(var t=location.search.substr(1).split("&"),r={},n=0;n<t.length;n++)r[t[n].split("=")[0]]=decodeURIComponent(t[n].split("=")[1]);return e?r.hasOwnProperty(e)?decodeURIComponent(r[e].replace(/\+/g," ")):"":r},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,r=new URL(t.href);if(e)return r.searchParams&&r.searchParams.get?r.searchParams.get(e):s(e);var n,o={},c=i(r.searchParams.entries());try{for(c.s();!(n=c.n()).done;){var l=a()(n.value,2),u=l[0],d=l[1];o[u]=d}}catch(e){c.e(e)}finally{c.f()}return o}}).call(this,r(21))},86:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return i}));var n=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},a=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},88:function(e,t,r){"use strict";(function(e){r(41),r(42)}).call(this,r(21))},89:function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return c}));var n=r(177),a=r(67),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=r.invertColor,o=void 0!==i&&i;return Object(n.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,r,n,a,i,o,c,s,l,u,d,g,f,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(r=t.data)||void 0===r||null===(n=r.rows)||void 0===n?void 0:n.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.metrics)||void 0===s||null===(l=s[0])||void 0===l||null===(u=l.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(g=d.data)||void 0===g||null===(f=g.totals)||void 0===f||null===(p=f[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])},c=function(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}}).call(this,r(3))},9:function(e,t,r){"use strict";r.d(t,"z",(function(){return c.b})),r.d(t,"w",(function(){return s.a})),r.d(t,"A",(function(){return s.b})),r.d(t,"y",(function(){return f})),r.d(t,"e",(function(){return p.a})),r.d(t,"l",(function(){return p.b})),r.d(t,"u",(function(){return m.
|