1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2598],{80975:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var a=r(n(42549));t.useDebounce=a.default;var u=r(n(66755));t.useInView=u.default},42549:function(e,t,n){t.__esModule=!0;var r=n(27378);t.default=function(e,t){var n=r.useState(e),a=n[0],u=n[1];return r.useEffect(function(){var n=setTimeout(function(){u(e)},t);return function(){clearTimeout(n)}},[e,t]),a}},66755:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,u){function o(e){try{l(r.next(e))}catch(e){u(e)}}function i(e){try{l(r.throw(e))}catch(e){u(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,i)}l((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,a,u,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){return function(u){if(n)throw TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}
1if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,n(17827);var o=u(n(23615)),i=n(27378);function l(e){var t=this,n=e.ref,u=e.once,o=void 0===u||u,l=e.offset,c=void 0===l?"0px":l,s=i.useState(!1),f=s[0],d=s[1],p=i.useRef();return i.useEffect(function(){r(t,void 0,void 0,function(){var e,t;return a(this,function(r){return"undefined"!=typeof window&&(e=(n||p||{}).current)?(t=new IntersectionObserver(function(t,n){var r=t[0];d(r.isIntersecting),r.isIntersecting&&o&&(null==n||n.unobserve(e))},{rootMargin:c}),e&&t.observe(e),[2,function(){null==t||t.unobserve(e)}]):[2]})})},[c,o,n]),[f,p]}l.displayName="useInView",l.propTypes={ref:o.default.element,rootMargin:o.default.string},t.default=l},81622:function(e,t,n){n.d(t,{T:function(){return r},c:function(){return a}});let r={once:!0,offset:"200px"},a={once:!0,offset:"0px"}},81356:function(e,t,n){n.r(t),n.d(t,{default:function(){return _}});var r=n(25773),a=n(96535),u=n(27378),o=n(23615),i=n.n(o),l=n(87507),c=n(65218),s=n.n(c),f=n(80975),d=s()(()=>n.e(1756).then(n.bind(n,60080)),{loadableGenerated:{webpack:()=>[60080]},loadableGenerated:{webpack:()=>[60080]}}),p=n(81622);let h=s()(()=>Promise.all([n.e(9106),n.e(4182)]).then(n.bind(n,11480)),{loadableGenerated:{webpack:()=>[11480]},loadableGenerated:{webpack:()=>[11480]}}),b=e=>{let{chartFileUrl:t,chartType:n,chartTitle:r,showLegend:a,axesOptions:o,datasetsOptions:i}=e,[l,c]=(0,f.useInView)(p.T),[s,b]=(0,u.useState)(null),[v,y]=(0,u.useState)(null),[w,_]=(0,u.useState)(!0);return((0,u.useEffect)(()=>{t&&l&&fetch(t).then(e=>e.text()).then(e=>{b(e),_(!1)}).catch(e=>{_(!1),y(e.message)})},[t,l]),v)?u.createElement("div",{"data-testid":"chart-error"},v):u.createElement("div",{ref:c,"data-testid":"chart-container",className:"chart-container"},w?u.createElement(d,null):u.createElement(h,{chartData:s,chartOptions:{chartType:n,chartTitle:r,showLegend:a,axesOptions:o,datasetsOptions:i}}))};b.propTypes={chartFileUrl:i().string,chartType:i().string,chartTitle:i().string,showLegend:i().bool,axesOptions:i().array,datasetsOptions:i().array},b.defaultProps={chartFileUrl:null,chartType:"bar",chartTitle:"",showLegend:!0,axesOptions:[],datasetsOptions:[]};var v=n(1121);let y=["chartFileId"],w=e=>{let{chartFileId:t}=e,n=(0,a.Z)(e,y),{loading:o,data:{file:i}={}}=(0,l.aM)(v.un,{variables:{id:t},skip:!t});return!o&&t&&i?u.createElement(b,(0,r.Z)({},n,{chartFileUrl:i.url})):null};w.propTypes={chartFileId:i().string},w.defaultProps={chartFileId:null};var _=w},96535:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(r=0;r<u.length;r++)n=u[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}}}]); 2//# sourceMappingURL=blazePbChart.1ac0dea521099da9.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.