(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{1060:function(t,e,n){"use strict";n.r(e);var r=n(705),o=n(918),c=n(702),l=n(0),f=n(866),h=n(860),d=n(914),v=Object(l.b)({name:"PagePerformance",components:{CollectDataInfo:f.a,LoadingSpinner:c.a,SeoResults:o.a,SegmentHeader:r.a},setup:function(){var t=Object(h.a)(),e=t.url,n=t.screenshot,r=Object(d.a)("performance"),o=r.fetch,c=r.fetchState,l=r.dataCount;return{url:e,screenshot:n,lighthouseResult:r.lighthouseResult,dataCount:l,fetchState:c,fetch:o}}}),m=n(3),component=Object(m.a)(v,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("SegmentHeader",{attrs:{"tool-identifier":"performance","tool-identifier-group":"lighthouse_desktop","disable-settings":["limit"]}}),t._v(" "),t.$fetchState.pending?n("LoadingSpinner"):[n("CollectDataInfo",{attrs:{"data-count":t.dataCount},on:{updateData:t.$fetch}}),t._v(" "),t._l(t.lighthouseResult,(function(component){return n("SeoResults",{key:component.component.id,staticClass:"mb-5",attrs:{id:component.component.id,component:component,screenshot:t.screenshot(component.component.id),"external-url":t.url(component.component.id)}})}))]],2)}),[],!1,null,null,null);e.default=component.exports},714:function(t,e,n){"use strict";var r={name:"InfoBox"},o=n(3),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"bg-third-400 border border-solid border-third-regular rounded p-3 mb-4 font-light cBody"},[t._t("default")],2)}),[],!1,null,null,null);e.a=component.exports},866:function(t,e,n){"use strict";n(75);var r=n(0),o=n(714),c=n(107),l=Object(r.b)({name:"CollectDataInfo",components:{Richtext:c.a,InfoBox:o.a},props:{dataCount:{type:Number,default:0}},setup:function(t,e){var n=e.emit,o=Object(r.m)().store,c=Object(r.j)(!1),l=Object(r.j)(!1),f=Object(r.j)(!1),h=Object(r.a)({get:function(){return!1},set:function(){return o.getters["testrunner/getFirstRun"]}});return Object(r.s)(h,(function(){h.value?(l.value=!1,c.value=!0):(c.value=!1,l.value=0===t.dataCount,f.value!==h.value&&n("updateData")),f.value=h.value}),{immediate:!0}),{showInfoForFirstRun:c,showInfoForNoData:l}}}),f=n(3),component=Object(f.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showInfoForFirstRun||t.showInfoForNoData?n("InfoBox",{staticClass:"mb-6"},[t.showInfoForFirstRun?[n("h2",{staticClass:"cSubline"},[t._v("\n      "+t._s(t.$t("WeAreCollectingData"))+"\n    ")]),t._v(" "),n("p",[n("Richtext",{attrs:{content:t.$t("WeCollectDataSentence")}})],1)]:t._e(),t._v(" "),t.showInfoForNoData?[t._v("\n    "+t._s(t.$t("noStatsOnProject"))+"\n  ")]:t._e()],2):t._e()}),[],!1,null,null,null);e.a=component.exports},914:function(t,e,n){"use strict";var r=n(7),o=(n(23),n(35),n(17),n(12),n(0));e.a=function(t){var e=Object(o.m)(),n=e.$apiClient,c=e.route.value.params.sid,l=Object(o.j)(0),f=Object(o.j)(null),h=Object(o.n)(Object(r.a)(regeneratorRuntime.mark((function e(){var r,o,h,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getRepository("checklighthouse");case 3:return r=e.sent,e.next=6,r.getResults(c,t);case 6:o=e.sent,h=o.results,d=Object.keys(h).map((function(t){return h[t]})),l.value=d.filter((function(t){return t.results.length})).length,f.value=d,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),console.error(e.t0);case 16:case"end":return e.stop()}}),e,null,[[0,13]])}))));return{fetch:h.fetch,fetchState:h.fetchState,dataCount:l,lighthouseResult:f}}}}]);