Files
palkkakysely/analysaattori/static/js/main.6ddcb33a.chunk.js

1 line
877 B
JavaScript

(this.webpackJsonpanalysaattori=this.webpackJsonpanalysaattori||[]).push([[0],{28:function(a,t,e){"use strict";e.r(t);var n=e(0),r=e.n(n),c=e(5),s=e.n(c),o=e(12),d=e(11),i=e(7),j=e.n(i),l=(e(26),e(6)),b=e.n(l),h=e(8),O=e.n(h),u=e(9),w=e.n(u),g=e(10),p=e(1);const x=O()(window.Plotly),y=w()(x),k=Object.assign({},b.a,y);var m=function(){const a=new URLSearchParams(window.location.search),t=r.a.useState({}),e=Object(d.a)(t,2),n=e[0],c=e[1],s=Object(g.a)(a.get("url")||"/palkkakysely/data.json");return s.data?Object(p.jsx)("div",{children:Object(p.jsx)(j.a,Object(o.a)({data:s.data,renderers:k,onChange:c},n))}):s.error?Object(p.jsxs)(p.Fragment,{children:["Virhe ladatessa dataa: ","".concat(s.error)]}):Object(p.jsx)(p.Fragment,{children:"Ladataan..."})};s.a.render(Object(p.jsx)(r.a.StrictMode,{children:Object(p.jsx)(m,{})}),document.getElementById("root"))}},[[28,1,2]]]);