@deephaven/code-studio 0.77.1-beta.2 → 0.77.1-beta.4

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 (46) hide show
  1. package/build/assets/{AppRoot-280e670c.js → AppRoot-f69a0140.js} +3 -3
  2. package/build/assets/{AppRoot-280e670c.js.map → AppRoot-f69a0140.js.map} +1 -1
  3. package/build/assets/{Chart-ebd8c605.js → Chart-19846143.js} +2 -2
  4. package/build/assets/{Chart-ebd8c605.js.map → Chart-19846143.js.map} +1 -1
  5. package/build/assets/{ControlType-f1bb8293.js → ControlType-5e65a1f9.js} +3 -3
  6. package/build/assets/{ControlType-f1bb8293.js.map → ControlType-5e65a1f9.js.map} +1 -1
  7. package/build/assets/FontBootstrap-301270dd.css +1 -0
  8. package/build/assets/{FontBootstrap-753901ab.js → FontBootstrap-dafd12df.js} +2 -2
  9. package/build/assets/{FontBootstrap-753901ab.js.map → FontBootstrap-dafd12df.js.map} +1 -1
  10. package/build/assets/{FormatterUtils-29aa8e1a.js → FormatterUtils-84854bf0.js} +2 -2
  11. package/build/assets/{FormatterUtils-29aa8e1a.js.map → FormatterUtils-84854bf0.js.map} +1 -1
  12. package/build/assets/{Grid-e1236296.js → Grid-2da8c6ae.js} +2 -2
  13. package/build/assets/{Grid-e1236296.js.map → Grid-2da8c6ae.js.map} +1 -1
  14. package/build/assets/{GridRenderer-ed7dbad4.js → GridRenderer-bc76a490.js} +2 -2
  15. package/build/assets/{GridRenderer-ed7dbad4.js.map → GridRenderer-bc76a490.js.map} +1 -1
  16. package/build/assets/{IrisGrid-105d172d.js → IrisGrid-4566fcfe.js} +2 -2
  17. package/build/assets/{IrisGrid-105d172d.js.map → IrisGrid-4566fcfe.js.map} +1 -1
  18. package/build/assets/{IrisGridModel-61ddc43e.js → IrisGridModel-5eee50a2.js} +2 -2
  19. package/build/assets/{IrisGridModel-61ddc43e.js.map → IrisGridModel-5eee50a2.js.map} +1 -1
  20. package/build/assets/{IrisGridShortcuts-d4875242.js → IrisGridShortcuts-ce1afae5.js} +2 -2
  21. package/build/assets/{IrisGridShortcuts-d4875242.js.map → IrisGridShortcuts-ce1afae5.js.map} +1 -1
  22. package/build/assets/{IrisGridThemeProvider-47181f2a.css → IrisGridThemeProvider-3984e29a.css} +1 -1
  23. package/build/assets/{IrisGridThemeProvider-b7f4c598.js → IrisGridThemeProvider-3c6c8cb6.js} +2 -2
  24. package/build/assets/{IrisGridThemeProvider-b7f4c598.js.map → IrisGridThemeProvider-3c6c8cb6.js.map} +1 -1
  25. package/build/assets/{MarkdownEditor-f869507d.js → MarkdownEditor-c76b2153.js} +2 -2
  26. package/build/assets/{MarkdownEditor-f869507d.js.map → MarkdownEditor-c76b2153.js.map} +1 -1
  27. package/build/assets/{MarkdownNotebook-d2c01a48.js → MarkdownNotebook-4a4ccc33.js} +2 -2
  28. package/build/assets/{MarkdownNotebook-d2c01a48.js.map → MarkdownNotebook-4a4ccc33.js.map} +1 -1
  29. package/build/assets/{MissingPartitionError-bd4a06dd.js → MissingPartitionError-6c767865.js} +2 -2
  30. package/build/assets/{MissingPartitionError-bd4a06dd.js.map → MissingPartitionError-6c767865.js.map} +1 -1
  31. package/build/assets/{StyleGuideRoot-773a2aaf.js → StyleGuideRoot-27a8d861.js} +2 -2
  32. package/build/assets/{StyleGuideRoot-773a2aaf.js.map → StyleGuideRoot-27a8d861.js.map} +1 -1
  33. package/build/assets/{index-470b8a54.css → index-13e1b819.css} +1 -1
  34. package/build/assets/index-3a104f6a.css +1 -0
  35. package/build/assets/{index-d7716c14.js → index-49c2275d.js} +2 -2
  36. package/build/assets/{index-d7716c14.js.map → index-49c2275d.js.map} +1 -1
  37. package/build/assets/{index-3ad3aa8a.js → index-5f3db412.js} +2 -2
  38. package/build/assets/{index-3ad3aa8a.js.map → index-5f3db412.js.map} +1 -1
  39. package/build/assets/{index-f720412a.js → index-d634bf3b.js} +3 -3
  40. package/build/assets/{index-f720412a.js.map → index-d634bf3b.js.map} +1 -1
  41. package/build/assets/{useUser-01f40e41.js → useUser-f5667912.js} +2 -2
  42. package/build/assets/{useUser-01f40e41.js.map → useUser-f5667912.js.map} +1 -1
  43. package/build/index.html +2 -2
  44. package/package.json +30 -30
  45. package/build/assets/FontBootstrap-832a937c.css +0 -1
  46. package/build/assets/index-e500652d.css +0 -1
