@deephaven/code-studio 1.29.1-plugin-optional-deps.fd4cf96.0.sha-fd4cf96 → 1.29.1

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.
Files changed (48) hide show
  1. package/build/assets/{AppRoot-BYgUP461.js → AppRoot-DgDkKXYj.js} +7 -7
  2. package/build/assets/{AppRoot-BYgUP461.js.map → AppRoot-DgDkKXYj.js.map} +1 -1
  3. package/build/assets/{Chart-BQ8I4i7L.js → Chart-BmXVZXCs.js} +2 -2
  4. package/build/assets/{Chart-BQ8I4i7L.js.map → Chart-BmXVZXCs.js.map} +1 -1
  5. package/build/assets/{ControlType-dZUYFjWs.js → ControlType-2pbllduF.js} +5 -5
  6. package/build/assets/{ControlType-dZUYFjWs.js.map → ControlType-2pbllduF.js.map} +1 -1
  7. package/build/assets/{FormatterUtils-BexTF7Pg.js → FormatterUtils-Cceiur6a.js} +2 -2
  8. package/build/assets/{FormatterUtils-BexTF7Pg.js.map → FormatterUtils-Cceiur6a.js.map} +1 -1
  9. package/build/assets/{Grid-Tx2xMiLi.js → Grid-upe8VzU9.js} +2 -2
  10. package/build/assets/{Grid-Tx2xMiLi.js.map → Grid-upe8VzU9.js.map} +1 -1
  11. package/build/assets/{IrisGrid-BrXTJDXQ.js → IrisGrid-ChpA8j5X.js} +2 -2
  12. package/build/assets/{IrisGrid-BrXTJDXQ.js.map → IrisGrid-ChpA8j5X.js.map} +1 -1
  13. package/build/assets/{IrisGridModel-C29Knup_.js → IrisGridModel-kzL_YY9W.js} +4 -4
  14. package/build/assets/{IrisGridModel-C29Knup_.js.map → IrisGridModel-kzL_YY9W.js.map} +1 -1
  15. package/build/assets/{IrisGridShortcuts-C-HT1iXy.js → IrisGridShortcuts-ClKtZcnx.js} +2 -2
  16. package/build/assets/{IrisGridShortcuts-C-HT1iXy.js.map → IrisGridShortcuts-ClKtZcnx.js.map} +1 -1
  17. package/build/assets/{LocalWorkspaceStorage-CGX54FlI.js → LocalWorkspaceStorage-8vwke8rq.js} +2 -2
  18. package/build/assets/{LocalWorkspaceStorage-CGX54FlI.js.map → LocalWorkspaceStorage-8vwke8rq.js.map} +1 -1
  19. package/build/assets/{MarkdownEditor-BTW0kH2X.js → MarkdownEditor-CIFU95Bx.js} +2 -2
  20. package/build/assets/{MarkdownEditor-BTW0kH2X.js.map → MarkdownEditor-CIFU95Bx.js.map} +1 -1
  21. package/build/assets/{MarkdownNotebook-CO6sIiLu.js → MarkdownNotebook-BFplr59s.js} +2 -2
  22. package/build/assets/{MarkdownNotebook-CO6sIiLu.js.map → MarkdownNotebook-BFplr59s.js.map} +1 -1
  23. package/build/assets/{MissingPartitionError-DvnHZsCQ.js → MissingPartitionError-WQiEtZ4x.js} +2 -2
  24. package/build/assets/{MissingPartitionError-DvnHZsCQ.js.map → MissingPartitionError-WQiEtZ4x.js.map} +1 -1
  25. package/build/assets/{MockChartModel-aVTbWE3h.js → MockChartModel-CiVGzyGY.js} +2 -2
  26. package/build/assets/{MockChartModel-aVTbWE3h.js.map → MockChartModel-CiVGzyGY.js.map} +1 -1
  27. package/build/assets/{PasteKeyHandler-C2c93kPX.js → PasteKeyHandler-BqFgWAgD.js} +2 -2
  28. package/build/assets/{PasteKeyHandler-C2c93kPX.js.map → PasteKeyHandler-BqFgWAgD.js.map} +1 -1
  29. package/build/assets/{Picker-fFRNaQIf.js → Picker-CEaL2C2g.js} +2 -2
  30. package/build/assets/{Picker-fFRNaQIf.js.map → Picker-CEaL2C2g.js.map} +1 -1
  31. package/build/assets/Plot-9BToFJ0k.js +2 -0
  32. package/build/assets/{Plot-XEkbeMlc.js.map → Plot-9BToFJ0k.js.map} +1 -1
  33. package/build/assets/{Plotly-BIwPNb8O.js → Plotly-DsnOj6lx.js} +2 -2
  34. package/build/assets/{Plotly-BIwPNb8O.js.map → Plotly-DsnOj6lx.js.map} +1 -1
  35. package/build/assets/{StyleGuideRoot-BuzXY_Hc.js → StyleGuideRoot-ZvvkNxEQ.js} +2 -2
  36. package/build/assets/{StyleGuideRoot-BuzXY_Hc.js.map → StyleGuideRoot-ZvvkNxEQ.js.map} +1 -1
  37. package/build/assets/{index-CyLZEMYM.js → index-CigsiC63.js} +4 -4
  38. package/build/assets/{index-CyLZEMYM.js.map → index-CigsiC63.js.map} +1 -1
  39. package/build/assets/{index-CrdwB1d9.js → index-Cp7OPVdh.js} +3 -3
  40. package/build/assets/{index-CrdwB1d9.js.map → index-Cp7OPVdh.js.map} +1 -1
  41. package/build/assets/{index-Bw2lPjhG.js → index-UcyFQIzm.js} +2 -2
  42. package/build/assets/{index-Bw2lPjhG.js.map → index-UcyFQIzm.js.map} +1 -1
  43. package/build/assets/plotly-U5S86gZg.js +7 -0
  44. package/build/assets/{plotly-B_28Woyi.js.map → plotly-U5S86gZg.js.map} +1 -1
  45. package/build/index.html +2 -2
  46. package/package.json +31 -31
  47. package/build/assets/Plot-XEkbeMlc.js +0 -2
  48. package/build/assets/plotly-B_28Woyi.js +0 -7
