@deephaven/embed-widget 0.57.0 → 0.57.1-alpha-theming-bootstrap.2
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.
- package/build/assets/{App-cb2735fe.js → App-3acd2ebf.js} +2 -2
- package/build/assets/{App-cb2735fe.js.map → App-3acd2ebf.js.map} +1 -1
- package/build/assets/{IrisGridModelFactory-b3123b28.js → IrisGridModelFactory-235ebf55.js} +2 -2
- package/build/assets/{IrisGridModelFactory-b3123b28.js.map → IrisGridModelFactory-235ebf55.js.map} +1 -1
- package/build/assets/{WidgetView-9b760a72.js → WidgetView-df6a7262.js} +2 -2
- package/build/assets/{WidgetView-9b760a72.js.map → WidgetView-df6a7262.js.map} +1 -1
- package/build/assets/{index-0f342bf3.js → index-13a4fdde.js} +2 -2
- package/build/assets/{index-0f342bf3.js.map → index-13a4fdde.js.map} +1 -1
- package/build/assets/{index-04385a8f.js → index-2fa89456.js} +2 -2
- package/build/assets/{index-04385a8f.js.map → index-2fa89456.js.map} +1 -1
- package/build/assets/{index-5163d963.js → index-6043de8d.js} +2 -2
- package/build/assets/{index-5163d963.js.map → index-6043de8d.js.map} +1 -1
- package/build/assets/index-aa3c826a.css +1 -0
- package/build/assets/index-dd488dc3.css +6 -0
- package/build/assets/{usePlugins-51bc337a.js → usePlugins-d8048f85.js} +2 -2
- package/build/assets/{usePlugins-51bc337a.js.map → usePlugins-d8048f85.js.map} +1 -1
- package/build/index.html +2 -2
- package/package.json +15 -15
- package/build/assets/index-03463bb3.css +0 -6
- package/build/assets/index-5b1139be.css +0 -1
|
@@ -5,5 +5,5 @@ import{r as m,R as O,C as s,D as N,E as L,F as j9,_ as M,G as B}from"./vendor-dc
|
|
|
5
5
|
`,q7=`:root{--dh-color-grid-bg: var(--dh-color-bg);--dh-color-grid-header-bg: var(--dh-color-gray-100);--dh-color-grid-header-text: var(--dh-color-heading-text);--dh-color-grid-header-separator: var(--dh-color-gray-50);--dh-color-grid-header-separator-hover: var(--dh-color-gray-600);--dh-color-grid-header-separator-hidden-hover: var(--dh-color-accent-700);--dh-color-grid-header-sort-bar: var(--dh-color-visual-purple);--dh-color-grid-header-reverse-bar: var(--dh-color-visual-green);--dh-color-grid-header-bar-casing: var(--dh-color-gray-50);--dh-color-grid-row-0-bg: var(--dh-color-gray-300);--dh-color-grid-row-1-bg: var(--dh-color-gray-100);--dh-color-grid-row-hover-bg: var(--dh-color-gray-400);--dh-color-grid-row-hover-bg-selected: var( --dh-color-highlight-selected-hover );--dh-color-grid-selection: var(--dh-color-highlight-selected);--dh-color-grid-selection-outline: var(--dh-color-accent-900);--dh-color-grid-selection-outline-casing: var(--dh-color-gray-50);--dh-color-grid-scroll-bar-active-selection-tick: var(--dh-color-accent-400);--dh-color-grid-scroll-bar-bg: var(--dh-color-gray-100);--dh-color-grid-scroll-bar-hover-bg: var(--dh-color-gray-200);--dh-color-grid-scroll-bar-casing: var(--dh-color-gray-400);--dh-color-grid-scroll-bar-corner: var(--dh-color-gray-100);--dh-color-grid-scroll-bar: var(--dh-color-gray-500);--dh-color-grid-scroll-bar-hover: var(--dh-color-gray-600);--dh-color-grid-scroll-bar-active: var(--dh-color-gray-700);--dh-color-grid-text: var(--dh-color-text);--dh-color-grid-text-hyperlink: var(--dh-color-accent-1000);--dh-color-grid-text-pending: var(--dh-color-yellow-1300);--dh-color-grid-text-error: var(--dh-color-visual-negative);--dh-color-grid-date: var(--dh-color-visual-notice);--dh-color-grid-number-positive: var(--dh-color-visual-positive);--dh-color-grid-number-negative: var(--dh-color-visual-negative);--dh-color-grid-number-zero: var(--dh-color-visual-notice);--dh-color-grid-string-null: var(--dh-color-gray-600);--dh-color-grid-filter-bar-active-bg: hsla( var(--dh-color-accent-700-hsl), 0.5 );--dh-color-grid-filter-bar-active: var(--dh-color-accent-600);--dh-color-grid-filter-bar-expanded-bg: var(--dh-color-gray-200);--dh-color-grid-filter-bar-expanded-active-bg: hsla( var(--dh-color-accent-1000-hsl), 0.19 );--dh-color-grid-filter-bar-expanded-active-cell-bg: hsla( var(--dh-color-accent-700-hsl), 0.32 );--dh-color-grid-filter-bar-separator: var(--dh-color-gray-600);--dh-color-grid-filter-bar-error: var(--dh-color-visual-negative);--dh-color-grid-filter-icon: var(--dh-color-accent-600);--dh-color-grid-context-menu-sort-icon: var(--dh-color-visual-purple);--dh-color-grid-context-menu-reverse-icon: var(--dh-color-visual-green);--dh-color-grid-column-linker-hover-bg: var( --dh-color-highlight-selected-hover );--dh-color-grid-column-grouped-divider: var(--dh-color-gray-50);--dh-color-grid-tree-line: var(--dh-color-gray-500);--dh-color-grid-tree-marker: var(--dh-color-gray-700);--dh-color-grid-tree-marker-hover: var(--dh-color-gray-900);--dh-color-grid-floating-row: var(--dh-color-gray-300);--dh-color-grid-floating-row-bg: var(--dh-color-gray-200);--dh-color-grid-floating-divider-inner: var(--dh-color-gray-200);--dh-color-grid-floating-divider-outer: var(--dh-color-gray-50);--dh-color-grid-overflow-button: var(--dh-color-gray-700);--dh-color-grid-overflow-button-hover: var(--dh-color-gray-900);--dh-color-grid-data-bar-positive: var(--dh-color-visual-positive);--dh-color-grid-data-bar-negative: var(--dh-color-visual-negative);--dh-color-grid-data-bar-marker: var(--dh-color-white);--dh-color-grid-data-bar-zero-line: var(--dh-color-gray-300);--dh-color-grid-scrim: var(--dh-color-gray-50)}/*# sourceMappingURL=theme-dark-semantic-grid.css.map */
|
|
6
6
|
`,W7=`:root{--dh-color-loading-spinner-primary: var(--dh-color-accent-bg);--dh-color-loading-spinner-secondary: hsla(var(--dh-color-gray-800-hsl), 0.5);--dh-color-quickactions-bg: hsla(var(--dh-color-visual-gray-hsl), 0.9);--dh-color-radial-reaction: hsla(var(--dh-color-visual-gray-hsl), 0.6);--dh-color-colorpicker-border: hsla(var(--dh-color-visual-gray-hsl), 0.1);--dh-color-login-form-bg: var(--dh-color-gray-400);--dh-color-login-status-message: var(--dh-color-gray-600);--dh-color-login-logo-bg: var(--dh-color-gray-900);--dh-color-login-footer-fg: var(--dh-color-gray-700);--dh-color-random-area-plot-animation-fg-fill: hsla( var(--dh-color-accent-hsl), 0.08 );--dh-color-random-area-plot-animation-fg-stroke: hsla( var(--dh-color-accent-hsl), 0.2 );--dh-color-random-area-plot-animation-bg: var(--dh-color-gray-75);--dh-color-random-area-plot-animation-grid: var(--dh-color-gray-300);--dh-color-action-bg: hsl(var(--dh-color-action-hsl));--dh-color-action-fg: hsl(var(--dh-color-action-contrast-hsl));--dh-color-action-border: var(--dh-color-border);--dh-color-action-down-bg: var(--dh-color-gray-300);--dh-color-action-hover-bg: var(--dh-color-black);--dh-color-action-hover-fg: var(--dh-color-action-fg);--dh-color-action-hover-border: var(--dh-color-hover-border);--dh-color-action-active-bg: var(--dh-color-accent-bg);--dh-color-action-active-fg: var(--dh-color-accent-contrast);--dh-color-action-active-border: var(--dh-color-accent-bg);--dh-color-action-active-hover-bg: var(--dh-color-accent-hover-bg);--dh-color-action-active-hover-fg: var(--dh-color-accent-contrast);--dh-color-action-active-hover-border: var(--dh-color-accent-hover-bg);--dh-color-action-disabled-bg: transparent;--dh-color-action-disabled-fg: var(--dh-color-gray-700);--dh-color-action-disabled-border: var(--dh-color-black);--dh-color-input-bg: var(--dh-color-gray-500);--dh-color-input-fg: var(--dh-color-fg);--dh-color-input-disabled-bg: var(--dh-color-gray-300);--dh-color-input-border: var(--dh-color-gray-600);--dh-color-input-placeholder: var(--dh-color-gray-600);--dh-color-input-focus-border: hsla(var(--dh-color-accent-hsl), 0.85);--dh-color-search-icon: var(--dh-color-fg);--dh-color-form-control-error: hsl(var(--dh-color-visual-negative-hsl));--dh-color-form-control-error-shadow: hsla( var(--dh-color-visual-negative-hsl), 0.25 );--dh-color-selector-fg: hsla(var(--dh-color-gray-800-hsl), 0.4);--dh-color-selector-hover-fg: hsl(var(--dh-color-gray-800-hsl));--dh-color-selector-disabled-fg: hsla( var(--dh-color-gray-800-hsl), /* * Other dropdowns have opacity .4 when not hovered and then an additional * .65 opacity applied to disabled, hence .4 * .65 == .26 */ 0.26 );--dh-color-item-list-bg: transparent;--dh-color-item-list-active-bg: var(--dh-color-highlight-active);--dh-color-item-list-hover-bg: var(--dh-color-highlight-hover);--dh-color-item-list-selected-fg: var(--dh-color-white);--dh-color-item-list-selected-bg: var(--dh-color-highlight-selected);--dh-color-item-list-selected-hover-bg: var( --dh-color-highlight-selected-hover );--dh-color-item-list-selected-inactive-bg: var(--dh-color-gray-200);--dh-color-item-list-selected-border: hsla(var(--dh-color-accent-hsl), 0.6);--dh-color-item-list-drop-target-fg: var(--dh-color-white);--dh-color-item-list-keyboard-selected-bg: hsla( var(--dh-color-accent-hsl), 0.5 );--dh-color-menu-item-fg: var(--dh-color-gray-700);--dh-color-tooltip-bg: var(--dh-color-gray-400);--dh-color-tooltip-fg: var(--dh-color-fg);--dh-color-tooltip-box-shadow: hsla(var(--dh-color-black-hsl), 0.8);--dh-color-well-bg: hsla(var(--dh-color-visual-gray-hsl), 0.02);--dh-color-well-border: hsla(var(--dh-color-visual-gray-hsl), 0.05)}/*# sourceMappingURL=theme-dark-components.css.map */
|
|
7
7
|
`;var K7=[G7,I7,_7,j7,q7,W7].join(`
|
|
8
|
-
`),w="default-dark",zo="default-light",i={blue:{500:"#2f5bc0",400:"#254ba4",600:"#3b6bda"},red:{600:"#c73f61"},gray:{50:"#1a171a",75:"#211f22",300:"#373438",400:"#403e41",500:"#5b5a5c",600:"#929192",700:"#c0bfbf",800:"#f0f0ee",900:"#fcfcfa"}},O9={"--dh-color-accent-contrast":i.gray[900],"--dh-color-accent-bg":i.blue[600],"--dh-color-accent-hover-bg":i.blue[500],"--dh-color-accent-down-bg":i.blue[400],"--dh-color-accent-key-focus-bg":i.blue[500],"--dh-color-negative-bg":i.red[600],"--dh-color-loading-spinner-primary":i.blue[600],"--dh-color-loading-spinner-secondary":"".concat(i.gray[800],"80"),"--dh-color-bg":i.gray[50],"--dh-color-fg":i.gray[800],"--dh-color-input-bg":i.gray[500],"--dh-color-input-fg":i.gray[800],"--dh-color-input-disabled-bg":i.gray[300],"--dh-color-input-border":i.gray[600],"--dh-color-input-placeholder":i.gray[600],"--dh-color-input-focus-border":"".concat(i.blue[600],"d9"),"--dh-color-login-form-bg":i.gray[400],"--dh-color-login-status-message":i.gray[600],"--dh-color-login-logo-bg":i.gray[900],"--dh-color-login-footer-fg":i.gray[700],"--dh-color-random-area-plot-animation-fg-fill":"".concat(i.blue[600],"14"),"--dh-color-random-area-plot-animation-fg-stroke":"".concat(i.blue[600],"33"),"--dh-color-random-area-plot-animation-bg":i.gray[75],"--dh-color-random-area-plot-animation-grid":i.gray[300]},$7={"--dh-svg-icon-select-indicator":"--dh-color-selector-fg","--dh-svg-icon-select-indicator-hover":"--dh-color-selector-hover-fg","--dh-svg-icon-select-indicator-disabled":"--dh-color-selector-disabled-fg","--dh-svg-icon-error":"--dh-color-form-control-error"},B9="deephaven.themeCache",V=F9.module("ThemeUtils"),U9="var(--",P="dh-tmp",J7=/\S/,E=/\s/;function X7(){var l=G9(document.body),o=Object.keys(O9).map(r=>"".concat(r,":").concat(l(r)));return":root{".concat(o.join(";"),"}")}function G9(l){var o=getComputedStyle(l);return function(e){var c,a=o.getPropertyValue(e);return a!==""?a:(c=O9[e])!==null&&c!==void 0?c:""}}function Q7(l){var o=new Set;return Object.values(l).forEach(r=>{I9(r).forEach(e=>{var[c,a]=e,h=r.substring(c,a+1);h.includes(U9)&&o.add(h)})}),o}function go(l,o){var r,e=o.custom.find(h=>h.themeKey===l),c=(r=e==null?void 0:e.baseThemeKey)!==null&&r!==void 0?r:l,a=o.base.find(h=>h.themeKey===c);return a==null&&(V.error("No registered base theme found for theme key: '".concat(c,"'"),"Registered:",o.base.map(h=>h.themeKey),o.custom.map(h=>h.themeKey)),a=o.base.find(h=>h.themeKey===w),Y9(a,"Default base theme '".concat(w,"' is not registered"))),V.debug("Applied themes:",a.themeKey,e==null?void 0:e.themeKey),e==null?[a]:[a,e]}function uo(){return[{name:"Default Dark",themeKey:w,styleContent:K7}]}function Y7(){var l=localStorage.getItem(B9);try{return l==null?null:JSON.parse(l)}catch{}return null}function I9(l){for(var o,r,e=[],c=(o=(r=J7.exec(l))===null||r===void 0?void 0:r.index)!==null&&o!==void 0?o:0,a=0,h=0;h<l.length;h+=1)if(l[h]==="("?a+=1:l[h]===")"&&(a-=1),h===l.length-1||E.test(l[h+1])&&a===0){for(e.push([c,h]);h<l.length-1&&E.test(l[h+1]);)h+=1;c=h+1}return a!==0?(V.error("Unbalanced parentheses in css var expression",l),[]):e}function oo(l,o){return l.replace(/fill='.*?'/,"fill='".concat(encodeURIComponent(o),"'"))}function po(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,e=performance.now(),c=document.createElement("div");o.appendChild(c);var a=[...Q7(l)];a.forEach((d,t)=>{var g="--".concat(P,"-").concat(t);c.style.setProperty(g,d)});var h={},v=window.getComputedStyle(c),n=d=>{var t="--".concat(P,"-").concat(a.indexOf(d)),g=v.getPropertyValue(t);return K9.normalizeCssColor(g,r)};return Object.entries(l).forEach(d=>{var[t,g]=d;h[t]=lo(n,g)}),c.remove(),V.debug("Resolved css variables",performance.now()-e,"ms"),h}function lo(l,o){var r=[],e=0;return I9(o).forEach(c=>{var[a,h]=c;e<a&&(r.push(o.substring(e,a)),e+=a-e);var v=o.substring(a,h+1);r.push(v.includes(U9)?l(v):v),e+=h-a+1}),r.length===0?o:r.join("")}function Ho(l){localStorage.setItem(B9,JSON.stringify(l))}function Vo(l,o){return"".concat(l,"_").concat(o)}function ro(){var l,o,r=(l=(o=Y7())===null||o===void 0?void 0:o.preloadStyleContent)!==null&&l!==void 0?l:X7();V.debug("Preloading theme content:","'".concat(r,"'"));var e=document.createElement("style");e.id="theme-preload",e.innerHTML=r,document.head.appendChild(e)}function Lo(){var l=G9(document.body);Object.entries($7).forEach(o=>{var[r,e]=o;document.body.style.removeProperty(r);var c=l(r),a=l(e),h=oo(c,a);document.body.style.setProperty(r,h)})}function F(l,o,r,e,c,a,h){try{var v=l[a](h),n=v.value}catch(d){r(d);return}v.done?o(n):Promise.resolve(n).then(e,c)}function eo(l){return function(){var o=this,r=arguments;return new Promise(function(e,c){var a=l.apply(o,r);function h(n){F(a,e,c,h,v,"next",n)}function v(n){F(a,e,c,h,v,"throw",n)}h(void 0)})}}var x=F9.module("@deephaven/jsapi-bootstrap.ApiBootstrap"),ao=m.createContext(null);function co(l){var{apiUrl:o,children:r,failureElement:e,setGlobally:c=!1}=l,[a,h]=m.useState(!0),[v,n]=m.useState();return m.useEffect(()=>{function d(){return t.apply(this,arguments)}function t(){return t=eo(function*(){try{var g=(yield M(()=>import(o),[],import.meta.url)).default;x.info("API bootstrapped from",o),n(g),c&&(x.debug("API set globally"),globalThis.dh=g)}catch(f){x.error("Unable to bootstrap API",f)}h(!1)}),t.apply(this,arguments)}d()},[o,c]),a?s.jsx(T9,{}):v==null?e??s.jsxs(T7,{isOpen:!0,className:"modal-dialog-centered theme-bg-light",children:[s.jsx(B7,{closeButton:!1,children:"Error: Unable to load API"}),s.jsx(O7,{children:s.jsxs("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",o,", then refresh the page."]})})]}):s.jsx(ao.Provider,{value:v,children:r})}ro();const ho=B.lazy(()=>M(()=>import("./App-
|
|
9
|
-
//# sourceMappingURL=index-
|
|
8
|
+
`),w="default-dark",zo="default-light",i={blue:{500:"#2f5bc0",400:"#254ba4",600:"#3b6bda"},red:{600:"#c73f61"},gray:{50:"#1a171a",75:"#211f22",300:"#373438",400:"#403e41",500:"#5b5a5c",600:"#929192",700:"#c0bfbf",800:"#f0f0ee",900:"#fcfcfa"}},O9={"--dh-color-accent-contrast":i.gray[900],"--dh-color-accent-bg":i.blue[600],"--dh-color-accent-hover-bg":i.blue[500],"--dh-color-accent-down-bg":i.blue[400],"--dh-color-accent-key-focus-bg":i.blue[500],"--dh-color-negative-bg":i.red[600],"--dh-color-loading-spinner-primary":i.blue[600],"--dh-color-loading-spinner-secondary":"".concat(i.gray[800],"80"),"--dh-color-bg":i.gray[50],"--dh-color-fg":i.gray[800],"--dh-color-input-bg":i.gray[500],"--dh-color-input-fg":i.gray[800],"--dh-color-input-disabled-bg":i.gray[300],"--dh-color-input-border":i.gray[600],"--dh-color-input-placeholder":i.gray[600],"--dh-color-input-focus-border":"".concat(i.blue[600],"d9"),"--dh-color-login-form-bg":i.gray[400],"--dh-color-login-status-message":i.gray[600],"--dh-color-login-logo-bg":i.gray[900],"--dh-color-login-footer-fg":i.gray[700],"--dh-color-random-area-plot-animation-fg-fill":"".concat(i.blue[600],"14"),"--dh-color-random-area-plot-animation-fg-stroke":"".concat(i.blue[600],"33"),"--dh-color-random-area-plot-animation-bg":i.gray[75],"--dh-color-random-area-plot-animation-grid":i.gray[300]},$7={"--dh-svg-icon-select-indicator":"--dh-color-selector-fg","--dh-svg-icon-select-indicator-hover":"--dh-color-selector-hover-fg","--dh-svg-icon-select-indicator-disabled":"--dh-color-selector-disabled-fg","--dh-svg-icon-error":"--dh-color-form-control-error"},B9="deephaven.themeCache",V=F9.module("ThemeUtils"),U9="var(--",P="dh-tmp",J7=/\S/,E=/\s/;function X7(){var l=G9(document.body),o=Object.keys(O9).map(r=>"".concat(r,":").concat(l(r)));return":root{".concat(o.join(";"),"}")}function G9(l){var o=getComputedStyle(l);return function(e){var c,a=o.getPropertyValue(e);return a!==""?a:(c=O9[e])!==null&&c!==void 0?c:""}}function Q7(l){var o=new Set;return Object.values(l).forEach(r=>{I9(r).forEach(e=>{var[c,a]=e,h=r.substring(c,a+1);h.includes(U9)&&o.add(h)})}),o}function go(l,o){var r,e=o.custom.find(h=>h.themeKey===l),c=(r=e==null?void 0:e.baseThemeKey)!==null&&r!==void 0?r:l,a=o.base.find(h=>h.themeKey===c);return a==null&&(V.error("No registered base theme found for theme key: '".concat(c,"'"),"Registered:",o.base.map(h=>h.themeKey),o.custom.map(h=>h.themeKey)),a=o.base.find(h=>h.themeKey===w),Y9(a,"Default base theme '".concat(w,"' is not registered"))),V.debug("Applied themes:",a.themeKey,e==null?void 0:e.themeKey),e==null?[a]:[a,e]}function uo(){return[{name:"Default Dark",themeKey:w,styleContent:K7}]}function Y7(){var l=localStorage.getItem(B9);try{return l==null?null:JSON.parse(l)}catch{}return null}function I9(l){for(var o,r,e=[],c=(o=(r=J7.exec(l))===null||r===void 0?void 0:r.index)!==null&&o!==void 0?o:0,a=0,h=0;h<l.length;h+=1)if(l[h]==="("?a+=1:l[h]===")"&&(a-=1),h===l.length-1||E.test(l[h+1])&&a===0){for(e.push([c,h]);h<l.length-1&&E.test(l[h+1]);)h+=1;c=h+1}return a!==0?(V.error("Unbalanced parentheses in css var expression",l),[]):e}function oo(l,o){return l.replace(/fill='.*?'/,"fill='".concat(encodeURIComponent(o),"'"))}function po(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,e=performance.now(),c=document.createElement("div");o.appendChild(c);var a=[...Q7(l)];a.forEach((d,t)=>{var g="--".concat(P,"-").concat(t);c.style.setProperty(g,d)});var h={},v=window.getComputedStyle(c),n=d=>{var t="--".concat(P,"-").concat(a.indexOf(d)),g=v.getPropertyValue(t);return K9.normalizeCssColor(g,r)};return Object.entries(l).forEach(d=>{var[t,g]=d;h[t]=lo(n,g)}),c.remove(),V.debug("Resolved css variables",performance.now()-e,"ms"),h}function lo(l,o){var r=[],e=0;return I9(o).forEach(c=>{var[a,h]=c;e<a&&(r.push(o.substring(e,a)),e+=a-e);var v=o.substring(a,h+1);r.push(v.includes(U9)?l(v):v),e+=h-a+1}),r.length===0?o:r.join("")}function Ho(l){localStorage.setItem(B9,JSON.stringify(l))}function Vo(l,o){return"".concat(l,"_").concat(o)}function ro(){var l,o,r=(l=(o=Y7())===null||o===void 0?void 0:o.preloadStyleContent)!==null&&l!==void 0?l:X7();V.debug("Preloading theme content:","'".concat(r,"'"));var e=document.createElement("style");e.id="theme-preload",e.innerHTML=r,document.head.appendChild(e)}function Lo(){var l=G9(document.body);Object.entries($7).forEach(o=>{var[r,e]=o;document.body.style.removeProperty(r);var c=l(r),a=l(e),h=oo(c,a);document.body.style.setProperty(r,h)})}function F(l,o,r,e,c,a,h){try{var v=l[a](h),n=v.value}catch(d){r(d);return}v.done?o(n):Promise.resolve(n).then(e,c)}function eo(l){return function(){var o=this,r=arguments;return new Promise(function(e,c){var a=l.apply(o,r);function h(n){F(a,e,c,h,v,"next",n)}function v(n){F(a,e,c,h,v,"throw",n)}h(void 0)})}}var x=F9.module("@deephaven/jsapi-bootstrap.ApiBootstrap"),ao=m.createContext(null);function co(l){var{apiUrl:o,children:r,failureElement:e,setGlobally:c=!1}=l,[a,h]=m.useState(!0),[v,n]=m.useState();return m.useEffect(()=>{function d(){return t.apply(this,arguments)}function t(){return t=eo(function*(){try{var g=(yield M(()=>import(o),[],import.meta.url)).default;x.info("API bootstrapped from",o),n(g),c&&(x.debug("API set globally"),globalThis.dh=g)}catch(f){x.error("Unable to bootstrap API",f)}h(!1)}),t.apply(this,arguments)}d()},[o,c]),a?s.jsx(T9,{}):v==null?e??s.jsxs(T7,{isOpen:!0,className:"modal-dialog-centered theme-bg-light",children:[s.jsx(B7,{closeButton:!1,children:"Error: Unable to load API"}),s.jsx(O7,{children:s.jsxs("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",o,", then refresh the page."]})})]}):s.jsx(ao.Provider,{value:v,children:r})}ro();const ho=B.lazy(()=>M(()=>import("./App-3acd2ebf.js"),["./App-3acd2ebf.js","./vendor-dc320d30.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./usePlugins-d8048f85.js","./WidgetView-df6a7262.js","./App-bad0fe82.css"],import.meta.url)),so=B.lazy(async()=>({default:(await M(()=>import("./index-13a4fdde.js"),["./index-13a4fdde.js","./vendor-dc320d30.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./usePlugins-d8048f85.js","./IrisGridModelFactory-235ebf55.js","./plotly-919eb32a.js","./IrisGridModelFactory-eebd4c94.css","./WidgetView-df6a7262.js","./index-aa3c826a.css"],import.meta.url)).AppBootstrap})),T=new URL("../../jsapi/dh-core.js",document.baseURI),vo=new URL("/js-plugins",document.baseURI);async function io(){const l=await M(()=>import("./index-2fa89456.js"),["./index-2fa89456.js","./vendor-dc320d30.js","./helpers-042e6b4d.js","./vendor-32c669a5.css","./IrisGridModelFactory-235ebf55.js","./usePlugins-d8048f85.js","./plotly-919eb32a.js","./IrisGridModelFactory-eebd4c94.css","./index-8e793050.css"],import.meta.url),{GridPluginConfig:o,PandasPluginConfig:r,ChartPluginConfig:e}=l;return[o,r,e]}O.render(s.jsx(co,{apiUrl:T.href,setGlobally:!0,children:s.jsx(m.Suspense,{fallback:s.jsx(T9,{}),children:s.jsx(so,{getCorePlugins:io,serverUrl:T.origin,pluginsUrl:vo.href,children:s.jsx(ho,{})})})}),document.getElementById("root"));export{N0 as $,oo as A,lo as B,U9 as C,w as D,Ho as E,K7 as F,co as G,ao as H,mo as I,X4 as J,v9 as K,F9 as L,T7 as M,J7 as N,h0 as O,A9 as P,l5 as Q,e5 as R,$7 as S,A as T,W2 as U,j5 as V,E as W,y6 as X,$5 as Y,q5 as Z,S as _,T9 as a,E5 as a$,O2 as a0,X as a1,N6 as a2,K3 as a3,K4 as a4,p6 as a5,N4 as a6,w9 as a7,F6 as a8,B4 as a9,h4 as aA,l9 as aB,K9 as aC,fo as aD,J5 as aE,w6 as aF,Q9 as aG,f8 as aH,M9 as aI,V9 as aJ,X0 as aK,L9 as aL,Q5 as aM,i4 as aN,H9 as aO,u9 as aP,p9 as aQ,Z9 as aR,R2 as aS,x9 as aT,T4 as aU,I5 as aV,G5 as aW,n8 as aX,k3 as aY,D2 as aZ,C2 as a_,P6 as aa,E6 as ab,Y2 as ac,n9 as ad,d0 as ae,A4 as af,F8 as ag,U2 as ah,a6 as ai,t9 as aj,$1 as ak,c9 as al,r2 as am,m9 as an,K5 as ao,n1 as ap,e9 as aq,s0 as ar,Q as as,G8 as at,O4 as au,k2 as av,Z2 as aw,Q0 as ax,U5 as ay,P9 as az,O7 as b,P5 as b0,R9 as b1,Y5 as b2,F5 as b3,d9 as b4,b9 as b5,l4 as b6,x0 as b7,a2 as b8,J as b9,r9 as ba,r3 as bb,S9 as bc,N3 as bd,C8 as be,J2 as bf,Y3 as bg,u8 as bh,p4 as bi,w2 as c,I as d,Y9 as e,s6 as f,$2 as g,zo as h,J9 as i,O9 as j,U7 as k,B7 as l,B9 as m,P as n,X7 as o,G9 as p,Q7 as q,po as r,go as s,uo as t,I9 as u,o5 as v,Vo as w,Y7 as x,Lo as y,ro as z};
|
|
9
|
+
//# sourceMappingURL=index-6043de8d.js.map
|