text: (this.webpackJsonpripple=this.webpackJsonpripple||[]).push([[0],{10:function(e,t,n){e.exports={Panel:"Panel_Panel__3MTlv",PanelTitle:"Panel_PanelTitle__3tYPw",IconActive:"Panel_IconActive__2VByb",PanelContent:"Panel_PanelContent__2JHYQ"}},105:function(e,t,n){},106:function(e,t,n){"use strict";n.r(t);var a={};n.r(a),n.d(a,"TriangleIcon",(function(){return M})),n.d(a,"NetworkIcon",(function(){return F})),n.d(a,"TextIcon",(function(){return U})),n.d(a,"ChartIcon",(function(){return H})),n.d(a,"CircleIcon",(function(){return z}));var r=n(0),i=n.n(r),c=n(8),o=n.n(c),l=(n(52),n(1)),u=n(3),s=function(e,t){return e[t.key].map((function(e){return e.id==t.id&&Object.assign(e,Object(u.a)({},t.data)),e})),e},d=function(e,t){return e.views=e.views.filter((function(e){return e.id!=t.id})),e.viewList=e.views.map((function(e){return"".concat(e.type,".").concat(e.id)})),e},m=function(e){return void 0==e?Math.random().toString(36).substr(2,9):new Array(e).fill(0).map((function(){return Math.random().toString(36).substr(2,9)}))},f=function(e,t){return console.log(t.data),e.views.push({type:t.data.type,title:t.data.title,subTitle:t.data.subtitle,id:m(),view:t.data.view}),e},v=function(e,t){switch(e.timestamp=(new Date).toString(),t.type){case"CHANGE":return s(e,t);case"DELETE":return d(e,t);case"CREATE":return f(e,t);default:return e}},p={timestamp:(new Date).toString(),views:[{type:"network",title:"Friendship network",subTitle:"Based on aggregation II",id:m(),view:"aggregate"},{type:"text",title:"Text Example",subTitle:"Description of process",id:m(),view:"textbox"},{type:"time",title:"Connection Timeseries",subTitle:"Based on aggregation III",id:m(),view:"timeplot"}],annotations:{},viewList:[]};p.viewList=p.views.map((function(e){return"".concat(e.type,".").concat(e.id)}));var g=Object(r.createContext)(),b=function(e){var t=e.children,n=Object(r.useReducer)(v,p),a=Object(l.a)(n,2),c=a[0],o=a[1];return i.a.createElement(g.Provider,{value:{ram:c,ramUpdate:o}},t)},E=n(2),w=function(e,t){if(!(t="number"===typeof t?t:1/0))return Array.isArray(e)?e.map((function(e){return e})):e;return function e(n,a){return n.reduce((function(n,r){return Array.isArray(r)&&a<t?n.concat(e(r,a+1)):n.concat(r)}),[])}(e,1)},y=function e(t){return 1===t.length&&Array.isArray(t[0])?e(t[0]):Array.isArray(t)?t.map(e):t},h=function(e){return e=function e(t){if(t.length<=2)return t;for(var n=[];t.length>0;)n.push(t.splice(0,2));return e(n)}(e)},O=function(e,t){var n=t.view,a=Object(E.a)(w(e));return a.push(n),y(h(a))},j=function(e,t){var n=t.view,a=Object(E.a)(w(e));return a=a.filter((function(e){return e!==n})),y(h(a))},x=function e(t){var n=[];return t.forEach((function(t){if(Array.isArray(t)&&0!==t.length){var a=e(t);a.length>0&&n.push(a)}else"undefined"!==typeof t&&""!==t&&null!==t&&n.push(t)})),n},C=function(e){e=JSON.stringify(e);for(var t=/\[\[(\["\w+\.\d+","\w+\.\d+"\])\]\]/;t.test(e);)e=e.replace(t,"$1");for(var n=/\[(\["\w+\.\d+")\]/;n.test(e);)e=e.replace(n,"$1");for(var a=JSON.parse(e);Array.isArray(a[0])&&Array.isArray(a[0][0])&&1===a.length&&1===a[0].length;)a=a[0][0];return a},A=function(e,t){var n=t.dragged,a=t.to,r=t.pos,i=t.vertical,c=JSON.stringify(e).replace(/\s/,"").replace('"'.concat(n,'"'),"$from").replace('"'.concat(a,'"'),"$to");if("center"===r)return c=c.replace("$from",'"'.concat(a,'"')).replace("$to",'"'.concat(n,'"')),JSON.parse(c);var o=[];return o="left"===r||"top"===r?[n,a]:[a,n],(!i||"left"!==r&&"right"!==r)&&(i||"top"!==r&&"bottom"!==r)||(o=[o]),c=(c=c.replace("$from","null")).replace("$to",JSON.stringify(o)),e=x(JSON.parse(c)),C(e)},_=function(e,t){switch(t.type){case"ADD_VIEW":return O(e,t);case"REMOVE_VIEW":return j(e,t);case"MOVE_VIEW":return A(e,t);default:return e}},T=Object(r.createContext)(),N=function(e){var t=e.children,n=Object(r.useContext)(g).ram,a=Object(r.useReducer)(_,h(n.viewList)),c=Object(l.a)(a,2),o=c[0],u=c[1];return i.a.createElement(T.Provider,{value:{grid:o,dispatch:u}},t)},k=Object(r.createContext)(),S=function(e){var t=e.children,n=Object(r.useState)((new Date).toString()),a=Object(l.a)(n,2),c=a[0],o=a[1];return i.a.createElement(k.Provider,{value:{updateListener:c,forceUpdate:o}},t)},I=function(e){return JSON.parse(JSON.stringify(e))},D={loading:!1,active:{id:"",title:"",timeStart:"",timeEnd:"",collection:"",series:"",fromNode:"",toNode:"",description:""},annotations:[]},P=Object(r.createContext)(),L=function(e){var t=e.children,n=Object(r.useState)(D),a=Object(l.a)(n,2),c=a[0],o=a[1],s=c.active;console.log("ANNOTATION...",c);return i.a.createElement(P.Provider,{value:{annotation:c,active:s,updateAnnotation:function(e){var t=I(c);t.annotations.push(I(t.active));var n=t.annotations.findIndex((function(t){return t.id==e.id})),a=n>-1?t.annotations[n]:{};n>-1&&t.annotations.splice(n,1),t.active=Object(u.a)({},D.active,{},e,{},a),o(t)},setAnnotationField:function(e,t){var n=I(c);n.active[e]=t,o(n)}}},t)},V=n(39),B=n.n(V),W=n(16),R=n.n(W),M=Object(r.memo)((function(e){return i.a.createElement("svg",Object.assign({height:"6",viewBox:"0 0 415.346 415.346"},e),i.a.createElement("path",{d:"M41.712,415.346c-11.763,0-21.3-9.537-21.3-21.3V21.299C20.412,9.536,29.949,0,41.712,0l346.122,191.697c0,0,15.975,15.975,0,31.951C371.859,239.622,41.712,415.346,41.712,415.346z"}))})),F=Object(r.memo)((function(e){return i.a.createElement("svg",Object.assign({height:"16",viewBox:"0 0 96.666 96.666"},e),i.a.createElement("rect",{x:"36",y:"6",width:"24.666",height:"24.666"}),i.a.createElement("rect",{y:"66",width:"24.666",height:"24.666"}),i.a.createElement("rect",{x:"72",y:"66",width:"24.666",height:"24.666"}),i.a.createElement("polygon",{points:"15.311,51.333 82.105,51.333 82.105,63.066 86.561,63.066 86.561,46.4 84.334,46.4 84.334,46.333 50.833,46.333 50.833,35 45.833,35 45.833,46.333 12.334,46.333 12.334,46.4 10.855,46.4 10.855,63.066 15.311,63.066"}))})),U=Object(r.memo)((function(e){return i.a.createElement("svg",Object.assign({height:"16",x:"0px",y:"0px",viewBox:"0 0 218 218"},e),i.a.createElement("polygon",{points:"103,41 133,41 133,73 167,73 167,7 0,7 0,73 34,73 34,41 64,41 64,177 48,177 48,211 120,211 120,177 103,177 \t"}),i.a.createElement("polygon",{points:"118,90 118,132 142,132 142,114 155,114 155,187 145,187 145,211 191,211 191,187 182,187 182,114 194,114 \r 194,132 218,132 218,90 \t"}))})),H=Object(r.memo)((function(e){return i.a.createElement("svg",Object.assign({height:"16",viewBox:"0 0 276.232 276.232"},e),i.a.createElement("path",{d:"M56.505,195.714c1.719,1.001,3.601,1.474,5.455,1.474c3.748,0,7.397-1.936,9.415-5.412l18.792-32.319c4.525-7.794,13.44-9.013,19.896-2.725l28.631,27.859c2.643,2.573,6.402,3.633,10.019,2.807c3.601-0.827,6.532-3.421,7.794-6.897l32.014-66.563c3.073-8.474,11.531-17.149,18.895-19.374c7.37-2.23,15.273,2.355,17.655,10.231l4.319,14.272c0.87,2.872,2.725,3.057,4.139,0.408l25.727-48.076c1.414-2.649,0.419-5.945-2.23-7.364l-48.076-25.743c-2.649-1.42-4.085-0.234-3.22,2.638c0,0,1.947,6.44,4.357,14.386c2.404,7.946-2.638,16.502-11.259,19.113l-16.274,4.928c-3.285,0.995-5.907,3.481-7.076,6.706l-28.131,55.848c-3.073,8.474-10.797,10.247-17.258,3.965l-26.543-25.825c-2.399-2.339-5.76-3.432-9.061-2.981c-3.318,0.451-6.244,2.415-7.925,5.309l-33.994,58.47C49.548,186.038,51.31,192.695,56.505,195.714z"}),i.a.createElement("path",{d:"M262.139,217.073c0,0-5.575-0.125-11.819-0.125H37.256c-9.013,0-16.344-7.299-16.393-16.317c-0.163-33.059-0.533-104.843-0.533-104.843c0-2.91-0.408-5.472-1.202-7.609c-1.305-3.503-4.803-5.765-8.915-5.765c-4.204,0-7.734,2.322-8.991,5.912c-0.74,2.105-1.115,4.618-1.115,7.468v111.805c0,1.588-0.027,3.242-0.054,4.917c-0.185,11.34-0.092,18.482,3.916,22.278c2.616,2.491,6.233,3.747,10.742,3.747h246.966c7.272-0.158,14.555-3.617,14.555-10.992C276.232,226.581,276.341,217.073,262.139,217.073z"}))})),z=Object(r.memo)((function(e){return i.a.createElement("svg",Object.assign({height:"16",viewBox:"0 0 512 512"},e),i.a.createElement("path",{d:"M256,0C114.837,0,0,114.837,0,256s114.837,256,256,256s256-114.837,256-256S397.163,0,256,0z"}))})),J=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=Object(r.useState)(e),n=Object(l.a)(t,2),a=n[0],i=n[1],c=function(e){e.preventDefault(),i(!a)};return[a,c,i]},G=Object(r.memo)((function(e){var t=e.children,n=J(),a=Object(l.a)(n,2),r=a[0],c=a[1],o=r?void 0:{width:0,minWidth:0};return i.a.createElement("div",{className:R.a.PanelsList},i.a.createElement("div",{className:R.a.Panels+" customScrollBar",style:o},t),i.a.createElement("div",{className:R.a.PanelsToggle,onClick:c},i.a.createElement(M,{transform:"rotate(".concat(r?"180":"0",")")})))})),Y=n(15),$=n(10),q=n.n($),X=function(e){var t=e.view_type,n=e.view_id,a=Object(r.useContext)(T),i=a.grid,c=a.dispatch,o="".concat(t,".").concat(n),l=w(i).find((function(e){return e===o}));return[l,function(){return c({type:l?"REMOVE_VIEW":"ADD_VIEW",view:o})}]},Z=function(e){return{draggable:!0,onDragStart:function(t){var n=document.getElementById("MainView"),a=t.target;setTimeout((function(){n.classList.add("drag"),a.classList.add("drag")}),1),t.dataTransfer.setData("text",e)},onDragEnd:function(e){var t=document.getElementById("MainView"),n=e.target;setTimeout((function(){t.classList.remove("drag"),n.classList.remove("drag")}),1)}}},K=Object(r.memo)((function(e){var t=e.title,n=e.subTitle,r=e.flexOpen,c=e.icon,o=e.open,s=Object(Y.a)(e,["title","subTitle","flexOpen","icon","open"]),d=J(o),m=Object(l.a)(d,2),f=m[0],v=m[1],p=X(s),g=Object(l.a)(p,2),b=g[0],E=g[1],w=r&&f?{flex:1,minHeight:0}:void 0,y=f?{}:{height:0};y=r&&f?Object(u.a)({height:"calc(100% - 1.25rem)"},y):y;var h=a[c];return i.a.createElement("div",{className:q.a.Panel,style:w},i.a.createElement("div",{className:q.a.PanelTitle,onClick:h?null:v},i.a.createElement(M,{transform:"rotate(".concat(f?"90":"0",")"),onClick:h?v:null}),i.a.createElement("span",{onClick:h?v:null},i.a.createElement("h5",null,t),i.a.createElement("h6",null,n)),h&&i.a.createElement("div",Object.assign({},Z("".concat(s.view_type,".").concat(s.view_id)),{onClick:E,draggable:!b}),i.a.createElement(h,{className:b?q.a.IconActive:""}))),i.a.createElement("div",{className:q.a.PanelContent,style:y},s.children))})),Q=n(12),ee=n(5),te=n.n(ee),ne=n(40),ae=n.n(ne),re=Object(r.memo)((function(e){var t=e.children,n=Object(Y.a)(e,["children"]);return i.a.createElement("form",Object.assign({onSubmit:function(e){e.preventDefault()},className:ae.a.Form},n),t)})),ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(r.useState)(t),a=Object(l.a)(n,2),i=a[0],c=a[1],o=function(e){return c(e.target.value)};return{name:e,value:i,onChange:o}},ce=n(17),oe=n.n(ce),le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=Object(r.useState)({loading:!0,data:null,error:null}),i=Object(l.a)(a,2),c=i[0],o=i[1];Object(r.useEffect)((function(){var n=new AbortController,a=n.signal;return function(){var n,r;oe.a.async((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,oe.a.awrap(fetch(e,Object(u.a)({},t,{signal:a})));case 3:return n=i.sent,i.next=6,oe.a.awrap(n.json());case 6:r=i.sent,o({loading:!1,data:r,error:null}),i.next=16;break;case 10:if(i.prev=10,i.t0=i.catch(0),"AbortError"!==i.t0.name){i.next=14;break}return i.abrupt("return");case 14:throw o({loading:!1,data:null,error:i.t0}),i.t0;case 16:case"end":return i.stop()}}),null,null,[[0,10]])}(),function(){return n.abort()}}),Object(E.a)(n));var s=function(e){return c.data instanceof Array||"object"!==typeof c.data?o(Object(u.a)({},c,{data:e})):o(Object(u.a)({},c,{data:Object(u.a)({},c.data,{},e)}))};return[c.loading,c.data,c.error,s]},ue=function(e){switch(e){case"Network":return["network","aggregate"];case"Timeseries":return["time","timeplot"];case"Text":return["text","textbox"];default:return["network","aggregate"]}},se=function(){var e=Object(r.useContext)(g).ramUpdate,t=Object(r.useContext)(k).forceUpdate;return function(n,a,r){var i=ue(r),c=Object(l.a)(i,2),o=c[0],u=c[1];e({type:"CREATE",data:{title:n,subtitle:a,type:o,view:u}}),t((new Date).toString())}},de=function(e){var t=e.toggle,n=le("api/add_view.json"),a=Object(l.a)(n,4),c=a[0],o=a[1],u=a[2],s=a[3],d=Object(r.useRef)(),m=ie("title"),f=ie("subtitle"),v=se();if(c)return i.a.createElement("p",null,"Loading...");if(u)return i.a.createElement("p",null,"Error: ",u.message);var p={autoComplete:"off",autoCorrect:"off"};return i.a.createElement(re,{autoComplete:!1},i.a.createElement("label",null,"Title"),i.a.createElement("input",Object.assign({},m,p,{ref:d})),i.a.createElement("label",null,"Subtitle"),i.a.createElement("input",Object.assign({},f,p)),i.a.createElement("label",null,"Type"),i.a.createElement("select",{required:!0,value:o.type,onChange:function(e){var t=e.target,n=t.name,a=t.value;return s(Object(Q.a)({},n,a))},name:"type",style:{marginTop:"0.125rem"}},o.type_options.map((function(e,t){return i.a.createElement("option",{key:t,value:e,disabled:""===e},""===e?"No Selection":e)}))),i.a.createElement("div",{className:te.a.AddButton,onClick:function(){""!=m.value?(v(m.value,f.value,o.type),t({preventDefault:function(){}}),m.onChange({target:{value:""}}),f.onChange({target:{value:""}})):d.current.focus()}},"Add"))},me=Object(r.memo)((function(){var e=J(!1),t=Object(l.a)(e,2),n=t[0],a=t[1],r=n?void 0:{height:0,minHeight:0};return i.a.createElement("div",{className:te.a.AddContainer},i.a.createElement("div",{className:te.a.AddPanel,onClick:a},n?"-":"+"),i.a.createElement("div",{className:te.a.PanelContent},i.a.createElement("div",{className:te.a.AddForm,style:r},i.a.createElement(de,{toggle:a}))))})),fe=function(){var e=Object(r.useContext)(P),t=e.active,n=e.setAnnotationField,a=function(e){var t=e.target,a=t.name,r=t.value;n(a,r)};return i.a.createElement(re,null,i.a.createElement("label",null,"From Time"),i.a.createElement("input",{type:"text",value:t.timeStart,onChange:a,name:"timeStart"}),i.a.createElement("label",null,"To Time"),i.a.createElement("input",{type:"text",value:t.timeEnd,onChange:a,name:"timeEnd"}),i.a.createElement("label",null,"Collection"),i.a.createElement("input",{type:"text",value:t.collection,onChange:a,name:"collection"}),i.a.createElement("label",null,"Series"),i.a.createElement("input",{type:"text",value:t.series,onChange:a,name:"series"}),i.a.createElement("label",null,"From Node"),i.a.createElement("input",{type:"text",value:t.fromNode,onChange:a,name:"fromNode"}),i.a.createElement("label",null,"To Node"),i.a.createElement("input",{type:"text",value:t.toNode,onChange:a,name:"toNode"}),i.a.createElement("label",null,"Title"),i.a.createElement("input",{type:"text",value:t.title,onChange:a,name:"title"}),i.a.createElement("label",null,"Description"),i.a.createElement("textarea",{className:"customScrollBar",rows:"5",name:"description",value:t.description,onChange:a}))};var ve=function(e,t){var n,a=m(),r="N"==(n=t.data.property)?["[{id,node}]","node"]:"S"==n?["[{time,value}]","time"]:"E"==n?["[{id,source,target}]","network"]:"A"==n?["","annotation"]:["",null],i=Object(l.a)(r,2),c=i[0],o=i[1];return null==o?e:("annotation"==o?e.annotations.push({id:a,data:t.data}):e.dataset[o].push({id:a,type:o,format:c,label:t.data.label,data:t.data.data,treeLocation:t.data.treeLocation}),e)};var pe=function(e,t){switch(t.type){case"load":return ve(e,t);default:return e}},ge=function(){var e=Object(r.useContext)(Ee).memoryUpdate,t=le("./datasets"),n=Object(l.a)(t,4),a=n[0],c=n[1],o=n[2];n[3];return a?i.a.createElement("div",{id:"DataLayer",className:"loading"}):o?i.a.createElement("div",{id:"DataLayer",className:"error"}):(c.map((function(t){e({type:"load",data:{type:t.type,label:t.label,data:t.data,format:"",treeLocation:t.treeLocation,property:t.property}})})),console.log(c),i.a.createElement("div",{id:"DataLayer",className:"loaded"}))},be={dataset:{network:[],time:[],node:[]},annotations:[]},Ee=Object(r.createContext)(),we=function(e){var t=e.children,n=Object(r.useReducer)(pe,be),a=Object(l.a)(n,2),c=a[0],o=a[1];return i.a.createElement(Ee.Provider,{value:{memory:c,memoryUpdate:o}},i.a.createElement(ge,null),t)},ye=n(19),he=n.n(ye),Oe=function(e){var t=e.isSuggestions,n=e.setToggle,a=e.suggestions,r=e.children,c=e.value,o=e.onChange,l=e.onBlur;return i.a.createElement("div",{className:he.a.Autocomplete,onBlur:l},r,t&&i.a.createElement("div",{className:he.a.AutocompleteItems},a.filter((function(e){return e.startsWith(c)})).map((function(e){return i.a.createElement("div",{onMouseDown:(t=e,function(e){n(!1),o({target:{value:t}})})},e);var t}))))},je=function(e,t){var n=Object(r.useContext)(Ee).memory,a=Object(r.useContext)(g),i=a.ram,c=a.ramUpdate,o=n.dataset[t];return function(t){var n=i.views.filter((function(t){return t.id==e})),a=Object(l.a)(n,1)[0];a.inputs=o.filter((function(e){return t.includes(e.label)})),c({type:"CHANGE",key:"views",id:e,data:a})}},xe=function(e){var t=e.viewId,n=Object(r.useContext)(Ee).memory.dataset.network.map((function(e){return e.label})),a=Object(r.useContext)(k).forceUpdate,o=J(!1),u=Object(l.a)(o,3),s=u[0],d=u[2],m=ie("datasetInput",""),f=je(t,"network"),v=Object(r.useRef)(),p=function(e){m.onChange(e);var t,a=Object(c.findDOMNode)(v.current).classList;t=e.target.value,(n.includes(t)||""==t)&&a.contains("invalid")?a.remove("invalid"):a.contains("invalid")||a.add("invalid")};return i.a.createElement(i.a.Fragment,null,i.a.createElement(Oe,Object.assign({},m,{onChange:p,suggestions:n,isSuggestions:s,setToggle:d,onBlur:function(){if(n.includes(m.value)||""==m.value)return d(!1),Object(c.findDOMNode)(v.current).classList.remove("invalid"),f([m.value]),void a((new Date).toString());v.current.focus()}}),i.a.createElement("label",null,"Dataset"),i.a.createElement("input",Object.assign({type:"text"},m,{onChange:p,onFocus:function(){d(!0)},ref:v}))))},Ce=function(e,t){var n=Object(r.useContext)(T),a=n.grid,i=n.dispatch,c=Object(r.useContext)(g).ramUpdate,o=Object(r.useContext)(k).forceUpdate,l="".concat(e,".").concat(t),u=w(a).find((function(e){return e===l}));return function(){i({type:u?"REMOVE_VIEW":"",view:l}),c({type:"DELETE",id:t}),o((new Date).toString())}},Ae=function(e,t){var n=e.split("."),a=Object(l.a)(n,2),r=(a[0],a[1]);return t.views.filter((function(e){return e.id==r}))[0]},_e=function(e,t,n,a){var r=Ae(".".concat(t),e).fields;return r[n].value=a,{type:"CHANGE",key:"views",id:t,data:{fields:r}}},Te=function(e){var t=e.value,n=e.handleChange,a=e.name,c=ie(a,t),o=Object(r.useRef)();return i.a.createElement("input",Object.assign({},c,{onChange:function(e){var t=e.target.value;c.onChange({target:{value:t}})},placeholder:"DD/MM/YYYY",onBlur:function(){!function(e){if(""==e)return!0;var t=e.split("/").reverse().join("-");return!isNaN(new Date(t).getTime())}(c.value)?o.current.focus():c.value!=t&&n({target:{name:a,value:c.value}})},ref:o}))};var Ne=function(e){var t=e.fields,n=e.id,a=Object(r.useContext)(g),c=a.ram,o=a.ramUpdate,u=Object(r.useContext)(k).forceUpdate,s=le("api/field_options.json"),d=Object(l.a)(s,3),m=d[0],f=d[1],v=d[2];if(m)return i.a.createElement("p",null,"Loading...");if(v)return i.a.createElement("p",null,"Error: ",v.message);var p=function(e){var t=e.target,a=t.name,r=t.value;console.log("properties...",a,r);var i=_e(c,n,a,r);o(i),u((new Date).toString())};return Object.values(t).map((function(e){return"time"==e.type?i.a.createElement(i.a.Fragment,null,i.a.createElement("label",null,e.label),i.a.createElement(Te,Object.assign({},e,{name:e.key,handleChange:p}))):i.a.createElement(i.a.Fragment,null,i.a.createElement("label",null,e.label),i.a.createElement("select",{required:!0,value:e.value,onChange:p,name:e.key},(t=e.type,f[t].options.map((function(e,t){return i.a.createElement("option",{key:t,value:e,disabled:""===e},""===e?"No Selection":e)})))));var t}))},ke=function(e){var t=e.view_id,n=e.view_type,a=Object(r.useContext)(g).ram,c=Ae(".".concat(t),a),o=Ce(n,t);return"fields"in c?i.a.createElement(re,null,i.a.createElement(xe,{viewId:t}),i.a.createElement(Ne,c),i.a.createElement("div",{onClick:o,className:"delete-button"},"DELETE VIEW")):i.a.createElement("p",{style:{fontSize:".7rem"}},"Drag the view icon to the desired location...")},Se=n(20),Ie=n.n(Se),De=n(21),Pe=n.n(De),Le=n(13),Ve=n.n(Le),Be=function(e){var t=e.item,n=e.i,a=e.id,r=e.remove;return i.a.createElement("div",{className:Ve.a.PlotItem},i.a.createElement("b",{onClick:function(){return r(a,n)}},"X"),i.a.createElement("span",null,t))},We=n(22),Re=n.n(We),Me=function(e){var t=e.id,n=e.suggestions,a=e.children,r=e.value,c=e.addData,o=e.setInputActivity,u=J(!0),s=Object(l.a)(u,3),d=s[0],m=(s[1],s[2]);return i.a.createElement("form",{autoComplete:!1},i.a.createElement("div",{className:Re.a.Autocomplete,onBlur:function(){return o(!1)}},a,d&&i.a.createElement("div",{className:Re.a.AutocompleteItems},n.filter((function(e){return e.startsWith(r)})).map((function(e){return i.a.createElement("div",{onMouseDown:(n=e,function(e){e.preventDefault(),m(!1),o(!1),c(t,n)})},e);var n})))))},Fe=function(e){var t=e.setInputActivity,n=e.content,a=e.addData,c=e.id,o=Object(r.useContext)(Ee).memory.dataset.time.map((function(e){return e.label})),l=Object(r.useRef)(),u=ie("datasetInput"),s=Object(E.a)(o).filter((function(e){return!n.includes(e)}));return Object(r.useEffect)((function(){s.length?l.current.focus():t(!1)})),i.a.createElement(Me,Object.assign({},u,{id:c,addData:a,suggestions:s,setInputActivity:t}),i.a.createElement("div",{className:Ve.a.PlotItem},i.a.createElement("b",{onClick:function(){return t(!1)}},"X"),i.a.createElement("input",Object.assign({},u,{onChange:function(e){(function(e){var t=e.target.value;return s.filter((function(e){return e.startsWith(t)})).length})(e)&&u.onChange(e)},ref:l}))))},Ue=function(e){var t=e.id,n=e.label,a=e.content,r=e.remove,c=e.addData,o=e.isInputActive,l=e.setInputActivity;return i.a.createElement("div",{className:Pe.a.Plot},i.a.createElement("h5",null,n),i.a.createElement("div",{className:Pe.a.PlotContent,onDoubleClick:function(){return o?null:l(!0)}},o&&i.a.createElement(Fe,{id:t,content:a,setInputActivity:l,addData:c}),a.map((function(e,n){return i.a.createElement(Be,{item:e,i:n,remove:r,id:t,key:e})}))))},He=function(e){var t=e.view_type,n=e.view_id,a=J(!1),c=Object(l.a)(a,3),o=c[0],u=c[1],s=c[2],d=Ce(t,n),m=Object(r.useContext)(g),f=m.ram,v=(m.ramUpdate,Ae(".".concat(n),f)),p=je(n,"time"),b=Object(r.useContext)(k).forceUpdate,w=Object(r.useState)([{id:"mainplot",label:"Main Plot",content:v.inputs?v.inputs.map((function(e){return e.label})):[]}]),y=Object(l.a)(w,2),h=y[0],O=y[1],j=function(e){var t;O(e);var n=(t=[]).concat.apply(t,Object(E.a)(e.map((function(e){return e.content}))));p(n),b((new Date).toString())};if(!("fields"in v))return i.a.createElement("p",{style:{fontSize:".7rem"}},"Drag the view icon to the desired location...");var x=function(e,t){var n=Object(E.a)(h);e=n.findIndex((function(t){return t.id===e})),n[e].content.splice(t,1),j(n)},C=function(e,t){var n=Object(E.a)(h);e=n.findIndex((function(t){return t.id===e})),n[e].content.unshift(t),j(n)};return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:Ie.a.TimeSeriesView},i.a.createElement("div",{className:Ie.a.AddPlot,onClick:u},"+"),h.map((function(e){return i.a.createElement(Ue,Object.assign({},e,{remove:x,addData:C,isInputActive:o,setInputActivity:s,key:e.id}))}))),i.a.createElement(re,null,i.a.createElement(Ne,v),i.a.createElement("div",{onClick:d,className:"delete-button"},"DELETE VIEW")))},ze=(n(54),function(e){var t=e.view_id,n=e.view_type,a=Object(r.useContext)(g).ram,c=Ae(".".concat(t),a),o=Ce(n,t);return"fields"in c?i.a.createElement(re,null,i.a.createElement(Ne,c),i.a.createElement("div",{onClick:o,className:"delete-button"},"DELETE VIEW")):i.a.createElement("p",{style:{fontSize:".7rem"}},"Drag the view icon to the desired location...")}),Je=n(41),Ge=n.n(Je),Ye=function e(t){var n=t.label,a=t.id,c=t.content,o=t.open,u=Object(r.useContext)(P).updateAnnotation,s=c&&c.length>0,d=J(o),m=Object(l.a)(d,2),f=m[0],v=m[1],p=s?f?"b":"span":"i";return i.a.createElement("li",null,i.a.createElement("div",{onClick:function(e){v(e),s||u({id:a})}},s?i.a.createElement(M,{transform:"rotate(".concat(f?"90":"0",")")}):i.a.createElement("u",null,"A"),i.a.createElement(p,null,n)),s?i.a.createElement("ul",{style:{display:f?"block":"none"}},c.map((function(t){return i.a.createElement(e,Object.assign({key:t.id},t))}))):null)},$e=function(){var e=le("api/tree_view.json"),t=Object(l.a)(e,3),n=t[0],a=t[1],c=t[2],o=Object(r.useContext)(P).annotation;if(n)return i.a.createElement("p",null,"Loading...");if(c)return i.a.createElement("p",null,"Error: ",c.message);var u=function(e,t){console.log(t);var n=I(e);return t.forEach((function(e){e.collection.includes("Aggregation ii")?n[0].content[0].content[1].content.push({id:e.id,label:e.title}):e.collection.includes("Aggregation i")&&n[0].content[0].content[0].content.push({id:e.id,label:e.title})})),n}(a,o.annotations);return i.a.createElement("ul",{className:Ge.a.TreeView+" customScrollBar"},u.map((function(e){return i.a.createElement(Ye,Object.assign({key:e.id},e))})))},qe=Object(r.memo)((function(){var e=ie("from_time"),t=ie("to_time");return i.a.createElement(re,null,i.a.createElement("label",null,"From Time"),i.a.createElement("input",e),i.a.createElement("label",null,"To Time"),i.a.createElement("input",t))})),Xe=function(e){var t=e.views;return t.filter((function(e){return"text"===e.type})).map((function(e){return i.a.createElement(K,{title:"".concat(e.title),subTitle:"".concat(e.subTitle),icon:"TextIcon",open:!1,view_type:"text",view_id:e.id,key:e.id},i.a.createElement(ze,{views:t,view_type:"text",view_id:e.id}))}))},Ze=function(e){var t=e.views;return t.filter((function(e){return"time"===e.type})).map((function(e){return i.a.createElement(K,{title:"".concat(e.title),subTitle:"".concat(e.subTitle),icon:"ChartIcon",open:!1,view_type:"time",view_id:e.id,key:e.id},i.a.createElement(He,{views:t,view_type:"time",view_id:e.id}))}))},Ke=function(e){var t=e.views;return t.filter((function(e){return"network"===e.type})).map((function(e){return i.a.createElement(K,{title:"".concat(e.title),subTitle:"".concat(e.subTitle),icon:"NetworkIcon",open:!1,view_type:"network",view_id:e.id,key:e.id},i.a.createElement(ke,{views:t,view_type:"network",view_id:e.id}))}))},Qe=function(){var e=Object(r.useContext)(g),t=e.ram,n=(e.ramUpdate,Object(r.useContext)(k).updateListener);Object(r.useContext)(T).grid;return i.a.createElement("div",{className:B.a.Sidebar},i.a.createElement(G,n,i.a.createElement(K,{title:"DATA",flexOpen:!0},i.a.createElement($e,null)),i.a.createElement(K,{title:"ANNOTATION"},i.a.createElement(fe,n))),i.a.createElement(G,n,i.a.createElement(K,{title:"SYNCHRONIZE ALL"},i.a.createElement(qe,null)),i.a.createElement(Xe,Object.assign({},n,t)),i.a.createElement(Ze,Object.assign({},n,t)),i.a.createElement(Ke,Object.assign({},n,t)),i.a.createElement(me,null)))},et=n(9),tt=n.n(et),nt=Object(r.memo)((function(e){var t=e.view,n=e.vertical,a=Object(r.useContext)(T).dispatch,c=function(e){e.preventDefault()},o=function(e){var t=e.target;setTimeout((function(){return t.classList.add("active")}),1)},l=function(e){var t=e.target;setTimeout((function(){return t.classList.remove("active")}),1)},u=function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation();var t=e.dataTransfer.getData("text"),r=e.target.getAttribute("view"),i=e.target.getAttribute("pos");t&&r&&i&&(setTimeout((function(){var e=document.getElementById("MainView");e.classList.remove("drag"),e.querySelectorAll(".drop-zone div").forEach((function(e){return e.classList.remove("active")})),e.querySelectorAll(".drag").forEach((function(e){return e.classList.remove("drag")}))}),1),a({type:"MOVE_VIEW",dragged:t,to:r,pos:i,vertical:n}))};return i.a.createElement("div",{className:"drop-zone"},["center","top","right","bottom","left"].map((function(e){return i.a.createElement("div",{className:e,key:e,view:t,pos:e,onDragOver:c,onDragEnter:o,onDragLeave:l,onDrop:u})})))})),at=function(e,t){return e[t.key]=Object.assign(e[t.key],t.data),e},rt=function(e,t){return e[t.key]={timestamp:(new Date).toString()},e},it=function(e,t){switch(e.timestamp=(new Date).toString(),t.type){case"CHANGE":return at(e,t);case"CLEAR":return rt(e,t);default:return e}},ct=Object(r.createContext)(),ot=function(e){var t=e.children,n=Object(r.useReducer)(it,{}),a=Object(l.a)(n,2),c=a[0],o=a[1];return i.a.createElement(ct.Provider,{value:{cache:c,cacheUpdate:o}},t)},lt=function(e,t,n,a,r){e.dataset;var i=t.split("."),c=Object(l.a)(i,2);c[0];return{type:"CHANGE",key:"views",id:c[1],data:{fields:I(a).map((function(e){return e.value=e.default,e})).reduce((function(e,t){return e[t.key]=t,e}),{}),inputs:n,rendered:r}}},ut={responsive:!0,maintainAspectRatio:!1,events:["click"],onClick:function(e){console.log(e)}},st=["blue","red","yellow","purple"],dt=n(42),mt=n.n(dt),ft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=JSON.parse(JSON.stringify(e)).map((function(e){return e.time=new Date(e.time).getTime(),e}));return t=null==t||""==t?0:new Date(t).getTime(),n=null==n||""==n?Math.max.apply(Math,Object(E.a)(a.map((function(e){return e.time}))))+1:new Date(n).getTime(),a.filter((function(e){return e.time>=t&&e.time<=n}))},vt={chart:function(e){e.title;var t=e.inputs,n=e.fields,a=i.a.createRef(),c=I(t).map((function(e){return e.data=ft(e.data,n.startTime.value,n.endTime.value),e}));return Object(r.useEffect)((function(){new mt.a(a.current,{type:"line",data:{labels:c[0].data.map((function(e){return new Date(e.time).toDateString()})),datasets:c.map((function(e,t){var n=e.data;return{label:e.label,data:n.map((function(e){return e.value})),borderColor:st[t]}}))}}).update({options:Object(u.a)({},ut,{onClick:function(e){console.log(e)}})})})),i.a.createElement("div",{style:{margin:"auto",height:"100%",width:"100%"}},i.a.createElement("canvas",{ref:a}))},inputs:[{type:"time",format:"[{t,y}]",maxCurves:null}],fields:[{label:"Start time",type:"time",key:"startTime",default:""},{label:"End time",type:"time",key:"endTime",default:""}]},pt=n(14),gt=n.n(pt),bt=function(e){return Object(E.a)(new Set([].concat(Object(E.a)(e.map((function(e){return e.source}))),Object(E.a)(e.map((function(e){return e.target})))))).map((function(e){return{data:{id:e}}}))},Et=function(e){return{edges:e.map((function(e){return e.id=e.source+"-"+e.target,{data:e}})),nodes:bt(e)}},wt={chart:function(e){e.title,e.inputs;var t=e.fields,n=i.a.createRef();return Object(r.useEffect)((function(){gt()({container:n.current,elements:Et([{id:"ab",source:"a",target:"b"}]),style:[{selector:"node",style:{"background-color":t.nodeBackgroundColor.value,label:"data(id)"}},{selector:"edge",style:{width:t.edgeWidth.value,"line-color":t.edgeColor.value,"target-arrow-color":"#ccc","target-arrow-shape":"triangle"}}],layout:{name:"grid",rows:1}}).on("tap","node",(function(e){var t=e.target;console.log("tapped "+t.id())}))})),i.a.createElement("div",{style:{width:"100%",height:"100%",overflow:"hidden"},ref:n})},inputs:[{type:"network",format:"[{data:{id,source,target}}]"}],fields:[{label:"Node color",type:"color",key:"nodeBackgroundColor",default:"green"},{label:"Edge color",type:"color",key:"edgeColor",default:"grey"},{label:"Edge width",type:"number",key:"edgeWidth",default:3}]},yt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t=null==t||""==t?e[0].time:new Date(t).getTime(),n=null==n||""==n?e[e.length-1].time:new Date(n).getTime();for(var a=e.filter((function(e){return e.time>=t&&e.time<=n})),r={},i=0;i<a.length;i++){var c=a[i],o=c.source,l=c.target,u=c.weight;void 0==r[o]&&(r[o]={}),void 0==r[o][l]&&(r[o][l]=0),r[o][l]+=+u?+u:1}var s=[];return Object.keys(r).forEach((function(e){Object.keys(r[e]).forEach((function(t){s.push({source:e,target:t,weight:r[e][t]})}))})),s},ht={chart:function(e){e.title;var t=e.inputs,n=e.fields,a=e.updateAnnotation,c=i.a.createRef();return Object(r.useEffect)((function(){var e=t[0].format.includes("time")?yt(Object(E.a)(t)[0].data,n.startAggregateTime.value,n.endAggregateTime.value):t[0].data,r=Et(e),i=gt()({container:c.current,elements:r,style:[{selector:"node",style:{"background-color":n.nodeBackgroundColor.value,label:"data(id)",height:1.5*n.nodeSize.value,width:1.5*n.nodeSize.value,color:n.textColor.value,"font-size":n.textSize.value}},{selector:"edge",style:{width:n.edgeWidth.value/1.5,"line-color":n.edgeColor.value,"target-arrow-color":"#ccc","target-arrow-shape":"triangle"}}],layout:{name:"grid",rows:1}});i.layout({name:"cose",ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(e,t){return!0},animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:function(e){return 2048},nodeOverlap:4,idealEdgeLength:function(e){return 32},edgeElasticity:function(e){return 32},nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1}).run(),i.on("tap","node",(function(e){var n=e.target.id();a({id:"network"+n,title:n,collection:t[0].treeLocation.split("/").slice(0,-1).join("/"),series:t[0].label})})),i.on("tap","edge",(function(e){var t=e.target;console.log("tapped "+t.json())}))})),i.a.createElement("div",{style:{width:"100%",height:"100%",overflow:"hidden"},ref:c})},inputs:[{type:"network",format:"[{weight,source,target,time}]"}],fields:[{label:"Start time",type:"time",key:"startAggregateTime",default:""},{label:"End time",type:"time",key:"endAggregateTime",default:""},{label:"Node size",type:"number",key:"nodeSize",default:3},{label:"Node color",type:"color",key:"nodeBackgroundColor",default:"green"},{label:"Text size",type:"number",key:"textSize",default:3},{label:"Text color",type:"color",key:"textColor",default:"white"},{label:"Edge color",type:"color",key:"edgeColor",default:"grey"},{label:"Edge width",type:"number",key:"edgeWidth",default:1}]},Ot=n(43),jt=n.n(Ot),xt=n(44),Ct=n.n(xt),At=n(23),_t=n.n(At),Tt={chart:function(e){var t=e.id,n=(e.title,e.inputs,e.fields,Object(r.useContext)(ct)),a=n.cache,c=n.cacheUpdate,o=i.a.createRef(),u=J(!1),s=Object(l.a)(u,3),d=s[0],m=s[1],f=s[2],v=Object(r.useState)(a[t].text?a[t].text:"# Welcome to Ripple\n\n*Ripple* is a platform to allow data experts and domain experts to share insights. \ud83d\ude00\n"),p=Object(l.a)(v,2),g=p[0],b=p[1],E=function(e){c({type:"CHANGE",key:t,data:{text:e}})},w=function(e){b(e.target.value)},y=function(e){d&&E(g),f(!1)};return Object(r.useEffect)((function(){d&&o.current.focus()})),i.a.createElement("div",{style:{height:"100%",width:"100%"},onDoubleClick:function(e){d&&E(g),m(e)}},d?i.a.createElement("textarea",{className:_t.a.textboxInput+" customScrollBar",rows:"5",name:"textBox",value:g,onChange:w,placeholder:"Please enter your text...",onBlur:y,ref:o}):i.a.createElement("div",{className:_t.a.textboxContainer+" customScrollBar"},Ct()(jt()(g))))},inputs:[{type:"text",format:"string",editable:!0}],fields:[],isInputRequired:!1},Nt=function(e){var t=function(e,t){switch("".concat(e,"|").concat(t)){case"time|timeplot":return vt;case"network|simple":return wt;case"network|aggregate":return ht;case"text|textbox":return Tt;default:return{chart:function(){return i.a.createElement("div",null,"Template name ",t," for a ",e," chart was not found")},inputs:[],fields:[]}}}(e.type,e.view);return[function(e){var n=!("isInputRequired"in t)||t.isInputRequired;return n&&e.inputs.length&&"data"in e.inputs[0]||!n?t.chart(e):i.a.createElement("div",null,"Please select an input...")},t.inputs,t.fields]},kt=function(e){var t=e.view,n=Object(r.useContext)(Ee).memory,a=Object(r.useContext)(g),c=a.ram,o=a.ramUpdate,u=Object(r.useContext)(ct),s=u.cache,d=u.cacheUpdate,m=Object(r.useContext)(k).forceUpdate,f=Object(r.useContext)(P).updateAnnotation,v=Ae(t,c),p=Nt(v),b=Object(l.a)(p,3),E=b[0],w=b[1],y=b[2],h=v.id;(h in s||d({type:"CLEAR",key:h}),"rendered"in v)||(o(lt(n,t,w,y,v.view)),m(Date().toString()));var O=JSON.parse(JSON.stringify(v));return i.a.createElement(E,Object.assign({},O,{updateAnnotation:f}))},St=function(e){var t="".concat(e.type,": ").concat(e.title);return t.charAt(0).toUpperCase()+t.substring(1)},It=Object(r.memo)((function(e){var t=e.view,n=Object(r.useContext)(g).ram,a=Ae(t,n),c=St(a);return i.a.createElement("div",Object.assign({className:"WindowTitle "+tt.a.WindowTitle,view:t},Z(t)),i.a.createElement(z,{height:"8"}),i.a.createElement("h5",null,c))})),Dt=function(e){var t=e.view,n=e.vertical,a=e.isViewActive;return i.a.createElement("div",{className:"Window "+tt.a.Window,view:t},i.a.createElement(It,{view:t}),i.a.createElement("div",{className:tt.a.WindowContent},a&&i.a.createElement(kt,{view:t,key:t})),i.a.createElement(nt,{view:t,vertical:n}))},Pt=n(45),Lt=n.n(Pt),Vt=function(e){var t=e.setViewsActivity,n=e.vertical,a=Object(r.useRef)(null),c=Object(r.useRef)(null),o=Object(r.useRef)(null);return Object(r.useEffect)((function(){document.getElementById("MainView").classList.remove("drag");var e=o.current,r=e.parentElement,i=e.previousElementSibling,l=n?r.clientWidth:r.clientHeight,u=function(e){a.current=n?e.clientX:e.clientY,c.current=n?i.clientWidth:i.clientHeight,setTimeout((function(){return document.getElementById("MainView").classList.add("drag")}),1),t(!1)},s=function(e){if(null!==a.current){var t=(n?e.clientX:e.clientY)-a.current,i=c.current+t,o=.3*l,u=.7*l;i<o&&(i=o),i>u&&(i=u);var s="minmax(min-content, ".concat(i,"px) 4px auto");r.style.gridTemplate="".concat(s," / ").concat(s)}},d=function(){setTimeout((function(){return document.getElementById("MainView").classList.remove("drag")}),1),a.current=null,c.current=null,t(!0)};return e.addEventListener("mousedown",u),window.addEventListener("mousemove",s),window.addEventListener("mouseup",d),function(){e.removeEventListener("mousedown",u),window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",d)}})),i.a.createElement("div",{className:"".concat(Lt.a.Handler," handler-").concat(n?"cols":"rows"),ref:o})},Bt=n(46),Wt=n.n(Bt),Rt=function e(t){var n=t.grid,a=t.vertical,r=t.areViewsActive,c=t.setViewsActivity,o=n.filter(Boolean).map((function(){return"1fr"})).join(" 4px "),l={gridTemplate:"".concat(o," / ").concat(o)};if(1===n.length){if(Array.isArray(n[0]))return i.a.createElement(e,{grid:n[0],vertical:!a,areViewsActive:r,setViewsActivity:c});if("string"===typeof n[0])return i.a.createElement(Dt,{view:n[0],vertical:a,isViewActive:r})}return i.a.createElement("div",{className:"".concat(Wt.a.Grid," grid-").concat(a?"cols":"rows"),style:l},"string"===typeof n[0]&&i.a.createElement(Dt,{view:n[0],vertical:a,isViewActive:r}),Array.isArray(n[0])&&i.a.createElement(e,{grid:n[0],vertical:!a,areViewsActive:r,setViewsActivity:c}),n[1]&&i.a.createElement(Vt,{setViewsActivity:c,view:n[0],vertical:a}),"string"===typeof n[1]&&i.a.createElement(Dt,{view:n[1],vertical:a,isViewActive:r}),Array.isArray(n[1])&&i.a.createElement(e,{grid:n[1],vertical:!a,areViewsActive:r,setViewsActivity:c}))},Mt=(n(105),function(){var e=Object(r.useContext)(T).grid,t=Object(r.useContext)(Ee).memory,n=Object(r.useContext)(g).ram,a=Object(r.useContext)(k).updateListener,c=J(!0),o=Object(l.a)(c,3),u=o[0],s=(o[1],o[2]);return console.log("Ram",n,"\n Memory",t),i.a.createElement("div",{id:"MainView"},i.a.createElement(Rt,Object.assign({grid:e,areViewsActive:u,setViewsActivity:s,vertical:!0},{updateListener:a})))}),Ft=function(e){var t=e.children;return i.a.createElement(S,null,i.a.createElement(we,null,i.a.createElement(b,null,i.a.createElement(N,null,i.a.createElement(ot,null,i.a.createElement(L,null,t))))))},Ut=function(){return i.a.createElement("div",{className:"App"},i.a.createElement(Ft,null,i.a.createElement(Qe,null),i.a.createElement(Mt,null)))};Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));o.a.render(i.a.createElement(Ut,null),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))},13:function(e,t,n){e.exports={PlotItem:"PlotItem_PlotItem__2GNUg"}},16:function(e,t,n){e.exports={PanelsList:"PanelsList_PanelsList__rb-Pb",Panels:"PanelsList_Panels__2etY7",PanelsToggle:"PanelsList_PanelsToggle__3822R"}},19:function(e,t,n){e.exports={Autocomplete:"Autocomplete_Autocomplete__3htHv",AutocompleteItems:"Autocomplete_AutocompleteItems__3MS2c"}},20:function(e,t,n){e.exports={TimeSeriesView:"TimeSeriesView_TimeSeriesView__354Zn",AddPlot:"TimeSeriesView_AddPlot__H5Rer"}},21:function(e,t,n){e.exports={Plot:"Plot_Plot__SjKEj",PlotContent:"Plot_PlotContent__3Slwn"}},22:function(e,t,n){e.exports={Autocomplete:"Autocomplete_Autocomplete__1Ny7x",AutocompleteItems:"Autocomplete_AutocompleteItems__3bPd5"}},23:function(e,t,n){e.exports={textboxContainer:"TextBox_textboxContainer__1_Cxt",textboxInput:"TextBox_textboxInput__3n0MT"}},39:function(e,t,n){e.exports={Sidebar:"Sidebar_Sidebar__2ajNT"}},40:function(e,t,n){e.exports={Form:"Form_Form__2boAo"}},41:function(e,t,n){e.exports={TreeView:"TreeView_TreeView__2oCx5"}},45:function(e,t,n){e.exports={Handler:"Handler_Handler__3uFNB"}},46:function(e,t,n){e.exports={Grid:"Grid_Grid__3ySV2"}},47:function(e,t,n){e.exports=n(106)},5:function(e,t,n){e.exports={AddPanel:"AddPanel_AddPanel__1e6pW",AddForm:"AddPanel_AddForm__3h1b-",AddButton:"AddPanel_AddButton__tCCdE",PanelContent:"AddPanel_PanelContent__XhLfX"}},52:function(e,t,n){},54:function(e,t,n){},87:function(e,t){},9:function(e,t,n){e.exports={Window:"Window_Window__3LwvP",WindowTitle:"Window_WindowTitle__BInoL",WindowContent:"Window_WindowContent__1Ls4_"}}},[[47,1,2]]]);
  //# sourceMappingURL=main.eff31728.chunk.js.map