@globalpayments/vega-sandbox-app 0.1.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/README.md +47 -0
  2. package/dist/assets/accessibility-6af5cf2e-XlEB_Jt7.js +1 -0
  3. package/dist/assets/action-color-accessibility-validator-ce55cb07-DKiL6ftZ.js +1 -0
  4. package/dist/assets/align-left-7f959adf-BlPklVKE.js +1 -0
  5. package/dist/assets/aria-attributes-value-mapper-2c632641-DrbPKl00.js +1 -0
  6. package/dist/assets/aria-dialog-focusable-trap-slimmer-9eae86c6-gjD4A8pn.js +1 -0
  7. package/dist/assets/array-7888f339-TrIHVDOh.js +1 -0
  8. package/dist/assets/auto-run-when-re-render-task-queue-slimmer.abstract-27820d4c-D1eQOBV-.js +1 -0
  9. package/dist/assets/babel-Dyqlk8mN.svg +1 -0
  10. package/dist/assets/brand-switch-state-controller-slimmer-9ca03c81-CrFbpBCM.js +1 -0
  11. package/dist/assets/check-box-required-rule-cb0aa339-BLBQE0Bn.js +1 -0
  12. package/dist/assets/chevron-down-4a75d28e-CQKZrHY1.js +1 -0
  13. package/dist/assets/chevron-up-b1989751-Bfzxj3jY.js +1 -0
  14. package/dist/assets/child-nodes-event-prevent-slimmer-96c14f5a-CX6gTt7j.js +1 -0
  15. package/dist/assets/child-nodes-notify-observer-slimmer-499a3aa7-DBtuRtaX.js +1 -0
  16. package/dist/assets/click-outside-only-to-dismiss-strategy-3d286c1b-Bt4qXmzF.js +1 -0
  17. package/dist/assets/component-7d906393-ouA59Xga.js +1 -0
  18. package/dist/assets/component-global-style-slimmer-ac703085-DunX40Js.js +1 -0
  19. package/dist/assets/component-load-required-db42032a-Di7iuaem.js +1 -0
  20. package/dist/assets/component-usage-runtime-metrics-4b1afd04-DfeLFf_f.js +2 -0
  21. package/dist/assets/component-value-history-controller-slimmer.abstract-b1ee1b8e-zm_W4sLF.js +1 -0
  22. package/dist/assets/country-flags-39dbfa43-CX7jF-6J.js +927 -0
  23. package/dist/assets/dark-mode-state-controller-slimmer-778dd929-CSxA-692.js +1 -0
  24. package/dist/assets/date-required-rule-e06115f8-DF-QJfib.js +1 -0
  25. package/dist/assets/deprecated-property-slimmer-ea34fa7b-C6ukXAFu.js +1 -0
  26. package/dist/assets/design-token-4e682056-DnS5xhNJ.js +1 -0
  27. package/dist/assets/docker-CILJA9EV.svg +1 -0
  28. package/dist/assets/drop-file-accept-filter-slimmer-ad759e4a-nxbge3Ew.js +1 -0
  29. package/dist/assets/effect-f50e072d-BVwAMfLb.js +1 -0
  30. package/dist/assets/element-appender-slimmer-a4485ef6-dlZScM7M.js +7 -0
  31. package/dist/assets/event-emit-slimmer-db4a82e0-BMETG_nd.js +1 -0
  32. package/dist/assets/file-uploader-required-rule-96952e1a-D0RVComv.js +1 -0
  33. package/dist/assets/fileDropUtils-RRUBaLqo.js +1 -0
  34. package/dist/assets/form-field-controller-slimmer-a1c7b28c-Dd3MqkCK.js +1 -0
  35. package/dist/assets/gulp-BUg8jesr.svg +1 -0
  36. package/dist/assets/image-annotation-action-4c77d314-jxla9FAt.js +1 -0
  37. package/dist/assets/immutable-map-4fe22b11-DIPXISW1.js +1 -0
  38. package/dist/assets/index-BMrI2UiZ.js +672 -0
  39. package/dist/assets/index-DyvzrSOD.css +32 -0
  40. package/dist/assets/inject-keyboard-manager-e8ddb78d-BqN11hZq.js +1 -0
  41. package/dist/assets/input-phone-number-required-rule-be6a5572-Dx3cjx93.js +1 -0
  42. package/dist/assets/input-range-required-rule-3ad74776-B3Hrd6w_.js +1 -0
  43. package/dist/assets/keyboard-manager-ec18721b-DW2NToqy.js +1 -0
  44. package/dist/assets/keyboard-manager-slimmer-531ddb0e-D5BEIWMB.js +1 -0
  45. package/dist/assets/legend-input-processor-3b2de4b7-DHMMr3K6.js +1 -0
  46. package/dist/assets/license-C5slmVrE.svg +1 -0
  47. package/dist/assets/min-number-rule-2f1cfbf9-DWoH8bJ8.js +1 -0
  48. package/dist/assets/min-string-length-rule-c31c89f4-8WfkOrjE.js +1 -0
  49. package/dist/assets/month-view-generator-afd78ff8-DLl5AdL9.js +1 -0
  50. package/dist/assets/mutation-observer-filters-1a054fb0-DqFynVMq.js +1 -0
  51. package/dist/assets/mutation-observer-slimmer-58ebc13c-B96ukalh.js +1 -0
  52. package/dist/assets/page-size-option-utils-50afc81a-BpAIWejs.js +1 -0
  53. package/dist/assets/placeholder-bf562081-D8zcyDHt.js +1 -0
  54. package/dist/assets/public-rules-5fce32a5-BRVqMA0j.js +1 -0
  55. package/dist/assets/required-field-rule-897fe8d1-BfULpOqT.js +1 -0
  56. package/dist/assets/responsive-format-facade-299e6304-B3WyOCHm.js +1 -0
  57. package/dist/assets/rich-text-editor-required-rule-3047bab0-D_rsfpQB.js +1 -0
  58. package/dist/assets/ruby-B9Na5RWH.svg +1 -0
  59. package/dist/assets/rust-D4Lh77kM.svg +1 -0
  60. package/dist/assets/state-border-formatter-da52b626-Cm2LrzJ4.js +1 -0
  61. package/dist/assets/string-format-strategy.abstract-a45b5ff7-nWLNlLp9.js +1 -0
  62. package/dist/assets/string-input-formatter-slimmer-4a032fed-vYPwvy7l.js +1 -0
  63. package/dist/assets/string-mask-strategy-37e53e48-D9dcrtTn.js +1 -0
  64. package/dist/assets/style-formatter-3d5ddfb1-oxXBufRO.js +1 -0
  65. package/dist/assets/sub-state-notify-slimmer-0f72ce74-DBFw1ZLA.js +1 -0
  66. package/dist/assets/sub-state-observer-slimmer-64532d94-OEvM7LUT.js +1 -0
  67. package/dist/assets/synchronize-task-queue-ac8acc3b-Zj5FaVSX.js +1 -0
  68. package/dist/assets/time-required-rule-355b73d2-FidD-Ede.js +1 -0
  69. package/dist/assets/toggle-switch-required-rule-b3cf4302-B1uZNmx2.js +1 -0
  70. package/dist/assets/translation-slimmer-3ea56354-DmrJUSd_.js +1 -0
  71. package/dist/assets/trash-can-8819a939-BMBO4L_u.js +1 -0
  72. package/dist/assets/vega-accordion.entry-jz7ZeEts.js +1 -0
  73. package/dist/assets/vega-app-footer.entry-wgOBc-A9.js +1 -0
  74. package/dist/assets/vega-app-header-button.entry-5pBR7cf_.js +1 -0
  75. package/dist/assets/vega-backdrop.entry-Codx0hAI.js +1 -0
  76. package/dist/assets/vega-banner.entry-DSX4VuJN.js +1 -0
  77. package/dist/assets/vega-bar-chart.entry-DP3IHxsC.js +1 -0
  78. package/dist/assets/vega-box.entry-CkMVJHPQ.js +1 -0
  79. package/dist/assets/vega-brand-logo.entry-90oDyAb-.js +1 -0
  80. package/dist/assets/vega-breadcrumb.entry-Cl6lbY92.js +1 -0
  81. package/dist/assets/vega-button-circle.entry-CQTEsQzr.js +1 -0
  82. package/dist/assets/vega-button-group_2.entry-B5GOU0cZ.js +1 -0
  83. package/dist/assets/vega-button-link.entry-BU3awoYi.js +1 -0
  84. package/dist/assets/vega-button.entry-DdCB-eO-.js +1 -0
  85. package/dist/assets/vega-calendar_5.entry-bCJKrtkS.js +1 -0
  86. package/dist/assets/vega-card.entry-Cc4bhWBZ.js +1 -0
  87. package/dist/assets/vega-carousel.entry-Ipx_cXgG.js +1 -0
  88. package/dist/assets/vega-checkbox_2.entry-bAe6poTf.js +1 -0
  89. package/dist/assets/vega-chip.entry-T8p-eeB6.js +1 -0
  90. package/dist/assets/vega-code-block.entry-BEEqm9KG.js +8 -0
  91. package/dist/assets/vega-color-picker.entry-BRXmJN_p.js +1 -0
  92. package/dist/assets/vega-color-swatch-picker.entry-Il2TVYRw.js +1 -0
  93. package/dist/assets/vega-color-swatch.entry-CFn8C7KF.js +1 -0
  94. package/dist/assets/vega-combo-box.entry-5BPMr2n2.js +1 -0
  95. package/dist/assets/vega-counter-badge.entry-pacOg-9E.js +1 -0
  96. package/dist/assets/vega-date-picker_2.entry-DUkg99l-.js +4 -0
  97. package/dist/assets/vega-dialog_2.entry-gzP5BxRI.js +1 -0
  98. package/dist/assets/vega-divider.entry-BRK4l8CC.js +1 -0
  99. package/dist/assets/vega-dropdown_5.entry-DlVVYQuv.js +1 -0
  100. package/dist/assets/vega-field-error.entry-BBbcu1lU.js +1 -0
  101. package/dist/assets/vega-field-label.entry-B7biRnZz.js +1 -0
  102. package/dist/assets/vega-file-uploader.entry-DibCxCsv.js +1 -0
  103. package/dist/assets/vega-flag-icon.entry-Bth2GH9Q.js +1 -0
  104. package/dist/assets/vega-flex.entry-sBBo0PAh.js +1 -0
  105. package/dist/assets/vega-font.entry-CF2axULt.js +1 -0
  106. package/dist/assets/vega-form.entry-DQKp-gcb.js +1 -0
  107. package/dist/assets/vega-grid.entry-ClrE3vHe.js +1 -0
  108. package/dist/assets/vega-hint.entry-DIPf2iwc.js +1 -0
  109. package/dist/assets/vega-icon.entry-D80YRcUD.js +19 -0
  110. package/dist/assets/vega-image-uploader.entry-DibsM-vq.js +1 -0
  111. package/dist/assets/vega-input-credit-card.entry-CQm0D9lH.js +1 -0
  112. package/dist/assets/vega-input-numeric.entry-CTnPrKPJ.js +1 -0
  113. package/dist/assets/vega-input-passcode.entry-DQqDmQMy.js +1 -0
  114. package/dist/assets/vega-input-phone-number.entry-DAgoWQ_X.js +1 -0
  115. package/dist/assets/vega-input-range.entry-BYKnL8vZ.js +1 -0
  116. package/dist/assets/vega-input-select.entry-BtMp_ci2.js +1 -0
  117. package/dist/assets/vega-input.entry-DYcmvIfL.js +1 -0
  118. package/dist/assets/vega-item-toggle.entry-BlTSjEy5.js +1 -0
  119. package/dist/assets/vega-left-nav_5.entry-E9WZtkZV.js +1 -0
  120. package/dist/assets/vega-line-chart.entry-Cnb5dRIj.js +1 -0
  121. package/dist/assets/vega-loader-wrapper_2.entry-ng9SmbZZ.js +1 -0
  122. package/dist/assets/vega-page-notification_2.entry-Ds6t6eld.js +1 -0
  123. package/dist/assets/vega-pagination-page-selector-mobile.entry-CRDR7YM5.js +1 -0
  124. package/dist/assets/vega-pagination-page-size-selector-mobile.entry-CGHRaih6.js +1 -0
  125. package/dist/assets/vega-pagination.entry-DEtJUXpQ.js +1 -0
  126. package/dist/assets/vega-pie-chart.entry-oJJWOML-.js +1 -0
  127. package/dist/assets/vega-popover_2.entry-DWEkvnYu.js +1 -0
  128. package/dist/assets/vega-progress-tracker_2.entry-CJhSYlli.js +1 -0
  129. package/dist/assets/vega-radio_2.entry-BsouYVVA.js +1 -0
  130. package/dist/assets/vega-rich-text-content.entry-Z48rbgpw.js +3 -0
  131. package/dist/assets/vega-rich-text-editor_4.entry-B2zS3kXt.js +17 -0
  132. package/dist/assets/vega-rich-text-find-replace-panel.entry-eIIhKZ3W.js +1 -0
  133. package/dist/assets/vega-rich-text-special-characters-panel.entry-DSM5kzoP.js +1 -0
  134. package/dist/assets/vega-rich-text-table-properties_3.entry-IWzw6zkn.js +1 -0
  135. package/dist/assets/vega-section-title.entry-DVzVTpyE.js +1 -0
  136. package/dist/assets/vega-segment-control.entry-B4hcZErC.js +1 -0
  137. package/dist/assets/vega-selection-chip_2.entry-xebDhaRk.js +1 -0
  138. package/dist/assets/vega-selection-tile_2.entry-NmnY_XlP.js +1 -0
  139. package/dist/assets/vega-sidenav_3.entry-DUnf_lBy.js +1 -0
  140. package/dist/assets/vega-signature-capture.entry-oZ6C7ebv.js +1 -0
  141. package/dist/assets/vega-skeleton.entry-B3BRgseR.js +1 -0
  142. package/dist/assets/vega-slot-container.entry-u8L8Ulb6.js +1 -0
  143. package/dist/assets/vega-stepper.entry-CGlIqVpM.js +1 -0
  144. package/dist/assets/vega-tab-group_2.entry-BWgTgg-u.js +1 -0
  145. package/dist/assets/vega-table_11.entry-BLkVY_Pd.js +1 -0
  146. package/dist/assets/vega-text.entry-Cu8Kp4Ah.js +1 -0
  147. package/dist/assets/vega-textarea.entry-BtY4Tdvc.js +1 -0
  148. package/dist/assets/vega-time-picker_2.entry-ZTb2O_ki.js +1 -0
  149. package/dist/assets/vega-toggle-switch.entry-0VA61VJ5.js +1 -0
  150. package/dist/assets/vega-tooltip_2.entry-O3f7He6B.js +1 -0
  151. package/dist/assets/video-BNtpQqFj.svg +1 -0
  152. package/dist/assets/wait-for-component-did-render-0c237cb8-DGcuut6_.js +1 -0
  153. package/dist/assets/xmark-large-c5ae7944-D1yUHqpn.js +1 -0
  154. package/dist/assets/y-axis-input-processor-c6b2a914-BOHuZ6oy.js +1 -0
  155. package/dist/assets/zip-B6t6sldd.svg +1 -0
  156. package/dist/coi-serviceworker.js +2 -0
  157. package/dist/index.html +21 -0
  158. package/package.json +34 -0
