@deephaven/embed-chart 0.35.1-beta.0 → 0.35.1-envoy-prefix.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- var I=Object.defineProperty;var P=(r,e,s)=>e in r?I(r,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[e]=s;var u=(r,e,s)=>(P(r,typeof e!="symbol"?e+"":e,s),s);import{A as d,R as M,C as n,D as L,E as x,F as E,G as O}from"./vendor-bb2cdd26.js";import"./helpers-042e6b4d.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))a(t);new MutationObserver(t=>{for(const o of t)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function s(t){const o={};return t.integrity&&(o.integrity=t.integrity),t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?o.credentials="include":t.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(t){if(t.ep)return;t.ep=!0;const o=s(t);fetch(t.href,o)}})();const B="modulepreload",D=function(r,e){return new URL(r,e).href},A={},R=function(e,s,a){if(!s||s.length===0)return e();const t=document.getElementsByTagName("link");return Promise.all(s.map(o=>{if(o=D(o,a),o in A)return;A[o]=!0;const c=o.endsWith(".css"),m=c?'[rel="stylesheet"]':"";if(!!a)for(let g=t.length-1;g>=0;g--){const l=t[g];if(l.href===o&&(!c||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${m}`))return;const i=document.createElement("link");if(i.rel=c?"stylesheet":B,c||(i.as="script",i.crossOrigin=""),i.href=o,document.head.appendChild(i),c)return new Promise((g,l)=>{i.addEventListener("load",g),i.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e())};const _="#1a171a",$="#f0f0ee",H="#fcd65b",T="#9edc6f",F="#76d9e4",V="#aa9af4",U="#f37e3f",G="#f95d84",W="#4878ea",K="#5b5a5c",q="#9edc6f",J="#fcd65b",Q="#f37e3f",X="#f95d84",Y="#fcfcfa",Z="#929192",ee="#373438",te="#1a171a",se="#f0f0ee",ne="0.15s",re={"gray-100":"#fcfcfa","gray-200":"#f0f0ee","gray-300":"#c0bfbf","gray-400":"#929192","gray-500":"#5b5a5c","gray-600":"#555356","gray-700":"#403e41","gray-800":"#373438","gray-850":"#322f33","gray-900":"#211f22",black:_,white:$,yellow:H,green:T,blue:F,purple:V,orange:U,red:G,primary:W,"primary-hover":"#235de6","primary-dark":"#343e5d",secondary:K,success:q,info:J,warning:Q,danger:X,light:Y,mid:Z,dark:ee,"text-muted":"#929192","content-bg":"#2d2a2e",background:te,foreground:se,transition:ne},oe={transitionMs:150,transitionMidMs:200,transitionLongMs:300,transitionSlowMs:1e3},j=Object.freeze({...oe,...re}),ae=0,ie=1,S=2,ce=3,le=4,f=()=>{};class k{constructor(e,s){u(this,"name");u(this,"prefix");u(this,"level");u(this,"error");u(this,"warn");u(this,"log");u(this,"info");u(this,"debug");u(this,"debug2");this.name=e,this.prefix=e!=null?`[${e}]`:"",this.error=f,this.warn=f,this.log=f,this.info=f,this.debug=f,this.debug2=f,this.level=s,this.setLogLevel(s)}setLogLevel(e){if(!Number.isFinite(e)){console.warn(`Expected a number for log level. Received: ${e}. Ignoring`);return}this.level=e,this.error=e>=ae?console.error.bind(console,this.prefix):f,this.warn=e>=ie?console.warn.bind(console,this.prefix):f,this.log=e>=S?console.log.bind(console,this.prefix):f,this.info=this.log,this.debug=e>=ce?console.debug.bind(console,this.prefix):f,this.debug2=e>=le?console.debug.bind(console,this.prefix):f}}class de extends k{constructor(s=S){super(null,s);u(this,"modules");this.modules={}}module(s){return this.modules[s]==null&&(this.modules[s]=new k(s,this.level)),this.modules[s]}setLogLevel(s){if(super.setLogLevel(s),this.modules==null)return;const a=Object.keys(this.modules);for(let t=0;t<a.length;t+=1)this.modules[a[t]].setLogLevel(s)}}const ue=new de;function fe({className:r="theme-bg-light",children:e,role:s="role",keyboard:a=!0,isOpen:t=!1,centered:o=!1,size:c,onOpened:m,onClosed:p,toggle:i,"data-testid":g}){const l=d.useRef(),v=d.useRef(null),[C,w]=d.useState(!1),b=d.useCallback(h=>{switch(h.key){case"Escape":i==null||i();break}},[i]);d.useEffect(function(){if(t&&a)return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[b,t,a]),d.useEffect(function(){t&&m&&m()},[m,t]),d.useEffect(function(){!t&&p&&p()},[p,t]),t&&!l.current&&(l.current=document.createElement("div"),l.current.setAttribute("style","padding-right: 15px; display: block"),l.current.setAttribute("role","presentation"),document.body.appendChild(l.current));const N=()=>{l.current&&(document.body.removeChild(l.current),l.current=void 0)};return l.current?M.createPortal(n.jsxs(n.Fragment,{children:[n.jsx(L,{appear:!0,mountOnEnter:!0,unmountOnExit:!0,in:t,classNames:{appearActive:"show",appearDone:"show"},timeout:j.transitionMs,onExited:N,children:n.jsx("div",{className:x("modal-backdrop fade"),style:{zIndex:1050}})}),n.jsx(L,{appear:!0,mountOnEnter:!0,unmountOnExit:!0,in:t,classNames:{appearDone:"show"},timeout:j.transitionMs,onExited:N,children:n.jsx("div",{ref:v,className:"modal fade",onMouseDown:h=>{h.target===v.current?w(!0):w(!1)},onMouseUp:h=>{C&&h.target===v.current&&i!==void 0&&i()},role:"dialog",style:{display:"block"},children:n.jsx("div",{className:x(`modal-dialog ${r}`,{"modal-lg":c==="lg","modal-sm":c==="sm","modal-xl":c==="xl","modal-dialog-centered":o}),style:{zIndex:1040},children:n.jsx("div",{className:"modal-content",role:"presentation","data-testid":g,children:e})})})})]}),l.current):null}function he({className:r="modal-body",style:e,children:s,"data-testid":a}){return n.jsx("div",{className:r,"data-testid":a,style:e,children:s})}function me({className:r,children:e,closeButton:s=!0,style:a,toggle:t,"data-testid":o}){return n.jsxs("div",{className:`modal-header ${r}`,style:a,children:[n.jsx("h5",{className:"modal-title",children:e}),s&&n.jsx("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close",onClick:t,children:n.jsx("span",{"aria-hidden":"true",children:"×"})})]})}var Ne={prefix:"vs",iconName:"chevron-right",icon:[512,512,[],"f000","M322.304 256.768 182.88 117.344l19.776 -19.84L352 246.912v19.776L202.656 416l-19.776 -19.808 139.424 -139.424z"]},ge={prefix:"vs",iconName:"circle-large-outline",icon:[512,512,[],"f000","M306.816 70.88A185.856 185.856 0 0 0 256 64c-17.728 0 -34.624 2.336 -50.816 6.88l-0.192 0.064c-16.448 4.512 -31.68 10.944 -45.824 19.232A196.992 196.992 0 0 0 90.24 159.36l-0.064 0.128A190.944 190.944 0 0 0 70.72 205.12 191.552 191.552 0 0 0 64 256c0 17.76 2.24 34.72 6.72 50.912a193.6 193.6 0 0 0 49.536 84.832c11.84 11.68 24.768 21.664 38.912 30.08a195.2 195.2 0 0 0 45.92 19.488A192.64 192.64 0 0 0 256 448c17.76 0 34.72 -2.24 50.912 -6.72 16.48 -4.64 31.68 -11.136 45.632 -19.424l0.128 -0.064a197.12 197.12 0 0 0 69.152 -68.96 187.2 187.2 0 0 0 19.2 -45.824l0.096 -0.192A185.824 185.824 0 0 0 448 256c0 -17.728 -2.304 -34.624 -6.88 -50.816l-0.064 -0.192a184.704 184.704 0 0 0 -19.2 -45.536l-0.064 -0.128a188.8 188.8 0 0 0 -30.144 -38.72l-0.256 -0.256a188.864 188.864 0 0 0 -38.72 -30.144l-0.128 -0.064a184.704 184.704 0 0 0 -45.536 -19.2l-0.192 -0.064zm142.56 298.24a229.024 229.024 0 0 1 -80.512 80.256 222.912 222.912 0 0 1 -53.376 22.72A223.488 223.488 0 0 1 256 480a223.488 223.488 0 0 1 -59.52 -7.872 227.136 227.136 0 0 1 -53.568 -22.752 233.6 233.6 0 0 1 -45.28 -35.008 233.44 233.44 0 0 1 -35.008 -45.28 227.136 227.136 0 0 1 -22.72 -53.6A223.52 223.52 0 0 1 32 256c0 -20.576 2.624 -40.384 7.872 -59.52a222.976 222.976 0 0 1 22.752 -53.344 228.992 228.992 0 0 1 80.288 -80.512 220.64 220.64 0 0 1 53.6 -22.528A217.856 217.856 0 0 1 256 32a217.6 217.6 0 0 1 59.52 8.096 220.768 220.768 0 0 1 98.656 57.76 220.896 220.896 0 0 1 57.728 98.656C477.312 215.616 480 235.424 480 256s-2.688 40.384 -8.096 59.52a220.8 220.8 0 0 1 -22.528 53.568z"]},pe={prefix:"vs",iconName:"loading",icon:[512,512,[],"f000","M445.344 224A192.064 192.064 0 0 0 66.656 224H34.272a224.064 224.064 0 0 1 443.456 0h-32.384z"]},xe={prefix:"vs",iconName:"warning",icon:[512,512,[],"f000","M241.92 32h28.16l209.28 392.32 -14.08 23.68H46.08L32 424.32 241.92 32zM256 72.96 72.96 416H438.4L256 72.96zM276 384v-32h-40v32h40zm-40 -64V192h40v128h-40z"]},Ae={prefix:"dh",iconName:"graph-line-down",icon:[512,512,[],"f000","M64 416V0H32v432l16 16H480v-32zm67.2 -291.2 -22.4 22.4 108.8 112 70.4 -64 108.8 124.8H320v32h112l16 -16V224h-32v70.4L288 150.4l-70.4 64z"]},ke={prefix:"dh",iconName:"warning-filled",icon:[512,512,[],"f000","M268.8 32h-25.6L32 425.6l12.8 22.4h419.2l12.8 -22.4L268.8 32zm6.4 352H236.8v-32h38.4v32zm0 -64H236.8V192h38.4v128z"]};function ve({className:r="","data-testid":e}){return n.jsxs("div",{className:x("loading-spinner fa-layers",r),"data-testid":e,children:[n.jsx(E,{icon:ge,className:"text-white-50"}),n.jsx(E,{icon:pe,className:"text-primary",spin:!0})]})}function z({isLoaded:r=!1,isLoading:e=!0,errorMessage:s=null,"data-testid":a}){return n.jsx(L,{in:Boolean(s)||!r||e,timeout:j.transitionMs,classNames:r?"fade":"",mountOnEnter:!0,unmountOnExit:!0,children:n.jsx("div",{className:"fill-parent-absolute","data-testid":a,children:n.jsx("div",{className:x("iris-panel-message-overlay","fill-parent-absolute",{"iris-panel-scrim-background":r}),children:n.jsxs("div",{className:"message-content",children:[n.jsxs("div",{className:"message-icon",children:[e&&n.jsx(ve,{}),!e&&s!=null&&n.jsx(E,{icon:xe})]}),n.jsx("div",{className:"message-text",children:s})]})})})})}const y=ue.module("@deephaven/code-studio"),be=d.createContext(null);function ye({apiUrl:r,children:e,failureElement:s,setGlobally:a=!1}){const[t,o]=d.useState(!0),[c,m]=d.useState();return d.useEffect(()=>{async function p(){try{const i=(await R(()=>import(r),[],import.meta.url)).default;y.info("API bootstrapped from",r),m(i),a&&(y.debug("API set globally"),globalThis.dh=i)}catch(i){y.error("Unable to bootstrap API",i)}o(!1)}p()},[r,a]),t?n.jsx(z,{}):c==null?s??n.jsxs(fe,{isOpen:!0,className:"modal-dialog-centered theme-bg-light",children:[n.jsx(me,{closeButton:!1,children:"Error: Unable to load API"}),n.jsx(he,{children:n.jsxs("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",r,", then refresh the page."]})})]}):n.jsx(be.Provider,{value:c,children:e})}const Le=O.lazy(()=>R(()=>import("./App-66ca3383.js"),["./App-66ca3383.js","./vendor-bb2cdd26.js","./helpers-042e6b4d.js","./vendor-42b31346.css","./plotly-8f1638d5.js","./App-a2eeb683.css"],import.meta.url));M.render(n.jsx(ye,{apiUrl:"/jsapi/dh-core.js",setGlobally:!0,children:n.jsx(d.Suspense,{fallback:n.jsx(z,{}),children:n.jsx(Le,{})})}),document.getElementById("root"));export{ue as L,ve as a,pe as b,Ae as c,ke as d,z as e,Ne as v};
2
- //# sourceMappingURL=index-49e15696.js.map
1
+ var I=Object.defineProperty;var P=(r,e,s)=>e in r?I(r,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[e]=s;var u=(r,e,s)=>(P(r,typeof e!="symbol"?e+"":e,s),s);import{A as d,R as M,C as n,D as L,E as x,F as E,G as O}from"./vendor-f159d852.js";import"./helpers-042e6b4d.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))a(t);new MutationObserver(t=>{for(const o of t)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function s(t){const o={};return t.integrity&&(o.integrity=t.integrity),t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?o.credentials="include":t.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(t){if(t.ep)return;t.ep=!0;const o=s(t);fetch(t.href,o)}})();const B="modulepreload",D=function(r,e){return new URL(r,e).href},A={},R=function(e,s,a){if(!s||s.length===0)return e();const t=document.getElementsByTagName("link");return Promise.all(s.map(o=>{if(o=D(o,a),o in A)return;A[o]=!0;const c=o.endsWith(".css"),m=c?'[rel="stylesheet"]':"";if(!!a)for(let g=t.length-1;g>=0;g--){const l=t[g];if(l.href===o&&(!c||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${m}`))return;const i=document.createElement("link");if(i.rel=c?"stylesheet":B,c||(i.as="script",i.crossOrigin=""),i.href=o,document.head.appendChild(i),c)return new Promise((g,l)=>{i.addEventListener("load",g),i.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e())};const _="#1a171a",$="#f0f0ee",H="#fcd65b",T="#9edc6f",F="#76d9e4",V="#aa9af4",U="#f37e3f",G="#f95d84",W="#4878ea",K="#5b5a5c",q="#9edc6f",J="#fcd65b",Q="#f37e3f",X="#f95d84",Y="#fcfcfa",Z="#929192",ee="#373438",te="#1a171a",se="#f0f0ee",ne="0.15s",re={"gray-100":"#fcfcfa","gray-200":"#f0f0ee","gray-300":"#c0bfbf","gray-400":"#929192","gray-500":"#5b5a5c","gray-600":"#555356","gray-700":"#403e41","gray-800":"#373438","gray-850":"#322f33","gray-900":"#211f22",black:_,white:$,yellow:H,green:T,blue:F,purple:V,orange:U,red:G,primary:W,"primary-hover":"#235de6","primary-dark":"#343e5d",secondary:K,success:q,info:J,warning:Q,danger:X,light:Y,mid:Z,dark:ee,"text-muted":"#929192","content-bg":"#2d2a2e",background:te,foreground:se,transition:ne},oe={transitionMs:150,transitionMidMs:200,transitionLongMs:300,transitionSlowMs:1e3},j=Object.freeze({...oe,...re}),ae=0,ie=1,S=2,ce=3,le=4,f=()=>{};class k{constructor(e,s){u(this,"name");u(this,"prefix");u(this,"level");u(this,"error");u(this,"warn");u(this,"log");u(this,"info");u(this,"debug");u(this,"debug2");this.name=e,this.prefix=e!=null?`[${e}]`:"",this.error=f,this.warn=f,this.log=f,this.info=f,this.debug=f,this.debug2=f,this.level=s,this.setLogLevel(s)}setLogLevel(e){if(!Number.isFinite(e)){console.warn(`Expected a number for log level. Received: ${e}. Ignoring`);return}this.level=e,this.error=e>=ae?console.error.bind(console,this.prefix):f,this.warn=e>=ie?console.warn.bind(console,this.prefix):f,this.log=e>=S?console.log.bind(console,this.prefix):f,this.info=this.log,this.debug=e>=ce?console.debug.bind(console,this.prefix):f,this.debug2=e>=le?console.debug.bind(console,this.prefix):f}}class de extends k{constructor(s=S){super(null,s);u(this,"modules");this.modules={}}module(s){return this.modules[s]==null&&(this.modules[s]=new k(s,this.level)),this.modules[s]}setLogLevel(s){if(super.setLogLevel(s),this.modules==null)return;const a=Object.keys(this.modules);for(let t=0;t<a.length;t+=1)this.modules[a[t]].setLogLevel(s)}}const ue=new de;function fe({className:r="theme-bg-light",children:e,role:s="role",keyboard:a=!0,isOpen:t=!1,centered:o=!1,size:c,onOpened:m,onClosed:p,toggle:i,"data-testid":g}){const l=d.useRef(),v=d.useRef(null),[C,w]=d.useState(!1),b=d.useCallback(h=>{switch(h.key){case"Escape":i==null||i();break}},[i]);d.useEffect(function(){if(t&&a)return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[b,t,a]),d.useEffect(function(){t&&m&&m()},[m,t]),d.useEffect(function(){!t&&p&&p()},[p,t]),t&&!l.current&&(l.current=document.createElement("div"),l.current.setAttribute("style","padding-right: 15px; display: block"),l.current.setAttribute("role","presentation"),document.body.appendChild(l.current));const N=()=>{l.current&&(document.body.removeChild(l.current),l.current=void 0)};return l.current?M.createPortal(n.jsxs(n.Fragment,{children:[n.jsx(L,{appear:!0,mountOnEnter:!0,unmountOnExit:!0,in:t,classNames:{appearActive:"show",appearDone:"show"},timeout:j.transitionMs,onExited:N,children:n.jsx("div",{className:x("modal-backdrop fade"),style:{zIndex:1050}})}),n.jsx(L,{appear:!0,mountOnEnter:!0,unmountOnExit:!0,in:t,classNames:{appearDone:"show"},timeout:j.transitionMs,onExited:N,children:n.jsx("div",{ref:v,className:"modal fade",onMouseDown:h=>{h.target===v.current?w(!0):w(!1)},onMouseUp:h=>{C&&h.target===v.current&&i!==void 0&&i()},role:"dialog",style:{display:"block"},children:n.jsx("div",{className:x(`modal-dialog ${r}`,{"modal-lg":c==="lg","modal-sm":c==="sm","modal-xl":c==="xl","modal-dialog-centered":o}),style:{zIndex:1040},children:n.jsx("div",{className:"modal-content",role:"presentation","data-testid":g,children:e})})})})]}),l.current):null}function he({className:r="modal-body",style:e,children:s,"data-testid":a}){return n.jsx("div",{className:r,"data-testid":a,style:e,children:s})}function me({className:r,children:e,closeButton:s=!0,style:a,toggle:t,"data-testid":o}){return n.jsxs("div",{className:`modal-header ${r}`,style:a,children:[n.jsx("h5",{className:"modal-title",children:e}),s&&n.jsx("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close",onClick:t,children:n.jsx("span",{"aria-hidden":"true",children:"×"})})]})}var Ne={prefix:"vs",iconName:"chevron-right",icon:[512,512,[],"f000","M322.304 256.768 182.88 117.344l19.776 -19.84L352 246.912v19.776L202.656 416l-19.776 -19.808 139.424 -139.424z"]},ge={prefix:"vs",iconName:"circle-large-outline",icon:[512,512,[],"f000","M306.816 70.88A185.856 185.856 0 0 0 256 64c-17.728 0 -34.624 2.336 -50.816 6.88l-0.192 0.064c-16.448 4.512 -31.68 10.944 -45.824 19.232A196.992 196.992 0 0 0 90.24 159.36l-0.064 0.128A190.944 190.944 0 0 0 70.72 205.12 191.552 191.552 0 0 0 64 256c0 17.76 2.24 34.72 6.72 50.912a193.6 193.6 0 0 0 49.536 84.832c11.84 11.68 24.768 21.664 38.912 30.08a195.2 195.2 0 0 0 45.92 19.488A192.64 192.64 0 0 0 256 448c17.76 0 34.72 -2.24 50.912 -6.72 16.48 -4.64 31.68 -11.136 45.632 -19.424l0.128 -0.064a197.12 197.12 0 0 0 69.152 -68.96 187.2 187.2 0 0 0 19.2 -45.824l0.096 -0.192A185.824 185.824 0 0 0 448 256c0 -17.728 -2.304 -34.624 -6.88 -50.816l-0.064 -0.192a184.704 184.704 0 0 0 -19.2 -45.536l-0.064 -0.128a188.8 188.8 0 0 0 -30.144 -38.72l-0.256 -0.256a188.864 188.864 0 0 0 -38.72 -30.144l-0.128 -0.064a184.704 184.704 0 0 0 -45.536 -19.2l-0.192 -0.064zm142.56 298.24a229.024 229.024 0 0 1 -80.512 80.256 222.912 222.912 0 0 1 -53.376 22.72A223.488 223.488 0 0 1 256 480a223.488 223.488 0 0 1 -59.52 -7.872 227.136 227.136 0 0 1 -53.568 -22.752 233.6 233.6 0 0 1 -45.28 -35.008 233.44 233.44 0 0 1 -35.008 -45.28 227.136 227.136 0 0 1 -22.72 -53.6A223.52 223.52 0 0 1 32 256c0 -20.576 2.624 -40.384 7.872 -59.52a222.976 222.976 0 0 1 22.752 -53.344 228.992 228.992 0 0 1 80.288 -80.512 220.64 220.64 0 0 1 53.6 -22.528A217.856 217.856 0 0 1 256 32a217.6 217.6 0 0 1 59.52 8.096 220.768 220.768 0 0 1 98.656 57.76 220.896 220.896 0 0 1 57.728 98.656C477.312 215.616 480 235.424 480 256s-2.688 40.384 -8.096 59.52a220.8 220.8 0 0 1 -22.528 53.568z"]},pe={prefix:"vs",iconName:"loading",icon:[512,512,[],"f000","M445.344 224A192.064 192.064 0 0 0 66.656 224H34.272a224.064 224.064 0 0 1 443.456 0h-32.384z"]},xe={prefix:"vs",iconName:"warning",icon:[512,512,[],"f000","M241.92 32h28.16l209.28 392.32 -14.08 23.68H46.08L32 424.32 241.92 32zM256 72.96 72.96 416H438.4L256 72.96zM276 384v-32h-40v32h40zm-40 -64V192h40v128h-40z"]},Ae={prefix:"dh",iconName:"graph-line-down",icon:[512,512,[],"f000","M64 416V0H32v432l16 16H480v-32zm67.2 -291.2 -22.4 22.4 108.8 112 70.4 -64 108.8 124.8H320v32h112l16 -16V224h-32v70.4L288 150.4l-70.4 64z"]},ke={prefix:"dh",iconName:"warning-filled",icon:[512,512,[],"f000","M268.8 32h-25.6L32 425.6l12.8 22.4h419.2l12.8 -22.4L268.8 32zm6.4 352H236.8v-32h38.4v32zm0 -64H236.8V192h38.4v128z"]};function ve({className:r="","data-testid":e}){return n.jsxs("div",{className:x("loading-spinner fa-layers",r),"data-testid":e,children:[n.jsx(E,{icon:ge,className:"text-white-50"}),n.jsx(E,{icon:pe,className:"text-primary",spin:!0})]})}function z({isLoaded:r=!1,isLoading:e=!0,errorMessage:s=null,"data-testid":a}){return n.jsx(L,{in:Boolean(s)||!r||e,timeout:j.transitionMs,classNames:r?"fade":"",mountOnEnter:!0,unmountOnExit:!0,children:n.jsx("div",{className:"fill-parent-absolute","data-testid":a,children:n.jsx("div",{className:x("iris-panel-message-overlay","fill-parent-absolute",{"iris-panel-scrim-background":r}),children:n.jsxs("div",{className:"message-content",children:[n.jsxs("div",{className:"message-icon",children:[e&&n.jsx(ve,{}),!e&&s!=null&&n.jsx(E,{icon:xe})]}),n.jsx("div",{className:"message-text",children:s})]})})})})}const y=ue.module("@deephaven/code-studio"),be=d.createContext(null);function ye({apiUrl:r,children:e,failureElement:s,setGlobally:a=!1}){const[t,o]=d.useState(!0),[c,m]=d.useState();return d.useEffect(()=>{async function p(){try{const i=(await R(()=>import(r),[],import.meta.url)).default;y.info("API bootstrapped from",r),m(i),a&&(y.debug("API set globally"),globalThis.dh=i)}catch(i){y.error("Unable to bootstrap API",i)}o(!1)}p()},[r,a]),t?n.jsx(z,{}):c==null?s??n.jsxs(fe,{isOpen:!0,className:"modal-dialog-centered theme-bg-light",children:[n.jsx(me,{closeButton:!1,children:"Error: Unable to load API"}),n.jsx(he,{children:n.jsxs("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",r,", then refresh the page."]})})]}):n.jsx(be.Provider,{value:c,children:e})}const Le=O.lazy(()=>R(()=>import("./App-1ccad942.js"),["./App-1ccad942.js","./vendor-f159d852.js","./helpers-042e6b4d.js","./vendor-42b31346.css","./plotly-c032f3c5.js","./App-a2eeb683.css"],import.meta.url));M.render(n.jsx(ye,{apiUrl:"/jsapi/dh-core.js",setGlobally:!0,children:n.jsx(d.Suspense,{fallback:n.jsx(z,{}),children:n.jsx(Le,{})})}),document.getElementById("root"));export{ue as L,ve as a,pe as b,Ae as c,ke as d,z as e,Ne as v};
2
+ //# sourceMappingURL=index-362cb0ac.js.map