@@ -0,0 +1,2 @@
1
+ import{c as o}from"./Plotly-DsnOj6lx.js";import{P as t}from"./plotly-U5S86gZg.js";import"./helpers-BosuxZz1.js";import"./vendor-06-vIFQy.js";const a=o(t);export{a as default};
2
+ //# sourceMappingURL=Plot-9BToFJ0k.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plot-XEkbeMlc.js","sources":["../../../chart/dist/plotly/Plot.js"],"sourcesContent":["// Import the react customizable bundle for building, only pull in the modules we need\n// This reduces the build size. Plotly has a lot of modules we don't need/use.\n// https://github.com/plotly/react-plotly.js#customizing-the-plotlyjs-bundle\nimport createPlotlyComponent from \"./createPlotlyComponent.js\";\nimport Plotly from \"./Plotly.js\";\nexport default createPlotlyComponent(Plotly);\n//# sourceMappingURL=Plot.js.map"],"names":["Plot","createPlotlyComponent","Plotly"],"mappings":"6IAKA,MAAAA,EAAeC,EAAsBC,CAAM"}
1
+ {"version":3,"file":"Plot-9BToFJ0k.js","sources":["../../../chart/dist/plotly/Plot.js"],"sourcesContent":["// Import the react customizable bundle for building, only pull in the modules we need\n// This reduces the build size. Plotly has a lot of modules we don't need/use.\n// https://github.com/plotly/react-plotly.js#customizing-the-plotlyjs-bundle\nimport createPlotlyComponent from \"./createPlotlyComponent.js\";\nimport Plotly from \"./Plotly.js\";\nexport default createPlotlyComponent(Plotly);\n//# sourceMappingURL=Plot.js.map"],"names":["Plot","createPlotlyComponent","Plotly"],"mappings":"6IAKA,MAAAA,EAAeC,EAAsBC,CAAM"}
@@ -1,2 +1,2 @@
1
- import{c as t,P as a,b as o,h as e,p as s,o as r,s as l,t as c}from"./plotly-B_28Woyi.js";const n=typeof t=="function"?t:t.default;a.register([o,e,s,r,l,c]);export{n as c};
2
- //# sourceMappingURL=Plotly-BIwPNb8O.js.map
1
+ import{c as t,P as a,b as o,h as e,p as s,o as r,s as l,t as c}from"./plotly-U5S86gZg.js";const n=typeof t=="function"?t:t.default;a.register([o,e,s,r,l,c]);export{n as c};
2
+ //# sourceMappingURL=Plotly-DsnOj6lx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plotly-BIwPNb8O.js","sources":["../../../chart/dist/plotly/createPlotlyComponent.js","../../../chart/dist/plotly/Plotly.js"],"sourcesContent":["// Import the react customizable bundle for building, only pull in the modules we need\n// This reduces the build size. Plotly has a lot of modules we don't need/use.\n// https://github.com/plotly/react-plotly.js#customizing-the-plotlyjs-bundle\nimport createPlotlyComponent from 'react-plotly.js/factory.js';\n\n// Webpack 5 (used in docusaurus) gives an object w/ a default key\n// This is probably something on react-plotly.js's side\n// Or because we lazy load this and Docusaurus ends up w/ some complications between ESM and CJS\nexport default typeof createPlotlyComponent === 'function' ? createPlotlyComponent :\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\ncreatePlotlyComponent.default;\n//# sourceMappingURL=createPlotlyComponent.js.map","/* eslint-disable @typescript-eslint/ban-ts-comment */\n/* eslint-disable global-require */\n// Create a partial plot with only the kinds of charts we need\n// https://github.com/plotly/plotly.js/#modules\n\n// Plotly types don't export anything other than core, so ignore the import type errors\nimport Plotly from 'plotly.js/lib/core.js';\n// @ts-ignore\nimport bar from 'plotly.js/lib/bar.js';\n// @ts-ignore\nimport histogram from 'plotly.js/lib/histogram.js';\n// @ts-ignore\nimport pie from 'plotly.js/lib/pie.js';\n// @ts-ignore\nimport ohlc from 'plotly.js/lib/ohlc.js';\n// @ts-ignore\nimport scattergl from 'plotly.js/lib/scattergl.js';\n// @ts-ignore\nimport treemap from 'plotly.js/lib/treemap.js';\n\n// Load in the trace types we need/support\nPlotly.register([bar, histogram, pie, ohlc, scattergl, treemap]);\nexport default Plotly;\n//# sourceMappingURL=Plotly.js.map"],"names":["createPlotlyComponent","Plotly","bar","histogram","pie","ohlc","scattergl","treemap"],"mappings":"0FAQA,MAAAA,EAAe,OAAOA,GAA0B,WAAaA,EAG7DA,EAAsB,QCUtBC,EAAO,SAAS,CAACC,EAAKC,EAAWC,EAAKC,EAAMC,EAAWC,CAAO,CAAC"}
1
+ {"version":3,"file":"Plotly-DsnOj6lx.js","sources":["../../../chart/dist/plotly/createPlotlyComponent.js","../../../chart/dist/plotly/Plotly.js"],"sourcesContent":["// Import the react customizable bundle for building, only pull in the modules we need\n// This reduces the build size. Plotly has a lot of modules we don't need/use.\n// https://github.com/plotly/react-plotly.js#customizing-the-plotlyjs-bundle\nimport createPlotlyComponent from 'react-plotly.js/factory.js';\n\n// Webpack 5 (used in docusaurus) gives an object w/ a default key\n// This is probably something on react-plotly.js's side\n// Or because we lazy load this and Docusaurus ends up w/ some complications between ESM and CJS\nexport default typeof createPlotlyComponent === 'function' ? createPlotlyComponent :\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\ncreatePlotlyComponent.default;\n//# sourceMappingURL=createPlotlyComponent.js.map","/* eslint-disable @typescript-eslint/ban-ts-comment */\n/* eslint-disable global-require */\n// Create a partial plot with only the kinds of charts we need\n// https://github.com/plotly/plotly.js/#modules\n\n// Plotly types don't export anything other than core, so ignore the import type errors\nimport Plotly from 'plotly.js/lib/core.js';\n// @ts-ignore\nimport bar from 'plotly.js/lib/bar.js';\n// @ts-ignore\nimport histogram from 'plotly.js/lib/histogram.js';\n// @ts-ignore\nimport pie from 'plotly.js/lib/pie.js';\n// @ts-ignore\nimport ohlc from 'plotly.js/lib/ohlc.js';\n// @ts-ignore\nimport scattergl from 'plotly.js/lib/scattergl.js';\n// @ts-ignore\nimport treemap from 'plotly.js/lib/treemap.js';\n\n// Load in the trace types we need/support\nPlotly.register([bar, histogram, pie, ohlc, scattergl, treemap]);\nexport default Plotly;\n//# sourceMappingURL=Plotly.js.map"],"names":["createPlotlyComponent","Plotly","bar","histogram","pie","ohlc","scattergl","treemap"],"mappings":"0FAQA,MAAAA,EAAe,OAAOA,GAA0B,WAAaA,EAG7DA,EAAsB,QCUtBC,EAAO,SAAS,CAACC,EAAKC,EAAWC,EAAKC,EAAMC,EAAWC,CAAO,CAAC"}
@@ -1,4 +1,4 @@
1
- var br=Object.defineProperty;var jr=(t,o,r)=>o in t?br(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r;var q=(t,o,r)=>jr(t,typeof o!="symbol"?o+"":o,r);import{r as i,a7 as b,K as J,I as e,at as _e,aP as S,U as Se,b9 as z,ad as rr,a9 as F,M as I,b3 as go,b2 as W,bj as Te,a1 as jo,bD as yr,aR as O,ap as yo,a8 as H,aq as wo,aS as wr,ar as Co,a6 as Be,au as N,bl as Cr,c0 as tr,bk as ne,c1 as so,c2 as Sr,c3 as kr,c4 as Tr,c5 as ie,c6 as Nr,c7 as Ue,c8 as L,ay as Ir,as as Dr,bh as ao,ax as Er,b8 as Ar,a4 as Mr,a5 as Rr,aZ as $r,ba as Pr,ao as Lr,bB as _r,ae as Br,_ as Vr,W as Fr}from"./vendor-06-vIFQy.js";import{bB as So,bC as ae,bD as le,br as Me,ak as Or,bE as xo,bF as po,bG as sr,bl as Hr,bH as ko,bI as To,bJ as No,a3 as lo,bK as Ur,bL as Gr,V as zr,bM as Wr,bN as Kr,bo as Io,bO as no,aS as qr,f as Xr,bP as Yr,s as Zr}from"./index-CrdwB1d9.js";import{a as Qr}from"./monaco-DaE0jI-i.js";import{d as He,G as ar,m as ce,S as pe,L as Jr,I as Ge,b as Re}from"./IrisGridModel-C29Knup_.js";import{B as w,u as vo,t as me,r as ge,a$ as B,K as V,aw as $e,au as Do,Y as Eo,c0 as Ao,_ as et,C as U,b4 as Ne,S as Pe,aV as ot,ax as rt,d as Mo,J as lr,V as Ro,H as Ve,G as C,c7 as de,b6 as ze,b9 as tt,aI as st,a4 as at,aK as lt}from"./ControlType-dZUYFjWs.js";import{M as $o,H as nt,A as it,m as ct,D as dt,g as ht,d as ut,n as mt,V as $,R as gt,e as xt,L as We,i as pt,T as ve,E as X,C as Ke,f as vt,h as ft}from"./MockChartModel-aVTbWE3h.js";import{P as io,p as Po,g as bt,v as jt,w as yt,x as A,Q as wt,L as Ct,D as St}from"./IrisGridShortcuts-C-HT1iXy.js";import{G as xe,T as kt}from"./Grid-Tx2xMiLi.js";import{m as nr,O as _,C as co,b as Tt,S as Nt,c as we,P as Lo,i as It,f as Dt,M as Ie,h as Et,L as At}from"./PasteKeyHandler-C2c93kPX.js";import{b as Mt,T as Rt,k as $t}from"./LocalWorkspaceStorage-CGX54FlI.js";import"./helpers-BosuxZz1.js";import"./useMergeRef-BWn972oh.js";function _o(t,o,r,s,a,l,n){try{var c=t[l](n),d=c.value}catch(m){return void r(m)}c.done?o(d):Promise.resolve(d).then(s,a)}function qe(t){return function(){var o=this,r=arguments;return new Promise(function(s,a){var l=t.apply(o,r);function n(d){_o(l,s,a,n,c,"next",d)}function c(d){_o(l,s,a,n,c,"throw",d)}n(void 0)})}}function Z(t,o,r){return(o=Pt(o))in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}function Pt(t){var o=Lt(t,"string");return typeof o=="symbol"?o:o+""}function Lt(t,o){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var s=r.call(t,o);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}class fo extends He{constructor(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=o.rowCount,s=r===void 0?1e9:r,a=o.columnCount,l=a===void 0?100:a,n=o.floatingTopRowCount,c=n===void 0?0:n,d=o.floatingBottomRowCount,m=d===void 0?0:d,h=o.floatingLeftColumnCount,u=h===void 0?0:h,x=o.floatingRightColumnCount,v=x===void 0?0:x,y=o.isEditable,g=y===void 0?!1:y,f=o.editedData,p=f===void 0?[]:f;super(),Z(this,"numRows",void 0),Z(this,"numColumns",void 0),Z(this,"floatingTop",void 0),Z(this,"floatingBottom",void 0),Z(this,"floatingLeft",void 0),Z(this,"floatingRight",void 0),Z(this,"editable",void 0),Z(this,"editedData",void 0),this.numRows=s,this.numColumns=l,this.floatingTop=c,this.floatingBottom=m,this.floatingLeft=u,this.floatingRight=v,this.editable=g,this.editedData=p}get rowCount(){return this.numRows}get columnCount(){return this.numColumns}get floatingTopRowCount(){return this.floatingTop}get floatingBottomRowCount(){return this.floatingBottom}get floatingLeftColumnCount(){return this.floatingLeft}get floatingRightColumnCount(){return this.floatingRight}get isEditable(){return this.editable}textForCell(o,r){var s,a;return(s=(a=this.editedData[o])===null||a===void 0?void 0:a[r])!==null&&s!==void 0?s:"".concat(o,",").concat(r)}colorForCell(o,r,s){return s.textColor}textForColumnHeader(o){return"".concat(o)}textForRowHeader(o){return"".concat(o)}textForRowFooter(o){return"".concat(o)}setValueForCell(o,r,s){var a=this;return qe(function*(){a.editedData[o]==null&&(a.editedData[o]=[]),a.editedData[o][r]="".concat(s)})()}setValueForRanges(o,r){var s=this;return qe(function*(){ar.forEachCell(o,(a,l)=>{s.setValueForCell(a,l,r)})})()}setValues(o){var r=this;return qe(function*(){for(var s=0;s<o.length;s+=1){var a,l,n=o[s];r.setValueForCell((a=n.column)!==null&&a!==void 0?a:n.x,(l=n.row)!==null&&l!==void 0?l:n.y,n.text)}})()}editValueForCell(o,r){return this.textForCell(o,r)}isValidForCell(o,r,s){return!0}isEditableRange(o){return this.isEditable}delete(o){throw new Error("Method not implemented.")}}function _t(t,o){return Ot(t)||Ft(t,o)||Vt(t,o)||Bt()}function Bt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ var br=Object.defineProperty;var jr=(t,o,r)=>o in t?br(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r;var q=(t,o,r)=>jr(t,typeof o!="symbol"?o+"":o,r);import{r as i,a7 as b,K as J,I as e,at as _e,aP as S,U as Se,b9 as z,ad as rr,a9 as F,M as I,b3 as go,b2 as W,bj as Te,a1 as jo,bD as yr,aR as O,ap as yo,a8 as H,aq as wo,aS as wr,ar as Co,a6 as Be,au as N,bl as Cr,c0 as tr,bk as ne,c1 as so,c2 as Sr,c3 as kr,c4 as Tr,c5 as ie,c6 as Nr,c7 as Ue,c8 as L,ay as Ir,as as Dr,bh as ao,ax as Er,b8 as Ar,a4 as Mr,a5 as Rr,aZ as $r,ba as Pr,ao as Lr,bB as _r,ae as Br,_ as Vr,W as Fr}from"./vendor-06-vIFQy.js";import{bB as So,bC as ae,bD as le,br as Me,ak as Or,bE as xo,bF as po,bG as sr,bl as Hr,bH as ko,bI as To,bJ as No,a3 as lo,bK as Ur,bL as Gr,V as zr,bM as Wr,bN as Kr,bo as Io,bO as no,aS as qr,f as Xr,bP as Yr,s as Zr}from"./index-Cp7OPVdh.js";import{a as Qr}from"./monaco-DaE0jI-i.js";import{d as He,G as ar,m as ce,S as pe,L as Jr,I as Ge,b as Re}from"./IrisGridModel-kzL_YY9W.js";import{B as w,u as vo,t as me,r as ge,a$ as B,K as V,aw as $e,au as Do,Y as Eo,c0 as Ao,_ as et,C as U,b4 as Ne,S as Pe,aV as ot,ax as rt,d as Mo,J as lr,V as Ro,H as Ve,G as C,c7 as de,b6 as ze,b9 as tt,aI as st,a4 as at,aK as lt}from"./ControlType-2pbllduF.js";import{M as $o,H as nt,A as it,m as ct,D as dt,g as ht,d as ut,n as mt,V as $,R as gt,e as xt,L as We,i as pt,T as ve,E as X,C as Ke,f as vt,h as ft}from"./MockChartModel-CiVGzyGY.js";import{P as io,p as Po,g as bt,v as jt,w as yt,x as A,Q as wt,L as Ct,D as St}from"./IrisGridShortcuts-ClKtZcnx.js";import{G as xe,T as kt}from"./Grid-upe8VzU9.js";import{m as nr,O as _,C as co,b as Tt,S as Nt,c as we,P as Lo,i as It,f as Dt,M as Ie,h as Et,L as At}from"./PasteKeyHandler-BqFgWAgD.js";import{b as Mt,T as Rt,k as $t}from"./LocalWorkspaceStorage-8vwke8rq.js";import"./helpers-BosuxZz1.js";import"./useMergeRef-BWn972oh.js";function _o(t,o,r,s,a,l,n){try{var c=t[l](n),d=c.value}catch(m){return void r(m)}c.done?o(d):Promise.resolve(d).then(s,a)}function qe(t){return function(){var o=this,r=arguments;return new Promise(function(s,a){var l=t.apply(o,r);function n(d){_o(l,s,a,n,c,"next",d)}function c(d){_o(l,s,a,n,c,"throw",d)}n(void 0)})}}function Z(t,o,r){return(o=Pt(o))in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}function Pt(t){var o=Lt(t,"string");return typeof o=="symbol"?o:o+""}function Lt(t,o){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var s=r.call(t,o);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}class fo extends He{constructor(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=o.rowCount,s=r===void 0?1e9:r,a=o.columnCount,l=a===void 0?100:a,n=o.floatingTopRowCount,c=n===void 0?0:n,d=o.floatingBottomRowCount,m=d===void 0?0:d,h=o.floatingLeftColumnCount,u=h===void 0?0:h,x=o.floatingRightColumnCount,v=x===void 0?0:x,y=o.isEditable,g=y===void 0?!1:y,f=o.editedData,p=f===void 0?[]:f;super(),Z(this,"numRows",void 0),Z(this,"numColumns",void 0),Z(this,"floatingTop",void 0),Z(this,"floatingBottom",void 0),Z(this,"floatingLeft",void 0),Z(this,"floatingRight",void 0),Z(this,"editable",void 0),Z(this,"editedData",void 0),this.numRows=s,this.numColumns=l,this.floatingTop=c,this.floatingBottom=m,this.floatingLeft=u,this.floatingRight=v,this.editable=g,this.editedData=p}get rowCount(){return this.numRows}get columnCount(){return this.numColumns}get floatingTopRowCount(){return this.floatingTop}get floatingBottomRowCount(){return this.floatingBottom}get floatingLeftColumnCount(){return this.floatingLeft}get floatingRightColumnCount(){return this.floatingRight}get isEditable(){return this.editable}textForCell(o,r){var s,a;return(s=(a=this.editedData[o])===null||a===void 0?void 0:a[r])!==null&&s!==void 0?s:"".concat(o,",").concat(r)}colorForCell(o,r,s){return s.textColor}textForColumnHeader(o){return"".concat(o)}textForRowHeader(o){return"".concat(o)}textForRowFooter(o){return"".concat(o)}setValueForCell(o,r,s){var a=this;return qe(function*(){a.editedData[o]==null&&(a.editedData[o]=[]),a.editedData[o][r]="".concat(s)})()}setValueForRanges(o,r){var s=this;return qe(function*(){ar.forEachCell(o,(a,l)=>{s.setValueForCell(a,l,r)})})()}setValues(o){var r=this;return qe(function*(){for(var s=0;s<o.length;s+=1){var a,l,n=o[s];r.setValueForCell((a=n.column)!==null&&a!==void 0?a:n.x,(l=n.row)!==null&&l!==void 0?l:n.y,n.text)}})()}editValueForCell(o,r){return this.textForCell(o,r)}isValidForCell(o,r,s){return!0}isEditableRange(o){return this.isEditable}delete(o){throw new Error("Method not implemented.")}}function _t(t,o){return Ot(t)||Ft(t,o)||Vt(t,o)||Bt()}function Bt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vt(t,o){if(t){if(typeof t=="string")return Bo(t,o);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bo(t,o):void 0}}function Bo(t,o){(o==null||o>t.length)&&(o=t.length);for(var r=0,s=Array(o);r<o;r++)s[r]=t[r];return s}function Ft(t,o){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var s,a,l,n,c=[],d=!0,m=!1;try{if(l=(r=r.call(t)).next,o!==0)for(;!(d=(s=l.call(r)).done)&&(c.push(s.value),c.length!==o);d=!0);}catch(h){m=!0,a=h}finally{try{if(!d&&r.return!=null&&(n=r.return(),Object(n)!==n))return}finally{if(m)throw a}}return c}}function Ot(t){if(Array.isArray(t))return t}function M(t,o,r){return(o=Ht(o))in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}function Ht(t){var o=Ut(t,"string");return typeof o=="symbol"?o:o+""}function Ut(t,o){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var s=r.call(t,o);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}class E extends fo{constructor(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=o.rowCount,s=r===void 0?E.DEFAULT_ROW_COUNT:r,a=o.columnCount,l=a===void 0?E.DEFAULT_COLUMN_COUNT:a,n=o.children,c=n===void 0?new Map:n,d=o.childRowCount,m=d===void 0?Math.ceil(Math.max(E.MIN_CHILD_ROW_COUNT,s*E.DEFAULT_CHILD_ROW_COUNT_FACTOR)):d,h=o.maxDepth,u=h===void 0?E.MAX_DEPTH:h;super({rowCount:s,columnCount:l}),M(this,"children",void 0),M(this,"childRowCount",void 0),M(this,"maxDepth",void 0),M(this,"getCachedModelRowOffset",ce((x,v)=>{for(var y=null,g=v,f=[...x].sort((oe,K)=>oe[0]-K[0]),p=0;p<f.length;p+=1){var k=_t(f[p],2),T=k[0],ee=k[1];if(g<=T)break;var P=ee.rowCount;if(g<=T+P){y=T,g=g-T-1;break}g-=P}return{key:y,offsetRow:g}},{max:1e4})),M(this,"getCachedTextForRowHeader",ce((x,v)=>{var y=this.getCachedModelRowOffset(x,v),g=y.key,f=y.offsetRow;if(g!=null){var p=x.get(g);if(p!==void 0)return"".concat(g,".").concat(p.textForRowHeader(f))}return"".concat(f)},{max:1e4})),M(this,"getCachedTextForCell",ce((x,v,y)=>{var g=this.getCachedModelRowOffset(x,y),f=g.key,p=g.offsetRow;if(f!=null){var k=x.get(f);if(k!==void 0)return"".concat(f,".").concat(k.textForCell(v,p))}return"".concat(v,",").concat(p)},{max:1e4})),M(this,"getCachedIsRowExpandable",ce((x,v,y)=>{var g=this.getCachedDepthForRow(x,v);return g<y},{max:1e4})),M(this,"getCachedIsRowExpanded",ce((x,v)=>{var y=this.getCachedModelRowOffset(x,v),g=y.key,f=y.offsetRow;if(g!=null){var p=x.get(g);if(p!==void 0)return p.isRowExpanded(f)}return x.has(f)},{max:1e4})),M(this,"getCachedDepthForRow",ce((x,v)=>{var y=this.getCachedModelRowOffset(x,v),g=y.key,f=y.offsetRow;if(g!=null){var p=x.get(g);if(p!==void 0)return p.depthForRow(f)+1}return 0},{max:1e4})),this.children=c,this.childRowCount=m,this.maxDepth=u}textForCell(o,r){return this.getCachedTextForCell(this.children,o,r)}textForRowHeader(o){return this.getCachedTextForRowHeader(this.children,o)}isRowMovable(o){return!1}get hasExpandableRows(){return!0}get isExpandAllAvailable(){return!1}get floatingBottomRowCount(){return 0}isRowExpandable(o){return this.getCachedIsRowExpandable(this.children,o,this.maxDepth)}isRowExpanded(o){return this.getCachedIsRowExpanded(this.children,o)}setRowExpanded(o,r){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=this.getCachedModelRowOffset(this.children,o),l=a.key,n=a.offsetRow,c=new Map(this.children);if(l!=null){var d=this.children.get(l);if(d!==void 0){var m=d.rowCount;d.setRowExpanded(n,r,s),this.numRows+=d.rowCount-m}}else if(r){var u=new E({rowCount:this.childRowCount,columnCount:this.numColumns});c.set(n,u),this.numRows+=u.rowCount}else{var h=c.get(n);h!==void 0&&(this.numRows-=h.rowCount,c.delete(n))}this.children=c}expandAll(){throw new Error("Expand all not implemented.")}collapseAll(){throw new Error("Collapse all not implemented.")}depthForRow(o){return this.getCachedDepthForRow(this.children,o)}}M(E,"DEFAULT_ROW_COUNT",1e9);M(E,"DEFAULT_COLUMN_COUNT",100);M(E,"DEFAULT_CHILD_ROW_COUNT_FACTOR",.01);M(E,"MIN_CHILD_ROW_COUNT",10);M(E,"MAX_DEPTH",10);function Xe(t,o,r){return(o=Gt(o))in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}function Gt(t){var o=zt(t,"string");return typeof o=="symbol"?o:o+""}function zt(t,o){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var s=r.call(t,o);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}class Wt extends He{constructor(o,r){var s;super(),Xe(this,"data",void 0),Xe(this,"columnHeaders",void 0),Xe(this,"numberOfColumns",void 0),this.data=o,this.numberOfColumns=Math.max(...o.map(a=>a.length),(s=r==null?void 0:r.length)!==null&&s!==void 0?s:0),this.columnHeaders=r}get rowCount(){return this.data.length}get columnCount(){return this.numberOfColumns}textForCell(o,r){var s;return"".concat((s=this.data[r])===null||s===void 0?void 0:s[o])}textForColumnHeader(o){var r,s;return(r=(s=this.columnHeaders)===null||s===void 0?void 0:s[o])!==null&&r!==void 0?r:""}}function Ye(t,o,r){return(o=Kt(o))in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}function Kt(t){var o=qt(t,"string");return typeof o=="symbol"?o:o+""}function qt(t,o){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var s=r.call(t,o);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}class Xt extends He{constructor(o,r){super(),Ye(this,"numberOfColumns",void 0),Ye(this,"numberOfRows",void 0),Ye(this,"viewportData",void 0),this.numberOfColumns=o,this.numberOfRows=r}get columnCount(){return this.numberOfColumns}get rowCount(){return this.numberOfRows}textForCell(o,r){var s,a,l,n,c,d,m=r-((s=(a=this.viewportData)===null||a===void 0?void 0:a.rowOffset)!==null&&s!==void 0?s:0),h=o-((l=(n=this.viewportData)===null||n===void 0?void 0:n.columnOffset)!==null&&l!==void 0?l:0);return"".concat((c=(d=this.viewportData)===null||d===void 0||(d=d.data[m])===null||d===void 0?void 0:d[h])!==null&&c!==void 0?c:"")}textForColumnHeader(o){return"".concat(o)}textForRowHeader(o){return"".concat(o)}}function R(t,o,r){return(o=Yt(o))in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}function Yt(t){var o=Zt(t,"string");return typeof o=="symbol"?o:o+""}function Zt(t,o){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var s=r.call(t,o);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}var Qt="proportional",Jt=nr.positiveBarColor,es=nr.negativeBarColor,os="beside",rs="LTR",ts="right";function ss(t){return Array.isArray(t)&&t.every(o=>typeof o=="number")}class as extends He{constructor(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Map,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new Map,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:new Map,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Map,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Map,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:new Map,m=arguments.length>8&&arguments[8]!==void 0?arguments[8]:new Map;super(),R(this,"numberOfColumns",void 0),R(this,"numberOfRows",void 0),R(this,"data",void 0),R(this,"columnMins",void 0),R(this,"columnMaxs",void 0),R(this,"columnAxes",void 0),R(this,"valuePlacements",void 0),R(this,"directions",void 0),R(this,"positiveColors",void 0),R(this,"negativeColors",void 0),R(this,"opacities",void 0),R(this,"textAlignments",void 0),R(this,"markers",void 0),this.positiveColors=s,this.negativeColors=a,this.data=o,this.columnAxes=r,this.valuePlacements=l,this.opacities=n,this.directions=c,this.textAlignments=d,this.markers=m,this.numberOfRows=Math.max(...o.map(x=>x.length)),this.numberOfColumns=o.length,this.columnMins=new Map,this.columnMaxs=new Map;for(var h=0;h<o.length;h+=1){var u=o[h];ss(u)&&(this.columnMins.set(h,Math.min(...u)),this.columnMaxs.set(h,Math.max(...u)))}}get rowCount(){return this.numberOfRows}get columnCount(){return this.numberOfColumns}textForCell(o,r){var s;return"".concat((s=this.data[o])===null||s===void 0?void 0:s[r])}textForColumnHeader(o){return"".concat(o)}textAlignForCell(o,r){var s;return(s=this.textAlignments.get(o))!==null&&s!==void 0?s:ts}renderTypeForCell(o,r){return o<20||o%2===r%2?"dataBar":"text"}dataBarOptionsForCell(o,r){var s,a,l,n,c,d,m,h=So(this.columnMins,o),u=So(this.columnMaxs,o),x=(s=this.columnAxes.get(o))!==null&&s!==void 0?s:Qt,v=(a=this.valuePlacements.get(o))!==null&&a!==void 0?a:os,y=this.opacities.get(o);y==null||y>1?y=1:y<0&&(y=0);var g=(l=this.directions.get(o))!==null&&l!==void 0?l:rs,f=(n=this.positiveColors.get(o))!==null&&n!==void 0?n:Jt,p=(c=this.negativeColors.get(o))!==null&&c!==void 0?c:es,k=Number((d=this.data[o])===null||d===void 0?void 0:d[r]),T=k>=0?f:p,ee=(m=this.markers.get(o))!==null&&m!==void 0?m:[],P=Array.isArray(T)&&T.length>1,oe;return P?oe=k>=0?T[T.length-1]:T[0]:oe=Array.isArray(T)?T[0]:T,{columnMin:h,columnMax:u,axis:x,color:T,textColor:oe,valuePlacement:v,opacity:y,markers:ee,direction:g,value:k}}}const ls="isolated-section-query",ir="sample-section";function*ke(t,o){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=r.length;for(let a=t;a<=o;a+=1){const l=a%s;let n=String(Math.floor(a/s));n==="0"&&(n="");const c=r[l],d=`${c}${n}`,m=`${c.repeat(3)}${n}`;yield i.createElement(b,{key:d,textValue:m,children:m})}}function*bo(t,o={}){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=r.length,a=Object.keys(ae);for(let l=0;l<t;l+=1){const n=l%s;let c=String(Math.floor(l/s));c==="0"&&(c="");const d=r[n],m=`${d}${c}`,h=o.icons===!0?a[l%a.length]:void 0,u=o.descriptions===!0?`Description ${m}`:void 0,x=h??`${d.repeat(3)}${c}`;yield{key:m,item:{key:(l+1)*100,content:x,textValue:x,description:u,icon:h}}}}function*cr(t=1){for(;;)t=t*16807%2147483647,yield t/2147483647}function Vo(){return window.location.search.includes("isolateSection=true")?window.location.hash.replace(/^#/,""):""}function dr(){const[t,o]=i.useState(Vo);return i.useEffect(()=>{const r=()=>o(Vo());return window.addEventListener("hashchange",r),()=>window.removeEventListener("hashchange",r)},[]),t}function ns(t=1){const[o]=i.useState(()=>cr(t));return i.useCallback(()=>{const r=o.next();if(r.done===!0)throw new Error("Random number generator unexpectedly finished");return r.value},[o])}function hr(t){return`${ir}-${t.toLocaleLowerCase().replaceAll(" ","-")}`}function ur(t,o=[]){const r=hr(t),s=J(ir,...o);return{id:r,className:s}}function is(t,o=[]){const{id:r,className:s}=ur(t,o);return{id:r,UNSAFE_className:s}}function j({name:t,className:o="",component:r="div",...s}){const a=dr(),l=hr(t);if(!(a===""||a===l))return null;const c=r==="div"?ur:is;return e.jsx(r,{...s,...c(t,[o])})}function D(){}class Ce extends i.Component{static renderButtons(){return e.jsxs(e.Fragment,{children:[e.jsx("h5",{children:"Button Kinds"}),e.jsx(j,{name:"buttons-regular",style:{padding:"1rem 0"},children:e.jsxs(_e,{children:[e.jsx(w,{kind:"primary",onClick:D,children:"Primary"}),e.jsx(w,{kind:"secondary",onClick:D,children:"Secondary"}),e.jsx(w,{kind:"tertiary",onClick:D,children:"Tertiary"}),e.jsx(w,{kind:"success",onClick:D,children:"Success"}),e.jsx(w,{kind:"danger",onClick:D,children:"Danger"}),e.jsx(w,{kind:"inline",onClick:D,children:"Inline"}),e.jsx(w,{kind:"ghost",onClick:D,children:"Ghost"})]})})]})}static renderLinks(){const o={primary:"accent",secondary:"neutral",success:"positive",info:"info",warning:"notice",danger:"negative"};return e.jsxs(j,{name:"links",style:{paddingTop:"1rem"},children:[e.jsx("h5",{children:"Links"}),e.jsx(S,{gap:"1rem",children:Object.entries(o).map(([r,s])=>e.jsxs("a",{className:`text-${r}`,children:[r," (",s,")"]},r))})]})}static renderSocketedButtons(){return e.jsxs(j,{name:"buttons-socketed",children:[e.jsx("h5",{children:"Socketed Buttons (for linker)"}),e.jsxs(_e,{marginBottom:"1rem",children:[e.jsx(pe,{onClick:D,children:"Unlinked"}),e.jsx(pe,{isLinked:!0,onClick:D,children:"Linked"}),e.jsx(pe,{isLinkedSource:!0,onClick:D,children:"Linked Source"}),e.jsx(pe,{isLinked:!0,isInvalid:!0,onClick:D,children:"Error"}),e.jsx(pe,{disabled:!0,onClick:D,children:"Disabled"})]})]})}constructor(o){super(o),this.state={toggle:!0}}renderInlineButtons(){const{toggle:o}=this.state;return e.jsxs(j,{name:"buttons-inline",style:{padding:"1rem 0"},children:[e.jsx("h5",{children:"Inline Buttons"}),"Regular btn-inline:",e.jsx(w,{className:"mx-2",kind:"inline",icon:le,tooltip:"test",onClick:D}),"Toggle button (class active):",e.jsx(w,{className:"mx-2",onClick:()=>{this.setState({toggle:!o})},active:o,kind:"inline",icon:le,tooltip:"test"}),"Disabled:",e.jsx(w,{className:"mx-2",kind:"inline",disabled:!0,onClick:D,children:"Disabled"}),"With Text:",e.jsx(w,{className:"mx-2",kind:"inline",icon:le,onClick:D,children:e.jsx("span",{children:"Text Button"})}),e.jsx("br",{}),e.jsx("br",{}),e.jsx("span",{children:"btn-link-icon (no text):"}),e.jsx(w,{kind:"ghost",icon:le,tooltip:"test",onClick:D}),e.jsx("span",{className:"mx-2",children:"btn-link:"}),e.jsx(w,{kind:"ghost",onClick:D,children:"Text Button"}),e.jsx("span",{className:"mx-2",children:"btn-link (text w/ optional with icon):"}),e.jsx(w,{kind:"ghost",icon:le,onClick:D,children:"Text Button"})]})}render(){const o=Ce.renderButtons(),r=this.renderInlineButtons(),s=Ce.renderSocketedButtons(),a=Ce.renderLinks();return e.jsxs("div",{children:[e.jsx("h2",{className:"ui-title",children:"Buttons"}),e.jsxs("div",{style:{padding:"1rem 0"},children:[o,r,s,a]})]})}}function cs(){const t=vo();$o.random=ns();const[o]=i.useState(()=>new $o(t));return e.jsxs(j,{name:"charts",children:[e.jsx("h2",{className:"ui-title",children:"Chart"}),e.jsx("div",{style:{height:500},children:e.jsx(Jr,{model:o})})]})}const ho="2px solid var(--dh-color-notice-bg)",ds={"--dh-color-black":"gray","--dh-color-white":"gray","--dh-color-border":"General","--dh-color-bg":"General","--dh-color-surface-bg":"General","--dh-color-fg":"General","--dh-color-content-bg":"General","--dh-color-subdued-content-bg":"General","--dh-color-dropshadow":"General","--dh-color-keyboard-selected-bg":"Misc","--dh-color-hover-border":"Misc","--dh-color-visual-positive":"Visual Status","--dh-color-visual-negative":"Visual Status","--dh-color-visual-notice":"Visual Status","--dh-color-visual-info":"Visual Status","--dh-color-gray-bg":"Default Background","--dh-color-red-bg":"Default Background","--dh-color-orange-bg":"Default Background","--dh-color-yellow-bg":"Default Background","--dh-color-chartreuse-bg":"Default Background","--dh-color-celery-bg":"Default Background","--dh-color-green-bg":"Default Background","--dh-color-seafoam-bg":"Default Background","--dh-color-cyan-bg":"Default Background","--dh-color-blue-bg":"Default Background","--dh-color-indigo-bg":"Default Background","--dh-color-purple-bg":"Default Background","--dh-color-fuchsia-bg":"Default Background","--dh-color-magenta-bg":"Default Background","--dh-color-editor-bg":"editor","--dh-color-editor-fg":"editor","--dh-color-editor-context-menu-bg":"menus","--dh-color-editor-context-menu-fg":"menus","--dh-color-editor-menu-selection-bg":"menus","--dh-color-grid-bg":"grid","--dh-color-grid-number-positive":"Data Types","--dh-color-grid-number-negative":"Data Types","--dh-color-grid-number-zero":"Data Types","--dh-color-grid-date":"Data Types","--dh-color-grid-string-null":"Data Types"},Fo={"--dh-color-black":"","--dh-color-action-active-bg":"Action.active","--dh-color-action-down-bg":"Action:active","--dh-color-action-hover-bg":"Action:hover","--dh-color-action-active-hover-bg":"Action.active:hover","--dh-color-action-disabled-bg":"Action:disabled"},hs={palette:{black:"gray",white:"gray"},editor:{line:"editor",comment:"code",string:"code",number:"code",delimiter:"code",identifier:"code",keyword:"code",operator:"code",storage:"code",predefined:"code",selection:"state",focus:"state"},chart:{axis:"Chart",bg:"Chart",grid:"Chart",plot:"Chart",title:"Chart",active:"Data",trend:"Data",area:"Data",range:"Data",line:"Deprecated"},grid:{data:"Data Bars",context:"Context Menu"},semantic:{},component:{}};function us(t){const o=Me.parseRgba(Me.asRgbOrRgbaString(t)??"");if(o==null||o.a<.5)return"white";const{r,g:s,b:a}=o;return Me.getBrightness([r,s,a])>=128?"black":"white"}function ms(t){const o=getComputedStyle(document.documentElement);return t.split(/[\n;]/g).map(s=>{var a;return(a=/^(?:\s{2}|:root\{)?(--dh-color-(?:[^:]+))/.exec(s))==null?void 0:a[1]}).filter(s=>!!s).map(s=>{const a=o.getPropertyValue(s);return s==="--dh-color-chart-colorway"?Or(a??"").map(([n,c])=>a.substring(n,c+1)).map((n,c)=>({name:`${s}-${c}`,value:n})):{name:s,value:a}}).flat()}function he(t,o,r,s=ds){const a=hs[t];return ms(o).reduce((c,{name:d,value:m})=>{if(/^--dh-color-true-(.*?)$/.test(d)||/^--dh-color-gray-(light|mid|dark)$/.test(d))return c;const h=/^--dh-color-([^-]+)(?:-([^-]+))?/.exec(d);let u=s[d]??(h==null?void 0:h[r])??(h==null?void 0:h[1])??"???";return u=a[u]??u,u==="map"||(c[u]==null&&(c[u]=[]),d in Fo&&c[u].push({isLabel:!0,name:Fo[d],value:""}),/^--dh-color-gray-(light|mid|dark)$/.test(d))||c[u].push({name:d,value:m}),c},{})}function gs(){const t=i.useRef(null);return i.useLayoutEffect(()=>{if(t.current==null)return;const o=getComputedStyle(t.current),{backgroundColor:r}=o;t.current.style.color=us(r)},[]),t}function xs(t,o){const[r,s]=i.useState();return i.useEffect(()=>{var c;if(t.current==null)return;const a=getComputedStyle(t.current,o).getPropertyValue("content"),l=(c=/"(--dh-color-.*?)[,"]/.exec(a))==null?void 0:c[1];if(l==null)return;const n=getComputedStyle(t.current).getPropertyValue(l);s(n)},[t,o]),r}function Ze({className:t,children:o}){const r=gs(),s=xs(r,":after"),a=i.useMemo(()=>s!=null?{value:s}:null,[s]),l=a!=null&&a.value!=="";return e.jsxs("div",{ref:r,className:t,style:{border:l?void 0:ho},children:[l&&e.jsx(me,{interactive:!0,children:e.jsx("div",{children:a.value})}),o]})}function ps(){const t=["100","200","300","400","500","600","700","800","850","8XX","900"].map(s=>e.jsx(Ze,{className:J("swatch","gray-swatch",`gray-swatch-${s}`),children:s==="8XX"?"N/A":`Gray-${s}`},s)),o=["red","orange","yellow","green","blue","purple","white","black"].map(s=>e.jsx(Ze,{className:J("swatch",`swatch-${s}`),children:s},s)),r=["content-bg","background","foreground","primary","primary-dark","secondary","secondary-hover","success","info","warning","danger","danger-hover"].map(s=>e.jsx(Ze,{className:J("swatch",`swatch-${s}`),children:s},s));return e.jsxs(j,{name:"colors",children:[e.jsx("h2",{className:"ui-title",children:"Colors"}),e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col",children:[t,o]}),e.jsx("div",{className:"col",children:r}),e.jsx("div",{className:"col",children:e.jsx("p",{children:"This section is for legacy reference only. Use the css variable based semantic colors in the following sections. You should not be using colors defined in the theme color palette directly."})})]})]})}class vs extends i.Component{constructor(o){super(o),this.makeContextMenuItems=this.makeContextMenuItems.bind(this)}makeContextMenuItems(o){const r=o!==void 0?` ${o}`:"";return[{title:`Show Alert${r}`,icon:xo,action:()=>{alert(`Alert${r}!`)},shortcut:new ge({id:"STYLEGUIDE.SHOW_ALERT",name:"Show Alert",shortcut:[B.CTRL,V.A],macShortcut:[B.CMD,V.A]})},{title:`Log Message${r}`,icon:po,action:()=>{console.log(`Logging a message${r}!`)},shortcut:new ge({id:"STYLEGUIDE.LOG_MESSAGE",name:"Log Message",shortcut:[B.CTRL,V.L],macShortcut:[B.CMD,V.L]})},{title:"Sub-menu",actions:()=>this.makeContextMenuItems((o??0)+1),order:3}].concat(new Array(10).fill({title:`Disabled Option${r}`,disabled:!0,order:2}))}render(){const o=this.makeContextMenuItems(),s=[{title:"Show Shortcuts",icon:sr,action:()=>{alert("Show keyboard shortcuts!")},shortcut:new ge({id:"STYLEGUIDE.SHOW_SHORTCUTS",name:"Show Shortcuts",shortcut:[B.CTRL,V.SLASH],macShortcut:[B.CMD,V.SLASH]}),group:$e.groups.global}].concat(o),a=()=>new Promise(l=>{setTimeout(()=>{l(o)},3e3)});return e.jsxs(j,{name:"context-menus",children:[e.jsx("h2",{className:"ui-title",children:"Context Menu"}),e.jsxs(w,{kind:"primary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{},children:["Right Click Me",e.jsx($e,{actions:s})]}),e.jsxs(w,{kind:"tertiary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{},children:["Right Click Me",e.jsx($e,{actions:a})]})]})}}class fs extends i.Component{constructor(o){super(o),this.sampleInput=Se.createRef(),this.handleUpdateCheckboxMap=this.handleUpdateCheckboxMap.bind(this);const r=["Parent A",new Map([["Child 1",!0],["Child 2",!1]])],s=["Parent B",new Map([["Child 3",!0],["Child 4",!1],["Child 5",!0],["Child 6",!1]])],a=["Leaf Parent",!0];this.state={isShown:!1,isPickerShown:!1,checkBoxMap:new Map([r,s,a])}}handleUpdateCheckboxMap(o){this.setState({checkBoxMap:o})}renderChild(){return e.jsxs("div",{className:"p-3",children:[e.jsx("h4",{children:"Sample Child"}),e.jsxs("div",{className:"form-group",children:[e.jsxs("label",{htmlFor:"exampleInput1",children:["Input Label",e.jsx("input",{ref:this.sampleInput,type:"text",className:"form-control",id:"exampleInput1","aria-describedby":"emailHelp",placeholder:"Input Placeholder"})]}),e.jsx("small",{className:"form-text text-muted",children:"Help text for a form input"})]})]})}render(){const{isShown:o,isPickerShown:r,checkBoxMap:s}=this.state;return e.jsxs(j,{name:"dialog",children:[e.jsx("h2",{className:"ui-title",children:"Popover Dialog"}),e.jsx("p",{children:"Popover dialog that can contain interactive elements, can be set to self close on blur."}),e.jsxs(w,{kind:"primary",style:{marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{o?this.setState({isShown:!1}):this.setState({isShown:!0})},children:["Open Dialog",e.jsx(Do,{options:{placement:"bottom"},isShown:o,onEntered:()=>{this.sampleInput.current&&this.sampleInput.current.focus()},onExited:()=>{this.setState({isShown:!1})},closeOnBlur:!0,interactive:!0,children:this.renderChild()})]}),e.jsxs(w,{kind:"primary",style:{marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{this.setState(a=>({isPickerShown:!a.isPickerShown}))},children:["Open Dialog with Picker",e.jsx(Do,{options:{placement:"bottom"},isShown:r,onExited:()=>{this.setState({isPickerShown:!1})},closeOnBlur:!0,interactive:!0,containPortals:!0,children:e.jsxs("div",{className:"p-3",children:[e.jsx("h4",{children:"Sample Picker"}),e.jsxs(io,{label:"Fruit",children:[e.jsx(b,{children:"Apple"},"apple"),e.jsx(b,{children:"Banana"},"banana"),e.jsx(b,{children:"Cherry"},"cherry")]}),e.jsxs(S,{direction:"column",marginTop:"size-100",children:[e.jsx(z,{defaultSelected:!0,children:"Ripe"}),e.jsx(z,{children:"Organic"}),e.jsx(z,{children:"Seedless"})]})]})})]}),e.jsx("p",{children:"A popover dialog can also contain Spectrum overlay components such as a Picker. The Picker's own popover should render above the dialog."}),e.jsx("p",{children:"The Hierarchical Checkbox Menu uses a popover dialog to display hierarchical groups of checkboxes."}),e.jsx(nt,{menuText:"Checkbox Menu",valueMap:s,onUpdateValueMap:this.handleUpdateCheckboxMap})]})}}class bs extends i.Component{constructor(o){super(o),this.state={isShown:!1}}render(){const o=[{title:"Show Alert",icon:xo,action:()=>{alert("Alert!")},shortcut:new ge({id:"STYLEGUIDE.SHOW_ALERT",name:"Show Alert",shortcut:[B.CTRL,V.A],macShortcut:[B.CMD,V.A]})},{title:"Log Message",icon:po,action:()=>{console.log("Logging a message!")},shortcut:new ge({id:"STYLEGUIDE.LOG_MESSAGE",name:"Log Message",shortcut:[B.CTRL,V.L],macShortcut:[B.CMD,V.L]})}],s=[{title:"Show Shortcuts",icon:sr,action:()=>{alert("Show keyboard shortcuts!")},shortcut:new ge({id:"STYLEGUIDE.SHOW_SHORTCUTS",name:"Show Shortcuts",shortcut:[B.CTRL,V.SLASH],macShortcut:[B.CMD,V.SLASH]}),group:$e.groups.global}].concat(o),{isShown:a}=this.state;return e.jsxs(j,{name:"dropdown-menus",children:[e.jsx("h2",{className:"ui-title",children:"Dropdown Menu"}),e.jsx("p",{children:"A simple dropdown menu of actions, can open on click of parent container, or controlled by prop."}),e.jsx(w,{kind:"inline",className:"mx-2",icon:Hr,onClick:()=>{},children:e.jsx(Eo,{actions:s})}),e.jsxs(w,{kind:"primary",style:{marginRight:"1rem",minWidth:"165px"},onClick:()=>{a?this.setState({isShown:!1}):this.setState({isShown:!0})},children:["Menu Shown: ",a.toString()]}),e.jsxs("div",{ref:this.button,className:"btn btn-secondary disabled",style:{marginRight:"1rem"},children:["Shown using isShown",e.jsx(Eo,{isShown:a,onMenuClosed:()=>{this.setState({isShown:!1})},actions:s})]})]})}}const js=`trades = db.t("LearnDeephaven", "StockTrades").where("Date=\`2017-08-25\`")\\
3
3
  .headBy(3, "Sym")\\
4
4
  .view("Sym", "Last")
@@ -206,4 +206,4 @@ simulation = shares30min.update("Values=(double[])ss.update(Sym, TargetPosition,
206
206
  </div>`;return e.jsxs(j,{name:"icons",children:[e.jsx("h2",{className:"ui-title",children:"Icons"}),e.jsx("div",{className:"row",children:e.jsxs("div",{className:"col",children:[e.jsx("h4",{children:"Icon Composition"}),e.jsx("p",{children:"Icons can be used indivudally or composed together using font-awesome composition:"}),e.jsxs("div",{className:"icons",children:[e.jsx("div",{className:"icon card",children:e.jsx(I,{icon:ko})}),e.jsx("div",{className:"icon card",children:e.jsx(I,{icon:To})}),e.jsx("div",{className:"icon card",children:e.jsx(I,{icon:No})}),e.jsx("div",{className:"icon card",children:"="}),e.jsxs(w,{kind:"inline",className:"card",onClick:()=>{Ho(m).then(()=>{c({text:e.jsx("span",{children:"Copied composition example"})})}).catch(h=>{c({text:e.jsx("span",{className:"text-danger",children:h.message})})})},children:[e.jsx("div",{className:"icon",children:e.jsxs("div",{className:"fa-md fa-layers",children:[e.jsx(I,{mask:ko,icon:To,transform:"down-7 right-7"}),e.jsx(I,{icon:No})]})}),e.jsx("label",{children:"Custom"})]})]})]})}),e.jsx("hr",{}),e.jsx("div",{className:"row",children:e.jsxs("div",{className:"col",children:[e.jsx("h4",{children:"All available icons"}),e.jsx("p",{children:"If you cannot find or compose a relevant icon for your use case, please request a new one to be created from design."}),e.jsxs("div",{className:"form-inline mb-3",children:[e.jsx("input",{type:"search",placeholder:"Basic icon search...",value:a,className:"form-control",onChange:h=>{l(h.target.value)}}),e.jsx("span",{className:"mx-2",children:"Show: "}),e.jsx(w,{kind:"inline",active:r,className:"mr-2",onClick:()=>s(!r),icon:r?ae.vsCheck:ae.vsClose,children:"VS ICONS"}),e.jsx(w,{kind:"inline",active:t,className:"mr-2",onClick:()=>o(!t),icon:t?ae.vsCheck:ae.vsClose,children:"DH ICONS"}),e.jsxs("small",{children:["(",d.length," icon",d.length===1?"":"s",")"]})]}),e.jsxs("div",{className:"icons",children:[d,d.length===0&&e.jsx("p",{className:"no-result",children:"No icons found."}),e.jsx(Ls,{message:n})]})]})})]})}const pr=[{title:"Title 1",value:"Value 1"},{title:"Title 2",value:"Value 2"},{title:"Title 3",value:"Value 3"},{title:"Title 4",value:"Value 4"},{title:"Title 5",value:"Value 5"},{title:"Title 6",value:"Value 6"},{title:"Title 7",value:"Value 7"},{title:"Title 8",value:"Value 8"},{title:"Title 9",value:"Value 9"},{title:"Title 9",value:"Value 9"},{title:"Title 10",value:"Value 10"},{title:"Title 11",value:"Value 11"},{title:"Title 12",value:"Value 12"}],Go=pr.map(({title:t,value:o})=>e.jsx(b,{children:t},o)),Bs=[{title:"1 minute",value:1*60*1e3},{title:"5 minutes",value:5*60*1e3},{title:"20 minutes",value:20*60*1e3},{title:"45 minutes",value:45*60*1e3},{title:"1 hour",value:1*60*60*1e3},{title:"4 hours",value:4*60*60*1e3}];function Vs(){const[t,o]=i.useState(!1),[r,s]=i.useState(""),[a,l]=i.useState(!0),[n,c]=i.useState(!1),[d,m]=i.useState(!1),[h,u]=i.useState(!1),[x,v]=i.useState(null),[y,g]=i.useState("1"),[f,p]=i.useState(),[k,T]=i.useState("-DLiveTableMonitor.updateThreads=8 -DLiveTableMonitor.printDependencyInformation=false -Dassertion.heapDump=true -Drequire.heapDump=true -Dassertion.heapDump=true -Drequire.heapDump=true"),ee=i.useCallback(K=>{g(K)},[]),P=i.useCallback(()=>{o(!t)},[t]),oe=i.useCallback(K=>{s(K.target.value)},[]);return e.jsxs(j,{name:"inputs",className:"style-guide-inputs",children:[e.jsx("h2",{className:"ui-title",children:"Inputs"}),e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"col",children:e.jsxs("form",{children:[e.jsxs("div",{className:"form-group",children:[e.jsxs("label",{htmlFor:"exampleInput1",children:["Input Label",e.jsx("input",{type:"text",className:"form-control",id:"exampleInput1","aria-describedby":"emailHelp",placeholder:"Input Placeholder"})]}),e.jsx("small",{className:"form-text text-muted",children:"Help text for a form imput"})]}),e.jsxs("div",{className:"form-group",children:[e.jsxs("label",{htmlFor:"exampleInput2",children:["Input Label",e.jsx("input",{type:"text",className:"form-control",id:"exampleInput2","aria-describedby":"emailHelp",placeholder:"Input Disabled",disabled:!0})]}),e.jsx("small",{className:"form-text text-muted",children:"Disabled input"})]}),e.jsx("div",{className:"form-group",children:e.jsxs("label",{htmlFor:"exampleInputPassword1",children:["Password",e.jsx("input",{type:"password",className:"form-control",id:"exampleInputPassword1",placeholder:"Password",defaultValue:"123456789"})]})}),e.jsx("div",{className:"form-group",children:e.jsx(et,{value:r,placeholder:"Search Input",onChange:oe})})]})}),e.jsx("div",{className:"col",children:e.jsxs("form",{children:[e.jsx("h5",{children:" Checkboxes "}),e.jsx(U,{className:"form-group",checked:a,onChange:()=>l(!a),children:"Checked checkbox"}),e.jsx(U,{className:"form-group",checked:n,onChange:()=>c(!n),children:"Unchecked checkbox"}),e.jsx(U,{className:"form-group",disabled:!0,checked:null,children:"Disabled checkbox"}),e.jsx(U,{className:"form-group",isInvalid:!0,checked:d,onChange:()=>m(!d),children:"Invalid checkbox"}),e.jsx(U,{className:"form-group",checked:h,onChange:()=>u(!h),children:"Add radio button"}),e.jsx(U,{className:"form-group",checked:x,onChange:()=>{x==null?v(!0):v(x?!1:null)},children:"Indeterminate Cycle"})]})}),e.jsxs("div",{className:"col",children:[e.jsxs("form",{children:[e.jsx("h5",{id:"inputs-radios-heading",children:"Radios"}),e.jsxs(go,{"aria-labelledby":"inputs-radios-heading",onChange:ee,value:y,isInvalid:y==="4",description:"Select a radio item",errorMessage:y==="4"?"Invalid radio selected":void 0,children:[e.jsx(W,{value:"1",children:"Toggle this custom radio"}),e.jsx(W,{value:"2",children:"Or toggle this other custom radio"}),e.jsx(W,{value:"3",isDisabled:!0,children:"Disabled radio"}),e.jsx(W,{value:"4",children:"Invalid radio"}),e.jsx(W,{isHidden:!h,value:"5",children:"Extra radio item"})]})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Toggle Buttons"}),e.jsxs("div",{className:"form-inline justify-content-between",children:[e.jsx("label",{children:String(t)}),e.jsx(Ne,{on:t,onClick:P})]}),e.jsxs("div",{className:"form-inline justify-content-between",children:[e.jsx("label",{children:String(!t)}),e.jsx(Ne,{on:!t,onClick:P})]}),e.jsxs("div",{className:"form-inline justify-content-between",children:[e.jsx("label",{className:"isInvalid",children:"isInvalid"}),e.jsx(Ne,{on:!t,isInvalid:!0,onClick:P})]}),e.jsxs("div",{className:"form-inline justify-content-between",children:[e.jsx("label",{className:"disabled",children:"disabled"}),e.jsx(Ne,{on:!t,disabled:!0,onClick:P})]})]})]}),e.jsxs("div",{className:"col",children:[e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Selection Menu"}),e.jsxs(Pe,{onChange:K=>{},defaultValue:"0",className:"custom-select",children:[e.jsx(_,{disabled:!0,value:"0",children:"Custom Selection"}),e.jsx(_,{value:"1",children:"One"}),e.jsx(_,{value:"2",children:"Two"}),e.jsx(_,{value:"3",children:"Three"})]})]}),e.jsx("div",{className:"form-group",children:e.jsxs(Pe,{onChange:K=>{},defaultValue:"0",className:"custom-select",disabled:!0,children:[e.jsx(_,{disabled:!0,value:"0",children:"Custom Selection"}),e.jsx(_,{value:"1",children:"One"}),e.jsx(_,{value:"2",children:"Two"}),e.jsx(_,{value:"3",children:"Three"})]})}),e.jsx("div",{className:"form-group",children:e.jsxs(Pe,{onChange:K=>{},defaultValue:"0",className:"custom-select",isInvalid:!0,children:[e.jsx(_,{disabled:!0,value:"0",children:"Custom Selection"}),e.jsx(_,{value:"1",children:"One"}),e.jsx(_,{value:"2",children:"Two"}),e.jsx(_,{value:"3",children:"Three"})]})}),e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Input with Select"}),e.jsx("div",{className:"input-group",children:e.jsx(co,{"aria-label":"ComboBox",width:"100%",children:Go})}),e.jsx("br",{}),e.jsx("div",{className:"input-group",children:e.jsx(co,{"aria-label":"Disabled ComboBox",isDisabled:!0,width:"100%",children:Go})})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"AutoCompleteInput"}),e.jsx(it,{options:pr,noMatchText:"No Matches."})]})]}),e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Time Input"}),e.jsx(ct,{}),e.jsx("br",{}),e.jsx("h5",{children:"Date Input"}),e.jsx(dt,{}),e.jsx("br",{}),e.jsx("h5",{children:"DateTime Input"}),e.jsx(Tt,{}),e.jsx("br",{}),e.jsx("h5",{children:"Custom Timeselect"}),e.jsx(ht,{options:Bs,value:f??null,onChange:p,customText:"Custom Timeout",placeholder:"Select a timeout",timeToValue:K=>K*1e3})]})})]}),e.jsx("div",{className:"row",children:e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Auto Resize Textarea"}),e.jsx(ut,{value:k,delimiter:" -",onChange:T})]})})})]})}class Fs extends i.PureComponent{constructor(o){super(o),this.handleSelect=this.handleSelect.bind(this),this.handleViewportChange=this.handleViewportChange.bind(this),this.selectedItems=[],this.state={items:[],offset:0,itemCount:5e5}}handleSelect(o){const r=this.selectedItems.indexOf(o);r>=0?this.selectedItems.splice(r,1):this.selectedItems.push(o);const s=r<0,{offset:a}=this.state;let{items:l}=this.state;l=[].concat(l);const n=o-a;n>=0&&n<l.length&&(l[n].isSelected=s),this.setState({items:l})}handleViewportChange(o,r){const{itemCount:s}=this.state,a=r-o+1,l=Math.max(0,o-a),n=Math.min(r+a,s),c=[];for(let m=l;m<=n&&m<=s;m+=1){const h=`Item ${m}`,u=this.selectedItems.indexOf(m)>=0;c.push({value:h,isSelected:u})}const d=l;this.setState({offset:d,items:c})}render(){const{offset:o,items:r,itemCount:s}=this.state;return e.jsx(Nt,{itemCount:s,items:r,offset:o,onSelect:this.handleSelect,onViewportChange:this.handleViewportChange})}}class uo extends i.PureComponent{constructor(o){super(o),this.handleSelect=this.handleSelect.bind(this),this.handleViewportChange=this.handleViewportChange.bind(this),this.selectedItems=[],this.state={items:[],offset:0,itemCount:5e5}}handleSelect(o){const{itemCount:r}=this.state;console.log("Item selected at index",o,"/",r)}handleViewportChange(o,r){const{itemCount:s}=this.state,a=r-o+1,l=Math.max(0,o-a),n=Math.min(r+a,s),c=[];for(let m=l;m<=n;m+=1){const h=`Item ${m}`,u=this.selectedItems.indexOf(m)>=0;c.push({value:h,isSelected:u})}const d=l;this.setState({offset:d,items:c})}render(){const{isMultiSelect:o}=this.props,{offset:r,items:s,itemCount:a}=this.state;return e.jsx(ot,{isMultiSelect:o,itemCount:a,items:s,offset:r,onSelect:this.handleSelect,onViewportChange:this.handleViewportChange})}}q(uo,"defaultProps");function Os(){return e.jsxs(j,{name:"item-list-inputs",className:"style-guide-inputs",children:[e.jsx("h2",{className:"ui-title",children:"Item Lists"}),e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Select List"}),e.jsx("div",{style:{height:"300px"},children:e.jsx(Fs,{})})]})}),e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Item List"}),e.jsx("div",{style:{height:"300px"},children:e.jsx(uo,{})})]})}),e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Multi Select Item List"}),e.jsx("div",{style:{height:"300px"},children:e.jsx(uo,{isMultiSelect:!0})})]})})]})]})}function Hs(){const[t,o]=i.useState(0),[r,s]=i.useState(!0),a=()=>{o(0)};function l(n){return e.jsxs(Se.Fragment,{children:[e.jsxs(w,{kind:"primary",style:{marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{o(n)},children:[n," ",n>1?"Actions":"Action"]}),e.jsx(rt,{isOpen:t===n,headerText:"Header Text",bodyText:"This is where the body text goes",onConfirm:a,onCancel:n>=2?a:void 0,onDiscard:n>=3?a:void 0})]},n)}return e.jsxs(j,{name:"modals",children:[e.jsx("h2",{className:"ui-title",children:"Basic Modals"}),e.jsx("div",{style:{padding:"1rem"},children:[1,2,3].map(n=>l(n))}),e.jsx("h2",{className:"ui-title",children:"Custom Modal"}),e.jsx("div",{style:{padding:"1rem"},children:e.jsx("div",{className:"modal-dialog",role:"dialog",children:e.jsxs("div",{className:"modal-content",children:[e.jsxs("div",{className:"modal-header",children:[e.jsx("h5",{className:"modal-title",children:"Modal title"}),e.jsx("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close",children:e.jsx("span",{"aria-hidden":"true",children:"×"})})]}),e.jsxs("div",{className:"modal-body",children:[e.jsx("p",{children:"Modal body text goes here."}),e.jsx(U,{checked:r,onChange:()=>s(!r),children:"Checked checkbox"})]}),e.jsxs("div",{className:"modal-footer",children:[e.jsx(w,{kind:"secondary","data-dismiss":"modal",onClick:()=>{},children:"Close"}),e.jsx(w,{kind:"primary",onClick:()=>{},children:"Save changes"})]})]})})})]})}function Us(){return e.jsxs(j,{name:"progress",children:[e.jsx("h2",{className:"ui-title",children:"Progress"}),e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col",children:[e.jsx("h5",{children:"Determinate Progress Loader"}),e.jsx("br",{}),e.jsx("div",{className:"progress",style:{marginBottom:"1rem"},children:e.jsx("div",{className:"progress-bar bg-primary",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100})})]}),e.jsxs("div",{className:"col",children:[e.jsx("h5",{children:"Indeterminate Progress Spinner"}),e.jsx(lo,{className:"loading-spinner-large"})]}),e.jsxs("div",{className:"col",children:[e.jsx("h5",{children:"Button Progress Spinner"}),e.jsx(w,{kind:"primary",className:"btn-spinner btn-cancelable",style:{minWidth:"10rem"},onClick:()=>{},children:e.jsxs("span",{children:[e.jsx(lo,{className:"mr-2 loading-spinner-vertical-align"}),e.jsx("span",{className:"btn-normal-content",children:"Connecting"}),e.jsx("span",{className:"btn-hover-content",children:"Cancel"})]})})]})]})]})}class Gs extends i.PureComponent{constructor(o){super(o),this.handleSliderChange=this.handleSliderChange.bind(this),this.state={initialStartTime:24*60*60*.25,initialEndTime:24*60*60*.75,startTime:24*60*60*.25,endTime:24*60*60*.75}}handleSliderChange(o){const{startTime:r,endTime:s}=o;this.setState({startTime:r}),this.setState({endTime:s})}render(){const{startTime:o,endTime:r,initialStartTime:s,initialEndTime:a}=this.state,l=o!==s,n=r!==a;return e.jsxs(j,{name:"time-slider-inputs",className:"style-guide-inputs",children:[e.jsx("h2",{className:"ui-title",children:"Time Slider"}),e.jsx(mt,{startTime:o,endTime:r,isStartModified:l,isEndModified:n,onChange:this.handleSliderChange}),e.jsxs("p",{style:l?{color:"var(--dh-color-modified)"}:{},children:["StartTime: ",Mo.formatTime(o)]}),e.jsxs("p",{style:n?{color:"var(--dh-color-modified)"}:{},children:["EndTime: ",Mo.formatTime(r)]})]})}}function zs(){const o=[po,xo].map(r=>e.jsx(I,{icon:r},`${r.prefix}-${r.iconName}`));return e.jsxs(j,{name:"tooltips",children:[e.jsx("h2",{className:"ui-title",title:"Make better looking tooltips than this one!",children:"Tooltips"}),e.jsxs("div",{className:"btn btn-primary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},children:["Simple Tooltip",e.jsx(me,{children:"Text only content"})]}),e.jsxs("div",{className:"btn btn-secondary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},children:["Complex Tooltip",e.jsxs(me,{children:[e.jsxs("div",{children:["Here is some ",e.jsx("i",{children:"cool"})," ",e.jsx("b",{children:"text"})]}),e.jsx("hr",{}),e.jsx("div",{children:"And some icons down here"}),e.jsxs("div",{children:[e.jsx(lo,{className:"loading-spinner-vertical-align"}),o]})]})]}),e.jsxs("div",{className:"btn btn-success",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},children:["Interactive Tooltip",e.jsxs(me,{interactive:!0,children:[e.jsx("div",{children:"This tooltip is interactive."}),e.jsx("hr",{}),e.jsx(w,{kind:"primary",onClick:()=>{alert("Button clicked!")},children:"Show Alert"})]})]})]})}function Ws(){return e.jsxs(j,{name:"toast",children:[e.jsx("h2",{className:"ui-title",children:"Toast"}),e.jsx("div",{children:e.jsxs(_e,{children:[e.jsx(w,{kind:"tertiary",onClick:()=>Te.neutral("Neutral toast",{timeout:5e3}),children:"Show neutral toast"}),e.jsx(w,{kind:"success",onClick:()=>Te.positive("Positive toast",{timeout:5e3}),children:"Show positive toast"}),e.jsx(w,{kind:"danger",onClick:()=>Te.negative("Negative toast",{timeout:5e3}),children:"Show negative toast"}),e.jsx(w,{kind:"primary",onClick:()=>Te.info("Info toast",{timeout:5e3}),children:"Show info toast"})]})})]})}function Ks(){return e.jsxs(j,{name:"typography",children:[e.jsx("h2",{className:"ui-title",children:"Typography"}),e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col",children:[e.jsx("h1",{className:"text-muted","data-no-menu":!0,children:"h1. Unused"}),e.jsx("h2",{className:"text-muted","data-no-menu":!0,children:"h2. Unused"}),e.jsx("h3",{className:"text-muted","data-no-menu":!0,children:"h3. Unused"}),e.jsx("h4",{"data-no-menu":!0,children:"h4. Standard Heading"}),e.jsx("h5",{"data-no-menu":!0,children:"h5. Small Heading"}),e.jsx("h6",{className:"text-muted","data-no-menu":!0,children:"h6. Unused"})]}),e.jsxs("div",{className:"col",children:[e.jsx("h4",{children:"Fonts"}),e.jsx("p",{children:"UI: Fira Sans;"}),e.jsx("p",{className:"text-monospace",children:"Code: Fira Mono;"}),e.jsx("p",{children:'Tables: Fira Sans; font-feature-settings: "tnum";'}),e.jsx("p",{children:"Default font-size: 14px = 1rem"})]})]})]})}class vr extends i.PureComponent{constructor(r){super(r);q(this,"getViewportItems",rr((r,s,a)=>r==null||s==null?[]:a.slice(r,s)));this.handleSelectionChange=this.handleSelectionChange.bind(this),this.handleViewportChange=this.handleViewportChange.bind(this),this.itemList=Se.createRef(),this.selectedItems=[],this.state={topRow:null,bottomRow:null}}focusItem(r){this.itemList.current&&this.itemList.current.focusItem(r)}handleSelectionChange(r){console.log("Selection changed",r);const{onSelectionChange:s}=this.props;s(r)}handleViewportChange(r,s){const{items:a}=this.props,l=s-r+1,n=Math.max(0,r-l),c=Math.min(s+l,a.length);this.setState({topRow:n,bottomRow:c})}render(){const{draggablePrefix:r,droppableId:s,isDragDisabled:a,isDropDisabled:l,isMultiSelect:n,items:c,selectedRanges:d}=this.props,{topRow:m,bottomRow:h}=this.state;return e.jsx(we,{draggablePrefix:r,droppableId:s,isDragDisabled:a,isDropDisabled:l,isMultiSelect:n,itemCount:c.length,items:this.getViewportItems(m,h,c),offset:m??0,onSelectionChange:this.handleSelectionChange,onViewportChange:this.handleViewportChange,ref:this.itemList,selectedRanges:d})}}q(vr,"defaultProps");const Je=["Draggable Only","Drag and Drop","Droppable Only"],qs=[{isDropDisabled:!0},{},{isDragDisabled:!0}],Xs=(t="Item",o=1e3)=>{const r=[];for(let s=0;s<o;s+=1)r.push(`${t}-${s}`);return r};class Fe extends i.Component{constructor(r){super(r);q(this,"getSelectionChangeHandler",jo(r=>this.handleSelectionChange.bind(this,r),{max:1e3}));q(this,"getDraggableList",jo((r,s,a,l)=>e.jsx(vr,{items:r,droppableId:we.getDraggableId("drop-list",l),draggablePrefix:we.getDraggableId("draggable-item",l),onSelectionChange:this.getSelectionChangeHandler(l),isMultiSelect:!0,ref:a,selectedRanges:s,...qs[l]}),{max:1e3}));this.handleDragEnd=this.handleDragEnd.bind(this),this.animationFrame=null;const s=[],a=[],l=[];for(let n=0;n<Je.length;n+=1)s[n]=Xs(Je[n]),a[n]=[],l[n]=Se.createRef();this.state={items:s,lists:l,selectedRanges:a}}static handleDragStart(r){console.log("handleDragStart",r)}static handleDragUpdate(r){console.log("handleDragUpdate",r)}componentWillUnmount(){this.animationFrame!=null&&cancelAnimationFrame(this.animationFrame)}handleDragEnd(r){console.log("handleDragEnd",r);const{source:s,destination:a}=r;if(s==null||a==null)return;const l=we.getDraggableIndex(s.droppableId),n=we.getDraggableIndex(a.droppableId),c=l===n;let d=a.index;c&&s.index<a.index&&(d+=1);let m=d;this.setState(({items:h,selectedRanges:u})=>{const x=[...h[l]],v=c?x:[...h[n]],y=Po.reorder(x,u[l],v,d),g=[...h];g[l]=x,g[n]=v,m=c?Po.adjustDestinationIndex(d,u[n]):d;const f=[...u];return f[l]=[],f[n]=[[m,m+y.length-1]],{items:g,selectedRanges:f}},()=>{this.animationFrame!=null&&cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame(()=>{var u,x;this.animationFrame=null;const{lists:h}=this.state;(x=(u=h[n])==null?void 0:u.current)==null||x.focusItem(m)})})}handleSelectionChange(r,s){this.setState(({selectedRanges:a})=>{const l=[...a];return l[r]=[...s],{selectedRanges:l}})}render(){const{items:r,lists:s,selectedRanges:a}=this.state;return e.jsxs(j,{name:"draggable-lists",className:"style-guide-inputs",children:[e.jsx("h2",{className:"ui-title",children:"Drag and Drop Lists"}),e.jsx("div",{className:"row",children:e.jsx(yr,{onDragStart:Fe.handleDragStart,onDragUpdate:Fe.handleDragUpdate,onDragEnd:this.handleDragEnd,children:Je.map((l,n)=>e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsxs("h5",{children:[l," List"]}),e.jsx("div",{style:{height:"300px"},children:this.getDraggableList(r[n],a[n],s[n],n)})]})},l))})})]})}}function zo({count:t=5,activeKey:o=""}){const[r,s]=i.useState(o),[a,l]=i.useState(()=>{const h=[];for(let u=0;u<t;u+=1)h.push({key:`${u}`,title:`Tab ${u}`,isClosable:u>0});return h}),n=i.useCallback((h,u)=>{l(x=>{const v=[...x],[y]=v.splice(h,1);return v.splice(u,0,y),v})},[]),c=i.useCallback(h=>{s(h)},[]),d=i.useCallback(h=>{l(u=>u.filter(x=>x.key!==h))},[]),m=i.useCallback(h=>[{title:"Select Tab to the Left",group:10,order:10,disabled:a[0].key===h.key,action:()=>{const u=a.findIndex(x=>x.key===h.key);u>0&&s(a[u-1].key)}},{title:"Select Tab to the Right",group:30,order:10,disabled:a[a.length-1].key===h.key,action:()=>{const u=a.findIndex(x=>x.key===h.key);u<a.length-1&&s(a[u+1].key)}}],[a]);return e.jsx(Mt,{tabs:a,activeKey:r,onSelect:c,onReorder:n,onClose:d,makeContextActions:m})}let Wo=0;function Ys(){const t=Wo;return Wo+=1,t}const Zs=cr(25);function eo(t=1,o=5){const r=Number(Zs.next().value);return Math.floor(r*o)+t}function oo(t,o=Ys()){return{id:o,type:t}}function Ko(t=eo(),o=eo(),r=eo()){const s=[];for(let a=0;a<t;a+=1)s.push(oo("SUBMENU"));for(let a=0;a<o;a+=1)s.push(oo("PAGE"));for(let a=0;a<r;a+=1)s.push(oo("SWITCH"));return s}function ro({type:t,id:o}){switch(t){case"SUBMENU":return`Submenu ${o}`;case"PAGE":return`Page ${o}`;case"SWITCH":return`Switch ${o}`}}function Qs({type:t}){switch(t){case"SUBMENU":return Gr;case"PAGE":return Ur;case"SWITCH":return le}}function Js(){const[t,o]=i.useState([]),[r,s]=i.useState(new Map),a=i.useCallback(h=>{o([...t,h])},[t,o]),l=i.useCallback(()=>{const h=[...t];h.pop(),o(h)},[t,o]),n=i.useCallback(()=>{const h=[t[0]];o(h)},[t,o]),c=i.useCallback(h=>{const u=r.get(h)??!1,x=new Map(r);x.set(h,!u),s(x)},[r,s]),d=i.useCallback(h=>{const u=t[t.length-1],{items:x}=u;if(!x)throw new Error("Navigation handleSelect triggered without items to select");const v=x[h];switch(v.type){case"PAGE":a({title:ro(v)});break;case"SUBMENU":a({title:ro(v),items:Ko()});break;case"SWITCH":c(v.id);break}},[t,c,a]);i.useEffect(function(){o([{title:"Navigation Menu",items:Ko()}])},[]);const m=i.useMemo(()=>t.map(({items:h,title:u},x)=>{if(!h)return e.jsx(Lo,{onBack:l,onClose:n,title:u,children:e.jsx("div",{children:"Page content!"})},u);let v=null;if(h!=null){const y=h.map(g=>{const f=ro(g),p=Qs(g);let k,T;return g.type==="SWITCH"&&(k=r.get(g.id)??!1,T=()=>{d(g.id)}),{title:f,icon:p,isOn:k,onChange:T}});v=e.jsx(Dt,{onSelect:d,items:y})}else v=e.jsx("div",{children:"Page content"});return e.jsx(Lo,{onBack:x>0?l:void 0,onClose:x>0?n:void 0,title:u,children:v},u)}),[t,r,d,l,n]);return e.jsxs(j,{name:"navigations",children:[e.jsx("h2",{className:"ui-title",children:"Navigations"}),e.jsx("div",{style:{marginBottom:"1rem"},children:e.jsx(zo,{count:100,activeKey:"15"})}),e.jsx("div",{style:{marginBottom:"1rem"},children:e.jsx(zo,{})}),e.jsx("div",{className:"navigations",children:e.jsx(It,{children:m})})]})}const ea=":root{--dh-color-gray-50: #1a171a;--dh-color-gray-75: #211f22;--dh-color-gray-100: #2d2a2e;--dh-color-gray-200: #322f33;--dh-color-gray-300: #373438;--dh-color-gray-400: #403e41;--dh-color-gray-500: #5b5a5c;--dh-color-gray-600: #929192;--dh-color-gray-700: #c0bfbf;--dh-color-gray-800: #f0f0ee;--dh-color-gray-900: #fcfcfa;--dh-color-gray-light: var(--dh-color-gray-900);--dh-color-gray-mid: var(--dh-color-gray-600);--dh-color-gray-dark: var(--dh-color-gray-300);--dh-color-black: var(--dh-color-gray-50);--dh-color-white: var(--dh-color-gray-800);--dh-color-true-black: #000000;--dh-color-true-white: #ffffff;--dh-color-red-100: #471521;--dh-color-red-200: #5d1b2b;--dh-color-red-300: #762336;--dh-color-red-400: #912b45;--dh-color-red-500: #ab3452;--dh-color-red-600: #c73f61;--dh-color-red-700: #e14c71;--dh-color-red-800: #f85e85;--dh-color-red-900: #ff7b9e;--dh-color-red-1000: #ff99b6;--dh-color-red-1100: #ffb4c9;--dh-color-red-1200: #ffcbd9;--dh-color-red-1300: #ffdee7;--dh-color-red-1400: #ffecf1;--dh-color-orange-100: #471800;--dh-color-orange-200: #5a2202;--dh-color-orange-300: #702f06;--dh-color-orange-400: #87390c;--dh-color-orange-500: #9f4612;--dh-color-orange-600: #b7541b;--dh-color-orange-700: #d06425;--dh-color-orange-800: #e67533;--dh-color-orange-900: #fa8648;--dh-color-orange-1000: #ffa069;--dh-color-orange-1100: #ffb98d;--dh-color-orange-1200: #ffcfaf;--dh-color-orange-1300: #ffe0cb;--dh-color-orange-1400: #ffeee2;--dh-color-yellow-100: #2e2700;--dh-color-yellow-200: #3d3300;--dh-color-yellow-300: #4d4100;--dh-color-yellow-400: #5f5005;--dh-color-yellow-500: #725f0b;--dh-color-yellow-600: #856e13;--dh-color-yellow-700: #9a811b;--dh-color-yellow-800: #ae9024;--dh-color-yellow-900: #c3a32f;--dh-color-yellow-1000: #d7b53a;--dh-color-yellow-1100: #eac448;--dh-color-yellow-1200: #fad459;--dh-color-yellow-1300: #ffe77a;--dh-color-yellow-1400: #fff3ac;--dh-color-chartreuse-100: #1f2b00;--dh-color-chartreuse-200: #2b3805;--dh-color-chartreuse-300: #39470b;--dh-color-chartreuse-400: #495611;--dh-color-chartreuse-500: #596718;--dh-color-chartreuse-600: #69781f;--dh-color-chartreuse-700: #7a8927;--dh-color-chartreuse-800: #8e9c30;--dh-color-chartreuse-900: #a1ae3a;--dh-color-chartreuse-1000: #b2c046;--dh-color-chartreuse-1100: #c2d153;--dh-color-chartreuse-1200: #d5e166;--dh-color-chartreuse-1300: #e3ee84;--dh-color-chartreuse-1400: #f0f7ae;--dh-color-celery-100: #122d15;--dh-color-celery-200: #173a1a;--dh-color-celery-300: #1e4b22;--dh-color-celery-400: #255c2a;--dh-color-celery-500: #2d6d32;--dh-color-celery-600: #36803d;--dh-color-celery-700: #409347;--dh-color-celery-800: #4da654;--dh-color-celery-900: #5fb967;--dh-color-celery-1000: #77ca7e;--dh-color-celery-1100: #93d999;--dh-color-celery-1200: #b2e5b7;--dh-color-celery-1300: #ceeed1;--dh-color-celery-1400: #e4f6e6;--dh-color-green-100: #22291d;--dh-color-green-200: #2d3625;--dh-color-green-300: #38462d;--dh-color-green-400: #445636;--dh-color-green-500: #50673d;--dh-color-green-600: #5b7a45;--dh-color-green-700: #678c4c;--dh-color-green-800: #74a053;--dh-color-green-900: #81b45a;--dh-color-green-1000: #8ec762;--dh-color-green-1100: #9bd96c;--dh-color-green-1200: #ace97e;--dh-color-green-1300: #c3f59d;--dh-color-green-1400: #dcfbc2;--dh-color-seafoam-100: #1f2925;--dh-color-seafoam-200: #263630;--dh-color-seafoam-300: #2f463e;--dh-color-seafoam-400: #37574b;--dh-color-seafoam-500: #3e6959;--dh-color-seafoam-600: #447b68;--dh-color-seafoam-700: #488f79;--dh-color-seafoam-800: #4ca388;--dh-color-seafoam-900: #4fb798;--dh-color-seafoam-1000: #54cba5;--dh-color-seafoam-1100: #5edeb8;--dh-color-seafoam-1200: #78edc8;--dh-color-seafoam-1300: #9ef8d7;--dh-color-seafoam-1400: #cbfce8;--dh-color-cyan-100: #142b2d;--dh-color-cyan-200: #1a373a;--dh-color-cyan-300: #21474b;--dh-color-cyan-400: #29585c;--dh-color-cyan-500: #31696e;--dh-color-cyan-600: #3a7a81;--dh-color-cyan-700: #438d94;--dh-color-cyan-800: #4da0a8;--dh-color-cyan-900: #59b4bc;--dh-color-cyan-1000: #65c6cf;--dh-color-cyan-1100: #74d6e1;--dh-color-cyan-1200: #88e6f1;--dh-color-cyan-1300: #a4f2fb;--dh-color-cyan-1400: #cafaff;--dh-color-blue-100: #112451;--dh-color-blue-200: #16306c;--dh-color-blue-300: #1d3d88;--dh-color-blue-400: #254ba4;--dh-color-blue-500: #2f5bc0;--dh-color-blue-600: #3b6bda;--dh-color-blue-700: #4c7dee;--dh-color-blue-800: #6390fa;--dh-color-blue-900: #7ca3ff;--dh-color-blue-1000: #97b6ff;--dh-color-blue-1100: #afc8ff;--dh-color-blue-1200: #c7d9ff;--dh-color-blue-1300: #dbe6ff;--dh-color-blue-1400: #ecf1ff;--dh-color-indigo-100: #1a1e62;--dh-color-indigo-200: #252a75;--dh-color-indigo-300: #32388a;--dh-color-indigo-400: #40489f;--dh-color-indigo-500: #4f58b4;--dh-color-indigo-600: #5f68c8;--dh-color-indigo-700: #707bdb;--dh-color-indigo-800: #828ded;--dh-color-indigo-900: #959ffa;--dh-color-indigo-1000: #aab2ff;--dh-color-indigo-1100: #bec5ff;--dh-color-indigo-1200: #d2d6ff;--dh-color-indigo-1300: #e1e5ff;--dh-color-indigo-1400: #eff0ff;--dh-color-purple-100: #311067;--dh-color-purple-200: #3d1f79;--dh-color-purple-300: #4b2f8c;--dh-color-purple-400: #5a3f9f;--dh-color-purple-500: #6850b1;--dh-color-purple-600: #7861c3;--dh-color-purple-700: #8873d5;--dh-color-purple-800: #9887e5;--dh-color-purple-900: #a99af3;--dh-color-purple-1000: #b9aefb;--dh-color-purple-1100: #cac1fe;--dh-color-purple-1200: #dad3ff;--dh-color-purple-1300: #e8e3ff;--dh-color-purple-1400: #f4effe;--dh-color-fuchsia-100: #450f44;--dh-color-fuchsia-200: #551a55;--dh-color-fuchsia-300: #662969;--dh-color-fuchsia-400: #77377e;--dh-color-fuchsia-500: #884794;--dh-color-fuchsia-600: #9858aa;--dh-color-fuchsia-700: #a76bbf;--dh-color-fuchsia-800: #b67ed4;--dh-color-fuchsia-900: #c592e5;--dh-color-fuchsia-1000: #d2a7f0;--dh-color-fuchsia-1100: #debcf6;--dh-color-fuchsia-1200: #e9cff9;--dh-color-fuchsia-1300: #f2e0fb;--dh-color-fuchsia-1400: #f9edfc;--dh-color-magenta-100: #520427;--dh-color-magenta-200: #641034;--dh-color-magenta-300: #791e45;--dh-color-magenta-400: #8d2d57;--dh-color-magenta-500: #a13c69;--dh-color-magenta-600: #b54c7d;--dh-color-magenta-700: #ca5d93;--dh-color-magenta-800: #dc70a8;--dh-color-magenta-900: #ee83ba;--dh-color-magenta-1000: #fb99cd;--dh-color-magenta-1100: #ffb1dc;--dh-color-magenta-1200: #ffc9e7;--dh-color-magenta-1300: #ffddf0;--dh-color-magenta-1400: #ffecf6}",oa=":root{--dh-color-bg: var(--dh-color-black);--dh-color-content-bg: var(--dh-color-gray-100);--dh-color-subdued-content-bg: var(--dh-color-gray-75);--dh-color-surface-bg: var(--dh-color-gray-200);--dh-color-fg: var(--dh-color-white);--dh-color-border: var(--dh-color-gray-500);--dh-color-hover-border: var(--dh-color-gray-600);--dh-color-border-focus: var(--dh-color-accent-800);--dh-color-disabled-bg: var(--dh-color-gray-300);--dh-color-scrollbar: var(--dh-color-fg);--dh-color-heading-text: var(--dh-color-gray-900);--dh-color-text: var(--dh-color-gray-800);--dh-color-text-disabled: var(--dh-color-gray-600);--dh-color-text-highlight: color-mix( in srgb, var(--dh-color-blue-700) 30%, transparent );--dh-color-text-hover: var(--dh-color-gray-900);--dh-color-contrast-dark: var(--dh-color-gray-50);--dh-color-contrast-light: var(--dh-color-gray-900);--dh-color-accent-100: var(--dh-color-blue-100);--dh-color-accent-200: var(--dh-color-blue-200);--dh-color-accent-300: var(--dh-color-blue-300);--dh-color-accent-400: var(--dh-color-blue-400);--dh-color-accent-500: var(--dh-color-blue-500);--dh-color-accent-600: var(--dh-color-blue-600);--dh-color-accent-700: var(--dh-color-blue-700);--dh-color-accent-800: var(--dh-color-blue-800);--dh-color-accent-900: var(--dh-color-blue-900);--dh-color-accent-1000: var(--dh-color-blue-1000);--dh-color-accent-1100: var(--dh-color-blue-1100);--dh-color-accent-1200: var(--dh-color-blue-1200);--dh-color-accent-1300: var(--dh-color-blue-1300);--dh-color-accent-1400: var(--dh-color-blue-1400);--dh-color-accent: var(--dh-color-accent-600);--dh-color-accent-bg: var(--dh-color-accent);--dh-color-accent-hover-bg: var(--dh-color-accent-500);--dh-color-accent-down-bg: var(--dh-color-accent-400);--dh-color-accent-key-focus-bg: var(--dh-color-accent-500);--dh-color-accent-contrast: var(--dh-color-contrast-light);--dh-color-gray-bg: var(--dh-color-gray-700);--dh-color-red-bg: var(--dh-color-red-700);--dh-color-orange-bg: var(--dh-color-orange-800);--dh-color-yellow-bg: var(--dh-color-yellow-1000);--dh-color-chartreuse-bg: var(--dh-color-chartreuse-900);--dh-color-celery-bg: var(--dh-color-celery-800);--dh-color-green-bg: var(--dh-color-green-700);--dh-color-seafoam-bg: var(--dh-color-seafoam-700);--dh-color-cyan-bg: var(--dh-color-cyan-700);--dh-color-blue-bg: var(--dh-color-blue-700);--dh-color-indigo-bg: var(--dh-color-indigo-700);--dh-color-purple-bg: var(--dh-color-purple-700);--dh-color-fuchsia-bg: var(--dh-color-fuchsia-700);--dh-color-magenta-bg: var(--dh-color-magenta-700);--dh-color-visual-gray: var(--dh-color-gray-600);--dh-color-visual-red: var(--dh-color-red-800);--dh-color-visual-orange: var(--dh-color-orange-900);--dh-color-visual-yellow: var(--dh-color-yellow-1200);--dh-color-visual-chartreuse: var(--dh-color-chartreuse-1100);--dh-color-visual-celery: var(--dh-color-celery-1000);--dh-color-visual-green: var(--dh-color-green-1100);--dh-color-visual-seafoam: var(--dh-color-seafoam-1100);--dh-color-visual-cyan: var(--dh-color-cyan-1100);--dh-color-visual-blue: var(--dh-color-blue-600);--dh-color-visual-indigo: var(--dh-color-indigo-900);--dh-color-visual-purple: var(--dh-color-purple-1100);--dh-color-visual-fuchsia: var(--dh-color-fuchsia-900);--dh-color-visual-magenta: var(--dh-color-magenta-900);--dh-color-visual-positive: var(--dh-color-green-1200);--dh-color-visual-negative: var(--dh-color-red-800);--dh-color-visual-notice: var(--dh-color-yellow-1200);--dh-color-visual-info: var(--dh-color-cyan-1100);--dh-color-focus: var(--dh-color-blue-800);--dh-color-focus-border: var(--dh-color-blue-800);--dh-color-focus-ring: var(--dh-color-focus);--dh-color-highlight-active: color-mix( in srgb, var(--dh-color-visual-gray) 20%, transparent );--dh-color-highlight-hover: color-mix( in srgb, var(--dh-color-visual-gray) 18%, transparent );--dh-color-highlight-invalid: color-mix( in srgb, var(--dh-color-visual-red) 15%, transparent );--dh-color-highlight-selected: color-mix( in srgb, var(--dh-color-accent) 9%, transparent );--dh-color-highlight-selected-hover: color-mix( in srgb, var(--dh-color-accent) 15%, transparent );--dh-color-keyboard-selected-bg: color-mix( in srgb, var(--dh-color-accent) 50%, transparent );--dh-color-dropshadow: color-mix( in srgb, var(--dh-color-true-black) 80%, transparent );--dh-color-overlay-modal-bg: color-mix( in srgb, var(--dh-color-black) 50%, transparent );--dh-color-overlay-hover-bg: color-mix( in srgb, var(--dh-color-white) 8%, transparent );--dh-color-negative: var(--dh-color-red-600);--dh-color-negative-bg: var(--dh-color-negative);--dh-color-negative-hover-bg: var(--dh-color-red-500);--dh-color-negative-down-bg: var(--dh-color-red-400);--dh-color-negative-key-focus-bg: var(--dh-color-red-500);--dh-color-negative-contrast: var(--dh-color-contrast-light);--dh-color-neutral: var(--dh-color-gray-500);--dh-color-neutral-bg: var(--dh-color-neutral);--dh-color-neutral-hover-bg: var(--dh-color-gray-300);--dh-color-neutral-down-bg: var(--dh-color-gray-200);--dh-color-neutral-key-focus-bg: var(--dh-color-gray-300);--dh-color-neutral-contrast: var(--dh-color-contrast-light);--dh-color-neutral-subdued-bg: var(--dh-color-gray-400);--dh-color-neutral-subdued-hover-bg: var(--dh-color-gray-300);--dh-color-neutral-subdued-down-bg: var(--dh-color-gray-200);--dh-color-neutral-subdued-key-focus-bg: var(--dh-color-gray-300);--dh-color-positive: var(--dh-color-green-900);--dh-color-positive-bg: var(--dh-color-positive);--dh-color-positive-hover-bg: var(--dh-color-green-800);--dh-color-positive-down-bg: var(--dh-color-green-700);--dh-color-positive-key-focus-bg: var(--dh-color-green-800);--dh-color-positive-contrast: var(--dh-color-contrast-dark);--dh-color-info: var(--dh-color-indigo-900);--dh-color-info-bg: var(--dh-color-info);--dh-color-info-hover-bg: var(--dh-color-indigo-800);--dh-color-info-down-bg: var(--dh-color-indigo-700);--dh-color-info-key-focus-bg: var(--dh-color-indigo-800);--dh-color-info-contrast: var(--dh-color-contrast-dark);--dh-color-notice: var(--dh-color-yellow-1000);--dh-color-notice-bg: var(--dh-color-notice);--dh-color-notice-hover-bg: var(--dh-color-yellow-900);--dh-color-notice-down-bg: var(--dh-color-yellow-800);--dh-color-notice-key-focus-bg: var(--dh-color-yellow-1000);--dh-color-notice-contrast: var(--dh-color-contrast-dark);--dh-color-modified: var(--dh-color-yellow-1300)}",ra=":root{--dh-color-chart-bg: var(--dh-color-content-bg);--dh-color-chart-plot-bg: var(--dh-color-gray-200);--dh-color-chart-title: var(--dh-color-text);--dh-color-chart-legend-fg: var(--dh-color-text);--dh-color-chart-colorway: var(--dh-color-visual-cyan) var(--dh-color-visual-green) var(--dh-color-visual-yellow) var(--dh-color-visual-purple) var(--dh-color-visual-orange) var(--dh-color-visual-red) var(--dh-color-visual-chartreuse) var(--dh-color-visual-fuchsia) var(--dh-color-visual-seafoam) var(--dh-color-visual-magenta) var(--dh-color-white);--dh-color-chart-grid: var(--dh-color-gray-400);--dh-color-chart-axis-line: var(--dh-color-gray-500);--dh-color-chart-axis-line-zero: var(--dh-color-gray-700);--dh-color-chart-error-band-line: var(--dh-color-green-1400);--dh-color-chart-ohlc-increase: var(--dh-color-visual-green);--dh-color-chart-ohlc-decrease: var(--dh-color-visual-red);--dh-color-plotly-axis-text: var(--dh-color-gray-500);--dh-color-plotly-zoombox: color-mix( in srgb, var(--dh-color-true-black) 50%, transparent );--dh-color-plotly-zoombox-corners-fill: var(--dh-color-white);--dh-color-plotly-zoombox-corners-stroke: var(--dh-color-gray-75);--dh-color-plotly-modebar-btn-active: color-mix( in srgb, var(--dh-color-true-white) 30%, transparent );--dh-color-plotly-modebar-btn-warning: var(--dh-color-visual-orange);--dh-color-plotly-notifier-note-bg: var(--dh-color-gray-500);--dh-color-chart-geo-coastline: var(--dh-color-gray-200);--dh-color-chart-geo-land: var(--dh-color-gray-700);--dh-color-chart-geo-ocean: var(--dh-color-gray-300);--dh-color-chart-geo-lake: var(--dh-color-blue-200);--dh-color-chart-geo-river: var(--dh-color-blue-200);--dh-color-chart-indicator-increase: var(--dh-color-visual-green);--dh-color-chart-indicator-decrease: var(--dh-color-visual-red);--dh-color-chart-indicator-gauge: var(--dh-color-green-1000);--dh-color-chart-map-style: dark}",ta=":root{--dh-color-editor-bg: var(--dh-color-content-bg);--dh-color-editor-fg: var(--dh-color-gray-900);--dh-color-editor-error-fg: var(--dh-color-visual-red);--dh-color-editor-line-number-fg: var(--dh-color-gray-600);--dh-color-editor-line-number-active-fg: var(--dh-color-gray-800);--dh-color-editor-line-highlight-bg: var(--dh-color-gray-200);--dh-color-editor-selection-bg: var(--dh-color-text-highlight);--dh-color-editor-inactive-selection-bg: var(--dh-color-gray-300);--dh-color-editor-selection-highlight-bg: var(--dh-color-gray-500);--dh-color-editor-word-highlight-bg: var(--dh-color-gray-500);--dh-color-editor-comment: var(--dh-color-gray-700);--dh-color-editor-delimiter: var(--dh-color-gray-700);--dh-color-editor-identifier-js: var(--dh-color-visual-yellow);--dh-color-editor-identifier-namespace: var(--dh-color-visual-red);--dh-color-editor-identifier: var(--dh-color-gray-900);--dh-color-editor-keyword: var(--dh-color-visual-cyan);--dh-color-editor-number: var(--dh-color-visual-purple);--dh-color-editor-operator: var(--dh-color-visual-red);--dh-color-editor-predefined: var(--dh-color-visual-green);--dh-color-editor-storage: var(--dh-color-visual-red);--dh-color-editor-string-delim: var(--dh-color-gray-700);--dh-color-editor-string: var(--dh-color-visual-yellow);--dh-color-editor-bracket-fg1: var(--dh-color-visual-yellow);--dh-color-editor-bracket-fg2: var(--dh-color-visual-purple);--dh-color-editor-bracket-fg3: var(--dh-color-visual-blue);--dh-color-editor-bracket-fg4: var(--dh-color-visual-yellow);--dh-color-editor-bracket-fg5: var(--dh-color-visual-purple);--dh-color-editor-bracket-fg6: var(--dh-color-visual-blue);--dh-color-editor-unexpected-bracket-fg: var(--dh-color-visual-negative);--dh-color-editor-focus-border: var(--dh-color-focus-border);--dh-color-editor-input-option-active-border: var(--dh-color-focus-ring);--dh-color-editor-input-bg: var(--dh-color-bg);--dh-color-editor-input-fg: var(--dh-color-text);--dh-color-editor-input-border: var(--dh-color-border);--dh-color-editor-context-menu-bg: var(--dh-color-gray-300);--dh-color-editor-context-menu-fg: var(--dh-color-text);--dh-color-editor-menu-selection-bg: var(--dh-color-highlight-hover);--dh-color-editor-menu-selection-fg: var(--dh-color-text);--dh-color-editor-log-date: var(--dh-color-gray-700);--dh-color-editor-log-error: var(--dh-color-visual-red);--dh-color-editor-log-info: var(--dh-color-visual-cyan);--dh-color-editor-log-stdout: var(--dh-color-gray-900);--dh-color-editor-log-warn: var(--dh-color-visual-yellow);--dh-color-editor-log-debug: var(--dh-color-visual-purple);--dh-color-editor-log-trace: var(--dh-color-visual-green);--dh-color-editor-find-bg: var(--dh-color-gray-200);--dh-color-editor-find-match-bg: var(--dh-color-highlight-selected);--dh-color-editor-find-match-highlight-bg: color-mix( in srgb, var(--dh-color-orange-800) 35%, transparent );--dh-color-editor-find-option-active-bg: var(--dh-color-accent-700);--dh-color-editor-find-option-active-fg: var(--dh-color-gray-900);--dh-color-editor-suggest-bg: var(--dh-color-gray-200);--dh-color-editor-suggest-border: var(--dh-color-gray-400);--dh-color-editor-suggest-fg: var(--dh-color-text);--dh-color-editor-suggest-selected-bg: var(--dh-color-highlight-selected);--dh-color-editor-suggest-selected-fg: var(--dh-color-text);--dh-color-editor-suggest-highlight-fg: var(--dh-color-accent-700);--dh-color-editor-suggest-focus-highlight-fg: var(--dh-color-accent-700);--dh-color-editor-suggest-hover-bg: var(--dh-color-highlight-hover);--dh-color-editor-link-foreground: var(--dh-color-accent-1000);--dh-color-editor-link-active-fg: var(--dh-color-accent-1100);--dh-color-editor-diff-inserted-text-bg: color-mix( in srgb, var(--dh-color-positive) 35%, transparent );--dh-color-editor-diff-removed-text-bg: color-mix( in srgb, var(--dh-color-negative) 35%, transparent );--dh-color-editor-diff-inserted-line-bg: color-mix( in srgb, var(--dh-color-positive) 20%, transparent );--dh-color-editor-diff-removed-line-bg: color-mix( in srgb, var(--dh-color-negative) 20%, transparent )}",sa=":root{--dh-color-grid-bg: var(--dh-color-gray-75);--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-highlight-hover);--dh-color-grid-row-hover-bg-selected: var( --dh-color-highlight-selected-hover );--dh-color-grid-row-shadow-alpha: .15;--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: color-mix( in srgb, var(--dh-color-accent-700) 50%, transparent );--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: color-mix( in srgb, var(--dh-color-accent-1000) 19%, transparent );--dh-color-grid-filter-bar-expanded-active-cell-bg: color-mix( in srgb, var(--dh-color-accent-700) 32%, transparent );--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)}",aa=":root{--dh-color-loading-spinner-primary: var(--dh-color-accent-bg);--dh-color-loading-spinner-secondary: color-mix( in srgb, var(--dh-color-gray-800) 50%, transparent );--dh-color-quickactions-bg: color-mix( in srgb, var(--dh-color-visual-gray) 90%, transparent );--dh-color-radial-reaction: color-mix( in srgb, var(--dh-color-visual-gray) 60%, transparent );--dh-color-colorpicker-border: color-mix( in srgb, var(--dh-color-visual-gray) 10%, transparent );--dh-logo-img: var(--dh-logo-dark-img);--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: color-mix( in srgb, var(--dh-color-accent) 8%, transparent );--dh-color-random-area-plot-animation-fg-stroke: color-mix( in srgb, var(--dh-color-accent) 20%, transparent );--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: var(--dh-color-gray-75);--dh-color-action-fg: var(--dh-color-text);--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-gray-50);--dh-color-action-hover-fg: var(--dh-color-text-hover);--dh-color-action-hover-border: var(--dh-color-hover-border);--dh-color-action-active-bg: var(--dh-color-gray-800);--dh-color-action-active-fg: var(--dh-color-gray-50);--dh-color-action-active-border: var(--dh-color-gray-800);--dh-color-action-active-hover-bg: var(--dh-color-gray-900);--dh-color-action-active-hover-fg: var(--dh-color-gray-50);--dh-color-action-active-hover-border: var(--dh-color-gray-900);--dh-color-action-disabled-bg: transparent;--dh-color-action-disabled-fg: var(--dh-color-text-disabled);--dh-color-action-disabled-border: var(--dh-color-gray-300);--dh-color-icon-fg: var(--dh-color-gray-700);--dh-color-icon-disabled-fg: var(--dh-color-gray-400);--dh-color-input-bg: var(--dh-color-gray-75);--dh-color-input-fg: var(--dh-color-text);--dh-color-input-border: var(--dh-color-border);--dh-color-input-placeholder: var(--dh-color-gray-600);--dh-color-input-active-bg: var(--dh-color-input-bg);--dh-color-input-disabled-bg: var(--dh-color-disabled-bg);--dh-color-input-disabled-border: transparent;--dh-color-input-disabled-fg: var(--dh-color-text-disabled);--dh-color-input-hover-border: var(--dh-color-hover-border);--dh-color-input-focus-border: var(--dh-color-border-focus);--dh-color-search-icon: var(--dh-color-fg);--dh-color-form-control-error: var(--dh-color-visual-negative);--dh-color-form-control-error-shadow: color-mix( in srgb, var(--dh-color-visual-negative) 25%, transparent );--dh-color-label-text: var(--dh-color-gray-700);--dh-color-selector-fg: var(--dh-color-icon-fg);--dh-color-selector-bg: var(--dh-color-gray-75);--dh-color-selector-hover-bg: var(--dh-color-gray-50);--dh-color-selector-hover-fg: var(--dh-color-gray-900);--dh-color-selector-disabled-fg: var(--dh-color-icon-disabled-fg);--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-text);--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: var(--dh-color-accent-900);--dh-color-item-list-drop-target-fg: var(--dh-color-white);--dh-color-item-list-keyboard-selected-bg: color-mix( in srgb, var(--dh-color-accent) 50%, transparent );--dh-color-golden-layout-tab-header-bg: var(--dh-color-gray-75);--dh-color-golden-layout-tab-bg: var(--dh-color-gray-75);--dh-color-golden-layout-tab-selected-bg: var(--dh-color-content-bg);--dh-color-menu-item-fg: var(--dh-color-gray-700);--dh-color-hr: var(--dh-color-gray-300);--dh-color-dialog-title-fg: var(--dh-color-heading-text);--dh-color-dialog-fg: var(--dh-color-text);--dh-color-popover-bg: var(--dh-color-bg);--dh-color-popover-border: var(--dh-color-gray-400);--dh-color-tooltip-bg: var(--dh-color-gray-400);--dh-color-tooltip-fg: var(--dh-color-fg);--dh-color-tooltip-box-shadow: var(--dh-color-dropshadow);--dh-color-well-bg: color-mix( in srgb, var(--dh-color-visual-gray) 2%, transparent );--dh-color-well-border: color-mix( in srgb, var(--dh-color-visual-gray) 5%, transparent );--dh-toggle-switch-bg: var(--dh-color-gray-500)}",la="_themeColorsPalette_v5aa0_1",na="_swatch_v5aa0_7",ia="_themeColors_v5aa0_1",ca="_label_v5aa0_21",da="_capitalize_v5aa0_26",re={themeColorsPalette:la,swatch:na,themeColors:ia,label:ca,capitalize:da};function ha(){return{"Theme Color Palette":he("palette",ea,1),"Semantic Colors":he("semantic",oa,1),"Chart Colors":he("chart",ra,2),"Editor Colors":he("editor",ta,2),"Grid Colors":he("grid",sa,2),"Component Colors":he("component",aa,1)}}function qo({name:t,value:o}){return e.jsxs(e.Fragment,{children:[e.jsx("div",{children:t}),e.jsx("div",{children:o}),e.jsx("div",{children:Me.normalizeCssColor(o,!0)})]})}function ua(){const{selectedThemeKey:t}=lr(),o=i.useMemo(ha,[t]);return e.jsx(e.Fragment,{children:Object.entries(o).map(([r,s],a)=>r==="Theme Color Palette"?e.jsxs(j,{name:r,children:[e.jsx("h2",{className:"ui-title",children:r}),e.jsx("div",{className:re.themeColorsPalette,children:Object.entries(s).map(([l,n],c)=>e.jsxs(i.Fragment,{children:[(c===0||c===1)&&n.map(({name:d},m)=>e.jsx("div",{style:{gridColumnStart:m+2,textAlign:"center"},className:"mt-3",children:d.split("-").pop()},d)),e.jsx("div",{className:"text-right pr-2",children:l}),n.map(({name:d,value:m})=>e.jsxs("div",{style:{backgroundColor:m,border:m===""&&d.length>0?ho:void 0},className:J(re.swatch,"px-0"),children:[e.jsx(me,{interactive:!0,children:e.jsx(qo,{name:d,value:m})}),d&&e.jsx(Ro,{copy:d,isQuiet:!0})]},d))]},l))})]},r):e.jsxs(j,{name:r,children:[e.jsx("h2",{className:"ui-title",children:r}),e.jsx("div",{className:re.themeColors,children:Object.entries(s).map(([l,n])=>e.jsxs("div",{style:{gridRow:`span ${n.length+1}`},children:[e.jsx("span",{className:J(re.label,re.capitalize),children:l}),n.map(({isLabel:c,name:d,value:m,note:h})=>c===!0?e.jsx("span",{className:re.label,children:d},d):e.jsxs("div",{className:re.swatch,style:{border:m===""&&d.length>0?ho:void 0},children:[e.jsx("div",{style:{backgroundColor:m,height:"var(--swatch-height)",aspectRatio:"1 / 1"}}),e.jsx(me,{interactive:!0,children:e.jsx(qo,{name:d,value:m})}),e.jsx("span",{children:d.replace("--dh-color-","")}),d.endsWith("-hue")||h!=null?e.jsx("span",{children:h??m}):null,e.jsx(Ro,{copy:d,isQuiet:!0})]},d))]},l))})]},r))})}function ma(){return e.jsxs("div",{id:gr,children:[e.jsx("h2",{className:"ui-title","data-no-menu":!0,children:"Spectrum Components"}),e.jsxs(O,{gap:20,columns:tr("0px","1fr"),children:[e.jsxs(j,{name:"spectrum-buttons",component:$,children:[e.jsx("h3",{children:"Buttons"}),e.jsx(ga,{})]}),e.jsxs(j,{name:"spectrum-collections",component:$,children:[e.jsx("h3",{children:"Collections"}),e.jsx(fa,{})]}),e.jsxs(j,{name:"spectrum-content",component:$,children:[e.jsx("h3",{children:"Content"}),e.jsx(va,{})]}),e.jsxs(j,{name:"spectrum-forms",component:$,children:[e.jsx("h3",{children:"Forms"}),e.jsx(pa,{})]}),e.jsxs(j,{name:"spectrum-overlays",component:$,children:[e.jsx("h3",{children:"Overlays"}),e.jsxs(S,{gap:"size-160",children:[e.jsx(xa,{}),e.jsxs(yo,{children:[e.jsx(H,{children:"Dialog Trigger"}),t=>e.jsxs(wo,{children:[e.jsx(Ve,{children:"Some Heading"}),e.jsx(wr,{children:"Some Header"}),e.jsx(Co,{}),e.jsx(Be,{children:e.jsx(C,{children:"Are you sure?"})}),e.jsxs(_e,{children:[e.jsx(N,{variant:"secondary",onPress:t,children:"Cancel"}),e.jsx(N,{variant:"accent",onPress:t,children:"Confirm"})]})]})]}),e.jsxs(yo,{type:"popover",children:[e.jsx(H,{children:"Popover"}),e.jsxs(wo,{children:[e.jsx(Ve,{children:"Popover"}),e.jsx(Co,{}),e.jsx(Be,{children:e.jsx(C,{children:"This is a popover."})})]})]})]})]}),e.jsxs(j,{name:"spectrum-well",component:$,children:[e.jsx("h3",{children:"Wells"}),e.jsx(Cr,{children:"This is a well."})]})]})]})}function ga(){return e.jsxs(e.Fragment,{children:[e.jsxs(H,{marginBottom:"size-200",children:[e.jsx(F,{children:e.jsx(I,{icon:le})}),e.jsx(C,{children:"Icon Button"})]}),e.jsxs(O,{autoFlow:"column",columnGap:"size-250",rowGap:"size-150",columns:so(4,tr(0,"size-2000")),rows:so(8,"size-400"),children:[e.jsx("label",{children:'Button style="outline"'}),e.jsx(N,{variant:"primary",style:"outline",children:"Primary"}),e.jsx(N,{variant:"secondary",style:"outline",children:"Secondary"}),e.jsx(N,{variant:"accent",style:"outline",children:"Accent"}),e.jsx(N,{variant:"negative",style:"outline",children:"Negative"}),e.jsx(N,{variant:"primary",staticColor:"black",style:"outline",children:"Static Black"}),e.jsx(N,{variant:"primary",staticColor:"white",style:"outline",children:"Static White"}),e.jsx(N,{variant:"primary",isDisabled:!0,style:"outline",children:"Disabled"}),e.jsx("label",{children:'Button style="fill"'}),e.jsx(N,{variant:"primary",style:"fill",children:"Primary"}),e.jsx(N,{variant:"secondary",style:"fill",children:"Secondary"}),e.jsx(N,{variant:"accent",style:"fill",children:"Accent"}),e.jsx(N,{variant:"negative",style:"fill",children:"Negative"}),e.jsx(N,{variant:"primary",staticColor:"black",style:"fill",children:"Static Black"}),e.jsx(N,{variant:"primary",staticColor:"white",style:"fill",children:"Static White"}),e.jsx(N,{variant:"primary",isDisabled:!0,style:"fill",children:"Disabled"}),e.jsx("label",{children:"Action Button"}),e.jsx(H,{children:"Normal"}),e.jsx(H,{gridRow:"span 3",isQuiet:!0,children:"Quiet"}),e.jsx(H,{staticColor:"black",children:"Static Black"}),e.jsx(H,{staticColor:"white",children:"Static White"}),e.jsx(H,{isDisabled:!0,children:"Disabled"}),e.jsx("label",{children:"Toggle Button"}),e.jsx(ne,{children:"Normal"}),e.jsx(ne,{isQuiet:!0,children:"Quiet"}),e.jsx(ne,{gridRow:"span 2",isEmphasized:!0,children:"Emphasized"}),e.jsx(ne,{staticColor:"black",children:"Static Black"}),e.jsx(ne,{staticColor:"white",children:"Static White"}),e.jsx(ne,{isDisabled:!0,children:"Disabled"})]})]})}function xa(){return e.jsxs(e.Fragment,{children:[e.jsx(C,{children:"Contextual Help"}),e.jsxs(Rr,{variant:"info",children:[e.jsx(Ve,{children:"Need help?"}),e.jsx(Be,{children:e.jsx(C,{children:"This is a helpful description of the thing you need help with."})})]})]})}function pa(){return e.jsx(Dr,{children:e.jsxs(O,{gap:20,columns:so("auto-fit","210px"),alignItems:"end",children:[e.jsx(ao,{label:"Text Field"}),e.jsxs(Er,{label:"Combobox",menuTrigger:"focus",defaultSelectedKey:"two",children:[e.jsx(b,{children:"One"},"one"),e.jsx(b,{children:"Two"},"two"),e.jsx(b,{children:"Three"},"three")]}),e.jsx(z,{children:"Checkbox"}),e.jsx(Ar,{label:"Slider",defaultValue:24}),e.jsx(Mr,{children:"Switch"})]})})}function va(){return e.jsxs(Ir,{children:[e.jsx(F,{size:"XL",children:e.jsx(I,{icon:zr})}),e.jsx(Ve,{children:"Illustrated Message"}),e.jsx(Be,{children:"This is the content of the message."})]})}function fa(){return e.jsxs(e.Fragment,{children:[e.jsx("label",{id:"table-view-sample",children:"List View"}),e.jsxs(Sr,{"aria-labelledby":"table-view-sample",selectionMode:"multiple",maxWidth:"size-6000",marginBottom:"size-200",children:[e.jsx(b,{children:"One"}),e.jsx(b,{children:"Two"}),e.jsx(b,{children:"Three"}),e.jsx(b,{children:"Four"})]}),e.jsx("label",{id:"table-view-sample",children:"Table View"}),e.jsxs(kr,{"aria-labelledby":"table-view-sample",selectionMode:"multiple",children:[e.jsxs(Tr,{children:[e.jsxs(ie,{title:"Person",children:[e.jsx(ie,{allowsResizing:!0,children:"Name"}),e.jsx(ie,{children:"Age"})]}),e.jsxs(ie,{title:"Address",children:[e.jsx(ie,{allowsResizing:!0,children:"City"}),e.jsx(ie,{children:"State"})]})]}),e.jsxs(Nr,{children:[e.jsxs(Ue,{children:[e.jsx(L,{children:"John"}),e.jsx(L,{children:"42"}),e.jsx(L,{children:"San Francisco"}),e.jsx(L,{children:"CA"})]}),e.jsxs(Ue,{children:[e.jsx(L,{children:"Jane"}),e.jsx(L,{children:"38"}),e.jsx(L,{children:"San Francisco"}),e.jsx(L,{children:"CA"})]}),e.jsxs(Ue,{children:[e.jsx(L,{children:"Becky"}),e.jsx(L,{children:"12"}),e.jsx(L,{children:"San Francisco"}),e.jsx(L,{children:"CA"})]})]})]})]})}function fe(t){return e.jsx("div",{...t})}function ba(){const[t,o]=i.useState([]);i.useEffect(()=>{let s={category:"",items:[]};const a=[s],l=document.querySelector(`#${gr}`),n=document.querySelector(`#sample-section-${xr}`);document.querySelectorAll(`h2,h3,[${Qe}]`).forEach(c=>{if(c.textContent==null||c.hasAttribute(Ms))return;if(c.hasAttribute(Qe)){s={category:c.getAttribute(Qe)??"",items:[]},a.push(s);return}const m=`${(l==null?void 0:l.contains(c))===!0?"spectrum-":(n==null?void 0:n.contains(c))===!0?"spectrum-compare-":""}${c.textContent}`.toLowerCase().replace(/\s/g,"-");c.id=m,s.items.push({id:m,label:c.textContent})}),o(a)},[]),i.useEffect(()=>{const s=window.location.hash===""?null:document.querySelector(window.location.hash);setTimeout(()=>{s?s.scrollIntoView():window.scrollTo({top:0,behavior:"auto"})},0)},[]);const r=i.useCallback(s=>{const a=String(s),l=document.getElementById(a);l==null||l.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{window.location.hash=a},1e3)},[]);return e.jsxs($r,{children:[e.jsx(H,{children:e.jsx(F,{children:e.jsx(I,{icon:Wr})})}),e.jsx(Pr,{items:t,onAction:r,children:({category:s,items:a})=>e.jsx(Lr,{items:a,title:s,children:({id:l,label:n})=>e.jsx(b,{children:n},l)},s)})]})}function ja(){const t=i.useCallback(()=>{window.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>{window.location.hash=""},500)},[]);return i.useEffect(()=>{var s;const o=((s=document.querySelector("h2"))==null?void 0:s.offsetTop)??0;function r(){document.documentElement.dataset.scroll=String(window.scrollY>=o)}return document.addEventListener("scroll",r,{passive:!0}),()=>{document.removeEventListener("scroll",r)}},[]),e.jsx(N,{UNSAFE_className:"goto-top-button",variant:"accent",onPress:t,children:e.jsx(F,{children:e.jsx(I,{icon:Kr})})})}const ya=["Tab 1","Tab 2","Tab 3"];function wa({isActive:t,title:o}){return e.jsxs("li",{className:J("lm_tab",t&&"lm_active"),children:[e.jsx("span",{className:"lm_title_before"}),e.jsx("span",{className:"lm_title",children:o}),e.jsx("span",{className:"lm_close_tab"})]})}function Ca(){return e.jsxs(j,{name:"golden-layout",children:[e.jsx("h2",{className:"ui-title",children:"Golden Layout"}),[!1,!0].map(t=>e.jsxs(Se.Fragment,{children:[e.jsx("h5",{children:t?"Minimized":"Maximised"}),e.jsx("div",{style:{position:"relative",border:"none"},className:t?"lm_maximised":void 0,children:e.jsxs("div",{className:"lm_header",children:[e.jsx("ul",{className:"lm_tabs",children:ya.map((o,r)=>e.jsx(wa,{isActive:r===0,title:o},o))}),e.jsxs("ul",{className:"lm_controls",children:[e.jsx("li",{className:"lm_tabpreviousbutton"}),e.jsx("li",{className:"lm_tabnextbutton"}),e.jsx("li",{className:"lm_maximise"}),e.jsx("li",{className:"lm_popout"}),e.jsx("li",{className:"lm_tabdropdown"}),e.jsx("li",{className:"lm_close"})]})]})})]},String(t)))]})}function Sa(){return e.jsxs(j,{name:"animations",className:"sample-section-e2e-ignore",children:[e.jsx("h2",{className:"ui-title",children:"Animations"}),e.jsx($,{position:"relative",height:400,children:e.jsx(gt,{})})]})}const Xo=[["primary","accent"],["secondary","primary"],["danger","negative"]];function ka(){const[t,o]=i.useState(!1);return e.jsxs(j,{name:xr,className:mr,children:[e.jsx("h2",{className:"ui-title","data-no-menu":!0,children:"Bootstrap / Spectrum Comparison"}),e.jsxs(S,{gap:20,wrap:!0,children:[e.jsxs($,{children:[e.jsx("h3",{children:"Buttons - Filled"}),e.jsxs(O,{gap:20,columns:"repeat(2, 120px)",autoRows:"40x",justifyItems:"start",alignItems:"start",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),Xo.map(([r,s])=>e.jsxs(i.Fragment,{children:[e.jsx(w,{onClick:de,kind:r,icon:Io,children:"Button"}),e.jsxs(N,{variant:s,style:"fill",children:[e.jsx(F,{children:e.jsx(I,{icon:Io})}),e.jsx(C,{children:"Button"})]})]},r)),e.jsx(w,{onClick:de,kind:"primary",disabled:!0,children:"Disabled"}),e.jsx(N,{variant:"accent",style:"fill",isDisabled:!0,children:"Disabled"})]})]}),e.jsxs($,{children:[e.jsx("h3",{children:"Buttons - Outline"}),e.jsxs(O,{gap:20,columns:"repeat(2, 120px)",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),Xo.map(([r,s])=>e.jsxs(i.Fragment,{children:[e.jsx(w,{onClick:de,kind:r,children:r}),e.jsx(N,{variant:s,style:"outline",children:s})]},r)),e.jsx(w,{onClick:de,kind:"secondary",disabled:!0,children:"Disabled"}),e.jsx(N,{variant:"primary",style:"outline",isDisabled:!0,children:"Disabled"})]})]}),e.jsxs($,{children:[e.jsx("h3",{children:"Action Buttons"}),e.jsxs(O,{gap:20,columns:"repeat(2, 120px)",autoRows:"40x",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),e.jsx(w,{onClick:de,kind:"inline",children:"Inline"}),e.jsx(H,{children:"Action"}),e.jsx(w,{onClick:de,kind:"inline",disabled:!0,children:"Disabled"}),e.jsx(H,{isDisabled:!0,children:"Disabled"})]})]}),e.jsxs($,{children:[e.jsx("h3",{children:"Pickers"}),e.jsxs(O,{gap:20,columns:"repeat(2, 192px)",autoRows:"40x",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),[!1,!0].map(r=>e.jsxs(i.Fragment,{children:[e.jsxs("div",{children:[e.jsx("label",{className:"input-label",children:"Select"}),e.jsxs(Pe,{disabled:r,placeholder:"Select",onChange:s=>{},className:"custom-select",children:[e.jsxs("option",{disabled:!0,value:"0",children:[r?"":"Disabled ","Select"]}),e.jsx("option",{value:"1",children:"One"}),e.jsx("option",{value:"2",children:"Two"}),e.jsx("option",{value:"3",children:"Three"})]})]}),e.jsxs(_r,{isDisabled:r,label:r?"Disabled Picker":"Picker",placeholder:"Picker",children:[e.jsx(b,{children:"One"},"1"),e.jsx(b,{children:"Two"},"2"),e.jsx(b,{children:"Three"},"3")]})]},String(r)))]})]}),e.jsxs($,{children:[e.jsx("h3",{children:"Text Field"}),e.jsxs(O,{gap:20,columns:"repeat(2, 192px)",autoRows:"40x",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),e.jsxs("div",{children:[e.jsx("label",{className:"input-label",children:"type=text"}),e.jsx("input",{type:"text",className:"form-control",placeholder:"Text Input"})]}),e.jsx(ao,{type:"text",label:"TextField"}),e.jsxs("div",{children:[e.jsx("label",{className:"input-label",children:"Disabled"}),e.jsx("input",{type:"text",className:"form-control",disabled:!0,value:"Disabled"})]}),e.jsx(ao,{type:"text",label:"Disabled",isDisabled:!0,value:"Disabled"})]})]}),e.jsxs($,{children:[e.jsx("h3",{children:"Checkbox"}),e.jsxs(O,{gap:20,columns:"repeat(2, 120px)",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),e.jsx(U,{className:"form-group",checked:t,onChange:()=>o(r=>!r),children:"Checkbox"}),e.jsx(z,{children:"Checkbox"}),e.jsx(U,{className:"form-group",disabled:!0,checked:t,onChange:()=>o(r=>!r),children:"Disabled"}),e.jsx(z,{isDisabled:!0,children:"Disabled"})]})]})]})]})}const De=[...bo(52)],te=[...bo(52,{icons:!0})],mo=[...ke(0,51)],Yo=[...ke(52,103)],Zo=[...ke(104,155)],Qo=[...ke(156,207)],Jo=[...ke(208,259)],er=["String 1","String 2","String 3","","Some really long text that should get truncated",444,999,!0,!1,...mo.map((t,o)=>o%5>0?t:i.cloneElement(t,{...t.props,children:[e.jsx(Y,{},`icon-${t.props.children}`),e.jsx(C,{children:t.props.children},`label-${t.props.children}`)]}))];function Y(){return e.jsx(F,{children:e.jsx(I,{icon:no})})}function Ta(){const[t,o]=i.useState(200),[r,s]=i.useState(!0),[a,l]=i.useState(te),n=i.useCallback(g=>l(g===""?te:te.filter(({item:f})=>{var p;return(p=f==null?void 0:f.textValue)==null?void 0:p.includes(g)})),[]),c=i.useCallback(async()=>bt({keyedItems:De,itemHeight:jt.medium,selectedKey:t,topOffset:yt}),[t]),d=i.useCallback(g=>{o(g)},[]),[m,h]=i.useState([String(De[0].key),String(De[1].key),String(De[2].key)]),u=i.useCallback(g=>{h(g)},[]),[x,v]=i.useState(te),y=i.useCallback(g=>v(g===""?te:te.filter(({item:f})=>{var p;return(p=f==null?void 0:f.textValue)==null?void 0:p.includes(g)})),[]);return e.jsxs(j,{name:"pickers",children:[e.jsx("h2",{className:"ui-title",children:"Pickers"}),e.jsxs(S,{gap:14,direction:"column",children:[[io,co].map(g=>{const f=p=>`${g===io?"Picker":"ComboBox"} (${p})`;return e.jsxs(S,{direction:"row",gap:14,children:[e.jsx(g,{label:f("Single Child"),tooltip:{placement:"bottom-end"},children:e.jsx(b,{textValue:"Aaa",children:"Aaa"})}),e.jsx(g,{label:f("Mixed Children Types"),defaultSelectedKey:"999",tooltip:!0,children:er}),e.jsxs(g,{label:f("Sections"),tooltip:!0,children:["String 1","String 2","String 3",e.jsxs(A,{title:"Section",children:[e.jsx(b,{textValue:"Item Aaa",children:"Item Aaa"}),e.jsx(b,{textValue:"Item Bbb",children:"Item Bbb"}),e.jsxs(b,{textValue:"Complex Ccc",children:[e.jsx(Y,{}),e.jsx(C,{children:"Complex Ccc"})]})]}),e.jsxs(A,{children:[e.jsx(b,{textValue:"Item Ddd",children:"Item Ddd"}),e.jsx(b,{textValue:"Item Eee",children:"Item Eee"}),e.jsxs(b,{textValue:"Complex Fff",children:[e.jsx(Y,{}),e.jsx(C,{children:"Complex Fff"})]}),e.jsxs(b,{textValue:"Ggg",children:[e.jsx(Y,{}),e.jsx(C,{children:"Label"}),e.jsx(C,{slot:"description",children:"Description"})]}),e.jsxs(b,{textValue:"Hhh",children:[e.jsx(Y,{}),e.jsx(C,{children:"Label that causes overflow"}),e.jsx(C,{slot:"description",children:"Description that causes overflow"})]})]},"Key B"),e.jsx(A,{title:"Section A",children:mo}),e.jsx(A,{title:"Section B",children:Yo}),e.jsx(A,{children:Zo},"Section C"),e.jsx(A,{children:Qo},"Section D"),e.jsx(A,{title:"Section E",children:Jo})]})]},g.displayName)}),e.jsxs(S,{direction:"row",gap:14,children:[e.jsx(Ie,{label:"MultiSelect (Single Child)",tooltip:{placement:"bottom-end"},children:e.jsx(b,{textValue:"Aaa",children:"Aaa"})}),e.jsx(Ie,{label:"MultiSelect (Mixed Children Types)",defaultSelectedKeys:["999"],tooltip:!0,children:er}),e.jsxs(Ie,{label:"MultiSelect (Sections)",tooltip:!0,children:["String 1","String 2","String 3",e.jsxs(A,{title:"Section",children:[e.jsx(b,{textValue:"Item Aaa",children:"Item Aaa"}),e.jsx(b,{textValue:"Item Bbb",children:"Item Bbb"}),e.jsxs(b,{textValue:"Complex Ccc",children:[e.jsx(Y,{}),e.jsx(C,{children:"Complex Ccc"})]})]}),e.jsxs(A,{children:[e.jsx(b,{textValue:"Item Ddd",children:"Item Ddd"}),e.jsx(b,{textValue:"Item Eee",children:"Item Eee"}),e.jsxs(b,{textValue:"Complex Fff",children:[e.jsx(Y,{}),e.jsx(C,{children:"Complex Fff"})]}),e.jsxs(b,{textValue:"Ggg",children:[e.jsx(Y,{}),e.jsx(C,{children:"Label"}),e.jsx(C,{slot:"description",children:"Description"})]}),e.jsxs(b,{textValue:"Hhh",children:[e.jsx(Y,{}),e.jsx(C,{children:"Label that causes overflow"}),e.jsx(C,{slot:"description",children:"Description that causes overflow"})]})]},"Key B"),e.jsx(A,{title:"Section A",children:mo}),e.jsx(A,{title:"Section B",children:Yo}),e.jsx(A,{children:Zo},"Section C"),e.jsx(A,{children:Qo},"Section D"),e.jsx(A,{title:"Section E",children:Jo})]})]}),e.jsx(U,{checked:r,onChange:g=>s(g.currentTarget.checked),children:"Show Icons"}),e.jsxs(S,{direction:"row",gap:14,children:[e.jsx(Et,{label:"Picker (Controlled)",getInitialScrollPosition:c,normalizedItems:te,selectedKey:t,showItemIcons:r,onChange:d}),e.jsx(xt,{label:"ComboBox (Controlled)",getInitialScrollPosition:c,normalizedItems:a,selectedKey:t,showItemIcons:r,onChange:d,validationState:t==null?"invalid":"valid",errorMessage:"Please select an item.",onInputChange:n}),e.jsx(Ie,{label:"MultiSelect (Controlled)",selectedKeys:m,onChange:u,onSearchTextChange:y,children:x.map(({key:g,item:f})=>e.jsx(b,{textValue:(f==null?void 0:f.textValue)??String(g),children:(f==null?void 0:f.textValue)??String(g)},String(g)))})]})]})]})}function G({label:t,direction:o="column",children:r,...s}){return e.jsxs(S,{...s,direction:o,children:[e.jsx(C,{children:t}),r]})}const se={gap:10,label:{medium:21,large:25.5}},Na=[...bo(52,{icons:!0})];function be(){return e.jsx(F,{slot:"illustration",children:e.jsx(I,{icon:Yr})})}function Ia(){const{scale:t}=wt(),[o,r]=i.useState([]),[s,a]=i.useState("compact"),l=se.label[t]+se.gap+2+Ct[s??"compact"][t],n=i.useCallback(g=>{a(g)},[]),[c,d]=i.useState(!0),[m,h]=i.useState(""),[u,x]=i.useState(""),v=i.useCallback((g,f)=>{h(g),x(f)},[]),y=i.useCallback(g=>{r(g)},[]);return e.jsxs(j,{name:"list-views",children:[e.jsx("h2",{className:"ui-title",children:"List View"}),e.jsxs(O,{gap:14,height:"size-6000",columns:"1fr 1fr 1fr",rows:`auto minmax(${l}px, auto) 1fr auto 1fr`,children:[e.jsx(G,{alignItems:"center",direction:"row",gap:se.gap,label:"Density",gridColumn:"span 3",children:e.jsxs(go,{"aria-label":"Density",orientation:"horizontal",value:s,onChange:n,children:[e.jsx(W,{value:"compact",children:"Compact"}),e.jsx(W,{value:"regular",children:"Regular"}),e.jsx(W,{value:"spacious",children:"Spacious"})]})}),e.jsx(G,{gap:se.gap,label:"Single Child",gridColumn:"span 3",height:"100%",children:e.jsx(We,{density:s,"aria-label":"Single Child",selectionMode:"multiple",children:e.jsx(b,{textValue:"Aaa",children:"Aaa"})})}),e.jsx(G,{gap:se.gap,label:"Icons",gridColumn:"span 2",children:e.jsxs(We,{"aria-label":"Icon",density:s,selectionMode:"multiple",children:[e.jsxs(b,{textValue:"Item with icon A",children:[e.jsx(be,{}),e.jsx(C,{children:"Item with icon A"})]}),e.jsxs(b,{textValue:"Item with icon B",children:[e.jsx(be,{}),e.jsx(C,{children:"Item with icon B"})]}),e.jsxs(b,{textValue:"Item with icon C",children:[e.jsx(be,{}),e.jsx(C,{children:"Item with icon C"})]}),e.jsxs(b,{textValue:"Item with icon D",children:[e.jsx(be,{}),e.jsx(C,{children:"Item with icon D with overflowing content"})]}),e.jsxs(b,{textValue:"Item with icon E",children:[e.jsx(be,{}),e.jsx(C,{children:"Item with icon E"})]})]})}),e.jsx(G,{gap:se.gap,label:"Mixed Children Types",children:e.jsxs(We,{"aria-label":"Mixed Children Types",density:s,maxWidth:"size-2400",selectionMode:"multiple",defaultSelectedKeys:["999",444],children:["String 1","String 2","String 3","","Some really long text that should get truncated",444,999,!0,!1,e.jsx(b,{textValue:"Item Aaa",children:"Item Aaa"}),e.jsx(b,{textValue:"Item Bbb",children:"Item Bbb"}),e.jsxs(b,{textValue:"Item with Description",children:[e.jsx(C,{children:"Item with Description"}),e.jsx(C,{slot:"description",children:"Description"})]}),e.jsxs(b,{textValue:"Complex Ccc",children:[e.jsx(F,{slot:"image",children:e.jsx(I,{icon:no})}),e.jsx(C,{children:"Complex Ccc with text that should be truncated"})]}),e.jsxs(b,{textValue:"Complex Ccc with Description",children:[e.jsx(F,{slot:"image",children:e.jsx(I,{icon:no})}),e.jsx(C,{children:"Complex Ccc with text that should be truncated"}),e.jsx(C,{slot:"description",children:"Description"})]})]})}),e.jsx(S,{gridColumn:"span 3",gap:14,children:e.jsx(U,{checked:c,onChange:g=>d(g.currentTarget.checked),children:"Show Ions"})}),e.jsxs(G,{gap:se.gap,label:"Controlled",gridColumn:"span 2",children:[e.jsx(pt,{"aria-label":"Controlled",density:s,normalizedItems:Na,selectionMode:"multiple",selectedKeys:o,showItemIcons:c,onChange:y,actions:e.jsxs(At,{overflowMode:"collapse",buttonLabelBehavior:"collapse",maxWidth:80,onAction:v,children:[e.jsxs(b,{children:[e.jsx(F,{children:e.jsx(I,{icon:qr})}),e.jsx(C,{children:"Edit"})]},"Edit"),e.jsxs(b,{children:[e.jsx(F,{children:e.jsx(I,{icon:Xr})}),e.jsx(C,{children:"Delete"})]},"Delete")]})}),m," ",u]})]})]})}const je=[{key:"name",name:"Name",defaultWidth:"2fr",minWidth:120,allowsResizing:!0,allowsSorting:!0,showDivider:!0},{key:"owner",name:"Owner",defaultWidth:"1fr",minWidth:100,allowsResizing:!0,allowsSorting:!0}],Ee=["Sales Overview","Revenue Tracker","Inventory Status","User Analytics","Order Pipeline","Support Queue","Marketing Funnel","Risk Dashboard","Compliance Report","Performance Monitor","Trade Blotter","Portfolio Summary","P&L Attribution","Exposure Heatmap"],Oe=["Alice","Bob","Carol","David","Eve","Frank"],ue=Array.from({length:52},(t,o)=>({name:`${Ee[o%Ee.length]} ${Math.floor(o/Ee.length)>0?Math.floor(o/Ee.length)+1:""}`.trim(),owner:Oe[o%Oe.length]})),Ae=Array.from({length:500},(t,o)=>({name:`Row ${o+1}`,owner:Oe[o%Oe.length]}));function ye(t,o){return t[o]}function Da(){const[t,o]=i.useState("compact"),[r,s]=i.useState({column:"name",direction:"ascending"}),[a,l]=i.useState(""),[n,c]=i.useState(()=>new Set(["0"])),[d,m]=i.useState(()=>new Set([0,3])),[h,u]=i.useState(()=>({items:Ae.slice(0,40),offset:0})),x=i.useCallback(p=>{o(p)},[]),v=i.useMemo(()=>{const{column:p,direction:k}=r;return[...ue].sort((T,ee)=>{const P=String(T[p]).localeCompare(String(ee[p]));return k==="descending"?-P:P})},[r]),y=i.useCallback(p=>{var k;l(((k=ue[Number(p)])==null?void 0:k.name)??"")},[]),g=i.useCallback(p=>{var k;l(((k=v[Number(p)])==null?void 0:k.name)??"")},[v]),f=i.useCallback((p,k)=>{u({items:Ae.slice(p,k+1),offset:p})},[]);return e.jsxs(j,{name:"table-views",children:[e.jsx("h2",{className:"ui-title",children:"Table View"}),e.jsxs(O,{gap:14,height:"1240px",columns:"1fr 1fr",rows:"auto minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr) auto",children:[e.jsx(G,{alignItems:"center",direction:"row",gap:10,label:"Density",gridColumn:"span 2",children:e.jsxs(go,{"aria-label":"Density",orientation:"horizontal",value:t??"compact",onChange:x,children:[e.jsx(W,{value:"compact",children:"Compact"}),e.jsx(W,{value:"regular",children:"Regular"}),e.jsx(W,{value:"spacious",children:"Spacious"})]})}),e.jsx(G,{gap:10,label:"Resizable columns",height:"100%",minHeight:0,minWidth:0,children:e.jsx(ve,{"aria-label":"Resizable columns",columns:je,density:t,items:ue.slice(0,6),itemCount:6,onAction:y,renderCell:ye,getTextValue:p=>p.name})}),e.jsx(G,{gap:10,label:"Many rows",height:"100%",minHeight:0,minWidth:0,children:e.jsx(ve,{"aria-label":"Many rows",columns:je,density:t,items:v,itemCount:v.length,sortDescriptor:r,onSortChange:s,onAction:g,renderCell:ye,getTextValue:p=>p.name})}),e.jsx(S,{gridColumn:"span 2",children:e.jsxs(C,{children:["Last opened: ",a]})}),e.jsx(G,{gap:10,label:`Windowed rows (${Ae.length} total, only the visible slice is loaded)`,height:"100%",minHeight:0,minWidth:0,gridColumn:"span 2",children:e.jsx(ve,{"aria-label":"Windowed rows",columns:je,density:t,items:h.items,itemCount:Ae.length,offset:h.offset,onViewportChange:f,renderCell:ye,getTextValue:p=>p.name})}),e.jsx(G,{gap:10,label:"Single select (uncontrolled)",height:"100%",minHeight:0,minWidth:0,children:e.jsx(ve,{"aria-label":"Single select",columns:je,density:t,items:ue.slice(0,8),itemCount:8,selectionMode:"single",defaultSelectedKeys:[0],onSelectionChange:p=>c(p),renderCell:ye,getTextValue:p=>p.name})}),e.jsx(G,{gap:10,label:"Multiple select (controlled) with disabled rows",height:"100%",minHeight:0,minWidth:0,children:e.jsx(ve,{"aria-label":"Multiple select",columns:je,density:t,items:ue,itemCount:ue.length,selectionMode:"multiple",selectedKeys:d,disabledKeys:[2,5],onSelectionChange:p=>m(p),renderCell:ye,getTextValue:p=>p.name})}),e.jsxs(S,{gridColumn:"span 2",gap:14,children:[e.jsxs(C,{children:["Single selected:"," ",n==="all"?"all":[...n].join(", ")||"none"]}),e.jsxs(C,{children:["Multiple selected:"," ",d==="all"?"all":[...d].join(", ")||"none"]})]})]})]})}function Ea(){const[t,o]=i.useState(!1),[r,s]=i.useState(!1),[a,l]=i.useState(!1),n={maxHeight:500,display:"flex",flexDirection:"column",maxWidth:400},c="This is a short error message",d=`Mid length error message
207
207
  `.repeat(10),m=`Really long error message
208
208
  `.repeat(100),h="MidError",u="SuperLongErrorMessageType",x=t||r||a,v=()=>{o(!1),s(!1),l(!1)};return e.jsxs(j,{name:"error-views",children:[e.jsx("h2",{className:"ui-title",title:"Display error messages easily",children:"Error Views"}),e.jsx("h3",{children:"Expandable"}),e.jsxs("div",{className:"row",style:{maxHeight:500},children:[e.jsx("div",{className:"col",style:n,children:e.jsx(X,{message:c})}),e.jsx("div",{className:"col",style:n,children:e.jsx(X,{message:d,type:h})}),e.jsx("div",{className:"col",style:n,children:e.jsx(X,{message:m,type:u})})]}),e.jsx("h3",{children:"Always expanded"}),e.jsxs("div",{className:"row",style:{maxHeight:500},children:[e.jsx("div",{className:"col",style:n,children:e.jsx(X,{message:c,isExpanded:!0})}),e.jsx("div",{className:"col",style:n,children:e.jsx(X,{message:d,type:h,isExpanded:!0})}),e.jsx("div",{className:"col",style:n,children:e.jsx(X,{message:m,type:u,isExpanded:!0})})]}),e.jsxs("h3",{children:["Dismissable",x&&e.jsx(w,{kind:"primary",onClick:v,style:{marginLeft:"1rem"},children:"Reset"})]}),e.jsxs("div",{className:"row",style:{maxHeight:500},children:[e.jsx("div",{className:"col",style:n,children:!t&&e.jsx(X,{message:c,onDismiss:()=>{o(!0)}})}),e.jsx("div",{className:"col",style:n,children:!r&&e.jsx(X,{message:d,type:h,onDismiss:()=>{s(!0)}})}),e.jsx("div",{className:"col",style:n,children:!a&&e.jsx(X,{message:m,type:u,onDismiss:()=>{l(!0)}})})]})]})}function fr({value:t}){return e.jsx(w,{kind:"primary",onClick:()=>{},children:t})}fr.displayName="FooComponent";const Q=tt(fr);function Aa({value:t}){return e.jsx(Q,{value:`${t}.${t}`})}function Ma({value:t}){return e.jsxs("div",{children:[e.jsx(Q,{value:t}),e.jsx(Q,{value:t})]})}function to({value:t}){return e.jsx(w,{kind:"danger",onClick:()=>{},children:t.split("").reverse().join("")})}function Ra(){const[t,o]=i.useState("hello");return e.jsxs(j,{name:"xcomponents",children:[e.jsx("h2",{className:"ui-title",children:"XComponents"}),e.jsxs("p",{children:["XComponents are a way to replace a component with another component without needing to pass props all the way down the component tree. This can be useful in cases where we have a component deep down in the component tree that we want to replace with a different component, but don't want to have to provide props at the top level just to hook into that.",e.jsx("br",{}),"Below is a component that is simply a button displaying the text inputted in the input field. We will replace this component with a new component that reverses the text, straight up, then in a nested scenario, and then multiple instances."]}),e.jsx("div",{className:"form-group",children:e.jsxs("label",{htmlFor:"xcomponentsInput",children:["Input Value:",e.jsx("input",{type:"text",className:"form-control",id:"xcomponentsInput",value:t,onChange:r=>o(r.target.value)})]})}),e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col",children:[e.jsx("small",{children:"Original Component"}),e.jsx("div",{children:e.jsx(Q,{value:t})}),e.jsx("small",{children:"Replaced with Reverse"}),e.jsx("div",{children:e.jsx(ze,{value:new Map([[Q,to]]),children:e.jsx(Q,{value:t})})})]}),e.jsxs("div",{className:"col",children:[e.jsx("small",{children:"Nested component replaced"}),e.jsx("div",{children:e.jsx(ze,{value:new Map([[Q,to]]),children:e.jsx(Aa,{value:t})})})]}),e.jsxs("div",{className:"col",children:[e.jsx("small",{children:"Multiple Components replaced"}),e.jsx("div",{children:e.jsx(ze,{value:new Map([[Q,to]]),children:e.jsx(Ma,{value:t})})})]})]})]})}function $a(){return e.jsxs(j,{name:"checkbox-groups",children:[e.jsx("h2",{className:"ui-title",children:"Checkbox Groups"}),e.jsxs(S,{gap:"size-100",gridColumn:"span 3",height:"100%",children:[e.jsxs(S,{direction:"column",children:[e.jsx(C,{children:"Single Child"}),e.jsx(Ke,{"aria-label":"Single Child",children:e.jsx(z,{value:"Aaa",children:"Aaa"})})]}),e.jsxs(S,{direction:"column",children:[e.jsx(C,{children:"Multiple Children"}),e.jsxs(Ke,{"aria-label":"Multiple Children",children:[e.jsx(z,{value:"Aaa",children:"Aaa"}),e.jsx(z,{value:"Bbb",children:"Bbb"}),e.jsx(z,{value:"Ccc",children:"Ccc"})]})]}),e.jsxs(S,{direction:"column",children:[e.jsx(C,{children:"Mixed Children Types"}),e.jsxs(Ke,{"aria-label":"Mixed Children Types",children:["String 1","String 2",444,999,!0,!1,e.jsx(z,{children:"Aaa"})]})]})]})]})}const or={position:"sticky",justifyContent:"end",zIndex:1,UNSAFE_style:{float:"right"}};function Pa(){const{themes:t}=lr(),o=t.length>1,r=dr()!=="";return e.jsx("div",{tabIndex:-1,role:"main",children:e.jsxs("div",{className:J("container","style-guide-container",r&&ls),children:[e.jsx(S,{justifyContent:"space-between",alignItems:"center",marginTop:"2rem",marginBottom:"1rem",children:e.jsx("h1",{style:{paddingTop:"2rem"},children:"Deephaven UI Components"})}),e.jsxs(S,{...or,UNSAFE_className:r?"hide-when-isolated":void 0,marginTop:-56,top:20,gap:10,alignItems:"end",children:[o?e.jsx(Rt,{}):null,e.jsx(ba,{})]}),e.jsx(S,{...or,UNSAFE_className:r?"hide-when-isolated":void 0,top:"calc(100vh - 40px)",marginTop:-32,marginEnd:o?-234:0,children:e.jsx(ja,{})}),e.jsx(Ks,{}),e.jsx(fe,{"data-menu-category":"Colors"}),e.jsx(ps,{}),e.jsx(ua,{}),e.jsx(fe,{"data-menu-category":"Layout"}),e.jsx(Ca,{}),e.jsx(fe,{"data-menu-category":"Components"}),e.jsx(Ce,{}),e.jsx(Us,{}),e.jsx(Vs,{}),e.jsx(Ia,{}),e.jsx(Da,{}),e.jsx(Ta,{}),e.jsx(Os,{}),e.jsx(Fe,{}),e.jsx(Gs,{}),e.jsx($a,{}),e.jsx(fs,{}),e.jsx(Hs,{}),e.jsx(vs,{}),e.jsx(bs,{}),e.jsx(Js,{}),e.jsx(Ws,{}),e.jsx(zs,{}),e.jsx(_s,{}),e.jsx(ws,{}),e.jsx(Rs,{}),e.jsx(cs,{}),e.jsx(vt,{}),e.jsx(Sa,{}),e.jsx(Ea,{}),e.jsx(Ra,{}),e.jsx(fe,{"data-menu-category":"Spectrum Components"}),e.jsx(ma,{}),e.jsx(fe,{"data-menu-category":"Spectrum Comparison"}),e.jsx(ka,{}),e.jsx(Br,{})]})})}function La(t){const{workspace:o,setWorkspace:r}=t;return i.useEffect(()=>{$t.makeDefaultWorkspace({getLayouts:async()=>[],getLayout:async()=>({})}).then(r)},[r]),o!=null?e.jsx(Pa,{}):null}const _a=t=>({workspace:at(t)}),Ba=Vr(_a,{setWorkspace:st})(La);function Qa(){return i.useEffect(function(){St.register(new URL("./download/serviceWorker.js",window.location.href)),lt.init({getWorker:()=>new Qr}),window["__@hello-pangea/dnd-disable-dev-warnings"]=!0},[]),e.jsx(ft,{children:e.jsx(Fr,{store:Zr,children:e.jsx(Ba,{})})})}export{Qa as StyleGuideRoot,Qa as default};
209
- //# sourceMappingURL=StyleGuideRoot-BuzXY_Hc.js.map
209
+ //# sourceMappingURL=StyleGuideRoot-ZvvkNxEQ.js.map