@@ -0,0 +1 @@
1
+ import{r as te,c as T,P as we,Z as Pe,bU as Po,V as Io,o as me,h as c,g as oe,H as re,eP as so,w as qt,e as nt,cX as ve,eQ as co,b as it,eR as po,a as f,C as g,E as x,eS as ho,aA as K,x as rt,ei as So,D as at,F as Mo,bJ as Lo,L as lt,cU as Fo,eT as ge,eU as pe,eV as xt,eW as Xt,eX as uo,B as k,O as U,bN as $o,aU as ko,b1 as zo,eY as fe,p as Wo,eZ as bo,a$ as xo,d as Et,e_ as lo,e$ as Go,M as s,f as p,I as d,f0 as Uo,f1 as qo,f2 as Xo,f3 as Yo,f4 as Zo,f5 as Qo,f6 as Jo}from"./index-BMrI2UiZ.js";import{m as ze,s as Ot}from"./placeholder-bf562081-D8zcyDHt.js";import{V as ne,I as ie}from"./component-usage-runtime-metrics-4b1afd04-DfeLFf_f.js";import{R as Ie}from"./responsive-format-facade-299e6304-B3WyOCHm.js";import{s as ae}from"./component-7d906393-ouA59Xga.js";import{M as vo}from"./mutation-observer-slimmer-58ebc13c-B96ukalh.js";import{T as go}from"./mutation-observer-filters-1a054fb0-DqFynVMq.js";import{c as F}from"./sub-state-notify-slimmer-0f72ce74-DBFw1ZLA.js";import{C as st}from"./child-nodes-event-prevent-slimmer-96c14f5a-CX6gTt7j.js";import{c as ee}from"./event-emit-slimmer-db4a82e0-BMETG_nd.js";import{I as er}from"./immutable-map-4fe22b11-DIPXISW1.js";import{T as tr}from"./translation-slimmer-3ea56354-DmrJUSd_.js";import{S as jo}from"./synchronize-task-queue-ac8acc3b-Zj5FaVSX.js";import{S as he}from"./sub-state-observer-slimmer-64532d94-OEvM7LUT.js";import{c as or}from"./accessibility-6af5cf2e-XlEB_Jt7.js";import{c as rr}from"./chevron-up-b1989751-Bfzxj3jY.js";import{c as _o}from"./chevron-down-4a75d28e-CQKZrHY1.js";import"./array-7888f339-TrIHVDOh.js";class Tt{constructor(e,t){this.size=0,this.set=new Set,e&&(this.set=e,this.size=e.size),t&&(this.onMutate=t)}onMutate(e){}add(...e){return this.withMutation(t=>{e.forEach(r=>t.add(r))})}clear(){this.withMutation(e=>e.clear())}delete(e){return this.withMutation(t=>{t.delete(e)})}withMutation(e){const t=new Set(this.set);e(t);const r=new Tt(t,this.onMutate);return this.onMutate(r),r}has(e){return this.set.has(e)}toArray(){return[...this.set]}}const To=["input","input-select","stepper","checkbox","textarea","combo-box","date-picker","time-picker"];class Dt{constructor(e,t,r,n,o,i,l,h,b,w,m,y,De,O,R,C,L=[]){this.key=e,this.label=t,this.pinned=r,this.colSpan=n,this.rowSpan=o,this.isViewStart=i,this.isViewEnd=l,this.isLeftEndPinned=h,this.isRightStartPinned=b,this.isNoPinnedEnd=w,this.headHasGroupColumn=m,this.headHasPinnedColumn=y,this.headMaxDepth=De,this.level=O,this.columnIndex=R,this.parent=C,this.children=L,this.iteratorCacheMap=new Map,this.leaves=[]}static from(e){const t=[],r=[],n=e.getMaxDepth(),o=e.hasGroupColumn(),i=e.hasLeftPinnedColumn()||e.hasRightPinnedColumn();let l=0;return e.iterator().forEach(h=>{const b=h.level>0?r[h.level-1]:null,w=o&&this.isParentStart(h),m=o&&this.isParentEnd(h),y=new Dt(h.key,h.label,b?b.pinned:h.pinned,o?this.getColSpan(h):null,o?h.isLeaf()?n-h.level:1:null,b?b.isViewStart&&w:w,b?b.isViewEnd&&m:m,b?b.isLeftEndPinned&&m:i&&this.isLeftEndPinned(h),b?b.isRightStartPinned&&w:i&&this.isRightStartPinned(h),b?b.isNoPinnedEnd&&m:i&&this.isNoPinnedEnd(h),o,i,n,h.level,l,b);b?b.children.push(y):t.push(y),r[h.level]=y,r.length=h.level+1,h.isLeaf()&&l++}),t}static withMergedBoundaries(e,t){let r=e.isLeftEndPinned,n=e.isRightStartPinned,o=e.isNoPinnedEnd,i=e.isViewEnd;for(const l of t)r=r||l.isLeftEndPinned,n=n||l.isRightStartPinned,o=o||l.isNoPinnedEnd,i=i||l.isViewEnd;return r===e.isLeftEndPinned&&n===e.isRightStartPinned&&o===e.isNoPinnedEnd&&i===e.isViewEnd?e:new Dt(e.key,e.label,e.pinned,e.colSpan,e.rowSpan,e.isViewStart,i,r,n,o,e.headHasGroupColumn,e.headHasPinnedColumn,e.headMaxDepth,e.level,e.columnIndex,e.parent,e.children)}static isLeftEndPinned(e){const t=e.parent.getOrderedChildren().filter(r=>r.pinned==="left");return t[t.length-1]===e}static isRightStartPinned(e){return e.parent.getOrderedChildren().filter(r=>r.pinned==="right")[0]===e}static isNoPinnedEnd(e){const t=e.parent.getOrderedChildren().filter(r=>!r.pinned);return t[t.length-1]===e}static isParentStart(e){return e.parent.getOrderedChildren()[0]===e}static isParentEnd(e){const t=e.parent.getOrderedChildren();return t[t.length-1]===e}static getColSpan(e){const t=e.iterator(),r={};return t.forEach(n=>{r[n.level]=(r[n.level]||0)+1}),Math.max(...Object.values(r))}getLeaves(){if(this.leaves.length>0)return this.leaves;const e=this.iterator().filter(t=>t.isLeaf());return this.leaves=e,e}iterator(e="dfs"){return e==="dfs"?this.dfsIterator():[]}dfsIterator(){if(this.iteratorCacheMap.has("dfs"))return this.iteratorCacheMap.get("dfs");const e=[];return e.push(this),this.children&&this.children.length>0&&this.children.forEach(t=>{e.push(...t.dfsIterator())}),this.iteratorCacheMap.set("dfs",e),e}isLeaf(){return!this.children||this.children.length===0}}var Pt=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},nr=function(a,e){var t={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&e.indexOf(r)<0&&(t[r]=a[r]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(a);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(a,r[n])&&(t[r[n]]=a[r[n]]);return t};class dt extends f{constructor(){super(...arguments),this.renderTableCellContent=(e,t,r,n)=>{var o,i;const l=Lo(t,e.prop),h=this.vegaTableDataSourceController.getRecordKey(t),b=!this.vegaTableDataSourceController.getDataSource().find(y=>this.vegaTableDataSourceController.getRecordKey(y)===h),w=this.vegaTableEditableController.isEditing(h),m=this.vegaTableEditableController.getRowFormRefMap().get(h);if(!n&&w&&m&&e.renderFormItem)return e.renderFormItem(c,e.prop?l:h,t,r,{rowForm:m,isNewRow:b});if(!n&&w&&m&&e.editable){const y=(o=e.formItemProps)===null||o===void 0?void 0:o.call(e,m,{record:t,index:r}),De=Object.assign({dataVegaForm:(y==null?void 0:y.dataVegaForm)||e.prop,size:"small",value:l},(i=e.formItemProps)===null||i===void 0?void 0:i.call(e,m,{record:t,index:r}));return this.generateEditComponentByType(e.formItemType,De)}if(e.render)return e.render(c,e.prop?l:h,t,r);if(typeof l=="string"||typeof l=="number")return String(l);if(typeof l>"u"||l===null)return"";lt.error(`Column ${e.prop}'s value has a wrong type(${typeof t[e.prop]}) in table cell. Only 'VegaTableNode | string | number' can be rendered in table cell`)},this.generateEditComponentByType=(e="input",t)=>{const r=`vega-${e}`,{dataVegaForm:n}=t,o=nr(t,["dataVegaForm"]);if(!this.isVegaTableEditableFieldType(r)){lt.error(`Type must be one of the form field types. [${To.join(",")}]`);return}return c(r,Object.assign(Object.assign({},o),{"data-vega-form":n}))},this.isVegaTableEditableFieldType=e=>e.toUpperCase().startsWith("VEGA")&&new RegExp(To.join("|"),"i").test(e)}render(e,t,r,n){var o;const i=this.vegaTableBodyColSpanController.findColumn(e),l=(o=n==null?void 0:n.htmlColspan)!==null&&o!==void 0?o:1,h=l>1,b=h&&n?this.getMergedRenderInputForSpan(e,n):e;if(i){const m=`${this.vegaTableDataSourceController.getRecordKey(t)}_${i.key||i.prop}`;return c("vega-table-cell",{key:m,textAlign:i.align,breakpoint:i.breakpoint,overflow:i.overflow,colSpan:h?l:void 0,ref:y=>{this.vegaTableRenderInputController.addCellRenderInputMap(y,b)}},this.renderTableCellContent(i,t,r,h))}else return c("vega-table-cell",{key:e.key,ref:w=>{this.vegaTableRenderInputController.addCellRenderInputMap(w,b)}})}getMergedRenderInputForSpan(e,t){const r=this.vegaTableRenderInputController.getLeafRenderInputs(),n=r.indexOf(e);if(n<0)return e;const o=r.slice(n+1,n+1+t.skipCount);return Dt.withMergedBoundaries(e,o)}}Pt([s()],dt.prototype,"rowKey",void 0);Pt([s()],dt.prototype,"vegaTableDataSourceController",void 0);Pt([s()],dt.prototype,"vegaTableEditableController",void 0);Pt([s()],dt.prototype,"vegaTableRenderInputController",void 0);Pt([s()],dt.prototype,"vegaTableBodyColSpanController",void 0);const Eo={htmlColspan:1,skipCount:0};function ir(a,e,t){const r=a==null?void 0:a.colSpan;if(r==null)return 1;if(typeof r!="function")return Do(r);const n=a.prop?Lo(e,a.prop):void 0;return Do(r(n,e,t))}function Do(a){if(!Number.isFinite(a))return 1;const e=Math.floor(a);return e>=1?e:1}function ar(a,e,t){var r,n;const o=(r=t[e])===null||r===void 0?void 0:r.pinned;let i=1;for(let l=1;l<a;l++){const h=t[e+l];if(!h)return{span:i,clampReason:`extends past the end of the row (${t.length} columns total)`};if(h.pinned!==o)return{span:i,clampReason:`crosses a pinned-column boundary (pinned="${o??"none"}" → pinned="${(n=h.pinned)!==null&&n!==void 0?n:"none"}")`};i++}return{span:i,clampReason:null}}function lr(a,e,t,r,n){n.has(a)||(n.add(a),lt.warn(`[vega-table] colSpan for column "${a}" was clamped from ${e} to ${t} because it ${r}.`))}function sr(a,e,t,r,n,o){var i,l,h;const b=ir(a,e,t);if(!b||b<=1)return Eo;const{span:w,clampReason:m}=ar(b,r,n),y=Math.min(b,w);if(m&&y<b){const De=(h=(l=(i=a.key)!==null&&i!==void 0?i:a.prop)!==null&&l!==void 0?l:a.label)!==null&&h!==void 0?h:"";lr(De,b,y,m,o)}return y<=1?Eo:{htmlColspan:y,skipCount:y-1}}var dr=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Ao extends f{constructor(){super(...arguments),this.warnedColSpanKeys=new Set,this.lastWarnedColumnsRef=null}resolveRow(e,t,r){this.columns!==this.lastWarnedColumnsRef&&(this.warnedColSpanKeys.clear(),this.lastWarnedColumnsRef=this.columns);const n=new Array(r.length).fill(null);let o=0;return r.forEach((i,l)=>{if(o>0){o--;return}const h=this.findColumn(i),b=h?sr(h,e,t,l,r,this.warnedColSpanKeys):{htmlColspan:1,skipCount:0};n[l]=b,o=b.skipCount}),n}findColumn(e){return this.columns.find(t=>t.key===e.key||t.prop===e.key||t.label===e.key)}}dr([s()],Ao.prototype,"columns",void 0);var N=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class S extends f{constructor(){super(...arguments),this.toggleExpandRow=e=>{this.isRowExpandable(e)&&this.handleToggleExpandRow(e,!this.isExpanded(e))},this.openExpandRow=e=>{this.isRowExpandable(e)&&this.handleToggleExpandRow(e,!0)},this.closeExpandRow=e=>{this.isRowExpandable(e)&&this.handleToggleExpandRow(e,!1)},this.closeAllExpandRow=()=>{this.hasExpandableRow&&this.handleCloseAllExpandRow()},this.isExpandableRow=e=>this.expandableRows.includes(this.vegaTableDataSourceController.getRecordKey(e)),this.isExpanded=e=>this.expandedRowKeySet.has(e),this.handleCloseAllExpandRow=()=>{this.expandedRowKeySet.toArray().forEach(e=>{g.notify(fe,{host:this.host,rowKey:e,expanded:!1})}),this.expandedRowKeySet.clear()},this.handleToggleExpandRow=(e,t)=>{t?this.expandedRowKeySet.add(e):this.expandedRowKeySet.delete(e),g.notify(fe,{host:this.host,rowKey:e,expanded:t})},this.initMutationObserver=()=>{this.mutationObserver=new MutationObserver(async e=>{this.expandRowSlotGuard(e)&&Wo(this.host)}),this.mutationObserver.observe(this.host,{childList:!0,subtree:!0})},this.expandRowSlotGuard=e=>{const t=this.vegaTableDataSourceController.getCurrentData().map(n=>`${S.expandRowSlotNamePrefix}${this.vegaTableDataSourceController.getRecordKey(n)}`),r=[];for(let n=0;n<e.length;n++)Array.from(e[n].addedNodes).filter(i=>i instanceof HTMLElement&&i.getAttribute("slot")).forEach(i=>{i.removeAttribute("hidden");const l=i.getAttribute("slot");t.includes(l)?r.push(i):lt.warn(`The vega-table expand row slot name '${l}' is not as expected, it must be like: vega-table-expand-row-[rowKey]`)});return r.length>0}}connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect(),g.unregister(fe,this.expandObserver),K.unRegister(x.getSubject(this.host,bo))}componentWillLoad(){this.setExpandableRows()}componentDidLoad(){this.initMutationObserver()}watchRowExpandable(){this.setExpandableRows(),this.handleCloseAllExpandRow()}watchCurrentData(){this.setExpandableRows(),this.clearUnusedExpandRowSlot()}initRowExpandObserver(){this.expandObserver=new U(this.isAcceptableTableRowObserver.bind({host:this.host}),e=>{e.expanded?this.expandedRowKeySet.add(e.rowKey):this.expandedRowKeySet.delete(e.rowKey)}),g.register(fe,this.expandObserver),K.register(x.getSubject(this.host,bo),({rowKey:e,expanded:t})=>this.rowExpandEventEmitter.emit({record:this.vegaTableDataSourceController.getRecordByKey(e),expanded:t}))}isAcceptableTableRowObserver(e){return e.host.tagName==="VEGA-TABLE-ROW"&&this.host===k(e.host,"vega-table")}setExpandableRows(){if(typeof this.rowExpandable=="boolean")this.expandableRows=this.rowExpandable?this.currentData.map(e=>this.vegaTableDataSourceController.getRecordKey(e)):[],this.hasExpandableRow=this.rowExpandable;else if(typeof this.rowExpandable=="function"){const e=[];this.currentData.forEach(t=>{const r=this.vegaTableDataSourceController.getRecordKey(t);this.rowExpandable(r)&&e.push(r)}),this.expandableRows=e,this.hasExpandableRow=e.length>0}else this.expandableRows=[],this.hasExpandableRow=!1}isRowExpandable(e){return this.expandableRows.includes(e)}clearUnusedExpandRowSlot(){this.expandedRowKeySet.toArray().forEach(e=>{this.isRowExpandable(e)||this.expandedRowKeySet.delete(e)})}}S.expandRowSlotNamePrefix="vega-table-expand-row-";N([s()],S.prototype,"host",void 0);N([s()],S.prototype,"expandedRowKeySet",void 0);N([s({writable:!0})],S.prototype,"expandableRows",void 0);N([s({writable:!0})],S.prototype,"hasExpandableRow",void 0);N([s()],S.prototype,"rowExpandable",void 0);N([s()],S.prototype,"currentData",void 0);N([s()],S.prototype,"rowExpandEventEmitter",void 0);N([s()],S.prototype,"vegaTableDataSourceController",void 0);N([p("connectedCallback")],S.prototype,"connectedCallback",null);N([p("disconnectedCallback")],S.prototype,"disconnectedCallback",null);N([p("componentWillLoad")],S.prototype,"componentWillLoad",null);N([p("componentDidLoad")],S.prototype,"componentDidLoad",null);N([p("toggleExpandRow")],S.prototype,"toggleExpandRow",void 0);N([p("openExpandRow")],S.prototype,"openExpandRow",void 0);N([p("closeExpandRow")],S.prototype,"closeExpandRow",void 0);N([p("closeAllExpandRow")],S.prototype,"closeAllExpandRow",void 0);N([p("watchRowExpandable")],S.prototype,"watchRowExpandable",null);N([p("watchCurrentData")],S.prototype,"watchCurrentData",null);var j=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class P extends f{constructor(){super(...arguments),this.handleRowSelect=(e,t)=>{const r=this.vegaTableDataSourceController.getRecordKey(t);let n=!1;e?this.selectedRowKeySet.has(r)||(this.selectedRowKeySet.add(r),n=!0):this.selectedRowKeySet.has(r)&&(this.selectedRowKeySet.delete(r),n=!0),n&&this.selectChangeEventEmitter.emit({selected:e,record:t,selectedRows:this.getSelectedRecords()})},this.getRowSelectionType=()=>{if(this.rowSelection)return this.rowSelection.type||"multiple"},this.handleSingleRowSelect=e=>{const t=this.vegaTableDataSourceController.getRecordKey(e);this.isChecked(t)?this.handleRowSelect(!1,e):(this.selectedRowKeySet.clear(),this.handleRowSelect(!0,e))},this.isChecked=e=>this.selectedRowKeySet.has(e),this.handleSelectAll=e=>{if(e){const t=this.vegaTableDataSourceController.getAllRecordKeys();this.selectedRowKeySet.add(...t.filter(r=>!this.selectedRowKeySet.has(r)))}else this.isCheckedAll()&&this.selectedRowKeySet.clear()},this.isCheckedAll=()=>this.selectedRowKeySet.size>0&&this.vegaTableDataSourceController.getCurrentData().every(e=>this.selectedRowKeySet.has(this.vegaTableDataSourceController.getRecordKey(e))),this.setupRowSelection=e=>{this.rowSelection=Object.assign({hideSelectAll:!1,type:"multiple"},e)},this.getSelectedRecords=()=>this.selectedRowKeySet.toArray().map(this.vegaTableDataSourceController.getRecordByKey).filter(Boolean),this.syncUpSelectedKeySetWithCurrentData=e=>{this.selectedRowKeySet.withMutation(t=>{t.clear(),e.forEach(r=>{const n=this.vegaTableDataSourceController.getRecordKey(r);this.selectedRowKeySet.has(n)&&t.add(n)})})}}connectedCallback(){this.initRowSelection(),this.initRowClickObserver(),this.initRowSelectionAllObserver()}disconnectedCallback(){g.unregister(ge,this.rowSelectionObserver),g.unregister(pe,this.rowSelectionAllObserver),g.unregister(xt,this.rowClickObserver),K.unRegister(x.getSubject(this.host,Xt)),K.unRegister(x.getSubject(this.host,uo))}componentWillLoad(){this.rowSelection&&this.setupRowSelection(this.rowSelection)}watchRowSelection(e,t){(t==null?void 0:t.type)!==(e==null?void 0:e.type)&&this.clearSelection()}setSelection(e){this.getRowSelectionType()==="single"&&e.splice(1),this.selectedRowKeySet.toArray().forEach(t=>{g.notify(ge,{host:this.host,rowKey:t,checked:!1})}),this.selectedRowKeySet.clear(),e.forEach(t=>{this.vegaTableDataSourceController.getRecordByKey(t)&&(this.selectedRowKeySet.add(t),g.notify(ge,{host:this.host,rowKey:t,checked:!0}))})}watchCurrentData(e){this.syncUpSelectedKeySetWithCurrentData(e)}clearSelection(){this.selectedRowKeySet.clear(),g.notify(pe,{host:this.host,checked:!1,noneChecked:this.selectedRowKeySet.size===0})}getSelection(){return this.selectedRowKeySet.toArray()}watchSelectedRowKeySet(){this.isSelectedAll=this.isCheckedAll()}watchSelectedAll(){g.notify(pe,{host:this.host,checked:this.isCheckedAll(),noneChecked:this.selectedRowKeySet.size===0}),this.selectAllChangeEventEmitter.emit({selected:this.isCheckedAll(),selectedRows:this.getSelectedRecords()})}isAcceptableRowSelectionObserver(e){if(e.host.tagName==="VEGA-TABLE")return this.host===e.host;if(e.host.tagName==="VEGA-TABLE-ROW")return this.host===k(e.host,"vega-table")}isAcceptableRowSelectionAllObserver(e){if(e.host.tagName==="VEGA-TABLE")return this.host===e.host;if(e.host.tagName==="VEGA-TABLE-HEAD-ROW")return this.host===k(e.host,"vega-table")}initRowSelection(){this.rowSelectionObserver=new U(this.isAcceptableRowSelectionObserver.bind(this),e=>{const{rowKey:t,checked:r}=e,n=this.vegaTableDataSourceController.getRecordByKey(t);this.handleRowSelect(r,n)}),g.register(ge,this.rowSelectionObserver),K.register(x.getSubject(this.host,Xt),({rowKey:e,checked:t})=>this.rowSelectEventEmitter.emit({selected:t,record:this.vegaTableDataSourceController.getRecordByKey(e),selectedRows:this.getSelectedRecords()})),K.register(x.getSubject(this.host,uo),({checked:e})=>this.rowSelectAllEventEmitter.emit({selected:e,selectedRows:this.getSelectedRecords(),changedRows:e?this.vegaTableDataSourceController.getCurrentData().filter(t=>!this.selectedRowKeySet.has(t.key)):this.getSelectedRecords()}))}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new U(this.isAcceptableRowSelectionAllObserver.bind(this),e=>{this.handleSelectAll(e.checked)}),g.register(pe,this.rowSelectionAllObserver)}initRowClickObserver(){this.rowClickObserver=new U(this.isAcceptableRowClickObserver.bind(this),e=>{if(this.getRowSelectionType()==="single"){const t=this.vegaTableDataSourceController.getRecordByKey(e.rowKey);this.handleSingleRowSelect(t)}}),g.register(xt,this.rowClickObserver)}isAcceptableRowClickObserver(e){return e.host.tagName==="VEGA-TABLE-ROW"&&this.host===k(e.host,"vega-table")}}j([s()],P.prototype,"host",void 0);j([s({writable:!0})],P.prototype,"isSelectedAll",void 0);j([s()],P.prototype,"selectedRowKeySet",void 0);j([s({writable:!0})],P.prototype,"rowSelection",void 0);j([s()],P.prototype,"rowKey",void 0);j([s()],P.prototype,"selectChangeEventEmitter",void 0);j([s()],P.prototype,"selectAllChangeEventEmitter",void 0);j([s()],P.prototype,"vegaTableDataSourceController",void 0);j([s()],P.prototype,"rowSelectEventEmitter",void 0);j([s()],P.prototype,"rowSelectAllEventEmitter",void 0);j([p("connectedCallback")],P.prototype,"connectedCallback",null);j([p("disconnectedCallback")],P.prototype,"disconnectedCallback",null);j([p("componentWillLoad")],P.prototype,"componentWillLoad",null);j([p("watchRowSelection")],P.prototype,"watchRowSelection",null);j([p("setSelection")],P.prototype,"setSelection",null);j([p("watchCurrentData")],P.prototype,"watchCurrentData",null);j([p("clearSelection")],P.prototype,"clearSelection",null);j([p("getSelection")],P.prototype,"getSelection",null);j([p("watchSelectedRowKeySet")],P.prototype,"watchSelectedRowKeySet",null);j([p("watchSelectedAll")],P.prototype,"watchSelectedAll",null);var le=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class X extends f{constructor(){super(...arguments),this.getRecordKey=e=>e[this.rowKey]!==void 0&&e[this.rowKey]!==null?String(e[this.rowKey]):"",this.getRecordByKey=e=>this.currentData.find(t=>this.getRecordKey(t)===e),this.setCurrentData=e=>{this.tableDataValidation(e)?this.currentData=e:this.currentData=[]}}componentWillLoad(){this.vegaTableSortController.syncSortOrder(),this.syncCurrentData()}watchSortersMap(){this.syncCurrentData()}watchDataSource(){this.syncCurrentData()}getAllRecordKeys(){return this.currentData.map(this.getRecordKey)}getDataSource(){return this.dataSource}setDataSource(e){this.dataSource=e}getCurrentData(){return this.currentData}isCurrentDataEmpty(){return this.currentData.length===0}tableDataValidation(e){return e.some(t=>!this.getRecordKey(t))?(lt.error('Each item in dataSource should have a unique "key" prop.'," Otherwise, you should specify the primary key of dataSource item via rowKey."," For more details, please refer to: https://heartlandpayments.github.io/Vega/?path=/docs/components-table-v2--basic-table#rowkey"),!1):!0}syncCurrentData(){if(this.isTemplateRenderMode)return;(this.sortersMap.size>0?this.columns.filter(t=>t.sorter&&t.sorter!=="event"&&this.sortersMap.has(t.prop)):[]).length>0?this.setCurrentData(this.vegaTableSortController.sortData(this.dataSource,Array.from(this.sortersMap.values()))):this.setCurrentData(this.dataSource)}}le([s()],X.prototype,"rowKey",void 0);le([s({writable:!0})],X.prototype,"currentData",void 0);le([s({writable:!0})],X.prototype,"dataSource",void 0);le([s()],X.prototype,"columns",void 0);le([s()],X.prototype,"sortersMap",void 0);le([s()],X.prototype,"vegaTableSortController",void 0);le([s()],X.prototype,"vegaTableRenderer",void 0);le([s()],X.prototype,"isTemplateRenderMode",void 0);le([p("componentWillLoad")],X.prototype,"componentWillLoad",null);le([p("watchSortersMap")],X.prototype,"watchSortersMap",null);le([p("watchDataSource")],X.prototype,"watchDataSource",null);var se=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Y extends f{constructor(){super(...arguments),this.renderTableBody=e=>{const t=this.vegaTableDataSourceController.getCurrentData();return c("vega-table-body",{ref:r=>this.tableBodyRef=r},t.map((r,n)=>{const o=this.vegaTableDataSourceController.getRecordKey(r),i=this.vegaTablePaginationController.isRowVisible(n),l=n===t.length-1;return c(Mo,null,this.vegaTableRowRenderer.render({rowKey:o,index:n,record:r,isVisibleInCurrentPage:i,isLastRow:l},e),this.vegaTableExpandRowController.isExpandableRow(r)&&c("vega-table-expand-row",{class:{"v-hidden":!i},key:`vega-table-expanded-row-${o}`,rowKey:o,striped:this.striped&&n%2===1},c("slot",{name:`${S.expandRowSlotNamePrefix}${o}`})))}))}}getTableFormRef(){return this.tableFormRef}getTableBodyRef(){return this.tableBodyRef}render(){const e=this.columnStructureModel.generateColumnConfigByLeaves(this.columns).some(t=>t==null?void 0:t.editable);return e?c("vega-form",{ref:t=>this.tableFormRef=t},this.renderTableBody(e)):this.renderTableBody(!1)}}se([s()],Y.prototype,"striped",void 0);se([s()],Y.prototype,"rowDivider",void 0);se([s()],Y.prototype,"columns",void 0);se([s()],Y.prototype,"currentBreakpoint",void 0);se([s()],Y.prototype,"rowClickable",void 0);se([s()],Y.prototype,"vegaTableDataSourceController",void 0);se([s()],Y.prototype,"vegaTablePaginationController",void 0);se([s()],Y.prototype,"vegaTableRowSelectionController",void 0);se([s()],Y.prototype,"vegaTableRowRenderer",void 0);se([s()],Y.prototype,"columnStructureModel",void 0);se([s()],Y.prototype,"vegaTableExpandRowController",void 0);var Me=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class ye extends f{constructor(){super(...arguments),this.renderHeaderRows=()=>{const e=this.vegaTableRenderInputController.getHeadRenderInputs(),t=[];let r=e;for(;r.length>0;)t.push(r),r=r.flatMap(n=>n.children);return t.map(n=>{var o;return c("vega-table-head-row",{hideSelectAll:(o=this.rowSelection)===null||o===void 0?void 0:o.hideSelectAll,ref:i=>{this.vegaTableRenderInputController.addHeadRowRenderInputMap(i,n)}},n.map(i=>{if(i.label)return this.renderGroupCell(i);{const l=this.columns.find(h=>h.key===i.key||h.prop===i.key||h.label===i.key);return this.renderCell(i,l)}}))})},this.renderGroupCell=e=>c("vega-table-head-cell",{key:e.key,ref:t=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(t,e)}},e.label),this.renderCell=(e,t)=>{var r;return t?c("vega-table-head-cell",{key:t.key||t.prop,textAlign:t.align,sorter:t.sorter,sortOrder:(r=this.sortersMap.get(t.prop))===null||r===void 0?void 0:r.getSortOrder(),sortConfig:this.sortConfig,breakpoint:t.breakpoint,ref:n=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(n,e),at.addUniqueObserverToNode(n,it,o=>{const i=o.detail.sortOrder;this.vegaTableSortController.handleHeadSortClick(t,i)})}},t.label):c("vega-table-head-cell",{key:e.key,ref:n=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(n,e)}})}}render(){return this.showHeader&&c("vega-table-head",null,this.renderHeaderRows())}}Me([s()],ye.prototype,"showHeader",void 0);Me([s()],ye.prototype,"sortersMap",void 0);Me([s()],ye.prototype,"sortConfig",void 0);Me([s()],ye.prototype,"columns",void 0);Me([s()],ye.prototype,"rowSelection",void 0);Me([s()],ye.prototype,"vegaTableSortController",void 0);Me([s()],ye.prototype,"vegaTableDataSourceController",void 0);Me([s()],ye.prototype,"vegaTableRenderInputController",void 0);var It=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},cr=function(a,e){var t={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&e.indexOf(r)<0&&(t[r]=a[r]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(a);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(a,r[n])&&(t[r[n]]=a[r[n]]);return t};class ct extends f{constructor(){super(...arguments),this.paginationRefCallback=e=>{at.addUniqueObserverToNode(e,Pe,this.handlePaginationChange),at.addUniqueObserverToNode(e,Po,this.handlePaginationPageSizeChange)},this.handlePaginationChange=e=>{var t,r;this.vegaTablePaginationController.setCurrentPage(e.detail);const n=new CustomEvent("vegaChange",{detail:e.detail});(r=(t=this.pagination).vegaChange)===null||r===void 0||r.call(t,n)},this.handlePaginationPageSizeChange=e=>{var t,r;this.vegaTablePaginationController.setPageSize(e.detail);const n=new CustomEvent("vegaPageSizeChange",{detail:e.detail});(r=(t=this.pagination).vegaPageSizeChange)===null||r===void 0||r.call(t,n)},this.getPaginationConfig=()=>{const e=this.pagination,{position:t}=e,r=cr(e,["position"]),n=Ie.formatCustom(this.pagination.extensions);return Object.assign(Object.assign({},r),{position:(n==null?void 0:n.length)>1?void 0:t||"bottom-center",pageSize:this.pageSize})}}render(){if(!this.pagination)return;const{pageSize:e,position:t,extensions:r,pageSizeSelectorOptions:n}=this.getPaginationConfig(),o=["vega-table-pagination-container",t],i=this.vegaTableDataSourceController.getCurrentData().length;return i>0&&c("div",{class:nt(o)},c("vega-pagination",{total:i,pageSize:e,current:this.currentPage,extensions:r,pageSizeSelectorOptions:n,ref:this.paginationRefCallback}))}}It([s()],ct.prototype,"pagination",void 0);It([s()],ct.prototype,"pageSize",void 0);It([s()],ct.prototype,"currentPage",void 0);It([s()],ct.prototype,"vegaTablePaginationController",void 0);It([s()],ct.prototype,"vegaTableDataSourceController",void 0);const pr=({scrollConfig:a={},ref:e,onScroll:t},r)=>{const{maxHeight:n}=a,o=rt(n),i=l=>{if(!o)return;const h=l.target;if(h.scrollTop===0){h.classList.remove("scrolled");return}h.scrollTop>0&&!h.classList.contains("scrolled")&&h.classList.add("scrolled"),t(l)};return c("div",{class:"vega-table-scrollable-container",style:{maxHeight:typeof n=="number"?`${n}px`:n},ref:e,onScroll:i},r)};var Zt=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Mt extends f{constructor(){super(...arguments),this.scrollContainerToTop=()=>{this.tableScrollContainerRef&&(this.tableScrollContainerRef.scrollTop=0)},this.notifyContentScrolling=()=>{this.isTemplateRenderMode&&g.notify(Fo,{host:this.host})}}watchCurrentPage(){this.scrollContainerToTop()}render(e){return c(pr,{scrollConfig:this.scrollConfig,ref:t=>this.setTableScrollContainerRef(t),onScroll:()=>this.notifyContentScrolling()},e)}setTableScrollContainerRef(e){this.tableScrollContainerRef=e}}Zt([s()],Mt.prototype,"scrollConfig",void 0);Zt([s()],Mt.prototype,"host",void 0);Zt([s()],Mt.prototype,"isTemplateRenderMode",void 0);Zt([p("watchCurrentPage")],Mt.prototype,"watchCurrentPage",null);var _=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class I extends f{constructor(){super(...arguments),this.renderInternalTable=()=>{const e=this.columns.some(t=>t.overflow)||Array.from(this.host.querySelectorAll("vega-table-cell")).some(t=>t.overflow);return c("table",{class:{"v-table-fixed":e,"show-edit-error":this.showEditError}},this.columns.length>0&&[this.vegaTableColGroupRenderer.render(),this.vegaTableHeaderRenderer.render()],(this.dataSource.length>0||this.editingRows.size>0)&&this.vegaTableBodyRenderer.render(),this.isTemplateRenderMode&&c("slot",null))},this.renderEmpty=()=>this.vegaTableDataSourceController.isCurrentDataEmpty()&&this.emptyDescription&&c("div",{class:"vega-table-empty-description"},this.translationSlimmer.t(this.emptyDescription))}render(){const e=nt([this.rowDivider&&"row-divider",this.columnDivider&&"column-divider",`density-${Ie.formatCustom(this.density)}`,this.striped&&"striped",this.columnStructureModel.hasGroupColumn()&&"is-group-table",(this.columnStructureModel.hasLeftPinnedColumn()||this.columnStructureModel.hasRightPinnedColumn())&&"is-pinned-table"]);return ae(c(re,{class:e},this.vegaTableScrollContainerRenderer.render(this.renderInternalTable()),this.vegaTablePaginationRenderer.render(),this.renderEmpty()),this.host)}}_([s()],I.prototype,"host",void 0);_([s()],I.prototype,"columns",void 0);_([s()],I.prototype,"emptyDescription",void 0);_([s()],I.prototype,"rowDivider",void 0);_([s()],I.prototype,"columnDivider",void 0);_([s()],I.prototype,"density",void 0);_([s()],I.prototype,"dataSource",void 0);_([s()],I.prototype,"striped",void 0);_([s()],I.prototype,"columnStructureModel",void 0);_([s()],I.prototype,"showEditError",void 0);_([s()],I.prototype,"vegaTableHeaderRenderer",void 0);_([s()],I.prototype,"vegaTableBodyRenderer",void 0);_([s()],I.prototype,"vegaTableColGroupRenderer",void 0);_([s()],I.prototype,"vegaTableScrollContainerRenderer",void 0);_([s()],I.prototype,"vegaTablePaginationRenderer",void 0);_([s()],I.prototype,"vegaTableDataSourceController",void 0);_([s()],I.prototype,"translationSlimmer",void 0);_([s({writable:!0})],I.prototype,"vegaTableChildrenController",void 0);_([s()],I.prototype,"isTemplateRenderMode",void 0);_([s()],I.prototype,"editingRows",void 0);var Lt=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class pt extends f{componentWillLoad(){var e,t;this.currentPage=((e=this.pagination)===null||e===void 0?void 0:e.current)||1,this.pageSize=((t=this.pagination)===null||t===void 0?void 0:t.pageSize)||10}watchPagination(){if(this.pagination){const{pageSize:e,current:t}=this.pagination;e>0&&(this.pageSize=e),t>0&&(this.currentPage=t)}}setPageSize(e){this.pageSize=e}setCurrentPage(e){this.currentPage=e}isRowVisible(e){if(!this.pagination)return!0;const t=this.pageSize,r=this.currentPage,n=(r-1)*t,o=r*t;return e>=n&&e<o}}Lt([s()],pt.prototype,"pagination",void 0);Lt([s({writable:!0})],pt.prototype,"pageSize",void 0);Lt([s({writable:!0})],pt.prototype,"currentPage",void 0);Lt([p("componentWillLoad")],pt.prototype,"componentWillLoad",null);Lt([p("watchPagination")],pt.prototype,"watchPagination",null);var B=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class D extends f{constructor(){super(...arguments),this.rowFormRefMap=new Map}getRowFormRefMap(){return this.rowFormRefMap}async saveAllEditRows(){if(!this.canMethodBeInvokedInCurrentState("saveAllEditRows"))return;const e=this.vegaTableDataSourceController.getCurrentData().slice();for(const t of this.editingRows.toArray()){const r=await this.getRowData(t),n=e.findIndex(o=>this.vegaTableDataSourceController.getRecordKey(o)===t);n>-1&&e.splice(n,1,r)}this.vegaTableDataSourceController.setDataSource([...e]),this.stopAllRowEditMode()}stopAllRowEditMode(){this.canMethodBeInvokedInCurrentState("stopAllRowEditMode")&&this.editingRows.clear()}watchDataSource(e){this.isEditableTable()&&this.getEditingRowsKey().forEach(t=>{e.find(r=>r.key===t)||this.stopRowEditMode(t)})}async saveEditRow(e){if(!this.canMethodBeInvokedInCurrentState("saveEditRow"))return;const t=await this.getRowData(e),r=this.vegaTableDataSourceController.getCurrentData().slice(),n=r.findIndex(o=>this.vegaTableDataSourceController.getRecordKey(o)===e);n>-1&&(r.splice(n,1,t),this.vegaTableDataSourceController.setDataSource([...r])),this.stopRowEditMode(e)}stopRowEditMode(e){this.canMethodBeInvokedInCurrentState("stopRowEditMode")&&this.editingRows.delete(e)}removeRow(e){this.canMethodBeInvokedInCurrentState("removeRow")&&this.vegaTableDataSourceController.setDataSource(this.vegaTableDataSourceController.getCurrentData().filter(t=>this.vegaTableDataSourceController.getRecordKey(t)!==e))}startRowEditMode(e){this.canMethodBeInvokedInCurrentState("startRowEditMode")&&this.editingRows.add(e)}addNewRow(e={}){var t;if(!this.canMethodBeInvokedInCurrentState("addNewRow"))return;const r=((t=e[this.rowKey])===null||t===void 0?void 0:t.toString())||$o(),n=Object.assign({},e);return n[this.rowKey]=r,this.vegaTableDataSourceController.setCurrentData([...this.vegaTableDataSourceController.getCurrentData(),n]),this.editingRows.add(r),r}async getRowsData(){if(!this.canMethodBeInvokedInCurrentState("getRowsData"))return;const e=this.vegaTableBodyRenderer.getTableFormRef(),t=e?await e.getValue():[];return[...this.vegaTableDataSourceController.getCurrentData().map(r=>{const n=t[`${D.rowFormKeyPrefix}${this.vegaTableDataSourceController.getRecordKey(r)}`];return Object.assign(Object.assign({},r),n)})]}getEditingRowsKey(){if(this.canMethodBeInvokedInCurrentState("getEditingRowsKey"))return this.editingRows.toArray()}getFormRef(e){if(this.canMethodBeInvokedInCurrentState("getFormRef"))return e?this.rowFormRefMap.get(e):this.vegaTableBodyRenderer.getTableFormRef()}async getRowData(e){if(!this.canMethodBeInvokedInCurrentState("getRowData"))return;const t=await this.rowFormRefMap.get(e).getValue();return Object.assign(Object.assign({},this.vegaTableDataSourceController.getRecordByKey(e)),t)}isEditing(e){return this.editingRows.has(e)}isEditableTable(){return this.columns.some(e=>e.editable)}canMethodBeInvokedInCurrentState(e){return this.isEditableTable()?!0:(lt.warn(`Method ${e} only works with editable tables`),!1)}}D.rowFormKeyPrefix="vega-table-row-form-";B([s()],D.prototype,"editingRows",void 0);B([s()],D.prototype,"rowKey",void 0);B([s()],D.prototype,"columns",void 0);B([s()],D.prototype,"vegaTableDataSourceController",void 0);B([s()],D.prototype,"vegaTableBodyRenderer",void 0);B([p("saveAllEditRows")],D.prototype,"saveAllEditRows",null);B([p("stopAllRowEditMode")],D.prototype,"stopAllRowEditMode",null);B([p("watchDataSource")],D.prototype,"watchDataSource",null);B([p("saveEditRow")],D.prototype,"saveEditRow",null);B([p("stopRowEditMode")],D.prototype,"stopRowEditMode",null);B([p("removeRow")],D.prototype,"removeRow",null);B([p("startRowEditMode")],D.prototype,"startRowEditMode",null);B([p("addNewRow")],D.prototype,"addNewRow",null);B([p("getRowsData")],D.prototype,"getRowsData",null);B([p("getEditingRowsKey")],D.prototype,"getEditingRowsKey",null);B([p("getFormRef")],D.prototype,"getFormRef",null);B([p("getRowData")],D.prototype,"getRowData",null);class Oo{constructor(e,t,r){this.prop=e,this.order=t,this.sorter=r}sort(e,t){const r=this.sorter(e,t);if(r!==0)return this.order==="asc"?r:-r}toExternalFormat(){return{prop:this.prop,order:this.order}}getSortOrder(){return this.order}}var ht=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class We extends f{constructor(){super(...arguments),this.clearSorter=()=>{this.sortersMap.size>0&&(this.sortersMap.clear(!1),this.changeEventEmitter.emit({sorters:[]}))}}watchColumns(){this.syncSortOrder()}handleHeadSortClick(e,t){this.sortConfig.type==="single"&&this.sortersMap.clear(),t?this.sortersMap.set(e.prop,new Oo(e.prop,t,e.sorter)):this.sortersMap.has(e.prop)&&this.sortersMap.delete(e.prop),e.sorter!=="event"&&this.vegaTableDataSourceController.setCurrentData(this.sortData(this.vegaTableDataSourceController.getDataSource(),Array.from(this.sortersMap.values()))),this.changeEventEmitter.emit({sorters:Array.from(this.sortersMap.values()).map(r=>r.toExternalFormat())})}syncSortOrder(){this.columns.filter(e=>rt(e.sorter)&&rt(e.sortOrder)).forEach(e=>{this.sortersMap.set(e.prop,new Oo(e.prop,e.sortOrder,e.sorter))})}sortData(e,t){return[...e].sort((r,n)=>{for(const o of t){const i=o.sort(r,n);if(rt(i))return i}return 0})}}ht([s({writable:!0})],We.prototype,"sortersMap",void 0);ht([s()],We.prototype,"columns",void 0);ht([s()],We.prototype,"changeEventEmitter",void 0);ht([s()],We.prototype,"vegaTableDataSourceController",void 0);ht([s()],We.prototype,"sortConfig",void 0);ht([p("watchColumns")],We.prototype,"watchColumns",null);var ut=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Ge extends f{constructor(){super(...arguments),this.getColResponsiveClass=e=>e.breakpoint&&ko(e.breakpoint)?`v-hidden ${e.breakpoint}:v-table-column`:""}render(){return c("colgroup",null,c("col",{style:{minWidth:this.paddingX[0],width:this.paddingX[0]}}),this.rowDraggable&&c("col",{class:"draggable-col"}),this.vegaTableRowSelectionController.getRowSelectionType()==="multiple"&&c("col",{style:{minWidth:"40px",width:"40px"}}),this.columnStructureModel.generateColumnConfigByLeaves(this.columns).map(e=>{if(e){const t=this.getColResponsiveClass(e);return c("col",{class:t,style:{width:e.width?e.width:null}})}else return c("col",null)}),this.hasExpandableRow&&c("col",{style:{minWidth:"40px",width:"40px"}}),c("col",{style:{minWidth:this.paddingX[1],width:this.paddingX[1]}}))}}ut([s()],Ge.prototype,"paddingX",void 0);ut([s()],Ge.prototype,"columnStructureModel",void 0);ut([s()],Ge.prototype,"columns",void 0);ut([s()],Ge.prototype,"hasExpandableRow",void 0);ut([s()],Ge.prototype,"rowDraggable",void 0);ut([s()],Ge.prototype,"vegaTableRowSelectionController",void 0);var A=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class M extends f{constructor(){super(...arguments),this.currentDataObserver=new vo({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:go("VEGA-TABLE-BODY","VEGA-TABLE-ROW"),callback:()=>{this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps()}}),this.rowStripedObserver=new vo({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:go("VEGA-TABLE-BODY","VEGA-TABLE-ROW","VEGA-TABLE-EXPAND-ROW"),callback:()=>{this.syncRowStates()}}),this.syncUpTableCurrentData=()=>{if(!this.isTemplateRenderMode)return;const e=Array.from(this.host.querySelectorAll("vega-table-row")).map(t=>({key:t.rowKey}));this.vegaTableDataSourceController.setCurrentData(e)},this.syncRowStates=()=>{const e=this.host.querySelectorAll("vega-table-row");e.forEach((r,n)=>{this.updateRowStriped(r,n),this.updateRowDivider(r,n===e.length-1)}),this.host.querySelectorAll("vega-table-expand-row").forEach((r,n)=>{this.updateRowStriped(r,n)})},this.syncUpTableHeadRowProps=()=>{var e;if(!this.isTemplateRenderMode)return;const t=this.host.querySelector("vega-table-head-row");t&&(t.hideSelectAll=t.hideSelectAll||((e=this.rowSelection)===null||e===void 0?void 0:e.hideSelectAll))}}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps(),this.syncRowStates(),this.syncUpTableFootVisibility()}componentDidLoad(){}clearSelection(){g.notify(pe,{host:this.host,checked:!1,noneChecked:!0})}watchCurrentData(){this.syncUpTableFootVisibility()}watchStriped(){this.syncRowStates()}watchRowDivider(){this.syncRowStates()}updateRowStriped(e,t){e.striped=this.striped&&t%2===1}updateRowDivider(e,t){e.rowDivider=this.rowDivider&&!t}syncUpTableFootVisibility(){const e=this.host.querySelector("vega-table-foot");e&&(this.vegaTableDataSourceController.isCurrentDataEmpty()?e.classList.add("v-hidden"):e.classList.remove("v-hidden"))}}A([s()],M.prototype,"host",void 0);A([s()],M.prototype,"columns",void 0);A([s()],M.prototype,"dataSource",void 0);A([s()],M.prototype,"currentData",void 0);A([s()],M.prototype,"rowSelection",void 0);A([s()],M.prototype,"striped",void 0);A([s()],M.prototype,"rowDivider",void 0);A([s()],M.prototype,"vegaTableDataSourceController",void 0);A([s()],M.prototype,"vegaTableRenderer",void 0);A([s()],M.prototype,"isTemplateRenderMode",void 0);A([d()],M.prototype,"currentDataObserver",void 0);A([d()],M.prototype,"rowStripedObserver",void 0);A([p("connectedCallback")],M.prototype,"connectedCallback",null);A([p("disconnectedCallback")],M.prototype,"disconnectedCallback",null);A([p("componentWillLoad")],M.prototype,"componentWillLoad",null);A([p("componentDidLoad")],M.prototype,"componentDidLoad",null);A([p("clearSelection")],M.prototype,"clearSelection",null);A([p("watchCurrentData")],M.prototype,"watchCurrentData",null);A([p("watchStriped")],M.prototype,"watchStriped",null);A([p("watchRowDivider")],M.prototype,"watchRowDivider",null);var Ue=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Le extends f{constructor(){super(...arguments),this.renderTableRowComponent=e=>{const{rowKey:t,index:r,record:n,isVisibleInCurrentPage:o}=e,i=this.vegaTableRenderInputController.getLeafRenderInputs(),l=this.vegaTableBodyColSpanController.resolveRow(n,r,i),h=[];return i.forEach((b,w)=>{const m=l[w];m&&h.push(this.vegaTableCellRenderer.render(b,n,r,m))}),c("vega-table-row",{class:{"v-hidden":!o},key:`vega-table-row-${t}`,rowKey:t,ref:b=>{at.addUniqueObserverToNode(b,it,()=>{this.rowClickEventEmitter.emit({record:n,index:r})})},striped:this.striped&&r%2===1,rowDivider:this.rowDivider&&!e.isLastRow},h)}}render(e,t){const{rowKey:r}=e;return t?c("vega-form",{key:`vega-table-row-form-${r}`,"data-vega-form":`${D.rowFormKeyPrefix}${r}`,ref:n=>this.vegaTableEditableController.getRowFormRefMap().set(r,n)},this.renderTableRowComponent(e)):this.renderTableRowComponent(e)}}Ue([s()],Le.prototype,"rowClickEventEmitter",void 0);Ue([s()],Le.prototype,"vegaTableEditableController",void 0);Ue([s()],Le.prototype,"vegaTableCellRenderer",void 0);Ue([s()],Le.prototype,"vegaTableBodyColSpanController",void 0);Ue([s()],Le.prototype,"striped",void 0);Ue([s()],Le.prototype,"rowDivider",void 0);Ue([s()],Le.prototype,"vegaTableRenderInputController",void 0);var qe=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class ke extends f{constructor(){super(...arguments),this.currentDataObserver=new vo({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:go("VEGA-TABLE-ROW"),callback:()=>{this.isTemplateRenderMode=this.checkIsTemplateRenderMode(this.host)}}),this.checkIsTemplateRenderMode=e=>Array.from(e.children).some(t=>t.tagName.startsWith("VEGA-TABLE-"))}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.isTemplateRenderMode=this.checkIsTemplateRenderMode(this.host)}componentDidLoad(){}}qe([s()],ke.prototype,"host",void 0);qe([s({writable:!0})],ke.prototype,"isTemplateRenderMode",void 0);qe([d()],ke.prototype,"currentDataObserver",void 0);qe([p("connectedCallback")],ke.prototype,"connectedCallback",null);qe([p("disconnectedCallback")],ke.prototype,"disconnectedCallback",null);qe([p("componentWillLoad")],ke.prototype,"componentWillLoad",null);qe([p("componentDidLoad")],ke.prototype,"componentDidLoad",null);const hr=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the table",payloadValue:a=>a.dataSource.length===0},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the table",payloadValue:a=>a.dataSource.length>0}];class ce{constructor(e,t,r,n,o){this.key=e,this.level=t,this.parent=r,this.label=n,this.pinned=o,this.leaves=[],this.orderedChildren=[],this.iteratorCacheMap=new Map}static from(e,t){const r=new ce(this.ROOT_KEY,ce.ROOT_LEVEL);return t?(r.children=this.fromGroupColumns(r,t),r):e?(r.children=e.map(n=>new ce(n.key||n.prop||n.label,0,r,null,n.pinned)),r):(r.children=[],r)}static fromGroupColumns(e,t,r=0){return t&&t.length>0?t.map(n=>{if(Go(n)){const o=new ce(n.key,r,e,n.label,n.pinned);return o.children=this.fromGroupColumns(o,n.children,r+1),o}else return new ce(n.key,r,e)}):[]}generateColumnConfigByLeaves(e){return this.getLeaves().map(t=>e.find(r=>r.key===t.key||r.prop===t.key||r.label===t.key))}getMaxDepth(){const e=this.dfsIterator();return e.length===0?0:Math.max(...e.map(t=>t.level))+1}hasGroupColumn(){return!!this.children.find(e=>!e.isLeaf())}hasLeftPinnedColumn(){return!!this.children.find(e=>e.pinned==="left")}hasRightPinnedColumn(){return!!this.children.find(e=>e.pinned==="right")}isLeaf(){return!this.children||this.children.length===0}iterator(e="dfs"){return e==="dfs"?this.dfsIterator():[]}getLeaves(){if(this.leaves.length>0)return this.leaves;const e=this.dfsIterator().filter(t=>t.isLeaf());return this.leaves=e,e}getOrderedChildren(){return this.isRoot()?this.orderedChildren:this.children}orderChildrenByPinned(){if(!this.isRoot())return this.children;if(this.orderedChildren.length>0)return this.orderedChildren;const e=[],t=[],r=[];this.children.forEach(o=>{o.pinned==="left"?e.push(o):o.pinned==="right"?r.push(o):t.push(o)});const n=[...e,...t,...r];return this.orderedChildren=n,n}isRoot(){return this.level===ce.ROOT_LEVEL}dfsIterator(){if(this.iteratorCacheMap.has("dfs"))return this.iteratorCacheMap.get("dfs");const e=[],t=this.orderChildrenByPinned();return this.isRoot()||e.push(this),t&&t.length>0&&t.forEach(r=>{e.push(...r.dfsIterator())}),this.iteratorCacheMap.set("dfs",e),e}}ce.ROOT_LEVEL=-1;ce.ROOT_KEY="#root-model#";var Xe=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class je extends f{componentWillLoad(){this.setColumnStructureModel()}watchColumns(){this.setColumnStructureModel()}watchGroupColumns(){this.setColumnStructureModel()}setColumnStructureModel(){this.columnStructureModel=ce.from(this.columns,this.groupColumns)}}Xe([s()],je.prototype,"host",void 0);Xe([s()],je.prototype,"columns",void 0);Xe([s()],je.prototype,"groupColumns",void 0);Xe([s({writable:!0})],je.prototype,"columnStructureModel",void 0);Xe([p("componentWillLoad")],je.prototype,"componentWillLoad",null);Xe([p("watchColumns")],je.prototype,"watchColumns",null);Xe([p("watchGroupColumns")],je.prototype,"watchGroupColumns",null);var _e=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Re extends f{constructor(){super(...arguments),this.headRowRenderInputMap=new Map,this.headCellRenderInputMap=new Map,this.pinnedColumnBodyCellRenderInputMap=new Map,this.cellRenderInputChangeTaskQueue=new jo}connectedCallback(){this.registerRenderInputRICObserver()}disconnectedCallback(){this.unRegisterRenderInputRICObserver()}componentWillLoad(){this.setRenderInputModel()}async componentDidRender(){await this.cellRenderInputChangeTaskQueue.runTask()}async watchColumnStructureModel(){this.setRenderInputModel(),this.pinnedColumnBodyCellRenderInputMap.clear(),await this.cellRenderInputChangeTaskQueue.enqueue({run:async()=>{g.notify(x.getSubject(this.host,ho),{})}},!1)}getLeafRenderInputs(){return this.leavesRenderInputModels}getHeadRenderInputs(){return this.columnRenderInputModels}addHeadRowRenderInputMap(e,t){this.headRowRenderInputMap.set(e,t)}addHeadCellRenderInputMap(e,t){this.headCellRenderInputMap.set(e,t)}addCellRenderInputMap(e,t){(e&&["left","right"].includes(t.pinned)||t.isNoPinnedEnd)&&this.pinnedColumnBodyCellRenderInputMap.set(e,t)}getHeadCellRenderInputMap(){return this.headCellRenderInputMap}getPinnedColumnBodyCellRenderInputMap(){return this.pinnedColumnBodyCellRenderInputMap}registerRenderInputRICObserver(){K.register(x.getSubject(this.host,po),e=>this.headRowRenderInputMap.get(e)),K.register(x.getSubject(this.host,co),e=>this.headCellRenderInputMap.get(e)),K.register(x.getSubject(this.host,so),e=>this.pinnedColumnBodyCellRenderInputMap.get(e))}unRegisterRenderInputRICObserver(){K.unRegister(x.getSubject(this.host,po)),K.unRegister(x.getSubject(this.host,co)),K.unRegister(x.getSubject(this.host,so))}setRenderInputModel(){this.columnRenderInputModels=Dt.from(this.columnStructureModel),this.leavesRenderInputModels=this.columnRenderInputModels.flatMap(e=>e.getLeaves())}}_e([s()],Re.prototype,"host",void 0);_e([s()],Re.prototype,"columnStructureModel",void 0);_e([s()],Re.prototype,"vegaTableColGroupRenderer",void 0);_e([p("connectedCallback")],Re.prototype,"connectedCallback",null);_e([p("disconnectedCallback")],Re.prototype,"disconnectedCallback",null);_e([p("componentWillLoad")],Re.prototype,"componentWillLoad",null);_e([p("componentDidRender")],Re.prototype,"componentDidRender",null);_e([p("watchColumnStructureModel")],Re.prototype,"watchColumnStructureModel",null);var Ae=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Ce extends f{constructor(){super(...arguments),this.pageResizeObserverSlimmer=new we({target:()=>this.host.shadowRoot.querySelector("table"),isDeferred:!0,callback:async()=>{await this.host.componentOnReady().then(()=>{this.updateTableRowPinnedPosition(),this.updateTableCellPinnedPosition()})}}),this.previouslyStyledCells=new Set,this.dynamicRightDividerCells=new Set,this.dynamicLeftDividerCells=new Set,this.dynamicHideRightBorderCells=new Set,this.clearPinnedPositionsTaskQueue=new jo(1)}componentDidLoad(){}async componentDidRender(){await this.clearPinnedPositionsTaskQueue.runTask(),this.updateTableRowPinnedPosition();const e=this.updateTableCellPinnedPosition();e.length>0&&(await Promise.all(e.map(t=>t.componentOnReady())),this.updateTableCellPinnedPosition())}watchColumnStructureModel(){this.clearPinnedPositionsTaskQueue.enqueue({run:async()=>{this.clearAllPinnedPositions()}},!1)}updateTableCellPinnedPosition(){if(!this.columnStructureModel.hasLeftPinnedColumn()&&!this.columnStructureModel.hasRightPinnedColumn())return[];if(this.dynamicRightDividerCells.forEach(O=>O.classList.remove("right-divider")),this.dynamicRightDividerCells.clear(),this.dynamicLeftDividerCells.forEach(O=>O.classList.remove("left-divider")),this.dynamicLeftDividerCells.clear(),this.dynamicHideRightBorderCells.forEach(O=>O.classList.remove("hide-right-border")),this.dynamicHideRightBorderCells.clear(),!this.host.shadowRoot.querySelector("vega-table-head-row"))return[];const t=this.vegaTableRenderInputController.getHeadCellRenderInputMap(),r=this.vegaTableRenderInputController.getPinnedColumnBodyCellRenderInputMap(),[n,o]=this.getRowShadowThWidths(),i=this.getLeafWidths();let l=null,h=null,b=null;t.forEach((O,R)=>{var C;const L=(C=R.shadowRoot)===null||C===void 0?void 0:C.querySelector("th, td"),ot=L?L.getBoundingClientRect().width>0:!1;this.updateCellPinnedPosition(O,R,n,i,o),ot&&O.pinned==="left"&&(l=L),ot&&O.pinned==="right"&&!h&&(h=L),ot&&O.pinned==="right"&&(b=L)}),r.forEach((O,R)=>{R!=null&&R.isConnected||r.delete(R)});const w=new Map,m=new Map,y=new Map,De=[];if(r.forEach((O,R)=>{var C;const L=(C=R.shadowRoot)===null||C===void 0?void 0:C.querySelector("th, td"),ot=L?L.getBoundingClientRect().width>0:!1;if(["left","right"].includes(O.pinned)&&!L){De.push(R);return}if(this.updateCellPinnedPosition(O,R,n,i,o),ot&&O.pinned==="left"){const Oe=R.closest("vega-table-row");Oe&&w.set(Oe,L)}if(ot&&O.pinned==="right"){const Oe=R.closest("vega-table-row");Oe&&!m.has(Oe)&&m.set(Oe,L),Oe&&y.set(Oe,L)}}),l&&!l.classList.contains("right-divider")){const R=this.vegaTableRenderInputController.getLeafRenderInputs().find(C=>C.isLeftEndPinned);R&&i[R.columnIndex]===0&&(l.classList.add("right-divider"),this.dynamicRightDividerCells.add(l),w.forEach(C=>{C.classList.contains("right-divider")||(C.classList.add("right-divider"),this.dynamicRightDividerCells.add(C))}))}if(h&&!h.classList.contains("left-divider")){const R=this.vegaTableRenderInputController.getLeafRenderInputs().find(C=>C.isRightStartPinned);R&&i[R.columnIndex]===0&&(h.classList.add("left-divider"),this.dynamicLeftDividerCells.add(h),m.forEach(C=>{C.classList.contains("left-divider")||(C.classList.add("left-divider"),this.dynamicLeftDividerCells.add(C))}))}if(b&&!b.classList.contains("hide-right-border")){const R=this.vegaTableRenderInputController.getLeafRenderInputs().filter(L=>L.pinned==="right"),C=R[R.length-1];C&&i[C.columnIndex]===0&&(b.classList.add("hide-right-border"),this.dynamicHideRightBorderCells.add(b),y.forEach(L=>{L.classList.contains("hide-right-border")||(L.classList.add("hide-right-border"),this.dynamicHideRightBorderCells.add(L))}))}return this.syncColspanForHiddenColumns(i,r),De}getRowShadowThWidths(){const t=this.host.shadowRoot.querySelector("vega-table-head-row").shadowRoot,r=t.querySelector("th:first-of-type"),n=t.querySelector(".vega-table-draggable-column"),o=t.querySelector(".vega-table-selection-column"),i=t.querySelector(".vega-table-expand-action-column"),l=t.querySelector("th:last-of-type");if(r){const h=r.getBoundingClientRect().width+((o==null?void 0:o.getBoundingClientRect().width)||0)+((n==null?void 0:n.getBoundingClientRect().width)||0),b=((i==null?void 0:i.getBoundingClientRect().width)||0)+l.getBoundingClientRect().width;return[h,b]}return[0,0]}getLeafWidths(){const e=this.vegaTableRenderInputController.getHeadCellRenderInputMap();return this.vegaTableRenderInputController.getLeafRenderInputs().map(r=>{var n;for(const[o,i]of e.entries())if(r===i)return((n=o.shadowRoot.querySelector("th, td"))===null||n===void 0?void 0:n.getBoundingClientRect().width)||0})}syncColspanForHiddenColumns(e,t){e.every(r=>r===0)||t.forEach((r,n)=>{var o;const i=n.colSpan||1;if(i<=1)return;const l=(o=n.shadowRoot)===null||o===void 0?void 0:o.querySelector("td");if(!l)return;const h=e.slice(r.columnIndex,r.columnIndex+i),b=Math.max(1,h.filter(w=>w>0).length);l.setAttribute("colspan",String(b))})}updateCellPinnedPosition(e,t,r,n,o){if(["left","right"].includes(e.pinned)){const i=t.shadowRoot.querySelector("th, td");if(e.pinned==="left"){const l=r+n.slice(0,e.columnIndex).reduce((h,b)=>h+b,0);this.updatePinnedPosition(i,"left",l)}if(e.pinned==="right"){const l=rt(e.colSpan)?e.colSpan:t.colSpan||1,h=o+n.slice(e.columnIndex+l).reduce((b,w)=>b+w,0);this.updatePinnedPosition(i,"right",h)}}}updateTableRowPinnedPosition(){const e=this.columnStructureModel.hasLeftPinnedColumn(),t=this.columnStructureModel.hasRightPinnedColumn(),r=this.host.getBoundingClientRect().width,n=So(this.paddingX[0]),o=So(this.paddingX[1]),i=r-n-o-2;this.host.shadowRoot.querySelectorAll("vega-table-head-row, vega-table-row, vega-table-expand-row").forEach(l=>{const h=l.shadowRoot;if(e){const b=h.querySelector("th:first-of-type, td:first-of-type"),w=h.querySelector(".vega-table-selection-column"),m=h.querySelector(".vega-table-draggable-column");this.updatePinnedPosition(b,"left",0),this.updatePinnedPosition(m,"left",n);const y=(m==null?void 0:m.getBoundingClientRect().width)||0;this.updatePinnedPosition(w,"left",n+y)}if(t){const b=h.querySelector(".vega-table-expand-action-column"),w=h.querySelector("th:last-of-type, td:last-of-type");this.updatePinnedPosition(b,"right",o),this.updatePinnedPosition(w,"right",0)}if(t||e){const b=h.querySelector(".vega-table-expanded-row-slot-container");if(b){const w=b.querySelector(".expanded-row-slot-inner");this.updatePinnedPosition(w,"left",n),w.style.width=`${i}px`}}})}clearAllPinnedPositions(){this.previouslyStyledCells.forEach(e=>{e.style.position="",e.style.zIndex="",e.style.left="",e.style.right="",e.classList.contains("expanded-row-slot-inner")&&(e.style.width="")}),this.dynamicRightDividerCells.forEach(e=>e.classList.remove("right-divider")),this.dynamicRightDividerCells.clear(),this.dynamicLeftDividerCells.forEach(e=>e.classList.remove("left-divider")),this.dynamicLeftDividerCells.clear(),this.dynamicHideRightBorderCells.forEach(e=>e.classList.remove("hide-right-border")),this.dynamicHideRightBorderCells.clear(),this.previouslyStyledCells.clear()}updatePinnedPosition(e,t,r){e&&(e.style.position="sticky",e.style.zIndex="1",e.style[t]=`${r}px`,this.previouslyStyledCells.add(e))}}Ae([s()],Ce.prototype,"host",void 0);Ae([s()],Ce.prototype,"columnStructureModel",void 0);Ae([s()],Ce.prototype,"paddingX",void 0);Ae([s()],Ce.prototype,"vegaTableRenderInputController",void 0);Ae([d()],Ce.prototype,"pageResizeObserverSlimmer",void 0);Ae([p("componentDidLoad")],Ce.prototype,"componentDidLoad",null);Ae([p("componentDidRender")],Ce.prototype,"componentDidRender",null);Ae([p("watchColumnStructureModel")],Ce.prototype,"watchColumnStructureModel",null);var fo=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Ye extends f{constructor(e){super(),this.activePointerId=null,this.activeItem=null,this.isDragging=!1,this.startX=0,this.startY=0,this.dragFromIndex=null,this.dragToIndex=null,this.currentOverItem=null,this.currentOverIndex=null,this.activeItemHeight=0,this.cachedItems=[],this.cachedItemDraggableMap=new WeakMap,this.onPointerDown=t=>{if(t.button!==0)return;const r=this.getItemFromComposedPath(t,!0);r&&(this.startDrag(r,t),t.preventDefault())},this.onPointerMove=t=>{!this.isCurrentPointEvent(t)||!this.hasCrossedDragThreshold(t)||(this.beginDragging(),this.syncActiveVisual(t),this.updateDropTarget(t),this.emitDrag(),t.preventDefault())},this.onPointerUp=t=>{this.isCurrentPointEvent(t)&&this.finishDrag()},this.onPointerCancel=t=>{t.pointerId===this.activePointerId&&this.resetDragState()},this.entry=e}connectedCallback(){this.init()}disconnectedCallback(){this.destroy()}componentDidLoad(){this.init()}watchIsDraggable(){this.isDraggable?this.init():this.destroy()}init(){this.isDraggable&&this.listenPointerEvents()}destroy(){this.removePointerListeners(),this.resetDragState()}listenPointerEvents(){const e=this.getContainer();e&&(e.addEventListener("pointerdown",this.onPointerDown),window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerCancel))}removePointerListeners(){const e=this.getContainer();e&&e.removeEventListener("pointerdown",this.onPointerDown),window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerCancel)}startDrag(e,t){this.activePointerId=t.pointerId,this.activeItem=e,this.isDragging=!1,this.startX=t.clientX,this.startY=t.clientY,this.cacheItems(),this.dragFromIndex=this.getItems().indexOf(e),this.dragToIndex=this.dragFromIndex,this.currentOverItem=e,this.currentOverIndex=this.dragFromIndex,this.activeItemHeight=this.getVisualElement(e).getBoundingClientRect().height}beginDragging(){this.isDragging||this.dragFromIndex===null||!this.activeItem||(this.isDragging=!0,this.onDragDrop("start"))}syncActiveVisual(e){if(!this.activeItem)return;const t=this.getVisualElement(this.activeItem),r=e.clientY-this.startY;t.style.transform=`translateY(${r}px)`,t.style.position="relative",t.style.pointerEvents="none",t.style.boxShadow="0 4px 8px rgba(0, 0, 0, 0.15)",ve.setZIndex(t,"top")}updateDropTarget(e){if(this.dragFromIndex===null||!this.activeItem)return;const t=this.getItemFromComposedPath(e,!1);if(!t){this.emitDragLeave(this.currentOverIndex,this.currentOverItem),this.currentOverItem=null,this.currentOverIndex=null;return}const r=this.getItemIndex(t),n=this.getResolvedDropIndex(t,e.clientY);this.currentOverItem!==t?(this.emitDragLeave(this.currentOverIndex,this.currentOverItem),this.currentOverItem=t,this.currentOverIndex=r,this.onDragDrop("enter")):this.currentOverIndex=r,this.dragToIndex=n,this.onDragDrop("over"),this.applyLayoutTransforms()}finishDrag(){var e,t,r;const n=this.dragFromIndex,o=this.dragToIndex,i=this.isDragging&&n!=null&&n!==o,l=n!=null&&(e=this.getItems().at(n))!==null&&e!==void 0?e:null,h=this.currentOverItem;this.isDragging&&n!=null&&l&&this.onDragDrop("drop"),this.resetDragState(),i&&n!=null&&l&&((r=(t=this.entry).onDragDrop)===null||r===void 0||r.call(t,{status:"end",options:{fromIndex:n,fromItem:l,toIndex:o,toItem:h}}))}resetDragState(){if(this.cachedItems.forEach(e=>{const t=this.cachedItemDraggableMap.get(e);if(!t)return;const{visualElement:r,inlineStyle:n}=t;n==null?r.removeAttribute("style"):r.setAttribute("style",n)}),this.activeItem){const e=this.getVisualElement(this.activeItem);ve.removeZIndex(e,"top")}this.activePointerId=null,this.activeItem=null,this.isDragging=!1,this.dragFromIndex=null,this.dragToIndex=null,this.currentOverItem=null,this.currentOverIndex=null,this.activeItemHeight=0,this.cachedItemDraggableMap=new WeakMap,this.cachedItems=[]}getContainer(){return this.entry.container()}queryItems(){const e=this.getContainer();return e?Array.from(e.querySelectorAll(this.entry.itemSelector)):[]}getItems(){return this.cachedItems.length>0?this.cachedItems:this.queryItems()}getItemIndex(e){return this.getItems().indexOf(e)}getVisualElement(e){const t=this.cachedItemDraggableMap.get(e);return t?t.visualElement:this.resolveVisualElement(e)}resolveVisualElement(e){var t,r;const n=this.entry.visualElementSelector;if(!n)return e;const o=(t=e.shadowRoot)===null||t===void 0?void 0:t.querySelector(n);return o||((r=e.querySelector(n))!==null&&r!==void 0?r:e)}cacheItems(){this.cachedItemDraggableMap=new WeakMap,this.cachedItems=this.queryItems(),this.cachedItems.forEach(e=>{const t=this.resolveVisualElement(e);this.cachedItemDraggableMap.set(e,{visualElement:t,inlineStyle:t.getAttribute("style")})})}getItemFromComposedPath(e,t=!1){const r=this.entry.itemSelector,n=this.entry.triggerElementSelector;let o=null,i=!n;for(const l of e.composedPath())if(l instanceof HTMLElement&&(!o&&l.matches(r)&&(o=l),!i&&n&&l.matches(n)&&(i=!0),o&&i))break;return!o||t&&!i?null:o}applyLayoutTransforms(){if(this.dragFromIndex==null||this.dragToIndex==null||this.activeItemHeight===0)return;const e=this.dragFromIndex,t=this.dragToIndex,r=e<t?-this.activeItemHeight:this.activeItemHeight;this.getItems().forEach((n,o)=>{if(n===this.activeItem)return;const i=this.getVisualElement(n),l=e<t?o>e&&o<=t:o>=t&&o<e;i.style.transform=l?`translateY(${r}px)`:""})}getResolvedDropIndex(e,t){const r=this.getItemIndex(e),n=this.dragFromIndex;if(r<0||n==null||r===n)return r;const o=this.getVisualElement(e).getBoundingClientRect(),i=t>o.top+o.height/2;return r>n?i?r:r-1:i?r+1:r}isCurrentPointEvent(e){return this.activePointerId!==null&&this.activePointerId===e.pointerId}hasCrossedDragThreshold(e){if(this.isDragging)return!0;const t=Math.abs(e.clientX-this.startX),r=Math.abs(e.clientY-this.startY);return t+r>=Ye.DRAG_THRESHOLD}emitDrag(){this.dragFromIndex===null||!this.activeItem||this.onDragDrop("drag")}emitDragLeave(e,t){e===null||!t||this.onDragDrop("leave")}onDragDrop(e){var t,r;this.dragFromIndex==null||!this.activeItem||(r=(t=this.entry).onDragDrop)===null||r===void 0||r.call(t,{status:e,options:{fromIndex:this.dragFromIndex,fromItem:this.activeItem,toIndex:this.dragToIndex,toItem:this.currentOverItem}})}}Ye.DRAG_THRESHOLD=4;fo([p("connectedCallback")],Ye.prototype,"connectedCallback",null);fo([p("disconnectedCallback")],Ye.prototype,"disconnectedCallback",null);fo([p("componentDidLoad")],Ye.prototype,"componentDidLoad",null);var Z=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class $ extends f{constructor(){super(...arguments),this.draggableElementSlimmer=zo($,Ye,[{mapFrom:"rowDraggable",mapTo:"isDraggable"}],[{mapFrom:"watchRowDraggable",mapTo:"watchIsDraggable"}],[{container:this.getDragContainer.bind(this),itemSelector:"vega-table-row",triggerElementSelector:"td.vega-table-draggable-column",visualElementSelector:"tr.vega-table-row",onDragDrop:this.onDragDrop.bind(this)}])}connectedCallback(){}disconnectedCallback(){}componentDidLoad(){}watchRowDraggable(){}getDragContainer(){return this.isTemplateRenderMode?this.host.querySelector("vega-table-body"):this.vegaTableBodyRenderer.getTableBodyRef()}onDragDrop(e){this.rowDragDropEventEmitter.emit(e).defaultPrevented||e.status==="end"&&this.onDragEnd(e)}onDragEnd(e){const t=e.options.fromIndex,r=e.options.toIndex;if(this.vegaTableSortController.clearSorter(),this.isTemplateRenderMode){const n=Array.from(this.host.querySelectorAll("vega-table-row")),o=this.host.querySelector("vega-table-body");t>r?o.insertBefore(n[t],n[r]):o.insertBefore(n[t],n[r].nextSibling)}else{const o=[...this.vegaTableDataSourceController.getCurrentData()],[i]=o.splice(t,1);o.splice(r,0,i),this.vegaTableDataSourceController.setCurrentData(o)}}}Z([s()],$.prototype,"rowDraggable",void 0);Z([s()],$.prototype,"host",void 0);Z([s()],$.prototype,"vegaTableDataSourceController",void 0);Z([s()],$.prototype,"isTemplateRenderMode",void 0);Z([s()],$.prototype,"vegaTableBodyRenderer",void 0);Z([s()],$.prototype,"vegaTableSortController",void 0);Z([s()],$.prototype,"rowDragDropEventEmitter",void 0);Z([d()],$.prototype,"draggableElementSlimmer",void 0);Z([p("connectedCallback")],$.prototype,"connectedCallback",null);Z([p("disconnectedCallback")],$.prototype,"disconnectedCallback",null);Z([p("componentDidLoad")],$.prototype,"componentDidLoad",null);Z([p("watchRowDraggable")],$.prototype,"watchRowDraggable",null);const ur=':host{display:block}table{width:100%;border-spacing:0}.vega-table-empty-description{text-align:center;padding:24px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}table.v-table-fixed{table-layout:fixed}.vega-table-scrollable-container{overflow:auto}.vega-table-scrollable-container vega-table-head{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.vega-table-scrollable-container.scrolled vega-table-head.fixed-header,.vega-table-scrollable-container.scrolled ::slotted(vega-table-head.fixed-header){box-shadow:0px 4px 0px rgba(0, 0, 0, 0.1);}.vega-table-scrollable-container.scrolled vega-table-foot.fixed-footer::after,.vega-table-scrollable-container.scrolled ::slotted(vega-table-foot.fixed-footer)::after{content:"";position:absolute;top:0;left:0;width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}vega-form{display:contents}table:not(.show-edit-error) *::part(field-error-message){display:none !important}.vega-table-pagination-container{margin-top:24px}.vega-table-pagination-container.bottom-center{display:flex;justify-content:center}.vega-table-pagination-container.bottom-right{display:flex;justify-content:flex-end}.vega-table-pagination-container.bottom-left{display:flex;justify-content:flex-start}col.v-hidden{display:none;visibility:collapse}@media (min-width: 320px){col.S\\:v-table-column{display:table-column;visibility:visible}}@media (min-width: 768px){col.M\\:v-table-column{display:table-column;visibility:visible}}@media (min-width: 1024px){col.L\\:v-table-column{display:table-column;visibility:visible}}@media (min-width: 1440px){col.XL\\:v-table-column{display:table-column;visibility:visible}}:host(.is-group-table) .vega-table-scrollable-container{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-width:1px;border-style:solid}:host(.is-group-table.density-relaxed) .vega-table-scrollable-container{border-radius:12px}:host(.is-group-table.density-default) .vega-table-scrollable-container{border-radius:12px}:host(.is-group-table.density-compact) .vega-table-scrollable-container{border-radius:4px}:host(.is-pinned-table) table{min-width:max-content}.draggable-col{min-width:16px;width:16px}';var v=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const u=class{constructor(a){te(this,a),this.vegaChange=T(this,"vegaChange",7),this.change=T(this,"change",7),this.vegaRowClick=T(this,"vegaRowClick",7),this.rowClick=T(this,"rowClick",7),this.vegaRowExpand=T(this,"vegaRowExpand",7),this.rowExpand=T(this,"rowExpand",7),this.vegaSelectChange=T(this,"vegaSelectChange",7),this.selectChange=T(this,"selectChange",7),this.vegaSelectAllChange=T(this,"vegaSelectAllChange",7),this.selectAllChange=T(this,"selectAllChange",7),this.vegaRowSelect=T(this,"vegaRowSelect",7),this.rowSelect=T(this,"rowSelect",7),this.vegaRowSelectAll=T(this,"vegaRowSelectAll",7),this.rowSelectAll=T(this,"rowSelectAll",7),this.vegaRowDragDrop=T(this,"vegaRowDragDrop",7),this.rowDragDrop=T(this,"rowDragDrop",7),this.globalSlimmers={},this.translationSlimmer=new tr,this.vegaTableRenderModeController=new ke,this.vegaTableColumnStructureModelController=new je,this.vegaTableRenderInputController=new Re,this.vegaTablePinnedRenderer=new Ce,this.vegaTableRenderer=new I,this.vegaTableHeaderRenderer=new ye,this.vegaTableBodyRenderer=new Y,this.vegaTableRowRenderer=new Le,this.vegaTableCellRenderer=new dt,this.vegaTableBodyColSpanController=new Ao,this.vegaTablePaginationRenderer=new ct,this.vegaTableScrollContainerRenderer=new Mt,this.vegaTableRowSelectionController=new P,this.vegaTableDataSourceController=new X,this.vegaTablePaginationController=new pt,this.vegaTableEditableController=new D,this.vegaTableSortController=new We,this.vegaTableColGroupRenderer=new Ge,this.vegaTableChildrenController=new M,this.vegaTableRowDraggableController=new $,this.vegaTableExpandRowController=new S,this.pageResizeObserverSlimmer=new we,this.rowSelectionNotifySlimmer=F(u,"rowSelection","watchRowSelection"),this.expandableRowsNotifySlimmer=F(u,"expandableRows","watchExpandableRows"),this.hasExpandableRowNotifySlimmer=F(u,"hasExpandableRow","watchHasExpandableRow"),this.paddingXNotifySlimmer=F(u,"paddingX","watchPaddingX"),this.rowClickableNotifySlimmer=F(u,"rowClickable","watchRowClickable"),this.scrollConfigNotifySlimmer=F(u,"scrollConfig","watchScrollConfig"),this.eventsPrevent=new st([Pe,Po,Io],()=>this.host),this.changeEventEmitter=ee(u,Pe),this.selectChangeEventEmitter=ee(u,Uo),this.selectAllChangeEventEmitter=ee(u,qo),this.rowClickEventEmitter=ee(u,Xo),this.rowExpandEventEmitter=ee(u,Yo),this.rowDragDropEventEmitter=ee(u,Zo),this.rowDividerNotifySlimmer=F(u,"rowDivider","watchRowDivider"),this.columnDividerNotifySlimmer=F(u,"columnDivider","watchColumnDivider"),this.densityNotifySlimmer=F(u,"density","watchDensity"),this.isTemplateRenderModeNotifySlimmer=F(u,"isTemplateRenderMode","watchTemplateRenderMode"),this.currentDataNotifySlimmer=F(u,"currentData","watchCurrentData"),this.rowDraggableNotifySlimmer=F(u,"rowDraggable","watchRowDraggable"),this.vegaComponentUsageRuntimeMetricsSlimmer=new ne(hr),this.rowSelectEventEmitter=ee(u,Qo),this.rowSelectAllEventEmitter=ee(u,Jo),this.selectedRowKeySet=new Tt(new Set,e=>{this.selectedRowKeySet=e}),this.expandedRowKeySet=new Tt(new Set,e=>{this.expandedRowKeySet=e}),this.currentBreakpoint=me(),this.sortersMap=new er(new Map,e=>{this.sortersMap=e}),this.currentData=[],this.currentPage=1,this.pageSize=10,this.editingRows=new Tt(new Set,e=>{this.editingRows=e}),this.isSelectedAll=!1,this.expandableRows=[],this.hasExpandableRow=!1,this.columns=[],this.dataSource=[],this.rowSelection=null,this.rowExpandable=!1,this.rowClickable=!1,this.rowDraggable=!1,this.rowDivider=!1,this.columnDivider=!1,this.striped=!0,this.density="default",this.paddingX=["8px","8px"],this.showHeader=!0,this.pagination=null,this.emptyDescription="There is no data to display",this.rowKey="key",this.sortConfig={type:"multiple"},this.showEditError=!1}watchSelectedRowKeySet(){}watchSortersMap(){}watchCurrentData(a,e){}watchCurrentPage(){}watchSelectedAll(){}watchTemplateRenderMode(){}watchColumnStructureModel(){}watchExpandableRows(){}watchHasExpandableRow(){}watchColumns(){}watchGroupColumns(){}watchDataSource(){}watchRowSelection(){}watchRowExpandable(){}watchRowClickable(){}watchRowDraggable(){}watchRowDivider(){}watchColumnDivider(){}watchStriped(){}watchDensity(){}watchPaddingX(){}watchPagination(){}watchScrollConfig(){}async openExpandRow(a){}async closeExpandRow(a){}async closeAllExpandRow(){}async toggleExpandRow(a){}async clearSelection(){}async getSelection(){return ze()}async setSelection(a){}async startRowEditMode(a){}async stopRowEditMode(a){}async stopAllRowEditMode(){}async getRowData(a){return ze(a)}async getRowsData(){return ze()}async getFormRef(a){return ze(a)}async addNewRow(a={}){return ze(a)}async saveEditRow(a){return ze(a)}async saveAllEditRows(){}async getEditingRowsKey(){return ze()}async removeRow(a){}render(){return Ot(c("slot",null)),this.vegaTableRenderer.render()}get host(){return oe(this)}static get watchers(){return{selectedRowKeySet:["watchSelectedRowKeySet"],sortersMap:["watchSortersMap"],currentData:["watchCurrentData"],currentPage:["watchCurrentPage"],isSelectedAll:["watchSelectedAll"],isTemplateRenderMode:["watchTemplateRenderMode"],columnStructureModel:["watchColumnStructureModel"],expandableRows:["watchExpandableRows"],hasExpandableRow:["watchHasExpandableRow"],columns:["watchColumns"],groupColumns:["watchGroupColumns"],dataSource:["watchDataSource"],rowSelection:["watchRowSelection"],rowExpandable:["watchRowExpandable"],rowClickable:["watchRowClickable"],rowDraggable:["watchRowDraggable"],rowDivider:["watchRowDivider"],columnDivider:["watchColumnDivider"],striped:["watchStriped"],density:["watchDensity"],paddingX:["watchPaddingX"],pagination:["watchPagination"],scrollConfig:["watchScrollConfig"]}}};v([ie()],u.prototype,"globalSlimmers",void 0);v([d()],u.prototype,"translationSlimmer",void 0);v([d()],u.prototype,"vegaTableRenderModeController",void 0);v([d()],u.prototype,"vegaTableColumnStructureModelController",void 0);v([d()],u.prototype,"vegaTableRenderInputController",void 0);v([d()],u.prototype,"vegaTablePinnedRenderer",void 0);v([d()],u.prototype,"vegaTableRenderer",void 0);v([d()],u.prototype,"vegaTableHeaderRenderer",void 0);v([d()],u.prototype,"vegaTableBodyRenderer",void 0);v([d()],u.prototype,"vegaTableRowRenderer",void 0);v([d()],u.prototype,"vegaTableCellRenderer",void 0);v([d()],u.prototype,"vegaTableBodyColSpanController",void 0);v([d()],u.prototype,"vegaTablePaginationRenderer",void 0);v([d()],u.prototype,"vegaTableScrollContainerRenderer",void 0);v([d()],u.prototype,"vegaTableRowSelectionController",void 0);v([d()],u.prototype,"vegaTableDataSourceController",void 0);v([d()],u.prototype,"vegaTablePaginationController",void 0);v([d()],u.prototype,"vegaTableEditableController",void 0);v([d()],u.prototype,"vegaTableSortController",void 0);v([d()],u.prototype,"vegaTableColGroupRenderer",void 0);v([d()],u.prototype,"vegaTableChildrenController",void 0);v([d()],u.prototype,"vegaTableRowDraggableController",void 0);v([d()],u.prototype,"vegaTableExpandRowController",void 0);v([d()],u.prototype,"pageResizeObserverSlimmer",void 0);v([d()],u.prototype,"rowSelectionNotifySlimmer",void 0);v([d()],u.prototype,"expandableRowsNotifySlimmer",void 0);v([d()],u.prototype,"hasExpandableRowNotifySlimmer",void 0);v([d()],u.prototype,"paddingXNotifySlimmer",void 0);v([d()],u.prototype,"rowClickableNotifySlimmer",void 0);v([d()],u.prototype,"scrollConfigNotifySlimmer",void 0);v([d()],u.prototype,"eventsPrevent",void 0);v([d()],u.prototype,"changeEventEmitter",void 0);v([d()],u.prototype,"selectChangeEventEmitter",void 0);v([d()],u.prototype,"selectAllChangeEventEmitter",void 0);v([d()],u.prototype,"rowClickEventEmitter",void 0);v([d()],u.prototype,"rowExpandEventEmitter",void 0);v([d()],u.prototype,"rowDragDropEventEmitter",void 0);v([d()],u.prototype,"rowDividerNotifySlimmer",void 0);v([d()],u.prototype,"columnDividerNotifySlimmer",void 0);v([d()],u.prototype,"densityNotifySlimmer",void 0);v([d()],u.prototype,"isTemplateRenderModeNotifySlimmer",void 0);v([d()],u.prototype,"currentDataNotifySlimmer",void 0);v([d()],u.prototype,"rowDraggableNotifySlimmer",void 0);v([d()],u.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);v([d()],u.prototype,"rowSelectEventEmitter",void 0);v([d()],u.prototype,"rowSelectAllEventEmitter",void 0);u.style=ur;const br=":host{display:contents}";var wo=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const Qt=class{constructor(a){te(this,a),this.globalSlimmers={},this.childChangeEventPrevent=new st([Pe],()=>this.host),this.vegaComponentUsageRuntimeMetricsSlimmer=new ne}render(){return ae(c(re,null,c("tbody",null,c("slot",null))),this.host)}get host(){return oe(this)}};wo([ie()],Qt.prototype,"globalSlimmers",void 0);wo([d()],Qt.prototype,"childChangeEventPrevent",void 0);wo([d()],Qt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);Qt.style=br;const mo=(a,e)=>a&&ko(a)?`v-hidden ${a}:${e}`:"",vr=a=>{let e;switch(a){case"center":e="v-text-center";break;case"left":e="v-text-left";break;case"right":e="v-text-right";break;default:e=""}return e},gr=(a,e,t)=>a+(e?2:1)+(t?1:0);var Jt=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class kt extends he{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:e=>{const t=this.host.parentElement;if(t){const r=t.querySelector("vega-table-cell:last-of-type");this.columnDivider=e&&r!==this.host}}},{subStateName:"clickable",parentStateName:"rowClickable"}]})}}Jt([s()],kt.prototype,"host",void 0);Jt([s({writable:!0})],kt.prototype,"density",void 0);Jt([s({writable:!0})],kt.prototype,"columnDivider",void 0);Jt([s({writable:!0})],kt.prototype,"clickable",void 0);var eo=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class jt extends he{constructor(){super({parent:"vega-table-row",subStates:[{subStateName:"checked",parentStateName:"checked"},{subStateName:"expanded",parentStateName:"expanded"},{subStateName:"striped",parentStateName:"striped"},{subStateName:"rowDivider",parentStateName:"rowDivider"}]})}}eo([s({writable:!0})],jt.prototype,"checked",void 0);eo([s({writable:!0})],jt.prototype,"expanded",void 0);eo([s({writable:!0})],jt.prototype,"striped",void 0);eo([s({writable:!0})],jt.prototype,"rowDivider",void 0);var _t=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Ne extends f{constructor(e){super(),this.observer=null,this.table=null,this.observerSubject=e}componentWillRenderInput(){this.renderInput=this.fetchRenderInput()}connectRenderInputObserver(){this.table=k(this.host,"vega-table"),this.table&&this.registerRenderInputChangeObserver()}disconnectRenderInputObserver(){!this.table||!this.observer||(this.unregisterRenderInputChangeObserver(),this.observer=null,this.table=null)}fetchRenderInput(){return this.table?K.call(x.getSubject(this.table,this.observerSubject),this.host):null}registerRenderInputChangeObserver(){this.observer=new U(e=>!0,()=>{this.renderInput=this.fetchRenderInput()}),g.register(x.getSubject(this.table,ho),this.observer)}unregisterRenderInputChangeObserver(){g.unregister(x.getSubject(this.table,ho),this.observer)}}_t([s()],Ne.prototype,"host",void 0);_t([s({writable:!0})],Ne.prototype,"renderInput",void 0);_t([p("componentWillRender")],Ne.prototype,"componentWillRenderInput",null);_t([p("connectedCallback")],Ne.prototype,"connectRenderInputObserver",null);_t([p("disconnectedCallback")],Ne.prototype,"disconnectRenderInputObserver",null);const fr=':host .vega-table-cell.v-hidden{display:none}@media (min-width: 320px){:host .vega-table-cell.S\\:v-table-cell{display:table-cell}}@media (min-width: 768px){:host .vega-table-cell.M\\:v-table-cell{display:table-cell}}@media (min-width: 1024px){:host .vega-table-cell.L\\:v-table-cell{display:table-cell}}@media (min-width: 1440px){:host .vega-table-cell.XL\\:v-table-cell{display:table-cell}}:host{display:contents}.vega-table-cell{padding:12px;box-sizing:border-box;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-table-cell{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-table-cell{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-table-cell{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-table-cell.break-word{word-break:break-word}td{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;padding:0px;vertical-align:middle}td.v-text-center{text-align:center}td.v-text-left{text-align:left}td.v-text-right{text-align:right}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}.vega-table-cell-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vega-table-cell-scroll{overflow:auto}:host(.column-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}:host(.row-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host(.striped) .vega-table-cell{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host(.clickable.hovered:not(.checked)) .vega-table-cell{cursor:pointer;background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}:host(.checked) .vega-table-cell{background-color:rgba(var(--v-bg-table-selected-row, 204, 223, 255, 1))}:host(.expanded) .vega-table-cell{border-top-width:1px;border-left-width:0px;border-right-width:0px;border-bottom-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}:host .vega-table-cell.right-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:2px;border-right-style:solid}:host .vega-table-cell.left-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-left-width:2px;border-left-style:solid}:host .vega-table-cell.hide-right-border{border-right-width:0px}';var bt=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const Ze=class{constructor(a){te(this,a),this.globalSlimmers={},this.vegaTableCellStateController=new kt,this.vegaTableRowStateSubscriber=new jt,this.pageResizeObserverSlimmer=new we,this.vegaComponentUsageRuntimeMetricsSlimmer=new ne,this.vegaTableRenderInputConsumerSlimmer=new Ne(so),this.currentBreakpoint=me(),this.getCellOverflowClass=()=>{switch(this.overflow){case"ellipsis":return"vega-table-cell-ellipsis";case"scroll":return"vega-table-cell-scroll"}}}render(){var a,e,t,r,n,o;const i=mo(this.breakpoint,"v-table-cell"),l=vr(this.textAlign),h=this.getCellOverflowClass(),b=[i,l,"vega-table-cell"];return qt.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE")||b.push("break-word"),!((a=this.renderInput)===null||a===void 0)&&a.isRightStartPinned&&b.push("left-divider"),!((e=this.renderInput)===null||e===void 0)&&e.isLeftEndPinned&&b.push("right-divider"),(!((t=this.renderInput)===null||t===void 0)&&t.isNoPinnedEnd||!((r=this.renderInput)===null||r===void 0)&&r.isViewEnd)&&b.push("hide-right-border"),ae(c(re,{class:nt([`density-${Ie.formatCustom(this.density)}`,this.rowDivider&&"row-divider",this.columnDivider&&"column-divider",this.clickable&&"clickable",this.checked&&"checked",this.striped&&"striped",this.expanded&&"expanded"]),"aria-colspan":((n=this.colSpan)!==null&&n!==void 0?n:0)>1?String(this.colSpan):null},c("td",{class:nt(b),part:"cell",colSpan:((o=this.colSpan)!==null&&o!==void 0?o:0)>1?this.colSpan:null,onMouseEnter:this.onMouseEnter.bind(this),onMouseLeave:this.onMouseLeave.bind(this),style:{width:this.width}},c("div",{class:h},c("slot",null)))),this.host)}onMouseEnter(){this.host.parentElement.querySelectorAll("vega-table-cell").forEach(e=>e.classList.add("hovered"))}onMouseLeave(){this.host.parentElement.querySelectorAll("vega-table-cell").forEach(e=>e.classList.remove("hovered"))}get host(){return oe(this)}};bt([ie()],Ze.prototype,"globalSlimmers",void 0);bt([d()],Ze.prototype,"vegaTableCellStateController",void 0);bt([d()],Ze.prototype,"vegaTableRowStateSubscriber",void 0);bt([d()],Ze.prototype,"pageResizeObserverSlimmer",void 0);bt([d()],Ze.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);bt([d()],Ze.prototype,"vegaTableRenderInputConsumerSlimmer",void 0);Ze.style=fr;var vt=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Qe extends f{render(){return c("tr",{class:{"vega-table-expanded-row":!0,expanded:this.expanded,checked:this.checked,striped:this.striped},key:`vega-table-expanded-row-${this.rowKey}`,"data-expanded-row-key":this.rowKey},c("td",null),c("td",{colSpan:this.colSpan,key:`${S.expandRowSlotNamePrefix}${this.rowKey}`,class:"vega-table-expanded-row-slot-container"},c("div",{class:"expanded-row-slot-inner"},c("slot",null))),c("td",null))}}vt([s()],Qe.prototype,"host",void 0);vt([s()],Qe.prototype,"rowKey",void 0);vt([s()],Qe.prototype,"expanded",void 0);vt([s()],Qe.prototype,"checked",void 0);vt([s()],Qe.prototype,"colSpan",void 0);vt([s()],Qe.prototype,"striped",void 0);var At=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class gt extends f{connectedCallback(){this.expandObserver=new U(this.isAcceptableTableExpandRowObserver.bind(this),e=>{e.rowKey===this.rowKey&&(this.expanded=e.expanded)}),g.register(fe,this.expandObserver)}disconnectedCallback(){g.unregister(fe,this.expandObserver)}isAcceptableTableExpandRowObserver(e){if(e.host.tagName==="VEGA-TABLE")return e.host.tagName==="VEGA-TABLE"&&e.host===k(this.host,"vega-table");if(e.host.tagName==="VEGA-TABLE-ROW")return k(this.host,"vega-table")===k(e.host,"vega-table")}}At([s()],gt.prototype,"host",void 0);At([s()],gt.prototype,"rowKey",void 0);At([s({writable:!0})],gt.prototype,"expanded",void 0);At([p("connectedCallback")],gt.prototype,"connectedCallback",null);At([p("disconnectedCallback")],gt.prototype,"disconnectedCallback",null);function No(a){return a.host.tagName==="VEGA-TABLE-ROW"&&k(this.host,"vega-table")===k(a.host,"vega-table")}function Yt(a){return a.host.tagName==="VEGA-TABLE"&&a.host===k(this.host,"vega-table")}var Nt=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class ft extends f{connectedCallback(){this.rowSelectionObserver=new U(No.bind(this),e=>{e.rowKey===this.rowKey&&(this.checked=e.checked)}),g.register(ge,this.rowSelectionObserver)}disconnectedCallback(){g.unregister(ge,this.rowSelectionObserver)}}Nt([s({writable:!0})],ft.prototype,"checked",void 0);Nt([s()],ft.prototype,"host",void 0);Nt([s()],ft.prototype,"rowKey",void 0);Nt([p("connectedCallback")],ft.prototype,"connectedCallback",null);Nt([p("disconnectedCallback")],ft.prototype,"disconnectedCallback",null);var to=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Vt extends he{constructor(){super({parent:"vega-table",subStates:[{subStateName:"withMultipleSelection",parentStateName:"rowSelection",callback:e=>{if(e){const{type:t="multiple"}=e;this.withMultipleSelection=t==="multiple"}else this.withMultipleSelection=!1}},{subStateName:"withRowDraggable",parentStateName:"rowDraggable"}]})}}to([s()],Vt.prototype,"host",void 0);to([s({writable:!0})],Vt.prototype,"withMultipleSelection",void 0);to([s({writable:!0})],Vt.prototype,"withRowDraggable",void 0);to([s()],Vt.prototype,"vegaTableExpandRowColSpanController",void 0);var Ve=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Se extends f{constructor(){super(...arguments),this.updateColSpan=()=>{this.colSpan=gr(this.getVisibleColumnsNumber(),this.withMultipleSelection,this.withRowDraggable)}}componentWillLoad(){this.updateColSpan()}watchCurrentBreakpoint(){this.updateColSpan()}watchWithMultipleSelection(){this.updateColSpan()}watchWithRowDraggable(){this.updateColSpan()}getVisibleColumnsNumber(){const e=k(this.host,"vega-table"),t=me(),n=e.children&&Array.from(e.children).filter(o=>{var i;return!(!((i=o.getAttribute("slot"))===null||i===void 0)&&i.startsWith("vega-table-expand-row-"))}).length>0?e.querySelectorAll("vega-table-row:nth-of-type(1) vega-table-cell"):e.shadowRoot.querySelectorAll("vega-table-row:nth-of-type(1) vega-table-cell");return Array.from(n).filter(o=>o.breakpoint?t==="default"?!1:xo[t]>=xo[o.breakpoint]:!0).reduce((o,i)=>{var l;const h=(l=i.colSpan)!==null&&l!==void 0?l:1;return o+(h>1?h:1)},0)}}Ve([s()],Se.prototype,"host",void 0);Ve([s({writable:!0})],Se.prototype,"colSpan",void 0);Ve([s()],Se.prototype,"withMultipleSelection",void 0);Ve([s()],Se.prototype,"withRowDraggable",void 0);Ve([p("componentWillLoad")],Se.prototype,"componentWillLoad",null);Ve([p("watchCurrentBreakpoint")],Se.prototype,"watchCurrentBreakpoint",null);Ve([p("watchWithMultipleSelection")],Se.prototype,"watchWithMultipleSelection",null);Ve([p("watchWithRowDraggable")],Se.prototype,"watchWithRowDraggable",null);const wr=":host{display:contents}:host .vega-table-expanded-row.striped:not(.checked) td{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host(.v-hidden){display:none}.vega-table-expanded-row{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}.vega-table-expanded-row:not(.expanded){display:none}.vega-table-expanded-row.expanded td{border-bottom-width:1px;border-top-width:0px;border-right-width:0px;border-left-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1));padding:0px;vertical-align:middle}.vega-table-expanded-row.expanded td:first-of-type{border-left-width:1px;border-bottom-width:1px;border-top-left-radius:12px;border-bottom-left-radius:12px;border-top-left-radius:0px}.vega-table-expanded-row.expanded td:last-of-type{border-right-width:1px;border-bottom-width:1px;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-right-radius:0px}.vega-table-expanded-row.expanded td.vega-table-expanded-row-slot-container{border-top-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}.vega-table-expanded-row.expanded.checked{background-color:rgba(var(--v-bg-table-row-selected-expanded, 229, 239, 255, 1))}:host tr.is-pinned-row td:first-of-type{position:sticky;z-index:1;left:0px}:host tr.is-pinned-row td.vega-table-expanded-row-slot-container div{position:sticky;z-index:1;left:8px}";var Ke=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const xe=class{constructor(a){te(this,a),this.globalSlimmers={},this.vegaTableExpandRowRenderer=new Qe,this.vegaTableExpandRowExpandController=new gt,this.vegaTableExpandRowSelectionController=new ft,this.vegaTableExpandRowStateController=new Vt,this.vegaTableExpandRowColSpanController=new Se,this.pageResizeObserverSlimmer=new we,this.vegaComponentUsageRuntimeMetricsSlimmer=new ne,this.currentBreakpoint=me(),this.expanded=!1,this.checked=!1}watchCurrentBreakpoint(){}watchWithMultipleSelection(){}watchWithRowDraggable(){}render(){return Ot(c("slot",null)),ae(c(re,null,this.vegaTableExpandRowRenderer.render()),this.host)}get host(){return oe(this)}static get watchers(){return{currentBreakpoint:["watchCurrentBreakpoint"],withMultipleSelection:["watchWithMultipleSelection"],withRowDraggable:["watchWithRowDraggable"]}}};Ke([ie()],xe.prototype,"globalSlimmers",void 0);Ke([d()],xe.prototype,"vegaTableExpandRowRenderer",void 0);Ke([d()],xe.prototype,"vegaTableExpandRowExpandController",void 0);Ke([d()],xe.prototype,"vegaTableExpandRowSelectionController",void 0);Ke([d()],xe.prototype,"vegaTableExpandRowStateController",void 0);Ke([d()],xe.prototype,"vegaTableExpandRowColSpanController",void 0);Ke([d()],xe.prototype,"pageResizeObserverSlimmer",void 0);Ke([d()],xe.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);xe.style=wr;var oo=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Kt extends he{constructor(){super({parent:"vega-table",subStates:[{subStateName:"fixed",parentStateName:"scrollConfig",callback:e=>{this.fixed=e&&e.maxHeight&&e.fixedFooter!==!1}},{subStateName:"rowDivider",parentStateName:"rowDivider"}]})}handleDisconnectedCallback(){ve.removeZIndex(this.tableFootRef,"base")}handleTableFootRefChange(e){this.tableFootRef&&ve.removeZIndex(this.tableFootRef,"base"),this.fixed&&ve.setZIndex(e,"base"),this.tableFootRef=e}}oo([s()],Kt.prototype,"host",void 0);oo([s({writable:!0})],Kt.prototype,"fixed",void 0);oo([s({writable:!0})],Kt.prototype,"rowDivider",void 0);oo([p("disconnectedCallback")],Kt.prototype,"handleDisconnectedCallback",null);const mr=':host{display:table-footer-group;position:sticky;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-left-radius:12px;border-bottom-left-radius:12px}:host tfoot{display:contents}:host(.fixed-footer){bottom:0px}:host(.row-divider)::after{content:"";position:absolute;top:0;left:0;width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}:host(.v-hidden){display:none}';var ro=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const Bt=class{constructor(a){te(this,a),this.globalSlimmers={},this.vegaTableFootStateController=new Kt,this.vegaComponentUsageRuntimeMetricsSlimmer=new ne,this.childChangeEventPrevent=new st([Pe],()=>this.host),this.fixed=!1,this.rowDivider=!1}render(){return ae(c(re,{class:{"fixed-footer":this.fixed,"row-divider":this.rowDivider},ref:a=>this.vegaTableFootStateController.handleTableFootRefChange(a)},c("tfoot",null,c("slot",null))),this.host)}get host(){return oe(this)}};ro([ie()],Bt.prototype,"globalSlimmers",void 0);ro([d()],Bt.prototype,"vegaTableFootStateController",void 0);ro([d()],Bt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);ro([d()],Bt.prototype,"childChangeEventPrevent",void 0);Bt.style=mr;var Vo=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class yo extends he{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:e=>{const t=this.host.parentElement;if(t){const r=t.querySelector("vega-table-foot-cell:last-of-type");this.columnDivider=e&&r!==this.host}}}]})}}Vo([s({writable:!0})],yo.prototype,"density",void 0);Vo([s({writable:!0})],yo.prototype,"columnDivider",void 0);var no=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Ht extends f{render(){var e;return c("td",{class:{"vega-table-cell":!0,"break-word":!qt.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE"),[mo(this.breakpoint,"v-table-cell")]:!0},colSpan:((e=this.colSpan)!==null&&e!==void 0?e:0)>1?this.colSpan:null},c("div",{class:nt(["vega-table-column",this.textAlign])},c("span",{class:"vega-table-column-label"},c("slot",null))))}}no([s()],Ht.prototype,"host",void 0);no([s()],Ht.prototype,"breakpoint",void 0);no([s()],Ht.prototype,"textAlign",void 0);no([s()],Ht.prototype,"colSpan",void 0);const yr=':host .vega-table-cell.v-hidden{display:none}@media (min-width: 320px){:host .vega-table-cell.S\\:v-table-cell{display:table-cell}}@media (min-width: 768px){:host .vega-table-cell.M\\:v-table-cell{display:table-cell}}@media (min-width: 1024px){:host .vega-table-cell.L\\:v-table-cell{display:table-cell}}@media (min-width: 1440px){:host .vega-table-cell.XL\\:v-table-cell{display:table-cell}}:host{display:contents}td{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;vertical-align:middle;padding:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){td{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){td{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){td{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}td.break-word{word-break:break-word}.vega-table-column{display:flex;align-items:center}.vega-table-column.center{justify-content:center;text-align:center}.vega-table-column.right{justify-content:flex-end;text-align:right}.vega-table-column.left{justify-content:flex-start;text-align:left}.vega-table-column .vega-table-column-label{min-width:0px}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}:host(.column-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}';var Ft=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const wt=class{constructor(a){te(this,a),this.globalSlimmers={},this.vegaTableFootCellStateController=new yo,this.vegaTableFootCellRenderer=new Ht,this.pageResizeObserverSlimmer=new we,this.vegaComponentUsageRuntimeMetricsSlimmer=new ne,this.currentBreakpoint=me()}render(){var a;return ae(c(re,{class:{[`density-${Ie.formatCustom(this.density)}`]:!0,"column-divider":this.columnDivider},style:{width:this.width},"aria-colspan":((a=this.colSpan)!==null&&a!==void 0?a:0)>1?String(this.colSpan):null},this.vegaTableFootCellRenderer.render()),this.host)}get host(){return oe(this)}};Ft([ie()],wt.prototype,"globalSlimmers",void 0);Ft([d()],wt.prototype,"vegaTableFootCellStateController",void 0);Ft([d()],wt.prototype,"vegaTableFootCellRenderer",void 0);Ft([d()],wt.prototype,"pageResizeObserverSlimmer",void 0);Ft([d()],wt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);wt.style=yr;var $t=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class mt extends f{constructor(){super(...arguments),this.renderFooterSelectionCell=()=>{if(this.selectionType==="multiple")return c("td",{class:"vega-table-selection-column"})},this.renderFooterExpandableCell=()=>this.hasExpandableRow&&c("td",{class:"vega-table-expand-action-column"}),this.renderFooterDraggableCell=()=>this.draggable&&c("td",{class:"vega-table-draggable-column"})}render(){return c("tr",null,c("td",{style:{width:this.paddingX[0]}}),this.renderFooterDraggableCell(),this.renderFooterSelectionCell(),c("slot",null),this.renderFooterExpandableCell(),c("td",{style:{width:this.paddingX[1]}}))}}$t([s()],mt.prototype,"host",void 0);$t([s()],mt.prototype,"paddingX",void 0);$t([s()],mt.prototype,"selectionType",void 0);$t([s()],mt.prototype,"hasExpandableRow",void 0);$t([s()],mt.prototype,"draggable",void 0);var Je=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Be extends he{constructor(){super({parent:"vega-table",subStates:[{subStateName:"hasExpandableRow",parentStateName:"hasExpandableRow"},{subStateName:"paddingX",parentStateName:"paddingX"},{subStateName:"selectionType",parentStateName:"rowSelection",callback:e=>{this.updateSelectionType(e)}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"},{subStateName:"draggable",parentStateName:"rowDraggable"}]}),this.updateSelectionType=e=>{if(e){const{type:t}=e;this.selectionType=t}else this.selectionType=null}}}Je([s()],Be.prototype,"host",void 0);Je([s({writable:!0})],Be.prototype,"selectionType",void 0);Je([s({writable:!0})],Be.prototype,"paddingX",void 0);Je([s({writable:!0})],Be.prototype,"columnDivider",void 0);Je([s({writable:!0})],Be.prototype,"density",void 0);Je([s({writable:!0})],Be.prototype,"hasExpandableRow",void 0);Je([s({writable:!0})],Be.prototype,"draggable",void 0);const Rr=":host{display:contents}td{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));padding:0px;vertical-align:middle}td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-default) td:first-of-type,:host(.density-relaxed) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) td:last-of-type,:host(.density-relaxed) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-compact) td:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) td:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}";var zt=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const yt=class{constructor(a){te(this,a),this.globalSlimmers={},this.vegaTableFootRowStateController=new Be,this.vegaTableFootRowRenderer=new mt,this.vegaComponentUsageRuntimeMetricsSlimmer=new ne,this.pageResizeObserverSlimmer=new we,this.currentBreakpoint=me(),this.hasExpandableRow=!1}render(){return Ot(c("slot",null)),ae(c(re,{class:{"column-divider":this.columnDivider,[`density-${Ie.formatCustom(this.density)}`]:!0}},this.vegaTableFootRowRenderer.render()),this.host)}get host(){return oe(this)}};zt([ie()],yt.prototype,"globalSlimmers",void 0);zt([d()],yt.prototype,"vegaTableFootRowStateController",void 0);zt([d()],yt.prototype,"vegaTableFootRowRenderer",void 0);zt([d()],yt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);zt([d()],yt.prototype,"pageResizeObserverSlimmer",void 0);yt.style=Rr;var Ko=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Ro extends he{constructor(){super({parent:"vega-table",subStates:[{subStateName:"fixed",parentStateName:"scrollConfig",callback:e=>{this.fixed=e&&e.maxHeight&&e.fixedHeader!==!1}}]})}}Ko([s()],Ro.prototype,"host",void 0);Ko([s({writable:!0})],Ro.prototype,"fixed",void 0);const Cr=":host{display:table-header-group;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-left-radius:12px;border-bottom-left-radius:12px}:host thead{display:contents}:host(.fixed-header){position:sticky;top:0px}";var io=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const Wt=class{constructor(a){te(this,a),this.globalSlimmers={},this.vegaTableHeadStateController=new Ro,this.vegaComponentUsageRuntimeMetricsSlimmer=new ne,this.headCellEventPrevent=new st([Pe],()=>this.host),this.fixed=!1,this.handleTableHeadRefChange=e=>{this.tableHeadRef&&ve.removeZIndex(this.tableHeadRef,"base"),this.fixed&&ve.setZIndex(e,"base"),this.tableHeadRef=e}}connectedCallback(){this.tableHeadRef&&this.fixed&&ve.setZIndex(this.tableHeadRef,"base")}disconnectedCallback(){ve.removeZIndex(this.tableHeadRef,"base")}render(){return ae(c(re,{class:{"fixed-header":this.fixed},ref:a=>this.handleTableHeadRefChange(a)},c("thead",null,c("slot",null))),this.host)}get host(){return oe(this)}};io([ie()],Wt.prototype,"globalSlimmers",void 0);io([d()],Wt.prototype,"vegaTableHeadStateController",void 0);io([d()],Wt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);io([d()],Wt.prototype,"headCellEventPrevent",void 0);Wt.style=Cr;var Bo=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Co extends he{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:e=>{const t=this.host.parentElement;if(t){const r=t.querySelector("vega-table-head-cell:last-of-type");this.columnDivider=e&&r!==this.host}}}]})}}Bo([s({writable:!0})],Co.prototype,"density",void 0);Bo([s({writable:!0})],Co.prototype,"columnDivider",void 0);const Sr={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M489 377c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55V56c0-13.3-10.7-24-24-24s-24 10.7-24 24V398.1l-55-55c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l96 96c9.4 9.4 24.6 9.4 33.9 0l96-96zM137 39c-9.4-9.4-24.6-9.4-33.9 0L7 135c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55V456c0 13.3 10.7 24 24 24s24-10.7 24-24V113.9l55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L137 39z"/></svg>'},xr={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M256 0a256 256 0 1 0 0 512A256 256 0 1 0 256 0zM127 281c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l71 71L232 136c0-13.3 10.7-24 24-24s24 10.7 24 24l0 182.1 71-71c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L273 393c-9.4 9.4-24.6 9.4-33.9 0L127 281z"/></svg>'},Tr={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM385 231c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-71-71V376c0 13.3-10.7 24-24 24s-24-10.7-24-24V193.9l-71 71c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 119c9.4-9.4 24.6-9.4 33.9 0L385 231z"/></svg>'};var Ho=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Rt extends f{render(){if(!this.sorter)return;const{icon:e,color:t}=Rt.SORT_ICON_MAP[this.sortOrder||"default"];return c("span",{class:"vega-table-column-sorter"},c("vega-icon",{color:t,icon:Et.getIconKey(e),size:"size-12"}))}}Rt.SORT_ICON_MAP={asc:{icon:"circle-arrow-up",color:"text-link"},desc:{icon:"circle-arrow-down",color:"text-link"},default:{icon:"arrow-up-arrow-down",color:"text-secondary"}};Ho([s()],Rt.prototype,"sorter",void 0);Ho([s()],Rt.prototype,"sortOrder",void 0);var Gt=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Ct extends f{disconnectedCallback(){const e=k(this.host,"vega-table-head");e&&g.unregister(x.getSubject(e,lo),this.observer)}componentWillLoad(){const e=k(this.host,"vega-table-head");e&&(this.hostTable=k(e,"vega-table"),this.isTemplateRenderMode=this.checkIsTemplateRenderMode(),this.observer=new U(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),g.register(x.getSubject(e,lo),this.observer))}notifyOtherHeadCellOnClickSort(){const e=k(this.host,"vega-table-head");e&&g.notify(x.getSubject(e,lo),{host:this.host})}isAcceptableObserver(e){return e.host!==this.host}observerListener(){var e;this.isTemplateRenderMode&&((e=this.hostTable.sortConfig)===null||e===void 0?void 0:e.type)==="single"&&(this.sortOrder=void 0)}checkIsTemplateRenderMode(){return Array.from(this.hostTable.children).some(e=>e.tagName.startsWith("VEGA-TABLE-"))}}Gt([s()],Ct.prototype,"host",void 0);Gt([s({writable:!0})],Ct.prototype,"sortOrder",void 0);Gt([s()],Ct.prototype,"sortConfig",void 0);Gt([p("disconnectedCallback")],Ct.prototype,"disconnectedCallback",null);Gt([p("componentWillLoad")],Ct.prototype,"componentWillLoad",null);const Er=':host .vega-table-cell.v-hidden{display:none}@media (min-width: 320px){:host .vega-table-cell.S\\:v-table-cell{display:table-cell}}@media (min-width: 768px){:host .vega-table-cell.M\\:v-table-cell{display:table-cell}}@media (min-width: 1024px){:host .vega-table-cell.L\\:v-table-cell{display:table-cell}}@media (min-width: 1440px){:host .vega-table-cell.XL\\:v-table-cell{display:table-cell}}:host{display:contents}:host(.sortable){cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.sortable:hover){background-color:rgba(var(--v-bg-table-row-hover, 241, 248, 251, 1))}th{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;vertical-align:middle;padding:0px;padding:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}th.break-word{word-break:break-word}.vega-table-column{display:flex;align-items:center}.vega-table-column.center{justify-content:center;text-align:center}.vega-table-column.right{justify-content:flex-end;text-align:right}.vega-table-column.left{justify-content:flex-start;text-align:left}.vega-table-column .vega-table-column-label{min-width:0px}.vega-table-column .vega-table-column-sorter{display:flex;align-items:center;justify-content:center;padding:2px;margin-left:8px;cursor:pointer;outline:none}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}:host(.column-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}:host .vega-table-cell.is-group-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-bottom-width:1px;border-right-style:solid;border-bottom-style:solid}:host .vega-table-cell.hide-right-border{border-right-width:0px}:host .vega-table-cell.bottom-border{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host .vega-table-cell.right-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:2px;border-right-style:solid}:host .vega-table-cell.left-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-left-width:2px;border-left-style:solid}';var He=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const ue=class{constructor(a){te(this,a),this.vegaClick=T(this,"vegaClick",7),this.click=T(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=ee(ue,it),this.vegaTableHeadCellStateController=new Co,this.pageResizeObserverSlimmer=new we,this.vegaComponentUsageRuntimeMetricsSlimmer=new ne,this.sortIconRenderer=new Rt,this.vegaTableHeadCellSortConfigController=new Ct,this.vegaTableRenderInputConsumerSlimmer=new Ne(co),this.currentBreakpoint=me(),this.handleSort=e=>{this.sortOrder=this.getNextSortOrder(this.sortOrder),this.clickEventEmitter.emit({sortOrder:this.sortOrder},e),this.vegaTableHeadCellSortConfigController.notifyOtherHeadCellOnClickSort()},this.getNextSortOrder=e=>{var t;const n=qt.isEnabled("VEGA_TABLE.REVERSE_SORT_ORDER")?["asc","desc"]:["desc","asc"],o=!((t=this.sortConfig)===null||t===void 0)&&t.disableUnsorted?n:[...n,null];return o[(o.indexOf(e)+1)%o.length]}}render(){var a,e,t,r,n,o,i;const l=this.sorter?{role:"button",onKeyDown:or(),tabIndex:0,onClick:h=>this.handleSort(h)}:null;return ae(c(re,{class:{[`density-${Ie.formatCustom(this.density)}`]:!0,sortable:!!this.sorter,"column-divider":this.columnDivider},style:{width:this.width}},c("th",Object.assign({class:{"vega-table-cell":!0,"break-word":!qt.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE"),"is-group-cell":(a=this.renderInput)===null||a===void 0?void 0:a.headHasGroupColumn,"hide-right-border":((e=this.renderInput)===null||e===void 0?void 0:e.isViewEnd)||((t=this.renderInput)===null||t===void 0?void 0:t.isNoPinnedEnd),"right-divider":(r=this.renderInput)===null||r===void 0?void 0:r.isLeftEndPinned,"left-divider":(n=this.renderInput)===null||n===void 0?void 0:n.isRightStartPinned,[mo(this.breakpoint,"v-table-cell")]:!0}},l,{colSpan:(o=this.renderInput)===null||o===void 0?void 0:o.colSpan,rowSpan:(i=this.renderInput)===null||i===void 0?void 0:i.rowSpan}),c("div",{class:nt(["vega-table-column",this.textAlign])},c("span",{class:"vega-table-column-label"},c("slot",null)),this.sortIconRenderer.render()))),this.host)}get host(){return oe(this)}};Et.register({"chevron-up":rr,"chevron-down":_o,"arrow-up-arrow-down":Sr,"circle-arrow-down":xr,"circle-arrow-up":Tr});He([ie()],ue.prototype,"globalSlimmers",void 0);He([d()],ue.prototype,"clickEventEmitter",void 0);He([d()],ue.prototype,"vegaTableHeadCellStateController",void 0);He([d()],ue.prototype,"pageResizeObserverSlimmer",void 0);He([d()],ue.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);He([d()],ue.prototype,"sortIconRenderer",void 0);He([d()],ue.prototype,"vegaTableHeadCellSortConfigController",void 0);He([d()],ue.prototype,"vegaTableRenderInputConsumerSlimmer",void 0);ue.style=Er;var G=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class z extends f{constructor(){super(...arguments),this.renderHeaderSelectionCell=e=>{if(this.selectionType==="multiple")return c("th",{rowSpan:e.startRowSpan,class:{"vega-table-selection-column":!0,hidden:e.isStartHidden}},!this.hideSelectAll&&c("div",{class:"vega-table-checkbox-wrapper"},c("vega-checkbox",{size:"small",disabled:this.isEmptyTable||this.selectAllDisabled,checked:this.checkedAll,onClick:this.handleClick,ref:t=>{at.addUniqueObserverToNode(t,Pe,this.handleSelectAll)}})))},this.handleSelectAll=e=>{if(e.eventName==="vegaChange"){const t=e.detail;rt(t)&&t!==this.checkedAll&&g.notify(pe,{host:this.host,checked:t})}},this.renderHeaderDraggableCell=e=>this.draggable&&c("th",{rowSpan:e.startRowSpan,class:{"vega-table-draggable-column":!0,hidden:e.isStartHidden}}),this.renderHeaderExpandableCell=e=>this.hasExpandableRow&&c("th",{rowSpan:e.endRowSpan,class:{"vega-table-expand-action-column":!0,hidden:e.isEndHidden}}),this.handleClick=e=>{e.stopPropagation(),K.call(x.getSubject(k(this.host,"vega-table"),uo),{host:this.host,checked:!this.checkedAll}).defaultPrevented&&e.preventDefault()}}connectedCallback(){}disconnectedCallback(){}componentDidLoad(){}render(){var e,t;const r=this.getRowRenderInput();return c("tr",{class:{"is-group-row":r.headHasGroupColumn,"is-pinned-row":r.headHasPinnedColumn}},c("th",{style:{width:(e=this.paddingX)===null||e===void 0?void 0:e[0]},rowSpan:r.startRowSpan,class:{hidden:r.isStartHidden}}),this.renderHeaderDraggableCell(r),this.renderHeaderSelectionCell(r),c("slot",null),this.renderHeaderExpandableCell(r),c("th",{style:{width:(t=this.paddingX)===null||t===void 0?void 0:t[1]},rowSpan:r.endRowSpan,class:{hidden:r.isEndHidden}}))}getRowRenderInput(){const e={},t=this.renderInput,r=t==null?void 0:t[0],n=t==null?void 0:t[t.length-1];return r&&(e.headHasGroupColumn=r.headHasGroupColumn,e.headHasPinnedColumn=r.headHasPinnedColumn,e.headHasGroupColumn&&(e.startRowSpan=this.selectionType==="multiple"&&r.level===0?r.headMaxDepth:r.rowSpan,e.isStartHidden=r.headHasGroupColumn&&(this.selectionType==="multiple"&&r.level>0||!r.isViewStart))),n&&n.headHasGroupColumn&&(e.endRowSpan=n.rowSpan,e.isEndHidden=r.headHasGroupColumn&&!n.isViewEnd),e}}G([s()],z.prototype,"host",void 0);G([s()],z.prototype,"paddingX",void 0);G([s()],z.prototype,"selectionType",void 0);G([s()],z.prototype,"hideSelectAll",void 0);G([s()],z.prototype,"selectAllDisabled",void 0);G([s()],z.prototype,"checkedAll",void 0);G([s()],z.prototype,"hasExpandableRow",void 0);G([s()],z.prototype,"draggable",void 0);G([s()],z.prototype,"isEmptyTable",void 0);G([s()],z.prototype,"isTemplateRenderMode",void 0);G([s()],z.prototype,"renderInput",void 0);G([p("connectedCallback")],z.prototype,"connectedCallback",null);G([p("disconnectedCallback")],z.prototype,"disconnectedCallback",null);G([p("componentDidLoad")],z.prototype,"componentDidLoad",null);var ao=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Ut extends f{connectedCallback(){this.initRowSelectionAllObserver()}disconnectedCallback(){g.unregister(pe,this.rowSelectionAllObserver)}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new U(Yt.bind({host:this.host}),e=>{!e.noneChecked&&e.checked===!1?this.checkedAll=null:this.checkedAll=e.checked}),g.register(pe,this.rowSelectionAllObserver)}}ao([s()],Ut.prototype,"host",void 0);ao([s({writable:!0})],Ut.prototype,"checkedAll",void 0);ao([p("connectedCallback")],Ut.prototype,"connectedCallback",null);ao([p("disconnectedCallback")],Ut.prototype,"disconnectedCallback",null);var Te=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class be extends he{constructor(){super({parent:"vega-table",subStates:[{subStateName:"hasExpandableRow",parentStateName:"hasExpandableRow"},{subStateName:"paddingX",parentStateName:"paddingX",callback:e=>{const t=k(this.host,"vega-table");(t.dataSource.length===0||t.columns.length===0)&&(this.paddingX=e)}},{subStateName:"selectionType",parentStateName:"rowSelection",callback:e=>{this.updateSelectionType(e)}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"},{subStateName:"isTemplateRenderMode",parentStateName:"isTemplateRenderMode"},{subStateName:"isEmptyTable",parentStateName:"currentData",callback:e=>{this.isEmptyTable=e.length===0}},{subStateName:"draggable",parentStateName:"rowDraggable"}]}),this.updateSelectionType=e=>{if(e){const{type:t="multiple"}=e;this.selectionType=t}else this.selectionType=null}}}Te([s()],be.prototype,"host",void 0);Te([s({writable:!0})],be.prototype,"hasExpandableRow",void 0);Te([s({writable:!0})],be.prototype,"selectionType",void 0);Te([s({writable:!0})],be.prototype,"paddingX",void 0);Te([s({writable:!0})],be.prototype,"columnDivider",void 0);Te([s({writable:!0})],be.prototype,"density",void 0);Te([s({writable:!0})],be.prototype,"isTemplateRenderMode",void 0);Te([s({writable:!0})],be.prototype,"isEmptyTable",void 0);Te([s({writable:!0})],be.prototype,"draggable",void 0);const Dr=":host{display:table-row}:host tr{display:contents}th{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));padding:0px;vertical-align:middle}th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.column-divider) ::slotted(vega-table-head-cell:not(:last-of-type)){border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}.vega-table-checkbox-wrapper{display:flex;align-items:center;justify-content:center}:host(.density-default) th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-compact) th:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) th:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}:host(.density-relaxed) th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-relaxed) th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}:host tr.is-group-row th{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host tr.is-group-row th.hidden{display:none}:host tr.is-group-row th.vega-table-selection-column{border-right-width:1px;border-right-style:solid}:host tr.is-group-row th:first-of-type{border-top-left-radius:0px;border-bottom-left-radius:0px}:host tr.is-group-row th:last-of-type{border-top-right-radius:0px;border-bottom-right-radius:0px}:host tr.is-pinned-row th{position:sticky;z-index:1}:host tr.is-pinned-row th:first-of-type{left:0px}:host tr.is-pinned-row th.vega-table-selection-column{left:8px}:host tr.is-pinned-row th.vega-table-expand-action-column{right:8px}:host tr.is-pinned-row th:last-of-type{right:0px}";var Fe=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const Ee=class{constructor(a){te(this,a),this.globalSlimmers={},this.vegaTableHeadRowStateController=new be,this.vegaTableHeadRowRenderer=new z,this.vegaTableHeadRowController=new Ut,this.headCellEventPrevent=new st([it],()=>this.host,void 0,!0),this.pageResizeObserverSlimmer=new we,this.vegaComponentUsageRuntimeMetricsSlimmer=new ne,this.vegaTableRenderInputConsumerSlimmer=new Ne(po),this.currentBreakpoint=me(),this.hasExpandableRow=!1}render(){return Ot(c("slot",null)),ae(c(re,{class:{"column-divider":this.columnDivider,[`density-${Ie.formatCustom(this.density)}`]:!0}},this.vegaTableHeadRowRenderer.render()),this.host)}get host(){return oe(this)}};Fe([ie()],Ee.prototype,"globalSlimmers",void 0);Fe([d()],Ee.prototype,"vegaTableHeadRowStateController",void 0);Fe([d()],Ee.prototype,"vegaTableHeadRowRenderer",void 0);Fe([d()],Ee.prototype,"vegaTableHeadRowController",void 0);Fe([d()],Ee.prototype,"headCellEventPrevent",void 0);Fe([d()],Ee.prototype,"pageResizeObserverSlimmer",void 0);Fe([d()],Ee.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);Fe([d()],Ee.prototype,"vegaTableRenderInputConsumerSlimmer",void 0);Ee.style=Dr;const Or={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M32 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm0 160a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM64 416A32 32 0 1 0 0 416a32 32 0 1 0 64 0zm96-288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm32 128a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM160 448a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"/></svg>'};var H=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class V extends f{constructor(){super(...arguments),this.renderDragIcon=()=>this.draggable&&c("td",{class:"vega-table-draggable-column"},c("vega-flex",{alignItems:"center"},c("vega-icon",{icon:Et.getIconKey("grip-dots-vertical"),color:"text-link"}))),this.renderRowSelection=()=>{if(this.selectionType==="multiple")return c("td",{class:"vega-table-selection-column"},c("div",{class:"vega-table-checkbox-wrapper"},c("vega-checkbox",{size:"small",checked:this.checked,onClick:this.handleClick,ref:e=>{at.addUniqueObserverToNode(e,Pe,this.onRowSelectionChange)}})))},this.renderExpandIcon=()=>(this.expandable||this.hasExpandableRow)&&c("td",{class:"vega-table-expand-action-column"},c("div",{class:"vega-table-expand-icon-wrapper"},this.expandable&&c("vega-icon",{icon:Et.getIconKey("chevron-down"),color:"text-link",onClick:this.onExpandIconClick}))),this.onRowClick=()=>{this.vegaTableRowClickController.handleRowClick()},this.onRowSelectionChange=e=>{e.eventName==="vegaChange"&&this.vegaTableRowSelectionController.handleRowSelect(e.detail)},this.handleClick=e=>{e.stopPropagation(),K.call(x.getSubject(this.parentTableRef,Xt),{host:this.host,rowKey:this.rowKey,checked:!this.checked}).defaultPrevented&&e.preventDefault()},this.onExpandIconClick=async e=>{e.stopPropagation();const t=this.expandEventEmitter.emit({expanded:!this.expanded,rowKey:this.rowKey});t&&!t.defaultPrevented&&this.vegaTableRowExpandController.handleExpandIconClick()}}connectedCallback(){this.setParentTableRef()}getParentTableRef(){return this.parentTableRef}render(){var e,t;return c(Mo,null,this.renderExpandRowSpace(this.rowKey),c("tr",{class:{"vega-table-row":!0,checked:this.checked,clickable:this.clickable,"current-clicked-row":this.clicked,"expand-row":this.expanded},onClick:this.clickable?this.onRowClick:null},c("td",{style:{width:(e=this.paddingX)===null||e===void 0?void 0:e[0]}}),this.renderDragIcon(),this.renderRowSelection(),c("slot",null),this.renderExpandIcon(),c("td",{style:{width:(t=this.paddingX)===null||t===void 0?void 0:t[1]}})))}renderExpandRowSpace(e){return this.expandable&&c("tr",{key:`vega-table-expand-row-space-${e}`,class:"expand-row-space"})}setParentTableRef(){this.parentTableRef=k(this.host,"vega-table")}}Et.register({"chevron-down":_o,"grip-dots-vertical":Or});H([s()],V.prototype,"host",void 0);H([s()],V.prototype,"rowKey",void 0);H([s()],V.prototype,"checked",void 0);H([s()],V.prototype,"clickable",void 0);H([s()],V.prototype,"clicked",void 0);H([s()],V.prototype,"expanded",void 0);H([s()],V.prototype,"paddingX",void 0);H([s()],V.prototype,"expandable",void 0);H([s()],V.prototype,"hasExpandableRow",void 0);H([s()],V.prototype,"vegaClick",void 0);H([s()],V.prototype,"selectionType",void 0);H([s()],V.prototype,"draggable",void 0);H([s()],V.prototype,"vegaTableRowSelectionController",void 0);H([s()],V.prototype,"vegaTableRowExpandController",void 0);H([s()],V.prototype,"vegaTableRowClickController",void 0);H([s()],V.prototype,"expandEventEmitter",void 0);H([p("connectedCallback")],V.prototype,"connectedCallback",null);var St=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class et extends f{constructor(){super(...arguments),this.handleRowSelect=e=>{this.checked=e,g.notify(ge,{host:this.host,checked:e,rowKey:this.rowKey})}}connectedCallback(){this.initRowSelectionObserver()}disconnectedCallback(){g.unregister(pe,this.rowSelectionAllObserver),g.unregister(ge,this.rowSelectionObserver)}setChecked(e){this.checked=e}initRowSelectionObserver(){this.rowSelectionAllObserver=new U(Yt.bind(this),e=>{(e.checked||e.checked===!1&&e.noneChecked)&&(this.checked=e.checked)}),g.register(pe,this.rowSelectionAllObserver),this.rowSelectionObserver=new U(Yt.bind(this),e=>{e.rowKey===this.rowKey&&(this.checked=e.checked)}),g.register(ge,this.rowSelectionObserver)}}St([s()],et.prototype,"host",void 0);St([s()],et.prototype,"selectionType",void 0);St([s()],et.prototype,"rowKey",void 0);St([s({writable:!0})],et.prototype,"checked",void 0);St([p("connectedCallback")],et.prototype,"connectedCallback",null);St([p("disconnectedCallback")],et.prototype,"disconnectedCallback",null);var tt=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class $e extends f{connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){g.unregister(fe,this.rowExpandObserver)}handleExpandIconClick(){K.call(x.getSubject(this.vegaTableRowRenderer.getParentTableRef(),bo),{host:this.host,rowKey:this.rowKey,expanded:!this.expanded}).defaultPrevented||(this.expanded=!this.expanded,g.notify(fe,{host:this.host,rowKey:this.rowKey,expanded:this.expanded}))}initRowExpandObserver(){this.rowExpandObserver=new U(Yt.bind({host:this.host}),e=>{e.rowKey===this.rowKey&&(this.expanded=e.expanded)}),g.register(fe,this.rowExpandObserver)}}tt([s()],$e.prototype,"host",void 0);tt([s()],$e.prototype,"rowKey",void 0);tt([s()],$e.prototype,"expandable",void 0);tt([s({writable:!0})],$e.prototype,"expanded",void 0);tt([s()],$e.prototype,"vegaTableRowRenderer",void 0);tt([p("connectedCallback")],$e.prototype,"connectedCallback",null);tt([p("disconnectedCallback")],$e.prototype,"disconnectedCallback",null);var de=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class Q extends f{connectedCallback(){this.initRowClickObserver()}disconnectedCallback(){g.unregister(xt,this.rowClickObserver)}handleRowClick(){K.call(x.getSubject(this.vegaTableRowRenderer.getParentTableRef(),Xt),{host:this.host,rowKey:this.rowKey,checked:!this.checked}).defaultPrevented||(g.notify(xt,{host:this.host,rowKey:this.rowKey}),this.clickEventEmitter.emit({rowKey:this.rowKey}))}initRowClickObserver(){this.rowClickObserver=new U(No.bind(this),e=>{this.clicked=e.host===this.host,this.selectionType==="single"&&(e.host===this.host?this.vegaTableRowSelectionController.setChecked(!this.checked):this.vegaTableRowSelectionController.setChecked(!1))}),g.register(xt,this.rowClickObserver)}}de([s()],Q.prototype,"host",void 0);de([s()],Q.prototype,"rowKey",void 0);de([s({writable:!0})],Q.prototype,"clicked",void 0);de([s()],Q.prototype,"checked",void 0);de([s()],Q.prototype,"selectionType",void 0);de([s()],Q.prototype,"vegaClick",void 0);de([s()],Q.prototype,"vegaTableRowSelectionController",void 0);de([s()],Q.prototype,"clickEventEmitter",void 0);de([s()],Q.prototype,"vegaTableRowRenderer",void 0);de([p("connectedCallback")],Q.prototype,"connectedCallback",null);de([p("disconnectedCallback")],Q.prototype,"disconnectedCallback",null);var J=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};class q extends he{constructor(){super({parent:"vega-table",subStates:[{subStateName:"expandable",parentStateName:"expandableRows",callback:e=>{this.expandable=e.includes(this.rowKey)}},{subStateName:"hasExpandableRow",parentStateName:"hasExpandableRow"},{subStateName:"clickable",parentStateName:"rowClickable"},{subStateName:"paddingX",parentStateName:"paddingX",callback:e=>{const t=k(this.host,"vega-table");(t.dataSource.length===0||t.columns.length===0)&&(this.paddingX=e)}},{subStateName:"selectionType",parentStateName:"rowSelection",callback:e=>{if(e){const{type:t="multiple"}=e;this.selectionType=t}else this.selectionType=null}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"},{subStateName:"draggable",parentStateName:"rowDraggable"}]})}watchSelectionType(){this.updateClickable()}handleComponentWillLoad(){this.updateClickable()}updateClickable(){this.selectionType&&(this.clickable=this.selectionType==="single"||this.clickable)}}J([s()],q.prototype,"host",void 0);J([s({writable:!0})],q.prototype,"expandable",void 0);J([s({writable:!0})],q.prototype,"hasExpandableRow",void 0);J([s({writable:!0})],q.prototype,"clickable",void 0);J([s({writable:!0})],q.prototype,"paddingX",void 0);J([s({writable:!0})],q.prototype,"selectionType",void 0);J([s({writable:!0})],q.prototype,"columnDivider",void 0);J([s({writable:!0})],q.prototype,"density",void 0);J([s({writable:!0})],q.prototype,"draggable",void 0);J([s()],q.prototype,"rowKey",void 0);J([p("watchSelectionType")],q.prototype,"watchSelectionType",null);J([p("componentWillLoad")],q.prototype,"handleComponentWillLoad",null);const Pr=":host{display:contents}:host(.v-hidden){display:none}td{padding:0px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));vertical-align:middle}td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.striped) .vega-table-row:not(.checked):not(.clickable:hover) td{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.checked td{background-color:rgba(var(--v-bg-table-selected-row, 204, 223, 255, 1))}:not(.checked).clickable:hover{cursor:pointer}:not(.checked).clickable:hover td{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}.vega-table-checkbox-wrapper{display:flex;align-items:center;justify-content:center}.vega-table-row .vega-table-expand-icon-wrapper{display:flex;align-items:center;justify-content:center}.vega-table-row .vega-table-expand-icon-wrapper vega-icon{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;cursor:pointer}.vega-table-row.expand-row .vega-table-expand-icon-wrapper vega-icon{transform:rotate(180deg)}:host tr.expand-row td{border-top-width:1px;border-left-width:0px;border-right-width:0px;border-bottom-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}:host tr.expand-row td:first-of-type{border-left-width:1px;border-top-width:1px;border-bottom-left-radius:0px}:host tr.expand-row td:last-of-type{border-right-width:1px;border-top-width:1px;border-bottom-right-radius:0px}tr.expand-row-space{display:block;padding-top:8px}:host(.row-divider:not(:last-of-type)) td{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host(.row-divider:not(:last-of-type)) td:first-of-type,:host(.row-divider:not(:last-of-type)) td:last-of-type{border-radius:0px}:host(.density-default) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-default) tr.expand-row-space{display:block;padding-top:8px}:host(.density-compact) td:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) td:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}:host(.density-compact) tr.expand-row-space{display:block;padding-top:4px}:host(.density-relaxed) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-relaxed) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-relaxed) tr.expand-row-space{display:block;padding-top:12px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}.vega-table-draggable-column{width:16px;min-width:16px;cursor:move}";var W=function(a,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,t,r);else for(var l=a.length-1;l>=0;l--)(i=a[l])&&(o=(n<3?i(o):n>3?i(e,t,o):i(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const E=class{constructor(a){te(this,a),this.vegaClick=T(this,"vegaClick",7),this.click=T(this,"click",7),this.vegaExpand=T(this,"vegaExpand",7),this.expand=T(this,"expand",7),this.globalSlimmers={},this.vegaTableRowRenderer=new V,this.vegaTableRowSelectionController=new et,this.vegaTableRowExpandController=new $e,this.vegaTableRowClickController=new Q,this.vegaTableRowStateController=new q,this.clickEventEmitter=ee(E,it),this.expandEventEmitter=ee(E,Io),this.checkboxValueChangeEventPrevent=new st([it],()=>this.host,void 0,!0),this.pageResizeObserverSlimmer=new we,this.vegaComponentUsageRuntimeMetricsSlimmer=new ne,this.checkedNotifySlimmer=F(E,"checked","watchChecked"),this.expandedNotifySlimmer=F(E,"expanded","watchExpanded"),this.stripedNotifySlimmer=F(E,"striped","watchStriped"),this.rowDividerNotifySlimmer=F(E,"rowDivider","watchRowDivider"),this.currentBreakpoint=me(),this.hasExpandableRow=!1,this.draggable=!1}watchSelectionType(){}watchChecked(){}watchExpanded(){}watchStriped(){}watchRowDivider(){}render(){return Ot(c("slot",null)),ae(c(re,{class:{"row-divider":this.rowDivider,"column-divider":this.columnDivider,striped:this.striped,[`density-${Ie.formatCustom(this.density)}`]:!0}},this.vegaTableRowRenderer.render()),this.host)}get host(){return oe(this)}static get watchers(){return{selectionType:["watchSelectionType"],checked:["watchChecked"],expanded:["watchExpanded"],striped:["watchStriped"],rowDivider:["watchRowDivider"]}}};W([ie()],E.prototype,"globalSlimmers",void 0);W([d()],E.prototype,"vegaTableRowRenderer",void 0);W([d()],E.prototype,"vegaTableRowSelectionController",void 0);W([d()],E.prototype,"vegaTableRowExpandController",void 0);W([d()],E.prototype,"vegaTableRowClickController",void 0);W([d()],E.prototype,"vegaTableRowStateController",void 0);W([d()],E.prototype,"clickEventEmitter",void 0);W([d()],E.prototype,"expandEventEmitter",void 0);W([d()],E.prototype,"checkboxValueChangeEventPrevent",void 0);W([d()],E.prototype,"pageResizeObserverSlimmer",void 0);W([d()],E.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);W([d()],E.prototype,"checkedNotifySlimmer",void 0);W([d()],E.prototype,"expandedNotifySlimmer",void 0);W([d()],E.prototype,"stripedNotifySlimmer",void 0);W([d()],E.prototype,"rowDividerNotifySlimmer",void 0);E.style=Pr;export{u as vega_table,Qt as vega_table_body,Ze as vega_table_cell,xe as vega_table_expand_row,Bt as vega_table_foot,wt as vega_table_foot_cell,yt as vega_table_foot_row,Wt as vega_table_head,ue as vega_table_head_cell,Ee as vega_table_head_row,E as vega_table_row};
@@ -0,0 +1 @@
1
+ import{r as g,h as a,H as v,g as w,P as R,M as d,f,I as x}from"./index-BMrI2UiZ.js";import{V as T,I as y}from"./component-usage-runtime-metrics-4b1afd04-DfeLFf_f.js";var p=function(h,t,e,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(h,t,e,i);else for(var s=h.length-1;s>=0;s--)(l=h[s])&&(o=(n<3?l(o):n>3?l(t,e,o):l(t,e))||o);return n>3&&o&&Object.defineProperty(t,e,o),o};class r extends R{constructor(){super({target:()=>[this.host,document.body],callback:()=>{this.overflow==="ellipsis"&&this.handleTooltip()},isDeferred:!0}),this.handleTooltip=async()=>{if(this.host.clientWidth===0)return;this.host.style.minWidth="auto",this.tooltipRef&&(this.tooltipRef.textContent=this.text);const t=this.computeTruncatedText();t!==this.text?(this.createTooltip(t).componentOnReady().then(()=>{this.updateTooltipDisplayText()}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{!this.host||!this.host.isConnected||(this.host.style.minWidth="auto",this.updateTooltipDisplayText())})})):this.removeTooltip()},this.createTooltip=t=>{var e,i,n;return this.tooltipRef=this.host.querySelector("vega-tooltip"),this.tooltipRef?this.tooltipRef.textContent=t:(this.tooltipRef=document.createElement("vega-tooltip"),this.tooltipRef.text=this.text,this.tooltipRef.textContent=t,this.tooltipRef.placement=(e=this.tooltip)===null||e===void 0?void 0:e.placement,this.tooltipRef.maxWidth=(i=this.tooltip)===null||i===void 0?void 0:i.maxWidth,this.tooltipRef.minWidth=(n=this.tooltip)===null||n===void 0?void 0:n.minWidth,this.host.replaceChildren(this.tooltipRef)),this.tooltipRef},this.truncateStringWithEllipsis=t=>this.text.substring(0,t)+"...",this.getSafeTextLengthByDom=()=>{const t=this.widthCheckerRef;t.textContent=this.text;const e=this.host.getBoundingClientRect().width;let i=t.getBoundingClientRect().width;if(this.text.length<2||i<=e)return this.text.length;let n=0,o=this.text.length-1;for(let l=0;l<this.text.length&&n<o;l++){const s=Math.floor((n+o+1)/2),u=this.text.substring(0,s)+"...";t.textContent=u,i=t.getBoundingClientRect().width,i<=e?n=s:o=s-1}return Math.max(1,n)}}componentDidLoad(){this.widthCheckerRef=this.host.shadowRoot.querySelector(".width-checker"),this.host.textContent=this.text,this.overflow==="ellipsis"&&this.handleTooltip()}watchText(){this.host.textContent=this.text,this.overflow==="ellipsis"?this.handleTooltip():this.removeTooltip()}watchTooltip(){var t,e,i;this.tooltipRef&&(this.tooltipRef.placement=(t=this.tooltip)===null||t===void 0?void 0:t.placement,this.tooltipRef.maxWidth=(e=this.tooltip)===null||e===void 0?void 0:e.maxWidth,this.tooltipRef.minWidth=(i=this.tooltip)===null||i===void 0?void 0:i.minWidth)}removeTooltip(){this.tooltipRef&&(this.host.textContent=this.text,this.tooltipRef.remove(),this.tooltipRef=null)}updateTooltipDisplayText(){this.tooltipRef&&(this.tooltipRef.textContent=this.text);const t=this.computeTruncatedText();t===this.text?this.removeTooltip():this.tooltipRef&&this.tooltipRef.textContent!==t&&(this.tooltipRef.textContent=t)}computeTruncatedText(){const t=this.getSafeTextLengthByDom();return t===this.text.length?this.text:(t<=1?this.insertMinWidthStyle():this.host.style.minWidth="auto",this.truncateStringWithEllipsis(t))}insertMinWidthStyle(){let t=this.host.shadowRoot.querySelector("#min-width-placeholder");t||(t=document.createElement("span"),t.id="min-width-placeholder",t.style.cssText="position:absolute; visibility:hidden; word-break:keep-all;",this.host.shadowRoot.appendChild(t)),t.textContent=this.truncateStringWithEllipsis(1),this.host.style.minWidth=t.getBoundingClientRect().width+"px"}}p([d()],r.prototype,"host",void 0);p([d()],r.prototype,"text",void 0);p([d()],r.prototype,"tooltip",void 0);p([d()],r.prototype,"overflow",void 0);p([f("componentDidLoad")],r.prototype,"componentDidLoad",null);p([f("watchText")],r.prototype,"watchText",null);p([f("watchTooltip")],r.prototype,"watchTooltip",null);const b=":host{display:block;font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;letter-spacing:inherit;line-height:inherit;flex-direction:column;flex-wrap:wrap;gap:0px}:host .placeholder-text{display:block;width:100%;visibility:hidden;overflow:hidden;word-break:break-all;height:0px !important;margin:0;padding:0;line-height:0px;border:none}:host .width-checker{position:absolute;display:block;visibility:hidden;top:0;left:0;white-space:nowrap;height:0px !important;margin:0;padding:0;border:none}:host(.vega-container-text-newline){overflow-wrap:break-word}:host(.vega-container-text-newline) .placeholder-text{display:none}:host(.vega-container-text-ellipsis){word-break:break-all;min-width:0}";var m=function(h,t,e,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(h,t,e,i);else for(var s=h.length-1;s>=0;s--)(l=h[s])&&(o=(n<3?l(o):n>3?l(t,e,o):l(t,e))||o);return n>3&&o&&Object.defineProperty(t,e,o),o};const c=class{constructor(h){g(this,h),this.globalSlimmers={},this.tooltipRenderer=new r,this.vegaComponentUsageRuntimeMetricsSlimmer=new T,this.overflow="newline",this.text=""}watchText(){}watchTooltip(){}componentDidLoad(){}render(){return a(v,{class:{"vega-container-text-ellipsis":this.overflow==="ellipsis","vega-container-text-newline":this.overflow==="newline"}},a("span",{class:"placeholder-text"},this.text),a("span",{class:"width-checker"}),a("slot",null))}get host(){return w(this)}static get watchers(){return{text:["watchText"],tooltip:["watchTooltip"]}}};m([y()],c.prototype,"globalSlimmers",void 0);m([x()],c.prototype,"tooltipRenderer",void 0);m([x()],c.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);c.style=b;export{c as vega_text};
@@ -0,0 +1 @@
1
+ import{r as m,c as s,Z as f,h as n,C as c,W as v,H as b,D as w,a6 as u,g as y,aq as C,I as l}from"./index-BMrI2UiZ.js";import{M as E,a as z}from"./min-string-length-rule-c31c89f4-8WfkOrjE.js";import{R as I}from"./required-field-rule-897fe8d1-BfULpOqT.js";import{s as R}from"./component-7d906393-ouA59Xga.js";import{V as L,I as V}from"./component-usage-runtime-metrics-4b1afd04-DfeLFf_f.js";import{F as S}from"./form-field-controller-slimmer-a1c7b28c-Dd3MqkCK.js";import{c as g}from"./event-emit-slimmer-db4a82e0-BMETG_nd.js";import{C as B}from"./child-nodes-event-prevent-slimmer-96c14f5a-CX6gTt7j.js";import"./mutation-observer-slimmer-58ebc13c-B96ukalh.js";import"./sub-state-observer-slimmer-64532d94-OEvM7LUT.js";import"./mutation-observer-filters-1a054fb0-DqFynVMq.js";import"./array-7888f339-TrIHVDOh.js";const T=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented for the text area",payloadValue:t=>t.autoValidation===!0},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented for the text area",payloadValue:t=>t.autoValidation===!1}],M=':host{display:inline-block;width:100%;text-align:left}:host .vega-textarea-container{display:flex;position:relative;width:100%;resize:vertical;box-sizing:border-box;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));border-radius:8px;overflow:hidden;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));min-height:50px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-textarea-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-textarea-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-textarea-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host textarea{display:block;position:relative;padding-top:12px;padding-right:16px;padding-bottom:32px;padding-left:16px;width:100%;resize:vertical;box-sizing:border-box;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:8px;outline:2px solid transparent;outline-offset:2px;border-style:none;overflow:auto;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));min-height:48px}@media screen and (min-width: 768px) and (max-width: 1023px){:host textarea{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host textarea{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host textarea{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-textarea-container.vega-textarea-not-resizable{resize:none}:host .vega-textarea-container.vega-textarea-not-resizable textarea{resize:none}:host vega-field-label{margin-bottom:8px}:host .vega-textarea-counter{position:absolute;bottom:8px;right:8px;display:flex;padding-left:4px;padding-right:4px;padding-top:2px;padding-bottom:2px;border-radius:4px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));background-color:rgba(var(--v-bg-textarea-count, 4, 4, 28, 0.6))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-textarea-counter{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-textarea-counter{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-textarea-counter{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-textarea-counter.counter-exceed-max-length{background-color:rgba(var(--v-bg-textarea-counter-exceed-max-length, 214, 46, 81))}:host textarea::placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host vega-text{padding-left:8px;padding-right:8px;padding-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-textarea-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host .vega-textarea-container:focus-within{border:1px solid rgba(var(--v-border-input-field-focus, 19, 98, 226, 1));outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}:host .vega-textarea-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .vega-textarea-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host .vega-textarea-container.error:focus-within{border:1px solid rgba(var(--v-border-input-field-danger-focus, 233, 71, 104, 1));outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1))}:host(.disabled) textarea{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1));background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host(.disabled) .vega-textarea-container{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host .vega-hidden{display:none}';var o=function(t,e,a,h){var d=arguments.length,r=d<3?e:h===null?h=Object.getOwnPropertyDescriptor(e,a):h,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,a,h);else for(var x=t.length-1;x>=0;x--)(p=t[x])&&(r=(d<3?p(r):d>3?p(e,a,r):p(e,a))||r);return d>3&&r&&Object.defineProperty(e,a,r),r};const i=class{constructor(t){m(this,t),this.vegaChange=s(this,"vegaChange",7),this.change=s(this,"change",7),this.vegaBlur=s(this,"vegaBlur",7),this.blur=s(this,"blur",7),this.vegaLabelButtonClick=s(this,"vegaLabelButtonClick",7),this.labelButtonClick=s(this,"labelButtonClick",7),this.globalSlimmers={},this.formFieldController=new S({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new I:null},{propertyName:"minLength",ruleFactory:e=>e?new E({minStrLength:e}):null},{propertyName:"maxLength",ruleFactory:e=>e?new z({maxStrLength:e}):null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>[this.textareaRef]}),this.changeEventEmitter=g(i,f),this.blurEventEmitter=g(i,C),this.labelButtonClickEventEmitter=g(i,u),this.textareaEventPrevent=new B([f],()=>this.inputContainerRef),this.vegaComponentUsageRuntimeMetricsSlimmer=new L(T),this.currentCharCount=0,this.placeholder="",this.hint="",this.disabled=!1,this.label="",this.labelSuffixButtonConfig=null,this.showCounter=!1,this.value="",this.isValid=null,this.autoValidation=!0,this.required=!1,this.maxLength=null,this.minLength=null,this.optional=!1,this.resizable=!0,this.rows=5,this.validationRules=[],this.renderTextareaContainer=()=>n("div",{class:{"vega-textarea-container":!0,"vega-textarea-not-resizable":!this.resizable},ref:e=>this.inputContainerRef=e},n("textarea",{rows:this.rows>=2?this.rows-1:4,placeholder:this.placeholder,disabled:this.disabled,required:this.required,ref:this.setTextareaRef,maxLength:this.maxLength,minLength:this.minLength,value:this.value,onBlur:this.handleTextareaBlur,"aria-label":this.label||"No label defined"}),this.showCounter&&this.renderCharacterCounter()),this.renderHintMessage=()=>n("vega-text",{text:this.hint}),this.renderCharacterCounter=()=>n("div",{class:{"vega-textarea-counter":!0,"counter-exceed-max-length":this.isExceedMaxLength(this.value,this.maxLength)}},n("span",{id:"current"},this.currentCharCount),this.maxLength!=null&&this.renderMaxLengthNumber()),this.renderMaxLengthNumber=()=>n("span",{id:"maximum"},"/",this.maxLength),this.setTextareaRef=e=>{e&&this.textareaRef!==e&&(this.textareaRef=e)},this.inputFocus=()=>{this.textareaRef.focus()},this.handleTextareaBlur=e=>{this.blurEventEmitter.emit(void 0,e)},this.isExceedMaxLength=(e,a)=>a!=null?e.length>a:!1,this.handleLabelButtonClick=()=>{this.labelButtonClickEventEmitter.emit()}}watchValue(t){this.changeEventEmitter.emit(t),this.textareaRef.value!==this.value&&(this.textareaRef.value=this.value),this.currentCharCount=t.length,c.notify(v,{host:this.host,detail:t})}watchValidationRules(){}componentWillLoad(){this.currentCharCount=this.value.length}handleValueTextarea(){this.value=this.textareaRef.value,this.currentCharCount=this.value.length}render(){return R(n(b,{class:{disabled:this.disabled}},this.renderLabelDom(),this.renderTextareaContainer(),this.hint&&this.renderHintMessage()),this.host)}renderLabelDom(){return n("vega-field-label",{onClick:this.inputFocus,"is-field-required":this.required,disabled:this.disabled,label:this.label,optional:this.optional,suffixButtonConfig:this.labelSuffixButtonConfig,ref:t=>{w.addUniqueObserverToNode(t,u,this.handleLabelButtonClick)}})}get host(){return y(this)}static get watchers(){return{value:["watchValue"],validationRules:["watchValidationRules"]}}};o([V()],i.prototype,"globalSlimmers",void 0);o([l()],i.prototype,"formFieldController",void 0);o([l()],i.prototype,"changeEventEmitter",void 0);o([l()],i.prototype,"blurEventEmitter",void 0);o([l()],i.prototype,"labelButtonClickEventEmitter",void 0);o([l()],i.prototype,"textareaEventPrevent",void 0);o([l()],i.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);i.style=M;export{i as vega_textarea};
@@ -0,0 +1 @@
1
+ import{r as oe,c as X,Z as H,y as F,z as _,h as d,H as re,g as ie,a as S,D as P,ap as ne,aq as ae,F as W,b as Z,C as me,W as ge,dd as V,L as le,de as M,aB as ve,df as J,x as Q,M as i,f,I as h}from"./index-BMrI2UiZ.js";import{C as fe}from"./component-load-required-db42032a-Di7iuaem.js";import{T as ee,a as te}from"./time-required-rule-355b73d2-FidD-Ede.js";import{s as se}from"./component-7d906393-ouA59Xga.js";import{V as de,I as pe}from"./component-usage-runtime-metrics-4b1afd04-DfeLFf_f.js";import{F as we}from"./form-field-controller-slimmer-a1c7b28c-Dd3MqkCK.js";import{c as K}from"./accessibility-6af5cf2e-XlEB_Jt7.js";import{b as ye}from"./array-7888f339-TrIHVDOh.js";import{E as ce}from"./element-appender-slimmer-a4485ef6-dlZScM7M.js";import{C as ue}from"./click-outside-only-to-dismiss-strategy-3d286c1b-Bt4qXmzF.js";import{K as be}from"./keyboard-manager-slimmer-531ddb0e-D5BEIWMB.js";import{C as De}from"./child-nodes-event-prevent-slimmer-96c14f5a-CX6gTt7j.js";import{c as Re}from"./event-emit-slimmer-db4a82e0-BMETG_nd.js";import{T as Ie}from"./translation-slimmer-3ea56354-DmrJUSd_.js";import"./mutation-observer-slimmer-58ebc13c-B96ukalh.js";import"./sub-state-observer-slimmer-64532d94-OEvM7LUT.js";import"./keyboard-manager-ec18721b-DW2NToqy.js";import"./mutation-observer-filters-1a054fb0-DqFynVMq.js";import"./responsive-format-facade-299e6304-B3WyOCHm.js";var B=function(n,e,t,o){var a=arguments.length,r=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,o);else for(var s=n.length-1;s>=0;s--)(l=n[s])&&(r=(a<3?l(r):a>3?l(e,t,r):l(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};class E extends S{constructor(){super(...arguments),this.onTimePickerFocus=async()=>{this.mode==="single"?await this.singleInputRenderer.getInputRef().doFocus():await this.rangeInputRenderer.getStartInputRef().doFocus()}}render(){return d("vega-field-label",{onClick:this.onTimePickerFocus,"is-field-required":this.required,optional:this.optional,disabled:this.disabled,label:this.label})}}B([i()],E.prototype,"label",void 0);B([i()],E.prototype,"mode",void 0);B([i()],E.prototype,"required",void 0);B([i()],E.prototype,"optional",void 0);B([i()],E.prototype,"disabled",void 0);B([i()],E.prototype,"singleInputRenderer",void 0);B([i()],E.prototype,"rangeInputRenderer",void 0);var T=function(n,e,t,o){var a=arguments.length,r=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,o);else for(var s=n.length-1;s>=0;s--)(l=n[s])&&(r=(a<3?l(r):a>3?l(e,t,r):l(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};class R extends S{constructor(){super(...arguments),this.onChildVegaInputChange=e=>{this.valueController.setValue(e.detail)}}getInputRef(){return this.timeInputRef}updateInputValue(e){this.timeInputRef.value=e}render(){return d("div",{class:"time-picker-input"},d("vega-input",{"prefix-icon":"clock-face",placeholder:this.getPlaceholder(),disabled:this.disabled,readOnly:this.readOnly,size:this.size,value:typeof this.value=="string"?this.value:"",showClearIcon:this.showClearIcon,ref:e=>{this.timeInputRef=e,this.handleVegaInputEvent(e)}}))}handleVegaInputEvent(e){P.addUniqueObserverToNode(e,H,t=>{this.onChildVegaInputChange(t)}),P.addUniqueObserverToNode(e,ne,()=>{this.singleDropdownController.show()}),P.addUniqueObserverToNode(e,ae,t=>{this.valueController.checkValueAfterInputBlur(t)})}getPlaceholder(){return this.placeholder&&typeof this.placeholder=="string"?this.placeholder:this.translationSlimmer.t("Select Time")}}T([i()],R.prototype,"placeholder",void 0);T([i()],R.prototype,"size",void 0);T([i()],R.prototype,"disabled",void 0);T([i()],R.prototype,"value",void 0);T([i()],R.prototype,"valueController",void 0);T([i()],R.prototype,"singleDropdownController",void 0);T([i()],R.prototype,"translationSlimmer",void 0);T([i()],R.prototype,"readOnly",void 0);T([i()],R.prototype,"showClearIcon",void 0);var j=function(n,e,t,o){var a=arguments.length,r=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,o);else for(var s=n.length-1;s>=0;s--)(l=n[s])&&(r=(a<3?l(r):a>3?l(e,t,r):l(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};class O extends S{constructor(){super(...arguments),this.isMobileDevice=F()===_.MOBILE,this.isTabletDevice=F()===_.TABLET,this.renderDropdownByTimeSource=()=>d(W,null,this.renderDropdownColumn(this.dropdownSource.hours,"hour"),this.renderDropdownColumn(this.dropdownSource.minutes,"minute"),this.timeFormat==="12-hour"&&this.renderDropdownColumn(["AM","PM"],"amPm")),this.onItemClick=(e,t)=>{this.dropdownSelectedItemsController.setSelectedItems(Object.assign(Object.assign({},this.selectedTimeValue),{[t]:e}))},this.onNowButtonClick=()=>{this.dropdownSelectedItemsController.setSelectedItemsToCurrentTime(),this.singleDropdownController.hide()},this.onApplyButtonClick=()=>{this.valueController.updateValueBySelectedItems(),this.singleDropdownController.hide()}}componentDidRenderCallback(){this.dropdownContainer&&this.dropdownContainer.parentElement===this.dropdown&&this.dropdown.shadowRoot.append(this.dropdownContainer)}getDropdownRef(){return this.dropdown}getSelectedItem(){const e=[],t=this.dropdown.shadowRoot;return t.querySelectorAll(".vega-dropdown-item-selected").forEach(o=>{e.push(o)}),e.length===0&&t.querySelectorAll(".vega-time-picker-dropdown-panel li:first-child").forEach(o=>{e.push(o)}),e}render(){return d("vega-time-picker-dropdown",{class:{"vega-time-picker-dropdown":!0,mobile:this.isMobileDevice,tablet:this.isTabletDevice},ref:e=>this.dropdown=e},d("div",{class:"vega-time-picker-dropdown-container",ref:e=>this.dropdownContainer=e},d("div",{class:"vega-time-picker-dropdown-panel"},this.renderDropdownByTimeSource()),d("div",{class:"horizontal-divider v-my-size-12"}),this.renderDropdownFoot()))}renderDropdownColumn(e,t){return d("ul",{role:"menu","aria-label":"dropdown-ul",class:{"vega-time-picker-panel-column":!0}},e.map((o,a)=>this.renderDropdownItem(o,t,a)))}renderDropdownItem(e,t,o){return d("li",{key:e,role:"menuitem","aria-label":e,class:{"vega-dropdown-item-selected":this.isItemSelected(e,t)},tabIndex:o===0?0:-1,"data-index":o,onClick:()=>this.onItemClick(e,t),onKeyDown:K()},d("span",{"data-index":o,innerHTML:e}))}renderDropdownFoot(){return d("div",{class:"vega-time-picker-dropdown-footer"},d("div",{class:"vega-time-picker-now"},d("vega-button-link",{size:"small",label:"Now",ref:e=>{P.addUniqueObserverToNode(e,Z,()=>{this.onNowButtonClick()})}})),d("div",null,d("vega-button-link",{size:"small",label:"Apply",ref:e=>{P.addUniqueObserverToNode(e,Z,()=>{this.onApplyButtonClick()})}})))}isItemSelected(e,t){return this.selectedTimeValue[`${t}`]===e}}j([i()],O.prototype,"timeFormat",void 0);j([i()],O.prototype,"dropdownSource",void 0);j([i()],O.prototype,"selectedTimeValue",void 0);j([i()],O.prototype,"valueController",void 0);j([i()],O.prototype,"dropdownSelectedItemsController",void 0);j([i()],O.prototype,"singleDropdownController",void 0);j([f("componentDidRender")],O.prototype,"componentDidRenderCallback",null);var y=function(n,e,t,o){var a=arguments.length,r=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,o);else for(var s=n.length-1;s>=0;s--)(l=n[s])&&(r=(a<3?l(r):a>3?l(e,t,r):l(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};class w extends S{emitChangeEventOrClearTimePicker(e,t){this.mode==="range"&&ye(e,t)||(this.valueGuard(e)?(this.changeEventEmitter.emit(e),me.notify(ge,{host:this.host,detail:e})):this.mode==="single"?this.clearTimePicker():this.clearRangeTimePicker())}updateValueIfSelectedItemsChange(){this.mode==="single"&&Object.keys(this.selectedTimeValue).length>0&&this.updateValueBySelectedItems()}resetCurrentValueIfModeChange(){this.resetValue()}checkTheDefaultValueForRangeMode(){this.mode==="range"&&this.value&&!this.valueGuard(this.value)&&this.clearRangeTimePicker()}checkValueAfterInputBlur(e){const t=e.host;this.valueGuard(t.value)?this.increments>1&&this.value&&t.value&&t.value!==this.value&&(t.value=this.value):this.clearTimePicker()}setValue(e){this.valueGuard(e)&&(this.value=e)}resetValue(){this.value=this.mode==="single"?"":["",""]}updateValueBySelectedItems(){const e=this.timeFormat==="12-hour"?"12":"00",t=this.selectedTimeValue.hour?this.selectedTimeValue.hour:e,o=this.selectedTimeValue.minute?this.selectedTimeValue.minute:"00",a=this.selectedTimeValue.amPm?this.selectedTimeValue.amPm:"AM";this.timeFormat==="12-hour"?this.setValue(`${t}:${o} ${a}`):this.setValue(`${t}:${o}`)}updateValueByRangeType(e,t){t==="start"?this.setValue([e,Array.isArray(this.value)&&this.value[1]&&V(this.value[1],this.timeFormat)?this.value[1]:""]):this.setValue([Array.isArray(this.value)&&this.value[0]&&V(this.value[0],this.timeFormat)?this.value[0]:"",e])}clearRangeTimePicker(){this.value=["",""],this.rangeInputRenderer.getStartInputRef().value="",this.rangeInputRenderer.getEndInputRef().value=""}clearTimePicker(){this.value="",this.singleInputRenderer.getInputRef().value="",this.dropdownSelectedItemsController.setSelectedItems({})}valueGuard(e){let t;switch(this.mode){case"single":t=e&&typeof e=="string"&&V(e,this.timeFormat)||e==="";break;case"range":t=Array.isArray(e)&&e.length===2&&e.every(o=>V(o,this.timeFormat)||o==="");break}return t||le.warn(`Invalid time picker value ${e} for ${this.mode} mode`),t}}y([i({writable:!0})],w.prototype,"value",void 0);y([i()],w.prototype,"mode",void 0);y([i()],w.prototype,"timeFormat",void 0);y([i()],w.prototype,"selectedTimeValue",void 0);y([i()],w.prototype,"increments",void 0);y([i()],w.prototype,"changeEventEmitter",void 0);y([i()],w.prototype,"singleInputRenderer",void 0);y([i()],w.prototype,"rangeInputRenderer",void 0);y([i()],w.prototype,"dropdownSelectedItemsController",void 0);y([i()],w.prototype,"host",void 0);y([f("watchValue")],w.prototype,"emitChangeEventOrClearTimePicker",null);y([f("watchSelectedTimeValue")],w.prototype,"updateValueIfSelectedItemsChange",null);y([f("watchMode")],w.prototype,"resetCurrentValueIfModeChange",null);y([f("componentDidLoad")],w.prototype,"checkTheDefaultValueForRangeMode",null);var m=function(n,e,t,o){var a=arguments.length,r=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,o);else for(var s=n.length-1;s>=0;s--)(l=n[s])&&(r=(a<3?l(r):a>3?l(e,t,r):l(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};class c extends ce{constructor(){super(()=>({target:this.singleInputRenderer.getInputRef(),appendableElement:this.singleDropdownRenderer.getDropdownRef(),positionRelativeTo:this.positionRelativeTo,translocation:{X:0,Y:8},placement:["bottom","top"],isScreenPosition:this.vegaDropdownProps.isScreenPosition}),()=>new ue)}initValueAndDropdownSource(){this.valueController.resetValue(),this.initDropdownSource()}initDropdownSourceAndInputMaskConfig(){this.valueController.resetValue(),this.initDropdownSource(),this.inputMaskController.initInputMask()}initDropdownSourceAndSelectedItems(){this.initDropdownSource(),this.mode==="single"&&this.dropdownSelectedItemsController.initSelectedItemsByString(this.value)}hideDropdownWhenDisabled(){this.mode==="single"&&this.hide()}initDropdownSource(){this.dropdownSource={hours:this.getSourceHoursStrings(),minutes:this.getSourceMinutesStrings()}}getSourceMinutesStrings(){(this.increments<1||this.increments>59||isNaN(Number(this.increments)))&&(le.warn("The increments should be between 1 and 59."),this.increments=1);const e=[];for(let t=0;t<60;t=t+this.increments)e.push(M(t));return e}getSourceHoursStrings(){const e=[];if(this.timeFormat==="12-hour"){e.push("12");for(let t=1;t<12;t++)e.push(M(t))}else for(let t=0;t<24;t++)e.push(M(t));return e}}m([i({writable:!0})],c.prototype,"isDropdownShow",void 0);m([i({writable:!0})],c.prototype,"dropdownSource",void 0);m([i()],c.prototype,"mode",void 0);m([i({writable:!0})],c.prototype,"increments",void 0);m([i()],c.prototype,"timeFormat",void 0);m([i()],c.prototype,"value",void 0);m([i()],c.prototype,"positionRelativeTo",void 0);m([i()],c.prototype,"vegaDropdownProps",void 0);m([i()],c.prototype,"selectedTimeValue",void 0);m([i()],c.prototype,"singleInputRenderer",void 0);m([i()],c.prototype,"rangeInputRenderer",void 0);m([i()],c.prototype,"singleDropdownRenderer",void 0);m([i()],c.prototype,"valueController",void 0);m([i()],c.prototype,"dropdownSelectedItemsController",void 0);m([i()],c.prototype,"inputMaskController",void 0);m([f("watchIncrements")],c.prototype,"initValueAndDropdownSource",null);m([f("watchTimeFormat")],c.prototype,"initDropdownSourceAndInputMaskConfig",null);m([f("componentWillLoad")],c.prototype,"initDropdownSourceAndSelectedItems",null);m([f("watchDisabled")],c.prototype,"hideDropdownWhenDisabled",null);var D=function(n,e,t,o){var a=arguments.length,r=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,o);else for(var s=n.length-1;s>=0;s--)(l=n[s])&&(r=(a<3?l(r):a>3?l(e,t,r):l(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};class b extends S{constructor(){super(...arguments),this.DROPDOWN_ITEM_DEFAULT_HEIGHT=32,this.initSelectedItemsByString=e=>{e===""||!V(e,this.timeFormat)?this.selectedTimeValue={}:this.selectedTimeValue=this.getClosetTimeValue(e)},this.scrollToSelectedElement=e=>{const t=e.closest("ul"),o=Number(e.dataset.index)*this.DROPDOWN_ITEM_DEFAULT_HEIGHT;t.scrollTop=o},this.getClosestMinuteForCurrent=e=>{const t=this.dropdownSource.minutes.filter(o=>Number(o)<=Number(e));return t[t.length-1]},this.getCurrentTime=e=>{const t=new Date(Date.now()).getHours(),o=M(new Date(Date.now()).getMinutes());return e==="12-hour"?{hour:t>12?M(t-12):M(t===0?12:t),minute:o,amPm:t>=12?"PM":"AM"}:{hour:M(t),minute:o}},this.selectedElementScrollTop=()=>{(this.mode==="single"?this.singleDropdownRenderer.getSelectedItem():this.rangeDropdownRenderer.getSelectedItem()).forEach(t=>{this.scrollToSelectedElement(t)})}}syncSelectedItemsByValueChange(e){this.mode==="single"&&(V(e,this.timeFormat)||!e)&&this.initSelectedItemsByString(e)}syncSelectedItemsPositionWhenDropdownShow(e){e&&(this.disabled||this.selectedElementScrollTop())}syncSelectedItemsPosition(){(this.mode==="single"&&Object.keys(this.selectedTimeValue).length>0||this.mode==="range"&&Array.isArray(this.value)&&(this.value[0]||this.value[1]))&&this.selectedElementScrollTop()}setSelectedItems(e){this.selectedTimeValue=e}setSelectedItemsToCurrentTime(){this.selectedTimeValue=this.getCurrentTime(this.timeFormat)}getClosetTimeValue(e){const t=e.replace(" ",":").split(":");return{hour:t[0],minute:this.increments>1?this.getClosestMinuteForCurrent(t[1]):t[1],amPm:this.timeFormat==="12-hour"?t[2]:void 0}}}D([i({writable:!0})],b.prototype,"selectedTimeValue",void 0);D([i()],b.prototype,"mode",void 0);D([i()],b.prototype,"value",void 0);D([i()],b.prototype,"timeFormat",void 0);D([i()],b.prototype,"dropdownSource",void 0);D([i()],b.prototype,"increments",void 0);D([i()],b.prototype,"disabled",void 0);D([i()],b.prototype,"singleDropdownRenderer",void 0);D([i()],b.prototype,"rangeDropdownRenderer",void 0);D([f("watchValue")],b.prototype,"syncSelectedItemsByValueChange",null);D([f("watchIsDropdownShow")],b.prototype,"syncSelectedItemsPositionWhenDropdownShow",null);D([f("componentDidRender")],b.prototype,"syncSelectedItemsPosition",null);var x=function(n,e,t,o){var a=arguments.length,r=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,o);else for(var s=n.length-1;s>=0;s--)(l=n[s])&&(r=(a<3?l(r):a>3?l(e,t,r):l(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};class I extends be{constructor(){super(e=>{const t=e.singleDropdownRenderer.getDropdownRef(),o=e.rangeDropdownRenderer.getStartDropdownRef(),a=e.rangeDropdownRenderer.getEndDropdownRef();return[{keyCode:"Enter",activeElementInScope:[e.host],callback:e.componentBlurAndHideDropdown},{keyCode:["ArrowUp","ArrowDown"],activeElementInScope:[t,o,a],callback:r=>{e.switchHourOrMinuteFocus(r)}},{keyCode:"Escape",activeElementInScope:[e.host,t,o,a],callback:e.componentBlurAndHideDropdown}]}),this.componentBlurAndHideDropdown=async()=>{this.mode==="single"?(await this.singleInputRenderer.getInputRef().doBlur(),this.singleDropdownController.hide()):(await this.rangeInputRenderer.getStartInputRef().doBlur(),await this.rangeInputRenderer.getEndInputRef().doBlur(),this.startDropdownController.hide(),this.endDropdownController.hide())}}switchHourOrMinuteFocus(e){const t=e.key,o=e.composedPath()[0];let a=null;o.tagName==="LI"&&o.getAttribute("role")==="menuitem"&&(a=t==="ArrowDown"?o.nextElementSibling:o.previousElementSibling),a&&a.focus()}}x([i()],I.prototype,"host",void 0);x([i()],I.prototype,"mode",void 0);x([i()],I.prototype,"singleInputRenderer",void 0);x([i()],I.prototype,"singleDropdownRenderer",void 0);x([i()],I.prototype,"rangeDropdownRenderer",void 0);x([i()],I.prototype,"rangeInputRenderer",void 0);x([i()],I.prototype,"singleDropdownController",void 0);x([i()],I.prototype,"startDropdownController",void 0);x([i()],I.prototype,"endDropdownController",void 0);var v=function(n,e,t,o){var a=arguments.length,r=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,o);else for(var s=n.length-1;s>=0;s--)(l=n[s])&&(r=(a<3?l(r):a>3?l(e,t,r):l(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};class g extends S{constructor(){super(...arguments),this.isMobileDevice=F()===_.MOBILE,this.onInputChange=e=>{e.host.parentElement.classList.contains("time-picker-input-start")?this.valueController.updateValueByRangeType(e.detail,"start"):this.valueController.updateValueByRangeType(e.detail,"end")},this.timePickerInputFocus=e=>{const t=e.host,o=Array.isArray(this.value)?this.value:["",""];t.parentElement.classList.contains("time-picker-input-start")?this.startDropdownController.showAndScrollPosition(o[0]):this.endDropdownController.showAndScrollPosition(o[1]?o[1]:o[0])},this.timePickerInputBlur=e=>{const t=e.host,o=t.parentElement.classList.contains("time-picker-input-start")?"start":"end";if(!V(t.value,this.timeFormat))t.value="",this.valueController.updateValueByRangeType("",o);else if(t.value&&this.increments>1){const{hour:a,minute:r,amPm:l}=this.dropdownSelectedItemsController.getClosetTimeValue(t.value);t.value=`${a}:${r}${l?" "+l:""}`}}}getStartInputRef(){return this.startTimeInputRef}getEndInputRef(){return this.endTimeInputRef}render(){const e=Array.isArray(this.value)?this.value[0]:"",t=Array.isArray(this.value)?this.value[1]:"";return d(W,null,d("vega-flex",{class:"v-w-full",gap:"0","align-items":"center",direction:this.isMobileDevice?"col":"row"},d("div",{class:"time-picker-input time-picker-input-start vega-flex-basis-0 vega-flex-grow"},d("vega-input",{"prefix-icon":"clock-face",placeholder:this.getPlaceholderBySourceType("start"),disabled:this.disabled,readOnly:this.readOnly,size:this.size,value:e,ref:o=>(this.handlerEvent(o),this.startTimeInputRef=o),"show-clear-icon":"false"})),d("span",{class:"range-input-divider v-min-w-min vega-flex-shrink-0"}),d("div",{class:"time-picker-input time-picker-input-end vega-flex-basis-0 vega-flex-grow"},d("vega-input",{placeholder:this.getPlaceholderBySourceType("end"),disabled:this.disabled,readOnly:this.readOnly,size:this.size,value:t,ref:o=>(this.handlerEvent(o),this.endTimeInputRef=o),"show-clear-icon":"false"}))),this.rangeClearButtonRenderer.render())}handlerEvent(e){P.addUniqueObserverToNode(e,ae,t=>{this.timePickerInputBlur(t)}),P.addUniqueObserverToNode(e,H,t=>{this.onInputChange(t)}),P.addUniqueObserverToNode(e,ne,t=>{this.timePickerInputFocus(t)})}getPlaceholderBySourceType(e){return e==="start"?Array.isArray(this.placeholder)&&this.placeholder[0]?this.placeholder[0]:this.translationSlimmer.t("Start Time"):Array.isArray(this.placeholder)&&this.placeholder[1]?this.placeholder[1]:this.translationSlimmer.t("End Time")}}v([i()],g.prototype,"mode",void 0);v([i()],g.prototype,"placeholder",void 0);v([i()],g.prototype,"disabled",void 0);v([i()],g.prototype,"size",void 0);v([i()],g.prototype,"positionRelativeTo",void 0);v([i()],g.prototype,"timeFormat",void 0);v([i()],g.prototype,"increments",void 0);v([i()],g.prototype,"value",void 0);v([i()],g.prototype,"startDropdownController",void 0);v([i()],g.prototype,"endDropdownController",void 0);v([i()],g.prototype,"valueController",void 0);v([i()],g.prototype,"rangeClearButtonRenderer",void 0);v([i()],g.prototype,"rangeDropdownRenderer",void 0);v([i()],g.prototype,"dropdownSelectedItemsController",void 0);v([i()],g.prototype,"translationSlimmer",void 0);v([i()],g.prototype,"readOnly",void 0);var A=function(n,e,t,o){var a=arguments.length,r=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,o);else for(var s=n.length-1;s>=0;s--)(l=n[s])&&(r=(a<3?l(r):a>3?l(e,t,r):l(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};class k extends S{constructor(){super(...arguments),this.isMobileDevice=F()===_.MOBILE,this.isTabletDevice=F()===_.TABLET,this.renderStartDropdown=()=>d("vega-time-picker-dropdown",{class:{"vega-time-picker-dropdown start-dropdown":!0,mobile:this.isMobileDevice,tablet:this.isTabletDevice},ref:e=>this.startDropdown=e},d("div",{class:"vega-time-picker-dropdown-container",ref:e=>this.startDropdownContainer=e},d("div",{class:"vega-time-picker-dropdown-panel"},this.renderDropdownList("start")))),this.renderEndDropdown=()=>d("vega-time-picker-dropdown",{class:{"vega-time-picker-dropdown end-dropdown":!0,mobile:this.isMobileDevice,tablet:this.isTabletDevice},ref:e=>this.endDropdown=e},d("div",{class:"vega-time-picker-dropdown-container",ref:e=>this.endDropdownContainer=e},d("div",{class:"vega-time-picker-dropdown-panel"},this.renderDropdownList("end")))),this.renderDropdownList=e=>{const t=this.getTimeArray();return d("ul",{role:"menu","aria-label":"dropdown-ul",class:{"vega-time-picker-panel-column":!0}},t.map((o,a)=>this.renderDropdownItem(o,e,a)))}}componentDidRenderCallback(){this.startDropdownContainer&&this.startDropdownContainer.parentElement===this.startDropdown&&this.startDropdown.shadowRoot.append(this.startDropdownContainer),this.endDropdownContainer&&this.endDropdownContainer.parentElement===this.endDropdown&&this.endDropdown.shadowRoot.append(this.endDropdownContainer)}getStartDropdownRef(){return this.startDropdown}getEndDropdownRef(){return this.endDropdown}getSelectedItem(){const e=this.startDropdown.shadowRoot,t=this.endDropdown.shadowRoot;let o=[e.querySelector(".vega-dropdown-item-selected"),t.querySelector(".vega-dropdown-item-selected")].filter(Q);return o.length===0&&(o=[e.querySelector(".vega-time-picker-dropdown-panel li:first-child"),t.querySelector(".vega-time-picker-dropdown-panel li:first-child")].filter(Q)),o}render(){return d(W,null,this.renderStartDropdown(),this.renderEndDropdown())}renderDropdownItem(e,t,o){return d("li",{key:e,role:"menuitem","aria-label":e,class:{"vega-dropdown-item-selected":this.isItemSelected(e,t)},tabIndex:o===0?0:-1,"data-index":o,onClick:()=>this.onItemClick(e,t),onKeyDown:K()},d("span",{"data-index":o,innerHTML:e}))}onItemClick(e,t){this.valueController.updateValueByRangeType(e,t),t==="start"?(this.startDropdownController.hide(),this.rangeInputRenderer.getEndInputRef().doFocus()):this.endDropdownController.hide()}isItemSelected(e,t){const o=this.value&&Array.isArray(this.value)?this.value:["",""];return t==="start"&&o[0]===e?!0:t==="end"&&o[1]===e}getTimeArray(){const e=[],t=[],o=[],a=this.timeFormat,{hours:r,minutes:l}=this.dropdownSource;if(this.dropdownSource)for(let s=0;s<r.length;s++)for(let U=0;U<l.length;U++){const G=`${r[s]}:${l[U]}`;e.push(G),a==="12-hour"&&(o.push(G+" AM"),t.push(G+" PM"))}return a==="12-hour"?o.concat(t):e}}A([i()],k.prototype,"timeFormat",void 0);A([i()],k.prototype,"value",void 0);A([i()],k.prototype,"dropdownSource",void 0);A([i()],k.prototype,"valueController",void 0);A([i()],k.prototype,"rangeInputRenderer",void 0);A([i()],k.prototype,"startDropdownController",void 0);A([i()],k.prototype,"endDropdownController",void 0);A([f("componentDidRender")],k.prototype,"componentDidRenderCallback",null);var N=function(n,e,t,o){var a=arguments.length,r=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,o);else for(var s=n.length-1;s>=0;s--)(l=n[s])&&(r=(a<3?l(r):a>3?l(e,t,r):l(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};class $ extends S{constructor(){super(...arguments),this.onClickClearIcon=()=>{this.valueController.clearRangeTimePicker(),this.endDropdownController.hide(),this.rangeInputRenderer.getStartInputRef().doFocus()}}render(){return d("div",{class:{"vega-time-picker-range-clear-icon":!0,invisible:!this.shouldShowClearButton()},"aria-label":"clear input",role:"button",tabindex:this.disabled?-1:0,onClick:this.onClickClearIcon,onKeyDown:K()},d("vega-icon",{icon:"close",class:"v-min-w-min vega-flex-shrink-0"}))}shouldShowClearButton(){return this.showClearIcon&&!this.disabled&&Array.isArray(this.value)&&(!!this.value[0]||!!this.value[1])}}N([i()],$.prototype,"disabled",void 0);N([i()],$.prototype,"value",void 0);N([i()],$.prototype,"showClearIcon",void 0);N([i()],$.prototype,"valueController",void 0);N([i()],$.prototype,"endDropdownController",void 0);N([i()],$.prototype,"rangeInputRenderer",void 0);class Ce extends ve{constructor(e){super(),this.config=e}canEvaluate(e,t){return t?this.isAcceptedInputType(e)&&!t.disabled&&t.visible:this.isAcceptedInputType(e)}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}evaluate(e){if(!this.isAcceptedInputType(e))throw new Error(`Unexpected type of input: ${typeof e}: ${e}`);const t=this.isStartTimeBeforeEndTime(e[0],e[1]);return{isValid:t,message:t?"":"The end time should be later than start time"}}isAcceptedInputType(e){return Array.isArray(e)&&e.length===2&&e.every(t=>V(t,this.config.timeFormat))}isStartTimeBeforeEndTime(e,t){const o=new Date,a=o.getFullYear(),r=String(o.getMonth()+1).padStart(2,"0"),l=String(o.getDate()).padStart(2,"0"),s=`${a}-${r}-${l}`;return new Date(`${s}T${J(t)}`)>new Date(`${s}T${J(e)}`)}}var z=function(n,e,t,o){var a=arguments.length,r=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,o);else for(var s=n.length-1;s>=0;s--)(l=n[s])&&(r=(a<3?l(r):a>3?l(e,t,r):l(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};class q extends S{initInputMask(){const e={type:"custom",options:{mask:this.timeFormat==="12-hour"?"xx:xx xx":"xx:xx",slot:"x",accept:this.timeFormat==="12-hour"?/[0-9|A|P|M]/:/\d/}};this.mode==="range"?(this.rangeInputRenderer.getStartInputRef().maskConfig=e,this.rangeInputRenderer.getEndInputRef().maskConfig=e):this.singleInputRenderer.getInputRef().maskConfig=e}}z([i()],q.prototype,"timeFormat",void 0);z([i()],q.prototype,"mode",void 0);z([i()],q.prototype,"singleInputRenderer",void 0);z([i()],q.prototype,"rangeInputRenderer",void 0);z([f("componentDidLoad")],q.prototype,"initInputMask",null);var L=function(n,e,t,o){var a=arguments.length,r=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,o);else for(var s=n.length-1;s>=0;s--)(l=n[s])&&(r=(a<3?l(r):a>3?l(e,t,r):l(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};class C extends ce{constructor(e){super(()=>{const t=e==="start"?this.rangeInputRenderer.getStartInputRef():this.rangeInputRenderer.getEndInputRef(),o=e==="start"?this.rangeDropdownRenderer.getStartDropdownRef():this.rangeDropdownRenderer.getEndDropdownRef();return{target:t,appendableElement:o,positionRelativeTo:this.positionRelativeTo,translocation:{X:0,Y:8},placement:["bottom","top"],matchTargetWidth:!0,isScreenPosition:this.vegaDropdownProps.isScreenPosition}},()=>new ue,"isRangeDropdownShow"),this.isRangeDropdownShow=!1,this.rangeDropdownType="start",this.showAndScrollPosition=t=>{if(this.show(),t){const a=(this.rangeDropdownType==="start"?this.rangeDropdownRenderer.getStartDropdownRef():this.rangeDropdownRenderer.getEndDropdownRef()).shadowRoot.querySelector(`[aria-label="${t}"]`);a&&this.dropdownSelectedItemsController.scrollToSelectedElement(a)}},this.rangeDropdownType=e}hideDropdownWhenDisabled(){this.mode==="range"&&this.isRangeDropdownShow&&this.hide()}}L([i()],C.prototype,"positionRelativeTo",void 0);L([i()],C.prototype,"vegaDropdownProps",void 0);L([i()],C.prototype,"mode",void 0);L([i()],C.prototype,"rangeDropdownRenderer",void 0);L([i()],C.prototype,"rangeInputRenderer",void 0);L([i()],C.prototype,"dropdownSelectedItemsController",void 0);L([f("watchDisabled")],C.prototype,"hideDropdownWhenDisabled",null);const Se=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented for the time picker during user input",payloadValue:n=>n.autoValidation===!0},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented for the time picker during user input",payloadValue:n=>n.autoValidation===!1},{payloadKey:"MODE_IS_SINGLE",payloadDescription:"Specifies the mode for selecting time in the time picker, `single` indicates the ability to select a single time.",payloadValue:n=>n.mode==="single"},{payloadKey:"MODE_IS_RANGE",payloadDescription:"Specifies the mode for selecting time in the time picker, `range` indicates the ability to select a time range",payloadValue:n=>n.mode==="range"},{payloadKey:"READ_ONLY_IS_TRUE",payloadDescription:"Specifies whether the time picker field is set to read-only",payloadValue:n=>n.readOnly===!0},{payloadKey:"READ_ONLY_IS_FALSE",payloadDescription:"Specifies whether the time picker field is set to read-only",payloadValue:n=>n.readOnly===!1}],Te=':host{display:inline-block;text-align:left;line-height:normal;width:100%}vega-field-label{margin-bottom:8px}vega-input::part(field-error-message){display:none}.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1));display:block;padding-top:12px;padding-right:8px;padding-left:8px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-time-picker-input-container.error vega-input::part(input-container){border-width:0px}.vega-time-picker-input-container.error vega-input::part(input-container):hover{border-width:0px}.vega-time-picker-input-container.error vega-input::part(input-container):focus-within{outline:none}.vega-time-picker-input-container.error{border-radius:8px;border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.vega-time-picker-input-container.error .vega-time-picker-range-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-time-picker-input-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}.vega-time-picker-input-container.error:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1))}.vega-hidden{display:none}.range-input-divider{width:1px;height:24px;border-style:solid;border-right-width:1px;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1))}.mobile .range-input-divider{width:100%;height:1px;border-style:solid;border-right-width:0px;border-top-width:1px;border-bottom-width:0px;border-left-width:0px}.mobile .time-picker-input-end vega-input::part(input){padding-left:26px}.range-mode{position:relative;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:8px;border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}:host(.disabled) .range-mode{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host:not(.disabled) .range-mode:not(.error):hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.range-mode vega-input::part(input-container),:host(.disabled) .range-mode vega-input::part(input-container):hover{border-width:0px}.range-mode:not(.error) .time-picker-input-start vega-input::part(input-container):focus-within,.range-mode:not(.error) .time-picker-input-end vega-input::part(input-container):focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1));margin:-1px}.range-mode .vega-time-picker-range-clear-icon{position:absolute;width:16px;height:16px;cursor:pointer;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));top:50%;right:16px;transform:translateY(-50%)}.range-mode .vega-time-picker-range-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;border-radius:4px;padding:2px}.range-mode.mobile .vega-time-picker-range-clear-icon{top:75%}.range-mode.mobile .time-picker-input{width:100%}vega-time-picker-dropdown.vega-force-hidden{display:none !important}.vega-time-picker-range-clear-icon.invisible{visibility:hidden}';var u=function(n,e,t,o){var a=arguments.length,r=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,o);else for(var s=n.length-1;s>=0;s--)(l=n[s])&&(r=(a<3?l(r):a>3?l(e,t,r):l(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};const p=class{constructor(n){oe(this,n),this.vegaChange=X(this,"vegaChange",7),this.change=X(this,"change",7),this.globalSlimmers={},this.translationSlimmer=new Ie,this.labelRenderer=new E,this.singleInputRenderer=new R,this.singleDropdownRenderer=new O,this.valueController=new w,this.singleDropdownController=new c,this.dropdownSelectedItemsController=new b,this.keyboardController=new I,this.formFieldController=new we({propertyRules:[{propertyName:"required",ruleFactory:(e,t,o)=>e?o==="range"?new ee({timeFormat:t}):new te({timeFormat:t}):null,dependence:["timeFormat","mode"]},{propertyName:"timeFormat",ruleFactory:(e,t,o)=>e&&t?o==="range"?new ee({timeFormat:e}):new te({timeFormat:e}):null,dependence:["required","mode"]},{propertyName:"mode",ruleFactory:(e,t)=>e==="range"?new Ce({timeFormat:t}):null,dependence:"timeFormat"}],validationRulesName:"validationRules",defaultValue:e=>e.mode==="range"?["",""]:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>this.mode==="single"?[this.singleInputRenderer.getInputRef()]:[this.rangeInputRenderer.getStartInputRef(),this.rangeInputRenderer.getEndInputRef()]}),this.rangeInputRenderer=new g,this.rangeClearButtonRenderer=new $,this.rangeDropdownRenderer=new k,this.startDropdownController=new C("start"),this.endDropdownController=new C("end"),this.inputMaskController=new q,this.inputEventPrevent=new De([H],()=>this.inputContainerRef),this.changeEventEmitter=Re(p,H),this.vegaComponentUsageRuntimeMetricsSlimmer=new de(Se),this.isMobileDevice=F()===_.MOBILE,this.isTabletDevice=F()===_.TABLET,this.dropdownSource={hours:[],minutes:[]},this.isDropdownShow=!1,this.selectedTimeValue={},this.mode="single",this.required=!1,this.optional=!1,this.increments=1,this.timeFormat="24-hour",this.value=this.mode==="range"?["",""]:"",this.size="default",this.disabled=!1,this.readOnly=!1,this.showClearIcon=!0,this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.vegaDropdownProps={}}async watchIsDropdownShow(n){}watchSelectedTimeValue(){}watchMode(){}watchIncrements(){}watchTimeFormat(){}watchValue(n,e){}watchDisabled(){}watchValidationRules(){}watchVegaDropdownProps(){}componentWillLoad(){}componentDidLoad(){}componentDidRender(){}render(){const n=this.mode==="range";return se(d(re,{class:{disabled:this.disabled}},this.labelRenderer.render(),d("div",{class:this.getTimePickerClass(n),ref:e=>this.inputContainerRef=e},n?this.rangeInputRenderer.render():this.singleInputRenderer.render()),n?this.rangeDropdownRenderer.render():this.singleDropdownRenderer.render()),this.host)}getTimePickerClass(n){return{"vega-time-picker-input-container":!0,"range-mode":n,mobile:n&&this.isMobileDevice,tablet:n&&this.isTabletDevice}}get host(){return ie(this)}static get watchers(){return{isDropdownShow:["watchIsDropdownShow"],selectedTimeValue:["watchSelectedTimeValue"],mode:["watchMode"],increments:["watchIncrements"],timeFormat:["watchTimeFormat"],value:["watchValue"],disabled:["watchDisabled"],validationRules:["watchValidationRules"],vegaDropdownProps:["watchVegaDropdownProps"]}}};u([pe()],p.prototype,"globalSlimmers",void 0);u([h()],p.prototype,"translationSlimmer",void 0);u([h()],p.prototype,"labelRenderer",void 0);u([h()],p.prototype,"singleInputRenderer",void 0);u([h()],p.prototype,"singleDropdownRenderer",void 0);u([h()],p.prototype,"valueController",void 0);u([h()],p.prototype,"singleDropdownController",void 0);u([h()],p.prototype,"dropdownSelectedItemsController",void 0);u([h()],p.prototype,"keyboardController",void 0);u([h()],p.prototype,"formFieldController",void 0);u([h()],p.prototype,"rangeInputRenderer",void 0);u([h()],p.prototype,"rangeClearButtonRenderer",void 0);u([h()],p.prototype,"rangeDropdownRenderer",void 0);u([h()],p.prototype,"startDropdownController",void 0);u([h()],p.prototype,"endDropdownController",void 0);u([h()],p.prototype,"inputMaskController",void 0);u([h()],p.prototype,"inputEventPrevent",void 0);u([h()],p.prototype,"changeEventEmitter",void 0);u([h()],p.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);u([fe()],p.prototype,"watchValue",null);p.style=Te;const xe=':host(.vega-time-picker-dropdown){border-radius:12px;position:absolute;overflow:hidden}:host(.vega-force-hidden){display:none !important}.vega-time-picker-dropdown-container{flex-direction:column;position:relative;padding-top:16px;padding-bottom:16px;border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:12px;box-shadow:var(--v-shadow-dropdown-menu, 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1))}.vega-time-picker-dropdown-panel{display:flex;height:224px}.vega-time-picker-dropdown-panel>ul{flex-grow:1;overflow:hidden;padding-left:0px;margin:0px;width:72px;list-style-type:none;scroll-behavior:smooth}.vega-time-picker-dropdown-panel>ul:hover{overflow-y:auto}:host(.mobile) .vega-time-picker-dropdown-panel>ul,:host(.tablet) .vega-time-picker-dropdown-panel>ul{overflow-y:auto;overflow-x:hidden}.vega-time-picker-dropdown-panel>ul:hover::-webkit-scrollbar{width:4px}.vega-time-picker-dropdown-panel>ul:hover::-webkit-scrollbar-thumb{background-color:rgba(var(--v-bg-status-info, 205, 209, 211, 1));border-radius:9999px}.vega-time-picker-panel-column:not(:last-child){border-right-width:1px;border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-style:solid}.vega-time-picker-dropdown-panel>ul>li{padding-top:4px;padding-bottom:4px;padding-left:16px;cursor:pointer;display:flex;align-items:center;width:100%}.vega-time-picker-dropdown-panel>ul>li:focus{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}.vega-time-picker-dropdown-panel>ul>li:hover{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}.vega-time-picker-dropdown-panel>ul>li.vega-dropdown-item-selected{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}.vega-time-picker-dropdown-panel>ul>li{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;text-decoration:none;outline:0}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-time-picker-dropdown-panel>ul>li{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-time-picker-dropdown-panel>ul>li{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-time-picker-dropdown-panel>ul>li{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-time-picker-panel-column::after{display:block;height:192px;content:""}:host(.mobile) .vega-time-picker-panel-column::after{height:0}.vega-time-picker-dropdown-footer{display:flex;padding-left:16px;padding-right:16px;justify-content:flex-end}.vega-time-picker-dropdown-footer .vega-time-picker-now{flex-grow:1}.horizontal-divider{height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1));width:100%;margin-top:12px;margin-bottom:12px}';var he=function(n,e,t,o){var a=arguments.length,r=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,e,t,o);else for(var s=n.length-1;s>=0;s--)(l=n[s])&&(r=(a<3?l(r):a>3?l(e,t,r):l(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};const Y=class{constructor(n){oe(this,n),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new de}render(){return se(d(re,null),this.host)}get host(){return ie(this)}};he([pe()],Y.prototype,"globalSlimmers",void 0);he([h()],Y.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);Y.style=xe;export{p as vega_time_picker,Y as vega_time_picker_dropdown};
@@ -0,0 +1 @@
1
+ import{r as p,c as d,C as v,W as m,h as n,H as u,g as b,Z as f,I as g}from"./index-BMrI2UiZ.js";import{c as x}from"./event-emit-slimmer-db4a82e0-BMETG_nd.js";import{c as w}from"./accessibility-6af5cf2e-XlEB_Jt7.js";import{s as k}from"./component-7d906393-ouA59Xga.js";import{V as y,I as C}from"./component-usage-runtime-metrics-4b1afd04-DfeLFf_f.js";import{F as R}from"./form-field-controller-slimmer-a1c7b28c-Dd3MqkCK.js";import{T as S}from"./toggle-switch-required-rule-b3cf4302-B1uZNmx2.js";import"./mutation-observer-slimmer-58ebc13c-B96ukalh.js";import"./sub-state-observer-slimmer-64532d94-OEvM7LUT.js";import"./mutation-observer-filters-1a054fb0-DqFynVMq.js";import"./array-7888f339-TrIHVDOh.js";const V=':host{display:inline-block}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-hidden{display:none}div.vega-container{display:flex;justify-content:flex-start;align-items:center;border-radius:9999px;position:relative;box-sizing:content-box;height:24px;width:48px;padding:4px;background-color:rgba(var(--v-bg-toggle-switch, 107, 116, 125, 0.7))}div.vega-container:hover{background-color:rgba(var(--v-bg-toggle-switch-hover, 107, 116, 125, 1))}div.vega-container.vega-container-checked{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}div.vega-container.vega-container-checked:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}div.vega-container.vega-container-disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}div.vega-container.vega-container-checked.vega-container-disabled{background-color:rgba(var(--v-bg-toggle-switch-selected-disabled, 153, 192, 255, 1))}div.vega-container-small-size{box-sizing:border-box;height:20px;width:32px;padding:2px}div.vega-container>span{margin-left:0px;transition-property:margin;transition-duration:0.1s;transition-timing-function:linear}div.vega-container:focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}div.vega-container-checked>span{margin-left:24px}div.vega-container-checked.vega-container-small-size>span{margin-left:12px}div.vega-container>input{position:absolute;cursor:pointer;opacity:0;left:0px;top:0px;width:100%;height:100%;margin:0px;-webkit-tap-highlight-color:transparent}div.vega-container input:disabled{cursor:default}div.vega-container>span{display:inline-block;border-radius:9999px;box-shadow:var(--v-shadow-form-field, 0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.1));width:24px;height:24px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));box-shadow:var(--v-shadow-form-field, 0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.1));transition-property:margin;transition-duration:0.1s;transition-timing-function:linear}div.vega-container-small-size{height:20px}div.vega-container-small-size>span{width:16px;height:16px}div{align-self:center}';var h=function(t,e,a,o){var s=arguments.length,i=s<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,a):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,a,o);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(s<3?l(i):s>3?l(e,a,i):l(e,a))||i);return s>3&&i&&Object.defineProperty(e,a,i),i};const r=class{constructor(t){p(this,t),this.vegaChange=d(this,"vegaChange",7),this.change=d(this,"change",7),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new y,this.formFieldController=new R({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new S:null}],validationRulesName:"validationRules",defaultValue:!1,attributeGetter:e=>this[e],inputContainerGetter:()=>this.toggleSwitchContainer,touchableAreaGetter:()=>[this.toggleSwitchContainer]}),this.changeEventEmitter=x(r,f),this.checked=!1,this.value=!1,this.size="default",this.required=!1,this.optional=!1,this.disabled=!1,this.validationRules=[],this.autoValidation=!0,this.isValid=null,this.toggleSwitch=()=>{this.disabled||(this.checked=!this.checked)},this.updateValue=e=>{const a=e.currentTarget;this.checked=a.checked,e.stopPropagation()}}watchCheckedChange(){this.value=this.checked,this.changeEventEmitter.emit(this.checked),v.notify(m,{host:this.host,detail:this.value})}watchValue(t){this.checked=t===!0}watchValidationRules(){}componentWillLoad(){!this.checked&&this.value===!0?this.checked=!0:this.value=this.checked}render(){let t=this.checked?"vega-container vega-container-checked":"vega-container";return t+=this.disabled?" vega-container-disabled":"",t+=this.size==="small"?" vega-container-small-size":"",k(n(u,null,n("vega-flex",{gap:"size-8",ref:e=>this.toggleSwitchContainer=e},n("div",{class:`${t} vega-flex-shrink-0 v-min-w-min`},n("input",{type:"checkbox",name:"switch",disabled:this.disabled,checked:this.checked,onChange:this.updateValue,"aria-label":this.label||"No label defined",role:"button",tabIndex:0,onKeyDown:w()}),n("span",{class:this.disabled?"v-bg-tertiary":"v-bg-primary"})),this.renderLabelDom())),this.host)}renderLabelDom(){return this.label?n("div",{class:"vega-flex-basis-0 vega-flex-grow"},n("vega-field-label",{onClick:this.toggleSwitch,disabled:this.disabled,label:this.label,isFieldRequired:this.required,optional:this.optional})):null}get host(){return b(this)}static get watchers(){return{checked:["watchCheckedChange"],value:["watchValue"],validationRules:["watchValidationRules"]}}};h([C()],r.prototype,"globalSlimmers",void 0);h([g()],r.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0);h([g()],r.prototype,"formFieldController",void 0);h([g()],r.prototype,"changeEventEmitter",void 0);r.style=V;export{r as vega_toggle_switch};