@@ -0,0 +1 @@
1
+ ._spectrumActionBar_1ji6m_5 [class*=react-spectrum-ActionBar-bar]{max-width:none}._spectrumDialogComponentHeading_1ji6m_9{font-weight:400;overflow-wrap:break-word}._spectrumEllipsis_1ji6m_14{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dh-list-view-wrapper{--dh-list-view-item-icon-compact: 16px;--dh-list-view-item-icon-regular: 18px;--dh-list-view-item-icon-spacious: 24px;height:100%;width:100%;position:relative}.dh-list-view-wrapper>div{position:absolute;height:100%;width:100%}.dh-list-view-wrapper>div>div>div{transition:none!important}.dh-list-view-wrapper-scale-large{--dh-list-view-item-icon-compact: 20px;--dh-list-view-item-icon-regular: 24px;--dh-list-view-item-icon-spacious: 30px}.dh-list-view-wrapper-density-compact svg[class*=react-spectrum-ListViewItem-thumbnail]{height:var(--dh-list-view-item-icon-compact);width:var(--dh-list-view-item-icon-compact)}.dh-list-view-wrapper-density-regular svg[class*=react-spectrum-ListViewItem-thumbnail]{height:var(--dh-list-view-item-icon-regular);width:var(--dh-list-view-item-icon-regular)}.dh-list-view-wrapper-density-spacious svg[class*=react-spectrum-ListViewItem-thumbnail]{height:var(--dh-list-view-item-icon-spacious);width:var(--dh-list-view-item-icon-spacious)}.aci-container{flex-grow:1}.aci-options{max-height:200px;border-radius:4px;overflow:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.aci-options .no-match{padding:.42145rem .75rem}.aci-options .aci-option-btn{border:none;width:100%;color:var(--dh-color-fg, #f0f0ee);padding:.42145rem .75rem;white-space:nowrap;background:none;text-align:left}.aci-options .aci-option-btn.keyboard-active{background-color:var(--dh-color-item-list-selected-bg)}.aci-options .aci-option-btn.keyboard-active:hover{background-color:var(--dh-color-item-list-selected-hover-bg)}.aci-options .aci-option-btn:hover{color:var(--dh-color-fg, #f0f0ee);background-color:var(--dh-color-item-list-hover-bg)}.aci-options .aci-option-btn:focus{outline:none}textarea.auto-resize-textarea{min-height:calc(1.3em + .8429rem + 2px);white-space:nowrap}textarea.auto-resize-textarea:focus{white-space:pre}.cs-container{flex-wrap:nowrap}.cs-container .cs-dropdown .cs-btn{color:var(--dh-color-input-fg);display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-radius:4px;border:1px solid var(--dh-color-input-border);min-width:14rem;font-weight:400}.cs-container .cs-dropdown .cs-btn .cs-caret{background-size:10px 6px;background-color:var(--dh-color-fg);-webkit-mask-image:var(--dh-svg-icon-selector-caret);mask-image:var(--dh-svg-icon-selector-caret);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:10px 6px;mask-size:10px 6px;background-color:var(--dh-color-selector-fg);width:10px;height:6px;margin-right:4px}.cs-container .cs-dropdown:hover .cs-btn:not(:disabled) .cs-caret{background-color:var(--dh-color-selector-hover-fg)}.cs-container .cs-dropdown-invalid .cs-btn-invalid{border-color:var(--dh-color-negative-bg)}.cs-container .cs-btn:focus{border-color:var(--dh-color-input-focus-border)}.cs-menu-container .cs-divider{background-color:var(--dh-color-black, #1a171a)}.cs-menu-container .cs-custom-container{display:flex;direction:row}.cs-menu-container .custom-label{padding:.42145rem .75rem}.cs-menu-container .cs-options{max-height:400px;overflow:auto}.cs-menu-container .cs-option-btn{border:none;width:100%;color:var(--dh-color-item-list-selected-fg);padding:.42145rem .75rem;white-space:nowrap;text-decoration:none;background-color:transparent;text-align:left;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:block}.cs-menu-container .cs-option-btn.keyboard-active{background-color:var(--dh-color-item-list-selected-bg)}.cs-menu-container .cs-option-btn.keyboard-active:hover{background-color:var(--dh-color-item-list-selected-hover-bg)}.cs-menu-container .cs-option-btn:hover{color:var(--dh-color-fg, #f0f0ee);background-color:var(--dh-color-item-list-hover-bg)}.cs-menu-container .cs-option-btn:focus{outline:none}.cs-menu-container .cs-options:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.error-view{position:relative;color:var(--dh-color-negative-bg);border-radius:4px;background-color:color-mix(in srgb,var(--dh-color-negative-down-bg) 28%,transparent);display:flex;flex-direction:column;flex-grow:0;font-family:Fira Mono,menlo,monaco,consolas,Liberation Mono,Courier New,monospace;transition:all .15s ease-in-out;max-height:150px}.error-view.expanded{max-height:100%}.error-view .error-view-header{display:flex;flex-direction:row;justify-content:space-between;text-wrap:nowrap;width:100%}.error-view .error-view-header .error-view-header-text{display:flex;flex-direction:row;align-items:center;padding-left:1rem;padding-right:1rem;font-weight:700;flex-shrink:1;overflow:hidden;white-space:nowrap}.error-view .error-view-header .error-view-header-text span{flex-shrink:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:.25rem}.error-view .error-view-header .error-view-buttons{display:flex;flex-direction:row;gap:1px;overflow:hidden;border-radius:0 4px 0 0;flex-shrink:0}.error-view .error-view-header .error-view-buttons .btn-danger{border-radius:0;color:var(--dh-color-contrast-dark);opacity:.8;padding:.25rem}.error-view .error-view-header .error-view-buttons .btn-danger:active{color:var(--dh-color-contrast-dark)}.error-view .error-view-header .error-view-buttons .error-view-copy-button{min-width:3rem}.error-view .error-view-text{width:100%;padding:1rem;margin-bottom:0;color:var(--dh-color-negative-bg);background-color:transparent;border:0;resize:none;outline:none;white-space:pre;flex-grow:1;overflow:auto}.hcm-btn{display:flex;flex-direction:row;align-items:center;gap:.75rem;justify-content:space-between;border-radius:4px;border:1px solid var(--dh-color-input-border);color:var(--dh-color-input-fg);background-color:var(--dh-color-selector-bg);padding:.42145rem .75rem;font-weight:400}.hcm-btn .cs-caret{background-size:10px 6px;background-color:var(--dh-color-fg);-webkit-mask-image:var(--dh-svg-icon-selector-caret);mask-image:var(--dh-svg-icon-selector-caret);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:10px 6px;mask-size:10px 6px;background-color:var(--dh-color-selector-fg);width:10px;height:6px;margin-right:4px;flex-shrink:0}.hcm-btn:focus{border-color:var(--dh-color-input-focus-border)}.hcm-btn:hover:not(:disabled){border-color:var(--dh-color-input-hover-border);color:var(--dh-color-selector-hover-fg);background-color:var(--dh-color-selector-hover-bg)}.hcm-btn:hover:not(:disabled) .cs-caret{background-color:var(--dh-color-selector-hover-fg)}.hcm-menu-container{padding:.5rem}.hcm-menu-container .hcm-parent{font-weight:700}.hcm-menu-container .hcm-child{margin-left:1rem}.random-area-plot-animation-container{position:absolute;top:0;bottom:0;height:100%;width:100%;overflow:hidden}.random-area-plot-animation-container canvas{transition:all .15s;display:block}.random-area-plot-animation-container canvas.shade{filter:grayscale(100%) brightness(90%)}._time-slider_5rbci_5{width:100%;padding-bottom:1rem;overflow:hidden}._time-slider_5rbci_5 ._time-slider-popovers_5rbci_10{display:flex;flex-direction:row;margin:0 4px}._time-slider_5rbci_5 ._time-slider-popovers_5rbci_10 ._handle-popper_5rbci_15{padding:.5rem;width:90px;border-radius:4px;background:var(--dh-color-subdued-content-bg);flex-shrink:0;text-align:center;margin:0 1px}._time-slider_5rbci_5 ._time-slider-popovers_5rbci_10 ._handle-popper_5rbci_15 label._modified_5rbci_24{color:var(--dh-color-modified)}._time-slider_5rbci_5 ._time-slider-popovers_5rbci_10 ._handle-popper_5rbci_15 input{padding:.42145rem 0;text-align:center}._time-slider_5rbci_5 ._time-slider-popovers_5rbci_10 ._flex-spacer_5rbci_31{margin-left:auto;margin-right:auto}._time-slider_5rbci_5 ._track_5rbci_35{margin:4px;height:15px;background:var(--dh-color-gray-500);border-radius:7.5px;position:relative}._time-slider_5rbci_5 ._track_5rbci_35 ._track-fills_5rbci_42{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:7.5px;overflow:hidden}._time-slider_5rbci_5 ._track_5rbci_35 ._track-fills_5rbci_42 ._track-fill_5rbci_42{border-radius:7.5px;background:var(--dh-color-accent-bg);height:100%;width:100%;position:absolute;top:0;left:0}._time-slider_5rbci_5 ._track_5rbci_35 ._track-fills_5rbci_42 ._track-fill-start_5rbci_60,._time-slider_5rbci_5 ._track_5rbci_35 ._track-fills_5rbci_42 ._track-fill-middle_5rbci_61{transform-origin:0 0}._time-slider_5rbci_5 ._track_5rbci_35 ._track-fills_5rbci_42 ._track-fill-end_5rbci_64{transform-origin:100% 0}._time-slider_5rbci_5 ._track_5rbci_35 ._handle-track_5rbci_67{position:absolute;width:100%;height:15px;top:0;left:0;pointer-events:none}._time-slider_5rbci_5 ._track_5rbci_35 ._handle-track_5rbci_67:focus-within{z-index:2}._time-slider_5rbci_5 ._track_5rbci_35 ._handle-track_5rbci_67 ._handle_5rbci_15{display:block;height:15px;width:15px;border-radius:50%;position:absolute;top:0;left:0;padding:0;background:var(--dh-color-gray-700);border:1px solid transparent;transition:color .12s ease-in-out,background-color .12s ease-in-out,border-color .12s ease-in-out,box-shadow .12s ease-in-out;cursor:grab;pointer-events:all}._time-slider_5rbci_5 ._track_5rbci_35 ._handle-track_5rbci_67 ._handle_5rbci_15:hover{background:var(--dh-color-gray-900, #fcfcfa)}._time-slider_5rbci_5 ._track_5rbci_35 ._handle-track_5rbci_67 ._handle_5rbci_15:focus{background:var(--dh-color-gray-900, #fcfcfa);outline:0;border:1px solid var(--dh-color-input-focus-border);box-shadow:0 0 0 .2rem color-mix(in srgb,var(--dh-color-accent) 35%,transparent);transform:scale(1.15)}._time-slider_5rbci_5 ._track_5rbci_35 ._ticks_5rbci_103{height:100%;width:100%;position:absolute;top:0;left:0;display:flex;flex-direction:row}._time-slider_5rbci_5 ._track_5rbci_35 ._ticks_5rbci_103 div{display:block;width:4.1666666667%;height:15px;border-right:1px solid var(--dh-color-gray-75)}._time-slider_5rbci_5 ._track_5rbci_35 ._ticks_5rbci_103 div:last-child{border-right:none}._time-slider_5rbci_5 ._tick-labels_5rbci_121{position:relative;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:var(--dh-color-gray-700);display:flex;flex-direction:row;flex-wrap:wrap;height:1.5rem;overflow:hidden}._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label_5rbci_121{width:4.1666666667%;text-align:left;font-size:.9rem}._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137{width:95.8333333333%;min-width:300px;margin-left:-2.0833333333%;display:flex}._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137 ._tick-label_5rbci_121{text-align:center;visibility:hidden;width:4.347826087%}._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137 ._tick-label_5rbci_121:before{content:"";margin-left:-100%}._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137 ._tick-label_5rbci_121:after{content:"";margin-right:-100%}._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137 ._tick-label_5rbci_121:nth-child(4),._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137 ._tick-label_5rbci_121:nth-child(8),._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137 ._tick-label_5rbci_121:nth-child(12),._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137 ._tick-label_5rbci_121:nth-child(16),._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137 ._tick-label_5rbci_121:nth-child(20),._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137 ._tick-label_5rbci_121:nth-child(24){visibility:visible}._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137 div:nth-child(12){position:absolute;top:0;left:47.8260869565%}._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137 div:nth-child(13){margin-left:4.1666666667%}._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137 div:nth-child(24){position:absolute;direction:rtl;top:0;right:0;text-align:right}._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137 div:nth-child(24):before,._time-slider_5rbci_5 ._tick-labels_5rbci_121 ._tick-label-wrapper_5rbci_137 div:nth-child(24):after{content:unset;margin:unset}.time-slider{width:100%;padding-bottom:1rem;overflow:hidden}.time-slider .time-slider-popovers{display:flex;flex-direction:row;margin:0 4px}.time-slider .time-slider-popovers .handle-popper{padding:.5rem;width:90px;border-radius:4px;background:var(--dh-color-subdued-content-bg);flex-shrink:0;text-align:center;margin:0 1px}.time-slider .time-slider-popovers .handle-popper label.modified{color:var(--dh-color-modified)}.time-slider .time-slider-popovers .handle-popper input{padding:.42145rem 0;text-align:center}.time-slider .time-slider-popovers .flex-spacer{margin-left:auto;margin-right:auto}.time-slider .track{margin:4px;height:15px;background:var(--dh-color-gray-500);border-radius:7.5px;position:relative}.time-slider .track .track-fills{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:7.5px;overflow:hidden}.time-slider .track .track-fills .track-fill{border-radius:7.5px;background:var(--dh-color-accent-bg);height:100%;width:100%;position:absolute;top:0;left:0}.time-slider .track .track-fills .track-fill-start,.time-slider .track .track-fills .track-fill-middle{transform-origin:0 0}.time-slider .track .track-fills .track-fill-end{transform-origin:100% 0}.time-slider .track .handle-track{position:absolute;width:100%;height:15px;top:0;left:0;pointer-events:none}.time-slider .track .handle-track:focus-within{z-index:2}.time-slider .track .handle-track .handle{display:block;height:15px;width:15px;border-radius:50%;position:absolute;top:0;left:0;padding:0;background:var(--dh-color-gray-700);border:1px solid transparent;transition:color .12s ease-in-out,background-color .12s ease-in-out,border-color .12s ease-in-out,box-shadow .12s ease-in-out;cursor:grab;pointer-events:all}.time-slider .track .handle-track .handle:hover{background:var(--dh-color-gray-900, #fcfcfa)}.time-slider .track .handle-track .handle:focus{background:var(--dh-color-gray-900, #fcfcfa);outline:0;border:1px solid var(--dh-color-input-focus-border);box-shadow:0 0 0 .2rem color-mix(in srgb,var(--dh-color-accent) 35%,transparent);transform:scale(1.15)}.time-slider .track .ticks{height:100%;width:100%;position:absolute;top:0;left:0;display:flex;flex-direction:row}.time-slider .track .ticks div{display:block;width:4.1666666667%;height:15px;border-right:1px solid var(--dh-color-gray-75)}.time-slider .track .ticks div:last-child{border-right:none}.time-slider .tick-labels{position:relative;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:var(--dh-color-gray-700);display:flex;flex-direction:row;flex-wrap:wrap;height:1.5rem;overflow:hidden}.time-slider .tick-labels .tick-label{width:4.1666666667%;text-align:left;font-size:.9rem}.time-slider .tick-labels .tick-label-wrapper{width:95.8333333333%;min-width:300px;margin-left:-2.0833333333%;display:flex}.time-slider .tick-labels .tick-label-wrapper .tick-label{text-align:center;visibility:hidden;width:4.347826087%}.time-slider .tick-labels .tick-label-wrapper .tick-label:before{content:"";margin-left:-100%}.time-slider .tick-labels .tick-label-wrapper .tick-label:after{content:"";margin-right:-100%}.time-slider .tick-labels .tick-label-wrapper .tick-label:nth-child(4),.time-slider .tick-labels .tick-label-wrapper .tick-label:nth-child(8),.time-slider .tick-labels .tick-label-wrapper .tick-label:nth-child(12),.time-slider .tick-labels .tick-label-wrapper .tick-label:nth-child(16),.time-slider .tick-labels .tick-label-wrapper .tick-label:nth-child(20),.time-slider .tick-labels .tick-label-wrapper .tick-label:nth-child(24){visibility:visible}.time-slider .tick-labels .tick-label-wrapper div:nth-child(12){position:absolute;top:0;left:47.8260869565%}.time-slider .tick-labels .tick-label-wrapper div:nth-child(13){margin-left:4.1666666667%}.time-slider .tick-labels .tick-label-wrapper div:nth-child(24){position:absolute;direction:rtl;top:0;right:0;text-align:right}.time-slider .tick-labels .tick-label-wrapper div:nth-child(24):before,.time-slider .tick-labels .tick-label-wrapper div:nth-child(24):after{content:unset;margin:unset}
@@ -1,4 +1,4 @@
1
- import{bI as It,r as l,T as le,I as c,bL as jt,ax as st,K as C,ag as Se,a7 as Nt,L as Z,bM as _t,bA as Ct,b9 as lt,aj as Tt,bN as kt,U as Mt,M as F,V as N}from"./vendor-2ad5ff96.js";import{s as Ne,cG as ut,cH as we,bx as ue,bA as Dt,bB as $t,aj as ct,d as oe,J as At,A as Rt,B as he,C as _e,a_ as Ft,bv as Kt}from"./ControlType-f1bb8293.js";import{b7 as dt,aW as Ce,L as ft,aF as Vt,ai as Lt,b8 as Ut,b9 as Wt,a8 as Ht,e as Bt}from"./index-d7716c14.js";import{j as pt}from"./useUser-01f40e41.js";import{M as ht,D as zt,g as Gt}from"./GridRenderer-ed7dbad4.js";import{C as Yt,b as qt}from"./IrisGridModel-61ddc43e.js";var vt=It;function U(t,e){return l.isValidElement(t)&&t.type===e}function Te(t,e,r,n,a,i,o){try{var s=t[i](o),u=s.value}catch(d){r(d);return}s.done?e(u):Promise.resolve(u).then(n,a)}function Xt(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(u){Te(i,n,a,o,s,"next",u)}function s(u){Te(i,n,a,o,s,"throw",u)}o(void 0)})}}function va(t,e){return t?{}:{errorMessage:e,validationState:"invalid"}}function ke(t){var e;return(e=t?.UNSAFE_getDOMNode())!==null&&e!==void 0?e:null}function ma(t){var e=t?.UNSAFE_getDOMNode().lastElementChild;return Jt(e)}function ga(t){return mt(t,"input")}function Zt(t){return mt(t,"button")}function mt(t,e){var r=t?.UNSAFE_getDOMNode(),n=r?.querySelector(e),a=n?.getAttribute("aria-controls"),i=a==null?null:document.getElementById(a);return i}function ya(t){return ve.apply(this,arguments)}function ve(){return ve=Xt(function*(t){var{keyedItems:e,itemHeight:r,selectedKey:n,topOffset:a}=t,i=e.findIndex(o=>{var s,u;return((s=(u=o.item)===null||u===void 0?void 0:u.key)!==null&&s!==void 0?s:o.key)===n});return i<=0?a:r*i+a}),ve.apply(this,arguments)}function Jt(t){return t instanceof HTMLElement?t:null}function Qt(){var[t,e]=l.useState(!1),r=l.useCallback(a=>{var i=a?.UNSAFE_getDOMNode();i!=null&&i.scrollWidth>i.offsetWidth&&e(!0)},[]),n=l.useCallback(()=>{e(!1)},[]);return{isOverflowing:t,checkOverflow:r,resetIsOverflowing:n}}function er(t,e){return l.useCallback(r=>{typeof t=="function"?t(e(r)):t.current=e(r)},[e,t])}function tr(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dt,[e,r]=l.useState(0),[n,a]=l.useState(0),[i,o]=l.useState(0),[s,u]=l.useState(0),d=l.useMemo(()=>new DOMRect(e,n,i,s),[s,i,e,n]),[f,p]=l.useState(null),h=er(p,t),v=l.useCallback(m=>{var b,[S]=m,w=(b=S?.contentRect)!==null&&b!==void 0?b:{x:0,y:0,width:0,height:0};r(w.x),a(w.y),o(w.width),u(w.height)},[]);return pt(f,v),{ref:h,contentRect:d}}function rr(t,e){var r=l.useMemo(()=>le(t,e),[t,e]);return l.useEffect(()=>()=>r.cancel(),[r]),r}function nr(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dt,r=l.useRef();return l.useEffect(()=>()=>{var n;return(n=r.current)===null||n===void 0?void 0:n.call(r)},[]),l.useCallback(n=>{var a;(a=r.current)===null||a===void 0||a.call(r);var i=e(n);i&&(i.addEventListener("scroll",t),r.current=()=>{i.removeEventListener("scroll",t),r.current=void 0})},[e,t])}function Me(t,e,r,n,a,i,o){try{var s=t[i](o),u=s.value}catch(d){r(d);return}s.done?e(u):Promise.resolve(u).then(n,a)}function ar(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(u){Me(i,n,a,o,s,"next",u)}function s(u){Me(i,n,a,o,s,"throw",u)}o(void 0)})}}function ir(t,e,r){var n=l.useRef(null),a=l.useRef(!1),[i,o]=l.useState(null),s=l.useCallback(ar(function*(){if(!(i==null||r==null)){var f=yield r();f!=null&&i.scroll(0,f)}}),[r,i]);l.useEffect(()=>(i?.addEventListener("scroll",e),a.current&&(s(),a.current=!1),()=>{i?.removeEventListener("scroll",e)}),[e,i,s]);var u=l.useRef(),d=l.useCallback(f=>{window.clearTimeout(u.current),f?(a.current=!0,u.current=window.setTimeout(()=>{o(t(n.current))},0)):o(null)},[t]);return{ref:n,onOpenChange:d}}var or=["gray-50","gray-75","gray-100","gray-200","gray-300","gray-400","gray-500","gray-600","gray-700","gray-800","gray-900","red-100","red-200","red-300","red-400","red-500","red-600","red-700","red-800","red-900","red-1000","red-1100","red-1200","red-1300","red-1400","orange-100","orange-200","orange-300","orange-400","orange-500","orange-600","orange-700","orange-800","orange-900","orange-1000","orange-1100","orange-1200","orange-1300","orange-1400","yellow-100","yellow-200","yellow-300","yellow-400","yellow-500","yellow-600","yellow-700","yellow-800","yellow-900","yellow-1000","yellow-1100","yellow-1200","yellow-1300","yellow-1400","chartreuse-100","chartreuse-200","chartreuse-300","chartreuse-400","chartreuse-500","chartreuse-600","chartreuse-700","chartreuse-800","chartreuse-900","chartreuse-1000","chartreuse-1100","chartreuse-1200","chartreuse-1300","chartreuse-1400","celery-100","celery-200","celery-300","celery-400","celery-500","celery-600","celery-700","celery-800","celery-900","celery-1000","celery-1100","celery-1200","celery-1300","celery-1400","green-100","green-200","green-300","green-400","green-500","green-600","green-700","green-800","green-900","green-1000","green-1100","green-1200","green-1300","green-1400","seafoam-100","seafoam-200","seafoam-300","seafoam-400","seafoam-500","seafoam-600","seafoam-700","seafoam-800","seafoam-900","seafoam-1000","seafoam-1100","seafoam-1200","seafoam-1300","seafoam-1400","cyan-100","cyan-200","cyan-300","cyan-400","cyan-500","cyan-600","cyan-700","cyan-800","cyan-900","cyan-1000","cyan-1100","cyan-1200","cyan-1300","cyan-1400","blue-100","blue-200","blue-300","blue-400","blue-500","blue-600","blue-700","blue-800","blue-900","blue-1000","blue-1100","blue-1200","blue-1300","blue-1400","indigo-100","indigo-200","indigo-300","indigo-400","indigo-500","indigo-600","indigo-700","indigo-800","indigo-900","indigo-1000","indigo-1100","indigo-1200","indigo-1300","indigo-1400","purple-100","purple-200","purple-300","purple-400","purple-500","purple-600","purple-700","purple-800","purple-900","purple-1000","purple-1100","purple-1200","purple-1300","purple-1400","fuchsia-100","fuchsia-200","fuchsia-300","fuchsia-400","fuchsia-500","fuchsia-600","fuchsia-700","fuchsia-800","fuchsia-900","fuchsia-1000","fuchsia-1100","fuchsia-1200","fuchsia-1300","fuchsia-1400","magenta-100","magenta-200","magenta-300","magenta-400","magenta-500","magenta-600","magenta-700","magenta-800","magenta-900","magenta-1000","magenta-1100","magenta-1200","magenta-1300","magenta-1400","negative","notice","positive","info","accent","accent-100","accent-200","accent-300","accent-400","accent-500","accent-600","accent-700","accent-800","accent-900","accent-1000","accent-1100","accent-1200","accent-1300","accent-1400","bg","content-bg","subdued-content-bg","surface-bg","fg"];function sr(t){return typeof t=="string"&&or.includes(t)}function Pe(t){return t!=null&&sr(t)?"var(--dh-color-".concat(t,")"):t}var lr=["color","UNSAFE_style"];function De(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ee(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?De(Object(r),!0).forEach(function(n){ur(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):De(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ur(t,e,r){return e=cr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cr(t){var e=dr(t,"string");return typeof e=="symbol"?e:String(e)}function dr(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function fr(t,e){if(t==null)return{};var r=pr(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function pr(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var G=l.forwardRef((t,e)=>{var{color:r,UNSAFE_style:n}=t,a=fr(t,lr),i=l.useMemo(()=>ee(ee({},n),{},{color:Pe(r)}),[r,n]);return c.jsx(jt,ee(ee({},a),{},{ref:e,UNSAFE_style:i}))});G.displayName="Text";function hr(t){var{children:e,options:r}=t;return Array.isArray(e)?c.jsx(Ne,{options:r,children:c.jsx(st,{direction:"column",alignItems:"start",children:e.filter(n=>U(n,G))})}):c.jsx(Ne,{options:r,children:e})}const vr="_spectrumActionBar_1ji6m_5",mr="_spectrumDialogComponentHeading_1ji6m_9",gr="_spectrumEllipsis_1ji6m_14",$e={spectrumActionBar:vr,spectrumDialogComponentHeading:mr,spectrumEllipsis:gr};function Ae(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Re(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ae(Object(r),!0).forEach(function(n){yr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function yr(t,e,r){return e=br(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function br(t){var e=Or(t,"string");return typeof e=="symbol"?e:String(e)}function Or(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function X(t){var{children:e,tooltipOptions:r}=t,{checkOverflow:n,isOverflowing:a,resetIsOverflowing:i}=Qt(),[o,s]=l.useState(e);if(o!==e&&(s(e),i()),l.isValidElement(e))return e;e===""?e=ut:typeof e=="boolean"?e=String(e):Array.isArray(e)&&(e=l.Children.map(e,d=>U(d,G)?l.cloneElement(d,Re(Re({},d.props),{},{ref:n,UNSAFE_className:C(d.props.UNSAFE_className,$e.spectrumEllipsis)})):d)),(typeof e=="string"||typeof e=="number")&&(e=c.jsx(G,{ref:n,UNSAFE_className:$e.spectrumEllipsis,children:e}));var u=r==null||!a?null:c.jsx(hr,{options:r,children:e});return c.jsxs(c.Fragment,{children:[e,u]})}function Fe(t,e,r,n,a,i,o){try{var s=t[i](o),u=s.value}catch(d){r(d);return}s.done?e(u):Promise.resolve(u).then(n,a)}function Sr(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(u){Fe(i,n,a,o,s,"next",u)}function s(u){Fe(i,n,a,o,s,"throw",u)}o(void 0)})}}var me="Empty";function Y(t){var e,r;return(e=t==null||(r=t.item)===null||r===void 0?void 0:r.key)!==null&&e!==void 0?e:t?.key}function wr(t){return ge.apply(this,arguments)}function ge(){return ge=Sr(function*(t){var{items:e,itemHeight:r,selectedKey:n,topOffset:a}=t,i=a;if(n==null)return i;for(var o=0;o<e.length;o+=1){var s=e[o];if(s.key===n)return i;i+=r}return a}),ge.apply(this,arguments)}function Ee(t){return U(t,vt)}function xe(t){return U(t,Se)}function Pr(t){if(!xe(t))return!1;var e=U(t.props.children,X)?t.props.children.props.children:t.props.children,r=we(e),n=r.some(a=>{var i;return U(a,G)&&((i=a.props)===null||i===void 0?void 0:i.slot)==="description"});return n}function ba(t){return Array.isArray(t)?t.length===0?!0:!xr(t[0])&&"key"in t[0]:!1}function Er(t){return t.item!=null&&"items"in t.item}function xr(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||xe(t)||Ee(t)}function ce(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"right";return t==null||t===!1?null:t===!0?{placement:e}:t}function se(t){return t==null||t==="all"?t:new Set([...t].map(String))}function Ke(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function te(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ke(Object(r),!0).forEach(function(n){Ir(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ir(t,e,r){return e=jr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jr(t){var e=Nr(t,"string");return typeof e=="symbol"?e:String(e)}function Nr(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _r(t,e){var r,n;return t=(r=t)!==null&&r!==void 0?r:"",typeof t!="string"?t:c.jsx(Nt,{slot:e,children:c.jsx(Z,{icon:(n=Ce[t])!==null&&n!==void 0?n:Ce.vsBlank})})}function Ie(t,e){var r=we(t),n=r.map(a=>{if(xe(a)){var i;if(U(a.props.children,X))return a;var o=(i=a.key)!==null&&i!==void 0?i:a.props.textValue,s=a.props.textValue===""?me:a.props.textValue;return l.cloneElement(a,te(te({},a.props),{},{key:o,textValue:s,children:c.jsx(X,{tooltipOptions:e,children:a.props.children})}))}if(Ee(a)){var u;return l.cloneElement(a,te(te({},a.props),{},{key:(u=a.key)!==null&&u!==void 0?u:typeof a.props.title=="string"?a.props.title:void 0,children:Ie(a.props.children,e)}))}var d=String(a),f=d===""?me:d;return c.jsx(Se,{textValue:f,children:c.jsx(X,{tooltipOptions:e,children:d})},d)});return Array.isArray(t)?n:n[0]}function Ve(t,e){var r;return t=(r=t)!==null&&r!==void 0?r:"",["string","boolean","number"].includes(typeof t)?c.jsx(G,{slot:e,children:t===""?ut:String(t)}):t}var Cr=["aria-label","aria-labelledby","aria-describedby","aria-details","marginX","marginY","width","height","minWidth","minHeight","maxWidth","maxHeight","flex","flexGrow","flexShrink","flexBasis","justifySelf","alignSelf","order","gridArea","gridColumn","gridRow","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","position","zIndex","top","bottom","start","end","left","right","isHidden"];function Tr(t,e){if(t==null)return{};var r=kr(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function kr(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Mr(t){var{"aria-label":e,"aria-labelledby":r,"aria-describedby":n,"aria-details":a,marginX:i,marginY:o,width:s,height:u,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:v,flexGrow:m,flexShrink:b,flexBasis:S,justifySelf:w,alignSelf:_,order:M,gridArea:D,gridColumn:g,gridRow:I,gridColumnStart:O,gridColumnEnd:P,gridRowStart:T,gridRowEnd:W,position:J,zIndex:y,top:x,bottom:E,start:k,end:de,left:fe,right:pe,isHidden:Q}=t,q=Tr(t,Cr);return{ariaLabelProps:{"aria-label":e,"aria-labelledby":r,"aria-describedby":n,"aria-details":a},styleProps:{marginX:i,marginY:o,width:s,height:u,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:v,flexGrow:m,flexShrink:b,flexBasis:S,justifySelf:w,alignSelf:_,order:M,gridArea:D,gridColumn:g,gridRow:I,gridColumnStart:O,gridColumnEnd:P,gridRowStart:T,gridRowEnd:W,position:J,zIndex:y,top:x,bottom:E,start:k,end:de,left:fe,right:pe,isHidden:Q},componentProps:q}}function gt(t){var{itemIconSlot:e,showItemDescriptions:r,showItemIcons:n,tooltipOptions:a}=t;return l.useCallback(i=>{var o,s,u,d,f,p=Y(i),h=Ve((o=i.item)===null||o===void 0?void 0:o.content),v=(s=(u=i.item)===null||u===void 0?void 0:u.textValue)!==null&&s!==void 0?s:"",m=r?Ve((d=i.item)===null||d===void 0?void 0:d.description,"description"):null,b=n?_r((f=i.item)===null||f===void 0?void 0:f.icon,e):null;return c.jsx(Se,{textValue:v===""?me:v,children:c.jsxs(X,{tooltipOptions:a,children:[b,h,m]})},p)},[e,r,n,a])}function Dr(t){var{normalizedItems:e,defaultSelectedKeys:r,disabledKeys:n,selectedKeys:a,onChange:i}=t,o=l.useMemo(()=>se(a),[a]),s=l.useMemo(()=>se(r),[r]),u=l.useMemo(()=>se(n),[n]),d=l.useCallback(f=>{if(i!=null){if(f==="all"){i("all");return}var p=new Set;e.forEach(h=>{f.has(String(Y(h)))&&p.add(Y(h))}),i(p)}},[e,i]);return{selectedStringKeys:o,defaultSelectedStringKeys:s,disabledStringKeys:u,onStringSelectionChange:d}}function $r(t){var{normalizedItems:e,defaultSelectedKey:r,selectedKey:n,disabledKeys:a,onChange:i}=t,o=l.useMemo(()=>n==null?n:String(n),[n]),s=l.useMemo(()=>r==null?r:String(r),[r]),u=l.useMemo(()=>se(a),[a]),d=l.useCallback(f=>{var p;if(i!=null){var h=e.find(m=>String(Y(m))===f),v=(p=Y(h))!==null&&p!==void 0?p:f;i(v)}},[e,i]);return{selectedStringKey:o,defaultSelectedStringKey:s,disabledStringKeys:u,onStringSelectionChange:d}}var yt=_t;var Ar=["onScroll"];function Le(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function re(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Le(Object(r),!0).forEach(function(n){Rr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Rr(t,e,r){return e=Fr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fr(t){var e=Kr(t,"string");return typeof e=="symbol"?e:String(e)}function Kr(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vr(t,e){if(t==null)return{};var r=Lr(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Lr(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function bt(t){var e,r,{ariaLabelProps:n,componentProps:a,styleProps:i}=Mr(t),{onScroll:o=ue}=a,s=Vr(a,Ar),{scale:u}=yt(),d=nr(o,ke),{ref:f,contentRect:p}=tr(ke);return c.jsx(st,re(re({direction:"column",ref:f},i),{},{minHeight:(e=i.minHeight)!==null&&e!==void 0?e:1,UNSAFE_className:C("dh-list-view-wrapper","dh-list-view-wrapper-density-".concat((r=s.density)!==null&&r!==void 0?r:"regular"),"dh-list-view-wrapper-scale-".concat(u),i.UNSAFE_className),children:p.height===0?null:c.jsx(Ct,re(re({ref:d},n),s))}))}var Ur=["children","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","UNSAFE_className","onChange","onScroll","onSelectionChange"];function Ue(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function We(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ue(Object(r),!0).forEach(function(n){Wr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ue(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Wr(t,e,r){return e=Hr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hr(t){var e=Br(t,"string");return typeof e=="symbol"?e:String(e)}function Br(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zr(t,e){if(t==null)return{};var r=Gr(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Gr(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Oa(t){var{children:e,tooltip:r=!0,selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,UNSAFE_className:o,onChange:s,onScroll:u=ue,onSelectionChange:d}=t,f=zr(t,Ur),p=l.useMemo(()=>ce(r,"bottom"),[r]),h=l.useMemo(()=>Ie(e,p),[e,p]);return c.jsx(bt,We(We({},f),{},{UNSAFE_className:C("dh-list-view",o),selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,onScroll:u,onSelectionChange:s??d,children:h}))}var Yr=["normalizedItems","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","showItemIcons","UNSAFE_className","onChange","onSelectionChange"];function He(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Be(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?He(Object(r),!0).forEach(function(n){qr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):He(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qr(t,e,r){return e=Xr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xr(t){var e=Zr(t,"string");return typeof e=="symbol"?e:String(e)}function Zr(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Jr(t,e){if(t==null)return{};var r=Qr(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Qr(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Sa(t){var{normalizedItems:e,tooltip:r=!0,selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,showItemIcons:o,UNSAFE_className:s,onChange:u,onSelectionChange:d}=t,f=Jr(t,Yr),p=l.useMemo(()=>ce(r,"bottom"),[r]),h=gt({itemIconSlot:"illustration",showItemDescriptions:!1,showItemIcons:o,tooltipOptions:p}),v="".concat(o,"-").concat(p?.placement),{selectedStringKeys:m,defaultSelectedStringKeys:b,disabledStringKeys:S,onStringSelectionChange:w}=Dr({normalizedItems:e,selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,onChange:u??d});return l.createElement(bt,Be(Be({},f),{},{UNSAFE_className:C("dh-list-view-normalized",s),key:v,items:e,selectedKeys:m,defaultSelectedKeys:b,disabledKeys:S,onSelectionChange:w}),h)}function Ot(t){var{getInitialScrollPosition:e,onScroll:r,onOpenChange:n}=t,{ref:a,onOpenChange:i}=ir(Zt,r,e),o=l.useCallback(s=>{i(s),n?.(s)},[n,i]);return{ref:a,onOpenChange:o}}var en=["children","tooltip","defaultSelectedKey","selectedKey","onChange","onOpenChange","onScroll","onSelectionChange","UNSAFE_className"];function ze(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ze(Object(r),!0).forEach(function(n){tn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ze(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function tn(t,e,r){return e=rn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rn(t){var e=nn(t,"string");return typeof e=="symbol"?e:String(e)}function nn(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ye(t,e,r,n,a,i,o){try{var s=t[i](o),u=s.value}catch(d){r(d);return}s.done?e(u):Promise.resolve(u).then(n,a)}function an(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(u){Ye(i,n,a,o,s,"next",u)}function s(u){Ye(i,n,a,o,s,"throw",u)}o(void 0)})}}function on(t,e){if(t==null)return{};var r=sn(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function sn(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function wa(t){var{children:e,tooltip:r=!0,defaultSelectedKey:n,selectedKey:a,onChange:i,onOpenChange:o,onScroll:s=ue,onSelectionChange:u,UNSAFE_className:d}=t,f=on(t,en),{scale:p}=yt(),h=Dt[p],v=l.useMemo(()=>ce(r),[r]),m=a===void 0,[b,S]=l.useState(n),w=l.useMemo(()=>we(Ie(e,v)),[e,v]),_=l.useMemo(()=>w.some(O=>Ee(O)||Pr(O)),[w]),M=l.useCallback(an(function*(){return _?null:wr({items:w,itemHeight:h,selectedKey:m?b:a,topOffset:$t})}),[_,m,h,a,b,w]),D=l.useCallback(O=>{var P;m&&S(O),(P=i??u)===null||P===void 0||P(O)},[m,i,u]),{ref:g,onOpenChange:I}=Ot({getInitialScrollPosition:M,onScroll:s,onOpenChange:o});return c.jsx(lt,Ge(Ge({},f),{},{ref:g,UNSAFE_className:C("dh-picker",d),selectedKey:a,defaultSelectedKey:n,onSelectionChange:D,onOpenChange:I,children:w}))}var ln=["normalizedItems","tooltip","selectedKey","defaultSelectedKey","disabledKeys","showItemIcons","UNSAFE_className","getInitialScrollPosition","onChange","onOpenChange","onScroll","onSelectionChange"];function qe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Xe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qe(Object(r),!0).forEach(function(n){un(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function un(t,e,r){return e=cn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cn(t){var e=dn(t,"string");return typeof e=="symbol"?e:String(e)}function dn(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function fn(t,e){if(t==null)return{};var r=pn(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function pn(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Pa(t){var{normalizedItems:e,tooltip:r=!0,selectedKey:n,defaultSelectedKey:a,disabledKeys:i,showItemIcons:o,UNSAFE_className:s,getInitialScrollPosition:u,onChange:d,onOpenChange:f,onScroll:p=ue,onSelectionChange:h}=t,v=fn(t,ln),m=l.useMemo(()=>ce(r),[r]),b=gt({itemIconSlot:"icon",showItemDescriptions:!1,showItemIcons:o,tooltipOptions:m}),S="".concat(o,"-").concat(m?.placement),{ref:w,onOpenChange:_}=Ot({getInitialScrollPosition:u,onScroll:p,onOpenChange:f}),{selectedStringKey:M,defaultSelectedStringKey:D,disabledStringKeys:g,onStringSelectionChange:I}=$r({normalizedItems:e,selectedKey:n,defaultSelectedKey:a,disabledKeys:i,onChange:d??h});return l.createElement(lt,Xe(Xe({},v),{},{key:S,ref:w,UNSAFE_className:C("dh-picker","dh-picker-normalized",s),items:e,selectedKey:M,defaultSelectedKey:D,disabledKeys:g,onSelectionChange:I,onOpenChange:_}),O=>{if(Er(O)){var P,T;return c.jsx(vt,{title:(P=O.item)===null||P===void 0?void 0:P.title,items:(T=O.item)===null||T===void 0?void 0:T.items,children:b},Y(O))}return b(O)})}var hn=["color","UNSAFE_style"];function Ze(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ze(Object(r),!0).forEach(function(n){vn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function vn(t,e,r){return e=mn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mn(t){var e=gn(t,"string");return typeof e=="symbol"?e:String(e)}function gn(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yn(t,e){if(t==null)return{};var r=bn(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function bn(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var On=l.forwardRef((t,e)=>{var{color:r,UNSAFE_style:n}=t,a=yn(t,hn),i=l.useMemo(()=>ne(ne({},n),{},{color:Pe(r)}),[r,n]);return c.jsx(Tt,ne(ne({},a),{},{ref:e,UNSAFE_style:i}))});On.displayName="Heading";var Sn=["backgroundColor","UNSAFE_style"];function Je(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ae(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Je(Object(r),!0).forEach(function(n){wn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function wn(t,e,r){return e=Pn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pn(t){var e=En(t,"string");return typeof e=="symbol"?e:String(e)}function En(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xn(t,e){if(t==null)return{};var r=In(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function In(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var jn=l.forwardRef((t,e)=>{var{backgroundColor:r,UNSAFE_style:n}=t,a=xn(t,Sn),i=l.useMemo(()=>ae(ae({},n),{},{backgroundColor:Pe(r)}),[r,n]);return c.jsx(kt,ae(ae({},a),{},{ref:e,UNSAFE_style:i}))});jn.displayName="View";function Qe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Nn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Qe(Object(r),!0).forEach(function(n){K(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function K(t,e,r){return e=_n(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _n(t){var e=Cn(t,"string");return typeof e=="symbol"?e:String(e)}function Cn(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Tn=100,ye;(function(t){t.UP="UP",t.DOWN="DOWN"})(ye||(ye={}));class R extends l.Component{constructor(e){super(e),K(this,"popper",void 0),K(this,"cbContainer",void 0),K(this,"menuContainer",void 0),K(this,"input",void 0),K(this,"getCachedFilteredOptions",Mt((n,a)=>n.filter(i=>i.title.toLowerCase().indexOf(a.toLowerCase())>=0)));var{popperOptions:r}=this.props;r=Nn({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},r),this.state={title:"",filteredOptions:[],keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,invalid:!1,popperOptions:r},this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.handleMenuBlur=this.handleMenuBlur.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handelInputFocus=this.handelInputFocus.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.updateInputValue=le(this.updateInputValue,Tn),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=F.createRef(),this.cbContainer=F.createRef(),this.menuContainer=F.createRef(),this.input=F.createRef()}setInputWidth(){this.cbContainer.current&&this.setState({inputWidth:this.cbContainer.current.getBoundingClientRect().width})}getValueAndValidate(e){if(!e)return this.setState({invalid:!1}),{value:e,isValid:!1};var{options:r}=this.props,n=r.filter(a=>a.title.toLowerCase()===e.toLowerCase());return n.length<1?(this.setState({invalid:!0}),{value:e,isValid:!1}):(this.setState({invalid:!1}),{value:n[0].value,isValid:!0})}updateInputValue(e){var{menuIsOpen:r}=this.state,{value:n,isValid:a}=this.getValueAndValidate(e);r&&this.processFilterChange(e),this.fireOnChange(n,a)}fireOnChange(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,{onChange:n}=this.props;n(e,r)}processFilterChange(e){var r,{options:n}=this.props,{menuIsOpen:a}=this.state,i=e?this.getCachedFilteredOptions(n,e):n,o=i.length===1&&i[0].title===e;if(this.setState({filteredOptions:i,keyboardOptionIndex:0}),o&&a){this.closeMenu();return}(r=this.popper.current)===null||r===void 0||r.scheduleUpdate()}resetValue(){this.setState({title:""}),this.fireOnChange("")}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){var r,{filteredOptions:n,keyboardOptionIndex:a}=this.state,i=n[a];switch(e.key){case"Enter":case"ArrowRight":e.stopPropagation(),e.preventDefault(),i!=null&&(this.setState({title:i.title,invalid:!1}),this.fireOnChange(i.value)),this.closeMenu(),(r=this.input.current)===null||r===void 0||r.focus();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.navigateMenu(R.MENU_NAVIGATION_DIRECTION.UP);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.navigateMenu(R.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Tab":if(e.stopPropagation(),e.preventDefault(),e.shiftKey){this.navigateMenu(R.MENU_NAVIGATION_DIRECTION.UP);break}this.navigateMenu(R.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Escape":e.preventDefault(),e.stopPropagation(),this.closeMenu();break}}navigateMenu(e){var{filteredOptions:r,keyboardOptionIndex:n}=this.state,a=n;e===R.MENU_NAVIGATION_DIRECTION.UP?n>0?(a=(a-1)%r.length,this.setState({keyboardOptionIndex:a})):n===0&&(a=r.length-1,this.setState({keyboardOptionIndex:a})):e===R.MENU_NAVIGATION_DIRECTION.DOWN&&n<r.length&&(a=(a+1)%r.length,this.setState({keyboardOptionIndex:a})),this.scrollOptionIntoView(a)}handleInputKeyDown(e){var{onEnter:r}=this.props,{menuIsOpen:n}=this.state;n?this.handleMenuKeyDown(e):e.key==="Enter"?r():e.key==="Escape"?(this.resetValue(),e.preventDefault(),e.stopPropagation()):e.key==="ArrowRight"||e.key==="ArrowLeft"||e.key==="Tab"||e.key==="Shift"||this.openMenu()}handleInputChange(e){this.setState({title:e.target.value}),this.updateInputValue(e.target.value)}handleOptionClick(e){var r;this.setState({title:e.title,invalid:!1}),this.fireOnChange(e.value),this.closeMenu(),(r=this.input.current)===null||r===void 0||r.focus()}handelInputFocus(){var{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputClick(){var{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputBlur(e){var{menuIsOpen:r}=this.state;r&&e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuBlur(e){e.relatedTarget===this.input.current||e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuOpened(){var e;(e=this.input.current)===null||e===void 0||e.focus()}handleMenuExited(){var{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}openMenu(){var{title:e}=this.state;this.processFilterChange(e),this.setInputWidth(),this.setState({menuIsOpen:!0}),window.requestAnimationFrame(()=>{var r;(r=this.popper.current)===null||r===void 0||r.show()})}closeMenu(){var e,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1,keyboardOptionIndex:0}),r){var n;(n=this.input.current)===null||n===void 0||n.focus()}(e=this.popper.current)===null||e===void 0||e.hide()}scrollOptionIntoView(e){if(this.menuContainer.current){var r;(r=this.menuContainer.current.children.item(e))===null||r===void 0||r.scrollIntoView({behavior:"smooth",block:"nearest"})}}renderMenuElement(){var{inputWidth:e}=this.state;return c.jsx("div",{className:C("aci-options"),ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,style:{width:e},onBlur:this.handleMenuBlur,children:this.renderOptions()})}renderOptions(){var{noMatchText:e}=this.props,{title:r,filteredOptions:n}=this.state;return r&&n.length===0?c.jsx("div",{className:"no-match",children:e}):n.map((a,i)=>this.renderOption(a,i))}renderOption(e,r){var{keyboardOptionIndex:n}=this.state,a="option-".concat(r,"-").concat(e.value);return c.jsx("button",{type:"button",className:C("aci-option-btn",{"keyboard-active":n===r}),onClick:()=>this.handleOptionClick(e),onFocus:()=>this.setState({keyboardOptionIndex:r}),children:e.title},a)}render(){var{options:e,inputPlaceholder:r,disabled:n,className:a,defaultTitle:i,spellCheck:o,"data-testid":s}=this.props,{title:u,menuIsOpen:d,popperOptions:f,invalid:p}=this.state;return c.jsxs("div",{className:"aci-container",ref:this.cbContainer,children:[c.jsx("input",{value:u||i,className:C("form-control",a,"aci-input",{"is-invalid":p&&!d}),ref:this.input,onChange:this.handleInputChange,placeholder:r||e[0].title,disabled:n,onFocus:this.handelInputFocus,onClick:this.handleInputClick,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,spellCheck:o,"data-testid":s}),c.jsx(ct,{ref:this.popper,options:f,className:C("aci-options-popper interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})}}K(R,"propTypes",{options:N.arrayOf(N.shape({title:N.string.isRequired,value:N.string.isRequired})).isRequired,popperOptions:N.shape({}),onChange:N.func,inputPlaceholder:N.string,disabled:N.bool,className:N.string,defaultTitle:N.string,spellCheck:N.bool,onEnter:N.func,noMatchText:N.string,"data-testid":N.string});K(R,"defaultProps",{onChange(){},inputPlaceholder:"",disabled:!1,className:"",defaultTitle:"",popperOptions:null,spellCheck:!0,onEnter(){},noMatchText:"No matching items found","data-testid":void 0});K(R,"MENU_NAVIGATION_DIRECTION",ye);const Ea=R;function St(t){var{className:e="",value:r,onChange:n,spellCheck:a=!1,placeholder:i="",disabled:o=!1,delimiter:s="",id:u="","data-testid":d}=t,[f,p]=l.useState(r),[h,v]=l.useState(!1),m=l.useRef(null);l.useEffect(function(){p(r)},[r]);function b(O){return O.trim().split(s).filter(P=>P).join(`
1
+ import{bI as It,r as l,T as le,I as c,bL as jt,ax as st,K as C,ag as Se,a7 as Nt,L as Z,bM as _t,bA as Ct,b9 as lt,aj as Tt,bN as kt,U as Mt,M as F,V as N}from"./vendor-2ad5ff96.js";import{s as Ne,cG as ut,cH as we,bx as ue,bA as Dt,bB as $t,aj as ct,d as oe,J as At,A as Rt,B as he,C as _e,a_ as Ft,bv as Kt}from"./ControlType-5e65a1f9.js";import{b7 as dt,aW as Ce,L as ft,aF as Vt,ai as Lt,b8 as Ut,b9 as Wt,a8 as Ht,e as Bt}from"./index-49c2275d.js";import{j as pt}from"./useUser-f5667912.js";import{M as ht,D as zt,g as Gt}from"./GridRenderer-bc76a490.js";import{C as Yt,b as qt}from"./IrisGridModel-5eee50a2.js";var vt=It;function U(t,e){return l.isValidElement(t)&&t.type===e}function Te(t,e,r,n,a,i,o){try{var s=t[i](o),u=s.value}catch(d){r(d);return}s.done?e(u):Promise.resolve(u).then(n,a)}function Xt(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(u){Te(i,n,a,o,s,"next",u)}function s(u){Te(i,n,a,o,s,"throw",u)}o(void 0)})}}function va(t,e){return t?{}:{errorMessage:e,validationState:"invalid"}}function ke(t){var e;return(e=t?.UNSAFE_getDOMNode())!==null&&e!==void 0?e:null}function ma(t){var e=t?.UNSAFE_getDOMNode().lastElementChild;return Jt(e)}function ga(t){return mt(t,"input")}function Zt(t){return mt(t,"button")}function mt(t,e){var r=t?.UNSAFE_getDOMNode(),n=r?.querySelector(e),a=n?.getAttribute("aria-controls"),i=a==null?null:document.getElementById(a);return i}function ya(t){return ve.apply(this,arguments)}function ve(){return ve=Xt(function*(t){var{keyedItems:e,itemHeight:r,selectedKey:n,topOffset:a}=t,i=e.findIndex(o=>{var s,u;return((s=(u=o.item)===null||u===void 0?void 0:u.key)!==null&&s!==void 0?s:o.key)===n});return i<=0?a:r*i+a}),ve.apply(this,arguments)}function Jt(t){return t instanceof HTMLElement?t:null}function Qt(){var[t,e]=l.useState(!1),r=l.useCallback(a=>{var i=a?.UNSAFE_getDOMNode();i!=null&&i.scrollWidth>i.offsetWidth&&e(!0)},[]),n=l.useCallback(()=>{e(!1)},[]);return{isOverflowing:t,checkOverflow:r,resetIsOverflowing:n}}function er(t,e){return l.useCallback(r=>{typeof t=="function"?t(e(r)):t.current=e(r)},[e,t])}function tr(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dt,[e,r]=l.useState(0),[n,a]=l.useState(0),[i,o]=l.useState(0),[s,u]=l.useState(0),d=l.useMemo(()=>new DOMRect(e,n,i,s),[s,i,e,n]),[f,p]=l.useState(null),h=er(p,t),v=l.useCallback(m=>{var b,[S]=m,w=(b=S?.contentRect)!==null&&b!==void 0?b:{x:0,y:0,width:0,height:0};r(w.x),a(w.y),o(w.width),u(w.height)},[]);return pt(f,v),{ref:h,contentRect:d}}function rr(t,e){var r=l.useMemo(()=>le(t,e),[t,e]);return l.useEffect(()=>()=>r.cancel(),[r]),r}function nr(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dt,r=l.useRef();return l.useEffect(()=>()=>{var n;return(n=r.current)===null||n===void 0?void 0:n.call(r)},[]),l.useCallback(n=>{var a;(a=r.current)===null||a===void 0||a.call(r);var i=e(n);i&&(i.addEventListener("scroll",t),r.current=()=>{i.removeEventListener("scroll",t),r.current=void 0})},[e,t])}function Me(t,e,r,n,a,i,o){try{var s=t[i](o),u=s.value}catch(d){r(d);return}s.done?e(u):Promise.resolve(u).then(n,a)}function ar(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(u){Me(i,n,a,o,s,"next",u)}function s(u){Me(i,n,a,o,s,"throw",u)}o(void 0)})}}function ir(t,e,r){var n=l.useRef(null),a=l.useRef(!1),[i,o]=l.useState(null),s=l.useCallback(ar(function*(){if(!(i==null||r==null)){var f=yield r();f!=null&&i.scroll(0,f)}}),[r,i]);l.useEffect(()=>(i?.addEventListener("scroll",e),a.current&&(s(),a.current=!1),()=>{i?.removeEventListener("scroll",e)}),[e,i,s]);var u=l.useRef(),d=l.useCallback(f=>{window.clearTimeout(u.current),f?(a.current=!0,u.current=window.setTimeout(()=>{o(t(n.current))},0)):o(null)},[t]);return{ref:n,onOpenChange:d}}var or=["gray-50","gray-75","gray-100","gray-200","gray-300","gray-400","gray-500","gray-600","gray-700","gray-800","gray-900","red-100","red-200","red-300","red-400","red-500","red-600","red-700","red-800","red-900","red-1000","red-1100","red-1200","red-1300","red-1400","orange-100","orange-200","orange-300","orange-400","orange-500","orange-600","orange-700","orange-800","orange-900","orange-1000","orange-1100","orange-1200","orange-1300","orange-1400","yellow-100","yellow-200","yellow-300","yellow-400","yellow-500","yellow-600","yellow-700","yellow-800","yellow-900","yellow-1000","yellow-1100","yellow-1200","yellow-1300","yellow-1400","chartreuse-100","chartreuse-200","chartreuse-300","chartreuse-400","chartreuse-500","chartreuse-600","chartreuse-700","chartreuse-800","chartreuse-900","chartreuse-1000","chartreuse-1100","chartreuse-1200","chartreuse-1300","chartreuse-1400","celery-100","celery-200","celery-300","celery-400","celery-500","celery-600","celery-700","celery-800","celery-900","celery-1000","celery-1100","celery-1200","celery-1300","celery-1400","green-100","green-200","green-300","green-400","green-500","green-600","green-700","green-800","green-900","green-1000","green-1100","green-1200","green-1300","green-1400","seafoam-100","seafoam-200","seafoam-300","seafoam-400","seafoam-500","seafoam-600","seafoam-700","seafoam-800","seafoam-900","seafoam-1000","seafoam-1100","seafoam-1200","seafoam-1300","seafoam-1400","cyan-100","cyan-200","cyan-300","cyan-400","cyan-500","cyan-600","cyan-700","cyan-800","cyan-900","cyan-1000","cyan-1100","cyan-1200","cyan-1300","cyan-1400","blue-100","blue-200","blue-300","blue-400","blue-500","blue-600","blue-700","blue-800","blue-900","blue-1000","blue-1100","blue-1200","blue-1300","blue-1400","indigo-100","indigo-200","indigo-300","indigo-400","indigo-500","indigo-600","indigo-700","indigo-800","indigo-900","indigo-1000","indigo-1100","indigo-1200","indigo-1300","indigo-1400","purple-100","purple-200","purple-300","purple-400","purple-500","purple-600","purple-700","purple-800","purple-900","purple-1000","purple-1100","purple-1200","purple-1300","purple-1400","fuchsia-100","fuchsia-200","fuchsia-300","fuchsia-400","fuchsia-500","fuchsia-600","fuchsia-700","fuchsia-800","fuchsia-900","fuchsia-1000","fuchsia-1100","fuchsia-1200","fuchsia-1300","fuchsia-1400","magenta-100","magenta-200","magenta-300","magenta-400","magenta-500","magenta-600","magenta-700","magenta-800","magenta-900","magenta-1000","magenta-1100","magenta-1200","magenta-1300","magenta-1400","negative","notice","positive","info","accent","accent-100","accent-200","accent-300","accent-400","accent-500","accent-600","accent-700","accent-800","accent-900","accent-1000","accent-1100","accent-1200","accent-1300","accent-1400","bg","content-bg","subdued-content-bg","surface-bg","fg"];function sr(t){return typeof t=="string"&&or.includes(t)}function Pe(t){return t!=null&&sr(t)?"var(--dh-color-".concat(t,")"):t}var lr=["color","UNSAFE_style"];function De(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ee(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?De(Object(r),!0).forEach(function(n){ur(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):De(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ur(t,e,r){return e=cr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cr(t){var e=dr(t,"string");return typeof e=="symbol"?e:String(e)}function dr(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function fr(t,e){if(t==null)return{};var r=pr(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function pr(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var G=l.forwardRef((t,e)=>{var{color:r,UNSAFE_style:n}=t,a=fr(t,lr),i=l.useMemo(()=>ee(ee({},n),{},{color:Pe(r)}),[r,n]);return c.jsx(jt,ee(ee({},a),{},{ref:e,UNSAFE_style:i}))});G.displayName="Text";function hr(t){var{children:e,options:r}=t;return Array.isArray(e)?c.jsx(Ne,{options:r,children:c.jsx(st,{direction:"column",alignItems:"start",children:e.filter(n=>U(n,G))})}):c.jsx(Ne,{options:r,children:e})}const vr="_spectrumActionBar_1ji6m_5",mr="_spectrumDialogComponentHeading_1ji6m_9",gr="_spectrumEllipsis_1ji6m_14",$e={spectrumActionBar:vr,spectrumDialogComponentHeading:mr,spectrumEllipsis:gr};function Ae(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Re(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ae(Object(r),!0).forEach(function(n){yr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function yr(t,e,r){return e=br(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function br(t){var e=Or(t,"string");return typeof e=="symbol"?e:String(e)}function Or(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function X(t){var{children:e,tooltipOptions:r}=t,{checkOverflow:n,isOverflowing:a,resetIsOverflowing:i}=Qt(),[o,s]=l.useState(e);if(o!==e&&(s(e),i()),l.isValidElement(e))return e;e===""?e=ut:typeof e=="boolean"?e=String(e):Array.isArray(e)&&(e=l.Children.map(e,d=>U(d,G)?l.cloneElement(d,Re(Re({},d.props),{},{ref:n,UNSAFE_className:C(d.props.UNSAFE_className,$e.spectrumEllipsis)})):d)),(typeof e=="string"||typeof e=="number")&&(e=c.jsx(G,{ref:n,UNSAFE_className:$e.spectrumEllipsis,children:e}));var u=r==null||!a?null:c.jsx(hr,{options:r,children:e});return c.jsxs(c.Fragment,{children:[e,u]})}function Fe(t,e,r,n,a,i,o){try{var s=t[i](o),u=s.value}catch(d){r(d);return}s.done?e(u):Promise.resolve(u).then(n,a)}function Sr(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(u){Fe(i,n,a,o,s,"next",u)}function s(u){Fe(i,n,a,o,s,"throw",u)}o(void 0)})}}var me="Empty";function Y(t){var e,r;return(e=t==null||(r=t.item)===null||r===void 0?void 0:r.key)!==null&&e!==void 0?e:t?.key}function wr(t){return ge.apply(this,arguments)}function ge(){return ge=Sr(function*(t){var{items:e,itemHeight:r,selectedKey:n,topOffset:a}=t,i=a;if(n==null)return i;for(var o=0;o<e.length;o+=1){var s=e[o];if(s.key===n)return i;i+=r}return a}),ge.apply(this,arguments)}function Ee(t){return U(t,vt)}function xe(t){return U(t,Se)}function Pr(t){if(!xe(t))return!1;var e=U(t.props.children,X)?t.props.children.props.children:t.props.children,r=we(e),n=r.some(a=>{var i;return U(a,G)&&((i=a.props)===null||i===void 0?void 0:i.slot)==="description"});return n}function ba(t){return Array.isArray(t)?t.length===0?!0:!xr(t[0])&&"key"in t[0]:!1}function Er(t){return t.item!=null&&"items"in t.item}function xr(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||xe(t)||Ee(t)}function ce(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"right";return t==null||t===!1?null:t===!0?{placement:e}:t}function se(t){return t==null||t==="all"?t:new Set([...t].map(String))}function Ke(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function te(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ke(Object(r),!0).forEach(function(n){Ir(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ir(t,e,r){return e=jr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jr(t){var e=Nr(t,"string");return typeof e=="symbol"?e:String(e)}function Nr(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _r(t,e){var r,n;return t=(r=t)!==null&&r!==void 0?r:"",typeof t!="string"?t:c.jsx(Nt,{slot:e,children:c.jsx(Z,{icon:(n=Ce[t])!==null&&n!==void 0?n:Ce.vsBlank})})}function Ie(t,e){var r=we(t),n=r.map(a=>{if(xe(a)){var i;if(U(a.props.children,X))return a;var o=(i=a.key)!==null&&i!==void 0?i:a.props.textValue,s=a.props.textValue===""?me:a.props.textValue;return l.cloneElement(a,te(te({},a.props),{},{key:o,textValue:s,children:c.jsx(X,{tooltipOptions:e,children:a.props.children})}))}if(Ee(a)){var u;return l.cloneElement(a,te(te({},a.props),{},{key:(u=a.key)!==null&&u!==void 0?u:typeof a.props.title=="string"?a.props.title:void 0,children:Ie(a.props.children,e)}))}var d=String(a),f=d===""?me:d;return c.jsx(Se,{textValue:f,children:c.jsx(X,{tooltipOptions:e,children:d})},d)});return Array.isArray(t)?n:n[0]}function Ve(t,e){var r;return t=(r=t)!==null&&r!==void 0?r:"",["string","boolean","number"].includes(typeof t)?c.jsx(G,{slot:e,children:t===""?ut:String(t)}):t}var Cr=["aria-label","aria-labelledby","aria-describedby","aria-details","marginX","marginY","width","height","minWidth","minHeight","maxWidth","maxHeight","flex","flexGrow","flexShrink","flexBasis","justifySelf","alignSelf","order","gridArea","gridColumn","gridRow","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","position","zIndex","top","bottom","start","end","left","right","isHidden"];function Tr(t,e){if(t==null)return{};var r=kr(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function kr(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Mr(t){var{"aria-label":e,"aria-labelledby":r,"aria-describedby":n,"aria-details":a,marginX:i,marginY:o,width:s,height:u,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:v,flexGrow:m,flexShrink:b,flexBasis:S,justifySelf:w,alignSelf:_,order:M,gridArea:D,gridColumn:g,gridRow:I,gridColumnStart:O,gridColumnEnd:P,gridRowStart:T,gridRowEnd:W,position:J,zIndex:y,top:x,bottom:E,start:k,end:de,left:fe,right:pe,isHidden:Q}=t,q=Tr(t,Cr);return{ariaLabelProps:{"aria-label":e,"aria-labelledby":r,"aria-describedby":n,"aria-details":a},styleProps:{marginX:i,marginY:o,width:s,height:u,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:v,flexGrow:m,flexShrink:b,flexBasis:S,justifySelf:w,alignSelf:_,order:M,gridArea:D,gridColumn:g,gridRow:I,gridColumnStart:O,gridColumnEnd:P,gridRowStart:T,gridRowEnd:W,position:J,zIndex:y,top:x,bottom:E,start:k,end:de,left:fe,right:pe,isHidden:Q},componentProps:q}}function gt(t){var{itemIconSlot:e,showItemDescriptions:r,showItemIcons:n,tooltipOptions:a}=t;return l.useCallback(i=>{var o,s,u,d,f,p=Y(i),h=Ve((o=i.item)===null||o===void 0?void 0:o.content),v=(s=(u=i.item)===null||u===void 0?void 0:u.textValue)!==null&&s!==void 0?s:"",m=r?Ve((d=i.item)===null||d===void 0?void 0:d.description,"description"):null,b=n?_r((f=i.item)===null||f===void 0?void 0:f.icon,e):null;return c.jsx(Se,{textValue:v===""?me:v,children:c.jsxs(X,{tooltipOptions:a,children:[b,h,m]})},p)},[e,r,n,a])}function Dr(t){var{normalizedItems:e,defaultSelectedKeys:r,disabledKeys:n,selectedKeys:a,onChange:i}=t,o=l.useMemo(()=>se(a),[a]),s=l.useMemo(()=>se(r),[r]),u=l.useMemo(()=>se(n),[n]),d=l.useCallback(f=>{if(i!=null){if(f==="all"){i("all");return}var p=new Set;e.forEach(h=>{f.has(String(Y(h)))&&p.add(Y(h))}),i(p)}},[e,i]);return{selectedStringKeys:o,defaultSelectedStringKeys:s,disabledStringKeys:u,onStringSelectionChange:d}}function $r(t){var{normalizedItems:e,defaultSelectedKey:r,selectedKey:n,disabledKeys:a,onChange:i}=t,o=l.useMemo(()=>n==null?n:String(n),[n]),s=l.useMemo(()=>r==null?r:String(r),[r]),u=l.useMemo(()=>se(a),[a]),d=l.useCallback(f=>{var p;if(i!=null){var h=e.find(m=>String(Y(m))===f),v=(p=Y(h))!==null&&p!==void 0?p:f;i(v)}},[e,i]);return{selectedStringKey:o,defaultSelectedStringKey:s,disabledStringKeys:u,onStringSelectionChange:d}}var yt=_t;var Ar=["onScroll"];function Le(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function re(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Le(Object(r),!0).forEach(function(n){Rr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Rr(t,e,r){return e=Fr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fr(t){var e=Kr(t,"string");return typeof e=="symbol"?e:String(e)}function Kr(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vr(t,e){if(t==null)return{};var r=Lr(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Lr(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function bt(t){var e,r,{ariaLabelProps:n,componentProps:a,styleProps:i}=Mr(t),{onScroll:o=ue}=a,s=Vr(a,Ar),{scale:u}=yt(),d=nr(o,ke),{ref:f,contentRect:p}=tr(ke);return c.jsx(st,re(re({direction:"column",ref:f},i),{},{minHeight:(e=i.minHeight)!==null&&e!==void 0?e:1,UNSAFE_className:C("dh-list-view-wrapper","dh-list-view-wrapper-density-".concat((r=s.density)!==null&&r!==void 0?r:"regular"),"dh-list-view-wrapper-scale-".concat(u),i.UNSAFE_className),children:p.height===0?null:c.jsx(Ct,re(re({ref:d},n),s))}))}var Ur=["children","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","UNSAFE_className","onChange","onScroll","onSelectionChange"];function Ue(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function We(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ue(Object(r),!0).forEach(function(n){Wr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ue(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Wr(t,e,r){return e=Hr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hr(t){var e=Br(t,"string");return typeof e=="symbol"?e:String(e)}function Br(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zr(t,e){if(t==null)return{};var r=Gr(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Gr(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Oa(t){var{children:e,tooltip:r=!0,selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,UNSAFE_className:o,onChange:s,onScroll:u=ue,onSelectionChange:d}=t,f=zr(t,Ur),p=l.useMemo(()=>ce(r,"bottom"),[r]),h=l.useMemo(()=>Ie(e,p),[e,p]);return c.jsx(bt,We(We({},f),{},{UNSAFE_className:C("dh-list-view",o),selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,onScroll:u,onSelectionChange:s??d,children:h}))}var Yr=["normalizedItems","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","showItemIcons","UNSAFE_className","onChange","onSelectionChange"];function He(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Be(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?He(Object(r),!0).forEach(function(n){qr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):He(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qr(t,e,r){return e=Xr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xr(t){var e=Zr(t,"string");return typeof e=="symbol"?e:String(e)}function Zr(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Jr(t,e){if(t==null)return{};var r=Qr(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Qr(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Sa(t){var{normalizedItems:e,tooltip:r=!0,selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,showItemIcons:o,UNSAFE_className:s,onChange:u,onSelectionChange:d}=t,f=Jr(t,Yr),p=l.useMemo(()=>ce(r,"bottom"),[r]),h=gt({itemIconSlot:"illustration",showItemDescriptions:!1,showItemIcons:o,tooltipOptions:p}),v="".concat(o,"-").concat(p?.placement),{selectedStringKeys:m,defaultSelectedStringKeys:b,disabledStringKeys:S,onStringSelectionChange:w}=Dr({normalizedItems:e,selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,onChange:u??d});return l.createElement(bt,Be(Be({},f),{},{UNSAFE_className:C("dh-list-view-normalized",s),key:v,items:e,selectedKeys:m,defaultSelectedKeys:b,disabledKeys:S,onSelectionChange:w}),h)}function Ot(t){var{getInitialScrollPosition:e,onScroll:r,onOpenChange:n}=t,{ref:a,onOpenChange:i}=ir(Zt,r,e),o=l.useCallback(s=>{i(s),n?.(s)},[n,i]);return{ref:a,onOpenChange:o}}var en=["children","tooltip","defaultSelectedKey","selectedKey","onChange","onOpenChange","onScroll","onSelectionChange","UNSAFE_className"];function ze(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ze(Object(r),!0).forEach(function(n){tn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ze(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function tn(t,e,r){return e=rn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rn(t){var e=nn(t,"string");return typeof e=="symbol"?e:String(e)}function nn(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ye(t,e,r,n,a,i,o){try{var s=t[i](o),u=s.value}catch(d){r(d);return}s.done?e(u):Promise.resolve(u).then(n,a)}function an(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(u){Ye(i,n,a,o,s,"next",u)}function s(u){Ye(i,n,a,o,s,"throw",u)}o(void 0)})}}function on(t,e){if(t==null)return{};var r=sn(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function sn(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function wa(t){var{children:e,tooltip:r=!0,defaultSelectedKey:n,selectedKey:a,onChange:i,onOpenChange:o,onScroll:s=ue,onSelectionChange:u,UNSAFE_className:d}=t,f=on(t,en),{scale:p}=yt(),h=Dt[p],v=l.useMemo(()=>ce(r),[r]),m=a===void 0,[b,S]=l.useState(n),w=l.useMemo(()=>we(Ie(e,v)),[e,v]),_=l.useMemo(()=>w.some(O=>Ee(O)||Pr(O)),[w]),M=l.useCallback(an(function*(){return _?null:wr({items:w,itemHeight:h,selectedKey:m?b:a,topOffset:$t})}),[_,m,h,a,b,w]),D=l.useCallback(O=>{var P;m&&S(O),(P=i??u)===null||P===void 0||P(O)},[m,i,u]),{ref:g,onOpenChange:I}=Ot({getInitialScrollPosition:M,onScroll:s,onOpenChange:o});return c.jsx(lt,Ge(Ge({},f),{},{ref:g,UNSAFE_className:C("dh-picker",d),selectedKey:a,defaultSelectedKey:n,onSelectionChange:D,onOpenChange:I,children:w}))}var ln=["normalizedItems","tooltip","selectedKey","defaultSelectedKey","disabledKeys","showItemIcons","UNSAFE_className","getInitialScrollPosition","onChange","onOpenChange","onScroll","onSelectionChange"];function qe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Xe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qe(Object(r),!0).forEach(function(n){un(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function un(t,e,r){return e=cn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cn(t){var e=dn(t,"string");return typeof e=="symbol"?e:String(e)}function dn(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function fn(t,e){if(t==null)return{};var r=pn(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function pn(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Pa(t){var{normalizedItems:e,tooltip:r=!0,selectedKey:n,defaultSelectedKey:a,disabledKeys:i,showItemIcons:o,UNSAFE_className:s,getInitialScrollPosition:u,onChange:d,onOpenChange:f,onScroll:p=ue,onSelectionChange:h}=t,v=fn(t,ln),m=l.useMemo(()=>ce(r),[r]),b=gt({itemIconSlot:"icon",showItemDescriptions:!1,showItemIcons:o,tooltipOptions:m}),S="".concat(o,"-").concat(m?.placement),{ref:w,onOpenChange:_}=Ot({getInitialScrollPosition:u,onScroll:p,onOpenChange:f}),{selectedStringKey:M,defaultSelectedStringKey:D,disabledStringKeys:g,onStringSelectionChange:I}=$r({normalizedItems:e,selectedKey:n,defaultSelectedKey:a,disabledKeys:i,onChange:d??h});return l.createElement(lt,Xe(Xe({},v),{},{key:S,ref:w,UNSAFE_className:C("dh-picker","dh-picker-normalized",s),items:e,selectedKey:M,defaultSelectedKey:D,disabledKeys:g,onSelectionChange:I,onOpenChange:_}),O=>{if(Er(O)){var P,T;return c.jsx(vt,{title:(P=O.item)===null||P===void 0?void 0:P.title,items:(T=O.item)===null||T===void 0?void 0:T.items,children:b},Y(O))}return b(O)})}var hn=["color","UNSAFE_style"];function Ze(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ze(Object(r),!0).forEach(function(n){vn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function vn(t,e,r){return e=mn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mn(t){var e=gn(t,"string");return typeof e=="symbol"?e:String(e)}function gn(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yn(t,e){if(t==null)return{};var r=bn(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function bn(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var On=l.forwardRef((t,e)=>{var{color:r,UNSAFE_style:n}=t,a=yn(t,hn),i=l.useMemo(()=>ne(ne({},n),{},{color:Pe(r)}),[r,n]);return c.jsx(Tt,ne(ne({},a),{},{ref:e,UNSAFE_style:i}))});On.displayName="Heading";var Sn=["backgroundColor","UNSAFE_style"];function Je(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ae(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Je(Object(r),!0).forEach(function(n){wn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function wn(t,e,r){return e=Pn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pn(t){var e=En(t,"string");return typeof e=="symbol"?e:String(e)}function En(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xn(t,e){if(t==null)return{};var r=In(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function In(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var jn=l.forwardRef((t,e)=>{var{backgroundColor:r,UNSAFE_style:n}=t,a=xn(t,Sn),i=l.useMemo(()=>ae(ae({},n),{},{backgroundColor:Pe(r)}),[r,n]);return c.jsx(kt,ae(ae({},a),{},{ref:e,UNSAFE_style:i}))});jn.displayName="View";function Qe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Nn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Qe(Object(r),!0).forEach(function(n){K(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function K(t,e,r){return e=_n(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _n(t){var e=Cn(t,"string");return typeof e=="symbol"?e:String(e)}function Cn(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Tn=100,ye;(function(t){t.UP="UP",t.DOWN="DOWN"})(ye||(ye={}));class R extends l.Component{constructor(e){super(e),K(this,"popper",void 0),K(this,"cbContainer",void 0),K(this,"menuContainer",void 0),K(this,"input",void 0),K(this,"getCachedFilteredOptions",Mt((n,a)=>n.filter(i=>i.title.toLowerCase().indexOf(a.toLowerCase())>=0)));var{popperOptions:r}=this.props;r=Nn({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},r),this.state={title:"",filteredOptions:[],keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,invalid:!1,popperOptions:r},this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.handleMenuBlur=this.handleMenuBlur.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handelInputFocus=this.handelInputFocus.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.updateInputValue=le(this.updateInputValue,Tn),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=F.createRef(),this.cbContainer=F.createRef(),this.menuContainer=F.createRef(),this.input=F.createRef()}setInputWidth(){this.cbContainer.current&&this.setState({inputWidth:this.cbContainer.current.getBoundingClientRect().width})}getValueAndValidate(e){if(!e)return this.setState({invalid:!1}),{value:e,isValid:!1};var{options:r}=this.props,n=r.filter(a=>a.title.toLowerCase()===e.toLowerCase());return n.length<1?(this.setState({invalid:!0}),{value:e,isValid:!1}):(this.setState({invalid:!1}),{value:n[0].value,isValid:!0})}updateInputValue(e){var{menuIsOpen:r}=this.state,{value:n,isValid:a}=this.getValueAndValidate(e);r&&this.processFilterChange(e),this.fireOnChange(n,a)}fireOnChange(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,{onChange:n}=this.props;n(e,r)}processFilterChange(e){var r,{options:n}=this.props,{menuIsOpen:a}=this.state,i=e?this.getCachedFilteredOptions(n,e):n,o=i.length===1&&i[0].title===e;if(this.setState({filteredOptions:i,keyboardOptionIndex:0}),o&&a){this.closeMenu();return}(r=this.popper.current)===null||r===void 0||r.scheduleUpdate()}resetValue(){this.setState({title:""}),this.fireOnChange("")}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){var r,{filteredOptions:n,keyboardOptionIndex:a}=this.state,i=n[a];switch(e.key){case"Enter":case"ArrowRight":e.stopPropagation(),e.preventDefault(),i!=null&&(this.setState({title:i.title,invalid:!1}),this.fireOnChange(i.value)),this.closeMenu(),(r=this.input.current)===null||r===void 0||r.focus();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.navigateMenu(R.MENU_NAVIGATION_DIRECTION.UP);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.navigateMenu(R.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Tab":if(e.stopPropagation(),e.preventDefault(),e.shiftKey){this.navigateMenu(R.MENU_NAVIGATION_DIRECTION.UP);break}this.navigateMenu(R.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Escape":e.preventDefault(),e.stopPropagation(),this.closeMenu();break}}navigateMenu(e){var{filteredOptions:r,keyboardOptionIndex:n}=this.state,a=n;e===R.MENU_NAVIGATION_DIRECTION.UP?n>0?(a=(a-1)%r.length,this.setState({keyboardOptionIndex:a})):n===0&&(a=r.length-1,this.setState({keyboardOptionIndex:a})):e===R.MENU_NAVIGATION_DIRECTION.DOWN&&n<r.length&&(a=(a+1)%r.length,this.setState({keyboardOptionIndex:a})),this.scrollOptionIntoView(a)}handleInputKeyDown(e){var{onEnter:r}=this.props,{menuIsOpen:n}=this.state;n?this.handleMenuKeyDown(e):e.key==="Enter"?r():e.key==="Escape"?(this.resetValue(),e.preventDefault(),e.stopPropagation()):e.key==="ArrowRight"||e.key==="ArrowLeft"||e.key==="Tab"||e.key==="Shift"||this.openMenu()}handleInputChange(e){this.setState({title:e.target.value}),this.updateInputValue(e.target.value)}handleOptionClick(e){var r;this.setState({title:e.title,invalid:!1}),this.fireOnChange(e.value),this.closeMenu(),(r=this.input.current)===null||r===void 0||r.focus()}handelInputFocus(){var{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputClick(){var{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputBlur(e){var{menuIsOpen:r}=this.state;r&&e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuBlur(e){e.relatedTarget===this.input.current||e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuOpened(){var e;(e=this.input.current)===null||e===void 0||e.focus()}handleMenuExited(){var{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}openMenu(){var{title:e}=this.state;this.processFilterChange(e),this.setInputWidth(),this.setState({menuIsOpen:!0}),window.requestAnimationFrame(()=>{var r;(r=this.popper.current)===null||r===void 0||r.show()})}closeMenu(){var e,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1,keyboardOptionIndex:0}),r){var n;(n=this.input.current)===null||n===void 0||n.focus()}(e=this.popper.current)===null||e===void 0||e.hide()}scrollOptionIntoView(e){if(this.menuContainer.current){var r;(r=this.menuContainer.current.children.item(e))===null||r===void 0||r.scrollIntoView({behavior:"smooth",block:"nearest"})}}renderMenuElement(){var{inputWidth:e}=this.state;return c.jsx("div",{className:C("aci-options"),ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,style:{width:e},onBlur:this.handleMenuBlur,children:this.renderOptions()})}renderOptions(){var{noMatchText:e}=this.props,{title:r,filteredOptions:n}=this.state;return r&&n.length===0?c.jsx("div",{className:"no-match",children:e}):n.map((a,i)=>this.renderOption(a,i))}renderOption(e,r){var{keyboardOptionIndex:n}=this.state,a="option-".concat(r,"-").concat(e.value);return c.jsx("button",{type:"button",className:C("aci-option-btn",{"keyboard-active":n===r}),onClick:()=>this.handleOptionClick(e),onFocus:()=>this.setState({keyboardOptionIndex:r}),children:e.title},a)}render(){var{options:e,inputPlaceholder:r,disabled:n,className:a,defaultTitle:i,spellCheck:o,"data-testid":s}=this.props,{title:u,menuIsOpen:d,popperOptions:f,invalid:p}=this.state;return c.jsxs("div",{className:"aci-container",ref:this.cbContainer,children:[c.jsx("input",{value:u||i,className:C("form-control",a,"aci-input",{"is-invalid":p&&!d}),ref:this.input,onChange:this.handleInputChange,placeholder:r||e[0].title,disabled:n,onFocus:this.handelInputFocus,onClick:this.handleInputClick,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,spellCheck:o,"data-testid":s}),c.jsx(ct,{ref:this.popper,options:f,className:C("aci-options-popper interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})}}K(R,"propTypes",{options:N.arrayOf(N.shape({title:N.string.isRequired,value:N.string.isRequired})).isRequired,popperOptions:N.shape({}),onChange:N.func,inputPlaceholder:N.string,disabled:N.bool,className:N.string,defaultTitle:N.string,spellCheck:N.bool,onEnter:N.func,noMatchText:N.string,"data-testid":N.string});K(R,"defaultProps",{onChange(){},inputPlaceholder:"",disabled:!1,className:"",defaultTitle:"",popperOptions:null,spellCheck:!0,onEnter(){},noMatchText:"No matching items found","data-testid":void 0});K(R,"MENU_NAVIGATION_DIRECTION",ye);const Ea=R;function St(t){var{className:e="",value:r,onChange:n,spellCheck:a=!1,placeholder:i="",disabled:o=!1,delimiter:s="",id:u="","data-testid":d}=t,[f,p]=l.useState(r),[h,v]=l.useState(!1),m=l.useRef(null);l.useEffect(function(){p(r)},[r]);function b(O){return O.trim().split(s).filter(P=>P).join(`
2
2
  `.concat(s.trim()))}function S(O){return O.split(`
3
3
  `).map(P=>P.trim()).join(" ")}function w(){if(m.current){m.current.style.height="0";var O=m.current.scrollHeight+(m.current.offsetHeight-m.current.clientHeight);O>0&&(m.current.style.height="".concat(O,"px"))}}function _(O){var P=O.target.value;h&&(s&&(P=b(P)),v(!1)),p(P),n(P)}function M(){m.current&&(s&&(p(b(f)),w()),m.current.scrollLeft=0)}function D(){m.current&&document.activeElement!==m.current&&m.current.focus()}function g(){s&&(p(S(f)),n(S(f)))}function I(){v(!0)}return l.useEffect(function(){w()},[f]),c.jsx("textarea",{ref:m,id:u,className:C(e,"auto-resize-textarea form-control"),placeholder:i,value:f,rows:1,onChange:_,onFocus:M,onMouseDown:D,onBlur:g,onPaste:I,spellCheck:a,disabled:o,"data-testid":d})}St.propTypes={value:N.string.isRequired,onChange:N.func.isRequired,className:N.string,placeholder:N.string,spellCheck:N.bool,disabled:N.bool,delimiter:N.string,id:N.string,"data-testid":N.string};St.defaultProps={className:"",id:"",placeholder:"",disabled:!1,spellCheck:!1,delimiter:"","data-testid":void 0};var kn=ft.module("TimeInput"),Mn="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]",Dn=["00:00:00","12:34:56","23:59:59"];function et(t){return t!=null?"".concat(t.substring(0,8).replace(/\u2007/g,"0")).concat("00:00:00".substring(t.length)):t}var wt=F.forwardRef((t,e)=>{var{allowValueWrapping:r=!0,className:n="",onChange:a=()=>!1,value:i=0,onFocus:o=()=>!1,onBlur:s=()=>!1,onSelect:u=()=>!1,"data-testid":d}=t,[f,p]=l.useState(oe.formatTime(i)),h=l.useRef(i),[v,m]=l.useState(),b=l.useRef(null);l.useImperativeHandle(e,()=>({focus:()=>{var g;(g=b.current)===null||g===void 0||g.focus()},setSelection:g=>{var I;(I=b.current)===null||I===void 0||I.focus(),m(g)}}),[]),l.useEffect(function(){h.current!==i&&(p(oe.formatTime(i)),h.current=i)},[h,i]);function S(g,I,O){var P=g.selectionStart===0?24:60,T=parseInt(O,10)-I;return Number.isNaN(T)?T=0:r?T=(T%P+P)%P:T=Math.min(Math.max(0,T),P-1),"".concat(T).padStart(2,"0")}function w(g,I,O,P,T){return P===0&&T===2&&I===1&&parseInt(O,10)>1?"0".concat(O).concat(g.substring(2)):zt(g,I,O)}var _=l.useCallback(g=>{kn.debug("handleChange",g),p(g),h.current=oe.parseTime(et(g)),a(h.current)},[a]),M=l.useCallback(()=>{var g=et(f);g!==f&&p(g),s()},[f,s]),D=l.useCallback(g=>{m(g),u(g)},[u]);return c.jsx(ht,{ref:b,className:n,example:Dn,getNextSegmentValue:S,getPreferredReplacementString:w,onChange:_,onSelect:D,pattern:Mn,selection:v,value:f,onFocus:o,onBlur:M,"data-testid":d})});wt.defaultProps={allowValueWrapping:!0,className:"",onChange:()=>!1,onSelect:()=>!1,value:0,onFocus:()=>!1,onBlur:()=>!1,"data-testid":void 0};const be=wt;function tt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function $n(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?tt(Object(r),!0).forEach(function(n){L(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function L(t,e,r){return e=An(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function An(t){var e=Rn(t,"string");return typeof e=="symbol"?e:String(e)}function Rn(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var rt=-1,Oe;(function(t){t.UP="UP",t.DOWN="DOWN"})(Oe||(Oe={}));class $ extends l.Component{constructor(e){super(e),L(this,"csContainer",void 0),L(this,"menuContainer",void 0),L(this,"button",void 0),L(this,"input",void 0);var{value:r,valueToTime:n}=e;this.toggleMenu=this.toggleMenu.bind(this),this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.closeMenu=this.closeMenu.bind(this),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleOptionFocus=this.handleOptionFocus.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.handleCustomInput=this.handleCustomInput.bind(this),this.csContainer=F.createRef(),this.menuContainer=F.createRef(),this.button=F.createRef(),this.input=F.createRef(),this.state={keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,customTime:n(r),inputFocused:!1}}getSelectedText(){var{options:e,value:r,placeholder:n}=this.props,{customTime:a}=this.state;if(r===null)return n;for(var i=0;i<e.length;i+=1){var o=e[i];if(o.value===r)return o.title}return oe.formatTime(a)}setInputWidth(){this.csContainer.current&&this.setState({inputWidth:this.csContainer.current.getBoundingClientRect().width})}focus(){var e;(e=this.button.current)===null||e===void 0||e.focus()}updateInputValue(e){var{onChange:r}=this.props;r(e)}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){var r,{keyboardOptionIndex:n,inputFocused:a}=this.state,{options:i}=this.props;switch(e.key){case"Enter":case" ":a?this.updateFromCustom():this.updateInputValue(i[n].value),this.closeMenu(),(r=this.button.current)===null||r===void 0||r.focus(),e.stopPropagation(),e.preventDefault();break;case"Tab":e.shiftKey?this.handleMenuNavigation($.MENU_NAVIGATION_DIRECTION.UP):this.handleMenuNavigation($.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"ArrowUp":this.handleMenuNavigation($.MENU_NAVIGATION_DIRECTION.UP),e.stopPropagation(),e.preventDefault();break;case"ArrowDown":this.handleMenuNavigation($.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"Escape":this.closeMenu();break}}handleMenuNavigation(e){var{keyboardOptionIndex:r,inputFocused:n}=this.state,{options:a}=this.props,i=a.length,o=r;switch(e){case $.MENU_NAVIGATION_DIRECTION.UP:if(!n&&r===0){this.focusInput();break}else n&&this.focusOption(r);r>0&&!n?(o=(o-1)%i,this.setState({keyboardOptionIndex:o})):r===0&&(o=i-1,this.setState({keyboardOptionIndex:o})),this.scrollOptionIntoView(o);break;case $.MENU_NAVIGATION_DIRECTION.DOWN:if(!n&&r===i-1){this.focusInput();break}else n&&this.focusOption(r);r<i&&!(n&&r===0)&&(o=(o+1)%i,this.setState({keyboardOptionIndex:o})),this.scrollOptionIntoView(o);break}}handleOptionClick(e){var r=Number(e.currentTarget.value),{options:n,timeToValue:a}=this.props,{customTime:i}=this.state;if(r===rt){var o=a(i);this.updateAndClose(o)}else this.updateAndClose(n[r].value)}updateAndClose(e){var r;this.updateInputValue(e),this.closeMenu(),(r=this.button.current)===null||r===void 0||r.focus()}handleOptionFocus(e){this.setState({keyboardOptionIndex:Number(e.target.value)})}handleMenuOpened(){var e,{options:r,value:n}=this.props,{keyboardOptionIndex:a}=this.state;this.scrollOptionIntoView(a);var i=(e=this.menuContainer.current)===null||e===void 0?void 0:e.querySelector(".cs-option-btn.keyboard-active");if(i instanceof HTMLElement&&i.focus(),n!==null){var o=r.map(s=>s.value).indexOf(n);o<0&&this.focusInput()}}focusInput(){var e;(e=this.input.current)===null||e===void 0||e.focus()}focusOption(e){var r,n=(r=this.menuContainer.current)===null||r===void 0?void 0:r.querySelector(".cs-options");if(n&&n.children!=null){var a=n.children.item(e);a instanceof HTMLElement&&a.focus()}}handleMenuExited(){var{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}handleCustomInput(e){var{timeToValue:r}=this.props,n=r(e);this.updateInputValue(n),this.setState({customTime:e})}updateFromCustom(){var{timeToValue:e}=this.props,{customTime:r}=this.state,n=e(r);this.updateInputValue(n)}toggleMenu(e){var{menuIsOpen:r}=this.state;r?this.closeMenu():this.openMenu(),e.stopPropagation()}openMenu(){this.updateKeyboardIndex(),this.setInputWidth(),this.setState({menuIsOpen:!0})}closeMenu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1}),e){var r;(r=this.button.current)===null||r===void 0||r.focus()}}updateKeyboardIndex(){var{options:e,value:r}=this.props;if(r!==null){var n=e.map(a=>a.value).indexOf(r);n>0&&this.setState({keyboardOptionIndex:n})}}scrollOptionIntoView(e){var r,n=(r=this.menuContainer.current)===null||r===void 0?void 0:r.querySelector(".cs-options");if(n&&n.children!=null){var a=n.children.item(e);a instanceof HTMLElement&&a.offsetTop>$.DROP_DOWN_MENU_HEIGHT?n.scrollTop=a.offsetTop-$.DROP_DOWN_MENU_HEIGHT:(a instanceof HTMLElement&&a.offsetTop<0||e===0)&&(n.scrollTop=0)}}renderMenuElement(){var{inputWidth:e}=this.state;return c.jsx("div",{className:"cs-menu-container",ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,onClick:r=>{r.stopPropagation()},style:{width:e},children:c.jsx("div",{className:"cs-options-container",children:c.jsx("div",{className:"cs-options",children:this.renderOptions()})})})}renderOptions(){for(var{options:e,value:r,icon:n,customText:a}=this.props,{keyboardOptionIndex:i,customTime:o,inputFocused:s}=this.state,u=!1,d=[],f=0;f<e.length;f+=1){var p=e[f],h="option-".concat(f,"-").concat(p.value);u=u||p.value===r,d.push(c.jsxs("button",{type:"button",value:f,className:C("cs-option-btn",{"keyboard-active":i===f&&!s}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[p.value===r&&c.jsx(Z,{icon:n,className:"mr-2"}),p.value!==r&&c.jsx("span",{className:"mr-4"}),p.title]},h))}return d.push(c.jsx("hr",{className:"cs-divider"},"option-divider")),d.push(c.jsxs("button",{type:"button",value:rt,className:C("cs-option-btn",{"keyboard-active":s}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[!u&&r!==null?c.jsx(Z,{icon:n,className:"mr-2"}):c.jsx("span",{className:"mr-4"}),a]},"option-custom-label")),d.push(c.jsxs("div",{className:"cs-custom-container",children:[c.jsx("span",{className:"mr-2"}),c.jsx(be,{ref:this.input,onChange:this.handleCustomInput,value:o,onFocus:()=>this.setState({inputFocused:!0}),onBlur:()=>this.setState({inputFocused:!1})},"option-input"),c.jsx("span",{className:"ml-2"})]},"cs-custom-container")),d.push(c.jsx("hr",{className:"mb-2"},"option-end")),d}render(){var{disabled:e,invalid:r,value:n,"data-testid":a}=this.props,{menuIsOpen:i}=this.state,{popperOptions:o}=this.props;return o=$n({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},o),c.jsx("div",{className:"input-group cs-container context-menu",ref:this.csContainer,"data-testid":a,children:c.jsx("div",{className:C("input-group-append cs-dropdown",{"cs-dropdown-invalid":r}),children:c.jsxs("button",{type:"button",className:C("btn cs-btn form-control",{"cs-btn-invalid":r}),ref:this.button,onClick:this.toggleMenu,disabled:e,children:[c.jsx("span",{className:C({"text-muted":n===null}),children:this.getSelectedText()}),c.jsx("span",{className:"cs-caret"}),c.jsx(At,{isShown:i,actions:{menuElement:this.renderMenuElement()},popperOptions:o,popperClassName:"CustomTimeSelect",onMenuOpened:this.handleMenuOpened,onMenuClosed:this.handleMenuExited,menuStyle:{maxWidth:"100rem"}})]})})})}}L($,"MENU_NAVIGATION_DIRECTION",Oe);L($,"DROP_DOWN_MENU_HEIGHT",125);L($,"defaultProps",{onChange(){},value:null,disabled:!1,popperOptions:{},icon:Vt,customText:"Custom",placeholder:"Select a time",valueToTime:t=>t===null?0:Math.round(t/1e3),timeToValue:t=>t*1e3,invalid:!1,"data-testid":void 0});const xa=$;var Fn=ft.module("DateInput"),Kn="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",Vn=["2000-01-01","2022-12-31"],Ln="YYYY-MM-DD",Pt=F.forwardRef((t,e)=>{var{className:r="",onChange:n=()=>{},defaultValue:a="",onFocus:i=()=>{},onBlur:o=()=>{},"data-testid":s}=t,[u,d]=l.useState(a),[f,p]=l.useState(),h=l.useCallback(v=>{Fn.debug("handleChange",v),d(v),n(v)},[n]);return c.jsx("div",{className:"d-flex flex-row align-items-center",children:c.jsx(ht,{ref:e,className:C(r),example:Vn,getNextSegmentValue:Gt,onChange:h,onSelect:p,pattern:Kn,placeholder:Ln,selection:f,value:u,onFocus:i,onBlur:o,"data-testid":s})})});Pt.displayName="DateInput";const Ia=Pt;function ja(t){var{message:e,isExpanded:r=!1,type:n="Error"}=t,[a,i]=l.useState(!1),[o,s]=l.useState(!1),u=l.useRef(null),d=l.useRef(null),f=l.useCallback(()=>{if(!(o||r||d.current==null)){var h=d.current.scrollHeight>d.current.clientHeight;i(h)}},[o,r]),p=rr(f,100);return pt(u.current,p),l.useLayoutEffect(p,[p]),c.jsxs("div",{className:C("error-view",{expanded:o||r}),ref:u,children:[c.jsxs("div",{className:"error-view-header",children:[c.jsxs("div",{className:"error-view-header-text",children:[c.jsx(Z,{icon:Lt}),c.jsx("span",{children:n})]}),c.jsxs("div",{className:"error-view-buttons",children:[c.jsx(Rt,{kind:"danger",className:"error-view-copy-button",tooltip:"Copy exception contents",copy:"".concat(n,": ").concat(e).trim()}),(a||o)&&!r&&c.jsx(he,{kind:"danger",className:"error-view-expand-button",onClick:()=>{s(!o)},icon:o?Ut:Wt,children:o?"Show Less":"Show More"})]})]}),c.jsx("pre",{className:"error-view-text",ref:d,children:e})]})}function Un(t,e,r){return e=Wn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wn(t){var e=Hn(t,"string");return typeof e=="symbol"?e:String(e)}function Hn(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class B extends l.Component{static isParentSelected(e,r){var n=r.get(e);if(n===void 0)return!1;if(typeof n=="boolean")return n;var a=Array.from(n.values()).includes(!0),i=Array.from(n.values()).includes(!1);return a&&i?null:a}constructor(e){super(e),this.toggleMenu=this.toggleMenu.bind(this),this.toggleValueFor=this.toggleValueFor.bind(this),this.selectAll=this.selectAll.bind(this),this.clear=this.clear.bind(this),this.state={menuIsOpen:!1}}toggleMenu(e){e.stopPropagation(),e.preventDefault(),this.setState(r=>{var{menuIsOpen:n}=r;return{menuIsOpen:!n}})}toggleValueFor(e,r){var{valueMap:n,onUpdateValueMap:a}=this.props,i=new Map(n),o=i.get(e);if(o instanceof Map){var s=new Map(o);if(r!=null)s.set(r,o.get(r)!==!0);else{var u=B.isParentSelected(e,i),d=u==null||!u;o.forEach((h,v)=>s.set(v,d))}i.set(e,s)}else i.set(e,o==null||!o);var f=i.get(e);if(r===void 0&&f!==void 0&&typeof f!="boolean"){var p=B.isParentSelected(e,n);p!=null&&p?f.forEach((h,v)=>f.set(v,!1)):f.forEach((h,v)=>f.set(v,!0))}a(i)}setAllValues(e){var{valueMap:r,onUpdateValueMap:n}=this.props,a=new Map;r.forEach((i,o)=>{if(typeof i=="boolean")a.set(o,e);else{var s=new Map;i.forEach((u,d)=>s.set(d,e)),a.set(o,s)}}),n(a)}selectAll(){this.setAllValues(!0)}clear(){this.setAllValues(!1)}renderMenuElement(){var{valueMap:e,"data-testid":r}=this.props;return c.jsxs("div",{className:"hcm-menu-container",children:[Array.from(e.entries()).map(n=>{var[a,i]=n;return c.jsxs("div",{children:[c.jsx(_e,{className:"hcm-parent",checked:B.isParentSelected(a,e),onChange:()=>this.toggleValueFor(a),children:a}),i!==void 0&&typeof i!="boolean"&&Array.from(i.entries()).map(o=>{var[s,u]=o;return c.jsx(_e,{className:"hcm-child",checked:u,onChange:()=>this.toggleValueFor(a,s),children:s},s)})]},a)}),c.jsx(he,{kind:"ghost",onClick:this.selectAll,"data-testid":r!==void 0?"".concat(r,"-btn-select-all"):void 0,children:"Select All"}),c.jsx(he,{kind:"ghost",onClick:this.clear,"data-testid":r!==void 0?"".concat(r,"-btn-clear"):void 0,children:"Clear"})]})}render(){var{menuText:e,className:r,icon:n,id:a,"data-testid":i}=this.props,{menuIsOpen:o}=this.state;return c.jsxs("button",{type:"button",className:C("btn hcm-btn",r),onClick:this.toggleMenu,id:a,"data-testid":i,children:[c.jsxs("span",{children:[n&&c.jsx(Z,{icon:n,className:"hcm-icon mr-1"}),e]}),c.jsx("span",{className:"cs-caret"}),c.jsx(ct,{options:{placement:"bottom"},isShown:o,onExited:()=>{this.setState({menuIsOpen:!1})},closeOnBlur:!0,interactive:!0,children:this.renderMenuElement()})]})}}Un(B,"defaultProps",{className:"",icon:null,id:"","data-testid":void 0});const Na=B;var Bn=.025,zn=.9,Gn=.1,Yn=.618,nt=80,H={SIZE:8,DOT_SIZE:2},V=18,qn=250,Xn=60*1e3,Zn={background:"var(--dh-color-random-area-plot-animation-bg)",foregroundFill:"var(--dh-color-random-area-plot-animation-fg-fill)",foregroundStroke:"var(--dh-color-random-area-plot-animation-fg-stroke)",gridColor:"var(--dh-color-random-area-plot-animation-grid)"};function Jn(){return Ht(Zn)}var Qn=F.memo(()=>{var{activeThemes:t}=Ft(),e=l.useMemo(Jn,[t]),r=l.useRef(null),n=l.useRef(null),[a,i]=l.useState(!1),o=window.devicePixelRatio,s,u,d,f,p,h=null,v=[];function m(){var y;n.current!=null&&(d=n.current.offsetWidth,f=n.current.offsetHeight),r.current!=null&&(r.current.style.width="".concat(d,"px"),r.current.style.height="".concat(f,"px"),r.current.width=d*o,r.current.height=f*o),(y=s)===null||y===void 0||y.scale(o,o)}function b(){var{foregroundFill:y,foregroundStroke:x}=e,E=document.createElement("canvas");E.width=H.SIZE,E.height=H.SIZE;var k=E.getContext("2d");return k!=null&&(k.fillStyle=x,k.fillRect(0,0,H.DOT_SIZE,H.DOT_SIZE),k.fillStyle=y,k.fillRect(0,0,H.SIZE,H.SIZE)),k?.createPattern(E,"repeat")}function S(y){var x=Math.random()-.5,E=Bn*x;return y<Gn?E=Math.abs(E):y>zn&&(E=-Math.abs(E)),y+E}function w(){for(var y=[],x=Yn,E=0;E<d+V;E+=1)x=S(x),y.push(x);return y}function _(){for(;v.length>=d+V;)v.pop();for(;v.length<d+V;)v.push(S(v[v.length-1]))}function M(y,x){x.beginPath(),x.moveTo(-1,f+1),x.lineTo(-1,f*y[0]);for(var E=0;E<y.length;E+=1)x.lineTo(E,f*y[E]);x.lineTo(d+V,f*y[y.length-1]),x.lineTo(d+V,f+1),x.closePath()}function D(y){y.beginPath();for(var x=1;x<d;x+=nt)y.moveTo(x,0),y.lineTo(x,f);for(var E=1;E<f;E+=nt)y.moveTo(0,E),y.lineTo(d,E)}function g(y){var x,E,k;h=(x=h)!==null&&x!==void 0?x:y;var{background:de,foregroundStroke:fe,gridColor:pe}=e;Bt(s),s.fillStyle=de,s.fillRect(0,0,d,f),D(s),s.lineWidth=1,s.strokeStyle=pe,s.stroke();var Q=(((E=h)!==null&&E!==void 0?E:0)-(y??0))/(1e3/V);if(s.translate(Q,0),M(v,s),s.lineWidth=2,s.strokeStyle=fe,s.stroke(),s.translate(-Q,0),u!=null&&(s.fillStyle=u),s.fill(),s.setTransform(o,0,0,o,0,0),(y??0)-((k=h)!==null&&k!==void 0?k:0)>1e3/V){for(var q,xt=Math.floor(((y??0)-((q=h)!==null&&q!==void 0?q:0))/(1e3/V)),je=0;je<xt;je+=1)v.shift(),v.push(S(v[v.length-1]));h=y}p!=null&&cancelAnimationFrame(p),p=requestAnimationFrame(g)}var I=le(()=>{p=requestAnimationFrame(y=>{m(),_(),i(!1),g(y)})},qn,{leading:!0});function O(){i(!0),p!=null&&cancelAnimationFrame(p),p=null,h=null}var P=le(()=>{O()},Xn);function T(){p==null&&(i(!1),m(),_(),p=requestAnimationFrame(g)),P()}function W(){document.hasFocus()&&T()}function J(){p!=null&&cancelAnimationFrame(p),P(),I()}return l.useEffect(()=>{var y;return s=(y=r.current)===null||y===void 0?void 0:y.getContext("2d",{alpha:!1}),m(),v=w(),u=b(),g(),P(),window.addEventListener("resize",J),window.addEventListener("focus",T),window.addEventListener("blur",O),window.addEventListener("mousemove",W),window.addEventListener("keydown",W),()=>{p!=null&&cancelAnimationFrame(p),window.removeEventListener("resize",J),window.removeEventListener("focus",T),window.removeEventListener("blur",O),window.removeEventListener("mousemove",W),window.removeEventListener("keydown",W),P.cancel(),I.cancel()}},[e]),c.jsx("div",{className:"random-area-plot-animation-container",ref:n,children:c.jsx("canvas",{ref:r,className:a?"shade":""})})});const _a=Qn,ea="_modified_5rbci_24",ta="_track_5rbci_35",ra="_handle_5rbci_15",na="_ticks_5rbci_103",Et={"handle-size":"15px","popover-width":"90px","time-slider":"_time-slider_5rbci_5","time-slider-popovers":"_time-slider-popovers_5rbci_10","handle-popper":"_handle-popper_5rbci_15",modified:ea,"flex-spacer":"_flex-spacer_5rbci_31",track:ta,"track-fills":"_track-fills_5rbci_42","track-fill":"_track-fill_5rbci_42","track-fill-start":"_track-fill-start_5rbci_60","track-fill-middle":"_track-fill-middle_5rbci_61","track-fill-end":"_track-fill-end_5rbci_64","handle-track":"_handle-track_5rbci_67",handle:ra,ticks:na,"tick-labels":"_tick-labels_5rbci_121","tick-label":"_tick-label_5rbci_121","tick-label-wrapper":"_tick-label-wrapper_5rbci_137"};var ie=parseInt(Et["handle-size"],10),at=parseInt(Et["popover-width"],10),A=24*60*60-1,it=5*60;function Ca(t){var{startTime:e,endTime:r,onChange:n,isStartModified:a=!1,isEndModified:i=!1,"data-testid":o}=t,[s,u]=l.useState(e),[d,f]=l.useState(r),p=l.useRef(null);l.useEffect(function(){u(e),f(r)},[e,r]);var h=l.useCallback((b,S)=>{var w=b,_=S;w===_&&(_<A?_+=1:w-=1),u(w),f(_),n({startTime:w,endTime:_})},[u,f,n]),v=l.useCallback(b=>{h(b,d)},[h,d]),m=l.useCallback(b=>{h(s,b)},[h,s]);return c.jsxs("div",{className:"time-slider","data-testid":o,children:[c.jsx(aa,{startTime:s,endTime:d,onStartTimeChange:v,onEndTimeChange:m,isStartModified:a,isEndModified:i}),c.jsxs("div",{className:"track",ref:p,children:[c.jsx(ia,{startTime:s,endTime:d}),c.jsx("div",{className:"ticks",children:Array(24).fill(null).map((b,S)=>c.jsx("div",{className:"tick"},S))}),c.jsx(ot,{track:p,time:s,setTime:v}),c.jsx(ot,{track:p,time:d,setTime:m})]}),c.jsxs("div",{className:"tick-labels",children:[c.jsx("div",{className:"tick-label",children:"0:00"}),c.jsx("div",{className:"tick-label-wrapper",children:Array(24).fill(null).map((b,S)=>c.jsx("div",{className:"tick-label",children:"".concat(S+1,":00")},S))})]})]})}function aa(t){var{startTime:e,endTime:r,onStartTimeChange:n,onEndTimeChange:a,isStartModified:i,isEndModified:o,"data-testid":s}=t,u=e>r,[d,f]=l.useState(u?r:e),[p,h]=l.useState(u?e:r),v=l.useRef(null),m=l.useRef(null),b=l.useRef(null),S=l.useRef(null);l.useEffect(function(){f(e>r?r:e),h(e>r?e:r)},[e,r]),l.useEffect(function(){if(b.current!==null){var I;(I=m.current)===null||I===void 0||I.setSelection(b.current)}if(S.current!==null){var O;(O=v.current)===null||O===void 0||O.setSelection(S.current)}},[u]);function w(g){e<=r?n(g):a(g)}function _(g){e<=r?a(g):n(g)}var M=l.useCallback(g=>{b.current=g,S.current=null},[]),D=l.useCallback(g=>{b.current=null,S.current=g},[]);return c.jsxs("div",{className:"time-slider-popovers",children:[c.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat(d/A*100,"% - ").concat(at/2,"px)")}}),c.jsxs("div",{className:"handle-popper",children:[c.jsx("label",{className:C({modified:u?o:i}),children:u?"End Time":"Start Time"}),c.jsx(be,{ref:v,allowValueWrapping:!1,value:d,onChange:w,onSelect:M,"data-testid":s!==void 0?"".concat(s,"-input-1"):void 0})]}),c.jsx("div",{className:"flex-spacer"}),c.jsxs("div",{className:"handle-popper",children:[c.jsx("label",{className:C({modified:u?i:o}),children:u?"Start Time":"End Time"}),c.jsx(be,{ref:m,allowValueWrapping:!1,value:p,onChange:_,onSelect:D,"data-testid":s!==void 0?"".concat(s,"-input-2"):void 0})]}),c.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat((A-p)/A*100,"% - ").concat(at/2,"px)")}})]})}function ia(t){var{startTime:e,endTime:r,"data-testid":n}=t;return c.jsxs("div",{className:"track-fills","data-testid":n,children:[e>r&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"track-fill track-fill-start",style:{transform:"scaleX(".concat(r/A,")")}}),c.jsx("div",{className:"track-fill track-fill-end",style:{transform:"scaleX(".concat((A-e)/A,")")}})]}),e<r&&c.jsx("div",{className:"track-fill track-fill-middle",style:{transform:"translateX(".concat(e/A*100,"%) scaleX(").concat((r-e)/A,")")}})]})}function ot(t){var{track:e,time:r,setTime:n,"data-testid":a}=t,i=l.useMemo(()=>{var h=3600,v=ie/2;return r<h?v=r/h*(ie/2):r>23*h&&(v=ie/2+1/(A-23*h)*(r-23*h)*(ie/2)),"translateX(calc(".concat(r/A*100,"% - ").concat(v,"px))")},[r]),o=l.useCallback(h=>{if(!e.current)return 0;var v=e.current.getBoundingClientRect(),m=Math.max(h-v.left,0),b=A*Math.min(1,m/v.width),S=it*Math.round(b/it),w=Math.min(A,S);return w},[e]),s=l.useCallback(h=>{var{clientX:v}=h;n(o(v))},[n,o]),u=l.useCallback(h=>{var{clientX:v}=h;n(o(v)),window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",u),document.documentElement.classList.remove("drag-pointer-events-none")},[n,o,s]),d=l.useCallback(()=>{window.addEventListener("mousemove",s),window.addEventListener("mouseup",u),document.documentElement.classList.add("drag-pointer-events-none")},[s,u]),f=l.useCallback(()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",u),document.documentElement.classList.remove("drag-pointer-events-none")},[s,u]),p=l.useCallback(()=>{d()},[d]);return l.useEffect(function(){return()=>{f()}},[f]),c.jsx("div",{className:"handle-track",style:{transform:i},children:c.jsx("button",{className:"handle",type:"button","aria-label":"Change time",onMouseDown:p,"data-testid":a})})}function z(t,e,r){return e=oa(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oa(t){var e=sa(t,"string");return typeof e=="symbol"?e:String(e)}function sa(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class j extends Yt{static get theme(){return j._theme==null&&(j._theme=Kt()),j._theme}static makeRandomSeries(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:100,a=[],i=[],o=[],s=[],u=new Date("2018-06-01"),d=0;d<n;d+=1){var f=new Date(u.getFullYear(),u.getMonth(),u.getDate()+d-n);a.push("".concat(f.getFullYear(),"-").concat(f.getMonth()+1,"-").concat(f.getDate()));var p=(Math.sin(d/n*e)*n/3+Math.cos(d*.2)*n/6+Math.sin(d*.5)*n/10+j.random()*n/5+d*j.smoothing)*r;p=Math.round(p*100)/100,i.push(p),s.push(40+d*j.smoothing),o.push(Math.sin(d/n*e)*n/3+j.random()*n/10+d*j.smoothing)}return{x:a,y:i,s:o,l:s}}static makeScatter(e){return{name:"SCTR",x:e.x,y:e.y,type:"scatter",mode:"markers",hoverinfo:"skip",marker:{size:5}}}static makeArea(e){return{name:"AREA",x:e.x,y:e.s,type:"scatter",mode:"line",fill:"tozeroy",hoverinfo:"all",line:{width:3}}}static makeTrendline(e){return{name:"Trendline <br>R<sup>2</sup> = 0.91",x:e.x,y:e.l,type:"scatter",mode:"line",hoverinfo:"skip",line:{width:3,dash:"dot"}}}static makeErrorBand(e){for(var r=[],n=[],a=0;a<e.y.length;a+=1){var i=e.y[a];r[a]=Math.round((i+18)*100)/100,n[a]=Math.round((i-18)*100)/100}var o=r.concat(n.reverse());return{name:"error",x:e.x.concat(e.x.slice().reverse()),y:o,type:"scatter",mode:"line",hoverinfo:"skip",fill:"toself",line:{width:0,color:j.theme.error_band_line_color,shape:"spline"}}}static makeLine(e){return{name:"LINE",x:e.x,y:e.y,type:"scatter",mode:"line",hoverinfo:"x+y+text+name",line:{width:3}}}static makeRandomData(){var e=j.makeRandomSeries(6),r=j.makeArea(e),n=j.makeTrendline(e),a=j.makeRandomSeries(2),i=j.makeLine(a),o=j.makeErrorBand(a);return[r,n,i,o]}static makeDefaultLayout(e){var r={template:new qt(e).makeDefaultTemplate(j.theme)};return r.title="Chart",r.xaxis={title:"Datestamp"},r.yaxis={title:"Price"},r}constructor(e){var{data:r=j.makeRandomData(),layout:n=j.makeDefaultLayout(e),filterFields:a=[]}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(e),z(this,"data",void 0),z(this,"filterFields",void 0),z(this,"layout",void 0),this.data=r,this.layout=n,this.filterFields=a}getData(){return this.data}getLayout(){return this.layout}getFilterColumnMap(){for(var e=new Map,r=0;r<this.filterFields.length;r+=1){var n=this.filterFields[r],a="java.lang.String";e.set(n,{name:n,type:a})}return e}isFilterRequired(){return this.filterFields.length>0}setFilter(){this.fireUpdate(this.data)}}z(j,"random",Math.random.bind(Math));z(j,"smoothing",1.5);z(j,"_theme",void 0);const Ta=j;var la=l.createContext(!1);function ka(t){var{fontClassNames:e=["fira-sans-regular","fira-sans-semibold","fira-mono"],children:r}=t,[n,a]=l.useState(!1);return l.useEffect(function(){document.fonts.ready.then(()=>{a(!0)})},[]),c.jsxs(c.Fragment,{children:[c.jsx(la.Provider,{value:n,children:r}),c.jsx("div",{id:"preload-fonts",style:{visibility:"hidden",position:"absolute",top:-1e4},children:e.map(i=>c.jsx("p",{className:i,children:"preload"},i))})]})}export{yt as $,Ea as A,Ca as B,or as C,Ia as D,ja as E,Pe as F,Y as G,On as H,me as I,wr as J,sr as K,Oa as L,xe as M,Pr as N,xr as O,wa as P,ba as Q,Er as R,vt as S,G as T,Ee as U,jn as V,se as W,ce as X,Mr as Y,Ot as Z,gt as _,ma as a,Dr as a0,$r as a1,_r as a2,Ie as a3,Ve as a4,Ta as a5,la as a6,ka as a7,Zt as b,va as c,mt as d,ke as e,ga as f,ya as g,U as h,Jt as i,Qt as j,tr as k,rr as l,nr as m,ir as n,St as o,xa as p,Na as q,X as r,$e as s,hr as t,er as u,Sa as v,bt as w,Pa as x,_a as y,be as z};
4
- //# sourceMappingURL=FontBootstrap-753901ab.js.map
4
+ //# sourceMappingURL=FontBootstrap-dafd12df.js.map