@deephaven/code-studio 0.77.1-alpha-listview-actions.3 → 0.77.1-alpha-listview-actions.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 (42) hide show
  1. package/build/assets/{AppRoot-9548d213.js → AppRoot-63900edd.js} +3 -3
  2. package/build/assets/{AppRoot-9548d213.js.map → AppRoot-63900edd.js.map} +1 -1
  3. package/build/assets/{Chart-8e887469.js → Chart-395e3437.js} +2 -2
  4. package/build/assets/{Chart-8e887469.js.map → Chart-395e3437.js.map} +1 -1
  5. package/build/assets/{ControlType-04a23009.js → ControlType-55424d5c.js} +3 -3
  6. package/build/assets/{ControlType-04a23009.js.map → ControlType-55424d5c.js.map} +1 -1
  7. package/build/assets/FontBootstrap-362e6dde.css +1 -0
  8. package/build/assets/{FontBootstrap-5f2cd629.js → FontBootstrap-98d6f69d.js} +2 -2
  9. package/build/assets/{FontBootstrap-5f2cd629.js.map → FontBootstrap-98d6f69d.js.map} +1 -1
  10. package/build/assets/{FormatterUtils-1a068093.js → FormatterUtils-172bcf34.js} +2 -2
  11. package/build/assets/{FormatterUtils-1a068093.js.map → FormatterUtils-172bcf34.js.map} +1 -1
  12. package/build/assets/{Grid-3ffb3703.js → Grid-7ee6c6d4.js} +2 -2
  13. package/build/assets/{Grid-3ffb3703.js.map → Grid-7ee6c6d4.js.map} +1 -1
  14. package/build/assets/{GridRenderer-0beeeecb.js → GridRenderer-25870dc7.js} +2 -2
  15. package/build/assets/{GridRenderer-0beeeecb.js.map → GridRenderer-25870dc7.js.map} +1 -1
  16. package/build/assets/{IrisGrid-863425fe.js → IrisGrid-19f2f802.js} +2 -2
  17. package/build/assets/{IrisGrid-863425fe.js.map → IrisGrid-19f2f802.js.map} +1 -1
  18. package/build/assets/{IrisGridModel-0f0de3b6.js → IrisGridModel-f629988d.js} +2 -2
  19. package/build/assets/{IrisGridModel-0f0de3b6.js.map → IrisGridModel-f629988d.js.map} +1 -1
  20. package/build/assets/{IrisGridShortcuts-044dbe83.js → IrisGridShortcuts-e1cd7cf0.js} +2 -2
  21. package/build/assets/{IrisGridShortcuts-044dbe83.js.map → IrisGridShortcuts-e1cd7cf0.js.map} +1 -1
  22. package/build/assets/{IrisGridThemeProvider-edd780ab.js → IrisGridThemeProvider-7fd5cd28.js} +2 -2
  23. package/build/assets/{IrisGridThemeProvider-edd780ab.js.map → IrisGridThemeProvider-7fd5cd28.js.map} +1 -1
  24. package/build/assets/{MarkdownEditor-9c410085.js → MarkdownEditor-5277d2fb.js} +2 -2
  25. package/build/assets/{MarkdownEditor-9c410085.js.map → MarkdownEditor-5277d2fb.js.map} +1 -1
  26. package/build/assets/{MarkdownNotebook-e7a1f68f.js → MarkdownNotebook-343349a6.js} +2 -2
  27. package/build/assets/{MarkdownNotebook-e7a1f68f.js.map → MarkdownNotebook-343349a6.js.map} +1 -1
  28. package/build/assets/{MissingPartitionError-ae52bfb7.js → MissingPartitionError-cb29c35d.js} +2 -2
  29. package/build/assets/{MissingPartitionError-ae52bfb7.js.map → MissingPartitionError-cb29c35d.js.map} +1 -1
  30. package/build/assets/{StyleGuideRoot-33f2e83a.js → StyleGuideRoot-8e6203f2.js} +2 -2
  31. package/build/assets/{StyleGuideRoot-33f2e83a.js.map → StyleGuideRoot-8e6203f2.js.map} +1 -1
  32. package/build/assets/{index-c571426f.js → index-bf61b784.js} +2 -2
  33. package/build/assets/{index-c571426f.js.map → index-bf61b784.js.map} +1 -1
  34. package/build/assets/{index-5a3a02d8.js → index-d66244aa.js} +2 -2
  35. package/build/assets/{index-5a3a02d8.js.map → index-d66244aa.js.map} +1 -1
  36. package/build/assets/{index-fdfcfbf2.js → index-f01a5ccd.js} +3 -3
  37. package/build/assets/{index-fdfcfbf2.js.map → index-f01a5ccd.js.map} +1 -1
  38. package/build/assets/{useUser-3b7dda68.js → useUser-bdbb0d7f.js} +2 -2
  39. package/build/assets/{useUser-3b7dda68.js.map → useUser-bdbb0d7f.js.map} +1 -1
  40. package/build/index.html +1 -1
  41. package/package.json +30 -30
  42. package/build/assets/FontBootstrap-a8a38f55.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*=spectrum-Icon]{height:var(--dh-list-view-item-icon-compact);width:var(--dh-list-view-item-icon-compact)}.dh-list-view-wrapper-density-compact button{height:var(--dh-list-view-item-icon-compact)}.dh-list-view-wrapper-density-regular svg[class*=spectrum-Icon]{height:var(--dh-list-view-item-icon-regular);width:var(--dh-list-view-item-icon-regular)}.dh-list-view-wrapper-density-regular button{height:var(--dh-list-view-item-icon-regular)}.dh-list-view-wrapper-density-spacious svg[class*=spectrum-Icon]{height:var(--dh-list-view-item-icon-spacious);width:var(--dh-list-view-item-icon-spacious)}.dh-list-view-wrapper-density-spacious button{height: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) 13%,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{bG as $t,r as l,T as ce,I as u,bJ as kt,av as pt,K as C,ag as Pe,a7 as Dt,L as Z,bK as Mt,bL as At,bM as Rt,by as Kt,b7 as ht,aj as Ft,bN as Vt,U as Lt,M as K,V as _}from"./vendor-7e3377a7.js";import{s as _e,cG as vt,cH as je,bx as de,bA as Ut,bB as Wt,aj as mt,d as le,J as Ht,A as Bt,B as me,C as Ce,a_ as zt,bv as Gt}from"./ControlType-04a23009.js";import{b7 as gt,aW as Te,L as yt,aF as Yt,ai as qt,b8 as Xt,b9 as Zt,a8 as Jt,e as Qt}from"./index-c571426f.js";import{j as bt}from"./useUser-3b7dda68.js";import{M as Ot,D as er,g as tr}from"./GridRenderer-0beeeecb.js";import{C as rr,b as nr}from"./IrisGridModel-0f0de3b6.js";var St=$t;function V(t,e){return l.isValidElement(t)&&t.type===e}function $e(t,e,r,n,a,i,o){try{var s=t[i](o),c=s.value}catch(d){r(d);return}s.done?e(c):Promise.resolve(c).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(c){$e(i,n,a,o,s,"next",c)}function s(c){$e(i,n,a,o,s,"throw",c)}o(void 0)})}}function Ua(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 Wa(t){var e=t?.UNSAFE_getDOMNode().lastElementChild;return or(e)}function Ha(t){return wt(t,"input")}function ir(t){return wt(t,"button")}function wt(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 Ba(t){return ge.apply(this,arguments)}function ge(){return ge=ar(function*(t){var{keyedItems:e,itemHeight:r,selectedKey:n,topOffset:a}=t,i=e.findIndex(o=>{var s,c;return((s=(c=o.item)===null||c===void 0?void 0:c.key)!==null&&s!==void 0?s:o.key)===n});return i<=0?a:r*i+a}),ge.apply(this,arguments)}function or(t){return t instanceof HTMLElement?t:null}function sr(){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 lr(t,e){return l.useCallback(r=>{typeof t=="function"?t(e(r)):t.current=e(r)},[e,t])}function ur(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gt,[e,r]=l.useState(0),[n,a]=l.useState(0),[i,o]=l.useState(0),[s,c]=l.useState(0),d=l.useMemo(()=>new DOMRect(e,n,i,s),[s,i,e,n]),[f,p]=l.useState(null),h=lr(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),c(w.height)},[]);return bt(f,v),{ref:h,contentRect:d}}function cr(t,e){var r=l.useMemo(()=>ce(t,e),[t,e]);return l.useEffect(()=>()=>r.cancel(),[r]),r}function dr(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gt,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 De(t,e,r,n,a,i,o){try{var s=t[i](o),c=s.value}catch(d){r(d);return}s.done?e(c):Promise.resolve(c).then(n,a)}function fr(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(c){De(i,n,a,o,s,"next",c)}function s(c){De(i,n,a,o,s,"throw",c)}o(void 0)})}}function pr(t,e,r){var n=l.useRef(null),a=l.useRef(!1),[i,o]=l.useState(null),s=l.useCallback(fr(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 c=l.useRef(),d=l.useCallback(f=>{window.clearTimeout(c.current),f?(a.current=!0,c.current=window.setTimeout(()=>{o(t(n.current))},0)):o(null)},[t]);return{ref:n,onOpenChange:d}}var hr=["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 vr(t){return typeof t=="string"&&hr.includes(t)}function Ee(t){return t!=null&&vr(t)?"var(--dh-color-".concat(t,")"):t}var mr=["color","UNSAFE_style"];function Me(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?Me(Object(r),!0).forEach(function(n){gr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Me(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function gr(t,e,r){return e=yr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yr(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 Or(t,e){if(t==null)return{};var r=Sr(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 Sr(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=Or(t,mr),i=l.useMemo(()=>te(te({},n),{},{color:Ee(r)}),[r,n]);return u.jsx(kt,te(te({},a),{},{ref:e,UNSAFE_style:i}))});G.displayName="Text";function wr(t){var{children:e,options:r}=t;return Array.isArray(e)?u.jsx(_e,{options:r,children:u.jsx(pt,{direction:"column",alignItems:"start",children:e.filter(n=>V(n,G))})}):u.jsx(_e,{options:r,children:e})}const Pr="_spectrumActionBar_1ji6m_5",jr="_spectrumDialogComponentHeading_1ji6m_9",Er="_spectrumEllipsis_1ji6m_14",Ae={spectrumActionBar:Pr,spectrumDialogComponentHeading:jr,spectrumEllipsis:Er};function Re(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 Ke(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Re(Object(r),!0).forEach(function(n){xr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function xr(t,e,r){return e=Ir(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ir(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 X(t){var{children:e,tooltipOptions:r}=t,{checkOverflow:n,isOverflowing:a,resetIsOverflowing:i}=sr(),[o,s]=l.useState(e);if(o!==e&&(s(e),i()),l.isValidElement(e))return e;e===""?e=vt:typeof e=="boolean"?e=String(e):Array.isArray(e)&&(e=l.Children.map(e,d=>V(d,G)?l.cloneElement(d,Ke(Ke({},d.props),{},{ref:n,UNSAFE_className:C(d.props.UNSAFE_className,Ae.spectrumEllipsis)})):d)),(typeof e=="string"||typeof e=="number")&&(e=u.jsx(G,{ref:n,UNSAFE_className:Ae.spectrumEllipsis,children:e}));var c=r==null||!a?null:u.jsx(wr,{options:r,children:e});return u.jsxs(u.Fragment,{children:[e,c]})}function Fe(t,e,r,n,a,i,o){try{var s=t[i](o),c=s.value}catch(d){r(d);return}s.done?e(c):Promise.resolve(c).then(n,a)}function _r(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(c){Fe(i,n,a,o,s,"next",c)}function s(c){Fe(i,n,a,o,s,"throw",c)}o(void 0)})}}var ye="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 Cr(t){return be.apply(this,arguments)}function be(){return be=_r(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}),be.apply(this,arguments)}function xe(t){return V(t,St)}function Ie(t){return V(t,Pe)}function Tr(t){if(!Ie(t))return!1;var e=V(t.props.children,X)?t.props.children.props.children:t.props.children,r=je(e),n=r.some(a=>{var i;return V(a,G)&&((i=a.props)===null||i===void 0?void 0:i.slot)==="description"});return n}function za(t){return Array.isArray(t)?t.length===0?!0:!kr(t[0])&&"key"in t[0]:!1}function $r(t){return t.item!=null&&"items"in t.item}function kr(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||Ie(t)||xe(t)}function fe(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 ue(t){return t==null||t==="all"?t:new Set([...t].map(String))}function Ve(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?Ve(Object(r),!0).forEach(function(n){Dr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ve(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Dr(t,e,r){return e=Mr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mr(t){var e=Ar(t,"string");return typeof e=="symbol"?e:String(e)}function Ar(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 Rr(t,e){var r,n;return t=(r=t)!==null&&r!==void 0?r:"",typeof t!="string"?t:u.jsx(Dt,{slot:e,children:u.jsx(Z,{icon:(n=Te[t])!==null&&n!==void 0?n:Te.vsBlank})})}function J(t,e){var r=je(t),n=r.map(a=>{if(Ie(a)){var i;if(V(a.props.children,X))return a;var o=(i=a.key)!==null&&i!==void 0?i:a.props.textValue,s=a.props.textValue===""?ye:a.props.textValue;return l.cloneElement(a,re(re({},a.props),{},{key:o,textValue:s,children:u.jsx(X,{tooltipOptions:e,children:a.props.children})}))}if(xe(a)){var c;return l.cloneElement(a,re(re({},a.props),{},{key:(c=a.key)!==null&&c!==void 0?c:typeof a.props.title=="string"?a.props.title:void 0,children:J(a.props.children,e)}))}var d=String(a),f=d===""?ye:d;return u.jsx(Pe,{textValue:f,children:u.jsx(X,{tooltipOptions:e,children:d})},d)});return Array.isArray(t)?n:n[0]}function Le(t,e){var r;return t=(r=t)!==null&&r!==void 0?r:"",["string","boolean","number"].includes(typeof t)?u.jsx(G,{slot:e,children:t===""?vt:String(t)}):t}var Kr=["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 Fr(t,e){if(t==null)return{};var r=Vr(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 Vr(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 Lr(t){var{"aria-label":e,"aria-labelledby":r,"aria-describedby":n,"aria-details":a,marginX:i,marginY:o,width:s,height:c,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:v,flexGrow:m,flexShrink:b,flexBasis:S,justifySelf:w,alignSelf:P,order:T,gridArea:$,gridColumn:g,gridRow:I,gridColumnStart:O,gridColumnEnd:j,gridRowStart:k,gridRowEnd:W,position:Q,zIndex:y,top:x,bottom:E,start:D,end:pe,left:he,right:ve,isHidden:ee}=t,q=Fr(t,Kr);return{ariaLabelProps:{"aria-label":e,"aria-labelledby":r,"aria-describedby":n,"aria-details":a},styleProps:{marginX:i,marginY:o,width:s,height:c,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:v,flexGrow:m,flexShrink:b,flexBasis:S,justifySelf:w,alignSelf:P,order:T,gridArea:$,gridColumn:g,gridRow:I,gridColumnStart:O,gridColumnEnd:j,gridRowStart:k,gridRowEnd:W,position:Q,zIndex:y,top:x,bottom:E,start:D,end:pe,left:he,right:ve,isHidden:ee},componentProps:q}}var Ur=["defaultSelectedKeys","disabledKeys","children","selectedKeys","UNSAFE_className","onChange","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 Yr(t){var{defaultSelectedKeys:e,disabledKeys:r,children:n,selectedKeys:a,UNSAFE_className:i,onChange:o,onSelectionChange:s}=t,c=zr(t,Ur),d=l.useMemo(()=>typeof n=="function"?n:J(n,null),[n]);return u.jsx(Mt,We(We({},c),{},{UNSAFE_className:C("dh-action-group",i),defaultSelectedKeys:e,disabledKeys:r,selectedKeys:a,onSelectionChange:o??s,children:d}))}function qr(t){return null}function Xr(t){return null}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 ne(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){Zr(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 Zr(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=Qr(t,"string");return typeof e=="symbol"?e:String(e)}function Qr(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 Pt(t){var{itemIconSlot:e,showItemDescriptions:r,showItemIcons:n,tooltipOptions:a,actions:i}=t;return l.useCallback(o=>{var s,c,d,f,p,h=Y(o),v=Le((s=o.item)===null||s===void 0?void 0:s.content),m=(c=(d=o.item)===null||d===void 0?void 0:d.textValue)!==null&&c!==void 0?c:"",b=r?Le((f=o.item)===null||f===void 0?void 0:f.description,"description"):null,S=n?Rr((p=o.item)===null||p===void 0?void 0:p.icon,e):null,w=null;return V(i,qr)?w=u.jsx(Yr,ne(ne({},i.props),{},{onAction:P=>i.props.onAction(P,h),onChange:P=>{var T,$;return(T=($=i.props).onChange)===null||T===void 0?void 0:T.call($,P,h)}})):V(i,Xr)&&(w=u.jsx(un,ne(ne({},i.props),{},{onAction:P=>i.props.onAction(P,h),onOpenChange:P=>{var T,$;return(T=($=i.props).onOpenChange)===null||T===void 0?void 0:T.call($,P,h)}}))),u.jsx(Pe,{textValue:m===""?ye:m,children:u.jsxs(X,{tooltipOptions:a,children:[S,v,b,w]})},h)},[i,e,r,n,a])}function en(t){var{normalizedItems:e,defaultSelectedKeys:r,disabledKeys:n,selectedKeys:a,onChange:i}=t,o=l.useMemo(()=>ue(a),[a]),s=l.useMemo(()=>ue(r),[r]),c=l.useMemo(()=>ue(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:c,onStringSelectionChange:d}}function tn(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]),c=l.useMemo(()=>ue(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:c,onStringSelectionChange:d}}var rn=["disabledKeys","children","UNSAFE_className"];function Be(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 ze(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Be(Object(r),!0).forEach(function(n){nn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function nn(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=on(t,"string");return typeof e=="symbol"?e:String(e)}function on(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 sn(t,e){if(t==null)return{};var r=ln(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 ln(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 un(t){var{disabledKeys:e,children:r,UNSAFE_className:n}=t,a=sn(t,rn),i=l.useMemo(()=>typeof r=="function"?r:J(r,null),[r]);return u.jsx(At,ze(ze({},a),{},{UNSAFE_className:C("dh-action-menu",n),disabledKeys:e,children:i}))}var jt=Rt;var cn=["onScroll"];function Ge(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?Ge(Object(r),!0).forEach(function(n){dn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function dn(t,e,r){return e=fn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fn(t){var e=pn(t,"string");return typeof e=="symbol"?e:String(e)}function pn(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 hn(t,e){if(t==null)return{};var r=vn(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 vn(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 Et(t){var e,r,{ariaLabelProps:n,componentProps:a,styleProps:i}=Lr(t),{onScroll:o=de}=a,s=hn(a,cn),{scale:c}=jt(),d=dr(o,ke),{ref:f,contentRect:p}=ur(ke);return u.jsx(pt,ae(ae({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(c),i.UNSAFE_className),children:p.height===0?null:u.jsx(Kt,ae(ae({ref:d},n),s))}))}var mn=["children","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","UNSAFE_className","onChange","onScroll","onSelectionChange"];function Ye(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 qe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ye(Object(r),!0).forEach(function(n){gn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ye(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function gn(t,e,r){return e=yn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yn(t){var e=bn(t,"string");return typeof e=="symbol"?e:String(e)}function bn(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 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 Ga(t){var{children:e,tooltip:r=!0,selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,UNSAFE_className:o,onChange:s,onScroll:c=de,onSelectionChange:d}=t,f=On(t,mn),p=l.useMemo(()=>fe(r,"bottom"),[r]),h=l.useMemo(()=>J(e,p),[e,p]);return u.jsx(Et,qe(qe({},f),{},{UNSAFE_className:C("dh-list-view",o),selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,onScroll:c,onSelectionChange:s??d,children:h}))}var wn=["normalizedItems","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","showItemIcons","actions","UNSAFE_className","onChange","onSelectionChange"];function Xe(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 Ze(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Xe(Object(r),!0).forEach(function(n){Pn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Pn(t,e,r){return e=jn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jn(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}function Ya(t){var{normalizedItems:e,tooltip:r=!0,selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,showItemIcons:o,actions:s,UNSAFE_className:c,onChange:d,onSelectionChange:f}=t,p=xn(t,wn),h=l.useMemo(()=>fe(r,"bottom"),[r]),v=Pt({itemIconSlot:"illustration",showItemDescriptions:!1,showItemIcons:o,tooltipOptions:h,actions:s}),m="".concat(o,"-").concat(h?.placement),{selectedStringKeys:b,defaultSelectedStringKeys:S,disabledStringKeys:w,onStringSelectionChange:P}=en({normalizedItems:e,selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,onChange:d??f});return l.createElement(Et,Ze(Ze({},p),{},{UNSAFE_className:C("dh-list-view-normalized",c),key:m,items:e,selectedKeys:b,defaultSelectedKeys:S,disabledKeys:w,onSelectionChange:P}),v)}function xt(t){var{getInitialScrollPosition:e,onScroll:r,onOpenChange:n}=t,{ref:a,onOpenChange:i}=pr(ir,r,e),o=l.useCallback(s=>{i(s),n?.(s)},[n,i]);return{ref:a,onOpenChange:o}}var Nn=["children","tooltip","defaultSelectedKey","selectedKey","onChange","onOpenChange","onScroll","onSelectionChange","UNSAFE_className"];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 Qe(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){_n(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 _n(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=Tn(t,"string");return typeof e=="symbol"?e:String(e)}function Tn(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 et(t,e,r,n,a,i,o){try{var s=t[i](o),c=s.value}catch(d){r(d);return}s.done?e(c):Promise.resolve(c).then(n,a)}function $n(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(c){et(i,n,a,o,s,"next",c)}function s(c){et(i,n,a,o,s,"throw",c)}o(void 0)})}}function kn(t,e){if(t==null)return{};var r=Dn(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 Dn(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 qa(t){var{children:e,tooltip:r=!0,defaultSelectedKey:n,selectedKey:a,onChange:i,onOpenChange:o,onScroll:s=de,onSelectionChange:c,UNSAFE_className:d}=t,f=kn(t,Nn),{scale:p}=jt(),h=Ut[p],v=l.useMemo(()=>fe(r),[r]),m=a===void 0,[b,S]=l.useState(n),w=l.useMemo(()=>je(J(e,v)),[e,v]),P=l.useMemo(()=>w.some(O=>xe(O)||Tr(O)),[w]),T=l.useCallback($n(function*(){return P?null:Cr({items:w,itemHeight:h,selectedKey:m?b:a,topOffset:Wt})}),[P,m,h,a,b,w]),$=l.useCallback(O=>{var j;m&&S(O),(j=i??c)===null||j===void 0||j(O)},[m,i,c]),{ref:g,onOpenChange:I}=xt({getInitialScrollPosition:T,onScroll:s,onOpenChange:o});return u.jsx(ht,Qe(Qe({},f),{},{ref:g,UNSAFE_className:C("dh-picker",d),selectedKey:a,defaultSelectedKey:n,onSelectionChange:$,onOpenChange:I,children:w}))}var Mn=["normalizedItems","tooltip","selectedKey","defaultSelectedKey","disabledKeys","showItemIcons","UNSAFE_className","getInitialScrollPosition","onChange","onOpenChange","onScroll","onSelectionChange"];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 rt(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){An(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 An(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=Kn(t,"string");return typeof e=="symbol"?e:String(e)}function Kn(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=Vn(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 Vn(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 Xa(t){var{normalizedItems:e,tooltip:r=!0,selectedKey:n,defaultSelectedKey:a,disabledKeys:i,showItemIcons:o,UNSAFE_className:s,getInitialScrollPosition:c,onChange:d,onOpenChange:f,onScroll:p=de,onSelectionChange:h}=t,v=Fn(t,Mn),m=l.useMemo(()=>fe(r),[r]),b=Pt({itemIconSlot:"icon",showItemDescriptions:!1,showItemIcons:o,tooltipOptions:m}),S="".concat(o,"-").concat(m?.placement),{ref:w,onOpenChange:P}=xt({getInitialScrollPosition:c,onScroll:p,onOpenChange:f}),{selectedStringKey:T,defaultSelectedStringKey:$,disabledStringKeys:g,onStringSelectionChange:I}=tn({normalizedItems:e,selectedKey:n,defaultSelectedKey:a,disabledKeys:i,onChange:d??h});return l.createElement(ht,rt(rt({},v),{},{key:S,ref:w,UNSAFE_className:C("dh-picker","dh-picker-normalized",s),items:e,selectedKey:T,defaultSelectedKey:$,disabledKeys:g,onSelectionChange:I,onOpenChange:P}),O=>{if($r(O)){var j,k;return u.jsx(St,{title:(j=O.item)===null||j===void 0?void 0:j.title,items:(k=O.item)===null||k===void 0?void 0:k.items,children:b},Y(O))}return b(O)})}var Ln=["color","UNSAFE_style"];function nt(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 ie(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?nt(Object(r),!0).forEach(function(n){Un(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}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)}function Bn(t,e){if(t==null)return{};var r=zn(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 zn(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 Gn=l.forwardRef((t,e)=>{var{color:r,UNSAFE_style:n}=t,a=Bn(t,Ln),i=l.useMemo(()=>ie(ie({},n),{},{color:Ee(r)}),[r,n]);return u.jsx(Ft,ie(ie({},a),{},{ref:e,UNSAFE_style:i}))});Gn.displayName="Heading";var Yn=["backgroundColor","UNSAFE_style"];function at(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 oe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?at(Object(r),!0).forEach(function(n){qn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qn(t,e,r){return e=Xn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xn(t){var e=Zn(t,"string");return typeof e=="symbol"?e:String(e)}function Zn(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 Jn(t,e){if(t==null)return{};var r=Qn(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 Qn(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 ea=l.forwardRef((t,e)=>{var{backgroundColor:r,UNSAFE_style:n}=t,a=Jn(t,Yn),i=l.useMemo(()=>oe(oe({},n),{},{backgroundColor:Ee(r)}),[r,n]);return u.jsx(Vt,oe(oe({},a),{},{ref:e,UNSAFE_style:i}))});ea.displayName="View";function it(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 ta(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?it(Object(r),!0).forEach(function(n){F(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):it(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function F(t,e,r){return e=ra(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ra(t){var e=na(t,"string");return typeof e=="symbol"?e:String(e)}function na(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 aa=100,Oe;(function(t){t.UP="UP",t.DOWN="DOWN"})(Oe||(Oe={}));class R extends l.Component{constructor(e){super(e),F(this,"popper",void 0),F(this,"cbContainer",void 0),F(this,"menuContainer",void 0),F(this,"input",void 0),F(this,"getCachedFilteredOptions",Lt((n,a)=>n.filter(i=>i.title.toLowerCase().indexOf(a.toLowerCase())>=0)));var{popperOptions:r}=this.props;r=ta({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=ce(this.updateInputValue,aa),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=K.createRef(),this.cbContainer=K.createRef(),this.menuContainer=K.createRef(),this.input=K.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 u.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?u.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 u.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:c,menuIsOpen:d,popperOptions:f,invalid:p}=this.state;return u.jsxs("div",{className:"aci-container",ref:this.cbContainer,children:[u.jsx("input",{value:c||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}),u.jsx(mt,{ref:this.popper,options:f,className:C("aci-options-popper interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})}}F(R,"propTypes",{options:_.arrayOf(_.shape({title:_.string.isRequired,value:_.string.isRequired})).isRequired,popperOptions:_.shape({}),onChange:_.func,inputPlaceholder:_.string,disabled:_.bool,className:_.string,defaultTitle:_.string,spellCheck:_.bool,onEnter:_.func,noMatchText:_.string,"data-testid":_.string});F(R,"defaultProps",{onChange(){},inputPlaceholder:"",disabled:!1,className:"",defaultTitle:"",popperOptions:null,spellCheck:!0,onEnter(){},noMatchText:"No matching items found","data-testid":void 0});F(R,"MENU_NAVIGATION_DIRECTION",Oe);const Za=R;function It(t){var{className:e="",value:r,onChange:n,spellCheck:a=!1,placeholder:i="",disabled:o=!1,delimiter:s="",id:c="","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(j=>j).join(`
1
+ import{bG as $t,r as l,T as ce,I as u,bJ as kt,av as pt,K as C,ag as Pe,a7 as Dt,L as Z,bK as Mt,bL as At,bM as Rt,by as Kt,b7 as ht,aj as Ft,bN as Vt,U as Lt,M as K,V as _}from"./vendor-7e3377a7.js";import{s as _e,cG as vt,cH as je,bx as de,bA as Ut,bB as Wt,aj as mt,d as le,J as Ht,A as Bt,B as me,C as Ce,a_ as zt,bv as Gt}from"./ControlType-55424d5c.js";import{b7 as gt,aW as Te,L as yt,aF as Yt,ai as qt,b8 as Xt,b9 as Zt,a8 as Jt,e as Qt}from"./index-bf61b784.js";import{j as bt}from"./useUser-bdbb0d7f.js";import{M as Ot,D as er,g as tr}from"./GridRenderer-25870dc7.js";import{C as rr,b as nr}from"./IrisGridModel-f629988d.js";var St=$t;function V(t,e){return l.isValidElement(t)&&t.type===e}function $e(t,e,r,n,a,i,o){try{var s=t[i](o),c=s.value}catch(d){r(d);return}s.done?e(c):Promise.resolve(c).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(c){$e(i,n,a,o,s,"next",c)}function s(c){$e(i,n,a,o,s,"throw",c)}o(void 0)})}}function Ua(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 Wa(t){var e=t?.UNSAFE_getDOMNode().lastElementChild;return or(e)}function Ha(t){return wt(t,"input")}function ir(t){return wt(t,"button")}function wt(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 Ba(t){return ge.apply(this,arguments)}function ge(){return ge=ar(function*(t){var{keyedItems:e,itemHeight:r,selectedKey:n,topOffset:a}=t,i=e.findIndex(o=>{var s,c;return((s=(c=o.item)===null||c===void 0?void 0:c.key)!==null&&s!==void 0?s:o.key)===n});return i<=0?a:r*i+a}),ge.apply(this,arguments)}function or(t){return t instanceof HTMLElement?t:null}function sr(){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 lr(t,e){return l.useCallback(r=>{typeof t=="function"?t(e(r)):t.current=e(r)},[e,t])}function ur(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gt,[e,r]=l.useState(0),[n,a]=l.useState(0),[i,o]=l.useState(0),[s,c]=l.useState(0),d=l.useMemo(()=>new DOMRect(e,n,i,s),[s,i,e,n]),[f,p]=l.useState(null),h=lr(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),c(w.height)},[]);return bt(f,v),{ref:h,contentRect:d}}function cr(t,e){var r=l.useMemo(()=>ce(t,e),[t,e]);return l.useEffect(()=>()=>r.cancel(),[r]),r}function dr(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gt,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 De(t,e,r,n,a,i,o){try{var s=t[i](o),c=s.value}catch(d){r(d);return}s.done?e(c):Promise.resolve(c).then(n,a)}function fr(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(c){De(i,n,a,o,s,"next",c)}function s(c){De(i,n,a,o,s,"throw",c)}o(void 0)})}}function pr(t,e,r){var n=l.useRef(null),a=l.useRef(!1),[i,o]=l.useState(null),s=l.useCallback(fr(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 c=l.useRef(),d=l.useCallback(f=>{window.clearTimeout(c.current),f?(a.current=!0,c.current=window.setTimeout(()=>{o(t(n.current))},0)):o(null)},[t]);return{ref:n,onOpenChange:d}}var hr=["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 vr(t){return typeof t=="string"&&hr.includes(t)}function Ee(t){return t!=null&&vr(t)?"var(--dh-color-".concat(t,")"):t}var mr=["color","UNSAFE_style"];function Me(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?Me(Object(r),!0).forEach(function(n){gr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Me(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function gr(t,e,r){return e=yr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yr(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 Or(t,e){if(t==null)return{};var r=Sr(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 Sr(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=Or(t,mr),i=l.useMemo(()=>te(te({},n),{},{color:Ee(r)}),[r,n]);return u.jsx(kt,te(te({},a),{},{ref:e,UNSAFE_style:i}))});G.displayName="Text";function wr(t){var{children:e,options:r}=t;return Array.isArray(e)?u.jsx(_e,{options:r,children:u.jsx(pt,{direction:"column",alignItems:"start",children:e.filter(n=>V(n,G))})}):u.jsx(_e,{options:r,children:e})}const Pr="_spectrumActionBar_1ji6m_5",jr="_spectrumDialogComponentHeading_1ji6m_9",Er="_spectrumEllipsis_1ji6m_14",Ae={spectrumActionBar:Pr,spectrumDialogComponentHeading:jr,spectrumEllipsis:Er};function Re(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 Ke(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Re(Object(r),!0).forEach(function(n){xr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function xr(t,e,r){return e=Ir(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ir(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 X(t){var{children:e,tooltipOptions:r}=t,{checkOverflow:n,isOverflowing:a,resetIsOverflowing:i}=sr(),[o,s]=l.useState(e);if(o!==e&&(s(e),i()),l.isValidElement(e))return e;e===""?e=vt:typeof e=="boolean"?e=String(e):Array.isArray(e)&&(e=l.Children.map(e,d=>V(d,G)?l.cloneElement(d,Ke(Ke({},d.props),{},{ref:n,UNSAFE_className:C(d.props.UNSAFE_className,Ae.spectrumEllipsis)})):d)),(typeof e=="string"||typeof e=="number")&&(e=u.jsx(G,{ref:n,UNSAFE_className:Ae.spectrumEllipsis,children:e}));var c=r==null||!a?null:u.jsx(wr,{options:r,children:e});return u.jsxs(u.Fragment,{children:[e,c]})}function Fe(t,e,r,n,a,i,o){try{var s=t[i](o),c=s.value}catch(d){r(d);return}s.done?e(c):Promise.resolve(c).then(n,a)}function _r(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(c){Fe(i,n,a,o,s,"next",c)}function s(c){Fe(i,n,a,o,s,"throw",c)}o(void 0)})}}var ye="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 Cr(t){return be.apply(this,arguments)}function be(){return be=_r(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}),be.apply(this,arguments)}function xe(t){return V(t,St)}function Ie(t){return V(t,Pe)}function Tr(t){if(!Ie(t))return!1;var e=V(t.props.children,X)?t.props.children.props.children:t.props.children,r=je(e),n=r.some(a=>{var i;return V(a,G)&&((i=a.props)===null||i===void 0?void 0:i.slot)==="description"});return n}function za(t){return Array.isArray(t)?t.length===0?!0:!kr(t[0])&&"key"in t[0]:!1}function $r(t){return t.item!=null&&"items"in t.item}function kr(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||Ie(t)||xe(t)}function fe(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 ue(t){return t==null||t==="all"?t:new Set([...t].map(String))}function Ve(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?Ve(Object(r),!0).forEach(function(n){Dr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ve(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Dr(t,e,r){return e=Mr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mr(t){var e=Ar(t,"string");return typeof e=="symbol"?e:String(e)}function Ar(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 Rr(t,e){var r,n;return t=(r=t)!==null&&r!==void 0?r:"",typeof t!="string"?t:u.jsx(Dt,{slot:e,children:u.jsx(Z,{icon:(n=Te[t])!==null&&n!==void 0?n:Te.vsBlank})})}function J(t,e){var r=je(t),n=r.map(a=>{if(Ie(a)){var i;if(V(a.props.children,X))return a;var o=(i=a.key)!==null&&i!==void 0?i:a.props.textValue,s=a.props.textValue===""?ye:a.props.textValue;return l.cloneElement(a,re(re({},a.props),{},{key:o,textValue:s,children:u.jsx(X,{tooltipOptions:e,children:a.props.children})}))}if(xe(a)){var c;return l.cloneElement(a,re(re({},a.props),{},{key:(c=a.key)!==null&&c!==void 0?c:typeof a.props.title=="string"?a.props.title:void 0,children:J(a.props.children,e)}))}var d=String(a),f=d===""?ye:d;return u.jsx(Pe,{textValue:f,children:u.jsx(X,{tooltipOptions:e,children:d})},d)});return Array.isArray(t)?n:n[0]}function Le(t,e){var r;return t=(r=t)!==null&&r!==void 0?r:"",["string","boolean","number"].includes(typeof t)?u.jsx(G,{slot:e,children:t===""?vt:String(t)}):t}var Kr=["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 Fr(t,e){if(t==null)return{};var r=Vr(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 Vr(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 Lr(t){var{"aria-label":e,"aria-labelledby":r,"aria-describedby":n,"aria-details":a,marginX:i,marginY:o,width:s,height:c,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:v,flexGrow:m,flexShrink:b,flexBasis:S,justifySelf:w,alignSelf:P,order:T,gridArea:$,gridColumn:g,gridRow:I,gridColumnStart:O,gridColumnEnd:j,gridRowStart:k,gridRowEnd:W,position:Q,zIndex:y,top:x,bottom:E,start:D,end:pe,left:he,right:ve,isHidden:ee}=t,q=Fr(t,Kr);return{ariaLabelProps:{"aria-label":e,"aria-labelledby":r,"aria-describedby":n,"aria-details":a},styleProps:{marginX:i,marginY:o,width:s,height:c,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:v,flexGrow:m,flexShrink:b,flexBasis:S,justifySelf:w,alignSelf:P,order:T,gridArea:$,gridColumn:g,gridRow:I,gridColumnStart:O,gridColumnEnd:j,gridRowStart:k,gridRowEnd:W,position:Q,zIndex:y,top:x,bottom:E,start:D,end:pe,left:he,right:ve,isHidden:ee},componentProps:q}}var Ur=["defaultSelectedKeys","disabledKeys","children","selectedKeys","UNSAFE_className","onChange","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 Yr(t){var{defaultSelectedKeys:e,disabledKeys:r,children:n,selectedKeys:a,UNSAFE_className:i,onChange:o,onSelectionChange:s}=t,c=zr(t,Ur),d=l.useMemo(()=>typeof n=="function"?n:J(n,null),[n]);return u.jsx(Mt,We(We({},c),{},{UNSAFE_className:C("dh-action-group",i),defaultSelectedKeys:e,disabledKeys:r,selectedKeys:a,onSelectionChange:o??s,children:d}))}function qr(t){return null}function Xr(t){return null}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 ne(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){Zr(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 Zr(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=Qr(t,"string");return typeof e=="symbol"?e:String(e)}function Qr(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 Pt(t){var{itemIconSlot:e,showItemDescriptions:r,showItemIcons:n,tooltipOptions:a,actions:i}=t;return l.useCallback(o=>{var s,c,d,f,p,h=Y(o),v=Le((s=o.item)===null||s===void 0?void 0:s.content),m=(c=(d=o.item)===null||d===void 0?void 0:d.textValue)!==null&&c!==void 0?c:"",b=r?Le((f=o.item)===null||f===void 0?void 0:f.description,"description"):null,S=n?Rr((p=o.item)===null||p===void 0?void 0:p.icon,e):null,w=null;return V(i,qr)?w=u.jsx(Yr,ne(ne({},i.props),{},{onAction:P=>i.props.onAction(P,h),onChange:P=>{var T,$;return(T=($=i.props).onChange)===null||T===void 0?void 0:T.call($,P,h)}})):V(i,Xr)&&(w=u.jsx(un,ne(ne({},i.props),{},{onAction:P=>i.props.onAction(P,h),onOpenChange:P=>{var T,$;return(T=($=i.props).onOpenChange)===null||T===void 0?void 0:T.call($,P,h)}}))),u.jsx(Pe,{textValue:m===""?ye:m,children:u.jsxs(X,{tooltipOptions:a,children:[S,v,b,w]})},h)},[i,e,r,n,a])}function en(t){var{normalizedItems:e,defaultSelectedKeys:r,disabledKeys:n,selectedKeys:a,onChange:i}=t,o=l.useMemo(()=>ue(a),[a]),s=l.useMemo(()=>ue(r),[r]),c=l.useMemo(()=>ue(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:c,onStringSelectionChange:d}}function tn(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]),c=l.useMemo(()=>ue(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:c,onStringSelectionChange:d}}var rn=["disabledKeys","children","UNSAFE_className"];function Be(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 ze(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Be(Object(r),!0).forEach(function(n){nn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function nn(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=on(t,"string");return typeof e=="symbol"?e:String(e)}function on(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 sn(t,e){if(t==null)return{};var r=ln(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 ln(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 un(t){var{disabledKeys:e,children:r,UNSAFE_className:n}=t,a=sn(t,rn),i=l.useMemo(()=>typeof r=="function"?r:J(r,null),[r]);return u.jsx(At,ze(ze({},a),{},{UNSAFE_className:C("dh-action-menu",n),disabledKeys:e,children:i}))}var jt=Rt;var cn=["onScroll"];function Ge(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?Ge(Object(r),!0).forEach(function(n){dn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function dn(t,e,r){return e=fn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fn(t){var e=pn(t,"string");return typeof e=="symbol"?e:String(e)}function pn(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 hn(t,e){if(t==null)return{};var r=vn(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 vn(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 Et(t){var e,r,{ariaLabelProps:n,componentProps:a,styleProps:i}=Lr(t),{onScroll:o=de}=a,s=hn(a,cn),{scale:c}=jt(),d=dr(o,ke),{ref:f,contentRect:p}=ur(ke);return u.jsx(pt,ae(ae({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(c),i.UNSAFE_className),children:p.height===0?null:u.jsx(Kt,ae(ae({ref:d},n),s))}))}var mn=["children","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","UNSAFE_className","onChange","onScroll","onSelectionChange"];function Ye(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 qe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ye(Object(r),!0).forEach(function(n){gn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ye(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function gn(t,e,r){return e=yn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yn(t){var e=bn(t,"string");return typeof e=="symbol"?e:String(e)}function bn(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 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 Ga(t){var{children:e,tooltip:r=!0,selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,UNSAFE_className:o,onChange:s,onScroll:c=de,onSelectionChange:d}=t,f=On(t,mn),p=l.useMemo(()=>fe(r,"bottom"),[r]),h=l.useMemo(()=>J(e,p),[e,p]);return u.jsx(Et,qe(qe({},f),{},{UNSAFE_className:C("dh-list-view",o),selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,onScroll:c,onSelectionChange:s??d,children:h}))}var wn=["normalizedItems","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","showItemIcons","actions","UNSAFE_className","onChange","onSelectionChange"];function Xe(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 Ze(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Xe(Object(r),!0).forEach(function(n){Pn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Pn(t,e,r){return e=jn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jn(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}function Ya(t){var{normalizedItems:e,tooltip:r=!0,selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,showItemIcons:o,actions:s,UNSAFE_className:c,onChange:d,onSelectionChange:f}=t,p=xn(t,wn),h=l.useMemo(()=>fe(r,"bottom"),[r]),v=Pt({itemIconSlot:"illustration",showItemDescriptions:!1,showItemIcons:o,tooltipOptions:h,actions:s}),m="".concat(o,"-").concat(h?.placement),{selectedStringKeys:b,defaultSelectedStringKeys:S,disabledStringKeys:w,onStringSelectionChange:P}=en({normalizedItems:e,selectedKeys:n,defaultSelectedKeys:a,disabledKeys:i,onChange:d??f});return l.createElement(Et,Ze(Ze({},p),{},{UNSAFE_className:C("dh-list-view-normalized",c),key:m,items:e,selectedKeys:b,defaultSelectedKeys:S,disabledKeys:w,onSelectionChange:P}),v)}function xt(t){var{getInitialScrollPosition:e,onScroll:r,onOpenChange:n}=t,{ref:a,onOpenChange:i}=pr(ir,r,e),o=l.useCallback(s=>{i(s),n?.(s)},[n,i]);return{ref:a,onOpenChange:o}}var Nn=["children","tooltip","defaultSelectedKey","selectedKey","onChange","onOpenChange","onScroll","onSelectionChange","UNSAFE_className"];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 Qe(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){_n(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 _n(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=Tn(t,"string");return typeof e=="symbol"?e:String(e)}function Tn(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 et(t,e,r,n,a,i,o){try{var s=t[i](o),c=s.value}catch(d){r(d);return}s.done?e(c):Promise.resolve(c).then(n,a)}function $n(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(c){et(i,n,a,o,s,"next",c)}function s(c){et(i,n,a,o,s,"throw",c)}o(void 0)})}}function kn(t,e){if(t==null)return{};var r=Dn(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 Dn(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 qa(t){var{children:e,tooltip:r=!0,defaultSelectedKey:n,selectedKey:a,onChange:i,onOpenChange:o,onScroll:s=de,onSelectionChange:c,UNSAFE_className:d}=t,f=kn(t,Nn),{scale:p}=jt(),h=Ut[p],v=l.useMemo(()=>fe(r),[r]),m=a===void 0,[b,S]=l.useState(n),w=l.useMemo(()=>je(J(e,v)),[e,v]),P=l.useMemo(()=>w.some(O=>xe(O)||Tr(O)),[w]),T=l.useCallback($n(function*(){return P?null:Cr({items:w,itemHeight:h,selectedKey:m?b:a,topOffset:Wt})}),[P,m,h,a,b,w]),$=l.useCallback(O=>{var j;m&&S(O),(j=i??c)===null||j===void 0||j(O)},[m,i,c]),{ref:g,onOpenChange:I}=xt({getInitialScrollPosition:T,onScroll:s,onOpenChange:o});return u.jsx(ht,Qe(Qe({},f),{},{ref:g,UNSAFE_className:C("dh-picker",d),selectedKey:a,defaultSelectedKey:n,onSelectionChange:$,onOpenChange:I,children:w}))}var Mn=["normalizedItems","tooltip","selectedKey","defaultSelectedKey","disabledKeys","showItemIcons","UNSAFE_className","getInitialScrollPosition","onChange","onOpenChange","onScroll","onSelectionChange"];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 rt(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){An(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 An(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=Kn(t,"string");return typeof e=="symbol"?e:String(e)}function Kn(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=Vn(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 Vn(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 Xa(t){var{normalizedItems:e,tooltip:r=!0,selectedKey:n,defaultSelectedKey:a,disabledKeys:i,showItemIcons:o,UNSAFE_className:s,getInitialScrollPosition:c,onChange:d,onOpenChange:f,onScroll:p=de,onSelectionChange:h}=t,v=Fn(t,Mn),m=l.useMemo(()=>fe(r),[r]),b=Pt({itemIconSlot:"icon",showItemDescriptions:!1,showItemIcons:o,tooltipOptions:m}),S="".concat(o,"-").concat(m?.placement),{ref:w,onOpenChange:P}=xt({getInitialScrollPosition:c,onScroll:p,onOpenChange:f}),{selectedStringKey:T,defaultSelectedStringKey:$,disabledStringKeys:g,onStringSelectionChange:I}=tn({normalizedItems:e,selectedKey:n,defaultSelectedKey:a,disabledKeys:i,onChange:d??h});return l.createElement(ht,rt(rt({},v),{},{key:S,ref:w,UNSAFE_className:C("dh-picker","dh-picker-normalized",s),items:e,selectedKey:T,defaultSelectedKey:$,disabledKeys:g,onSelectionChange:I,onOpenChange:P}),O=>{if($r(O)){var j,k;return u.jsx(St,{title:(j=O.item)===null||j===void 0?void 0:j.title,items:(k=O.item)===null||k===void 0?void 0:k.items,children:b},Y(O))}return b(O)})}var Ln=["color","UNSAFE_style"];function nt(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 ie(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?nt(Object(r),!0).forEach(function(n){Un(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}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)}function Bn(t,e){if(t==null)return{};var r=zn(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 zn(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 Gn=l.forwardRef((t,e)=>{var{color:r,UNSAFE_style:n}=t,a=Bn(t,Ln),i=l.useMemo(()=>ie(ie({},n),{},{color:Ee(r)}),[r,n]);return u.jsx(Ft,ie(ie({},a),{},{ref:e,UNSAFE_style:i}))});Gn.displayName="Heading";var Yn=["backgroundColor","UNSAFE_style"];function at(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 oe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?at(Object(r),!0).forEach(function(n){qn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qn(t,e,r){return e=Xn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xn(t){var e=Zn(t,"string");return typeof e=="symbol"?e:String(e)}function Zn(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 Jn(t,e){if(t==null)return{};var r=Qn(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 Qn(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 ea=l.forwardRef((t,e)=>{var{backgroundColor:r,UNSAFE_style:n}=t,a=Jn(t,Yn),i=l.useMemo(()=>oe(oe({},n),{},{backgroundColor:Ee(r)}),[r,n]);return u.jsx(Vt,oe(oe({},a),{},{ref:e,UNSAFE_style:i}))});ea.displayName="View";function it(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 ta(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?it(Object(r),!0).forEach(function(n){F(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):it(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function F(t,e,r){return e=ra(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ra(t){var e=na(t,"string");return typeof e=="symbol"?e:String(e)}function na(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 aa=100,Oe;(function(t){t.UP="UP",t.DOWN="DOWN"})(Oe||(Oe={}));class R extends l.Component{constructor(e){super(e),F(this,"popper",void 0),F(this,"cbContainer",void 0),F(this,"menuContainer",void 0),F(this,"input",void 0),F(this,"getCachedFilteredOptions",Lt((n,a)=>n.filter(i=>i.title.toLowerCase().indexOf(a.toLowerCase())>=0)));var{popperOptions:r}=this.props;r=ta({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=ce(this.updateInputValue,aa),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=K.createRef(),this.cbContainer=K.createRef(),this.menuContainer=K.createRef(),this.input=K.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 u.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?u.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 u.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:c,menuIsOpen:d,popperOptions:f,invalid:p}=this.state;return u.jsxs("div",{className:"aci-container",ref:this.cbContainer,children:[u.jsx("input",{value:c||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}),u.jsx(mt,{ref:this.popper,options:f,className:C("aci-options-popper interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})}}F(R,"propTypes",{options:_.arrayOf(_.shape({title:_.string.isRequired,value:_.string.isRequired})).isRequired,popperOptions:_.shape({}),onChange:_.func,inputPlaceholder:_.string,disabled:_.bool,className:_.string,defaultTitle:_.string,spellCheck:_.bool,onEnter:_.func,noMatchText:_.string,"data-testid":_.string});F(R,"defaultProps",{onChange(){},inputPlaceholder:"",disabled:!1,className:"",defaultTitle:"",popperOptions:null,spellCheck:!0,onEnter(){},noMatchText:"No matching items found","data-testid":void 0});F(R,"MENU_NAVIGATION_DIRECTION",Oe);const Za=R;function It(t){var{className:e="",value:r,onChange:n,spellCheck:a=!1,placeholder:i="",disabled:o=!1,delimiter:s="",id:c="","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(j=>j).join(`
2
2
  `.concat(s.trim()))}function S(O){return O.split(`
3
3
  `).map(j=>j.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 P(O){var j=O.target.value;h&&(s&&(j=b(j)),v(!1)),p(j),n(j)}function T(){m.current&&(s&&(p(b(f)),w()),m.current.scrollLeft=0)}function $(){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]),u.jsx("textarea",{ref:m,id:c,className:C(e,"auto-resize-textarea form-control"),placeholder:i,value:f,rows:1,onChange:P,onFocus:T,onMouseDown:$,onBlur:g,onPaste:I,spellCheck:a,disabled:o,"data-testid":d})}It.propTypes={value:_.string.isRequired,onChange:_.func.isRequired,className:_.string,placeholder:_.string,spellCheck:_.bool,disabled:_.bool,delimiter:_.string,id:_.string,"data-testid":_.string};It.defaultProps={className:"",id:"",placeholder:"",disabled:!1,spellCheck:!1,delimiter:"","data-testid":void 0};var ia=yt.module("TimeInput"),oa="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]",sa=["00:00:00","12:34:56","23:59:59"];function ot(t){return t!=null?"".concat(t.substring(0,8).replace(/\u2007/g,"0")).concat("00:00:00".substring(t.length)):t}var Nt=K.forwardRef((t,e)=>{var{allowValueWrapping:r=!0,className:n="",onChange:a=()=>!1,value:i=0,onFocus:o=()=>!1,onBlur:s=()=>!1,onSelect:c=()=>!1,"data-testid":d}=t,[f,p]=l.useState(le.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(le.formatTime(i)),h.current=i)},[h,i]);function S(g,I,O){var j=g.selectionStart===0?24:60,k=parseInt(O,10)-I;return Number.isNaN(k)?k=0:r?k=(k%j+j)%j:k=Math.min(Math.max(0,k),j-1),"".concat(k).padStart(2,"0")}function w(g,I,O,j,k){return j===0&&k===2&&I===1&&parseInt(O,10)>1?"0".concat(O).concat(g.substring(2)):er(g,I,O)}var P=l.useCallback(g=>{ia.debug("handleChange",g),p(g),h.current=le.parseTime(ot(g)),a(h.current)},[a]),T=l.useCallback(()=>{var g=ot(f);g!==f&&p(g),s()},[f,s]),$=l.useCallback(g=>{m(g),c(g)},[c]);return u.jsx(Ot,{ref:b,className:n,example:sa,getNextSegmentValue:S,getPreferredReplacementString:w,onChange:P,onSelect:$,pattern:oa,selection:v,value:f,onFocus:o,onBlur:T,"data-testid":d})});Nt.defaultProps={allowValueWrapping:!0,className:"",onChange:()=>!1,onSelect:()=>!1,value:0,onFocus:()=>!1,onBlur:()=>!1,"data-testid":void 0};const Se=Nt;function st(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 la(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?st(Object(r),!0).forEach(function(n){U(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):st(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function U(t,e,r){return e=ua(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ua(t){var e=ca(t,"string");return typeof e=="symbol"?e:String(e)}function ca(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 lt=-1,we;(function(t){t.UP="UP",t.DOWN="DOWN"})(we||(we={}));class M extends l.Component{constructor(e){super(e),U(this,"csContainer",void 0),U(this,"menuContainer",void 0),U(this,"button",void 0),U(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=K.createRef(),this.menuContainer=K.createRef(),this.button=K.createRef(),this.input=K.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 le.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(M.MENU_NAVIGATION_DIRECTION.UP):this.handleMenuNavigation(M.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"ArrowUp":this.handleMenuNavigation(M.MENU_NAVIGATION_DIRECTION.UP),e.stopPropagation(),e.preventDefault();break;case"ArrowDown":this.handleMenuNavigation(M.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 M.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 M.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===lt){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>M.DROP_DOWN_MENU_HEIGHT?n.scrollTop=a.offsetTop-M.DROP_DOWN_MENU_HEIGHT:(a instanceof HTMLElement&&a.offsetTop<0||e===0)&&(n.scrollTop=0)}}renderMenuElement(){var{inputWidth:e}=this.state;return u.jsx("div",{className:"cs-menu-container",ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,onClick:r=>{r.stopPropagation()},style:{width:e},children:u.jsx("div",{className:"cs-options-container",children:u.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,c=!1,d=[],f=0;f<e.length;f+=1){var p=e[f],h="option-".concat(f,"-").concat(p.value);c=c||p.value===r,d.push(u.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&&u.jsx(Z,{icon:n,className:"mr-2"}),p.value!==r&&u.jsx("span",{className:"mr-4"}),p.title]},h))}return d.push(u.jsx("hr",{className:"cs-divider"},"option-divider")),d.push(u.jsxs("button",{type:"button",value:lt,className:C("cs-option-btn",{"keyboard-active":s}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[!c&&r!==null?u.jsx(Z,{icon:n,className:"mr-2"}):u.jsx("span",{className:"mr-4"}),a]},"option-custom-label")),d.push(u.jsxs("div",{className:"cs-custom-container",children:[u.jsx("span",{className:"mr-2"}),u.jsx(Se,{ref:this.input,onChange:this.handleCustomInput,value:o,onFocus:()=>this.setState({inputFocused:!0}),onBlur:()=>this.setState({inputFocused:!1})},"option-input"),u.jsx("span",{className:"ml-2"})]},"cs-custom-container")),d.push(u.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=la({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},o),u.jsx("div",{className:"input-group cs-container context-menu",ref:this.csContainer,"data-testid":a,children:u.jsx("div",{className:C("input-group-append cs-dropdown",{"cs-dropdown-invalid":r}),children:u.jsxs("button",{type:"button",className:C("btn cs-btn form-control",{"cs-btn-invalid":r}),ref:this.button,onClick:this.toggleMenu,disabled:e,children:[u.jsx("span",{className:C({"text-muted":n===null}),children:this.getSelectedText()}),u.jsx("span",{className:"cs-caret"}),u.jsx(Ht,{isShown:i,actions:{menuElement:this.renderMenuElement()},popperOptions:o,popperClassName:"CustomTimeSelect",onMenuOpened:this.handleMenuOpened,onMenuClosed:this.handleMenuExited,menuStyle:{maxWidth:"100rem"}})]})})})}}U(M,"MENU_NAVIGATION_DIRECTION",we);U(M,"DROP_DOWN_MENU_HEIGHT",125);U(M,"defaultProps",{onChange(){},value:null,disabled:!1,popperOptions:{},icon:Yt,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 Ja=M;var da=yt.module("DateInput"),fa="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",pa=["2000-01-01","2022-12-31"],ha="YYYY-MM-DD",_t=K.forwardRef((t,e)=>{var{className:r="",onChange:n=()=>{},defaultValue:a="",onFocus:i=()=>{},onBlur:o=()=>{},"data-testid":s}=t,[c,d]=l.useState(a),[f,p]=l.useState(),h=l.useCallback(v=>{da.debug("handleChange",v),d(v),n(v)},[n]);return u.jsx("div",{className:"d-flex flex-row align-items-center",children:u.jsx(Ot,{ref:e,className:C(r),example:pa,getNextSegmentValue:tr,onChange:h,onSelect:p,pattern:fa,placeholder:ha,selection:f,value:c,onFocus:i,onBlur:o,"data-testid":s})})});_t.displayName="DateInput";const Qa=_t;function ei(t){var{message:e,isExpanded:r=!1,type:n="Error"}=t,[a,i]=l.useState(!1),[o,s]=l.useState(!1),c=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=cr(f,100);return bt(c.current,p),l.useLayoutEffect(p,[p]),u.jsxs("div",{className:C("error-view",{expanded:o||r}),ref:c,children:[u.jsxs("div",{className:"error-view-header",children:[u.jsxs("div",{className:"error-view-header-text",children:[u.jsx(Z,{icon:qt}),u.jsx("span",{children:n})]}),u.jsxs("div",{className:"error-view-buttons",children:[u.jsx(Bt,{kind:"danger",className:"error-view-copy-button",tooltip:"Copy exception contents",copy:"".concat(n,": ").concat(e).trim()}),(a||o)&&!r&&u.jsx(me,{kind:"danger",className:"error-view-expand-button",onClick:()=>{s(!o)},icon:o?Xt:Zt,children:o?"Show Less":"Show More"})]})]}),u.jsx("pre",{className:"error-view-text",ref:d,children:e})]})}function va(t,e,r){return e=ma(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ma(t){var e=ga(t,"string");return typeof e=="symbol"?e:String(e)}function ga(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 c=B.isParentSelected(e,i),d=c==null||!c;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((c,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 u.jsxs("div",{className:"hcm-menu-container",children:[Array.from(e.entries()).map(n=>{var[a,i]=n;return u.jsxs("div",{children:[u.jsx(Ce,{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,c]=o;return u.jsx(Ce,{className:"hcm-child",checked:c,onChange:()=>this.toggleValueFor(a,s),children:s},s)})]},a)}),u.jsx(me,{kind:"ghost",onClick:this.selectAll,"data-testid":r!==void 0?"".concat(r,"-btn-select-all"):void 0,children:"Select All"}),u.jsx(me,{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 u.jsxs("button",{type:"button",className:C("btn hcm-btn",r),onClick:this.toggleMenu,id:a,"data-testid":i,children:[u.jsxs("span",{children:[n&&u.jsx(Z,{icon:n,className:"hcm-icon mr-1"}),e]}),u.jsx("span",{className:"cs-caret"}),u.jsx(mt,{options:{placement:"bottom"},isShown:o,onExited:()=>{this.setState({menuIsOpen:!1})},closeOnBlur:!0,interactive:!0,children:this.renderMenuElement()})]})}}va(B,"defaultProps",{className:"",icon:null,id:"","data-testid":void 0});const ti=B;var ya=.025,ba=.9,Oa=.1,Sa=.618,ut=80,H={SIZE:8,DOT_SIZE:2},L=18,wa=250,Pa=60*1e3,ja={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 Ea(){return Jt(ja)}var xa=K.memo(()=>{var{activeThemes:t}=zt(),e=l.useMemo(Ea,[t]),r=l.useRef(null),n=l.useRef(null),[a,i]=l.useState(!1),o=window.devicePixelRatio,s,c,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 D=E.getContext("2d");return D!=null&&(D.fillStyle=x,D.fillRect(0,0,H.DOT_SIZE,H.DOT_SIZE),D.fillStyle=y,D.fillRect(0,0,H.SIZE,H.SIZE)),D?.createPattern(E,"repeat")}function S(y){var x=Math.random()-.5,E=ya*x;return y<Oa?E=Math.abs(E):y>ba&&(E=-Math.abs(E)),y+E}function w(){for(var y=[],x=Sa,E=0;E<d+L;E+=1)x=S(x),y.push(x);return y}function P(){for(;v.length>=d+L;)v.pop();for(;v.length<d+L;)v.push(S(v[v.length-1]))}function T(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+L,f*y[y.length-1]),x.lineTo(d+L,f+1),x.closePath()}function $(y){y.beginPath();for(var x=1;x<d;x+=ut)y.moveTo(x,0),y.lineTo(x,f);for(var E=1;E<f;E+=ut)y.moveTo(0,E),y.lineTo(d,E)}function g(y){var x,E,D;h=(x=h)!==null&&x!==void 0?x:y;var{background:pe,foregroundStroke:he,gridColor:ve}=e;Qt(s),s.fillStyle=pe,s.fillRect(0,0,d,f),$(s),s.lineWidth=1,s.strokeStyle=ve,s.stroke();var ee=(((E=h)!==null&&E!==void 0?E:0)-(y??0))/(1e3/L);if(s.translate(ee,0),T(v,s),s.lineWidth=2,s.strokeStyle=he,s.stroke(),s.translate(-ee,0),c!=null&&(s.fillStyle=c),s.fill(),s.setTransform(o,0,0,o,0,0),(y??0)-((D=h)!==null&&D!==void 0?D:0)>1e3/L){for(var q,Tt=Math.floor(((y??0)-((q=h)!==null&&q!==void 0?q:0))/(1e3/L)),Ne=0;Ne<Tt;Ne+=1)v.shift(),v.push(S(v[v.length-1]));h=y}p!=null&&cancelAnimationFrame(p),p=requestAnimationFrame(g)}var I=ce(()=>{p=requestAnimationFrame(y=>{m(),P(),i(!1),g(y)})},wa,{leading:!0});function O(){i(!0),p!=null&&cancelAnimationFrame(p),p=null,h=null}var j=ce(()=>{O()},Pa);function k(){p==null&&(i(!1),m(),P(),p=requestAnimationFrame(g)),j()}function W(){document.hasFocus()&&k()}function Q(){p!=null&&cancelAnimationFrame(p),j(),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(),c=b(),g(),j(),window.addEventListener("resize",Q),window.addEventListener("focus",k),window.addEventListener("blur",O),window.addEventListener("mousemove",W),window.addEventListener("keydown",W),()=>{p!=null&&cancelAnimationFrame(p),window.removeEventListener("resize",Q),window.removeEventListener("focus",k),window.removeEventListener("blur",O),window.removeEventListener("mousemove",W),window.removeEventListener("keydown",W),j.cancel(),I.cancel()}},[e]),u.jsx("div",{className:"random-area-plot-animation-container",ref:n,children:u.jsx("canvas",{ref:r,className:a?"shade":""})})});const ri=xa,Ia="_modified_5rbci_24",Na="_track_5rbci_35",_a="_handle_5rbci_15",Ca="_ticks_5rbci_103",Ct={"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:Ia,"flex-spacer":"_flex-spacer_5rbci_31",track:Na,"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:_a,ticks:Ca,"tick-labels":"_tick-labels_5rbci_121","tick-label":"_tick-label_5rbci_121","tick-label-wrapper":"_tick-label-wrapper_5rbci_137"};var se=parseInt(Ct["handle-size"],10),ct=parseInt(Ct["popover-width"],10),A=24*60*60-1,dt=5*60;function ni(t){var{startTime:e,endTime:r,onChange:n,isStartModified:a=!1,isEndModified:i=!1,"data-testid":o}=t,[s,c]=l.useState(e),[d,f]=l.useState(r),p=l.useRef(null);l.useEffect(function(){c(e),f(r)},[e,r]);var h=l.useCallback((b,S)=>{var w=b,P=S;w===P&&(P<A?P+=1:w-=1),c(w),f(P),n({startTime:w,endTime:P})},[c,f,n]),v=l.useCallback(b=>{h(b,d)},[h,d]),m=l.useCallback(b=>{h(s,b)},[h,s]);return u.jsxs("div",{className:"time-slider","data-testid":o,children:[u.jsx(Ta,{startTime:s,endTime:d,onStartTimeChange:v,onEndTimeChange:m,isStartModified:a,isEndModified:i}),u.jsxs("div",{className:"track",ref:p,children:[u.jsx($a,{startTime:s,endTime:d}),u.jsx("div",{className:"ticks",children:Array(24).fill(null).map((b,S)=>u.jsx("div",{className:"tick"},S))}),u.jsx(ft,{track:p,time:s,setTime:v}),u.jsx(ft,{track:p,time:d,setTime:m})]}),u.jsxs("div",{className:"tick-labels",children:[u.jsx("div",{className:"tick-label",children:"0:00"}),u.jsx("div",{className:"tick-label-wrapper",children:Array(24).fill(null).map((b,S)=>u.jsx("div",{className:"tick-label",children:"".concat(S+1,":00")},S))})]})]})}function Ta(t){var{startTime:e,endTime:r,onStartTimeChange:n,onEndTimeChange:a,isStartModified:i,isEndModified:o,"data-testid":s}=t,c=e>r,[d,f]=l.useState(c?r:e),[p,h]=l.useState(c?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)}},[c]);function w(g){e<=r?n(g):a(g)}function P(g){e<=r?a(g):n(g)}var T=l.useCallback(g=>{b.current=g,S.current=null},[]),$=l.useCallback(g=>{b.current=null,S.current=g},[]);return u.jsxs("div",{className:"time-slider-popovers",children:[u.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat(d/A*100,"% - ").concat(ct/2,"px)")}}),u.jsxs("div",{className:"handle-popper",children:[u.jsx("label",{className:C({modified:c?o:i}),children:c?"End Time":"Start Time"}),u.jsx(Se,{ref:v,allowValueWrapping:!1,value:d,onChange:w,onSelect:T,"data-testid":s!==void 0?"".concat(s,"-input-1"):void 0})]}),u.jsx("div",{className:"flex-spacer"}),u.jsxs("div",{className:"handle-popper",children:[u.jsx("label",{className:C({modified:c?i:o}),children:c?"Start Time":"End Time"}),u.jsx(Se,{ref:m,allowValueWrapping:!1,value:p,onChange:P,onSelect:$,"data-testid":s!==void 0?"".concat(s,"-input-2"):void 0})]}),u.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat((A-p)/A*100,"% - ").concat(ct/2,"px)")}})]})}function $a(t){var{startTime:e,endTime:r,"data-testid":n}=t;return u.jsxs("div",{className:"track-fills","data-testid":n,children:[e>r&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"track-fill track-fill-start",style:{transform:"scaleX(".concat(r/A,")")}}),u.jsx("div",{className:"track-fill track-fill-end",style:{transform:"scaleX(".concat((A-e)/A,")")}})]}),e<r&&u.jsx("div",{className:"track-fill track-fill-middle",style:{transform:"translateX(".concat(e/A*100,"%) scaleX(").concat((r-e)/A,")")}})]})}function ft(t){var{track:e,time:r,setTime:n,"data-testid":a}=t,i=l.useMemo(()=>{var h=3600,v=se/2;return r<h?v=r/h*(se/2):r>23*h&&(v=se/2+1/(A-23*h)*(r-23*h)*(se/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=dt*Math.round(b/dt),w=Math.min(A,S);return w},[e]),s=l.useCallback(h=>{var{clientX:v}=h;n(o(v))},[n,o]),c=l.useCallback(h=>{var{clientX:v}=h;n(o(v)),window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",c),document.documentElement.classList.remove("drag-pointer-events-none")},[n,o,s]),d=l.useCallback(()=>{window.addEventListener("mousemove",s),window.addEventListener("mouseup",c),document.documentElement.classList.add("drag-pointer-events-none")},[s,c]),f=l.useCallback(()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",c),document.documentElement.classList.remove("drag-pointer-events-none")},[s,c]),p=l.useCallback(()=>{d()},[d]);return l.useEffect(function(){return()=>{f()}},[f]),u.jsx("div",{className:"handle-track",style:{transform:i},children:u.jsx("button",{className:"handle",type:"button","aria-label":"Change time",onMouseDown:p,"data-testid":a})})}function z(t,e,r){return e=ka(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ka(t){var e=Da(t,"string");return typeof e=="symbol"?e:String(e)}function Da(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 N extends rr{static get theme(){return N._theme==null&&(N._theme=Gt()),N._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=[],c=new Date("2018-06-01"),d=0;d<n;d+=1){var f=new Date(c.getFullYear(),c.getMonth(),c.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+N.random()*n/5+d*N.smoothing)*r;p=Math.round(p*100)/100,i.push(p),s.push(40+d*N.smoothing),o.push(Math.sin(d/n*e)*n/3+N.random()*n/10+d*N.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:N.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=N.makeRandomSeries(6),r=N.makeArea(e),n=N.makeTrendline(e),a=N.makeRandomSeries(2),i=N.makeLine(a),o=N.makeErrorBand(a);return[r,n,i,o]}static makeDefaultLayout(e){var r={template:new nr(e).makeDefaultTemplate(N.theme)};return r.title="Chart",r.xaxis={title:"Datestamp"},r.yaxis={title:"Price"},r}constructor(e){var{data:r=N.makeRandomData(),layout:n=N.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(N,"random",Math.random.bind(Math));z(N,"smoothing",1.5);z(N,"_theme",void 0);const ai=N;var Ma=l.createContext(!1);function ii(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)})},[]),u.jsxs(u.Fragment,{children:[u.jsx(Ma.Provider,{value:n,children:r}),u.jsx("div",{id:"preload-fonts",style:{visibility:"hidden",position:"absolute",top:-1e4},children:e.map(i=>u.jsx("p",{className:i,children:"preload"},i))})]})}export{fe as $,Yr as A,Et as B,hr as C,Qa as D,ei as E,Xa as F,ri as G,Gn as H,ye as I,Se as J,ni as K,qr as L,Ee as M,Y as N,Cr as O,qa as P,vr as Q,Ie as R,St as S,G as T,Tr as U,ea as V,kr as W,za as X,$r as Y,xe as Z,ue as _,Wa as a,Lr as a0,xt as a1,Pt as a2,jt as a3,en as a4,tn as a5,Rr as a6,J as a7,Le as a8,ai as a9,Ma as aa,ii as ab,ir as b,Ua as c,wt as d,ke as e,Ha as f,Ba as g,V as h,or as i,sr as j,ur as k,cr as l,dr as m,pr as n,un as o,Za as p,It as q,Ja as r,Ae as s,ti as t,lr as u,X as v,wr as w,Xr as x,Ga as y,Ya as z};
4
- //# sourceMappingURL=FontBootstrap-5f2cd629.js.map
4
+ //# sourceMappingURL=FontBootstrap-98d6f69d.js.map